@onewelcome/react-lib-components 8.12.2 → 8.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/BaseButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/Button.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/IconButton.module.scss.cjs.js +1 -1
- package/dist/cjs/ContextMenu/ContextMenu.module.scss.cjs.js +1 -1
- package/dist/cjs/ContextMenu/ContextMenuItem.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGrid.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +1 -1
- package/dist/cjs/DatePicker/DatePicker.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Checkbox/Checkbox.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Fieldset/Fieldset.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileUpload.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Form.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormControl/FormControl.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormGroup/FormGroup.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormHelperText/FormHelperText.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Input/Input.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Label/Label.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Radio/Radio.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/Select.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/useAddNewBtn.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Textarea/Textarea.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Toggle/Toggle.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.cjs.js.map +1 -1
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Icon/Icon.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js +1 -1
- package/dist/cjs/Layout/ContentHeader/ContentHeader.cjs.js.map +1 -1
- package/dist/cjs/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Link/Link.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Banner/Banner.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModal.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/Dialog.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheet.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.cjs.js.map +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.cjs.js.map +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +1 -1
- package/dist/cjs/Pagination/Pagination.module.scss.cjs.js +1 -1
- package/dist/cjs/Popover/Popover.module.scss.cjs.js +1 -1
- package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs.js +1 -1
- package/dist/cjs/Skeleton/Skeleton.module.scss.cjs.js +1 -1
- package/dist/cjs/Spinner/Spinner.module.scss.cjs.js +1 -1
- package/dist/cjs/Stepper/Step.module.scss.cjs.js +1 -1
- package/dist/cjs/Stepper/Stepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/Tab.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/TabButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/Tabs.module.scss.cjs.js +1 -1
- package/dist/cjs/Tag/RemoveButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Tag/Tag.module.scss.cjs.js +1 -1
- package/dist/cjs/TextEllipsis/TextEllipsis.module.scss.cjs.js +1 -1
- package/dist/cjs/Tiles/Tile.module.scss.cjs.js +1 -1
- package/dist/cjs/Tiles/Tiles.module.scss.cjs.js +1 -1
- package/dist/cjs/Tooltip/Tooltip.module.scss.cjs.js +1 -1
- package/dist/cjs/Typography/Typography.module.scss.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +1 -1
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.module.scss.cjs.js +1 -1
- package/dist/cjs/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.d.ts +1 -1
- package/dist/cjs/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.d.ts +1 -1
- package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +4 -2
- package/dist/cjs/src/components/withReadOnly.d.ts +5 -1
- package/dist/cjs/src/index.d.ts +5 -4
- package/dist/cjs/src/readyclasses.module.scss.cjs.js +1 -1
- package/dist/cjs/withReadOnly.cjs.js +1 -1
- package/dist/cjs/withReadOnly.cjs.js.map +1 -1
- package/dist/esm/Breadcrumbs/Breadcrumbs.module.scss.esm.js +2 -2
- package/dist/esm/Button/BaseButton.module.scss.esm.js +2 -2
- package/dist/esm/Button/Button.module.scss.esm.js +2 -2
- package/dist/esm/Button/IconButton.module.scss.esm.js +2 -2
- package/dist/esm/ContextMenu/ContextMenu.module.scss.esm.js +2 -2
- package/dist/esm/ContextMenu/ContextMenuItem.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGrid.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.esm.js +2 -2
- package/dist/esm/DatePicker/DatePicker.module.scss.esm.js +2 -2
- package/dist/esm/Form/Checkbox/Checkbox.module.scss.esm.js +2 -2
- package/dist/esm/Form/Fieldset/Fieldset.module.scss.esm.js +2 -2
- package/dist/esm/Form/FileUpload/FileItem/FileItem.module.scss.esm.js +2 -2
- package/dist/esm/Form/FileUpload/FileUpload.module.scss.esm.js +2 -2
- package/dist/esm/Form/Form.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormControl/FormControl.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormGroup/FormGroup.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormHelperText/FormHelperText.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Input/Input.module.scss.esm.js +2 -2
- package/dist/esm/Form/Label/Label.module.scss.esm.js +2 -2
- package/dist/esm/Form/Radio/Radio.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/MultiSelect.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/SelectButton.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/SelectedOptions.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/SingleSelect/Select.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/useAddNewBtn.module.scss.esm.js +2 -2
- package/dist/esm/Form/Textarea/Textarea.module.scss.esm.js +2 -2
- package/dist/esm/Form/Toggle/Toggle.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js +3 -1
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js +3 -1
- package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js +3 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js +1 -1
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js +3 -1
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.esm.js.map +1 -1
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.scss.esm.js +2 -2
- package/dist/esm/Icon/Icon.module.scss.esm.js +2 -2
- package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js +1 -1
- package/dist/esm/Layout/ContentHeader/ContentHeader.esm.js.map +1 -1
- package/dist/esm/Layout/ContentHeader/ContentHeader.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.esm.js +2 -2
- package/dist/esm/Link/Link.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Banner/Banner.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModal.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/Dialog.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheet.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.esm.js.map +1 -1
- package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.esm.js.map +1 -1
- package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SlideInModal/SlideInModal.module.scss.esm.js +2 -2
- package/dist/esm/Pagination/Pagination.module.scss.esm.js +2 -2
- package/dist/esm/Popover/Popover.module.scss.esm.js +2 -2
- package/dist/esm/ProgressBar/ProgressBar.module.scss.esm.js +2 -2
- package/dist/esm/Skeleton/Skeleton.module.scss.esm.js +2 -2
- package/dist/esm/Spinner/Spinner.module.scss.esm.js +2 -2
- package/dist/esm/Stepper/Step.module.scss.esm.js +2 -2
- package/dist/esm/Stepper/Stepper.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/Tab.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/TabButton.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/Tabs.module.scss.esm.js +2 -2
- package/dist/esm/Tag/RemoveButton.module.scss.esm.js +2 -2
- package/dist/esm/Tag/Tag.module.scss.esm.js +2 -2
- package/dist/esm/TextEllipsis/TextEllipsis.module.scss.esm.js +2 -2
- package/dist/esm/Tiles/Tile.module.scss.esm.js +2 -2
- package/dist/esm/Tiles/Tiles.module.scss.esm.js +2 -2
- package/dist/esm/Tooltip/Tooltip.module.scss.esm.js +2 -2
- package/dist/esm/Typography/Typography.module.scss.esm.js +2 -2
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js +7 -5
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
- package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js +2 -2
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js +2 -2
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js +2 -2
- package/dist/esm/miscellaneous/IdentityProviderButton.esm.js +1 -1
- package/dist/esm/miscellaneous/IdentityProviderButton.esm.js.map +1 -1
- package/dist/esm/miscellaneous/IdentityProviderButton.module.scss.esm.js +2 -2
- package/dist/esm/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.d.ts +1 -1
- package/dist/esm/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.d.ts +1 -1
- package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +4 -2
- package/dist/esm/src/components/withReadOnly.d.ts +5 -1
- package/dist/esm/src/index.d.ts +5 -4
- package/dist/esm/src/readyclasses.module.scss.esm.js +2 -2
- package/dist/esm/withReadOnly.esm.js +3 -2
- package/dist/esm/withReadOnly.esm.js.map +1 -1
- package/package.json +19 -18
- package/src/components/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.tsx +1 -1
- package/src/components/Form/Wrapper/InputWrapper/InputWrapper.tsx +3 -1
- package/src/components/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.tsx +3 -1
- package/src/components/Form/Wrapper/RadioWrapper/RadioWrapper.tsx +3 -1
- package/src/components/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +1 -1
- package/src/components/Form/Wrapper/TextareaWrapper/TextareaWrapper.tsx +3 -1
- package/src/components/Layout/ContentHeader/ContentHeader.tsx +1 -1
- package/src/components/Notifications/SideSheet/SideSheetContent/SideSheetContent.tsx +1 -1
- package/src/components/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.tsx +1 -1
- package/src/components/_BaseStyling_/BaseStyling.tsx +11 -7
- package/src/components/miscellaneous/IdentityProviderButton.tsx +1 -0
- package/src/components/withReadOnly.tsx +11 -2
- package/src/index.ts +6 -8
|
@@ -16,21 +16,23 @@ export interface CSSProperties {
|
|
|
16
16
|
colorPrimary700?: string;
|
|
17
17
|
colorPrimary900?: string;
|
|
18
18
|
colorPrimary50?: string;
|
|
19
|
+
colorBlueGrey25?: string;
|
|
20
|
+
colorBlueGrey50?: string;
|
|
19
21
|
colorBlueGrey100?: string;
|
|
20
22
|
colorBlueGrey200?: string;
|
|
21
23
|
colorBlueGrey300?: string;
|
|
22
24
|
colorBlueGrey400?: string;
|
|
23
|
-
colorBlueGrey25?: string;
|
|
24
|
-
colorBlueGrey50?: string;
|
|
25
25
|
colorBlueGrey500?: string;
|
|
26
26
|
colorBlueGrey700?: string;
|
|
27
27
|
colorBlueGrey800?: string;
|
|
28
28
|
colorBlueGrey900?: string;
|
|
29
|
+
colorGreen50?: string;
|
|
29
30
|
colorGreen100?: string;
|
|
30
31
|
colorGreen200?: string;
|
|
31
32
|
colorGreen500?: string;
|
|
32
33
|
colorGreen600?: string;
|
|
33
34
|
colorGreen700?: string;
|
|
35
|
+
colorOrange50?: string;
|
|
34
36
|
colorOrange100?: string;
|
|
35
37
|
colorOrange500?: string;
|
|
36
38
|
colorOrange600?: string;
|
|
@@ -5,4 +5,8 @@ export interface WithReadOnlyProps {
|
|
|
5
5
|
helperText?: string;
|
|
6
6
|
type?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
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 {};
|
package/dist/esm/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BaseStyling
|
|
2
|
-
export type { Props as BaseStylingProps } from "./components/_BaseStyling_/BaseStyling";
|
|
1
|
+
export { BaseStyling } from "./components/_BaseStyling_/BaseStyling";
|
|
2
|
+
export type { Props as BaseStylingProps, CSSProperties as BaseStylingCSSProperties } from "./components/_BaseStyling_/BaseStyling";
|
|
3
3
|
export { Button } from "./components/Button/Button";
|
|
4
4
|
export type { Props as ButtonProps } from "./components/Button/Button";
|
|
5
5
|
export { Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
|
|
@@ -54,7 +54,8 @@ export { Modal } from "./components/Notifications/Modal/Modal";
|
|
|
54
54
|
export type { Props as ModalProps } from "./components/Notifications/Modal/Modal";
|
|
55
55
|
export { useAlert } from "./components/Notifications/Alert/useAlert";
|
|
56
56
|
export { AlertProvider } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
|
|
57
|
-
export { AlertItem
|
|
57
|
+
export { AlertItem } from "./components/Notifications/Alert/AlertItem/AlertItem";
|
|
58
|
+
export type { Props as AlertItemProps } from "./components/Notifications/Alert/AlertItem/AlertItem";
|
|
58
59
|
export type { Props as AlertProviderProps } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
|
|
59
60
|
export { Dialog } from "./components/Notifications/Dialog/Dialog";
|
|
60
61
|
export type { Props as DialogProps, Action as DialogAction } from "./components/Notifications/Dialog/Dialog";
|
|
@@ -144,7 +145,7 @@ export { DataGridDrawerItem } from "./components/DataGrid/DataGridBody/DataGridD
|
|
|
144
145
|
export type { Props as DataGridDrawerItemProps } from "./components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem";
|
|
145
146
|
export { DataGridCell } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
|
|
146
147
|
export type { Props as DataGridCellProps } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
|
|
147
|
-
export { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
|
|
148
|
+
export type { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
|
|
148
149
|
export { FilterKeyMapper } from "./components/DataGrid/DataGridFilters/FilterKeyMapper";
|
|
149
150
|
export { useFiltersReducer } from "./components/DataGrid/DataGridFilters/useFiltersReducer";
|
|
150
151
|
/** Banner */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../node_modules/style-inject/dist/style-inject.es.esm.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.readyclasses_sr-
|
|
4
|
-
var readyclasses = {"sr-only":"readyclasses_sr-
|
|
3
|
+
var css_248z = "/*!\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.readyclasses_sr-only_pNyP0{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.readyclasses_hidden_pNyP0{display:none}.readyclasses_slide-in_pNyP0{animation:readyclasses_slide-in_pNyP0 .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-in_pNyP0{animation-duration:.1ms}}.readyclasses_slide-out_pNyP0{animation:readyclasses_slide-out_pNyP0 .5s forwards}@media (prefers-reduced-motion:reduce){.readyclasses_slide-out_pNyP0{animation-duration:.1ms}}@keyframes readyclasses_slide-in_pNyP0{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes readyclasses_slide-out_pNyP0{0%{transform:translateY(0)}to{transform:translateY(100vh)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlYWR5Y2xhc3Nlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRSxDQUNGLDRCQU9FLGtCQUFzQixDQUN0QixRQUFTLENBTFQsVUFBVyxDQUVYLFdBQVksQ0FDWixlQUFnQixDQUZoQixTQUFVLENBSFYsaUJBQWtCLENBQ2xCLFNBT0YsQ0FFQSwyQkFDRSxZQUNGLENBRUEsNkJBQ0Usa0RBQ0YsQ0FDQSx1Q0FDRSw2QkFDRSx1QkFDRixDQUNGLENBRUEsOEJBQ0UsbURBQ0YsQ0FDQSx1Q0FDRSw4QkFDRSx1QkFDRixDQUNGLENBRUEsdUNBQ0UsR0FDRSwyQkFDRixDQUNBLEdBQ0UsdUJBQ0YsQ0FDRixDQUNBLHdDQUNFLEdBQ0UsdUJBQ0YsQ0FDQSxHQUNFLDJCQUNGLENBQ0YiLCJmaWxlIjoicmVhZHljbGFzc2VzLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyohXG4gKiBDb3B5cmlnaHQgMjAyMiBPbmVXZWxjb21lIEIuVi5cbiAqXG4gKiAgICBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICAgeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogICAgWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqICAgIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqICAgIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqICAgIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogICAgU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogICAgbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cbi5zci1vbmx5IHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMXB4O1xuICBoZWlnaHQ6IDFweDtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luOiAtMXB4O1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBjbGlwOiByZWN0KDAsIDAsIDAsIDApO1xuICBib3JkZXI6IDA7XG59XG5cbi5oaWRkZW4ge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uc2xpZGUtaW4ge1xuICBhbmltYXRpb246IHNsaWRlLWluIDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtaW4ge1xuICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMC4xbXM7XG4gIH1cbn1cblxuLnNsaWRlLW91dCB7XG4gIGFuaW1hdGlvbjogc2xpZGUtb3V0IDAuNXMgZm9yd2FyZHM7XG59XG5AbWVkaWEgKHByZWZlcnMtcmVkdWNlZC1tb3Rpb246IHJlZHVjZSkge1xuICAuc2xpZGUtb3V0IHtcbiAgICBhbmltYXRpb24tZHVyYXRpb246IDAuMW1zO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc2xpZGUtaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDEwMHZoKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG59XG5Aa2V5ZnJhbWVzIHNsaWRlLW91dCB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMCUpO1xuICB9XG4gIDEwMCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWSgxMDB2aCk7XG4gIH1cbn0iXX0= */";
|
|
4
|
+
var readyclasses = {"sr-only":"readyclasses_sr-only_pNyP0","hidden":"readyclasses_hidden_pNyP0","slide-in":"readyclasses_slide-in_pNyP0","slide-out":"readyclasses_slide-out_pNyP0"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { readyclasses as default };
|
|
@@ -36,7 +36,8 @@ const getConditionalProps = (readOnlyView, type, helperText) => {
|
|
|
36
36
|
}
|
|
37
37
|
return props;
|
|
38
38
|
};
|
|
39
|
-
const withReadOnly = (WrappedComponent) => {
|
|
39
|
+
const withReadOnly = (WrappedComponent, options) => {
|
|
40
|
+
const { isWrapperComponent } = options || {};
|
|
40
41
|
const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView) => {
|
|
41
42
|
const preventSubmissionKeys = (e) => {
|
|
42
43
|
const isEnterOrSpace = (e) => e.key === "Enter" || e.key === " ";
|
|
@@ -60,7 +61,7 @@ const withReadOnly = (WrappedComponent) => {
|
|
|
60
61
|
};
|
|
61
62
|
const WithReadOnlyComponent = React.forwardRef((props, ref) => {
|
|
62
63
|
const { readOnlyView = false, required, children, helperText, type = "", ...restProps } = props;
|
|
63
|
-
return (React.createElement(WrappedComponent, { ref: ref, ...restProps, "data-readonlyview": readOnlyView, "aria-readonly": readOnlyView, required: readOnlyView ? false : required, ...getConditionalProps(readOnlyView, type, helperText), ...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView) }, children));
|
|
64
|
+
return (React.createElement(WrappedComponent, { ref: ref, ...restProps, "data-readonlyview": readOnlyView, "aria-readonly": isWrapperComponent ? undefined : readOnlyView, required: readOnlyView ? false : required, ...getConditionalProps(readOnlyView, type, helperText), ...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView) }, children));
|
|
64
65
|
});
|
|
65
66
|
WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;
|
|
66
67
|
return WithReadOnlyComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withReadOnly.esm.js","sources":["../../../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\nexport const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P
|
|
1
|
+
{"version":3,"file":"withReadOnly.esm.js","sources":["../../../../src/components/withReadOnly.tsx"],"sourcesContent":["/*\n * Copyright 2022 OneWelcome B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { ComponentType, ForwardedRef, PropsWithChildren } from \"react\";\n\nexport interface WithReadOnlyProps {\n readOnlyView?: boolean;\n required?: boolean;\n helperText?: string;\n type?: string;\n}\n\nconst componentsWithKeyEventsToPrevent: string[] = [\"CheckboxWrapper\"];\n\nconst getDisplayName = <P,>(WrappedComponent: ComponentType<P>) => {\n return WrappedComponent.displayName ?? WrappedComponent.name ?? \"Component\";\n};\n\nconst getConditionalProps = (readOnlyView: boolean, type: string, helperText?: string) => {\n const props: Record<string, unknown> = {};\n\n if (readOnlyView) {\n props.style = { pointerEvents: \"none\", userSelect: \"text\" };\n if (helperText) {\n props.helperText = \"\";\n }\n } else {\n props.helperText = helperText;\n }\n\n if (type) {\n props.type = type;\n }\n\n return props;\n};\n\ntype WithReadOnlyOptions = {\n isWrapperComponent: boolean;\n};\n\nexport const withReadOnly = <P extends object>(\n WrappedComponent: ComponentType<P>,\n options?: WithReadOnlyOptions\n) => {\n const { isWrapperComponent } = options || {};\n\n const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {\n const preventSubmissionKeys = (e: KeyboardEvent) => {\n const isEnterOrSpace = (e: KeyboardEvent) => e.key === \"Enter\" || e.key === \" \";\n if (isEnterOrSpace(e)) {\n e.stopPropagation();\n e.preventDefault();\n }\n };\n\n if (\n readOnlyView &&\n componentsWithKeyEventsToPrevent.includes(\n WrappedComponent.displayName || WrappedComponent.name\n )\n ) {\n const props: Record<string, unknown> = {};\n\n props.onKeyUp = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n props.onKeyDown = (e: KeyboardEvent) => {\n preventSubmissionKeys(e);\n };\n\n return props;\n }\n\n return {};\n };\n\n const WithReadOnlyComponent = React.forwardRef(\n (props: PropsWithChildren<P & WithReadOnlyProps>, ref: ForwardedRef<unknown>) => {\n const {\n readOnlyView = false,\n required,\n children,\n helperText,\n type = \"\",\n ...restProps\n } = props;\n\n return (\n <WrappedComponent\n ref={ref}\n {...(restProps as P)}\n data-readonlyview={readOnlyView}\n aria-readonly={isWrapperComponent ? undefined : readOnlyView}\n required={readOnlyView ? false : required}\n {...getConditionalProps(readOnlyView, type, helperText)}\n {...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}\n >\n {children}\n </WrappedComponent>\n );\n }\n );\n\n WithReadOnlyComponent.displayName = `withReadOnly_${getDisplayName(WrappedComponent)}`;\n return WithReadOnlyComponent;\n};\n"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"homepage": "http://onewelcome.github.io/react-lib-components",
|
|
3
3
|
"name": "@onewelcome/react-lib-components",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.13.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "OneWelcome B.V.",
|
|
7
7
|
"main": "dist/cjs/src/index.cjs.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@babel/preset-env": "^7.26.9",
|
|
62
62
|
"@babel/preset-react": "^7.26.3",
|
|
63
63
|
"@babel/preset-typescript": "^7.26.0",
|
|
64
|
-
"@chromatic-com/storybook": "^
|
|
64
|
+
"@chromatic-com/storybook": "^3.2.6",
|
|
65
65
|
"@mdx-js/react": "^3.0.1",
|
|
66
66
|
"@onewelcome/eslint-config-shared-codestyle": "^9.3.0",
|
|
67
67
|
"@onewelcome/storybook-addon-basestyling": "^2.0.0",
|
|
@@ -69,20 +69,21 @@
|
|
|
69
69
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
70
70
|
"@rollup/plugin-terser": "^0.4.4",
|
|
71
71
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
72
|
-
"@storybook/addon-a11y": "
|
|
73
|
-
"@storybook/addon-actions": "
|
|
74
|
-
"@storybook/addon-docs": "
|
|
75
|
-
"@storybook/addon-essentials": "
|
|
76
|
-
"@storybook/addon-interactions": "
|
|
77
|
-
"@storybook/addon-links": "
|
|
72
|
+
"@storybook/addon-a11y": "^8.6.12",
|
|
73
|
+
"@storybook/addon-actions": "^8.6.12",
|
|
74
|
+
"@storybook/addon-docs": "^8.6.12",
|
|
75
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
76
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
77
|
+
"@storybook/addon-links": "^8.6.12",
|
|
78
78
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
79
|
-
"@storybook/addon-webpack5-compiler-babel": "
|
|
80
|
-
"@storybook/blocks": "
|
|
81
|
-
"@storybook/components": "
|
|
82
|
-
"@storybook/manager-api": "
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/react
|
|
85
|
-
"@storybook/
|
|
79
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
80
|
+
"@storybook/blocks": "^8.6.12",
|
|
81
|
+
"@storybook/components": "^8.6.12",
|
|
82
|
+
"@storybook/manager-api": "^8.6.12",
|
|
83
|
+
"@storybook/preview-api": "^8.6.12",
|
|
84
|
+
"@storybook/react": "^8.6.12",
|
|
85
|
+
"@storybook/react-webpack5": "^8.6.12",
|
|
86
|
+
"@storybook/theming": "^8.6.12",
|
|
86
87
|
"@testing-library/dom": "^10.3.0",
|
|
87
88
|
"@testing-library/jest-dom": "^6.4.6",
|
|
88
89
|
"@testing-library/react": "^16.0.0",
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"eslint-plugin-prettier": "^5.1.3",
|
|
105
106
|
"eslint-plugin-react": "^7.34.3",
|
|
106
107
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
107
|
-
"eslint-plugin-storybook": "^0.
|
|
108
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
108
109
|
"husky": "^9.1.7",
|
|
109
110
|
"identity-obj-proxy": "^3.0.0",
|
|
110
111
|
"jest": "^29.7.0",
|
|
@@ -129,9 +130,9 @@
|
|
|
129
130
|
"sass": "1.77.6",
|
|
130
131
|
"sass-loader": "^14.2.1",
|
|
131
132
|
"size-limit": "^11.1.4",
|
|
132
|
-
"storybook": "
|
|
133
|
+
"storybook": "^8.6.12",
|
|
133
134
|
"storybook-addon-mock": "^5.0.0",
|
|
134
|
-
"storybook-addon-pseudo-states": "^
|
|
135
|
+
"storybook-addon-pseudo-states": "^4.0.4",
|
|
135
136
|
"style-loader": "^4.0.0",
|
|
136
137
|
"ts-jest": "^29.1.5",
|
|
137
138
|
"tslib": "^2.6.3",
|
|
@@ -120,4 +120,6 @@ const InputWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
|
120
120
|
);
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
export const InputWrapper = withReadOnly(React.forwardRef(InputWrapperComponent)
|
|
123
|
+
export const InputWrapper = withReadOnly(React.forwardRef(InputWrapperComponent), {
|
|
124
|
+
isWrapperComponent: true
|
|
125
|
+
});
|
|
@@ -83,4 +83,6 @@ const MultiSelectWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Prop
|
|
|
83
83
|
);
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
export const MultiSelectWrapper = withReadOnly(React.forwardRef(MultiSelectWrapperComponent)
|
|
86
|
+
export const MultiSelectWrapper = withReadOnly(React.forwardRef(MultiSelectWrapperComponent), {
|
|
87
|
+
isWrapperComponent: true
|
|
88
|
+
});
|
|
@@ -101,4 +101,6 @@ const RadioWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> = (
|
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
export const RadioWrapper = withReadOnly(React.forwardRef(RadioWrapperComponent)
|
|
104
|
+
export const RadioWrapper = withReadOnly(React.forwardRef(RadioWrapperComponent), {
|
|
105
|
+
isWrapperComponent: true
|
|
106
|
+
});
|
|
@@ -86,4 +86,4 @@ const SelectWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props> =
|
|
|
86
86
|
const forwardedSelectWrapper = React.forwardRef(SelectWrapperComponent);
|
|
87
87
|
forwardedSelectWrapper.displayName = "SelectWrapper";
|
|
88
88
|
|
|
89
|
-
export const SelectWrapper = withReadOnly(forwardedSelectWrapper);
|
|
89
|
+
export const SelectWrapper = withReadOnly(forwardedSelectWrapper, { isWrapperComponent: true });
|
|
@@ -149,4 +149,6 @@ const TextareaWrapperComponent: ForwardRefRenderFunction<HTMLDivElement, Props>
|
|
|
149
149
|
);
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
export const TextareaWrapper = withReadOnly(React.forwardRef(TextareaWrapperComponent)
|
|
152
|
+
export const TextareaWrapper = withReadOnly(React.forwardRef(TextareaWrapperComponent), {
|
|
153
|
+
isWrapperComponent: true
|
|
154
|
+
});
|
|
@@ -59,7 +59,7 @@ export const ContentHeaderComponent = ({
|
|
|
59
59
|
...rest
|
|
60
60
|
}: Props) => {
|
|
61
61
|
const errorTag = (
|
|
62
|
-
<Tag icon={Icons.Forbidden} backgroundColor="var(--color-
|
|
62
|
+
<Tag icon={Icons.Forbidden} backgroundColor="var(--color-red100)" color="var(--color-red900)">
|
|
63
63
|
{errorTagText || "Blocked"}
|
|
64
64
|
</Tag>
|
|
65
65
|
);
|
|
@@ -22,4 +22,4 @@ export const SideSheetContent: React.FC<Props> = ({ className, ...rest }) => (
|
|
|
22
22
|
<BaseModalContent {...rest} className={`${classes["side-sheet-content"]} ${className}`} />
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
export { Props } from "../../BaseModal/BaseModalContent/BaseModalContent";
|
|
25
|
+
export type { Props } from "../../BaseModal/BaseModalContent/BaseModalContent";
|
|
@@ -22,4 +22,4 @@ export const SideSheetHeader: React.FC<Props> = ({ className, ...rest }) => (
|
|
|
22
22
|
<BaseModalHeader {...rest} className={`${classes["side-sheet-header"]} ${className}`} />
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
export { Props } from "../../BaseModal/BaseModalHeader/BaseModalHeader";
|
|
25
|
+
export type { Props } from "../../BaseModal/BaseModalHeader/BaseModalHeader";
|
|
@@ -34,21 +34,23 @@ export interface CSSProperties {
|
|
|
34
34
|
colorPrimary700?: string;
|
|
35
35
|
colorPrimary900?: string;
|
|
36
36
|
colorPrimary50?: string;
|
|
37
|
+
colorBlueGrey25?: string;
|
|
38
|
+
colorBlueGrey50?: string;
|
|
37
39
|
colorBlueGrey100?: string;
|
|
38
40
|
colorBlueGrey200?: string;
|
|
39
41
|
colorBlueGrey300?: string;
|
|
40
42
|
colorBlueGrey400?: string;
|
|
41
|
-
colorBlueGrey25?: string;
|
|
42
|
-
colorBlueGrey50?: string;
|
|
43
43
|
colorBlueGrey500?: string;
|
|
44
44
|
colorBlueGrey700?: string;
|
|
45
45
|
colorBlueGrey800?: string;
|
|
46
46
|
colorBlueGrey900?: string;
|
|
47
|
+
colorGreen50?: string;
|
|
47
48
|
colorGreen100?: string;
|
|
48
49
|
colorGreen200?: string;
|
|
49
50
|
colorGreen500?: string;
|
|
50
51
|
colorGreen600?: string;
|
|
51
52
|
colorGreen700?: string;
|
|
53
|
+
colorOrange50?: string;
|
|
52
54
|
colorOrange100?: string;
|
|
53
55
|
colorOrange500?: string;
|
|
54
56
|
colorOrange600?: string;
|
|
@@ -246,16 +248,18 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
246
248
|
colorBlueGrey700: "#383A4B",
|
|
247
249
|
colorBlueGrey800: "#252733",
|
|
248
250
|
colorBlueGrey900: "#131319",
|
|
251
|
+
colorGreen50: "#E8F3ED",
|
|
249
252
|
colorGreen100: "#D1E6DA",
|
|
250
253
|
colorGreen200: "#A2CDB4",
|
|
251
254
|
colorGreen500: "#178244",
|
|
252
255
|
colorGreen600: "#126836",
|
|
253
256
|
colorGreen700: "#0E4E29",
|
|
257
|
+
colorOrange50: "#FCF2E6",
|
|
254
258
|
colorOrange100: "#FFE0B2",
|
|
255
259
|
colorOrange500: "#E07900",
|
|
256
260
|
colorOrange600: "#B36100",
|
|
257
261
|
colorOrange700: "#864900",
|
|
258
|
-
colorRed50: "#
|
|
262
|
+
colorRed50: "#FCE9E6",
|
|
259
263
|
colorRed100: "#FFCDD2",
|
|
260
264
|
colorRed200: "#F3A599",
|
|
261
265
|
colorRed500: "#E01E00",
|
|
@@ -341,16 +345,16 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
341
345
|
alertNeutralBackgroundColor: "var(--color-blue-grey50)",
|
|
342
346
|
alertNeutralInvertedColor: "var(--color-blue-grey500)",
|
|
343
347
|
|
|
344
|
-
alertInfoBackgroundColor: "var(--color-
|
|
348
|
+
alertInfoBackgroundColor: "var(--color-primary50)",
|
|
345
349
|
alertInfoInvertedColor: "var(--color-primary500)",
|
|
346
350
|
|
|
347
|
-
alertSuccessBackgroundColor: "var(--color-
|
|
351
|
+
alertSuccessBackgroundColor: "var(--color-green50)",
|
|
348
352
|
alertSuccessInvertedColor: "var(--color-green500)",
|
|
349
353
|
|
|
350
|
-
alertErrorBackgroundColor: "var(--color-
|
|
354
|
+
alertErrorBackgroundColor: "var(--color-red50)",
|
|
351
355
|
alertErrorInvertedColor: "var(--color-red500)",
|
|
352
356
|
|
|
353
|
-
alertWarningBackgroundColor: "var(--color-
|
|
357
|
+
alertWarningBackgroundColor: "var(--color-orange50)",
|
|
354
358
|
alertWarningInvertedColor: "var(--color-orange500)",
|
|
355
359
|
|
|
356
360
|
alertBorderWidth: "4px",
|
|
@@ -79,6 +79,7 @@ export const IdentityProviderButton: ForwardRefRenderFunction<HTMLButtonElement,
|
|
|
79
79
|
<img
|
|
80
80
|
height={24}
|
|
81
81
|
width={24}
|
|
82
|
+
aria-hidden={!imgAltText}
|
|
82
83
|
src={iconUrl || `/ui-resources-static/common/idb/icons/${idpType}.svg`}
|
|
83
84
|
alt={imgAltText || "Identity Provider icon"}
|
|
84
85
|
/>
|
|
@@ -48,7 +48,16 @@ const getConditionalProps = (readOnlyView: boolean, type: string, helperText?: s
|
|
|
48
48
|
return props;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
type WithReadOnlyOptions = {
|
|
52
|
+
isWrapperComponent: boolean;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const withReadOnly = <P extends object>(
|
|
56
|
+
WrappedComponent: ComponentType<P>,
|
|
57
|
+
options?: WithReadOnlyOptions
|
|
58
|
+
) => {
|
|
59
|
+
const { isWrapperComponent } = options || {};
|
|
60
|
+
|
|
52
61
|
const preventKeyUpAndKeyDownHandlerForSpecificComponents = (readOnlyView: boolean) => {
|
|
53
62
|
const preventSubmissionKeys = (e: KeyboardEvent) => {
|
|
54
63
|
const isEnterOrSpace = (e: KeyboardEvent) => e.key === "Enter" || e.key === " ";
|
|
@@ -96,7 +105,7 @@ export const withReadOnly = <P extends object>(WrappedComponent: ComponentType<P
|
|
|
96
105
|
ref={ref}
|
|
97
106
|
{...(restProps as P)}
|
|
98
107
|
data-readonlyview={readOnlyView}
|
|
99
|
-
aria-readonly={readOnlyView}
|
|
108
|
+
aria-readonly={isWrapperComponent ? undefined : readOnlyView}
|
|
100
109
|
required={readOnlyView ? false : required}
|
|
101
110
|
{...getConditionalProps(readOnlyView, type, helperText)}
|
|
102
111
|
{...preventKeyUpAndKeyDownHandlerForSpecificComponents(readOnlyView)}
|
package/src/index.ts
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/* Components */
|
|
18
|
-
export {
|
|
19
|
-
|
|
18
|
+
export { BaseStyling } from "./components/_BaseStyling_/BaseStyling";
|
|
19
|
+
export type {
|
|
20
|
+
Props as BaseStylingProps,
|
|
20
21
|
CSSProperties as BaseStylingCSSProperties
|
|
21
22
|
} from "./components/_BaseStyling_/BaseStyling";
|
|
22
|
-
export type { Props as BaseStylingProps } from "./components/_BaseStyling_/BaseStyling";
|
|
23
23
|
export { Button } from "./components/Button/Button";
|
|
24
24
|
export type { Props as ButtonProps } from "./components/Button/Button";
|
|
25
25
|
export { Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs";
|
|
@@ -89,10 +89,8 @@ export { Modal } from "./components/Notifications/Modal/Modal";
|
|
|
89
89
|
export type { Props as ModalProps } from "./components/Notifications/Modal/Modal";
|
|
90
90
|
export { useAlert } from "./components/Notifications/Alert/useAlert";
|
|
91
91
|
export { AlertProvider } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
|
|
92
|
-
export {
|
|
93
|
-
|
|
94
|
-
Props as AlertItemProps
|
|
95
|
-
} from "./components/Notifications/Alert/AlertItem/AlertItem";
|
|
92
|
+
export { AlertItem } from "./components/Notifications/Alert/AlertItem/AlertItem";
|
|
93
|
+
export type { Props as AlertItemProps } from "./components/Notifications/Alert/AlertItem/AlertItem";
|
|
96
94
|
export type { Props as AlertProviderProps } from "./components/Notifications/Alert/AlertProvider/AlertProvider";
|
|
97
95
|
export { Dialog } from "./components/Notifications/Dialog/Dialog";
|
|
98
96
|
export type {
|
|
@@ -205,7 +203,7 @@ export { DataGridDrawerItem } from "./components/DataGrid/DataGridBody/DataGridD
|
|
|
205
203
|
export type { Props as DataGridDrawerItemProps } from "./components/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem";
|
|
206
204
|
export { DataGridCell } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
|
|
207
205
|
export type { Props as DataGridCellProps } from "./components/DataGrid/DataGridBody/DataGridCell/DataGridCell";
|
|
208
|
-
export { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
|
|
206
|
+
export type { Filter } from "./components/DataGrid/DataGridFilters/DataGridFilters.interfaces";
|
|
209
207
|
export { FilterKeyMapper } from "./components/DataGrid/DataGridFilters/FilterKeyMapper";
|
|
210
208
|
export { useFiltersReducer } from "./components/DataGrid/DataGridFilters/useFiltersReducer";
|
|
211
209
|
|