@okta/odyssey-react-mui 1.13.11 → 1.14.2
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/CHANGELOG.md +25 -0
- package/dist/@types/properties.d.js +2 -0
- package/dist/@types/properties.d.js.map +1 -0
- package/dist/Accordion.js.map +1 -1
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Banner.js.map +1 -1
- package/dist/Box.js.map +1 -1
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/Button.js +3 -3
- package/dist/Button.js.map +1 -1
- package/dist/Callout.js.map +1 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/CircularProgress.js.map +1 -1
- package/dist/Dialog.js +8 -8
- package/dist/Dialog.js.map +1 -1
- package/dist/ErrorMessageList.js.map +1 -1
- package/dist/Field.js +1 -0
- package/dist/Field.js.map +1 -1
- package/dist/FieldComponentProps.js.map +1 -1
- package/dist/FieldError.js.map +1 -1
- package/dist/FieldHint.js.map +1 -1
- package/dist/FieldLabel.js.map +1 -1
- package/dist/Fieldset.js.map +1 -1
- package/dist/Form.js.map +1 -1
- package/dist/FormCheckedProps.js.map +1 -1
- package/dist/HintLink.js.map +1 -1
- package/dist/HtmlProps.js.map +1 -1
- package/dist/Link.js.map +1 -1
- package/dist/MenuButton.js.map +1 -1
- package/dist/MenuItem.js.map +1 -1
- package/dist/MuiPropsChild.js.map +1 -1
- package/dist/NativeSelect.js.map +1 -1
- package/dist/OdysseyProvider.js +0 -2
- package/dist/OdysseyProvider.js.map +1 -1
- package/dist/OdysseyThemeProvider.js +1 -28
- package/dist/OdysseyThemeProvider.js.map +1 -1
- package/dist/OdysseyTranslationProvider.js.map +1 -1
- package/dist/PasswordField.js.map +1 -1
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js.map +1 -1
- package/dist/ScreenReaderText.js.map +1 -1
- package/dist/SearchField.js +6 -2
- package/dist/SearchField.js.map +1 -1
- package/dist/Select.js +144 -44
- package/dist/Select.js.map +1 -1
- package/dist/Status.js +6 -1
- package/dist/Status.js.map +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/Tabs.js.map +1 -1
- package/dist/Tag.js.map +1 -1
- package/dist/TagList.js.map +1 -1
- package/dist/TextField.js.map +1 -1
- package/dist/Tile.js +53 -39
- package/dist/Tile.js.map +1 -1
- package/dist/Toast.js.map +1 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/Typography.js +11 -10
- package/dist/Typography.js.map +1 -1
- package/dist/createShadowRootElement.js.map +1 -1
- package/dist/getTypedObjectKeys.js.map +1 -1
- package/dist/icons.generated/AddCircle.js.map +1 -1
- package/dist/icons.generated/Apps.js.map +1 -1
- package/dist/icons.generated/ArrowBottom.js.map +1 -1
- package/dist/icons.generated/ArrowDown.js.map +1 -1
- package/dist/icons.generated/ArrowLeft.js.map +1 -1
- package/dist/icons.generated/ArrowRight.js.map +1 -1
- package/dist/icons.generated/ArrowTop.js.map +1 -1
- package/dist/icons.generated/ArrowUp.js.map +1 -1
- package/dist/icons.generated/Calendar.js.map +1 -1
- package/dist/icons.generated/Call.js.map +1 -1
- package/dist/icons.generated/Chat.js.map +1 -1
- package/dist/icons.generated/Check.js.map +1 -1
- package/dist/icons.generated/ChevronDown.js.map +1 -1
- package/dist/icons.generated/ChevronLeft.js.map +1 -1
- package/dist/icons.generated/ChevronUp.js.map +1 -1
- package/dist/icons.generated/Clock.js.map +1 -1
- package/dist/icons.generated/Close.js.map +1 -1
- package/dist/icons.generated/Copy.js.map +1 -1
- package/dist/icons.generated/Delete.js.map +1 -1
- package/dist/icons.generated/Deny.js.map +1 -1
- package/dist/icons.generated/Devices.js.map +1 -1
- package/dist/icons.generated/Directory.js.map +1 -1
- package/dist/icons.generated/Download.js.map +1 -1
- package/dist/icons.generated/Edit.js.map +1 -1
- package/dist/icons.generated/ExpandLeft.js.map +1 -1
- package/dist/icons.generated/ExpandRight.js.map +1 -1
- package/dist/icons.generated/Filter.js.map +1 -1
- package/dist/icons.generated/Folder.js.map +1 -1
- package/dist/icons.generated/Globe.js.map +1 -1
- package/dist/icons.generated/Grid.js.map +1 -1
- package/dist/icons.generated/Group.js.map +1 -1
- package/dist/icons.generated/Hide.js.map +1 -1
- package/dist/icons.generated/Home.js.map +1 -1
- package/dist/icons.generated/Link.js.map +1 -1
- package/dist/icons.generated/List.js.map +1 -1
- package/dist/icons.generated/Lock.js.map +1 -1
- package/dist/icons.generated/More.js.map +1 -1
- package/dist/icons.generated/Pause.js.map +1 -1
- package/dist/icons.generated/Refresh.js.map +1 -1
- package/dist/icons.generated/Reset.js.map +1 -1
- package/dist/icons.generated/Resume.js.map +1 -1
- package/dist/icons.generated/Search.js.map +1 -1
- package/dist/icons.generated/Server.js.map +1 -1
- package/dist/icons.generated/Settings.js.map +1 -1
- package/dist/icons.generated/Show.js.map +1 -1
- package/dist/icons.generated/Subtract.js.map +1 -1
- package/dist/icons.generated/Sync.js.map +1 -1
- package/dist/icons.generated/Unlock.js.map +1 -1
- package/dist/icons.generated/Upload.js.map +1 -1
- package/dist/icons.generated/User.js.map +1 -1
- package/dist/icons.generated/Video.js.map +1 -1
- package/dist/icons.generated/Warning.js.map +1 -1
- package/dist/icons.generated/index.js +1 -1
- package/dist/icons.generated/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/labs/DataFilters.js.map +1 -1
- package/dist/labs/DataTable.js.map +1 -1
- package/dist/labs/DatePicker.js.map +1 -1
- package/dist/labs/Drawer.js +172 -0
- package/dist/labs/Drawer.js.map +1 -0
- package/dist/labs/GroupPicker.js.map +1 -1
- package/dist/labs/PaginatedTable.js.map +1 -1
- package/dist/labs/StaticTable.js.map +1 -1
- package/dist/labs/Switch.js.map +1 -1
- package/dist/labs/VirtualizedAutocomplete.js.map +1 -1
- package/dist/labs/datePickerTheme.js.map +1 -1
- package/dist/labs/index.js +1 -0
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/materialReactTableTypes.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_cs.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_da.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_de.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_el.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_es.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_hu.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_id.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_it.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pl.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ro.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_th.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_vi.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/scripts/properties-to-ts.d.ts +14 -0
- package/dist/scripts/properties-to-ts.d.ts.map +1 -0
- package/dist/src/Accordion.d.ts +2 -2
- package/dist/src/Accordion.d.ts.map +1 -1
- package/dist/src/Autocomplete.d.ts +2 -2
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Badge.d.ts +2 -2
- package/dist/src/Badge.d.ts.map +1 -1
- package/dist/src/Banner.d.ts +2 -2
- package/dist/src/Banner.d.ts.map +1 -1
- package/dist/src/Box.d.ts +2 -2
- package/dist/src/Box.d.ts.map +1 -1
- package/dist/src/Breadcrumbs.d.ts +3 -3
- package/dist/src/Breadcrumbs.d.ts.map +1 -1
- package/dist/src/Button.d.ts +3 -30
- package/dist/src/Button.d.ts.map +1 -1
- package/dist/src/Callout.d.ts +2 -2
- package/dist/src/Callout.d.ts.map +1 -1
- package/dist/src/Checkbox.d.ts +3 -23
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +2 -2
- package/dist/src/CheckboxGroup.d.ts.map +1 -1
- package/dist/src/CircularProgress.d.ts +2 -6
- package/dist/src/CircularProgress.d.ts.map +1 -1
- package/dist/src/CssBaseline.d.ts +1 -1
- package/dist/src/CssBaseline.d.ts.map +1 -1
- package/dist/src/Dialog.d.ts +5 -5
- package/dist/src/Dialog.d.ts.map +1 -1
- package/dist/src/ErrorMessageList.d.ts +1 -1
- package/dist/src/ErrorMessageList.d.ts.map +1 -1
- package/dist/src/Field.d.ts +2 -5
- package/dist/src/Field.d.ts.map +1 -1
- package/dist/src/FieldComponentProps.d.ts +7 -4
- package/dist/src/FieldComponentProps.d.ts.map +1 -1
- package/dist/src/FieldError.d.ts +2 -2
- package/dist/src/FieldError.d.ts.map +1 -1
- package/dist/src/FieldHint.d.ts +2 -2
- package/dist/src/FieldHint.d.ts.map +1 -1
- package/dist/src/FieldLabel.d.ts +2 -2
- package/dist/src/FieldLabel.d.ts.map +1 -1
- package/dist/src/Fieldset.d.ts +2 -2
- package/dist/src/Fieldset.d.ts.map +1 -1
- package/dist/src/Form.d.ts +2 -2
- package/dist/src/Form.d.ts.map +1 -1
- package/dist/src/HintLink.d.ts +1 -1
- package/dist/src/HintLink.d.ts.map +1 -1
- package/dist/src/HtmlProps.d.ts +59 -0
- package/dist/src/HtmlProps.d.ts.map +1 -1
- package/dist/src/Link.d.ts +2 -6
- package/dist/src/Link.d.ts.map +1 -1
- package/dist/src/MenuButton.d.ts +5 -23
- package/dist/src/MenuButton.d.ts.map +1 -1
- package/dist/src/MenuItem.d.ts +2 -2
- package/dist/src/MenuItem.d.ts.map +1 -1
- package/dist/src/NativeSelect.d.ts +2 -2
- package/dist/src/NativeSelect.d.ts.map +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/src/OdysseyProvider.d.ts +1 -1
- package/dist/src/OdysseyProvider.d.ts.map +1 -1
- package/dist/src/OdysseyThemeProvider.d.ts +1 -3
- package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts +2 -2
- package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
- package/dist/src/PasswordField.d.ts +2 -2
- package/dist/src/PasswordField.d.ts.map +1 -1
- package/dist/src/Radio.d.ts +2 -2
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/RadioGroup.d.ts +2 -2
- package/dist/src/RadioGroup.d.ts.map +1 -1
- package/dist/src/ScreenReaderText.d.ts +2 -2
- package/dist/src/ScreenReaderText.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +11 -2
- package/dist/src/SearchField.d.ts.map +1 -1
- package/dist/src/Select.d.ts +2 -2
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/Status.d.ts +4 -2
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/Tabs.d.ts +2 -6
- package/dist/src/Tabs.d.ts.map +1 -1
- package/dist/src/Tag.d.ts +2 -2
- package/dist/src/Tag.d.ts.map +1 -1
- package/dist/src/TagList.d.ts +2 -2
- package/dist/src/TagList.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +3 -3
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Tile.d.ts +32 -11
- package/dist/src/Tile.d.ts.map +1 -1
- package/dist/src/Toast.d.ts +2 -2
- package/dist/src/Toast.d.ts.map +1 -1
- package/dist/src/ToastStack.d.ts +1 -1
- package/dist/src/ToastStack.d.ts.map +1 -1
- package/dist/src/Tooltip.d.ts +2 -2
- package/dist/src/Tooltip.d.ts.map +1 -1
- package/dist/src/Typography.d.ts +13 -25
- package/dist/src/Typography.d.ts.map +1 -1
- package/dist/src/icons.generated/Add.d.ts +1 -1
- package/dist/src/icons.generated/Add.d.ts.map +1 -1
- package/dist/src/icons.generated/AddCircle.d.ts +1 -1
- package/dist/src/icons.generated/AddCircle.d.ts.map +1 -1
- package/dist/src/icons.generated/Apps.d.ts +1 -1
- package/dist/src/icons.generated/Apps.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowBottom.d.ts +1 -1
- package/dist/src/icons.generated/ArrowBottom.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowDown.d.ts +1 -1
- package/dist/src/icons.generated/ArrowDown.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowLowerRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLowerRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowTop.d.ts +1 -1
- package/dist/src/icons.generated/ArrowTop.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUnsorted.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUnsorted.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUp.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUp.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUpperRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUpperRight.d.ts.map +1 -1
- package/dist/src/icons.generated/Bug.d.ts +1 -1
- package/dist/src/icons.generated/Bug.d.ts.map +1 -1
- package/dist/src/icons.generated/Calendar.d.ts +1 -1
- package/dist/src/icons.generated/Calendar.d.ts.map +1 -1
- package/dist/src/icons.generated/Call.d.ts +1 -1
- package/dist/src/icons.generated/Call.d.ts.map +1 -1
- package/dist/src/icons.generated/Chat.d.ts +1 -1
- package/dist/src/icons.generated/Chat.d.ts.map +1 -1
- package/dist/src/icons.generated/Check.d.ts +1 -1
- package/dist/src/icons.generated/Check.d.ts.map +1 -1
- package/dist/src/icons.generated/CheckCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/CheckCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronDown.d.ts +1 -1
- package/dist/src/icons.generated/ChevronDown.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronLeft.d.ts +1 -1
- package/dist/src/icons.generated/ChevronLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronRight.d.ts +1 -1
- package/dist/src/icons.generated/ChevronRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronUp.d.ts +1 -1
- package/dist/src/icons.generated/ChevronUp.d.ts.map +1 -1
- package/dist/src/icons.generated/Clock.d.ts +1 -1
- package/dist/src/icons.generated/Clock.d.ts.map +1 -1
- package/dist/src/icons.generated/Close.d.ts +1 -1
- package/dist/src/icons.generated/Close.d.ts.map +1 -1
- package/dist/src/icons.generated/CloseCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/CloseCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/CollapseLeft.d.ts +1 -1
- package/dist/src/icons.generated/CollapseLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/CollapseRight.d.ts +1 -1
- package/dist/src/icons.generated/CollapseRight.d.ts.map +1 -1
- package/dist/src/icons.generated/Copy.d.ts +1 -1
- package/dist/src/icons.generated/Copy.d.ts.map +1 -1
- package/dist/src/icons.generated/DangerDiamond.d.ts +1 -1
- package/dist/src/icons.generated/DangerDiamond.d.ts.map +1 -1
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts +1 -1
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/Delete.d.ts +1 -1
- package/dist/src/icons.generated/Delete.d.ts.map +1 -1
- package/dist/src/icons.generated/Deny.d.ts +1 -1
- package/dist/src/icons.generated/Deny.d.ts.map +1 -1
- package/dist/src/icons.generated/Devices.d.ts +1 -1
- package/dist/src/icons.generated/Devices.d.ts.map +1 -1
- package/dist/src/icons.generated/Directory.d.ts +1 -1
- package/dist/src/icons.generated/Directory.d.ts.map +1 -1
- package/dist/src/icons.generated/Documentation.d.ts +1 -1
- package/dist/src/icons.generated/Documentation.d.ts.map +1 -1
- package/dist/src/icons.generated/Download.d.ts +1 -1
- package/dist/src/icons.generated/Download.d.ts.map +1 -1
- package/dist/src/icons.generated/DragIndicator.d.ts +1 -1
- package/dist/src/icons.generated/DragIndicator.d.ts.map +1 -1
- package/dist/src/icons.generated/Edit.d.ts +1 -1
- package/dist/src/icons.generated/Edit.d.ts.map +1 -1
- package/dist/src/icons.generated/ExpandLeft.d.ts +1 -1
- package/dist/src/icons.generated/ExpandLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ExpandRight.d.ts +1 -1
- package/dist/src/icons.generated/ExpandRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ExternalLink.d.ts +1 -1
- package/dist/src/icons.generated/ExternalLink.d.ts.map +1 -1
- package/dist/src/icons.generated/Filter.d.ts +1 -1
- package/dist/src/icons.generated/Filter.d.ts.map +1 -1
- package/dist/src/icons.generated/Folder.d.ts +1 -1
- package/dist/src/icons.generated/Folder.d.ts.map +1 -1
- package/dist/src/icons.generated/Globe.d.ts +1 -1
- package/dist/src/icons.generated/Globe.d.ts.map +1 -1
- package/dist/src/icons.generated/Grid.d.ts +1 -1
- package/dist/src/icons.generated/Grid.d.ts.map +1 -1
- package/dist/src/icons.generated/Group.d.ts +1 -1
- package/dist/src/icons.generated/Group.d.ts.map +1 -1
- package/dist/src/icons.generated/Hide.d.ts +1 -1
- package/dist/src/icons.generated/Hide.d.ts.map +1 -1
- package/dist/src/icons.generated/Home.d.ts +1 -1
- package/dist/src/icons.generated/Home.d.ts.map +1 -1
- package/dist/src/icons.generated/InformationCircle.d.ts +1 -1
- package/dist/src/icons.generated/InformationCircle.d.ts.map +1 -1
- package/dist/src/icons.generated/InformationCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/InformationCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/Link.d.ts +1 -1
- package/dist/src/icons.generated/Link.d.ts.map +1 -1
- package/dist/src/icons.generated/List.d.ts +1 -1
- package/dist/src/icons.generated/List.d.ts.map +1 -1
- package/dist/src/icons.generated/Lock.d.ts +1 -1
- package/dist/src/icons.generated/Lock.d.ts.map +1 -1
- package/dist/src/icons.generated/More.d.ts +1 -1
- package/dist/src/icons.generated/More.d.ts.map +1 -1
- package/dist/src/icons.generated/Notification.d.ts +1 -1
- package/dist/src/icons.generated/Notification.d.ts.map +1 -1
- package/dist/src/icons.generated/Pause.d.ts +1 -1
- package/dist/src/icons.generated/Pause.d.ts.map +1 -1
- package/dist/src/icons.generated/QuestionCircle.d.ts +1 -1
- package/dist/src/icons.generated/QuestionCircle.d.ts.map +1 -1
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/Refresh.d.ts +1 -1
- package/dist/src/icons.generated/Refresh.d.ts.map +1 -1
- package/dist/src/icons.generated/Reset.d.ts +1 -1
- package/dist/src/icons.generated/Reset.d.ts.map +1 -1
- package/dist/src/icons.generated/Resume.d.ts +1 -1
- package/dist/src/icons.generated/Resume.d.ts.map +1 -1
- package/dist/src/icons.generated/Search.d.ts +1 -1
- package/dist/src/icons.generated/Search.d.ts.map +1 -1
- package/dist/src/icons.generated/Server.d.ts +1 -1
- package/dist/src/icons.generated/Server.d.ts.map +1 -1
- package/dist/src/icons.generated/Settings.d.ts +1 -1
- package/dist/src/icons.generated/Settings.d.ts.map +1 -1
- package/dist/src/icons.generated/Show.d.ts +1 -1
- package/dist/src/icons.generated/Show.d.ts.map +1 -1
- package/dist/src/icons.generated/Subtract.d.ts +1 -1
- package/dist/src/icons.generated/Subtract.d.ts.map +1 -1
- package/dist/src/icons.generated/Sync.d.ts +1 -1
- package/dist/src/icons.generated/Sync.d.ts.map +1 -1
- package/dist/src/icons.generated/Unlock.d.ts +1 -1
- package/dist/src/icons.generated/Unlock.d.ts.map +1 -1
- package/dist/src/icons.generated/Upload.d.ts +1 -1
- package/dist/src/icons.generated/Upload.d.ts.map +1 -1
- package/dist/src/icons.generated/User.d.ts +1 -1
- package/dist/src/icons.generated/User.d.ts.map +1 -1
- package/dist/src/icons.generated/Video.d.ts +1 -1
- package/dist/src/icons.generated/Video.d.ts.map +1 -1
- package/dist/src/icons.generated/Warning.d.ts +1 -1
- package/dist/src/icons.generated/Warning.d.ts.map +1 -1
- package/dist/src/icons.generated/WarningFilled.d.ts +1 -1
- package/dist/src/icons.generated/WarningFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/labs/DataFilters.d.ts +1 -1
- package/dist/src/labs/DataFilters.d.ts.map +1 -1
- package/dist/src/labs/DataTable.d.ts +1 -1
- package/dist/src/labs/DataTable.d.ts.map +1 -1
- package/dist/src/labs/DataTablePagination.d.ts +1 -1
- package/dist/src/labs/DataTablePagination.d.ts.map +1 -1
- package/dist/src/labs/DatePicker.d.ts +1 -1
- package/dist/src/labs/DatePicker.d.ts.map +1 -1
- package/dist/src/labs/Drawer.d.ts +56 -0
- package/dist/src/labs/Drawer.d.ts.map +1 -0
- package/dist/src/labs/GroupPicker.d.ts +1 -1
- package/dist/src/labs/GroupPicker.d.ts.map +1 -1
- package/dist/src/labs/PaginatedTable.d.ts +1 -1
- package/dist/src/labs/PaginatedTable.d.ts.map +1 -1
- package/dist/src/labs/StaticTable.d.ts +1 -1
- package/dist/src/labs/StaticTable.d.ts.map +1 -1
- package/dist/src/labs/Switch.d.ts +2 -2
- package/dist/src/labs/Switch.d.ts.map +1 -1
- package/dist/src/labs/VirtualizedAutocomplete.d.ts +2 -2
- package/dist/src/labs/VirtualizedAutocomplete.d.ts.map +1 -1
- package/dist/src/labs/datePickerTheme.d.ts.map +1 -1
- package/dist/src/labs/index.d.ts +1 -0
- package/dist/src/labs/index.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +60 -8
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/scripts/generateIconsIndex.ts +2 -2
- package/scripts/{properties-to-ts.js → properties-to-ts.ts} +55 -41
- package/src/@types/properties.d.ts +292 -0
- package/src/Accordion.tsx +1 -1
- package/src/Autocomplete.tsx +17 -9
- package/src/Badge.tsx +1 -1
- package/src/Banner.tsx +1 -1
- package/src/Box.tsx +2 -2
- package/src/Breadcrumbs.tsx +2 -2
- package/src/Button.tsx +26 -38
- package/src/Callout.tsx +1 -1
- package/src/Checkbox.tsx +9 -29
- package/src/CheckboxGroup.tsx +20 -5
- package/src/CircularProgress.tsx +1 -5
- package/src/Dialog.tsx +18 -17
- package/src/ErrorMessageList.tsx +1 -1
- package/src/Field.tsx +6 -9
- package/src/FieldComponentProps.ts +8 -4
- package/src/FieldError.tsx +2 -2
- package/src/FieldHint.tsx +1 -1
- package/src/FieldLabel.tsx +2 -2
- package/src/Fieldset.tsx +2 -2
- package/src/Form.tsx +1 -1
- package/src/FormCheckedProps.ts +3 -3
- package/src/HintLink.tsx +1 -1
- package/src/HtmlProps.ts +60 -0
- package/src/Link.tsx +2 -6
- package/src/MenuButton.tsx +21 -36
- package/src/MenuItem.tsx +2 -2
- package/src/MuiPropsChild.tsx +2 -2
- package/src/NativeSelect.tsx +24 -13
- package/src/OdysseyCacheProvider.test.tsx +3 -3
- package/src/OdysseyProvider.tsx +1 -3
- package/src/OdysseyThemeProvider.tsx +8 -35
- package/src/OdysseyTranslationProvider.test.tsx +6 -6
- package/src/OdysseyTranslationProvider.tsx +7 -7
- package/src/PasswordField.tsx +23 -10
- package/src/Radio.tsx +4 -4
- package/src/RadioGroup.tsx +22 -7
- package/src/ScreenReaderText.tsx +1 -1
- package/src/SearchField.tsx +25 -12
- package/src/Select.tsx +219 -77
- package/src/Status.tsx +8 -2
- package/src/Tabs.tsx +7 -11
- package/src/Tag.tsx +4 -4
- package/src/TagList.tsx +2 -2
- package/src/TextField.tsx +22 -9
- package/src/Tile.tsx +74 -43
- package/src/Toast.tsx +1 -1
- package/src/Tooltip.tsx +1 -1
- package/src/Typography.tsx +20 -28
- package/src/createShadowRootElement.ts +1 -1
- package/src/getTypedObjectKeys.ts +1 -1
- package/src/icons.generated/AddCircle.tsx +1 -1
- package/src/icons.generated/Apps.tsx +1 -1
- package/src/icons.generated/ArrowBottom.tsx +1 -1
- package/src/icons.generated/ArrowDown.tsx +1 -1
- package/src/icons.generated/ArrowLeft.tsx +1 -1
- package/src/icons.generated/ArrowRight.tsx +1 -1
- package/src/icons.generated/ArrowTop.tsx +1 -1
- package/src/icons.generated/ArrowUp.tsx +1 -1
- package/src/icons.generated/Calendar.tsx +1 -1
- package/src/icons.generated/Call.tsx +1 -1
- package/src/icons.generated/Chat.tsx +1 -1
- package/src/icons.generated/Check.tsx +1 -1
- package/src/icons.generated/ChevronDown.tsx +1 -1
- package/src/icons.generated/ChevronLeft.tsx +1 -1
- package/src/icons.generated/ChevronUp.tsx +1 -1
- package/src/icons.generated/Clock.tsx +1 -1
- package/src/icons.generated/Close.tsx +1 -1
- package/src/icons.generated/Copy.tsx +1 -1
- package/src/icons.generated/Delete.tsx +1 -1
- package/src/icons.generated/Deny.tsx +1 -1
- package/src/icons.generated/Devices.tsx +1 -1
- package/src/icons.generated/Directory.tsx +1 -1
- package/src/icons.generated/Download.tsx +1 -1
- package/src/icons.generated/Edit.tsx +1 -1
- package/src/icons.generated/ExpandLeft.tsx +1 -1
- package/src/icons.generated/ExpandRight.tsx +1 -1
- package/src/icons.generated/Filter.tsx +1 -1
- package/src/icons.generated/Folder.tsx +1 -1
- package/src/icons.generated/Globe.tsx +1 -1
- package/src/icons.generated/Grid.tsx +1 -1
- package/src/icons.generated/Group.tsx +1 -1
- package/src/icons.generated/Hide.tsx +1 -1
- package/src/icons.generated/Home.tsx +1 -1
- package/src/icons.generated/Link.tsx +1 -1
- package/src/icons.generated/List.tsx +1 -1
- package/src/icons.generated/Lock.tsx +1 -1
- package/src/icons.generated/More.tsx +1 -1
- package/src/icons.generated/Pause.tsx +1 -1
- package/src/icons.generated/Refresh.tsx +1 -1
- package/src/icons.generated/Reset.tsx +1 -1
- package/src/icons.generated/Resume.tsx +1 -1
- package/src/icons.generated/Search.tsx +1 -1
- package/src/icons.generated/Server.tsx +1 -1
- package/src/icons.generated/Settings.tsx +1 -1
- package/src/icons.generated/Show.tsx +1 -1
- package/src/icons.generated/Subtract.tsx +1 -1
- package/src/icons.generated/Sync.tsx +1 -1
- package/src/icons.generated/Unlock.tsx +1 -1
- package/src/icons.generated/Upload.tsx +1 -1
- package/src/icons.generated/User.tsx +1 -1
- package/src/icons.generated/Video.tsx +1 -1
- package/src/icons.generated/Warning.tsx +1 -1
- package/src/icons.generated/index.ts +1 -1
- package/src/index.ts +0 -1
- package/src/labs/DataFilters.tsx +36 -30
- package/src/labs/DataTable.tsx +20 -20
- package/src/labs/DatePicker.tsx +3 -1
- package/src/labs/Drawer.tsx +254 -0
- package/src/labs/GroupPicker.tsx +34 -15
- package/src/labs/PaginatedTable.tsx +12 -10
- package/src/labs/StaticTable.tsx +3 -3
- package/src/labs/Switch.tsx +5 -5
- package/src/labs/VirtualizedAutocomplete.tsx +19 -16
- package/src/labs/datePickerTheme.tsx +4 -2
- package/src/labs/index.ts +2 -0
- package/src/labs/materialReactTableTypes.tsx +1 -1
- package/src/properties/translations/odyssey-react-mui_cs.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_da.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_de.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_el.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_es.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_fi.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_fr.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_hu.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_id.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_it.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ja.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ko.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ms.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_nb.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_pl.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ro.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ru.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_sv.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_th.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_tr.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_uk.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_vi.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +3 -1
- package/src/properties/ts/odyssey-react-mui_cs.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_da.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_de.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_el.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_es.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_fi.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_fr.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_hu.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_id.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_it.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ja.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ko.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ms.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_nb.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pl.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ro.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ru.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_sv.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_th.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_tr.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_uk.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_vi.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -1
- package/src/theme/components.tsx +83 -16
- package/tsconfig.json +0 -3
package/src/labs/DataTable.tsx
CHANGED
|
@@ -247,13 +247,13 @@ export type DataTableProps = {
|
|
|
247
247
|
* Action buttons to display in each row
|
|
248
248
|
*/
|
|
249
249
|
rowActionButtons?: (
|
|
250
|
-
row: MRT_RowData
|
|
250
|
+
row: MRT_RowData,
|
|
251
251
|
) => ReactElement<typeof Button | typeof Fragment>;
|
|
252
252
|
/**
|
|
253
253
|
* Menu items to include in the optional actions menu on each row.
|
|
254
254
|
*/
|
|
255
255
|
rowActionMenuItems?: (
|
|
256
|
-
row: MRT_RowData
|
|
256
|
+
row: MRT_RowData,
|
|
257
257
|
) => ReactElement<typeof MenuItem | typeof Fragment>;
|
|
258
258
|
};
|
|
259
259
|
|
|
@@ -329,7 +329,7 @@ const DataTable = ({
|
|
|
329
329
|
}, [columns]);
|
|
330
330
|
|
|
331
331
|
const [columnVisibility, setColumnVisibility] = useState<MRT_VisibilityState>(
|
|
332
|
-
initialColumnVisibility
|
|
332
|
+
initialColumnVisibility,
|
|
333
333
|
);
|
|
334
334
|
|
|
335
335
|
const [globalFilter, setGlobalFilter] = useState<string>("");
|
|
@@ -367,10 +367,10 @@ const DataTable = ({
|
|
|
367
367
|
const handleSortingChange = useCallback(
|
|
368
368
|
(updater: MRT_Updater<MRT_SortingState>) => {
|
|
369
369
|
setSorting((prevSorting) =>
|
|
370
|
-
updater instanceof Function ? updater(prevSorting) : sorting
|
|
370
|
+
updater instanceof Function ? updater(prevSorting) : sorting,
|
|
371
371
|
);
|
|
372
372
|
},
|
|
373
|
-
[sorting]
|
|
373
|
+
[sorting],
|
|
374
374
|
);
|
|
375
375
|
|
|
376
376
|
const handleColumnVisibility = useCallback(
|
|
@@ -380,7 +380,7 @@ const DataTable = ({
|
|
|
380
380
|
[columnId]: !columnVisibility[columnId],
|
|
381
381
|
}));
|
|
382
382
|
},
|
|
383
|
-
[columnVisibility]
|
|
383
|
+
[columnVisibility],
|
|
384
384
|
);
|
|
385
385
|
|
|
386
386
|
const handleSearch = useCallback((value: string) => {
|
|
@@ -394,10 +394,10 @@ const DataTable = ({
|
|
|
394
394
|
const handleRowSelectionChange = useCallback(
|
|
395
395
|
(updater: MRT_Updater<MRT_RowSelectionState>) => {
|
|
396
396
|
setRowSelection((prevRowSelection) =>
|
|
397
|
-
updater instanceof Function ? updater(prevRowSelection) : rowSelection
|
|
397
|
+
updater instanceof Function ? updater(prevRowSelection) : rowSelection,
|
|
398
398
|
);
|
|
399
399
|
},
|
|
400
|
-
[rowSelection]
|
|
400
|
+
[rowSelection],
|
|
401
401
|
);
|
|
402
402
|
|
|
403
403
|
const updateRowOrder = useCallback(
|
|
@@ -420,7 +420,7 @@ const DataTable = ({
|
|
|
420
420
|
reorderDataFn?.({ rowId, newIndex });
|
|
421
421
|
refreshData();
|
|
422
422
|
},
|
|
423
|
-
[data, totalRows, reorderDataFn, refreshData]
|
|
423
|
+
[data, totalRows, reorderDataFn, refreshData],
|
|
424
424
|
);
|
|
425
425
|
|
|
426
426
|
const rowVirtualizerInstanceRef =
|
|
@@ -428,7 +428,7 @@ const DataTable = ({
|
|
|
428
428
|
|
|
429
429
|
const getRowFromTableAndSetHovered = (
|
|
430
430
|
table: TableType,
|
|
431
|
-
id: MRT_RowData["id"]
|
|
431
|
+
id: MRT_RowData["id"],
|
|
432
432
|
) => {
|
|
433
433
|
if (id) {
|
|
434
434
|
const nextRow: MRT_RowData = table.getRow(id);
|
|
@@ -520,7 +520,7 @@ const DataTable = ({
|
|
|
520
520
|
page,
|
|
521
521
|
resultsPerPage,
|
|
522
522
|
updateRowOrder,
|
|
523
|
-
]
|
|
523
|
+
],
|
|
524
524
|
);
|
|
525
525
|
|
|
526
526
|
const handleDragHandleOnDragEnd = useCallback(
|
|
@@ -538,7 +538,7 @@ const DataTable = ({
|
|
|
538
538
|
|
|
539
539
|
setDraggingRow(null);
|
|
540
540
|
},
|
|
541
|
-
[updateRowOrder]
|
|
541
|
+
[updateRowOrder],
|
|
542
542
|
);
|
|
543
543
|
|
|
544
544
|
const handleDragHandleOnDragCapture = useCallback(
|
|
@@ -547,7 +547,7 @@ const DataTable = ({
|
|
|
547
547
|
setDraggingRow(table.getState().draggingRow);
|
|
548
548
|
}
|
|
549
549
|
},
|
|
550
|
-
[draggingRow]
|
|
550
|
+
[draggingRow],
|
|
551
551
|
);
|
|
552
552
|
|
|
553
553
|
const table = useMaterialReactTable({
|
|
@@ -639,12 +639,12 @@ const DataTable = ({
|
|
|
639
639
|
draggingRow?.id === row.id && table.getState().hoveredRow?.id !== row.id
|
|
640
640
|
? "isDragging"
|
|
641
641
|
: table.getState().hoveredRow?.id === row.id &&
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
642
|
+
draggingRow?.id !== row.id
|
|
643
|
+
? "isDragTarget"
|
|
644
|
+
: draggingRow?.id === row.id &&
|
|
645
|
+
table.getState().hoveredRow?.id === row.id
|
|
646
|
+
? "isDragging isDragTarget"
|
|
647
|
+
: undefined,
|
|
648
648
|
}),
|
|
649
649
|
|
|
650
650
|
muiRowDragHandleProps: ({ table, row }) => ({
|
|
@@ -800,7 +800,7 @@ const DataTable = ({
|
|
|
800
800
|
hasChangeableDensity,
|
|
801
801
|
handleColumnVisibility,
|
|
802
802
|
hasColumnVisibility,
|
|
803
|
-
]
|
|
803
|
+
],
|
|
804
804
|
);
|
|
805
805
|
|
|
806
806
|
return (
|
package/src/labs/DatePicker.tsx
CHANGED
|
@@ -34,6 +34,7 @@ export const DatePicker = <TInputDate, TDate>({
|
|
|
34
34
|
value = null,
|
|
35
35
|
}: DatePickerProps<TInputDate, TDate>) => {
|
|
36
36
|
const renderInput = useCallback(
|
|
37
|
+
// @ts-expect-error TEMP: This type aren't working after the upgrade, but they need to be fixed.
|
|
37
38
|
({ InputProps, ...props }) => {
|
|
38
39
|
const combinedProps = {
|
|
39
40
|
...InputProps,
|
|
@@ -42,13 +43,14 @@ export const DatePicker = <TInputDate, TDate>({
|
|
|
42
43
|
|
|
43
44
|
return <InputBase {...combinedProps} required={!isOptional} />;
|
|
44
45
|
},
|
|
45
|
-
[isOptional]
|
|
46
|
+
[isOptional],
|
|
46
47
|
);
|
|
47
48
|
|
|
48
49
|
return (
|
|
49
50
|
<MuiDatePicker
|
|
50
51
|
label={label}
|
|
51
52
|
onChange={onChange}
|
|
53
|
+
// @ts-expect-error TEMP: This type aren't working after the upgrade, but they need to be fixed.
|
|
52
54
|
renderInput={renderInput}
|
|
53
55
|
value={value}
|
|
54
56
|
/>
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
memo,
|
|
15
|
+
ReactNode,
|
|
16
|
+
useState,
|
|
17
|
+
useEffect,
|
|
18
|
+
useMemo,
|
|
19
|
+
useRef,
|
|
20
|
+
ReactElement,
|
|
21
|
+
} from "react";
|
|
22
|
+
import styled from "@emotion/styled";
|
|
23
|
+
import { useTranslation } from "react-i18next";
|
|
24
|
+
import { Drawer as MuiDrawer } from "@mui/material";
|
|
25
|
+
|
|
26
|
+
import type { HtmlProps } from "../HtmlProps";
|
|
27
|
+
import { Button } from "../Button";
|
|
28
|
+
import { CloseIcon } from "../icons.generated";
|
|
29
|
+
import { Heading5 } from "../Typography";
|
|
30
|
+
import {
|
|
31
|
+
useOdysseyDesignTokens,
|
|
32
|
+
DesignTokens,
|
|
33
|
+
} from "../OdysseyDesignTokensContext";
|
|
34
|
+
|
|
35
|
+
export const variantValues = ["temporary", "persistent"] as const;
|
|
36
|
+
|
|
37
|
+
export type DrawerProps = {
|
|
38
|
+
/**
|
|
39
|
+
* An optional Button object to be situated in the Drawerfooter. Should almost always be of variant `primary`.
|
|
40
|
+
*/
|
|
41
|
+
primaryCallToActionComponent?: ReactElement<typeof Button>;
|
|
42
|
+
/**
|
|
43
|
+
* An optional Button object to be situated in the Drawer footer, alongside the `callToActionPrimaryComponent`.
|
|
44
|
+
*/
|
|
45
|
+
secondaryCallToActionComponent?: ReactElement<typeof Button>;
|
|
46
|
+
/**
|
|
47
|
+
* An optional Button object to be situated in the Drawer footer, alongside the other two `callToAction` components.
|
|
48
|
+
*/
|
|
49
|
+
tertiaryCallToActionComponent?: ReactElement<typeof Button>;
|
|
50
|
+
/**
|
|
51
|
+
* The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.
|
|
52
|
+
*/
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* When set to `true`, the Drawer will be visible.
|
|
56
|
+
*/
|
|
57
|
+
isOpen?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Callback that controls what happens when the Drawer is dismissed
|
|
60
|
+
*/
|
|
61
|
+
onClose: () => void;
|
|
62
|
+
/**
|
|
63
|
+
* Shows divider lines separating header, content, and footer (if using action buttons)
|
|
64
|
+
*/
|
|
65
|
+
showDividers: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The title of the Drawer
|
|
68
|
+
*/
|
|
69
|
+
title?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Type of Drawer
|
|
72
|
+
*/
|
|
73
|
+
variant?: (typeof variantValues)[number];
|
|
74
|
+
} & Pick<HtmlProps, "ariaLabel" | "testId" | "translate">;
|
|
75
|
+
|
|
76
|
+
interface DrawerStyleProps {
|
|
77
|
+
odysseyDesignTokens: DesignTokens;
|
|
78
|
+
showDividers: boolean;
|
|
79
|
+
}
|
|
80
|
+
const DrawerHeader = styled("div", {
|
|
81
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
82
|
+
})<DrawerStyleProps>`
|
|
83
|
+
position: sticky;
|
|
84
|
+
top: 0;
|
|
85
|
+
display: flex;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
align-items: center;
|
|
88
|
+
margin: 0;
|
|
89
|
+
padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}
|
|
90
|
+
${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};
|
|
91
|
+
color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};
|
|
92
|
+
background-color: ${({ odysseyDesignTokens }) =>
|
|
93
|
+
odysseyDesignTokens.HueNeutralWhite};
|
|
94
|
+
border-bottom: ${({ showDividers, odysseyDesignTokens }) =>
|
|
95
|
+
showDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : "none"};
|
|
96
|
+
`;
|
|
97
|
+
|
|
98
|
+
const DrawerContentWrapper = styled("div", {
|
|
99
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
100
|
+
})<{
|
|
101
|
+
odysseyDesignTokens: DesignTokens;
|
|
102
|
+
}>`
|
|
103
|
+
overflow-y: auto;
|
|
104
|
+
`;
|
|
105
|
+
|
|
106
|
+
const DrawerContent = styled("div", {
|
|
107
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
108
|
+
})<DrawerStyleProps>`
|
|
109
|
+
padding: ${({ showDividers, odysseyDesignTokens }) =>
|
|
110
|
+
showDividers
|
|
111
|
+
? `${odysseyDesignTokens.Spacing5}`
|
|
112
|
+
: `0 ${odysseyDesignTokens.Spacing5}`};
|
|
113
|
+
`;
|
|
114
|
+
|
|
115
|
+
const DrawerFooter = styled("div", {
|
|
116
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
117
|
+
})<DrawerStyleProps>`
|
|
118
|
+
position: sticky;
|
|
119
|
+
bottom: 0;
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: flex-end;
|
|
122
|
+
align-items: center;
|
|
123
|
+
align-content: center;
|
|
124
|
+
padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};
|
|
125
|
+
border-top: ${({ showDividers, odysseyDesignTokens }) =>
|
|
126
|
+
showDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : "none"};
|
|
127
|
+
background-color: ${({ odysseyDesignTokens }) =>
|
|
128
|
+
odysseyDesignTokens.HueNeutralWhite};
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
const Drawer = ({
|
|
132
|
+
ariaLabel,
|
|
133
|
+
children,
|
|
134
|
+
isOpen,
|
|
135
|
+
onClose,
|
|
136
|
+
primaryCallToActionComponent,
|
|
137
|
+
secondaryCallToActionComponent,
|
|
138
|
+
showDividers = false,
|
|
139
|
+
tertiaryCallToActionComponent,
|
|
140
|
+
testId,
|
|
141
|
+
title,
|
|
142
|
+
translate,
|
|
143
|
+
variant = "temporary",
|
|
144
|
+
}: DrawerProps) => {
|
|
145
|
+
const [isContentScrollable, setIsContentScrollable] = useState(false);
|
|
146
|
+
const drawerContentRef = useRef<HTMLDivElement>(null);
|
|
147
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
148
|
+
|
|
149
|
+
//If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.
|
|
150
|
+
const { i18n } = useTranslation();
|
|
151
|
+
const anchorDirection = i18n.dir() === "rtl" ? "left" : "right";
|
|
152
|
+
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
let frameId: number;
|
|
155
|
+
|
|
156
|
+
const handleContentScroll = () => {
|
|
157
|
+
const drawerContentElement = drawerContentRef.current;
|
|
158
|
+
if (drawerContentElement) {
|
|
159
|
+
cancelAnimationFrame(frameId);
|
|
160
|
+
setIsContentScrollable(
|
|
161
|
+
drawerContentElement.scrollHeight > drawerContentElement.clientHeight,
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
frameId = requestAnimationFrame(handleContentScroll);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
if (isOpen) {
|
|
168
|
+
frameId = requestAnimationFrame(handleContentScroll);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return () => {
|
|
172
|
+
cancelAnimationFrame(frameId);
|
|
173
|
+
};
|
|
174
|
+
}, [isOpen]);
|
|
175
|
+
|
|
176
|
+
const dividersVisible = useMemo(() => {
|
|
177
|
+
return showDividers || isContentScrollable;
|
|
178
|
+
}, [showDividers, isContentScrollable]);
|
|
179
|
+
|
|
180
|
+
const hasFooter = useMemo(
|
|
181
|
+
() =>
|
|
182
|
+
primaryCallToActionComponent ||
|
|
183
|
+
secondaryCallToActionComponent ||
|
|
184
|
+
tertiaryCallToActionComponent,
|
|
185
|
+
[
|
|
186
|
+
primaryCallToActionComponent,
|
|
187
|
+
secondaryCallToActionComponent,
|
|
188
|
+
tertiaryCallToActionComponent,
|
|
189
|
+
],
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
return (
|
|
193
|
+
<MuiDrawer
|
|
194
|
+
data-se={testId}
|
|
195
|
+
anchor={anchorDirection}
|
|
196
|
+
open={isOpen}
|
|
197
|
+
onClose={onClose}
|
|
198
|
+
variant={variant}
|
|
199
|
+
sx={{
|
|
200
|
+
//Overrides defualt MUI inline style
|
|
201
|
+
...(variant === "persistent" && {
|
|
202
|
+
"& .MuiDrawer-paper": {
|
|
203
|
+
transition: "none",
|
|
204
|
+
},
|
|
205
|
+
}),
|
|
206
|
+
}}
|
|
207
|
+
>
|
|
208
|
+
<DrawerContentWrapper
|
|
209
|
+
{...(isContentScrollable && {
|
|
210
|
+
//Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard
|
|
211
|
+
tabIndex: 0,
|
|
212
|
+
})}
|
|
213
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
214
|
+
ref={drawerContentRef}
|
|
215
|
+
>
|
|
216
|
+
<DrawerHeader
|
|
217
|
+
translate={translate}
|
|
218
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
219
|
+
showDividers={dividersVisible}
|
|
220
|
+
>
|
|
221
|
+
<Heading5>{title}</Heading5>
|
|
222
|
+
<Button
|
|
223
|
+
ariaLabel={ariaLabel}
|
|
224
|
+
onClick={onClose}
|
|
225
|
+
size="small"
|
|
226
|
+
startIcon={<CloseIcon />}
|
|
227
|
+
variant="floating"
|
|
228
|
+
/>
|
|
229
|
+
</DrawerHeader>
|
|
230
|
+
<DrawerContent
|
|
231
|
+
showDividers={dividersVisible}
|
|
232
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
233
|
+
>
|
|
234
|
+
{children}
|
|
235
|
+
</DrawerContent>
|
|
236
|
+
</DrawerContentWrapper>
|
|
237
|
+
{hasFooter && (
|
|
238
|
+
<DrawerFooter
|
|
239
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
240
|
+
showDividers={dividersVisible}
|
|
241
|
+
>
|
|
242
|
+
{tertiaryCallToActionComponent}
|
|
243
|
+
{secondaryCallToActionComponent}
|
|
244
|
+
{primaryCallToActionComponent}
|
|
245
|
+
</DrawerFooter>
|
|
246
|
+
)}
|
|
247
|
+
</MuiDrawer>
|
|
248
|
+
);
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
const MemoizedDrawer = memo(Drawer);
|
|
252
|
+
MemoizedDrawer.displayName = "Drawer";
|
|
253
|
+
|
|
254
|
+
export { MemoizedDrawer as Drawer };
|
package/src/labs/GroupPicker.tsx
CHANGED
|
@@ -10,16 +10,20 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import type {
|
|
13
|
+
import type {
|
|
14
|
+
AutocompleteFreeSoloValueMapping,
|
|
15
|
+
AutocompleteGetTagProps,
|
|
16
|
+
} from "@mui/material/useAutocomplete";
|
|
14
17
|
|
|
15
18
|
import {
|
|
16
19
|
Autocomplete as MuiAutocomplete,
|
|
17
20
|
Avatar as MuiAvatar,
|
|
18
21
|
Box,
|
|
19
22
|
InputBase,
|
|
23
|
+
AutocompleteRenderInputParams,
|
|
20
24
|
} from "@mui/material";
|
|
21
25
|
import { avatarClasses } from "@mui/material/Avatar";
|
|
22
|
-
import { memo, useCallback } from "react";
|
|
26
|
+
import { HTMLAttributes, memo, useCallback } from "react";
|
|
23
27
|
|
|
24
28
|
import { AutocompleteProps } from "../Autocomplete";
|
|
25
29
|
import { Field } from "../Field";
|
|
@@ -41,7 +45,7 @@ export type GroupPickerOptionType = {
|
|
|
41
45
|
export type GroupPickerProps<
|
|
42
46
|
GroupPickerOptionType,
|
|
43
47
|
HasMultipleChoices extends boolean | undefined,
|
|
44
|
-
IsCustomValueAllowed extends boolean | undefined
|
|
48
|
+
IsCustomValueAllowed extends boolean | undefined,
|
|
45
49
|
> = AutocompleteProps<
|
|
46
50
|
GroupPickerOptionType,
|
|
47
51
|
HasMultipleChoices,
|
|
@@ -54,7 +58,7 @@ const avatarImageSizeMedium = 24;
|
|
|
54
58
|
const GroupPicker = <
|
|
55
59
|
OptionType extends GroupPickerOptionType,
|
|
56
60
|
HasMultipleChoices extends boolean | undefined,
|
|
57
|
-
IsCustomValueAllowed extends boolean | undefined
|
|
61
|
+
IsCustomValueAllowed extends boolean | undefined,
|
|
58
62
|
>({
|
|
59
63
|
hasMultipleChoices,
|
|
60
64
|
isCustomValueAllowed,
|
|
@@ -72,16 +76,26 @@ const GroupPicker = <
|
|
|
72
76
|
}: GroupPickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {
|
|
73
77
|
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
74
78
|
|
|
75
|
-
const isOptionEqualToValue = useCallback(
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
const isOptionEqualToValue = useCallback(
|
|
80
|
+
(sourceValue: OptionType, targetValue: OptionType) => {
|
|
81
|
+
return sourceValue.id === targetValue.id;
|
|
82
|
+
},
|
|
83
|
+
[],
|
|
84
|
+
);
|
|
78
85
|
|
|
79
|
-
const getOptionLabel = useCallback(
|
|
80
|
-
|
|
81
|
-
|
|
86
|
+
const getOptionLabel = useCallback(
|
|
87
|
+
(
|
|
88
|
+
option:
|
|
89
|
+
| OptionType
|
|
90
|
+
| AutocompleteFreeSoloValueMapping<IsCustomValueAllowed>,
|
|
91
|
+
) => {
|
|
92
|
+
return (option as OptionType).name;
|
|
93
|
+
},
|
|
94
|
+
[],
|
|
95
|
+
);
|
|
82
96
|
|
|
83
97
|
const renderOption = useCallback(
|
|
84
|
-
(props
|
|
98
|
+
(props: HTMLAttributes<HTMLElement>, option: OptionType) => {
|
|
85
99
|
return (
|
|
86
100
|
<li {...props} key={option.id}>
|
|
87
101
|
<Box
|
|
@@ -151,7 +165,7 @@ const GroupPicker = <
|
|
|
151
165
|
</li>
|
|
152
166
|
);
|
|
153
167
|
},
|
|
154
|
-
[odysseyDesignTokens]
|
|
168
|
+
[odysseyDesignTokens],
|
|
155
169
|
);
|
|
156
170
|
|
|
157
171
|
const renderTags = useCallback(
|
|
@@ -186,14 +200,19 @@ const GroupPicker = <
|
|
|
186
200
|
</Box>
|
|
187
201
|
);
|
|
188
202
|
}),
|
|
189
|
-
[odysseyDesignTokens]
|
|
203
|
+
[odysseyDesignTokens],
|
|
190
204
|
);
|
|
191
205
|
|
|
192
206
|
const renderInput = useCallback(
|
|
193
|
-
({
|
|
207
|
+
({
|
|
208
|
+
InputLabelProps,
|
|
209
|
+
InputProps,
|
|
210
|
+
...params
|
|
211
|
+
}: AutocompleteRenderInputParams) => (
|
|
194
212
|
<Field
|
|
195
213
|
fieldType="single"
|
|
196
214
|
hasVisibleLabel
|
|
215
|
+
//@ts-expect-error htmlFor is not available on the currently typed params
|
|
197
216
|
id={InputLabelProps.htmlFor}
|
|
198
217
|
hint={hint}
|
|
199
218
|
label={label}
|
|
@@ -209,7 +228,7 @@ const GroupPicker = <
|
|
|
209
228
|
)}
|
|
210
229
|
/>
|
|
211
230
|
),
|
|
212
|
-
[hint, isOptional, label]
|
|
231
|
+
[hint, isOptional, label],
|
|
213
232
|
);
|
|
214
233
|
|
|
215
234
|
return (
|
|
@@ -78,7 +78,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
78
78
|
useRef<MRT_Virtualizer<HTMLDivElement, HTMLTableRowElement>>(null);
|
|
79
79
|
|
|
80
80
|
const [columnFilters, setColumnFilters] = useState<MRT_ColumnFiltersState>(
|
|
81
|
-
[]
|
|
81
|
+
[],
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
const [globalFilter, setGlobalFilter] = useState<string>();
|
|
@@ -123,7 +123,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
123
123
|
/>
|
|
124
124
|
</Typography>
|
|
125
125
|
),
|
|
126
|
-
[fetchMoreData, totalFetchedRows]
|
|
126
|
+
[fetchMoreData, totalFetchedRows],
|
|
127
127
|
);
|
|
128
128
|
|
|
129
129
|
const renderTopToolbarCustomActions = useCallback<
|
|
@@ -135,7 +135,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
135
135
|
({ table }: { table: MRT_TableInstance<TData> }) => (
|
|
136
136
|
<>{ToolbarButtons && <ToolbarButtons table={table} />}</>
|
|
137
137
|
),
|
|
138
|
-
[ToolbarButtons]
|
|
138
|
+
[ToolbarButtons],
|
|
139
139
|
);
|
|
140
140
|
|
|
141
141
|
const [rowSelection, setRowSelection] = useState<MRT_RowSelectionState>({});
|
|
@@ -148,12 +148,13 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
148
148
|
initialState?.pagination || {
|
|
149
149
|
pageIndex: 0,
|
|
150
150
|
pageSize: rowsPerPage,
|
|
151
|
-
}
|
|
151
|
+
},
|
|
152
152
|
);
|
|
153
153
|
|
|
154
154
|
const dataLengthRef = useRef(data.length);
|
|
155
155
|
|
|
156
156
|
const updatePagination = useCallback(
|
|
157
|
+
// @ts-expect-error TEMP: This type aren't working after the upgrade, but they need to be fixed.
|
|
157
158
|
(paginationFunction) => {
|
|
158
159
|
if (data.length === dataLengthRef.current) {
|
|
159
160
|
setPagination((previousPagination) => {
|
|
@@ -164,7 +165,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
164
165
|
dataLengthRef.current = data.length;
|
|
165
166
|
}
|
|
166
167
|
},
|
|
167
|
-
[data.length]
|
|
168
|
+
[data.length],
|
|
168
169
|
);
|
|
169
170
|
|
|
170
171
|
useEffect(() => {
|
|
@@ -193,7 +194,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
193
194
|
pagination,
|
|
194
195
|
...initialState,
|
|
195
196
|
}),
|
|
196
|
-
[initialState, pagination]
|
|
197
|
+
[initialState, pagination],
|
|
197
198
|
);
|
|
198
199
|
|
|
199
200
|
const modifiedState = useMemo(
|
|
@@ -214,7 +215,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
214
215
|
globalFilter,
|
|
215
216
|
columnFilters,
|
|
216
217
|
state,
|
|
217
|
-
]
|
|
218
|
+
],
|
|
218
219
|
);
|
|
219
220
|
|
|
220
221
|
const muiToolbarAlertBannerProps: AlertProps = useMemo(
|
|
@@ -225,7 +226,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
225
226
|
severity: "error",
|
|
226
227
|
}
|
|
227
228
|
: {},
|
|
228
|
-
[hasError, t]
|
|
229
|
+
[hasError, t],
|
|
229
230
|
);
|
|
230
231
|
|
|
231
232
|
const muiTablePaginationProps = useMemo(
|
|
@@ -234,10 +235,11 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
234
235
|
showFirstButton: false,
|
|
235
236
|
showLastButton: false,
|
|
236
237
|
}),
|
|
237
|
-
[]
|
|
238
|
+
[],
|
|
238
239
|
);
|
|
239
240
|
|
|
240
241
|
const muiCheckboxStyles = useCallback(
|
|
242
|
+
// @ts-expect-error TEMP: This type aren't working after the upgrade, but they need to be fixed.
|
|
241
243
|
(theme) =>
|
|
242
244
|
typeof theme.components?.MuiCheckbox?.styleOverrides?.root === "function"
|
|
243
245
|
? theme.components?.MuiCheckbox?.styleOverrides?.root?.({
|
|
@@ -245,7 +247,7 @@ const PaginatedTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
245
247
|
theme,
|
|
246
248
|
})
|
|
247
249
|
: "",
|
|
248
|
-
[]
|
|
250
|
+
[],
|
|
249
251
|
);
|
|
250
252
|
|
|
251
253
|
const table = useMaterialReactTable({
|
package/src/labs/StaticTable.tsx
CHANGED
|
@@ -62,7 +62,7 @@ const StaticTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
62
62
|
useRef<MRT_Virtualizer<HTMLDivElement, HTMLTableRowElement>>(null);
|
|
63
63
|
|
|
64
64
|
const [columnFilters, setColumnFilters] = useState<MRT_ColumnFiltersState>(
|
|
65
|
-
[]
|
|
65
|
+
[],
|
|
66
66
|
);
|
|
67
67
|
|
|
68
68
|
const [globalFilter, setGlobalFilter] = useState<string>();
|
|
@@ -79,7 +79,7 @@ const StaticTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
79
79
|
columnFilters,
|
|
80
80
|
...state,
|
|
81
81
|
}),
|
|
82
|
-
[globalFilter, columnFilters, state]
|
|
82
|
+
[globalFilter, columnFilters, state],
|
|
83
83
|
);
|
|
84
84
|
|
|
85
85
|
const renderTopToolbarCustomActions = useCallback<
|
|
@@ -89,7 +89,7 @@ const StaticTable = <TData extends DefaultMaterialReactTableData>({
|
|
|
89
89
|
>
|
|
90
90
|
>(
|
|
91
91
|
({ table }) => <>{ToolbarButtons && <ToolbarButtons table={table} />}</>,
|
|
92
|
-
[ToolbarButtons]
|
|
92
|
+
[ToolbarButtons],
|
|
93
93
|
);
|
|
94
94
|
|
|
95
95
|
useEffect(() => {
|
package/src/labs/Switch.tsx
CHANGED
|
@@ -64,7 +64,7 @@ export type SwitchProps = {
|
|
|
64
64
|
"hint" | "id" | "isFullWidth" | "isDisabled" | "name"
|
|
65
65
|
> &
|
|
66
66
|
CheckedFieldProps<MuiSwitchProps> &
|
|
67
|
-
HtmlProps
|
|
67
|
+
Pick<HtmlProps, "testId">;
|
|
68
68
|
|
|
69
69
|
type SwitchLabelProps = {
|
|
70
70
|
checked: boolean;
|
|
@@ -143,7 +143,7 @@ const Switch = ({
|
|
|
143
143
|
getControlState({
|
|
144
144
|
controlledValue: isChecked,
|
|
145
145
|
uncontrolledValue: isDefaultChecked,
|
|
146
|
-
})
|
|
146
|
+
}),
|
|
147
147
|
);
|
|
148
148
|
const inputValues = useMemo(() => {
|
|
149
149
|
if (controlledStateRef.current === CONTROLLED) {
|
|
@@ -155,7 +155,7 @@ const Switch = ({
|
|
|
155
155
|
const [internalSwitchChecked, setInternalSwitchChecked] = useState(
|
|
156
156
|
controlledStateRef.current === CONTROLLED
|
|
157
157
|
? Boolean(isChecked)
|
|
158
|
-
: Boolean(isDefaultChecked)
|
|
158
|
+
: Boolean(isDefaultChecked),
|
|
159
159
|
);
|
|
160
160
|
|
|
161
161
|
useEffect(() => {
|
|
@@ -174,7 +174,7 @@ const Switch = ({
|
|
|
174
174
|
setInternalSwitchChecked(checked);
|
|
175
175
|
onChange?.({ checked, value });
|
|
176
176
|
},
|
|
177
|
-
[onChange, setInternalSwitchChecked, value]
|
|
177
|
+
[onChange, setInternalSwitchChecked, value],
|
|
178
178
|
);
|
|
179
179
|
|
|
180
180
|
const renderSwitchComponent = useMemo(
|
|
@@ -205,7 +205,7 @@ const Switch = ({
|
|
|
205
205
|
labelElementId,
|
|
206
206
|
_name,
|
|
207
207
|
testId,
|
|
208
|
-
]
|
|
208
|
+
],
|
|
209
209
|
);
|
|
210
210
|
|
|
211
211
|
return (
|