@okta/odyssey-react-mui 0.24.0 → 1.0.1
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 +72 -0
- package/README.md +8 -11
- package/dist/Autocomplete.js +2 -1
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Banner.js +11 -4
- package/dist/Banner.js.map +1 -1
- package/dist/{src/theme/OdysseyTheme.d.ts → Box.js} +20 -12
- package/dist/Box.js.map +1 -0
- package/dist/Button.js +23 -9
- package/dist/Button.js.map +1 -1
- package/dist/{Infobox.js → Callout.js} +18 -9
- package/dist/Callout.js.map +1 -0
- package/dist/Checkbox.js +17 -12
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js +2 -1
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/CircularProgress.js +3 -1
- package/dist/CircularProgress.js.map +1 -1
- package/dist/Dialog.js +15 -9
- package/dist/Dialog.js.map +1 -1
- package/dist/Field.js +11 -4
- package/dist/Field.js.map +1 -1
- package/dist/FieldError.js +3 -2
- package/dist/FieldError.js.map +1 -1
- package/dist/FieldHint.js +3 -2
- package/dist/FieldHint.js.map +1 -1
- package/dist/FieldLabel.js +5 -3
- package/dist/FieldLabel.js.map +1 -1
- package/dist/Fieldset.js +25 -17
- package/dist/Fieldset.js.map +1 -1
- package/{src/theme/useTheme.ts → dist/FieldsetContext.js} +6 -6
- package/dist/FieldsetContext.js.map +1 -0
- package/dist/Form.js +25 -13
- package/dist/Form.js.map +1 -1
- package/dist/Link.js +17 -22
- package/dist/Link.js.map +1 -1
- package/dist/MenuButton.js +41 -22
- package/dist/MenuButton.js.map +1 -1
- package/dist/{src/theme/useTheme.d.ts → MenuContext.js} +7 -3
- package/dist/MenuContext.js.map +1 -0
- package/dist/MenuItem.js +23 -10
- package/dist/MenuItem.js.map +1 -1
- package/dist/MuiPropsChild.js +1 -0
- package/dist/MuiPropsChild.js.map +1 -1
- package/dist/MuiPropsContext.js +2 -1
- package/dist/MuiPropsContext.js.map +1 -1
- package/dist/NativeSelect.js.map +1 -1
- package/dist/NullElement.js +2 -0
- package/dist/NullElement.js.map +1 -0
- package/dist/OdysseyCacheProvider.js +6 -3
- package/dist/OdysseyCacheProvider.js.map +1 -1
- package/dist/OdysseyDesignTokensContext.js +17 -0
- package/dist/OdysseyDesignTokensContext.js.map +1 -0
- package/dist/OdysseyI18n.js +12 -8
- package/dist/OdysseyI18n.js.map +1 -1
- package/dist/OdysseyProvider.js +4 -2
- package/dist/OdysseyProvider.js.map +1 -1
- package/dist/OdysseyThemeProvider.js +15 -8
- package/dist/OdysseyThemeProvider.js.map +1 -1
- package/dist/OdysseyTranslationProvider.js.map +1 -1
- package/dist/OdysseyTranslationProvider.types.js +1 -1
- package/dist/OdysseyTranslationProvider.types.js.map +1 -1
- package/dist/PasswordField.js +7 -5
- package/dist/PasswordField.js.map +1 -1
- package/dist/Radio.js +5 -6
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +1 -0
- package/dist/RadioGroup.js.map +1 -1
- package/dist/ScreenReaderText.js +5 -2
- package/dist/ScreenReaderText.js.map +1 -1
- package/dist/SearchField.js +36 -5
- package/dist/SearchField.js.map +1 -1
- package/dist/Select.js +6 -5
- package/dist/Select.js.map +1 -1
- package/dist/Status.js +10 -4
- package/dist/Status.js.map +1 -1
- package/dist/SvgIcon.js.map +1 -0
- package/dist/Tabs.js +6 -4
- package/dist/Tabs.js.map +1 -1
- package/dist/Tag.js +12 -3
- package/dist/Tag.js.map +1 -1
- package/dist/TagList.js +3 -0
- package/dist/TagList.js.map +1 -1
- package/dist/TextField.js +1 -0
- package/dist/TextField.js.map +1 -1
- package/dist/Toast.js +12 -5
- package/dist/Toast.js.map +1 -1
- package/dist/ToastStack.js +10 -6
- package/dist/ToastStack.js.map +1 -1
- package/dist/Tooltip.js +2 -2
- package/dist/Tooltip.js.map +1 -1
- package/dist/Typography.js +283 -0
- package/dist/Typography.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Add.js +5 -5
- package/dist/icons.generated/Add.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/AddCircle.js +5 -5
- package/dist/icons.generated/AddCircle.js.map +1 -0
- package/dist/icons.generated/Apps.js +33 -0
- package/dist/icons.generated/Apps.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ArrowDown.js +5 -5
- package/dist/icons.generated/ArrowDown.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ArrowLeft.js +5 -5
- package/dist/icons.generated/ArrowLeft.js.map +1 -0
- package/dist/icons.generated/ArrowLowerLeft.js +33 -0
- package/dist/icons.generated/ArrowLowerLeft.js.map +1 -0
- package/dist/icons.generated/ArrowLowerRight.js +33 -0
- package/dist/icons.generated/ArrowLowerRight.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ArrowRight.js +5 -5
- package/dist/icons.generated/ArrowRight.js.map +1 -0
- package/dist/icons.generated/ArrowUnsorted.js +33 -0
- package/dist/icons.generated/ArrowUnsorted.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ArrowUp.js +5 -5
- package/dist/icons.generated/ArrowUp.js.map +1 -0
- package/dist/icons.generated/ArrowUpperLeft.js +33 -0
- package/dist/icons.generated/ArrowUpperLeft.js.map +1 -0
- package/dist/icons.generated/ArrowUpperRight.js +33 -0
- package/dist/icons.generated/ArrowUpperRight.js.map +1 -0
- package/dist/icons.generated/Bug.js +33 -0
- package/dist/icons.generated/Bug.js.map +1 -0
- package/dist/icons.generated/Calendar.js +33 -0
- package/dist/icons.generated/Calendar.js.map +1 -0
- package/dist/icons.generated/Call.js +33 -0
- package/dist/icons.generated/Call.js.map +1 -0
- package/dist/icons.generated/Chat.js +33 -0
- package/dist/icons.generated/Chat.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Check.js +5 -5
- package/dist/icons.generated/Check.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/CheckCircleFilled.js +5 -5
- package/dist/icons.generated/CheckCircleFilled.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ChevronDown.js +5 -5
- package/dist/icons.generated/ChevronDown.js.map +1 -0
- package/dist/icons.generated/ChevronLeft.js +33 -0
- package/dist/icons.generated/ChevronLeft.js.map +1 -0
- package/dist/icons.generated/ChevronRight.js +33 -0
- package/dist/icons.generated/ChevronRight.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ChevronUp.js +5 -5
- package/dist/icons.generated/ChevronUp.js.map +1 -0
- package/dist/icons.generated/Clock.js +33 -0
- package/dist/icons.generated/Clock.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Close.js +5 -5
- package/dist/icons.generated/Close.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/CloseCircleFilled.js +5 -5
- package/dist/icons.generated/CloseCircleFilled.js.map +1 -0
- package/dist/{iconDictionary/OverflowVertical.js → icons.generated/CollapseLeft.js} +8 -8
- package/dist/icons.generated/CollapseLeft.js.map +1 -0
- package/dist/icons.generated/CollapseRight.js +33 -0
- package/dist/icons.generated/CollapseRight.js.map +1 -0
- package/dist/icons.generated/Copy.js +33 -0
- package/dist/icons.generated/Copy.js.map +1 -0
- package/dist/icons.generated/DangerDiamond.js +33 -0
- package/dist/icons.generated/DangerDiamond.js.map +1 -0
- package/dist/icons.generated/DangerDiamondFilled.js +33 -0
- package/dist/icons.generated/DangerDiamondFilled.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Delete.js +5 -5
- package/dist/icons.generated/Delete.js.map +1 -0
- package/dist/icons.generated/Deny.js +33 -0
- package/dist/icons.generated/Deny.js.map +1 -0
- package/dist/icons.generated/Devices.js +33 -0
- package/dist/icons.generated/Devices.js.map +1 -0
- package/dist/icons.generated/Directory.js +33 -0
- package/dist/icons.generated/Directory.js.map +1 -0
- package/dist/icons.generated/Documentation.js +33 -0
- package/dist/icons.generated/Documentation.js.map +1 -0
- package/dist/icons.generated/Download.js +33 -0
- package/dist/icons.generated/Download.js.map +1 -0
- package/dist/icons.generated/DragIndicator.js +33 -0
- package/dist/icons.generated/DragIndicator.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Edit.js +5 -5
- package/dist/icons.generated/Edit.js.map +1 -0
- package/dist/icons.generated/ExpandLeft.js +33 -0
- package/dist/icons.generated/ExpandLeft.js.map +1 -0
- package/dist/{iconDictionary/ArrowUpDown.js → icons.generated/ExpandRight.js} +8 -8
- package/dist/icons.generated/ExpandRight.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/ExternalLink.js +5 -5
- package/dist/icons.generated/ExternalLink.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Filter.js +5 -5
- package/dist/icons.generated/Filter.js.map +1 -0
- package/dist/icons.generated/Folder.js +33 -0
- package/dist/icons.generated/Folder.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Globe.js +5 -5
- package/dist/icons.generated/Globe.js.map +1 -0
- package/dist/icons.generated/Grid.js +74 -0
- package/dist/icons.generated/Grid.js.map +1 -0
- package/dist/icons.generated/Group.js +33 -0
- package/dist/icons.generated/Group.js.map +1 -0
- package/dist/icons.generated/Hide.js +33 -0
- package/dist/icons.generated/Hide.js.map +1 -0
- package/dist/icons.generated/Home.js +33 -0
- package/dist/icons.generated/Home.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/InformationCircle.js +5 -5
- package/dist/icons.generated/InformationCircle.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/InformationCircleFilled.js +5 -5
- package/dist/icons.generated/InformationCircleFilled.js.map +1 -0
- package/dist/icons.generated/Link.js +33 -0
- package/dist/icons.generated/Link.js.map +1 -0
- package/dist/icons.generated/List.js +33 -0
- package/dist/icons.generated/List.js.map +1 -0
- package/dist/{iconDictionary/AlertCircle.js → icons.generated/Lock.js} +8 -8
- package/dist/icons.generated/Lock.js.map +1 -0
- package/dist/icons.generated/More.js +33 -0
- package/dist/icons.generated/More.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Notification.js +5 -5
- package/dist/icons.generated/Notification.js.map +1 -0
- package/dist/icons.generated/Pause.js +33 -0
- package/dist/icons.generated/Pause.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/QuestionCircle.js +5 -5
- package/dist/icons.generated/QuestionCircle.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/QuestionCircleFilled.js +5 -5
- package/dist/icons.generated/QuestionCircleFilled.js.map +1 -0
- package/dist/icons.generated/Refresh.js +33 -0
- package/dist/icons.generated/Refresh.js.map +1 -0
- package/dist/icons.generated/Reset.js +33 -0
- package/dist/icons.generated/Reset.js.map +1 -0
- package/dist/icons.generated/Resume.js +33 -0
- package/dist/icons.generated/Resume.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Search.js +5 -5
- package/dist/icons.generated/Search.js.map +1 -0
- package/dist/icons.generated/Server.js +33 -0
- package/dist/icons.generated/Server.js.map +1 -0
- package/dist/icons.generated/Settings.js +33 -0
- package/dist/icons.generated/Settings.js.map +1 -0
- package/dist/icons.generated/Show.js +33 -0
- package/dist/icons.generated/Show.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/Subtract.js +5 -5
- package/dist/icons.generated/Subtract.js.map +1 -0
- package/dist/{iconDictionary/AlertTriangleFilled.js → icons.generated/Sync.js} +8 -8
- package/dist/icons.generated/Sync.js.map +1 -0
- package/dist/{iconDictionary/AlertCircleFilled.js → icons.generated/Unlock.js} +8 -8
- package/dist/icons.generated/Unlock.js.map +1 -0
- package/dist/icons.generated/Upload.js +33 -0
- package/dist/icons.generated/Upload.js.map +1 -0
- package/dist/{iconDictionary → icons.generated}/User.js +5 -5
- package/dist/icons.generated/User.js.map +1 -0
- package/dist/icons.generated/Video.js +33 -0
- package/dist/icons.generated/Video.js.map +1 -0
- package/dist/icons.generated/Warning.js +33 -0
- package/dist/icons.generated/Warning.js.map +1 -0
- package/dist/icons.generated/WarningFilled.js +33 -0
- package/dist/icons.generated/WarningFilled.js.map +1 -0
- package/dist/icons.generated/index.js +85 -0
- package/dist/icons.generated/index.js.map +1 -0
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/labs/DatePicker.js +42 -0
- package/dist/labs/DatePicker.js.map +1 -0
- package/{src/iconDictionary/SvgIcon.ts → dist/labs/DatePicker.types.js} +2 -4
- package/dist/labs/DatePicker.types.js.map +1 -0
- package/dist/labs/PaginatedTable.js +170 -0
- package/dist/labs/PaginatedTable.js.map +1 -0
- package/dist/labs/StaticTable.js +82 -0
- package/dist/labs/StaticTable.js.map +1 -0
- package/dist/labs/datePickerTheme.js +456 -0
- package/dist/labs/datePickerTheme.js.map +1 -0
- package/dist/{src/a11yCheck.d.ts → labs/index.js} +9 -3
- package/dist/labs/index.js.map +1 -0
- package/dist/labs/materialReactTableTypes.js +2 -0
- package/dist/labs/materialReactTableTypes.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui.js +7 -2
- package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_cs.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_da.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_de.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_el.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_es.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_hu.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_id.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_it.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ok_PL.js +11 -0
- package/dist/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ok_SK.js +11 -0
- package/dist/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_pl.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ro.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_th.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js +15 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_vi.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -0
- package/{src/theme/temp.ts → dist/scripts/generateIconsIndex.d.ts} +2 -8
- package/dist/scripts/generateIconsIndex.d.ts.map +1 -0
- package/dist/src/Autocomplete.d.ts +34 -1
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Banner.d.ts +4 -2
- package/dist/src/Banner.d.ts.map +1 -1
- package/dist/src/Box.d.ts +21 -0
- package/dist/src/Box.d.ts.map +1 -0
- package/dist/src/Button.d.ts +66 -9
- package/dist/src/Button.d.ts.map +1 -1
- package/dist/src/{Infobox.d.ts → Callout.d.ts} +12 -11
- package/dist/src/Callout.d.ts.map +1 -0
- package/dist/src/Checkbox.d.ts +39 -6
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +19 -1
- package/dist/src/CheckboxGroup.d.ts.map +1 -1
- package/dist/src/CircularProgress.d.ts +9 -1
- package/dist/src/CircularProgress.d.ts.map +1 -1
- package/dist/src/Dialog.d.ts +29 -7
- package/dist/src/Dialog.d.ts.map +1 -1
- package/dist/src/Field.d.ts +6 -2
- package/dist/src/Field.d.ts.map +1 -1
- package/dist/src/FieldError.d.ts.map +1 -1
- package/dist/src/FieldHint.d.ts.map +1 -1
- package/dist/src/FieldLabel.d.ts.map +1 -1
- package/dist/src/Fieldset.d.ts +16 -12
- package/dist/src/Fieldset.d.ts.map +1 -1
- package/dist/src/FieldsetContext.d.ts +18 -0
- package/dist/src/FieldsetContext.d.ts.map +1 -0
- package/dist/src/Form.d.ts +31 -28
- package/dist/src/Form.d.ts.map +1 -1
- package/dist/src/Link.d.ts +23 -4
- package/dist/src/Link.d.ts.map +1 -1
- package/dist/src/MenuButton.d.ts +40 -10
- package/dist/src/MenuButton.d.ts.map +1 -1
- package/dist/src/MenuContext.d.ts +18 -0
- package/dist/src/MenuContext.d.ts.map +1 -0
- package/dist/src/MenuItem.d.ts +32 -6
- package/dist/src/MenuItem.d.ts.map +1 -1
- package/dist/src/MuiPropsChild.d.ts.map +1 -1
- package/dist/src/MuiPropsContext.d.ts +1 -0
- package/dist/src/MuiPropsContext.d.ts.map +1 -1
- package/dist/src/NativeSelect.d.ts +39 -0
- package/dist/src/NativeSelect.d.ts.map +1 -1
- package/dist/src/{theme/temp.d.ts → NullElement.d.ts} +2 -5
- package/dist/src/NullElement.d.ts.map +1 -0
- package/dist/src/OdysseyCacheProvider.d.ts +8 -5
- package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/src/OdysseyDesignTokensContext.d.ts +16 -0
- package/dist/src/OdysseyDesignTokensContext.d.ts.map +1 -0
- package/dist/src/OdysseyI18n.d.ts +400 -25
- package/dist/src/OdysseyI18n.d.ts.map +1 -1
- package/dist/src/OdysseyProvider.d.ts +7 -13
- package/dist/src/OdysseyProvider.d.ts.map +1 -1
- package/dist/src/OdysseyThemeProvider.d.ts +9 -8
- package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts +3 -4
- package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.types.d.ts +1 -1
- package/dist/src/OdysseyTranslationProvider.types.d.ts.map +1 -1
- package/dist/src/PasswordField.d.ts.map +1 -1
- package/dist/src/Radio.d.ts +20 -3
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/RadioGroup.d.ts +7 -7
- package/dist/src/RadioGroup.d.ts.map +1 -1
- package/dist/src/ScreenReaderText.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +4 -0
- package/dist/src/SearchField.d.ts.map +1 -1
- package/dist/src/Select.d.ts +37 -1
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/Status.d.ts +11 -5
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/{iconDictionary/types.d.ts → SvgIcon.d.ts} +4 -2
- package/dist/src/SvgIcon.d.ts.map +1 -0
- package/dist/src/Tabs.d.ts +31 -7
- package/dist/src/Tabs.d.ts.map +1 -1
- package/dist/src/Tag.d.ts +15 -5
- package/dist/src/Tag.d.ts.map +1 -1
- package/dist/src/TagList.d.ts +4 -1
- package/dist/src/TagList.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +4 -4
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Toast.d.ts +11 -10
- package/dist/src/Toast.d.ts.map +1 -1
- package/dist/src/ToastStack.d.ts +3 -0
- package/dist/src/ToastStack.d.ts.map +1 -1
- package/dist/src/Tooltip.d.ts +15 -3
- package/dist/src/Tooltip.d.ts.map +1 -1
- package/dist/src/Typography.d.ts +95 -0
- package/dist/src/Typography.d.ts.map +1 -0
- package/dist/src/icons.generated/Add.d.ts +16 -0
- package/dist/src/icons.generated/Add.d.ts.map +1 -0
- package/dist/src/icons.generated/AddCircle.d.ts +16 -0
- package/dist/src/icons.generated/AddCircle.d.ts.map +1 -0
- package/dist/src/icons.generated/Apps.d.ts +16 -0
- package/dist/src/icons.generated/Apps.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowDown.d.ts +16 -0
- package/dist/src/icons.generated/ArrowDown.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowLeft.d.ts +16 -0
- package/dist/src/icons.generated/ArrowLeft.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts +16 -0
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowLowerRight.d.ts +16 -0
- package/dist/src/icons.generated/ArrowLowerRight.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowRight.d.ts +16 -0
- package/dist/src/icons.generated/ArrowRight.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowUnsorted.d.ts +16 -0
- package/dist/src/icons.generated/ArrowUnsorted.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowUp.d.ts +16 -0
- package/dist/src/icons.generated/ArrowUp.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts +16 -0
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowUpperRight.d.ts +16 -0
- package/dist/src/icons.generated/ArrowUpperRight.d.ts.map +1 -0
- package/dist/src/icons.generated/Bug.d.ts +16 -0
- package/dist/src/icons.generated/Bug.d.ts.map +1 -0
- package/dist/src/icons.generated/Calendar.d.ts +16 -0
- package/dist/src/icons.generated/Calendar.d.ts.map +1 -0
- package/dist/src/icons.generated/Call.d.ts +16 -0
- package/dist/src/icons.generated/Call.d.ts.map +1 -0
- package/dist/src/icons.generated/Chat.d.ts +16 -0
- package/dist/src/icons.generated/Chat.d.ts.map +1 -0
- package/dist/src/{iconDictionary/InformationCircleFilled.d.ts → icons.generated/Check.d.ts} +4 -4
- package/dist/src/icons.generated/Check.d.ts.map +1 -0
- package/dist/src/icons.generated/CheckCircleFilled.d.ts +16 -0
- package/dist/src/icons.generated/CheckCircleFilled.d.ts.map +1 -0
- package/dist/src/icons.generated/ChevronDown.d.ts +16 -0
- package/dist/src/icons.generated/ChevronDown.d.ts.map +1 -0
- package/dist/src/icons.generated/ChevronLeft.d.ts +16 -0
- package/dist/src/icons.generated/ChevronLeft.d.ts.map +1 -0
- package/dist/src/icons.generated/ChevronRight.d.ts +16 -0
- package/dist/src/icons.generated/ChevronRight.d.ts.map +1 -0
- package/dist/src/icons.generated/ChevronUp.d.ts +16 -0
- package/dist/src/icons.generated/ChevronUp.d.ts.map +1 -0
- package/dist/src/icons.generated/Clock.d.ts +16 -0
- package/dist/src/icons.generated/Clock.d.ts.map +1 -0
- package/dist/src/icons.generated/Close.d.ts +16 -0
- package/dist/src/icons.generated/Close.d.ts.map +1 -0
- package/dist/src/icons.generated/CloseCircleFilled.d.ts +16 -0
- package/dist/src/icons.generated/CloseCircleFilled.d.ts.map +1 -0
- package/dist/src/icons.generated/CollapseLeft.d.ts +16 -0
- package/dist/src/icons.generated/CollapseLeft.d.ts.map +1 -0
- package/dist/src/icons.generated/CollapseRight.d.ts +16 -0
- package/dist/src/icons.generated/CollapseRight.d.ts.map +1 -0
- package/dist/src/icons.generated/Copy.d.ts +16 -0
- package/dist/src/icons.generated/Copy.d.ts.map +1 -0
- package/dist/src/icons.generated/DangerDiamond.d.ts +16 -0
- package/dist/src/icons.generated/DangerDiamond.d.ts.map +1 -0
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts +16 -0
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts.map +1 -0
- package/dist/src/icons.generated/Delete.d.ts +16 -0
- package/dist/src/icons.generated/Delete.d.ts.map +1 -0
- package/dist/src/icons.generated/Deny.d.ts +16 -0
- package/dist/src/icons.generated/Deny.d.ts.map +1 -0
- package/dist/src/icons.generated/Devices.d.ts +16 -0
- package/dist/src/icons.generated/Devices.d.ts.map +1 -0
- package/dist/src/icons.generated/Directory.d.ts +16 -0
- package/dist/src/icons.generated/Directory.d.ts.map +1 -0
- package/dist/src/icons.generated/Documentation.d.ts +16 -0
- package/dist/src/icons.generated/Documentation.d.ts.map +1 -0
- package/dist/src/icons.generated/Download.d.ts +16 -0
- package/dist/src/icons.generated/Download.d.ts.map +1 -0
- package/dist/src/icons.generated/DragIndicator.d.ts +16 -0
- package/dist/src/icons.generated/DragIndicator.d.ts.map +1 -0
- package/dist/src/icons.generated/Edit.d.ts +16 -0
- package/dist/src/icons.generated/Edit.d.ts.map +1 -0
- package/dist/src/icons.generated/ExpandLeft.d.ts +16 -0
- package/dist/src/icons.generated/ExpandLeft.d.ts.map +1 -0
- package/dist/src/icons.generated/ExpandRight.d.ts +16 -0
- package/dist/src/icons.generated/ExpandRight.d.ts.map +1 -0
- package/dist/src/icons.generated/ExternalLink.d.ts +16 -0
- package/dist/src/icons.generated/ExternalLink.d.ts.map +1 -0
- package/dist/src/icons.generated/Filter.d.ts +16 -0
- package/dist/src/icons.generated/Filter.d.ts.map +1 -0
- package/dist/src/icons.generated/Folder.d.ts +16 -0
- package/dist/src/icons.generated/Folder.d.ts.map +1 -0
- package/dist/src/icons.generated/Globe.d.ts +16 -0
- package/dist/src/icons.generated/Globe.d.ts.map +1 -0
- package/dist/src/icons.generated/Grid.d.ts +16 -0
- package/dist/src/icons.generated/Grid.d.ts.map +1 -0
- package/dist/src/icons.generated/Group.d.ts +16 -0
- package/dist/src/icons.generated/Group.d.ts.map +1 -0
- package/dist/src/icons.generated/Hide.d.ts +16 -0
- package/dist/src/icons.generated/Hide.d.ts.map +1 -0
- package/dist/src/icons.generated/Home.d.ts +16 -0
- package/dist/src/icons.generated/Home.d.ts.map +1 -0
- package/dist/src/icons.generated/InformationCircle.d.ts +16 -0
- package/dist/src/icons.generated/InformationCircle.d.ts.map +1 -0
- package/dist/src/icons.generated/InformationCircleFilled.d.ts +16 -0
- package/dist/src/icons.generated/InformationCircleFilled.d.ts.map +1 -0
- package/dist/src/icons.generated/Link.d.ts +16 -0
- package/dist/src/icons.generated/Link.d.ts.map +1 -0
- package/dist/src/icons.generated/List.d.ts +16 -0
- package/dist/src/icons.generated/List.d.ts.map +1 -0
- package/dist/src/icons.generated/Lock.d.ts +16 -0
- package/dist/src/icons.generated/Lock.d.ts.map +1 -0
- package/dist/src/icons.generated/More.d.ts +16 -0
- package/dist/src/icons.generated/More.d.ts.map +1 -0
- package/dist/src/icons.generated/Notification.d.ts +16 -0
- package/dist/src/icons.generated/Notification.d.ts.map +1 -0
- package/dist/src/icons.generated/Pause.d.ts +16 -0
- package/dist/src/icons.generated/Pause.d.ts.map +1 -0
- package/dist/src/icons.generated/QuestionCircle.d.ts +16 -0
- package/dist/src/icons.generated/QuestionCircle.d.ts.map +1 -0
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts +16 -0
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts.map +1 -0
- package/dist/src/icons.generated/Refresh.d.ts +16 -0
- package/dist/src/icons.generated/Refresh.d.ts.map +1 -0
- package/dist/src/icons.generated/Reset.d.ts +16 -0
- package/dist/src/icons.generated/Reset.d.ts.map +1 -0
- package/dist/src/icons.generated/Resume.d.ts +16 -0
- package/dist/src/icons.generated/Resume.d.ts.map +1 -0
- package/dist/src/icons.generated/Search.d.ts +16 -0
- package/dist/src/icons.generated/Search.d.ts.map +1 -0
- package/dist/src/icons.generated/Server.d.ts +16 -0
- package/dist/src/icons.generated/Server.d.ts.map +1 -0
- package/dist/src/icons.generated/Settings.d.ts +16 -0
- package/dist/src/icons.generated/Settings.d.ts.map +1 -0
- package/dist/src/icons.generated/Show.d.ts +16 -0
- package/dist/src/icons.generated/Show.d.ts.map +1 -0
- package/dist/src/icons.generated/Subtract.d.ts +16 -0
- package/dist/src/icons.generated/Subtract.d.ts.map +1 -0
- package/dist/src/icons.generated/Sync.d.ts +16 -0
- package/dist/src/icons.generated/Sync.d.ts.map +1 -0
- package/dist/src/icons.generated/Unlock.d.ts +16 -0
- package/dist/src/icons.generated/Unlock.d.ts.map +1 -0
- package/dist/src/icons.generated/Upload.d.ts +16 -0
- package/dist/src/icons.generated/Upload.d.ts.map +1 -0
- package/dist/src/icons.generated/User.d.ts +16 -0
- package/dist/src/icons.generated/User.d.ts.map +1 -0
- package/dist/src/icons.generated/Video.d.ts +16 -0
- package/dist/src/icons.generated/Video.d.ts.map +1 -0
- package/dist/src/icons.generated/Warning.d.ts +16 -0
- package/dist/src/icons.generated/Warning.d.ts.map +1 -0
- package/dist/src/icons.generated/WarningFilled.d.ts +16 -0
- package/dist/src/icons.generated/WarningFilled.d.ts.map +1 -0
- package/dist/src/icons.generated/index.d.ts +85 -0
- package/dist/src/icons.generated/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +29 -18
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/labs/DatePicker.d.ts +19 -0
- package/dist/src/labs/DatePicker.d.ts.map +1 -0
- package/dist/src/labs/DatePicker.types.d.ts +19 -0
- package/dist/src/labs/DatePicker.types.d.ts.map +1 -0
- package/dist/src/labs/PaginatedTable.d.ts +35 -0
- package/dist/src/labs/PaginatedTable.d.ts.map +1 -0
- package/dist/src/labs/StaticTable.d.ts +29 -0
- package/dist/src/labs/StaticTable.d.ts.map +1 -0
- package/dist/src/{iconDictionary/SvgIcon.d.ts → labs/datePickerTheme.d.ts} +3 -3
- package/dist/src/labs/datePickerTheme.d.ts.map +1 -0
- package/dist/src/labs/index.d.ts +21 -0
- package/dist/src/labs/index.d.ts.map +1 -0
- package/dist/src/labs/materialReactTableTypes.d.ts +15 -0
- package/dist/src/labs/materialReactTableTypes.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui.d.ts +7 -2
- package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts +11 -0
- package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts +11 -0
- package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +15 -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 +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +15 -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 +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -0
- package/dist/src/theme/components.d.ts +2 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/src/theme/components.types.d.ts +4 -2
- package/dist/src/theme/components.types.d.ts.map +1 -1
- package/dist/src/theme/index.d.ts +0 -3
- package/dist/src/theme/index.d.ts.map +1 -1
- package/dist/src/theme/mixins.d.ts +2 -2
- package/dist/src/theme/mixins.d.ts.map +1 -1
- package/dist/src/theme/palette.d.ts +2 -2
- package/dist/src/theme/palette.d.ts.map +1 -1
- package/dist/src/theme/shape.d.ts +2 -2
- package/dist/src/theme/shape.d.ts.map +1 -1
- package/dist/src/theme/spacing.d.ts +2 -2
- package/dist/src/theme/spacing.d.ts.map +1 -1
- package/dist/src/theme/theme.d.ts +4 -3
- package/dist/src/theme/theme.d.ts.map +1 -1
- package/dist/src/theme/typography.d.ts +2 -2
- package/dist/src/theme/typography.d.ts.map +1 -1
- package/dist/src/theme/typography.types.d.ts +2 -2
- package/dist/src/theme/typography.types.d.ts.map +1 -1
- package/dist/theme/components.js +1674 -1757
- package/dist/theme/components.js.map +1 -1
- package/dist/theme/components.types.js.map +1 -1
- package/dist/theme/index.js +0 -1
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/mixins.js +4 -4
- package/dist/theme/mixins.js.map +1 -1
- package/dist/theme/palette.js +50 -51
- package/dist/theme/palette.js.map +1 -1
- package/dist/theme/shape.js +1 -1
- package/dist/theme/shape.js.map +1 -1
- package/dist/theme/spacing.js +1 -2
- package/dist/theme/spacing.js.map +1 -1
- package/dist/theme/theme.js +8 -12
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/typography.js +76 -46
- package/dist/theme/typography.js.map +1 -1
- package/dist/theme/typography.types.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/i18n.config.json +0 -1
- package/package.json +27 -11
- package/scripts/generateIconsIndex.ts +49 -0
- package/scripts/properties-to-ts.js +8 -15
- package/src/Autocomplete.tsx +36 -1
- package/src/Banner.tsx +15 -5
- package/src/Box.tsx +35 -0
- package/src/Button.tsx +100 -19
- package/src/{Infobox.tsx → Callout.tsx} +23 -14
- package/src/Checkbox.tsx +64 -14
- package/src/CheckboxGroup.tsx +20 -1
- package/src/CircularProgress.tsx +13 -1
- package/src/Dialog.tsx +44 -16
- package/src/Field.tsx +18 -4
- package/src/FieldError.tsx +2 -1
- package/src/FieldHint.tsx +2 -1
- package/src/FieldLabel.tsx +4 -5
- package/src/Fieldset.tsx +45 -34
- package/src/FieldsetContext.tsx +23 -0
- package/src/Form.tsx +54 -44
- package/src/Link.tsx +49 -29
- package/src/MenuButton.tsx +89 -39
- package/src/{theme/OdysseyTheme.ts → MenuContext.ts} +11 -11
- package/src/MenuItem.tsx +67 -23
- package/src/MuiPropsChild.tsx +1 -0
- package/src/MuiPropsContext.ts +3 -1
- package/src/NativeSelect.tsx +39 -0
- package/{dist/theme/temp.js → src/NullElement.tsx} +1 -4
- package/src/OdysseyCacheProvider.test.tsx +1 -1
- package/src/OdysseyCacheProvider.tsx +13 -7
- package/src/OdysseyDesignTokensContext.tsx +19 -0
- package/src/OdysseyI18n.ts +12 -8
- package/src/OdysseyProvider.tsx +19 -18
- package/src/OdysseyThemeProvider.tsx +30 -13
- package/src/OdysseyTranslationProvider.tsx +7 -7
- package/src/OdysseyTranslationProvider.types.ts +6 -4
- package/src/PasswordField.tsx +8 -7
- package/src/Radio.tsx +23 -7
- package/src/RadioGroup.tsx +8 -7
- package/src/ScreenReaderText.tsx +6 -2
- package/src/SearchField.tsx +55 -5
- package/src/Select.tsx +42 -4
- package/src/Status.tsx +26 -9
- package/src/{iconDictionary/types.ts → SvgIcon.ts} +4 -1
- package/src/Tabs.tsx +40 -7
- package/src/Tag.tsx +34 -14
- package/src/TagList.tsx +12 -2
- package/src/TextField.tsx +11 -4
- package/src/Toast.tsx +22 -19
- package/src/ToastStack.tsx +12 -2
- package/src/Tooltip.tsx +15 -3
- package/src/Typography.tsx +357 -0
- package/src/{iconDictionary → icons.generated}/Add.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/AddCircle.tsx +4 -5
- package/src/icons.generated/Apps.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/ArrowDown.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/ArrowLeft.tsx +4 -5
- package/src/{iconDictionary/OverflowVertical.tsx → icons.generated/ArrowLowerLeft.tsx} +8 -9
- package/src/icons.generated/ArrowLowerRight.tsx +44 -0
- package/src/{iconDictionary → icons.generated}/ArrowRight.tsx +4 -5
- package/src/{iconDictionary/AlertCircleFilled.tsx → icons.generated/ArrowUnsorted.tsx} +8 -9
- package/src/{iconDictionary → icons.generated}/ArrowUp.tsx +4 -5
- package/src/icons.generated/ArrowUpperLeft.tsx +44 -0
- package/src/icons.generated/ArrowUpperRight.tsx +44 -0
- package/src/{iconDictionary/Eye.tsx → icons.generated/Bug.tsx} +7 -8
- package/src/icons.generated/Calendar.tsx +43 -0
- package/src/icons.generated/Call.tsx +43 -0
- package/src/icons.generated/Chat.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/Check.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/CheckCircleFilled.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/ChevronDown.tsx +4 -5
- package/src/icons.generated/ChevronLeft.tsx +43 -0
- package/src/icons.generated/ChevronRight.tsx +44 -0
- package/src/{iconDictionary → icons.generated}/ChevronUp.tsx +4 -5
- package/src/icons.generated/Clock.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/Close.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/CloseCircleFilled.tsx +4 -5
- package/src/icons.generated/CollapseLeft.tsx +44 -0
- package/src/icons.generated/CollapseRight.tsx +44 -0
- package/src/icons.generated/Copy.tsx +43 -0
- package/src/icons.generated/DangerDiamond.tsx +44 -0
- package/src/icons.generated/DangerDiamondFilled.tsx +44 -0
- package/src/{iconDictionary → icons.generated}/Delete.tsx +4 -5
- package/src/icons.generated/Deny.tsx +43 -0
- package/src/{iconDictionary/AlertCircle.tsx → icons.generated/Devices.tsx} +7 -8
- package/src/icons.generated/Directory.tsx +43 -0
- package/src/icons.generated/Documentation.tsx +44 -0
- package/src/icons.generated/Download.tsx +43 -0
- package/src/icons.generated/DragIndicator.tsx +44 -0
- package/src/{iconDictionary → icons.generated}/Edit.tsx +4 -5
- package/src/icons.generated/ExpandLeft.tsx +43 -0
- package/src/icons.generated/ExpandRight.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/ExternalLink.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/Filter.tsx +4 -5
- package/src/icons.generated/Folder.tsx +43 -0
- package/src/icons.generated/Globe.tsx +43 -0
- package/src/icons.generated/Grid.tsx +46 -0
- package/src/{iconDictionary/Globe.tsx → icons.generated/Group.tsx} +7 -8
- package/src/icons.generated/Hide.tsx +43 -0
- package/src/icons.generated/Home.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/InformationCircle.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/InformationCircleFilled.tsx +4 -5
- package/src/icons.generated/Link.tsx +43 -0
- package/src/icons.generated/List.tsx +43 -0
- package/src/icons.generated/Lock.tsx +43 -0
- package/src/icons.generated/More.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/Notification.tsx +4 -5
- package/src/icons.generated/Pause.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/QuestionCircle.tsx +4 -5
- package/src/{iconDictionary → icons.generated}/QuestionCircleFilled.tsx +4 -5
- package/src/icons.generated/Refresh.tsx +43 -0
- package/src/icons.generated/Reset.tsx +43 -0
- package/src/icons.generated/Resume.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/Search.tsx +4 -5
- package/src/icons.generated/Server.tsx +43 -0
- package/src/icons.generated/Settings.tsx +43 -0
- package/src/icons.generated/Show.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/Subtract.tsx +4 -5
- package/src/{iconDictionary/Copy.tsx → icons.generated/Sync.tsx} +7 -8
- package/src/icons.generated/Unlock.tsx +43 -0
- package/src/icons.generated/Upload.tsx +43 -0
- package/src/{iconDictionary → icons.generated}/User.tsx +4 -5
- package/src/icons.generated/Video.tsx +43 -0
- package/src/icons.generated/Warning.tsx +43 -0
- package/src/icons.generated/WarningFilled.tsx +44 -0
- package/src/icons.generated/index.ts +87 -0
- package/src/index.ts +21 -65
- package/src/labs/DatePicker.tsx +48 -0
- package/src/labs/DatePicker.types.ts +24 -0
- package/src/labs/PaginatedTable.tsx +272 -0
- package/src/labs/README.md +46 -0
- package/src/labs/StaticTable.tsx +122 -0
- package/src/labs/datePickerTheme.tsx +341 -0
- package/src/labs/index.ts +24 -0
- package/{dist/theme/useTheme.js → src/labs/materialReactTableTypes.ts} +7 -5
- package/src/properties/odyssey-react-mui.properties +7 -2
- package/src/properties/translations/odyssey-react-mui_cs.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_da.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_de.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_el.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_es.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_fi.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_fr.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_hu.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_id.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_it.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_ja.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_ko.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_ms.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_nb.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_ok_PL.properties +8 -0
- package/src/properties/translations/odyssey-react-mui_ok_SK.properties +8 -0
- package/src/properties/translations/odyssey-react-mui_pl.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_ro.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_ru.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_sv.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_th.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_tr.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_uk.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_vi.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +14 -0
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +14 -0
- package/src/properties/ts/odyssey-react-mui.ts +1 -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 -0
- package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_pl.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -0
- 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 -0
- package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -0
- package/src/theme/components.tsx +1921 -1737
- package/src/theme/components.types.ts +4 -2
- package/src/theme/index.ts +0 -5
- package/src/theme/mixins.ts +7 -8
- package/src/theme/palette.ts +53 -55
- package/src/theme/shape.ts +6 -7
- package/src/theme/spacing.ts +13 -13
- package/src/theme/theme.ts +6 -8
- package/src/theme/typography.ts +81 -48
- package/src/theme/typography.types.ts +2 -2
- package/tsconfig.json +3 -0
- package/dist/Icon.js +0 -30
- package/dist/Icon.js.map +0 -1
- package/dist/Infobox.js.map +0 -1
- package/dist/a11yCheck.js +0 -25
- package/dist/a11yCheck.js.map +0 -1
- package/dist/iconDictionary/Add.js.map +0 -1
- package/dist/iconDictionary/AddCircle.js.map +0 -1
- package/dist/iconDictionary/AlertCircle.js.map +0 -1
- package/dist/iconDictionary/AlertCircleFilled.js.map +0 -1
- package/dist/iconDictionary/AlertTriangleFilled.js.map +0 -1
- package/dist/iconDictionary/Anchor.js +0 -35
- package/dist/iconDictionary/Anchor.js.map +0 -1
- package/dist/iconDictionary/ArrowDown.js.map +0 -1
- package/dist/iconDictionary/ArrowLeft.js.map +0 -1
- package/dist/iconDictionary/ArrowRight.js.map +0 -1
- package/dist/iconDictionary/ArrowUp.js.map +0 -1
- package/dist/iconDictionary/ArrowUpDown.js.map +0 -1
- package/dist/iconDictionary/Calendar.js +0 -33
- package/dist/iconDictionary/Calendar.js.map +0 -1
- package/dist/iconDictionary/Check.js.map +0 -1
- package/dist/iconDictionary/CheckCircleFilled.js.map +0 -1
- package/dist/iconDictionary/ChevronDown.js.map +0 -1
- package/dist/iconDictionary/ChevronUp.js.map +0 -1
- package/dist/iconDictionary/Close.js.map +0 -1
- package/dist/iconDictionary/CloseCircleFilled.js.map +0 -1
- package/dist/iconDictionary/Copy.js +0 -33
- package/dist/iconDictionary/Copy.js.map +0 -1
- package/dist/iconDictionary/Delete.js.map +0 -1
- package/dist/iconDictionary/Download.js +0 -33
- package/dist/iconDictionary/Download.js.map +0 -1
- package/dist/iconDictionary/DragHandle.js +0 -33
- package/dist/iconDictionary/DragHandle.js.map +0 -1
- package/dist/iconDictionary/Edit.js.map +0 -1
- package/dist/iconDictionary/ExternalLink.js.map +0 -1
- package/dist/iconDictionary/Eye.js +0 -33
- package/dist/iconDictionary/Eye.js.map +0 -1
- package/dist/iconDictionary/EyeOff.js +0 -33
- package/dist/iconDictionary/EyeOff.js.map +0 -1
- package/dist/iconDictionary/Filter.js.map +0 -1
- package/dist/iconDictionary/Globe.js.map +0 -1
- package/dist/iconDictionary/Home.js +0 -33
- package/dist/iconDictionary/Home.js.map +0 -1
- package/dist/iconDictionary/InformationCircle.js.map +0 -1
- package/dist/iconDictionary/InformationCircleFilled.js.map +0 -1
- package/dist/iconDictionary/Notification.js.map +0 -1
- package/dist/iconDictionary/OverflowVertical.js.map +0 -1
- package/dist/iconDictionary/QuestionCircle.js.map +0 -1
- package/dist/iconDictionary/QuestionCircleFilled.js.map +0 -1
- package/dist/iconDictionary/Search.js.map +0 -1
- package/dist/iconDictionary/Settings.js +0 -31
- package/dist/iconDictionary/Settings.js.map +0 -1
- package/dist/iconDictionary/Subtract.js.map +0 -1
- package/dist/iconDictionary/SvgIcon.js.map +0 -1
- package/dist/iconDictionary/User.js.map +0 -1
- package/dist/iconDictionary/UserGroup.js +0 -33
- package/dist/iconDictionary/UserGroup.js.map +0 -1
- package/dist/iconDictionary/index.js +0 -134
- package/dist/iconDictionary/index.js.map +0 -1
- package/dist/iconDictionary/types.js +0 -2
- package/dist/iconDictionary/types.js.map +0 -1
- package/dist/properties/ts/odyssey-react-mui_nl-NL.js +0 -2
- package/dist/properties/ts/odyssey-react-mui_nl-NL.js.map +0 -1
- package/dist/properties/ts/odyssey-react-mui_pt-BR.js +0 -2
- package/dist/properties/ts/odyssey-react-mui_pt-BR.js.map +0 -1
- package/dist/properties/ts/odyssey-react-mui_zh-CN.js +0 -2
- package/dist/properties/ts/odyssey-react-mui_zh-CN.js.map +0 -1
- package/dist/properties/ts/odyssey-react-mui_zh-TW.js +0 -2
- package/dist/properties/ts/odyssey-react-mui_zh-TW.js.map +0 -1
- package/dist/src/Icon.d.ts +0 -29
- package/dist/src/Icon.d.ts.map +0 -1
- package/dist/src/Infobox.d.ts.map +0 -1
- package/dist/src/a11yCheck.d.ts.map +0 -1
- package/dist/src/iconDictionary/Add.d.ts +0 -16
- package/dist/src/iconDictionary/Add.d.ts.map +0 -1
- package/dist/src/iconDictionary/AddCircle.d.ts +0 -16
- package/dist/src/iconDictionary/AddCircle.d.ts.map +0 -1
- package/dist/src/iconDictionary/AlertCircle.d.ts +0 -16
- package/dist/src/iconDictionary/AlertCircle.d.ts.map +0 -1
- package/dist/src/iconDictionary/AlertCircleFilled.d.ts +0 -16
- package/dist/src/iconDictionary/AlertCircleFilled.d.ts.map +0 -1
- package/dist/src/iconDictionary/AlertTriangleFilled.d.ts +0 -16
- package/dist/src/iconDictionary/AlertTriangleFilled.d.ts.map +0 -1
- package/dist/src/iconDictionary/Anchor.d.ts +0 -16
- package/dist/src/iconDictionary/Anchor.d.ts.map +0 -1
- package/dist/src/iconDictionary/ArrowDown.d.ts +0 -16
- package/dist/src/iconDictionary/ArrowDown.d.ts.map +0 -1
- package/dist/src/iconDictionary/ArrowLeft.d.ts +0 -16
- package/dist/src/iconDictionary/ArrowLeft.d.ts.map +0 -1
- package/dist/src/iconDictionary/ArrowRight.d.ts +0 -16
- package/dist/src/iconDictionary/ArrowRight.d.ts.map +0 -1
- package/dist/src/iconDictionary/ArrowUp.d.ts +0 -16
- package/dist/src/iconDictionary/ArrowUp.d.ts.map +0 -1
- package/dist/src/iconDictionary/ArrowUpDown.d.ts +0 -16
- package/dist/src/iconDictionary/ArrowUpDown.d.ts.map +0 -1
- package/dist/src/iconDictionary/Calendar.d.ts +0 -16
- package/dist/src/iconDictionary/Calendar.d.ts.map +0 -1
- package/dist/src/iconDictionary/Check.d.ts +0 -16
- package/dist/src/iconDictionary/Check.d.ts.map +0 -1
- package/dist/src/iconDictionary/CheckCircleFilled.d.ts +0 -16
- package/dist/src/iconDictionary/CheckCircleFilled.d.ts.map +0 -1
- package/dist/src/iconDictionary/ChevronDown.d.ts +0 -16
- package/dist/src/iconDictionary/ChevronDown.d.ts.map +0 -1
- package/dist/src/iconDictionary/ChevronUp.d.ts +0 -16
- package/dist/src/iconDictionary/ChevronUp.d.ts.map +0 -1
- package/dist/src/iconDictionary/Close.d.ts +0 -16
- package/dist/src/iconDictionary/Close.d.ts.map +0 -1
- package/dist/src/iconDictionary/CloseCircleFilled.d.ts +0 -16
- package/dist/src/iconDictionary/CloseCircleFilled.d.ts.map +0 -1
- package/dist/src/iconDictionary/Copy.d.ts +0 -16
- package/dist/src/iconDictionary/Copy.d.ts.map +0 -1
- package/dist/src/iconDictionary/Delete.d.ts +0 -16
- package/dist/src/iconDictionary/Delete.d.ts.map +0 -1
- package/dist/src/iconDictionary/Download.d.ts +0 -16
- package/dist/src/iconDictionary/Download.d.ts.map +0 -1
- package/dist/src/iconDictionary/DragHandle.d.ts +0 -16
- package/dist/src/iconDictionary/DragHandle.d.ts.map +0 -1
- package/dist/src/iconDictionary/Edit.d.ts +0 -16
- package/dist/src/iconDictionary/Edit.d.ts.map +0 -1
- package/dist/src/iconDictionary/ExternalLink.d.ts +0 -16
- package/dist/src/iconDictionary/ExternalLink.d.ts.map +0 -1
- package/dist/src/iconDictionary/Eye.d.ts +0 -16
- package/dist/src/iconDictionary/Eye.d.ts.map +0 -1
- package/dist/src/iconDictionary/EyeOff.d.ts +0 -16
- package/dist/src/iconDictionary/EyeOff.d.ts.map +0 -1
- package/dist/src/iconDictionary/Filter.d.ts +0 -16
- package/dist/src/iconDictionary/Filter.d.ts.map +0 -1
- package/dist/src/iconDictionary/Globe.d.ts +0 -16
- package/dist/src/iconDictionary/Globe.d.ts.map +0 -1
- package/dist/src/iconDictionary/Home.d.ts +0 -16
- package/dist/src/iconDictionary/Home.d.ts.map +0 -1
- package/dist/src/iconDictionary/InformationCircle.d.ts +0 -16
- package/dist/src/iconDictionary/InformationCircle.d.ts.map +0 -1
- package/dist/src/iconDictionary/InformationCircleFilled.d.ts.map +0 -1
- package/dist/src/iconDictionary/Notification.d.ts +0 -16
- package/dist/src/iconDictionary/Notification.d.ts.map +0 -1
- package/dist/src/iconDictionary/OverflowVertical.d.ts +0 -16
- package/dist/src/iconDictionary/OverflowVertical.d.ts.map +0 -1
- package/dist/src/iconDictionary/QuestionCircle.d.ts +0 -16
- package/dist/src/iconDictionary/QuestionCircle.d.ts.map +0 -1
- package/dist/src/iconDictionary/QuestionCircleFilled.d.ts +0 -16
- package/dist/src/iconDictionary/QuestionCircleFilled.d.ts.map +0 -1
- package/dist/src/iconDictionary/Search.d.ts +0 -16
- package/dist/src/iconDictionary/Search.d.ts.map +0 -1
- package/dist/src/iconDictionary/Settings.d.ts +0 -16
- package/dist/src/iconDictionary/Settings.d.ts.map +0 -1
- package/dist/src/iconDictionary/Subtract.d.ts +0 -16
- package/dist/src/iconDictionary/Subtract.d.ts.map +0 -1
- package/dist/src/iconDictionary/SvgIcon.d.ts.map +0 -1
- package/dist/src/iconDictionary/User.d.ts +0 -16
- package/dist/src/iconDictionary/User.d.ts.map +0 -1
- package/dist/src/iconDictionary/UserGroup.d.ts +0 -16
- package/dist/src/iconDictionary/UserGroup.d.ts.map +0 -1
- package/dist/src/iconDictionary/index.d.ts +0 -94
- package/dist/src/iconDictionary/index.d.ts.map +0 -1
- package/dist/src/iconDictionary/types.d.ts.map +0 -1
- package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts +0 -2
- package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts.map +0 -1
- package/dist/src/properties/ts/odyssey-react-mui_pt-BR.d.ts +0 -2
- package/dist/src/properties/ts/odyssey-react-mui_pt-BR.d.ts.map +0 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts +0 -2
- package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts.map +0 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts +0 -2
- package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts.map +0 -1
- package/dist/src/theme/OdysseyTheme.d.ts.map +0 -1
- package/dist/src/theme/temp.d.ts.map +0 -1
- package/dist/src/theme/useTheme.d.ts.map +0 -1
- package/dist/theme/OdysseyTheme.js +0 -2
- package/dist/theme/OdysseyTheme.js.map +0 -1
- package/dist/theme/temp.js.map +0 -1
- package/dist/theme/useTheme.js.map +0 -1
- package/scripts/resolveIconSrcPath.cjs +0 -20
- package/src/Icon.test.tsx +0 -51
- package/src/Icon.tsx +0 -54
- package/src/a11yCheck.ts +0 -28
- package/src/iconDictionary/AlertTriangleFilled.tsx +0 -45
- package/src/iconDictionary/Anchor.tsx +0 -46
- package/src/iconDictionary/ArrowUpDown.tsx +0 -44
- package/src/iconDictionary/Calendar.tsx +0 -44
- package/src/iconDictionary/Download.tsx +0 -44
- package/src/iconDictionary/DragHandle.tsx +0 -44
- package/src/iconDictionary/EyeOff.tsx +0 -44
- package/src/iconDictionary/Home.tsx +0 -44
- package/src/iconDictionary/Settings.tsx +0 -42
- package/src/iconDictionary/UserGroup.tsx +0 -44
- package/src/iconDictionary/index.ts +0 -176
- package/src/properties/translations/odyssey-react-mui_nl-NL.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_pt-BR.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_zh-CN.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_zh-TW.properties +0 -0
- package/src/properties/ts/odyssey-react-mui_nl-NL.ts +0 -1
- package/src/properties/ts/odyssey-react-mui_pt-BR.ts +0 -1
- package/src/properties/ts/odyssey-react-mui_zh-CN.ts +0 -1
- package/src/properties/ts/odyssey-react-mui_zh-TW.ts +0 -1
- /package/dist/{iconDictionary/SvgIcon.js → SvgIcon.js} +0 -0
|
@@ -16,19 +16,23 @@ declare global {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
import createCache from "@emotion/cache";
|
|
19
|
+
import createCache, { StylisPlugin } from "@emotion/cache";
|
|
20
20
|
import { CacheProvider } from "@emotion/react";
|
|
21
|
-
import { memo,
|
|
21
|
+
import { memo, ReactNode, useMemo } from "react";
|
|
22
22
|
|
|
23
23
|
import { useUniqueAlphabeticalId } from "./useUniqueAlphabeticalId";
|
|
24
24
|
|
|
25
|
+
export type OdysseyCacheProviderProps = {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
nonce?: string;
|
|
28
|
+
stylisPlugins?: StylisPlugin[];
|
|
29
|
+
};
|
|
30
|
+
|
|
25
31
|
const OdysseyCacheProvider = ({
|
|
26
32
|
children,
|
|
27
33
|
nonce,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
nonce?: string;
|
|
31
|
-
}) => {
|
|
34
|
+
stylisPlugins,
|
|
35
|
+
}: OdysseyCacheProviderProps) => {
|
|
32
36
|
const uniqueAlphabeticalId = useUniqueAlphabeticalId();
|
|
33
37
|
|
|
34
38
|
const emotionCache = useMemo(
|
|
@@ -36,13 +40,15 @@ const OdysseyCacheProvider = ({
|
|
|
36
40
|
createCache({
|
|
37
41
|
key: uniqueAlphabeticalId,
|
|
38
42
|
nonce: nonce || window.cspNonce,
|
|
43
|
+
stylisPlugins,
|
|
39
44
|
}),
|
|
40
|
-
[nonce, uniqueAlphabeticalId]
|
|
45
|
+
[nonce, stylisPlugins, uniqueAlphabeticalId]
|
|
41
46
|
);
|
|
42
47
|
|
|
43
48
|
return <CacheProvider value={emotionCache}>{children}</CacheProvider>;
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
const MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);
|
|
52
|
+
MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider";
|
|
47
53
|
|
|
48
54
|
export { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import * as Tokens from "@okta/odyssey-design-tokens";
|
|
14
|
+
import { createContext, useContext } from "react";
|
|
15
|
+
|
|
16
|
+
export const OdysseyDesignTokensContext = createContext<typeof Tokens>(Tokens);
|
|
17
|
+
|
|
18
|
+
export const useOdysseyDesignTokens = () =>
|
|
19
|
+
useContext(OdysseyDesignTokensContext);
|
package/src/OdysseyI18n.ts
CHANGED
|
@@ -28,17 +28,19 @@ import { translation as ja } from "./properties/ts/odyssey-react-mui_ja";
|
|
|
28
28
|
import { translation as ko } from "./properties/ts/odyssey-react-mui_ko";
|
|
29
29
|
import { translation as ms } from "./properties/ts/odyssey-react-mui_ms";
|
|
30
30
|
import { translation as nb } from "./properties/ts/odyssey-react-mui_nb";
|
|
31
|
-
import { translation as nlNL } from "./properties/ts/odyssey-react-
|
|
31
|
+
import { translation as nlNL } from "./properties/ts/odyssey-react-mui_nl_NL";
|
|
32
|
+
import { translation as okPL } from "./properties/ts/odyssey-react-mui_ok_PL";
|
|
33
|
+
import { translation as okSK } from "./properties/ts/odyssey-react-mui_ok_SK";
|
|
32
34
|
import { translation as pl } from "./properties/ts/odyssey-react-mui_pl";
|
|
33
|
-
import { translation as ptBR } from "./properties/ts/odyssey-react-
|
|
35
|
+
import { translation as ptBR } from "./properties/ts/odyssey-react-mui_pt_BR";
|
|
34
36
|
import { translation as ro } from "./properties/ts/odyssey-react-mui_ro";
|
|
35
37
|
import { translation as ru } from "./properties/ts/odyssey-react-mui_ru";
|
|
36
38
|
import { translation as sv } from "./properties/ts/odyssey-react-mui_sv";
|
|
37
39
|
import { translation as th } from "./properties/ts/odyssey-react-mui_th";
|
|
38
40
|
import { translation as tr } from "./properties/ts/odyssey-react-mui_tr";
|
|
39
41
|
import { translation as uk } from "./properties/ts/odyssey-react-mui_uk";
|
|
40
|
-
import { translation as zhCN } from "./properties/ts/odyssey-react-
|
|
41
|
-
import { translation as znTW } from "./properties/ts/odyssey-react-
|
|
42
|
+
import { translation as zhCN } from "./properties/ts/odyssey-react-mui_zh_CN";
|
|
43
|
+
import { translation as znTW } from "./properties/ts/odyssey-react-mui_zh_TW";
|
|
42
44
|
|
|
43
45
|
import {
|
|
44
46
|
SupportedLanguages,
|
|
@@ -63,17 +65,19 @@ export const resources = {
|
|
|
63
65
|
ko,
|
|
64
66
|
ms,
|
|
65
67
|
nb,
|
|
66
|
-
|
|
68
|
+
nl_NL: nlNL,
|
|
69
|
+
ok_PL: okPL,
|
|
70
|
+
ok_SK: okSK,
|
|
67
71
|
pl,
|
|
68
|
-
|
|
72
|
+
pt_BR: ptBR,
|
|
69
73
|
ro,
|
|
70
74
|
ru,
|
|
71
75
|
sv,
|
|
72
76
|
th,
|
|
73
77
|
tr,
|
|
74
78
|
uk,
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
zh_CN: zhCN,
|
|
80
|
+
zh_TW: znTW,
|
|
77
81
|
};
|
|
78
82
|
|
|
79
83
|
i18n.use(initReactI18next).init({
|
package/src/OdysseyProvider.tsx
CHANGED
|
@@ -10,36 +10,37 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { memo,
|
|
13
|
+
import { memo, ReactNode } from "react";
|
|
14
14
|
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
import {
|
|
16
|
+
OdysseyCacheProvider,
|
|
17
|
+
OdysseyCacheProviderProps,
|
|
18
|
+
} from "./OdysseyCacheProvider";
|
|
19
|
+
import {
|
|
20
|
+
OdysseyThemeProvider,
|
|
21
|
+
OdysseyThemeProviderProps,
|
|
22
|
+
} from "./OdysseyThemeProvider";
|
|
19
23
|
import {
|
|
20
24
|
OdysseyTranslationProvider,
|
|
21
|
-
|
|
25
|
+
OdysseyTranslationProviderProps,
|
|
22
26
|
} from "./OdysseyTranslationProvider";
|
|
23
|
-
import { SupportedLanguages } from "./OdysseyTranslationProvider.types";
|
|
24
27
|
|
|
25
|
-
type OdysseyProviderProps =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
languageCode?: SupportedLanguages;
|
|
31
|
-
translationOverrides?: TranslationOverrides;
|
|
32
|
-
};
|
|
28
|
+
export type OdysseyProviderProps = OdysseyCacheProviderProps &
|
|
29
|
+
OdysseyThemeProviderProps &
|
|
30
|
+
OdysseyTranslationProviderProps & {
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
};
|
|
33
33
|
|
|
34
34
|
const OdysseyProvider = ({
|
|
35
35
|
children,
|
|
36
|
-
nonce,
|
|
37
|
-
themeOverride,
|
|
38
36
|
designTokensOverride,
|
|
39
37
|
languageCode,
|
|
38
|
+
nonce,
|
|
39
|
+
stylisPlugins,
|
|
40
|
+
themeOverride,
|
|
40
41
|
translationOverrides,
|
|
41
42
|
}: OdysseyProviderProps) => (
|
|
42
|
-
<OdysseyCacheProvider nonce={nonce}>
|
|
43
|
+
<OdysseyCacheProvider nonce={nonce} stylisPlugins={stylisPlugins}>
|
|
43
44
|
<OdysseyThemeProvider
|
|
44
45
|
themeOverride={themeOverride}
|
|
45
46
|
designTokensOverride={designTokensOverride}
|
|
@@ -10,24 +10,37 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
|
|
13
|
+
import {
|
|
14
|
+
createTheme,
|
|
15
|
+
ThemeProvider as MuiThemeProvider,
|
|
16
|
+
} from "@mui/material/styles";
|
|
17
|
+
import { memo, ReactNode, useMemo } from "react";
|
|
15
18
|
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
19
|
+
import { ScopedCssBaseline, ThemeOptions } from "@mui/material";
|
|
20
|
+
import { deepmerge } from "@mui/utils";
|
|
21
|
+
import { createOdysseyMuiTheme, DesignTokensOverride } from "./theme";
|
|
18
22
|
import * as Tokens from "@okta/odyssey-design-tokens";
|
|
23
|
+
import { OdysseyDesignTokensContext } from "./OdysseyDesignTokensContext";
|
|
24
|
+
|
|
25
|
+
export type OdysseyThemeProviderProps = {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
designTokensOverride?: DesignTokensOverride;
|
|
28
|
+
themeOverride?: ThemeOptions;
|
|
29
|
+
};
|
|
19
30
|
|
|
20
31
|
const OdysseyThemeProvider = ({
|
|
21
32
|
children,
|
|
22
|
-
themeOverride,
|
|
23
33
|
designTokensOverride,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const odysseyTheme =
|
|
34
|
+
themeOverride,
|
|
35
|
+
}: OdysseyThemeProviderProps) => {
|
|
36
|
+
const odysseyTokens = useMemo(
|
|
37
|
+
() => ({ ...Tokens, ...designTokensOverride }),
|
|
38
|
+
[designTokensOverride]
|
|
39
|
+
);
|
|
40
|
+
const odysseyTheme = useMemo(
|
|
41
|
+
() => createOdysseyMuiTheme(odysseyTokens),
|
|
42
|
+
[odysseyTokens]
|
|
43
|
+
);
|
|
31
44
|
|
|
32
45
|
const customOdysseyTheme = useMemo(
|
|
33
46
|
() => themeOverride && createTheme(deepmerge(odysseyTheme, themeOverride)),
|
|
@@ -36,7 +49,11 @@ const OdysseyThemeProvider = ({
|
|
|
36
49
|
|
|
37
50
|
return (
|
|
38
51
|
<MuiThemeProvider theme={customOdysseyTheme ?? odysseyTheme}>
|
|
39
|
-
|
|
52
|
+
<ScopedCssBaseline>
|
|
53
|
+
<OdysseyDesignTokensContext.Provider value={odysseyTokens}>
|
|
54
|
+
{children}
|
|
55
|
+
</OdysseyDesignTokensContext.Provider>
|
|
56
|
+
</ScopedCssBaseline>
|
|
40
57
|
</MuiThemeProvider>
|
|
41
58
|
);
|
|
42
59
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { ReactNode, useEffect } from "react";
|
|
14
14
|
|
|
15
15
|
import { SupportedLanguages } from "./OdysseyTranslationProvider.types";
|
|
16
16
|
|
|
@@ -21,12 +21,6 @@ export type TranslationOverrides = {
|
|
|
21
21
|
[key in SupportedLanguages]?: Partial<(typeof resources)["en"]>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
type OdysseyTranslationProviderProps = {
|
|
25
|
-
children: ReactElement;
|
|
26
|
-
languageCode?: SupportedLanguages;
|
|
27
|
-
translationOverrides?: TranslationOverrides;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
24
|
const mergeBundleOverrides = (
|
|
31
25
|
languageCode: SupportedLanguages,
|
|
32
26
|
translationOverrides: TranslationOverrides
|
|
@@ -39,6 +33,12 @@ const mergeBundleOverrides = (
|
|
|
39
33
|
};
|
|
40
34
|
};
|
|
41
35
|
|
|
36
|
+
export type OdysseyTranslationProviderProps = {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
languageCode?: SupportedLanguages;
|
|
39
|
+
translationOverrides?: TranslationOverrides;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
42
|
export const OdysseyTranslationProvider = ({
|
|
43
43
|
children,
|
|
44
44
|
languageCode,
|
|
@@ -26,17 +26,19 @@ export const supportedLanguages = [
|
|
|
26
26
|
"ko", // Korean
|
|
27
27
|
"ms", // Malaysian
|
|
28
28
|
"nb", // Norwegian
|
|
29
|
-
"
|
|
29
|
+
"nl_NL", // Dutch
|
|
30
|
+
"ok_PL", // (Test Language) Pseudo-loc
|
|
31
|
+
"ok_SK", // (Test Language) Show Keys
|
|
30
32
|
"pl", // Polish
|
|
31
|
-
"
|
|
33
|
+
"pt_BR", // Portuguese (Brazil)
|
|
32
34
|
"ro", // Romanian
|
|
33
35
|
"ru", // Russian
|
|
34
36
|
"sv", // Swedish
|
|
35
37
|
"th", // Thai
|
|
36
38
|
"tr", // Turkish
|
|
37
39
|
"uk", // Ukrainian
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
+
"zh_CN", // Chinese (PRC)
|
|
41
|
+
"zh_TW", // Chinese
|
|
40
42
|
] as const;
|
|
41
43
|
|
|
42
44
|
export type SupportedLanguages = (typeof supportedLanguages)[number];
|
package/src/PasswordField.tsx
CHANGED
|
@@ -20,7 +20,8 @@ import {
|
|
|
20
20
|
useState,
|
|
21
21
|
} from "react";
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import { ShowIcon, HideIcon } from "./icons.generated";
|
|
24
|
+
import { Button } from "./Button";
|
|
24
25
|
import { Field } from "./Field";
|
|
25
26
|
|
|
26
27
|
export type PasswordFieldProps = {
|
|
@@ -121,13 +122,13 @@ const PasswordField = forwardRef<HTMLInputElement, PasswordFieldProps>(
|
|
|
121
122
|
autoFocus={hasInitialFocus}
|
|
122
123
|
endAdornment={
|
|
123
124
|
<InputAdornment position="end">
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
<Button
|
|
126
|
+
ariaLabel="toggle password visibility"
|
|
127
|
+
endIcon={inputType === "password" ? <ShowIcon /> : <HideIcon />}
|
|
127
128
|
onClick={togglePasswordVisibility}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
size="small"
|
|
130
|
+
variant="floating"
|
|
131
|
+
/>
|
|
131
132
|
</InputAdornment>
|
|
132
133
|
}
|
|
133
134
|
id={id}
|
package/src/Radio.tsx
CHANGED
|
@@ -13,32 +13,47 @@
|
|
|
13
13
|
import { Radio as MuiRadio } from "@mui/material";
|
|
14
14
|
import { memo } from "react";
|
|
15
15
|
|
|
16
|
-
import { FormControlLabel } from "
|
|
16
|
+
import { FormControlLabel } from "@mui/material";
|
|
17
17
|
|
|
18
18
|
export type RadioProps = {
|
|
19
|
+
/**
|
|
20
|
+
* If `true`, the Radio is selected
|
|
21
|
+
*/
|
|
19
22
|
isChecked?: boolean;
|
|
20
|
-
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, the Radio is disabled
|
|
25
|
+
*/
|
|
21
26
|
isDisabled?: boolean;
|
|
22
|
-
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, the Radio has an invalid value
|
|
29
|
+
*/
|
|
30
|
+
isInvalid?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The label text for the Radio
|
|
33
|
+
*/
|
|
23
34
|
label: string;
|
|
35
|
+
/**
|
|
36
|
+
* The name attribute of the Radio
|
|
37
|
+
*/
|
|
24
38
|
name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The value attribute of the Radio
|
|
41
|
+
*/
|
|
25
42
|
value: string;
|
|
26
43
|
};
|
|
27
44
|
|
|
28
45
|
const Radio = ({
|
|
29
46
|
isChecked,
|
|
30
|
-
isDefaultChecked,
|
|
31
47
|
isDisabled,
|
|
32
|
-
|
|
48
|
+
isInvalid,
|
|
33
49
|
label,
|
|
34
50
|
name,
|
|
35
51
|
value,
|
|
36
52
|
}: RadioProps) => (
|
|
37
53
|
<FormControlLabel
|
|
38
54
|
checked={isChecked}
|
|
39
|
-
className={
|
|
55
|
+
className={isInvalid ? "Mui-error" : ""}
|
|
40
56
|
control={<MuiRadio />}
|
|
41
|
-
defaultChecked={isDefaultChecked}
|
|
42
57
|
disabled={isDisabled}
|
|
43
58
|
label={label}
|
|
44
59
|
name={name}
|
|
@@ -47,5 +62,6 @@ const Radio = ({
|
|
|
47
62
|
);
|
|
48
63
|
|
|
49
64
|
const MemoizedRadio = memo(Radio);
|
|
65
|
+
MemoizedRadio.displayName = "Radio";
|
|
50
66
|
|
|
51
67
|
export { MemoizedRadio as Radio };
|
package/src/RadioGroup.tsx
CHANGED
|
@@ -18,15 +18,15 @@ import { Field } from "./Field";
|
|
|
18
18
|
|
|
19
19
|
export type RadioGroupProps = {
|
|
20
20
|
/**
|
|
21
|
-
* The
|
|
21
|
+
* The Radio components within the group. Must include two or more.
|
|
22
22
|
*/
|
|
23
23
|
children: Array<ReactElement<typeof Radio>>;
|
|
24
24
|
/**
|
|
25
|
-
* The text value of the
|
|
25
|
+
* The text value of the Radio that should be selected by default
|
|
26
26
|
*/
|
|
27
27
|
defaultValue?: string;
|
|
28
28
|
/**
|
|
29
|
-
* The error text for an invalid
|
|
29
|
+
* The error text for an invalid RadioGroup
|
|
30
30
|
*/
|
|
31
31
|
errorMessage?: string;
|
|
32
32
|
/**
|
|
@@ -38,19 +38,19 @@ export type RadioGroupProps = {
|
|
|
38
38
|
*/
|
|
39
39
|
id?: string;
|
|
40
40
|
/**
|
|
41
|
-
* Disables the whole
|
|
41
|
+
* Disables the whole RadioGroup
|
|
42
42
|
*/
|
|
43
43
|
isDisabled?: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* The text label for the
|
|
45
|
+
* The text label for the RadioGroup
|
|
46
46
|
*/
|
|
47
47
|
label: string;
|
|
48
48
|
/**
|
|
49
|
-
* Listen for changes in the browser that change `value
|
|
49
|
+
* Listen for changes in the browser that change `value`
|
|
50
50
|
*/
|
|
51
51
|
onChange?: ChangeEventHandler<EventTarget>;
|
|
52
52
|
/**
|
|
53
|
-
* The `value` on the selected
|
|
53
|
+
* The `value` on the selected Radio
|
|
54
54
|
*/
|
|
55
55
|
value?: RadioProps["value"];
|
|
56
56
|
};
|
|
@@ -97,5 +97,6 @@ const RadioGroup = ({
|
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
const MemoizedRadioGroup = memo(RadioGroup);
|
|
100
|
+
MemoizedRadioGroup.displayName = "RadioGroup";
|
|
100
101
|
|
|
101
102
|
export { MemoizedRadioGroup as RadioGroup };
|
package/src/ScreenReaderText.tsx
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { memo, ReactNode } from "react";
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from "@mui/material";
|
|
15
|
+
import { visuallyHidden } from "@mui/utils";
|
|
15
16
|
|
|
16
17
|
export type ScreenReaderTextProps = {
|
|
17
18
|
/**
|
|
@@ -28,9 +29,12 @@ export type ScreenReaderTextProps = {
|
|
|
28
29
|
const style = { ...visuallyHidden };
|
|
29
30
|
|
|
30
31
|
const ScreenReaderText = ({ children }: ScreenReaderTextProps) => (
|
|
31
|
-
<Box sx={style}>
|
|
32
|
+
<Box sx={style} component="span">
|
|
33
|
+
{children}
|
|
34
|
+
</Box>
|
|
32
35
|
);
|
|
33
36
|
|
|
34
37
|
const MemoizedScreenReaderText = memo(ScreenReaderText);
|
|
38
|
+
MemoizedScreenReaderText.displayName = "ScreenReaderText";
|
|
35
39
|
|
|
36
40
|
export { MemoizedScreenReaderText as ScreenReaderText };
|
package/src/SearchField.tsx
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { useState, useEffect } from "react";
|
|
13
14
|
import { InputAdornment, InputBase } from "@mui/material";
|
|
14
15
|
import {
|
|
15
16
|
ChangeEventHandler,
|
|
@@ -20,8 +21,9 @@ import {
|
|
|
20
21
|
useCallback,
|
|
21
22
|
} from "react";
|
|
22
23
|
|
|
23
|
-
import { SearchIcon } from "./";
|
|
24
|
+
import { CloseCircleFilledIcon, SearchIcon } from "./icons.generated";
|
|
24
25
|
import { Field } from "./Field";
|
|
26
|
+
import { Button } from "./Button";
|
|
25
27
|
|
|
26
28
|
export type SearchFieldProps = {
|
|
27
29
|
/**
|
|
@@ -50,6 +52,10 @@ export type SearchFieldProps = {
|
|
|
50
52
|
* Callback fired when the `input` element loses focus.
|
|
51
53
|
*/
|
|
52
54
|
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
55
|
+
/**
|
|
56
|
+
* Callback fired when the clear button is pressed.
|
|
57
|
+
*/
|
|
58
|
+
onClear?: () => void;
|
|
53
59
|
/**
|
|
54
60
|
* Callback fired when the value is changed.
|
|
55
61
|
*/
|
|
@@ -76,14 +82,37 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
|
|
|
76
82
|
id: idOverride,
|
|
77
83
|
isDisabled = false,
|
|
78
84
|
label,
|
|
79
|
-
onChange,
|
|
85
|
+
onChange: onChangeProp,
|
|
80
86
|
onFocus,
|
|
81
87
|
onBlur,
|
|
88
|
+
onClear: onClearProp,
|
|
82
89
|
placeholder,
|
|
83
|
-
value,
|
|
90
|
+
value: controlledValue,
|
|
84
91
|
},
|
|
85
92
|
ref
|
|
86
93
|
) => {
|
|
94
|
+
const [uncontrolledValue, setUncontrolledValue] = useState("");
|
|
95
|
+
|
|
96
|
+
const onChange: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement> =
|
|
97
|
+
useCallback(
|
|
98
|
+
(event) => {
|
|
99
|
+
setUncontrolledValue(event.currentTarget.value);
|
|
100
|
+
onChangeProp?.(event);
|
|
101
|
+
},
|
|
102
|
+
[onChangeProp]
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
const onClear = useCallback(() => {
|
|
106
|
+
setUncontrolledValue("");
|
|
107
|
+
onClearProp?.();
|
|
108
|
+
}, [onClearProp]);
|
|
109
|
+
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (controlledValue !== undefined) {
|
|
112
|
+
setUncontrolledValue(controlledValue);
|
|
113
|
+
}
|
|
114
|
+
}, [controlledValue]);
|
|
115
|
+
|
|
87
116
|
const renderFieldComponent = useCallback(
|
|
88
117
|
({ ariaDescribedBy, id }) => (
|
|
89
118
|
<InputBase
|
|
@@ -91,6 +120,21 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
|
|
|
91
120
|
autoComplete={autoCompleteType}
|
|
92
121
|
/* eslint-disable-next-line jsx-a11y/no-autofocus */
|
|
93
122
|
autoFocus={hasInitialFocus}
|
|
123
|
+
endAdornment={
|
|
124
|
+
uncontrolledValue && (
|
|
125
|
+
<InputAdornment position="end">
|
|
126
|
+
<Button
|
|
127
|
+
ariaLabel="Clear"
|
|
128
|
+
isDisabled={isDisabled}
|
|
129
|
+
label=""
|
|
130
|
+
onClick={onClear}
|
|
131
|
+
size="small"
|
|
132
|
+
startIcon={<CloseCircleFilledIcon />}
|
|
133
|
+
variant="floating"
|
|
134
|
+
/>
|
|
135
|
+
</InputAdornment>
|
|
136
|
+
)
|
|
137
|
+
}
|
|
94
138
|
id={id}
|
|
95
139
|
name={id}
|
|
96
140
|
onChange={onChange}
|
|
@@ -104,18 +148,23 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
|
|
|
104
148
|
</InputAdornment>
|
|
105
149
|
}
|
|
106
150
|
type="search"
|
|
107
|
-
value={
|
|
151
|
+
value={
|
|
152
|
+
controlledValue === undefined ? uncontrolledValue : controlledValue
|
|
153
|
+
}
|
|
108
154
|
/>
|
|
109
155
|
),
|
|
110
156
|
[
|
|
111
157
|
autoCompleteType,
|
|
112
158
|
hasInitialFocus,
|
|
159
|
+
isDisabled,
|
|
160
|
+
onClear,
|
|
113
161
|
onChange,
|
|
114
162
|
onFocus,
|
|
115
163
|
onBlur,
|
|
116
164
|
placeholder,
|
|
117
165
|
ref,
|
|
118
|
-
|
|
166
|
+
controlledValue,
|
|
167
|
+
uncontrolledValue,
|
|
119
168
|
]
|
|
120
169
|
);
|
|
121
170
|
|
|
@@ -134,5 +183,6 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
|
|
|
134
183
|
);
|
|
135
184
|
|
|
136
185
|
const MemoizedSearchField = memo(SearchField);
|
|
186
|
+
MemoizedSearchField.displayName = "SearchField";
|
|
137
187
|
|
|
138
188
|
export { MemoizedSearchField as SearchField };
|
package/src/Select.tsx
CHANGED
|
@@ -25,22 +25,58 @@ import { Field } from "./Field";
|
|
|
25
25
|
|
|
26
26
|
export type SelectOption = {
|
|
27
27
|
text: string;
|
|
28
|
-
value?: string;
|
|
29
28
|
type?: "heading" | "option";
|
|
29
|
+
value?: string;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export type SelectProps = {
|
|
33
|
+
/**
|
|
34
|
+
* The error message for the Select
|
|
35
|
+
*/
|
|
33
36
|
errorMessage?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The hint text for the Select
|
|
39
|
+
*/
|
|
34
40
|
hint?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The id attribute of the Select
|
|
43
|
+
*/
|
|
35
44
|
id?: string;
|
|
45
|
+
/**
|
|
46
|
+
* If `true`, the Select is disabled
|
|
47
|
+
*/
|
|
36
48
|
isDisabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If `true`, the Select allows multiple selections
|
|
51
|
+
*/
|
|
37
52
|
isMultiSelect?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, the Select is optional
|
|
55
|
+
*/
|
|
38
56
|
isOptional?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The label text for the Select
|
|
59
|
+
*/
|
|
39
60
|
label: string;
|
|
61
|
+
/**
|
|
62
|
+
* Callback fired when the Select loses focus
|
|
63
|
+
*/
|
|
40
64
|
onBlur?: MuiSelectProps["onBlur"];
|
|
65
|
+
/**
|
|
66
|
+
* Callback fired when the value of the Select changes
|
|
67
|
+
*/
|
|
41
68
|
onChange?: MuiSelectProps["onChange"];
|
|
69
|
+
/**
|
|
70
|
+
* Callback fired when the Select gains focus
|
|
71
|
+
*/
|
|
42
72
|
onFocus?: MuiSelectProps["onFocus"];
|
|
73
|
+
/**
|
|
74
|
+
* The options for the Select
|
|
75
|
+
*/
|
|
43
76
|
options: (string | SelectOption)[];
|
|
77
|
+
/**
|
|
78
|
+
* The value or values selected in the Select
|
|
79
|
+
*/
|
|
44
80
|
value?: string | string[];
|
|
45
81
|
};
|
|
46
82
|
|
|
@@ -169,7 +205,7 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>(
|
|
|
169
205
|
return (
|
|
170
206
|
<MenuItem key={option.value} value={option.value}>
|
|
171
207
|
{isMultiSelect && (
|
|
172
|
-
<Checkbox
|
|
208
|
+
<Checkbox isDefaultChecked={selectedValue.includes(option.value)} />
|
|
173
209
|
)}
|
|
174
210
|
{option.text}
|
|
175
211
|
</MenuItem>
|
|
@@ -179,16 +215,17 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>(
|
|
|
179
215
|
const renderFieldComponent = useCallback(
|
|
180
216
|
() => (
|
|
181
217
|
<MuiSelect
|
|
218
|
+
children={children}
|
|
182
219
|
id={idOverride}
|
|
183
|
-
name={idOverride}
|
|
184
220
|
multiple={isMultiSelect}
|
|
221
|
+
name={idOverride}
|
|
185
222
|
onBlur={onBlur}
|
|
186
223
|
onChange={onChange}
|
|
187
224
|
onFocus={onFocus}
|
|
188
225
|
ref={ref}
|
|
189
|
-
children={children}
|
|
190
226
|
renderValue={isMultiSelect ? renderValue : undefined}
|
|
191
227
|
value={selectedValue}
|
|
228
|
+
labelId={label}
|
|
192
229
|
/>
|
|
193
230
|
),
|
|
194
231
|
[
|
|
@@ -201,6 +238,7 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>(
|
|
|
201
238
|
children,
|
|
202
239
|
renderValue,
|
|
203
240
|
selectedValue,
|
|
241
|
+
label,
|
|
204
242
|
]
|
|
205
243
|
);
|
|
206
244
|
|