@onewelcome/react-lib-components 0.0.0-experimental-8e3a0fd

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 (556) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +94 -0
  3. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
  4. package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
  5. package/dist/components/Button/BaseButton.d.ts +8 -0
  6. package/dist/components/Button/BaseButton.test.d.ts +1 -0
  7. package/dist/components/Button/Button.d.ts +8 -0
  8. package/dist/components/Button/Button.test.d.ts +1 -0
  9. package/dist/components/Button/IconButton.d.ts +11 -0
  10. package/dist/components/Button/IconButton.test.d.ts +1 -0
  11. package/dist/components/Button/Spinner.d.ts +2 -0
  12. package/dist/components/ContextMenu/ContextMenu.d.ts +24 -0
  13. package/dist/components/ContextMenu/ContextMenu.test.d.ts +1 -0
  14. package/dist/components/ContextMenu/ContextMenuItem.d.ts +15 -0
  15. package/dist/components/ContextMenu/ContextMenuService.d.ts +21 -0
  16. package/dist/components/DataGrid/DataGrid.d.ts +46 -0
  17. package/dist/components/DataGrid/DataGrid.test.d.ts +1 -0
  18. package/dist/components/DataGrid/DataGridActions/DataGridActions.d.ts +15 -0
  19. package/dist/components/DataGrid/DataGridActions/DataGridActions.test.d.ts +1 -0
  20. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +13 -0
  21. package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.test.d.ts +1 -0
  22. package/dist/components/DataGrid/DataGridBody/DataGridBody.d.ts +21 -0
  23. package/dist/components/DataGrid/DataGridBody/DataGridBody.test.d.ts +1 -0
  24. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.d.ts +12 -0
  25. package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.test.d.ts +1 -0
  26. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.d.ts +5 -0
  27. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.d.ts +6 -0
  28. package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.test.d.ts +1 -0
  29. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.d.ts +33 -0
  30. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.test.d.ts +1 -0
  31. package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridWithNestedRows.test.d.ts +1 -0
  32. package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.d.ts +855 -0
  33. package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.d.ts +9 -0
  34. package/dist/components/DataGrid/DataGridFilters/DataGridFilter.d.ts +16 -0
  35. package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.d.ts +23 -0
  36. package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.d.ts +16 -0
  37. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.d.ts +15 -0
  38. package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.test.d.ts +1 -0
  39. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.d.ts +15 -0
  40. package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.test.d.ts +1 -0
  41. package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.d.ts +78 -0
  42. package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.d.ts +10 -0
  43. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.d.ts +15 -0
  44. package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.test.d.ts +1 -0
  45. package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.d.ts +10 -0
  46. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.d.ts +31 -0
  47. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.d.ts +15 -0
  48. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.d.ts +18 -0
  49. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.d.ts +10 -0
  50. package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.d.ts +10 -0
  51. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.d.ts +14 -0
  52. package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.test.d.ts +1 -0
  53. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.d.ts +9 -0
  54. package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.test.d.ts +1 -0
  55. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +13 -0
  56. package/dist/components/DataGrid/DataGridHeader/DataGridHeader.test.d.ts +1 -0
  57. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +10 -0
  58. package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.test.d.ts +1 -0
  59. package/dist/components/DataGrid/datagrid.interfaces.d.ts +13 -0
  60. package/dist/components/DataGrid/testUtils.d.ts +22 -0
  61. package/dist/components/DatePicker/DatePicker.d.ts +14 -0
  62. package/dist/components/DatePicker/DatePicker.test.d.ts +1 -0
  63. package/dist/components/Form/Checkbox/Checkbox.d.ts +14 -0
  64. package/dist/components/Form/Checkbox/Checkbox.test.d.ts +1 -0
  65. package/dist/components/Form/Fieldset/Fieldset.d.ts +14 -0
  66. package/dist/components/Form/Fieldset/Fieldset.test.d.ts +1 -0
  67. package/dist/components/Form/FileUpload/FileItem/FileItem.d.ts +28 -0
  68. package/dist/components/Form/FileUpload/FileItem/FileItem.test.d.ts +1 -0
  69. package/dist/components/Form/FileUpload/FileUpload.d.ts +32 -0
  70. package/dist/components/Form/FileUpload/FileUpload.test.d.ts +1 -0
  71. package/dist/components/Form/Form.d.ts +5 -0
  72. package/dist/components/Form/Form.test.d.ts +1 -0
  73. package/dist/components/Form/FormControl/FormControl.d.ts +8 -0
  74. package/dist/components/Form/FormControl/FormControl.test.d.ts +1 -0
  75. package/dist/components/Form/FormErrorText/FormErrorText.d.ts +12 -0
  76. package/dist/components/Form/FormErrorText/FormErrorText.test.d.ts +1 -0
  77. package/dist/components/Form/FormGroup/FormGroup.d.ts +17 -0
  78. package/dist/components/Form/FormGroup/FormGroup.test.d.ts +1 -0
  79. package/dist/components/Form/FormHelperText/FormHelperText.d.ts +7 -0
  80. package/dist/components/Form/FormHelperText/FormHelperText.test.d.ts +1 -0
  81. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +15 -0
  82. package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.test.d.ts +1 -0
  83. package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.d.ts +8 -0
  84. package/dist/components/Form/Input/Input.d.ts +14 -0
  85. package/dist/components/Form/Input/Input.test.d.ts +1 -0
  86. package/dist/components/Form/Label/Label.d.ts +5 -0
  87. package/dist/components/Form/Label/Label.test.d.ts +1 -0
  88. package/dist/components/Form/Radio/Radio.d.ts +11 -0
  89. package/dist/components/Form/Radio/Radio.test.d.ts +1 -0
  90. package/dist/components/Form/Select/MultiSelect/MultiOption.d.ts +6 -0
  91. package/dist/components/Form/Select/MultiSelect/MultiSelect.d.ts +3 -0
  92. package/dist/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +63 -0
  93. package/dist/components/Form/Select/MultiSelect/MultiSelectKeyboardNavigation.test.d.ts +1 -0
  94. package/dist/components/Form/Select/MultiSelect/SelectButton.d.ts +4 -0
  95. package/dist/components/Form/Select/MultiSelect/SelectedOptions.d.ts +12 -0
  96. package/dist/components/Form/Select/MultiSelect/useArrowNavigation.d.ts +17 -0
  97. package/dist/components/Form/Select/MultiSelect/useMultiSelect.d.ts +16 -0
  98. package/dist/components/Form/Select/MultiSelect/useMultiSelect.test.d.ts +1 -0
  99. package/dist/components/Form/Select/MultiSelect/useSearch.d.ts +24 -0
  100. package/dist/components/Form/Select/Select.interfaces.d.ts +60 -0
  101. package/dist/components/Form/Select/SingleSelect/Option.d.ts +18 -0
  102. package/dist/components/Form/Select/SingleSelect/Option.test.d.ts +1 -0
  103. package/dist/components/Form/Select/SingleSelect/Select.d.ts +3 -0
  104. package/dist/components/Form/Select/SingleSelect/Select.test.d.ts +124 -0
  105. package/dist/components/Form/Select/SingleSelect/SelectKeyboardNavigation.test.d.ts +1 -0
  106. package/dist/components/Form/Select/SingleSelect/useArrowNavigation.d.ts +5 -0
  107. package/dist/components/Form/Select/SingleSelect/useSearch.d.ts +20 -0
  108. package/dist/components/Form/Select/useAddNewBtn.d.ts +19 -0
  109. package/dist/components/Form/Select/useSelectPositionList.d.ts +12 -0
  110. package/dist/components/Form/Textarea/Textarea.d.ts +7 -0
  111. package/dist/components/Form/Textarea/Textarea.test.d.ts +1 -0
  112. package/dist/components/Form/Toggle/Toggle.d.ts +11 -0
  113. package/dist/components/Form/Toggle/Toggle.test.d.ts +1 -0
  114. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +12 -0
  115. package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.d.ts +1 -0
  116. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.d.ts +18 -0
  117. package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.test.d.ts +1 -0
  118. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.d.ts +16 -0
  119. package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.test.d.ts +1 -0
  120. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +10 -0
  121. package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.test.d.ts +1 -0
  122. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +16 -0
  123. package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.test.d.ts +1 -0
  124. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +16 -0
  125. package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.d.ts +1 -0
  126. package/dist/components/Form/Wrapper/Wrapper/Wrapper.d.ts +27 -0
  127. package/dist/components/Form/Wrapper/Wrapper/Wrapper.test.d.ts +1 -0
  128. package/dist/components/Form/form.interfaces.d.ts +16 -0
  129. package/dist/components/Icon/Icon.d.ts +114 -0
  130. package/dist/components/Icon/Icon.test.d.ts +1 -0
  131. package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.d.ts +6 -0
  132. package/dist/components/InlineEditing/InlineEditingContext.d.ts +10 -0
  133. package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.d.ts +6 -0
  134. package/dist/components/Layout/Card/Card.d.ts +16 -0
  135. package/dist/components/Layout/Card/Card.test.d.ts +0 -0
  136. package/dist/components/Layout/ContentHeader/ContentHeader.d.ts +24 -0
  137. package/dist/components/Layout/ContentHeader/ContentHeader.test.d.ts +1 -0
  138. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.d.ts +7 -0
  139. package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.test.d.ts +1 -0
  140. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.d.ts +10 -0
  141. package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.test.d.ts +1 -0
  142. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.d.ts +6 -0
  143. package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.test.d.ts +1 -0
  144. package/dist/components/Link/Link.d.ts +14 -0
  145. package/dist/components/Link/Link.test.d.ts +1 -0
  146. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.d.ts +12 -0
  147. package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.test.d.ts +1 -0
  148. package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.d.ts +4 -0
  149. package/dist/components/Notifications/Alert/AlertItem/AlertItem.d.ts +22 -0
  150. package/dist/components/Notifications/Alert/AlertItem/AlertItem.test.d.ts +1 -0
  151. package/dist/components/Notifications/Alert/AlertProvider/AlertContext.d.ts +13 -0
  152. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.d.ts +22 -0
  153. package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.test.d.ts +1 -0
  154. package/dist/components/Notifications/Alert/useAlert.d.ts +7 -0
  155. package/dist/components/Notifications/Alert/useAlert.test.d.ts +1 -0
  156. package/dist/components/Notifications/Banner/Banner.d.ts +11 -0
  157. package/dist/components/Notifications/Banner/Banner.test.d.ts +1 -0
  158. package/dist/components/Notifications/BaseModal/BaseModal.d.ts +21 -0
  159. package/dist/components/Notifications/BaseModal/BaseModal.test.d.ts +1 -0
  160. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.d.ts +13 -0
  161. package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.test.d.ts +1 -0
  162. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.d.ts +8 -0
  163. package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.test.d.ts +1 -0
  164. package/dist/components/Notifications/BaseModal/BaseModalContext.d.ts +2 -0
  165. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +9 -0
  166. package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.test.d.ts +1 -0
  167. package/dist/components/Notifications/Dialog/Dialog.d.ts +22 -0
  168. package/dist/components/Notifications/Dialog/Dialog.test.d.ts +1 -0
  169. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.d.ts +6 -0
  170. package/dist/components/Notifications/Dialog/DialogActions/DialogActions.test.d.ts +1 -0
  171. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.d.ts +9 -0
  172. package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.test.d.ts +1 -0
  173. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.d.ts +15 -0
  174. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.test.d.ts +1 -0
  175. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.d.ts +13 -0
  176. package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.test.d.ts +1 -0
  177. package/dist/components/Notifications/Modal/Modal.d.ts +2 -0
  178. package/dist/components/Notifications/Modal/Modal.test.d.ts +1 -0
  179. package/dist/components/Notifications/Modal/ModalActions/ModalActions.d.ts +2 -0
  180. package/dist/components/Notifications/Modal/ModalContent/ModalContent.d.ts +2 -0
  181. package/dist/components/Notifications/Modal/ModalHeader/ModalHeader.d.ts +2 -0
  182. package/dist/components/Notifications/NotificationProvider/NotificationContext.d.ts +35 -0
  183. package/dist/components/Notifications/NotificationProvider/NotificationContext.test.d.ts +1 -0
  184. package/dist/components/Notifications/NotificationProvider/NotificationService.d.ts +2 -0
  185. package/dist/components/Notifications/NotificationProvider/notification.interfaces.d.ts +46 -0
  186. package/dist/components/Notifications/SideSheet/SideSheet.d.ts +10 -0
  187. package/dist/components/Notifications/SideSheet/SideSheet.test.d.ts +1 -0
  188. package/dist/components/Notifications/SideSheet/SideSheetActions/SideSheetActions.d.ts +2 -0
  189. package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.d.ts +4 -0
  190. package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.d.ts +4 -0
  191. package/dist/components/Notifications/SlideInModal/SlideInModal.d.ts +4 -0
  192. package/dist/components/Notifications/SlideInModal/SlideInModal.test.d.ts +1 -0
  193. package/dist/components/Pagination/Pagination.d.ts +19 -0
  194. package/dist/components/Pagination/Pagination.test.d.ts +1 -0
  195. package/dist/components/Popover/Popover.d.ts +13 -0
  196. package/dist/components/Popover/Popover.test.d.ts +1 -0
  197. package/dist/components/ProgressBar/ProgressBar.d.ts +9 -0
  198. package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -0
  199. package/dist/components/RequiredSign/RequiredSign.d.ts +5 -0
  200. package/dist/components/Skeleton/Skeleton.d.ts +7 -0
  201. package/dist/components/Skeleton/Skeleton.test.d.ts +1 -0
  202. package/dist/components/Spinner/Spinner.d.ts +6 -0
  203. package/dist/components/Spinner/Spinner.test.d.ts +1 -0
  204. package/dist/components/Stepper/Step.d.ts +15 -0
  205. package/dist/components/Stepper/Stepper.d.ts +8 -0
  206. package/dist/components/Stepper/Stepper.test.d.ts +1 -0
  207. package/dist/components/Tabs/Tab.d.ts +8 -0
  208. package/dist/components/Tabs/Tab.test.d.ts +1 -0
  209. package/dist/components/Tabs/TabButton.d.ts +9 -0
  210. package/dist/components/Tabs/TabButton.test.d.ts +1 -0
  211. package/dist/components/Tabs/Tabs.d.ts +13 -0
  212. package/dist/components/Tabs/Tabs.test.d.ts +1 -0
  213. package/dist/components/Tag/RemoveButton.d.ts +7 -0
  214. package/dist/components/Tag/Tag.d.ts +13 -0
  215. package/dist/components/Tag/Tag.test.d.ts +1 -0
  216. package/dist/components/TextEllipsis/TextEllipsis.d.ts +6 -0
  217. package/dist/components/TextEllipsis/TextEllipsis.test.d.ts +1 -0
  218. package/dist/components/Tiles/Tile.d.ts +15 -0
  219. package/dist/components/Tiles/Tile.test.d.ts +1 -0
  220. package/dist/components/Tiles/Tiles.d.ts +6 -0
  221. package/dist/components/Tiles/Tiles.test.d.ts +1 -0
  222. package/dist/components/Tooltip/Tooltip.d.ts +13 -0
  223. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
  224. package/dist/components/Typography/Typography.d.ts +14 -0
  225. package/dist/components/Typography/Typography.test.d.ts +1 -0
  226. package/dist/components/_BaseStyling_/BaseStyling.d.ts +208 -0
  227. package/dist/components/_BaseStyling_/BaseStyling.test.d.ts +1 -0
  228. package/dist/components/_BaseStyling_/buttonBaseStyling.d.ts +14 -0
  229. package/dist/components/admin/layout/LeftNav/LeftNav.d.ts +13 -0
  230. package/dist/components/admin/layout/LeftNav/LeftNav.interfaces.d.ts +13 -0
  231. package/dist/components/admin/layout/LeftNav/LeftNav.test.d.ts +0 -0
  232. package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +14 -0
  233. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.d.ts +3 -0
  234. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +11 -0
  235. package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.test.d.ts +0 -0
  236. package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +12 -0
  237. package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.d.ts +13 -0
  238. package/dist/components/admin/layout/LeftNav/useRefItems.d.ts +22 -0
  239. package/dist/components/admin/layout/LeftNav/useRefItems.test.d.ts +1 -0
  240. package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.d.ts +8 -0
  241. package/dist/components/miscellaneous/IdentityProviderButton.d.ts +18 -0
  242. package/dist/components/miscellaneous/IdentityProviderButton.test.d.ts +1 -0
  243. package/dist/components/withReadOnly.d.ts +12 -0
  244. package/dist/components/withReadOnly.test.d.ts +1 -0
  245. package/dist/hooks/useAnimation.d.ts +5 -0
  246. package/dist/hooks/useAnimation.test.d.ts +1 -0
  247. package/dist/hooks/useClickOutside.d.ts +2 -0
  248. package/dist/hooks/useClickOutside.test.d.ts +1 -0
  249. package/dist/hooks/useDebouncedCallback.d.ts +1 -0
  250. package/dist/hooks/useDebouncedCallback.test.d.ts +1 -0
  251. package/dist/hooks/useDetermineStatusIcon.d.ts +3 -0
  252. package/dist/hooks/useDetermineStatusIcon.test.d.ts +1 -0
  253. package/dist/hooks/useFormSelector.d.ts +13 -0
  254. package/dist/hooks/useFormSelector.test.d.ts +1 -0
  255. package/dist/hooks/useFullHeightCollapse.d.ts +4 -0
  256. package/dist/hooks/useFullHeightCollapse.test.d.ts +1 -0
  257. package/dist/hooks/useGetDomRoot.d.ts +3 -0
  258. package/dist/hooks/usePosition.d.ts +50 -0
  259. package/dist/hooks/usePosition.test.d.ts +1 -0
  260. package/dist/hooks/useRepeatFocus.d.ts +7 -0
  261. package/dist/hooks/useRepeater.d.ts +10 -0
  262. package/dist/hooks/useRepeater.test.d.ts +6 -0
  263. package/dist/hooks/useScreenSize.d.ts +9 -0
  264. package/dist/hooks/useScreenSize.test.d.ts +1 -0
  265. package/dist/hooks/useScroll.d.ts +2 -0
  266. package/dist/hooks/useScroll.test.d.ts +1 -0
  267. package/dist/hooks/useSpacing.d.ts +18 -0
  268. package/dist/hooks/useSpacing.test.d.ts +1 -0
  269. package/dist/hooks/useUploadFile.d.ts +27 -0
  270. package/dist/hooks/useUploadFile.test.d.ts +1 -0
  271. package/dist/hooks/useWrapper.d.ts +7 -0
  272. package/dist/hooks/useWrapper.test.d.ts +1 -0
  273. package/dist/index.cjs.js +205 -0
  274. package/dist/index.cjs.js.map +1 -0
  275. package/dist/index.d.ts +175 -0
  276. package/dist/index.es.js +65380 -0
  277. package/dist/index.es.js.map +1 -0
  278. package/dist/interfaces.d.ts +9 -0
  279. package/dist/util/helper.d.ts +14 -0
  280. package/dist/util/helper.test.d.ts +1 -0
  281. package/dist/util/unitTestUtils.d.ts +12 -0
  282. package/dist/utils/statusUtils.d.ts +10 -0
  283. package/dist/variables.d.ts +8 -0
  284. package/package.json +144 -0
  285. package/src/_functions.scss +19 -0
  286. package/src/components/Breadcrumbs/Breadcrumbs.module.scss +54 -0
  287. package/src/components/Breadcrumbs/Breadcrumbs.tsx +84 -0
  288. package/src/components/Button/BaseButton.module.scss +48 -0
  289. package/src/components/Button/BaseButton.tsx +65 -0
  290. package/src/components/Button/Button.module.scss +58 -0
  291. package/src/components/Button/Button.tsx +70 -0
  292. package/src/components/Button/IconButton.module.scss +73 -0
  293. package/src/components/Button/IconButton.tsx +63 -0
  294. package/src/components/Button/Spinner.tsx +33 -0
  295. package/src/components/ContextMenu/ContextMenu.module.scss +41 -0
  296. package/src/components/ContextMenu/ContextMenu.tsx +206 -0
  297. package/src/components/ContextMenu/ContextMenuItem.module.scss +73 -0
  298. package/src/components/ContextMenu/ContextMenuItem.tsx +100 -0
  299. package/src/components/ContextMenu/ContextMenuService.ts +171 -0
  300. package/src/components/DataGrid/DataGrid.module.scss +51 -0
  301. package/src/components/DataGrid/DataGrid.tsx +225 -0
  302. package/src/components/DataGrid/DataGridActions/DataGridActions.module.scss +51 -0
  303. package/src/components/DataGrid/DataGridActions/DataGridActions.tsx +140 -0
  304. package/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss +58 -0
  305. package/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.tsx +107 -0
  306. package/src/components/DataGrid/DataGridBody/DataGridBody.module.scss +26 -0
  307. package/src/components/DataGrid/DataGridBody/DataGridBody.tsx +110 -0
  308. package/src/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss +61 -0
  309. package/src/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.tsx +131 -0
  310. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss +60 -0
  311. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.tsx +39 -0
  312. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss +21 -0
  313. package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.tsx +47 -0
  314. package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss +127 -0
  315. package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.tsx +192 -0
  316. package/src/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.tsx +143 -0
  317. package/src/components/DataGrid/DataGridBody/__snapshots__/DataGridBody.test.tsx.snap +262 -0
  318. package/src/components/DataGrid/DataGridFilters/DataGridDateFilter.tsx +65 -0
  319. package/src/components/DataGrid/DataGridFilters/DataGridFilter.module.scss +116 -0
  320. package/src/components/DataGrid/DataGridFilters/DataGridFilter.tsx +161 -0
  321. package/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.tsx +172 -0
  322. package/src/components/DataGrid/DataGridFilters/DataGridFilterService.ts +124 -0
  323. package/src/components/DataGrid/DataGridFilters/DataGridFilterTag.tsx +146 -0
  324. package/src/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.tsx +136 -0
  325. package/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts +123 -0
  326. package/src/components/DataGrid/DataGridFilters/DataGridSearchbar.tsx +71 -0
  327. package/src/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss +73 -0
  328. package/src/components/DataGrid/DataGridFilters/DataGridToolbar.tsx +132 -0
  329. package/src/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.tsx +38 -0
  330. package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss +136 -0
  331. package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.tsx +267 -0
  332. package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.tsx +103 -0
  333. package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.tsx +121 -0
  334. package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.ts +30 -0
  335. package/src/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.tsx +50 -0
  336. package/src/components/DataGrid/DataGridFilters/FilterKeyMapper.ts +48 -0
  337. package/src/components/DataGrid/DataGridFilters/useFiltersReducer.tsx +73 -0
  338. package/src/components/DataGrid/DataGridHeader/DataGridHeader.module.scss +32 -0
  339. package/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx +128 -0
  340. package/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +93 -0
  341. package/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.tsx +83 -0
  342. package/src/components/DataGrid/dataGridMixins.module.scss +33 -0
  343. package/src/components/DataGrid/datagrid.interfaces.ts +30 -0
  344. package/src/components/DataGrid/testUtils.ts +117 -0
  345. package/src/components/DatePicker/DatePicker.module.scss +360 -0
  346. package/src/components/DatePicker/DatePicker.tsx +98 -0
  347. package/src/components/Form/Checkbox/Checkbox.module.scss +221 -0
  348. package/src/components/Form/Checkbox/Checkbox.tsx +205 -0
  349. package/src/components/Form/Fieldset/Fieldset.module.scss +49 -0
  350. package/src/components/Form/Fieldset/Fieldset.tsx +128 -0
  351. package/src/components/Form/FileUpload/FileItem/FileItem.module.scss +204 -0
  352. package/src/components/Form/FileUpload/FileItem/FileItem.tsx +271 -0
  353. package/src/components/Form/FileUpload/FileUpload.module.scss +241 -0
  354. package/src/components/Form/FileUpload/FileUpload.tsx +317 -0
  355. package/src/components/Form/Form.module.scss +19 -0
  356. package/src/components/Form/Form.tsx +35 -0
  357. package/src/components/Form/FormControl/FormControl.module.scss +65 -0
  358. package/src/components/Form/FormControl/FormControl.tsx +62 -0
  359. package/src/components/Form/FormErrorText/FormErrorText.module.scss +35 -0
  360. package/src/components/Form/FormErrorText/FormErrorText.tsx +65 -0
  361. package/src/components/Form/FormGroup/FormGroup.module.scss +24 -0
  362. package/src/components/Form/FormGroup/FormGroup.tsx +96 -0
  363. package/src/components/Form/FormHelperText/FormHelperText.module.scss +32 -0
  364. package/src/components/Form/FormHelperText/FormHelperText.tsx +43 -0
  365. package/src/components/Form/FormSection/FormSection.module.scss +12 -0
  366. package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss +68 -0
  367. package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.tsx +117 -0
  368. package/src/components/Form/FormStatusIndicator/FormStatusIndicator.tsx +75 -0
  369. package/src/components/Form/Input/Input.module.scss +186 -0
  370. package/src/components/Form/Input/Input.tsx +161 -0
  371. package/src/components/Form/Label/Label.module.scss +21 -0
  372. package/src/components/Form/Label/Label.tsx +40 -0
  373. package/src/components/Form/Radio/Radio.module.scss +196 -0
  374. package/src/components/Form/Radio/Radio.tsx +142 -0
  375. package/src/components/Form/Select/MultiSelect/MultiOption.tsx +66 -0
  376. package/src/components/Form/Select/MultiSelect/MultiSelect.module.scss +318 -0
  377. package/src/components/Form/Select/MultiSelect/MultiSelect.tsx +406 -0
  378. package/src/components/Form/Select/MultiSelect/SelectButton.module.scss +28 -0
  379. package/src/components/Form/Select/MultiSelect/SelectButton.tsx +37 -0
  380. package/src/components/Form/Select/MultiSelect/SelectedOptions.module.scss +39 -0
  381. package/src/components/Form/Select/MultiSelect/SelectedOptions.tsx +68 -0
  382. package/src/components/Form/Select/MultiSelect/useArrowNavigation.ts +133 -0
  383. package/src/components/Form/Select/MultiSelect/useMultiSelect.tsx +98 -0
  384. package/src/components/Form/Select/MultiSelect/useSearch.tsx +117 -0
  385. package/src/components/Form/Select/Select.interfaces.ts +84 -0
  386. package/src/components/Form/Select/SingleSelect/Option.tsx +116 -0
  387. package/src/components/Form/Select/SingleSelect/Select.module.scss +409 -0
  388. package/src/components/Form/Select/SingleSelect/Select.tsx +312 -0
  389. package/src/components/Form/Select/SingleSelect/useArrowNavigation.ts +177 -0
  390. package/src/components/Form/Select/SingleSelect/useSearch.tsx +113 -0
  391. package/src/components/Form/Select/useAddNewBtn.module.scss +66 -0
  392. package/src/components/Form/Select/useAddNewBtn.tsx +89 -0
  393. package/src/components/Form/Select/useSelectPositionList.ts +109 -0
  394. package/src/components/Form/Textarea/Textarea.module.scss +142 -0
  395. package/src/components/Form/Textarea/Textarea.tsx +97 -0
  396. package/src/components/Form/Toggle/Toggle.module.scss +214 -0
  397. package/src/components/Form/Toggle/Toggle.tsx +80 -0
  398. package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss +32 -0
  399. package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +99 -0
  400. package/src/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss +79 -0
  401. package/src/components/Form/Wrapper/InputWrapper/InputWrapper.tsx +125 -0
  402. package/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss +27 -0
  403. package/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.tsx +88 -0
  404. package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss +30 -0
  405. package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +109 -0
  406. package/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss +27 -0
  407. package/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +89 -0
  408. package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss +100 -0
  409. package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +154 -0
  410. package/src/components/Form/Wrapper/Wrapper/Wrapper.module.scss +87 -0
  411. package/src/components/Form/Wrapper/Wrapper/Wrapper.tsx +116 -0
  412. package/src/components/Form/form.interfaces.ts +34 -0
  413. package/src/components/Icon/Icon.module.scss +455 -0
  414. package/src/components/Icon/Icon.tsx +152 -0
  415. package/src/components/InlineEditing/InlineCheckbox/InlineCheckbox.tsx +40 -0
  416. package/src/components/InlineEditing/InlineEditingContext.tsx +32 -0
  417. package/src/components/InlineEditing/InlineEditingSelect/InlineSelect.tsx +44 -0
  418. package/src/components/Layout/Card/Card.module.scss +68 -0
  419. package/src/components/Layout/Card/Card.tsx +108 -0
  420. package/src/components/Layout/ContentHeader/ContentHeader.module.scss +95 -0
  421. package/src/components/Layout/ContentHeader/ContentHeader.tsx +146 -0
  422. package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss +12 -0
  423. package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx +53 -0
  424. package/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss +25 -0
  425. package/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.tsx +54 -0
  426. package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss +36 -0
  427. package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.tsx +32 -0
  428. package/src/components/Link/Link.module.scss +106 -0
  429. package/src/components/Link/Link.tsx +111 -0
  430. package/src/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss +57 -0
  431. package/src/components/Notifications/Alert/AlertContainer/AlertContainer.tsx +52 -0
  432. package/src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.ts +47 -0
  433. package/src/components/Notifications/Alert/AlertItem/AlertItem.module.scss +279 -0
  434. package/src/components/Notifications/Alert/AlertItem/AlertItem.tsx +214 -0
  435. package/src/components/Notifications/Alert/AlertProvider/AlertContext.ts +42 -0
  436. package/src/components/Notifications/Alert/AlertProvider/AlertProvider.tsx +173 -0
  437. package/src/components/Notifications/Alert/alertVariables.scss +17 -0
  438. package/src/components/Notifications/Alert/useAlert.ts +30 -0
  439. package/src/components/Notifications/Banner/Banner.module.scss +76 -0
  440. package/src/components/Notifications/Banner/Banner.tsx +78 -0
  441. package/src/components/Notifications/BaseModal/BaseModal.module.scss +76 -0
  442. package/src/components/Notifications/BaseModal/BaseModal.tsx +186 -0
  443. package/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss +65 -0
  444. package/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.tsx +66 -0
  445. package/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss +25 -0
  446. package/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.tsx +60 -0
  447. package/src/components/Notifications/BaseModal/BaseModalContext.ts +18 -0
  448. package/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss +43 -0
  449. package/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.tsx +69 -0
  450. package/src/components/Notifications/Dialog/Dialog.module.scss +31 -0
  451. package/src/components/Notifications/Dialog/Dialog.tsx +143 -0
  452. package/src/components/Notifications/Dialog/DialogActions/DialogActions.module.scss +35 -0
  453. package/src/components/Notifications/Dialog/DialogActions/DialogActions.tsx +48 -0
  454. package/src/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss +58 -0
  455. package/src/components/Notifications/Dialog/DialogTitle/DialogTitle.tsx +75 -0
  456. package/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.tsx +77 -0
  457. package/src/components/Notifications/DiscardChangesModal/DiscardChangesModal.tsx +77 -0
  458. package/src/components/Notifications/Modal/Modal.tsx +18 -0
  459. package/src/components/Notifications/Modal/ModalActions/ModalActions.tsx +18 -0
  460. package/src/components/Notifications/Modal/ModalContent/ModalContent.tsx +18 -0
  461. package/src/components/Notifications/Modal/ModalHeader/ModalHeader.tsx +18 -0
  462. package/src/components/Notifications/NotificationProvider/NotificationContext.tsx +217 -0
  463. package/src/components/Notifications/NotificationProvider/NotificationService.ts +33 -0
  464. package/src/components/Notifications/NotificationProvider/notification.interfaces.ts +68 -0
  465. package/src/components/Notifications/SideSheet/SideSheet.module.scss +97 -0
  466. package/src/components/Notifications/SideSheet/SideSheet.tsx +114 -0
  467. package/src/components/Notifications/SideSheet/SideSheetActions/SideSheetActions.tsx +18 -0
  468. package/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss +19 -0
  469. package/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.tsx +25 -0
  470. package/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss +19 -0
  471. package/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.tsx +25 -0
  472. package/src/components/Notifications/SlideInModal/SlideInModal.module.scss +54 -0
  473. package/src/components/Notifications/SlideInModal/SlideInModal.tsx +75 -0
  474. package/src/components/Pagination/Pagination.module.scss +162 -0
  475. package/src/components/Pagination/Pagination.tsx +235 -0
  476. package/src/components/Popover/Popover.module.scss +42 -0
  477. package/src/components/Popover/Popover.tsx +142 -0
  478. package/src/components/ProgressBar/ProgressBar.module.scss +95 -0
  479. package/src/components/ProgressBar/ProgressBar.tsx +75 -0
  480. package/src/components/RequiredSign/RequiredSign.tsx +28 -0
  481. package/src/components/Skeleton/Skeleton.module.scss +36 -0
  482. package/src/components/Skeleton/Skeleton.tsx +48 -0
  483. package/src/components/Spinner/Spinner.module.scss +33 -0
  484. package/src/components/Spinner/Spinner.tsx +61 -0
  485. package/src/components/Stepper/Step.module.scss +301 -0
  486. package/src/components/Stepper/Step.tsx +116 -0
  487. package/src/components/Stepper/Stepper.module.scss +17 -0
  488. package/src/components/Stepper/Stepper.tsx +53 -0
  489. package/src/components/Tabs/Tab.module.scss +27 -0
  490. package/src/components/Tabs/Tab.tsx +41 -0
  491. package/src/components/Tabs/TabButton.module.scss +87 -0
  492. package/src/components/Tabs/TabButton.tsx +66 -0
  493. package/src/components/Tabs/Tabs.module.scss +58 -0
  494. package/src/components/Tabs/Tabs.tsx +217 -0
  495. package/src/components/Tag/RemoveButton.module.scss +42 -0
  496. package/src/components/Tag/RemoveButton.tsx +53 -0
  497. package/src/components/Tag/Tag.module.scss +43 -0
  498. package/src/components/Tag/Tag.tsx +79 -0
  499. package/src/components/TextEllipsis/TextEllipsis.module.scss +35 -0
  500. package/src/components/TextEllipsis/TextEllipsis.tsx +80 -0
  501. package/src/components/Tiles/Tile.module.scss +91 -0
  502. package/src/components/Tiles/Tile.tsx +105 -0
  503. package/src/components/Tiles/Tiles.module.scss +27 -0
  504. package/src/components/Tiles/Tiles.tsx +70 -0
  505. package/src/components/Tooltip/Tooltip.module.scss +221 -0
  506. package/src/components/Tooltip/Tooltip.tsx +251 -0
  507. package/src/components/Typography/Typography.module.scss +80 -0
  508. package/src/components/Typography/Typography.tsx +111 -0
  509. package/src/components/_BaseStyling_/BaseStyling.tsx +481 -0
  510. package/src/components/_BaseStyling_/buttonBaseStyling.ts +123 -0
  511. package/src/components/admin/layout/LeftNav/LeftNav.interfaces.ts +30 -0
  512. package/src/components/admin/layout/LeftNav/LeftNav.module.scss +66 -0
  513. package/src/components/admin/layout/LeftNav/LeftNav.tsx +96 -0
  514. package/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.tsx +173 -0
  515. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.ts +28 -0
  516. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss +222 -0
  517. package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.tsx +34 -0
  518. package/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.tsx +106 -0
  519. package/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.ts +75 -0
  520. package/src/components/admin/layout/LeftNav/useRefItems.ts +280 -0
  521. package/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss +25 -0
  522. package/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.tsx +47 -0
  523. package/src/components/miscellaneous/IdentityProviderButton.module.scss +31 -0
  524. package/src/components/miscellaneous/IdentityProviderButton.tsx +92 -0
  525. package/src/components/withReadOnly.tsx +121 -0
  526. package/src/font/README.md +47 -0
  527. package/src/font/icomoon.eot +0 -0
  528. package/src/font/icomoon.svg +111 -0
  529. package/src/font/icomoon.ttf +0 -0
  530. package/src/font/icomoon.woff +0 -0
  531. package/src/font/selection.json +1 -0
  532. package/src/hooks/useAnimation.ts +36 -0
  533. package/src/hooks/useClickOutside.ts +42 -0
  534. package/src/hooks/useDebouncedCallback.tsx +34 -0
  535. package/src/hooks/useDetermineStatusIcon.tsx +33 -0
  536. package/src/hooks/useFormSelector.ts +63 -0
  537. package/src/hooks/useFullHeightCollapse.ts +33 -0
  538. package/src/hooks/useGetDomRoot.ts +40 -0
  539. package/src/hooks/usePosition.ts +387 -0
  540. package/src/hooks/useRepeatFocus.tsx +89 -0
  541. package/src/hooks/useRepeater.ts +50 -0
  542. package/src/hooks/useScreenSize.ts +60 -0
  543. package/src/hooks/useScroll.ts +32 -0
  544. package/src/hooks/useSpacing.ts +58 -0
  545. package/src/hooks/useUploadFile.tsx +141 -0
  546. package/src/hooks/useWrapper.ts +33 -0
  547. package/src/index.ts +237 -0
  548. package/src/interfaces.ts +37 -0
  549. package/src/mixins.module.scss +371 -0
  550. package/src/readyclasses.module.scss +64 -0
  551. package/src/types.d.ts +20 -0
  552. package/src/util/helper.tsx +219 -0
  553. package/src/util/unitTestUtils.ts +32 -0
  554. package/src/utils/statusUtils.ts +51 -0
  555. package/src/variables.scss +38 -0
  556. package/src/variables.ts +32 -0
@@ -0,0 +1,96 @@
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
+
17
+ /** The empty className property on FormHelperText is on purpose! We want to basically "filter" out the className from helperProps because we're adding this to the surrounding div. This makes it so also the errormessage receives this styling. */
18
+
19
+ import React, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactElement } from "react";
20
+ import classes from "./FormGroup.module.scss";
21
+ import { FormHelperText, Props as HelperProps } from "../FormHelperText/FormHelperText";
22
+ import { Icons } from "../../Icon/Icon";
23
+ import { FormErrorText } from "../FormErrorText/FormErrorText";
24
+
25
+ export interface Props extends ComponentPropsWithRef<"div"> {
26
+ children: ReactElement[] | ReactElement | string | number[] | number;
27
+ error?: boolean;
28
+ errorMessageIcon?: Icons;
29
+ errorMessageIconPosition?: "before" | "after";
30
+ errorMessage?: string;
31
+ errorId?: string;
32
+ errorMessageProps?: ComponentPropsWithRef<"span">;
33
+ helperText?: string;
34
+ helperId?: string;
35
+ helperProps?: HelperProps;
36
+ disabled?: boolean;
37
+ }
38
+
39
+ const FormGroupComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
40
+ {
41
+ children,
42
+ className,
43
+ error,
44
+ errorMessage,
45
+ errorId,
46
+ errorMessageIcon,
47
+ errorMessageIconPosition = "before",
48
+ errorMessageProps,
49
+ helperText,
50
+ helperId,
51
+ helperProps,
52
+ disabled,
53
+ ...rest
54
+ }: Props,
55
+ ref
56
+ ) => {
57
+ const disableHelperText = helperProps?.disabled ?? disabled;
58
+ const hasHelperText = helperText ?? helperProps?.children;
59
+ const showHelperText = hasHelperText && (!error || (error && !errorMessage));
60
+ const showErrorMessage = error && errorMessage && !errorMessageProps?.children;
61
+ const hasHelperContent = showHelperText || errorMessageProps?.children || showErrorMessage;
62
+
63
+ return (
64
+ <div {...rest} ref={ref} className={`${classes["form-group"]} ${className ?? ""}`}>
65
+ {children}
66
+
67
+ {hasHelperContent && (
68
+ <div className={`${classes["default-helper"]} ${helperProps?.className ?? ""}`}>
69
+ {showHelperText && (
70
+ <FormHelperText
71
+ {...helperProps}
72
+ className={""}
73
+ id={helperId}
74
+ disabled={disableHelperText}
75
+ >
76
+ {helperProps?.children || helperText}
77
+ </FormHelperText>
78
+ )}
79
+
80
+ {error && (
81
+ <FormErrorText
82
+ error={error}
83
+ errorMessage={errorMessage}
84
+ errorMessageProps={errorMessageProps}
85
+ errorId={errorId}
86
+ errorMessageIcon={errorMessageIcon}
87
+ errorMessageIconPosition={errorMessageIconPosition}
88
+ />
89
+ )}
90
+ </div>
91
+ )}
92
+ </div>
93
+ );
94
+ };
95
+
96
+ export const FormGroup = React.forwardRef(FormGroupComponent);
@@ -0,0 +1,32 @@
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
+
17
+ div.form-helper-text {
18
+ color: var(--input-helper-text-color);
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ div.disabled {
23
+ color: var(--greyed-out);
24
+ }
25
+
26
+ div.error {
27
+ color: var(--error);
28
+ }
29
+
30
+ [data-readonlyview="true"] div.form-helper-text {
31
+ display: none;
32
+ }
@@ -0,0 +1,43 @@
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
+
17
+ import React, { ForwardRefRenderFunction, ComponentPropsWithRef, ReactNode } from "react";
18
+ import classes from "./FormHelperText.module.scss";
19
+ import { Typography } from "../../Typography/Typography";
20
+ import { FormElement } from "../form.interfaces";
21
+
22
+ export interface Props extends ComponentPropsWithRef<"div">, FormElement {
23
+ children?: ReactNode;
24
+ disabled?: boolean;
25
+ }
26
+
27
+ const FormHelperTextComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
28
+ { children, error, disabled, className, ...rest }: Props,
29
+ ref
30
+ ) => {
31
+ const classNames = [classes["form-helper-text"]];
32
+ error && classNames.push(classes["error"]);
33
+ disabled && classNames.push(classes["disabled"]);
34
+ className && classNames.push(className);
35
+
36
+ return (
37
+ <Typography {...rest} ref={ref} variant="sub-text" tag="div" className={classNames.join(" ")}>
38
+ {children}
39
+ </Typography>
40
+ );
41
+ };
42
+
43
+ export const FormHelperText = React.forwardRef(FormHelperTextComponent);
@@ -0,0 +1,12 @@
1
+ .section-wrapper {
2
+ padding-bottom: 4rem;
3
+ }
4
+
5
+ .section-header-wrapper {
6
+ margin-bottom: 1rem;
7
+ }
8
+
9
+ .section-header {
10
+ line-height: 1.6;
11
+ color: var(--color-primary500);
12
+ }
@@ -0,0 +1,68 @@
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
+
17
+ @use "../../../functions" as *;
18
+
19
+ .error input + span {
20
+ outline: var(--error) solid 1px;
21
+ outline-offset: -1px;
22
+ border-radius: 2px;
23
+ overflow: hidden;
24
+ }
25
+
26
+ .helper-text {
27
+ margin-top: 0.25rem;
28
+ margin-left: relativeToBaseFontSize(1.75);
29
+ }
30
+
31
+ .children-container {
32
+ & > span:nth-of-type(2) {
33
+ margin-right: 0.5rem;
34
+ }
35
+
36
+ [data-icon-status="success"] {
37
+ color: var(--success);
38
+ font-size: var(--font-size-big);
39
+ }
40
+
41
+ [data-icon-status="error"] {
42
+ color: var(--error);
43
+ font-size: var(--font-size-big);
44
+ }
45
+
46
+ [data-icon-status="info"] {
47
+ color: var(--default);
48
+ font-size: var(--font-size-big);
49
+ }
50
+ }
51
+
52
+ .disabled {
53
+ input {
54
+ color: var(--disabled);
55
+
56
+ &:disabled {
57
+ cursor: not-allowed;
58
+ }
59
+ }
60
+
61
+ label {
62
+ cursor: not-allowed;
63
+ }
64
+ }
65
+
66
+ .required {
67
+ color: var(--error);
68
+ }
@@ -0,0 +1,117 @@
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
+
17
+ import React, {
18
+ ForwardRefRenderFunction,
19
+ ComponentPropsWithRef,
20
+ createRef,
21
+ ReactNode
22
+ } from "react";
23
+ import { KeyValuePair } from "../../../interfaces";
24
+ import { FormSelector } from "../form.interfaces";
25
+ import { FormHelperText, Props as FormHelperTextProps } from "../FormHelperText/FormHelperText";
26
+ import classes from "./FormSelectorWrapper.module.scss";
27
+ import { useInlineEditing } from "../../InlineEditing/InlineEditingContext";
28
+ import { RequiredSign } from "../../RequiredSign/RequiredSign";
29
+ import { FormErrorText } from "../FormErrorText/FormErrorText";
30
+ import { FormStatusIndicator } from "../FormStatusIndicator/FormStatusIndicator";
31
+
32
+ export interface Props extends ComponentPropsWithRef<"div">, FormSelector {
33
+ children?: ReactNode;
34
+ nestedChildren?: ReactNode;
35
+ containerProps?: ComponentPropsWithRef<"div"> & KeyValuePair;
36
+ helperProps?: FormHelperTextProps;
37
+ disabled?: boolean;
38
+ errorId?: string;
39
+ identifier?: string;
40
+ required?: boolean;
41
+ }
42
+
43
+ const FormSelectorWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
44
+ {
45
+ children,
46
+ className,
47
+ nestedChildren,
48
+ containerProps,
49
+ helperProps,
50
+ error,
51
+ disabled,
52
+ helperText,
53
+ success,
54
+ errorMessage,
55
+ errorMessageProps,
56
+ parentErrorId,
57
+ errorId,
58
+ identifier,
59
+ required,
60
+ ...rest
61
+ }: Props,
62
+ ref
63
+ ) => {
64
+ const helperRef = helperProps?.ref ?? createRef();
65
+ const { enabled } = useInlineEditing();
66
+
67
+ const hasHelperText = helperText ?? helperProps?.children;
68
+ const showHelperText = !error && hasHelperText;
69
+ const showErrorText = error && (errorMessage || errorMessageProps?.children);
70
+
71
+ return (
72
+ <div
73
+ {...rest}
74
+ ref={ref}
75
+ className={`${error ? classes["error"] : ""} ${disabled ? classes["disabled"] : ""} ${
76
+ className ?? ""
77
+ }`}
78
+ >
79
+ <div
80
+ {...containerProps}
81
+ className={`${containerProps?.className} ${classes["children-container"]}`}
82
+ >
83
+ {children}
84
+ {enabled && (
85
+ <>
86
+ <RequiredSign className={classes["required"]} />
87
+ <FormStatusIndicator success={success} error={error}>
88
+ <></>
89
+ </FormStatusIndicator>
90
+ </>
91
+ )}
92
+ </div>
93
+ {!enabled &&
94
+ (showHelperText || showErrorText) &&
95
+ (showErrorText ? (
96
+ <FormErrorText
97
+ error={error}
98
+ errorMessage={errorMessage}
99
+ errorMessageProps={errorMessageProps}
100
+ errorId={errorId}
101
+ />
102
+ ) : (
103
+ <FormHelperText
104
+ {...helperProps}
105
+ ref={helperRef}
106
+ id={identifier}
107
+ className={`${classes["helper-text"]} ${helperProps?.className ?? ""}`}
108
+ >
109
+ {helperProps?.children || helperText}
110
+ </FormHelperText>
111
+ ))}
112
+ {nestedChildren}
113
+ </div>
114
+ );
115
+ };
116
+
117
+ export const FormSelectorWrapper = React.forwardRef(FormSelectorWrapperComponent);
@@ -0,0 +1,75 @@
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
+
17
+ import React from "react";
18
+ import { useInlineEditing } from "../../InlineEditing/InlineEditingContext";
19
+ import { useDetermineStatusIcon } from "../../../hooks/useDetermineStatusIcon";
20
+ import { getStatusIcon, getStatusState } from "../../../utils/statusUtils";
21
+ import { Tooltip } from "../../Tooltip/Tooltip";
22
+ import { Icon } from "../../Icon/Icon";
23
+
24
+ export interface FormStatusIndicatorProps {
25
+ isReadOnlyView?: boolean;
26
+ success?: boolean;
27
+ error?: boolean;
28
+ children: React.ReactNode;
29
+ }
30
+
31
+ export const FormStatusIndicator: React.FC<FormStatusIndicatorProps> = ({
32
+ isReadOnlyView,
33
+ success,
34
+ error,
35
+ children
36
+ }) => {
37
+ const { enabled, tooltipText, ...restProps } = useInlineEditing();
38
+ const showTooltip = enabled && tooltipText;
39
+ const isSuccess = restProps.success ?? success;
40
+ const isError = restProps.error ?? error;
41
+ const statusIcon = useDetermineStatusIcon({
42
+ success: isSuccess,
43
+ error: isError
44
+ });
45
+
46
+ if (showTooltip && !isReadOnlyView) {
47
+ const status = getStatusState(
48
+ {
49
+ success: isSuccess,
50
+ error: isError
51
+ },
52
+ true
53
+ );
54
+ return (
55
+ <Tooltip
56
+ label={
57
+ <Icon
58
+ data-testid="tooltip-icon"
59
+ data-icon-status={status}
60
+ icon={getStatusIcon({
61
+ success: isSuccess,
62
+ error: isError
63
+ })}
64
+ />
65
+ }
66
+ location="right"
67
+ position="center"
68
+ >
69
+ {tooltipText}
70
+ </Tooltip>
71
+ );
72
+ }
73
+
74
+ return <>{statusIcon || (!isReadOnlyView && children)}</>;
75
+ };
@@ -0,0 +1,186 @@
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
+
17
+ @use "../../../mixins.module";
18
+ @use "../../../variables";
19
+ @use "../../../functions" as *;
20
+
21
+ .input-wrapper {
22
+ position: relative;
23
+ display: flex;
24
+ align-items: center;
25
+ border: 0;
26
+ border-radius: var(--input-border-radius);
27
+ background-color: var(--input-background-color);
28
+ padding: 0 relativeToBaseFontSize(variables.$form-element-horizontal-padding-ratio-mobile);
29
+ @include mixins.transition(background-color, 0.2s, ease-in-out);
30
+
31
+ // General autofill styles
32
+ input:-webkit-autofill,
33
+ input:-webkit-autofill:hover,
34
+ input:-webkit-autofill:focus,
35
+ input:-webkit-autofill:active {
36
+ transition: background-color 5000s ease-in-out 0s !important;
37
+
38
+ ~ .outline {
39
+ &:after {
40
+ content: "";
41
+ position: absolute;
42
+ display: block;
43
+ width: 100%;
44
+ height: 100%;
45
+ border-radius: var(--input-border-radius);
46
+ }
47
+ }
48
+
49
+ // Chrome specific color
50
+ @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
51
+ ~ .outline {
52
+ &:after {
53
+ background-color: rgb(232, 240, 254);
54
+ }
55
+ }
56
+ }
57
+
58
+ // Safari specific color
59
+ @media not all and (min-resolution: 0.001dpcm) {
60
+ ~ .outline {
61
+ &:after {
62
+ background-color: rgb(250, 255, 189);
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ @include mixins.outlineStates;
69
+
70
+ [data-icon-status="success"],
71
+ [data-icon-status="error"] {
72
+ height: 100%;
73
+ width: relativeToBaseFontSize(1.25);
74
+ box-sizing: border-box;
75
+ font-size: var(--icon-font-big);
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ z-index: 2;
80
+
81
+ &:before {
82
+ font-size: var(--icon-font-big);
83
+ height: relativeToBaseFontSize(1.25);
84
+ width: relativeToBaseFontSize(1.25);
85
+ display: flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ }
89
+ }
90
+
91
+ [data-icon-status="success"] {
92
+ color: var(--success);
93
+ }
94
+
95
+ [data-icon-status="error"] {
96
+ color: var(--error);
97
+ }
98
+
99
+ &[data-readonlyview="true"] {
100
+ color: var(--read-only-text-color);
101
+
102
+ & .Input-module {
103
+ border-color: var(--read-only-border-color);
104
+ }
105
+
106
+ & span.outline {
107
+ color: var(--read-only-text-color);
108
+ border-color: var(--read-only-border-color);
109
+ background-color: var(--color-white);
110
+ }
111
+
112
+ &:hover {
113
+ & .outline {
114
+ color: var(--read-only-text-color);
115
+ background-color: var(--color-white);
116
+ border-color: var(--read-only-border-color);
117
+ }
118
+ }
119
+ }
120
+
121
+ & [data-prefix],
122
+ & [data-suffix] {
123
+ display: block;
124
+ z-index: 1;
125
+
126
+ @include mixins.transition(all, 0.2s, ease-in-out);
127
+ }
128
+
129
+ &.focus:not(.disabled):not([data-readonlyview="true"]),
130
+ &[data-readonlyview="true"]:focus:not(.disabled),
131
+ &[data-readonlyview="true"]:focus-visible:not(.disabled) {
132
+ position: relative;
133
+ z-index: 2;
134
+ @include mixins.focusVisibleOutline($selectors: null);
135
+ }
136
+ }
137
+
138
+ .input {
139
+ padding: 0;
140
+ height: relativeToBaseFontSize(2.75);
141
+ color: var(--color-blue-grey900);
142
+ font-size: var(--input-font-size);
143
+ font-family: var(--font-family);
144
+ box-sizing: border-box;
145
+ border: 0;
146
+ border-radius: var(--input-border-radius);
147
+ background-color: transparent;
148
+ z-index: 1;
149
+
150
+ &:not(.shrink-width-for-date-icon) {
151
+ width: 100%;
152
+ }
153
+
154
+ &:disabled {
155
+ cursor: not-allowed;
156
+ color: var(--greyed-out);
157
+ }
158
+
159
+ &.shrink-width-for-date-icon {
160
+ width: auto;
161
+ }
162
+
163
+ & {
164
+ @include mixins.transition(all, 0.2s, ease-in-out);
165
+ @include mixins.browserOutlineDisabled;
166
+ }
167
+ }
168
+
169
+ @include mixins.outline;
170
+
171
+ .error input {
172
+ padding-right: relativeToBaseFontSize(1.25);
173
+
174
+ &.remove-extra-indent {
175
+ padding-right: 0;
176
+ }
177
+ }
178
+ .success input {
179
+ padding-right: relativeToBaseFontSize(1.25);
180
+ }
181
+
182
+ @media only screen and (min-width: 30em) {
183
+ .input-wrapper {
184
+ padding: 0 relativeToBaseFontSize(variables.$form-element-horizontal-padding-ratio-desktop);
185
+ }
186
+ }