@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,26 +42,26 @@
|
|
|
42
42
|
"directory": "packages/odyssey-react-mui"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@emotion/cache": "^11.
|
|
46
|
-
"@emotion/react": "^11.11.
|
|
45
|
+
"@emotion/cache": "^11.11.0",
|
|
46
|
+
"@emotion/react": "^11.11.3",
|
|
47
47
|
"@emotion/styled": "^11.11.0",
|
|
48
|
-
"@mui/icons-material": "^5.
|
|
49
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
50
|
-
"@mui/material": "^5.
|
|
51
|
-
"@mui/system": "^5.
|
|
52
|
-
"@mui/utils": "^5.
|
|
48
|
+
"@mui/icons-material": "^5.15.10",
|
|
49
|
+
"@mui/lab": "^5.0.0-alpha.165",
|
|
50
|
+
"@mui/material": "^5.15.10",
|
|
51
|
+
"@mui/system": "^5.15.9",
|
|
52
|
+
"@mui/utils": "^5.15.9",
|
|
53
53
|
"@mui/x-date-pickers": "^5.0.15",
|
|
54
|
-
"@okta/odyssey-design-tokens": "1.
|
|
54
|
+
"@okta/odyssey-design-tokens": "^1.14.2",
|
|
55
55
|
"date-fns": "^2.30.0",
|
|
56
|
-
"i18next": "^23.
|
|
57
|
-
"material-react-table": "^2.
|
|
58
|
-
"react-i18next": "^
|
|
59
|
-
"
|
|
60
|
-
"word-wrap": "
|
|
56
|
+
"i18next": "^23.8.2",
|
|
57
|
+
"material-react-table": "^2.11.3",
|
|
58
|
+
"react-i18next": "^14.0.5",
|
|
59
|
+
"tsx": "^4.7.1",
|
|
60
|
+
"word-wrap": "^1.2.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": ">=17 <19",
|
|
64
64
|
"react-dom": ">=17 <19"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "0966a06e6eda85e0d9bae6a67988e08509feb82d"
|
|
67
67
|
}
|
|
@@ -37,8 +37,8 @@ readdir("./src/icons.generated")
|
|
|
37
37
|
filenames
|
|
38
38
|
.map((filename) => basename(filename, extname(filename)))
|
|
39
39
|
.map((filename) => `export * from "./${filename}";`)
|
|
40
|
-
.join("\n")
|
|
41
|
-
)
|
|
40
|
+
.join("\n"),
|
|
41
|
+
),
|
|
42
42
|
)
|
|
43
43
|
.then((content) => writeFile("./src/icons.generated/index.ts", content))
|
|
44
44
|
.then(() => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
/*!
|
|
2
3
|
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
4
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
@@ -10,87 +11,100 @@
|
|
|
10
11
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
|
-
//
|
|
14
|
+
// This was originally copied over from @okta/ui-build-tools' own internal node script:
|
|
14
15
|
// https://github.com/okta/ui-build-tools/blob/main/packages/clis/i18n/properties-to-json.js
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readFileSync,
|
|
19
|
-
writeFileSync,
|
|
20
|
-
rmSync,
|
|
17
|
+
import { basename, extname, join, resolve } from "node:path";
|
|
18
|
+
import {
|
|
21
19
|
existsSync,
|
|
22
20
|
mkdirSync,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
readFileSync,
|
|
22
|
+
rmSync,
|
|
23
|
+
writeFileSync,
|
|
24
|
+
} from "node:fs";
|
|
25
|
+
import { readdir } from "node:fs/promises";
|
|
26
|
+
import properties from "properties";
|
|
27
|
+
import { hideBin } from "yargs/helpers";
|
|
28
|
+
import yargs from "yargs/yargs";
|
|
28
29
|
|
|
29
|
-
const convert = (baseFiles, propertiesTargetDir) => {
|
|
30
|
-
|
|
31
|
-
const filename = basename(src);
|
|
30
|
+
const convert = (baseFiles: string[], propertiesTargetDir: string) => {
|
|
31
|
+
baseFiles.forEach((src) => {
|
|
32
32
|
const extension = extname(src);
|
|
33
|
+
const filename = basename(src, extension);
|
|
33
34
|
const source = `${readFileSync(src)}`;
|
|
34
35
|
|
|
35
|
-
properties.parse(source,
|
|
36
|
+
properties.parse(source, (error, propertiesJson) => {
|
|
36
37
|
if (error) {
|
|
37
38
|
return console.error(error);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
const targetFile = join(
|
|
41
|
-
|
|
42
|
-
filename.replace(extension, ".ts")
|
|
43
|
-
);
|
|
41
|
+
const targetFile = join(propertiesTargetDir, filename.concat(".ts"));
|
|
42
|
+
|
|
44
43
|
writeFileSync(
|
|
45
44
|
targetFile,
|
|
46
|
-
`export const translation = ${JSON.stringify(
|
|
45
|
+
`export const translation = ${JSON.stringify(propertiesJson)};`,
|
|
47
46
|
);
|
|
48
47
|
});
|
|
49
|
-
}
|
|
48
|
+
});
|
|
50
49
|
};
|
|
51
50
|
|
|
52
|
-
async function convertPropertiesToJson({
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
async function convertPropertiesToJson({
|
|
52
|
+
jsonOutputPath,
|
|
53
|
+
propertiesFilesPath,
|
|
54
|
+
}: {
|
|
55
|
+
jsonOutputPath: string;
|
|
56
|
+
propertiesFilesPath: string;
|
|
57
|
+
}) {
|
|
58
|
+
const sourceDirectory = resolve(propertiesFilesPath);
|
|
59
|
+
const propertiesTargetDirectory = resolve(jsonOutputPath);
|
|
55
60
|
|
|
56
61
|
if (!existsSync(sourceDirectory)) {
|
|
57
62
|
mkdirSync(sourceDirectory);
|
|
58
63
|
}
|
|
64
|
+
|
|
59
65
|
if (existsSync(propertiesTargetDirectory)) {
|
|
60
66
|
rmSync(propertiesTargetDirectory, { recursive: true, force: true });
|
|
61
67
|
}
|
|
68
|
+
|
|
62
69
|
mkdirSync(propertiesTargetDirectory);
|
|
63
70
|
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
const propertiesFilePaths = await readdir(sourceDirectory, {
|
|
72
|
+
recursive: true,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
convert(
|
|
76
|
+
propertiesFilePaths
|
|
77
|
+
.filter((propertiesFilePath) =>
|
|
78
|
+
propertiesFilePath.endsWith(".properties"),
|
|
79
|
+
)
|
|
80
|
+
.map((propertiesFilePath) => join(sourceDirectory, propertiesFilePath)),
|
|
81
|
+
propertiesTargetDirectory,
|
|
82
|
+
);
|
|
66
83
|
}
|
|
67
84
|
|
|
68
85
|
yargs(hideBin(process.argv))
|
|
69
86
|
.scriptName("properties-to-ts")
|
|
70
87
|
.usage("$0 <cmd> [args]")
|
|
71
88
|
.command(
|
|
72
|
-
"bundle",
|
|
73
|
-
"Converts properties
|
|
74
|
-
(yargs) =>
|
|
89
|
+
"bundle [propertiesFilesPath] [jsonOutputPath]",
|
|
90
|
+
"Converts `properties` files to TypeScript types.",
|
|
91
|
+
(yargs) =>
|
|
75
92
|
yargs
|
|
76
|
-
.positional("
|
|
77
|
-
type: "string",
|
|
93
|
+
.positional("propertiesFilesPath", {
|
|
78
94
|
default: "src/properties",
|
|
79
95
|
describe: "A relative path to resources based on cwd.",
|
|
80
|
-
})
|
|
81
|
-
.positional("targetJsonPath", {
|
|
82
96
|
type: "string",
|
|
97
|
+
})
|
|
98
|
+
.positional("jsonOutputPath", {
|
|
83
99
|
default: "src/properties/ts",
|
|
84
100
|
describe: "A relative path to directory for ts file output",
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const { resourcePath, targetJsonPath } = argv;
|
|
89
|
-
|
|
101
|
+
type: "string",
|
|
102
|
+
}),
|
|
103
|
+
(argv) => {
|
|
90
104
|
convertPropertiesToJson({
|
|
91
|
-
|
|
92
|
-
|
|
105
|
+
jsonOutputPath: argv.jsonOutputPath,
|
|
106
|
+
propertiesFilesPath: argv.propertiesFilesPath,
|
|
93
107
|
});
|
|
94
|
-
}
|
|
108
|
+
},
|
|
95
109
|
)
|
|
96
110
|
.help().argv;
|
|
@@ -0,0 +1,292 @@
|
|
|
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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Copied this in from a PR that will hopefully get merged:
|
|
17
|
+
* @see https://github.com/gagle/node-properties/pull/35
|
|
18
|
+
*/
|
|
19
|
+
declare module "properties" {
|
|
20
|
+
export interface ParseOptions {
|
|
21
|
+
/**
|
|
22
|
+
* By default `parse()` reads a String.
|
|
23
|
+
* If you want to read a file, set this option to true.
|
|
24
|
+
* If this option is used, the callback is mandatory.
|
|
25
|
+
* It gets 2 parameters, a possible error and the object with all the properties.
|
|
26
|
+
*/
|
|
27
|
+
path?: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Allows you to add additional comment tokens.
|
|
31
|
+
* The token must be a single printable non-whitespae ascii character.
|
|
32
|
+
* If the `strict` option is not set, the tokens `#` and `!` are parsed as comment tokens.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* comments: ";"
|
|
36
|
+
* @example
|
|
37
|
+
* comments: [";", "@"]
|
|
38
|
+
*/
|
|
39
|
+
comments?: string | string[];
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Allows you to add additional separator tokens.
|
|
43
|
+
* The token must be a single printable non-whitespae ascii character.
|
|
44
|
+
* If the `strict` option is not set, the tokens `=` and `:` are parsed as comment tokens.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* separators: "-"
|
|
48
|
+
* @example
|
|
49
|
+
* separators: ["-", ">"]
|
|
50
|
+
*/
|
|
51
|
+
separators?: string | string[];
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* This option can be used with the `comments` and `separators` options.
|
|
55
|
+
* If true, **only** the tokens specified in these options are used to parse comments and separators.
|
|
56
|
+
*/
|
|
57
|
+
strict?: boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Parses INI sections.
|
|
61
|
+
* Read the INI section for further details.
|
|
62
|
+
*
|
|
63
|
+
* @link https://www.npmjs.com/package/properties#ini
|
|
64
|
+
*/
|
|
65
|
+
sections?: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Parses dot separated keys as JavaScript objects.
|
|
69
|
+
*
|
|
70
|
+
* Look at the namespaces section for further details.
|
|
71
|
+
* @link https://www.npmjs.com/package/properties#namespaces
|
|
72
|
+
*/
|
|
73
|
+
namespaces?: boolean;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Allows you to read the value of a key while the file is being parsed.
|
|
77
|
+
*
|
|
78
|
+
* Look at the variables section for further details.
|
|
79
|
+
* @link https://www.npmjs.com/package/properties#variables
|
|
80
|
+
*/
|
|
81
|
+
variables?: boolean;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* External variables can be passed to the file if the variables option is enabled.
|
|
85
|
+
*
|
|
86
|
+
* Look at the variables section for further details.
|
|
87
|
+
* @link https://www.npmjs.com/package/properties#variables
|
|
88
|
+
*/
|
|
89
|
+
vars?: boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Files can be linked and imported with the include key.
|
|
93
|
+
* If this option is used, the callback is mandatory.
|
|
94
|
+
*
|
|
95
|
+
* Look at the include section for further details.
|
|
96
|
+
* @link https://www.npmjs.com/package/properties#include
|
|
97
|
+
*/
|
|
98
|
+
include?: boolean;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Each property or section can be removed or modified from the final object.
|
|
102
|
+
* It's similar to the reviver of the `JSON.parse()` function.
|
|
103
|
+
*
|
|
104
|
+
* The reviver it's exactly the same as the replacer from `stringify()`.
|
|
105
|
+
* The same function can be reused.
|
|
106
|
+
*
|
|
107
|
+
* The callback gets 3 parameters: key, value and section.
|
|
108
|
+
*
|
|
109
|
+
* A property has a key and a value and can belong to a section.
|
|
110
|
+
* If it's a global property, the section is set to null.
|
|
111
|
+
* If **undefined** is returned, the property will be removed from the final object, otherwise the returned value will be used as the property value.
|
|
112
|
+
*
|
|
113
|
+
* If the key and the value are set to null, then it's a section line.
|
|
114
|
+
* If it returns a falsy value, it won't be added to the final object, the entire section _including all the properties_ will be discarded.
|
|
115
|
+
* If it returns a truthy value, the section is parsed.
|
|
116
|
+
*
|
|
117
|
+
* For your convenience, to know whether the line is a property or section you can access to `this.isProperty` and `this.isSection` from inside the replacer function.
|
|
118
|
+
* Also, `this.assert()` can be used to return the default value, the unmodified value that will be used to parse the line.
|
|
119
|
+
*
|
|
120
|
+
* Look at the reviver example for further details.
|
|
121
|
+
* @link https://github.com/gagle/node-properties/blob/master/examples/reviver/reviver.js
|
|
122
|
+
*/
|
|
123
|
+
reviver?: (this: Context, key: any, value: any) => any;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface Context {
|
|
127
|
+
assert(): any;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Parses a .properties string.
|
|
132
|
+
*
|
|
133
|
+
* @param data
|
|
134
|
+
* @param options
|
|
135
|
+
*/
|
|
136
|
+
export function parse(data: string, options?: ParseOptions): object;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Parses a .properties string.
|
|
140
|
+
*
|
|
141
|
+
* If a callback is given, the result is returned as the second parameter. Some options will require a callback.
|
|
142
|
+
*
|
|
143
|
+
* @param data
|
|
144
|
+
* @param cb
|
|
145
|
+
*/
|
|
146
|
+
export function parse(
|
|
147
|
+
data: string,
|
|
148
|
+
cb: (err: Error, result: { [key: string]: unknown } | undefined) => void,
|
|
149
|
+
): void;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Parses a .properties string.
|
|
153
|
+
*
|
|
154
|
+
* If a callback is given, the result is returned as the second parameter. Some options will require a callback.
|
|
155
|
+
*
|
|
156
|
+
* @param data
|
|
157
|
+
* @param options
|
|
158
|
+
* @param cb
|
|
159
|
+
*/
|
|
160
|
+
export function parse(
|
|
161
|
+
data: string,
|
|
162
|
+
options: ParseOptions | undefined,
|
|
163
|
+
cb: (err: Error, result: { [key: string]: unknown } | undefined) => void,
|
|
164
|
+
): void;
|
|
165
|
+
|
|
166
|
+
export interface StringifyOptions {
|
|
167
|
+
/**
|
|
168
|
+
* By default `stringify()` returns a string.
|
|
169
|
+
* If you want to write it to a file, use this option and pass the path of a file.
|
|
170
|
+
* If this option is used, the callback is mandatory.
|
|
171
|
+
* It gets two parameters, a possible error and the string.
|
|
172
|
+
*/
|
|
173
|
+
path?: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The token to use to write comments.
|
|
177
|
+
* It must be a single printable non-whitespace ascii character.
|
|
178
|
+
* @default `#`
|
|
179
|
+
*/
|
|
180
|
+
comment?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The token to use to separate keys from values.
|
|
184
|
+
* It must be a single printable non-whitespace ascii character.
|
|
185
|
+
* @default `=`
|
|
186
|
+
*/
|
|
187
|
+
separator?: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The .properties specification uses iso 8859-1 (latin-1) as a default encoding.
|
|
191
|
+
* In the other hand, Node.js has a utf8 default encoding.
|
|
192
|
+
* This means that if you want a full compatibility with Java, that is, you are generating a .properties file that is going to be read by a Java program, then set this option to true.
|
|
193
|
+
* This will encode all ascii extended and multibyte characters to their unicode string representation (`\uXXXX`).
|
|
194
|
+
*
|
|
195
|
+
* Non-printable control codes (control sets 0 and 1) are always encoded as unicode strings except `\t`, `\n`, `\f` and `\r`.
|
|
196
|
+
*
|
|
197
|
+
* If you are in a platform that can handle utf8 strings, e.g. Node.js, you don't need to use this option.
|
|
198
|
+
*/
|
|
199
|
+
unicode?: boolean;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Each property or section can be removed or modified from the final string.
|
|
203
|
+
* It's similar to the replacer of the `JSON.stringify()` function.
|
|
204
|
+
*
|
|
205
|
+
* The replacer it's exatcly the same as the reviver from `parse()`.
|
|
206
|
+
* The same function can be reused.
|
|
207
|
+
*
|
|
208
|
+
* The callback gets three parameters: key, value and section.
|
|
209
|
+
*
|
|
210
|
+
* A property has a key and a value and can belong to a section.
|
|
211
|
+
* If it's a global property, the section is set to null.
|
|
212
|
+
* If **undefined** is returned, the property won't be stringified, otherwise the returned value will be used as the property value.
|
|
213
|
+
*
|
|
214
|
+
* If the key and the value are set to null, then it's a section line.
|
|
215
|
+
* If it returns a falsy value, it won't be added to the final string, the entire section _including all the properties_ will be discarded.
|
|
216
|
+
* If it returns a truthy value, the section is stringified.
|
|
217
|
+
*
|
|
218
|
+
* For your convenience, to know whether the line is a property or section you can access to `this.isProperty` and `this.isSection` from inside the replacer function.
|
|
219
|
+
* Also, `this.assert()` can be used to return the default value, the unmodified value that will be used to stringify the line.
|
|
220
|
+
*
|
|
221
|
+
* Look at the replacer example for further details.
|
|
222
|
+
* @link https://github.com/gagle/node-properties/blob/master/examples/replacer.js
|
|
223
|
+
*/
|
|
224
|
+
replacer?: (this: Context, key: string, value: any) => any;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Stringifies an `object` or a `Stringifier`.
|
|
229
|
+
*
|
|
230
|
+
* If you don't need to add sections or comments simply pass an object, otherwise use a `Stringifier`.
|
|
231
|
+
*
|
|
232
|
+
* @param obj
|
|
233
|
+
* @param options
|
|
234
|
+
*/
|
|
235
|
+
export function stringify(obj: object, options?: StringifyOptions): string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Stringifies an `object` or a `Stringifier`.
|
|
239
|
+
*
|
|
240
|
+
* If you don't need to add sections or comments simply pass an object, otherwise use a `Stringifier`.
|
|
241
|
+
*
|
|
242
|
+
* The callback is only necessary when the `path` option is used.
|
|
243
|
+
*
|
|
244
|
+
* @param obj
|
|
245
|
+
* @param options
|
|
246
|
+
* @param cb
|
|
247
|
+
*/
|
|
248
|
+
export function stringify(
|
|
249
|
+
obj: object,
|
|
250
|
+
options: StringifyOptions | undefined,
|
|
251
|
+
cb: (err: Error, result: string) => void,
|
|
252
|
+
): void;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* This class is used when you want to add sections or comments to the final string.
|
|
256
|
+
*
|
|
257
|
+
* To create a Stringifier use the `createStringifier()` function.
|
|
258
|
+
*
|
|
259
|
+
* Look at the stringify-ini example for further details.
|
|
260
|
+
* @link https://github.com/gagle/node-properties/blob/master/examples/ini/stringify-ini.js
|
|
261
|
+
*/
|
|
262
|
+
export interface Stringifier {
|
|
263
|
+
/**
|
|
264
|
+
* Writes a header comment.
|
|
265
|
+
* It will be written to the top of the final string.
|
|
266
|
+
* Returns the Stringifier being used.
|
|
267
|
+
*/
|
|
268
|
+
header(comment: string): this;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Writes a property line.
|
|
272
|
+
* It takes an object with three options: `key`, `value` and comment.
|
|
273
|
+
* Both the key and the value are converted into a string automatically.
|
|
274
|
+
* Returns the Stringifier being used.
|
|
275
|
+
*/
|
|
276
|
+
property(obj: { key?: string; value?: string; comment?: string }): this;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Writes a section line.
|
|
280
|
+
* It gets an object with two options: `name` and `comment`.
|
|
281
|
+
* The name is converted into a string.
|
|
282
|
+
* If you don't need to write a comment, you can pass the name instead of an object.
|
|
283
|
+
* Returns the stringifier being used.
|
|
284
|
+
*/
|
|
285
|
+
section(obj: string | { name: string; comment?: string }): this;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Returns a new `Stringifier` instance.
|
|
290
|
+
*/
|
|
291
|
+
export function createStringifier(): Stringifier;
|
|
292
|
+
}
|
package/src/Accordion.tsx
CHANGED
package/src/Autocomplete.tsx
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
InputBase,
|
|
17
17
|
UseAutocompleteProps,
|
|
18
18
|
AutocompleteValue,
|
|
19
|
+
AutocompleteRenderInputParams,
|
|
19
20
|
} from "@mui/material";
|
|
20
21
|
import { memo, useCallback, useMemo, useRef } from "react";
|
|
21
22
|
|
|
@@ -31,7 +32,7 @@ import {
|
|
|
31
32
|
export type AutocompleteProps<
|
|
32
33
|
OptionType,
|
|
33
34
|
HasMultipleChoices extends boolean | undefined,
|
|
34
|
-
IsCustomValueAllowed extends boolean | undefined
|
|
35
|
+
IsCustomValueAllowed extends boolean | undefined,
|
|
35
36
|
> = {
|
|
36
37
|
/**
|
|
37
38
|
* The default value. Use when the component is not controlled.
|
|
@@ -161,7 +162,6 @@ export type AutocompleteProps<
|
|
|
161
162
|
getIsOptionEqualToValue?: (option: OptionType, value: OptionType) => boolean;
|
|
162
163
|
} & Pick<
|
|
163
164
|
FieldComponentProps,
|
|
164
|
-
| "ariaDescribedBy"
|
|
165
165
|
| "errorMessage"
|
|
166
166
|
| "errorMessageList"
|
|
167
167
|
| "hint"
|
|
@@ -171,12 +171,12 @@ export type AutocompleteProps<
|
|
|
171
171
|
| "isOptional"
|
|
172
172
|
| "name"
|
|
173
173
|
> &
|
|
174
|
-
HtmlProps
|
|
174
|
+
Pick<HtmlProps, "ariaDescribedBy" | "testId" | "translate">;
|
|
175
175
|
|
|
176
176
|
const Autocomplete = <
|
|
177
177
|
OptionType,
|
|
178
178
|
HasMultipleChoices extends boolean | undefined,
|
|
179
|
-
IsCustomValueAllowed extends boolean | undefined
|
|
179
|
+
IsCustomValueAllowed extends boolean | undefined,
|
|
180
180
|
>({
|
|
181
181
|
ariaDescribedBy,
|
|
182
182
|
defaultValue,
|
|
@@ -206,7 +206,10 @@ const Autocomplete = <
|
|
|
206
206
|
translate,
|
|
207
207
|
}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {
|
|
208
208
|
const controlledStateRef = useRef(
|
|
209
|
-
getControlState({
|
|
209
|
+
getControlState({
|
|
210
|
+
controlledValue: value,
|
|
211
|
+
uncontrolledValue: defaultValue,
|
|
212
|
+
}),
|
|
210
213
|
);
|
|
211
214
|
const defaultValueProp = useMemo<
|
|
212
215
|
| AutocompleteValue<
|
|
@@ -245,13 +248,18 @@ const Autocomplete = <
|
|
|
245
248
|
}, [inputValue]);
|
|
246
249
|
|
|
247
250
|
const renderInput = useCallback(
|
|
248
|
-
({
|
|
251
|
+
({
|
|
252
|
+
InputLabelProps,
|
|
253
|
+
InputProps,
|
|
254
|
+
...params
|
|
255
|
+
}: AutocompleteRenderInputParams) => (
|
|
249
256
|
<Field
|
|
250
257
|
ariaDescribedBy={ariaDescribedBy}
|
|
251
258
|
errorMessage={errorMessage}
|
|
252
259
|
errorMessageList={errorMessageList}
|
|
253
260
|
fieldType="single"
|
|
254
261
|
hasVisibleLabel
|
|
262
|
+
//@ts-expect-error htmlFor does not exist ont he InputLabelProps for autocomplete
|
|
255
263
|
id={InputLabelProps.htmlFor}
|
|
256
264
|
hint={hint}
|
|
257
265
|
HintLinkComponent={HintLinkComponent}
|
|
@@ -290,7 +298,7 @@ const Autocomplete = <
|
|
|
290
298
|
label,
|
|
291
299
|
nameOverride,
|
|
292
300
|
testId,
|
|
293
|
-
]
|
|
301
|
+
],
|
|
294
302
|
);
|
|
295
303
|
const onChange = useCallback<
|
|
296
304
|
NonNullable<
|
|
@@ -305,7 +313,7 @@ const Autocomplete = <
|
|
|
305
313
|
(event, value, reason, details) => {
|
|
306
314
|
onChangeProp?.(event, value, reason, details);
|
|
307
315
|
},
|
|
308
|
-
[onChangeProp]
|
|
316
|
+
[onChangeProp],
|
|
309
317
|
);
|
|
310
318
|
|
|
311
319
|
const onInputChange = useCallback<
|
|
@@ -321,7 +329,7 @@ const Autocomplete = <
|
|
|
321
329
|
(event, value, reason) => {
|
|
322
330
|
onInputChangeProp?.(event, value, reason);
|
|
323
331
|
},
|
|
324
|
-
[onInputChangeProp]
|
|
332
|
+
[onInputChangeProp],
|
|
325
333
|
);
|
|
326
334
|
|
|
327
335
|
return (
|
package/src/Badge.tsx
CHANGED
|
@@ -27,7 +27,7 @@ export type BadgeProps = {
|
|
|
27
27
|
badgeContent: number;
|
|
28
28
|
badgeContentMax?: BadgeContentMax;
|
|
29
29
|
type?: (typeof badgeTypeValues)[number];
|
|
30
|
-
} & HtmlProps
|
|
30
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
31
31
|
|
|
32
32
|
const badgeTypeColors = (odysseyTokens: DesignTokens) => ({
|
|
33
33
|
default: {
|
package/src/Banner.tsx
CHANGED
package/src/Box.tsx
CHANGED
|
@@ -20,7 +20,7 @@ export type BoxProps = {
|
|
|
20
20
|
component?: MuiBoxProps["component"];
|
|
21
21
|
id?: MuiBoxProps["id"];
|
|
22
22
|
sx?: MuiBoxProps["sx"];
|
|
23
|
-
} & HtmlProps
|
|
23
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
24
24
|
|
|
25
25
|
const Box = forwardRef<HTMLElement, BoxProps>(
|
|
26
26
|
({ children, component, id, sx, testId, translate }, ref) => (
|
|
@@ -33,7 +33,7 @@ const Box = forwardRef<HTMLElement, BoxProps>(
|
|
|
33
33
|
sx={sx}
|
|
34
34
|
translate={translate}
|
|
35
35
|
/>
|
|
36
|
-
)
|
|
36
|
+
),
|
|
37
37
|
);
|
|
38
38
|
|
|
39
39
|
const MemoizedBox = memo(Box);
|
package/src/Breadcrumbs.tsx
CHANGED
|
@@ -43,7 +43,7 @@ export type BreadcrumbsProps = {
|
|
|
43
43
|
children: ReactElement<typeof Breadcrumb>[];
|
|
44
44
|
homeHref?: string;
|
|
45
45
|
maxVisibleItems?: number;
|
|
46
|
-
} & HtmlProps
|
|
46
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
47
47
|
|
|
48
48
|
export type BreadcrumbContextType = {
|
|
49
49
|
breadcrumbType: BreadcrumbType;
|
|
@@ -130,7 +130,7 @@ const BreadcrumbList = ({
|
|
|
130
130
|
|
|
131
131
|
const onMenuButtonClick = useCallback<MouseEventHandler<HTMLButtonElement>>(
|
|
132
132
|
(event) => setAnchorEl(event.currentTarget),
|
|
133
|
-
[]
|
|
133
|
+
[],
|
|
134
134
|
);
|
|
135
135
|
const onCloseMenu = useCallback(() => {
|
|
136
136
|
setAnchorEl(null);
|