@okta/odyssey-react-mui 1.13.11 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/@types/properties.d.js +2 -0
- package/dist/@types/properties.d.js.map +1 -0
- package/dist/Accordion.js.map +1 -1
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Banner.js.map +1 -1
- package/dist/Box.js.map +1 -1
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/Button.js +3 -3
- package/dist/Button.js.map +1 -1
- package/dist/Callout.js.map +1 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/CircularProgress.js.map +1 -1
- package/dist/Dialog.js +8 -8
- package/dist/Dialog.js.map +1 -1
- package/dist/ErrorMessageList.js.map +1 -1
- package/dist/Field.js +1 -0
- package/dist/Field.js.map +1 -1
- package/dist/FieldComponentProps.js.map +1 -1
- package/dist/FieldError.js.map +1 -1
- package/dist/FieldHint.js.map +1 -1
- package/dist/FieldLabel.js.map +1 -1
- package/dist/Fieldset.js.map +1 -1
- package/dist/Form.js.map +1 -1
- package/dist/FormCheckedProps.js.map +1 -1
- package/dist/HintLink.js.map +1 -1
- package/dist/HtmlProps.js.map +1 -1
- package/dist/Link.js.map +1 -1
- package/dist/MenuButton.js.map +1 -1
- package/dist/MenuItem.js.map +1 -1
- package/dist/MuiPropsChild.js.map +1 -1
- package/dist/NativeSelect.js.map +1 -1
- package/dist/OdysseyProvider.js +0 -2
- package/dist/OdysseyProvider.js.map +1 -1
- package/dist/OdysseyThemeProvider.js +1 -28
- package/dist/OdysseyThemeProvider.js.map +1 -1
- package/dist/OdysseyTranslationProvider.js.map +1 -1
- package/dist/PasswordField.js.map +1 -1
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js.map +1 -1
- package/dist/ScreenReaderText.js.map +1 -1
- package/dist/SearchField.js +6 -2
- package/dist/SearchField.js.map +1 -1
- package/dist/Select.js +144 -44
- package/dist/Select.js.map +1 -1
- package/dist/Status.js +6 -1
- package/dist/Status.js.map +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/Tabs.js.map +1 -1
- package/dist/Tag.js.map +1 -1
- package/dist/TagList.js.map +1 -1
- package/dist/TextField.js.map +1 -1
- package/dist/Tile.js +53 -39
- package/dist/Tile.js.map +1 -1
- package/dist/Toast.js.map +1 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/Typography.js +11 -10
- package/dist/Typography.js.map +1 -1
- package/dist/createShadowRootElement.js.map +1 -1
- package/dist/getTypedObjectKeys.js.map +1 -1
- package/dist/icons.generated/AddCircle.js.map +1 -1
- package/dist/icons.generated/Apps.js.map +1 -1
- package/dist/icons.generated/ArrowBottom.js.map +1 -1
- package/dist/icons.generated/ArrowDown.js.map +1 -1
- package/dist/icons.generated/ArrowLeft.js.map +1 -1
- package/dist/icons.generated/ArrowRight.js.map +1 -1
- package/dist/icons.generated/ArrowTop.js.map +1 -1
- package/dist/icons.generated/ArrowUp.js.map +1 -1
- package/dist/icons.generated/Calendar.js.map +1 -1
- package/dist/icons.generated/Call.js.map +1 -1
- package/dist/icons.generated/Chat.js.map +1 -1
- package/dist/icons.generated/Check.js.map +1 -1
- package/dist/icons.generated/ChevronDown.js.map +1 -1
- package/dist/icons.generated/ChevronLeft.js.map +1 -1
- package/dist/icons.generated/ChevronUp.js.map +1 -1
- package/dist/icons.generated/Clock.js.map +1 -1
- package/dist/icons.generated/Close.js.map +1 -1
- package/dist/icons.generated/Copy.js.map +1 -1
- package/dist/icons.generated/Delete.js.map +1 -1
- package/dist/icons.generated/Deny.js.map +1 -1
- package/dist/icons.generated/Devices.js.map +1 -1
- package/dist/icons.generated/Directory.js.map +1 -1
- package/dist/icons.generated/Download.js.map +1 -1
- package/dist/icons.generated/Edit.js.map +1 -1
- package/dist/icons.generated/ExpandLeft.js.map +1 -1
- package/dist/icons.generated/ExpandRight.js.map +1 -1
- package/dist/icons.generated/Filter.js.map +1 -1
- package/dist/icons.generated/Folder.js.map +1 -1
- package/dist/icons.generated/Globe.js.map +1 -1
- package/dist/icons.generated/Grid.js.map +1 -1
- package/dist/icons.generated/Group.js.map +1 -1
- package/dist/icons.generated/Hide.js.map +1 -1
- package/dist/icons.generated/Home.js.map +1 -1
- package/dist/icons.generated/Link.js.map +1 -1
- package/dist/icons.generated/List.js.map +1 -1
- package/dist/icons.generated/Lock.js.map +1 -1
- package/dist/icons.generated/More.js.map +1 -1
- package/dist/icons.generated/Pause.js.map +1 -1
- package/dist/icons.generated/Refresh.js.map +1 -1
- package/dist/icons.generated/Reset.js.map +1 -1
- package/dist/icons.generated/Resume.js.map +1 -1
- package/dist/icons.generated/Search.js.map +1 -1
- package/dist/icons.generated/Server.js.map +1 -1
- package/dist/icons.generated/Settings.js.map +1 -1
- package/dist/icons.generated/Show.js.map +1 -1
- package/dist/icons.generated/Subtract.js.map +1 -1
- package/dist/icons.generated/Sync.js.map +1 -1
- package/dist/icons.generated/Unlock.js.map +1 -1
- package/dist/icons.generated/Upload.js.map +1 -1
- package/dist/icons.generated/User.js.map +1 -1
- package/dist/icons.generated/Video.js.map +1 -1
- package/dist/icons.generated/Warning.js.map +1 -1
- package/dist/icons.generated/index.js +1 -1
- package/dist/icons.generated/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/labs/DataFilters.js.map +1 -1
- package/dist/labs/DataTable.js.map +1 -1
- package/dist/labs/DatePicker.js.map +1 -1
- package/dist/labs/Drawer.js +172 -0
- package/dist/labs/Drawer.js.map +1 -0
- package/dist/labs/GroupPicker.js.map +1 -1
- package/dist/labs/PaginatedTable.js.map +1 -1
- package/dist/labs/StaticTable.js.map +1 -1
- package/dist/labs/Switch.js.map +1 -1
- package/dist/labs/VirtualizedAutocomplete.js.map +1 -1
- package/dist/labs/datePickerTheme.js.map +1 -1
- package/dist/labs/index.js +1 -0
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/materialReactTableTypes.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_cs.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_da.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_de.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_el.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_es.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_hu.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_id.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_it.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pl.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ro.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_th.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_vi.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js +4 -2
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/scripts/properties-to-ts.d.ts +14 -0
- package/dist/scripts/properties-to-ts.d.ts.map +1 -0
- package/dist/src/Accordion.d.ts +2 -2
- package/dist/src/Accordion.d.ts.map +1 -1
- package/dist/src/Autocomplete.d.ts +2 -2
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Badge.d.ts +2 -2
- package/dist/src/Badge.d.ts.map +1 -1
- package/dist/src/Banner.d.ts +2 -2
- package/dist/src/Banner.d.ts.map +1 -1
- package/dist/src/Box.d.ts +2 -2
- package/dist/src/Box.d.ts.map +1 -1
- package/dist/src/Breadcrumbs.d.ts +3 -3
- package/dist/src/Breadcrumbs.d.ts.map +1 -1
- package/dist/src/Button.d.ts +3 -30
- package/dist/src/Button.d.ts.map +1 -1
- package/dist/src/Callout.d.ts +2 -2
- package/dist/src/Callout.d.ts.map +1 -1
- package/dist/src/Checkbox.d.ts +3 -23
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +2 -2
- package/dist/src/CheckboxGroup.d.ts.map +1 -1
- package/dist/src/CircularProgress.d.ts +2 -6
- package/dist/src/CircularProgress.d.ts.map +1 -1
- package/dist/src/CssBaseline.d.ts +1 -1
- package/dist/src/CssBaseline.d.ts.map +1 -1
- package/dist/src/Dialog.d.ts +5 -5
- package/dist/src/Dialog.d.ts.map +1 -1
- package/dist/src/ErrorMessageList.d.ts +1 -1
- package/dist/src/ErrorMessageList.d.ts.map +1 -1
- package/dist/src/Field.d.ts +2 -5
- package/dist/src/Field.d.ts.map +1 -1
- package/dist/src/FieldComponentProps.d.ts +7 -4
- package/dist/src/FieldComponentProps.d.ts.map +1 -1
- package/dist/src/FieldError.d.ts +2 -2
- package/dist/src/FieldError.d.ts.map +1 -1
- package/dist/src/FieldHint.d.ts +2 -2
- package/dist/src/FieldHint.d.ts.map +1 -1
- package/dist/src/FieldLabel.d.ts +2 -2
- package/dist/src/FieldLabel.d.ts.map +1 -1
- package/dist/src/Fieldset.d.ts +2 -2
- package/dist/src/Fieldset.d.ts.map +1 -1
- package/dist/src/Form.d.ts +2 -2
- package/dist/src/Form.d.ts.map +1 -1
- package/dist/src/HintLink.d.ts +1 -1
- package/dist/src/HintLink.d.ts.map +1 -1
- package/dist/src/HtmlProps.d.ts +59 -0
- package/dist/src/HtmlProps.d.ts.map +1 -1
- package/dist/src/Link.d.ts +2 -6
- package/dist/src/Link.d.ts.map +1 -1
- package/dist/src/MenuButton.d.ts +5 -23
- package/dist/src/MenuButton.d.ts.map +1 -1
- package/dist/src/MenuItem.d.ts +2 -2
- package/dist/src/MenuItem.d.ts.map +1 -1
- package/dist/src/NativeSelect.d.ts +2 -2
- package/dist/src/NativeSelect.d.ts.map +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/src/OdysseyProvider.d.ts +1 -1
- package/dist/src/OdysseyProvider.d.ts.map +1 -1
- package/dist/src/OdysseyThemeProvider.d.ts +1 -3
- package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts +2 -2
- package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
- package/dist/src/PasswordField.d.ts +2 -2
- package/dist/src/PasswordField.d.ts.map +1 -1
- package/dist/src/Radio.d.ts +2 -2
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/RadioGroup.d.ts +2 -2
- package/dist/src/RadioGroup.d.ts.map +1 -1
- package/dist/src/ScreenReaderText.d.ts +2 -2
- package/dist/src/ScreenReaderText.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +11 -2
- package/dist/src/SearchField.d.ts.map +1 -1
- package/dist/src/Select.d.ts +2 -2
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/Status.d.ts +4 -2
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/Tabs.d.ts +2 -6
- package/dist/src/Tabs.d.ts.map +1 -1
- package/dist/src/Tag.d.ts +2 -2
- package/dist/src/Tag.d.ts.map +1 -1
- package/dist/src/TagList.d.ts +2 -2
- package/dist/src/TagList.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +3 -3
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Tile.d.ts +32 -11
- package/dist/src/Tile.d.ts.map +1 -1
- package/dist/src/Toast.d.ts +2 -2
- package/dist/src/Toast.d.ts.map +1 -1
- package/dist/src/ToastStack.d.ts +1 -1
- package/dist/src/ToastStack.d.ts.map +1 -1
- package/dist/src/Tooltip.d.ts +2 -2
- package/dist/src/Tooltip.d.ts.map +1 -1
- package/dist/src/Typography.d.ts +13 -25
- package/dist/src/Typography.d.ts.map +1 -1
- package/dist/src/icons.generated/Add.d.ts +1 -1
- package/dist/src/icons.generated/Add.d.ts.map +1 -1
- package/dist/src/icons.generated/AddCircle.d.ts +1 -1
- package/dist/src/icons.generated/AddCircle.d.ts.map +1 -1
- package/dist/src/icons.generated/Apps.d.ts +1 -1
- package/dist/src/icons.generated/Apps.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowBottom.d.ts +1 -1
- package/dist/src/icons.generated/ArrowBottom.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowDown.d.ts +1 -1
- package/dist/src/icons.generated/ArrowDown.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowLowerRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLowerRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowTop.d.ts +1 -1
- package/dist/src/icons.generated/ArrowTop.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUnsorted.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUnsorted.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUp.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUp.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowUpperRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUpperRight.d.ts.map +1 -1
- package/dist/src/icons.generated/Bug.d.ts +1 -1
- package/dist/src/icons.generated/Bug.d.ts.map +1 -1
- package/dist/src/icons.generated/Calendar.d.ts +1 -1
- package/dist/src/icons.generated/Calendar.d.ts.map +1 -1
- package/dist/src/icons.generated/Call.d.ts +1 -1
- package/dist/src/icons.generated/Call.d.ts.map +1 -1
- package/dist/src/icons.generated/Chat.d.ts +1 -1
- package/dist/src/icons.generated/Chat.d.ts.map +1 -1
- package/dist/src/icons.generated/Check.d.ts +1 -1
- package/dist/src/icons.generated/Check.d.ts.map +1 -1
- package/dist/src/icons.generated/CheckCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/CheckCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronDown.d.ts +1 -1
- package/dist/src/icons.generated/ChevronDown.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronLeft.d.ts +1 -1
- package/dist/src/icons.generated/ChevronLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronRight.d.ts +1 -1
- package/dist/src/icons.generated/ChevronRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ChevronUp.d.ts +1 -1
- package/dist/src/icons.generated/ChevronUp.d.ts.map +1 -1
- package/dist/src/icons.generated/Clock.d.ts +1 -1
- package/dist/src/icons.generated/Clock.d.ts.map +1 -1
- package/dist/src/icons.generated/Close.d.ts +1 -1
- package/dist/src/icons.generated/Close.d.ts.map +1 -1
- package/dist/src/icons.generated/CloseCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/CloseCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/CollapseLeft.d.ts +1 -1
- package/dist/src/icons.generated/CollapseLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/CollapseRight.d.ts +1 -1
- package/dist/src/icons.generated/CollapseRight.d.ts.map +1 -1
- package/dist/src/icons.generated/Copy.d.ts +1 -1
- package/dist/src/icons.generated/Copy.d.ts.map +1 -1
- package/dist/src/icons.generated/DangerDiamond.d.ts +1 -1
- package/dist/src/icons.generated/DangerDiamond.d.ts.map +1 -1
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts +1 -1
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/Delete.d.ts +1 -1
- package/dist/src/icons.generated/Delete.d.ts.map +1 -1
- package/dist/src/icons.generated/Deny.d.ts +1 -1
- package/dist/src/icons.generated/Deny.d.ts.map +1 -1
- package/dist/src/icons.generated/Devices.d.ts +1 -1
- package/dist/src/icons.generated/Devices.d.ts.map +1 -1
- package/dist/src/icons.generated/Directory.d.ts +1 -1
- package/dist/src/icons.generated/Directory.d.ts.map +1 -1
- package/dist/src/icons.generated/Documentation.d.ts +1 -1
- package/dist/src/icons.generated/Documentation.d.ts.map +1 -1
- package/dist/src/icons.generated/Download.d.ts +1 -1
- package/dist/src/icons.generated/Download.d.ts.map +1 -1
- package/dist/src/icons.generated/DragIndicator.d.ts +1 -1
- package/dist/src/icons.generated/DragIndicator.d.ts.map +1 -1
- package/dist/src/icons.generated/Edit.d.ts +1 -1
- package/dist/src/icons.generated/Edit.d.ts.map +1 -1
- package/dist/src/icons.generated/ExpandLeft.d.ts +1 -1
- package/dist/src/icons.generated/ExpandLeft.d.ts.map +1 -1
- package/dist/src/icons.generated/ExpandRight.d.ts +1 -1
- package/dist/src/icons.generated/ExpandRight.d.ts.map +1 -1
- package/dist/src/icons.generated/ExternalLink.d.ts +1 -1
- package/dist/src/icons.generated/ExternalLink.d.ts.map +1 -1
- package/dist/src/icons.generated/Filter.d.ts +1 -1
- package/dist/src/icons.generated/Filter.d.ts.map +1 -1
- package/dist/src/icons.generated/Folder.d.ts +1 -1
- package/dist/src/icons.generated/Folder.d.ts.map +1 -1
- package/dist/src/icons.generated/Globe.d.ts +1 -1
- package/dist/src/icons.generated/Globe.d.ts.map +1 -1
- package/dist/src/icons.generated/Grid.d.ts +1 -1
- package/dist/src/icons.generated/Grid.d.ts.map +1 -1
- package/dist/src/icons.generated/Group.d.ts +1 -1
- package/dist/src/icons.generated/Group.d.ts.map +1 -1
- package/dist/src/icons.generated/Hide.d.ts +1 -1
- package/dist/src/icons.generated/Hide.d.ts.map +1 -1
- package/dist/src/icons.generated/Home.d.ts +1 -1
- package/dist/src/icons.generated/Home.d.ts.map +1 -1
- package/dist/src/icons.generated/InformationCircle.d.ts +1 -1
- package/dist/src/icons.generated/InformationCircle.d.ts.map +1 -1
- package/dist/src/icons.generated/InformationCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/InformationCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/Link.d.ts +1 -1
- package/dist/src/icons.generated/Link.d.ts.map +1 -1
- package/dist/src/icons.generated/List.d.ts +1 -1
- package/dist/src/icons.generated/List.d.ts.map +1 -1
- package/dist/src/icons.generated/Lock.d.ts +1 -1
- package/dist/src/icons.generated/Lock.d.ts.map +1 -1
- package/dist/src/icons.generated/More.d.ts +1 -1
- package/dist/src/icons.generated/More.d.ts.map +1 -1
- package/dist/src/icons.generated/Notification.d.ts +1 -1
- package/dist/src/icons.generated/Notification.d.ts.map +1 -1
- package/dist/src/icons.generated/Pause.d.ts +1 -1
- package/dist/src/icons.generated/Pause.d.ts.map +1 -1
- package/dist/src/icons.generated/QuestionCircle.d.ts +1 -1
- package/dist/src/icons.generated/QuestionCircle.d.ts.map +1 -1
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/Refresh.d.ts +1 -1
- package/dist/src/icons.generated/Refresh.d.ts.map +1 -1
- package/dist/src/icons.generated/Reset.d.ts +1 -1
- package/dist/src/icons.generated/Reset.d.ts.map +1 -1
- package/dist/src/icons.generated/Resume.d.ts +1 -1
- package/dist/src/icons.generated/Resume.d.ts.map +1 -1
- package/dist/src/icons.generated/Search.d.ts +1 -1
- package/dist/src/icons.generated/Search.d.ts.map +1 -1
- package/dist/src/icons.generated/Server.d.ts +1 -1
- package/dist/src/icons.generated/Server.d.ts.map +1 -1
- package/dist/src/icons.generated/Settings.d.ts +1 -1
- package/dist/src/icons.generated/Settings.d.ts.map +1 -1
- package/dist/src/icons.generated/Show.d.ts +1 -1
- package/dist/src/icons.generated/Show.d.ts.map +1 -1
- package/dist/src/icons.generated/Subtract.d.ts +1 -1
- package/dist/src/icons.generated/Subtract.d.ts.map +1 -1
- package/dist/src/icons.generated/Sync.d.ts +1 -1
- package/dist/src/icons.generated/Sync.d.ts.map +1 -1
- package/dist/src/icons.generated/Unlock.d.ts +1 -1
- package/dist/src/icons.generated/Unlock.d.ts.map +1 -1
- package/dist/src/icons.generated/Upload.d.ts +1 -1
- package/dist/src/icons.generated/Upload.d.ts.map +1 -1
- package/dist/src/icons.generated/User.d.ts +1 -1
- package/dist/src/icons.generated/User.d.ts.map +1 -1
- package/dist/src/icons.generated/Video.d.ts +1 -1
- package/dist/src/icons.generated/Video.d.ts.map +1 -1
- package/dist/src/icons.generated/Warning.d.ts +1 -1
- package/dist/src/icons.generated/Warning.d.ts.map +1 -1
- package/dist/src/icons.generated/WarningFilled.d.ts +1 -1
- package/dist/src/icons.generated/WarningFilled.d.ts.map +1 -1
- package/dist/src/icons.generated/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/labs/DataFilters.d.ts +1 -1
- package/dist/src/labs/DataFilters.d.ts.map +1 -1
- package/dist/src/labs/DataTable.d.ts +1 -1
- package/dist/src/labs/DataTable.d.ts.map +1 -1
- package/dist/src/labs/DataTablePagination.d.ts +1 -1
- package/dist/src/labs/DataTablePagination.d.ts.map +1 -1
- package/dist/src/labs/DatePicker.d.ts +1 -1
- package/dist/src/labs/DatePicker.d.ts.map +1 -1
- package/dist/src/labs/Drawer.d.ts +56 -0
- package/dist/src/labs/Drawer.d.ts.map +1 -0
- package/dist/src/labs/GroupPicker.d.ts +1 -1
- package/dist/src/labs/GroupPicker.d.ts.map +1 -1
- package/dist/src/labs/PaginatedTable.d.ts +1 -1
- package/dist/src/labs/PaginatedTable.d.ts.map +1 -1
- package/dist/src/labs/StaticTable.d.ts +1 -1
- package/dist/src/labs/StaticTable.d.ts.map +1 -1
- package/dist/src/labs/Switch.d.ts +2 -2
- package/dist/src/labs/Switch.d.ts.map +1 -1
- package/dist/src/labs/VirtualizedAutocomplete.d.ts +2 -2
- package/dist/src/labs/VirtualizedAutocomplete.d.ts.map +1 -1
- package/dist/src/labs/datePickerTheme.d.ts.map +1 -1
- package/dist/src/labs/index.d.ts +1 -0
- package/dist/src/labs/index.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts +3 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +60 -8
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/scripts/generateIconsIndex.ts +2 -2
- package/scripts/{properties-to-ts.js → properties-to-ts.ts} +55 -41
- package/src/@types/properties.d.ts +292 -0
- package/src/Accordion.tsx +1 -1
- package/src/Autocomplete.tsx +17 -9
- package/src/Badge.tsx +1 -1
- package/src/Banner.tsx +1 -1
- package/src/Box.tsx +2 -2
- package/src/Breadcrumbs.tsx +2 -2
- package/src/Button.tsx +26 -38
- package/src/Callout.tsx +1 -1
- package/src/Checkbox.tsx +9 -29
- package/src/CheckboxGroup.tsx +20 -5
- package/src/CircularProgress.tsx +1 -5
- package/src/Dialog.tsx +18 -17
- package/src/ErrorMessageList.tsx +1 -1
- package/src/Field.tsx +6 -9
- package/src/FieldComponentProps.ts +8 -4
- package/src/FieldError.tsx +2 -2
- package/src/FieldHint.tsx +1 -1
- package/src/FieldLabel.tsx +2 -2
- package/src/Fieldset.tsx +2 -2
- package/src/Form.tsx +1 -1
- package/src/FormCheckedProps.ts +3 -3
- package/src/HintLink.tsx +1 -1
- package/src/HtmlProps.ts +60 -0
- package/src/Link.tsx +2 -6
- package/src/MenuButton.tsx +21 -36
- package/src/MenuItem.tsx +2 -2
- package/src/MuiPropsChild.tsx +2 -2
- package/src/NativeSelect.tsx +24 -13
- package/src/OdysseyCacheProvider.test.tsx +3 -3
- package/src/OdysseyProvider.tsx +1 -3
- package/src/OdysseyThemeProvider.tsx +8 -35
- package/src/OdysseyTranslationProvider.test.tsx +6 -6
- package/src/OdysseyTranslationProvider.tsx +7 -7
- package/src/PasswordField.tsx +23 -10
- package/src/Radio.tsx +4 -4
- package/src/RadioGroup.tsx +22 -7
- package/src/ScreenReaderText.tsx +1 -1
- package/src/SearchField.tsx +25 -12
- package/src/Select.tsx +219 -77
- package/src/Status.tsx +8 -2
- package/src/Tabs.tsx +7 -11
- package/src/Tag.tsx +4 -4
- package/src/TagList.tsx +2 -2
- package/src/TextField.tsx +22 -9
- package/src/Tile.tsx +74 -43
- package/src/Toast.tsx +1 -1
- package/src/Tooltip.tsx +1 -1
- package/src/Typography.tsx +20 -28
- package/src/createShadowRootElement.ts +1 -1
- package/src/getTypedObjectKeys.ts +1 -1
- package/src/icons.generated/AddCircle.tsx +1 -1
- package/src/icons.generated/Apps.tsx +1 -1
- package/src/icons.generated/ArrowBottom.tsx +1 -1
- package/src/icons.generated/ArrowDown.tsx +1 -1
- package/src/icons.generated/ArrowLeft.tsx +1 -1
- package/src/icons.generated/ArrowRight.tsx +1 -1
- package/src/icons.generated/ArrowTop.tsx +1 -1
- package/src/icons.generated/ArrowUp.tsx +1 -1
- package/src/icons.generated/Calendar.tsx +1 -1
- package/src/icons.generated/Call.tsx +1 -1
- package/src/icons.generated/Chat.tsx +1 -1
- package/src/icons.generated/Check.tsx +1 -1
- package/src/icons.generated/ChevronDown.tsx +1 -1
- package/src/icons.generated/ChevronLeft.tsx +1 -1
- package/src/icons.generated/ChevronUp.tsx +1 -1
- package/src/icons.generated/Clock.tsx +1 -1
- package/src/icons.generated/Close.tsx +1 -1
- package/src/icons.generated/Copy.tsx +1 -1
- package/src/icons.generated/Delete.tsx +1 -1
- package/src/icons.generated/Deny.tsx +1 -1
- package/src/icons.generated/Devices.tsx +1 -1
- package/src/icons.generated/Directory.tsx +1 -1
- package/src/icons.generated/Download.tsx +1 -1
- package/src/icons.generated/Edit.tsx +1 -1
- package/src/icons.generated/ExpandLeft.tsx +1 -1
- package/src/icons.generated/ExpandRight.tsx +1 -1
- package/src/icons.generated/Filter.tsx +1 -1
- package/src/icons.generated/Folder.tsx +1 -1
- package/src/icons.generated/Globe.tsx +1 -1
- package/src/icons.generated/Grid.tsx +1 -1
- package/src/icons.generated/Group.tsx +1 -1
- package/src/icons.generated/Hide.tsx +1 -1
- package/src/icons.generated/Home.tsx +1 -1
- package/src/icons.generated/Link.tsx +1 -1
- package/src/icons.generated/List.tsx +1 -1
- package/src/icons.generated/Lock.tsx +1 -1
- package/src/icons.generated/More.tsx +1 -1
- package/src/icons.generated/Pause.tsx +1 -1
- package/src/icons.generated/Refresh.tsx +1 -1
- package/src/icons.generated/Reset.tsx +1 -1
- package/src/icons.generated/Resume.tsx +1 -1
- package/src/icons.generated/Search.tsx +1 -1
- package/src/icons.generated/Server.tsx +1 -1
- package/src/icons.generated/Settings.tsx +1 -1
- package/src/icons.generated/Show.tsx +1 -1
- package/src/icons.generated/Subtract.tsx +1 -1
- package/src/icons.generated/Sync.tsx +1 -1
- package/src/icons.generated/Unlock.tsx +1 -1
- package/src/icons.generated/Upload.tsx +1 -1
- package/src/icons.generated/User.tsx +1 -1
- package/src/icons.generated/Video.tsx +1 -1
- package/src/icons.generated/Warning.tsx +1 -1
- package/src/icons.generated/index.ts +1 -1
- package/src/index.ts +0 -1
- package/src/labs/DataFilters.tsx +36 -30
- package/src/labs/DataTable.tsx +20 -20
- package/src/labs/DatePicker.tsx +3 -1
- package/src/labs/Drawer.tsx +254 -0
- package/src/labs/GroupPicker.tsx +34 -15
- package/src/labs/PaginatedTable.tsx +12 -10
- package/src/labs/StaticTable.tsx +3 -3
- package/src/labs/Switch.tsx +5 -5
- package/src/labs/VirtualizedAutocomplete.tsx +19 -16
- package/src/labs/datePickerTheme.tsx +4 -2
- package/src/labs/index.ts +2 -0
- package/src/labs/materialReactTableTypes.tsx +1 -1
- package/src/properties/translations/odyssey-react-mui_cs.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_da.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_de.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_el.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_es.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_fi.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_fr.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_hu.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_id.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_it.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ja.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ko.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ms.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_nb.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_pl.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ro.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_ru.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_sv.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_th.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_tr.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_uk.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_vi.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +3 -1
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +3 -1
- package/src/properties/ts/odyssey-react-mui_cs.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_da.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_de.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_el.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_es.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_fi.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_fr.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_hu.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_id.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_it.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ja.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ko.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ms.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_nb.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pl.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ro.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ru.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_sv.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_th.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_tr.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_uk.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_vi.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -1
- package/src/theme/components.tsx +83 -16
- package/tsconfig.json +0 -3
package/src/Button.tsx
CHANGED
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
import { Button as MuiButton } from "@mui/material";
|
|
14
14
|
import type { ButtonProps as MuiButtonProps } from "@mui/material";
|
|
15
15
|
import {
|
|
16
|
-
ComponentProps,
|
|
17
|
-
HTMLAttributes,
|
|
18
16
|
memo,
|
|
19
17
|
ReactElement,
|
|
20
18
|
useCallback,
|
|
@@ -23,11 +21,15 @@ import {
|
|
|
23
21
|
useRef,
|
|
24
22
|
} from "react";
|
|
25
23
|
|
|
26
|
-
import {
|
|
27
|
-
import { Tooltip } from "./Tooltip";
|
|
24
|
+
import { useButton } from "./ButtonContext";
|
|
28
25
|
import type { HtmlProps } from "./HtmlProps";
|
|
29
26
|
import { FocusHandle } from "./inputUtils";
|
|
30
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
MuiPropsContext,
|
|
29
|
+
MuiPropsContextType,
|
|
30
|
+
useMuiProps,
|
|
31
|
+
} from "./MuiPropsContext";
|
|
32
|
+
import { Tooltip } from "./Tooltip";
|
|
31
33
|
|
|
32
34
|
export const buttonSizeValues = ["small", "medium", "large"] as const;
|
|
33
35
|
export const buttonTypeValues = ["button", "submit", "reset"] as const;
|
|
@@ -39,32 +41,6 @@ export const buttonVariantValues = [
|
|
|
39
41
|
] as const;
|
|
40
42
|
|
|
41
43
|
export type ButtonProps = {
|
|
42
|
-
/**
|
|
43
|
-
* The global `aria-controls` property identifies the element (or elements) whose contents or presence are controlled by the element on which this attribute is set.
|
|
44
|
-
*
|
|
45
|
-
* value: A space-separated list of one or more ID values referencing the elements being controlled by the current element
|
|
46
|
-
*/
|
|
47
|
-
ariaControls?: ComponentProps<"button">["aria-controls"];
|
|
48
|
-
/**
|
|
49
|
-
* The `aria-expanded` attribute is set on an element to indicate if a control is expanded or collapsed, and whether or not the controlled elements are displayed or hidden.
|
|
50
|
-
*/
|
|
51
|
-
ariaExpanded?: ComponentProps<"button">["aria-expanded"];
|
|
52
|
-
/**
|
|
53
|
-
* The `aria-haspopup` attribute indicates the availability and type of interactive popup element that can be triggered by the element on which the attribute is set.
|
|
54
|
-
*/
|
|
55
|
-
ariaHasPopup?: ComponentProps<"button">["aria-haspopup"];
|
|
56
|
-
/**
|
|
57
|
-
* The ARIA label for the Button
|
|
58
|
-
*/
|
|
59
|
-
ariaLabel?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The ID of the element that labels the Button
|
|
62
|
-
*/
|
|
63
|
-
ariaLabelledBy?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The ID of the element that describes the Button
|
|
66
|
-
*/
|
|
67
|
-
ariaDescribedBy?: string;
|
|
68
44
|
/**
|
|
69
45
|
* The ref forwarded to the Button
|
|
70
46
|
*/
|
|
@@ -101,7 +77,6 @@ export type ButtonProps = {
|
|
|
101
77
|
* The icon element to display at the start of the Button
|
|
102
78
|
*/
|
|
103
79
|
startIcon?: ReactElement;
|
|
104
|
-
tabIndex?: HTMLAttributes<HTMLElement>["tabIndex"];
|
|
105
80
|
/**
|
|
106
81
|
* The tooltip text for the Button if it's icon-only
|
|
107
82
|
*/
|
|
@@ -131,7 +106,18 @@ export type ButtonProps = {
|
|
|
131
106
|
startIcon?: ReactElement;
|
|
132
107
|
}
|
|
133
108
|
) &
|
|
134
|
-
|
|
109
|
+
Pick<
|
|
110
|
+
HtmlProps,
|
|
111
|
+
| "ariaControls"
|
|
112
|
+
| "ariaDescribedBy"
|
|
113
|
+
| "ariaExpanded"
|
|
114
|
+
| "ariaHasPopup"
|
|
115
|
+
| "ariaLabel"
|
|
116
|
+
| "ariaLabelledBy"
|
|
117
|
+
| "tabIndex"
|
|
118
|
+
| "testId"
|
|
119
|
+
| "translate"
|
|
120
|
+
>;
|
|
135
121
|
|
|
136
122
|
const Button = ({
|
|
137
123
|
ariaControls,
|
|
@@ -166,7 +152,7 @@ const Button = ({
|
|
|
166
152
|
const isFullWidth = useMemo(
|
|
167
153
|
() =>
|
|
168
154
|
buttonContext.isFullWidth ? buttonContext.isFullWidth : isFullWidthProp,
|
|
169
|
-
[buttonContext, isFullWidthProp]
|
|
155
|
+
[buttonContext, isFullWidthProp],
|
|
170
156
|
);
|
|
171
157
|
|
|
172
158
|
useImperativeHandle(
|
|
@@ -178,11 +164,12 @@ const Button = ({
|
|
|
178
164
|
},
|
|
179
165
|
};
|
|
180
166
|
},
|
|
181
|
-
[]
|
|
167
|
+
[],
|
|
182
168
|
);
|
|
183
169
|
|
|
184
170
|
const renderButton = useCallback(
|
|
185
|
-
(muiProps) => {
|
|
171
|
+
(muiProps: MuiPropsContextType) => {
|
|
172
|
+
//@ts-expect-error ref is not an optional prop on the props context type
|
|
186
173
|
muiProps?.ref?.(localButtonRef.current);
|
|
187
174
|
|
|
188
175
|
return (
|
|
@@ -197,7 +184,7 @@ const Button = ({
|
|
|
197
184
|
data-se={testId}
|
|
198
185
|
disabled={isDisabled}
|
|
199
186
|
endIcon={endIcon}
|
|
200
|
-
fullWidth={isFullWidth}
|
|
187
|
+
fullWidth={buttonContext.isFullWidth ?? isFullWidth}
|
|
201
188
|
id={id}
|
|
202
189
|
onClick={onClick}
|
|
203
190
|
ref={localButtonRef}
|
|
@@ -223,6 +210,7 @@ const Button = ({
|
|
|
223
210
|
id,
|
|
224
211
|
isDisabled,
|
|
225
212
|
isFullWidth,
|
|
213
|
+
buttonContext.isFullWidth,
|
|
226
214
|
label,
|
|
227
215
|
onClick,
|
|
228
216
|
size,
|
|
@@ -232,7 +220,7 @@ const Button = ({
|
|
|
232
220
|
translate,
|
|
233
221
|
type,
|
|
234
222
|
variant,
|
|
235
|
-
]
|
|
223
|
+
],
|
|
236
224
|
);
|
|
237
225
|
|
|
238
226
|
if (tooltipText) {
|
package/src/Callout.tsx
CHANGED
package/src/Checkbox.tsx
CHANGED
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
FormHelperText,
|
|
21
21
|
} from "@mui/material";
|
|
22
22
|
|
|
23
|
-
import { FieldComponentProps } from "./FieldComponentProps";
|
|
24
23
|
import { CheckedFieldProps } from "./FormCheckedProps";
|
|
25
24
|
import type { HtmlProps } from "./HtmlProps";
|
|
26
25
|
import {
|
|
@@ -28,31 +27,16 @@ import {
|
|
|
28
27
|
FocusHandle,
|
|
29
28
|
getControlState,
|
|
30
29
|
} from "./inputUtils";
|
|
30
|
+
import { FieldComponentProps } from "./FieldComponentProps";
|
|
31
31
|
import { Typography } from "./Typography";
|
|
32
32
|
|
|
33
33
|
export const checkboxValidityValues = ["valid", "invalid", "inherit"] as const;
|
|
34
34
|
|
|
35
35
|
export type CheckboxProps = {
|
|
36
|
-
/**
|
|
37
|
-
* The ARIA label for the Checkbox
|
|
38
|
-
*/
|
|
39
|
-
ariaLabel?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The ID of the element that labels the Checkbox
|
|
42
|
-
*/
|
|
43
|
-
ariaLabelledBy?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The id of the `input` element.
|
|
46
|
-
*/
|
|
47
|
-
id?: string;
|
|
48
36
|
/**
|
|
49
37
|
* The ref forwarded to the Checkbox
|
|
50
38
|
*/
|
|
51
39
|
inputRef?: React.RefObject<FocusHandle>;
|
|
52
|
-
/**
|
|
53
|
-
* Determines whether the Checkbox is disabled
|
|
54
|
-
*/
|
|
55
|
-
isDisabled?: boolean;
|
|
56
40
|
/**
|
|
57
41
|
* Determines whether the Checkbox is in an indeterminate state
|
|
58
42
|
*/
|
|
@@ -65,10 +49,6 @@ export type CheckboxProps = {
|
|
|
65
49
|
* The label text for the Checkbox
|
|
66
50
|
*/
|
|
67
51
|
label?: string;
|
|
68
|
-
/**
|
|
69
|
-
* The helper text content
|
|
70
|
-
*/
|
|
71
|
-
hint?: string;
|
|
72
52
|
/**
|
|
73
53
|
* The checkbox validity, if different from its enclosing group. Defaults to "inherit".
|
|
74
54
|
*/
|
|
@@ -81,9 +61,9 @@ export type CheckboxProps = {
|
|
|
81
61
|
* Callback fired when the blur event happens. Provides event value.
|
|
82
62
|
*/
|
|
83
63
|
onBlur?: MuiFormControlLabelProps["onBlur"];
|
|
84
|
-
} & Pick<FieldComponentProps, "id" | "isDisabled" | "name"> &
|
|
64
|
+
} & Pick<FieldComponentProps, "hint" | "id" | "isDisabled" | "name"> &
|
|
85
65
|
CheckedFieldProps<MuiCheckboxProps> &
|
|
86
|
-
HtmlProps
|
|
66
|
+
Pick<HtmlProps, "ariaLabel" | "ariaLabelledBy" | "testId" | "translate">;
|
|
87
67
|
|
|
88
68
|
const Checkbox = ({
|
|
89
69
|
ariaLabel,
|
|
@@ -110,7 +90,7 @@ const Checkbox = ({
|
|
|
110
90
|
getControlState({
|
|
111
91
|
controlledValue: isChecked,
|
|
112
92
|
uncontrolledValue: isDefaultChecked,
|
|
113
|
-
})
|
|
93
|
+
}),
|
|
114
94
|
);
|
|
115
95
|
const inputValues = useMemo(() => {
|
|
116
96
|
if (controlledStateRef.current === ComponentControlledState.CONTROLLED) {
|
|
@@ -129,7 +109,7 @@ const Checkbox = ({
|
|
|
129
109
|
},
|
|
130
110
|
};
|
|
131
111
|
},
|
|
132
|
-
[]
|
|
112
|
+
[],
|
|
133
113
|
);
|
|
134
114
|
|
|
135
115
|
const label = useMemo(() => {
|
|
@@ -153,14 +133,14 @@ const Checkbox = ({
|
|
|
153
133
|
(event, checked) => {
|
|
154
134
|
onChangeProp?.(event, checked);
|
|
155
135
|
},
|
|
156
|
-
[onChangeProp]
|
|
136
|
+
[onChangeProp],
|
|
157
137
|
);
|
|
158
138
|
|
|
159
139
|
const onBlur = useCallback<NonNullable<MuiFormControlLabelProps["onBlur"]>>(
|
|
160
140
|
(event) => {
|
|
161
141
|
onBlurProp?.(event);
|
|
162
142
|
},
|
|
163
|
-
[onBlurProp]
|
|
143
|
+
[onBlurProp],
|
|
164
144
|
);
|
|
165
145
|
|
|
166
146
|
return (
|
|
@@ -172,8 +152,8 @@ const Checkbox = ({
|
|
|
172
152
|
validity === "invalid"
|
|
173
153
|
? "Mui-error"
|
|
174
154
|
: validity === "valid"
|
|
175
|
-
|
|
176
|
-
|
|
155
|
+
? "Mui-valid"
|
|
156
|
+
: ""
|
|
177
157
|
}
|
|
178
158
|
control={
|
|
179
159
|
<MuiCheckbox
|
package/src/CheckboxGroup.tsx
CHANGED
|
@@ -15,7 +15,10 @@ import { memo, ReactElement, useCallback } from "react";
|
|
|
15
15
|
|
|
16
16
|
import { Checkbox } from "./Checkbox";
|
|
17
17
|
import { Field } from "./Field";
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
FieldComponentProps,
|
|
20
|
+
FieldComponentRenderProps,
|
|
21
|
+
} from "./FieldComponentProps";
|
|
19
22
|
import type { HtmlProps } from "./HtmlProps";
|
|
20
23
|
|
|
21
24
|
export type CheckboxGroupProps = {
|
|
@@ -35,7 +38,6 @@ export type CheckboxGroupProps = {
|
|
|
35
38
|
label: string;
|
|
36
39
|
} & Pick<
|
|
37
40
|
FieldComponentProps,
|
|
38
|
-
| "ariaDescribedBy"
|
|
39
41
|
| "errorMessage"
|
|
40
42
|
| "errorMessageList"
|
|
41
43
|
| "hint"
|
|
@@ -43,7 +45,15 @@ export type CheckboxGroupProps = {
|
|
|
43
45
|
| "id"
|
|
44
46
|
| "isDisabled"
|
|
45
47
|
> &
|
|
46
|
-
HtmlProps
|
|
48
|
+
Pick<HtmlProps, "ariaDescribedBy" | "testId" | "translate">;
|
|
49
|
+
|
|
50
|
+
type CheckboxGroupRenderProps = Pick<
|
|
51
|
+
FieldComponentRenderProps,
|
|
52
|
+
"id" | "labelElementId"
|
|
53
|
+
> &
|
|
54
|
+
Partial<
|
|
55
|
+
Pick<FieldComponentRenderProps, "ariaDescribedBy" | "errorMessageElementId">
|
|
56
|
+
>;
|
|
47
57
|
|
|
48
58
|
const CheckboxGroup = ({
|
|
49
59
|
ariaDescribedBy,
|
|
@@ -60,7 +70,12 @@ const CheckboxGroup = ({
|
|
|
60
70
|
translate,
|
|
61
71
|
}: CheckboxGroupProps) => {
|
|
62
72
|
const renderFieldComponent = useCallback(
|
|
63
|
-
({
|
|
73
|
+
({
|
|
74
|
+
ariaDescribedBy,
|
|
75
|
+
errorMessageElementId,
|
|
76
|
+
id,
|
|
77
|
+
labelElementId,
|
|
78
|
+
}: CheckboxGroupRenderProps) => (
|
|
64
79
|
<MuiFormGroup
|
|
65
80
|
aria-describedby={ariaDescribedBy}
|
|
66
81
|
aria-errormessage={errorMessageElementId}
|
|
@@ -72,7 +87,7 @@ const CheckboxGroup = ({
|
|
|
72
87
|
{children}
|
|
73
88
|
</MuiFormGroup>
|
|
74
89
|
),
|
|
75
|
-
[children, testId, translate]
|
|
90
|
+
[children, testId, translate],
|
|
76
91
|
);
|
|
77
92
|
|
|
78
93
|
return (
|
package/src/CircularProgress.tsx
CHANGED
|
@@ -16,16 +16,12 @@ import { CircularProgress as MuiCircularProgress } from "@mui/material";
|
|
|
16
16
|
import type { HtmlProps } from "./HtmlProps";
|
|
17
17
|
|
|
18
18
|
export type CircularProgressProps = {
|
|
19
|
-
/**
|
|
20
|
-
* The ARIA label for the progress spinner
|
|
21
|
-
*/
|
|
22
|
-
ariaLabel?: string;
|
|
23
19
|
/**
|
|
24
20
|
* The percentage filled the spinner should be, as an integer.
|
|
25
21
|
* If undefined, the spinner will spin perpetually.
|
|
26
22
|
*/
|
|
27
23
|
value?: number;
|
|
28
|
-
} & HtmlProps
|
|
24
|
+
} & Pick<HtmlProps, "ariaLabel" | "testId">;
|
|
29
25
|
|
|
30
26
|
const CircularProgress = ({
|
|
31
27
|
ariaLabel,
|
package/src/Dialog.tsx
CHANGED
|
@@ -39,15 +39,15 @@ export type DialogProps = {
|
|
|
39
39
|
/**
|
|
40
40
|
* An optional Button object to be situated in the Dialog footer. Should almost always be of variant `primary`.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
primaryCallToActionComponent?: ReactElement<typeof Button>;
|
|
43
43
|
/**
|
|
44
44
|
* An optional Button object to be situated in the Dialog footer, alongside the `callToActionPrimaryComponent`.
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
secondaryCallToActionComponent?: ReactElement<typeof Button>;
|
|
47
47
|
/**
|
|
48
48
|
* An optional Button object to be situated in the Dialog footer, alongside the other two `callToAction` components.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
tertiaryCallToActionComponent?: ReactElement<typeof Button>;
|
|
51
51
|
/**
|
|
52
52
|
* The content of the Dialog. May be a `string` or any other `ReactNode` or array of `ReactNode`s.
|
|
53
53
|
*/
|
|
@@ -64,12 +64,12 @@ export type DialogProps = {
|
|
|
64
64
|
* The title of the Dialog
|
|
65
65
|
*/
|
|
66
66
|
title: string;
|
|
67
|
-
} & HtmlProps
|
|
67
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
68
68
|
|
|
69
69
|
const Dialog = ({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
primaryCallToActionComponent,
|
|
71
|
+
secondaryCallToActionComponent,
|
|
72
|
+
tertiaryCallToActionComponent,
|
|
73
73
|
children,
|
|
74
74
|
isOpen,
|
|
75
75
|
onClose,
|
|
@@ -87,8 +87,9 @@ const Dialog = ({
|
|
|
87
87
|
const handleContentScroll = () => {
|
|
88
88
|
const dialogContentElement = dialogContentRef.current;
|
|
89
89
|
if (dialogContentElement) {
|
|
90
|
+
cancelAnimationFrame(frameId);
|
|
90
91
|
setIsContentScrollable(
|
|
91
|
-
dialogContentElement.scrollHeight > dialogContentElement.clientHeight
|
|
92
|
+
dialogContentElement.scrollHeight > dialogContentElement.clientHeight,
|
|
92
93
|
);
|
|
93
94
|
}
|
|
94
95
|
frameId = requestAnimationFrame(handleContentScroll);
|
|
@@ -116,7 +117,6 @@ const Dialog = ({
|
|
|
116
117
|
{title}
|
|
117
118
|
<Button
|
|
118
119
|
ariaLabel={t("close.text")}
|
|
119
|
-
label=""
|
|
120
120
|
onClick={onClose}
|
|
121
121
|
size="small"
|
|
122
122
|
startIcon={<CloseIcon />}
|
|
@@ -124,22 +124,23 @@ const Dialog = ({
|
|
|
124
124
|
/>
|
|
125
125
|
</DialogTitle>
|
|
126
126
|
<DialogContent
|
|
127
|
-
dividers={isContentScrollable}
|
|
128
|
-
ref={dialogContentRef}
|
|
129
127
|
{...(isContentScrollable && {
|
|
128
|
+
//Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard
|
|
130
129
|
tabIndex: 0,
|
|
131
130
|
})}
|
|
131
|
+
dividers={isContentScrollable}
|
|
132
|
+
ref={dialogContentRef}
|
|
132
133
|
>
|
|
133
134
|
{content}
|
|
134
135
|
</DialogContent>
|
|
135
136
|
|
|
136
|
-
{(
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
{(primaryCallToActionComponent ||
|
|
138
|
+
secondaryCallToActionComponent ||
|
|
139
|
+
tertiaryCallToActionComponent) && (
|
|
139
140
|
<DialogActions>
|
|
140
|
-
{
|
|
141
|
-
{
|
|
142
|
-
{
|
|
141
|
+
{tertiaryCallToActionComponent}
|
|
142
|
+
{secondaryCallToActionComponent}
|
|
143
|
+
{primaryCallToActionComponent}
|
|
143
144
|
</DialogActions>
|
|
144
145
|
)}
|
|
145
146
|
</MuiDialog>
|
package/src/ErrorMessageList.tsx
CHANGED
package/src/Field.tsx
CHANGED
|
@@ -21,6 +21,7 @@ import { FieldComponentProps } from "./FieldComponentProps";
|
|
|
21
21
|
import { FieldError } from "./FieldError";
|
|
22
22
|
import { FieldHint } from "./FieldHint";
|
|
23
23
|
import { FieldLabel } from "./FieldLabel";
|
|
24
|
+
import { HtmlProps } from "./HtmlProps";
|
|
24
25
|
import { Typography } from "./Typography";
|
|
25
26
|
import { useFieldset } from "./FieldsetContext";
|
|
26
27
|
import { useTranslation } from "react-i18next";
|
|
@@ -29,10 +30,6 @@ import { useUniqueId } from "./useUniqueId";
|
|
|
29
30
|
export const fieldTypeValues = ["single", "group"] as const;
|
|
30
31
|
|
|
31
32
|
export type FieldProps = {
|
|
32
|
-
/**
|
|
33
|
-
* If `error` is not undefined, the `input` will indicate an error.
|
|
34
|
-
*/
|
|
35
|
-
errorMessage?: string;
|
|
36
33
|
/**
|
|
37
34
|
* If `error` is not undefined, the `input` will indicate an error.
|
|
38
35
|
*/
|
|
@@ -97,7 +94,6 @@ const Field = ({
|
|
|
97
94
|
}: FieldProps &
|
|
98
95
|
Pick<
|
|
99
96
|
FieldComponentProps,
|
|
100
|
-
| "ariaDescribedBy"
|
|
101
97
|
| "errorMessage"
|
|
102
98
|
| "errorMessageList"
|
|
103
99
|
| "hint"
|
|
@@ -106,7 +102,8 @@ const Field = ({
|
|
|
106
102
|
| "isDisabled"
|
|
107
103
|
| "isFullWidth"
|
|
108
104
|
| "isOptional"
|
|
109
|
-
>
|
|
105
|
+
> &
|
|
106
|
+
Pick<HtmlProps, "ariaDescribedBy">) => {
|
|
110
107
|
const { t } = useTranslation();
|
|
111
108
|
|
|
112
109
|
const id = useUniqueId(idOverride);
|
|
@@ -119,14 +116,14 @@ const Field = ({
|
|
|
119
116
|
() =>
|
|
120
117
|
[hintId, errorMessageElementId, ariaDescribedBy].join(" ").trim() ||
|
|
121
118
|
undefined,
|
|
122
|
-
[ariaDescribedBy, errorMessageElementId, hintId]
|
|
119
|
+
[ariaDescribedBy, errorMessageElementId, hintId],
|
|
123
120
|
);
|
|
124
121
|
|
|
125
122
|
const { isDisabled: isFieldsetDisabled } = useFieldset();
|
|
126
123
|
|
|
127
124
|
const isDisabled = useMemo(
|
|
128
125
|
() => isDisabledProp || isFieldsetDisabled,
|
|
129
|
-
[isDisabledProp, isFieldsetDisabled]
|
|
126
|
+
[isDisabledProp, isFieldsetDisabled],
|
|
130
127
|
);
|
|
131
128
|
|
|
132
129
|
return (
|
|
@@ -141,7 +138,7 @@ const Field = ({
|
|
|
141
138
|
fullWidth={isFullWidth}
|
|
142
139
|
>
|
|
143
140
|
{fieldType === "group" ? (
|
|
144
|
-
<MuiFormLabel component="legend">
|
|
141
|
+
<MuiFormLabel component="legend" id={labelElementId}>
|
|
145
142
|
{label}{" "}
|
|
146
143
|
{isOptional && label && (
|
|
147
144
|
<Typography component="span" color="textSecondary">
|
|
@@ -15,10 +15,6 @@ import { ReactElement } from "react";
|
|
|
15
15
|
import { HintLink } from "./HintLink";
|
|
16
16
|
|
|
17
17
|
export type FieldComponentProps = {
|
|
18
|
-
/**
|
|
19
|
-
* The ID of the element that describes the Field
|
|
20
|
-
*/
|
|
21
|
-
ariaDescribedBy?: string;
|
|
22
18
|
/**
|
|
23
19
|
* If `error` is not undefined, the `input` will indicate an error.
|
|
24
20
|
*/
|
|
@@ -60,3 +56,11 @@ export type FieldComponentProps = {
|
|
|
60
56
|
*/
|
|
61
57
|
name?: string;
|
|
62
58
|
};
|
|
59
|
+
|
|
60
|
+
export type FieldComponentRenderProps = {
|
|
61
|
+
ariaDescribedBy: string;
|
|
62
|
+
dataSe: string;
|
|
63
|
+
errorMessageElementId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
labelElementId: string;
|
|
66
|
+
};
|
package/src/FieldError.tsx
CHANGED
|
@@ -24,7 +24,7 @@ export type FieldErrorProps = {
|
|
|
24
24
|
id?: string;
|
|
25
25
|
message?: string;
|
|
26
26
|
messageList?: string[];
|
|
27
|
-
} & HtmlProps
|
|
27
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
28
28
|
|
|
29
29
|
const FieldError = ({
|
|
30
30
|
id,
|
|
@@ -38,7 +38,7 @@ const FieldError = ({
|
|
|
38
38
|
return (
|
|
39
39
|
<FormHelperText data-se={testId} error id={id} translate={translate}>
|
|
40
40
|
<ScreenReaderText translate={translate}>{`${t(
|
|
41
|
-
"fielderror.screenreader.text"
|
|
41
|
+
"fielderror.screenreader.text",
|
|
42
42
|
)}:`}</ScreenReaderText>
|
|
43
43
|
<Box>
|
|
44
44
|
{message}
|
package/src/FieldHint.tsx
CHANGED
package/src/FieldLabel.tsx
CHANGED
|
@@ -24,7 +24,7 @@ export type FieldLabelProps = {
|
|
|
24
24
|
inputId: string;
|
|
25
25
|
isOptional: boolean;
|
|
26
26
|
text: string;
|
|
27
|
-
} & HtmlProps
|
|
27
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
28
28
|
|
|
29
29
|
const FieldLabel = ({
|
|
30
30
|
hasVisibleLabel,
|
|
@@ -51,7 +51,7 @@ const FieldLabel = ({
|
|
|
51
51
|
)}
|
|
52
52
|
</MuiInputLabel>
|
|
53
53
|
),
|
|
54
|
-
[id, inputId, isOptional, testId, translate, text, t]
|
|
54
|
+
[id, inputId, isOptional, testId, translate, text, t],
|
|
55
55
|
);
|
|
56
56
|
|
|
57
57
|
return hasVisibleLabel ? (
|
package/src/Fieldset.tsx
CHANGED
|
@@ -49,7 +49,7 @@ export type FieldsetProps = {
|
|
|
49
49
|
* The name associated with the group.
|
|
50
50
|
*/
|
|
51
51
|
name?: string;
|
|
52
|
-
} & HtmlProps
|
|
52
|
+
} & Pick<HtmlProps, "testId" | "translate">;
|
|
53
53
|
|
|
54
54
|
const Fieldset = ({
|
|
55
55
|
alert,
|
|
@@ -69,7 +69,7 @@ const Fieldset = ({
|
|
|
69
69
|
() => ({
|
|
70
70
|
isDisabled,
|
|
71
71
|
}),
|
|
72
|
-
[isDisabled]
|
|
72
|
+
[isDisabled],
|
|
73
73
|
);
|
|
74
74
|
|
|
75
75
|
return (
|
package/src/Form.tsx
CHANGED
package/src/FormCheckedProps.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { SwitchBaseProps } from "@mui/material/internal/SwitchBase";
|
|
|
15
15
|
type SwitchOnChangeProp = Pick<SwitchBaseProps, "onChange">;
|
|
16
16
|
|
|
17
17
|
export type ControlledCheckedFieldProps<
|
|
18
|
-
TogglableInputElement extends SwitchOnChangeProp
|
|
18
|
+
TogglableInputElement extends SwitchOnChangeProp,
|
|
19
19
|
> = {
|
|
20
20
|
/**
|
|
21
21
|
* Sets the checked state of the Checkbox
|
|
@@ -34,7 +34,7 @@ export type ControlledCheckedFieldProps<
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export type UncontrolledCheckedFieldProps<
|
|
37
|
-
TogglableInputElement extends SwitchOnChangeProp
|
|
37
|
+
TogglableInputElement extends SwitchOnChangeProp,
|
|
38
38
|
> = {
|
|
39
39
|
/**
|
|
40
40
|
* Sets the checked state of the Checkbox
|
|
@@ -53,7 +53,7 @@ export type UncontrolledCheckedFieldProps<
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export type CheckedFieldProps<
|
|
56
|
-
TogglableInputElement extends SwitchOnChangeProp
|
|
56
|
+
TogglableInputElement extends SwitchOnChangeProp,
|
|
57
57
|
> =
|
|
58
58
|
| ControlledCheckedFieldProps<TogglableInputElement>
|
|
59
59
|
| UncontrolledCheckedFieldProps<TogglableInputElement>;
|