@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,455 @@
|
|
|
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
|
+
@font-face {
|
|
18
|
+
font-family: "icomoon";
|
|
19
|
+
src: url("../../font/icomoon.eot?66dkqw");
|
|
20
|
+
src:
|
|
21
|
+
url("../../font/icomoon.eot?66dkqw#iefix") format("embedded-opentype"),
|
|
22
|
+
url("../../font/icomoon.ttf?66dkqw") format("truetype"),
|
|
23
|
+
url("../../font/icomoon.woff?66dkqw") format("woff");
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-display: block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin fontProperties() {
|
|
30
|
+
font-family: "icomoon", sans-serif !important;
|
|
31
|
+
speak: never;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
font-variant: normal;
|
|
35
|
+
text-transform: none;
|
|
36
|
+
line-height: 1;
|
|
37
|
+
|
|
38
|
+
/* Better Font Rendering =========== */
|
|
39
|
+
-webkit-font-smoothing: antialiased;
|
|
40
|
+
-moz-osx-font-smoothing: grayscale;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.icon {
|
|
44
|
+
line-height: 0;
|
|
45
|
+
font-size: var(--button-font-size);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.icon-save-outline:before {
|
|
49
|
+
content: "\e947";
|
|
50
|
+
@include fontProperties();
|
|
51
|
+
}
|
|
52
|
+
.icon-reply-outline:before {
|
|
53
|
+
content: "\e946";
|
|
54
|
+
@include fontProperties();
|
|
55
|
+
}
|
|
56
|
+
.icon-upload-outline:before {
|
|
57
|
+
content: "\e945";
|
|
58
|
+
@include fontProperties();
|
|
59
|
+
}
|
|
60
|
+
.icon-home-filled:before {
|
|
61
|
+
content: "\e940";
|
|
62
|
+
@include fontProperties();
|
|
63
|
+
}
|
|
64
|
+
.icon-file-outline:before {
|
|
65
|
+
content: "\e941";
|
|
66
|
+
@include fontProperties();
|
|
67
|
+
}
|
|
68
|
+
.icon-file-upload-outline:before {
|
|
69
|
+
content: "\e942";
|
|
70
|
+
@include fontProperties();
|
|
71
|
+
}
|
|
72
|
+
.icon-file-download-outline:before {
|
|
73
|
+
content: "\e943";
|
|
74
|
+
@include fontProperties();
|
|
75
|
+
}
|
|
76
|
+
.icon-image:before {
|
|
77
|
+
content: "\e900";
|
|
78
|
+
@include fontProperties();
|
|
79
|
+
}
|
|
80
|
+
.icon-bookmark:before {
|
|
81
|
+
content: "\e901";
|
|
82
|
+
@include fontProperties();
|
|
83
|
+
}
|
|
84
|
+
.icon-bookmark-alt:before {
|
|
85
|
+
content: "\e902";
|
|
86
|
+
@include fontProperties();
|
|
87
|
+
}
|
|
88
|
+
.icon-equal:before {
|
|
89
|
+
content: "\e903";
|
|
90
|
+
@include fontProperties();
|
|
91
|
+
}
|
|
92
|
+
.icon-build:before {
|
|
93
|
+
content: "\e904";
|
|
94
|
+
@include fontProperties();
|
|
95
|
+
}
|
|
96
|
+
.icon-refresh:before {
|
|
97
|
+
content: "\e905";
|
|
98
|
+
@include fontProperties();
|
|
99
|
+
}
|
|
100
|
+
.icon-calendar:before {
|
|
101
|
+
content: "\e906";
|
|
102
|
+
@include fontProperties();
|
|
103
|
+
}
|
|
104
|
+
.icon-checkmark-circle:before {
|
|
105
|
+
content: "\e907";
|
|
106
|
+
@include fontProperties();
|
|
107
|
+
}
|
|
108
|
+
.icon-checkmark-circle-alt:before {
|
|
109
|
+
content: "\e908";
|
|
110
|
+
@include fontProperties();
|
|
111
|
+
}
|
|
112
|
+
.icon-clock:before {
|
|
113
|
+
content: "\e909";
|
|
114
|
+
@include fontProperties();
|
|
115
|
+
}
|
|
116
|
+
.icon-trash:before {
|
|
117
|
+
content: "\e90a";
|
|
118
|
+
@include fontProperties();
|
|
119
|
+
}
|
|
120
|
+
.icon-heart:before {
|
|
121
|
+
content: "\e90b";
|
|
122
|
+
@include fontProperties();
|
|
123
|
+
}
|
|
124
|
+
.icon-search:before {
|
|
125
|
+
content: "\e90c";
|
|
126
|
+
@include fontProperties();
|
|
127
|
+
}
|
|
128
|
+
.icon-gearwheel:before {
|
|
129
|
+
content: "\e90d";
|
|
130
|
+
@include fontProperties();
|
|
131
|
+
}
|
|
132
|
+
.icon-star:before {
|
|
133
|
+
content: "\e90e";
|
|
134
|
+
@include fontProperties();
|
|
135
|
+
}
|
|
136
|
+
.icon-star-alt:before {
|
|
137
|
+
content: "\e90f";
|
|
138
|
+
@include fontProperties();
|
|
139
|
+
}
|
|
140
|
+
.icon-undo:before {
|
|
141
|
+
content: "\e910";
|
|
142
|
+
@include fontProperties();
|
|
143
|
+
}
|
|
144
|
+
.icon-eye:before {
|
|
145
|
+
content: "\e911";
|
|
146
|
+
@include fontProperties();
|
|
147
|
+
}
|
|
148
|
+
.icon-times-circle-alt:before {
|
|
149
|
+
content: "\e912";
|
|
150
|
+
@include fontProperties();
|
|
151
|
+
}
|
|
152
|
+
.icon-info-circle:before {
|
|
153
|
+
content: "\e913";
|
|
154
|
+
@include fontProperties();
|
|
155
|
+
}
|
|
156
|
+
.icon-info-bell:before {
|
|
157
|
+
content: "\e914";
|
|
158
|
+
@include fontProperties();
|
|
159
|
+
}
|
|
160
|
+
.icon-checkmark-circle-breakout:before {
|
|
161
|
+
content: "\e915";
|
|
162
|
+
@include fontProperties();
|
|
163
|
+
}
|
|
164
|
+
.icon-warning:before {
|
|
165
|
+
content: "\e916";
|
|
166
|
+
@include fontProperties();
|
|
167
|
+
}
|
|
168
|
+
.icon-plus:before {
|
|
169
|
+
content: "\e917";
|
|
170
|
+
@include fontProperties();
|
|
171
|
+
}
|
|
172
|
+
.icon-copy:before {
|
|
173
|
+
content: "\e918";
|
|
174
|
+
@include fontProperties();
|
|
175
|
+
}
|
|
176
|
+
.icon-edit:before {
|
|
177
|
+
content: "\e919";
|
|
178
|
+
@include fontProperties();
|
|
179
|
+
}
|
|
180
|
+
.icon-filter:before {
|
|
181
|
+
content: "\e91a";
|
|
182
|
+
@include fontProperties();
|
|
183
|
+
}
|
|
184
|
+
.icon-link:before {
|
|
185
|
+
content: "\e91b";
|
|
186
|
+
@include fontProperties();
|
|
187
|
+
}
|
|
188
|
+
.icon-change:before {
|
|
189
|
+
content: "\e91c";
|
|
190
|
+
@include fontProperties();
|
|
191
|
+
}
|
|
192
|
+
.icon-filter-alt-arrow:before {
|
|
193
|
+
content: "\e91d";
|
|
194
|
+
@include fontProperties();
|
|
195
|
+
}
|
|
196
|
+
.icon-filter-alt:before {
|
|
197
|
+
content: "\e91e";
|
|
198
|
+
@include fontProperties();
|
|
199
|
+
}
|
|
200
|
+
.icon-filter-alt-times:before {
|
|
201
|
+
content: "\e91f";
|
|
202
|
+
@include fontProperties();
|
|
203
|
+
}
|
|
204
|
+
.icon-grid:before {
|
|
205
|
+
content: "\e920";
|
|
206
|
+
@include fontProperties();
|
|
207
|
+
}
|
|
208
|
+
.icon-triangle-down:before {
|
|
209
|
+
content: "\e921";
|
|
210
|
+
@include fontProperties();
|
|
211
|
+
}
|
|
212
|
+
.icon-triangle-down-circle:before {
|
|
213
|
+
content: "\e922";
|
|
214
|
+
@include fontProperties();
|
|
215
|
+
}
|
|
216
|
+
.icon-triangle-up:before {
|
|
217
|
+
content: "\e923";
|
|
218
|
+
@include fontProperties();
|
|
219
|
+
}
|
|
220
|
+
.icon-triangle-right:before {
|
|
221
|
+
content: "\e924";
|
|
222
|
+
@include fontProperties();
|
|
223
|
+
}
|
|
224
|
+
.icon-chevron-left:before {
|
|
225
|
+
content: "\e925";
|
|
226
|
+
@include fontProperties();
|
|
227
|
+
}
|
|
228
|
+
.icon-chevron-right:before {
|
|
229
|
+
content: "\e926";
|
|
230
|
+
@include fontProperties();
|
|
231
|
+
}
|
|
232
|
+
.icon-times:before {
|
|
233
|
+
content: "\e927";
|
|
234
|
+
@include fontProperties();
|
|
235
|
+
}
|
|
236
|
+
.icon-times-circle:before {
|
|
237
|
+
content: "\e928";
|
|
238
|
+
@include fontProperties();
|
|
239
|
+
}
|
|
240
|
+
.icon-times-thin:before {
|
|
241
|
+
content: "\e929";
|
|
242
|
+
@include fontProperties();
|
|
243
|
+
}
|
|
244
|
+
.icon-chevron-up:before {
|
|
245
|
+
content: "\e92a";
|
|
246
|
+
@include fontProperties();
|
|
247
|
+
}
|
|
248
|
+
.icon-chevron-down:before {
|
|
249
|
+
content: "\e92b";
|
|
250
|
+
@include fontProperties();
|
|
251
|
+
}
|
|
252
|
+
.icon-navigation-first:before {
|
|
253
|
+
content: "\e92c";
|
|
254
|
+
@include fontProperties();
|
|
255
|
+
}
|
|
256
|
+
.icon-fullscreen:before {
|
|
257
|
+
content: "\e92d";
|
|
258
|
+
@include fontProperties();
|
|
259
|
+
}
|
|
260
|
+
.icon-fullscreen-exit:before {
|
|
261
|
+
content: "\e92e";
|
|
262
|
+
@include fontProperties();
|
|
263
|
+
}
|
|
264
|
+
.icon-navigation-last:before {
|
|
265
|
+
content: "\e92f";
|
|
266
|
+
@include fontProperties();
|
|
267
|
+
}
|
|
268
|
+
.icon-hamburger:before {
|
|
269
|
+
content: "\e930";
|
|
270
|
+
@include fontProperties();
|
|
271
|
+
}
|
|
272
|
+
.icon-ellipsis:before {
|
|
273
|
+
content: "\e931";
|
|
274
|
+
@include fontProperties();
|
|
275
|
+
}
|
|
276
|
+
.icon-triangle-left:before {
|
|
277
|
+
content: "\e932";
|
|
278
|
+
@include fontProperties();
|
|
279
|
+
}
|
|
280
|
+
.icon-ellipsis-alt:before {
|
|
281
|
+
content: "\e933";
|
|
282
|
+
@include fontProperties();
|
|
283
|
+
}
|
|
284
|
+
.icon-bell:before {
|
|
285
|
+
content: "\e934";
|
|
286
|
+
@include fontProperties();
|
|
287
|
+
}
|
|
288
|
+
.icon-bell-alt:before {
|
|
289
|
+
content: "\e935";
|
|
290
|
+
@include fontProperties();
|
|
291
|
+
}
|
|
292
|
+
.icon-share:before {
|
|
293
|
+
content: "\e936";
|
|
294
|
+
@include fontProperties();
|
|
295
|
+
}
|
|
296
|
+
.icon-forbidden:before {
|
|
297
|
+
content: "\e937";
|
|
298
|
+
@include fontProperties();
|
|
299
|
+
}
|
|
300
|
+
.icon-checkmark:before {
|
|
301
|
+
content: "\e938";
|
|
302
|
+
@include fontProperties();
|
|
303
|
+
}
|
|
304
|
+
.icon-checkmark-square:before {
|
|
305
|
+
content: "\e939";
|
|
306
|
+
@include fontProperties();
|
|
307
|
+
}
|
|
308
|
+
.icon-square:before {
|
|
309
|
+
content: "\e93a";
|
|
310
|
+
@include fontProperties();
|
|
311
|
+
}
|
|
312
|
+
.icon-minus-square:before {
|
|
313
|
+
content: "\e93b";
|
|
314
|
+
@include fontProperties();
|
|
315
|
+
}
|
|
316
|
+
.icon-radio:before {
|
|
317
|
+
content: "\e93c";
|
|
318
|
+
@include fontProperties();
|
|
319
|
+
}
|
|
320
|
+
.icon-error-circle-alt:before {
|
|
321
|
+
content: "\e93d";
|
|
322
|
+
@include fontProperties();
|
|
323
|
+
}
|
|
324
|
+
.icon-circle:before {
|
|
325
|
+
content: "\e93e";
|
|
326
|
+
@include fontProperties();
|
|
327
|
+
}
|
|
328
|
+
.icon-table-search:before {
|
|
329
|
+
content: "\e93f";
|
|
330
|
+
@include fontProperties();
|
|
331
|
+
}
|
|
332
|
+
.icon-error-circle:before {
|
|
333
|
+
content: "\e944";
|
|
334
|
+
@include fontProperties();
|
|
335
|
+
}
|
|
336
|
+
.icon-eye-blocked:before {
|
|
337
|
+
content: "\e9d1";
|
|
338
|
+
@include fontProperties();
|
|
339
|
+
}
|
|
340
|
+
.icon-warning-filled:before {
|
|
341
|
+
content: "\e948";
|
|
342
|
+
@include fontProperties();
|
|
343
|
+
}
|
|
344
|
+
.icon-download-file-outline:before {
|
|
345
|
+
content: "\e945";
|
|
346
|
+
@include fontProperties();
|
|
347
|
+
}
|
|
348
|
+
.icon-retry:before {
|
|
349
|
+
content: "\e949";
|
|
350
|
+
@include fontProperties();
|
|
351
|
+
}
|
|
352
|
+
.icon-cancel:before {
|
|
353
|
+
content: "\e94a";
|
|
354
|
+
@include fontProperties();
|
|
355
|
+
}
|
|
356
|
+
.icon-file-alt:before {
|
|
357
|
+
content: "\e94b";
|
|
358
|
+
@include fontProperties();
|
|
359
|
+
}
|
|
360
|
+
.icon-add-circle:before {
|
|
361
|
+
content: "\e94c";
|
|
362
|
+
@include fontProperties();
|
|
363
|
+
}
|
|
364
|
+
.icon-zoom-in:before {
|
|
365
|
+
content: "\e94e";
|
|
366
|
+
@include fontProperties();
|
|
367
|
+
}
|
|
368
|
+
.icon-zoom-out:before {
|
|
369
|
+
content: "\e94d";
|
|
370
|
+
@include fontProperties();
|
|
371
|
+
}
|
|
372
|
+
.icon-arrow-up:before {
|
|
373
|
+
content: "\e94f";
|
|
374
|
+
@include fontProperties();
|
|
375
|
+
}
|
|
376
|
+
.icon-arrow-left:before {
|
|
377
|
+
content: "\e954";
|
|
378
|
+
@include fontProperties();
|
|
379
|
+
}
|
|
380
|
+
.icon-external-link:before {
|
|
381
|
+
content: "\e950";
|
|
382
|
+
@include fontProperties();
|
|
383
|
+
}
|
|
384
|
+
.icon-sidesheet-handle:before {
|
|
385
|
+
content: "\e951";
|
|
386
|
+
@include fontProperties();
|
|
387
|
+
}
|
|
388
|
+
.icon-pending-circle:before {
|
|
389
|
+
content: "\e952";
|
|
390
|
+
@include fontProperties();
|
|
391
|
+
}
|
|
392
|
+
.icon-minus-circle:before {
|
|
393
|
+
content: "\e953";
|
|
394
|
+
@include fontProperties();
|
|
395
|
+
}
|
|
396
|
+
.icon-arrow-right:before {
|
|
397
|
+
content: "\e95a";
|
|
398
|
+
@include fontProperties();
|
|
399
|
+
}
|
|
400
|
+
.icon-perm-identity:before {
|
|
401
|
+
content: "\e955";
|
|
402
|
+
@include fontProperties();
|
|
403
|
+
}
|
|
404
|
+
.icon-cable:before {
|
|
405
|
+
content: "\e956";
|
|
406
|
+
@include fontProperties();
|
|
407
|
+
}
|
|
408
|
+
.icon-dashboard:before {
|
|
409
|
+
content: "\e957";
|
|
410
|
+
@include fontProperties();
|
|
411
|
+
}
|
|
412
|
+
.icon-fido-device:before {
|
|
413
|
+
content: "\e958";
|
|
414
|
+
@include fontProperties();
|
|
415
|
+
}
|
|
416
|
+
.icon-security:before {
|
|
417
|
+
content: "\e959";
|
|
418
|
+
@include fontProperties();
|
|
419
|
+
}
|
|
420
|
+
.icon-switch:before {
|
|
421
|
+
content: "\e95b";
|
|
422
|
+
@include fontProperties();
|
|
423
|
+
}
|
|
424
|
+
.icon-group:before {
|
|
425
|
+
content: "\e95c";
|
|
426
|
+
@include fontProperties();
|
|
427
|
+
}
|
|
428
|
+
.icon-devices:before {
|
|
429
|
+
content: "\e95d";
|
|
430
|
+
@include fontProperties();
|
|
431
|
+
}
|
|
432
|
+
.icon-download-circle:before {
|
|
433
|
+
content: "\e95e";
|
|
434
|
+
@include fontProperties();
|
|
435
|
+
}
|
|
436
|
+
.icon-key:before {
|
|
437
|
+
content: "\e95f";
|
|
438
|
+
@include fontProperties();
|
|
439
|
+
}
|
|
440
|
+
.icon-password:before {
|
|
441
|
+
content: "\e960";
|
|
442
|
+
@include fontProperties();
|
|
443
|
+
}
|
|
444
|
+
.icon-phone:before {
|
|
445
|
+
content: "\e961";
|
|
446
|
+
@include fontProperties();
|
|
447
|
+
}
|
|
448
|
+
.icon-envelope:before {
|
|
449
|
+
content: "\e962";
|
|
450
|
+
@include fontProperties();
|
|
451
|
+
}
|
|
452
|
+
.icon-badge:before {
|
|
453
|
+
content: "\e963";
|
|
454
|
+
@include fontProperties();
|
|
455
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 } from "react";
|
|
18
|
+
import classes from "./Icon.module.scss";
|
|
19
|
+
|
|
20
|
+
export enum Icons {
|
|
21
|
+
Bell = "bell",
|
|
22
|
+
BellAlt = "bell-alt",
|
|
23
|
+
Bookmark = "bookmark",
|
|
24
|
+
BookmarkAlt = "bookmark-alt",
|
|
25
|
+
Build = "build",
|
|
26
|
+
Calendar = "calendar",
|
|
27
|
+
Change = "change",
|
|
28
|
+
Checkmark = "checkmark",
|
|
29
|
+
CheckmarkCircle = "checkmark-circle",
|
|
30
|
+
CheckmarkCircleAlt = "checkmark-circle-alt",
|
|
31
|
+
CheckmarkCircleBreakout = "checkmark-circle-breakout",
|
|
32
|
+
CheckmarkSquare = "checkmark-square",
|
|
33
|
+
ChevronUp = "chevron-up",
|
|
34
|
+
ChevronDown = "chevron-down",
|
|
35
|
+
ChevronLeft = "chevron-left",
|
|
36
|
+
ChevronRight = "chevron-right",
|
|
37
|
+
Circle = "circle",
|
|
38
|
+
Clock = "clock",
|
|
39
|
+
Copy = "copy",
|
|
40
|
+
Edit = "edit",
|
|
41
|
+
Ellipsis = "ellipsis",
|
|
42
|
+
EllipsisAlt = "ellipsis-alt",
|
|
43
|
+
Equal = "equal",
|
|
44
|
+
Error = "error-circle",
|
|
45
|
+
ErrorAlt = "error-circle-alt",
|
|
46
|
+
Eye = "eye",
|
|
47
|
+
EyeBlocked = "eye-blocked",
|
|
48
|
+
Filter = "filter",
|
|
49
|
+
FilterAlt = "filter-alt",
|
|
50
|
+
FilterAltArrow = "filter-alt-arrow",
|
|
51
|
+
FilterAltTimes = "filter-alt-times",
|
|
52
|
+
Forbidden = "forbidden",
|
|
53
|
+
Fullscreen = "fullscreen",
|
|
54
|
+
FullscreenExit = "fullscreen-exit",
|
|
55
|
+
Gearwheel = "gearwheel",
|
|
56
|
+
Grid = "grid",
|
|
57
|
+
Hamburger = "hamburger",
|
|
58
|
+
HomeFilled = "home-filled",
|
|
59
|
+
Heart = "heart",
|
|
60
|
+
Image = "image",
|
|
61
|
+
InfoBell = "info-bell",
|
|
62
|
+
InfoCircle = "info-circle",
|
|
63
|
+
Link = "link",
|
|
64
|
+
MinusSquare = "minus-square",
|
|
65
|
+
NavigationFirst = "navigation-first",
|
|
66
|
+
NavigationLast = "navigation-last",
|
|
67
|
+
Plus = "plus",
|
|
68
|
+
Radio = "radio",
|
|
69
|
+
Refresh = "refresh",
|
|
70
|
+
Search = "search",
|
|
71
|
+
Share = "share",
|
|
72
|
+
Square = "square",
|
|
73
|
+
Star = "star",
|
|
74
|
+
StarAlt = "star-alt",
|
|
75
|
+
TableSearch = "table-search",
|
|
76
|
+
Times = "times",
|
|
77
|
+
TimesCircle = "times-circle",
|
|
78
|
+
TimesCircleAlt = "times-circle-alt",
|
|
79
|
+
TimesThin = "times-thin",
|
|
80
|
+
Trash = "trash",
|
|
81
|
+
TriangleDown = "triangle-down",
|
|
82
|
+
TriangleDownCircle = "triangle-down-circle",
|
|
83
|
+
TriangleLeft = "triangle-left",
|
|
84
|
+
TriangleRight = "triangle-right",
|
|
85
|
+
TriangleUp = "triangle-up",
|
|
86
|
+
Undo = "undo",
|
|
87
|
+
Warning = "warning",
|
|
88
|
+
WarningFilled = "warning-filled",
|
|
89
|
+
FileOutline = "file-outline",
|
|
90
|
+
FileUpload = "file-upload-outline",
|
|
91
|
+
FileDownload = "file-download-outline",
|
|
92
|
+
UploadOutline = "upload-outline",
|
|
93
|
+
ReplyOutline = "reply-outline",
|
|
94
|
+
SaveOutline = "save-outline",
|
|
95
|
+
DownloadFile = "download-file-outline",
|
|
96
|
+
RetryFile = "retry",
|
|
97
|
+
AbortFile = "cancel",
|
|
98
|
+
FileAltIcon = "file-alt",
|
|
99
|
+
AddCircle = "add-circle",
|
|
100
|
+
ZoomIn = "zoom-in",
|
|
101
|
+
ZoomOut = "zoom-out",
|
|
102
|
+
ArrowUp = "arrow-up",
|
|
103
|
+
ArrowLeft = "arrow-left",
|
|
104
|
+
ExternalLink = "external-link",
|
|
105
|
+
SideSheetHandle = "sidesheet-handle",
|
|
106
|
+
PendingCircle = "pending-circle",
|
|
107
|
+
MinusCircle = "minus-circle",
|
|
108
|
+
ArrowRight = "arrow-right",
|
|
109
|
+
PermIdentity = "perm-identity",
|
|
110
|
+
Cable = "cable",
|
|
111
|
+
Dashboard = "dashboard",
|
|
112
|
+
FidoDevice = "fido-device",
|
|
113
|
+
Security = "security",
|
|
114
|
+
Switch = "switch",
|
|
115
|
+
Group = "group",
|
|
116
|
+
Devices = "devices",
|
|
117
|
+
DownloadCircle = "download-circle",
|
|
118
|
+
Key = "key",
|
|
119
|
+
Password = "password",
|
|
120
|
+
Phone = "phone",
|
|
121
|
+
Envelope = "envelope",
|
|
122
|
+
Badge = "badge"
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
type Tag = "span" | "div" | "i";
|
|
126
|
+
|
|
127
|
+
export interface Props extends ComponentPropsWithRef<"div"> {
|
|
128
|
+
icon: Icons;
|
|
129
|
+
color?: string;
|
|
130
|
+
size?: string;
|
|
131
|
+
tag?: Tag;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const IconComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
135
|
+
{ icon, color, className, style, size, tag = "span", ...rest }: Props,
|
|
136
|
+
ref
|
|
137
|
+
) => {
|
|
138
|
+
const Component = tag;
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
<Component
|
|
142
|
+
{...rest}
|
|
143
|
+
ref={ref}
|
|
144
|
+
style={{ color: color, ...style, fontSize: size }}
|
|
145
|
+
data-icon
|
|
146
|
+
aria-hidden="true"
|
|
147
|
+
className={`${classes["icon"]} ${classes["icon-" + icon]} ${className ? className : ""}`}
|
|
148
|
+
/>
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export const Icon = React.forwardRef(IconComponent);
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Checkbox, CheckboxProps } from "../../..";
|
|
19
|
+
import { InlineEditingProvider } from "../InlineEditingContext";
|
|
20
|
+
|
|
21
|
+
export interface InlineCheckboxProps extends CheckboxProps {
|
|
22
|
+
tooltipText?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const InlineCheckbox = (props: InlineCheckboxProps) => {
|
|
26
|
+
const { error, success, tooltipText, required, ...rest } = props;
|
|
27
|
+
const inlineEditingValues = {
|
|
28
|
+
enabled: true,
|
|
29
|
+
error: error,
|
|
30
|
+
success: success,
|
|
31
|
+
required: required,
|
|
32
|
+
tooltipText: tooltipText
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<InlineEditingProvider value={inlineEditingValues}>
|
|
37
|
+
<Checkbox {...rest} />
|
|
38
|
+
</InlineEditingProvider>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
@@ -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
|
+
import { createContext, useContext } from "react";
|
|
18
|
+
|
|
19
|
+
export interface InlineEditingInterface {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
error?: boolean;
|
|
23
|
+
success?: boolean;
|
|
24
|
+
tooltipText?: string;
|
|
25
|
+
inlineClassNames?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const InlineEditingContext = createContext<InlineEditingInterface>({ enabled: false });
|
|
29
|
+
|
|
30
|
+
export const InlineEditingProvider = InlineEditingContext.Provider;
|
|
31
|
+
|
|
32
|
+
export const useInlineEditing = () => useContext(InlineEditingContext);
|