@kaizen/components 1.52.1 → 1.54.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.
Files changed (228) hide show
  1. package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +0 -2
  2. package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +3 -5
  3. package/dist/cjs/DatePicker/DatePicker.cjs +8 -1
  4. package/dist/cjs/DatePicker/utils/getLocale.cjs +96 -3
  5. package/dist/cjs/DatePicker/utils/validateDate.cjs +28 -2
  6. package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +8 -1
  7. package/dist/cjs/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.cjs +14 -2
  8. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.cjs +1 -0
  9. package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +10 -1
  10. package/dist/cjs/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.cjs +8 -1
  11. package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.cjs +5 -1
  12. package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.cjs +1 -0
  13. package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.cjs +1 -0
  14. package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.cjs +16 -1
  15. package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +0 -2
  16. package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +3 -5
  17. package/dist/esm/DatePicker/DatePicker.mjs +8 -1
  18. package/dist/esm/DatePicker/utils/getLocale.mjs +97 -4
  19. package/dist/esm/DatePicker/utils/validateDate.mjs +22 -2
  20. package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +8 -1
  21. package/dist/esm/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.mjs +14 -2
  22. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.mjs +1 -0
  23. package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +10 -1
  24. package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs +8 -1
  25. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.mjs +5 -1
  26. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.mjs +1 -0
  27. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.mjs +1 -0
  28. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.mjs +10 -1
  29. package/dist/styles.css +2 -2
  30. package/dist/types/AvatarGroup/_docs/example-data.d.ts +8 -0
  31. package/dist/types/BrandMoment/_docs/ExampleHeaders.d.ts +3 -0
  32. package/dist/types/Calendar/_docs/controls/defaultMonthControls.d.ts +2 -0
  33. package/dist/types/Calendar/_docs/controls/weekStartsOnControls.d.ts +2 -0
  34. package/dist/types/Container/Container.d.ts +1 -1
  35. package/dist/types/Content/Content.d.ts +1 -1
  36. package/dist/types/DateInput/DateInput/DateInput.d.ts +1 -1
  37. package/dist/types/DatePicker/DatePicker.d.ts +3 -3
  38. package/dist/types/DatePicker/_docs/controls/datePickerLocaleControls.d.ts +2 -0
  39. package/dist/types/DatePicker/_docs/controls/disabledDayMatchersControls.d.ts +2 -0
  40. package/dist/types/DatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -1
  41. package/dist/types/DatePicker/types.d.ts +2 -1
  42. package/dist/types/DatePicker/utils/getLocale.d.ts +1 -2
  43. package/dist/types/DateRangePicker/DateRangePicker.d.ts +2 -2
  44. package/dist/types/Filter/FilterBar/context/types.d.ts +28 -0
  45. package/dist/types/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.d.ts +1 -1
  46. package/dist/types/Filter/FilterDatePicker/_docs/controls/disabledDaysControls.d.ts +2 -0
  47. package/dist/types/Filter/FilterDatePicker/_docs/controls/validationControls.d.ts +2 -0
  48. package/dist/types/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -1
  49. package/dist/types/Filter/FilterDateRangePicker/_docs/controls/disabledDaysControls.d.ts +2 -0
  50. package/dist/types/Filter/FilterDateRangePicker/_docs/controls/validationControls.d.ts +2 -0
  51. package/dist/types/Filter/FilterMultiSelect/_docs/MockData.d.ts +10 -0
  52. package/dist/types/Filter/FilterSelect/_docs/mockData.d.ts +6 -0
  53. package/dist/types/Filter/_docs/controls/renderTriggerControls.d.ts +2 -0
  54. package/dist/types/Menu/_docs/MenuContentExample.d.ts +8 -0
  55. package/dist/types/Menu/_docs/examples.d.ts +11 -0
  56. package/dist/types/Modal/_docs/controls.d.ts +11 -0
  57. package/dist/types/MultiSelect/MultiSelect.d.ts +23 -0
  58. package/dist/types/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.d.ts +13 -0
  59. package/dist/types/Select/Select.d.ts +3 -3
  60. package/dist/types/Workflow/_docs/controls/controls.d.ts +2 -0
  61. package/dist/types/Workflow/_docs/controls/index.d.ts +1 -0
  62. package/dist/types/__future__/Select/Select.d.ts +2 -2
  63. package/dist/types/__future__/Select/_docs/mockData.d.ts +6 -0
  64. package/dist/types/__future__/Select/subcomponents/SelectToggle/SelectToggle.d.ts +2 -2
  65. package/dist/types/__future__/Select/types.d.ts +22 -0
  66. package/dist/types/__future__/Workflow/_docs/controls/controls.d.ts +2 -0
  67. package/dist/types/__future__/Workflow/_docs/controls/index.d.ts +1 -0
  68. package/dist/types/__overlays__/Tooltip/v1/utils/isSemanticElement.d.ts +2 -2
  69. package/dist/types/utils/getNodeText.d.ts +2 -1
  70. package/locales/en.json +40 -0
  71. package/package.json +3 -3
  72. package/src/Avatar/_docs/Avatar.mdx +1 -1
  73. package/src/AvatarGroup/_docs/AvatarGroup.mdx +1 -1
  74. package/src/Badge/_docs/Badge.mdx +1 -1
  75. package/src/Brand/_docs/Brand.mdx +1 -1
  76. package/src/BrandMoment/_docs/BrandMoment.mdx +1 -1
  77. package/src/Button/Button/_docs/Button.mdx +1 -1
  78. package/src/Button/IconButton/_docs/IconButton.mdx +1 -1
  79. package/src/ButtonGroup/_docs/ButtonGroup.mdx +1 -1
  80. package/src/Calendar/CalendarRange/CalendarRange.tsx +0 -2
  81. package/src/Calendar/CalendarRange/_docs/CalendarRange.mdx +1 -1
  82. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +1 -2
  83. package/src/Calendar/CalendarSingle/_docs/CalendarSingle.mdx +1 -1
  84. package/src/Card/_docs/Card.mdx +1 -1
  85. package/src/Checkbox/Checkbox/_docs/Checkbox.mdx +1 -1
  86. package/src/Checkbox/CheckboxField/_docs/CheckboxField.mdx +1 -1
  87. package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.mdx +1 -1
  88. package/src/Collapsible/Collapsible/_docs/Collapsible.mdx +1 -1
  89. package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.mdx +1 -1
  90. package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.mdx +1 -1
  91. package/src/Container/_docs/Container.mdx +1 -1
  92. package/src/Content/_docs/Content.mdx +1 -1
  93. package/src/DateInput/DateInputDescription/DateInputDescription.spec.tsx +26 -18
  94. package/src/DatePicker/DatePicker.spec.tsx +100 -69
  95. package/src/DatePicker/DatePicker.tsx +15 -7
  96. package/src/DatePicker/_docs/DatePicker.mdx +1 -3
  97. package/src/DatePicker/_docs/DatePicker.stickersheet.stories.tsx +57 -21
  98. package/src/DatePicker/_docs/DatePicker.stories.tsx +2 -3
  99. package/src/DatePicker/_docs/controls/datePickerLocaleControls.ts +8 -2
  100. package/src/DatePicker/_docs/getLocale.stickersheet.stories.tsx +49 -0
  101. package/src/DatePicker/subcomponents/DateInputField/DateInputField.spec.tsx +49 -36
  102. package/src/DatePicker/types.ts +2 -1
  103. package/src/DatePicker/utils/getLocale.spec.ts +2 -2
  104. package/src/DatePicker/utils/getLocale.ts +141 -6
  105. package/src/DatePicker/utils/validateDate.spec.ts +40 -16
  106. package/src/DatePicker/utils/{validateDate.ts → validateDate.tsx} +24 -4
  107. package/src/DateRangePicker/DateRangePicker.tsx +2 -2
  108. package/src/DateRangePicker/_docs/DateRangePicker.mdx +1 -1
  109. package/src/Divider/_docs/Divider.mdx +1 -1
  110. package/src/EmptyState/_docs/EmptyState.mdx +1 -1
  111. package/src/ErrorPage/_docs/ErrorPage.mdx +1 -1
  112. package/src/FieldGroup/_docs/FieldGroup.mdx +1 -1
  113. package/src/FieldMessage/_docs/FieldMessage.mdx +1 -1
  114. package/src/Filter/Filter/_docs/Filter.mdx +1 -1
  115. package/src/Filter/FilterBar/FilterBar.spec.tsx +56 -25
  116. package/src/Filter/FilterBar/_docs/FilterBar.mdx +1 -1
  117. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.spec.tsx +21 -13
  118. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +11 -1
  119. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.tsx +17 -2
  120. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.spec.tsx +17 -8
  121. package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.spec.tsx +37 -23
  122. package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.spec.tsx +35 -23
  123. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.spec.tsx +42 -26
  124. package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.spec.tsx +37 -24
  125. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.spec.tsx +12 -12
  126. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +15 -2
  127. package/src/Filter/FilterButton/_docs/filter-buttons.mdx +1 -1
  128. package/src/Filter/FilterDatePicker/FilterDatePicker.spec.tsx +21 -16
  129. package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.mdx +1 -1
  130. package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.stickersheet.stories.tsx +56 -1
  131. package/src/Filter/FilterDatePicker/hooks/useDateInputHandlers.spec.ts +3 -3
  132. package/src/Filter/FilterDatePicker/hooks/{useDateValidation.spec.tsx → useDateValidation.spec.ts} +13 -12
  133. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.tsx +10 -1
  134. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.spec.tsx +57 -36
  135. package/src/Filter/FilterDatePicker/utils/validateDate.spec.ts +52 -28
  136. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +3 -2
  137. package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.mdx +1 -1
  138. package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +55 -24
  139. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +43 -28
  140. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.spec.tsx +82 -48
  141. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.tsx +6 -1
  142. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/{useEndDateValidation.spec.tsx → useEndDateValidation.spec.ts} +23 -20
  143. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/{useStartDateValidation.spec.tsx → useStartDateValidation.spec.ts} +13 -11
  144. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.spec.ts +17 -6
  145. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/{validateEndDateBeforeStartDate.ts → validateEndDateBeforeStartDate.tsx} +9 -3
  146. package/src/Filter/FilterMultiSelect/FilterMultiSelect.spec.tsx +10 -14
  147. package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +1 -1
  148. package/src/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.spec.tsx +392 -372
  149. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.spec.tsx +9 -6
  150. package/src/Filter/FilterSelect/_docs/FilterSelect.mdx +1 -1
  151. package/src/GuidanceBlock/_docs/GuidanceBlock.mdx +1 -1
  152. package/src/Heading/_docs/Heading.mdx +1 -1
  153. package/src/Icon/_docs/Icon.mdx +1 -1
  154. package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.mdx +1 -1
  155. package/src/Illustration/Scene/_docs/Scene.mdx +1 -1
  156. package/src/Illustration/Spot/_docs/Spot.mdx +1 -1
  157. package/src/Input/Input/_docs/Input.mdx +1 -1
  158. package/src/Input/InputRange/_docs/InputRange.mdx +1 -1
  159. package/src/Input/InputSearch/InputSearch.spec.tsx +15 -14
  160. package/src/Input/InputSearch/_docs/InputSearch.mdx +1 -1
  161. package/src/Label/_docs/Label.mdx +1 -1
  162. package/src/LabelledMessage/_docs/LabelledMessage.mdx +1 -1
  163. package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.mdx +1 -1
  164. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.mdx +1 -1
  165. package/src/Loading/LoadingHeading/_docs/LoadingHeading.mdx +1 -1
  166. package/src/Loading/LoadingInput/_docs/LoadingInput.mdx +1 -1
  167. package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.mdx +1 -1
  168. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.mdx +1 -1
  169. package/src/Menu/_docs/Menu.mdx +1 -1
  170. package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.mdx +1 -1
  171. package/src/Modal/ContextModal/_docs/ContextModal.mdx +1 -1
  172. package/src/Modal/GenericModal/_docs/GenericModal.mdx +1 -1
  173. package/src/Modal/InputEditModal/_docs/InputEditModal.mdx +1 -1
  174. package/src/MultiSelect/_docs/MultiSelect.mdx +1 -1
  175. package/src/Notification/GlobalNotification/_docs/GlobalNotification.mdx +1 -1
  176. package/src/Notification/InlineNotification/_docs/InlineNotification.mdx +1 -1
  177. package/src/Notification/ToastNotification/_docs/ToastNotification.mdx +1 -1
  178. package/src/Pagination/_docs/Pagination.mdx +1 -1
  179. package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.mdx +1 -1
  180. package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.mdx +1 -1
  181. package/src/Popover/_docs/Popover.mdx +1 -1
  182. package/src/ProgressBar/_docs/ProgressBar.mdx +1 -1
  183. package/src/Radio/Radio/_docs/Radio.mdx +1 -1
  184. package/src/Radio/RadioField/_docs/RadioField.mdx +1 -1
  185. package/src/Radio/RadioGroup/_docs/RadioGroup.mdx +1 -1
  186. package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.mdx +1 -1
  187. package/src/RichTextEditor/RichTextContent/_docs/RichTextContent.mdx +1 -1
  188. package/src/RichTextEditor/RichTextEditor/_docs/RichTextEditor.mdx +1 -1
  189. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.mdx +1 -1
  190. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.mdx +1 -1
  191. package/src/SearchField/_docs/SearchField.mdx +1 -1
  192. package/src/Select/_docs/Select.mdx +1 -1
  193. package/src/Skirt/_docs/Skirt.mdx +1 -1
  194. package/src/Slider/_docs/Slider.mdx +1 -1
  195. package/src/SplitButton/SplitButton.spec.tsx +11 -6
  196. package/src/SplitButton/_docs/SplitButton.mdx +1 -1
  197. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +15 -10
  198. package/src/Table/_docs/Table.mdx +1 -1
  199. package/src/Tabs/_docs/Tabs.mdx +1 -1
  200. package/src/Tag/_docs/Tag.mdx +1 -1
  201. package/src/Text/_docs/Text.mdx +1 -1
  202. package/src/TextArea/_docs/TextArea.mdx +1 -1
  203. package/src/TextAreaField/_docs/TextAreaField.mdx +1 -1
  204. package/src/TextField/_docs/TextField.mdx +1 -1
  205. package/src/Tile/InformationTile/_docs/InformationTile.mdx +1 -1
  206. package/src/Tile/MultiActionTile/_docs/MultiActionTile.mdx +1 -1
  207. package/src/Tile/TileGrid/_docs/TileGrid.mdx +1 -1
  208. package/src/TimeField/_docs/TimeField.mdx +1 -1
  209. package/src/TitleBlockZen/_docs/TitleBlockZen.mdx +1 -1
  210. package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.mdx +1 -1
  211. package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.mdx +1 -1
  212. package/src/VisuallyHidden/_docs/VisuallyHidden.mdx +1 -1
  213. package/src/Well/_docs/Well.mdx +1 -1
  214. package/src/Workflow/_docs/ProgressStepper.mdx +1 -1
  215. package/src/Workflow/_docs/Workflow.mdx +1 -1
  216. package/src/Workflow/_docs/WorkflowFooter.mdx +1 -1
  217. package/src/Workflow/_docs/WorkflowHeader.mdx +1 -1
  218. package/src/__future__/Select/_docs/Select.mdx +1 -1
  219. package/src/__future__/Tag/Tag/_docs/Tag.mdx +1 -1
  220. package/src/__future__/Workflow/_docs/ProgressStepper.mdx +1 -1
  221. package/src/__future__/Workflow/_docs/Workflow.mdx +1 -1
  222. package/src/__future__/Workflow/_docs/WorkflowFooter.mdx +1 -1
  223. package/src/__future__/Workflow/_docs/WorkflowHeader.mdx +1 -1
  224. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.mdx +1 -1
  225. package/src/__overlays__/Tooltip/v3/_docs/ApiSpecification.mdx +0 -1
  226. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +52 -0
  227. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.mdx +40 -61
  228. package/src/__overlays__/Tooltip/v3/_docs/assets/tooltip_spec.png +0 -0
@@ -1,6 +1,7 @@
1
1
  import React from "react"
2
- import { render, screen } from "@testing-library/react"
2
+ import { screen, waitFor } from "@testing-library/react"
3
3
  import userEvent from "@testing-library/user-event"
4
+ import { renderWithIntl } from "~tests"
4
5
  import { useSelectionContext } from "../../context"
5
6
  import { SearchInput } from "."
6
7
 
@@ -14,12 +15,14 @@ const SearchInputWrapper = (): JSX.Element => <SearchInput label="label-mock" />
14
15
 
15
16
  describe("<SearchInput /> - interaction", () => {
16
17
  describe("Given searchQuery is provided", () => {
17
- it("shows searchQuery as value", () => {
18
+ it("shows searchQuery as value", async () => {
18
19
  ;(useSelectionContext as jest.Mock).mockReturnValue({
19
20
  searchQuery: "search-query-mock",
20
21
  })
21
- render(<SearchInputWrapper />)
22
- expect(screen.getByRole("searchbox")).toHaveValue("search-query-mock")
22
+ renderWithIntl(<SearchInputWrapper />)
23
+ await waitFor(() => {
24
+ expect(screen.getByRole("searchbox")).toHaveValue("search-query-mock")
25
+ })
23
26
  })
24
27
  })
25
28
 
@@ -29,7 +32,7 @@ describe("<SearchInput /> - interaction", () => {
29
32
  setSearchQuery: spy,
30
33
  })
31
34
 
32
- render(<SearchInputWrapper />)
35
+ renderWithIntl(<SearchInputWrapper />)
33
36
  const search = screen.getByRole("searchbox")
34
37
  await user.type(search, "want to search this text")
35
38
 
@@ -43,7 +46,7 @@ describe("<SearchInput /> - interaction", () => {
43
46
  setSearchQuery: spy,
44
47
  })
45
48
 
46
- render(<SearchInputWrapper />)
49
+ renderWithIntl(<SearchInputWrapper />)
47
50
  const clearButton = screen.getByRole("button")
48
51
  await user.click(clearButton)
49
52
 
@@ -11,7 +11,7 @@ import * as FilterSelectStories from "./FilterSelect.stories"
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/FilterSelect"
12
12
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%F0%9F%96%BC%EF%B8%8F-Component-Gallery?type=design&node-id=6-28579&t=bowQ0LWOQKOd0UYS-0"
13
13
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093959/Filters"
14
- className="!mb-8"
14
+
15
15
  />
16
16
 
17
17
  <KAIOInstallation exportNames="FilterSelect" />
@@ -10,7 +10,7 @@ import * as GuidanceBlockStories from "./GuidanceBlock.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/GuidanceBlock"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=622%3A149926&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093807/Guidance+Block"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="GuidanceBlock" />
@@ -9,7 +9,7 @@ import * as HeadingStories from "./Heading.stories"
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Heading"
11
11
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3074885298/Typography#Headings"
12
- className="!mb-8"
12
+
13
13
  />
14
14
 
15
15
  <KAIOInstallation exportNames="Heading" />
@@ -8,7 +8,7 @@ import * as IconStories from "./Icon.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Icons"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  ## Installation
@@ -10,7 +10,7 @@ import * as BrandMomentCaptureIntroStories from "./BrandMomentCaptureIntro.stori
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/BrandMomentCaptureIntro"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=50195%3A251126&mode=design&t=AWARn1Fp8ago39Br-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/l/cp/58wsFtBe"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="BrandMomentCaptureIntro" />
@@ -9,7 +9,7 @@ import * as SceneStories from "./Scene.stories"
9
9
 
10
10
  <ResourceLinks
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Illustration/Scene"
12
- className="!mb-8"
12
+
13
13
  />
14
14
 
15
15
 
@@ -11,7 +11,7 @@ import * as SpotIllustrationStories from "./Spot.stories"
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Illustration"
12
12
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=50176%3A251125&mode=design&t=5GnjF9A8Wnd9UmHY-1"
13
13
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060340/Illustration"
14
- className="!mb-8"
14
+
15
15
  />
16
16
 
17
17
  <KAIOInstallation exportNames="CompanyDetails" />
@@ -9,7 +9,7 @@ import * as InputStories from "./Input.stories"
9
9
 
10
10
  <ResourceLinks
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Input/Input"
12
- className="!mb-8"
12
+
13
13
  />
14
14
 
15
15
  <KAIOInstallation exportNames="Input" />
@@ -8,7 +8,7 @@ import * as InputRangeStories from "./InputRange.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Input/InputRange"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="InputRange" />
@@ -1,6 +1,7 @@
1
1
  import React from "react"
2
2
  import { render, waitFor } from "@testing-library/react"
3
3
  import userEvent from "@testing-library/user-event"
4
+ import { renderWithIntl } from "~tests"
4
5
  import { InputSearchProps } from "./InputSearch"
5
6
  import { InputSearch } from "."
6
7
 
@@ -17,16 +18,19 @@ const renderInput = (
17
18
  ): ReturnType<typeof render> => {
18
19
  const mergedInputProps = { ...defaultInputProps, ...props }
19
20
 
20
- return render(<InputSearch {...mergedInputProps} data-testid="someInputId" />)
21
+ return renderWithIntl(
22
+ <InputSearch {...mergedInputProps} data-testid="someInputId" />
23
+ )
21
24
  }
22
25
 
23
26
  describe("<InputSearch />", () => {
24
- it("should render a value inside of input", () => {
27
+ it("should render a value inside of input", async () => {
25
28
  const { container } = renderInput()
26
-
27
- expect(
28
- container.querySelector(`[value="${defaultInputProps.value}"]`)
29
- ).toBeTruthy()
29
+ await waitFor(() => {
30
+ expect(
31
+ container.querySelector(`[value="${defaultInputProps.value}"]`)
32
+ ).toBeTruthy()
33
+ })
30
34
  })
31
35
 
32
36
  it("should call the `onChange` event when text value is updated", async () => {
@@ -37,17 +41,14 @@ describe("<InputSearch />", () => {
37
41
 
38
42
  await user.type(input, "Hello")
39
43
  await waitFor(() => {
40
- expect(defaultInputProps.onChange).toBeCalledTimes(5)
44
+ expect(defaultInputProps.onChange).toHaveBeenCalledTimes(5)
41
45
  })
42
46
  })
43
47
 
44
- it("should render a disabled inside of input", () => {
48
+ it("should render a disabled inside of input", async () => {
45
49
  const { container } = renderInput({ disabled: true })
46
- expect(container.querySelector("[disabled]")).toBeTruthy()
47
- })
48
-
49
- it("should render a reversed input", () => {
50
- const { container } = renderInput({ reversed: true })
51
- expect(container.querySelector(".reversed")).toBeTruthy()
50
+ await waitFor(() => {
51
+ expect(container.querySelector("[disabled]")).toBeTruthy()
52
+ })
52
53
  })
53
54
  })
@@ -8,7 +8,7 @@ import * as InputSearchStories from "./InputSearch.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Input/InputSearch"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="InputSearch" />
@@ -8,7 +8,7 @@ import * as LabelStories from "./Label.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Label"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="Label" />
@@ -8,7 +8,7 @@ import * as LabelledMessageStories from "./LabelledMessage.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/LabelledMessage"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="LabelledMessage" />
@@ -10,7 +10,7 @@ import * as LikertScaleLegacyStories from "./LikertScaleLegacy.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/LikertScaleLegacy"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39905&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060201/Likert+Scale"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="LikertScaleLegacy" />
@@ -10,7 +10,7 @@ import * as LoadingGraphicStories from "./LoadingGraphic.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Loading/LoadingGraphic"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=50670%3A115292&mode=design&t=bSqb3WpQ04594DsC-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060062/Loading+Skeleton"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="LoadingGraphic" />
@@ -10,7 +10,7 @@ import * as LoadingHeadingStories from "./LoadingHeading.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Loading/LoadingHeading"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=50670%3A115292&mode=design&t=bSqb3WpQ04594DsC-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060062/Loading+Skeleton"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="LoadingHeading" />
@@ -10,7 +10,7 @@ import * as LoadingInputStories from "./LoadingInput.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Loading/LoadingInput"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=50670%3A115292&mode=design&t=bSqb3WpQ04594DsC-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060062/Loading+Skeleton"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="LoadingInput" />
@@ -10,7 +10,7 @@ import * as LoadingParagraphStories from "./LoadingParagraph.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Loading/LoadingParagraph"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=50670%3A115292&mode=design&t=bSqb3WpQ04594DsC-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060062/Loading+Skeleton"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="LoadingParagraph" />
@@ -10,7 +10,7 @@ import * as LoadingSpinnerStories from "./LoadingSpinner.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/LoadingSpinner"
11
11
  figma=""
12
12
  designGuidelines=""
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="LoadingSpinner" />
@@ -10,7 +10,7 @@ import * as MenuStories from "./Menu.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Menu"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39909&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082059782/Menu"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="Menu" />
@@ -10,7 +10,7 @@ import * as ConfirmationModalStories from "./ConfirmationModal.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Modal/ConfirmationModal"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39910&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093114/Modal"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="ConfirmationModal" />
@@ -10,7 +10,7 @@ import * as ContextModalStories from "./ContextModal.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/ContextModal"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39910&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093114/Modal"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="ContextModal" />
@@ -9,7 +9,7 @@ import * as GenericModal from "./GenericModal.stories"
9
9
 
10
10
  <ResourceLinks
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Modal/GenericModal"
12
- className="!mb-8"
12
+
13
13
  />
14
14
 
15
15
  <KAIOInstallation exportNames="GenericModal" />
@@ -10,7 +10,7 @@ import * as InputEditModalStories from "./InputEditModal.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Modal/InputEditModal"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39910&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093114/Modal#Input-Edit-Modal"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="InputEditModal" />
@@ -9,7 +9,7 @@ import * as MultiSelectStories from "./MultiSelect.stories"
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/MultiSelect"
11
11
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896474/Select"
12
- className="!mb-8"
12
+
13
13
  />
14
14
 
15
15
  <KAIOInstallation exportNames="MultiSelect" />
@@ -10,7 +10,7 @@ import * as GlobalNotificationExamples from "./GlobalNotification.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/GlobalNotification"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=1929%3A21283&mode=design&t=HmSOpdHdka19ZmTO-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060757/Global+Notification"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="GlobalNotification" />
@@ -10,7 +10,7 @@ import * as InlineNotificationExamples from "./InlineNotification.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/InlineNotification"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=1929%3A21594&mode=design&t=HmSOpdHdka19ZmTO-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093392/Inline+Notification"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="InlineNotification" />
@@ -10,7 +10,7 @@ import * as ToastNotificationStories from "./ToastNotification.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/ToastNotification"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=1929%3A21829&mode=design&t=QHnBiBn4stf5UxJ3-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3075638310/Toast+Notification"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="useToastNotification" />
@@ -10,7 +10,7 @@ import * as PaginationStories from "./Pagination.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Pagination"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39913&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082092975/Pagination"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="Pagination" />
@@ -10,7 +10,7 @@ import * as DirectionalLinkStories from "./DirectionalLink.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/DirectionalLink"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%F0%9F%96%BC%EF%B8%8F-Component-Gallery?type=design&node-id=9-39913&mode=design&t=ktWFeE0DneVQfysI-0"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082092975/Pagination"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="DirectionalLink" />
@@ -10,7 +10,7 @@ import * as PaginationLinkStories from "./PaginationLink.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/PaginationLink"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%F0%9F%96%BC%EF%B8%8F-Component-Gallery?type=design&mode=design&t=ktWFeE0DneVQfysI-0"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082092975/Pagination"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="PaginationLink" />
@@ -10,7 +10,7 @@ import * as PopoverStories from "./Popover.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Popover"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9:86401&mode=dev"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081929552/Popover"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="Popover" />
@@ -11,7 +11,7 @@ import * as ProgressBarStories from "./ProgressBar.stories"
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/ProgressBar"
12
12
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=1929%3A20889&mode=design&t=mSqG0g2n5Iquqx6m-1"
13
13
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896891/Progress+Bar"
14
- className="!mb-8"
14
+
15
15
  />
16
16
 
17
17
  <KAIOInstallation exportNames="ProgressBar" />
@@ -9,7 +9,7 @@ import * as RadioStories from "./Radio.stories"
9
9
 
10
10
  <ResourceLinks
11
11
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Radio/Radio"
12
- className="!mb-8"
12
+
13
13
  />
14
14
 
15
15
  <KAIOInstallation exportNames="Radio" />
@@ -10,7 +10,7 @@ import * as RadioFieldStories from "./RadioField.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RadioField"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A86404&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082092822/Radio+Field"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="RadioField" />
@@ -10,7 +10,7 @@ import * as RadioGroupStories from "./RadioGroup.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RadioGroup"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A86405&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081929413/Radio+Group"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="RadioGroup" />
@@ -8,7 +8,7 @@ import * as EditableRichTextContentStories from "./EditableRichTextContent.stori
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RichTextEditor/EditableRichTextContent"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="EditableRichTextContent" />
@@ -8,7 +8,7 @@ import * as RichTextContentStories from "./RichTextContent.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RichTextEditor/RichTextContent"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="RichTextContent" />
@@ -12,7 +12,7 @@ import * as RichTextEditorStories from "./RichTextEditor.stories"
12
12
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RichTextEditor/RichTextEditor"
13
13
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A86406&t=P1w10jr2cpPuaayw-1"
14
14
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896752/Rich+Text+Editor"
15
- className="!mb-8"
15
+
16
16
  />
17
17
 
18
18
  <KAIOInstallation exportNames="RichTextEditor" />
@@ -8,7 +8,7 @@ import * as ToggleIconButtonStories from "./ToggleIconButton.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RichTextEditor/subcomponents/ToggleIconButton"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="ToggleIconButton" />
@@ -8,7 +8,7 @@ import * as ToolbarStories from "./Toolbar.stories"
8
8
 
9
9
  <ResourceLinks
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/RichTextEditor/subcomponents/Toolbar"
11
- className="!mb-8"
11
+
12
12
  />
13
13
 
14
14
  <KAIOInstallation exportNames="Toolbar" />
@@ -10,7 +10,7 @@ import * as SearchFieldStories from "./SearchField.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/SearchField"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A39914&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896613/Search+Field"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="SearchField" />
@@ -10,7 +10,7 @@ import * as SelectStories from "./Select.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Select"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9:37837&mode=dev"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896474/Select"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="Select" />
@@ -10,7 +10,7 @@ import * as SkirtStories from "./Skirt.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Skirt"
11
11
  figma=""
12
12
  designGuidelines=""
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames={["Skirt", "SkirtCard"]} />
@@ -10,7 +10,7 @@ import * as SliderStories from "./Slider.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Slider"
11
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=9%3A37839&t=P1w10jr2cpPuaayw-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896335/Slider"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="Slider" />
@@ -1,6 +1,7 @@
1
1
  import React from "react"
2
- import { render, screen, waitFor } from "@testing-library/react"
2
+ import { screen, waitFor } from "@testing-library/react"
3
3
  import userEvent from "@testing-library/user-event"
4
+ import { renderWithIntl } from "~tests"
4
5
  import { MenuItem, MenuList } from "~components/Menu"
5
6
  import { SplitButton, SplitButtonProps } from "./SplitButton"
6
7
 
@@ -29,8 +30,10 @@ const SplitButtonWrapper = (
29
30
 
30
31
  describe("<SplitButton />", () => {
31
32
  it("renders the correct structure", async () => {
32
- render(<SplitButtonWrapper />)
33
- expect(screen.getByText("Action Text")).toBeInTheDocument()
33
+ renderWithIntl(<SplitButtonWrapper />)
34
+ await waitFor(() => {
35
+ expect(screen.getByText("Action Text")).toBeInTheDocument()
36
+ })
34
37
 
35
38
  const dropdownButton = screen.getByLabelText("Dropdown Label")
36
39
  expect(dropdownButton).toBeInTheDocument()
@@ -42,9 +45,11 @@ describe("<SplitButton />", () => {
42
45
  })
43
46
  })
44
47
 
45
- it("disables both buttons when disabled is true", () => {
46
- render(<SplitButtonWrapper disabled />)
47
- expect(screen.getByText("Action Text").closest("button")).toBeDisabled()
48
+ it("disables both buttons when disabled is true", async () => {
49
+ renderWithIntl(<SplitButtonWrapper disabled />)
50
+ await waitFor(() => {
51
+ expect(screen.getByText("Action Text").closest("button")).toBeDisabled()
52
+ })
48
53
  expect(
49
54
  screen.getByLabelText("Dropdown Label").closest("button")
50
55
  ).toBeDisabled()
@@ -10,7 +10,7 @@ import * as SplitButtonStories from "./SplitButton.stories"
10
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/SplitButton"
11
11
  figma="https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%F0%9F%92%9C-UI-Kit%3A-Heart?type=design&node-id=1929%3A27099&mode=design&t=RLNQBBYrMF21quZb-1"
12
12
  designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896196/Split+Button"
13
- className="!mb-8"
13
+
14
14
  />
15
15
 
16
16
  <KAIOInstallation exportNames="SplitButton" />