@okta/odyssey-react-mui 0.23.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/README.md +43 -7
- package/dist/@types/i18next.d.js +14 -0
- package/dist/@types/i18next.d.js.map +1 -0
- package/dist/Autocomplete.js +15 -4
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Banner.js +16 -6
- package/dist/Banner.js.map +1 -1
- package/dist/Box.js +29 -0
- package/dist/Box.js.map +1 -0
- package/dist/Button.js +35 -11
- package/dist/Button.js.map +1 -1
- package/dist/Callout.js +50 -0
- package/dist/Callout.js.map +1 -0
- package/dist/Checkbox.js +54 -15
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js +16 -4
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/CircularProgress.js +14 -1
- package/dist/CircularProgress.js.map +1 -1
- package/dist/Dialog.js +26 -16
- package/dist/Dialog.js.map +1 -1
- package/dist/Field.js +21 -9
- package/dist/Field.js.map +1 -1
- package/dist/FieldError.js +9 -5
- package/dist/FieldError.js.map +1 -1
- package/dist/FieldHint.js +4 -4
- package/dist/FieldHint.js.map +1 -1
- package/dist/FieldLabel.js +22 -8
- package/dist/FieldLabel.js.map +1 -1
- package/dist/Fieldset.js +64 -0
- package/dist/Fieldset.js.map +1 -0
- package/dist/FieldsetContext.js +18 -0
- package/dist/FieldsetContext.js.map +1 -0
- package/dist/Form.js +81 -0
- package/dist/Form.js.map +1 -0
- package/dist/Link.js +18 -19
- package/dist/Link.js.map +1 -1
- package/dist/MenuButton.js +41 -27
- package/dist/MenuButton.js.map +1 -1
- package/dist/MenuContext.js +18 -0
- package/dist/MenuContext.js.map +1 -0
- package/dist/MenuItem.js +25 -10
- package/dist/MenuItem.js.map +1 -1
- package/dist/MuiPropsChild.js +4 -1
- package/dist/MuiPropsChild.js.map +1 -1
- package/dist/MuiPropsContext.js +3 -1
- package/dist/MuiPropsContext.js.map +1 -1
- package/dist/NativeSelect.js +61 -0
- package/dist/NativeSelect.js.map +1 -0
- package/dist/NullElement.js +2 -0
- package/dist/NullElement.js.map +1 -0
- package/dist/OdysseyCacheProvider.js +7 -5
- package/dist/OdysseyCacheProvider.js.map +1 -1
- package/dist/OdysseyDesignTokensContext.js +17 -0
- package/dist/OdysseyDesignTokensContext.js.map +1 -0
- package/dist/OdysseyI18n.js +97 -0
- package/dist/OdysseyI18n.js.map +1 -0
- package/dist/OdysseyProvider.js +44 -0
- package/dist/OdysseyProvider.js.map +1 -0
- package/dist/OdysseyThemeProvider.js +20 -7
- package/dist/OdysseyThemeProvider.js.map +1 -1
- package/dist/OdysseyTranslationProvider.js +47 -0
- package/dist/OdysseyTranslationProvider.js.map +1 -0
- package/dist/OdysseyTranslationProvider.types.js +14 -0
- package/dist/OdysseyTranslationProvider.types.js.map +1 -0
- package/dist/PasswordField.js +19 -5
- package/dist/PasswordField.js.map +1 -1
- package/dist/Radio.js +16 -8
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +12 -2
- package/dist/RadioGroup.js.map +1 -1
- package/dist/ScreenReaderText.js +8 -5
- package/dist/ScreenReaderText.js.map +1 -1
- package/dist/SearchField.js +47 -5
- package/dist/SearchField.js.map +1 -1
- package/dist/Select.js +132 -0
- package/dist/Select.js.map +1 -0
- package/dist/Status.js +10 -4
- package/dist/Status.js.map +1 -1
- package/dist/SvgIcon.js +15 -0
- package/dist/SvgIcon.js.map +1 -0
- package/dist/Tabs.js +48 -0
- package/dist/Tabs.js.map +1 -0
- package/dist/Tag.js +23 -5
- package/dist/Tag.js.map +1 -1
- package/dist/TagList.js +14 -2
- package/dist/TagList.js.map +1 -1
- package/dist/TagListContext.js +1 -0
- package/dist/TagListContext.js.map +1 -1
- package/dist/TextField.js +13 -2
- package/dist/TextField.js.map +1 -1
- package/dist/Toast.js +21 -8
- package/dist/Toast.js.map +1 -1
- package/dist/ToastStack.js +11 -8
- package/dist/ToastStack.js.map +1 -1
- package/dist/Tooltip.js +13 -2
- package/dist/Tooltip.js.map +1 -1
- package/dist/Typography.js +283 -0
- package/dist/Typography.js.map +1 -0
- package/dist/createUniqueAlphabeticalId.js +1 -2
- package/dist/createUniqueAlphabeticalId.js.map +1 -1
- package/dist/createUniqueId.js +1 -2
- package/dist/createUniqueId.js.map +1 -1
- package/dist/icons.generated/Add.js +33 -0
- package/dist/icons.generated/Add.js.map +1 -0
- package/dist/icons.generated/AddCircle.js +33 -0
- 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/icons.generated/ArrowDown.js +33 -0
- package/dist/icons.generated/ArrowDown.js.map +1 -0
- package/dist/icons.generated/ArrowLeft.js +33 -0
- 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/icons.generated/ArrowRight.js +33 -0
- 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/icons.generated/ArrowUp.js +33 -0
- 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/icons.generated/Check.js +33 -0
- package/dist/icons.generated/Check.js.map +1 -0
- package/dist/icons.generated/CheckCircleFilled.js +33 -0
- package/dist/icons.generated/CheckCircleFilled.js.map +1 -0
- package/dist/icons.generated/ChevronDown.js +33 -0
- 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/icons.generated/ChevronUp.js +33 -0
- 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/icons.generated/Close.js +33 -0
- package/dist/icons.generated/Close.js.map +1 -0
- package/dist/icons.generated/CloseCircleFilled.js +33 -0
- package/dist/icons.generated/CloseCircleFilled.js.map +1 -0
- package/dist/icons.generated/CollapseLeft.js +33 -0
- 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/icons.generated/Delete.js +33 -0
- 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/icons.generated/Edit.js +33 -0
- 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/icons.generated/ExpandRight.js +33 -0
- package/dist/icons.generated/ExpandRight.js.map +1 -0
- package/dist/icons.generated/ExternalLink.js +33 -0
- package/dist/icons.generated/ExternalLink.js.map +1 -0
- package/dist/icons.generated/Filter.js +33 -0
- 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/icons.generated/Globe.js +33 -0
- 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/icons.generated/InformationCircle.js +33 -0
- package/dist/icons.generated/InformationCircle.js.map +1 -0
- package/dist/icons.generated/InformationCircleFilled.js +33 -0
- 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/icons.generated/Lock.js +33 -0
- 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/icons.generated/Notification.js +33 -0
- 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/icons.generated/QuestionCircle.js +33 -0
- package/dist/icons.generated/QuestionCircle.js.map +1 -0
- package/dist/icons.generated/QuestionCircleFilled.js +33 -0
- 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/icons.generated/Search.js +33 -0
- 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/icons.generated/Subtract.js +33 -0
- package/dist/icons.generated/Subtract.js.map +1 -0
- package/dist/icons.generated/Sync.js +33 -0
- package/dist/icons.generated/Sync.js.map +1 -0
- package/dist/icons.generated/Unlock.js +33 -0
- 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/icons.generated/User.js +33 -0
- 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 +15 -8
- package/dist/index.js.map +1 -1
- package/dist/labs/DatePicker.js +42 -0
- package/dist/labs/DatePicker.js.map +1 -0
- package/dist/labs/DatePicker.types.js +12 -0
- 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/labs/index.js +20 -0
- 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 +16 -0
- package/dist/properties/ts/odyssey-react-mui.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_cs.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_da.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_de.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_el.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_es.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_fi.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_fr.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_hu.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_id.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_it.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ja.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ko.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ms.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_nb.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -0
- 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 +16 -0
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -0
- 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 +16 -0
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ru.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_sv.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_th.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_tr.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_uk.js +16 -0
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -0
- 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/dist/scripts/generateIconsIndex.d.ts +13 -0
- 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 +20 -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/Callout.d.ts +37 -0
- package/dist/src/Callout.d.ts.map +1 -0
- package/dist/src/Checkbox.d.ts +40 -5
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +20 -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 +10 -6
- 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 +1 -2
- package/dist/src/FieldLabel.d.ts.map +1 -1
- package/dist/src/Fieldset.d.ts +46 -0
- package/dist/src/Fieldset.d.ts.map +1 -0
- package/dist/src/FieldsetContext.d.ts +18 -0
- package/dist/src/FieldsetContext.d.ts.map +1 -0
- package/dist/src/Form.d.ts +76 -0
- package/dist/src/Form.d.ts.map +1 -0
- 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 +75 -0
- package/dist/src/NativeSelect.d.ts.map +1 -0
- package/dist/src/NullElement.d.ts +13 -0
- 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 +429 -0
- package/dist/src/OdysseyI18n.d.ts.map +1 -0
- package/dist/src/OdysseyProvider.d.ts +21 -0
- package/dist/src/OdysseyProvider.d.ts.map +1 -0
- package/dist/src/OdysseyThemeProvider.d.ts +9 -6
- package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts +24 -0
- package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -0
- package/dist/src/OdysseyTranslationProvider.types.d.ts +14 -0
- package/dist/src/OdysseyTranslationProvider.types.d.ts.map +1 -0
- 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 +71 -0
- package/dist/src/Select.d.ts.map +1 -0
- package/dist/src/Status.d.ts +11 -5
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/SvgIcon.d.ts +21 -0
- package/dist/src/SvgIcon.d.ts.map +1 -0
- package/dist/src/Tabs.d.ts +51 -0
- package/dist/src/Tabs.d.ts.map +1 -0
- 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 -8
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Toast.d.ts +12 -11
- 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/icons.generated/Check.d.ts +16 -0
- 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 +36 -21
- 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/labs/datePickerTheme.d.ts +14 -0
- 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 +16 -0
- package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -0
- 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 +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -0
- 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 +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +16 -0
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -0
- 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 +1 -2
- package/dist/src/theme/index.d.ts.map +1 -1
- package/dist/src/theme/mixins.d.ts +2 -1
- package/dist/src/theme/mixins.d.ts.map +1 -1
- package/dist/src/theme/palette.d.ts +2 -1
- package/dist/src/theme/palette.d.ts.map +1 -1
- package/dist/src/theme/shape.d.ts +2 -1
- package/dist/src/theme/shape.d.ts.map +1 -1
- package/dist/src/theme/spacing.d.ts +2 -1
- package/dist/src/theme/spacing.d.ts.map +1 -1
- package/dist/src/theme/theme.d.ts +4 -2
- package/dist/src/theme/theme.d.ts.map +1 -1
- package/dist/src/theme/typography.d.ts +2 -1
- 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 +1673 -1738
- package/dist/theme/components.js.map +1 -1
- package/dist/theme/components.types.js +1 -0
- package/dist/theme/components.types.js.map +1 -1
- package/dist/theme/index.js +1 -2
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/mixins.js +8 -6
- package/dist/theme/mixins.js.map +1 -1
- package/dist/theme/mixins.types.js +1 -0
- package/dist/theme/mixins.types.js.map +1 -1
- package/dist/theme/palette.js +89 -87
- package/dist/theme/palette.js.map +1 -1
- package/dist/theme/palette.types.js +1 -0
- package/dist/theme/palette.types.js.map +1 -1
- package/dist/theme/shape.js +6 -4
- package/dist/theme/shape.js.map +1 -1
- package/dist/theme/spacing.js +4 -2
- package/dist/theme/spacing.js.map +1 -1
- package/dist/theme/theme.js +8 -9
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/typography.js +115 -83
- package/dist/theme/typography.js.map +1 -1
- package/dist/theme/typography.types.js +1 -0
- package/dist/theme/typography.types.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/useUniqueAlphabeticalId.js +1 -0
- package/dist/useUniqueAlphabeticalId.js.map +1 -1
- package/dist/useUniqueId.js +1 -0
- package/dist/useUniqueId.js.map +1 -1
- package/i18n.config.json +7 -0
- package/package.json +28 -8
- package/scripts/generateIconsIndex.ts +49 -0
- package/scripts/properties-to-ts.js +96 -0
- package/src/@types/i18next.d.ts +22 -0
- package/src/Autocomplete.tsx +36 -1
- package/src/Banner.tsx +30 -15
- package/src/Box.tsx +28 -0
- package/src/Button.tsx +100 -19
- package/src/Callout.tsx +62 -0
- package/src/Checkbox.tsx +102 -26
- package/src/CheckboxGroup.tsx +24 -2
- package/src/CircularProgress.tsx +13 -1
- package/src/Dialog.tsx +44 -16
- package/src/Field.tsx +32 -9
- package/src/FieldError.tsx +8 -2
- package/src/FieldHint.tsx +2 -1
- package/src/FieldLabel.tsx +8 -6
- package/src/Fieldset.tsx +106 -0
- package/src/FieldsetContext.tsx +23 -0
- package/src/Form.tsx +152 -0
- package/src/Link.tsx +49 -29
- package/src/MenuButton.tsx +89 -39
- package/src/MenuContext.ts +25 -0
- package/src/MenuItem.tsx +68 -23
- package/src/MuiPropsChild.tsx +1 -0
- package/src/MuiPropsContext.ts +3 -1
- package/src/NativeSelect.tsx +146 -0
- package/src/NullElement.tsx +13 -0
- package/src/OdysseyCacheProvider.test.tsx +1 -1
- package/src/OdysseyCacheProvider.tsx +13 -7
- package/src/OdysseyDesignTokensContext.tsx +19 -0
- package/src/OdysseyI18n.ts +105 -0
- package/src/OdysseyProvider.tsx +60 -0
- package/src/OdysseyThemeProvider.tsx +33 -10
- package/src/OdysseyTranslationProvider.test.tsx +63 -0
- package/src/OdysseyTranslationProvider.tsx +65 -0
- package/src/OdysseyTranslationProvider.types.ts +44 -0
- package/src/PasswordField.tsx +9 -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 +264 -0
- package/src/Status.tsx +26 -9
- package/src/SvgIcon.ts +23 -0
- package/src/Tabs.tsx +103 -0
- package/src/Tag.tsx +34 -14
- package/src/TagList.tsx +12 -2
- package/src/TextField.tsx +12 -10
- package/src/Toast.tsx +82 -77
- package/src/ToastStack.tsx +12 -2
- package/src/Tooltip.tsx +15 -3
- package/src/Typography.tsx +357 -0
- package/src/icons.generated/Add.tsx +41 -0
- package/src/icons.generated/AddCircle.tsx +43 -0
- package/src/icons.generated/Apps.tsx +43 -0
- package/src/icons.generated/ArrowDown.tsx +43 -0
- package/src/icons.generated/ArrowLeft.tsx +43 -0
- package/src/icons.generated/ArrowLowerLeft.tsx +44 -0
- package/src/icons.generated/ArrowLowerRight.tsx +44 -0
- package/src/icons.generated/ArrowRight.tsx +43 -0
- package/src/icons.generated/ArrowUnsorted.tsx +44 -0
- package/src/icons.generated/ArrowUp.tsx +43 -0
- package/src/icons.generated/ArrowUpperLeft.tsx +44 -0
- package/src/icons.generated/ArrowUpperRight.tsx +44 -0
- package/src/icons.generated/Bug.tsx +41 -0
- 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/icons.generated/Check.tsx +43 -0
- package/src/icons.generated/CheckCircleFilled.tsx +44 -0
- package/src/icons.generated/ChevronDown.tsx +43 -0
- package/src/icons.generated/ChevronLeft.tsx +43 -0
- package/src/icons.generated/ChevronRight.tsx +44 -0
- package/src/icons.generated/ChevronUp.tsx +43 -0
- package/src/icons.generated/Clock.tsx +43 -0
- package/src/icons.generated/Close.tsx +43 -0
- package/src/icons.generated/CloseCircleFilled.tsx +44 -0
- 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/icons.generated/Delete.tsx +43 -0
- package/src/icons.generated/Deny.tsx +43 -0
- package/src/icons.generated/Devices.tsx +43 -0
- 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/icons.generated/Edit.tsx +43 -0
- package/src/icons.generated/ExpandLeft.tsx +43 -0
- package/src/icons.generated/ExpandRight.tsx +43 -0
- package/src/icons.generated/ExternalLink.tsx +44 -0
- package/src/icons.generated/Filter.tsx +43 -0
- 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/icons.generated/Group.tsx +43 -0
- package/src/icons.generated/Hide.tsx +43 -0
- package/src/icons.generated/Home.tsx +43 -0
- package/src/icons.generated/InformationCircle.tsx +44 -0
- package/src/icons.generated/InformationCircleFilled.tsx +44 -0
- 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/icons.generated/Notification.tsx +44 -0
- package/src/icons.generated/Pause.tsx +43 -0
- package/src/icons.generated/QuestionCircle.tsx +44 -0
- package/src/icons.generated/QuestionCircleFilled.tsx +44 -0
- 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/icons.generated/Search.tsx +43 -0
- 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/icons.generated/Subtract.tsx +43 -0
- package/src/icons.generated/Sync.tsx +43 -0
- package/src/icons.generated/Unlock.tsx +43 -0
- package/src/icons.generated/Upload.tsx +43 -0
- package/src/icons.generated/User.tsx +43 -0
- 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 +28 -74
- 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 +44 -0
- package/src/labs/StaticTable.tsx +122 -0
- package/src/labs/datePickerTheme.tsx +341 -0
- package/src/labs/index.ts +24 -0
- package/src/labs/materialReactTableTypes.ts +19 -0
- package/src/properties/odyssey-react-mui.properties +13 -0
- 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 -0
- package/src/properties/ts/odyssey-react-mui_cs.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_da.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_de.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_el.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_es.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_fi.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_fr.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_hu.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_id.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_it.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ja.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ko.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ms.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_nb.ts +1 -0
- 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 -0
- package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ro.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ru.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_sv.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_th.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_tr.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_uk.ts +1 -0
- 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 +1919 -1727
- package/src/theme/components.types.ts +4 -2
- package/src/theme/index.ts +1 -2
- package/src/theme/mixins.ts +9 -6
- package/src/theme/palette.ts +94 -89
- package/src/theme/shape.ts +11 -8
- package/src/theme/spacing.ts +18 -13
- package/src/theme/theme.ts +13 -11
- package/src/theme/typography.ts +120 -83
- package/src/theme/typography.types.ts +2 -2
- package/tsconfig.json +3 -0
- package/dist/Icon.js +0 -31
- package/dist/Icon.js.map +0 -1
- package/dist/Infobox.js +0 -38
- package/dist/Infobox.js.map +0 -1
- package/dist/ThemeProvider.js +0 -30
- package/dist/ThemeProvider.js.map +0 -1
- package/dist/a11yCheck.js +0 -26
- package/dist/a11yCheck.js.map +0 -1
- package/dist/iconDictionary/Add.js +0 -34
- package/dist/iconDictionary/Add.js.map +0 -1
- package/dist/iconDictionary/AddCircle.js +0 -34
- package/dist/iconDictionary/AddCircle.js.map +0 -1
- package/dist/iconDictionary/AlertCircle.js +0 -34
- package/dist/iconDictionary/AlertCircle.js.map +0 -1
- package/dist/iconDictionary/AlertCircleFilled.js +0 -34
- package/dist/iconDictionary/AlertCircleFilled.js.map +0 -1
- package/dist/iconDictionary/AlertTriangleFilled.js +0 -34
- package/dist/iconDictionary/AlertTriangleFilled.js.map +0 -1
- package/dist/iconDictionary/Anchor.js +0 -36
- package/dist/iconDictionary/Anchor.js.map +0 -1
- package/dist/iconDictionary/ArrowDown.js +0 -34
- package/dist/iconDictionary/ArrowDown.js.map +0 -1
- package/dist/iconDictionary/ArrowLeft.js +0 -34
- package/dist/iconDictionary/ArrowLeft.js.map +0 -1
- package/dist/iconDictionary/ArrowRight.js +0 -34
- package/dist/iconDictionary/ArrowRight.js.map +0 -1
- package/dist/iconDictionary/ArrowUp.js +0 -34
- package/dist/iconDictionary/ArrowUp.js.map +0 -1
- package/dist/iconDictionary/ArrowUpDown.js +0 -34
- package/dist/iconDictionary/ArrowUpDown.js.map +0 -1
- package/dist/iconDictionary/Calendar.js +0 -34
- package/dist/iconDictionary/Calendar.js.map +0 -1
- package/dist/iconDictionary/Check.js +0 -34
- package/dist/iconDictionary/Check.js.map +0 -1
- package/dist/iconDictionary/CheckCircleFilled.js +0 -34
- package/dist/iconDictionary/CheckCircleFilled.js.map +0 -1
- package/dist/iconDictionary/ChevronDown.js +0 -34
- package/dist/iconDictionary/ChevronDown.js.map +0 -1
- package/dist/iconDictionary/ChevronUp.js +0 -34
- package/dist/iconDictionary/ChevronUp.js.map +0 -1
- package/dist/iconDictionary/Close.js +0 -34
- package/dist/iconDictionary/Close.js.map +0 -1
- package/dist/iconDictionary/CloseCircleFilled.js +0 -34
- package/dist/iconDictionary/CloseCircleFilled.js.map +0 -1
- package/dist/iconDictionary/Copy.js +0 -34
- package/dist/iconDictionary/Copy.js.map +0 -1
- package/dist/iconDictionary/Delete.js +0 -34
- package/dist/iconDictionary/Delete.js.map +0 -1
- package/dist/iconDictionary/Download.js +0 -34
- package/dist/iconDictionary/Download.js.map +0 -1
- package/dist/iconDictionary/DragHandle.js +0 -34
- package/dist/iconDictionary/DragHandle.js.map +0 -1
- package/dist/iconDictionary/Edit.js +0 -34
- package/dist/iconDictionary/Edit.js.map +0 -1
- package/dist/iconDictionary/ExternalLink.js +0 -34
- package/dist/iconDictionary/ExternalLink.js.map +0 -1
- package/dist/iconDictionary/Eye.js +0 -34
- package/dist/iconDictionary/Eye.js.map +0 -1
- package/dist/iconDictionary/EyeOff.js +0 -34
- package/dist/iconDictionary/EyeOff.js.map +0 -1
- package/dist/iconDictionary/Filter.js +0 -34
- package/dist/iconDictionary/Filter.js.map +0 -1
- package/dist/iconDictionary/Globe.js +0 -34
- package/dist/iconDictionary/Globe.js.map +0 -1
- package/dist/iconDictionary/Home.js +0 -34
- package/dist/iconDictionary/Home.js.map +0 -1
- package/dist/iconDictionary/InformationCircle.js +0 -34
- package/dist/iconDictionary/InformationCircle.js.map +0 -1
- package/dist/iconDictionary/InformationCircleFilled.js +0 -34
- package/dist/iconDictionary/InformationCircleFilled.js.map +0 -1
- package/dist/iconDictionary/Notification.js +0 -34
- package/dist/iconDictionary/Notification.js.map +0 -1
- package/dist/iconDictionary/OverflowVertical.js +0 -34
- package/dist/iconDictionary/OverflowVertical.js.map +0 -1
- package/dist/iconDictionary/QuestionCircle.js +0 -34
- package/dist/iconDictionary/QuestionCircle.js.map +0 -1
- package/dist/iconDictionary/QuestionCircleFilled.js +0 -34
- package/dist/iconDictionary/QuestionCircleFilled.js.map +0 -1
- package/dist/iconDictionary/Search.js +0 -34
- package/dist/iconDictionary/Search.js.map +0 -1
- package/dist/iconDictionary/Settings.js +0 -32
- package/dist/iconDictionary/Settings.js.map +0 -1
- package/dist/iconDictionary/Subtract.js +0 -34
- package/dist/iconDictionary/Subtract.js.map +0 -1
- package/dist/iconDictionary/SvgIcon.js +0 -14
- package/dist/iconDictionary/SvgIcon.js.map +0 -1
- package/dist/iconDictionary/User.js +0 -34
- package/dist/iconDictionary/User.js.map +0 -1
- package/dist/iconDictionary/UserGroup.js +0 -34
- 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/src/Icon.d.ts +0 -27
- package/dist/src/Icon.d.ts.map +0 -1
- package/dist/src/Infobox.d.ts +0 -36
- package/dist/src/Infobox.d.ts.map +0 -1
- package/dist/src/ThemeProvider.d.ts +0 -17
- package/dist/src/ThemeProvider.d.ts.map +0 -1
- package/dist/src/a11yCheck.d.ts +0 -14
- 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 +0 -16
- 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 +0 -14
- 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 +0 -19
- package/dist/src/iconDictionary/types.d.ts.map +0 -1
- package/dist/src/theme/OdysseyTheme.d.ts +0 -23
- package/dist/src/theme/OdysseyTheme.d.ts.map +0 -1
- package/dist/src/theme/temp.d.ts +0 -16
- package/dist/src/theme/temp.d.ts.map +0 -1
- package/dist/src/theme/useTheme.d.ts +0 -14
- 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 +0 -15
- package/dist/theme/temp.js.map +0 -1
- package/dist/theme/useTheme.js +0 -16
- 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 -57
- package/src/Infobox.tsx +0 -48
- package/src/ThemeProvider.tsx +0 -26
- package/src/a11yCheck.ts +0 -28
- package/src/iconDictionary/Add.tsx +0 -42
- package/src/iconDictionary/AddCircle.tsx +0 -44
- package/src/iconDictionary/AlertCircle.tsx +0 -44
- package/src/iconDictionary/AlertCircleFilled.tsx +0 -45
- package/src/iconDictionary/AlertTriangleFilled.tsx +0 -45
- package/src/iconDictionary/Anchor.tsx +0 -46
- package/src/iconDictionary/ArrowDown.tsx +0 -44
- package/src/iconDictionary/ArrowLeft.tsx +0 -44
- package/src/iconDictionary/ArrowRight.tsx +0 -44
- package/src/iconDictionary/ArrowUp.tsx +0 -44
- package/src/iconDictionary/ArrowUpDown.tsx +0 -44
- package/src/iconDictionary/Calendar.tsx +0 -44
- package/src/iconDictionary/Check.tsx +0 -44
- package/src/iconDictionary/CheckCircleFilled.tsx +0 -45
- package/src/iconDictionary/ChevronDown.tsx +0 -44
- package/src/iconDictionary/ChevronUp.tsx +0 -44
- package/src/iconDictionary/Close.tsx +0 -44
- package/src/iconDictionary/CloseCircleFilled.tsx +0 -45
- package/src/iconDictionary/Copy.tsx +0 -44
- package/src/iconDictionary/Delete.tsx +0 -44
- package/src/iconDictionary/Download.tsx +0 -44
- package/src/iconDictionary/DragHandle.tsx +0 -44
- package/src/iconDictionary/Edit.tsx +0 -44
- package/src/iconDictionary/ExternalLink.tsx +0 -45
- package/src/iconDictionary/Eye.tsx +0 -42
- package/src/iconDictionary/EyeOff.tsx +0 -44
- package/src/iconDictionary/Filter.tsx +0 -44
- package/src/iconDictionary/Globe.tsx +0 -44
- package/src/iconDictionary/Home.tsx +0 -44
- package/src/iconDictionary/InformationCircle.tsx +0 -45
- package/src/iconDictionary/InformationCircleFilled.tsx +0 -45
- package/src/iconDictionary/Notification.tsx +0 -45
- package/src/iconDictionary/OverflowVertical.tsx +0 -45
- package/src/iconDictionary/QuestionCircle.tsx +0 -45
- package/src/iconDictionary/QuestionCircleFilled.tsx +0 -45
- package/src/iconDictionary/Search.tsx +0 -44
- package/src/iconDictionary/Settings.tsx +0 -42
- package/src/iconDictionary/Subtract.tsx +0 -44
- package/src/iconDictionary/SvgIcon.ts +0 -14
- package/src/iconDictionary/User.tsx +0 -44
- package/src/iconDictionary/UserGroup.tsx +0 -44
- package/src/iconDictionary/index.ts +0 -176
- package/src/iconDictionary/types.ts +0 -20
- package/src/theme/OdysseyTheme.ts +0 -25
- package/src/theme/temp.ts +0 -19
- package/src/theme/useTheme.ts +0 -18
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
+
|
|
12
13
|
import { useMemo } from "react";
|
|
13
14
|
import { createUniqueAlphabeticalId } from "./createUniqueAlphabeticalId.js";
|
|
14
15
|
export const useUniqueAlphabeticalId = id => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniqueAlphabeticalId.js","names":["useMemo","createUniqueAlphabeticalId","useUniqueAlphabeticalId","id","uniqueAlphabeticalId"],"sources":["../src/useUniqueAlphabeticalId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMemo } from \"react\";\n\nimport { createUniqueAlphabeticalId } from \"./createUniqueAlphabeticalId\";\n\nexport const useUniqueAlphabeticalId = (id?: string) => {\n const uniqueAlphabeticalId = useMemo(() => createUniqueAlphabeticalId(), []);\n\n return id ?? uniqueAlphabeticalId;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":"useUniqueAlphabeticalId.js","names":["useMemo","createUniqueAlphabeticalId","useUniqueAlphabeticalId","id","uniqueAlphabeticalId"],"sources":["../src/useUniqueAlphabeticalId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMemo } from \"react\";\n\nimport { createUniqueAlphabeticalId } from \"./createUniqueAlphabeticalId\";\n\nexport const useUniqueAlphabeticalId = (id?: string) => {\n const uniqueAlphabeticalId = useMemo(() => createUniqueAlphabeticalId(), []);\n\n return id ?? uniqueAlphabeticalId;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,OAAO;AAAC,SAEvBC,0BAA0B;AAEnC,OAAO,MAAMC,uBAAuB,GAAIC,EAAW,IAAK;EACtD,MAAMC,oBAAoB,GAAGJ,OAAO,CAAC,MAAMC,0BAA0B,CAAC,CAAC,EAAE,EAAE,CAAC;EAE5E,OAAOE,EAAE,IAAIC,oBAAoB;AACnC,CAAC"}
|
package/dist/useUniqueId.js
CHANGED
package/dist/useUniqueId.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUniqueId.js","names":["useMemo","createUniqueId","useUniqueId","id","uniqueId"],"sources":["../src/useUniqueId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMemo } from \"react\";\n\nimport { createUniqueId } from \"./createUniqueId\";\n\nexport const useUniqueId = (id?: string) => {\n const uniqueId = useMemo(() => createUniqueId(), []);\n\n return id ?? uniqueId;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":"useUniqueId.js","names":["useMemo","createUniqueId","useUniqueId","id","uniqueId"],"sources":["../src/useUniqueId.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMemo } from \"react\";\n\nimport { createUniqueId } from \"./createUniqueId\";\n\nexport const useUniqueId = (id?: string) => {\n const uniqueId = useMemo(() => createUniqueId(), []);\n\n return id ?? uniqueId;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,OAAO;AAAC,SAEvBC,cAAc;AAEvB,OAAO,MAAMC,WAAW,GAAIC,EAAW,IAAK;EAC1C,MAAMC,QAAQ,GAAGJ,OAAO,CAAC,MAAMC,cAAc,CAAC,CAAC,EAAE,EAAE,CAAC;EAEpD,OAAOE,EAAE,IAAIC,QAAQ;AACvB,CAAC"}
|
package/i18n.config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceFile": "odyssey-react-mui.properties",
|
|
3
|
+
"resourceFilePath": "packages/odyssey-react-mui/src/properties",
|
|
4
|
+
"translationsFilePath": "packages/odyssey-react-mui/src/properties/translations",
|
|
5
|
+
"commitPrefix": "chore(odyssey-react-mui): ",
|
|
6
|
+
"reviewers": ["okta/eng-globalizationcore", "okta/design-system"]
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
8
9
|
"main": "dist/index.js",
|
|
9
10
|
"module": "dist/index.js",
|
|
10
11
|
"types": "dist/src/index.d.ts",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
12
|
+
"typesVersions": {
|
|
13
|
+
"*": {
|
|
14
|
+
"*": [
|
|
15
|
+
"./dist/src/index.d.ts"
|
|
16
|
+
],
|
|
17
|
+
"icons": [
|
|
18
|
+
"./dist/src/icons.generated/index.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"labs": [
|
|
21
|
+
"./dist/src/labs/index.d.ts"
|
|
22
|
+
]
|
|
15
23
|
}
|
|
16
24
|
},
|
|
25
|
+
"exports": {
|
|
26
|
+
"./icons": "./dist/icons.generated/index.js",
|
|
27
|
+
"./labs": "./dist/labs/index.js",
|
|
28
|
+
".": "./dist/index.js",
|
|
29
|
+
"./README.md": "./README.md"
|
|
30
|
+
},
|
|
17
31
|
"repository": {
|
|
18
32
|
"type": "git",
|
|
19
33
|
"url": "https://github.com/okta/odyssey",
|
|
@@ -23,9 +37,15 @@
|
|
|
23
37
|
"@emotion/cache": "^11.10.5",
|
|
24
38
|
"@mui/icons-material": "^5.11.0",
|
|
25
39
|
"@mui/lab": "^5.0.0-alpha.117",
|
|
26
|
-
"@mui/material": "^5.
|
|
40
|
+
"@mui/material": "^5.12.3",
|
|
27
41
|
"@mui/utils": "^5.11.2",
|
|
28
|
-
"@
|
|
42
|
+
"@mui/x-date-pickers": "^5.0.15",
|
|
43
|
+
"@okta/odyssey-design-tokens": "1.0.0",
|
|
44
|
+
"date-fns": "^2.30.0",
|
|
45
|
+
"i18next": "^22.4.15",
|
|
46
|
+
"material-react-table": "^1.14.0",
|
|
47
|
+
"react-i18next": "^12.2.2",
|
|
48
|
+
"ts-node": "^10.9.1"
|
|
29
49
|
},
|
|
30
50
|
"peerDependencies": {
|
|
31
51
|
"@emotion/react": "^11",
|
|
@@ -33,5 +53,5 @@
|
|
|
33
53
|
"react": ">=17 <19",
|
|
34
54
|
"react-dom": ">=17 <19"
|
|
35
55
|
},
|
|
36
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "7b68d42ee9f74c21b72eb47bdfdda1df31388e87"
|
|
37
57
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { readdir, writeFile } from "node:fs/promises";
|
|
14
|
+
import { extname, basename } from "node:path";
|
|
15
|
+
|
|
16
|
+
const currentYear = new Date().getFullYear();
|
|
17
|
+
|
|
18
|
+
export const headerComment = `/*!
|
|
19
|
+
* Copyright (c) ${currentYear}-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
20
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
21
|
+
*
|
|
22
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
24
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
25
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26
|
+
*
|
|
27
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
// Code automatically generated by svgr; DO NOT EDIT.
|
|
31
|
+
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
readdir("./src/icons.generated")
|
|
35
|
+
.then((filenames) =>
|
|
36
|
+
headerComment.concat(
|
|
37
|
+
filenames
|
|
38
|
+
.map((filename) => basename(filename, extname(filename)))
|
|
39
|
+
.map((filename) => `export * from "./${filename}";`)
|
|
40
|
+
.join("\n")
|
|
41
|
+
)
|
|
42
|
+
)
|
|
43
|
+
.then((content) => writeFile("./src/icons.generated/index.ts", content))
|
|
44
|
+
.then(() => {
|
|
45
|
+
console.info("Completed writing index file.");
|
|
46
|
+
})
|
|
47
|
+
.catch((error) => {
|
|
48
|
+
console.error(error);
|
|
49
|
+
});
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
// Part of this has been copied over from @okta/ui-build-tools' own internal node script
|
|
14
|
+
// https://github.com/okta/ui-build-tools/blob/master/packages/clis/i18n/properties-to-json.js
|
|
15
|
+
|
|
16
|
+
import { resolve, join, basename, extname } from "node:path";
|
|
17
|
+
import {
|
|
18
|
+
readFileSync,
|
|
19
|
+
writeFileSync,
|
|
20
|
+
rmSync,
|
|
21
|
+
existsSync,
|
|
22
|
+
mkdirSync,
|
|
23
|
+
} from "node:fs";
|
|
24
|
+
import properties from "properties";
|
|
25
|
+
import readdir from "recursive-readdir";
|
|
26
|
+
import yargs from "yargs";
|
|
27
|
+
import { hideBin } from "yargs/helpers";
|
|
28
|
+
|
|
29
|
+
const convert = (baseFiles, propertiesTargetDir) => {
|
|
30
|
+
for (const src of baseFiles) {
|
|
31
|
+
const filename = basename(src);
|
|
32
|
+
const extension = extname(src);
|
|
33
|
+
const source = `${readFileSync(src)}`;
|
|
34
|
+
|
|
35
|
+
properties.parse(source, function (error, obj) {
|
|
36
|
+
if (error) {
|
|
37
|
+
return console.error(error);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const targetFile = join(
|
|
41
|
+
propertiesTargetDir,
|
|
42
|
+
filename.replace(extension, ".ts")
|
|
43
|
+
);
|
|
44
|
+
writeFileSync(
|
|
45
|
+
targetFile,
|
|
46
|
+
`export const translation = ${JSON.stringify(obj)};`
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
async function convertPropertiesToJson({ resourcePath, targetJsonPath }) {
|
|
53
|
+
const sourceDirectory = resolve(resourcePath);
|
|
54
|
+
const propertiesTargetDirectory = resolve(targetJsonPath);
|
|
55
|
+
|
|
56
|
+
if (!existsSync(sourceDirectory)) {
|
|
57
|
+
mkdirSync(sourceDirectory);
|
|
58
|
+
}
|
|
59
|
+
if (existsSync(propertiesTargetDirectory)) {
|
|
60
|
+
rmSync(propertiesTargetDirectory, { recursive: true, force: true });
|
|
61
|
+
}
|
|
62
|
+
mkdirSync(propertiesTargetDirectory);
|
|
63
|
+
|
|
64
|
+
let baseFiles = await readdir(sourceDirectory);
|
|
65
|
+
convert(baseFiles, propertiesTargetDirectory);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
yargs(hideBin(process.argv))
|
|
69
|
+
.scriptName("properties-to-ts")
|
|
70
|
+
.usage("$0 <cmd> [args]")
|
|
71
|
+
.command(
|
|
72
|
+
"bundle",
|
|
73
|
+
"Converts properties file to ts",
|
|
74
|
+
(yargs) => {
|
|
75
|
+
yargs
|
|
76
|
+
.positional("resourcePath", {
|
|
77
|
+
type: "string",
|
|
78
|
+
default: "src/properties",
|
|
79
|
+
describe: "A relative path to resources based on cwd.",
|
|
80
|
+
})
|
|
81
|
+
.positional("targetJsonPath", {
|
|
82
|
+
type: "string",
|
|
83
|
+
default: "src/properties/ts",
|
|
84
|
+
describe: "A relative path to directory for ts file output",
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
function (argv) {
|
|
88
|
+
const { resourcePath, targetJsonPath } = argv;
|
|
89
|
+
|
|
90
|
+
convertPropertiesToJson({
|
|
91
|
+
resourcePath,
|
|
92
|
+
targetJsonPath,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
.help().argv;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 "i18next";
|
|
14
|
+
import { translation as en } from "../properties/ts/odyssey-react-mui";
|
|
15
|
+
|
|
16
|
+
declare module "i18next" {
|
|
17
|
+
interface CustomTypeOptions {
|
|
18
|
+
resources: {
|
|
19
|
+
translations: typeof en;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/Autocomplete.tsx
CHANGED
|
@@ -24,56 +24,89 @@ export type AutocompleteProps<
|
|
|
24
24
|
HasMultipleChoices extends boolean | undefined,
|
|
25
25
|
IsCustomValueAllowed extends boolean | undefined
|
|
26
26
|
> = {
|
|
27
|
+
/**
|
|
28
|
+
* Enables multiple choice selection
|
|
29
|
+
*/
|
|
27
30
|
hasMultipleChoices?: MuiAutocompleteProps<
|
|
28
31
|
OptionType,
|
|
29
32
|
HasMultipleChoices,
|
|
30
33
|
undefined,
|
|
31
34
|
IsCustomValueAllowed
|
|
32
35
|
>["multiple"];
|
|
36
|
+
/**
|
|
37
|
+
* The hint text for the Autocomplete input
|
|
38
|
+
*/
|
|
33
39
|
hint?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Allows the input of custom values
|
|
42
|
+
*/
|
|
34
43
|
isCustomValueAllowed?: MuiAutocompleteProps<
|
|
35
44
|
OptionType,
|
|
36
45
|
HasMultipleChoices,
|
|
37
46
|
undefined,
|
|
38
47
|
IsCustomValueAllowed
|
|
39
48
|
>["freeSolo"];
|
|
49
|
+
/**
|
|
50
|
+
* Disables the Autocomplete input
|
|
51
|
+
*/
|
|
40
52
|
isDisabled?: MuiAutocompleteProps<
|
|
41
53
|
OptionType,
|
|
42
54
|
HasMultipleChoices,
|
|
43
55
|
undefined,
|
|
44
56
|
IsCustomValueAllowed
|
|
45
57
|
>["disabled"];
|
|
58
|
+
/**
|
|
59
|
+
* Displays a loading indicator
|
|
60
|
+
*/
|
|
46
61
|
isLoading?: MuiAutocompleteProps<
|
|
47
62
|
OptionType,
|
|
48
63
|
HasMultipleChoices,
|
|
49
64
|
undefined,
|
|
50
65
|
IsCustomValueAllowed
|
|
51
66
|
>["loading"];
|
|
67
|
+
/**
|
|
68
|
+
* Makes the Autocomplete input read-only
|
|
69
|
+
*/
|
|
52
70
|
isReadOnly?: MuiAutocompleteProps<
|
|
53
71
|
OptionType,
|
|
54
72
|
HasMultipleChoices,
|
|
55
73
|
undefined,
|
|
56
74
|
IsCustomValueAllowed
|
|
57
75
|
>["readOnly"];
|
|
76
|
+
/**
|
|
77
|
+
* The label text for the autocomplete input
|
|
78
|
+
*/
|
|
58
79
|
label: string;
|
|
80
|
+
/**
|
|
81
|
+
* Callback fired when the value of the autocomplete input changes
|
|
82
|
+
*/
|
|
59
83
|
onChange?: MuiAutocompleteProps<
|
|
60
84
|
OptionType,
|
|
61
85
|
HasMultipleChoices,
|
|
62
86
|
undefined,
|
|
63
87
|
IsCustomValueAllowed
|
|
64
88
|
>["onChange"];
|
|
89
|
+
/**
|
|
90
|
+
* Callback fired when the input value of the autocomplete input changes
|
|
91
|
+
*/
|
|
65
92
|
onInputChange?: MuiAutocompleteProps<
|
|
66
93
|
OptionType,
|
|
67
94
|
HasMultipleChoices,
|
|
68
95
|
undefined,
|
|
69
96
|
IsCustomValueAllowed
|
|
70
97
|
>["onInputChange"];
|
|
98
|
+
/**
|
|
99
|
+
* The options for the Autocomplete input
|
|
100
|
+
*/
|
|
71
101
|
options: MuiAutocompleteProps<
|
|
72
102
|
OptionType,
|
|
73
103
|
HasMultipleChoices,
|
|
74
104
|
undefined,
|
|
75
105
|
IsCustomValueAllowed
|
|
76
106
|
>["options"];
|
|
107
|
+
/**
|
|
108
|
+
* The value of the Autocomplete input
|
|
109
|
+
*/
|
|
77
110
|
value?: MuiAutocompleteProps<
|
|
78
111
|
OptionType,
|
|
79
112
|
HasMultipleChoices,
|
|
@@ -87,8 +120,8 @@ const Autocomplete = <
|
|
|
87
120
|
HasMultipleChoices extends boolean | undefined,
|
|
88
121
|
IsCustomValueAllowed extends boolean | undefined
|
|
89
122
|
>({
|
|
90
|
-
isCustomValueAllowed,
|
|
91
123
|
hasMultipleChoices,
|
|
124
|
+
isCustomValueAllowed,
|
|
92
125
|
isDisabled,
|
|
93
126
|
isLoading,
|
|
94
127
|
isReadOnly,
|
|
@@ -122,6 +155,8 @@ const Autocomplete = <
|
|
|
122
155
|
|
|
123
156
|
return (
|
|
124
157
|
<MuiAutocomplete
|
|
158
|
+
// AutoComplete is wrapped in a div within MUI which does not get the disabled attr. So this aria-disabled gets set in the div
|
|
159
|
+
aria-disabled={isDisabled}
|
|
125
160
|
disabled={isDisabled}
|
|
126
161
|
freeSolo={isCustomValueAllowed}
|
|
127
162
|
loading={isLoading}
|
package/src/Banner.tsx
CHANGED
|
@@ -10,9 +10,19 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { AlertColor, AlertProps } from "@mui/material";
|
|
13
|
+
import { Alert, AlertColor, AlertTitle, AlertProps } from "@mui/material";
|
|
14
|
+
import { Link } from "./Link";
|
|
15
|
+
import { ScreenReaderText } from "./ScreenReaderText";
|
|
14
16
|
import { memo } from "react";
|
|
15
|
-
import {
|
|
17
|
+
import { useTranslation } from "react-i18next";
|
|
18
|
+
|
|
19
|
+
export const bannerRoleValues = ["status", "alert"] as const;
|
|
20
|
+
export const bannerSeverityValues: AlertColor[] = [
|
|
21
|
+
"success",
|
|
22
|
+
"info",
|
|
23
|
+
"warning",
|
|
24
|
+
"error",
|
|
25
|
+
];
|
|
16
26
|
|
|
17
27
|
export type BannerProps = {
|
|
18
28
|
/**
|
|
@@ -35,11 +45,11 @@ export type BannerProps = {
|
|
|
35
45
|
* ("status" for something that dynamically updates, "alert" for errors, null for something
|
|
36
46
|
* unchanging)
|
|
37
47
|
*/
|
|
38
|
-
role?:
|
|
48
|
+
role?: (typeof bannerRoleValues)[number];
|
|
39
49
|
/**
|
|
40
50
|
* Determine the color and icon of the alert
|
|
41
51
|
*/
|
|
42
|
-
severity:
|
|
52
|
+
severity: (typeof bannerSeverityValues)[number];
|
|
43
53
|
/**
|
|
44
54
|
* The text content of the alert
|
|
45
55
|
*/
|
|
@@ -53,18 +63,23 @@ const Banner = ({
|
|
|
53
63
|
role,
|
|
54
64
|
severity,
|
|
55
65
|
text,
|
|
56
|
-
}: BannerProps) =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
}: BannerProps) => {
|
|
67
|
+
const { t } = useTranslation();
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<Alert onClose={onClose} role={role} severity={severity} variant="banner">
|
|
71
|
+
<ScreenReaderText>{t(`severity.${severity}`)}:</ScreenReaderText>
|
|
72
|
+
<AlertTitle>{text}</AlertTitle>
|
|
73
|
+
{linkUrl && (
|
|
74
|
+
<Link href={linkUrl} variant="monochrome">
|
|
75
|
+
{linkText}
|
|
76
|
+
</Link>
|
|
77
|
+
)}
|
|
78
|
+
</Alert>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
67
81
|
|
|
68
82
|
const MemoizedBanner = memo(Banner);
|
|
83
|
+
MemoizedBanner.displayName = "Banner";
|
|
69
84
|
|
|
70
85
|
export { MemoizedBanner as Banner };
|
package/src/Box.tsx
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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 { Box as MuiBox, BoxProps as MuiBoxProps } from "@mui/material";
|
|
14
|
+
import { ReactNode, forwardRef } from "react";
|
|
15
|
+
|
|
16
|
+
export type BoxProps = {
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
component?: MuiBoxProps["component"];
|
|
19
|
+
sx?: MuiBoxProps["sx"];
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const Box = forwardRef<HTMLElement, BoxProps>(
|
|
23
|
+
({ children, component, sx }, ref) => (
|
|
24
|
+
<MuiBox ref={ref} children={children} component={component} sx={sx} />
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
Box.displayName = "Box";
|
package/src/Button.tsx
CHANGED
|
@@ -12,46 +12,121 @@
|
|
|
12
12
|
|
|
13
13
|
import { Button as MuiButton } from "@mui/material";
|
|
14
14
|
import type { ButtonProps as MuiButtonProps } from "@mui/material";
|
|
15
|
-
import { memo, ReactElement,
|
|
15
|
+
import { memo, ReactElement, useCallback } from "react";
|
|
16
16
|
|
|
17
|
-
import {
|
|
18
|
-
import { MuiPropsContext } from "./MuiPropsContext";
|
|
17
|
+
import { MuiPropsContext, useMuiProps } from "./MuiPropsContext";
|
|
19
18
|
import { Tooltip } from "./Tooltip";
|
|
20
19
|
|
|
20
|
+
export const buttonSizeValues = ["small", "medium", "large"] as const;
|
|
21
|
+
export const buttonTypeValues = ["button", "submit", "reset"] as const;
|
|
22
|
+
export const buttonVariantValues = [
|
|
23
|
+
"primary",
|
|
24
|
+
"secondary",
|
|
25
|
+
"tertiary",
|
|
26
|
+
"danger",
|
|
27
|
+
"floating",
|
|
28
|
+
] as const;
|
|
29
|
+
|
|
21
30
|
export type ButtonProps = {
|
|
22
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The ARIA label for the Button
|
|
33
|
+
*/
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the element that labels the Button
|
|
37
|
+
*/
|
|
38
|
+
ariaLabelledBy?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the element that describes the Button
|
|
41
|
+
*/
|
|
42
|
+
ariaDescribedBy?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The icon element to display at the end of the Button
|
|
45
|
+
*/
|
|
46
|
+
endIcon?: ReactElement;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the Button
|
|
49
|
+
*/
|
|
23
50
|
id?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Determines whether the Button is disabled
|
|
53
|
+
*/
|
|
24
54
|
isDisabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Determines whether the Button should take up the full available width
|
|
57
|
+
*/
|
|
25
58
|
isFullWidth?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The text content of the Button
|
|
61
|
+
*/
|
|
62
|
+
label?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The click event handler for the Button
|
|
65
|
+
*/
|
|
26
66
|
onClick?: MuiButtonProps["onClick"];
|
|
27
|
-
size?: MuiButtonProps["size"];
|
|
28
|
-
startIcon?: ReactElement<typeof Icon>;
|
|
29
|
-
text?: string;
|
|
30
67
|
/**
|
|
31
|
-
*
|
|
68
|
+
* The size of the button
|
|
69
|
+
*/
|
|
70
|
+
size?: (typeof buttonSizeValues)[number];
|
|
71
|
+
/**
|
|
72
|
+
* The icon element to display at the start of the Button
|
|
73
|
+
*/
|
|
74
|
+
startIcon?: ReactElement;
|
|
75
|
+
/**
|
|
76
|
+
* The tooltip text for the Button if it's icon-only
|
|
32
77
|
*/
|
|
33
78
|
tooltipText?: string;
|
|
34
|
-
|
|
35
|
-
|
|
79
|
+
/**
|
|
80
|
+
* The type of the HTML button element
|
|
81
|
+
*/
|
|
82
|
+
type?: (typeof buttonTypeValues)[number];
|
|
83
|
+
/**
|
|
84
|
+
* The variant of the Button
|
|
85
|
+
*/
|
|
86
|
+
variant: (typeof buttonVariantValues)[number];
|
|
87
|
+
} & (
|
|
88
|
+
| {
|
|
89
|
+
endIcon?: ReactElement;
|
|
90
|
+
label: string;
|
|
91
|
+
startIcon?: ReactElement;
|
|
92
|
+
}
|
|
93
|
+
| {
|
|
94
|
+
endIcon?: ReactElement;
|
|
95
|
+
label?: "" | undefined;
|
|
96
|
+
startIcon: ReactElement;
|
|
97
|
+
}
|
|
98
|
+
| {
|
|
99
|
+
endIcon: ReactElement;
|
|
100
|
+
label?: "" | undefined;
|
|
101
|
+
startIcon?: ReactElement;
|
|
102
|
+
}
|
|
103
|
+
);
|
|
36
104
|
|
|
37
105
|
const Button = ({
|
|
106
|
+
ariaDescribedBy,
|
|
107
|
+
ariaLabel,
|
|
108
|
+
ariaLabelledBy,
|
|
38
109
|
endIcon,
|
|
39
110
|
id,
|
|
40
111
|
isDisabled,
|
|
41
112
|
isFullWidth,
|
|
113
|
+
label = "",
|
|
42
114
|
onClick,
|
|
43
115
|
size = "medium",
|
|
44
116
|
startIcon,
|
|
45
|
-
text,
|
|
46
117
|
tooltipText,
|
|
118
|
+
type = "button",
|
|
47
119
|
variant,
|
|
48
120
|
}: ButtonProps) => {
|
|
49
|
-
const muiProps =
|
|
121
|
+
const muiProps = useMuiProps();
|
|
50
122
|
|
|
51
|
-
const
|
|
52
|
-
() => (
|
|
123
|
+
const renderButton = useCallback(
|
|
124
|
+
(muiProps) => (
|
|
53
125
|
<MuiButton
|
|
54
126
|
{...muiProps}
|
|
127
|
+
aria-label={ariaLabel}
|
|
128
|
+
aria-labelledby={ariaLabelledBy}
|
|
129
|
+
aria-describedby={ariaDescribedBy}
|
|
55
130
|
disabled={isDisabled}
|
|
56
131
|
endIcon={endIcon}
|
|
57
132
|
fullWidth={isFullWidth}
|
|
@@ -59,21 +134,25 @@ const Button = ({
|
|
|
59
134
|
onClick={onClick}
|
|
60
135
|
size={size}
|
|
61
136
|
startIcon={startIcon}
|
|
137
|
+
type={type}
|
|
62
138
|
variant={variant}
|
|
63
139
|
>
|
|
64
|
-
{
|
|
140
|
+
{label}
|
|
65
141
|
</MuiButton>
|
|
66
142
|
),
|
|
67
143
|
[
|
|
144
|
+
ariaDescribedBy,
|
|
145
|
+
ariaLabel,
|
|
146
|
+
ariaLabelledBy,
|
|
68
147
|
endIcon,
|
|
69
148
|
id,
|
|
70
149
|
isDisabled,
|
|
71
150
|
isFullWidth,
|
|
72
|
-
|
|
151
|
+
label,
|
|
73
152
|
onClick,
|
|
74
153
|
size,
|
|
75
154
|
startIcon,
|
|
76
|
-
|
|
155
|
+
type,
|
|
77
156
|
variant,
|
|
78
157
|
]
|
|
79
158
|
);
|
|
@@ -82,14 +161,16 @@ const Button = ({
|
|
|
82
161
|
<>
|
|
83
162
|
{tooltipText && (
|
|
84
163
|
<Tooltip ariaType="description" placement="top" text={tooltipText}>
|
|
85
|
-
{
|
|
164
|
+
<MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>
|
|
86
165
|
</Tooltip>
|
|
87
166
|
)}
|
|
88
|
-
|
|
167
|
+
|
|
168
|
+
{!tooltipText && renderButton(muiProps)}
|
|
89
169
|
</>
|
|
90
170
|
);
|
|
91
171
|
};
|
|
92
172
|
|
|
93
173
|
const MemoizedButton = memo(Button);
|
|
174
|
+
MemoizedButton.displayName = "Button";
|
|
94
175
|
|
|
95
176
|
export { MemoizedButton as Button };
|