basic-arrow-selection
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "basic-arrow-selection", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Mixin used to add prominent left and right arrow buttons to a wrapped child. Clicking the left/right buttons selects the previous/next item.", | ||
@@ -15,4 +15,4 @@ "homepage": "https://component.kitchen", | ||
"dependencies": { | ||
"basic-element-base": "^0.7.0", | ||
"basic-component-mixins": "^0.7.0" | ||
"basic-element-base": "^0.7.1", | ||
"basic-component-mixins": "^0.7.1" | ||
}, | ||
@@ -19,0 +19,0 @@ "browserify": { |
<a name="ArrowSelection"></a> | ||
## ArrowSelection | ||
Component which adds prominent left and right arrow buttons to a | ||
wrapped child such as a carousel | ||
Component which adds prominent left and right arrow buttons to a wrapped | ||
child such as a carousel. | ||
You can see a [live demo](http://basicwebcomponents.org/basic-web-components/packages/basic-carousel/carouselWithArrows.html) | ||
of this component applied to a carousel. | ||
Clicking the left/right buttons selects the previous/next item. | ||
@@ -7,0 +10,0 @@ |
@@ -0,6 +1,28 @@ | ||
import ElementBase from '../../basic-element-base/src/ElementBase'; | ||
import ContentFirstChildTarget from '../../basic-component-mixins/src/ContentFirstChildTarget'; | ||
import DistributedChildrenAsContent from '../../basic-component-mixins/src/DistributedChildrenAsContent'; | ||
import ItemsSelection from '../../basic-component-mixins/src/ItemsSelection'; | ||
import Keyboard from '../../basic-component-mixins/src/Keyboard'; | ||
import ObserveContentChanges from '../../basic-component-mixins/src/ObserveContentChanges'; | ||
import TargetInCollective from '../../basic-component-mixins/src/TargetInCollective'; | ||
import TargetSelection from '../../basic-component-mixins/src/TargetSelection'; | ||
let base = ElementBase.compose( | ||
ContentFirstChildTarget, | ||
DistributedChildrenAsContent, | ||
ItemsSelection, | ||
Keyboard, | ||
ObserveContentChanges, | ||
TargetInCollective, | ||
TargetSelection | ||
); | ||
/** | ||
* @class ArrowSelection | ||
* @classdesc Component which adds prominent left and right arrow buttons to a | ||
* wrapped child such as a carousel | ||
* Component which adds prominent left and right arrow buttons to a wrapped | ||
* child such as a carousel. | ||
* | ||
* You can see a [live demo](http://basicwebcomponents.org/basic-web-components/packages/basic-carousel/carouselWithArrows.html) | ||
* of this component applied to a carousel. | ||
* | ||
* Clicking the left/right buttons selects the previous/next item. | ||
@@ -28,26 +50,4 @@ * | ||
*/ | ||
class ArrowSelection extends base { | ||
import ElementBase from '../../basic-element-base/src/ElementBase'; | ||
import ContentFirstChildTarget from '../../basic-component-mixins/src/ContentFirstChildTarget'; | ||
import DistributedChildrenAsContent from '../../basic-component-mixins/src/DistributedChildrenAsContent'; | ||
import ItemsSelection from '../../basic-component-mixins/src/ItemsSelection'; | ||
import Keyboard from '../../basic-component-mixins/src/Keyboard'; | ||
import ObserveContentChanges from '../../basic-component-mixins/src/ObserveContentChanges'; | ||
import TargetInCollective from '../../basic-component-mixins/src/TargetInCollective'; | ||
import TargetSelection from '../../basic-component-mixins/src/TargetSelection'; | ||
let base = ElementBase.compose( | ||
ContentFirstChildTarget, | ||
DistributedChildrenAsContent, | ||
ItemsSelection, | ||
Keyboard, | ||
ObserveContentChanges, | ||
TargetInCollective, | ||
TargetSelection | ||
); | ||
export default class ArrowSelection extends base { | ||
get canSelectNext() { | ||
@@ -286,1 +286,2 @@ return super.canSelectNext; | ||
document.registerElement('basic-arrow-selection', ArrowSelection); | ||
export default ArrowSelection; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
233392
2702
26
0
Updatedbasic-element-base@^0.7.1