@okta/odyssey-react-mui 1.12.9 → 1.12.11
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 +8 -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 +27 -25
- 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.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/HtmlProps.js +2 -0
- package/dist/HtmlProps.js.map +1 -0
- package/dist/Link.js.map +1 -1
- package/dist/MenuButton.js.map +1 -1
- package/dist/MenuItem.js.map +1 -1
- package/dist/MuiPropsContext.js.map +1 -1
- package/dist/NativeSelect.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.map +1 -1
- package/dist/Select.js +1 -1
- package/dist/Select.js.map +1 -1
- package/dist/Status.js.map +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/Toast.js.map +1 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/Typography.js.map +1 -1
- package/dist/labs/Switch.js.map +1 -1
- package/dist/labs/VirtualizedAutocomplete.js.map +1 -1
- 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 +3 -3
- package/dist/src/Box.d.ts.map +1 -1
- package/dist/src/Breadcrumbs.d.ts +2 -2
- package/dist/src/Breadcrumbs.d.ts.map +1 -1
- package/dist/src/Button.d.ts +2 -2
- 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 +2 -2
- 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 -2
- package/dist/src/CircularProgress.d.ts.map +1 -1
- package/dist/src/Dialog.d.ts +2 -2
- package/dist/src/Dialog.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/{AllowedProps.d.ts → HtmlProps.d.ts} +2 -2
- package/dist/src/HtmlProps.d.ts.map +1 -0
- package/dist/src/Link.d.ts +2 -2
- package/dist/src/Link.d.ts.map +1 -1
- package/dist/src/MenuButton.d.ts +2 -2
- 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/MuiPropsContext.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/PasswordField.d.ts +3 -3
- 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 +3 -3
- 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 +2 -2
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/Tabs.d.ts +2 -2
- 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/Toast.d.ts +2 -2
- package/dist/src/Toast.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 +2 -2
- package/dist/src/Typography.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/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/Accordion.tsx +2 -2
- package/src/Autocomplete.tsx +2 -2
- package/src/Badge.tsx +2 -2
- package/src/Banner.tsx +2 -2
- package/src/Box.tsx +2 -2
- package/src/Breadcrumbs.tsx +2 -2
- package/src/Button.tsx +37 -35
- package/src/Callout.tsx +2 -2
- package/src/Checkbox.tsx +2 -2
- package/src/CheckboxGroup.tsx +2 -2
- package/src/CircularProgress.tsx +2 -2
- package/src/Dialog.tsx +2 -2
- package/src/FieldError.tsx +2 -2
- package/src/FieldHint.tsx +2 -2
- package/src/FieldLabel.tsx +2 -2
- package/src/Fieldset.tsx +2 -2
- package/src/Form.tsx +2 -2
- package/src/{AllowedProps.ts → HtmlProps.ts} +1 -1
- package/src/Link.tsx +2 -2
- package/src/MenuButton.tsx +2 -2
- package/src/MenuItem.tsx +2 -2
- package/src/MuiPropsContext.ts +0 -1
- package/src/NativeSelect.tsx +2 -2
- package/src/PasswordField.tsx +2 -2
- package/src/Radio.tsx +2 -2
- package/src/RadioGroup.tsx +2 -2
- package/src/ScreenReaderText.tsx +2 -2
- package/src/SearchField.tsx +2 -2
- package/src/Select.tsx +9 -7
- package/src/Status.tsx +2 -2
- package/src/Tabs.tsx +2 -2
- package/src/Tag.tsx +2 -2
- package/src/TagList.tsx +2 -2
- package/src/TextField.tsx +2 -2
- package/src/Toast.tsx +2 -2
- package/src/Tooltip.tsx +2 -2
- package/src/Typography.tsx +2 -2
- package/src/labs/Switch.tsx +2 -2
- package/src/labs/VirtualizedAutocomplete.tsx +2 -2
- package/dist/AllowedProps.js +0 -2
- package/dist/AllowedProps.js.map +0 -1
- package/dist/src/AllowedProps.d.ts.map +0 -1
package/src/Status.tsx
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { Chip } from "@mui/material";
|
|
14
14
|
|
|
15
15
|
import { useMuiProps } from "./MuiPropsContext";
|
|
16
|
-
import type {
|
|
16
|
+
import type { HtmlProps } from "./HtmlProps";
|
|
17
17
|
|
|
18
18
|
export const statusSeverityValues = [
|
|
19
19
|
"default",
|
|
@@ -31,7 +31,7 @@ export type StatusProps = {
|
|
|
31
31
|
* Determine the color and icon of the Status
|
|
32
32
|
*/
|
|
33
33
|
severity: (typeof statusSeverityValues)[number];
|
|
34
|
-
} &
|
|
34
|
+
} & HtmlProps;
|
|
35
35
|
|
|
36
36
|
export const Status = ({ label, severity, testId, translate }: StatusProps) => {
|
|
37
37
|
const muiProps = useMuiProps();
|
package/src/Tabs.tsx
CHANGED
|
@@ -28,7 +28,7 @@ import { Tab as MuiTab } from "@mui/material";
|
|
|
28
28
|
|
|
29
29
|
import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext";
|
|
30
30
|
import { Badge, BadgeProps } from "./Badge";
|
|
31
|
-
import {
|
|
31
|
+
import { HtmlProps } from "./HtmlProps";
|
|
32
32
|
import { Box } from "./Box";
|
|
33
33
|
|
|
34
34
|
export type TabItemProps = {
|
|
@@ -55,7 +55,7 @@ export type TabItemProps = {
|
|
|
55
55
|
} & {
|
|
56
56
|
notificationCount?: BadgeProps["badgeContent"];
|
|
57
57
|
notificationCountMax?: BadgeProps["badgeContentMax"];
|
|
58
|
-
} &
|
|
58
|
+
} & HtmlProps;
|
|
59
59
|
|
|
60
60
|
export type TabsProps = {
|
|
61
61
|
/**
|
package/src/Tag.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import { Chip as MuiChip, ChipProps as MuiChipProps } from "@mui/material";
|
|
|
14
14
|
import { memo, ReactElement, useCallback, useContext } from "react";
|
|
15
15
|
import { TagListContext } from "./TagListContext";
|
|
16
16
|
import { MuiPropsContext } from "./MuiPropsContext";
|
|
17
|
-
import {
|
|
17
|
+
import { HtmlProps } from "./HtmlProps";
|
|
18
18
|
|
|
19
19
|
export type TagProps = {
|
|
20
20
|
icon?: ReactElement;
|
|
@@ -31,7 +31,7 @@ export type TagProps = {
|
|
|
31
31
|
* Callback fired when the remove button of the Tag is clicked
|
|
32
32
|
*/
|
|
33
33
|
onRemove?: MuiChipProps["onDelete"];
|
|
34
|
-
} &
|
|
34
|
+
} & HtmlProps;
|
|
35
35
|
|
|
36
36
|
const Tag = ({
|
|
37
37
|
icon,
|
package/src/TagList.tsx
CHANGED
|
@@ -14,14 +14,14 @@ import { Tag } from "./Tag";
|
|
|
14
14
|
import { Stack } from "@mui/material";
|
|
15
15
|
import { memo, ReactElement, useMemo } from "react";
|
|
16
16
|
import { ChipElementType, TagListContext } from "./TagListContext";
|
|
17
|
-
import {
|
|
17
|
+
import { HtmlProps } from "./HtmlProps";
|
|
18
18
|
|
|
19
19
|
export type TagListProps = {
|
|
20
20
|
/**
|
|
21
21
|
* The Tag or array of Tags within the TagList
|
|
22
22
|
*/
|
|
23
23
|
children: ReactElement<typeof Tag> | Array<ReactElement<typeof Tag>>;
|
|
24
|
-
} &
|
|
24
|
+
} & HtmlProps;
|
|
25
25
|
|
|
26
26
|
const TagList = ({ children, testId }: TagListProps) => {
|
|
27
27
|
const providerValue = useMemo<{
|
package/src/TextField.tsx
CHANGED
|
@@ -25,7 +25,7 @@ import { InputAdornment, InputBase } from "@mui/material";
|
|
|
25
25
|
|
|
26
26
|
import { FieldComponentProps } from "./FieldComponentProps";
|
|
27
27
|
import { Field } from "./Field";
|
|
28
|
-
import {
|
|
28
|
+
import { HtmlProps } from "./HtmlProps";
|
|
29
29
|
import { FocusHandle, useInputValues, getControlState } from "./inputUtils";
|
|
30
30
|
|
|
31
31
|
export const textFieldTypeValues = [
|
|
@@ -101,7 +101,7 @@ export type TextFieldProps = {
|
|
|
101
101
|
*/
|
|
102
102
|
value?: string;
|
|
103
103
|
} & FieldComponentProps &
|
|
104
|
-
|
|
104
|
+
HtmlProps;
|
|
105
105
|
|
|
106
106
|
const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
107
107
|
(
|
package/src/Toast.tsx
CHANGED
|
@@ -17,7 +17,7 @@ import { Link } from "./Link";
|
|
|
17
17
|
import { CloseIcon } from "./icons.generated";
|
|
18
18
|
import { Button } from "./Button";
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
20
|
-
import {
|
|
20
|
+
import { HtmlProps } from "./HtmlProps";
|
|
21
21
|
|
|
22
22
|
export const toastRoleValues = ["status", "alert"] as const;
|
|
23
23
|
export const toastSeverityValues = [
|
|
@@ -70,7 +70,7 @@ export type ToastProps = {
|
|
|
70
70
|
* The text content of the Toast
|
|
71
71
|
*/
|
|
72
72
|
text: string;
|
|
73
|
-
} &
|
|
73
|
+
} & HtmlProps;
|
|
74
74
|
|
|
75
75
|
const ClickAwayListenerProps = { onClickAway: () => false };
|
|
76
76
|
|
package/src/Tooltip.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import type { TooltipProps as MuiTooltipProps } from "@mui/material";
|
|
|
15
15
|
|
|
16
16
|
import { MuiPropsChild } from "./MuiPropsChild";
|
|
17
17
|
import { ReactElement, memo } from "react";
|
|
18
|
-
import {
|
|
18
|
+
import { HtmlProps } from "./HtmlProps";
|
|
19
19
|
|
|
20
20
|
export type TooltipProps = {
|
|
21
21
|
/**
|
|
@@ -34,7 +34,7 @@ export type TooltipProps = {
|
|
|
34
34
|
* The text to display in the Tooltip
|
|
35
35
|
*/
|
|
36
36
|
text: string;
|
|
37
|
-
} &
|
|
37
|
+
} & HtmlProps;
|
|
38
38
|
|
|
39
39
|
const Tooltip = ({
|
|
40
40
|
ariaType,
|
package/src/Typography.tsx
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useRef,
|
|
23
23
|
useImperativeHandle,
|
|
24
24
|
} from "react";
|
|
25
|
-
import {
|
|
25
|
+
import { HtmlProps } from "./HtmlProps";
|
|
26
26
|
import { FocusHandle } from "./inputUtils";
|
|
27
27
|
|
|
28
28
|
export type TypographyVariantValue =
|
|
@@ -94,7 +94,7 @@ export type TypographyProps = {
|
|
|
94
94
|
* The variant of Typography to render.
|
|
95
95
|
*/
|
|
96
96
|
variant?: keyof typeof typographyVariantMapping;
|
|
97
|
-
} &
|
|
97
|
+
} & HtmlProps;
|
|
98
98
|
|
|
99
99
|
const Typography = ({
|
|
100
100
|
ariaDescribedBy,
|
package/src/labs/Switch.tsx
CHANGED
|
@@ -29,7 +29,7 @@ import { useOdysseyDesignTokens } from "../OdysseyDesignTokensContext";
|
|
|
29
29
|
import { Box } from "../Box";
|
|
30
30
|
import { FieldComponentProps } from "../FieldComponentProps";
|
|
31
31
|
import { FieldHint } from "../FieldHint";
|
|
32
|
-
import type {
|
|
32
|
+
import type { HtmlProps } from "../HtmlProps";
|
|
33
33
|
import { useUniqueId } from "../useUniqueId";
|
|
34
34
|
import { ComponentControlledState, getControlState } from "../inputUtils";
|
|
35
35
|
import { CheckedFieldProps } from "../FormCheckedProps";
|
|
@@ -63,7 +63,7 @@ export type SwitchProps = {
|
|
|
63
63
|
"hint" | "id" | "isFullWidth" | "isDisabled" | "name"
|
|
64
64
|
> &
|
|
65
65
|
CheckedFieldProps<MuiSwitchProps> &
|
|
66
|
-
|
|
66
|
+
HtmlProps;
|
|
67
67
|
|
|
68
68
|
type SwitchLabelProps = {
|
|
69
69
|
checked: boolean;
|
|
@@ -21,7 +21,7 @@ import { memo, useCallback, useMemo, useRef } from "react";
|
|
|
21
21
|
|
|
22
22
|
import { Field } from "../Field";
|
|
23
23
|
import { FieldComponentProps } from "../FieldComponentProps";
|
|
24
|
-
import type {
|
|
24
|
+
import type { HtmlProps } from "../HtmlProps";
|
|
25
25
|
import {
|
|
26
26
|
ComponentControlledState,
|
|
27
27
|
getControlState,
|
|
@@ -176,7 +176,7 @@ export type AutocompleteProps<
|
|
|
176
176
|
| "isOptional"
|
|
177
177
|
| "name"
|
|
178
178
|
> &
|
|
179
|
-
|
|
179
|
+
HtmlProps;
|
|
180
180
|
|
|
181
181
|
const VirtualizedAutocomplete = <
|
|
182
182
|
OptionType,
|
package/dist/AllowedProps.js
DELETED
package/dist/AllowedProps.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AllowedProps.js","names":[],"sources":["../src/AllowedProps.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\nexport type AllowedProps = {\n /**\n * This prop puts a `data` attribute on an HTML element in this component with the value provided.\n *\n * @deprecated **WARNING:** You should be using Semantic Selectors instead of this property. This is a temporary measure for backwards compatibility with existing Selenium tests.\n */\n testId?: string;\n /**\n * This prop puts a `translate` attribute on an HTML element. It should be used to indicate whether text within the element should be translated.\n */\n translate?: \"yes\" | \"no\";\n};\n"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AllowedProps.d.ts","sourceRoot":"","sources":["../../src/AllowedProps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC1B,CAAC"}
|