@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/Tabs.tsx
CHANGED
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
} from "@mui/lab";
|
|
27
27
|
import { Tab as MuiTab } from "@mui/material";
|
|
28
28
|
|
|
29
|
-
import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext";
|
|
30
29
|
import { Badge, BadgeProps } from "./Badge";
|
|
31
|
-
import { HtmlProps } from "./HtmlProps";
|
|
32
30
|
import { Box } from "./Box";
|
|
31
|
+
import { HtmlProps } from "./HtmlProps";
|
|
32
|
+
import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext";
|
|
33
33
|
|
|
34
34
|
export type TabItemProps = {
|
|
35
35
|
/**
|
|
@@ -55,13 +55,9 @@ export type TabItemProps = {
|
|
|
55
55
|
} & {
|
|
56
56
|
notificationCount?: BadgeProps["badgeContent"];
|
|
57
57
|
notificationCountMax?: BadgeProps["badgeContentMax"];
|
|
58
|
-
} & HtmlProps
|
|
58
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
59
59
|
|
|
60
60
|
export type TabsProps = {
|
|
61
|
-
/**
|
|
62
|
-
* The ARIA label for the full Tabs group
|
|
63
|
-
*/
|
|
64
|
-
ariaLabel?: string;
|
|
65
61
|
/**
|
|
66
62
|
* @deprecated please use the `value` prop instead
|
|
67
63
|
* When `value` is provided, `initialValue` isn't used.
|
|
@@ -123,7 +119,7 @@ const Tabs = ({
|
|
|
123
119
|
tabs,
|
|
124
120
|
value,
|
|
125
121
|
onChange: onChangeProp,
|
|
126
|
-
}: TabsProps) => {
|
|
122
|
+
}: TabsProps & Pick<HtmlProps, "ariaLabel">) => {
|
|
127
123
|
const [tabState, setTabState] = useState(initialValue ?? value ?? "0");
|
|
128
124
|
|
|
129
125
|
const onChange = useCallback<NonNullable<MuiTabListProps["onChange"]>>(
|
|
@@ -131,7 +127,7 @@ const Tabs = ({
|
|
|
131
127
|
setTabState(value);
|
|
132
128
|
onChangeProp?.(event, value);
|
|
133
129
|
},
|
|
134
|
-
[onChangeProp]
|
|
130
|
+
[onChangeProp],
|
|
135
131
|
);
|
|
136
132
|
|
|
137
133
|
useEffect(() => {
|
|
@@ -141,7 +137,7 @@ const Tabs = ({
|
|
|
141
137
|
}, [value]);
|
|
142
138
|
|
|
143
139
|
const renderTab = useCallback(
|
|
144
|
-
(tab, index) => {
|
|
140
|
+
(tab: TabItemProps, index: number) => {
|
|
145
141
|
const {
|
|
146
142
|
testId,
|
|
147
143
|
isDisabled,
|
|
@@ -172,7 +168,7 @@ const Tabs = ({
|
|
|
172
168
|
/>
|
|
173
169
|
);
|
|
174
170
|
},
|
|
175
|
-
[tabState]
|
|
171
|
+
[tabState],
|
|
176
172
|
);
|
|
177
173
|
|
|
178
174
|
return (
|
package/src/Tag.tsx
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { Chip as MuiChip, ChipProps as MuiChipProps } from "@mui/material";
|
|
14
14
|
import { memo, ReactElement, useCallback, useContext } from "react";
|
|
15
15
|
import { TagListContext } from "./TagListContext";
|
|
16
|
-
import { MuiPropsContext } from "./MuiPropsContext";
|
|
16
|
+
import { MuiPropsContext, MuiPropsContextType } from "./MuiPropsContext";
|
|
17
17
|
import { HtmlProps } from "./HtmlProps";
|
|
18
18
|
|
|
19
19
|
export type TagProps = {
|
|
@@ -31,7 +31,7 @@ export type TagProps = {
|
|
|
31
31
|
* Callback fired when the remove button of the Tag is clicked
|
|
32
32
|
*/
|
|
33
33
|
onRemove?: MuiChipProps["onDelete"];
|
|
34
|
-
} & HtmlProps
|
|
34
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
35
35
|
|
|
36
36
|
const Tag = ({
|
|
37
37
|
icon,
|
|
@@ -45,7 +45,7 @@ const Tag = ({
|
|
|
45
45
|
const { chipElementType } = useContext(TagListContext);
|
|
46
46
|
|
|
47
47
|
const renderTag = useCallback(
|
|
48
|
-
(muiProps) => (
|
|
48
|
+
(muiProps: MuiPropsContextType) => (
|
|
49
49
|
<MuiChip
|
|
50
50
|
{...muiProps}
|
|
51
51
|
aria-disabled={isDisabled}
|
|
@@ -69,7 +69,7 @@ const Tag = ({
|
|
|
69
69
|
onRemove,
|
|
70
70
|
testId,
|
|
71
71
|
translate,
|
|
72
|
-
]
|
|
72
|
+
],
|
|
73
73
|
);
|
|
74
74
|
|
|
75
75
|
return <MuiPropsContext.Consumer>{renderTag}</MuiPropsContext.Consumer>;
|
package/src/TagList.tsx
CHANGED
|
@@ -21,7 +21,7 @@ export type TagListProps = {
|
|
|
21
21
|
* The Tag or array of Tags within the TagList
|
|
22
22
|
*/
|
|
23
23
|
children: ReactElement<typeof Tag> | Array<ReactElement<typeof Tag>>;
|
|
24
|
-
} & HtmlProps
|
|
24
|
+
} & Pick<HtmlProps, "testId">;
|
|
25
25
|
|
|
26
26
|
const TagList = ({ children, testId }: TagListProps) => {
|
|
27
27
|
const providerValue = useMemo<{
|
|
@@ -30,7 +30,7 @@ const TagList = ({ children, testId }: TagListProps) => {
|
|
|
30
30
|
() => ({
|
|
31
31
|
chipElementType: "li",
|
|
32
32
|
}),
|
|
33
|
-
[]
|
|
33
|
+
[],
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
return (
|
package/src/TextField.tsx
CHANGED
|
@@ -23,7 +23,10 @@ import {
|
|
|
23
23
|
} from "react";
|
|
24
24
|
import { InputAdornment, InputBase } from "@mui/material";
|
|
25
25
|
|
|
26
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
FieldComponentProps,
|
|
28
|
+
FieldComponentRenderProps,
|
|
29
|
+
} from "./FieldComponentProps";
|
|
27
30
|
import { Field } from "./Field";
|
|
28
31
|
import { HtmlProps } from "./HtmlProps";
|
|
29
32
|
import { FocusHandle, useInputValues, getControlState } from "./inputUtils";
|
|
@@ -101,7 +104,12 @@ export type TextFieldProps = {
|
|
|
101
104
|
*/
|
|
102
105
|
value?: string;
|
|
103
106
|
} & FieldComponentProps &
|
|
104
|
-
HtmlProps
|
|
107
|
+
Pick<HtmlProps, "ariaDescribedBy" | "testId" | "translate">;
|
|
108
|
+
|
|
109
|
+
type FieldRenderProps = Partial<
|
|
110
|
+
Pick<FieldComponentRenderProps, "ariaDescribedBy" | "errorMessageElementId">
|
|
111
|
+
> &
|
|
112
|
+
Pick<FieldComponentRenderProps, "id" | "labelElementId">;
|
|
105
113
|
|
|
106
114
|
const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
107
115
|
(
|
|
@@ -135,13 +143,13 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
135
143
|
type = "text",
|
|
136
144
|
value: value,
|
|
137
145
|
},
|
|
138
|
-
ref
|
|
146
|
+
ref,
|
|
139
147
|
) => {
|
|
140
148
|
const controlledStateRef = useRef(
|
|
141
149
|
getControlState({
|
|
142
150
|
controlledValue: value,
|
|
143
151
|
uncontrolledValue: defaultValue,
|
|
144
|
-
})
|
|
152
|
+
}),
|
|
145
153
|
);
|
|
146
154
|
const inputValues = useInputValues({
|
|
147
155
|
defaultValue,
|
|
@@ -159,7 +167,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
159
167
|
},
|
|
160
168
|
};
|
|
161
169
|
},
|
|
162
|
-
[]
|
|
170
|
+
[],
|
|
163
171
|
);
|
|
164
172
|
|
|
165
173
|
const onChange = useCallback<
|
|
@@ -168,11 +176,16 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
168
176
|
(event) => {
|
|
169
177
|
onChangeProp?.(event);
|
|
170
178
|
},
|
|
171
|
-
[onChangeProp]
|
|
179
|
+
[onChangeProp],
|
|
172
180
|
);
|
|
173
181
|
|
|
174
182
|
const renderFieldComponent = useCallback(
|
|
175
|
-
({
|
|
183
|
+
({
|
|
184
|
+
ariaDescribedBy,
|
|
185
|
+
errorMessageElementId,
|
|
186
|
+
id,
|
|
187
|
+
labelElementId,
|
|
188
|
+
}: FieldRenderProps) => (
|
|
176
189
|
<InputBase
|
|
177
190
|
{...inputValues}
|
|
178
191
|
aria-describedby={ariaDescribedBy}
|
|
@@ -233,7 +246,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
233
246
|
testId,
|
|
234
247
|
translate,
|
|
235
248
|
type,
|
|
236
|
-
]
|
|
249
|
+
],
|
|
237
250
|
);
|
|
238
251
|
|
|
239
252
|
return (
|
|
@@ -253,7 +266,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
253
266
|
renderFieldComponent={renderFieldComponent}
|
|
254
267
|
/>
|
|
255
268
|
);
|
|
256
|
-
}
|
|
269
|
+
},
|
|
257
270
|
);
|
|
258
271
|
|
|
259
272
|
const MemoizedTextField = memo(TextField);
|
package/src/Tile.tsx
CHANGED
|
@@ -10,82 +10,111 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { ReactElement, memo, useMemo } from "react";
|
|
13
|
+
import { MouseEventHandler, ReactElement, memo, useMemo } from "react";
|
|
14
14
|
|
|
15
|
-
import { NullElement } from "./NullElement";
|
|
16
15
|
import {
|
|
17
16
|
Card as MuiCard,
|
|
18
17
|
CardActions as MuiCardActions,
|
|
19
18
|
CardActionArea as MuiCardActionArea,
|
|
20
19
|
} from "@mui/material";
|
|
20
|
+
import styled from "@emotion/styled";
|
|
21
|
+
|
|
21
22
|
import { Button } from "./Button";
|
|
22
23
|
import { ButtonContext } from "./ButtonContext";
|
|
23
|
-
import { Heading5, Paragraph, Support } from "./Typography";
|
|
24
24
|
import { MoreIcon } from "./icons.generated";
|
|
25
|
-
import {
|
|
26
|
-
import styled from "@emotion/styled";
|
|
25
|
+
import { MenuButton, MenuButtonProps } from "./MenuButton";
|
|
27
26
|
import {
|
|
28
27
|
DesignTokens,
|
|
29
28
|
useOdysseyDesignTokens,
|
|
30
29
|
} from "./OdysseyDesignTokensContext";
|
|
31
|
-
import {
|
|
30
|
+
import { Heading5, Paragraph, Support } from "./Typography";
|
|
31
|
+
|
|
32
|
+
export const TILE_IMAGE_HEIGHT = "64px";
|
|
32
33
|
|
|
33
34
|
export type TileProps = {
|
|
35
|
+
/**
|
|
36
|
+
* The body text of the tile. The consumer is responsible for truncating this string.
|
|
37
|
+
*/
|
|
34
38
|
description?: string;
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
/**
|
|
40
|
+
* An optional image or icon at the top of the tile, preferably as an <img> or <svg> element.
|
|
41
|
+
*/
|
|
42
|
+
image?: ReactElement; // Icon or image
|
|
43
|
+
/**
|
|
44
|
+
* The "eyebrow" text above the tile title.
|
|
45
|
+
*/
|
|
37
46
|
overline?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The heading of the tile.
|
|
49
|
+
*/
|
|
38
50
|
title?: string;
|
|
39
51
|
} & ( // You can't have actions and onClick at the same time
|
|
40
52
|
| {
|
|
41
|
-
|
|
53
|
+
/**
|
|
54
|
+
* The event handler for when the user clicks the tile.
|
|
55
|
+
*/
|
|
56
|
+
onClick: MouseEventHandler;
|
|
42
57
|
button?: never;
|
|
43
|
-
|
|
58
|
+
menuButtonChildren?: never;
|
|
44
59
|
}
|
|
45
60
|
| {
|
|
46
61
|
onClick?: never;
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
/**
|
|
63
|
+
* The main action button for the tile. Not valid if the tile itself is clickable.
|
|
64
|
+
*/
|
|
65
|
+
button?: ReactElement<typeof Button>;
|
|
66
|
+
/**
|
|
67
|
+
* Menu items to be rendered in the tile's optional menu button. If this prop is undefined, the
|
|
68
|
+
* menu button will not be shown. Not valid if the tile itself is clickable.
|
|
69
|
+
*/
|
|
70
|
+
menuButtonChildren?: MenuButtonProps["children"];
|
|
49
71
|
}
|
|
50
|
-
)
|
|
51
|
-
HtmlProps;
|
|
72
|
+
);
|
|
52
73
|
|
|
53
|
-
const ImageContainer = styled
|
|
74
|
+
const ImageContainer = styled("div", {
|
|
75
|
+
shouldForwardProp: (prop) =>
|
|
76
|
+
prop !== "odysseyDesignTokens" && prop !== "hasMenuButtonChildren",
|
|
77
|
+
})<{
|
|
54
78
|
odysseyDesignTokens: DesignTokens;
|
|
55
|
-
|
|
79
|
+
hasMenuButtonChildren: boolean;
|
|
56
80
|
}>`
|
|
57
81
|
display: flex;
|
|
58
82
|
align-items: flex-start;
|
|
59
|
-
max-height:
|
|
60
|
-
margin-block-end: ${(
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
max-height: ${TILE_IMAGE_HEIGHT};
|
|
84
|
+
margin-block-end: ${({ odysseyDesignTokens }) =>
|
|
85
|
+
odysseyDesignTokens.Spacing5};
|
|
86
|
+
padding-right: ${({ odysseyDesignTokens, hasMenuButtonChildren }) =>
|
|
87
|
+
hasMenuButtonChildren ? odysseyDesignTokens.Spacing5 : 0};
|
|
63
88
|
`;
|
|
64
89
|
|
|
65
|
-
const MenuButtonContainer = styled
|
|
90
|
+
const MenuButtonContainer = styled("div", {
|
|
91
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
92
|
+
})<{ odysseyDesignTokens: DesignTokens }>`
|
|
66
93
|
position: absolute;
|
|
67
|
-
right: ${(
|
|
68
|
-
top: ${(
|
|
94
|
+
right: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing3};
|
|
95
|
+
top: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing3};
|
|
69
96
|
`;
|
|
70
97
|
|
|
98
|
+
const buttonProviderValue = { isFullWidth: true };
|
|
99
|
+
|
|
71
100
|
const Tile = ({
|
|
72
101
|
button,
|
|
73
102
|
description,
|
|
74
103
|
image,
|
|
75
|
-
|
|
104
|
+
menuButtonChildren,
|
|
76
105
|
onClick,
|
|
77
106
|
overline,
|
|
78
107
|
title,
|
|
79
108
|
}: TileProps) => {
|
|
80
109
|
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
81
110
|
|
|
82
|
-
const cardContent = useMemo(
|
|
83
|
-
|
|
111
|
+
const cardContent = useMemo(
|
|
112
|
+
() => (
|
|
84
113
|
<>
|
|
85
114
|
{image && (
|
|
86
115
|
<ImageContainer
|
|
87
116
|
odysseyDesignTokens={odysseyDesignTokens}
|
|
88
|
-
|
|
117
|
+
hasMenuButtonChildren={Boolean(menuButtonChildren)}
|
|
89
118
|
>
|
|
90
119
|
{image}
|
|
91
120
|
</ImageContainer>
|
|
@@ -99,32 +128,33 @@ const Tile = ({
|
|
|
99
128
|
|
|
100
129
|
{button && (
|
|
101
130
|
<MuiCardActions>
|
|
102
|
-
<ButtonContext.Provider value={
|
|
131
|
+
<ButtonContext.Provider value={buttonProviderValue}>
|
|
103
132
|
{button}
|
|
104
133
|
</ButtonContext.Provider>
|
|
105
134
|
</MuiCardActions>
|
|
106
135
|
)}
|
|
107
136
|
</>
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
137
|
+
),
|
|
138
|
+
[
|
|
139
|
+
button,
|
|
140
|
+
description,
|
|
141
|
+
image,
|
|
142
|
+
menuButtonChildren,
|
|
143
|
+
overline,
|
|
144
|
+
title,
|
|
145
|
+
odysseyDesignTokens,
|
|
146
|
+
],
|
|
147
|
+
);
|
|
118
148
|
|
|
119
149
|
return (
|
|
120
150
|
<MuiCard className={onClick ? "isClickable" : ""}>
|
|
121
|
-
{onClick
|
|
151
|
+
{onClick ? (
|
|
122
152
|
<MuiCardActionArea onClick={onClick}>{cardContent}</MuiCardActionArea>
|
|
153
|
+
) : (
|
|
154
|
+
cardContent
|
|
123
155
|
)}
|
|
124
156
|
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
{menuItems && (
|
|
157
|
+
{menuButtonChildren && (
|
|
128
158
|
<MenuButtonContainer odysseyDesignTokens={odysseyDesignTokens}>
|
|
129
159
|
<MenuButton
|
|
130
160
|
endIcon={<MoreIcon />}
|
|
@@ -132,8 +162,9 @@ const Tile = ({
|
|
|
132
162
|
buttonVariant="floating"
|
|
133
163
|
menuAlignment="right"
|
|
134
164
|
size="small"
|
|
165
|
+
tooltipText="Actions"
|
|
135
166
|
>
|
|
136
|
-
{
|
|
167
|
+
{menuButtonChildren}
|
|
137
168
|
</MenuButton>
|
|
138
169
|
</MenuButtonContainer>
|
|
139
170
|
)}
|
package/src/Toast.tsx
CHANGED
package/src/Tooltip.tsx
CHANGED
package/src/Typography.tsx
CHANGED
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
Typography as MuiTypography,
|
|
15
|
-
TypographyProps as MuiTypographyProps,
|
|
16
|
-
} from "@mui/material";
|
|
17
13
|
import {
|
|
18
14
|
ElementType,
|
|
19
15
|
ReactNode,
|
|
@@ -22,6 +18,11 @@ import {
|
|
|
22
18
|
useRef,
|
|
23
19
|
useImperativeHandle,
|
|
24
20
|
} from "react";
|
|
21
|
+
import {
|
|
22
|
+
Typography as MuiTypography,
|
|
23
|
+
TypographyProps as MuiTypographyProps,
|
|
24
|
+
} from "@mui/material";
|
|
25
|
+
|
|
25
26
|
import { HtmlProps } from "./HtmlProps";
|
|
26
27
|
import { FocusHandle } from "./inputUtils";
|
|
27
28
|
|
|
@@ -62,18 +63,6 @@ export const typographyColorValues = [
|
|
|
62
63
|
] as const;
|
|
63
64
|
|
|
64
65
|
export type TypographyProps = {
|
|
65
|
-
/**
|
|
66
|
-
* The ID of the element that describes the component.
|
|
67
|
-
*/
|
|
68
|
-
ariaDescribedBy?: string;
|
|
69
|
-
/**
|
|
70
|
-
* The ARIA label for the component.
|
|
71
|
-
*/
|
|
72
|
-
ariaLabel?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The ID of the element that labels the component.
|
|
75
|
-
*/
|
|
76
|
-
ariaLabelledBy?: string;
|
|
77
66
|
/**
|
|
78
67
|
* The text content of the component.
|
|
79
68
|
*/
|
|
@@ -94,7 +83,10 @@ export type TypographyProps = {
|
|
|
94
83
|
* The variant of Typography to render.
|
|
95
84
|
*/
|
|
96
85
|
variant?: keyof typeof typographyVariantMapping;
|
|
97
|
-
} &
|
|
86
|
+
} & Pick<
|
|
87
|
+
HtmlProps,
|
|
88
|
+
"ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "testId" | "translate"
|
|
89
|
+
>;
|
|
98
90
|
|
|
99
91
|
const Typography = ({
|
|
100
92
|
ariaDescribedBy,
|
|
@@ -131,7 +123,7 @@ const Typography = ({
|
|
|
131
123
|
},
|
|
132
124
|
};
|
|
133
125
|
},
|
|
134
|
-
[]
|
|
126
|
+
[],
|
|
135
127
|
);
|
|
136
128
|
|
|
137
129
|
return (
|
|
@@ -171,7 +163,7 @@ const Heading1 = ({
|
|
|
171
163
|
children={children}
|
|
172
164
|
color={color}
|
|
173
165
|
component={component}
|
|
174
|
-
|
|
166
|
+
testId={testId}
|
|
175
167
|
translate={translate}
|
|
176
168
|
variant="h1"
|
|
177
169
|
/>
|
|
@@ -197,7 +189,7 @@ const Heading2 = ({
|
|
|
197
189
|
children={children}
|
|
198
190
|
color={color}
|
|
199
191
|
component={component}
|
|
200
|
-
|
|
192
|
+
testId={testId}
|
|
201
193
|
translate={translate}
|
|
202
194
|
variant="h2"
|
|
203
195
|
/>
|
|
@@ -223,7 +215,7 @@ const Heading3 = ({
|
|
|
223
215
|
children={children}
|
|
224
216
|
color={color}
|
|
225
217
|
component={component}
|
|
226
|
-
|
|
218
|
+
testId={testId}
|
|
227
219
|
translate={translate}
|
|
228
220
|
variant="h3"
|
|
229
221
|
/>
|
|
@@ -249,7 +241,7 @@ const Heading4 = ({
|
|
|
249
241
|
children={children}
|
|
250
242
|
color={color}
|
|
251
243
|
component={component}
|
|
252
|
-
|
|
244
|
+
testId={testId}
|
|
253
245
|
translate={translate}
|
|
254
246
|
variant="h4"
|
|
255
247
|
/>
|
|
@@ -275,7 +267,7 @@ const Heading5 = ({
|
|
|
275
267
|
children={children}
|
|
276
268
|
color={color}
|
|
277
269
|
component={component}
|
|
278
|
-
|
|
270
|
+
testId={testId}
|
|
279
271
|
translate={translate}
|
|
280
272
|
variant="h5"
|
|
281
273
|
/>
|
|
@@ -301,7 +293,7 @@ const Heading6 = ({
|
|
|
301
293
|
children={children}
|
|
302
294
|
color={color}
|
|
303
295
|
component={component}
|
|
304
|
-
|
|
296
|
+
testId={testId}
|
|
305
297
|
translate={translate}
|
|
306
298
|
variant="h6"
|
|
307
299
|
/>
|
|
@@ -327,7 +319,7 @@ const Paragraph = ({
|
|
|
327
319
|
children={children}
|
|
328
320
|
color={color}
|
|
329
321
|
component={component}
|
|
330
|
-
|
|
322
|
+
testId={testId}
|
|
331
323
|
translate={translate}
|
|
332
324
|
variant="body"
|
|
333
325
|
/>
|
|
@@ -353,7 +345,7 @@ const Subordinate = ({
|
|
|
353
345
|
children={children}
|
|
354
346
|
color={color}
|
|
355
347
|
component={component}
|
|
356
|
-
|
|
348
|
+
testId={testId}
|
|
357
349
|
translate={translate}
|
|
358
350
|
variant="subordinate"
|
|
359
351
|
/>
|
|
@@ -379,7 +371,7 @@ const Support = ({
|
|
|
379
371
|
children={children}
|
|
380
372
|
color={color}
|
|
381
373
|
component={component}
|
|
382
|
-
|
|
374
|
+
testId={testId}
|
|
383
375
|
translate={translate}
|
|
384
376
|
variant="support"
|
|
385
377
|
/>
|
|
@@ -405,7 +397,7 @@ const Legend = ({
|
|
|
405
397
|
children={children}
|
|
406
398
|
color={color}
|
|
407
399
|
component={component}
|
|
408
|
-
|
|
400
|
+
testId={testId}
|
|
409
401
|
translate={translate}
|
|
410
402
|
variant="legend"
|
|
411
403
|
/>
|