@okta/odyssey-react-mui 0.22.0 → 0.24.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 +44 -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 +18 -4
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Banner.js +9 -6
- package/dist/Banner.js.map +1 -1
- package/dist/Button.js +20 -10
- package/dist/Button.js.map +1 -1
- package/dist/Checkbox.js +44 -10
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js +25 -26
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/CircularProgress.js +11 -0
- package/dist/CircularProgress.js.map +1 -1
- package/dist/Dialog.js +72 -0
- package/dist/Dialog.js.map +1 -0
- package/dist/Field.js +28 -10
- package/dist/Field.js.map +1 -1
- package/dist/FieldError.js +6 -3
- package/dist/FieldError.js.map +1 -1
- package/dist/FieldHint.js +1 -2
- package/dist/FieldHint.js.map +1 -1
- package/dist/FieldLabel.js +19 -7
- package/dist/FieldLabel.js.map +1 -1
- package/dist/Fieldset.js +55 -0
- package/dist/Fieldset.js.map +1 -0
- package/dist/Form.js +69 -0
- package/dist/Form.js.map +1 -0
- package/dist/Icon.js +8 -8
- package/dist/Icon.js.map +1 -1
- package/dist/Infobox.js +7 -4
- package/dist/Infobox.js.map +1 -1
- package/dist/Link.js +10 -3
- package/dist/Link.js.map +1 -1
- package/dist/MenuButton.js +3 -7
- package/dist/MenuButton.js.map +1 -1
- package/dist/MenuItem.js +4 -2
- package/dist/MenuItem.js.map +1 -1
- package/dist/MuiPropsChild.js +32 -0
- package/dist/MuiPropsChild.js.map +1 -0
- package/dist/MuiPropsContext.js +15 -0
- package/dist/MuiPropsContext.js.map +1 -0
- package/dist/NativeSelect.js +61 -0
- package/dist/NativeSelect.js.map +1 -0
- package/dist/OdysseyCacheProvider.js +1 -2
- package/dist/OdysseyCacheProvider.js.map +1 -1
- package/dist/OdysseyI18n.js +93 -0
- package/dist/OdysseyI18n.js.map +1 -0
- package/dist/OdysseyProvider.js +42 -0
- package/dist/OdysseyProvider.js.map +1 -0
- package/dist/OdysseyThemeProvider.js +11 -5
- 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 +20 -3
- package/dist/PasswordField.js.map +1 -1
- package/dist/Radio.js +11 -2
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +36 -28
- package/dist/RadioGroup.js.map +1 -1
- package/dist/ScreenReaderText.js +3 -3
- package/dist/ScreenReaderText.js.map +1 -1
- package/dist/SearchField.js +17 -4
- package/dist/SearchField.js.map +1 -1
- package/dist/Select.js +131 -0
- package/dist/Select.js.map +1 -0
- package/dist/Status.js.map +1 -1
- package/dist/Tabs.js +46 -0
- package/dist/Tabs.js.map +1 -0
- package/dist/Tag.js +11 -2
- package/dist/Tag.js.map +1 -1
- package/dist/TagList.js +11 -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 +28 -9
- package/dist/TextField.js.map +1 -1
- package/dist/Toast.js +78 -0
- package/dist/Toast.js.map +1 -0
- package/dist/{ThemeProvider.js → ToastStack.js} +12 -10
- package/dist/ToastStack.js.map +1 -0
- package/dist/Tooltip.js +31 -0
- package/dist/Tooltip.js.map +1 -0
- package/dist/a11yCheck.js +1 -2
- package/dist/a11yCheck.js.map +1 -1
- 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/iconDictionary/Add.js +5 -6
- package/dist/iconDictionary/Add.js.map +1 -1
- package/dist/iconDictionary/AddCircle.js +5 -6
- package/dist/iconDictionary/AddCircle.js.map +1 -1
- package/dist/iconDictionary/AlertCircle.js +5 -6
- package/dist/iconDictionary/AlertCircle.js.map +1 -1
- package/dist/iconDictionary/AlertCircleFilled.js +5 -6
- package/dist/iconDictionary/AlertCircleFilled.js.map +1 -1
- package/dist/iconDictionary/AlertTriangleFilled.js +5 -6
- package/dist/iconDictionary/AlertTriangleFilled.js.map +1 -1
- package/dist/iconDictionary/Anchor.js +6 -7
- package/dist/iconDictionary/Anchor.js.map +1 -1
- package/dist/iconDictionary/ArrowDown.js +5 -6
- package/dist/iconDictionary/ArrowDown.js.map +1 -1
- package/dist/iconDictionary/ArrowLeft.js +5 -6
- package/dist/iconDictionary/ArrowLeft.js.map +1 -1
- package/dist/iconDictionary/ArrowRight.js +5 -6
- package/dist/iconDictionary/ArrowRight.js.map +1 -1
- package/dist/iconDictionary/ArrowUp.js +5 -6
- package/dist/iconDictionary/ArrowUp.js.map +1 -1
- package/dist/iconDictionary/ArrowUpDown.js +5 -6
- package/dist/iconDictionary/ArrowUpDown.js.map +1 -1
- package/dist/iconDictionary/Calendar.js +5 -6
- package/dist/iconDictionary/Calendar.js.map +1 -1
- package/dist/iconDictionary/Check.js +5 -6
- package/dist/iconDictionary/Check.js.map +1 -1
- package/dist/iconDictionary/CheckCircleFilled.js +5 -6
- package/dist/iconDictionary/CheckCircleFilled.js.map +1 -1
- package/dist/iconDictionary/ChevronDown.js +5 -6
- package/dist/iconDictionary/ChevronDown.js.map +1 -1
- package/dist/iconDictionary/ChevronUp.js +5 -6
- package/dist/iconDictionary/ChevronUp.js.map +1 -1
- package/dist/iconDictionary/Close.js +5 -6
- package/dist/iconDictionary/Close.js.map +1 -1
- package/dist/iconDictionary/CloseCircleFilled.js +5 -6
- package/dist/iconDictionary/CloseCircleFilled.js.map +1 -1
- package/dist/iconDictionary/Copy.js +5 -6
- package/dist/iconDictionary/Copy.js.map +1 -1
- package/dist/iconDictionary/Delete.js +5 -6
- package/dist/iconDictionary/Delete.js.map +1 -1
- package/dist/iconDictionary/Download.js +5 -6
- package/dist/iconDictionary/Download.js.map +1 -1
- package/dist/iconDictionary/DragHandle.js +5 -6
- package/dist/iconDictionary/DragHandle.js.map +1 -1
- package/dist/iconDictionary/Edit.js +5 -6
- package/dist/iconDictionary/Edit.js.map +1 -1
- package/dist/iconDictionary/ExternalLink.js +5 -6
- package/dist/iconDictionary/ExternalLink.js.map +1 -1
- package/dist/iconDictionary/Eye.js +5 -6
- package/dist/iconDictionary/Eye.js.map +1 -1
- package/dist/iconDictionary/EyeOff.js +5 -6
- package/dist/iconDictionary/EyeOff.js.map +1 -1
- package/dist/iconDictionary/Filter.js +5 -6
- package/dist/iconDictionary/Filter.js.map +1 -1
- package/dist/iconDictionary/Globe.js +5 -6
- package/dist/iconDictionary/Globe.js.map +1 -1
- package/dist/iconDictionary/Home.js +5 -6
- package/dist/iconDictionary/Home.js.map +1 -1
- package/dist/iconDictionary/InformationCircle.js +5 -6
- package/dist/iconDictionary/InformationCircle.js.map +1 -1
- package/dist/iconDictionary/InformationCircleFilled.js +5 -6
- package/dist/iconDictionary/InformationCircleFilled.js.map +1 -1
- package/dist/iconDictionary/Notification.js +5 -6
- package/dist/iconDictionary/Notification.js.map +1 -1
- package/dist/iconDictionary/OverflowVertical.js +5 -6
- package/dist/iconDictionary/OverflowVertical.js.map +1 -1
- package/dist/iconDictionary/QuestionCircle.js +5 -6
- package/dist/iconDictionary/QuestionCircle.js.map +1 -1
- package/dist/iconDictionary/QuestionCircleFilled.js +5 -6
- package/dist/iconDictionary/QuestionCircleFilled.js.map +1 -1
- package/dist/iconDictionary/Search.js +5 -6
- package/dist/iconDictionary/Search.js.map +1 -1
- package/dist/iconDictionary/Settings.js +4 -5
- package/dist/iconDictionary/Settings.js.map +1 -1
- package/dist/iconDictionary/Subtract.js +5 -6
- package/dist/iconDictionary/Subtract.js.map +1 -1
- package/dist/iconDictionary/SvgIcon.js +1 -0
- package/dist/iconDictionary/SvgIcon.js.map +1 -1
- package/dist/iconDictionary/User.js +5 -6
- package/dist/iconDictionary/User.js.map +1 -1
- package/dist/iconDictionary/UserGroup.js +5 -6
- package/dist/iconDictionary/UserGroup.js.map +1 -1
- package/dist/iconDictionary/index.js.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui.js +11 -0
- package/dist/properties/ts/odyssey-react-mui.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_cs.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_da.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_de.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_el.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_es.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_fi.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_fr.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_hu.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_id.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_it.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ja.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ko.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ms.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_nb.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_nl-NL.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_nl-NL.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_pl.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_pt-BR.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_pt-BR.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ro.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_ru.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_sv.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_th.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_tr.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_uk.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_zh-CN.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_zh-CN.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_zh-TW.js +2 -0
- package/dist/properties/ts/odyssey-react-mui_zh-TW.js.map +1 -0
- package/dist/src/Autocomplete.d.ts +2 -1
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Banner.d.ts +19 -19
- package/dist/src/Banner.d.ts.map +1 -1
- package/dist/src/Button.d.ts +4 -3
- package/dist/src/Button.d.ts.map +1 -1
- package/dist/src/Checkbox.d.ts +4 -2
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +8 -4
- package/dist/src/CheckboxGroup.d.ts.map +1 -1
- package/dist/src/Dialog.d.ts +25 -0
- package/dist/src/Dialog.d.ts.map +1 -0
- package/dist/src/Field.d.ts +18 -7
- package/dist/src/Field.d.ts.map +1 -1
- package/dist/src/FieldError.d.ts.map +1 -1
- package/dist/src/FieldLabel.d.ts +2 -3
- package/dist/src/FieldLabel.d.ts.map +1 -1
- package/dist/src/Fieldset.d.ts +42 -0
- package/dist/src/Fieldset.d.ts.map +1 -0
- package/dist/src/Form.d.ts +73 -0
- package/dist/src/Form.d.ts.map +1 -0
- package/dist/src/Icon.d.ts +9 -8
- package/dist/src/Icon.d.ts.map +1 -1
- package/dist/src/Infobox.d.ts +7 -7
- package/dist/src/Infobox.d.ts.map +1 -1
- package/dist/src/Link.d.ts +9 -4
- package/dist/src/Link.d.ts.map +1 -1
- package/dist/src/MenuButton.d.ts +7 -3
- package/dist/src/MenuButton.d.ts.map +1 -1
- package/dist/src/MenuItem.d.ts +1 -1
- package/dist/src/MenuItem.d.ts.map +1 -1
- package/dist/src/MuiPropsChild.d.ts +18 -0
- package/dist/src/MuiPropsChild.d.ts.map +1 -0
- package/dist/src/MuiPropsContext.d.ts +15 -0
- package/dist/src/MuiPropsContext.d.ts.map +1 -0
- package/dist/src/NativeSelect.d.ts +36 -0
- package/dist/src/NativeSelect.d.ts.map +1 -0
- package/dist/src/OdysseyI18n.d.ts +54 -0
- package/dist/src/OdysseyI18n.d.ts.map +1 -0
- package/dist/src/OdysseyProvider.d.ts +27 -0
- package/dist/src/OdysseyProvider.d.ts.map +1 -0
- package/dist/src/OdysseyThemeProvider.d.ts +4 -2
- package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts +25 -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 +8 -8
- package/dist/src/PasswordField.d.ts.map +1 -1
- package/dist/src/RadioGroup.d.ts +8 -8
- package/dist/src/RadioGroup.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +4 -4
- package/dist/src/SearchField.d.ts.map +1 -1
- package/dist/src/Select.d.ts +35 -0
- package/dist/src/Select.d.ts.map +1 -0
- package/dist/src/Status.d.ts +2 -2
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/Tabs.d.ts +27 -0
- package/dist/src/Tabs.d.ts.map +1 -0
- package/dist/src/TextField.d.ts +12 -15
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Toast.d.ts +60 -0
- package/dist/src/Toast.d.ts.map +1 -0
- package/dist/src/ToastStack.d.ts +19 -0
- package/dist/src/ToastStack.d.ts.map +1 -0
- package/dist/src/{ThemeProvider.d.ts → Tooltip.d.ts} +8 -4
- package/dist/src/Tooltip.d.ts.map +1 -0
- package/dist/src/iconDictionary/Add.d.ts +2 -2
- package/dist/src/iconDictionary/AddCircle.d.ts +2 -2
- package/dist/src/iconDictionary/AlertCircle.d.ts +2 -2
- package/dist/src/iconDictionary/AlertCircleFilled.d.ts +2 -2
- package/dist/src/iconDictionary/AlertTriangleFilled.d.ts +2 -2
- package/dist/src/iconDictionary/Anchor.d.ts +2 -2
- package/dist/src/iconDictionary/ArrowDown.d.ts +2 -2
- package/dist/src/iconDictionary/ArrowLeft.d.ts +2 -2
- package/dist/src/iconDictionary/ArrowRight.d.ts +2 -2
- package/dist/src/iconDictionary/ArrowUp.d.ts +2 -2
- package/dist/src/iconDictionary/ArrowUpDown.d.ts +2 -2
- package/dist/src/iconDictionary/Calendar.d.ts +2 -2
- package/dist/src/iconDictionary/Check.d.ts +2 -2
- package/dist/src/iconDictionary/CheckCircleFilled.d.ts +2 -2
- package/dist/src/iconDictionary/ChevronDown.d.ts +2 -2
- package/dist/src/iconDictionary/ChevronUp.d.ts +2 -2
- package/dist/src/iconDictionary/Close.d.ts +2 -2
- package/dist/src/iconDictionary/CloseCircleFilled.d.ts +2 -2
- package/dist/src/iconDictionary/Copy.d.ts +2 -2
- package/dist/src/iconDictionary/Delete.d.ts +2 -2
- package/dist/src/iconDictionary/Download.d.ts +2 -2
- package/dist/src/iconDictionary/DragHandle.d.ts +2 -2
- package/dist/src/iconDictionary/Edit.d.ts +2 -2
- package/dist/src/iconDictionary/ExternalLink.d.ts +2 -2
- package/dist/src/iconDictionary/Eye.d.ts +2 -2
- package/dist/src/iconDictionary/EyeOff.d.ts +2 -2
- package/dist/src/iconDictionary/Filter.d.ts +2 -2
- package/dist/src/iconDictionary/Globe.d.ts +2 -2
- package/dist/src/iconDictionary/Home.d.ts +2 -2
- package/dist/src/iconDictionary/InformationCircle.d.ts +2 -2
- package/dist/src/iconDictionary/InformationCircleFilled.d.ts +2 -2
- package/dist/src/iconDictionary/Notification.d.ts +2 -2
- package/dist/src/iconDictionary/OverflowVertical.d.ts +2 -2
- package/dist/src/iconDictionary/QuestionCircle.d.ts +2 -2
- package/dist/src/iconDictionary/QuestionCircleFilled.d.ts +2 -2
- package/dist/src/iconDictionary/Search.d.ts +2 -2
- package/dist/src/iconDictionary/Settings.d.ts +2 -2
- package/dist/src/iconDictionary/Subtract.d.ts +2 -2
- package/dist/src/iconDictionary/User.d.ts +2 -2
- package/dist/src/iconDictionary/UserGroup.d.ts +2 -2
- package/dist/src/iconDictionary/index.d.ts +40 -40
- package/dist/src/index.d.ts +15 -10
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui.d.ts +11 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/src/properties/ts/odyssey-react-mui_nl-NL.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -0
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_zh-CN.d.ts +2 -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 +2 -0
- package/dist/src/properties/ts/odyssey-react-mui_zh-TW.d.ts.map +1 -0
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/src/theme/index.d.ts +3 -1
- 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 +3 -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/theme/components.js +123 -85
- 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 -1
- 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 -86
- 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 -1
- package/dist/theme/spacing.js.map +1 -1
- package/dist/theme/temp.js +1 -0
- package/dist/theme/temp.js.map +1 -1
- package/dist/theme/theme.js +12 -9
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/typography.js +85 -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/theme/useTheme.js +1 -0
- package/dist/theme/useTheme.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 +8 -0
- package/package.json +9 -4
- package/scripts/properties-to-ts.js +103 -0
- package/src/@types/i18next.d.ts +22 -0
- package/src/Autocomplete.tsx +10 -1
- package/src/Banner.tsx +37 -32
- package/src/Button.tsx +38 -18
- package/src/Checkbox.tsx +47 -21
- package/src/CheckboxGroup.tsx +30 -34
- package/src/Dialog.tsx +110 -0
- package/src/Field.tsx +56 -24
- package/src/FieldError.tsx +6 -1
- package/src/FieldLabel.tsx +13 -10
- package/src/Fieldset.tsx +95 -0
- package/src/Form.tsx +142 -0
- package/src/Icon.test.tsx +1 -1
- package/src/Icon.tsx +27 -13
- package/src/Infobox.tsx +18 -13
- package/src/Link.tsx +14 -6
- package/src/MenuButton.tsx +8 -3
- package/src/MenuItem.tsx +1 -0
- package/src/MuiPropsChild.tsx +41 -0
- package/src/MuiPropsContext.ts +17 -0
- package/src/NativeSelect.tsx +107 -0
- package/src/OdysseyI18n.ts +101 -0
- package/src/OdysseyProvider.tsx +59 -0
- package/src/OdysseyThemeProvider.tsx +9 -3
- package/src/OdysseyTranslationProvider.test.tsx +63 -0
- package/src/OdysseyTranslationProvider.tsx +65 -0
- package/src/OdysseyTranslationProvider.types.ts +42 -0
- package/src/PasswordField.tsx +18 -11
- package/src/RadioGroup.tsx +31 -46
- package/src/SearchField.tsx +10 -8
- package/src/Select.tsx +226 -0
- package/src/Status.tsx +2 -2
- package/src/Tabs.tsx +70 -0
- package/src/TextField.tsx +31 -25
- package/src/Toast.tsx +140 -0
- package/src/{ThemeProvider.tsx → ToastStack.tsx} +16 -9
- package/src/Tooltip.tsx +39 -0
- package/src/iconDictionary/Add.tsx +3 -3
- package/src/iconDictionary/AddCircle.tsx +3 -3
- package/src/iconDictionary/AlertCircle.tsx +3 -3
- package/src/iconDictionary/AlertCircleFilled.tsx +3 -3
- package/src/iconDictionary/AlertTriangleFilled.tsx +3 -3
- package/src/iconDictionary/Anchor.tsx +3 -3
- package/src/iconDictionary/ArrowDown.tsx +3 -3
- package/src/iconDictionary/ArrowLeft.tsx +3 -3
- package/src/iconDictionary/ArrowRight.tsx +3 -3
- package/src/iconDictionary/ArrowUp.tsx +3 -3
- package/src/iconDictionary/ArrowUpDown.tsx +3 -3
- package/src/iconDictionary/Calendar.tsx +3 -3
- package/src/iconDictionary/Check.tsx +3 -3
- package/src/iconDictionary/CheckCircleFilled.tsx +3 -3
- package/src/iconDictionary/ChevronDown.tsx +3 -3
- package/src/iconDictionary/ChevronUp.tsx +3 -3
- package/src/iconDictionary/Close.tsx +3 -3
- package/src/iconDictionary/CloseCircleFilled.tsx +3 -3
- package/src/iconDictionary/Copy.tsx +3 -3
- package/src/iconDictionary/Delete.tsx +3 -3
- package/src/iconDictionary/Download.tsx +3 -3
- package/src/iconDictionary/DragHandle.tsx +3 -3
- package/src/iconDictionary/Edit.tsx +3 -3
- package/src/iconDictionary/ExternalLink.tsx +3 -3
- package/src/iconDictionary/Eye.tsx +3 -3
- package/src/iconDictionary/EyeOff.tsx +3 -3
- package/src/iconDictionary/Filter.tsx +3 -3
- package/src/iconDictionary/Globe.tsx +3 -3
- package/src/iconDictionary/Home.tsx +3 -3
- package/src/iconDictionary/InformationCircle.tsx +3 -3
- package/src/iconDictionary/InformationCircleFilled.tsx +3 -3
- package/src/iconDictionary/Notification.tsx +3 -3
- package/src/iconDictionary/OverflowVertical.tsx +3 -3
- package/src/iconDictionary/QuestionCircle.tsx +3 -3
- package/src/iconDictionary/QuestionCircleFilled.tsx +3 -3
- package/src/iconDictionary/Search.tsx +3 -3
- package/src/iconDictionary/Settings.tsx +2 -2
- package/src/iconDictionary/Subtract.tsx +3 -3
- package/src/iconDictionary/User.tsx +3 -3
- package/src/iconDictionary/UserGroup.tsx +3 -3
- package/src/iconDictionary/index.ts +1 -1
- package/src/index.ts +11 -23
- package/src/properties/odyssey-react-mui.properties +8 -0
- package/src/properties/translations/odyssey-react-mui_cs.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_da.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_de.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_el.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_es.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_fi.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_fr.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_hu.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_id.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_it.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_ja.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_ko.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_ms.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_nb.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_nl-NL.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_pl.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_pt-BR.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_ro.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_ru.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_sv.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_th.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_tr.properties +0 -0
- package/src/properties/translations/odyssey-react-mui_uk.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.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_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_zh-CN.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_zh-TW.ts +1 -0
- package/src/theme/components.tsx +44 -13
- package/src/theme/index.ts +5 -1
- package/src/theme/mixins.ts +10 -6
- package/src/theme/palette.ts +95 -88
- package/src/theme/shape.ts +12 -8
- package/src/theme/spacing.ts +17 -12
- package/src/theme/theme.ts +14 -10
- package/src/theme/typography.ts +87 -83
- package/dist/ThemeProvider.js.map +0 -1
- package/dist/src/ThemeProvider.d.ts.map +0 -1
|
@@ -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,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"defaultBranch": "develop",
|
|
3
|
+
"resourceFile": "odyssey-react-mui.properties",
|
|
4
|
+
"resourceFilePath": "packages/odyssey-react-mui/src/properties",
|
|
5
|
+
"translationsFilePath": "packages/odyssey-react-mui/src/properties/translations",
|
|
6
|
+
"commitPrefix": "chore(odyssey-react-mui): ",
|
|
7
|
+
"reviewers": ["okta/eng-globalizationcore", "okta/design-system"]
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/src/index.d.ts",
|
|
14
14
|
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./README.md": {
|
|
17
|
+
"default": "./README.md"
|
|
15
18
|
}
|
|
16
19
|
},
|
|
17
20
|
"repository": {
|
|
@@ -23,9 +26,11 @@
|
|
|
23
26
|
"@emotion/cache": "^11.10.5",
|
|
24
27
|
"@mui/icons-material": "^5.11.0",
|
|
25
28
|
"@mui/lab": "^5.0.0-alpha.117",
|
|
26
|
-
"@mui/material": "^5.
|
|
29
|
+
"@mui/material": "^5.12.3",
|
|
27
30
|
"@mui/utils": "^5.11.2",
|
|
28
|
-
"@okta/odyssey-design-tokens": "0.
|
|
31
|
+
"@okta/odyssey-design-tokens": "0.24.0",
|
|
32
|
+
"i18next": "^22.4.15",
|
|
33
|
+
"react-i18next": "^12.2.2"
|
|
29
34
|
},
|
|
30
35
|
"peerDependencies": {
|
|
31
36
|
"@emotion/react": "^11",
|
|
@@ -33,5 +38,5 @@
|
|
|
33
38
|
"react": ">=17 <19",
|
|
34
39
|
"react-dom": ">=17 <19"
|
|
35
40
|
},
|
|
36
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "a0606b67a94216882f377514f2f733c6ebb39f9d"
|
|
37
42
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
const { resolve, join, basename, extname } = require("node:path");
|
|
17
|
+
const {
|
|
18
|
+
readFileSync,
|
|
19
|
+
writeFileSync,
|
|
20
|
+
rmSync,
|
|
21
|
+
existsSync,
|
|
22
|
+
mkdirSync,
|
|
23
|
+
} = require("fs");
|
|
24
|
+
const properties = require("properties");
|
|
25
|
+
const readdir = require("recursive-readdir");
|
|
26
|
+
|
|
27
|
+
const convert = (baseFiles, propertiesTargetDir) => {
|
|
28
|
+
for (const src of baseFiles) {
|
|
29
|
+
const filename = basename(src);
|
|
30
|
+
const extension = extname(src);
|
|
31
|
+
const source = `${readFileSync(src)}`;
|
|
32
|
+
|
|
33
|
+
properties.parse(source, function (error, obj) {
|
|
34
|
+
if (error) {
|
|
35
|
+
return console.error(error);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const targetFile = join(
|
|
39
|
+
propertiesTargetDir,
|
|
40
|
+
filename.replace(extension, ".ts")
|
|
41
|
+
);
|
|
42
|
+
writeFileSync(
|
|
43
|
+
targetFile,
|
|
44
|
+
`export const translation = ${JSON.stringify(obj)};`
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
async function convertPropertiesToJson({ resourcePath, targetJsonPath }) {
|
|
51
|
+
const sourceDirectory = resolve(resourcePath);
|
|
52
|
+
const propertiesTargetDirectory = resolve(targetJsonPath);
|
|
53
|
+
|
|
54
|
+
if (!existsSync(sourceDirectory)) {
|
|
55
|
+
mkdirSync(sourceDirectory);
|
|
56
|
+
}
|
|
57
|
+
if (existsSync(propertiesTargetDirectory)) {
|
|
58
|
+
rmSync(propertiesTargetDirectory, { recursive: true, force: true });
|
|
59
|
+
}
|
|
60
|
+
mkdirSync(propertiesTargetDirectory);
|
|
61
|
+
|
|
62
|
+
let baseFiles = await readdir(sourceDirectory);
|
|
63
|
+
convert(baseFiles, propertiesTargetDirectory);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
exports.handler = async (argv) => {
|
|
67
|
+
const { resourcePath, targetJsonPath } = argv;
|
|
68
|
+
|
|
69
|
+
await convertPropertiesToJson({
|
|
70
|
+
resourcePath,
|
|
71
|
+
targetJsonPath,
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
require("yargs")
|
|
76
|
+
.scriptName("properties-to-ts")
|
|
77
|
+
.usage("$0 <cmd> [args]")
|
|
78
|
+
.command(
|
|
79
|
+
"bundle",
|
|
80
|
+
"Converts properties file to ts",
|
|
81
|
+
(yargs) => {
|
|
82
|
+
yargs
|
|
83
|
+
.positional("resourcePath", {
|
|
84
|
+
type: "string",
|
|
85
|
+
default: "src/properties",
|
|
86
|
+
describe: "A relative path to resources based on cwd.",
|
|
87
|
+
})
|
|
88
|
+
.positional("targetJsonPath", {
|
|
89
|
+
type: "string",
|
|
90
|
+
default: "src/properties/ts",
|
|
91
|
+
describe: "A relative path to directory for ts file output",
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
function (argv) {
|
|
95
|
+
const { resourcePath, targetJsonPath } = argv;
|
|
96
|
+
|
|
97
|
+
convertPropertiesToJson({
|
|
98
|
+
resourcePath,
|
|
99
|
+
targetJsonPath,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
.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
|
@@ -62,6 +62,12 @@ export type AutocompleteProps<
|
|
|
62
62
|
undefined,
|
|
63
63
|
IsCustomValueAllowed
|
|
64
64
|
>["onChange"];
|
|
65
|
+
onInputChange?: MuiAutocompleteProps<
|
|
66
|
+
OptionType,
|
|
67
|
+
HasMultipleChoices,
|
|
68
|
+
undefined,
|
|
69
|
+
IsCustomValueAllowed
|
|
70
|
+
>["onInputChange"];
|
|
65
71
|
options: MuiAutocompleteProps<
|
|
66
72
|
OptionType,
|
|
67
73
|
HasMultipleChoices,
|
|
@@ -89,14 +95,16 @@ const Autocomplete = <
|
|
|
89
95
|
hint,
|
|
90
96
|
label,
|
|
91
97
|
onChange,
|
|
98
|
+
onInputChange,
|
|
92
99
|
options,
|
|
93
100
|
value,
|
|
94
101
|
}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {
|
|
95
102
|
const renderInput = useCallback(
|
|
96
103
|
({ InputLabelProps, InputProps, ...params }) => (
|
|
97
104
|
<Field
|
|
98
|
-
|
|
105
|
+
fieldType="single"
|
|
99
106
|
hasVisibleLabel
|
|
107
|
+
id={InputLabelProps.htmlFor}
|
|
100
108
|
hint={hint}
|
|
101
109
|
label={label}
|
|
102
110
|
renderFieldComponent={({ ariaDescribedBy, id }) => (
|
|
@@ -119,6 +127,7 @@ const Autocomplete = <
|
|
|
119
127
|
loading={isLoading}
|
|
120
128
|
multiple={hasMultipleChoices}
|
|
121
129
|
onChange={onChange}
|
|
130
|
+
onInputChange={onInputChange}
|
|
122
131
|
options={options}
|
|
123
132
|
readOnly={isReadOnly}
|
|
124
133
|
renderInput={renderInput}
|
package/src/Banner.tsx
CHANGED
|
@@ -13,57 +13,62 @@
|
|
|
13
13
|
import { AlertColor, AlertProps } from "@mui/material";
|
|
14
14
|
import { memo } from "react";
|
|
15
15
|
import { Alert, Link, ScreenReaderText } from "./";
|
|
16
|
+
import { useTranslation } from "react-i18next";
|
|
16
17
|
|
|
17
|
-
export
|
|
18
|
+
export type BannerProps = {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Sets the ARIA role of the alert
|
|
24
|
-
* ("status" for something that dynamically updates, "alert" for errors, null for something
|
|
25
|
-
* unchanging)
|
|
20
|
+
* If linkUrl is not undefined, this is the text of the link.
|
|
21
|
+
* If left blank, it defaults to "Learn more".
|
|
22
|
+
* Note that linkText does nothing if linkUrl is not defined
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
linkText?: string;
|
|
28
25
|
/**
|
|
29
|
-
*
|
|
26
|
+
* If defined, the alert will include a link to the URL
|
|
30
27
|
*/
|
|
31
|
-
|
|
28
|
+
linkUrl?: string;
|
|
32
29
|
/**
|
|
33
30
|
* The function that's fired when the user clicks the close button. If undefined,
|
|
34
31
|
* the close button will not be shown.
|
|
35
32
|
*/
|
|
36
33
|
onClose?: AlertProps["onClose"];
|
|
37
34
|
/**
|
|
38
|
-
*
|
|
35
|
+
* Sets the ARIA role of the alert
|
|
36
|
+
* ("status" for something that dynamically updates, "alert" for errors, null for something
|
|
37
|
+
* unchanging)
|
|
39
38
|
*/
|
|
40
|
-
|
|
39
|
+
role?: "status" | "alert";
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
43
|
-
* If left blank, it defaults to "Learn more".
|
|
44
|
-
* Note that linkText does nothing if linkUrl is not defined
|
|
41
|
+
* Determine the color and icon of the alert
|
|
45
42
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
severity: AlertColor;
|
|
44
|
+
/**
|
|
45
|
+
* The text content of the alert
|
|
46
|
+
*/
|
|
47
|
+
text: string;
|
|
48
|
+
};
|
|
48
49
|
|
|
49
50
|
const Banner = ({
|
|
50
|
-
onClose,
|
|
51
|
-
severity,
|
|
52
|
-
role,
|
|
53
51
|
linkUrl,
|
|
54
52
|
linkText,
|
|
53
|
+
onClose,
|
|
54
|
+
role,
|
|
55
|
+
severity,
|
|
55
56
|
text,
|
|
56
|
-
}: BannerProps) =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
}: BannerProps) => {
|
|
58
|
+
const { t } = useTranslation();
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<Alert onClose={onClose} role={role} severity={severity} variant="banner">
|
|
62
|
+
<ScreenReaderText>{t(`severity.${severity}`)}:</ScreenReaderText>
|
|
63
|
+
{text}
|
|
64
|
+
{linkUrl && (
|
|
65
|
+
<Link href={linkUrl} variant="monochrome">
|
|
66
|
+
{linkText}
|
|
67
|
+
</Link>
|
|
68
|
+
)}
|
|
69
|
+
</Alert>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
67
72
|
|
|
68
73
|
const MemoizedBanner = memo(Banner);
|
|
69
74
|
|
package/src/Button.tsx
CHANGED
|
@@ -12,17 +12,20 @@
|
|
|
12
12
|
|
|
13
13
|
import { Button as MuiButton } from "@mui/material";
|
|
14
14
|
import type { ButtonProps as MuiButtonProps } from "@mui/material";
|
|
15
|
-
import {
|
|
16
|
-
|
|
15
|
+
import { memo, ReactElement, useContext, useMemo } from "react";
|
|
16
|
+
|
|
17
|
+
import { Icon } from "./Icon";
|
|
18
|
+
import { MuiPropsContext } from "./MuiPropsContext";
|
|
19
|
+
import { Tooltip } from "./Tooltip";
|
|
17
20
|
|
|
18
21
|
export type ButtonProps = {
|
|
19
|
-
endIcon?:
|
|
22
|
+
endIcon?: ReactElement<typeof Icon>;
|
|
20
23
|
id?: string;
|
|
21
24
|
isDisabled?: boolean;
|
|
22
25
|
isFullWidth?: boolean;
|
|
23
26
|
onClick?: MuiButtonProps["onClick"];
|
|
24
27
|
size?: MuiButtonProps["size"];
|
|
25
|
-
startIcon?:
|
|
28
|
+
startIcon?: ReactElement<typeof Icon>;
|
|
26
29
|
text?: string;
|
|
27
30
|
/**
|
|
28
31
|
* `tooltipText` determines the text of the tooltip that wraps the button if it's icon-only.
|
|
@@ -43,25 +46,42 @@ const Button = ({
|
|
|
43
46
|
tooltipText,
|
|
44
47
|
variant,
|
|
45
48
|
}: ButtonProps) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
const muiProps = useContext(MuiPropsContext);
|
|
50
|
+
|
|
51
|
+
const button = useMemo(
|
|
52
|
+
() => (
|
|
53
|
+
<MuiButton
|
|
54
|
+
{...muiProps}
|
|
55
|
+
disabled={isDisabled}
|
|
56
|
+
endIcon={endIcon}
|
|
57
|
+
fullWidth={isFullWidth}
|
|
58
|
+
id={id}
|
|
59
|
+
onClick={onClick}
|
|
60
|
+
size={size}
|
|
61
|
+
startIcon={startIcon}
|
|
62
|
+
variant={variant}
|
|
63
|
+
>
|
|
64
|
+
{text}
|
|
65
|
+
</MuiButton>
|
|
66
|
+
),
|
|
67
|
+
[
|
|
68
|
+
endIcon,
|
|
69
|
+
id,
|
|
70
|
+
isDisabled,
|
|
71
|
+
isFullWidth,
|
|
72
|
+
muiProps,
|
|
73
|
+
onClick,
|
|
74
|
+
size,
|
|
75
|
+
startIcon,
|
|
76
|
+
text,
|
|
77
|
+
variant,
|
|
78
|
+
]
|
|
59
79
|
);
|
|
60
80
|
|
|
61
81
|
return (
|
|
62
82
|
<>
|
|
63
83
|
{tooltipText && (
|
|
64
|
-
<Tooltip
|
|
84
|
+
<Tooltip ariaType="description" placement="top" text={tooltipText}>
|
|
65
85
|
{button}
|
|
66
86
|
</Tooltip>
|
|
67
87
|
)}
|
package/src/Checkbox.tsx
CHANGED
|
@@ -10,19 +10,22 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { Checkbox as MuiCheckbox } from "@mui/material";
|
|
14
|
-
import { ChangeEventHandler, memo } from "react";
|
|
13
|
+
import { Checkbox as MuiCheckbox, Typography } from "@mui/material";
|
|
14
|
+
import { ChangeEventHandler, memo, useMemo } from "react";
|
|
15
|
+
import { useTranslation } from "react-i18next";
|
|
15
16
|
|
|
16
17
|
import { FormControlLabel } from ".";
|
|
17
18
|
|
|
18
19
|
export type CheckboxProps = {
|
|
19
20
|
ariaLabel?: string;
|
|
20
21
|
ariaLabelledBy?: string;
|
|
22
|
+
isInvalid?: boolean;
|
|
23
|
+
isValid?: boolean;
|
|
21
24
|
isChecked?: boolean;
|
|
22
25
|
isDefaultChecked?: boolean;
|
|
23
26
|
isDisabled?: boolean;
|
|
24
|
-
hasError?: boolean;
|
|
25
27
|
isIndeterminate?: boolean;
|
|
28
|
+
isRequired?: boolean;
|
|
26
29
|
label?: string;
|
|
27
30
|
name?: string;
|
|
28
31
|
onChange?: ChangeEventHandler<EventTarget>;
|
|
@@ -32,30 +35,53 @@ export type CheckboxProps = {
|
|
|
32
35
|
const Checkbox = ({
|
|
33
36
|
ariaLabel,
|
|
34
37
|
ariaLabelledBy,
|
|
38
|
+
isInvalid,
|
|
39
|
+
isValid,
|
|
35
40
|
isChecked,
|
|
36
|
-
isDefaultChecked,
|
|
37
41
|
isDisabled,
|
|
38
42
|
isIndeterminate,
|
|
39
|
-
|
|
40
|
-
label,
|
|
43
|
+
isRequired,
|
|
44
|
+
label: labelProp,
|
|
41
45
|
name,
|
|
42
46
|
onChange,
|
|
43
47
|
value,
|
|
44
|
-
}: CheckboxProps) =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
}: CheckboxProps) => {
|
|
49
|
+
const { t } = useTranslation();
|
|
50
|
+
|
|
51
|
+
const label = useMemo(() => {
|
|
52
|
+
if (isRequired) {
|
|
53
|
+
return (
|
|
54
|
+
<>
|
|
55
|
+
{labelProp}{" "}
|
|
56
|
+
<Typography component="span" color="textSecondary">
|
|
57
|
+
({t("fieldlabel.required.text")})
|
|
58
|
+
</Typography>
|
|
59
|
+
</>
|
|
60
|
+
);
|
|
61
|
+
} else {
|
|
62
|
+
return <>{labelProp}</>;
|
|
63
|
+
}
|
|
64
|
+
}, [isRequired, labelProp, t]);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<FormControlLabel
|
|
68
|
+
aria-label={ariaLabel}
|
|
69
|
+
aria-labelledby={ariaLabelledBy}
|
|
70
|
+
aria-required={isRequired}
|
|
71
|
+
checked={isChecked}
|
|
72
|
+
className={isInvalid ? "Mui-error" : isValid ? "Mui-valid" : ""}
|
|
73
|
+
control={
|
|
74
|
+
<MuiCheckbox indeterminate={isIndeterminate} required={isRequired} />
|
|
75
|
+
}
|
|
76
|
+
disabled={isDisabled}
|
|
77
|
+
label={label}
|
|
78
|
+
name={name}
|
|
79
|
+
onChange={onChange}
|
|
80
|
+
value={value}
|
|
81
|
+
required={isRequired}
|
|
82
|
+
/>
|
|
83
|
+
);
|
|
84
|
+
};
|
|
59
85
|
|
|
60
86
|
const MemoizedCheckbox = memo(Checkbox);
|
|
61
87
|
|
package/src/CheckboxGroup.tsx
CHANGED
|
@@ -10,16 +10,11 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { FormGroup as MuiFormGroup } from "@mui/material";
|
|
14
|
+
import { memo, ReactElement, useCallback } from "react";
|
|
14
15
|
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
FormControl,
|
|
18
|
-
FormGroup,
|
|
19
|
-
FormHelperText,
|
|
20
|
-
FormLabel,
|
|
21
|
-
ScreenReaderText,
|
|
22
|
-
} from ".";
|
|
16
|
+
import { Checkbox } from "./Checkbox";
|
|
17
|
+
import { Field } from "./Field";
|
|
23
18
|
|
|
24
19
|
export type CheckboxGroupProps = {
|
|
25
20
|
children:
|
|
@@ -27,9 +22,13 @@ export type CheckboxGroupProps = {
|
|
|
27
22
|
| Array<ReactElement<typeof Checkbox>>;
|
|
28
23
|
errorMessage?: string;
|
|
29
24
|
hint?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The id of the `input` element. This will also be the input's `name` field.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
30
29
|
isDisabled?: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
isRequired?: boolean;
|
|
31
|
+
label: string;
|
|
33
32
|
};
|
|
34
33
|
|
|
35
34
|
const CheckboxGroup = ({
|
|
@@ -37,34 +36,31 @@ const CheckboxGroup = ({
|
|
|
37
36
|
isDisabled,
|
|
38
37
|
errorMessage,
|
|
39
38
|
hint,
|
|
39
|
+
id: idOverride,
|
|
40
|
+
isRequired = false,
|
|
40
41
|
label,
|
|
41
|
-
name,
|
|
42
42
|
}: CheckboxGroupProps) => {
|
|
43
|
-
const
|
|
44
|
-
() =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
[errorMessage, hint, name]
|
|
43
|
+
const renderFieldComponent = useCallback(
|
|
44
|
+
({ ariaDescribedBy, id }) => (
|
|
45
|
+
<MuiFormGroup aria-describedby={ariaDescribedBy} id={id}>
|
|
46
|
+
{children}
|
|
47
|
+
</MuiFormGroup>
|
|
48
|
+
),
|
|
49
|
+
[children]
|
|
51
50
|
);
|
|
52
51
|
|
|
53
52
|
return (
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</FormHelperText>
|
|
66
|
-
)}
|
|
67
|
-
</FormControl>
|
|
53
|
+
<Field
|
|
54
|
+
errorMessage={errorMessage}
|
|
55
|
+
fieldType="group"
|
|
56
|
+
hasVisibleLabel={true}
|
|
57
|
+
hint={hint}
|
|
58
|
+
id={idOverride}
|
|
59
|
+
isDisabled={isDisabled}
|
|
60
|
+
isOptional={!isRequired}
|
|
61
|
+
label={label}
|
|
62
|
+
renderFieldComponent={renderFieldComponent}
|
|
63
|
+
/>
|
|
68
64
|
);
|
|
69
65
|
};
|
|
70
66
|
|