@okta/odyssey-react-mui 1.6.0 → 1.6.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/Autocomplete.js.map +1 -1
  3. package/dist/Checkbox.js +3 -2
  4. package/dist/Checkbox.js.map +1 -1
  5. package/dist/CheckboxGroup.js.map +1 -1
  6. package/dist/FieldComponentProps.js +2 -0
  7. package/dist/FieldComponentProps.js.map +1 -0
  8. package/dist/NativeSelect.js.map +1 -1
  9. package/dist/OdysseyCacheProvider.js +7 -1
  10. package/dist/OdysseyCacheProvider.js.map +1 -1
  11. package/dist/OdysseyProvider.js +3 -4
  12. package/dist/OdysseyProvider.js.map +1 -1
  13. package/dist/OdysseyThemeProvider.js +3 -3
  14. package/dist/OdysseyThemeProvider.js.map +1 -1
  15. package/dist/PasswordField.js.map +1 -1
  16. package/dist/Radio.js.map +1 -1
  17. package/dist/RadioGroup.js.map +1 -1
  18. package/dist/SearchField.js.map +1 -1
  19. package/dist/Select.js.map +1 -1
  20. package/dist/TextField.js +1 -0
  21. package/dist/TextField.js.map +1 -1
  22. package/dist/Tooltip.js +5 -1
  23. package/dist/Tooltip.js.map +1 -1
  24. package/dist/{createShadowDom.js → createShadowRootElement.js} +6 -11
  25. package/dist/createShadowRootElement.js.map +1 -0
  26. package/dist/index.js +2 -1
  27. package/dist/index.js.map +1 -1
  28. package/dist/src/Autocomplete.d.ts +2 -21
  29. package/dist/src/Autocomplete.d.ts.map +1 -1
  30. package/dist/src/Checkbox.d.ts +2 -13
  31. package/dist/src/Checkbox.d.ts.map +1 -1
  32. package/dist/src/CheckboxGroup.d.ts +2 -13
  33. package/dist/src/CheckboxGroup.d.ts.map +1 -1
  34. package/dist/src/FieldComponentProps.d.ts +42 -0
  35. package/dist/src/FieldComponentProps.d.ts.map +1 -0
  36. package/dist/src/NativeSelect.d.ts +3 -42
  37. package/dist/src/NativeSelect.d.ts.map +1 -1
  38. package/dist/src/OdysseyCacheProvider.d.ts +2 -2
  39. package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
  40. package/dist/src/OdysseyProvider.d.ts +1 -1
  41. package/dist/src/OdysseyProvider.d.ts.map +1 -1
  42. package/dist/src/OdysseyThemeProvider.d.ts +2 -2
  43. package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
  44. package/dist/src/PasswordField.d.ts +3 -58
  45. package/dist/src/PasswordField.d.ts.map +1 -1
  46. package/dist/src/Radio.d.ts +2 -9
  47. package/dist/src/Radio.d.ts.map +1 -1
  48. package/dist/src/RadioGroup.d.ts +2 -21
  49. package/dist/src/RadioGroup.d.ts.map +1 -1
  50. package/dist/src/SearchField.d.ts +3 -26
  51. package/dist/src/SearchField.d.ts.map +1 -1
  52. package/dist/src/Select.d.ts +2 -25
  53. package/dist/src/Select.d.ts.map +1 -1
  54. package/dist/src/TextField.d.ts +3 -58
  55. package/dist/src/TextField.d.ts.map +1 -1
  56. package/dist/src/Tooltip.d.ts +2 -1
  57. package/dist/src/Tooltip.d.ts.map +1 -1
  58. package/dist/src/{createShadowDom.d.ts → createShadowRootElement.d.ts} +2 -5
  59. package/dist/src/createShadowRootElement.d.ts.map +1 -0
  60. package/dist/src/index.d.ts +2 -1
  61. package/dist/src/index.d.ts.map +1 -1
  62. package/dist/src/theme/components.d.ts +2 -2
  63. package/dist/src/theme/components.d.ts.map +1 -1
  64. package/dist/src/theme/createOdysseyMuiTheme.d.ts +2 -2
  65. package/dist/theme/components.js +90 -70
  66. package/dist/theme/components.js.map +1 -1
  67. package/dist/theme/createOdysseyMuiTheme.js +2 -2
  68. package/dist/theme/createOdysseyMuiTheme.js.map +1 -1
  69. package/dist/tsconfig.production.tsbuildinfo +1 -1
  70. package/package.json +3 -3
  71. package/src/Autocomplete.tsx +6 -21
  72. package/src/Checkbox.tsx +6 -16
  73. package/src/CheckboxGroup.tsx +3 -13
  74. package/src/FieldComponentProps.ts +42 -0
  75. package/src/NativeSelect.tsx +6 -22
  76. package/src/OdysseyCacheProvider.tsx +12 -2
  77. package/src/OdysseyProvider.tsx +3 -4
  78. package/src/OdysseyThemeProvider.tsx +4 -4
  79. package/src/PasswordField.tsx +3 -29
  80. package/src/Radio.tsx +3 -9
  81. package/src/RadioGroup.tsx +6 -21
  82. package/src/SearchField.tsx +3 -13
  83. package/src/Select.tsx +8 -26
  84. package/src/TextField.tsx +4 -30
  85. package/src/Tooltip.tsx +7 -2
  86. package/src/createShadowRootElement.ts +21 -0
  87. package/src/index.ts +2 -1
  88. package/src/theme/components.tsx +34 -15
  89. package/src/theme/createOdysseyMuiTheme.ts +3 -3
  90. package/dist/createShadowDom.js.map +0 -1
  91. package/dist/src/createShadowDom.d.ts.map +0 -1
  92. package/src/createShadowDom.ts +0 -46
@@ -10,6 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { ChangeEventHandler, FocusEventHandler } from "react";
13
+ import { FieldComponentProps } from "./FieldComponentProps";
13
14
  import type { SeleniumProps } from "./SeleniumProps";
14
15
  export type PasswordFieldProps = {
15
16
  /**
@@ -18,10 +19,6 @@ export type PasswordFieldProps = {
18
19
  * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
19
20
  */
20
21
  autoCompleteType?: "current-password" | "new-password";
21
- /**
22
- * If `error` is not undefined, the `input` will indicate an error.
23
- */
24
- errorMessage?: string;
25
22
  /**
26
23
  * If `true`, the component will receive focus automatically.
27
24
  */
@@ -30,34 +27,10 @@ export type PasswordFieldProps = {
30
27
  * If `true`, the show/hide icon is not shown to the user
31
28
  */
32
29
  hasShowPassword?: boolean;
33
- /**
34
- * The helper text content.
35
- */
36
- hint?: string;
37
- /**
38
- * The id of the `input` element.
39
- */
40
- id?: string;
41
- /**
42
- * If `true`, the component is disabled.
43
- */
44
- isDisabled?: boolean;
45
- /**
46
- * If `true`, the `input` element is not required.
47
- */
48
- isOptional?: boolean;
49
- /**
50
- * It prevents the user from changing the value of the field
51
- */
52
- isReadOnly?: boolean;
53
30
  /**
54
31
  * The label for the `input` element.
55
32
  */
56
33
  label: string;
57
- /**
58
- * The name of the `input` element. Defaults to the `id` if not set.
59
- */
60
- name?: string;
61
34
  /**
62
35
  * Callback fired when the `input` element loses focus.
63
36
  */
@@ -78,7 +51,7 @@ export type PasswordFieldProps = {
78
51
  * The value of the `input` element, required for a controlled component.
79
52
  */
80
53
  value?: string;
81
- } & SeleniumProps;
54
+ } & FieldComponentProps & SeleniumProps;
82
55
  declare const MemoizedPasswordField: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
83
56
  /**
84
57
  * This prop helps users to fill forms faster, especially on mobile devices.
@@ -86,10 +59,6 @@ declare const MemoizedPasswordField: import("react").MemoExoticComponent<import(
86
59
  * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
87
60
  */
88
61
  autoCompleteType?: "current-password" | "new-password" | undefined;
89
- /**
90
- * If `error` is not undefined, the `input` will indicate an error.
91
- */
92
- errorMessage?: string | undefined;
93
62
  /**
94
63
  * If `true`, the component will receive focus automatically.
95
64
  */
@@ -98,34 +67,10 @@ declare const MemoizedPasswordField: import("react").MemoExoticComponent<import(
98
67
  * If `true`, the show/hide icon is not shown to the user
99
68
  */
100
69
  hasShowPassword?: boolean | undefined;
101
- /**
102
- * The helper text content.
103
- */
104
- hint?: string | undefined;
105
- /**
106
- * The id of the `input` element.
107
- */
108
- id?: string | undefined;
109
- /**
110
- * If `true`, the component is disabled.
111
- */
112
- isDisabled?: boolean | undefined;
113
- /**
114
- * If `true`, the `input` element is not required.
115
- */
116
- isOptional?: boolean | undefined;
117
- /**
118
- * It prevents the user from changing the value of the field
119
- */
120
- isReadOnly?: boolean | undefined;
121
70
  /**
122
71
  * The label for the `input` element.
123
72
  */
124
73
  label: string;
125
- /**
126
- * The name of the `input` element. Defaults to the `id` if not set.
127
- */
128
- name?: string | undefined;
129
74
  /**
130
75
  * Callback fired when the `input` element loses focus.
131
76
  */
@@ -146,6 +91,6 @@ declare const MemoizedPasswordField: import("react").MemoExoticComponent<import(
146
91
  * The value of the `input` element, required for a controlled component.
147
92
  */
148
93
  value?: string | undefined;
149
- } & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
94
+ } & FieldComponentProps & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
150
95
  export { MemoizedPasswordField as PasswordField };
151
96
  //# sourceMappingURL=PasswordField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordField.d.ts","sourceRoot":"","sources":["../../src/PasswordField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,kBAAkB,GAAG,cAAc,CAAC;IACvD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IACnE;;OAEG;IACH,QAAQ,C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AQ,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;IACtE;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IACpE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,mBAAmB,GACrB,aAAa,CAAC;AAiHhB,QAAA,MAAM,qBAAqB;IAxJzB;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;WACI,MAAM;IACb;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;2FAoH4C,CAAC;AAGlD,OAAO,EAAE,qBAAqB,IAAI,aAAa,EAAE,CAAC"}
@@ -10,16 +10,13 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  /// <reference types="react" />
13
+ import { FieldComponentProps } from "./FieldComponentProps";
13
14
  import type { SeleniumProps } from "./SeleniumProps";
14
15
  export type RadioProps = {
15
16
  /**
16
17
  * If `true`, the Radio is selected
17
18
  */
18
19
  isChecked?: boolean;
19
- /**
20
- * If `true`, the Radio is disabled
21
- */
22
- isDisabled?: boolean;
23
20
  /**
24
21
  * If `true`, the Radio has an invalid value
25
22
  */
@@ -28,15 +25,11 @@ export type RadioProps = {
28
25
  * The label text for the Radio
29
26
  */
30
27
  label: string;
31
- /**
32
- * The name attribute of the Radio
33
- */
34
- name?: string;
35
28
  /**
36
29
  * The value attribute of the Radio
37
30
  */
38
31
  value: string;
39
- } & SeleniumProps;
32
+ } & Pick<FieldComponentProps, "isDisabled" | "name"> & SeleniumProps;
40
33
  declare const MemoizedRadio: import("react").MemoExoticComponent<({ isChecked, isDisabled, isInvalid, label, name, testId, value, }: RadioProps) => JSX.Element>;
41
34
  export { MemoizedRadio as Radio };
42
35
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAOH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,aAAa,CAAC;AAuBlB,QAAA,MAAM,aAAa,0GAbhB,UAAU,iBAaoB,CAAC;AAGlC,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAOH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,MAAM,CAAC,GAClD,aAAa,CAAC;AAuBhB,QAAA,MAAM,aAAa,0GAbhB,UAAU,iBAaoB,CAAC;AAGlC,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,CAAC"}
@@ -12,6 +12,7 @@
12
12
  import { type RadioGroupProps as MuiRadioGroupProps } from "@mui/material";
13
13
  import { ReactElement } from "react";
14
14
  import { Radio, RadioProps } from "./Radio";
15
+ import { FieldComponentProps } from "./FieldComponentProps";
15
16
  import type { SeleniumProps } from "./SeleniumProps";
16
17
  export type RadioGroupProps = {
17
18
  /**
@@ -22,30 +23,10 @@ export type RadioGroupProps = {
22
23
  * The text value of the Radio that should be selected by default
23
24
  */
24
25
  defaultValue?: string;
25
- /**
26
- * The error text for an invalid RadioGroup
27
- */
28
- errorMessage?: string;
29
- /**
30
- * Optional hint text
31
- */
32
- hint?: string;
33
- /**
34
- * The id of the `input` element.
35
- */
36
- id?: string;
37
- /**
38
- * Disables the whole RadioGroup
39
- */
40
- isDisabled?: boolean;
41
26
  /**
42
27
  * The text label for the RadioGroup
43
28
  */
44
29
  label: string;
45
- /**
46
- * The name of the `input` element. Defaults to the `id` if not set.
47
- */
48
- name?: string;
49
30
  /**
50
31
  * Listen for changes in the browser that change `value`
51
32
  */
@@ -54,7 +35,7 @@ export type RadioGroupProps = {
54
35
  * The `value` on the selected Radio
55
36
  */
56
37
  value?: RadioProps["value"];
57
- } & SeleniumProps;
38
+ } & Pick<FieldComponentProps, "errorMessage" | "hint" | "id" | "isDisabled" | "name"> & SeleniumProps;
58
39
  declare const MemoizedRadioGroup: import("react").MemoExoticComponent<({ children, defaultValue, errorMessage, hint, id: idOverride, isDisabled, label, name: nameOverride, onChange, testId, value, }: RadioGroupProps) => JSX.Element>;
59
40
  export { MemoizedRadioGroup as RadioGroup };
60
41
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/RadioGroup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAEL,KAAK,eAAe,IAAI,kBAAkB,EAC3C,MAAM,eAAe,CAAC;AACvB,OAAO,EAAQ,YAAY,EAAe,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,K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eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC7B,GAAG,IAAI,CACN,mBAAmB,EACnB,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,YAAY,GAAG,MAAM,CACvD,GACC,aAAa,CAAC;AAgDhB,QAAA,MAAM,kBAAkB,wKAlCrB,eAAe,iBAkCyB,CAAC;AAG5C,OAAO,EAAE,kBAAkB,IAAI,UAAU,EAAE,CAAC"}
@@ -10,6 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { ChangeEventHandler, FocusEventHandler, InputHTMLAttributes } from "react";
13
+ import { FieldComponentProps } from "./FieldComponentProps";
13
14
  import type { SeleniumProps } from "./SeleniumProps";
14
15
  export type SearchFieldProps = {
15
16
  /**
@@ -22,22 +23,10 @@ export type SearchFieldProps = {
22
23
  * If `true`, the component will receive focus automatically.
23
24
  */
24
25
  hasInitialFocus?: boolean;
25
- /**
26
- * The id of the `input` element.
27
- */
28
- id?: string;
29
- /**
30
- * If `true`, the component is disabled.
31
- */
32
- isDisabled?: boolean;
33
26
  /**
34
27
  * This label won't show up visually, but it's required for accessibility.
35
28
  */
36
29
  label: string;
37
- /**
38
- * The name of the `input` element. Defaults to the `id` if not set.
39
- */
40
- name?: string;
41
30
  /**
42
31
  * Callback fired when the `input` element loses focus.
43
32
  */
@@ -62,7 +51,7 @@ export type SearchFieldProps = {
62
51
  * The value of the `input` element, required for a controlled component.
63
52
  */
64
53
  value?: string;
65
- } & SeleniumProps;
54
+ } & Pick<FieldComponentProps, "id" | "isDisabled" | "name"> & SeleniumProps;
66
55
  declare const MemoizedSearchField: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
67
56
  /**
68
57
  * This prop helps users to fill forms faster, especially on mobile devices.
@@ -74,22 +63,10 @@ declare const MemoizedSearchField: import("react").MemoExoticComponent<import("r
74
63
  * If `true`, the component will receive focus automatically.
75
64
  */
76
65
  hasInitialFocus?: boolean | undefined;
77
- /**
78
- * The id of the `input` element.
79
- */
80
- id?: string | undefined;
81
- /**
82
- * If `true`, the component is disabled.
83
- */
84
- isDisabled?: boolean | undefined;
85
66
  /**
86
67
  * This label won't show up visually, but it's required for accessibility.
87
68
  */
88
69
  label: string;
89
- /**
90
- * The name of the `input` element. Defaults to the `id` if not set.
91
- */
92
- name?: string | undefined;
93
70
  /**
94
71
  * Callback fired when the `input` element loses focus.
95
72
  */
@@ -114,6 +91,6 @@ declare const MemoizedSearchField: import("react").MemoExoticComponent<import("r
114
91
  * The value of the `input` element, required for a controlled component.
115
92
  */
116
93
  value?: string | undefined;
117
- } & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
94
+ } & Pick<FieldComponentProps, "id" | "name" | "isDisabled"> & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
118
95
  export { MemoizedSearchField as SearchField };
119
96
  //# sourceMappingURL=SearchField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../src/SearchField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAEjB,mBAAmB,EAGpB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC,CAAC;IACzE;;OAEG;IAC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AO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC,CAAC;IACzE;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;IACtE;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC;IACpE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,YAAY,GAAG,MAAM,CAAC,GACzD,aAAa,CAAC;AAkHhB,QAAA,MAAM,mBAAmB;IAzJvB;;;;OAIG;uBACgB,oBAAoB,gBAAgB,CAAC,CAAC,cAAc,CAAC;IACxE;;OAEG;;IAEH;;OAEG;WACI,MAAM;IACb;;OAEG;;IAEH;;OAEG;qBACa,IAAI;IACpB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;+HAqHwC,CAAC;AAG9C,OAAO,EAAE,mBAAmB,IAAI,WAAW,EAAE,CAAC"}
@@ -11,6 +11,7 @@
11
11
  */
12
12
  /// <reference types="react" />
13
13
  import { SelectProps as MuiSelectProps } from "@mui/material";
14
+ import { FieldComponentProps } from "./FieldComponentProps";
14
15
  import type { SeleniumProps } from "./SeleniumProps";
15
16
  export type SelectOption = {
16
17
  text: string;
@@ -19,43 +20,19 @@ export type SelectOption = {
19
20
  };
20
21
  export type SelectValueType<HasMultipleChoices> = HasMultipleChoices extends true ? string[] : string;
21
22
  export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean> = {
22
- /**
23
- * The error message for the Select
24
- */
25
- errorMessage?: string;
26
23
  /**
27
24
  * If `true`, the Select allows multiple selections
28
25
  */
29
26
  hasMultipleChoices?: HasMultipleChoices;
30
- /**
31
- * The hint text for the Select
32
- */
33
- hint?: string;
34
- /**
35
- * The id attribute of the Select
36
- */
37
- id?: string;
38
- /**
39
- * If `true`, the Select is disabled
40
- */
41
- isDisabled?: boolean;
42
27
  /**
43
28
  * @deprecated Use `hasMultipleChoices` instead.
44
29
  */
45
30
  /** **Deprecated:** use `hasMultipleChoices` */
46
31
  isMultiSelect?: HasMultipleChoices;
47
- /**
48
- * If `true`, the Select is optional
49
- */
50
- isOptional?: boolean;
51
32
  /**
52
33
  * The label text for the Select
53
34
  */
54
35
  label: string;
55
- /**
56
- * The name of the `input` element. Defaults to the `id` if not set.
57
- */
58
- name?: string;
59
36
  /**
60
37
  * Callback fired when the Select loses focus
61
38
  */
@@ -76,7 +53,7 @@ export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMu
76
53
  * The value or values selected in the Select
77
54
  */
78
55
  value?: Value;
79
- } & SeleniumProps;
56
+ } & Pick<FieldComponentProps, "errorMessage" | "hint" | "id" | "isDisabled" | "isOptional" | "name"> & SeleniumProps;
80
57
  declare const MemoizedSelect: import("react").MemoExoticComponent<(<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean>({ errorMessage, hasMultipleChoices: hasMultipleChoicesProp, hint, id: idOverride, isDisabled, isMultiSelect, isOptional, label, name: nameOverride, onBlur, onChange: onChangeProp, onFocus, options, testId, value, }: SelectProps<Value, HasMultipleChoices>) => JSX.Element)>;
81
58
  export { MemoizedSelect as Select };
82
59
  //# sourceMappingURL=Select.d.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CAAC,UAAU,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,OAAO,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GAAG,IAAI,CACN,mBAAmB,EACnB,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,YAAY,GAAG,YAAY,GAAG,MAAM,CACtE,GACC,aAAa,CAAC;AAkMhB,QAAA,MAAM,cAAc,+YAAe,CAAC;AAGpC,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,CAAC"}
@@ -10,6 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { ChangeEventHandler, FocusEventHandler, InputHTMLAttributes, ReactElement } from "react";
13
+ import { FieldComponentProps } from "./FieldComponentProps";
13
14
  import { SeleniumProps } from "./SeleniumProps";
14
15
  export declare const textFieldTypeValues: readonly ["email", "number", "tel", "text", "url"];
15
16
  export type TextFieldProps = {
@@ -23,46 +24,18 @@ export type TextFieldProps = {
23
24
  * End `InputAdornment` for this component.
24
25
  */
25
26
  endAdornment?: string | ReactElement;
26
- /**
27
- * If `error` is not undefined, the `input` will indicate an error.
28
- */
29
- errorMessage?: string;
30
27
  /**
31
28
  * If `true`, the component will receive focus automatically.
32
29
  */
33
30
  hasInitialFocus?: boolean;
34
- /**
35
- * The helper text content.
36
- */
37
- hint?: string;
38
- /**
39
- * The id of the `input` element.
40
- */
41
- id?: string;
42
- /**
43
- * If `true`, the component is disabled.
44
- */
45
- isDisabled?: boolean;
46
31
  /**
47
32
  * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
48
33
  */
49
34
  isMultiline?: boolean;
50
- /**
51
- * If `true`, the `input` element is not required.
52
- */
53
- isOptional?: boolean;
54
- /**
55
- * It prevents the user from changing the value of the field
56
- */
57
- isReadOnly?: boolean;
58
35
  /**
59
36
  * The label for the `input` element.
60
37
  */
61
38
  label: string;
62
- /**
63
- * The name of the `input` element. Defaults to the `id` if not set.
64
- */
65
- name?: string;
66
39
  /**
67
40
  * Callback fired when the `input` element loses focus.
68
41
  */
@@ -91,7 +64,7 @@ export type TextFieldProps = {
91
64
  * The value of the `input` element, required for a controlled component.
92
65
  */
93
66
  value?: string;
94
- } & SeleniumProps;
67
+ } & FieldComponentProps & SeleniumProps;
95
68
  declare const MemoizedTextField: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
96
69
  /**
97
70
  * This prop helps users to fill forms faster, especially on mobile devices.
@@ -103,46 +76,18 @@ declare const MemoizedTextField: import("react").MemoExoticComponent<import("rea
103
76
  * End `InputAdornment` for this component.
104
77
  */
105
78
  endAdornment?: string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
106
- /**
107
- * If `error` is not undefined, the `input` will indicate an error.
108
- */
109
- errorMessage?: string | undefined;
110
79
  /**
111
80
  * If `true`, the component will receive focus automatically.
112
81
  */
113
82
  hasInitialFocus?: boolean | undefined;
114
- /**
115
- * The helper text content.
116
- */
117
- hint?: string | undefined;
118
- /**
119
- * The id of the `input` element.
120
- */
121
- id?: string | undefined;
122
- /**
123
- * If `true`, the component is disabled.
124
- */
125
- isDisabled?: boolean | undefined;
126
83
  /**
127
84
  * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
128
85
  */
129
86
  isMultiline?: boolean | undefined;
130
- /**
131
- * If `true`, the `input` element is not required.
132
- */
133
- isOptional?: boolean | undefined;
134
- /**
135
- * It prevents the user from changing the value of the field
136
- */
137
- isReadOnly?: boolean | undefined;
138
87
  /**
139
88
  * The label for the `input` element.
140
89
  */
141
90
  label: string;
142
- /**
143
- * The name of the `input` element. Defaults to the `id` if not set.
144
- */
145
- name?: string | undefined;
146
91
  /**
147
92
  * Callback fired when the `input` element loses focus.
148
93
  */
@@ -171,6 +116,6 @@ declare const MemoizedTextField: import("react").MemoExoticComponent<import("rea
171
116
  * The value of the `input` element, required for a controlled component.
172
117
  */
173
118
  value?: string | undefined;
174
- } & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
119
+ } & FieldComponentProps & SeleniumProps & import("react").RefAttributes<HTMLInputElement>>>;
175
120
  export { MemoizedTextField as TextField };
176
121
  //# sourceMappingURL=TextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../src/TextField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAEjB,mBAAmB,EAEnB,YAAY,EAEb,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,mBAAmB,oDAMtB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC,CAAC;IACzE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,C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@@ -30,5 +30,6 @@ export type TooltipProps = {
30
30
  */
31
31
  text: string;
32
32
  } & SeleniumProps;
33
- export declare const Tooltip: ({ ariaType, children, placement, testId, text, }: TooltipProps) => JSX.Element;
33
+ declare const MemoizedTooltip: import("react").MemoExoticComponent<({ ariaType, children, placement, testId, text, }: TooltipProps) => JSX.Element>;
34
+ export { MemoizedTooltip as Tooltip };
34
35
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,aAAa,CAAC;AAElB,eAAO,MAAM,OAAO,qDAMjB,YAAY,gBASd,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrE,OAAO,EAAE,YAAY,EAAQ,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,aAAa,CAAC;AAmBlB,QAAA,MAAM,eAAe,yFAXlB,YAAY,iBAWsB,CAAC;AAGtC,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,CAAC"}
@@ -9,8 +9,5 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
- export declare const createShadowDom: (containerElement: HTMLElement) => {
13
- emotionRootElement: HTMLStyleElement;
14
- shadowRootElement: HTMLDivElement;
15
- };
16
- //# sourceMappingURL=createShadowDom.d.ts.map
12
+ export declare const createShadowRootElement: (containerElement: HTMLElement) => any;
13
+ //# sourceMappingURL=createShadowRootElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createShadowRootElement.d.ts","sourceRoot":"","sources":["../../src/createShadowRootElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,uBAAuB,qBAAsB,WAAW,QAQpE,CAAC"}
@@ -45,10 +45,11 @@ export * from "./Callout";
45
45
  export * from "./Checkbox";
46
46
  export * from "./CheckboxGroup";
47
47
  export * from "./CircularProgress";
48
- export * from "./createShadowDom";
48
+ export * from "./createShadowRootElement";
49
49
  export * from "./createUniqueId";
50
50
  export * from "./Dialog";
51
51
  export * from "./Fieldset";
52
+ export * from "./FieldComponentProps";
52
53
  export * from "./Form";
53
54
  export * from "./Link";
54
55
  export * from "./MenuButton";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EACL,WAAW;AACX,4FAA4F;AAC5F,WAAW;AACX,4FAA4F;A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U,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { ThemeOptions } from "@mui/material";
13
13
  import { DesignTokens } from "./theme";
14
- export declare const components: ({ odysseyTokens, shadowRootElement, }: {
14
+ export declare const components: ({ odysseyTokens, shadowDomElement, }: {
15
15
  odysseyTokens: DesignTokens;
16
- shadowRootElement?: HTMLDivElement | undefined;
16
+ shadowDomElement?: HTMLDivElement | undefined;
17
17
  }) => ThemeOptions["components"];
18
18
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAk4E5B,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAq5E5B,CAAC"}
@@ -16,8 +16,8 @@ import "./palette.types";
16
16
  import "./typography.types";
17
17
  export type DesignTokens = typeof Tokens;
18
18
  export type DesignTokensOverride = Partial<typeof Tokens>;
19
- export declare const createOdysseyMuiTheme: ({ odysseyTokens, shadowRootElement, }: {
19
+ export declare const createOdysseyMuiTheme: ({ odysseyTokens, shadowDomElement, }: {
20
20
  odysseyTokens: DesignTokens;
21
- shadowRootElement?: HTMLDivElement | undefined;
21
+ shadowDomElement?: HTMLDivElement | undefined;
22
22
  }) => import("@mui/material/styles").Theme;
23
23
  //# sourceMappingURL=createOdysseyMuiTheme.d.ts.map