@faststore/ui 2.0.2-alpha.0 → 2.0.4-alpha.0
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/CHANGELOG.md +18 -0
- package/dist/assets/ShoppingCart.d.ts +2 -2
- package/dist/assets/ShoppingCart.js.map +1 -1
- package/dist/assets/X.d.ts +2 -2
- package/dist/assets/X.js.map +1 -1
- package/package.json +30 -37
- package/src/assets/ShoppingCart.tsx +50 -0
- package/src/assets/X.tsx +38 -0
- package/src/base/layout.scss +78 -0
- package/src/base/tokens.scss +274 -0
- package/src/base/typography.scss +64 -0
- package/src/components/atoms/Badge/Badge.stories.mdx +156 -0
- package/src/components/atoms/Badge/styles.scss +209 -0
- package/src/components/atoms/Button/Button.stories.mdx +110 -0
- package/src/components/atoms/Button/styles.scss +316 -0
- package/src/components/atoms/Checkbox/styles.scss +155 -0
- package/src/{atoms → components/atoms}/Incentive/Incentive.tsx +0 -0
- package/src/{atoms → components/atoms}/Incentive/index.tsx +0 -0
- package/src/{atoms → components/atoms}/Incentive/stories/Incentive.mdx +0 -0
- package/src/{atoms → components/atoms}/Incentive/stories/Incentive.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/Incentive/stories/assets/Icons.tsx +0 -0
- package/src/{atoms → components/atoms}/Input/Input.tsx +0 -0
- package/src/{atoms → components/atoms}/Input/index.ts +0 -0
- package/src/{atoms → components/atoms}/Input/stories/Input.mdx +0 -0
- package/src/{atoms → components/atoms}/Input/stories/Input.stories.tsx +1 -1
- package/src/components/atoms/Label/Label.stories.mdx +65 -0
- package/src/{atoms → components/atoms}/Link/Link.tsx +1 -1
- package/src/{atoms → components/atoms}/Link/index.tsx +0 -0
- package/src/{atoms → components/atoms}/Link/stories/Link.mdx +0 -0
- package/src/{atoms → components/atoms}/Link/stories/Link.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/List/List.tsx +0 -0
- package/src/{atoms → components/atoms}/List/index.ts +0 -0
- package/src/{atoms → components/atoms}/List/stories/List.mdx +0 -0
- package/src/{atoms → components/atoms}/List/stories/List.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Overlay/Overlay.tsx +0 -0
- package/src/{atoms → components/atoms}/Overlay/index.ts +0 -0
- package/src/{atoms → components/atoms}/Overlay/stories/Overlay.mdx +0 -0
- package/src/{atoms → components/atoms}/Overlay/stories/Overlay.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Popover/Popover.tsx +0 -0
- package/src/{atoms → components/atoms}/Popover/index.ts +0 -0
- package/src/{atoms → components/atoms}/Popover/stories/Popover.mdx +0 -0
- package/src/{atoms → components/atoms}/Popover/stories/Popover.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Price/Price.tsx +0 -0
- package/src/{atoms → components/atoms}/Price/index.ts +0 -0
- package/src/{atoms → components/atoms}/Price/stories/Price.mdx +0 -0
- package/src/{atoms → components/atoms}/Price/stories/Price.stories.tsx +1 -1
- package/src/components/atoms/Radio/Radio.stories.mdx +101 -0
- package/src/components/atoms/Radio/styles.scss +108 -0
- package/src/{atoms → components/atoms}/Select/Select.tsx +0 -0
- package/src/{atoms → components/atoms}/Select/index.ts +0 -0
- package/src/{atoms → components/atoms}/Select/stories/Select.mdx +0 -0
- package/src/{atoms → components/atoms}/Select/stories/Select.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Skeleton/Skeleton.tsx +0 -0
- package/src/{atoms → components/atoms}/Skeleton/index.ts +0 -0
- package/src/{atoms → components/atoms}/Skeleton/stories/Skeleton.mdx +0 -0
- package/src/{atoms → components/atoms}/Skeleton/stories/Skeleton.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/Slider/Slider.tsx +0 -0
- package/src/{atoms → components/atoms}/Slider/index.ts +0 -0
- package/src/{atoms → components/atoms}/Slider/stories/Slider.mdx +0 -0
- package/src/{atoms → components/atoms}/Slider/stories/Slider.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Spinner/Spinner.tsx +0 -0
- package/src/{atoms → components/atoms}/Spinner/index.tsx +0 -0
- package/src/{atoms → components/atoms}/Spinner/stories/Spinner.mdx +0 -0
- package/src/{atoms → components/atoms}/Spinner/stories/Spinner.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/TextArea/TextArea.tsx +0 -0
- package/src/{atoms → components/atoms}/TextArea/index.ts +0 -0
- package/src/{atoms → components/atoms}/TextArea/stories/TextArea.mdx +0 -0
- package/src/{atoms → components/atoms}/TextArea/stories/TextArea.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Accordion/Accordion.tsx +0 -0
- package/src/{molecules → components/molecules}/Accordion/AccordionButton.tsx +4 -4
- package/src/{molecules → components/molecules}/Accordion/AccordionItem.tsx +1 -1
- package/src/{molecules → components/molecules}/Accordion/AccordionPanel.tsx +0 -0
- package/src/{molecules → components/molecules}/Accordion/index.ts +0 -0
- package/src/{molecules → components/molecules}/Accordion/stories/Accordion.mdx +0 -0
- package/src/{molecules → components/molecules}/Accordion/stories/Accordion.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/AggregateRating/AggregateRating.tsx +0 -0
- package/src/{molecules → components/molecules}/AggregateRating/index.ts +0 -0
- package/src/{molecules → components/molecules}/AggregateRating/stories/AggregateRating.mdx +0 -0
- package/src/{molecules → components/molecules}/AggregateRating/stories/AggregateRating.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Alert/Alert.tsx +0 -0
- package/src/{molecules → components/molecules}/Alert/index.ts +0 -0
- package/src/{molecules → components/molecules}/Alert/stories/Alert.mdx +0 -0
- package/src/{molecules → components/molecules}/Alert/stories/Alert.stories.tsx +3 -3
- package/src/{molecules → components/molecules}/Banner/Banner.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/BannerContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/BannerImage.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/BannerLink.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/index.ts +0 -0
- package/src/{molecules → components/molecules}/Banner/stories/Banner.mdx +0 -0
- package/src/{molecules → components/molecules}/Banner/stories/Banner.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Breadcrumb/Breadcrumb.tsx +0 -0
- package/src/{molecules → components/molecules}/Breadcrumb/index.ts +0 -0
- package/src/{molecules → components/molecules}/Breadcrumb/stories/Breadcrumb.mdx +0 -0
- package/src/{molecules → components/molecules}/Breadcrumb/stories/Breadcrumb.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Bullets/Bullets.tsx +1 -1
- package/src/{molecules → components/molecules}/Bullets/index.ts +0 -0
- package/src/{molecules → components/molecules}/Bullets/stories/Bullets.mdx +0 -0
- package/src/{molecules → components/molecules}/Bullets/stories/Bullets.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Card/Card.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/CardActions.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/CardContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/CardImage.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/index.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/stories/Card.mdx +0 -0
- package/src/{molecules → components/molecules}/Card/stories/Card.stories.tsx +5 -5
- package/src/{molecules → components/molecules}/Carousel/Arrows.tsx +0 -0
- package/src/{molecules → components/molecules}/Carousel/Carousel.tsx +2 -2
- package/src/{molecules → components/molecules}/Carousel/CarouselItem.tsx +1 -1
- package/src/{molecules → components/molecules}/Carousel/hooks/useSlideVisibility.ts +0 -0
- package/src/{molecules → components/molecules}/Carousel/index.ts +0 -0
- package/src/{molecules → components/molecules}/Carousel/stories/Carousel.mdx +0 -0
- package/src/{molecules → components/molecules}/Carousel/stories/Carousel.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/CartItem/CartItem.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemActions.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemContent.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemImage.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemPrices.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemSummary.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemTitle.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/index.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/stories/CartItem.mdx +0 -0
- package/src/{molecules → components/molecules}/CartItem/stories/CartItem.stories.tsx +1 -1
- package/src/components/molecules/CheckboxField/CheckboxField.stories.mdx +38 -0
- package/src/components/molecules/CheckboxField/styles.scss +12 -0
- package/src/{molecules → components/molecules}/Dropdown/Dropdown.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/DropdownButton.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/DropdownItem.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/DropdownMenu.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/contexts/DropdownContext.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/hooks/useDropdown.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/hooks/useDropdownPosition.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/index.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/stories/Dropdown.mdx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/stories/Dropdown.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Dropdown/stories/assets/Caret.tsx +0 -0
- package/src/{molecules → components/molecules}/Form/Form.tsx +0 -0
- package/src/{molecules → components/molecules}/Form/index.ts +0 -0
- package/src/{molecules → components/molecules}/Form/stories/Form.mdx +0 -0
- package/src/{molecules → components/molecules}/Form/stories/Form.stories.tsx +2 -1
- package/src/{molecules → components/molecules}/Gift/Gift.tsx +2 -3
- package/src/{molecules → components/molecules}/Gift/GiftContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Gift/GiftImage.tsx +0 -0
- package/src/{molecules → components/molecules}/Gift/index.tsx +0 -0
- package/src/{molecules → components/molecules}/Gift/stories/Gift.mdx +0 -0
- package/src/{molecules → components/molecules}/Gift/stories/Gift.stories.tsx +1 -1
- package/src/components/molecules/IconButton/IconButton.stories.mdx +47 -0
- package/src/{molecules → components/molecules}/LoadingButton/LoadingButton.tsx +3 -8
- package/src/{molecules → components/molecules}/LoadingButton/index.tsx +0 -0
- package/src/{molecules → components/molecules}/LoadingButton/stories/LoadingButton.mdx +0 -0
- package/src/{molecules → components/molecules}/LoadingButton/stories/LoadingButton.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Modal/Modal.tsx +0 -0
- package/src/{molecules → components/molecules}/Modal/ModalContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Modal/index.tsx +0 -0
- package/src/{molecules → components/molecules}/Modal/stories/Modal.mdx +0 -0
- package/src/{molecules → components/molecules}/Modal/stories/Modal.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Modal/useTrapFocus.ts +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/OrderSummary.tsx +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/index.tsx +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/stories/OrderSummary.mdx +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/stories/OrderSummary.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/PaymentMethods.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/index.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/stories/PaymentMethods.mdx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/stories/PaymentMethods.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/stories/assets/Icons.tsx +0 -0
- package/src/{molecules → components/molecules}/PriceRange/PriceRange.tsx +0 -0
- package/src/{molecules → components/molecules}/PriceRange/index.ts +0 -0
- package/src/{molecules → components/molecules}/PriceRange/stories/PriceRange.mdx +0 -0
- package/src/{molecules → components/molecules}/PriceRange/stories/PriceRange.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/ProductCard/ProductCard.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/ProductCardActions.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/ProductCardContent.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/ProductCardImage.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/index.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/stories/ProductCard.mdx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/stories/ProductCard.stories.tsx +1 -2
- package/src/{molecules → components/molecules}/ProductTitle/ProductTitle.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductTitle/index.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductTitle/stories/ProductTitle.mdx +0 -0
- package/src/{molecules → components/molecules}/ProductTitle/stories/ProductTitle.stories.tsx +3 -3
- package/src/{molecules → components/molecules}/QuantitySelector/QuantitySelector.tsx +2 -2
- package/src/{molecules → components/molecules}/QuantitySelector/index.ts +0 -0
- package/src/{molecules → components/molecules}/QuantitySelector/stories/QuantitySelector.mdx +0 -0
- package/src/{molecules → components/molecules}/QuantitySelector/stories/QuantitySelector.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/QuantitySelector/stories/assets/Icons.tsx +0 -0
- package/src/components/molecules/RadioField/RadioField.stories.mdx +38 -0
- package/src/components/molecules/RadioField/styles.scss +12 -0
- package/src/{molecules → components/molecules}/RadioGroup/RadioGroup.tsx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/RadioOption.tsx +1 -1
- package/src/{molecules → components/molecules}/RadioGroup/index.tsx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/stories/RadioGroup.mdx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/stories/RadioGroup.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/useRadioGroup.ts +0 -0
- package/src/{molecules → components/molecules}/SearchInput/SearchInput.tsx +2 -3
- package/src/{molecules → components/molecules}/SearchInput/index.ts +0 -0
- package/src/{molecules → components/molecules}/SearchInput/stories/SearchInput.mdx +0 -0
- package/src/{molecules → components/molecules}/SearchInput/stories/SearchInput.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/SearchInput/stories/assets/CustomIcon.tsx +0 -0
- package/src/{molecules → components/molecules}/SkuSelector/SkuSelector.tsx +3 -2
- package/src/{molecules → components/molecules}/SkuSelector/index.tsx +0 -0
- package/src/{molecules → components/molecules}/SkuSelector/stories/SkuSelector.mdx +0 -0
- package/src/{molecules → components/molecules}/SkuSelector/stories/SkuSelector.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Table/Table.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableBody.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableCell.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableFooter.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableHead.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableRow.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/index.ts +0 -0
- package/src/{molecules → components/molecules}/Table/stories/Table.mdx +0 -0
- package/src/{molecules → components/molecules}/Table/stories/Table.stories.tsx +0 -0
- package/src/components/molecules/Tag/Tag.stories.mdx +31 -0
- package/src/components/molecules/Tag/styles.scss +99 -0
- package/src/{organisms → components/organisms}/Hero/Hero.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/HeroHeading.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/HeroImage.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/index.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/stories/Hero.mdx +0 -0
- package/src/{organisms → components/organisms}/Hero/stories/Hero.stories.tsx +1 -1
- package/src/{organisms → components/organisms}/OutOfStock/OutOfStock.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/OutOfStockMessage.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/OutOfStockTitle.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/index.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/stories/OutOfStock.mdx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/stories/OutOfStock.stories.tsx +1 -1
- package/src/{organisms → components/organisms}/Tiles/Tile.tsx +0 -0
- package/src/{organisms → components/organisms}/Tiles/Tiles.tsx +0 -0
- package/src/{organisms → components/organisms}/Tiles/index.ts +0 -0
- package/src/{organisms → components/organisms}/Tiles/stories/Tiles.mdx +0 -0
- package/src/{organisms → components/organisms}/Tiles/stories/Tiles.stories.tsx +0 -0
- package/src/index.ts +97 -99
- package/src/styles/base.scss +3 -0
- package/src/styles/components.scss +10 -0
- package/src/styles/global.scss +4 -0
- package/src/styles/reset.scss +54 -0
- package/src/styles/utilities.scss +75 -0
- package/src/typings/utils.d.ts +2 -2
- package/dist/assets/index.d.ts +0 -2
- package/dist/assets/index.js +0 -3
- package/dist/assets/index.js.map +0 -1
- package/src/atoms/Badge/Badge.test.tsx +0 -23
- package/src/atoms/Badge/Badge.tsx +0 -23
- package/src/atoms/Badge/index.ts +0 -2
- package/src/atoms/Badge/stories/Badge.mdx +0 -18
- package/src/atoms/Badge/stories/Badge.stories.tsx +0 -37
- package/src/atoms/Button/Button.test.tsx +0 -12
- package/src/atoms/Button/Button.tsx +0 -23
- package/src/atoms/Button/index.ts +0 -2
- package/src/atoms/Button/stories/Button.mdx +0 -18
- package/src/atoms/Button/stories/Button.stories.tsx +0 -36
- package/src/atoms/Checkbox/Checkbox.test.tsx +0 -65
- package/src/atoms/Checkbox/Checkbox.tsx +0 -27
- package/src/atoms/Checkbox/index.ts +0 -2
- package/src/atoms/Checkbox/stories/Checkbox.mdx +0 -18
- package/src/atoms/Checkbox/stories/Checkbox.stories.tsx +0 -65
- package/src/atoms/Icon/Icon.test.tsx +0 -43
- package/src/atoms/Icon/Icon.tsx +0 -26
- package/src/atoms/Icon/index.ts +0 -2
- package/src/atoms/Icon/stories/Icon.mdx +0 -18
- package/src/atoms/Icon/stories/Icon.stories.tsx +0 -40
- package/src/atoms/Icon/stories/assets/ShoppingCart.tsx +0 -23
- package/src/atoms/Incentive/Incentive.test.tsx +0 -36
- package/src/atoms/Input/Input.test.tsx +0 -73
- package/src/atoms/Label/Label.test.tsx +0 -71
- package/src/atoms/Label/Label.tsx +0 -22
- package/src/atoms/Label/index.ts +0 -2
- package/src/atoms/Label/stories/Label.mdx +0 -18
- package/src/atoms/Label/stories/Label.stories.tsx +0 -30
- package/src/atoms/Link/Link.test.tsx +0 -53
- package/src/atoms/List/List.test.tsx +0 -195
- package/src/atoms/Overlay/Overlay.test.tsx +0 -23
- package/src/atoms/Popover/Popover.test.tsx +0 -39
- package/src/atoms/Price/Price.test.tsx +0 -63
- package/src/atoms/Radio/Radio.test.tsx +0 -59
- package/src/atoms/Radio/Radio.tsx +0 -24
- package/src/atoms/Radio/index.ts +0 -2
- package/src/atoms/Radio/stories/Radio.mdx +0 -18
- package/src/atoms/Radio/stories/Radio.stories.tsx +0 -41
- package/src/atoms/Select/Select.test.tsx +0 -71
- package/src/atoms/Skeleton/Skeleton.test.tsx +0 -13
- package/src/atoms/Slider/Slider.test.tsx +0 -32
- package/src/atoms/Spinner/Spinner.test.tsx +0 -12
- package/src/atoms/TextArea/TextArea.test.tsx +0 -77
- package/src/hooks/useSlider/useSlider.test.ts +0 -176
- package/src/molecules/Accordion/Accordion.test.tsx +0 -226
- package/src/molecules/AggregateRating/AggregateRating.test.tsx +0 -87
- package/src/molecules/Alert/Alert.test.tsx +0 -23
- package/src/molecules/Banner/Banner.test.tsx +0 -67
- package/src/molecules/Breadcrumb/Breadcrumb.test.tsx +0 -124
- package/src/molecules/Bullets/Bullets.test.tsx +0 -128
- package/src/molecules/Card/Card.test.tsx +0 -68
- package/src/molecules/Carousel/Carousel.test.tsx +0 -587
- package/src/molecules/Carousel/hooks/hooks.test.ts +0 -109
- package/src/molecules/CartItem/CartItem.test.tsx +0 -79
- package/src/molecules/Dropdown/Dropdown.test.tsx +0 -275
- package/src/molecules/Form/Form.test.tsx +0 -61
- package/src/molecules/Gift/Gift.test.tsx +0 -53
- package/src/molecules/IconButton/IconButton.test.tsx +0 -31
- package/src/molecules/IconButton/IconButton.tsx +0 -35
- package/src/molecules/IconButton/index.tsx +0 -2
- package/src/molecules/IconButton/stories/IconButton.mdx +0 -27
- package/src/molecules/IconButton/stories/IconButton.stories.tsx +0 -35
- package/src/molecules/LoadingButton/LoadingButton.test.tsx +0 -14
- package/src/molecules/Modal/Modal.test.tsx +0 -241
- package/src/molecules/OrderSummary/OrderSummary.test.tsx +0 -103
- package/src/molecules/PaymentMethods/PaymentMethods.test.tsx +0 -37
- package/src/molecules/PriceRange/PriceRange.test.tsx +0 -70
- package/src/molecules/ProductCard/ProductCard.test.tsx +0 -75
- package/src/molecules/QuantitySelector/QuantitySelector.test.tsx +0 -93
- package/src/molecules/RadioGroup/RadioGroup.test.tsx +0 -107
- package/src/molecules/SearchInput/SearchInput.test.tsx +0 -34
- package/src/molecules/SkuSelector/SkuSelector.test.tsx +0 -42
- package/src/molecules/Table/Table.test.tsx +0 -233
- package/src/organisms/Hero/Hero.test.tsx +0 -60
- package/src/organisms/OutOfStock/OutOfStock.test.tsx +0 -122
- package/src/setupTests.ts +0 -7
- package/src/utils/toHaveNoIncomplete.ts +0 -76
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
+
|
|
3
|
+
import { Radio, Label } from '@faststore/components'
|
|
4
|
+
|
|
5
|
+
<Meta
|
|
6
|
+
title="Atoms/Radio"
|
|
7
|
+
component={Radio}
|
|
8
|
+
argTypes={{
|
|
9
|
+
disabled: {
|
|
10
|
+
type: {
|
|
11
|
+
name: 'boolean',
|
|
12
|
+
},
|
|
13
|
+
description: 'Disabled this input. <br/> `boolean`',
|
|
14
|
+
defaultValue: false,
|
|
15
|
+
},
|
|
16
|
+
testId: {
|
|
17
|
+
table: {
|
|
18
|
+
disable: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
}}
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
export const Template = (args) => (
|
|
25
|
+
<>
|
|
26
|
+
<Radio {...args} onChange={() => {}} />
|
|
27
|
+
<Label htmlFor="radio-default">Radio</Label>
|
|
28
|
+
</>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
<header>
|
|
32
|
+
|
|
33
|
+
# Radio
|
|
34
|
+
|
|
35
|
+
Radios allow users to select one option from a set.
|
|
36
|
+
|
|
37
|
+
</header>
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
|
|
41
|
+
<Canvas>
|
|
42
|
+
<Story
|
|
43
|
+
name="overview-default-1"
|
|
44
|
+
args={{
|
|
45
|
+
id: 'overview-radio-default-1',
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
48
|
+
{Template.bind({})}
|
|
49
|
+
</Story>
|
|
50
|
+
<Story
|
|
51
|
+
name="overview-default-2"
|
|
52
|
+
args={{
|
|
53
|
+
id: 'overview-radio-default-2',
|
|
54
|
+
checked: true,
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
{Template.bind({})}
|
|
58
|
+
</Story>
|
|
59
|
+
<Story
|
|
60
|
+
name="overview-default-3"
|
|
61
|
+
args={{
|
|
62
|
+
id: 'overview-radio-default-3',
|
|
63
|
+
disabled: true,
|
|
64
|
+
}}
|
|
65
|
+
>
|
|
66
|
+
{Template.bind({})}
|
|
67
|
+
</Story>
|
|
68
|
+
<Story
|
|
69
|
+
name="overview-default-4"
|
|
70
|
+
args={{
|
|
71
|
+
id: 'overview-radio-default-4',
|
|
72
|
+
disabled: true,
|
|
73
|
+
checked: true,
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
{Template.bind({})}
|
|
77
|
+
</Story>
|
|
78
|
+
</Canvas>
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Usage
|
|
83
|
+
|
|
84
|
+
```jsx
|
|
85
|
+
import Radio from '@faststore/ui'
|
|
86
|
+
// Styles
|
|
87
|
+
import '@faststore/ui/src/components/atoms/Radio/styles.scss'
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
<Canvas>
|
|
91
|
+
<Story
|
|
92
|
+
name="default"
|
|
93
|
+
args={{
|
|
94
|
+
id: 'radio-default',
|
|
95
|
+
}}
|
|
96
|
+
>
|
|
97
|
+
{Template.bind({})}
|
|
98
|
+
</Story>
|
|
99
|
+
</Canvas>
|
|
100
|
+
|
|
101
|
+
<ArgsTable story="default" />
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
[data-fs-radio] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for radio
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-radio-width : 1.25rem;
|
|
8
|
+
--fs-radio-height : var(--fs-radio-width);
|
|
9
|
+
|
|
10
|
+
--fs-radio-border-width : var(--fs-border-width);
|
|
11
|
+
--fs-radio-border-radius : var(--fs-border-radius-circle);
|
|
12
|
+
--fs-radio-border-color : var(--fs-border-color);
|
|
13
|
+
--fs-radio-border-color-hover : var(--fs-border-color-hover);
|
|
14
|
+
|
|
15
|
+
--fs-radio-transition : border var(--fs-transition-timing) var(--fs-transition-function), background-color var(--fs-transition-timing) var(--fs-transition-function), box-shadow var(--fs-transition-timing) var(--fs-transition-function);
|
|
16
|
+
|
|
17
|
+
--fs-radio-bkg-color-hover : var(--fs-color-primary-bkg-light);
|
|
18
|
+
--fs-radio-shadow-hover : 0 0 0 var(--fs-radio-border-width) var(--fs-border-color-active);
|
|
19
|
+
|
|
20
|
+
// Knob
|
|
21
|
+
--fs-radio-knob-width : var(--fs-spacing-1);
|
|
22
|
+
--fs-radio-knob-height : var(--fs-radio-knob-width);
|
|
23
|
+
--fs-radio-knob-bkg-color : var(--fs-color-body-bkg);
|
|
24
|
+
--fs-radio-knob-disabled-bkg-color : var(--fs-color-neutral-5);
|
|
25
|
+
|
|
26
|
+
// Checked
|
|
27
|
+
--fs-radio-checked-bkg-color : var(--fs-color-primary-bkg);
|
|
28
|
+
--fs-radio-checked-bkg-color-hover : var(--fs-color-primary-bkg-hover);
|
|
29
|
+
|
|
30
|
+
// Disabled
|
|
31
|
+
--fs-radio-disabled-bkg-color : var(--fs-color-disabled-bkg);
|
|
32
|
+
--fs-radio-disabled-border-width : var(--fs-radio-border-width);
|
|
33
|
+
--fs-radio-disabled-border-color : var(--fs-border-color-disabled);
|
|
34
|
+
--fs-radio-disabled-text-color : var(--fs-color-disabled-text);
|
|
35
|
+
|
|
36
|
+
position: relative;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: var(--fs-radio-width);
|
|
42
|
+
height: var(--fs-radio-height);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
border: var(--fs-radio-border-width) solid var(--fs-radio-border-color);
|
|
45
|
+
border-radius: var(--fs-radio-border-radius);
|
|
46
|
+
outline: none;
|
|
47
|
+
transition: var(--fs-radio-transition);
|
|
48
|
+
appearance: none;
|
|
49
|
+
|
|
50
|
+
@include input-focus-ring;
|
|
51
|
+
|
|
52
|
+
&::before {
|
|
53
|
+
width: var(--fs-radio-knob-width);
|
|
54
|
+
height: var(--fs-radio-knob-height);
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
content: "";
|
|
57
|
+
background-color: var(--fs-radio-knob-bkg-color);
|
|
58
|
+
border-radius: var(--fs-radio-border-radius);
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:hover:not(:disabled) {
|
|
63
|
+
background-color: var(--fs-radio-bkg-color-hover);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover:not(:disabled):not(:focus-visible):not(:focus) {
|
|
67
|
+
border-color: var(--fs-radio-border-color-hover);
|
|
68
|
+
box-shadow: var(--fs-radio-shadow-hover);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:checked {
|
|
72
|
+
background-color: var(--fs-radio-checked-bkg-color);
|
|
73
|
+
border: none;
|
|
74
|
+
|
|
75
|
+
&::before {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:hover:not(:disabled) {
|
|
80
|
+
background-color: var(--fs-radio-checked-bkg-color-hover);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:hover:not(:disabled):not(:focus-visible):not(:focus) {
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:disabled {
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
background-color: var(--fs-radio-disabled-bkg-color);
|
|
91
|
+
border: var(--fs-radio-disabled-border-width) solid var(--fs-radio-disabled-border-color);
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
background-color: var(--fs-radio-knob-disabled-bkg-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:checked {
|
|
98
|
+
&::before {
|
|
99
|
+
background-color: var(--fs-radio-knob-disabled-bkg-color);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
+ label {
|
|
104
|
+
color: var(--fs-radio-disabled-text-color);
|
|
105
|
+
cursor: not-allowed;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Story } from '@storybook/react'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
import type { ComponentArgTypes } from '
|
|
4
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
5
5
|
import type { SelectProps } from '../Select'
|
|
6
6
|
import Component from '../Select'
|
|
7
7
|
import mdx from './Select.mdx'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, Story } from '@storybook/react'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
import type { ComponentArgTypes } from '
|
|
4
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
5
5
|
import type { SliderProps } from '../Slider'
|
|
6
6
|
import Component from '../Slider'
|
|
7
7
|
import mdx from './Slider.mdx'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ import type { Story, Meta } from '@storybook/react'
|
|
|
4
4
|
import Component from '../TextArea'
|
|
5
5
|
import type { TextAreaProps } from '../TextArea'
|
|
6
6
|
import mdx from './TextArea.mdx'
|
|
7
|
-
import type { ComponentArgTypes } from '
|
|
7
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
8
8
|
|
|
9
9
|
const TextAreaTemplate: Story<TextAreaProps> = (props) => (
|
|
10
10
|
<Component {...props} aria-label="Textarea" />
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes } from 'react'
|
|
2
1
|
import React, { forwardRef } from 'react'
|
|
3
2
|
|
|
4
|
-
import Button from '../../atoms/Button'
|
|
5
3
|
import { useAccordion } from './Accordion'
|
|
6
4
|
import { useAccordionItem } from './AccordionItem'
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import { Button } from '@faststore/components'
|
|
7
|
+
import type { ButtonProps } from '@faststore/components'
|
|
8
|
+
|
|
9
|
+
export interface AccordionButtonProps extends ButtonProps {
|
|
10
10
|
/**
|
|
11
11
|
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, forwardRef, createContext } from 'react'
|
|
2
2
|
import type { ElementType, FC, HTMLAttributes, ReactElement } from 'react'
|
|
3
|
-
import type { PolymorphicComponentPropsWithRef, PolymorphicRef } from '
|
|
3
|
+
import type { PolymorphicComponentPropsWithRef, PolymorphicRef } from '../../../typings'
|
|
4
4
|
|
|
5
5
|
interface AccordionItemContext {
|
|
6
6
|
index: number
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,7 +7,7 @@ import AccordionButton from '../AccordionButton'
|
|
|
7
7
|
import AccordionPanel from '../AccordionPanel'
|
|
8
8
|
import type { AccordionProps } from '..'
|
|
9
9
|
import mdx from './Accordion.mdx'
|
|
10
|
-
import { Icon } from '
|
|
10
|
+
import { Icon } from '../../../../'
|
|
11
11
|
|
|
12
12
|
const Caret = () => (
|
|
13
13
|
<svg
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/{molecules → components/molecules}/AggregateRating/stories/AggregateRating.stories.tsx
RENAMED
|
@@ -2,7 +2,7 @@ import type { Story } from '@storybook/react'
|
|
|
2
2
|
import type { FC } from 'react'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import type { ComponentArgTypes } from '
|
|
5
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
6
6
|
import type { AggregateRatingProps, RatingItemProps } from '../AggregateRating'
|
|
7
7
|
import Component from '../AggregateRating'
|
|
8
8
|
import mdx from './AggregateRating.mdx'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,9 +3,9 @@ import React from 'react'
|
|
|
3
3
|
|
|
4
4
|
import type { AlertProps } from '../Alert'
|
|
5
5
|
import Component from '../Alert'
|
|
6
|
-
import
|
|
6
|
+
import { ShoppingCart } from '../../../../assets'
|
|
7
7
|
import mdx from './Alert.mdx'
|
|
8
|
-
import { Icon } from '
|
|
8
|
+
import { Icon } from '../../../../'
|
|
9
9
|
|
|
10
10
|
const AlertTemplate: Story<AlertProps> = ({ children }) => (
|
|
11
11
|
<Component>{children}</Component>
|
|
@@ -20,7 +20,7 @@ export const AlertWithIcon = AlertTemplate.bind({})
|
|
|
20
20
|
AlertWithIcon.args = {
|
|
21
21
|
children: (
|
|
22
22
|
<>
|
|
23
|
-
<Icon component={<
|
|
23
|
+
<Icon component={<ShoppingCart />} />
|
|
24
24
|
<span>Alert</span>
|
|
25
25
|
</>
|
|
26
26
|
),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ import BannerImage from '../BannerImage'
|
|
|
6
6
|
import BannerContent from '../BannerContent'
|
|
7
7
|
import BannerLink from '../BannerLink'
|
|
8
8
|
import type { BannerProps } from '../Banner'
|
|
9
|
-
import { Icon } from '
|
|
9
|
+
import { Icon } from '../../../../'
|
|
10
10
|
import mdx from './Banner.mdx'
|
|
11
11
|
|
|
12
12
|
const RightArrow = () => (
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Story } from '@storybook/react'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
import type { ComponentArgTypes } from '
|
|
4
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
5
5
|
import type { BreadcrumbProps } from '../Breadcrumb'
|
|
6
6
|
import Component from '../Breadcrumb'
|
|
7
7
|
import mdx from './Breadcrumb.mdx'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, MouseEvent } from 'react'
|
|
2
2
|
import React, { forwardRef, useMemo } from 'react'
|
|
3
3
|
|
|
4
|
-
import Button from '
|
|
4
|
+
import { Button } from '@faststore/components'
|
|
5
5
|
|
|
6
6
|
export interface BulletsProps
|
|
7
7
|
extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'role'> {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Story } from '@storybook/react'
|
|
2
2
|
import React, { useEffect, useState } from 'react'
|
|
3
3
|
|
|
4
|
-
import type { ComponentArgTypes } from '
|
|
4
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
5
5
|
import type { BulletsProps } from '../Bullets'
|
|
6
6
|
import Component from '../Bullets'
|
|
7
7
|
import mdx from './Bullets.mdx'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Meta, Story } from '@storybook/react'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
// Atoms
|
|
5
|
-
import Icon from '
|
|
5
|
+
import { Icon } from '@faststore/components'
|
|
6
6
|
// Card components
|
|
7
|
+
import type { CardProps } from '../Card'
|
|
7
8
|
import CardComponent from '../Card'
|
|
8
|
-
import CardImage from '../CardImage'
|
|
9
|
-
import CardContent from '../CardContent'
|
|
10
9
|
import CardActions from '../CardActions'
|
|
11
|
-
import
|
|
10
|
+
import CardContent from '../CardContent'
|
|
11
|
+
import CardImage from '../CardImage'
|
|
12
12
|
import mdx from './Card.mdx'
|
|
13
13
|
|
|
14
14
|
const RightArrow = () => (
|
|
File without changes
|
|
@@ -10,9 +10,9 @@ import type { SwipeableProps } from 'react-swipeable'
|
|
|
10
10
|
|
|
11
11
|
import { RightArrowIcon, LeftArrowIcon } from './Arrows'
|
|
12
12
|
import CarouselItem from './CarouselItem'
|
|
13
|
-
import useSlider from '
|
|
13
|
+
import useSlider from '../../../hooks/useSlider/useSlider'
|
|
14
14
|
import Bullets from '../Bullets'
|
|
15
|
-
import IconButton from '
|
|
15
|
+
import { IconButton } from '../../../index'
|
|
16
16
|
|
|
17
17
|
const createTransformValues = (infinite: boolean, totalItems: number) => {
|
|
18
18
|
const transformMap: Record<number, number> = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import type { CSSProperties, PropsWithChildren, HTMLAttributes } from 'react'
|
|
3
|
-
import type { SliderState } from '
|
|
3
|
+
import type { SliderState } from '../../../hooks/useSlider/useSlider'
|
|
4
4
|
|
|
5
5
|
import useSlideVisibility from './hooks/useSlideVisibility'
|
|
6
6
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import type { Story } from '@storybook/react'
|
|
3
3
|
|
|
4
|
-
import type { ComponentArgTypes } from '
|
|
4
|
+
import type { ComponentArgTypes } from '../../../../typings/utils'
|
|
5
5
|
import Component from '../Carousel'
|
|
6
6
|
import type { CarouselProps } from '../Carousel'
|
|
7
7
|
import mdx from './Carousel.mdx'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ import CartItem, {
|
|
|
8
8
|
CartItemSummary,
|
|
9
9
|
CartItemTitle,
|
|
10
10
|
} from '../'
|
|
11
|
-
import { Button, Price, QuantitySelector } from '
|
|
11
|
+
import { Button, Price, QuantitySelector } from '../../../../'
|
|
12
12
|
import mdx from './CartItem.mdx'
|
|
13
13
|
|
|
14
14
|
import type { Meta, Story } from '@storybook/react'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
+
|
|
3
|
+
import { CheckboxField } from '@faststore/components'
|
|
4
|
+
|
|
5
|
+
<Meta title="Molecules/CheckboxField" component={CheckboxField} argTypes={{}} />
|
|
6
|
+
|
|
7
|
+
export const Template = (args) => (
|
|
8
|
+
<CheckboxField id="checkbox-field" label="CheckboxField" />
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
<header>
|
|
12
|
+
|
|
13
|
+
# CheckboxField
|
|
14
|
+
|
|
15
|
+
CheckboxField is composed of a Checkbox input and its corresponding Label. It allows users to select one option from a set.
|
|
16
|
+
|
|
17
|
+
</header>
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
import CheckboxField from '@faststore/ui'
|
|
23
|
+
// Styles
|
|
24
|
+
import '@faststore/ui/src/components/molecules/CheckboxField/styles.scss'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
<Canvas>
|
|
28
|
+
<Story
|
|
29
|
+
name="default"
|
|
30
|
+
args={{
|
|
31
|
+
id: 'checkbox-default',
|
|
32
|
+
}}
|
|
33
|
+
>
|
|
34
|
+
{Template.bind({})}
|
|
35
|
+
</Story>
|
|
36
|
+
</Canvas>
|
|
37
|
+
|
|
38
|
+
<ArgsTable story="default" />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[data-fs-checkbox-field] {
|
|
2
|
+
// --------------------------------------------------------
|
|
3
|
+
// Design Tokens for Checkbox Field
|
|
4
|
+
// --------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
// Default properties
|
|
7
|
+
--fs-checkbox-field-gap : var(--fs-spacing-1);
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
column-gap: var(--fs-checkbox-field-gap);
|
|
12
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|