@okta/odyssey-react-mui 1.5.0 → 1.6.1
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 +19 -0
- package/dist/OdysseyCacheProvider.js +7 -1
- package/dist/OdysseyCacheProvider.js.map +1 -1
- package/dist/OdysseyProvider.js +3 -4
- package/dist/OdysseyProvider.js.map +1 -1
- package/dist/OdysseyThemeProvider.js +3 -3
- package/dist/OdysseyThemeProvider.js.map +1 -1
- package/dist/PasswordField.js +1 -1
- package/dist/PasswordField.js.map +1 -1
- package/dist/Select.js +23 -25
- package/dist/Select.js.map +1 -1
- package/dist/Tooltip.js +5 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/{createShadowDom.js → createShadowRootElement.js} +6 -11
- package/dist/createShadowRootElement.js.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts +2 -2
- 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 +2 -2
- package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/src/Select.d.ts +14 -8
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/Tooltip.d.ts +2 -1
- package/dist/src/Tooltip.d.ts.map +1 -1
- package/dist/src/{createShadowDom.d.ts → createShadowRootElement.d.ts} +2 -5
- package/dist/src/createShadowRootElement.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/theme/components.d.ts +2 -2
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/src/theme/createOdysseyMuiTheme.d.ts +2 -2
- package/dist/theme/components.js +18 -15
- package/dist/theme/components.js.map +1 -1
- package/dist/theme/createOdysseyMuiTheme.js +2 -2
- package/dist/theme/createOdysseyMuiTheme.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/OdysseyCacheProvider.tsx +12 -2
- package/src/OdysseyProvider.tsx +3 -4
- package/src/OdysseyThemeProvider.tsx +4 -4
- package/src/PasswordField.tsx +1 -1
- package/src/Select.tsx +64 -45
- package/src/Tooltip.tsx +7 -2
- package/src/createShadowRootElement.ts +21 -0
- package/src/index.ts +1 -0
- package/src/theme/components.tsx +19 -16
- package/src/theme/createOdysseyMuiTheme.ts +3 -3
- package/dist/createShadowDom.js.map +0 -1
- package/dist/src/createShadowDom.d.ts.map +0 -1
- package/src/createShadowDom.ts +0 -46
package/dist/src/Select.d.ts
CHANGED
|
@@ -17,11 +17,16 @@ export type SelectOption = {
|
|
|
17
17
|
type?: "heading" | "option";
|
|
18
18
|
value?: string;
|
|
19
19
|
};
|
|
20
|
-
export type
|
|
20
|
+
export type SelectValueType<HasMultipleChoices> = HasMultipleChoices extends true ? string[] : string;
|
|
21
|
+
export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean> = {
|
|
21
22
|
/**
|
|
22
23
|
* The error message for the Select
|
|
23
24
|
*/
|
|
24
25
|
errorMessage?: string;
|
|
26
|
+
/**
|
|
27
|
+
* If `true`, the Select allows multiple selections
|
|
28
|
+
*/
|
|
29
|
+
hasMultipleChoices?: HasMultipleChoices;
|
|
25
30
|
/**
|
|
26
31
|
* The hint text for the Select
|
|
27
32
|
*/
|
|
@@ -35,9 +40,10 @@ export type SelectProps = {
|
|
|
35
40
|
*/
|
|
36
41
|
isDisabled?: boolean;
|
|
37
42
|
/**
|
|
38
|
-
*
|
|
43
|
+
* @deprecated Use `hasMultipleChoices` instead.
|
|
39
44
|
*/
|
|
40
|
-
|
|
45
|
+
/** **Deprecated:** use `hasMultipleChoices` */
|
|
46
|
+
isMultiSelect?: HasMultipleChoices;
|
|
41
47
|
/**
|
|
42
48
|
* If `true`, the Select is optional
|
|
43
49
|
*/
|
|
@@ -53,15 +59,15 @@ export type SelectProps = {
|
|
|
53
59
|
/**
|
|
54
60
|
* Callback fired when the Select loses focus
|
|
55
61
|
*/
|
|
56
|
-
onBlur?: MuiSelectProps["onBlur"];
|
|
62
|
+
onBlur?: MuiSelectProps<Value>["onBlur"];
|
|
57
63
|
/**
|
|
58
64
|
* Callback fired when the value of the Select changes
|
|
59
65
|
*/
|
|
60
|
-
onChange?: MuiSelectProps["onChange"];
|
|
66
|
+
onChange?: MuiSelectProps<Value>["onChange"];
|
|
61
67
|
/**
|
|
62
68
|
* Callback fired when the Select gains focus
|
|
63
69
|
*/
|
|
64
|
-
onFocus?: MuiSelectProps["onFocus"];
|
|
70
|
+
onFocus?: MuiSelectProps<Value>["onFocus"];
|
|
65
71
|
/**
|
|
66
72
|
* The options for the Select
|
|
67
73
|
*/
|
|
@@ -69,8 +75,8 @@ export type SelectProps = {
|
|
|
69
75
|
/**
|
|
70
76
|
* The value or values selected in the Select
|
|
71
77
|
*/
|
|
72
|
-
value?:
|
|
78
|
+
value?: Value;
|
|
73
79
|
} & SeleniumProps;
|
|
74
|
-
declare const MemoizedSelect: import("react").MemoExoticComponent<({ errorMessage, hint, id: idOverride, isDisabled, isMultiSelect, isOptional, label, name: nameOverride, onBlur, onChange: onChangeProp, onFocus,
|
|
80
|
+
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)>;
|
|
75
81
|
export { MemoizedSelect as Select };
|
|
76
82
|
//# sourceMappingURL=Select.d.ts.map
|
package/dist/src/Select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select.tsx"],"names":[],"mappings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;;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,aAAa,CAAC;AAkMlB,QAAA,MAAM,cAAc,+YAAe,CAAC;AAGpC,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,CAAC"}
|
package/dist/src/Tooltip.d.ts
CHANGED
|
@@ -30,5 +30,6 @@ export type TooltipProps = {
|
|
|
30
30
|
*/
|
|
31
31
|
text: string;
|
|
32
32
|
} & SeleniumProps;
|
|
33
|
-
|
|
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,
|
|
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
|
|
13
|
-
|
|
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"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from "./Callout";
|
|
|
45
45
|
export * from "./Checkbox";
|
|
46
46
|
export * from "./CheckboxGroup";
|
|
47
47
|
export * from "./CircularProgress";
|
|
48
|
+
export * from "./createShadowRootElement";
|
|
48
49
|
export * from "./createUniqueId";
|
|
49
50
|
export * from "./Dialog";
|
|
50
51
|
export * from "./Fieldset";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -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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AAgB,CAAC;AAC/B,cAAc,UAAU,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,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,
|
|
14
|
+
export declare const components: ({ odysseyTokens, shadowDomElement, }: {
|
|
15
15
|
odysseyTokens: DesignTokens;
|
|
16
|
-
|
|
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,
|
|
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,CAq4E5B,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,
|
|
19
|
+
export declare const createOdysseyMuiTheme: ({ odysseyTokens, shadowDomElement, }: {
|
|
20
20
|
odysseyTokens: DesignTokens;
|
|
21
|
-
|
|
21
|
+
shadowDomElement?: HTMLDivElement | undefined;
|
|
22
22
|
}) => import("@mui/material/styles").Theme;
|
|
23
23
|
//# sourceMappingURL=createOdysseyMuiTheme.d.ts.map
|
package/dist/theme/components.js
CHANGED
|
@@ -39,7 +39,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
39
39
|
export const components = _ref => {
|
|
40
40
|
let {
|
|
41
41
|
odysseyTokens,
|
|
42
|
-
|
|
42
|
+
shadowDomElement
|
|
43
43
|
} = _ref;
|
|
44
44
|
return {
|
|
45
45
|
MuiAccordion: {
|
|
@@ -738,7 +738,7 @@ export const components = _ref => {
|
|
|
738
738
|
[`&.${chipClasses.disabled}`]: {
|
|
739
739
|
opacity: 1,
|
|
740
740
|
pointerEvents: "none",
|
|
741
|
-
backgroundColor: odysseyTokens.
|
|
741
|
+
backgroundColor: odysseyTokens.HueNeutral200,
|
|
742
742
|
color: odysseyTokens.TypographyColorDisabled
|
|
743
743
|
},
|
|
744
744
|
...(ownerState.clickable && {
|
|
@@ -841,7 +841,11 @@ export const components = _ref => {
|
|
|
841
841
|
};
|
|
842
842
|
},
|
|
843
843
|
label: {
|
|
844
|
-
padding: 0
|
|
844
|
+
padding: 0,
|
|
845
|
+
[`.${inputBaseClasses.root}.${inputBaseClasses.disabled} &`]: {
|
|
846
|
+
color: odysseyTokens.TypographyColorDisabled,
|
|
847
|
+
WebkitTextFillColor: odysseyTokens.TypographyColorDisabled
|
|
848
|
+
}
|
|
845
849
|
},
|
|
846
850
|
deleteIcon: {
|
|
847
851
|
WebkitTapHighlightColor: "transparent",
|
|
@@ -1561,7 +1565,7 @@ export const components = _ref => {
|
|
|
1561
1565
|
styleOverrides: {
|
|
1562
1566
|
root: {
|
|
1563
1567
|
color: odysseyTokens.TypographyColorAction,
|
|
1564
|
-
textDecoration: "
|
|
1568
|
+
textDecoration: "none",
|
|
1565
1569
|
cursor: "pointer",
|
|
1566
1570
|
"&:visited": {
|
|
1567
1571
|
color: odysseyTokens.TypographyColorAction
|
|
@@ -1584,10 +1588,10 @@ export const components = _ref => {
|
|
|
1584
1588
|
lineHeight: 1
|
|
1585
1589
|
},
|
|
1586
1590
|
".Link-indicator": {
|
|
1587
|
-
marginInlineStart: odysseyTokens.
|
|
1591
|
+
marginInlineStart: odysseyTokens.Spacing1
|
|
1588
1592
|
},
|
|
1589
1593
|
".Link-icon": {
|
|
1590
|
-
marginInlineEnd: odysseyTokens.
|
|
1594
|
+
marginInlineEnd: odysseyTokens.Spacing1
|
|
1591
1595
|
},
|
|
1592
1596
|
svg: {
|
|
1593
1597
|
fontSize: "1em",
|
|
@@ -1722,7 +1726,7 @@ export const components = _ref => {
|
|
|
1722
1726
|
},
|
|
1723
1727
|
MuiModal: {
|
|
1724
1728
|
defaultProps: {
|
|
1725
|
-
container:
|
|
1729
|
+
container: shadowDomElement
|
|
1726
1730
|
}
|
|
1727
1731
|
},
|
|
1728
1732
|
MuiNativeSelect: {
|
|
@@ -1757,7 +1761,7 @@ export const components = _ref => {
|
|
|
1757
1761
|
},
|
|
1758
1762
|
MuiPopover: {
|
|
1759
1763
|
defaultProps: {
|
|
1760
|
-
container:
|
|
1764
|
+
container: shadowDomElement
|
|
1761
1765
|
},
|
|
1762
1766
|
styleOverrides: {
|
|
1763
1767
|
paper: {
|
|
@@ -1770,7 +1774,7 @@ export const components = _ref => {
|
|
|
1770
1774
|
},
|
|
1771
1775
|
MuiPopper: {
|
|
1772
1776
|
defaultProps: {
|
|
1773
|
-
container:
|
|
1777
|
+
container: shadowDomElement
|
|
1774
1778
|
}
|
|
1775
1779
|
},
|
|
1776
1780
|
MuiRadio: {
|
|
@@ -1935,17 +1939,16 @@ export const components = _ref => {
|
|
|
1935
1939
|
maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
|
|
1936
1940
|
minWidth: "unset",
|
|
1937
1941
|
minHeight: "unset",
|
|
1938
|
-
padding: `${odysseyTokens.Spacing4}
|
|
1942
|
+
padding: `${odysseyTokens.Spacing4} ${odysseyTokens.Spacing1}`,
|
|
1943
|
+
fontSize: odysseyTokens.TypographySizeHeading6,
|
|
1939
1944
|
fontFamily: odysseyTokens.TypographyFamilyHeading,
|
|
1940
1945
|
lineHeight: odysseyTokens.TypographyLineHeightUi,
|
|
1941
1946
|
overflow: "visible",
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
opacity: 1
|
|
1945
|
-
}),
|
|
1947
|
+
color: odysseyTokens.HueNeutral600,
|
|
1948
|
+
opacity: 1,
|
|
1946
1949
|
...(ownerState.selected == true && {
|
|
1947
1950
|
color: odysseyTokens.TypographyColorAction,
|
|
1948
|
-
fontWeight: odysseyTokens.
|
|
1951
|
+
fontWeight: odysseyTokens.TypographyWeightHeading
|
|
1949
1952
|
}),
|
|
1950
1953
|
...(ownerState.disabled && {
|
|
1951
1954
|
color: odysseyTokens.TypographyColorDisabled
|