@faststore/ui 1.12.4 → 1.12.11

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.
Files changed (209) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/atoms/Badge/Badge.js +1 -1
  3. package/dist/atoms/Badge/Badge.js.map +1 -1
  4. package/dist/atoms/Button/Button.js +1 -1
  5. package/dist/atoms/Button/Button.js.map +1 -1
  6. package/dist/atoms/Checkbox/Checkbox.js +1 -1
  7. package/dist/atoms/Checkbox/Checkbox.js.map +1 -1
  8. package/dist/atoms/Icon/Icon.js +1 -1
  9. package/dist/atoms/Icon/Icon.js.map +1 -1
  10. package/dist/atoms/Incentive/Incentive.js +1 -1
  11. package/dist/atoms/Incentive/Incentive.js.map +1 -1
  12. package/dist/atoms/Input/Input.js +1 -1
  13. package/dist/atoms/Input/Input.js.map +1 -1
  14. package/dist/atoms/Label/Label.js +1 -1
  15. package/dist/atoms/Label/Label.js.map +1 -1
  16. package/dist/atoms/Link/Link.js +1 -1
  17. package/dist/atoms/Link/Link.js.map +1 -1
  18. package/dist/atoms/List/List.js +1 -1
  19. package/dist/atoms/List/List.js.map +1 -1
  20. package/dist/atoms/Overlay/Overlay.js +1 -1
  21. package/dist/atoms/Overlay/Overlay.js.map +1 -1
  22. package/dist/atoms/Popover/Popover.js +1 -1
  23. package/dist/atoms/Popover/Popover.js.map +1 -1
  24. package/dist/atoms/Price/Price.js +1 -1
  25. package/dist/atoms/Price/Price.js.map +1 -1
  26. package/dist/atoms/Radio/Radio.js +1 -1
  27. package/dist/atoms/Radio/Radio.js.map +1 -1
  28. package/dist/atoms/Select/Select.js +1 -1
  29. package/dist/atoms/Select/Select.js.map +1 -1
  30. package/dist/atoms/Skeleton/Skeleton.js +1 -1
  31. package/dist/atoms/Skeleton/Skeleton.js.map +1 -1
  32. package/dist/atoms/Slider/Slider.js +1 -1
  33. package/dist/atoms/Slider/Slider.js.map +1 -1
  34. package/dist/atoms/Spinner/Spinner.js +1 -1
  35. package/dist/atoms/Spinner/Spinner.js.map +1 -1
  36. package/dist/atoms/TextArea/TextArea.js +1 -1
  37. package/dist/atoms/TextArea/TextArea.js.map +1 -1
  38. package/dist/molecules/Accordion/Accordion.js +1 -1
  39. package/dist/molecules/Accordion/Accordion.js.map +1 -1
  40. package/dist/molecules/AggregateRating/AggregateRating.d.ts +1 -1
  41. package/dist/molecules/AggregateRating/AggregateRating.js +2 -2
  42. package/dist/molecules/AggregateRating/AggregateRating.js.map +1 -1
  43. package/dist/molecules/Alert/Alert.js +1 -1
  44. package/dist/molecules/Alert/Alert.js.map +1 -1
  45. package/dist/molecules/Banner/Banner.js +1 -1
  46. package/dist/molecules/Banner/Banner.js.map +1 -1
  47. package/dist/molecules/Breadcrumb/Breadcrumb.js +1 -1
  48. package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -1
  49. package/dist/molecules/Bullets/Bullets.js +1 -1
  50. package/dist/molecules/Bullets/Bullets.js.map +1 -1
  51. package/dist/molecules/Card/Card.js +1 -1
  52. package/dist/molecules/Card/Card.js.map +1 -1
  53. package/dist/molecules/Carousel/Carousel.js +1 -1
  54. package/dist/molecules/Carousel/Carousel.js.map +1 -1
  55. package/dist/molecules/Dropdown/DropdownButton.js +1 -1
  56. package/dist/molecules/Dropdown/DropdownButton.js.map +1 -1
  57. package/dist/molecules/Dropdown/DropdownItem.js +1 -1
  58. package/dist/molecules/Dropdown/DropdownItem.js.map +1 -1
  59. package/dist/molecules/Dropdown/DropdownMenu.js +2 -2
  60. package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -1
  61. package/dist/molecules/Form/Form.js +1 -1
  62. package/dist/molecules/Form/Form.js.map +1 -1
  63. package/dist/molecules/IconButton/IconButton.js +1 -1
  64. package/dist/molecules/IconButton/IconButton.js.map +1 -1
  65. package/dist/molecules/LoadingButton/LoadingButton.js +1 -1
  66. package/dist/molecules/LoadingButton/LoadingButton.js.map +1 -1
  67. package/dist/molecules/Modal/ModalContent.js +1 -1
  68. package/dist/molecules/Modal/ModalContent.js.map +1 -1
  69. package/dist/molecules/PaymentMethods/PaymentMethods.js +1 -1
  70. package/dist/molecules/PaymentMethods/PaymentMethods.js.map +1 -1
  71. package/dist/molecules/PriceRange/PriceRange.js +1 -1
  72. package/dist/molecules/PriceRange/PriceRange.js.map +1 -1
  73. package/dist/molecules/ProductCard/ProductCard.js +1 -1
  74. package/dist/molecules/ProductCard/ProductCard.js.map +1 -1
  75. package/dist/molecules/QuantitySelector/QuantitySelector.js +1 -1
  76. package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -1
  77. package/dist/molecules/RadioGroup/RadioOption.js +2 -2
  78. package/dist/molecules/RadioGroup/RadioOption.js.map +1 -1
  79. package/dist/molecules/SearchInput/SearchInput.js +1 -1
  80. package/dist/molecules/SearchInput/SearchInput.js.map +1 -1
  81. package/dist/molecules/Table/Table.d.ts +1 -1
  82. package/dist/molecules/Table/Table.js +1 -1
  83. package/dist/molecules/Table/Table.js.map +1 -1
  84. package/dist/organisms/Hero/Hero.js +1 -1
  85. package/dist/organisms/Hero/Hero.js.map +1 -1
  86. package/dist/organisms/OutOfStock/OutOfStock.js +1 -1
  87. package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -1
  88. package/package.json +3 -3
  89. package/src/atoms/Badge/Badge.test.tsx +2 -2
  90. package/src/atoms/Badge/Badge.tsx +1 -1
  91. package/src/atoms/Badge/stories/Badge.mdx +1 -1
  92. package/src/atoms/Button/Button.test.tsx +2 -2
  93. package/src/atoms/Button/Button.tsx +1 -1
  94. package/src/atoms/Button/stories/Button.mdx +1 -1
  95. package/src/atoms/Checkbox/Checkbox.test.tsx +2 -2
  96. package/src/atoms/Checkbox/Checkbox.tsx +1 -1
  97. package/src/atoms/Checkbox/stories/Checkbox.mdx +1 -1
  98. package/src/atoms/Icon/Icon.test.tsx +2 -2
  99. package/src/atoms/Icon/Icon.tsx +1 -1
  100. package/src/atoms/Icon/stories/Icon.mdx +1 -1
  101. package/src/atoms/Incentive/Incentive.test.tsx +2 -2
  102. package/src/atoms/Incentive/Incentive.tsx +1 -1
  103. package/src/atoms/Incentive/stories/Incentive.mdx +1 -1
  104. package/src/atoms/Input/Input.test.tsx +2 -2
  105. package/src/atoms/Input/Input.tsx +1 -1
  106. package/src/atoms/Input/stories/Input.mdx +1 -1
  107. package/src/atoms/Label/Label.test.tsx +2 -2
  108. package/src/atoms/Label/Label.tsx +1 -1
  109. package/src/atoms/Label/stories/Label.mdx +1 -1
  110. package/src/atoms/Link/Link.test.tsx +3 -3
  111. package/src/atoms/Link/Link.tsx +1 -1
  112. package/src/atoms/Link/stories/Link.mdx +1 -1
  113. package/src/atoms/List/List.test.tsx +5 -5
  114. package/src/atoms/List/List.tsx +1 -1
  115. package/src/atoms/List/stories/List.mdx +2 -2
  116. package/src/atoms/Overlay/Overlay.test.tsx +2 -2
  117. package/src/atoms/Overlay/Overlay.tsx +1 -1
  118. package/src/atoms/Overlay/stories/Overlay.mdx +1 -1
  119. package/src/atoms/Popover/Popover.test.tsx +2 -2
  120. package/src/atoms/Popover/Popover.tsx +1 -1
  121. package/src/atoms/Popover/stories/Popover.mdx +1 -1
  122. package/src/atoms/Price/Price.test.tsx +2 -2
  123. package/src/atoms/Price/Price.tsx +1 -1
  124. package/src/atoms/Price/stories/Price.mdx +1 -1
  125. package/src/atoms/Price/stories/Price.stories.tsx +1 -1
  126. package/src/atoms/Radio/Radio.test.tsx +2 -2
  127. package/src/atoms/Radio/Radio.tsx +1 -1
  128. package/src/atoms/Radio/stories/Radio.mdx +1 -1
  129. package/src/atoms/Select/Select.test.tsx +2 -2
  130. package/src/atoms/Select/Select.tsx +1 -1
  131. package/src/atoms/Select/stories/Select.mdx +1 -1
  132. package/src/atoms/Skeleton/Skeleton.test.tsx +2 -2
  133. package/src/atoms/Skeleton/Skeleton.tsx +1 -1
  134. package/src/atoms/Skeleton/stories/Skeleton.mdx +1 -1
  135. package/src/atoms/Slider/Slider.test.tsx +2 -2
  136. package/src/atoms/Slider/Slider.tsx +1 -1
  137. package/src/atoms/Slider/stories/Slider.mdx +1 -1
  138. package/src/atoms/Spinner/Spinner.test.tsx +2 -2
  139. package/src/atoms/Spinner/Spinner.tsx +1 -1
  140. package/src/atoms/Spinner/stories/Spinner.mdx +1 -1
  141. package/src/atoms/TextArea/TextArea.test.tsx +2 -2
  142. package/src/atoms/TextArea/TextArea.tsx +1 -1
  143. package/src/atoms/TextArea/stories/TextArea.mdx +1 -1
  144. package/src/molecules/Accordion/Accordion.test.tsx +2 -2
  145. package/src/molecules/Accordion/Accordion.tsx +1 -1
  146. package/src/molecules/Accordion/stories/Accordion.mdx +1 -1
  147. package/src/molecules/AggregateRating/AggregateRating.test.tsx +3 -3
  148. package/src/molecules/AggregateRating/AggregateRating.tsx +3 -3
  149. package/src/molecules/AggregateRating/stories/AggregateRating.mdx +1 -1
  150. package/src/molecules/AggregateRating/stories/AggregateRating.stories.tsx +1 -1
  151. package/src/molecules/Alert/Alert.test.tsx +2 -2
  152. package/src/molecules/Alert/Alert.tsx +1 -1
  153. package/src/molecules/Alert/stories/Alert.mdx +1 -1
  154. package/src/molecules/Banner/Banner.test.tsx +2 -2
  155. package/src/molecules/Banner/Banner.tsx +1 -1
  156. package/src/molecules/Banner/stories/Banner.mdx +2 -2
  157. package/src/molecules/Breadcrumb/Breadcrumb.test.tsx +2 -2
  158. package/src/molecules/Breadcrumb/Breadcrumb.tsx +1 -1
  159. package/src/molecules/Breadcrumb/stories/Breadcrumb.mdx +1 -1
  160. package/src/molecules/Bullets/Bullets.test.tsx +2 -2
  161. package/src/molecules/Bullets/Bullets.tsx +1 -1
  162. package/src/molecules/Bullets/stories/Bullets.mdx +1 -1
  163. package/src/molecules/Card/Card.test.tsx +2 -2
  164. package/src/molecules/Card/Card.tsx +1 -1
  165. package/src/molecules/Card/stories/Card.mdx +1 -1
  166. package/src/molecules/Carousel/Carousel.test.tsx +2 -2
  167. package/src/molecules/Carousel/Carousel.tsx +1 -1
  168. package/src/molecules/Carousel/stories/Carousel.mdx +2 -2
  169. package/src/molecules/Dropdown/DropdownButton.tsx +1 -1
  170. package/src/molecules/Dropdown/DropdownItem.tsx +1 -1
  171. package/src/molecules/Dropdown/DropdownMenu.tsx +2 -2
  172. package/src/molecules/Dropdown/stories/Dropdown.mdx +4 -4
  173. package/src/molecules/Form/Form.test.tsx +2 -2
  174. package/src/molecules/Form/Form.tsx +1 -1
  175. package/src/molecules/Form/stories/Form.mdx +1 -1
  176. package/src/molecules/IconButton/IconButton.test.tsx +2 -2
  177. package/src/molecules/IconButton/IconButton.tsx +1 -1
  178. package/src/molecules/IconButton/stories/IconButton.mdx +1 -1
  179. package/src/molecules/LoadingButton/LoadingButton.test.tsx +2 -2
  180. package/src/molecules/LoadingButton/LoadingButton.tsx +1 -1
  181. package/src/molecules/LoadingButton/stories/LoadingButton.mdx +1 -1
  182. package/src/molecules/Modal/Modal.test.tsx +2 -2
  183. package/src/molecules/Modal/ModalContent.tsx +1 -1
  184. package/src/molecules/Modal/stories/Modal.mdx +1 -1
  185. package/src/molecules/PaymentMethods/PaymentMethods.test.tsx +2 -2
  186. package/src/molecules/PaymentMethods/PaymentMethods.tsx +1 -1
  187. package/src/molecules/PaymentMethods/stories/PaymentMethods.mdx +1 -1
  188. package/src/molecules/PriceRange/PriceRange.test.tsx +2 -2
  189. package/src/molecules/PriceRange/PriceRange.tsx +1 -1
  190. package/src/molecules/PriceRange/stories/PriceRange.mdx +1 -1
  191. package/src/molecules/ProductCard/ProductCard.test.tsx +2 -2
  192. package/src/molecules/ProductCard/ProductCard.tsx +1 -1
  193. package/src/molecules/ProductCard/stories/ProductCard.mdx +1 -1
  194. package/src/molecules/QuantitySelector/QuantitySelector.tsx +1 -1
  195. package/src/molecules/QuantitySelector/stories/QuantitySelector.mdx +1 -1
  196. package/src/molecules/RadioGroup/RadioOption.tsx +2 -2
  197. package/src/molecules/RadioGroup/stories/RadioGroup.mdx +2 -2
  198. package/src/molecules/SearchInput/SearchInput.test.tsx +2 -2
  199. package/src/molecules/SearchInput/SearchInput.tsx +1 -1
  200. package/src/molecules/SearchInput/stories/SearchInput.mdx +1 -1
  201. package/src/molecules/Table/Table.test.tsx +1 -1
  202. package/src/molecules/Table/Table.tsx +1 -1
  203. package/src/molecules/Table/stories/Table.mdx +1 -1
  204. package/src/organisms/Hero/Hero.test.tsx +2 -2
  205. package/src/organisms/Hero/Hero.tsx +1 -1
  206. package/src/organisms/Hero/stories/Hero.mdx +1 -1
  207. package/src/organisms/OutOfStock/OutOfStock.test.tsx +1 -1
  208. package/src/organisms/OutOfStock/OutOfStock.tsx +1 -1
  209. package/src/organisms/OutOfStock/stories/OutOfStock.mdx +1 -1
@@ -13,7 +13,7 @@ const Card = forwardRef<HTMLDivElement, CardProps>(function Card(
13
13
  ref
14
14
  ) {
15
15
  return (
16
- <article ref={ref} data-store-card data-testid={testId} {...otherProps}>
16
+ <article ref={ref} data-fs-card data-testid={testId} {...otherProps}>
17
17
  {children}
18
18
  </article>
19
19
  )
@@ -43,7 +43,7 @@ All Card-related components support all attributes also supported by the `<div>`
43
43
  ## CSS Selectors
44
44
 
45
45
  ```css
46
- [data-store-card] {
46
+ [data-fs-card] {
47
47
  }
48
48
  [data-card-image] {
49
49
  }
@@ -10,7 +10,7 @@ const wait = (amount = 0) =>
10
10
  const SLIDING_TRANSITION_DURATION = 100
11
11
 
12
12
  describe('Carousel component', () => {
13
- it('should have `data-store-carousel` attribute in the section tag', () => {
13
+ it('should have `data-fs-carousel` attribute in the section tag', () => {
14
14
  const { getByTestId } = render(
15
15
  <Carousel>
16
16
  <div>Slide 1</div>
@@ -21,7 +21,7 @@ describe('Carousel component', () => {
21
21
 
22
22
  const carouselSection = getByTestId('store-carousel')
23
23
 
24
- expect(carouselSection).toHaveAttribute('data-store-carousel')
24
+ expect(carouselSection).toHaveAttribute('data-fs-carousel')
25
25
  })
26
26
 
27
27
  it('should have `data-carousel-track-container` and `data-carousel-track` attributes', () => {
@@ -141,7 +141,7 @@ function Carousel({
141
141
  return (
142
142
  <section
143
143
  id={id}
144
- data-store-carousel
144
+ data-fs-carousel
145
145
  data-testid={testId}
146
146
  aria-label="carousel"
147
147
  aria-roledescription="carousel"
@@ -15,7 +15,7 @@ import Carousel from '../Carousel'
15
15
  ## CSS Selectors
16
16
 
17
17
  ```css
18
- [data-store-carousel] {}
18
+ [data-fs-carousel] {}
19
19
 
20
20
  [data-carousel-track-container] {}
21
21
 
@@ -29,7 +29,7 @@ import Carousel from '../Carousel'
29
29
 
30
30
  [data-carousel-bullets] {}
31
31
 
32
- [data-carousel-bullets] [data-store-bullets] {}
32
+ [data-carousel-bullets] [data-fs-bullets] {}
33
33
  ```
34
34
 
35
35
  This components inherits [IconButton](?path=/docs/molecules-iconbutton--default#css-selectors), [Bullets](?path=/docs/molecules-bullets--bullets#css-selectors) css selectors.
@@ -24,7 +24,7 @@ const DropdownButton = forwardRef<HTMLButtonElement, DropdownButtonProps>(
24
24
 
25
25
  return (
26
26
  <button
27
- data-store-dropdown-button
27
+ data-fs-dropdown-button
28
28
  onClick={toggle}
29
29
  data-testid={testId}
30
30
  ref={dropdownButtonRef}
@@ -49,7 +49,7 @@ const DropdownItem = forwardRef<HTMLButtonElement, DropdownItemProps>(
49
49
 
50
50
  return (
51
51
  <button
52
- data-store-dropdown-item
52
+ data-fs-dropdown-item
53
53
  data-testid={testId}
54
54
  ref={addToRefs}
55
55
  onFocus={onFocusItem}
@@ -115,14 +115,14 @@ const DropdownMenu = ({
115
115
  ? createPortal(
116
116
  <div
117
117
  role="presentation"
118
- data-store-dropdown-overlay
118
+ data-fs-dropdown-overlay
119
119
  onKeyDown={handleBackdropKeyDown}
120
120
  data-testid={`${testId}-overlay`}
121
121
  >
122
122
  <div
123
123
  role="menu"
124
124
  aria-orientation="vertical"
125
- data-store-dropdown-menu
125
+ data-fs-dropdown-menu
126
126
  data-testid={testId}
127
127
  style={{ ...dropdownPosition, ...style }}
128
128
  id={id}
@@ -53,11 +53,11 @@ The `Dropdown` uses the [Compound Component](https://kentcdodds.com/blog/compoun
53
53
  ## CSS Selectors
54
54
 
55
55
  ```css
56
- [data-store-dropdown-button] {}
56
+ [data-fs-dropdown-button] {}
57
57
 
58
- [data-store-dropdown-item] {}
58
+ [data-fs-dropdown-item] {}
59
59
 
60
- [data-store-dropdown-overlay] {}
60
+ [data-fs-dropdown-overlay] {}
61
61
 
62
- [data-store-dropdown-menu] {}
62
+ [data-fs-dropdown-menu] {}
63
63
  ```
@@ -37,10 +37,10 @@ const TestForm = ({ onSubmit }: Pick<FormProps, 'onSubmit'>) => (
37
37
  )
38
38
 
39
39
  describe('Form', () => {
40
- it('should have `data-store-form` attribute', () => {
40
+ it('should have `data-fs-form` attribute', () => {
41
41
  const { getByTestId } = render(<TestForm />)
42
42
 
43
- expect(getByTestId('store-form')).toHaveAttribute('data-store-form')
43
+ expect(getByTestId('store-form')).toHaveAttribute('data-fs-form')
44
44
  })
45
45
 
46
46
  describe('Accessibility', () => {
@@ -14,7 +14,7 @@ const Form = forwardRef<HTMLFormElement, FormProps>(function Form(
14
14
  ref
15
15
  ) {
16
16
  return (
17
- <form ref={ref} data-store-form data-testid={testId} {...otherProps}>
17
+ <form ref={ref} data-fs-form data-testid={testId} {...otherProps}>
18
18
  {children}
19
19
  </form>
20
20
  )
@@ -19,5 +19,5 @@ Besides those attributes, the following prop is also supported:
19
19
  ## CSS Selectors
20
20
 
21
21
  ```css
22
- [data-store-form] {}
22
+ [data-fs-form] {}
23
23
  ```
@@ -6,7 +6,7 @@ import IconButton from './IconButton'
6
6
  describe('IconButton', () => {
7
7
  const testId = 'store-icon-button'
8
8
 
9
- it('data-store-icon-button is present', () => {
9
+ it('data-fs-icon-button is present', () => {
10
10
  const { getByTestId } = render(
11
11
  <IconButton testId={testId} aria-label="foo" icon={<div>foo</div>} />
12
12
  )
@@ -14,7 +14,7 @@ describe('IconButton', () => {
14
14
  const iconButton = getByTestId(testId)
15
15
 
16
16
  expect(iconButton).toBeInTheDocument()
17
- expect(iconButton).toHaveAttribute('data-store-icon-button')
17
+ expect(iconButton).toHaveAttribute('data-fs-icon-button')
18
18
  })
19
19
 
20
20
  it('icon is present', () => {
@@ -26,7 +26,7 @@ const IconButton = forwardRef<HTMLButtonElement, Props>(function IconButton(
26
26
  ref
27
27
  ) {
28
28
  return (
29
- <Button ref={ref} data-store-icon-button testId={testId} {...buttonProps}>
29
+ <Button ref={ref} data-fs-icon-button testId={testId} {...buttonProps}>
30
30
  <Icon component={icon} />
31
31
  </Button>
32
32
  )
@@ -21,7 +21,7 @@ import IconButton from '../IconButton'
21
21
 
22
22
  ## CSS Selectors
23
23
  ```css
24
- [data-store-icon-button] {}
24
+ [data-fs-icon-button] {}
25
25
  ```
26
26
 
27
27
  This component inherits [Button](?path=/docs/atoms-button--button#css-selectors) css selectors.
@@ -4,11 +4,11 @@ import React from 'react'
4
4
  import LoadingButton from './LoadingButton'
5
5
 
6
6
  describe('Loading Button', () => {
7
- it('`data-store-loading-button` is present', () => {
7
+ it('`data-fs-loading-button` is present', () => {
8
8
  const { getByTestId } = render(<LoadingButton loading />)
9
9
 
10
10
  expect(getByTestId('store-loading-button')).toHaveAttribute(
11
- 'data-store-loading-button'
11
+ 'data-fs-loading-button'
12
12
  )
13
13
  })
14
14
  })
@@ -23,7 +23,7 @@ const LoadingButton = forwardRef<HTMLButtonElement, LoadingButtonProps>(
23
23
  return (
24
24
  <Button
25
25
  ref={ref}
26
- data-store-loading-button
26
+ data-fs-loading-button
27
27
  testId={testId}
28
28
  {...otherProps}
29
29
  >
@@ -14,7 +14,7 @@ import LoadingButton from '../LoadingButton'
14
14
  ## CSS Selectors
15
15
 
16
16
  ```css
17
- [data-store-loading-button] {}
17
+ [data-fs-loading-button] {}
18
18
  ```
19
19
 
20
20
  This component inherits [Button](?path=/docs/atoms-button--button#css-selectors) css selectors.
@@ -41,7 +41,7 @@ const TestModal = ({
41
41
  }
42
42
 
43
43
  describe('Modal', () => {
44
- it('The attribute data-store-modal-content should be present', () => {
44
+ it('The attribute data-fs-modal-content should be present', () => {
45
45
  const { getByTestId } = render(
46
46
  <Modal aria-label="test modal" testId="store-modal" isOpen>
47
47
  Foo
@@ -49,7 +49,7 @@ describe('Modal', () => {
49
49
  )
50
50
 
51
51
  expect(getByTestId('store-modal')).toHaveAttribute(
52
- 'data-store-modal-content'
52
+ 'data-fs-modal-content'
53
53
  )
54
54
  })
55
55
 
@@ -36,7 +36,7 @@ const ModalContentPure = ({
36
36
  aria-hidden="true"
37
37
  />
38
38
  <div
39
- data-store-modal-content
39
+ data-fs-modal-content
40
40
  data-testid={testId}
41
41
  ref={trapFocusRef}
42
42
  aria-modal="true"
@@ -14,7 +14,7 @@ import Modal from '../Modal'
14
14
  ## CSS Selectors
15
15
 
16
16
  ```css
17
- [data-store-modal-content] {}
17
+ [data-fs-modal-content] {}
18
18
 
19
19
  [data-modal-overlay] {}
20
20
  ```
@@ -17,8 +17,8 @@ describe('Payment methods', () => {
17
17
  paymentMethodsData = getByTestId('store-payment-methods')
18
18
  })
19
19
 
20
- it('should have `data-store-payment-methods` attribute', () => {
21
- expect(paymentMethodsData).toHaveAttribute('data-store-payment-methods')
20
+ it('should have `data-fs-payment-methods` attribute', () => {
21
+ expect(paymentMethodsData).toHaveAttribute('data-fs-payment-methods')
22
22
  })
23
23
 
24
24
  it('Should render PaymentMethods Children', () => {
@@ -38,7 +38,7 @@ const PaymentMethods = forwardRef<HTMLDivElement, PaymentMethodsProps>(
38
38
  return (
39
39
  <div
40
40
  ref={ref}
41
- data-store-payment-methods
41
+ data-fs-payment-methods
42
42
  data-testid={testId}
43
43
  {...otherProps}
44
44
  >
@@ -14,6 +14,6 @@ import PaymentMethods from '../PaymentMethods'
14
14
  ## CSS Selectors
15
15
 
16
16
  ```css
17
- [data-store-payment-methods] {}
17
+ [data-fs-payment-methods] {}
18
18
  [data-payment-methods-flags] {}
19
19
  ```
@@ -25,11 +25,11 @@ const props = {
25
25
  }
26
26
 
27
27
  describe('PriceRange', () => {
28
- it('`data-store-price-range` is present', () => {
28
+ it('`data-fs-price-range` is present', () => {
29
29
  const { getByTestId } = render(<PriceRange {...props} />)
30
30
 
31
31
  expect(getByTestId('store-price-range')).toHaveAttribute(
32
- 'data-store-price-range'
32
+ 'data-fs-price-range'
33
33
  )
34
34
  })
35
35
 
@@ -57,7 +57,7 @@ const PriceRange = forwardRef<PriceRangeRefType | undefined, PriceRangeProps>(
57
57
  }))
58
58
 
59
59
  return (
60
- <div data-store-price-range data-testid={testId} className={className}>
60
+ <div data-fs-price-range data-testid={testId} className={className}>
61
61
  <Slider
62
62
  ref={sliderRef}
63
63
  min={min}
@@ -15,7 +15,7 @@ import PriceRange from '../PriceRange'
15
15
  # CSS Selectors
16
16
 
17
17
  ```css
18
- [data-store-price-range] {
18
+ [data-fs-price-range] {
19
19
  }
20
20
  [data-price-range-values] {
21
21
  }
@@ -42,8 +42,8 @@ describe('ProductCard', () => {
42
42
  })
43
43
 
44
44
  describe('Data attributes', () => {
45
- it('`ProductCard` component should have `data-store-product-card` attribute', () => {
46
- expect(productCard).toHaveAttribute('data-store-product-card')
45
+ it('`ProductCard` component should have `data-fs-product-card` attribute', () => {
46
+ expect(productCard).toHaveAttribute('data-fs-product-card')
47
47
  })
48
48
 
49
49
  it('`ProductCardContent` component should have `data-product-card-content` attribute', () => {
@@ -16,7 +16,7 @@ const ProductCard = forwardRef<HTMLDivElement, ProductCardProps>(function Card(
16
16
  return (
17
17
  <article
18
18
  ref={ref}
19
- data-store-product-card
19
+ data-fs-product-card
20
20
  data-testid={testId}
21
21
  {...otherProps}
22
22
  >
@@ -41,7 +41,7 @@ All Product Card related components support all attributes also supported by the
41
41
  ## CSS Selectors
42
42
 
43
43
  ```css
44
- [data-store-product-card] {
44
+ [data-fs-product-card] {
45
45
  }
46
46
 
47
47
  [data-product-card-image] {
@@ -50,7 +50,7 @@ const QuantitySelector = forwardRef<HTMLDivElement, QuantitySelectorProps>(
50
50
  ) {
51
51
  return (
52
52
  <div
53
- data-store-quantity-selector
53
+ data-fs-quantity-selector
54
54
  data-testid={testId}
55
55
  ref={ref}
56
56
  {...otherProps}
@@ -17,7 +17,7 @@ import QuantitySelector from '../QuantitySelector'
17
17
  # CSS Selectors
18
18
 
19
19
  ```css
20
- [data-store-quantity-selector] {
20
+ [data-fs-quantity-selector] {
21
21
  }
22
22
  [data-quantity-selector-input] {
23
23
  }
@@ -29,9 +29,9 @@ const RadioOption = forwardRef<HTMLInputElement, RadioOptionProps>(
29
29
  const { name, selectedValue, onChange } = useRadioGroup()
30
30
 
31
31
  return (
32
- <label aria-label={label} data-store-radio-option>
32
+ <label aria-label={label} data-fs-radio-option>
33
33
  <Radio
34
- data-store-radio-option-item
34
+ data-fs-radio-option-item
35
35
  ref={ref}
36
36
  name={name}
37
37
  checked={value === selectedValue}
@@ -34,6 +34,6 @@ import RadioOption from '../RadioOption.tsx'
34
34
  ## CSS Selectors
35
35
 
36
36
  ```css
37
- [data-store-radio-option] {}
38
- [data-store-radio-option-item] {}
37
+ [data-fs-radio-option] {}
38
+ [data-fs-radio-option-item] {}
39
39
  ```
@@ -10,11 +10,11 @@ const Wrapper = (props: Partial<SearchInputProps>) => (
10
10
  )
11
11
 
12
12
  describe('SearchInput', () => {
13
- it('`data-store-search-input` is present', () => {
13
+ it('`data-fs-search-input` is present', () => {
14
14
  const { getByTestId } = render(<Wrapper />)
15
15
 
16
16
  expect(getByTestId('search-input')).toHaveAttribute(
17
- 'data-store-search-input'
17
+ 'data-fs-search-input'
18
18
  )
19
19
  })
20
20
 
@@ -85,7 +85,7 @@ const SearchInput = forwardRef<SearchInputRef | null, SearchInputProps>(
85
85
  return (
86
86
  <Form
87
87
  ref={formRef}
88
- data-store-search-input
88
+ data-fs-search-input
89
89
  data-testid={testId}
90
90
  onSubmit={handleSubmit}
91
91
  role="search"
@@ -22,7 +22,7 @@ import CustomIcon from './assets/CustomIcon'
22
22
 
23
23
  ## CSS Selectors
24
24
  ```css
25
- [data-store-search-input] {}
25
+ [data-fs-search-input] {}
26
26
  ```
27
27
 
28
28
  This component inherits [Input](?path=/docs/atoms-input--input#css-selectors), [Button](?path=/docs/atoms-button--button#css-selectors), [Icon](?path=/docs/atoms-icon--icon#css-selectors) css selectors.
@@ -41,7 +41,7 @@ describe('Table', () => {
41
41
 
42
42
  const table = getByTestId('store-table')
43
43
 
44
- expect(table).toHaveAttribute('data-store-table')
44
+ expect(table).toHaveAttribute('data-fs-table')
45
45
 
46
46
  const tableHead = getByTestId('store-table-head')
47
47
 
@@ -14,7 +14,7 @@ const Table = forwardRef<HTMLTableElement, TableProps>(function Table(
14
14
  ref
15
15
  ) {
16
16
  return (
17
- <table ref={ref} data-store-table data-testid={testId} {...otherProps}>
17
+ <table ref={ref} data-fs-table data-testid={testId} {...otherProps}>
18
18
  {children}
19
19
  </table>
20
20
  )
@@ -57,7 +57,7 @@ Besides those attributes, the following props are also supported:
57
57
  ## CSS Selectors
58
58
 
59
59
  ```css
60
- [data-store-table] {}
60
+ [data-fs-table] {}
61
61
 
62
62
  [data-table-head] {}
63
63
 
@@ -32,8 +32,8 @@ describe('Hero', () => {
32
32
  const heroImage = getByTestId('store-hero-image')
33
33
  const heroHeading = getByTestId('store-hero-heading')
34
34
 
35
- it('`Hero` component should have `data-store-hero` attribute', () => {
36
- expect(hero).toHaveAttribute('data-store-hero')
35
+ it('`Hero` component should have `data-fs-hero` attribute', () => {
36
+ expect(hero).toHaveAttribute('data-fs-hero')
37
37
  })
38
38
 
39
39
  it('`Hero` component should have custom data attribute `data-custom-attribute`', () => {
@@ -14,7 +14,7 @@ const Hero = forwardRef<HTMLDivElement, HeroProps>(function Hero(
14
14
  ref
15
15
  ) {
16
16
  return (
17
- <article ref={ref} data-store-hero data-testid={testId} {...otherProps}>
17
+ <article ref={ref} data-fs-hero data-testid={testId} {...otherProps}>
18
18
  {children}
19
19
  </article>
20
20
  )
@@ -39,7 +39,7 @@ Besides those attributes, the following props are also supported:
39
39
  ## CSS Selectors
40
40
 
41
41
  ```css
42
- [data-store-hero] {
42
+ [data-fs-hero] {
43
43
  }
44
44
  [data-hero-image] {
45
45
  }
@@ -32,7 +32,7 @@ describe('OutOfStock', () => {
32
32
  const outOfStockMessage = screen.getByTestId('store-out-of-stock-message')
33
33
  const outOfStockForm = screen.getByTestId('store-out-of-stock-form')
34
34
 
35
- expect(outOfStock).toHaveAttribute('data-store-out-of-stock')
35
+ expect(outOfStock).toHaveAttribute('data-fs-out-of-stock')
36
36
  expect(outOfStockForm).toHaveAttribute('data-out-of-stock-form')
37
37
  expect(outOfStockTitle).toHaveAttribute('data-out-of-stock-title')
38
38
  expect(outOfStockMessage).toHaveAttribute('data-out-of-stock-message')
@@ -28,7 +28,7 @@ const OutOfStock = ({
28
28
  ...otherProps
29
29
  }: OutOfStockProps) => {
30
30
  return (
31
- <section data-store-out-of-stock data-testid={testId}>
31
+ <section data-fs-out-of-stock data-testid={testId}>
32
32
  <Form data-out-of-stock-form testId={`${testId}-form`} {...otherProps}>
33
33
  {children}
34
34
  </Form>
@@ -23,7 +23,7 @@ The `OutOfStock` uses the [Compound Component](https://kentcdodds.com/blog/compo
23
23
  ## CSS Selectors
24
24
 
25
25
  ```css
26
- [data-store-out-of-stock] {
26
+ [data-fs-out-of-stock] {
27
27
  }
28
28
 
29
29
  [data-out-of-stock-form] {