@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.
- package/LICENSE +202 -0
- package/README.md +94 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/dist/components/Button/BaseButton.d.ts +8 -0
- package/dist/components/Button/BaseButton.test.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Button/IconButton.d.ts +11 -0
- package/dist/components/Button/IconButton.test.d.ts +1 -0
- package/dist/components/Button/Spinner.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +24 -0
- package/dist/components/ContextMenu/ContextMenu.test.d.ts +1 -0
- package/dist/components/ContextMenu/ContextMenuItem.d.ts +15 -0
- package/dist/components/ContextMenu/ContextMenuService.d.ts +21 -0
- package/dist/components/DataGrid/DataGrid.d.ts +46 -0
- package/dist/components/DataGrid/DataGrid.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridActions/DataGridActions.d.ts +15 -0
- package/dist/components/DataGrid/DataGridActions/DataGridActions.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +13 -0
- package/dist/components/DataGrid/DataGridActions/DataGridColumnsToggle.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridBody/DataGridBody.d.ts +21 -0
- package/dist/components/DataGrid/DataGridBody/DataGridBody.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.d.ts +12 -0
- package/dist/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.d.ts +5 -0
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.d.ts +6 -0
- package/dist/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.d.ts +33 -0
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridBody/DataGridRow/DataGridWithNestedRows.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.d.ts +855 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridDateFilter.d.ts +9 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilter.d.ts +16 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterPopover.d.ts +23 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterService.d.ts +16 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.d.ts +15 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterTag.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.d.ts +15 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.d.ts +78 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridSearchbar.d.ts +10 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.d.ts +15 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbar.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.d.ts +10 -0
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.d.ts +31 -0
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.d.ts +15 -0
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.d.ts +18 -0
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.d.ts +10 -0
- package/dist/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.d.ts +10 -0
- package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.d.ts +14 -0
- package/dist/components/DataGrid/DataGridFilters/FilterKeyMapper.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.d.ts +9 -0
- package/dist/components/DataGrid/DataGridFilters/useFiltersReducer.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.d.ts +13 -0
- package/dist/components/DataGrid/DataGridHeader/DataGridHeader.test.d.ts +1 -0
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +10 -0
- package/dist/components/DataGrid/DataGridHeader/DataGridHeaderCell.test.d.ts +1 -0
- package/dist/components/DataGrid/datagrid.interfaces.d.ts +13 -0
- package/dist/components/DataGrid/testUtils.d.ts +22 -0
- package/dist/components/DatePicker/DatePicker.d.ts +14 -0
- package/dist/components/DatePicker/DatePicker.test.d.ts +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +14 -0
- package/dist/components/Form/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/Form/Fieldset/Fieldset.d.ts +14 -0
- package/dist/components/Form/Fieldset/Fieldset.test.d.ts +1 -0
- package/dist/components/Form/FileUpload/FileItem/FileItem.d.ts +28 -0
- package/dist/components/Form/FileUpload/FileItem/FileItem.test.d.ts +1 -0
- package/dist/components/Form/FileUpload/FileUpload.d.ts +32 -0
- package/dist/components/Form/FileUpload/FileUpload.test.d.ts +1 -0
- package/dist/components/Form/Form.d.ts +5 -0
- package/dist/components/Form/Form.test.d.ts +1 -0
- package/dist/components/Form/FormControl/FormControl.d.ts +8 -0
- package/dist/components/Form/FormControl/FormControl.test.d.ts +1 -0
- package/dist/components/Form/FormErrorText/FormErrorText.d.ts +12 -0
- package/dist/components/Form/FormErrorText/FormErrorText.test.d.ts +1 -0
- package/dist/components/Form/FormGroup/FormGroup.d.ts +17 -0
- package/dist/components/Form/FormGroup/FormGroup.test.d.ts +1 -0
- package/dist/components/Form/FormHelperText/FormHelperText.d.ts +7 -0
- package/dist/components/Form/FormHelperText/FormHelperText.test.d.ts +1 -0
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.d.ts +15 -0
- package/dist/components/Form/FormSelectorWrapper/FormSelectorWrapper.test.d.ts +1 -0
- package/dist/components/Form/FormStatusIndicator/FormStatusIndicator.d.ts +8 -0
- package/dist/components/Form/Input/Input.d.ts +14 -0
- package/dist/components/Form/Input/Input.test.d.ts +1 -0
- package/dist/components/Form/Label/Label.d.ts +5 -0
- package/dist/components/Form/Label/Label.test.d.ts +1 -0
- package/dist/components/Form/Radio/Radio.d.ts +11 -0
- package/dist/components/Form/Radio/Radio.test.d.ts +1 -0
- package/dist/components/Form/Select/MultiSelect/MultiOption.d.ts +6 -0
- package/dist/components/Form/Select/MultiSelect/MultiSelect.d.ts +3 -0
- package/dist/components/Form/Select/MultiSelect/MultiSelect.test.d.ts +63 -0
- package/dist/components/Form/Select/MultiSelect/MultiSelectKeyboardNavigation.test.d.ts +1 -0
- package/dist/components/Form/Select/MultiSelect/SelectButton.d.ts +4 -0
- package/dist/components/Form/Select/MultiSelect/SelectedOptions.d.ts +12 -0
- package/dist/components/Form/Select/MultiSelect/useArrowNavigation.d.ts +17 -0
- package/dist/components/Form/Select/MultiSelect/useMultiSelect.d.ts +16 -0
- package/dist/components/Form/Select/MultiSelect/useMultiSelect.test.d.ts +1 -0
- package/dist/components/Form/Select/MultiSelect/useSearch.d.ts +24 -0
- package/dist/components/Form/Select/Select.interfaces.d.ts +60 -0
- package/dist/components/Form/Select/SingleSelect/Option.d.ts +18 -0
- package/dist/components/Form/Select/SingleSelect/Option.test.d.ts +1 -0
- package/dist/components/Form/Select/SingleSelect/Select.d.ts +3 -0
- package/dist/components/Form/Select/SingleSelect/Select.test.d.ts +124 -0
- package/dist/components/Form/Select/SingleSelect/SelectKeyboardNavigation.test.d.ts +1 -0
- package/dist/components/Form/Select/SingleSelect/useArrowNavigation.d.ts +5 -0
- package/dist/components/Form/Select/SingleSelect/useSearch.d.ts +20 -0
- package/dist/components/Form/Select/useAddNewBtn.d.ts +19 -0
- package/dist/components/Form/Select/useSelectPositionList.d.ts +12 -0
- package/dist/components/Form/Textarea/Textarea.d.ts +7 -0
- package/dist/components/Form/Textarea/Textarea.test.d.ts +1 -0
- package/dist/components/Form/Toggle/Toggle.d.ts +11 -0
- package/dist/components/Form/Toggle/Toggle.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.d.ts +12 -0
- package/dist/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.d.ts +18 -0
- package/dist/components/Form/Wrapper/InputWrapper/InputWrapper.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.d.ts +16 -0
- package/dist/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.d.ts +10 -0
- package/dist/components/Form/Wrapper/RadioWrapper/RadioWrapper.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +16 -0
- package/dist/components/Form/Wrapper/SelectWrapper/SelectWrapper.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.d.ts +16 -0
- package/dist/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.test.d.ts +1 -0
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.d.ts +27 -0
- package/dist/components/Form/Wrapper/Wrapper/Wrapper.test.d.ts +1 -0
- package/dist/components/Form/form.interfaces.d.ts +16 -0
- package/dist/components/Icon/Icon.d.ts +114 -0
- package/dist/components/Icon/Icon.test.d.ts +1 -0
- package/dist/components/InlineEditing/InlineCheckbox/InlineCheckbox.d.ts +6 -0
- package/dist/components/InlineEditing/InlineEditingContext.d.ts +10 -0
- package/dist/components/InlineEditing/InlineEditingSelect/InlineSelect.d.ts +6 -0
- package/dist/components/Layout/Card/Card.d.ts +16 -0
- package/dist/components/Layout/Card/Card.test.d.ts +0 -0
- package/dist/components/Layout/ContentHeader/ContentHeader.d.ts +24 -0
- package/dist/components/Layout/ContentHeader/ContentHeader.test.d.ts +1 -0
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.d.ts +7 -0
- package/dist/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.test.d.ts +1 -0
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.d.ts +10 -0
- package/dist/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.test.d.ts +1 -0
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.d.ts +6 -0
- package/dist/components/Layout/FormPage/FormWithStepper/FormWithStepper.test.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +14 -0
- package/dist/components/Link/Link.test.d.ts +1 -0
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.d.ts +12 -0
- package/dist/components/Notifications/Alert/AlertContainer/AlertContainer.test.d.ts +1 -0
- package/dist/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.d.ts +4 -0
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.d.ts +22 -0
- package/dist/components/Notifications/Alert/AlertItem/AlertItem.test.d.ts +1 -0
- package/dist/components/Notifications/Alert/AlertProvider/AlertContext.d.ts +13 -0
- package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.d.ts +22 -0
- package/dist/components/Notifications/Alert/AlertProvider/AlertProvider.test.d.ts +1 -0
- package/dist/components/Notifications/Alert/useAlert.d.ts +7 -0
- package/dist/components/Notifications/Alert/useAlert.test.d.ts +1 -0
- package/dist/components/Notifications/Banner/Banner.d.ts +11 -0
- package/dist/components/Notifications/Banner/Banner.test.d.ts +1 -0
- package/dist/components/Notifications/BaseModal/BaseModal.d.ts +21 -0
- package/dist/components/Notifications/BaseModal/BaseModal.test.d.ts +1 -0
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.d.ts +13 -0
- package/dist/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.test.d.ts +1 -0
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.d.ts +8 -0
- package/dist/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.test.d.ts +1 -0
- package/dist/components/Notifications/BaseModal/BaseModalContext.d.ts +2 -0
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.d.ts +9 -0
- package/dist/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.test.d.ts +1 -0
- package/dist/components/Notifications/Dialog/Dialog.d.ts +22 -0
- package/dist/components/Notifications/Dialog/Dialog.test.d.ts +1 -0
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.d.ts +6 -0
- package/dist/components/Notifications/Dialog/DialogActions/DialogActions.test.d.ts +1 -0
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.d.ts +9 -0
- package/dist/components/Notifications/Dialog/DialogTitle/DialogTitle.test.d.ts +1 -0
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.d.ts +15 -0
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.test.d.ts +1 -0
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.d.ts +13 -0
- package/dist/components/Notifications/DiscardChangesModal/DiscardChangesModal.test.d.ts +1 -0
- package/dist/components/Notifications/Modal/Modal.d.ts +2 -0
- package/dist/components/Notifications/Modal/Modal.test.d.ts +1 -0
- package/dist/components/Notifications/Modal/ModalActions/ModalActions.d.ts +2 -0
- package/dist/components/Notifications/Modal/ModalContent/ModalContent.d.ts +2 -0
- package/dist/components/Notifications/Modal/ModalHeader/ModalHeader.d.ts +2 -0
- package/dist/components/Notifications/NotificationProvider/NotificationContext.d.ts +35 -0
- package/dist/components/Notifications/NotificationProvider/NotificationContext.test.d.ts +1 -0
- package/dist/components/Notifications/NotificationProvider/NotificationService.d.ts +2 -0
- package/dist/components/Notifications/NotificationProvider/notification.interfaces.d.ts +46 -0
- package/dist/components/Notifications/SideSheet/SideSheet.d.ts +10 -0
- package/dist/components/Notifications/SideSheet/SideSheet.test.d.ts +1 -0
- package/dist/components/Notifications/SideSheet/SideSheetActions/SideSheetActions.d.ts +2 -0
- package/dist/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.d.ts +4 -0
- package/dist/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.d.ts +4 -0
- package/dist/components/Notifications/SlideInModal/SlideInModal.d.ts +4 -0
- package/dist/components/Notifications/SlideInModal/SlideInModal.test.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +19 -0
- package/dist/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +13 -0
- package/dist/components/Popover/Popover.test.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +9 -0
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -0
- package/dist/components/RequiredSign/RequiredSign.d.ts +5 -0
- package/dist/components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +6 -0
- package/dist/components/Spinner/Spinner.test.d.ts +1 -0
- package/dist/components/Stepper/Step.d.ts +15 -0
- package/dist/components/Stepper/Stepper.d.ts +8 -0
- package/dist/components/Stepper/Stepper.test.d.ts +1 -0
- package/dist/components/Tabs/Tab.d.ts +8 -0
- package/dist/components/Tabs/Tab.test.d.ts +1 -0
- package/dist/components/Tabs/TabButton.d.ts +9 -0
- package/dist/components/Tabs/TabButton.test.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +13 -0
- package/dist/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/components/Tag/RemoveButton.d.ts +7 -0
- package/dist/components/Tag/Tag.d.ts +13 -0
- package/dist/components/Tag/Tag.test.d.ts +1 -0
- package/dist/components/TextEllipsis/TextEllipsis.d.ts +6 -0
- package/dist/components/TextEllipsis/TextEllipsis.test.d.ts +1 -0
- package/dist/components/Tiles/Tile.d.ts +15 -0
- package/dist/components/Tiles/Tile.test.d.ts +1 -0
- package/dist/components/Tiles/Tiles.d.ts +6 -0
- package/dist/components/Tiles/Tiles.test.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +14 -0
- package/dist/components/Typography/Typography.test.d.ts +1 -0
- package/dist/components/_BaseStyling_/BaseStyling.d.ts +208 -0
- package/dist/components/_BaseStyling_/BaseStyling.test.d.ts +1 -0
- package/dist/components/_BaseStyling_/buttonBaseStyling.d.ts +14 -0
- package/dist/components/admin/layout/LeftNav/LeftNav.d.ts +13 -0
- package/dist/components/admin/layout/LeftNav/LeftNav.interfaces.d.ts +13 -0
- package/dist/components/admin/layout/LeftNav/LeftNav.test.d.ts +0 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +14 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.d.ts +3 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +11 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.test.d.ts +0 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +12 -0
- package/dist/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.d.ts +13 -0
- package/dist/components/admin/layout/LeftNav/useRefItems.d.ts +22 -0
- package/dist/components/admin/layout/LeftNav/useRefItems.test.d.ts +1 -0
- package/dist/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.d.ts +8 -0
- package/dist/components/miscellaneous/IdentityProviderButton.d.ts +18 -0
- package/dist/components/miscellaneous/IdentityProviderButton.test.d.ts +1 -0
- package/dist/components/withReadOnly.d.ts +12 -0
- package/dist/components/withReadOnly.test.d.ts +1 -0
- package/dist/hooks/useAnimation.d.ts +5 -0
- package/dist/hooks/useAnimation.test.d.ts +1 -0
- package/dist/hooks/useClickOutside.d.ts +2 -0
- package/dist/hooks/useClickOutside.test.d.ts +1 -0
- package/dist/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/hooks/useDebouncedCallback.test.d.ts +1 -0
- package/dist/hooks/useDetermineStatusIcon.d.ts +3 -0
- package/dist/hooks/useDetermineStatusIcon.test.d.ts +1 -0
- package/dist/hooks/useFormSelector.d.ts +13 -0
- package/dist/hooks/useFormSelector.test.d.ts +1 -0
- package/dist/hooks/useFullHeightCollapse.d.ts +4 -0
- package/dist/hooks/useFullHeightCollapse.test.d.ts +1 -0
- package/dist/hooks/useGetDomRoot.d.ts +3 -0
- package/dist/hooks/usePosition.d.ts +50 -0
- package/dist/hooks/usePosition.test.d.ts +1 -0
- package/dist/hooks/useRepeatFocus.d.ts +7 -0
- package/dist/hooks/useRepeater.d.ts +10 -0
- package/dist/hooks/useRepeater.test.d.ts +6 -0
- package/dist/hooks/useScreenSize.d.ts +9 -0
- package/dist/hooks/useScreenSize.test.d.ts +1 -0
- package/dist/hooks/useScroll.d.ts +2 -0
- package/dist/hooks/useScroll.test.d.ts +1 -0
- package/dist/hooks/useSpacing.d.ts +18 -0
- package/dist/hooks/useSpacing.test.d.ts +1 -0
- package/dist/hooks/useUploadFile.d.ts +27 -0
- package/dist/hooks/useUploadFile.test.d.ts +1 -0
- package/dist/hooks/useWrapper.d.ts +7 -0
- package/dist/hooks/useWrapper.test.d.ts +1 -0
- package/dist/index.cjs.js +205 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +175 -0
- package/dist/index.es.js +65380 -0
- package/dist/index.es.js.map +1 -0
- package/dist/interfaces.d.ts +9 -0
- package/dist/util/helper.d.ts +14 -0
- package/dist/util/helper.test.d.ts +1 -0
- package/dist/util/unitTestUtils.d.ts +12 -0
- package/dist/utils/statusUtils.d.ts +10 -0
- package/dist/variables.d.ts +8 -0
- package/package.json +144 -0
- package/src/_functions.scss +19 -0
- package/src/components/Breadcrumbs/Breadcrumbs.module.scss +54 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +84 -0
- package/src/components/Button/BaseButton.module.scss +48 -0
- package/src/components/Button/BaseButton.tsx +65 -0
- package/src/components/Button/Button.module.scss +58 -0
- package/src/components/Button/Button.tsx +70 -0
- package/src/components/Button/IconButton.module.scss +73 -0
- package/src/components/Button/IconButton.tsx +63 -0
- package/src/components/Button/Spinner.tsx +33 -0
- package/src/components/ContextMenu/ContextMenu.module.scss +41 -0
- package/src/components/ContextMenu/ContextMenu.tsx +206 -0
- package/src/components/ContextMenu/ContextMenuItem.module.scss +73 -0
- package/src/components/ContextMenu/ContextMenuItem.tsx +100 -0
- package/src/components/ContextMenu/ContextMenuService.ts +171 -0
- package/src/components/DataGrid/DataGrid.module.scss +51 -0
- package/src/components/DataGrid/DataGrid.tsx +225 -0
- package/src/components/DataGrid/DataGridActions/DataGridActions.module.scss +51 -0
- package/src/components/DataGrid/DataGridActions/DataGridActions.tsx +140 -0
- package/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss +58 -0
- package/src/components/DataGrid/DataGridActions/DataGridColumnsToggle.tsx +107 -0
- package/src/components/DataGrid/DataGridBody/DataGridBody.module.scss +26 -0
- package/src/components/DataGrid/DataGridBody/DataGridBody.tsx +110 -0
- package/src/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss +61 -0
- package/src/components/DataGrid/DataGridBody/DataGridCell/DataGridCell.tsx +131 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss +60 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.tsx +39 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss +21 -0
- package/src/components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.tsx +47 -0
- package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss +127 -0
- package/src/components/DataGrid/DataGridBody/DataGridRow/DataGridRow.tsx +192 -0
- package/src/components/DataGrid/DataGridBody/DataGridRow/useNestedRow.tsx +143 -0
- package/src/components/DataGrid/DataGridBody/__snapshots__/DataGridBody.test.tsx.snap +262 -0
- package/src/components/DataGrid/DataGridFilters/DataGridDateFilter.tsx +65 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilter.module.scss +116 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilter.tsx +161 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterPopover.tsx +172 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterService.ts +124 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterTag.tsx +146 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilterValueSelect.tsx +136 -0
- package/src/components/DataGrid/DataGridFilters/DataGridFilters.interfaces.ts +123 -0
- package/src/components/DataGrid/DataGridFilters/DataGridSearchbar.tsx +71 -0
- package/src/components/DataGrid/DataGridFilters/DataGridToolbar.module.scss +73 -0
- package/src/components/DataGrid/DataGridFilters/DataGridToolbar.tsx +132 -0
- package/src/components/DataGrid/DataGridFilters/DataGridToolbarWrapper.tsx +38 -0
- package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss +136 -0
- package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.tsx +267 -0
- package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerCalendarSection.tsx +103 -0
- package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimePickerInputSection.tsx +121 -0
- package/src/components/DataGrid/DataGridFilters/DateTimePicker/DateTimeService.ts +30 -0
- package/src/components/DataGrid/DataGridFilters/DateTimePicker/SideMenu.tsx +50 -0
- package/src/components/DataGrid/DataGridFilters/FilterKeyMapper.ts +48 -0
- package/src/components/DataGrid/DataGridFilters/useFiltersReducer.tsx +73 -0
- package/src/components/DataGrid/DataGridHeader/DataGridHeader.module.scss +32 -0
- package/src/components/DataGrid/DataGridHeader/DataGridHeader.tsx +128 -0
- package/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +93 -0
- package/src/components/DataGrid/DataGridHeader/DataGridHeaderCell.tsx +83 -0
- package/src/components/DataGrid/dataGridMixins.module.scss +33 -0
- package/src/components/DataGrid/datagrid.interfaces.ts +30 -0
- package/src/components/DataGrid/testUtils.ts +117 -0
- package/src/components/DatePicker/DatePicker.module.scss +360 -0
- package/src/components/DatePicker/DatePicker.tsx +98 -0
- package/src/components/Form/Checkbox/Checkbox.module.scss +221 -0
- package/src/components/Form/Checkbox/Checkbox.tsx +205 -0
- package/src/components/Form/Fieldset/Fieldset.module.scss +49 -0
- package/src/components/Form/Fieldset/Fieldset.tsx +128 -0
- package/src/components/Form/FileUpload/FileItem/FileItem.module.scss +204 -0
- package/src/components/Form/FileUpload/FileItem/FileItem.tsx +271 -0
- package/src/components/Form/FileUpload/FileUpload.module.scss +241 -0
- package/src/components/Form/FileUpload/FileUpload.tsx +317 -0
- package/src/components/Form/Form.module.scss +19 -0
- package/src/components/Form/Form.tsx +35 -0
- package/src/components/Form/FormControl/FormControl.module.scss +65 -0
- package/src/components/Form/FormControl/FormControl.tsx +62 -0
- package/src/components/Form/FormErrorText/FormErrorText.module.scss +35 -0
- package/src/components/Form/FormErrorText/FormErrorText.tsx +65 -0
- package/src/components/Form/FormGroup/FormGroup.module.scss +24 -0
- package/src/components/Form/FormGroup/FormGroup.tsx +96 -0
- package/src/components/Form/FormHelperText/FormHelperText.module.scss +32 -0
- package/src/components/Form/FormHelperText/FormHelperText.tsx +43 -0
- package/src/components/Form/FormSection/FormSection.module.scss +12 -0
- package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss +68 -0
- package/src/components/Form/FormSelectorWrapper/FormSelectorWrapper.tsx +117 -0
- package/src/components/Form/FormStatusIndicator/FormStatusIndicator.tsx +75 -0
- package/src/components/Form/Input/Input.module.scss +186 -0
- package/src/components/Form/Input/Input.tsx +161 -0
- package/src/components/Form/Label/Label.module.scss +21 -0
- package/src/components/Form/Label/Label.tsx +40 -0
- package/src/components/Form/Radio/Radio.module.scss +196 -0
- package/src/components/Form/Radio/Radio.tsx +142 -0
- package/src/components/Form/Select/MultiSelect/MultiOption.tsx +66 -0
- package/src/components/Form/Select/MultiSelect/MultiSelect.module.scss +318 -0
- package/src/components/Form/Select/MultiSelect/MultiSelect.tsx +406 -0
- package/src/components/Form/Select/MultiSelect/SelectButton.module.scss +28 -0
- package/src/components/Form/Select/MultiSelect/SelectButton.tsx +37 -0
- package/src/components/Form/Select/MultiSelect/SelectedOptions.module.scss +39 -0
- package/src/components/Form/Select/MultiSelect/SelectedOptions.tsx +68 -0
- package/src/components/Form/Select/MultiSelect/useArrowNavigation.ts +133 -0
- package/src/components/Form/Select/MultiSelect/useMultiSelect.tsx +98 -0
- package/src/components/Form/Select/MultiSelect/useSearch.tsx +117 -0
- package/src/components/Form/Select/Select.interfaces.ts +84 -0
- package/src/components/Form/Select/SingleSelect/Option.tsx +116 -0
- package/src/components/Form/Select/SingleSelect/Select.module.scss +409 -0
- package/src/components/Form/Select/SingleSelect/Select.tsx +312 -0
- package/src/components/Form/Select/SingleSelect/useArrowNavigation.ts +177 -0
- package/src/components/Form/Select/SingleSelect/useSearch.tsx +113 -0
- package/src/components/Form/Select/useAddNewBtn.module.scss +66 -0
- package/src/components/Form/Select/useAddNewBtn.tsx +89 -0
- package/src/components/Form/Select/useSelectPositionList.ts +109 -0
- package/src/components/Form/Textarea/Textarea.module.scss +142 -0
- package/src/components/Form/Textarea/Textarea.tsx +97 -0
- package/src/components/Form/Toggle/Toggle.module.scss +214 -0
- package/src/components/Form/Toggle/Toggle.tsx +80 -0
- package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss +32 -0
- package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +99 -0
- package/src/components/Form/Wrapper/InputWrapper/InputWrapper.module.scss +79 -0
- package/src/components/Form/Wrapper/InputWrapper/InputWrapper.tsx +125 -0
- package/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss +27 -0
- package/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.tsx +88 -0
- package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss +30 -0
- package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +109 -0
- package/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss +27 -0
- package/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +89 -0
- package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss +100 -0
- package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +154 -0
- package/src/components/Form/Wrapper/Wrapper/Wrapper.module.scss +87 -0
- package/src/components/Form/Wrapper/Wrapper/Wrapper.tsx +116 -0
- package/src/components/Form/form.interfaces.ts +34 -0
- package/src/components/Icon/Icon.module.scss +455 -0
- package/src/components/Icon/Icon.tsx +152 -0
- package/src/components/InlineEditing/InlineCheckbox/InlineCheckbox.tsx +40 -0
- package/src/components/InlineEditing/InlineEditingContext.tsx +32 -0
- package/src/components/InlineEditing/InlineEditingSelect/InlineSelect.tsx +44 -0
- package/src/components/Layout/Card/Card.module.scss +68 -0
- package/src/components/Layout/Card/Card.tsx +108 -0
- package/src/components/Layout/ContentHeader/ContentHeader.module.scss +95 -0
- package/src/components/Layout/ContentHeader/ContentHeader.tsx +146 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss +12 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormSection/FormSection.tsx +53 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss +25 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.tsx +54 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss +36 -0
- package/src/components/Layout/FormPage/FormWithStepper/FormWithStepper.tsx +32 -0
- package/src/components/Link/Link.module.scss +106 -0
- package/src/components/Link/Link.tsx +111 -0
- package/src/components/Notifications/Alert/AlertContainer/AlertContainer.module.scss +57 -0
- package/src/components/Notifications/Alert/AlertContainer/AlertContainer.tsx +52 -0
- package/src/components/Notifications/Alert/AlertContainer/useAlertContainerHeightAnimation.ts +47 -0
- package/src/components/Notifications/Alert/AlertItem/AlertItem.module.scss +279 -0
- package/src/components/Notifications/Alert/AlertItem/AlertItem.tsx +214 -0
- package/src/components/Notifications/Alert/AlertProvider/AlertContext.ts +42 -0
- package/src/components/Notifications/Alert/AlertProvider/AlertProvider.tsx +173 -0
- package/src/components/Notifications/Alert/alertVariables.scss +17 -0
- package/src/components/Notifications/Alert/useAlert.ts +30 -0
- package/src/components/Notifications/Banner/Banner.module.scss +76 -0
- package/src/components/Notifications/Banner/Banner.tsx +78 -0
- package/src/components/Notifications/BaseModal/BaseModal.module.scss +76 -0
- package/src/components/Notifications/BaseModal/BaseModal.tsx +186 -0
- package/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss +65 -0
- package/src/components/Notifications/BaseModal/BaseModalActions/BaseModalActions.tsx +66 -0
- package/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss +25 -0
- package/src/components/Notifications/BaseModal/BaseModalContent/BaseModalContent.tsx +60 -0
- package/src/components/Notifications/BaseModal/BaseModalContext.ts +18 -0
- package/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss +43 -0
- package/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.tsx +69 -0
- package/src/components/Notifications/Dialog/Dialog.module.scss +31 -0
- package/src/components/Notifications/Dialog/Dialog.tsx +143 -0
- package/src/components/Notifications/Dialog/DialogActions/DialogActions.module.scss +35 -0
- package/src/components/Notifications/Dialog/DialogActions/DialogActions.tsx +48 -0
- package/src/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss +58 -0
- package/src/components/Notifications/Dialog/DialogTitle/DialogTitle.tsx +75 -0
- package/src/components/Notifications/DiscardChangesModal/DiscardChangesDialog/DiscardChangesDialog.tsx +77 -0
- package/src/components/Notifications/DiscardChangesModal/DiscardChangesModal.tsx +77 -0
- package/src/components/Notifications/Modal/Modal.tsx +18 -0
- package/src/components/Notifications/Modal/ModalActions/ModalActions.tsx +18 -0
- package/src/components/Notifications/Modal/ModalContent/ModalContent.tsx +18 -0
- package/src/components/Notifications/Modal/ModalHeader/ModalHeader.tsx +18 -0
- package/src/components/Notifications/NotificationProvider/NotificationContext.tsx +217 -0
- package/src/components/Notifications/NotificationProvider/NotificationService.ts +33 -0
- package/src/components/Notifications/NotificationProvider/notification.interfaces.ts +68 -0
- package/src/components/Notifications/SideSheet/SideSheet.module.scss +97 -0
- package/src/components/Notifications/SideSheet/SideSheet.tsx +114 -0
- package/src/components/Notifications/SideSheet/SideSheetActions/SideSheetActions.tsx +18 -0
- package/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss +19 -0
- package/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.tsx +25 -0
- package/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss +19 -0
- package/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.tsx +25 -0
- package/src/components/Notifications/SlideInModal/SlideInModal.module.scss +54 -0
- package/src/components/Notifications/SlideInModal/SlideInModal.tsx +75 -0
- package/src/components/Pagination/Pagination.module.scss +162 -0
- package/src/components/Pagination/Pagination.tsx +235 -0
- package/src/components/Popover/Popover.module.scss +42 -0
- package/src/components/Popover/Popover.tsx +142 -0
- package/src/components/ProgressBar/ProgressBar.module.scss +95 -0
- package/src/components/ProgressBar/ProgressBar.tsx +75 -0
- package/src/components/RequiredSign/RequiredSign.tsx +28 -0
- package/src/components/Skeleton/Skeleton.module.scss +36 -0
- package/src/components/Skeleton/Skeleton.tsx +48 -0
- package/src/components/Spinner/Spinner.module.scss +33 -0
- package/src/components/Spinner/Spinner.tsx +61 -0
- package/src/components/Stepper/Step.module.scss +301 -0
- package/src/components/Stepper/Step.tsx +116 -0
- package/src/components/Stepper/Stepper.module.scss +17 -0
- package/src/components/Stepper/Stepper.tsx +53 -0
- package/src/components/Tabs/Tab.module.scss +27 -0
- package/src/components/Tabs/Tab.tsx +41 -0
- package/src/components/Tabs/TabButton.module.scss +87 -0
- package/src/components/Tabs/TabButton.tsx +66 -0
- package/src/components/Tabs/Tabs.module.scss +58 -0
- package/src/components/Tabs/Tabs.tsx +217 -0
- package/src/components/Tag/RemoveButton.module.scss +42 -0
- package/src/components/Tag/RemoveButton.tsx +53 -0
- package/src/components/Tag/Tag.module.scss +43 -0
- package/src/components/Tag/Tag.tsx +79 -0
- package/src/components/TextEllipsis/TextEllipsis.module.scss +35 -0
- package/src/components/TextEllipsis/TextEllipsis.tsx +80 -0
- package/src/components/Tiles/Tile.module.scss +91 -0
- package/src/components/Tiles/Tile.tsx +105 -0
- package/src/components/Tiles/Tiles.module.scss +27 -0
- package/src/components/Tiles/Tiles.tsx +70 -0
- package/src/components/Tooltip/Tooltip.module.scss +221 -0
- package/src/components/Tooltip/Tooltip.tsx +251 -0
- package/src/components/Typography/Typography.module.scss +80 -0
- package/src/components/Typography/Typography.tsx +111 -0
- package/src/components/_BaseStyling_/BaseStyling.tsx +481 -0
- package/src/components/_BaseStyling_/buttonBaseStyling.ts +123 -0
- package/src/components/admin/layout/LeftNav/LeftNav.interfaces.ts +30 -0
- package/src/components/admin/layout/LeftNav/LeftNav.module.scss +66 -0
- package/src/components/admin/layout/LeftNav/LeftNav.tsx +96 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.tsx +173 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.ts +28 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss +222 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.tsx +34 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.tsx +106 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.ts +75 -0
- package/src/components/admin/layout/LeftNav/useRefItems.ts +280 -0
- package/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss +25 -0
- package/src/components/admin/layout/MicrofrontendContainer/MicrofrontendContainer.tsx +47 -0
- package/src/components/miscellaneous/IdentityProviderButton.module.scss +31 -0
- package/src/components/miscellaneous/IdentityProviderButton.tsx +92 -0
- package/src/components/withReadOnly.tsx +121 -0
- package/src/font/README.md +47 -0
- package/src/font/icomoon.eot +0 -0
- package/src/font/icomoon.svg +111 -0
- package/src/font/icomoon.ttf +0 -0
- package/src/font/icomoon.woff +0 -0
- package/src/font/selection.json +1 -0
- package/src/hooks/useAnimation.ts +36 -0
- package/src/hooks/useClickOutside.ts +42 -0
- package/src/hooks/useDebouncedCallback.tsx +34 -0
- package/src/hooks/useDetermineStatusIcon.tsx +33 -0
- package/src/hooks/useFormSelector.ts +63 -0
- package/src/hooks/useFullHeightCollapse.ts +33 -0
- package/src/hooks/useGetDomRoot.ts +40 -0
- package/src/hooks/usePosition.ts +387 -0
- package/src/hooks/useRepeatFocus.tsx +89 -0
- package/src/hooks/useRepeater.ts +50 -0
- package/src/hooks/useScreenSize.ts +60 -0
- package/src/hooks/useScroll.ts +32 -0
- package/src/hooks/useSpacing.ts +58 -0
- package/src/hooks/useUploadFile.tsx +141 -0
- package/src/hooks/useWrapper.ts +33 -0
- package/src/index.ts +237 -0
- package/src/interfaces.ts +37 -0
- package/src/mixins.module.scss +371 -0
- package/src/readyclasses.module.scss +64 -0
- package/src/types.d.ts +20 -0
- package/src/util/helper.tsx +219 -0
- package/src/util/unitTestUtils.ts +32 -0
- package/src/utils/statusUtils.ts +51 -0
- package/src/variables.scss +38 -0
- package/src/variables.ts +32 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes, ReactElement } from 'react';
|
|
2
|
+
import { ButtonColorProps } from './buttonBaseStyling';
|
|
3
|
+
export interface CSSProperties extends ButtonColorProps {
|
|
4
|
+
colorFocus?: string;
|
|
5
|
+
colorPrimary?: string;
|
|
6
|
+
colorSuccess?: string;
|
|
7
|
+
colorWarning?: string;
|
|
8
|
+
colorDanger?: string;
|
|
9
|
+
colorPrimary100?: string;
|
|
10
|
+
colorPrimary300?: string;
|
|
11
|
+
colorPrimary500?: string;
|
|
12
|
+
colorPrimary600?: string;
|
|
13
|
+
colorPrimary700?: string;
|
|
14
|
+
colorPrimary900?: string;
|
|
15
|
+
colorPrimary50?: string;
|
|
16
|
+
colorBlueGrey25?: string;
|
|
17
|
+
colorBlueGrey50?: string;
|
|
18
|
+
colorBlueGrey100?: string;
|
|
19
|
+
colorBlueGrey200?: string;
|
|
20
|
+
colorBlueGrey300?: string;
|
|
21
|
+
colorBlueGrey400?: string;
|
|
22
|
+
colorBlueGrey500?: string;
|
|
23
|
+
colorBlueGrey700?: string;
|
|
24
|
+
colorBlueGrey800?: string;
|
|
25
|
+
colorBlueGrey900?: string;
|
|
26
|
+
colorGreen50?: string;
|
|
27
|
+
colorGreen100?: string;
|
|
28
|
+
colorGreen200?: string;
|
|
29
|
+
colorGreen500?: string;
|
|
30
|
+
colorGreen600?: string;
|
|
31
|
+
colorGreen700?: string;
|
|
32
|
+
colorOrange50?: string;
|
|
33
|
+
colorOrange100?: string;
|
|
34
|
+
colorOrange500?: string;
|
|
35
|
+
colorOrange600?: string;
|
|
36
|
+
colorOrange700?: string;
|
|
37
|
+
colorRed50?: string;
|
|
38
|
+
colorRed100?: string;
|
|
39
|
+
colorRed200?: string;
|
|
40
|
+
colorRed500?: string;
|
|
41
|
+
colorRed600?: string;
|
|
42
|
+
colorRed700?: string;
|
|
43
|
+
colorRed900?: string;
|
|
44
|
+
colorWhite?: string;
|
|
45
|
+
colorBlack100?: string;
|
|
46
|
+
colorBlack50?: string;
|
|
47
|
+
colorBlack20?: string;
|
|
48
|
+
colorBlack10?: string;
|
|
49
|
+
defaultPressedColor?: string;
|
|
50
|
+
defaultHoverColor?: string;
|
|
51
|
+
defaultLineHeight?: string;
|
|
52
|
+
dataGridLineHeight?: string;
|
|
53
|
+
focusBorderRadius?: string;
|
|
54
|
+
buttonBorderRadius?: string;
|
|
55
|
+
buttonBorderWidth?: string;
|
|
56
|
+
buttonFontSize?: string;
|
|
57
|
+
buttonBorderStyle?: string;
|
|
58
|
+
/**@deprecated*/
|
|
59
|
+
buttonOutlineHoverTextColor?: string;
|
|
60
|
+
buttonFillTextColor?: string;
|
|
61
|
+
checkboxUncheckedColor?: string;
|
|
62
|
+
checkboxUncheckedHoverColor?: string;
|
|
63
|
+
checkboxUncheckedPressedColor?: string;
|
|
64
|
+
checkboxCheckedColor?: string;
|
|
65
|
+
checkboxCheckedHoverColor?: string;
|
|
66
|
+
checkboxCheckedPressedColor?: string;
|
|
67
|
+
radioHoverBackgroundColor?: string;
|
|
68
|
+
radioPressedBackgroundColor?: string;
|
|
69
|
+
radioHoverColor?: string;
|
|
70
|
+
radioCheckedColor?: string;
|
|
71
|
+
radioPressedColor?: string;
|
|
72
|
+
defaultBorderRadius?: string;
|
|
73
|
+
inputBorderRadius?: string;
|
|
74
|
+
inputBorderWidth?: string;
|
|
75
|
+
inputBorderWidthFocus?: string;
|
|
76
|
+
inputBorderStyle?: string;
|
|
77
|
+
inputBorderColor?: string;
|
|
78
|
+
inputBackgroundColor?: string;
|
|
79
|
+
inputHelperTextColor?: string;
|
|
80
|
+
inputHoverBackgroundColor?: string;
|
|
81
|
+
inputDisabledBackgroundColor?: string;
|
|
82
|
+
inputFontSize?: string;
|
|
83
|
+
dragBorderStyle?: string;
|
|
84
|
+
modalTitleColor?: string;
|
|
85
|
+
modalShadowColor?: string;
|
|
86
|
+
modalBackgroundColor?: string;
|
|
87
|
+
modalBackdropColor?: string;
|
|
88
|
+
modalContentFontSize?: string;
|
|
89
|
+
sideSheetShadowColorOne?: string;
|
|
90
|
+
sideSheetShadowColorTwo?: string;
|
|
91
|
+
skeletonBackgroundColor?: string;
|
|
92
|
+
skeletonAnimationColorRgb?: string;
|
|
93
|
+
alertFontSize?: string;
|
|
94
|
+
alertTextColor?: string;
|
|
95
|
+
alertTextInvertedColor?: string;
|
|
96
|
+
alertNeutralBackgroundColor?: string;
|
|
97
|
+
alertInfoBackgroundColor?: string;
|
|
98
|
+
alertSuccessBackgroundColor?: string;
|
|
99
|
+
alertErrorBackgroundColor?: string;
|
|
100
|
+
alertWarningBackgroundColor?: string;
|
|
101
|
+
alertNeutralInvertedColor?: string;
|
|
102
|
+
alertInfoInvertedColor?: string;
|
|
103
|
+
alertSuccessInvertedColor?: string;
|
|
104
|
+
alertErrorInvertedColor?: string;
|
|
105
|
+
alertWarningInvertedColor?: string;
|
|
106
|
+
alertBorderWidth?: string;
|
|
107
|
+
alertBorderRadius?: string;
|
|
108
|
+
stepperWaitingColor?: string;
|
|
109
|
+
stepperWaitingHoverColor?: string;
|
|
110
|
+
stepperWaitingActiveColor?: string;
|
|
111
|
+
stepperWaitingDisabledColor?: string;
|
|
112
|
+
stepperCurrentColor?: string;
|
|
113
|
+
stepperCurrentHoverColor?: string;
|
|
114
|
+
stepperCurrentActiveColor?: string;
|
|
115
|
+
stepperCurrentDisabledColor?: string;
|
|
116
|
+
stepperDoneColor?: string;
|
|
117
|
+
stepperDoneHoverColor?: string;
|
|
118
|
+
stepperDoneActiveColor?: string;
|
|
119
|
+
stepperDoneDisabledColor?: string;
|
|
120
|
+
stepperErrorColor?: string;
|
|
121
|
+
stepperErrorHoverColor?: string;
|
|
122
|
+
stepperErrorActiveColor?: string;
|
|
123
|
+
stepperErrorDisabledColor?: string;
|
|
124
|
+
stepperDefaultTextColor?: string;
|
|
125
|
+
stepperLineColor?: string;
|
|
126
|
+
stepperLineBoldColor?: string;
|
|
127
|
+
stepperLineDisabledColor?: string;
|
|
128
|
+
stepperLineBoldDisabledColor?: string;
|
|
129
|
+
stepperLabelColor?: string;
|
|
130
|
+
stepperCaptionColor?: string;
|
|
131
|
+
stepperCaptionErrorColor?: string;
|
|
132
|
+
stepperLabelDisabledColor?: string;
|
|
133
|
+
stepperCaptionDisabledColor?: string;
|
|
134
|
+
stepperCaptionErrorDisabledColor?: string;
|
|
135
|
+
bannerBorderRadius?: string;
|
|
136
|
+
bannerBorderWidth?: string;
|
|
137
|
+
dataGridRowBackgroundColor?: string;
|
|
138
|
+
dataGridRowHoverBackgroundColor?: string;
|
|
139
|
+
progressBarBackgroundColor?: string;
|
|
140
|
+
tabsBackgroundColor?: string;
|
|
141
|
+
tabActiveBorderHeight?: string;
|
|
142
|
+
tabActiveBorderColor?: string;
|
|
143
|
+
tabActiveTextColor?: string;
|
|
144
|
+
tablistBorderWidth?: string;
|
|
145
|
+
tablistBorderStyle?: string;
|
|
146
|
+
tablistBorderColor?: string;
|
|
147
|
+
tabTextColor?: string;
|
|
148
|
+
tabHoverColor?: string;
|
|
149
|
+
tabPressedColor?: string;
|
|
150
|
+
toggleBackgroundColor?: string;
|
|
151
|
+
tooltipBackgroundColor?: string;
|
|
152
|
+
contextMenuHoverColor?: string;
|
|
153
|
+
contextMenuActiveColor?: string;
|
|
154
|
+
contextMenuPressedColor?: string;
|
|
155
|
+
contextMenuFontSize?: string;
|
|
156
|
+
linkFontSize?: string;
|
|
157
|
+
linkPrimaryDefaultColor?: string;
|
|
158
|
+
linkPrimaryVisitedColor?: string;
|
|
159
|
+
linkSuccessDefaultColor?: string;
|
|
160
|
+
linkSuccessVisitedColor?: string;
|
|
161
|
+
linkDangerDefaultColor?: string;
|
|
162
|
+
linkDangerVisitedColor?: string;
|
|
163
|
+
linkWarningDefaultColor?: string;
|
|
164
|
+
linkWarningVisitedColor?: string;
|
|
165
|
+
leftNavItemActiveRibbonColor?: string;
|
|
166
|
+
leftNavItemActiveBackgroundColor?: string;
|
|
167
|
+
default?: string;
|
|
168
|
+
success?: string;
|
|
169
|
+
error?: string;
|
|
170
|
+
info?: string;
|
|
171
|
+
disabled?: string;
|
|
172
|
+
greyedOut?: string;
|
|
173
|
+
lightGreyBorder?: string;
|
|
174
|
+
warning?: string;
|
|
175
|
+
light?: string;
|
|
176
|
+
fontFamily?: string;
|
|
177
|
+
fontFamilyCode?: string;
|
|
178
|
+
fontSizeFormLabel?: string;
|
|
179
|
+
fontSize?: string;
|
|
180
|
+
fontColorBody?: string;
|
|
181
|
+
fontSizeH1?: string;
|
|
182
|
+
fontColorH1?: string;
|
|
183
|
+
fontSizeH2?: string;
|
|
184
|
+
fontColorH2?: string;
|
|
185
|
+
fontSizeH3?: string;
|
|
186
|
+
fontColorH3?: string;
|
|
187
|
+
fontSizeH4?: string;
|
|
188
|
+
fontColorH4?: string;
|
|
189
|
+
fontSizeSub?: string;
|
|
190
|
+
fontColorSub?: string;
|
|
191
|
+
fontSizeCode?: string;
|
|
192
|
+
fontColorCode?: string;
|
|
193
|
+
fontSizeSmall?: string;
|
|
194
|
+
fontSizeBig?: string;
|
|
195
|
+
formControlFontSize?: string;
|
|
196
|
+
fileUploadBorderWidth?: string;
|
|
197
|
+
dragDropBorderStyle?: string;
|
|
198
|
+
fontSizeDataGrid?: string;
|
|
199
|
+
readOnlyBorderColor?: string;
|
|
200
|
+
readOnlyTextColor?: string;
|
|
201
|
+
iconFontBig?: string;
|
|
202
|
+
tooltipIndex?: string;
|
|
203
|
+
}
|
|
204
|
+
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
205
|
+
children?: ReactElement[] | ReactElement | string[] | string | number[] | number;
|
|
206
|
+
properties?: CSSProperties;
|
|
207
|
+
}
|
|
208
|
+
export declare const BaseStyling: ({ children, properties }: Props) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type ButtonType = "primary" | "success" | "danger" | "warning" | "default";
|
|
2
|
+
type ButtonVariant = "fill" | "outline" | "text";
|
|
3
|
+
type ButtonState = "default" | "hover" | "focused" | "pressed";
|
|
4
|
+
type CapitalizeString<T extends string> = T extends `${infer First}${infer Rest}` ? `${Uppercase<First>}${Rest}` : T;
|
|
5
|
+
type Flattened<K extends string> = {
|
|
6
|
+
[Key in K]?: string;
|
|
7
|
+
};
|
|
8
|
+
type BaseButtonProps = Omit<Flattened<`button${CapitalizeString<ButtonType>}${CapitalizeString<ButtonState>}Color`>, "buttonDefaultDefaultColor"> & {
|
|
9
|
+
buttonDefaultColor?: string;
|
|
10
|
+
};
|
|
11
|
+
type VariantButtonProps = Flattened<`button${CapitalizeString<ButtonVariant>}${CapitalizeString<ButtonType>}${CapitalizeString<ButtonState>}Color`>;
|
|
12
|
+
export type ButtonColorProps = BaseButtonProps & VariantButtonProps;
|
|
13
|
+
export declare const defaultButtonColors: Required<ButtonColorProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { MenuItem } from './LeftNav.interfaces';
|
|
3
|
+
import { ScreenSize } from '../../../../variables';
|
|
4
|
+
export interface Props extends ComponentPropsWithRef<"nav"> {
|
|
5
|
+
isSideMenuOpen?: boolean;
|
|
6
|
+
onScreenSizeChange?: (nextScreenSize: ScreenSize, prevScreenSize?: ScreenSize) => void;
|
|
7
|
+
items: MenuItem[];
|
|
8
|
+
navigate: (path: string) => void;
|
|
9
|
+
onItemClick?: (path?: string, button?: boolean) => void;
|
|
10
|
+
marginTop?: string;
|
|
11
|
+
internalLinkPrefix?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const LeftNav: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface MenuItem {
|
|
3
|
+
key: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated it can be removed in next release
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
title: string;
|
|
11
|
+
iconComponent?: ReactElement;
|
|
12
|
+
items?: MenuItem[];
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, ForwardRefExoticComponent, HTMLProps } from 'react';
|
|
2
|
+
import { MenuItem } from '../LeftNav.interfaces';
|
|
3
|
+
import { UseRefItemsReturnType } from '../useRefItems';
|
|
4
|
+
import { LeftNavItemProps } from './LeftNavItem.interface';
|
|
5
|
+
export interface Props extends HTMLProps<HTMLElement> {
|
|
6
|
+
item: MenuItem;
|
|
7
|
+
navigate: (path: string) => void;
|
|
8
|
+
onItemClick?: (path?: string, button?: boolean) => void;
|
|
9
|
+
refItems: UseRefItemsReturnType;
|
|
10
|
+
NestedComponent: ForwardRefExoticComponent<LeftNavItemProps>;
|
|
11
|
+
closeParentList?: () => void;
|
|
12
|
+
internalLinkPrefix?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ButtonLeftNavItem: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
import { MenuItem } from '../LeftNav.interfaces';
|
|
3
|
+
import { UseRefItemsReturnType } from '../useRefItems';
|
|
4
|
+
export interface LeftNavItemProps extends HTMLProps<HTMLElement> {
|
|
5
|
+
item: MenuItem;
|
|
6
|
+
navigate: (path: string) => void;
|
|
7
|
+
onItemClick?: (path?: string, button?: boolean) => void;
|
|
8
|
+
refItems: UseRefItemsReturnType;
|
|
9
|
+
closeParentList?: () => void;
|
|
10
|
+
internalLinkPrefix?: string;
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, HTMLProps } from 'react';
|
|
2
|
+
import { MenuItem } from '../LeftNav.interfaces';
|
|
3
|
+
import { UseRefItemsReturnType } from '../useRefItems';
|
|
4
|
+
export interface Props extends HTMLProps<HTMLElement> {
|
|
5
|
+
item: MenuItem;
|
|
6
|
+
navigate: (path: string) => void;
|
|
7
|
+
onItemClick?: (path?: string, button?: boolean) => void;
|
|
8
|
+
refItems: UseRefItemsReturnType;
|
|
9
|
+
closeParentList?: () => void;
|
|
10
|
+
internalLinkPrefix?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const LinkLeftNavItem: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
2
|
+
import { MenuItem } from '../LeftNav.interfaces';
|
|
3
|
+
import { UseRefItemsReturnType } from '../useRefItems';
|
|
4
|
+
interface Props {
|
|
5
|
+
item: MenuItem;
|
|
6
|
+
refItems: UseRefItemsReturnType;
|
|
7
|
+
closeParentList?: () => void;
|
|
8
|
+
onExpandIconClickHandler?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useKeyboardNavigation: ({ refItems, item, closeParentList, onExpandIconClickHandler }: Props) => {
|
|
11
|
+
onKeyPressNavigation: (e: KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MenuItem } from './LeftNav.interfaces';
|
|
2
|
+
interface Props {
|
|
3
|
+
items: MenuItem[];
|
|
4
|
+
}
|
|
5
|
+
interface LinkedMapValue {
|
|
6
|
+
item: MenuItem;
|
|
7
|
+
level: number;
|
|
8
|
+
prev?: MenuItem;
|
|
9
|
+
next?: MenuItem;
|
|
10
|
+
}
|
|
11
|
+
export type UseRefItemsReturnType = ReturnType<typeof useRefItems>;
|
|
12
|
+
export declare const useRefItems: ({ items }: Props) => {
|
|
13
|
+
addElementReference: (el: HTMLElement | null, key: string) => void;
|
|
14
|
+
getNextElement: (currentKey: string, whenHavingChildren?: boolean) => HTMLElement | undefined;
|
|
15
|
+
getNextElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
|
|
16
|
+
getPrevElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
|
|
17
|
+
getFirstElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
|
|
18
|
+
getLastElementOnSameLevel: (currentKey: string) => HTMLElement | undefined;
|
|
19
|
+
getParentElement: (currentKey: string) => HTMLElement | undefined;
|
|
20
|
+
getItemMap: () => Record<string, LinkedMapValue>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
header?: ReactElement | ReactElement[];
|
|
4
|
+
children: ReactElement | ReactElement[];
|
|
5
|
+
contentMargins?: boolean;
|
|
6
|
+
contentMaxWidth?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const MicrofrontendContainer: ({ header, children, contentMargins, contentMaxWidth, ...rest }: Props) => React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
|
|
2
|
+
export interface SupportedCustomizationKeys {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
focusBorderColor: string;
|
|
5
|
+
focusBackgroundColor: string;
|
|
6
|
+
hoverBackgroundColor: string;
|
|
7
|
+
pressedBackgroundColor: string;
|
|
8
|
+
textColor: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Props extends Omit<ComponentPropsWithRef<"button">, "color"> {
|
|
12
|
+
iconUrl?: string;
|
|
13
|
+
imgAltText?: string;
|
|
14
|
+
idpType: string;
|
|
15
|
+
customization?: SupportedCustomizationKeys;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement, Props>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, ComponentType } from 'react';
|
|
2
|
+
export interface WithReadOnlyProps {
|
|
3
|
+
readOnlyView?: boolean;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
}
|
|
8
|
+
type WithReadOnlyOptions = {
|
|
9
|
+
isWrapperComponent: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const withReadOnly: <P extends object>(WrappedComponent: ComponentType<P>, options?: WithReadOnlyOptions) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & WithReadOnlyProps>> & React.RefAttributes<unknown>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebouncedCallback: (callback: Function, delay: number, dependencies?: any[]) => (...args: any[]) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ConfigObject {
|
|
2
|
+
name: string | undefined;
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
parentErrorId?: string;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
parentHelperId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useFormSelector: (configObject: ConfigObject) => {
|
|
10
|
+
describedBy: string;
|
|
11
|
+
errorId: string;
|
|
12
|
+
identifier: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ConfigObject {
|
|
3
|
+
relativeElement: RefElement;
|
|
4
|
+
elementToBePositioned: RefElement;
|
|
5
|
+
transformOrigin?: Placement;
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
offset?: Offset;
|
|
8
|
+
debounceAmount?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare enum horizontal {
|
|
11
|
+
LEFT = "left",
|
|
12
|
+
CENTER = "center",
|
|
13
|
+
CENTER_H = "centerh",
|
|
14
|
+
RIGHT = "right"
|
|
15
|
+
}
|
|
16
|
+
export declare enum vertical {
|
|
17
|
+
TOP = "top",
|
|
18
|
+
CENTER = "center",
|
|
19
|
+
CENTER_V = "centerv",
|
|
20
|
+
BOTTOM = "bottom"
|
|
21
|
+
}
|
|
22
|
+
export type HorizontalPlacement = `${horizontal}`;
|
|
23
|
+
export type VerticalPlacement = `${vertical}`;
|
|
24
|
+
type RefElement = React.RefObject<HTMLOrSVGElement> | undefined;
|
|
25
|
+
export interface Placement {
|
|
26
|
+
horizontal: HorizontalPlacement;
|
|
27
|
+
vertical: VerticalPlacement;
|
|
28
|
+
}
|
|
29
|
+
export interface Offset {
|
|
30
|
+
top: number;
|
|
31
|
+
right: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
left: number;
|
|
34
|
+
}
|
|
35
|
+
export interface Position {
|
|
36
|
+
top: PositionType;
|
|
37
|
+
right: PositionType;
|
|
38
|
+
bottom: PositionType;
|
|
39
|
+
left: PositionType;
|
|
40
|
+
}
|
|
41
|
+
export type PositionType = number | "initial";
|
|
42
|
+
export declare const usePosition: (providedConfigObject?: ConfigObject) => {
|
|
43
|
+
top: PositionType;
|
|
44
|
+
bottom: PositionType;
|
|
45
|
+
left: PositionType;
|
|
46
|
+
right: PositionType;
|
|
47
|
+
calculatePosition: (...args: any[]) => void;
|
|
48
|
+
initialCalculationDone: boolean;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @description This is a hook that will make sure that when a modal is open and the user tabs through the it,
|
|
4
|
+
* the focus will be repeated and the user will not lose their entire focusable element to an element in the background
|
|
5
|
+
* that is being blocked by the modal.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useRepeatFocus: (ref: RefObject<HTMLDivElement>) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, JSX } from 'react';
|
|
2
|
+
interface Arguments {
|
|
3
|
+
componentToRepeat: React.ReactElement;
|
|
4
|
+
}
|
|
5
|
+
export declare const useRepeater: <T>({ componentToRepeat }: Arguments) => {
|
|
6
|
+
repeatedComponents: JSX.Element[];
|
|
7
|
+
repeat: () => void;
|
|
8
|
+
remove: (componentToRemove: React.ReactElement<T>) => void;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScreenSize } from '../variables';
|
|
2
|
+
interface Props {
|
|
3
|
+
onScreenSizeChange?: (nextScreenSize: ScreenSize, prevScreenSize?: ScreenSize) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const useScreenSize: ({ onScreenSizeChange }?: Props) => {
|
|
6
|
+
screenSize: ScreenSize;
|
|
7
|
+
isDesktopScreenSize: () => boolean;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type SpacingMultiplier = 0 | 0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
3
|
+
type SpacingMultiplierStringOrNumber = `${SpacingMultiplier}` | SpacingMultiplier;
|
|
4
|
+
type MultiValueSpacingMultiplier = `${SpacingMultiplier} ${SpacingMultiplier} ${SpacingMultiplier} ${SpacingMultiplier}` | `${SpacingMultiplier} ${SpacingMultiplier} ${SpacingMultiplier}` | `${SpacingMultiplier} ${SpacingMultiplier}` | SpacingMultiplierStringOrNumber;
|
|
5
|
+
export interface Spacing {
|
|
6
|
+
padding?: MultiValueSpacingMultiplier;
|
|
7
|
+
paddingTop?: SpacingMultiplierStringOrNumber;
|
|
8
|
+
paddingBottom?: SpacingMultiplierStringOrNumber;
|
|
9
|
+
paddingLeft?: SpacingMultiplierStringOrNumber;
|
|
10
|
+
paddingRight?: SpacingMultiplierStringOrNumber;
|
|
11
|
+
margin?: MultiValueSpacingMultiplier;
|
|
12
|
+
marginTop?: SpacingMultiplierStringOrNumber;
|
|
13
|
+
marginBottom?: SpacingMultiplierStringOrNumber;
|
|
14
|
+
marginLeft?: SpacingMultiplierStringOrNumber;
|
|
15
|
+
marginRight?: SpacingMultiplierStringOrNumber;
|
|
16
|
+
}
|
|
17
|
+
export declare const useSpacing: (spacingProps?: Spacing, style?: CSSProperties) => CSSProperties | undefined;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FileType } from '../components/Form/FileUpload/FileUpload';
|
|
2
|
+
export type UploadResponseStatus = XMLHttpRequest["status"];
|
|
3
|
+
export type UploadResponseJson = Record<string, unknown>;
|
|
4
|
+
export interface UploadResponseType {
|
|
5
|
+
fileList: FileType[];
|
|
6
|
+
status: UploadResponseStatus;
|
|
7
|
+
responseJson: UploadResponseJson;
|
|
8
|
+
}
|
|
9
|
+
export interface OnErrorMessageMapperType {
|
|
10
|
+
responseStatus: UploadResponseStatus;
|
|
11
|
+
responseJson: UploadResponseJson;
|
|
12
|
+
}
|
|
13
|
+
export interface UseUploadFileCallback {
|
|
14
|
+
onComplete?: (response: UploadResponseType) => void;
|
|
15
|
+
onProgress?: (fileName: string, progress: number) => void;
|
|
16
|
+
onErrorMessageMapper?: (args: OnErrorMessageMapperType) => string | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface UploadFileRequestParams {
|
|
19
|
+
url: string;
|
|
20
|
+
headers?: Headers;
|
|
21
|
+
withCredentials?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const useUploadFile: (files: FileType[], request: UploadFileRequestParams, callbacks?: UseUploadFileCallback) => {
|
|
24
|
+
updatedFiles: FileType[];
|
|
25
|
+
setUpdatedFiles: import('react').Dispatch<import('react').SetStateAction<FileType[]>>;
|
|
26
|
+
uploadingFiles: FileType[];
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|