@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.
Files changed (164) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/Accordion.js.map +1 -1
  3. package/dist/Autocomplete.js.map +1 -1
  4. package/dist/Badge.js.map +1 -1
  5. package/dist/Banner.js.map +1 -1
  6. package/dist/Box.js.map +1 -1
  7. package/dist/Breadcrumbs.js.map +1 -1
  8. package/dist/Button.js +27 -25
  9. package/dist/Button.js.map +1 -1
  10. package/dist/Callout.js.map +1 -1
  11. package/dist/Checkbox.js.map +1 -1
  12. package/dist/CheckboxGroup.js.map +1 -1
  13. package/dist/CircularProgress.js.map +1 -1
  14. package/dist/Dialog.js.map +1 -1
  15. package/dist/FieldError.js.map +1 -1
  16. package/dist/FieldHint.js.map +1 -1
  17. package/dist/FieldLabel.js.map +1 -1
  18. package/dist/Fieldset.js.map +1 -1
  19. package/dist/Form.js.map +1 -1
  20. package/dist/HtmlProps.js +2 -0
  21. package/dist/HtmlProps.js.map +1 -0
  22. package/dist/Link.js.map +1 -1
  23. package/dist/MenuButton.js.map +1 -1
  24. package/dist/MenuItem.js.map +1 -1
  25. package/dist/MuiPropsContext.js.map +1 -1
  26. package/dist/NativeSelect.js.map +1 -1
  27. package/dist/PasswordField.js.map +1 -1
  28. package/dist/Radio.js.map +1 -1
  29. package/dist/RadioGroup.js.map +1 -1
  30. package/dist/ScreenReaderText.js.map +1 -1
  31. package/dist/SearchField.js.map +1 -1
  32. package/dist/Select.js +1 -1
  33. package/dist/Select.js.map +1 -1
  34. package/dist/Status.js.map +1 -1
  35. package/dist/Tabs.js.map +1 -1
  36. package/dist/Tag.js.map +1 -1
  37. package/dist/TagList.js.map +1 -1
  38. package/dist/TextField.js.map +1 -1
  39. package/dist/Toast.js.map +1 -1
  40. package/dist/Tooltip.js.map +1 -1
  41. package/dist/Typography.js.map +1 -1
  42. package/dist/labs/Switch.js.map +1 -1
  43. package/dist/labs/VirtualizedAutocomplete.js.map +1 -1
  44. package/dist/src/Accordion.d.ts +2 -2
  45. package/dist/src/Accordion.d.ts.map +1 -1
  46. package/dist/src/Autocomplete.d.ts +2 -2
  47. package/dist/src/Autocomplete.d.ts.map +1 -1
  48. package/dist/src/Badge.d.ts +2 -2
  49. package/dist/src/Badge.d.ts.map +1 -1
  50. package/dist/src/Banner.d.ts +2 -2
  51. package/dist/src/Banner.d.ts.map +1 -1
  52. package/dist/src/Box.d.ts +3 -3
  53. package/dist/src/Box.d.ts.map +1 -1
  54. package/dist/src/Breadcrumbs.d.ts +2 -2
  55. package/dist/src/Breadcrumbs.d.ts.map +1 -1
  56. package/dist/src/Button.d.ts +2 -2
  57. package/dist/src/Button.d.ts.map +1 -1
  58. package/dist/src/Callout.d.ts +2 -2
  59. package/dist/src/Callout.d.ts.map +1 -1
  60. package/dist/src/Checkbox.d.ts +2 -2
  61. package/dist/src/Checkbox.d.ts.map +1 -1
  62. package/dist/src/CheckboxGroup.d.ts +2 -2
  63. package/dist/src/CheckboxGroup.d.ts.map +1 -1
  64. package/dist/src/CircularProgress.d.ts +2 -2
  65. package/dist/src/CircularProgress.d.ts.map +1 -1
  66. package/dist/src/Dialog.d.ts +2 -2
  67. package/dist/src/Dialog.d.ts.map +1 -1
  68. package/dist/src/FieldError.d.ts +2 -2
  69. package/dist/src/FieldError.d.ts.map +1 -1
  70. package/dist/src/FieldHint.d.ts +2 -2
  71. package/dist/src/FieldHint.d.ts.map +1 -1
  72. package/dist/src/FieldLabel.d.ts +2 -2
  73. package/dist/src/FieldLabel.d.ts.map +1 -1
  74. package/dist/src/Fieldset.d.ts +2 -2
  75. package/dist/src/Fieldset.d.ts.map +1 -1
  76. package/dist/src/Form.d.ts +2 -2
  77. package/dist/src/Form.d.ts.map +1 -1
  78. package/dist/src/{AllowedProps.d.ts → HtmlProps.d.ts} +2 -2
  79. package/dist/src/HtmlProps.d.ts.map +1 -0
  80. package/dist/src/Link.d.ts +2 -2
  81. package/dist/src/Link.d.ts.map +1 -1
  82. package/dist/src/MenuButton.d.ts +2 -2
  83. package/dist/src/MenuButton.d.ts.map +1 -1
  84. package/dist/src/MenuItem.d.ts +2 -2
  85. package/dist/src/MenuItem.d.ts.map +1 -1
  86. package/dist/src/MuiPropsContext.d.ts.map +1 -1
  87. package/dist/src/NativeSelect.d.ts +2 -2
  88. package/dist/src/NativeSelect.d.ts.map +1 -1
  89. package/dist/src/PasswordField.d.ts +3 -3
  90. package/dist/src/PasswordField.d.ts.map +1 -1
  91. package/dist/src/Radio.d.ts +2 -2
  92. package/dist/src/Radio.d.ts.map +1 -1
  93. package/dist/src/RadioGroup.d.ts +2 -2
  94. package/dist/src/RadioGroup.d.ts.map +1 -1
  95. package/dist/src/ScreenReaderText.d.ts +2 -2
  96. package/dist/src/ScreenReaderText.d.ts.map +1 -1
  97. package/dist/src/SearchField.d.ts +3 -3
  98. package/dist/src/SearchField.d.ts.map +1 -1
  99. package/dist/src/Select.d.ts +2 -2
  100. package/dist/src/Select.d.ts.map +1 -1
  101. package/dist/src/Status.d.ts +2 -2
  102. package/dist/src/Status.d.ts.map +1 -1
  103. package/dist/src/Tabs.d.ts +2 -2
  104. package/dist/src/Tabs.d.ts.map +1 -1
  105. package/dist/src/Tag.d.ts +2 -2
  106. package/dist/src/Tag.d.ts.map +1 -1
  107. package/dist/src/TagList.d.ts +2 -2
  108. package/dist/src/TagList.d.ts.map +1 -1
  109. package/dist/src/TextField.d.ts +3 -3
  110. package/dist/src/TextField.d.ts.map +1 -1
  111. package/dist/src/Toast.d.ts +2 -2
  112. package/dist/src/Toast.d.ts.map +1 -1
  113. package/dist/src/Tooltip.d.ts +2 -2
  114. package/dist/src/Tooltip.d.ts.map +1 -1
  115. package/dist/src/Typography.d.ts +2 -2
  116. package/dist/src/Typography.d.ts.map +1 -1
  117. package/dist/src/labs/Switch.d.ts +2 -2
  118. package/dist/src/labs/Switch.d.ts.map +1 -1
  119. package/dist/src/labs/VirtualizedAutocomplete.d.ts +2 -2
  120. package/dist/src/labs/VirtualizedAutocomplete.d.ts.map +1 -1
  121. package/dist/tsconfig.production.tsbuildinfo +1 -1
  122. package/package.json +3 -3
  123. package/src/Accordion.tsx +2 -2
  124. package/src/Autocomplete.tsx +2 -2
  125. package/src/Badge.tsx +2 -2
  126. package/src/Banner.tsx +2 -2
  127. package/src/Box.tsx +2 -2
  128. package/src/Breadcrumbs.tsx +2 -2
  129. package/src/Button.tsx +37 -35
  130. package/src/Callout.tsx +2 -2
  131. package/src/Checkbox.tsx +2 -2
  132. package/src/CheckboxGroup.tsx +2 -2
  133. package/src/CircularProgress.tsx +2 -2
  134. package/src/Dialog.tsx +2 -2
  135. package/src/FieldError.tsx +2 -2
  136. package/src/FieldHint.tsx +2 -2
  137. package/src/FieldLabel.tsx +2 -2
  138. package/src/Fieldset.tsx +2 -2
  139. package/src/Form.tsx +2 -2
  140. package/src/{AllowedProps.ts → HtmlProps.ts} +1 -1
  141. package/src/Link.tsx +2 -2
  142. package/src/MenuButton.tsx +2 -2
  143. package/src/MenuItem.tsx +2 -2
  144. package/src/MuiPropsContext.ts +0 -1
  145. package/src/NativeSelect.tsx +2 -2
  146. package/src/PasswordField.tsx +2 -2
  147. package/src/Radio.tsx +2 -2
  148. package/src/RadioGroup.tsx +2 -2
  149. package/src/ScreenReaderText.tsx +2 -2
  150. package/src/SearchField.tsx +2 -2
  151. package/src/Select.tsx +9 -7
  152. package/src/Status.tsx +2 -2
  153. package/src/Tabs.tsx +2 -2
  154. package/src/Tag.tsx +2 -2
  155. package/src/TagList.tsx +2 -2
  156. package/src/TextField.tsx +2 -2
  157. package/src/Toast.tsx +2 -2
  158. package/src/Tooltip.tsx +2 -2
  159. package/src/Typography.tsx +2 -2
  160. package/src/labs/Switch.tsx +2 -2
  161. package/src/labs/VirtualizedAutocomplete.tsx +2 -2
  162. package/dist/AllowedProps.js +0 -2
  163. package/dist/AllowedProps.js.map +0 -1
  164. 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 { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
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 { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
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 { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
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 { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
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 { AllowedProps } from "./AllowedProps";
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
- AllowedProps;
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 { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
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 { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
37
+ } & HtmlProps;
38
38
 
39
39
  const Tooltip = ({
40
40
  ariaType,
@@ -22,7 +22,7 @@ import {
22
22
  useRef,
23
23
  useImperativeHandle,
24
24
  } from "react";
25
- import { AllowedProps } from "./AllowedProps";
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
- } & AllowedProps;
97
+ } & HtmlProps;
98
98
 
99
99
  const Typography = ({
100
100
  ariaDescribedBy,
@@ -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 { AllowedProps } from "../AllowedProps";
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
- AllowedProps;
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 { AllowedProps } from "../AllowedProps";
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
- AllowedProps;
179
+ HtmlProps;
180
180
 
181
181
  const VirtualizedAutocomplete = <
182
182
  OptionType,
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=AllowedProps.js.map
@@ -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"}