@onewelcome/react-lib-components 0.2.6 → 1.0.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 (299) hide show
  1. package/LICENSE +202 -21
  2. package/dist/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  3. package/dist/Button/BaseButton.d.ts +1 -1
  4. package/dist/Button/Button.d.ts +1 -1
  5. package/dist/Button/IconButton.d.ts +1 -1
  6. package/dist/ContextMenu/ContextMenu.d.ts +1 -1
  7. package/dist/ContextMenu/ContextMenuItem.d.ts +1 -1
  8. package/dist/DataGrid/DataGridActions/DataGridActions.d.ts +1 -1
  9. package/dist/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +1 -1
  10. package/dist/DataGrid/DataGridBody/DataGridCell.d.ts +1 -1
  11. package/dist/DataGrid/DataGridBody/DataGridRow.d.ts +1 -1
  12. package/dist/DataGrid/DataGridHeader/DataGridHeader.d.ts +1 -1
  13. package/dist/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +1 -1
  14. package/dist/Form/Checkbox/Checkbox.d.ts +1 -1
  15. package/dist/Form/Fieldset/Fieldset.d.ts +1 -1
  16. package/dist/Form/FormControl/FormControl.d.ts +1 -1
  17. package/dist/Form/FormGroup/FormGroup.d.ts +1 -1
  18. package/dist/Form/FormHelperText/FormHelperText.d.ts +1 -1
  19. package/dist/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +1 -1
  20. package/dist/Form/Input/Input.d.ts +2 -3
  21. package/dist/Form/Label/Label.d.ts +1 -1
  22. package/dist/Form/Radio/Radio.d.ts +1 -1
  23. package/dist/Form/Select/Option.d.ts +1 -1
  24. package/dist/Form/Select/Select.d.ts +1 -2
  25. package/dist/Form/Select/Select.interfaces.d.ts +22 -0
  26. package/dist/Form/Select/SelectService.d.ts +12 -0
  27. package/dist/Form/Textarea/Textarea.d.ts +1 -1
  28. package/dist/Form/Toggle/Toggle.d.ts +1 -1
  29. package/dist/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +1 -1
  30. package/dist/Form/Wrapper/InputWrapper/InputWrapper.d.ts +1 -1
  31. package/dist/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +1 -1
  32. package/dist/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +1 -2
  33. package/dist/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +1 -1
  34. package/dist/Form/Wrapper/Wrapper/Wrapper.d.ts +1 -1
  35. package/dist/Icon/Icon.d.ts +1 -1
  36. package/dist/Link/Link.d.ts +3 -4
  37. package/dist/Notifications/BaseModal/BaseModal.d.ts +1 -1
  38. package/dist/Notifications/BaseModal/BaseModalActions/BaseModalActions.d.ts +2 -2
  39. package/dist/Notifications/BaseModal/BaseModalContent/BaseModalContent.d.ts +1 -1
  40. package/dist/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +2 -2
  41. package/dist/Notifications/Dialog/Dialog.d.ts +1 -1
  42. package/dist/Notifications/Dialog/DialogActions/DialogActions.d.ts +1 -1
  43. package/dist/Notifications/Dialog/DialogTitle/DialogTitle.d.ts +1 -1
  44. package/dist/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.d.ts +1 -1
  45. package/dist/Notifications/SlideInModal/SlideInModal.d.ts +1 -1
  46. package/dist/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.d.ts +11 -0
  47. package/dist/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.d.ts +3 -0
  48. package/dist/Notifications/Snackbar/useSnackbar.d.ts +5 -1
  49. package/dist/Pagination/Pagination.d.ts +1 -1
  50. package/dist/Popover/Popover.d.ts +1 -1
  51. package/dist/Skeleton/Skeleton.d.ts +1 -1
  52. package/dist/StatusIndicator/StatusIndicator.d.ts +1 -1
  53. package/dist/Tabs/TabButton.d.ts +1 -1
  54. package/dist/Tabs/TabPanel.d.ts +1 -1
  55. package/dist/TextEllipsis/TextEllipsis.d.ts +1 -1
  56. package/dist/Tiles/Tile.d.ts +1 -1
  57. package/dist/Tiles/Tiles.d.ts +1 -1
  58. package/dist/Tooltip/Tooltip.d.ts +1 -1
  59. package/dist/Wizard/BaseWizardSteps/BaseWizardSteps.d.ts +1 -2
  60. package/dist/Wizard/Wizard.d.ts +0 -1
  61. package/dist/Wizard/WizardSteps/WizardSteps.d.ts +1 -1
  62. package/dist/Wizard/wizardStateReducer.d.ts +1 -3
  63. package/dist/_BaseStyling_/BaseStyling.d.ts +10 -4
  64. package/dist/react-lib-components.cjs.development.js +1171 -1565
  65. package/dist/react-lib-components.cjs.development.js.map +1 -1
  66. package/dist/react-lib-components.cjs.production.min.js +1 -1
  67. package/dist/react-lib-components.cjs.production.min.js.map +1 -1
  68. package/dist/react-lib-components.esm.js +1171 -1565
  69. package/dist/react-lib-components.esm.js.map +1 -1
  70. package/package.json +31 -24
  71. package/src/Breadcrumbs/Breadcrumbs.module.scss +16 -0
  72. package/src/Breadcrumbs/Breadcrumbs.test.tsx +17 -1
  73. package/src/Breadcrumbs/Breadcrumbs.tsx +18 -2
  74. package/src/Button/BaseButton.module.scss +16 -0
  75. package/src/Button/BaseButton.test.tsx +16 -0
  76. package/src/Button/BaseButton.tsx +16 -0
  77. package/src/Button/Button.module.scss +16 -0
  78. package/src/Button/Button.test.tsx +16 -0
  79. package/src/Button/Button.tsx +16 -0
  80. package/src/Button/IconButton.module.scss +16 -0
  81. package/src/Button/IconButton.test.tsx +16 -0
  82. package/src/Button/IconButton.tsx +16 -0
  83. package/src/ContextMenu/ContextMenu.module.scss +16 -0
  84. package/src/ContextMenu/ContextMenu.test.tsx +16 -0
  85. package/src/ContextMenu/ContextMenu.tsx +16 -0
  86. package/src/ContextMenu/ContextMenuItem.module.scss +16 -0
  87. package/src/ContextMenu/ContextMenuItem.tsx +16 -0
  88. package/src/DataGrid/DataGrid.module.scss +16 -0
  89. package/src/DataGrid/DataGrid.test.tsx +16 -0
  90. package/src/DataGrid/DataGrid.tsx +16 -0
  91. package/src/DataGrid/DataGridActions/DataGridActions.module.scss +16 -0
  92. package/src/DataGrid/DataGridActions/DataGridActions.test.tsx +16 -0
  93. package/src/DataGrid/DataGridActions/DataGridActions.tsx +16 -0
  94. package/src/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss +16 -0
  95. package/src/DataGrid/DataGridActions/DataGridColumnsToggle.test.tsx +16 -0
  96. package/src/DataGrid/DataGridActions/DataGridColumnsToggle.tsx +16 -0
  97. package/src/DataGrid/DataGridBody/DataGridBody.module.scss +16 -0
  98. package/src/DataGrid/DataGridBody/DataGridBody.test.tsx +16 -0
  99. package/src/DataGrid/DataGridBody/DataGridBody.tsx +16 -0
  100. package/src/DataGrid/DataGridBody/DataGridCell.module.scss +16 -0
  101. package/src/DataGrid/DataGridBody/DataGridCell.test.tsx +16 -0
  102. package/src/DataGrid/DataGridBody/DataGridCell.tsx +16 -0
  103. package/src/DataGrid/DataGridBody/DataGridRow.module.scss +16 -0
  104. package/src/DataGrid/DataGridBody/DataGridRow.test.tsx +16 -0
  105. package/src/DataGrid/DataGridBody/DataGridRow.tsx +16 -0
  106. package/src/DataGrid/DataGridHeader/DataGridHeader.module.scss +17 -1
  107. package/src/DataGrid/DataGridHeader/DataGridHeader.test.tsx +16 -0
  108. package/src/DataGrid/DataGridHeader/DataGridHeader.tsx +16 -0
  109. package/src/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +16 -0
  110. package/src/DataGrid/DataGridHeader/DataGridHeaderCell.test.tsx +16 -0
  111. package/src/DataGrid/DataGridHeader/DataGridHeaderCell.tsx +16 -0
  112. package/src/DataGrid/datagrid.interfaces.ts +16 -0
  113. package/src/Form/Checkbox/Checkbox.module.scss +20 -6
  114. package/src/Form/Checkbox/Checkbox.test.tsx +16 -0
  115. package/src/Form/Checkbox/Checkbox.tsx +16 -0
  116. package/src/Form/Fieldset/Fieldset.module.scss +16 -0
  117. package/src/Form/Fieldset/Fieldset.test.tsx +16 -0
  118. package/src/Form/Fieldset/Fieldset.tsx +21 -3
  119. package/src/Form/Form.module.scss +16 -0
  120. package/src/Form/Form.test.tsx +16 -0
  121. package/src/Form/Form.tsx +16 -0
  122. package/src/Form/FormControl/FormControl.module.scss +16 -0
  123. package/src/Form/FormControl/FormControl.test.tsx +16 -0
  124. package/src/Form/FormControl/FormControl.tsx +16 -0
  125. package/src/Form/FormGroup/FormGroup.module.scss +16 -0
  126. package/src/Form/FormGroup/FormGroup.test.tsx +16 -0
  127. package/src/Form/FormGroup/FormGroup.tsx +17 -1
  128. package/src/Form/FormHelperText/FormHelperText.module.scss +16 -0
  129. package/src/Form/FormHelperText/FormHelperText.test.tsx +16 -0
  130. package/src/Form/FormHelperText/FormHelperText.tsx +16 -0
  131. package/src/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss +16 -0
  132. package/src/Form/FormSelectorWrapper/FormSelectorWrapper.test.tsx +16 -0
  133. package/src/Form/FormSelectorWrapper/FormSelectorWrapper.tsx +16 -0
  134. package/src/Form/Input/Input.module.scss +65 -5
  135. package/src/Form/Input/Input.test.tsx +16 -0
  136. package/src/Form/Input/Input.tsx +19 -57
  137. package/src/Form/Label/Label.module.scss +16 -0
  138. package/src/Form/Label/Label.test.tsx +16 -0
  139. package/src/Form/Label/Label.tsx +16 -0
  140. package/src/Form/Radio/Radio.module.scss +20 -6
  141. package/src/Form/Radio/Radio.test.tsx +16 -0
  142. package/src/Form/Radio/Radio.tsx +16 -0
  143. package/src/Form/Select/Option.test.tsx +16 -0
  144. package/src/Form/Select/Option.tsx +16 -0
  145. package/src/Form/Select/Select.interfaces.ts +39 -0
  146. package/src/Form/Select/Select.module.scss +28 -13
  147. package/src/Form/Select/Select.test.tsx +16 -57
  148. package/src/Form/Select/Select.tsx +36 -190
  149. package/src/Form/Select/SelectService.ts +204 -0
  150. package/src/Form/Textarea/Textarea.module.scss +16 -0
  151. package/src/Form/Textarea/Textarea.test.tsx +16 -0
  152. package/src/Form/Textarea/Textarea.tsx +16 -0
  153. package/src/Form/Toggle/Toggle.module.scss +17 -1
  154. package/src/Form/Toggle/Toggle.test.tsx +16 -0
  155. package/src/Form/Toggle/Toggle.tsx +16 -0
  156. package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss +16 -0
  157. package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.tsx +16 -0
  158. package/src/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +16 -0
  159. package/src/Form/Wrapper/InputWrapper/InputWrapper.module.scss +45 -14
  160. package/src/Form/Wrapper/InputWrapper/InputWrapper.test.tsx +36 -0
  161. package/src/Form/Wrapper/InputWrapper/InputWrapper.tsx +26 -4
  162. package/src/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss +16 -0
  163. package/src/Form/Wrapper/RadioWrapper/RadioWrapper.test.tsx +16 -0
  164. package/src/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +16 -0
  165. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss +16 -0
  166. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.test.tsx +17 -19
  167. package/src/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +17 -15
  168. package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss +41 -33
  169. package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.tsx +16 -0
  170. package/src/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +23 -7
  171. package/src/Form/Wrapper/Wrapper/Wrapper.module.scss +38 -18
  172. package/src/Form/Wrapper/Wrapper/Wrapper.test.tsx +16 -0
  173. package/src/Form/Wrapper/Wrapper/Wrapper.tsx +18 -1
  174. package/src/Form/form.interfaces.ts +16 -0
  175. package/src/Icon/Icon.module.scss +16 -0
  176. package/src/Icon/Icon.test.tsx +16 -0
  177. package/src/Icon/Icon.tsx +16 -0
  178. package/src/Link/Link.module.scss +21 -5
  179. package/src/Link/Link.test.tsx +16 -0
  180. package/src/Link/Link.tsx +18 -8
  181. package/src/Notifications/BaseModal/BaseModal.module.scss +16 -0
  182. package/src/Notifications/BaseModal/BaseModal.test.tsx +16 -0
  183. package/src/Notifications/BaseModal/BaseModal.tsx +16 -0
  184. package/src/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss +16 -0
  185. package/src/Notifications/BaseModal/BaseModalActions/BaseModalActions.test.tsx +16 -0
  186. package/src/Notifications/BaseModal/BaseModalActions/BaseModalActions.tsx +20 -4
  187. package/src/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss +16 -0
  188. package/src/Notifications/BaseModal/BaseModalContent/BaseModalContent.test.tsx +16 -0
  189. package/src/Notifications/BaseModal/BaseModalContent/BaseModalContent.tsx +16 -0
  190. package/src/Notifications/BaseModal/BaseModalContext.ts +16 -0
  191. package/src/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss +16 -0
  192. package/src/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.test.tsx +16 -0
  193. package/src/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.tsx +17 -1
  194. package/src/Notifications/Dialog/Dialog.module.scss +16 -0
  195. package/src/Notifications/Dialog/Dialog.test.tsx +18 -2
  196. package/src/Notifications/Dialog/Dialog.tsx +16 -0
  197. package/src/Notifications/Dialog/DialogActions/DialogActions.module.scss +16 -0
  198. package/src/Notifications/Dialog/DialogActions/DialogActions.test.tsx +16 -0
  199. package/src/Notifications/Dialog/DialogActions/DialogActions.tsx +17 -1
  200. package/src/Notifications/Dialog/DialogTitle/DialogTitle.module.scss +16 -0
  201. package/src/Notifications/Dialog/DialogTitle/DialogTitle.test.tsx +16 -0
  202. package/src/Notifications/Dialog/DialogTitle/DialogTitle.tsx +16 -0
  203. package/src/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.test.tsx +16 -0
  204. package/src/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.tsx +16 -0
  205. package/src/Notifications/DiscardChangesModal/DiscardChangesModal.test.tsx +16 -0
  206. package/src/Notifications/DiscardChangesModal/DiscardChangesModal.tsx +16 -0
  207. package/src/Notifications/Modal/Modal.tsx +16 -0
  208. package/src/Notifications/Modal/ModalActions/ModalActions.tsx +16 -0
  209. package/src/Notifications/Modal/ModalContent/ModalContent.tsx +16 -0
  210. package/src/Notifications/Modal/ModalHeader/ModalHeader.tsx +16 -0
  211. package/src/Notifications/SlideInModal/SlideInModal.module.scss +16 -0
  212. package/src/Notifications/SlideInModal/SlideInModal.test.tsx +16 -0
  213. package/src/Notifications/SlideInModal/SlideInModal.tsx +16 -0
  214. package/src/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.scss +19 -0
  215. package/src/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.test.tsx +16 -0
  216. package/src/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.tsx +57 -2
  217. package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.scss +18 -0
  218. package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.test.tsx +16 -0
  219. package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.tsx +34 -1
  220. package/src/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.test.tsx +18 -2
  221. package/src/Notifications/Snackbar/SnackbarProvider/SnackbarProvider.tsx +38 -2
  222. package/src/Notifications/Snackbar/SnackbarProvider/SnackbarStateProvider.tsx +22 -1
  223. package/src/Notifications/Snackbar/interfaces.ts +16 -0
  224. package/src/Notifications/Snackbar/useSnackbar.ts +25 -1
  225. package/src/Pagination/Pagination.module.scss +17 -1
  226. package/src/Pagination/Pagination.test.tsx +17 -1
  227. package/src/Pagination/Pagination.tsx +16 -0
  228. package/src/Popover/Popover.module.scss +17 -1
  229. package/src/Popover/Popover.test.tsx +16 -0
  230. package/src/Popover/Popover.tsx +22 -0
  231. package/src/Skeleton/Skeleton.module.scss +16 -0
  232. package/src/Skeleton/Skeleton.test.tsx +17 -1
  233. package/src/Skeleton/Skeleton.tsx +16 -0
  234. package/src/StatusIndicator/StatusIndicator.module.scss +16 -0
  235. package/src/StatusIndicator/StatusIndicator.test.tsx +16 -0
  236. package/src/StatusIndicator/StatusIndicator.tsx +16 -0
  237. package/src/Tabs/Tab.test.tsx +16 -0
  238. package/src/Tabs/Tab.tsx +16 -0
  239. package/src/Tabs/TabButton.module.scss +20 -0
  240. package/src/Tabs/TabButton.test.tsx +16 -0
  241. package/src/Tabs/TabButton.tsx +16 -0
  242. package/src/Tabs/TabPanel.module.scss +20 -0
  243. package/src/Tabs/TabPanel.test.tsx +16 -0
  244. package/src/Tabs/TabPanel.tsx +16 -0
  245. package/src/Tabs/Tabs.module.scss +18 -2
  246. package/src/Tabs/Tabs.test.tsx +16 -0
  247. package/src/Tabs/Tabs.tsx +17 -1
  248. package/src/TextEllipsis/TextEllipsis.module.scss +16 -0
  249. package/src/TextEllipsis/TextEllipsis.test.tsx +16 -0
  250. package/src/TextEllipsis/TextEllipsis.tsx +16 -0
  251. package/src/Tiles/Tile.module.scss +18 -2
  252. package/src/Tiles/Tile.test.tsx +16 -0
  253. package/src/Tiles/Tile.tsx +16 -0
  254. package/src/Tiles/Tiles.module.scss +16 -0
  255. package/src/Tiles/Tiles.test.tsx +16 -0
  256. package/src/Tiles/Tiles.tsx +16 -0
  257. package/src/Tooltip/Tooltip.module.scss +17 -1
  258. package/src/Tooltip/Tooltip.test.tsx +26 -0
  259. package/src/Tooltip/Tooltip.tsx +18 -1
  260. package/src/Typography/Typography.module.scss +16 -0
  261. package/src/Typography/Typography.test.tsx +16 -0
  262. package/src/Typography/Typography.tsx +16 -0
  263. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.module.scss +19 -7
  264. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.test.tsx +16 -1
  265. package/src/Wizard/BaseWizardSteps/BaseWizardSteps.tsx +18 -19
  266. package/src/Wizard/Wizard.test.tsx +16 -1
  267. package/src/Wizard/Wizard.tsx +23 -8
  268. package/src/Wizard/WizardActions/WizardActions.test.tsx +16 -1
  269. package/src/Wizard/WizardActions/WizardActions.tsx +16 -0
  270. package/src/Wizard/WizardStateProvider.tsx +16 -0
  271. package/src/Wizard/WizardSteps/WizardSteps.test.tsx +16 -1
  272. package/src/Wizard/WizardSteps/WizardSteps.tsx +17 -2
  273. package/src/Wizard/wizardStateReducer.ts +18 -8
  274. package/src/_BaseStyling_/BaseStyling.test.tsx +16 -0
  275. package/src/_BaseStyling_/BaseStyling.tsx +41 -16
  276. package/src/hooks/useAnimation.test.tsx +16 -0
  277. package/src/hooks/useAnimation.ts +16 -0
  278. package/src/hooks/useBodyClick.test.tsx +16 -0
  279. package/src/hooks/useBodyClick.ts +16 -0
  280. package/src/hooks/useFormSelector.test.ts +16 -0
  281. package/src/hooks/useFormSelector.ts +16 -0
  282. package/src/hooks/usePosition.test.tsx +16 -0
  283. package/src/hooks/usePosition.ts +16 -0
  284. package/src/hooks/useRepeater.test.tsx +16 -0
  285. package/src/hooks/useRepeater.ts +16 -0
  286. package/src/hooks/useScroll.test.tsx +16 -0
  287. package/src/hooks/useScroll.ts +16 -0
  288. package/src/hooks/useSpacing.test.ts +16 -0
  289. package/src/hooks/useSpacing.ts +16 -0
  290. package/src/hooks/useWrapper.test.ts +16 -0
  291. package/src/hooks/useWrapper.ts +16 -0
  292. package/src/index.ts +16 -0
  293. package/src/interfaces.ts +16 -0
  294. package/src/mixins.module.scss +22 -7
  295. package/src/readyclasses.module.scss +16 -0
  296. package/src/types.d.ts +16 -0
  297. package/src/util/helper.test.tsx +16 -0
  298. package/src/util/helper.tsx +16 -0
  299. package/src/Link/types.d.ts +0 -9
@@ -1,6 +1,26 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  .tabpanel {
2
18
  display: none;
3
19
 
20
+ &:focus-visible {
21
+ outline-color: var(--color-focus);
22
+ }
23
+
4
24
  &.selected {
5
25
  display: block;
6
26
  }
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React from "react";
2
18
  import { TabPanel, Props } from "./TabPanel";
3
19
  import { render } from "@testing-library/react";
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { ComponentPropsWithRef } from "react";
2
18
  import classes from "./TabPanel.module.scss";
3
19
 
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  $focus-width: 5px;
2
18
 
3
19
  .tabs {
@@ -22,8 +38,8 @@ $focus-width: 5px;
22
38
 
23
39
  .indicator {
24
40
  position: absolute;
25
- height: 2px;
26
- background-color: var(--color-primary);
41
+ height: var(--tab-active-border-height);
42
+ background-color: var(--tab-active-border-color);
27
43
  transition-property: left, width;
28
44
  transition-duration: 0.2s;
29
45
  transition-timing-function: ease-in-out;
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React from "react";
2
18
  import { Tabs, Props } from "./Tabs";
3
19
  import { render } from "@testing-library/react";
package/src/Tabs/Tabs.tsx CHANGED
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, {
2
18
  ComponentPropsWithRef,
3
19
  createRef,
@@ -143,7 +159,7 @@ export const Tabs = ({
143
159
  }}
144
160
  />
145
161
  </div>
146
- <div className={classes["tabpanels"]}>{tabPanels}</div>
162
+ <div>{tabPanels}</div>
147
163
  </div>
148
164
  );
149
165
  };
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  .text-ellipsis {
2
18
  overflow: hidden;
3
19
  text-overflow: ellipsis;
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { useEffect, useRef } from "react";
2
18
  import { render } from "@testing-library/react";
3
19
  import user from "@testing-library/user-event";
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { useRef, MouseEventHandler, useState, ComponentPropsWithRef } from "react";
2
18
  import { Popover } from "../Popover/Popover";
3
19
  import classes from "./TextEllipsis.module.scss";
@@ -1,11 +1,27 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  @import "../mixins.module.scss";
2
18
 
3
19
  .tile {
4
- border: 1px solid #e9e9eb;
20
+ border: 1px solid var(--light-grey-border);
5
21
  border-radius: 8px;
6
22
  box-sizing: border-box;
7
23
  padding: 0 0 2rem;
8
- background-color: #fff;
24
+ background-color: var(--light);
9
25
  transition: box-shadow 0.2s ease-in-out;
10
26
  font-family: var(--font-family);
11
27
 
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { useEffect, useRef } from "react";
2
18
  import { Tile, Props } from "./Tile";
3
19
  import { render } from "@testing-library/react";
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, {
2
18
  ComponentPropsWithoutRef,
3
19
  ComponentPropsWithRef,
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  .tiles {
2
18
  display: grid;
3
19
  grid-gap: 1rem;
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { useEffect, useRef } from "react";
2
18
  import { Tiles, Props } from "./Tiles";
3
19
  import { Tile } from "./Tile";
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { ComponentPropsWithRef, ReactNode } from "react";
2
18
  import classes from "./Tiles.module.scss";
3
19
  import { Tile } from "./Tile";
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  .wrapper {
2
18
  display: flex;
3
19
  align-items: center;
@@ -19,7 +35,7 @@
19
35
  position: fixed;
20
36
  background-color: var(--default);
21
37
  padding: 0.1875rem 0.5rem;
22
- color: #fff;
38
+ color: var(--light);
23
39
  max-width: 330px;
24
40
  opacity: 0;
25
41
  transform: scale(0);
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { useEffect, useRef } from "react";
2
18
  import { Tooltip, Props } from "./Tooltip";
3
19
  import { render } from "@testing-library/react";
@@ -39,6 +55,16 @@ describe("Tooltip should render", () => {
39
55
  expect(tooltip).toBeTruthy();
40
56
  });
41
57
 
58
+ it("renders with label as ReactElement", () => {
59
+ const labelText = "llaabbeell";
60
+ const { getByText } = createTooltip(defaultParams => ({
61
+ ...defaultParams,
62
+ label: <div>{labelText}</div>
63
+ }));
64
+
65
+ expect(getByText(labelText)).toBeDefined();
66
+ });
67
+
42
68
  it("should override the default placement and offset values", () => {
43
69
  const { tooltip, getByText } = createTooltip(defaultParams => ({
44
70
  ...defaultParams,
@@ -1,5 +1,22 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, {
2
18
  ComponentPropsWithRef,
19
+ ReactElement,
3
20
  ReactNode,
4
21
  useEffect,
5
22
  useLayoutEffect,
@@ -83,7 +100,7 @@ export const Tooltip = React.forwardRef<HTMLDivElement, Props>(
83
100
 
84
101
  const renderChildren = () => {
85
102
  if (React.isValidElement(label)) {
86
- return React.cloneElement(label, {
103
+ return React.cloneElement(label as ReactElement, {
87
104
  onFocus: () => setVisible(true),
88
105
  onBlur: () => setVisible(false),
89
106
  "aria-describedby": identifier,
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  @mixin fontProperties($fontFamily, $fontSize, $fontWeight, $lineHeight) {
2
18
  font-family: $fontFamily;
3
19
  font-size: $fontSize;
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { useEffect, useRef } from "react";
2
18
  import { Typography, Props } from "./Typography";
3
19
  import { render } from "@testing-library/react";
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { ComponentPropsWithRef, ReactNode } from "react";
2
18
  import classes from "./Typography.module.scss";
3
19
  import { Spacing, useSpacing } from "../hooks/useSpacing";
@@ -1,3 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  @mixin clickable-element {
2
18
  &:enabled:hover,
3
19
  &:focus,
@@ -7,7 +23,7 @@
7
23
  .number-wrapper {
8
24
  .number {
9
25
  background-color: var(--color-primary);
10
- color: #ffffff;
26
+ color: var(--light);
11
27
  }
12
28
  }
13
29
 
@@ -87,15 +103,11 @@
87
103
  &.current {
88
104
  .number-wrapper {
89
105
  .number {
90
- color: #fff;
106
+ color: var(--light);
91
107
  border: 2px solid var(--color-primary);
92
108
  background-color: var(--color-primary);
93
109
  }
94
110
 
95
- &:after {
96
- border-bottom: 2px solidvar(--color-primary);
97
- }
98
-
99
111
  &:before {
100
112
  border-bottom: 2px solid var(--color-primary);
101
113
  }
@@ -165,7 +177,7 @@
165
177
  height: 1.5rem;
166
178
  color: var(--greyed-out);
167
179
  line-height: 1.5rem;
168
- background-color: #ffffff;
180
+ background-color: var(--light);
169
181
  box-sizing: content-box;
170
182
  }
171
183
 
@@ -1,3 +1,19 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React from "react";
2
18
  import { BaseWizardSteps, Props } from "./BaseWizardSteps";
3
19
  import { getAllByRole, getByText, queryByText, render } from "@testing-library/react";
@@ -20,7 +36,6 @@ const initParams: Props = {
20
36
  }
21
37
  ],
22
38
  currentStepNo: 1,
23
- stepScreenReaderLabel: "Step",
24
39
  onClick: jest.fn()
25
40
  };
26
41
 
@@ -1,6 +1,21 @@
1
+ /*
2
+ * Copyright 2022 OneWelcome B.V.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
  import React, { ComponentPropsWithRef, Fragment } from "react";
2
18
  import classes from "./BaseWizardSteps.module.scss";
3
- import readyclasses from "../../readyclasses.module.scss";
4
19
  import { Icon, Icons } from "../../Icon/Icon";
5
20
 
6
21
  type StepState = "finished" | "current" | "future";
@@ -15,21 +30,10 @@ export interface Props extends Omit<ComponentPropsWithRef<"div">, "onClick"> {
15
30
  currentStepNo: number;
16
31
  onClick?: (stepNo: number) => void;
17
32
  futureStepsClickable?: boolean;
18
- stepScreenReaderLabel: string;
19
33
  }
20
34
 
21
35
  export const BaseWizardSteps = React.forwardRef<HTMLDivElement, Props>(
22
- (
23
- {
24
- steps,
25
- currentStepNo,
26
- onClick,
27
- futureStepsClickable = false,
28
- stepScreenReaderLabel,
29
- ...rest
30
- }: Props,
31
- ref
32
- ) => {
36
+ ({ steps, currentStepNo, onClick, futureStepsClickable = false, ...rest }: Props, ref) => {
33
37
  const getStepState = (stepNo: number): StepState => {
34
38
  if (currentStepNo === stepNo) {
35
39
  return "current";
@@ -44,12 +48,7 @@ export const BaseWizardSteps = React.forwardRef<HTMLDivElement, Props>(
44
48
  if (stepState === "finished") {
45
49
  return disabled ? null : <Icon className={classes["checkmark"]} icon={Icons.Checkmark} />;
46
50
  } else {
47
- return (
48
- <Fragment>
49
- <span className={readyclasses["sr-only"]}>{stepScreenReaderLabel} </span>
50
- {stepNumberString}
51
- </Fragment>
52
- );
51
+ return <Fragment>{stepNumberString}</Fragment>;
53
52
  }
54
53
  };
55
54