@kaizen/components 1.39.1 → 1.40.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 (298) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs.map +1 -1
  3. package/dist/cjs/Calendar/utils/formatDateAsNumeral.cjs.map +1 -1
  4. package/dist/cjs/Calendar/utils/formatDateAsText.cjs.map +1 -1
  5. package/dist/cjs/Calendar/utils/parseDateAsTextOrNumeral.cjs.map +1 -1
  6. package/dist/cjs/Calendar/utils/parseDateFromNumeralFormatValue.cjs.map +1 -1
  7. package/dist/cjs/Calendar/utils/parseDateFromTextFormatValue.cjs.map +1 -1
  8. package/dist/cjs/DateInput/DateInputDescription/DateInputDescription.cjs.map +1 -1
  9. package/dist/cjs/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.cjs.map +1 -1
  10. package/dist/cjs/DatePicker/subcomponents/DateInputField/DateInputField.cjs.map +1 -1
  11. package/dist/cjs/DatePicker/utils/getLocale.cjs.map +1 -1
  12. package/dist/cjs/ErrorPage/hooks/useErrorMessages.cjs +4 -4
  13. package/dist/cjs/ErrorPage/hooks/useErrorMessages.cjs.map +1 -1
  14. package/dist/cjs/Filter/Filter/Filter.cjs +4 -1
  15. package/dist/cjs/Filter/Filter/Filter.cjs.map +1 -1
  16. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +3 -3
  17. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs.map +1 -1
  18. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.cjs +1 -1
  19. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.cjs.map +1 -1
  20. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.cjs +1 -1
  21. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.cjs.map +1 -1
  22. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
  23. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs.map +1 -1
  24. package/dist/cjs/Filter/FilterDatePicker/hooks/useDateInputHandlers.cjs.map +1 -1
  25. package/dist/cjs/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.cjs.map +1 -1
  26. package/dist/cjs/Filter/FilterDatePicker/utils/transformDateToInputValue.cjs.map +1 -1
  27. package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.cjs.map +1 -1
  28. package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.cjs.map +1 -1
  29. package/dist/cjs/dts/Calendar/LegacyCalendarRange/LegacyCalendarRange.d.ts +1 -0
  30. package/dist/cjs/dts/Calendar/utils/formatDateAsNumeral.d.ts +1 -0
  31. package/dist/cjs/dts/Calendar/utils/formatDateAsText.d.ts +1 -0
  32. package/dist/cjs/dts/Calendar/utils/parseDateAsTextOrNumeral.d.ts +1 -0
  33. package/dist/cjs/dts/Calendar/utils/parseDateFromNumeralFormatValue.d.ts +1 -0
  34. package/dist/cjs/dts/Calendar/utils/parseDateFromTextFormatValue.d.ts +1 -0
  35. package/dist/cjs/dts/DateInput/DateInputDescription/DateInputDescription.d.ts +1 -0
  36. package/dist/cjs/dts/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.d.ts +1 -0
  37. package/dist/cjs/dts/DatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -0
  38. package/dist/cjs/dts/DatePicker/utils/getLocale.d.ts +1 -0
  39. package/dist/cjs/dts/Filter/Filter/Filter.d.ts +1 -0
  40. package/dist/cjs/dts/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.d.ts +2 -2
  41. package/dist/cjs/dts/Filter/FilterDatePicker/_docs/controls/validationControls.d.ts +4 -4
  42. package/dist/cjs/dts/Filter/FilterDatePicker/hooks/useDateInputHandlers.d.ts +1 -0
  43. package/dist/cjs/dts/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -0
  44. package/dist/cjs/dts/Filter/FilterDatePicker/utils/transformDateToInputValue.d.ts +1 -0
  45. package/dist/cjs/dts/Filter/FilterDateRangePicker/_docs/controls/validationControls.d.ts +4 -4
  46. package/dist/cjs/dts/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.d.ts +1 -0
  47. package/dist/cjs/dts/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.d.ts +1 -0
  48. package/dist/cjs/dts/Menu/_docs/examples.d.ts +1 -1
  49. package/dist/cjs/index.css +4 -4
  50. package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs.map +1 -1
  51. package/dist/esm/Calendar/utils/formatDateAsNumeral.mjs.map +1 -1
  52. package/dist/esm/Calendar/utils/formatDateAsText.mjs.map +1 -1
  53. package/dist/esm/Calendar/utils/parseDateAsTextOrNumeral.mjs.map +1 -1
  54. package/dist/esm/Calendar/utils/parseDateFromNumeralFormatValue.mjs.map +1 -1
  55. package/dist/esm/Calendar/utils/parseDateFromTextFormatValue.mjs.map +1 -1
  56. package/dist/esm/DateInput/DateInputDescription/DateInputDescription.mjs.map +1 -1
  57. package/dist/esm/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.mjs.map +1 -1
  58. package/dist/esm/DatePicker/subcomponents/DateInputField/DateInputField.mjs.map +1 -1
  59. package/dist/esm/DatePicker/utils/getLocale.mjs.map +1 -1
  60. package/dist/esm/ErrorPage/hooks/useErrorMessages.mjs +4 -4
  61. package/dist/esm/ErrorPage/hooks/useErrorMessages.mjs.map +1 -1
  62. package/dist/esm/Filter/Filter/Filter.mjs +5 -2
  63. package/dist/esm/Filter/Filter/Filter.mjs.map +1 -1
  64. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +3 -3
  65. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs.map +1 -1
  66. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.mjs +1 -1
  67. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.mjs.map +1 -1
  68. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.mjs +1 -1
  69. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.mjs.map +1 -1
  70. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
  71. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs.map +1 -1
  72. package/dist/esm/Filter/FilterDatePicker/hooks/useDateInputHandlers.mjs.map +1 -1
  73. package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs.map +1 -1
  74. package/dist/esm/Filter/FilterDatePicker/utils/transformDateToInputValue.mjs.map +1 -1
  75. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.mjs.map +1 -1
  76. package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.mjs.map +1 -1
  77. package/dist/esm/dts/Calendar/LegacyCalendarRange/LegacyCalendarRange.d.ts +1 -0
  78. package/dist/esm/dts/Calendar/utils/formatDateAsNumeral.d.ts +1 -0
  79. package/dist/esm/dts/Calendar/utils/formatDateAsText.d.ts +1 -0
  80. package/dist/esm/dts/Calendar/utils/parseDateAsTextOrNumeral.d.ts +1 -0
  81. package/dist/esm/dts/Calendar/utils/parseDateFromNumeralFormatValue.d.ts +1 -0
  82. package/dist/esm/dts/Calendar/utils/parseDateFromTextFormatValue.d.ts +1 -0
  83. package/dist/esm/dts/DateInput/DateInputDescription/DateInputDescription.d.ts +1 -0
  84. package/dist/esm/dts/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.d.ts +1 -0
  85. package/dist/esm/dts/DatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -0
  86. package/dist/esm/dts/DatePicker/utils/getLocale.d.ts +1 -0
  87. package/dist/esm/dts/Filter/Filter/Filter.d.ts +1 -0
  88. package/dist/esm/dts/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.d.ts +2 -2
  89. package/dist/esm/dts/Filter/FilterDatePicker/_docs/controls/validationControls.d.ts +4 -4
  90. package/dist/esm/dts/Filter/FilterDatePicker/hooks/useDateInputHandlers.d.ts +1 -0
  91. package/dist/esm/dts/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.d.ts +1 -0
  92. package/dist/esm/dts/Filter/FilterDatePicker/utils/transformDateToInputValue.d.ts +1 -0
  93. package/dist/esm/dts/Filter/FilterDateRangePicker/_docs/controls/validationControls.d.ts +4 -4
  94. package/dist/esm/dts/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.d.ts +1 -0
  95. package/dist/esm/dts/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.d.ts +1 -0
  96. package/dist/esm/dts/Menu/_docs/examples.d.ts +1 -1
  97. package/dist/esm/index.css +2 -2
  98. package/dist/index.d.ts +2 -0
  99. package/dist/styles.css +1 -1
  100. package/locales/ar.json +4 -4
  101. package/locales/bg.json +4 -4
  102. package/locales/cs.json +4 -4
  103. package/locales/cy.json +4 -4
  104. package/locales/da.json +4 -4
  105. package/locales/de.json +4 -4
  106. package/locales/el.json +4 -4
  107. package/locales/en-GB.json +4 -4
  108. package/locales/en.json +4 -4
  109. package/locales/es-419.json +4 -4
  110. package/locales/es.json +4 -4
  111. package/locales/et.json +4 -4
  112. package/locales/fi.json +4 -4
  113. package/locales/fr-CA.json +4 -4
  114. package/locales/fr.json +4 -4
  115. package/locales/he.json +4 -4
  116. package/locales/hi.json +4 -4
  117. package/locales/ht.json +4 -4
  118. package/locales/hu.json +4 -4
  119. package/locales/id.json +4 -4
  120. package/locales/it.json +4 -4
  121. package/locales/ja.json +4 -4
  122. package/locales/km-KH.json +4 -4
  123. package/locales/ko.json +4 -4
  124. package/locales/lt.json +4 -4
  125. package/locales/lv.json +4 -4
  126. package/locales/mi.json +4 -4
  127. package/locales/ms.json +4 -4
  128. package/locales/nb.json +4 -4
  129. package/locales/nl.json +4 -4
  130. package/locales/pl.json +4 -4
  131. package/locales/pt-BR.json +4 -4
  132. package/locales/pt.json +4 -4
  133. package/locales/ro.json +4 -4
  134. package/locales/ru.json +4 -4
  135. package/locales/si-LK.json +4 -4
  136. package/locales/sk.json +4 -4
  137. package/locales/sr.json +4 -4
  138. package/locales/sv.json +4 -4
  139. package/locales/th.json +4 -4
  140. package/locales/tl.json +4 -4
  141. package/locales/tr.json +4 -4
  142. package/locales/uk.json +4 -4
  143. package/locales/vi.json +4 -4
  144. package/locales/zh-TW.json +4 -4
  145. package/locales/zh.json +4 -4
  146. package/package.json +25 -25
  147. package/src/Avatar/_docs/Avatar.mdx +2 -5
  148. package/src/AvatarGroup/_docs/AvatarGroup.mdx +2 -6
  149. package/src/Badge/_docs/Badge.mdx +2 -6
  150. package/src/Brand/_docs/Brand.mdx +2 -5
  151. package/src/BrandMoment/_docs/BrandMoment.mdx +2 -6
  152. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +1 -1
  153. package/src/Button/Button/Button.tsx +0 -0
  154. package/src/Button/Button/_docs/Button.mdx +2 -5
  155. package/src/Button/GenericButton/GenericButton.module.scss +0 -0
  156. package/src/Button/GenericButton/GenericButton.tsx +0 -0
  157. package/src/Button/IconButton/_docs/IconButton.mdx +2 -6
  158. package/src/ButtonGroup/_docs/ButtonGroup.stories.tsx +1 -1
  159. package/src/Calendar/CalendarRange/_docs/CalendarRange.mdx +2 -6
  160. package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +20 -9
  161. package/src/Calendar/CalendarSingle/_docs/CalendarSingle.mdx +2 -6
  162. package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +23 -30
  163. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +1 -0
  164. package/src/Calendar/utils/formatDateAsNumeral.ts +1 -1
  165. package/src/Calendar/utils/formatDateAsText.ts +1 -1
  166. package/src/Calendar/utils/isSelectingDayInCalendar.spec.tsx +4 -5
  167. package/src/Calendar/utils/parseDateAsTextOrNumeral.ts +1 -0
  168. package/src/Calendar/utils/parseDateFromNumeralFormatValue.ts +1 -1
  169. package/src/Calendar/utils/parseDateFromTextFormatValue.ts +1 -1
  170. package/src/Calendar/utils/setFocusInCalendar.spec.tsx +21 -16
  171. package/src/Card/_docs/Card.mdx +2 -6
  172. package/src/Checkbox/Checkbox/_docs/Checkbox.mdx +2 -6
  173. package/src/Checkbox/CheckboxField/_docs/CheckboxField.mdx +2 -6
  174. package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.mdx +2 -11
  175. package/src/Collapsible/Collapsible/_docs/Collapsible.mdx +2 -6
  176. package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.mdx +2 -6
  177. package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.mdx +2 -6
  178. package/src/Container/_docs/Container.mdx +2 -6
  179. package/src/Content/_docs/Content.mdx +2 -6
  180. package/src/DateInput/DateInputDescription/DateInputDescription.tsx +1 -0
  181. package/src/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.ts +2 -0
  182. package/src/DatePicker/DatePicker.spec.tsx +12 -16
  183. package/src/DatePicker/_docs/DatePicker.mdx +2 -6
  184. package/src/DatePicker/subcomponents/DateInputField/DateInputField.tsx +1 -0
  185. package/src/DatePicker/utils/getLocale.ts +1 -0
  186. package/src/DateRangePicker/_docs/DateRangePicker.mdx +2 -6
  187. package/src/Divider/_docs/Divider.mdx +2 -6
  188. package/src/EmptyState/_docs/EmptyState.mdx +2 -6
  189. package/src/EmptyState/illustrations/action.png +0 -0
  190. package/src/EmptyState/illustrations/informative.png +0 -0
  191. package/src/EmptyState/illustrations/negative.png +0 -0
  192. package/src/EmptyState/illustrations/neutral.png +0 -0
  193. package/src/EmptyState/illustrations/positive.png +0 -0
  194. package/src/ErrorPage/hooks/useErrorMessages.ts +4 -4
  195. package/src/FieldGroup/_docs/FieldGroup.mdx +2 -8
  196. package/src/FieldMessage/_docs/FieldMessage.mdx +2 -6
  197. package/src/Filter/Filter/Filter.spec.tsx +6 -4
  198. package/src/Filter/Filter/Filter.tsx +11 -1
  199. package/src/Filter/Filter/_docs/Filter.mdx +2 -6
  200. package/src/Filter/FilterBar/FilterBar.spec.tsx +12 -1
  201. package/src/Filter/FilterBar/_docs/FilterBar.mdx +2 -6
  202. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.spec.tsx +1 -1
  203. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.tsx +3 -3
  204. package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.spec.tsx +17 -22
  205. package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.tsx +1 -1
  206. package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.spec.tsx +6 -7
  207. package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.tsx +1 -1
  208. package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
  209. package/src/Filter/FilterButton/_docs/filter-buttons.mdx +2 -6
  210. package/src/Filter/FilterDatePicker/FilterDatePicker.spec.stories.tsx +2 -3
  211. package/src/Filter/FilterDatePicker/FilterDatePicker.spec.tsx +3 -5
  212. package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.mdx +2 -6
  213. package/src/Filter/FilterDatePicker/hooks/useDateInputHandlers.ts +1 -0
  214. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.tsx +1 -0
  215. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.spec.tsx +25 -21
  216. package/src/Filter/FilterDatePicker/utils/transformDateToInputValue.ts +1 -0
  217. package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.mdx +2 -6
  218. package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +1 -1
  219. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.tsx +1 -0
  220. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.tsx +1 -0
  221. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.spec.tsx +30 -24
  222. package/src/Filter/FilterSelect/_docs/FilterSelect.mdx +2 -6
  223. package/src/GuidanceBlock/_docs/GuidanceBlock.mdx +2 -6
  224. package/src/Heading/_docs/Heading.mdx +2 -7
  225. package/src/Icon/bin/update-icons.sh +2 -2
  226. package/src/Icon/bin/wrapSVGs.ts +0 -0
  227. package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.mdx +2 -6
  228. package/src/Illustration/Scene/_docs/Scene.mdx +2 -3
  229. package/src/Illustration/Spot/_docs/Spot.mdx +2 -6
  230. package/src/Input/Input/_docs/Input.mdx +2 -6
  231. package/src/Input/InputRange/_docs/InputRange.mdx +2 -6
  232. package/src/Input/InputSearch/_docs/InputSearch.mdx +2 -7
  233. package/src/Label/_docs/Label.mdx +2 -6
  234. package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.mdx +2 -6
  235. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.mdx +2 -6
  236. package/src/Loading/LoadingHeading/_docs/LoadingHeading.mdx +2 -6
  237. package/src/Loading/LoadingInput/_docs/LoadingInput.mdx +2 -6
  238. package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.mdx +2 -6
  239. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.mdx +2 -11
  240. package/src/Menu/_docs/Menu.mdx +2 -6
  241. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +0 -0
  242. package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.mdx +2 -6
  243. package/src/Modal/ContextModal/_docs/ContextModal.mdx +2 -6
  244. package/src/Modal/GenericModal/_docs/GenericModal.mdx +2 -6
  245. package/src/Modal/InputEditModal/_docs/InputEditModal.mdx +2 -6
  246. package/src/MultiSelect/_docs/MultiSelect.mdx +2 -5
  247. package/src/Notification/GlobalNotification/_docs/GlobalNotification.mdx +2 -6
  248. package/src/Notification/InlineNotification/_docs/InlineNotification.mdx +2 -6
  249. package/src/Notification/ToastNotification/_docs/ToastNotification.mdx +2 -6
  250. package/src/Pagination/_docs/Pagination.mdx +2 -6
  251. package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.mdx +2 -6
  252. package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.mdx +2 -7
  253. package/src/Popover/_docs/Popover.mdx +2 -6
  254. package/src/ProgressBar/_docs/ProgressBar.mdx +2 -6
  255. package/src/Radio/Radio/_docs/Radio.mdx +2 -6
  256. package/src/Radio/RadioField/_docs/RadioField.mdx +2 -6
  257. package/src/Radio/RadioGroup/_docs/RadioGroup.mdx +2 -6
  258. package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.mdx +2 -6
  259. package/src/RichTextEditor/RichTextContent/_docs/RichTextContent.mdx +2 -6
  260. package/src/RichTextEditor/RichTextEditor/RichTextEditor.spec.stories.tsx +1 -2
  261. package/src/RichTextEditor/RichTextEditor/_docs/RichTextEditor.mdx +2 -8
  262. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.mdx +2 -6
  263. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.mdx +2 -6
  264. package/src/RichTextEditor/index.ts +0 -0
  265. package/src/SearchField/_docs/SearchField.mdx +2 -6
  266. package/src/Select/_docs/Select.mdx +2 -6
  267. package/src/Skirt/_docs/Skirt.mdx +2 -6
  268. package/src/Slider/_docs/Slider.mdx +2 -6
  269. package/src/SplitButton/_docs/SplitButton.mdx +2 -6
  270. package/src/Table/_docs/Table.mdx +3 -6
  271. package/src/Tabs/_docs/Tabs.mdx +3 -5
  272. package/src/Tag/_docs/Tag.mdx +2 -6
  273. package/src/Text/_docs/Text.mdx +2 -6
  274. package/src/TextArea/_docs/TextArea.mdx +2 -7
  275. package/src/TextAreaField/_docs/TextAreaField.mdx +2 -6
  276. package/src/TextField/_docs/TextField.mdx +2 -6
  277. package/src/Tile/InformationTile/_docs/InformationTile.mdx +2 -6
  278. package/src/Tile/MultiActionTile/_docs/MultiActionTile.mdx +2 -6
  279. package/src/Tile/TileGrid/_docs/TileGrid.mdx +2 -6
  280. package/src/Tile/subcomponents/GenericTile/GenericTile.spec.stories.tsx +1 -3
  281. package/src/TimeField/_docs/TimeField.mdx +2 -6
  282. package/src/TitleBlockZen/_docs/TitleBlockZen.mdx +2 -6
  283. package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.mdx +2 -6
  284. package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.mdx +2 -6
  285. package/src/Tooltip/_docs/Tooltip.mdx +2 -6
  286. package/src/VisuallyHidden/_docs/VisuallyHidden.mdx +2 -6
  287. package/src/Well/_docs/Well.mdx +2 -6
  288. package/src/Workflow/_docs/ProgressStepper.stories.tsx +1 -1
  289. package/src/Workflow/_docs/Workflow.mdx +2 -6
  290. package/src/Workflow/_docs/WorkflowFooter.stories.tsx +1 -1
  291. package/src/Workflow/_docs/WorkflowHeader.stories.tsx +1 -1
  292. package/src/__future__/Select/_docs/Select.mdx +2 -6
  293. package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.mdx +2 -7
  294. package/src/__future__/Tag/Tag/_docs/Tag.mdx +2 -6
  295. package/src/__future__/Workflow/_docs/ProgressStepper.mdx +2 -6
  296. package/src/__future__/Workflow/_docs/Workflow.mdx +2 -5
  297. package/src/__future__/Workflow/_docs/WorkflowFooter.mdx +2 -5
  298. package/src/__future__/Workflow/_docs/WorkflowHeader.mdx +2 -5
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Meta } from "@storybook/react"
3
- import { within } from "@storybook/testing-library"
3
+ import { within } from "@storybook/test"
4
4
  import {
5
5
  StickerSheet,
6
6
  StickerSheetStory,
@@ -109,9 +109,13 @@ const StickerSheetTemplate: StickerSheetStory = {
109
109
  const applyStickerSheetStyles = (canvasElement: HTMLElement): void => {
110
110
  const canvas = within(canvasElement)
111
111
 
112
- const getElementWithinCalendar = (id: string, name: string): HTMLElement => {
112
+ const getElementWithinCalendar = (
113
+ id: string,
114
+ role: string,
115
+ name: string
116
+ ): HTMLElement => {
113
117
  const calendar = canvas.getByTestId(id)
114
- return within(calendar).getByRole("button", { name })
118
+ return within(calendar).getByRole(role, { name })
115
119
  }
116
120
 
117
121
  const todayCalendarIds = [
@@ -121,44 +125,33 @@ const applyStickerSheetStyles = (canvasElement: HTMLElement): void => {
121
125
  ]
122
126
 
123
127
  todayCalendarIds.forEach(id => {
124
- getElementWithinCalendar(id, "1st May (Sunday)").classList.add(
125
- styles.dayToday
126
- )
128
+ getElementWithinCalendar(id, "gridcell", "1").classList.add(styles.dayToday)
127
129
  })
128
130
 
129
- const calendarsHover = [
130
- { id: "id--calendar--hover", buttonDescription: "5th September (Sunday)" },
131
+ const calendarsPseudoStates = [
132
+ {
133
+ id: "id--calendar",
134
+ role: "gridcell",
135
+ name: "5",
136
+ },
131
137
  {
132
- id: "id--calendar-selected--hover",
133
- buttonDescription: "5th September (Sunday)",
138
+ id: "id--calendar-selected",
139
+ role: "gridcell",
140
+ name: "5",
134
141
  },
135
142
  {
136
- id: "id--calendar-navigation--hover",
137
- buttonDescription: "Go to previous month",
143
+ id: "id--calendar-navigation",
144
+ role: "button",
145
+ name: "Go to previous month",
138
146
  },
139
147
  ]
140
148
 
141
- calendarsHover.forEach(({ id, buttonDescription }) => {
142
- getElementWithinCalendar(id, buttonDescription).setAttribute(
149
+ calendarsPseudoStates.forEach(({ id, role, name }) => {
150
+ getElementWithinCalendar(`${id}--hover`, role, name).setAttribute(
143
151
  "data-sb-pseudo-styles",
144
152
  "hover"
145
153
  )
146
- })
147
-
148
- const calendarsFocus = [
149
- { id: "id--calendar--focus", buttonDescription: "5th September (Sunday)" },
150
- {
151
- id: "id--calendar-selected--focus",
152
- buttonDescription: "5th September (Sunday)",
153
- },
154
- {
155
- id: "id--calendar-navigation--focus",
156
- buttonDescription: "Go to previous month",
157
- },
158
- ]
159
-
160
- calendarsFocus.forEach(({ id, buttonDescription }) => {
161
- getElementWithinCalendar(id, buttonDescription).setAttribute(
154
+ getElementWithinCalendar(`${id}--focus`, role, name).setAttribute(
162
155
  "data-sb-pseudo-styles",
163
156
  "focus"
164
157
  )
@@ -1,4 +1,5 @@
1
1
  import React from "react"
2
+ import type { Locale } from "date-fns"
2
3
  import {
3
4
  DayPicker,
4
5
  DateRange,
@@ -1,4 +1,4 @@
1
- import { format } from "date-fns"
1
+ import { Locale, format } from "date-fns"
2
2
  import { DateFormat } from "../enums"
3
3
  import { isInvalidDate } from "./isInvalidDate"
4
4
 
@@ -1,4 +1,4 @@
1
- import { format } from "date-fns"
1
+ import { Locale, format } from "date-fns"
2
2
  import { DateFormat } from "../enums"
3
3
  import { DisabledDays } from "../types"
4
4
  import { isDisabledDate } from "./isDisabledDate"
@@ -1,15 +1,14 @@
1
1
  import React from "react"
2
- import { render, screen } from "@testing-library/react"
2
+ import { render, screen, within } from "@testing-library/react"
3
3
  import { CalendarSingle } from "../CalendarSingle"
4
4
  import { isSelectingDayInCalendar } from "./isSelectingDayInCalendar"
5
5
 
6
6
  describe("isSelectingDayInCalendar", () => {
7
7
  it("returns true when target is a Calendar day", () => {
8
8
  render(<CalendarSingle defaultMonth={new Date("2022-02-01")} />)
9
- const calendarDayElement = screen.getByRole("button", {
10
- name: "1st February (Tuesday)",
11
- })
12
- expect(isSelectingDayInCalendar(calendarDayElement)).toBe(true)
9
+ const targetMonth = screen.getByRole("grid", { name: "February 2022" })
10
+ const targetDay = within(targetMonth).getByRole("gridcell", { name: "1" })
11
+ expect(isSelectingDayInCalendar(targetDay)).toBe(true)
13
12
  })
14
13
 
15
14
  it("returns false when target is not a Calendar day", () => {
@@ -1,3 +1,4 @@
1
+ import type { Locale } from "date-fns"
1
2
  import { parseDateFromNumeralFormatValue } from "./parseDateFromNumeralFormatValue"
2
3
  import { parseDateFromTextFormatValue } from "./parseDateFromTextFormatValue"
3
4
 
@@ -1,4 +1,4 @@
1
- import { parse } from "date-fns"
1
+ import { Locale, parse } from "date-fns"
2
2
  import { DateFormat } from "../enums"
3
3
 
4
4
  export const parseDateFromNumeralFormatValue = (
@@ -1,4 +1,4 @@
1
- import { parse } from "date-fns"
1
+ import { Locale, parse } from "date-fns"
2
2
  import { DateFormat } from "../enums"
3
3
 
4
4
  export const parseDateFromTextFormatValue = (
@@ -1,5 +1,5 @@
1
1
  import React from "react"
2
- import { render, screen } from "@testing-library/react"
2
+ import { render, screen, within } from "@testing-library/react"
3
3
  import { format } from "date-fns"
4
4
  import { enUS } from "date-fns/locale"
5
5
  import { CalendarSingle, CalendarSingleProps } from "../CalendarSingle"
@@ -8,9 +8,9 @@ import { setFocusInCalendar } from "./setFocusInCalendar"
8
8
  const CalendarWrapper = (props: Partial<CalendarSingleProps>): JSX.Element => (
9
9
  <CalendarSingle
10
10
  id="calendar-dialog"
11
- onDayClick={jest.fn<void, [Date]>()}
11
+ onDayClick={jest.fn()}
12
12
  locale={enUS}
13
- onMount={(calendarElement): void =>
13
+ onMount={calendarElement =>
14
14
  setFocusInCalendar(calendarElement, props.selected)
15
15
  }
16
16
  {...props}
@@ -18,38 +18,43 @@ const CalendarWrapper = (props: Partial<CalendarSingleProps>): JSX.Element => (
18
18
  )
19
19
 
20
20
  const today = new Date()
21
- const todayFormatted = format(today, "do MMMM (eeee)") // e.g 6th June (Monday)
21
+ const todayMonth = format(today, "MMMM yyyy") // e.g "June 2023"
22
+ const todayDay = today.getDate().toString() // e.g "6"
22
23
 
23
24
  describe("setFocusInCalendar", () => {
24
25
  it("should focus on today when no date is selected", () => {
25
26
  render(<CalendarWrapper />)
26
27
 
27
- const dayToFocus = screen.getByRole("button", { name: todayFormatted })
28
- expect(dayToFocus).toHaveFocus()
28
+ const targetMonth = screen.getByRole("grid", { name: todayMonth })
29
+ const targetDay = within(targetMonth).getByRole("gridcell", {
30
+ name: todayDay,
31
+ })
32
+ expect(targetDay).toHaveFocus()
29
33
  })
30
34
 
31
35
  it("should focus on the selected day", () => {
32
36
  render(<CalendarWrapper selected={new Date("2022-08-15")} />)
33
37
 
34
- const dayToFocus = screen.getByRole("button", {
35
- name: "15th August (Monday)",
36
- })
37
- expect(dayToFocus).toHaveFocus()
38
+ const targetMonth = screen.getByRole("grid", { name: "August 2022" })
39
+ const targetDay = within(targetMonth).getByRole("gridcell", { name: "15" })
40
+ expect(targetDay).toHaveFocus()
38
41
  })
39
42
 
40
43
  it("should focus on today when selected date is invalid", () => {
41
44
  render(<CalendarWrapper selected={new Date("potato")} />)
42
45
 
43
- const dayToFocus = screen.getByRole("button", { name: todayFormatted })
44
- expect(dayToFocus).toHaveFocus()
46
+ const targetMonth = screen.getByRole("grid", { name: todayMonth })
47
+ const targetDay = within(targetMonth).getByRole("gridcell", {
48
+ name: todayDay,
49
+ })
50
+ expect(targetDay).toHaveFocus()
45
51
  })
46
52
 
47
53
  it("should focus on the first of the month when there is no selected day nor in the current month", () => {
48
54
  render(<CalendarWrapper defaultMonth={new Date("2022-05-01")} />)
49
55
 
50
- const dayToFocus = screen.getByRole("button", {
51
- name: "1st May (Sunday)",
52
- })
53
- expect(dayToFocus).toHaveFocus()
56
+ const targetMonth = screen.getByRole("grid", { name: "May 2022" })
57
+ const targetDay = within(targetMonth).getByRole("gridcell", { name: "1" })
58
+ expect(targetDay).toHaveFocus()
54
59
  })
55
60
  })
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, DocsStory, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as CardStories from "./Card.stories"
4
4
 
5
5
  <Meta of={CardStories} />
@@ -11,11 +11,7 @@ import * as CardStories from "./Card.stories"
11
11
  className="!mb-8"
12
12
  />
13
13
 
14
-
15
- <Installation
16
- installCommand="yarn add @kaizen/components"
17
- importStatement='import { Card } from "@kaizen/components"'
18
- />
14
+ <KAIOInstallation exportNames="Card" />
19
15
 
20
16
  ## Overview
21
17
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import { LinkTo } from "~storybook/components/LinkTo"
4
4
  import * as CheckboxStories from "./Checkbox.stories"
5
5
 
@@ -12,11 +12,7 @@ import * as CheckboxStories from "./Checkbox.stories"
12
12
  className="!mb-8"
13
13
  />
14
14
 
15
-
16
- <Installation
17
- installCommand="yarn add @kaizen/components"
18
- importStatement='import { Checkbox } from "@kaizen/components"'
19
- />
15
+ <KAIOInstallation exportNames="Checkbox" />
20
16
 
21
17
  ## Overview
22
18
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as CheckboxFieldStories from "./CheckboxField.stories"
4
4
 
5
5
  <Meta of={CheckboxFieldStories} />
@@ -13,11 +13,7 @@ import * as CheckboxFieldStories from "./CheckboxField.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { CheckboxField } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="CheckboxField" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,16 +1,11 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as CheckboxGroupStories from "./CheckboxGroup.stories"
4
4
 
5
5
  <Meta of={CheckboxGroupStories} />
6
6
 
7
7
  # CheckboxGroup
8
8
 
9
- {/*
10
- * @todo:
11
- * - Adjust Github link (if needed)
12
- * - Add Figma and Design Guidelines (Confluence) link
13
- */}
14
9
  <ResourceLinks
15
10
  sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/CheckboxGroup"
16
11
  figma="https://www.figma.com/file/ZRfnoNUXbGZv4eVWLbF4Az/%EF%B8%8F%F0%9F%96%BC%EF%B8%8F-Component-Gallery?node-id=6%3A4586&t=P1w10jr2cpPuaayw-1"
@@ -18,11 +13,7 @@ import * as CheckboxGroupStories from "./CheckboxGroup.stories"
18
13
  className="!mb-8"
19
14
  />
20
15
 
21
-
22
- <Installation
23
- installCommand="yarn add @kaizen/components"
24
- importStatement='import { CheckboxGroup } from "@kaizen/components"'
25
- />
16
+ <KAIOInstallation exportNames="CheckboxGroup" />
26
17
 
27
18
  ## Overview
28
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, DocsStory, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as CollapsibleStories from "./Collapsible.stories"
4
4
 
5
5
  <Meta of={CollapsibleStories} />
@@ -13,11 +13,7 @@ import * as CollapsibleStories from "./Collapsible.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { Collapsible } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="Collapsible" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as CollapsibleGroupStories from "./CollapsibleGroup.stories"
4
4
 
5
5
  <Meta of={CollapsibleGroupStories} />
@@ -13,11 +13,7 @@ import * as CollapsibleGroupStories from "./CollapsibleGroup.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { CollapsibleGroup } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="CollapsibleGroup" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as ExpertAdviceCollapsibleStories from "./ExpertAdviceCollapsible.stories"
4
4
 
5
5
  <Meta of={ExpertAdviceCollapsibleStories} />
@@ -13,11 +13,7 @@ import * as ExpertAdviceCollapsibleStories from "./ExpertAdviceCollapsible.stori
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { ExpertAdviceCollapsible } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="ExpertAdviceCollapsible" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import { LinkTo } from "~storybook/components/LinkTo"
4
4
  import * as ContainerStories from "./Container.stories"
5
5
 
@@ -13,11 +13,7 @@ import * as ContainerStories from "./Container.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { Container } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="Container" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import { LinkTo } from "~storybook/components/LinkTo"
4
4
  import * as ContentStories from "./Content.stories"
5
5
 
@@ -13,11 +13,7 @@ import * as ContentStories from "./Content.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { Content } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="Content" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,6 @@
1
1
  import React from "react"
2
2
  import { useIntl } from "@cultureamp/i18n-react-intl"
3
+ import type { Locale } from "date-fns"
3
4
  import { LabelledMessage } from "~components/LabelledMessage"
4
5
  import { formatDescriptionInputFormat } from "./utils/formatDescriptionInputFormat"
5
6
  import styles from "./DateInputDescription.module.scss"
@@ -1,2 +1,4 @@
1
+ import type { Locale } from "date-fns"
2
+
1
3
  export const formatDescriptionInputFormat = (locale: Locale): string =>
2
4
  locale.formatLong?.date({ width: "short" }).toLowerCase()
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState } from "react"
2
- import { render, screen, waitFor } from "@testing-library/react"
2
+ import { render, screen, waitFor, within } from "@testing-library/react"
3
3
  import userEvent from "@testing-library/user-event"
4
4
  import { DatePicker } from "./DatePicker"
5
5
  import { ValidationResponse } from "./types"
@@ -166,9 +166,8 @@ describe("<DatePicker /> - Focus element", () => {
166
166
  expect(screen.queryByRole("dialog")).toBeVisible()
167
167
  })
168
168
 
169
- const dateToSelect = screen.getByRole("button", {
170
- name: "6th March (Sunday)",
171
- })
169
+ const month = screen.getByRole("grid", { name: "March 2022" })
170
+ const dateToSelect = within(month).getByRole("gridcell", { name: "6" })
172
171
  await user.click(dateToSelect)
173
172
 
174
173
  const input = screen.getByLabelText("Input label")
@@ -193,9 +192,8 @@ describe("<DatePicker /> - Focus element", () => {
193
192
  expect(screen.queryByRole("dialog")).toBeVisible()
194
193
  })
195
194
 
196
- const selectedDate = screen.getByRole("button", {
197
- name: "1st March (Tuesday)",
198
- })
195
+ const month = screen.getByRole("grid", { name: "March 2022" })
196
+ const selectedDate = within(month).getByRole("gridcell", { name: "1" })
199
197
  expect(selectedDate).toHaveFocus()
200
198
  })
201
199
 
@@ -233,9 +231,8 @@ describe("<DatePicker /> - Focus element", () => {
233
231
  expect(screen.getByRole("dialog")).toBeVisible()
234
232
  })
235
233
 
236
- const selectedDate = screen.getByRole("button", {
237
- name: "1st March (Tuesday)",
238
- })
234
+ const month = screen.getByRole("grid", { name: "March 2022" })
235
+ const selectedDate = within(month).getByRole("gridcell", { name: "1" })
239
236
  expect(selectedDate).toHaveFocus()
240
237
  })
241
238
 
@@ -278,9 +275,8 @@ describe("<DatePicker /> - Focus element", () => {
278
275
  expect(screen.getByRole("dialog")).toBeVisible()
279
276
  })
280
277
 
281
- const selectedDate = screen.getByRole("button", {
282
- name: "1st March (Tuesday)",
283
- })
278
+ const month = screen.getByRole("grid", { name: "March 2022" })
279
+ const selectedDate = within(month).getByRole("gridcell", { name: "1" })
284
280
  expect(selectedDate).toHaveFocus()
285
281
  })
286
282
 
@@ -418,9 +414,9 @@ describe("<DatePicker /> - Validation", () => {
418
414
  await waitFor(() => {
419
415
  expect(screen.queryByRole("dialog")).toBeVisible()
420
416
  })
421
- const dateToSelect = screen.getByRole("button", {
422
- name: "6th March (Sunday)",
423
- })
417
+
418
+ const month = screen.getByRole("grid", { name: "March 2022" })
419
+ const dateToSelect = within(month).getByRole("gridcell", { name: "6" })
424
420
  await user.click(dateToSelect)
425
421
  await waitFor(() => {
426
422
  expect(onValidate).toBeCalledTimes(1)
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as DatePickerStories from "./DatePicker.stories"
4
4
 
5
5
  <Meta of={DatePickerStories} />
@@ -13,11 +13,7 @@ import * as DatePickerStories from "./DatePicker.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { DatePicker } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="DatePicker" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,6 @@
1
1
  import React, { useId } from "react"
2
2
  import classnames from "classnames"
3
+ import type { Locale } from "date-fns"
3
4
  import { enAU } from "date-fns/locale"
4
5
  import {
5
6
  DateInputDescription,
@@ -1,3 +1,4 @@
1
+ import type { Locale } from "date-fns"
1
2
  import { enAU, enUS } from "date-fns/locale"
2
3
  import { StringSuggestions } from "~types/StringSuggestions"
3
4
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as DateRangePickerStories from "./DateRangePicker.stories"
4
4
 
5
5
  <Meta of={DateRangePickerStories} />
@@ -13,11 +13,7 @@ import * as DateRangePickerStories from "./DateRangePicker.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { DateRangePicker } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="DateRangePicker" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, DocsStory, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as DividerStories from "./Divider.stories"
4
4
 
5
5
  <Meta of={DividerStories} />
@@ -13,11 +13,7 @@ import * as DividerStories from "./Divider.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { Divider } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="Divider" />
21
17
 
22
18
  ## Overview
23
19
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, Installation } from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as EmptyStateStories from "./EmptyState.stories"
4
4
 
5
5
  <Meta of={EmptyStateStories} />
@@ -13,11 +13,7 @@ import * as EmptyStateStories from "./EmptyState.stories"
13
13
  className="!mb-8"
14
14
  />
15
15
 
16
-
17
- <Installation
18
- installCommand="yarn add @kaizen/components"
19
- importStatement='import { EmptyState } from "@kaizen/components"'
20
- />
16
+ <KAIOInstallation exportNames="EmptyState" />
21
17
 
22
18
  ## Overview
23
19
 
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -24,13 +24,13 @@ export const useErrorMessages = (
24
24
  400: {
25
25
  title: formatMessage({
26
26
  id: "kzErrorPage.400.title",
27
- defaultMessage: "Your request has slipped into the void",
27
+ defaultMessage: "Problem loading page",
28
28
  description: "Heading for page",
29
29
  }),
30
30
  message: formatMessage({
31
31
  id: "kzErrorPage.400.message",
32
32
  defaultMessage:
33
- "Sorry but your request couldn’t be completed. Go back and try again, or head to Home",
33
+ "Problem loading page right now. Try again or head home.",
34
34
  description: "Call to action instructions for the user",
35
35
  }),
36
36
  },
@@ -63,7 +63,7 @@ export const useErrorMessages = (
63
63
  404: {
64
64
  title: formatMessage({
65
65
  id: "kzErrorPage.404.title",
66
- defaultMessage: "Missing pages are one of life's mysteries",
66
+ defaultMessage: "Page not found",
67
67
  description: "Main title of page",
68
68
  }),
69
69
  message: formatMessage({
@@ -89,7 +89,7 @@ export const useErrorMessages = (
89
89
  422: {
90
90
  title: formatMessage({
91
91
  id: "kzErrorPage.422.title",
92
- defaultMessage: "Change never comes easy",
92
+ defaultMessage: "Change couldn't be made",
93
93
  description: "Main title of page",
94
94
  }),
95
95
  message: formatMessage({