@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
package/dist/FieldLabel.js
CHANGED
|
@@ -1,32 +1,46 @@
|
|
|
1
1
|
import _InputLabel from "@mui/material/InputLabel";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
4
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
5
|
+
*
|
|
6
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
*
|
|
11
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
12
|
+
*/
|
|
2
13
|
import { memo, useMemo } from "react";
|
|
14
|
+
import { useTranslation } from "react-i18next";
|
|
3
15
|
import { ScreenReaderText } from "./ScreenReaderText.js";
|
|
4
|
-
import {
|
|
16
|
+
import { Subordinate } from "./Typography.js";
|
|
5
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
19
|
const FieldLabel = _ref => {
|
|
9
20
|
let {
|
|
10
21
|
hasVisibleLabel,
|
|
11
22
|
id,
|
|
12
23
|
inputId,
|
|
13
24
|
isOptional,
|
|
14
|
-
optionalText,
|
|
15
25
|
text
|
|
16
26
|
} = _ref;
|
|
27
|
+
const {
|
|
28
|
+
t
|
|
29
|
+
} = useTranslation();
|
|
17
30
|
const inputLabel = useMemo(() => _jsxs(_InputLabel, {
|
|
18
31
|
htmlFor: inputId,
|
|
19
32
|
id: id,
|
|
20
|
-
children: [
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
children: [_jsx("span", {
|
|
34
|
+
children: text
|
|
35
|
+
}), isOptional && _jsx(Subordinate, {
|
|
36
|
+
children: t("fieldlabel.optional.text")
|
|
23
37
|
})]
|
|
24
|
-
}), [id, inputId, isOptional,
|
|
38
|
+
}), [id, inputId, isOptional, text, t]);
|
|
25
39
|
return hasVisibleLabel ? inputLabel : _jsx(ScreenReaderText, {
|
|
26
40
|
children: inputLabel
|
|
27
41
|
});
|
|
28
42
|
};
|
|
29
|
-
|
|
30
43
|
const MemoizedFieldLabel = memo(FieldLabel);
|
|
44
|
+
MemoizedFieldLabel.displayName = "FieldLabel";
|
|
31
45
|
export { MemoizedFieldLabel as FieldLabel };
|
|
32
46
|
//# sourceMappingURL=FieldLabel.js.map
|
package/dist/FieldLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldLabel.js","names":["memo","useMemo","ScreenReaderText","
|
|
1
|
+
{"version":3,"file":"FieldLabel.js","names":["memo","useMemo","useTranslation","ScreenReaderText","Subordinate","jsx","_jsx","jsxs","_jsxs","FieldLabel","_ref","hasVisibleLabel","id","inputId","isOptional","text","t","inputLabel","_InputLabel","htmlFor","children","MemoizedFieldLabel","displayName"],"sources":["../src/FieldLabel.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 { InputLabel as MuiInputLabel } from \"@mui/material\";\nimport { memo, useMemo } from \"react\";\n\nimport { useTranslation } from \"react-i18next\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { Subordinate } from \"./Typography\";\n\nexport type FieldLabelProps = {\n hasVisibleLabel: boolean;\n id: string;\n inputId: string;\n isOptional: boolean;\n text: string;\n};\n\nconst FieldLabel = ({\n hasVisibleLabel,\n id,\n inputId,\n isOptional,\n text,\n}: FieldLabelProps) => {\n const { t } = useTranslation();\n\n const inputLabel = useMemo(\n () => (\n <MuiInputLabel htmlFor={inputId} id={id}>\n <span>{text}</span>\n {isOptional && (\n <Subordinate>{t(\"fieldlabel.optional.text\")}</Subordinate>\n )}\n </MuiInputLabel>\n ),\n [id, inputId, isOptional, text, t]\n );\n\n return hasVisibleLabel ? (\n inputLabel\n ) : (\n <ScreenReaderText>{inputLabel}</ScreenReaderText>\n );\n};\n\nconst MemoizedFieldLabel = memo(FieldLabel);\nMemoizedFieldLabel.displayName = \"FieldLabel\";\n\nexport { MemoizedFieldLabel as FieldLabel };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAErC,SAASC,cAAc,QAAQ,eAAe;AAAC,SACtCC,gBAAgB;AAAA,SAChBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAUpB,MAAMC,UAAU,GAAGC,IAAA,IAMI;EAAA,IANH;IAClBC,eAAe;IACfC,EAAE;IACFC,OAAO;IACPC,UAAU;IACVC;EACe,CAAC,GAAAL,IAAA;EAChB,MAAM;IAAEM;EAAE,CAAC,GAAGd,cAAc,CAAC,CAAC;EAE9B,MAAMe,UAAU,GAAGhB,OAAO,CACxB,MACEO,KAAA,CAAAU,WAAA;IAAeC,OAAO,EAAEN,OAAQ;IAACD,EAAE,EAAEA,EAAG;IAAAQ,QAAA,GACtCd,IAAA;MAAAc,QAAA,EAAOL;IAAI,CAAO,CAAC,EAClBD,UAAU,IACTR,IAAA,CAACF,WAAW;MAAAgB,QAAA,EAAEJ,CAAC,CAAC,0BAA0B;IAAC,CAAc,CAC1D;EAAA,CACY,CAChB,EACD,CAACJ,EAAE,EAAEC,OAAO,EAAEC,UAAU,EAAEC,IAAI,EAAEC,CAAC,CACnC,CAAC;EAED,OAAOL,eAAe,GACpBM,UAAU,GAEVX,IAAA,CAACH,gBAAgB;IAAAiB,QAAA,EAAEH;EAAU,CAAmB,CACjD;AACH,CAAC;AAED,MAAMI,kBAAkB,GAAGrB,IAAI,CAACS,UAAU,CAAC;AAC3CY,kBAAkB,CAACC,WAAW,GAAG,YAAY;AAE7C,SAASD,kBAAkB,IAAIZ,UAAU"}
|
package/dist/Fieldset.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import _Box from "@mui/material/Box";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
4
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
5
|
+
*
|
|
6
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
*
|
|
11
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
import { memo, useMemo } from "react";
|
|
14
|
+
import { FieldsetContext } from "./FieldsetContext.js";
|
|
15
|
+
import { Legend, Subordinate } from "./Typography.js";
|
|
16
|
+
import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext.js";
|
|
17
|
+
import { useUniqueId } from "./useUniqueId.js";
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
const Fieldset = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
alert,
|
|
23
|
+
children,
|
|
24
|
+
description,
|
|
25
|
+
id: idOverride,
|
|
26
|
+
isDisabled = false,
|
|
27
|
+
legend,
|
|
28
|
+
name
|
|
29
|
+
} = _ref;
|
|
30
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
31
|
+
const id = useUniqueId(idOverride);
|
|
32
|
+
const fieldsetContextValue = useMemo(() => ({
|
|
33
|
+
isDisabled
|
|
34
|
+
}), [isDisabled]);
|
|
35
|
+
return _jsxs(_Box, {
|
|
36
|
+
component: "fieldset",
|
|
37
|
+
disabled: isDisabled,
|
|
38
|
+
name: name,
|
|
39
|
+
id: id,
|
|
40
|
+
sx: {
|
|
41
|
+
border: "0",
|
|
42
|
+
margin: odysseyDesignTokens.Spacing0,
|
|
43
|
+
marginBlockEnd: odysseyDesignTokens.Spacing6,
|
|
44
|
+
maxWidth: odysseyDesignTokens.TypographyLineLengthMax,
|
|
45
|
+
padding: odysseyDesignTokens.Spacing0,
|
|
46
|
+
"&:last-child": {
|
|
47
|
+
marginBlockEnd: odysseyDesignTokens.Spacing0
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
children: [_jsx(Legend, {
|
|
51
|
+
children: legend
|
|
52
|
+
}), description && _jsx(Subordinate, {
|
|
53
|
+
component: "p",
|
|
54
|
+
children: description
|
|
55
|
+
}), alert, _jsx(FieldsetContext.Provider, {
|
|
56
|
+
value: fieldsetContextValue,
|
|
57
|
+
children: children
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
const MemoizedFieldset = memo(Fieldset);
|
|
62
|
+
MemoizedFieldset.displayName = "Fieldset";
|
|
63
|
+
export { MemoizedFieldset as Fieldset };
|
|
64
|
+
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fieldset.js","names":["memo","useMemo","FieldsetContext","Legend","Subordinate","useOdysseyDesignTokens","useUniqueId","jsx","_jsx","jsxs","_jsxs","Fieldset","_ref","alert","children","description","id","idOverride","isDisabled","legend","name","odysseyDesignTokens","fieldsetContextValue","_Box","component","disabled","sx","border","margin","Spacing0","marginBlockEnd","Spacing6","maxWidth","TypographyLineLengthMax","padding","Provider","value","MemoizedFieldset","displayName"],"sources":["../src/Fieldset.tsx"],"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 { Box } from \"@mui/material\";\nimport { memo, ReactElement, useMemo } from \"react\";\n\nimport { Callout } from \"./Callout\";\nimport { FieldsetContext } from \"./FieldsetContext\";\nimport { Legend, Subordinate } from \"./Typography\";\nimport { useOdysseyDesignTokens } from \"./OdysseyDesignTokensContext\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport type FieldsetProps = {\n /**\n * A Callout indicating a Fieldset-wide error or status update.\n */\n alert?: ReactElement<typeof Callout>;\n /**\n * The Field components within the Fieldset\n */\n children: ReactElement | Array<ReactElement>;\n /**\n * A supplementary description\n */\n description?: string;\n /**\n * Defines a unique identifier (ID) which must be unique in the whole document.\n */\n id?: string;\n /**\n * Disables the component and any wrapped input fields.\n */\n isDisabled?: boolean;\n /**\n * The title of the Fieldset\n */\n legend: string;\n /**\n * The name associated with the group.\n */\n name?: string;\n};\n\nconst Fieldset = ({\n alert,\n children,\n description,\n id: idOverride,\n isDisabled = false,\n legend,\n name,\n}: FieldsetProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const id = useUniqueId(idOverride);\n\n const fieldsetContextValue = useMemo(\n () => ({\n isDisabled,\n }),\n [isDisabled]\n );\n\n return (\n <Box\n component=\"fieldset\"\n disabled={isDisabled}\n name={name}\n id={id}\n sx={{\n border: \"0\",\n margin: odysseyDesignTokens.Spacing0,\n marginBlockEnd: odysseyDesignTokens.Spacing6,\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n padding: odysseyDesignTokens.Spacing0,\n\n \"&:last-child\": {\n marginBlockEnd: odysseyDesignTokens.Spacing0,\n },\n }}\n >\n <Legend>{legend}</Legend>\n\n {description && <Subordinate component=\"p\">{description}</Subordinate>}\n\n {alert}\n\n <FieldsetContext.Provider value={fieldsetContextValue}>\n {children}\n </FieldsetContext.Provider>\n </Box>\n );\n};\n\nconst MemoizedFieldset = memo(Fieldset);\nMemoizedFieldset.displayName = \"Fieldset\";\n\nexport { MemoizedFieldset as Fieldset };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,EAAgBC,OAAO,QAAQ,OAAO;AAAC,SAG3CC,eAAe;AAAA,SACfC,MAAM,EAAEC,WAAW;AAAA,SACnBC,sBAAsB;AAAA,SACtBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAiCpB,MAAMC,QAAQ,GAAGC,IAAA,IAQI;EAAA,IARH;IAChBC,KAAK;IACLC,QAAQ;IACRC,WAAW;IACXC,EAAE,EAAEC,UAAU;IACdC,UAAU,GAAG,KAAK;IAClBC,MAAM;IACNC;EACa,CAAC,GAAAR,IAAA;EACd,MAAMS,mBAAmB,GAAGhB,sBAAsB,CAAC,CAAC;EACpD,MAAMW,EAAE,GAAGV,WAAW,CAACW,UAAU,CAAC;EAElC,MAAMK,oBAAoB,GAAGrB,OAAO,CAClC,OAAO;IACLiB;EACF,CAAC,CAAC,EACF,CAACA,UAAU,CACb,CAAC;EAED,OACER,KAAA,CAAAa,IAAA;IACEC,SAAS,EAAC,UAAU;IACpBC,QAAQ,EAAEP,UAAW;IACrBE,IAAI,EAAEA,IAAK;IACXJ,EAAE,EAAEA,EAAG;IACPU,EAAE,EAAE;MACFC,MAAM,EAAE,GAAG;MACXC,MAAM,EAAEP,mBAAmB,CAACQ,QAAQ;MACpCC,cAAc,EAAET,mBAAmB,CAACU,QAAQ;MAC5CC,QAAQ,EAAEX,mBAAmB,CAACY,uBAAuB;MACrDC,OAAO,EAAEb,mBAAmB,CAACQ,QAAQ;MAErC,cAAc,EAAE;QACdC,cAAc,EAAET,mBAAmB,CAACQ;MACtC;IACF,CAAE;IAAAf,QAAA,GAEFN,IAAA,CAACL,MAAM;MAAAW,QAAA,EAAEK;IAAM,CAAS,CAAC,EAExBJ,WAAW,IAAIP,IAAA,CAACJ,WAAW;MAACoB,SAAS,EAAC,GAAG;MAAAV,QAAA,EAAEC;IAAW,CAAc,CAAC,EAErEF,KAAK,EAENL,IAAA,CAACN,eAAe,CAACiC,QAAQ;MAACC,KAAK,EAAEd,oBAAqB;MAAAR,QAAA,EACnDA;IAAQ,CACe,CAAC;EAAA,CACxB,CAAC;AAEV,CAAC;AAED,MAAMuB,gBAAgB,GAAGrC,IAAI,CAACW,QAAQ,CAAC;AACvC0B,gBAAgB,CAACC,WAAW,GAAG,UAAU;AAEzC,SAASD,gBAAgB,IAAI1B,QAAQ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { createContext, useContext } from "react";
|
|
14
|
+
export const FieldsetContext = createContext({
|
|
15
|
+
isDisabled: false
|
|
16
|
+
});
|
|
17
|
+
export const useFieldset = () => useContext(FieldsetContext);
|
|
18
|
+
//# sourceMappingURL=FieldsetContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsetContext.js","names":["createContext","useContext","FieldsetContext","isDisabled","useFieldset"],"sources":["../src/FieldsetContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 { createContext, useContext } from \"react\";\n\nexport type FieldsetContextValue = {\n isDisabled: boolean;\n};\n\nexport const FieldsetContext = createContext<FieldsetContextValue>({\n isDisabled: false,\n});\n\nexport const useFieldset = () => useContext(FieldsetContext);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAMjD,OAAO,MAAMC,eAAe,GAAGF,aAAa,CAAuB;EACjEG,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAMH,UAAU,CAACC,eAAe,CAAC"}
|
package/dist/Form.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import _Box from "@mui/material/Box";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
4
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
5
|
+
*
|
|
6
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
*
|
|
11
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { memo } from "react";
|
|
15
|
+
import { Heading4, Support } from "./Typography.js";
|
|
16
|
+
import { useUniqueId } from "./useUniqueId.js";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
export const formEncodingTypeValues = ["application/x-www-form-urlencoded", "application/json", "multipart/form-data", "text/plain"];
|
|
20
|
+
export const formAutoCompleteTypeValues = ["on", "off"];
|
|
21
|
+
export const formMethodValues = ["post", "get", "dialog"];
|
|
22
|
+
const Form = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
alert,
|
|
25
|
+
autoCompleteType,
|
|
26
|
+
children,
|
|
27
|
+
description,
|
|
28
|
+
encodingType,
|
|
29
|
+
formActions,
|
|
30
|
+
id: idOverride,
|
|
31
|
+
method,
|
|
32
|
+
name,
|
|
33
|
+
noValidate = false,
|
|
34
|
+
target,
|
|
35
|
+
title
|
|
36
|
+
} = _ref;
|
|
37
|
+
const id = useUniqueId(idOverride);
|
|
38
|
+
return _jsxs(_Box, {
|
|
39
|
+
component: "form",
|
|
40
|
+
autoComplete: autoCompleteType,
|
|
41
|
+
name: name,
|
|
42
|
+
encType: encodingType,
|
|
43
|
+
method: method,
|
|
44
|
+
noValidate: noValidate,
|
|
45
|
+
target: target,
|
|
46
|
+
id: id,
|
|
47
|
+
sx: {
|
|
48
|
+
maxWidth: theme => theme.mixins.maxWidth,
|
|
49
|
+
margin: theme => theme.spacing(0),
|
|
50
|
+
padding: theme => theme.spacing(0)
|
|
51
|
+
},
|
|
52
|
+
children: [_jsxs(_Box, {
|
|
53
|
+
component: "div",
|
|
54
|
+
sx: {
|
|
55
|
+
marginBlockEnd: theme => theme.spacing(4)
|
|
56
|
+
},
|
|
57
|
+
children: [title && _jsx(Heading4, {
|
|
58
|
+
component: "h1",
|
|
59
|
+
children: title
|
|
60
|
+
}), description && _jsx(Support, {
|
|
61
|
+
children: description
|
|
62
|
+
}), alert]
|
|
63
|
+
}), _jsx(_Box, {
|
|
64
|
+
component: "div",
|
|
65
|
+
children: children
|
|
66
|
+
}), formActions && _jsx(_Box, {
|
|
67
|
+
component: "div",
|
|
68
|
+
sx: {
|
|
69
|
+
display: "flex",
|
|
70
|
+
justifyContent: "flex-start",
|
|
71
|
+
gap: theme => theme.spacing(1),
|
|
72
|
+
marginBlockStart: theme => theme.spacing(7)
|
|
73
|
+
},
|
|
74
|
+
children: formActions
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
const MemoizedForm = memo(Form);
|
|
79
|
+
MemoizedForm.displayName = "Form";
|
|
80
|
+
export { MemoizedForm as Form };
|
|
81
|
+
//# sourceMappingURL=Form.js.map
|
package/dist/Form.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.js","names":["memo","Heading4","Support","useUniqueId","jsx","_jsx","jsxs","_jsxs","formEncodingTypeValues","formAutoCompleteTypeValues","formMethodValues","Form","_ref","alert","autoCompleteType","children","description","encodingType","formActions","id","idOverride","method","name","noValidate","target","title","_Box","component","autoComplete","encType","sx","maxWidth","theme","mixins","margin","spacing","padding","marginBlockEnd","display","justifyContent","gap","marginBlockStart","MemoizedForm","displayName"],"sources":["../src/Form.tsx"],"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 { memo, ReactElement } from \"react\";\n\nimport { Box } from \"@mui/material\";\nimport { Button } from \"./Button\";\nimport { Callout } from \"./Callout\";\nimport { Heading4, Support } from \"./Typography\";\nimport { useUniqueId } from \"./useUniqueId\";\n\nexport const formEncodingTypeValues = [\n \"application/x-www-form-urlencoded\",\n \"application/json\",\n \"multipart/form-data\",\n \"text/plain\",\n] as const;\nexport const formAutoCompleteTypeValues = [\"on\", \"off\"] as const;\nexport const formMethodValues = [\"post\", \"get\", \"dialog\"] as const;\n\nexport type FormProps = {\n /**\n * A Callout indicating a Form-wide error or status update.\n */\n alert?: ReactElement<typeof Callout>;\n /**\n * Indicates whether input elements can by default have their values automatically completed by the browser.\n * `autocomplete` attributes on form elements override it on <form>\n */\n autoCompleteType?: (typeof formAutoCompleteTypeValues)[number];\n /**\n * The Field or FieldSet components within the Form\n */\n children: ReactElement | Array<ReactElement>;\n /**\n * A supplementary description\n */\n description?: string;\n /**\n * If the value of the method attribute is post, enctype is the MIME type of the form submission.\n * This value can be overridden by formenctype attributes on <button>, <input type=\"submit\">, or <input type=\"image\"> elements.\n */\n encodingType?: (typeof formEncodingTypeValues)[number];\n /**\n * The Field or FieldGroup components within the Form\n */\n formActions?:\n | ReactElement<typeof Button>\n | Array<ReactElement<typeof Button>>;\n /**\n * Defines a unique identifier (ID) which must be unique in the whole document.\n */\n id?: string;\n /**\n * The HTTP method to submit the form with.\n * This value is overridden by formmethod attributes on <button>, <input type=\"submit\">, or <input type=\"image\"> elements.\n */\n method?: (typeof formMethodValues)[number];\n /**\n * The name of the form. The value must not be the empty string, and must be unique among the form elements in the forms collection that it is in, if any.\n */\n name: string;\n /**\n * This Boolean attribute indicates that the form shouldn't be validated when submitted.\n * If this attribute is not set (and therefore the form is validated),\n * it can be overridden by a formnovalidate attribute on a <button>, <input type=\"submit\">, or <input type=\"image\"> element belonging to the form.\n */\n noValidate?: boolean;\n /**\n * Indicates where to display the response after submitting the form. It is a name/keyword for a browsing context (for example, tab, window, or iframe).\n * This value can be overridden by a formtarget attribute on a <button>, <input type=\"submit\">, or <input type=\"image\"> element.\n */\n target?: string;\n /**\n * The title of the Form\n */\n title?: string;\n};\n\nconst Form = ({\n alert,\n autoCompleteType,\n children,\n description,\n encodingType,\n formActions,\n id: idOverride,\n method,\n name,\n noValidate = false,\n target,\n title,\n}: FormProps) => {\n const id = useUniqueId(idOverride);\n\n return (\n <Box\n component=\"form\"\n autoComplete={autoCompleteType}\n name={name}\n encType={encodingType}\n method={method}\n noValidate={noValidate}\n target={target}\n id={id}\n sx={{\n maxWidth: (theme) => theme.mixins.maxWidth,\n margin: (theme) => theme.spacing(0),\n padding: (theme) => theme.spacing(0),\n }}\n >\n <Box\n component=\"div\"\n sx={{\n marginBlockEnd: (theme) => theme.spacing(4),\n }}\n >\n {title && <Heading4 component=\"h1\">{title}</Heading4>}\n {description && <Support>{description}</Support>}\n {alert}\n </Box>\n <Box component=\"div\">{children}</Box>\n {formActions && (\n <Box\n component=\"div\"\n sx={{\n display: \"flex\",\n justifyContent: \"flex-start\",\n gap: (theme) => theme.spacing(1),\n marginBlockStart: (theme) => theme.spacing(7),\n }}\n >\n {formActions}\n </Box>\n )}\n </Box>\n );\n};\n\nconst MemoizedForm = memo(Form);\nMemoizedForm.displayName = \"Form\";\n\nexport { MemoizedForm as Form };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAsB,OAAO;AAAC,SAKlCC,QAAQ,EAAEC,OAAO;AAAA,SACjBC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAEpB,OAAO,MAAMC,sBAAsB,GAAG,CACpC,mCAAmC,EACnC,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,CACJ;AACV,OAAO,MAAMC,0BAA0B,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;AAChE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAU;AA6DlE,MAAMC,IAAI,GAAGC,IAAA,IAaI;EAAA,IAbH;IACZC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,WAAW;IACXC,YAAY;IACZC,WAAW;IACXC,EAAE,EAAEC,UAAU;IACdC,MAAM;IACNC,IAAI;IACJC,UAAU,GAAG,KAAK;IAClBC,MAAM;IACNC;EACS,CAAC,GAAAb,IAAA;EACV,MAAMO,EAAE,GAAGhB,WAAW,CAACiB,UAAU,CAAC;EAElC,OACEb,KAAA,CAAAmB,IAAA;IACEC,SAAS,EAAC,MAAM;IAChBC,YAAY,EAAEd,gBAAiB;IAC/BQ,IAAI,EAAEA,IAAK;IACXO,OAAO,EAAEZ,YAAa;IACtBI,MAAM,EAAEA,MAAO;IACfE,UAAU,EAAEA,UAAW;IACvBC,MAAM,EAAEA,MAAO;IACfL,EAAE,EAAEA,EAAG;IACPW,EAAE,EAAE;MACFC,QAAQ,EAAGC,KAAK,IAAKA,KAAK,CAACC,MAAM,CAACF,QAAQ;MAC1CG,MAAM,EAAGF,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;MACnCC,OAAO,EAAGJ,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;IACrC,CAAE;IAAApB,QAAA,GAEFR,KAAA,CAAAmB,IAAA;MACEC,SAAS,EAAC,KAAK;MACfG,EAAE,EAAE;QACFO,cAAc,EAAGL,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;MAC5C,CAAE;MAAApB,QAAA,GAEDU,KAAK,IAAIpB,IAAA,CAACJ,QAAQ;QAAC0B,SAAS,EAAC,IAAI;QAAAZ,QAAA,EAAEU;MAAK,CAAW,CAAC,EACpDT,WAAW,IAAIX,IAAA,CAACH,OAAO;QAAAa,QAAA,EAAEC;MAAW,CAAU,CAAC,EAC/CH,KAAK;IAAA,CACH,CAAC,EACNR,IAAA,CAAAqB,IAAA;MAAKC,SAAS,EAAC,KAAK;MAAAZ,QAAA,EAAEA;IAAQ,CAAM,CAAC,EACpCG,WAAW,IACVb,IAAA,CAAAqB,IAAA;MACEC,SAAS,EAAC,KAAK;MACfG,EAAE,EAAE;QACFQ,OAAO,EAAE,MAAM;QACfC,cAAc,EAAE,YAAY;QAC5BC,GAAG,EAAGR,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;QAChCM,gBAAgB,EAAGT,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC;MAC9C,CAAE;MAAApB,QAAA,EAEDG;IAAW,CACT,CACN;EAAA,CACE,CAAC;AAEV,CAAC;AAED,MAAMwB,YAAY,GAAG1C,IAAI,CAACW,IAAI,CAAC;AAC/B+B,YAAY,CAACC,WAAW,GAAG,MAAM;AAEjC,SAASD,YAAY,IAAI/B,IAAI"}
|
package/dist/Link.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _Link from "@mui/material/Link";
|
|
2
|
-
import _SvgIcon from "@mui/material/SvgIcon";
|
|
3
|
-
|
|
4
2
|
/*!
|
|
5
3
|
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
6
4
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
@@ -12,36 +10,37 @@ import _SvgIcon from "@mui/material/SvgIcon";
|
|
|
12
10
|
*
|
|
13
11
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
14
12
|
*/
|
|
15
|
-
|
|
13
|
+
|
|
14
|
+
import { memo } from "react";
|
|
15
|
+
import { ExternalLinkIcon } from "./icons.generated/index.js";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
export const
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export const linkVariantValues = ["default", "monochrome"];
|
|
19
|
+
const Link = _ref => {
|
|
20
|
+
let {
|
|
21
21
|
children,
|
|
22
|
+
href,
|
|
23
|
+
icon,
|
|
22
24
|
target,
|
|
25
|
+
rel,
|
|
23
26
|
variant
|
|
24
|
-
} =
|
|
27
|
+
} = _ref;
|
|
25
28
|
return _jsxs(_Link, {
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
href: href,
|
|
30
|
+
rel: rel,
|
|
28
31
|
target: target,
|
|
32
|
+
variant: variant,
|
|
29
33
|
children: [icon && _jsx("span", {
|
|
30
34
|
className: "Link-icon",
|
|
31
35
|
children: icon
|
|
32
36
|
}), children, target === "_blank" && _jsx("span", {
|
|
33
37
|
className: "Link-indicator",
|
|
34
38
|
role: "presentation",
|
|
35
|
-
children: _jsx(
|
|
36
|
-
viewBox: "0 0 16 16",
|
|
37
|
-
children: _jsx("path", {
|
|
38
|
-
fillRule: "evenodd",
|
|
39
|
-
clipRule: "evenodd",
|
|
40
|
-
d: "M13.2929 2H7.99998V1H14.5C14.7761 1 15 1.22386 15 1.5V8H14V2.70711L6.35353 10.3536L5.64642 9.64645L13.2929 2ZM1.5 4H1V4.5V14.5V15H1.5H11.5H12V14.5V8H11V14H2V5H8V4H1.5Z",
|
|
41
|
-
fill: "currentColor"
|
|
42
|
-
})
|
|
43
|
-
})
|
|
39
|
+
children: _jsx(ExternalLinkIcon, {})
|
|
44
40
|
})]
|
|
45
41
|
});
|
|
46
|
-
}
|
|
42
|
+
};
|
|
43
|
+
const MemoizedLink = memo(Link);
|
|
44
|
+
MemoizedLink.displayName = "Link";
|
|
45
|
+
export { MemoizedLink as Link };
|
|
47
46
|
//# sourceMappingURL=Link.js.map
|
package/dist/Link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","names":["
|
|
1
|
+
{"version":3,"file":"Link.js","names":["memo","ExternalLinkIcon","jsx","_jsx","jsxs","_jsxs","linkVariantValues","Link","_ref","children","href","icon","target","rel","variant","_Link","className","role","MemoizedLink","displayName"],"sources":["../src/Link.tsx"],"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 { memo, ReactElement } from \"react\";\nimport { ExternalLinkIcon } from \"./icons.generated\";\n\nimport { Link as MuiLink } from \"@mui/material\";\n\nexport const linkVariantValues = [\"default\", \"monochrome\"] as const;\n\nexport type LinkProps = {\n /**\n * The content within the Link\n */\n children: React.ReactNode;\n /**\n * The Link destination\n */\n href: string;\n /**\n * An optional Icon component at the start of the Link\n */\n icon?: ReactElement;\n /**\n * The HTML `rel` attribute for the Link\n */\n rel?: string;\n /**\n * The HTML `target` attribute for the Link\n */\n target?:\n | \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | (string & NonNullable<unknown>);\n /**\n * The visual presentation of the Link (default or monochrome)\n */\n variant?: (typeof linkVariantValues)[number];\n};\n\nconst Link = ({ children, href, icon, target, rel, variant }: LinkProps) => (\n <MuiLink href={href} rel={rel} target={target} variant={variant}>\n {icon && <span className=\"Link-icon\">{icon}</span>}\n\n {children}\n\n {target === \"_blank\" && (\n <span className=\"Link-indicator\" role=\"presentation\">\n <ExternalLinkIcon />\n </span>\n )}\n </MuiLink>\n);\n\nconst MemoizedLink = memo(Link);\n\nMemoizedLink.displayName = \"Link\";\n\nexport { MemoizedLink as Link };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAsB,OAAO;AAAC,SAClCC,gBAAgB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAIzB,OAAO,MAAMC,iBAAiB,GAAG,CAAC,SAAS,EAAE,YAAY,CAAU;AAkCnE,MAAMC,IAAI,GAAGC,IAAA;EAAA,IAAC;IAAEC,QAAQ;IAAEC,IAAI;IAAEC,IAAI;IAAEC,MAAM;IAAEC,GAAG;IAAEC;EAAmB,CAAC,GAAAN,IAAA;EAAA,OACrEH,KAAA,CAAAU,KAAA;IAASL,IAAI,EAAEA,IAAK;IAACG,GAAG,EAAEA,GAAI;IAACD,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAEA,OAAQ;IAAAL,QAAA,GAC7DE,IAAI,IAAIR,IAAA;MAAMa,SAAS,EAAC,WAAW;MAAAP,QAAA,EAAEE;IAAI,CAAO,CAAC,EAEjDF,QAAQ,EAERG,MAAM,KAAK,QAAQ,IAClBT,IAAA;MAAMa,SAAS,EAAC,gBAAgB;MAACC,IAAI,EAAC,cAAc;MAAAR,QAAA,EAClDN,IAAA,CAACF,gBAAgB,IAAE;IAAC,CAChB,CACP;EAAA,CACM,CAAC;AAAA,CACX;AAED,MAAMiB,YAAY,GAAGlB,IAAI,CAACO,IAAI,CAAC;AAE/BW,YAAY,CAACC,WAAW,GAAG,MAAM;AAEjC,SAASD,YAAY,IAAIX,IAAI"}
|
package/dist/MenuButton.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _Menu from "@mui/material/Menu";
|
|
1
2
|
/*!
|
|
2
3
|
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
4
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
@@ -9,55 +10,68 @@
|
|
|
9
10
|
*
|
|
10
11
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
12
|
*/
|
|
12
|
-
import { Button,
|
|
13
|
-
import {
|
|
13
|
+
import { Button, useUniqueId } from "./index.js";
|
|
14
|
+
import { ChevronDownIcon } from "./icons.generated/index.js";
|
|
15
|
+
import { memo, useCallback, useMemo, useState } from "react";
|
|
16
|
+
import { MenuContext } from "./MenuContext.js";
|
|
14
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
|
|
17
19
|
const MenuButton = _ref => {
|
|
18
20
|
let {
|
|
21
|
+
ariaLabel,
|
|
22
|
+
ariaLabelledBy,
|
|
23
|
+
ariaDescribedBy,
|
|
19
24
|
buttonLabel = "",
|
|
20
|
-
children,
|
|
21
|
-
buttonEndIcon = _jsx(ChevronDownIcon, {}),
|
|
22
25
|
buttonVariant = "secondary",
|
|
23
|
-
|
|
26
|
+
children,
|
|
27
|
+
endIcon = _jsx(ChevronDownIcon, {}),
|
|
28
|
+
id: idOverride,
|
|
29
|
+
tooltipText
|
|
24
30
|
} = _ref;
|
|
25
31
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const handleClick = event => {
|
|
29
|
-
setAnchorEl(event.currentTarget);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const handleClose = () => {
|
|
32
|
+
const isOpen = Boolean(anchorEl);
|
|
33
|
+
const closeMenu = useCallback(() => {
|
|
33
34
|
setAnchorEl(null);
|
|
34
|
-
};
|
|
35
|
-
|
|
35
|
+
}, []);
|
|
36
|
+
const openMenu = useCallback(event => {
|
|
37
|
+
setAnchorEl(event.currentTarget);
|
|
38
|
+
}, []);
|
|
36
39
|
const uniqueId = useUniqueId(idOverride);
|
|
37
40
|
const menuListProps = useMemo(() => ({
|
|
38
41
|
"aria-labelledby": `${uniqueId}-button`
|
|
39
42
|
}), [uniqueId]);
|
|
43
|
+
const providerValue = useMemo(() => ({
|
|
44
|
+
closeMenu,
|
|
45
|
+
openMenu
|
|
46
|
+
}), [closeMenu, openMenu]);
|
|
40
47
|
return _jsxs("div", {
|
|
41
48
|
children: [_jsx(Button, {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"aria-controls": open ? `${uniqueId}-menu` : undefined,
|
|
49
|
+
"aria-controls": isOpen ? `${uniqueId}-menu` : undefined,
|
|
50
|
+
"aria-expanded": isOpen ? "true" : undefined,
|
|
45
51
|
"aria-haspopup": "true",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
ariaDescribedBy: ariaDescribedBy,
|
|
53
|
+
ariaLabel: ariaLabel,
|
|
54
|
+
ariaLabelledBy: ariaLabelledBy,
|
|
55
|
+
endIcon: endIcon,
|
|
56
|
+
id: `${uniqueId}-button`,
|
|
57
|
+
label: buttonLabel,
|
|
58
|
+
onClick: openMenu,
|
|
59
|
+
tooltipText: tooltipText,
|
|
49
60
|
variant: buttonVariant
|
|
50
|
-
}), _jsx(
|
|
51
|
-
id: `${uniqueId}-menu`,
|
|
61
|
+
}), _jsx(_Menu, {
|
|
52
62
|
anchorEl: anchorEl,
|
|
53
|
-
|
|
54
|
-
onClose: handleClose,
|
|
63
|
+
id: `${uniqueId}-menu`,
|
|
55
64
|
MenuListProps: menuListProps,
|
|
56
|
-
|
|
65
|
+
onClose: closeMenu,
|
|
66
|
+
open: isOpen,
|
|
67
|
+
children: _jsx(MenuContext.Provider, {
|
|
68
|
+
value: providerValue,
|
|
69
|
+
children: children
|
|
70
|
+
})
|
|
57
71
|
})]
|
|
58
72
|
});
|
|
59
73
|
};
|
|
60
|
-
|
|
61
74
|
const MemoizedMenuButton = memo(MenuButton);
|
|
75
|
+
MemoizedMenuButton.displayName = "MenuButton";
|
|
62
76
|
export { MemoizedMenuButton as MenuButton };
|
|
63
77
|
//# sourceMappingURL=MenuButton.js.map
|
package/dist/MenuButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.js","names":["Button","
|
|
1
|
+
{"version":3,"file":"MenuButton.js","names":["Button","useUniqueId","ChevronDownIcon","memo","useCallback","useMemo","useState","MenuContext","jsx","_jsx","jsxs","_jsxs","MenuButton","_ref","ariaLabel","ariaLabelledBy","ariaDescribedBy","buttonLabel","buttonVariant","children","endIcon","id","idOverride","tooltipText","anchorEl","setAnchorEl","isOpen","Boolean","closeMenu","openMenu","event","currentTarget","uniqueId","menuListProps","providerValue","undefined","label","onClick","variant","_Menu","MenuListProps","onClose","open","Provider","value","MemoizedMenuButton","displayName"],"sources":["../src/MenuButton.tsx"],"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 { Button, buttonVariantValues, MenuItem, useUniqueId } from \"./\";\nimport { Divider, ListSubheader, Menu } from \"@mui/material\";\nimport { ChevronDownIcon } from \"./icons.generated\";\nimport { memo, type ReactElement, useCallback, useMemo, useState } from \"react\";\n\nimport { MenuContext, MenuContextType } from \"./MenuContext\";\nimport { NullElement } from \"./NullElement\";\n\nexport type MenuButtonProps = {\n /**\n * The ARIA label for the Button\n */\n ariaLabel?: string;\n /**\n * The ID of the element that labels the Button\n */\n ariaLabelledBy?: string;\n /**\n * The ID of the element that describes the Button\n */\n ariaDescribedBy?: string;\n /**\n * The label on the triggering Button\n */\n buttonLabel?: string;\n /**\n * The variant of the triggering Button\n */\n buttonVariant?: (typeof buttonVariantValues)[number];\n /**\n * The <MenuItem> components within the Menu.\n */\n children: Array<\n ReactElement<\n typeof MenuItem | typeof Divider | typeof ListSubheader | NullElement\n >\n >;\n /**\n * The end Icon on the trigggering Button\n */\n endIcon?: ReactElement;\n /**\n * The id of the Button\n */\n id?: string;\n /**\n * The tooltip text for the Button if it's icon-only\n */\n tooltipText?: string;\n} & (\n | {\n ariaLabel?: string;\n ariaLabelledBy?: string;\n buttonLabel: string;\n }\n | {\n ariaLabel: string;\n ariaLabelledBy?: string;\n buttonLabel?: undefined | \"\";\n }\n | {\n ariaLabel?: string;\n ariaLabelledBy: string;\n buttonLabel?: undefined | \"\";\n }\n);\n\nconst MenuButton = ({\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n buttonLabel = \"\",\n buttonVariant = \"secondary\",\n children,\n endIcon = <ChevronDownIcon />,\n id: idOverride,\n tooltipText,\n}: MenuButtonProps) => {\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const isOpen = Boolean(anchorEl);\n\n const closeMenu = useCallback<MenuContextType[\"closeMenu\"]>(() => {\n setAnchorEl(null);\n }, []);\n\n const openMenu = useCallback<MenuContextType[\"openMenu\"]>((event) => {\n setAnchorEl(event.currentTarget);\n }, []);\n\n const uniqueId = useUniqueId(idOverride);\n\n const menuListProps = useMemo(\n () => ({ \"aria-labelledby\": `${uniqueId}-button` }),\n [uniqueId]\n );\n\n const providerValue = useMemo<MenuContextType>(\n () => ({\n closeMenu,\n openMenu,\n }),\n [closeMenu, openMenu]\n );\n\n return (\n <div>\n <Button\n aria-controls={isOpen ? `${uniqueId}-menu` : undefined}\n aria-expanded={isOpen ? \"true\" : undefined}\n aria-haspopup=\"true\"\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n endIcon={endIcon}\n id={`${uniqueId}-button`}\n label={buttonLabel}\n onClick={openMenu}\n tooltipText={tooltipText}\n variant={buttonVariant}\n />\n\n <Menu\n anchorEl={anchorEl}\n id={`${uniqueId}-menu`}\n MenuListProps={menuListProps}\n onClose={closeMenu}\n open={isOpen}\n >\n <MenuContext.Provider value={providerValue}>\n {children}\n </MenuContext.Provider>\n </Menu>\n </div>\n );\n};\n\nconst MemoizedMenuButton = memo(MenuButton);\nMemoizedMenuButton.displayName = \"MenuButton\";\n\nexport { MemoizedMenuButton as MenuButton };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAYSA,MAAM,EAAiCC,WAAW;AAAA,SAElDC,eAAe;AACxB,SAASC,IAAI,EAAqBC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAAC,SAEvEC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AA8DpB,MAAMC,UAAU,GAAGC,IAAA,IAUI;EAAA,IAVH;IAClBC,SAAS;IACTC,cAAc;IACdC,eAAe;IACfC,WAAW,GAAG,EAAE;IAChBC,aAAa,GAAG,WAAW;IAC3BC,QAAQ;IACRC,OAAO,GAAGX,IAAA,CAACP,eAAe,IAAE,CAAC;IAC7BmB,EAAE,EAAEC,UAAU;IACdC;EACe,CAAC,GAAAV,IAAA;EAChB,MAAM,CAACW,QAAQ,EAAEC,WAAW,CAAC,GAAGnB,QAAQ,CAAqB,IAAI,CAAC;EAElE,MAAMoB,MAAM,GAAGC,OAAO,CAACH,QAAQ,CAAC;EAEhC,MAAMI,SAAS,GAAGxB,WAAW,CAA+B,MAAM;IAChEqB,WAAW,CAAC,IAAI,CAAC;EACnB,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMI,QAAQ,GAAGzB,WAAW,CAA+B0B,KAAK,IAAK;IACnEL,WAAW,CAACK,KAAK,CAACC,aAAa,CAAC;EAClC,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,QAAQ,GAAG/B,WAAW,CAACqB,UAAU,CAAC;EAExC,MAAMW,aAAa,GAAG5B,OAAO,CAC3B,OAAO;IAAE,iBAAiB,EAAG,GAAE2B,QAAS;EAAS,CAAC,CAAC,EACnD,CAACA,QAAQ,CACX,CAAC;EAED,MAAME,aAAa,GAAG7B,OAAO,CAC3B,OAAO;IACLuB,SAAS;IACTC;EACF,CAAC,CAAC,EACF,CAACD,SAAS,EAAEC,QAAQ,CACtB,CAAC;EAED,OACElB,KAAA;IAAAQ,QAAA,GACEV,IAAA,CAACT,MAAM;MACL,iBAAe0B,MAAM,GAAI,GAAEM,QAAS,OAAM,GAAGG,SAAU;MACvD,iBAAeT,MAAM,GAAG,MAAM,GAAGS,SAAU;MAC3C,iBAAc,MAAM;MACpBnB,eAAe,EAAEA,eAAgB;MACjCF,SAAS,EAAEA,SAAU;MACrBC,cAAc,EAAEA,cAAe;MAC/BK,OAAO,EAAEA,OAAQ;MACjBC,EAAE,EAAG,GAAEW,QAAS,SAAS;MACzBI,KAAK,EAAEnB,WAAY;MACnBoB,OAAO,EAAER,QAAS;MAClBN,WAAW,EAAEA,WAAY;MACzBe,OAAO,EAAEpB;IAAc,CACxB,CAAC,EAEFT,IAAA,CAAA8B,KAAA;MACEf,QAAQ,EAAEA,QAAS;MACnBH,EAAE,EAAG,GAAEW,QAAS,OAAO;MACvBQ,aAAa,EAAEP,aAAc;MAC7BQ,OAAO,EAAEb,SAAU;MACnBc,IAAI,EAAEhB,MAAO;MAAAP,QAAA,EAEbV,IAAA,CAACF,WAAW,CAACoC,QAAQ;QAACC,KAAK,EAAEV,aAAc;QAAAf,QAAA,EACxCA;MAAQ,CACW;IAAC,CACnB,CAAC;EAAA,CACJ,CAAC;AAEV,CAAC;AAED,MAAM0B,kBAAkB,GAAG1C,IAAI,CAACS,UAAU,CAAC;AAC3CiC,kBAAkB,CAACC,WAAW,GAAG,YAAY;AAE7C,SAASD,kBAAkB,IAAIjC,UAAU"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { createContext } from "react";
|
|
14
|
+
export const MenuContext = createContext({
|
|
15
|
+
closeMenu: () => {},
|
|
16
|
+
openMenu: () => {}
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=MenuContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuContext.js","names":["createContext","MenuContext","closeMenu","openMenu"],"sources":["../src/MenuContext.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 { createContext, MouseEventHandler } from \"react\";\n\nexport type MenuContextType = {\n closeMenu: () => void;\n openMenu: MouseEventHandler<HTMLElement>;\n};\n\nexport const MenuContext = createContext<MenuContextType>({\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n closeMenu: () => {},\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n openMenu: () => {},\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAA2B,OAAO;AAOxD,OAAO,MAAMC,WAAW,GAAGD,aAAa,CAAkB;EAExDE,SAAS,EAAEA,CAAA,KAAM,CAAC,CAAC;EAEnBC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC"}
|
package/dist/MenuItem.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _MenuItem from "@mui/material/MenuItem";
|
|
2
|
-
|
|
3
2
|
/*!
|
|
4
3
|
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
5
4
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
@@ -11,20 +10,36 @@ import _MenuItem from "@mui/material/MenuItem";
|
|
|
11
10
|
*
|
|
12
11
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
13
12
|
*/
|
|
14
|
-
import { memo, forwardRef } from "react";
|
|
15
13
|
import { menuItemClasses } from "@mui/material/MenuItem";
|
|
14
|
+
import { memo, useCallback, useContext } from "react";
|
|
15
|
+
import { MenuContext } from "./MenuContext.js";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
const MenuItem =
|
|
17
|
+
const MenuItem = _ref => {
|
|
18
18
|
let {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
children,
|
|
20
|
+
hasInitialFocus,
|
|
21
|
+
isSelected,
|
|
22
|
+
onClick: onClickProp,
|
|
23
|
+
value,
|
|
24
|
+
variant = "default"
|
|
21
25
|
} = _ref;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
const {
|
|
27
|
+
closeMenu
|
|
28
|
+
} = useContext(MenuContext);
|
|
29
|
+
const onClick = useCallback(event => {
|
|
30
|
+
onClickProp?.(event);
|
|
31
|
+
closeMenu();
|
|
32
|
+
}, [onClickProp, closeMenu]);
|
|
33
|
+
return _jsx(_MenuItem, {
|
|
34
|
+
autoFocus: hasInitialFocus,
|
|
35
|
+
selected: isSelected,
|
|
36
|
+
value: value,
|
|
37
|
+
onClick: onClick,
|
|
38
|
+
className: variant === "destructive" ? `${menuItemClasses.root}-destructive` : undefined,
|
|
39
|
+
children: children
|
|
26
40
|
});
|
|
27
|
-
}
|
|
41
|
+
};
|
|
28
42
|
const MemoizedMenuItem = memo(MenuItem);
|
|
43
|
+
MemoizedMenuItem.displayName = "MenuItem";
|
|
29
44
|
export { MemoizedMenuItem as MenuItem };
|
|
30
45
|
//# sourceMappingURL=MenuItem.js.map
|
package/dist/MenuItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.js","names":["memo","
|
|
1
|
+
{"version":3,"file":"MenuItem.js","names":["menuItemClasses","memo","useCallback","useContext","MenuContext","jsx","_jsx","MenuItem","_ref","children","hasInitialFocus","isSelected","onClick","onClickProp","value","variant","closeMenu","event","_MenuItem","autoFocus","selected","className","root","undefined","MemoizedMenuItem","displayName"],"sources":["../src/MenuItem.tsx"],"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 {\n MenuItem as MuiMenuItem,\n MenuItemProps as MuiMenuItemProps,\n} from \"@mui/material\";\nimport { menuItemClasses } from \"@mui/material/MenuItem\";\nimport { memo, useCallback, useContext, type ReactNode } from \"react\";\n\nimport { MenuContext } from \"./MenuContext\";\n\nexport type MenuItemProps = {\n /**\n * The content of the menu item.\n */\n children: ReactNode;\n /**\n * If `true`, the menu item will receive focus automatically.\n */\n hasInitialFocus?: boolean;\n /**\n * If `true`, the menu item will be visually marked as selected.\n */\n isSelected?: boolean;\n /**\n * If `true`, the menu item will be visually marked as destructive.\n */\n isDestructive?: boolean;\n /**\n * Callback fired when the menu item is clicked.\n */\n onClick?: MuiMenuItemProps[\"onClick\"];\n /**\n * The value associated with the menu item.\n */\n value?: string;\n /**\n * The variant of the menu item.\n * - \"default\": The default variant.\n * - \"destructive\": A variant indicating a destructive action.\n */\n variant?: \"default\" | \"destructive\";\n};\n\nconst MenuItem = ({\n children,\n hasInitialFocus,\n isSelected,\n onClick: onClickProp,\n value,\n variant = \"default\",\n}: MenuItemProps) => {\n const { closeMenu } = useContext(MenuContext);\n\n const onClick = useCallback<NonNullable<MuiMenuItemProps[\"onClick\"]>>(\n (event) => {\n onClickProp?.(event);\n closeMenu();\n },\n [onClickProp, closeMenu]\n );\n\n return (\n <MuiMenuItem\n /* eslint-disable-next-line jsx-a11y/no-autofocus */\n autoFocus={hasInitialFocus}\n selected={isSelected}\n value={value}\n onClick={onClick}\n className={\n variant === \"destructive\"\n ? `${menuItemClasses.root}-destructive`\n : undefined\n }\n >\n {children}\n </MuiMenuItem>\n );\n};\n\nconst MemoizedMenuItem = memo(MenuItem);\nMemoizedMenuItem.displayName = \"MenuItem\";\n\nexport { MemoizedMenuItem as MenuItem };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,SAASA,eAAe,QAAQ,wBAAwB;AACxD,SAASC,IAAI,EAAEC,WAAW,EAAEC,UAAU,QAAwB,OAAO;AAAC,SAE7DC,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAmCpB,MAAMC,QAAQ,GAAGC,IAAA,IAOI;EAAA,IAPH;IAChBC,QAAQ;IACRC,eAAe;IACfC,UAAU;IACVC,OAAO,EAAEC,WAAW;IACpBC,KAAK;IACLC,OAAO,GAAG;EACG,CAAC,GAAAP,IAAA;EACd,MAAM;IAAEQ;EAAU,CAAC,GAAGb,UAAU,CAACC,WAAW,CAAC;EAE7C,MAAMQ,OAAO,GAAGV,WAAW,CACxBe,KAAK,IAAK;IACTJ,WAAW,GAAGI,KAAK,CAAC;IACpBD,SAAS,CAAC,CAAC;EACb,CAAC,EACD,CAACH,WAAW,EAAEG,SAAS,CACzB,CAAC;EAED,OACEV,IAAA,CAAAY,SAAA;IAEEC,SAAS,EAAET,eAAgB;IAC3BU,QAAQ,EAAET,UAAW;IACrBG,KAAK,EAAEA,KAAM;IACbF,OAAO,EAAEA,OAAQ;IACjBS,SAAS,EACPN,OAAO,KAAK,aAAa,GACpB,GAAEf,eAAe,CAACsB,IAAK,cAAa,GACrCC,SACL;IAAAd,QAAA,EAEAA;EAAQ,CACE,CAAC;AAElB,CAAC;AAED,MAAMe,gBAAgB,GAAGvB,IAAI,CAACM,QAAQ,CAAC;AACvCiB,gBAAgB,CAACC,WAAW,GAAG,UAAU;AAEzC,SAASD,gBAAgB,IAAIjB,QAAQ"}
|