@dropins/tools 0.21.2-alpha3 → 0.21.2-alpha389
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/event-bus.js +1 -49
- package/fetch-graphql.js +1 -62
- package/initializer.js +1 -64
- package/package.json +1 -1
- package/preact-compat.js +1 -93
- package/preact-hooks.js +1 -40
- package/preact-jsx-runtime.js +1 -35
- package/preact.js +1 -21
- package/runtime.js +1 -69
- package/components/Accordion/Accordion.d.ts +0 -25
- package/components/Accordion/Accordion.d.ts.map +0 -1
- package/components/Accordion/Accordion.jsx +0 -59
- package/components/Accordion/Accordion.stories.d.ts +0 -22
- package/components/Accordion/Accordion.stories.d.ts.map +0 -1
- package/components/Accordion/Accordion.stories.jsx +0 -320
- package/components/Accordion/Accordion.test.d.ts +0 -3
- package/components/Accordion/Accordion.test.d.ts.map +0 -1
- package/components/Accordion/Accordion.test.jsx +0 -79
- package/components/Accordion/index.d.ts +0 -3
- package/components/Accordion/index.d.ts.map +0 -1
- package/components/Accordion/index.js +0 -2
- package/components/ActionButton/ActionButton.d.ts +0 -11
- package/components/ActionButton/ActionButton.d.ts.map +0 -1
- package/components/ActionButton/ActionButton.jsx +0 -14
- package/components/ActionButton/ActionButton.stories.d.ts +0 -16
- package/components/ActionButton/ActionButton.stories.d.ts.map +0 -1
- package/components/ActionButton/ActionButton.stories.jsx +0 -119
- package/components/ActionButton/ActionButton.test.d.ts +0 -3
- package/components/ActionButton/ActionButton.test.d.ts.map +0 -1
- package/components/ActionButton/ActionButton.test.jsx +0 -47
- package/components/ActionButton/index.d.ts +0 -2
- package/components/ActionButton/index.d.ts.map +0 -1
- package/components/ActionButton/index.js +0 -1
- package/components/ActionButtonGroup/ActionButtonGroup.d.ts +0 -20
- package/components/ActionButtonGroup/ActionButtonGroup.d.ts.map +0 -1
- package/components/ActionButtonGroup/ActionButtonGroup.jsx +0 -39
- package/components/ActionButtonGroup/ActionButtonGroup.stories.d.ts +0 -16
- package/components/ActionButtonGroup/ActionButtonGroup.stories.d.ts.map +0 -1
- package/components/ActionButtonGroup/ActionButtonGroup.stories.jsx +0 -72
- package/components/ActionButtonGroup/ActionButtonGroup.test.d.ts +0 -3
- package/components/ActionButtonGroup/ActionButtonGroup.test.d.ts.map +0 -1
- package/components/ActionButtonGroup/ActionButtonGroup.test.jsx +0 -78
- package/components/ActionButtonGroup/index.d.ts +0 -2
- package/components/ActionButtonGroup/index.d.ts.map +0 -1
- package/components/ActionButtonGroup/index.js +0 -1
- package/components/AlertBanner/AlertBanner.d.ts +0 -15
- package/components/AlertBanner/AlertBanner.d.ts.map +0 -1
- package/components/AlertBanner/AlertBanner.jsx +0 -30
- package/components/AlertBanner/AlertBanner.stories.d.ts +0 -17
- package/components/AlertBanner/AlertBanner.stories.d.ts.map +0 -1
- package/components/AlertBanner/AlertBanner.stories.jsx +0 -128
- package/components/AlertBanner/AlertBanner.test.d.ts +0 -3
- package/components/AlertBanner/AlertBanner.test.d.ts.map +0 -1
- package/components/AlertBanner/AlertBanner.test.jsx +0 -40
- package/components/AlertBanner/index.d.ts +0 -3
- package/components/AlertBanner/index.d.ts.map +0 -1
- package/components/AlertBanner/index.js +0 -2
- package/components/Breadcrumbs/Breadcrumbs.d.ts +0 -9
- package/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/components/Breadcrumbs/Breadcrumbs.jsx +0 -26
- package/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -15
- package/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +0 -1
- package/components/Breadcrumbs/Breadcrumbs.stories.jsx +0 -110
- package/components/Breadcrumbs/Breadcrumbs.test.d.ts +0 -3
- package/components/Breadcrumbs/Breadcrumbs.test.d.ts.map +0 -1
- package/components/Breadcrumbs/Breadcrumbs.test.jsx +0 -67
- package/components/Breadcrumbs/index.d.ts +0 -3
- package/components/Breadcrumbs/index.d.ts.map +0 -1
- package/components/Breadcrumbs/index.js +0 -2
- package/components/Button/Button.d.ts +0 -15
- package/components/Button/Button.d.ts.map +0 -1
- package/components/Button/Button.jsx +0 -59
- package/components/Button/Button.stories.d.ts +0 -135
- package/components/Button/Button.stories.d.ts.map +0 -1
- package/components/Button/Button.stories.jsx +0 -354
- package/components/Button/Button.test.d.ts +0 -2
- package/components/Button/Button.test.d.ts.map +0 -1
- package/components/Button/Button.test.jsx +0 -134
- package/components/Button/index.d.ts +0 -3
- package/components/Button/index.d.ts.map +0 -1
- package/components/Button/index.js +0 -2
- package/components/Card/Card.d.ts +0 -9
- package/components/Card/Card.d.ts.map +0 -1
- package/components/Card/Card.jsx +0 -7
- package/components/Card/Card.stories.d.ts +0 -16
- package/components/Card/Card.stories.d.ts.map +0 -1
- package/components/Card/Card.stories.jsx +0 -47
- package/components/Card/Card.test.d.ts +0 -3
- package/components/Card/Card.test.d.ts.map +0 -1
- package/components/Card/Card.test.jsx +0 -26
- package/components/Card/index.d.ts +0 -2
- package/components/Card/index.d.ts.map +0 -1
- package/components/Card/index.js +0 -1
- package/components/CartItem/CartItem.d.ts +0 -25
- package/components/CartItem/CartItem.d.ts.map +0 -1
- package/components/CartItem/CartItem.jsx +0 -124
- package/components/CartItem/CartItem.stories.d.ts +0 -54
- package/components/CartItem/CartItem.stories.d.ts.map +0 -1
- package/components/CartItem/CartItem.stories.jsx +0 -309
- package/components/CartItem/CartItem.test.d.ts +0 -3
- package/components/CartItem/CartItem.test.d.ts.map +0 -1
- package/components/CartItem/CartItem.test.jsx +0 -71
- package/components/CartItem/CartItemSkeleton.d.ts +0 -3
- package/components/CartItem/CartItemSkeleton.d.ts.map +0 -1
- package/components/CartItem/CartItemSkeleton.jsx +0 -25
- package/components/CartItem/CartItemSkeleton.test.d.ts +0 -3
- package/components/CartItem/CartItemSkeleton.test.d.ts.map +0 -1
- package/components/CartItem/CartItemSkeleton.test.jsx +0 -11
- package/components/CartItem/index.d.ts +0 -4
- package/components/CartItem/index.d.ts.map +0 -1
- package/components/CartItem/index.js +0 -3
- package/components/CartList/CartList.d.ts +0 -7
- package/components/CartList/CartList.d.ts.map +0 -1
- package/components/CartList/CartList.jsx +0 -14
- package/components/CartList/CartList.stories.d.ts +0 -17
- package/components/CartList/CartList.stories.d.ts.map +0 -1
- package/components/CartList/CartList.stories.jsx +0 -54
- package/components/CartList/CartList.test.d.ts +0 -3
- package/components/CartList/CartList.test.d.ts.map +0 -1
- package/components/CartList/CartList.test.jsx +0 -12
- package/components/CartList/index.d.ts +0 -3
- package/components/CartList/index.d.ts.map +0 -1
- package/components/CartList/index.js +0 -2
- package/components/Checkbox/Checkbox.d.ts +0 -13
- package/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/components/Checkbox/Checkbox.jsx +0 -51
- package/components/Checkbox/Checkbox.stories.d.ts +0 -22
- package/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/components/Checkbox/Checkbox.stories.jsx +0 -157
- package/components/Checkbox/Checkbox.test.d.ts +0 -3
- package/components/Checkbox/Checkbox.test.d.ts.map +0 -1
- package/components/Checkbox/Checkbox.test.jsx +0 -136
- package/components/Checkbox/index.d.ts +0 -2
- package/components/Checkbox/index.d.ts.map +0 -1
- package/components/Checkbox/index.js +0 -1
- package/components/ColorSwatch/ColorSwatch.d.ts +0 -20
- package/components/ColorSwatch/ColorSwatch.d.ts.map +0 -1
- package/components/ColorSwatch/ColorSwatch.jsx +0 -57
- package/components/ColorSwatch/ColorSwatch.stories.d.ts +0 -20
- package/components/ColorSwatch/ColorSwatch.stories.d.ts.map +0 -1
- package/components/ColorSwatch/ColorSwatch.stories.jsx +0 -206
- package/components/ColorSwatch/ColorSwatch.test.d.ts +0 -3
- package/components/ColorSwatch/ColorSwatch.test.d.ts.map +0 -1
- package/components/ColorSwatch/ColorSwatch.test.jsx +0 -87
- package/components/ColorSwatch/index.d.ts +0 -3
- package/components/ColorSwatch/index.d.ts.map +0 -1
- package/components/ColorSwatch/index.js +0 -2
- package/components/Divider/Divider.d.ts +0 -8
- package/components/Divider/Divider.d.ts.map +0 -1
- package/components/Divider/Divider.jsx +0 -9
- package/components/Divider/Divider.stories.d.ts +0 -11
- package/components/Divider/Divider.stories.d.ts.map +0 -1
- package/components/Divider/Divider.stories.jsx +0 -43
- package/components/Divider/Divider.test.d.ts +0 -2
- package/components/Divider/Divider.test.d.ts.map +0 -1
- package/components/Divider/Divider.test.jsx +0 -19
- package/components/Divider/index.d.ts +0 -3
- package/components/Divider/index.d.ts.map +0 -1
- package/components/Divider/index.js +0 -2
- package/components/Field/Field.d.ts +0 -14
- package/components/Field/Field.d.ts.map +0 -1
- package/components/Field/Field.jsx +0 -29
- package/components/Field/Field.stories.d.ts +0 -37
- package/components/Field/Field.stories.d.ts.map +0 -1
- package/components/Field/Field.stories.jsx +0 -174
- package/components/Field/Field.test.d.ts +0 -3
- package/components/Field/Field.test.d.ts.map +0 -1
- package/components/Field/Field.test.jsx +0 -91
- package/components/Field/index.d.ts +0 -2
- package/components/Field/index.d.ts.map +0 -1
- package/components/Field/index.js +0 -1
- package/components/Icon/Icon.d.ts +0 -11
- package/components/Icon/Icon.d.ts.map +0 -1
- package/components/Icon/Icon.jsx +0 -57
- package/components/Icon/Icon.stories.d.ts +0 -16
- package/components/Icon/Icon.stories.d.ts.map +0 -1
- package/components/Icon/Icon.stories.helpers.d.ts +0 -4
- package/components/Icon/Icon.stories.helpers.d.ts.map +0 -1
- package/components/Icon/Icon.stories.helpers.jsx +0 -7
- package/components/Icon/Icon.stories.jsx +0 -48
- package/components/Icon/Icon.test.d.ts +0 -3
- package/components/Icon/Icon.test.d.ts.map +0 -1
- package/components/Icon/Icon.test.jsx +0 -67
- package/components/Icon/index.d.ts +0 -2
- package/components/Icon/index.d.ts.map +0 -1
- package/components/Icon/index.js +0 -1
- package/components/IllustratedMessage/IllustratedMessage.d.ts +0 -13
- package/components/IllustratedMessage/IllustratedMessage.d.ts.map +0 -1
- package/components/IllustratedMessage/IllustratedMessage.jsx +0 -21
- package/components/IllustratedMessage/IllustratedMessage.stories.d.ts +0 -10
- package/components/IllustratedMessage/IllustratedMessage.stories.d.ts.map +0 -1
- package/components/IllustratedMessage/IllustratedMessage.stories.jsx +0 -90
- package/components/IllustratedMessage/IllustratedMessage.test.d.ts +0 -3
- package/components/IllustratedMessage/IllustratedMessage.test.d.ts.map +0 -1
- package/components/IllustratedMessage/IllustratedMessage.test.jsx +0 -42
- package/components/IllustratedMessage/index.d.ts +0 -3
- package/components/IllustratedMessage/index.d.ts.map +0 -1
- package/components/IllustratedMessage/index.js +0 -2
- package/components/Image/Image.d.ts +0 -11
- package/components/Image/Image.d.ts.map +0 -1
- package/components/Image/Image.jsx +0 -26
- package/components/Image/Image.stories.d.ts +0 -11
- package/components/Image/Image.stories.d.ts.map +0 -1
- package/components/Image/Image.stories.jsx +0 -66
- package/components/Image/Image.test.d.ts +0 -3
- package/components/Image/Image.test.d.ts.map +0 -1
- package/components/Image/Image.test.jsx +0 -82
- package/components/Image/index.d.ts +0 -2
- package/components/Image/index.d.ts.map +0 -1
- package/components/Image/index.js +0 -1
- package/components/ImageSwatch/ImageSwatch.d.ts +0 -20
- package/components/ImageSwatch/ImageSwatch.d.ts.map +0 -1
- package/components/ImageSwatch/ImageSwatch.jsx +0 -49
- package/components/ImageSwatch/ImageSwatch.stories.d.ts +0 -20
- package/components/ImageSwatch/ImageSwatch.stories.d.ts.map +0 -1
- package/components/ImageSwatch/ImageSwatch.stories.jsx +0 -206
- package/components/ImageSwatch/ImageSwatch.test.d.ts +0 -3
- package/components/ImageSwatch/ImageSwatch.test.d.ts.map +0 -1
- package/components/ImageSwatch/ImageSwatch.test.jsx +0 -64
- package/components/ImageSwatch/index.d.ts +0 -3
- package/components/ImageSwatch/index.d.ts.map +0 -1
- package/components/ImageSwatch/index.js +0 -2
- package/components/InLineAlert/InLineAlert.d.ts +0 -16
- package/components/InLineAlert/InLineAlert.d.ts.map +0 -1
- package/components/InLineAlert/InLineAlert.jsx +0 -38
- package/components/InLineAlert/InLineAlert.stories.d.ts +0 -86
- package/components/InLineAlert/InLineAlert.stories.d.ts.map +0 -1
- package/components/InLineAlert/InLineAlert.stories.jsx +0 -193
- package/components/InLineAlert/InLineAlert.test.d.ts +0 -3
- package/components/InLineAlert/InLineAlert.test.d.ts.map +0 -1
- package/components/InLineAlert/InLineAlert.test.jsx +0 -77
- package/components/InLineAlert/index.d.ts +0 -3
- package/components/InLineAlert/index.d.ts.map +0 -1
- package/components/InLineAlert/index.js +0 -2
- package/components/Incrementer/Incrementer.d.ts +0 -17
- package/components/Incrementer/Incrementer.d.ts.map +0 -1
- package/components/Incrementer/Incrementer.jsx +0 -87
- package/components/Incrementer/Incrementer.stories.d.ts +0 -10
- package/components/Incrementer/Incrementer.stories.d.ts.map +0 -1
- package/components/Incrementer/Incrementer.stories.jsx +0 -68
- package/components/Incrementer/Incrementer.test.d.ts +0 -3
- package/components/Incrementer/Incrementer.test.d.ts.map +0 -1
- package/components/Incrementer/Incrementer.test.jsx +0 -112
- package/components/Incrementer/index.d.ts +0 -2
- package/components/Incrementer/index.d.ts.map +0 -1
- package/components/Incrementer/index.js +0 -1
- package/components/Input/Input.d.ts +0 -19
- package/components/Input/Input.d.ts.map +0 -1
- package/components/Input/Input.jsx +0 -73
- package/components/Input/Input.stories.d.ts +0 -11
- package/components/Input/Input.stories.d.ts.map +0 -1
- package/components/Input/Input.stories.jsx +0 -115
- package/components/Input/Input.test.d.ts +0 -3
- package/components/Input/Input.test.d.ts.map +0 -1
- package/components/Input/Input.test.jsx +0 -111
- package/components/Input/index.d.ts +0 -3
- package/components/Input/index.d.ts.map +0 -1
- package/components/Input/index.js +0 -2
- package/components/Modal/Modal.d.ts +0 -15
- package/components/Modal/Modal.d.ts.map +0 -1
- package/components/Modal/Modal.jsx +0 -93
- package/components/Modal/Modal.stories.d.ts +0 -56
- package/components/Modal/Modal.stories.d.ts.map +0 -1
- package/components/Modal/Modal.stories.jsx +0 -189
- package/components/Modal/Modal.test.d.ts +0 -3
- package/components/Modal/Modal.test.d.ts.map +0 -1
- package/components/Modal/Modal.test.jsx +0 -85
- package/components/Modal/index.d.ts +0 -2
- package/components/Modal/index.d.ts.map +0 -1
- package/components/Modal/index.js +0 -14
- package/components/Picker/Picker.d.ts +0 -26
- package/components/Picker/Picker.d.ts.map +0 -1
- package/components/Picker/Picker.jsx +0 -81
- package/components/Picker/Picker.stories.d.ts +0 -22
- package/components/Picker/Picker.stories.d.ts.map +0 -1
- package/components/Picker/Picker.stories.jsx +0 -236
- package/components/Picker/Picker.test.d.ts +0 -2
- package/components/Picker/Picker.test.d.ts.map +0 -1
- package/components/Picker/Picker.test.jsx +0 -190
- package/components/Picker/index.d.ts +0 -2
- package/components/Picker/index.d.ts.map +0 -1
- package/components/Picker/index.js +0 -1
- package/components/Price/Price.d.ts +0 -17
- package/components/Price/Price.d.ts.map +0 -1
- package/components/Price/Price.jsx +0 -24
- package/components/Price/Price.stories.d.ts +0 -17
- package/components/Price/Price.stories.d.ts.map +0 -1
- package/components/Price/Price.stories.jsx +0 -78
- package/components/Price/Price.test.d.ts +0 -3
- package/components/Price/Price.test.d.ts.map +0 -1
- package/components/Price/Price.test.jsx +0 -68
- package/components/Price/index.d.ts +0 -2
- package/components/Price/index.d.ts.map +0 -1
- package/components/Price/index.js +0 -1
- package/components/PriceRange/PriceRange.d.ts +0 -17
- package/components/PriceRange/PriceRange.d.ts.map +0 -1
- package/components/PriceRange/PriceRange.jsx +0 -75
- package/components/PriceRange/PriceRange.stories.d.ts +0 -107
- package/components/PriceRange/PriceRange.stories.d.ts.map +0 -1
- package/components/PriceRange/PriceRange.stories.jsx +0 -210
- package/components/PriceRange/PriceRange.test.d.ts +0 -3
- package/components/PriceRange/PriceRange.test.d.ts.map +0 -1
- package/components/PriceRange/PriceRange.test.jsx +0 -188
- package/components/PriceRange/index.d.ts +0 -3
- package/components/PriceRange/index.d.ts.map +0 -1
- package/components/PriceRange/index.js +0 -2
- package/components/PriceSummary/PriceSummary.d.ts +0 -43
- package/components/PriceSummary/PriceSummary.d.ts.map +0 -1
- package/components/PriceSummary/PriceSummary.jsx +0 -228
- package/components/PriceSummary/PriceSummary.stories.d.ts +0 -127
- package/components/PriceSummary/PriceSummary.stories.d.ts.map +0 -1
- package/components/PriceSummary/PriceSummary.stories.jsx +0 -456
- package/components/PriceSummary/PriceSummary.test.d.ts +0 -3
- package/components/PriceSummary/PriceSummary.test.d.ts.map +0 -1
- package/components/PriceSummary/PriceSummary.test.jsx +0 -275
- package/components/PriceSummary/index.d.ts +0 -3
- package/components/PriceSummary/index.d.ts.map +0 -1
- package/components/PriceSummary/index.js +0 -2
- package/components/ProgressSpinner/ProgressSpinner.d.ts +0 -14
- package/components/ProgressSpinner/ProgressSpinner.d.ts.map +0 -1
- package/components/ProgressSpinner/ProgressSpinner.jsx +0 -31
- package/components/ProgressSpinner/ProgressSpinner.stories.d.ts +0 -19
- package/components/ProgressSpinner/ProgressSpinner.stories.d.ts.map +0 -1
- package/components/ProgressSpinner/ProgressSpinner.stories.jsx +0 -195
- package/components/ProgressSpinner/ProgressSpinner.test.d.ts +0 -3
- package/components/ProgressSpinner/ProgressSpinner.test.d.ts.map +0 -1
- package/components/ProgressSpinner/ProgressSpinner.test.jsx +0 -40
- package/components/ProgressSpinner/index.d.ts +0 -3
- package/components/ProgressSpinner/index.d.ts.map +0 -1
- package/components/ProgressSpinner/index.js +0 -2
- package/components/RadioButton/RadioButton.d.ts +0 -15
- package/components/RadioButton/RadioButton.d.ts.map +0 -1
- package/components/RadioButton/RadioButton.jsx +0 -31
- package/components/RadioButton/RadioButton.stories.d.ts +0 -15
- package/components/RadioButton/RadioButton.stories.d.ts.map +0 -1
- package/components/RadioButton/RadioButton.stories.jsx +0 -92
- package/components/RadioButton/RadioButton.test.d.ts +0 -3
- package/components/RadioButton/RadioButton.test.d.ts.map +0 -1
- package/components/RadioButton/RadioButton.test.jsx +0 -62
- package/components/RadioButton/index.d.ts +0 -3
- package/components/RadioButton/index.d.ts.map +0 -1
- package/components/RadioButton/index.js +0 -2
- package/components/Skeleton/Skeleton.d.ts +0 -17
- package/components/Skeleton/Skeleton.d.ts.map +0 -1
- package/components/Skeleton/Skeleton.jsx +0 -52
- package/components/Skeleton/Skeleton.stories.d.ts +0 -67
- package/components/Skeleton/Skeleton.stories.d.ts.map +0 -1
- package/components/Skeleton/Skeleton.stories.jsx +0 -184
- package/components/Skeleton/Skeleton.test.d.ts +0 -3
- package/components/Skeleton/Skeleton.test.d.ts.map +0 -1
- package/components/Skeleton/Skeleton.test.jsx +0 -62
- package/components/Skeleton/index.d.ts +0 -2
- package/components/Skeleton/index.d.ts.map +0 -1
- package/components/Skeleton/index.js +0 -1
- package/components/TextSwatch/TextSwatch.d.ts +0 -18
- package/components/TextSwatch/TextSwatch.d.ts.map +0 -1
- package/components/TextSwatch/TextSwatch.jsx +0 -56
- package/components/TextSwatch/TextSwatch.stories.d.ts +0 -21
- package/components/TextSwatch/TextSwatch.stories.d.ts.map +0 -1
- package/components/TextSwatch/TextSwatch.stories.jsx +0 -211
- package/components/TextSwatch/TextSwatch.test.d.ts +0 -3
- package/components/TextSwatch/TextSwatch.test.d.ts.map +0 -1
- package/components/TextSwatch/TextSwatch.test.jsx +0 -85
- package/components/TextSwatch/index.d.ts +0 -3
- package/components/TextSwatch/index.d.ts.map +0 -1
- package/components/TextSwatch/index.js +0 -2
- package/components/UIProvider/UIProvider.d.ts +0 -18
- package/components/UIProvider/UIProvider.d.ts.map +0 -1
- package/components/UIProvider/UIProvider.jsx +0 -26
- package/components/UIProvider/UIProvider.test.d.ts +0 -2
- package/components/UIProvider/UIProvider.test.d.ts.map +0 -1
- package/components/UIProvider/UIProvider.test.jsx +0 -9
- package/components/UIProvider/index.d.ts +0 -2
- package/components/UIProvider/index.d.ts.map +0 -1
- package/components/UIProvider/index.js +0 -1
- package/components/index.d.ts +0 -34
- package/components/index.d.ts.map +0 -1
- package/components/index.js +0 -33
- package/docs/Design/designBlocks.d.ts +0 -21
- package/docs/Design/designBlocks.d.ts.map +0 -1
- package/docs/Design/designBlocks.jsx +0 -59
- package/docs/Design/getTokenData.d.ts +0 -7
- package/docs/Design/getTokenData.d.ts.map +0 -1
- package/docs/Design/getTokenData.js +0 -18
- package/docs/Design/getTokenData.test.d.ts +0 -2
- package/docs/Design/getTokenData.test.d.ts.map +0 -1
- package/docs/Design/getTokenData.test.js +0 -92
- package/i18n/en_US.json +0 -112
- package/i18n/index.d.ts +0 -341
- package/i18n/index.d.ts.map +0 -1
- package/i18n/index.js +0 -12
- package/i18n/index.test.d.ts +0 -2
- package/i18n/index.test.d.ts.map +0 -1
- package/i18n/index.test.js +0 -11
- package/icons/index.d.ts +0 -35
- package/icons/index.d.ts.map +0 -1
- package/icons/index.js +0 -34
- package/lib/classes.d.ts +0 -5
- package/lib/classes.d.ts.map +0 -1
- package/lib/classes.js +0 -16
- package/lib/classes.test.d.ts +0 -2
- package/lib/classes.test.d.ts.map +0 -1
- package/lib/classes.test.js +0 -18
- package/lib/config.d.ts +0 -7
- package/lib/config.d.ts.map +0 -1
- package/lib/config.js +0 -12
- package/lib/config.test.d.ts +0 -2
- package/lib/config.test.d.ts.map +0 -1
- package/lib/config.test.js +0 -12
- package/lib/debounce.d.ts +0 -2
- package/lib/debounce.d.ts.map +0 -1
- package/lib/debounce.js +0 -7
- package/lib/debounce.test.d.ts +0 -2
- package/lib/debounce.test.d.ts.map +0 -1
- package/lib/debounce.test.js +0 -40
- package/lib/deepmerge.d.ts +0 -2
- package/lib/deepmerge.d.ts.map +0 -1
- package/lib/deepmerge.js +0 -1
- package/lib/form-values.d.ts +0 -5
- package/lib/form-values.d.ts.map +0 -1
- package/lib/form-values.js +0 -17
- package/lib/form-values.test.d.ts +0 -2
- package/lib/form-values.test.d.ts.map +0 -1
- package/lib/form-values.test.jsx +0 -29
- package/lib/i18n.d.ts +0 -8
- package/lib/i18n.d.ts.map +0 -1
- package/lib/i18n.js +0 -9
- package/lib/i18n.test.d.ts +0 -2
- package/lib/i18n.test.d.ts.map +0 -1
- package/lib/i18n.test.jsx +0 -8
- package/lib/image-params-keymap.d.ts +0 -4
- package/lib/image-params-keymap.d.ts.map +0 -1
- package/lib/image-params-keymap.js +0 -19
- package/lib/image-params-keymap.test.d.ts +0 -2
- package/lib/image-params-keymap.test.d.ts.map +0 -1
- package/lib/image-params-keymap.test.js +0 -7
- package/lib/index.d.ts +0 -14
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -13
- package/lib/initializer.d.ts +0 -81
- package/lib/initializer.d.ts.map +0 -1
- package/lib/initializer.js +0 -96
- package/lib/initializer.test.d.ts +0 -2
- package/lib/initializer.test.d.ts.map +0 -1
- package/lib/initializer.test.js +0 -64
- package/lib/render.d.ts +0 -10
- package/lib/render.d.ts.map +0 -1
- package/lib/render.jsx +0 -34
- package/lib/render.test.d.ts +0 -2
- package/lib/render.test.d.ts.map +0 -1
- package/lib/render.test.jsx +0 -70
- package/lib/resolve-image.d.ts +0 -10
- package/lib/resolve-image.d.ts.map +0 -1
- package/lib/resolve-image.js +0 -57
- package/lib/resolve-image.test.d.ts +0 -2
- package/lib/resolve-image.test.d.ts.map +0 -1
- package/lib/resolve-image.test.jsx +0 -146
- package/lib/slot.d.ts +0 -43
- package/lib/slot.d.ts.map +0 -1
- package/lib/slot.jsx +0 -184
- package/lib/slot.test.d.ts +0 -2
- package/lib/slot.test.d.ts.map +0 -1
- package/lib/slot.test.jsx +0 -325
- package/lib/tests.d.ts +0 -4
- package/lib/tests.d.ts.map +0 -1
- package/lib/tests.jsx +0 -19
- package/lib/tests.test.d.ts +0 -2
- package/lib/tests.test.d.ts.map +0 -1
- package/lib/tests.test.jsx +0 -13
- package/lib/types.d.ts +0 -9
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -1
- package/lib/vcomponent.d.ts +0 -8
- package/lib/vcomponent.d.ts.map +0 -1
- package/lib/vcomponent.jsx +0 -27
- package/lib/vcomponent.test.d.ts +0 -2
- package/lib/vcomponent.test.d.ts.map +0 -1
- package/lib/vcomponent.test.jsx +0 -51
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { Breadcrumbs as component, } from '@adobe/elsie/components/Breadcrumbs';
|
|
2
|
-
import { Icon } from '@adobe/elsie/components/Icon';
|
|
3
|
-
import { IconsList } from '@adobe/elsie/components/Icon/Icon.stories.helpers';
|
|
4
|
-
import { ChevronRight, Placeholder } from '@adobe/elsie/icons';
|
|
5
|
-
import { expect } from '@storybook/jest';
|
|
6
|
-
const meta = {
|
|
7
|
-
title: 'Components/Breadcrumbs',
|
|
8
|
-
component,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
parameters: {
|
|
11
|
-
layout: 'centered', // centered | fullscreen
|
|
12
|
-
},
|
|
13
|
-
argTypes: {
|
|
14
|
-
categories: {
|
|
15
|
-
description: 'List of categories to display on the Breadcrumbs.',
|
|
16
|
-
type: { name: 'object', value: {} },
|
|
17
|
-
control: 'array',
|
|
18
|
-
},
|
|
19
|
-
separator: {
|
|
20
|
-
description: 'Icon used to separate the Breadcrumbs items.',
|
|
21
|
-
type: { name: 'symbol' },
|
|
22
|
-
options: Object.keys(IconsList),
|
|
23
|
-
mapping: IconsList,
|
|
24
|
-
control: 'select',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
export default meta;
|
|
29
|
-
/**
|
|
30
|
-
* ```ts
|
|
31
|
-
* import { Breadcrumbs } from '@adobe/elsie/components/Breadcrumbs';
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export const Breadcrumbs = {
|
|
35
|
-
args: {
|
|
36
|
-
categories: [
|
|
37
|
-
<a href="#" key="1">
|
|
38
|
-
One
|
|
39
|
-
</a>,
|
|
40
|
-
<a href="/two" key="2">
|
|
41
|
-
Two
|
|
42
|
-
</a>,
|
|
43
|
-
<a key="3">Three</a>,
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
play: async () => {
|
|
47
|
-
const breadcrumbsElement = document.querySelector('.dropin-breadcrumbs__container');
|
|
48
|
-
const categories = breadcrumbsElement.querySelectorAll('.dropin-breadcrumbs__item a');
|
|
49
|
-
await expect(breadcrumbsElement).toBeVisible();
|
|
50
|
-
await expect(categories[0]).toHaveTextContent('One');
|
|
51
|
-
await expect(categories[1]).toHaveAttribute('href', '/two');
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
export const BreadcrumbsWithLeadingIcon = {
|
|
55
|
-
args: {
|
|
56
|
-
categories: [
|
|
57
|
-
<Icon key={0} source={Placeholder} size="16" className="storybook_icon" stroke="1" viewBox="0 0 24 24" aria-label="One" style={{ cursor: 'pointer' }} onClick={() => console.log('Go to Homepage')}/>,
|
|
58
|
-
<a href="/two" key="2">
|
|
59
|
-
Two
|
|
60
|
-
</a>,
|
|
61
|
-
<a key="3">Three</a>,
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
play: async () => {
|
|
65
|
-
const breadcrumbsElement = document.querySelector('.dropin-breadcrumbs__container');
|
|
66
|
-
const icon = breadcrumbsElement.querySelector('.dropin-breadcrumbs__item svg');
|
|
67
|
-
const categories = breadcrumbsElement.querySelectorAll('.dropin-breadcrumbs__item a');
|
|
68
|
-
await expect(breadcrumbsElement).toBeVisible();
|
|
69
|
-
await expect(icon).toBeVisible();
|
|
70
|
-
await expect(categories[0]).toHaveAttribute('href', '/two');
|
|
71
|
-
await expect(categories[1]).toHaveTextContent('Three');
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
export const BreadcrumbsWithSeparator = {
|
|
75
|
-
args: {
|
|
76
|
-
...Breadcrumbs.args,
|
|
77
|
-
separator: (<Icon source={ChevronRight} size="16" className="storybook_icon" stroke="1" viewBox="0 0 24 24"/>),
|
|
78
|
-
},
|
|
79
|
-
play: async () => {
|
|
80
|
-
const breadcrumbsElement = document.querySelector('.dropin-breadcrumbs__container');
|
|
81
|
-
const separators = breadcrumbsElement.querySelectorAll('.dropin-breadcrumbs__separator--icon');
|
|
82
|
-
await expect(breadcrumbsElement).toBeVisible();
|
|
83
|
-
await expect(separators).toHaveLength(2);
|
|
84
|
-
await expect(separators[0]).toBeVisible();
|
|
85
|
-
await expect(separators[1]).toBeVisible();
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
export const BreadcrumbsWithIcons = {
|
|
89
|
-
args: {
|
|
90
|
-
categories: [
|
|
91
|
-
<Icon key={0} source={Placeholder} size="16" className="storybook_icon" stroke="1" viewBox="0 0 24 24" aria-label="One" style={{ cursor: 'pointer' }} onClick={() => console.log('Go to Homepage')}/>,
|
|
92
|
-
<a href="/two" key="2">
|
|
93
|
-
Two
|
|
94
|
-
</a>,
|
|
95
|
-
<a key="3">Three</a>,
|
|
96
|
-
],
|
|
97
|
-
separator: (<Icon source={ChevronRight} size="16" className="storybook_icon" stroke="1" viewBox="0 0 24 24"/>),
|
|
98
|
-
},
|
|
99
|
-
play: async () => {
|
|
100
|
-
const breadcrumbsElement = document.querySelector('.dropin-breadcrumbs__container');
|
|
101
|
-
const icon = breadcrumbsElement.querySelector('.dropin-breadcrumbs__item svg');
|
|
102
|
-
const categories = breadcrumbsElement.querySelectorAll('.dropin-breadcrumbs__item a');
|
|
103
|
-
const separators = breadcrumbsElement.querySelectorAll('.dropin-breadcrumbs__separator--icon');
|
|
104
|
-
await expect(breadcrumbsElement).toBeVisible();
|
|
105
|
-
await expect(icon).toBeVisible();
|
|
106
|
-
await expect(categories[0]).toHaveAttribute('href', '/two');
|
|
107
|
-
await expect(separators).toHaveLength(2);
|
|
108
|
-
await expect(separators[1]).toBeVisible();
|
|
109
|
-
},
|
|
110
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.test.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/Breadcrumbs.test.tsx"],"names":[],"mappings":"AAAA,6DAA6D"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/** https://preactjs.com/guide/v10/preact-testing-library/ */
|
|
2
|
-
import { render } from '@adobe/elsie/lib/tests';
|
|
3
|
-
import { Breadcrumbs } from '@adobe/elsie/components/Breadcrumbs';
|
|
4
|
-
const MOCK_CATEGORIES = [
|
|
5
|
-
<a href="/" key="1">
|
|
6
|
-
One
|
|
7
|
-
</a>,
|
|
8
|
-
<a href="/two" key="2">
|
|
9
|
-
Two
|
|
10
|
-
</a>,
|
|
11
|
-
<a key="3">Three</a>,
|
|
12
|
-
];
|
|
13
|
-
describe('Base/Components/Breadcrumbs', () => {
|
|
14
|
-
test('renders', () => {
|
|
15
|
-
const { container } = render(<Breadcrumbs categories={MOCK_CATEGORIES}/>);
|
|
16
|
-
expect(!!container).toEqual(true);
|
|
17
|
-
});
|
|
18
|
-
test('should not render when no categories', () => {
|
|
19
|
-
const { container } = render(<Breadcrumbs categories={[]}/>);
|
|
20
|
-
const elem = container.querySelector('.dropin-breadcrumbs__container');
|
|
21
|
-
expect(elem).toBeNull();
|
|
22
|
-
});
|
|
23
|
-
test('renders with custom separator', () => {
|
|
24
|
-
const { container } = render(<Breadcrumbs categories={MOCK_CATEGORIES} separator={<div>separator</div>}/>);
|
|
25
|
-
const elem = container.querySelector('.dropin-breadcrumbs__separator--icon');
|
|
26
|
-
expect(elem.classList.contains('dropin-breadcrumbs__separator--icon')).toEqual(true);
|
|
27
|
-
});
|
|
28
|
-
test('renders with default separator', () => {
|
|
29
|
-
const { container } = render(<Breadcrumbs categories={MOCK_CATEGORIES}/>);
|
|
30
|
-
const elem1 = container.querySelector('.dropin-breadcrumbs__separator--default');
|
|
31
|
-
expect(elem1.classList.contains('dropin-breadcrumbs__separator--default')).toEqual(true);
|
|
32
|
-
});
|
|
33
|
-
test('renders with leading icon and default separator', () => {
|
|
34
|
-
const { container } = render(<Breadcrumbs categories={[
|
|
35
|
-
<a href="/" key="1">
|
|
36
|
-
<div class="leading-icon">icon</div>
|
|
37
|
-
</a>,
|
|
38
|
-
<a href="/two" key="2">
|
|
39
|
-
Two
|
|
40
|
-
</a>,
|
|
41
|
-
<a key="3">Three</a>,
|
|
42
|
-
]}/>);
|
|
43
|
-
const elem1 = container.querySelector('.dropin-breadcrumbs__separator--default');
|
|
44
|
-
const elem2 = container.querySelector('.dropin-breadcrumbs__separator--icon');
|
|
45
|
-
const elem3 = container.querySelector('.leading-icon');
|
|
46
|
-
expect(elem1.classList.contains('dropin-breadcrumbs__separator--default')).toEqual(true);
|
|
47
|
-
expect(elem2).toBeNull();
|
|
48
|
-
expect(elem3).not.toBeNull();
|
|
49
|
-
});
|
|
50
|
-
test('renders with leading icon and custom separator', () => {
|
|
51
|
-
const { container } = render(<Breadcrumbs categories={[
|
|
52
|
-
<a href="/" key="1">
|
|
53
|
-
<div class="leading-icon">icon</div>
|
|
54
|
-
</a>,
|
|
55
|
-
<a href="/two" key="2">
|
|
56
|
-
Two
|
|
57
|
-
</a>,
|
|
58
|
-
<a key="3">Three</a>,
|
|
59
|
-
]} separator={<div>separator</div>}/>);
|
|
60
|
-
const elem1 = container.querySelector('.dropin-breadcrumbs__separator--default');
|
|
61
|
-
const elem2 = container.querySelector('.dropin-breadcrumbs__separator--icon');
|
|
62
|
-
const elem3 = container.querySelector('.leading-icon');
|
|
63
|
-
expect(elem1).toBeNull();
|
|
64
|
-
expect(elem2.classList.contains('dropin-breadcrumbs__separator--icon')).toEqual(true);
|
|
65
|
-
expect(elem3).not.toBeNull();
|
|
66
|
-
});
|
|
67
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAC;AAChE,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,iDAAiD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ComponentChildren, FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import '@adobe/elsie/components/Button/Button.css';
|
|
4
|
-
export interface ButtonProps extends Omit<HTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, 'size' | 'icon'> {
|
|
5
|
-
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
6
|
-
size?: 'medium' | 'large';
|
|
7
|
-
children?: ComponentChildren;
|
|
8
|
-
icon?: VNode<HTMLAttributes<SVGSVGElement>>;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
active?: boolean;
|
|
11
|
-
activeChildren?: ComponentChildren;
|
|
12
|
-
activeIcon?: VNode<HTMLAttributes<SVGSVGElement>>;
|
|
13
|
-
}
|
|
14
|
-
export declare const Button: FunctionComponent<ButtonProps>;
|
|
15
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,2CAA2C,CAAC;AAEnD,MAAM,WAAW,WACf,SAAQ,IAAI,CACV,cAAc,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,EACrD,MAAM,GAAG,MAAM,CAChB;IACD,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAqFjD,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { VComponent, classes } from '@adobe/elsie/lib';
|
|
2
|
-
import '@adobe/elsie/components/Button/Button.css';
|
|
3
|
-
export const Button = ({ value, variant = 'primary', size = 'medium', icon, className, children, disabled = false, active = false, activeChildren, activeIcon, href, ...props }) => {
|
|
4
|
-
let buttonType = 'dropin-button';
|
|
5
|
-
if ((icon && !children) ||
|
|
6
|
-
(icon && active && !activeChildren) ||
|
|
7
|
-
(!icon && active && activeIcon)) {
|
|
8
|
-
buttonType = 'dropin-iconButton';
|
|
9
|
-
}
|
|
10
|
-
if (active && activeChildren) {
|
|
11
|
-
buttonType = 'dropin-button';
|
|
12
|
-
}
|
|
13
|
-
className = classes([
|
|
14
|
-
buttonType,
|
|
15
|
-
`${buttonType}--${size}`,
|
|
16
|
-
`${buttonType}--${variant}`,
|
|
17
|
-
[`${buttonType}--${variant}--disabled`, disabled],
|
|
18
|
-
children && icon && `${buttonType}--with-icon`,
|
|
19
|
-
!children && activeChildren && icon && `${buttonType}--with-icon`,
|
|
20
|
-
active && activeIcon && `${buttonType}--with-icon`,
|
|
21
|
-
className,
|
|
22
|
-
]);
|
|
23
|
-
const iconClassName = classes([
|
|
24
|
-
'dropin-button-icon',
|
|
25
|
-
`dropin-button-icon--${variant}`,
|
|
26
|
-
[`dropin-button-icon--${variant}--disabled`, disabled],
|
|
27
|
-
icon?.props.className,
|
|
28
|
-
]);
|
|
29
|
-
const attributes = href
|
|
30
|
-
? {
|
|
31
|
-
node: <a />,
|
|
32
|
-
role: 'link',
|
|
33
|
-
href,
|
|
34
|
-
...props,
|
|
35
|
-
disabled,
|
|
36
|
-
active,
|
|
37
|
-
}
|
|
38
|
-
: {
|
|
39
|
-
node: <button />,
|
|
40
|
-
role: 'button',
|
|
41
|
-
...props,
|
|
42
|
-
value,
|
|
43
|
-
disabled,
|
|
44
|
-
active,
|
|
45
|
-
};
|
|
46
|
-
return (<VComponent {...attributes} className={className}>
|
|
47
|
-
{icon && !active && <VComponent node={icon} className={iconClassName}/>}
|
|
48
|
-
|
|
49
|
-
{activeIcon && active && (<VComponent node={activeIcon} className={iconClassName}/>)}
|
|
50
|
-
|
|
51
|
-
{children &&
|
|
52
|
-
!active &&
|
|
53
|
-
(typeof children === 'string' ? <span>{children}</span> : children)}
|
|
54
|
-
|
|
55
|
-
{active &&
|
|
56
|
-
activeChildren &&
|
|
57
|
-
(typeof activeChildren === 'string' ? (<span>{activeChildren}</span>) : (activeChildren))}
|
|
58
|
-
</VComponent>);
|
|
59
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/preact';
|
|
2
|
-
import { ButtonProps } from '@adobe/elsie/components/Button';
|
|
3
|
-
/**
|
|
4
|
-
* Use Buttons to highlight or guide user actions.
|
|
5
|
-
*/
|
|
6
|
-
declare const meta: Meta<ButtonProps>;
|
|
7
|
-
export default meta;
|
|
8
|
-
type Story = StoryObj<ButtonProps>;
|
|
9
|
-
/**
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <Button
|
|
12
|
-
* active={false}
|
|
13
|
-
* activeChildren="Active"
|
|
14
|
-
* activeIcon={<Icon source={Check} size="24" />}
|
|
15
|
-
* children="Button"
|
|
16
|
-
* disabled={false}
|
|
17
|
-
* icon={<Icon source={Cart} size="24" />}
|
|
18
|
-
* onClick={handleAddToCart}
|
|
19
|
-
* size="medium"
|
|
20
|
-
* value={undefined}
|
|
21
|
-
* variant="primary"
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare const Button: Story;
|
|
26
|
-
/**
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <Button>Button</Button>
|
|
29
|
-
* ```
|
|
30
|
-
* ```tsx
|
|
31
|
-
* <Button children="Button" />
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare const Children: Story;
|
|
35
|
-
/**
|
|
36
|
-
* ```tsx
|
|
37
|
-
* <Button variant="primary">Primary</Button>
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare const Primary: Story;
|
|
41
|
-
/**
|
|
42
|
-
* ```tsx
|
|
43
|
-
* <Button variant='secondary'>Secondary</Button>
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export declare const Secondary: Story;
|
|
47
|
-
/**
|
|
48
|
-
* ```tsx
|
|
49
|
-
* <Button variant='tertiary'>Tertiary</Button>
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare const Tertiary: Story;
|
|
53
|
-
/**
|
|
54
|
-
* ```tsx
|
|
55
|
-
* <Button size='large'>Large</Button>
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
export declare const LargeSize: Story;
|
|
59
|
-
/**
|
|
60
|
-
* ```tsx
|
|
61
|
-
* <Button size='medium'>Medium</Button>
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
export declare const MediumSize: Story;
|
|
65
|
-
/**
|
|
66
|
-
* ```tsx
|
|
67
|
-
* <Button
|
|
68
|
-
* icon={<Icon
|
|
69
|
-
* source={Cart}
|
|
70
|
-
* size="24"
|
|
71
|
-
* stroke="2"
|
|
72
|
-
* viewBox="0 0 24 24"
|
|
73
|
-
* aria-label="Search" />}
|
|
74
|
-
* />
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
export declare const IconOnly: Story;
|
|
78
|
-
/**
|
|
79
|
-
* ```tsx
|
|
80
|
-
* <Button
|
|
81
|
-
* icon={<Icon
|
|
82
|
-
* source={Cart}
|
|
83
|
-
* size="24"
|
|
84
|
-
* stroke="2"
|
|
85
|
-
* viewBox="0 0 24 24"
|
|
86
|
-
* aria-label="Search" />}
|
|
87
|
-
* >
|
|
88
|
-
* Search
|
|
89
|
-
* </Button>
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export declare const TextAndIcon: Story;
|
|
93
|
-
/**
|
|
94
|
-
* ```tsx
|
|
95
|
-
* <Button disabled>Button</Button>
|
|
96
|
-
* ```
|
|
97
|
-
* ```tsx
|
|
98
|
-
* <Button disabled={true}>Button</Button>
|
|
99
|
-
* ```
|
|
100
|
-
* ```tsx
|
|
101
|
-
* <Button disabled={loop ? false : current < 1}>Button</Button>
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
export declare const Disabled: Story;
|
|
105
|
-
/**
|
|
106
|
-
* ```tsx
|
|
107
|
-
* <Button
|
|
108
|
-
* active={true}
|
|
109
|
-
* activeChildren="Active"
|
|
110
|
-
* activeIcon={<Icon source={SearchFilled} />}
|
|
111
|
-
* children="Not Active"
|
|
112
|
-
* icon={<Icon source={Search} />}
|
|
113
|
-
* />
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
export declare const Active: Story;
|
|
117
|
-
/**
|
|
118
|
-
* ```tsx
|
|
119
|
-
* <Button
|
|
120
|
-
* active={false}
|
|
121
|
-
* activeChildren="Active"
|
|
122
|
-
* activeIcon={<Icon source={SearchFilled} />}
|
|
123
|
-
* children="Not Active"
|
|
124
|
-
* icon={<Icon source={Search} />}
|
|
125
|
-
* />
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
|
-
export declare const NotActive: Story;
|
|
129
|
-
/**
|
|
130
|
-
* ```tsx
|
|
131
|
-
* <Button href="https://google.com">Link</Button>
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
|
-
export declare const AsLink: Story;
|
|
135
|
-
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEL,WAAW,EACZ,MAAM,gCAAgC,CAAC;AAQxC;;GAEG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,WAAW,CA2F3B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM,EAAE,KAcpB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,EAAE,KAsBtB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,EAAE,KAczB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,EAAE,KAoBpB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|