@okta/odyssey-react-mui 1.9.9 → 1.9.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/@types/react-augment.d.js.map +1 -1
- package/dist/Button.js +12 -1
- package/dist/Button.js.map +1 -1
- package/dist/Checkbox.js +12 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/Link.js +12 -1
- package/dist/Link.js.map +1 -1
- package/dist/PasswordField.js +12 -1
- package/dist/PasswordField.js.map +1 -1
- package/dist/Radio.js +12 -1
- package/dist/Radio.js.map +1 -1
- package/dist/Select.js +12 -1
- package/dist/Select.js.map +1 -1
- package/dist/TextField.js +12 -1
- package/dist/TextField.js.map +1 -1
- package/dist/Typography.js +13 -1
- package/dist/Typography.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/labs/Switch.js +157 -0
- package/dist/labs/Switch.js.map +1 -0
- package/dist/labs/index.js +1 -0
- package/dist/labs/index.js.map +1 -1
- package/dist/src/Button.d.ts +6 -1
- package/dist/src/Button.d.ts.map +1 -1
- package/dist/src/Checkbox.d.ts +6 -1
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/Link.d.ts +6 -1
- package/dist/src/Link.d.ts.map +1 -1
- package/dist/src/PasswordField.d.ts +9 -0
- package/dist/src/PasswordField.d.ts.map +1 -1
- package/dist/src/Radio.d.ts +6 -1
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/Select.d.ts +6 -1
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +9 -0
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Typography.d.ts +6 -1
- package/dist/src/Typography.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/labs/Switch.d.ts +41 -0
- package/dist/src/labs/Switch.d.ts.map +1 -0
- package/dist/src/labs/index.d.ts +1 -0
- package/dist/src/labs/index.d.ts.map +1 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +87 -28
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/@types/react-augment.d.ts +4 -0
- package/src/Button.tsx +28 -1
- package/src/Checkbox.tsx +22 -1
- package/src/Link.tsx +42 -19
- package/src/PasswordField.tsx +22 -0
- package/src/Radio.tsx +22 -2
- package/src/Select.tsx +30 -1
- package/src/TextField.tsx +22 -0
- package/src/Typography.tsx +30 -1
- package/src/index.ts +1 -0
- package/src/labs/Switch.tsx +246 -0
- package/src/labs/index.ts +2 -0
- package/src/theme/components.tsx +56 -0
package/dist/src/Select.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import { SelectProps as MuiSelectProps } from "@mui/material";
|
|
14
14
|
import { FieldComponentProps } from "./FieldComponentProps";
|
|
15
15
|
import type { SeleniumProps } from "./SeleniumProps";
|
|
16
|
+
import { FocusHandle } from "./@types/react-augment";
|
|
16
17
|
export type SelectOption = {
|
|
17
18
|
text: string;
|
|
18
19
|
type?: "heading" | "option";
|
|
@@ -28,6 +29,10 @@ export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMu
|
|
|
28
29
|
* If `true`, the Select allows multiple selections
|
|
29
30
|
*/
|
|
30
31
|
hasMultipleChoices?: HasMultipleChoices;
|
|
32
|
+
/**
|
|
33
|
+
* The ref forwarded to the Select to expose focus()
|
|
34
|
+
*/
|
|
35
|
+
inputFocusRef?: React.RefObject<FocusHandle>;
|
|
31
36
|
/**
|
|
32
37
|
* @deprecated Use `hasMultipleChoices` instead.
|
|
33
38
|
*/
|
|
@@ -58,6 +63,6 @@ export type SelectProps<Value extends SelectValueType<HasMultipleChoices>, HasMu
|
|
|
58
63
|
*/
|
|
59
64
|
value?: Value;
|
|
60
65
|
} & Pick<FieldComponentProps, "errorMessage" | "hint" | "HintLinkComponent" | "id" | "isDisabled" | "isFullWidth" | "isOptional" | "name"> & SeleniumProps;
|
|
61
|
-
declare const MemoizedSelect: import("react").MemoExoticComponent<(<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean>({ defaultValue, errorMessage, hasMultipleChoices: hasMultipleChoicesProp, hint, HintLinkComponent, id: idOverride, isDisabled, isFullWidth, isMultiSelect, isOptional, label, name: nameOverride, onBlur, onChange: onChangeProp, onFocus, options, testId, value, }: SelectProps<Value, HasMultipleChoices>) => JSX.Element)>;
|
|
66
|
+
declare const MemoizedSelect: import("react").MemoExoticComponent<(<Value extends SelectValueType<HasMultipleChoices>, HasMultipleChoices extends boolean>({ defaultValue, errorMessage, hasMultipleChoices: hasMultipleChoicesProp, hint, HintLinkComponent, id: idOverride, inputFocusRef, isDisabled, isFullWidth, isMultiSelect, isOptional, label, name: nameOverride, onBlur, onChange: onChangeProp, onFocus, options, testId, value, }: SelectProps<Value, HasMultipleChoices>) => JSX.Element)>;
|
|
62
67
|
export { MemoizedSelect as Select };
|
|
63
68
|
//# 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":"AAAA;;;;;;;;;;GAUG;;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAoBH,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAG9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,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.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ChangeEventHandler, FocusEventHandler, InputHTMLAttributes, ReactElement } from "react";
|
|
13
13
|
import { FieldComponentProps } from "./FieldComponentProps";
|
|
14
14
|
import { SeleniumProps } from "./SeleniumProps";
|
|
15
|
+
import { FocusHandle } from "./@types/react-augment";
|
|
15
16
|
export declare const textFieldTypeValues: readonly ["email", "number", "tel", "text", "url"];
|
|
16
17
|
export type TextFieldProps = {
|
|
17
18
|
/**
|
|
@@ -32,6 +33,10 @@ export type TextFieldProps = {
|
|
|
32
33
|
* If `true`, the component will receive focus automatically.
|
|
33
34
|
*/
|
|
34
35
|
hasInitialFocus?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The ref forwarded to the TextField to expose focus()
|
|
38
|
+
*/
|
|
39
|
+
inputFocusRef?: React.RefObject<FocusHandle>;
|
|
35
40
|
/**
|
|
36
41
|
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
37
42
|
*/
|
|
@@ -88,6 +93,10 @@ declare const MemoizedTextField: import("react").MemoExoticComponent<import("rea
|
|
|
88
93
|
* If `true`, the component will receive focus automatically.
|
|
89
94
|
*/
|
|
90
95
|
hasInitialFocus?: boolean | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* The ref forwarded to the TextField to expose focus()
|
|
98
|
+
*/
|
|
99
|
+
inputFocusRef?: import("react").RefObject<FocusHandle> | undefined;
|
|
91
100
|
/**
|
|
92
101
|
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
93
102
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../src/TextField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAEjB,mBAAmB,EAEnB,YAAY,
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot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AC,MAAM,CAAC,CAAC;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,mBAAmB,GACrB,aAAa,CAAC;AA8IhB,QAAA,MAAM,iBAAiB;IAzMrB;;;;OAIG;uBACgB,oBAAoB,gBAAgB,CAAC,CAAC,cAAc,CAAC;IACxE;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;WACI,MAAM;IACb;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;2FAiJoC,CAAC;AAG1C,OAAO,EAAE,iBAAiB,IAAI,SAAS,EAAE,CAAC"}
|
package/dist/src/Typography.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { TypographyProps as MuiTypographyProps } from "@mui/material";
|
|
13
13
|
import { ElementType, ReactNode } from "react";
|
|
14
14
|
import { SeleniumProps } from "./SeleniumProps";
|
|
15
|
+
import { FocusHandle } from "./@types/react-augment";
|
|
15
16
|
export type TypographyVariantValue = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "body" | "subordinate" | "support" | "legend";
|
|
16
17
|
export declare const typographyVariantMapping: Record<TypographyVariantValue, MuiTypographyProps["variant"]>;
|
|
17
18
|
export declare const typographyColorValues: readonly ["primary", "textPrimary", "secondary", "textSecondary", "error"];
|
|
@@ -40,12 +41,16 @@ export type TypographyProps = {
|
|
|
40
41
|
* The HTML element the component should render, if different from the default.
|
|
41
42
|
*/
|
|
42
43
|
component?: ElementType;
|
|
44
|
+
/**
|
|
45
|
+
* The ref forwarded to the Typography to expose focus()
|
|
46
|
+
*/
|
|
47
|
+
typographyFocusRef?: React.RefObject<FocusHandle>;
|
|
43
48
|
/**
|
|
44
49
|
* The variant of Typography to render.
|
|
45
50
|
*/
|
|
46
51
|
variant?: keyof typeof typographyVariantMapping;
|
|
47
52
|
} & SeleniumProps;
|
|
48
|
-
declare const MemoizedTypography: import("react").MemoExoticComponent<({ ariaDescribedBy, ariaLabel, ariaLabelledBy, children, color, component: componentProp, testId, variant, }: TypographyProps) => JSX.Element>;
|
|
53
|
+
declare const MemoizedTypography: import("react").MemoExoticComponent<({ ariaDescribedBy, ariaLabel, ariaLabelledBy, children, color, component: componentProp, testId, typographyFocusRef, variant, }: TypographyProps) => JSX.Element>;
|
|
49
54
|
declare const MemoizedHeading1: import("react").MemoExoticComponent<({ ariaDescribedBy, ariaLabel, ariaLabelledBy, children, color, component, testId, }: TypographyProps) => JSX.Element>;
|
|
50
55
|
declare const MemoizedHeading2: import("react").MemoExoticComponent<({ ariaDescribedBy, ariaLabel, ariaLabelledBy, children, color, component, testId, }: TypographyProps) => JSX.Element>;
|
|
51
56
|
declare const MemoizedHeading3: import("react").MemoExoticComponent<({ ariaDescribedBy, ariaLabel, ariaLabelledBy, children, color, component, testId, }: TypographyProps) => JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAEL,eAAe,IAAI,kBAAkB,EACtC,MAAM,eAAe,CAAC;AACvB,OAAO,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAEL,eAAe,IAAI,kBAAkB,EACtC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,WAAW,EACX,SAAS,EAKV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAC9B,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM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,QAAA,MAAM,eAAe,4HAblB,eAAe,iBAamB,CAAC;AAwBtC,QAAA,MAAM,cAAc,4HAbjB,eAAe,iBAaiB,CAAC;AAGpC,OAAO,EACL,kBAAkB,IAAI,UAAU,EAChC,gBAAgB,IAAI,QAAQ,EAC5B,gBAAgB,IAAI,QAAQ,EAC5B,gBAAgB,IAAI,QAAQ,EAC5B,gBAAgB,IAAI,QAAQ,EAC5B,gBAAgB,IAAI,QAAQ,EAC5B,gBAAgB,IAAI,QAAQ,EAC5B,cAAc,IAAI,MAAM,EACxB,iBAAiB,IAAI,SAAS,EAC9B,mBAAmB,IAAI,WAAW,EAClC,eAAe,IAAI,OAAO,GAC3B,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
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,WAAW;AACX,4FAA4F;AAC5F,iBAAiB;AACjB,4FAA4F;AAC5F,OAAO;AACP,4FAA4F;AAC5F,cAAc;AACd,4FAA4F;AAC5F,SAAS;AACT,4FAA4F;AAC5F,YAAY;AACZ,4FAA4F;AAC5F,YAAY;AACZ,4FAA4F;AAC5F,aAAa;AACb,4FAA4F;AAC5F,QAAQ;AACR,4FAA4F;AAC5F,KAAK;AACL,4FAA4F;AAC5F,iBAAiB,EACjB,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,YAAY,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B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Ac,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,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
/// <reference types="react" />
|
|
13
|
+
import { SwitchProps as MuiSwitchProps } from "@mui/material";
|
|
14
|
+
import { FieldComponentProps } from "../FieldComponentProps";
|
|
15
|
+
import type { SeleniumProps } from "../SeleniumProps";
|
|
16
|
+
import { CheckedFieldProps } from "../FormCheckedProps";
|
|
17
|
+
type OnChangeCallbackArguments = {
|
|
18
|
+
checked: boolean;
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
export type SwitchProps = {
|
|
22
|
+
/**
|
|
23
|
+
* if `true`, the label and switch span entire containing element's width
|
|
24
|
+
*/
|
|
25
|
+
isFullWidth?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The label text for the Switch
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* The change event handler for the Switch
|
|
32
|
+
*/
|
|
33
|
+
onChange?: ({ checked, value }: OnChangeCallbackArguments) => void;
|
|
34
|
+
/**
|
|
35
|
+
* The value attribute of the Switch
|
|
36
|
+
*/
|
|
37
|
+
value: string;
|
|
38
|
+
} & Pick<FieldComponentProps, "hint" | "id" | "isFullWidth" | "isDisabled" | "name"> & CheckedFieldProps<MuiSwitchProps> & SeleniumProps;
|
|
39
|
+
declare const MemoizedSwitch: import("react").MemoExoticComponent<({ hint, id: _id, isChecked, isDefaultChecked, isDisabled, isFullWidth, label, name: _name, onChange, testId, value, }: SwitchProps) => JSX.Element>;
|
|
40
|
+
export { MemoizedSwitch as Switch };
|
|
41
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/labs/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAWH,OAAO,EAEL,WAAW,IAAI,cAAc,EAE9B,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CACN,mBAAmB,EACnB,MAAM,GAAG,IAAI,GAAG,aAAa,GAAG,YAAY,GAAG,MAAM,CACtD,GACC,iBAAiB,CAAC,cAAc,CAAC,GACjC,aAAa,CAAC;AAkLhB,QAAA,MAAM,cAAc,8JA1GjB,WAAW,iBA0GqB,CAAC;AAGpC,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,CAAC"}
|
package/dist/src/labs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/labs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAE9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/labs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAE9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAE1C,cAAc,UAAU,CAAC"}
|
|
@@ -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;AAoC7C,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;AAoC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAomF5B,CAAC"}
|
package/dist/theme/components.js
CHANGED
|
@@ -1237,6 +1237,65 @@ export const components = _ref => {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
},
|
|
1240
|
+
MuiSwitch: {
|
|
1241
|
+
styleOverrides: {
|
|
1242
|
+
root: {
|
|
1243
|
+
position: "relative",
|
|
1244
|
+
padding: `${odysseyTokens.Spacing0} 0`,
|
|
1245
|
+
width: odysseyTokens.Spacing7,
|
|
1246
|
+
height: odysseyTokens.Spacing5,
|
|
1247
|
+
overflow: "visible"
|
|
1248
|
+
},
|
|
1249
|
+
switchBase: _ref17 => {
|
|
1250
|
+
let {
|
|
1251
|
+
ownerState
|
|
1252
|
+
} = _ref17;
|
|
1253
|
+
return {
|
|
1254
|
+
top: odysseyTokens.Spacing1,
|
|
1255
|
+
left: odysseyTokens.Spacing1,
|
|
1256
|
+
padding: `${odysseyTokens.Spacing0} 0`,
|
|
1257
|
+
...(ownerState.checked === true && {
|
|
1258
|
+
color: `${odysseyTokens.HueNeutralWhite} !important`,
|
|
1259
|
+
transform: `translateX(${odysseyTokens.Spacing4}) !important`
|
|
1260
|
+
}),
|
|
1261
|
+
"&:hover": {
|
|
1262
|
+
backgroundColor: "transparent",
|
|
1263
|
+
...(ownerState.checked === true && {
|
|
1264
|
+
backgroundColor: "transparent !important"
|
|
1265
|
+
})
|
|
1266
|
+
},
|
|
1267
|
+
"&.Mui-focusVisible": {
|
|
1268
|
+
" + .MuiSwitch-track": {
|
|
1269
|
+
boxShadow: `0 0 0 2px ${odysseyTokens.HueNeutralWhite}, 0 0 0 4px ${odysseyTokens.PalettePrimaryMain}`
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1273
|
+
},
|
|
1274
|
+
thumb: {
|
|
1275
|
+
width: odysseyTokens.Spacing4,
|
|
1276
|
+
height: odysseyTokens.Spacing4,
|
|
1277
|
+
boxShadow: "none"
|
|
1278
|
+
},
|
|
1279
|
+
track: _ref18 => {
|
|
1280
|
+
let {
|
|
1281
|
+
ownerState
|
|
1282
|
+
} = _ref18;
|
|
1283
|
+
return {
|
|
1284
|
+
borderRadius: odysseyTokens.BorderRadiusRound,
|
|
1285
|
+
backgroundColor: `${odysseyTokens.HueNeutral300}`,
|
|
1286
|
+
opacity: 1,
|
|
1287
|
+
...(ownerState.checked === true && {
|
|
1288
|
+
opacity: "1 !important",
|
|
1289
|
+
backgroundColor: `${odysseyTokens.PaletteSuccessLight} !important`
|
|
1290
|
+
})
|
|
1291
|
+
};
|
|
1292
|
+
},
|
|
1293
|
+
input: {
|
|
1294
|
+
height: "44px",
|
|
1295
|
+
top: "-14px"
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1240
1299
|
MuiDialog: {
|
|
1241
1300
|
defaultProps: {
|
|
1242
1301
|
scroll: "paper"
|
|
@@ -1266,10 +1325,10 @@ export const components = _ref => {
|
|
|
1266
1325
|
},
|
|
1267
1326
|
MuiDialogContent: {
|
|
1268
1327
|
styleOverrides: {
|
|
1269
|
-
root:
|
|
1328
|
+
root: _ref19 => {
|
|
1270
1329
|
let {
|
|
1271
1330
|
ownerState
|
|
1272
|
-
} =
|
|
1331
|
+
} = _ref19;
|
|
1273
1332
|
return {
|
|
1274
1333
|
paddingBlock: 0,
|
|
1275
1334
|
paddingInline: odysseyTokens.Spacing6,
|
|
@@ -1322,10 +1381,10 @@ export const components = _ref => {
|
|
|
1322
1381
|
margin: "normal"
|
|
1323
1382
|
},
|
|
1324
1383
|
styleOverrides: {
|
|
1325
|
-
root:
|
|
1384
|
+
root: _ref20 => {
|
|
1326
1385
|
let {
|
|
1327
1386
|
ownerState
|
|
1328
|
-
} =
|
|
1387
|
+
} = _ref20;
|
|
1329
1388
|
return {
|
|
1330
1389
|
width: "100%",
|
|
1331
1390
|
maxWidth: odysseyTokens.TypographyLineLengthMax,
|
|
@@ -1355,10 +1414,10 @@ export const components = _ref => {
|
|
|
1355
1414
|
},
|
|
1356
1415
|
MuiFormControlLabel: {
|
|
1357
1416
|
styleOverrides: {
|
|
1358
|
-
root:
|
|
1417
|
+
root: _ref21 => {
|
|
1359
1418
|
let {
|
|
1360
1419
|
ownerState
|
|
1361
|
-
} =
|
|
1420
|
+
} = _ref21;
|
|
1362
1421
|
return {
|
|
1363
1422
|
gap: odysseyTokens.Spacing2,
|
|
1364
1423
|
marginInlineStart: 0,
|
|
@@ -1473,10 +1532,10 @@ export const components = _ref => {
|
|
|
1473
1532
|
},
|
|
1474
1533
|
MuiInputAdornment: {
|
|
1475
1534
|
styleOverrides: {
|
|
1476
|
-
root:
|
|
1535
|
+
root: _ref22 => {
|
|
1477
1536
|
let {
|
|
1478
1537
|
ownerState
|
|
1479
|
-
} =
|
|
1538
|
+
} = _ref22;
|
|
1480
1539
|
return {
|
|
1481
1540
|
display: "flex",
|
|
1482
1541
|
minWidth: "1.25em",
|
|
@@ -1503,11 +1562,11 @@ export const components = _ref => {
|
|
|
1503
1562
|
minRows: 3
|
|
1504
1563
|
},
|
|
1505
1564
|
styleOverrides: {
|
|
1506
|
-
root:
|
|
1565
|
+
root: _ref23 => {
|
|
1507
1566
|
let {
|
|
1508
1567
|
ownerState,
|
|
1509
1568
|
theme
|
|
1510
|
-
} =
|
|
1569
|
+
} = _ref23;
|
|
1511
1570
|
return {
|
|
1512
1571
|
...theme.typography.body1,
|
|
1513
1572
|
flex: "1",
|
|
@@ -1598,10 +1657,10 @@ export const components = _ref => {
|
|
|
1598
1657
|
shrink: false
|
|
1599
1658
|
},
|
|
1600
1659
|
styleOverrides: {
|
|
1601
|
-
root:
|
|
1660
|
+
root: _ref24 => {
|
|
1602
1661
|
let {
|
|
1603
1662
|
ownerState
|
|
1604
|
-
} =
|
|
1663
|
+
} = _ref24;
|
|
1605
1664
|
return {
|
|
1606
1665
|
display: "flex",
|
|
1607
1666
|
justifyContent: "space-between",
|
|
@@ -1730,10 +1789,10 @@ export const components = _ref => {
|
|
|
1730
1789
|
},
|
|
1731
1790
|
MuiMenuItem: {
|
|
1732
1791
|
styleOverrides: {
|
|
1733
|
-
root:
|
|
1792
|
+
root: _ref25 => {
|
|
1734
1793
|
let {
|
|
1735
1794
|
ownerState
|
|
1736
|
-
} =
|
|
1795
|
+
} = _ref25;
|
|
1737
1796
|
return {
|
|
1738
1797
|
gap: odysseyTokens.Spacing2,
|
|
1739
1798
|
minHeight: "unset",
|
|
@@ -1856,10 +1915,10 @@ export const components = _ref => {
|
|
|
1856
1915
|
checkedIcon: _jsx(_Fragment, {})
|
|
1857
1916
|
},
|
|
1858
1917
|
styleOverrides: {
|
|
1859
|
-
root:
|
|
1918
|
+
root: _ref26 => {
|
|
1860
1919
|
let {
|
|
1861
1920
|
theme
|
|
1862
|
-
} =
|
|
1921
|
+
} = _ref26;
|
|
1863
1922
|
return {
|
|
1864
1923
|
width: `${odysseyTokens.TypographyLineHeightUi}em`,
|
|
1865
1924
|
height: `${odysseyTokens.TypographyLineHeightUi}em`,
|
|
@@ -1982,10 +2041,10 @@ export const components = _ref => {
|
|
|
1982
2041
|
color: "inherit"
|
|
1983
2042
|
},
|
|
1984
2043
|
styleOverrides: {
|
|
1985
|
-
root:
|
|
2044
|
+
root: _ref27 => {
|
|
1986
2045
|
let {
|
|
1987
2046
|
ownerState
|
|
1988
|
-
} =
|
|
2047
|
+
} = _ref27;
|
|
1989
2048
|
return {
|
|
1990
2049
|
fontSize: `${odysseyTokens.TypographyLineHeightUi}rem`,
|
|
1991
2050
|
...(ownerState.fontSize === "small" && {
|
|
@@ -2003,10 +2062,10 @@ export const components = _ref => {
|
|
|
2003
2062
|
iconPosition: "start"
|
|
2004
2063
|
},
|
|
2005
2064
|
styleOverrides: {
|
|
2006
|
-
root:
|
|
2065
|
+
root: _ref28 => {
|
|
2007
2066
|
let {
|
|
2008
2067
|
ownerState
|
|
2009
|
-
} =
|
|
2068
|
+
} = _ref28;
|
|
2010
2069
|
return {
|
|
2011
2070
|
maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
|
|
2012
2071
|
minWidth: "unset",
|
|
@@ -2076,10 +2135,10 @@ export const components = _ref => {
|
|
|
2076
2135
|
},
|
|
2077
2136
|
MuiTable: {
|
|
2078
2137
|
styleOverrides: {
|
|
2079
|
-
root:
|
|
2138
|
+
root: _ref29 => {
|
|
2080
2139
|
let {
|
|
2081
2140
|
ownerState
|
|
2082
|
-
} =
|
|
2141
|
+
} = _ref29;
|
|
2083
2142
|
return {
|
|
2084
2143
|
display: "table",
|
|
2085
2144
|
width: "auto",
|
|
@@ -2113,11 +2172,11 @@ export const components = _ref => {
|
|
|
2113
2172
|
},
|
|
2114
2173
|
MuiTableCell: {
|
|
2115
2174
|
styleOverrides: {
|
|
2116
|
-
root:
|
|
2175
|
+
root: _ref30 => {
|
|
2117
2176
|
let {
|
|
2118
2177
|
theme,
|
|
2119
2178
|
ownerState
|
|
2120
|
-
} =
|
|
2179
|
+
} = _ref30;
|
|
2121
2180
|
return {
|
|
2122
2181
|
...theme.typography.body1,
|
|
2123
2182
|
borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100}`,
|
|
@@ -2333,10 +2392,10 @@ export const components = _ref => {
|
|
|
2333
2392
|
color: odysseyTokens.TypographyColorBody
|
|
2334
2393
|
}
|
|
2335
2394
|
},
|
|
2336
|
-
icon:
|
|
2395
|
+
icon: _ref31 => {
|
|
2337
2396
|
let {
|
|
2338
2397
|
ownerState
|
|
2339
|
-
} =
|
|
2398
|
+
} = _ref31;
|
|
2340
2399
|
return {
|
|
2341
2400
|
...(ownerState.direction === "asc" && {
|
|
2342
2401
|
transform: "rotate(180deg) !important"
|
|
@@ -2365,10 +2424,10 @@ export const components = _ref => {
|
|
|
2365
2424
|
placement: "top"
|
|
2366
2425
|
},
|
|
2367
2426
|
styleOverrides: {
|
|
2368
|
-
tooltip:
|
|
2427
|
+
tooltip: _ref32 => {
|
|
2369
2428
|
let {
|
|
2370
2429
|
ownerState
|
|
2371
|
-
} =
|
|
2430
|
+
} = _ref32;
|
|
2372
2431
|
return {
|
|
2373
2432
|
maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} / 2)`,
|
|
2374
2433
|
paddingBlock: odysseyTokens.Spacing2,
|