@okta/odyssey-react-mui 1.6.1 → 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.
- package/CHANGELOG.md +4 -0
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Checkbox.js +3 -2
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/FieldComponentProps.js +2 -0
- package/dist/FieldComponentProps.js.map +1 -0
- 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/SearchField.js.map +1 -1
- package/dist/Select.js.map +1 -1
- package/dist/TextField.js +1 -0
- package/dist/TextField.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/src/Autocomplete.d.ts +2 -21
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Checkbox.d.ts +2 -13
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +2 -13
- package/dist/src/CheckboxGroup.d.ts.map +1 -1
- package/dist/src/FieldComponentProps.d.ts +42 -0
- package/dist/src/FieldComponentProps.d.ts.map +1 -0
- package/dist/src/NativeSelect.d.ts +3 -42
- package/dist/src/NativeSelect.d.ts.map +1 -1
- package/dist/src/PasswordField.d.ts +3 -58
- package/dist/src/PasswordField.d.ts.map +1 -1
- package/dist/src/Radio.d.ts +2 -9
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/RadioGroup.d.ts +2 -21
- package/dist/src/RadioGroup.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +3 -26
- package/dist/src/SearchField.d.ts.map +1 -1
- package/dist/src/Select.d.ts +2 -25
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +3 -58
- package/dist/src/TextField.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/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +75 -58
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/Autocomplete.tsx +6 -21
- package/src/Checkbox.tsx +6 -16
- package/src/CheckboxGroup.tsx +3 -13
- package/src/FieldComponentProps.ts +42 -0
- package/src/NativeSelect.tsx +6 -22
- package/src/PasswordField.tsx +3 -29
- package/src/Radio.tsx +3 -9
- package/src/RadioGroup.tsx +6 -21
- package/src/SearchField.tsx +3 -13
- package/src/Select.tsx +8 -26
- package/src/TextField.tsx +4 -30
- package/src/index.ts +1 -0
- package/src/theme/components.tsx +18 -2
package/dist/src/Checkbox.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/// <reference types="react" />
|
|
13
13
|
import { CheckboxProps as MuiCheckboxProps } from "@mui/material";
|
|
14
|
+
import { FieldComponentProps } from "./FieldComponentProps";
|
|
14
15
|
import type { SeleniumProps } from "./SeleniumProps";
|
|
15
16
|
export declare const checkboxValidityValues: readonly ["valid", "invalid", "inherit"];
|
|
16
17
|
export type CheckboxProps = {
|
|
@@ -22,18 +23,10 @@ export type CheckboxProps = {
|
|
|
22
23
|
* The ID of the element that labels the Checkbox
|
|
23
24
|
*/
|
|
24
25
|
ariaLabelledBy?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The id of the `input` element.
|
|
27
|
-
*/
|
|
28
|
-
id?: string;
|
|
29
26
|
/**
|
|
30
27
|
* Determines whether the Checkbox is checked
|
|
31
28
|
*/
|
|
32
29
|
isDefaultChecked?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Determines whether the Checkbox is disabled
|
|
35
|
-
*/
|
|
36
|
-
isDisabled?: boolean;
|
|
37
30
|
/**
|
|
38
31
|
* Determines whether the Checkbox is in an indeterminate state
|
|
39
32
|
*/
|
|
@@ -46,10 +39,6 @@ export type CheckboxProps = {
|
|
|
46
39
|
* The label text for the Checkbox
|
|
47
40
|
*/
|
|
48
41
|
label?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The name of the `input` element. Defaults to the `id` if not set.
|
|
51
|
-
*/
|
|
52
|
-
name?: string;
|
|
53
42
|
/**
|
|
54
43
|
* The change event handler for the Checkbox
|
|
55
44
|
*/
|
|
@@ -62,7 +51,7 @@ export type CheckboxProps = {
|
|
|
62
51
|
* The value attribute of the Checkbox
|
|
63
52
|
*/
|
|
64
53
|
value?: string;
|
|
65
|
-
} & SeleniumProps;
|
|
54
|
+
} & Pick<FieldComponentProps, "id" | "isDisabled" | "name"> & SeleniumProps;
|
|
66
55
|
declare const MemoizedCheckbox: import("react").MemoExoticComponent<({ ariaLabel, ariaLabelledBy, id: idOverride, isDefaultChecked, isDisabled, isIndeterminate, isRequired, label: labelProp, name: nameOverride, onChange: onChangeProp, testId, validity, value, }: CheckboxProps) => JSX.Element>;
|
|
67
56
|
export { MemoizedCheckbox as Checkbox };
|
|
68
57
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAIH,OAAO,EAEL,aAAa,IAAI,gBAAgB,EAElC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,eAAO,MAAM,sBAAsB,0CAA2C,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;IACnD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,YAAY,GAAG,MAAM,CAAC,GACzD,aAAa,CAAC;AAsEhB,QAAA,MAAM,gBAAgB,yOAtDnB,aAAa,iBAsDuB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -11,24 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ReactElement } from "react";
|
|
13
13
|
import { Checkbox } from "./Checkbox";
|
|
14
|
+
import { FieldComponentProps } from "./FieldComponentProps";
|
|
14
15
|
import type { SeleniumProps } from "./SeleniumProps";
|
|
15
16
|
export type CheckboxGroupProps = {
|
|
16
17
|
/**
|
|
17
18
|
* A single Checkbox element or an array of Checkbox elements
|
|
18
19
|
*/
|
|
19
20
|
children: ReactElement<typeof Checkbox> | Array<ReactElement<typeof Checkbox>>;
|
|
20
|
-
/**
|
|
21
|
-
* The error message for the CheckboxGroup
|
|
22
|
-
*/
|
|
23
|
-
errorMessage?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The hint text for the CheckboxGroup
|
|
26
|
-
*/
|
|
27
|
-
hint?: string;
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, the CheckboxGroup is disabled
|
|
30
|
-
*/
|
|
31
|
-
isDisabled?: boolean;
|
|
32
21
|
/**
|
|
33
22
|
* If `true`, the CheckboxGroup is required
|
|
34
23
|
*/
|
|
@@ -37,7 +26,7 @@ export type CheckboxGroupProps = {
|
|
|
37
26
|
* The label text for the CheckboxGroup
|
|
38
27
|
*/
|
|
39
28
|
label: string;
|
|
40
|
-
} & SeleniumProps;
|
|
29
|
+
} & Pick<FieldComponentProps, "errorMessage" | "hint" | "isDisabled"> & SeleniumProps;
|
|
41
30
|
declare const MemoizedCheckboxGroup: import("react").MemoExoticComponent<({ children, errorMessage, hint, isDisabled, isRequired, label, testId, }: CheckboxGroupProps) => JSX.Element>;
|
|
42
31
|
export { MemoizedCheckboxGroup as CheckboxGroup };
|
|
43
32
|
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAQ,YAAY,EAAe,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EACJ,YAAY,CAAC,OAAO,QAAQ,CAAC,GAC7B,KAAK,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;IACzC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAQ,YAAY,EAAe,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,EACJ,YAAY,CAAC,OAAO,QAAQ,CAAC,GAC7B,KAAK,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,mBAAmB,EAAE,cAAc,GAAG,MAAM,GAAG,YAAY,CAAC,GACnE,aAAa,CAAC;AAuChB,QAAA,MAAM,qBAAqB,iHA7BxB,kBAAkB,iBA6B4B,CAAC;AAGlD,OAAO,EAAE,qBAAqB,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2021-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
|
+
export type FieldComponentProps = {
|
|
13
|
+
/**
|
|
14
|
+
* If `error` is not undefined, the `input` will indicate an error.
|
|
15
|
+
*/
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The helper text content.
|
|
19
|
+
*/
|
|
20
|
+
hint?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The id of the `input` element.
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the component is disabled.
|
|
27
|
+
*/
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If `true`, the `input` element is not required.
|
|
31
|
+
*/
|
|
32
|
+
isOptional?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* It prevents the user from changing the value of the field
|
|
35
|
+
*/
|
|
36
|
+
isReadOnly?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the `input` element. Defaults to the `id` if not set.
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=FieldComponentProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldComponentProps.d.ts","sourceRoot":"","sources":["../../src/FieldComponentProps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;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,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ReactElement } from "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 NativeSelectOption = {
|
|
16
17
|
text: string;
|
|
@@ -26,30 +27,10 @@ export type NativeSelectProps = {
|
|
|
26
27
|
* The default value of the NativeSelect. Only applicable if `value` is not provided
|
|
27
28
|
*/
|
|
28
29
|
defaultValue?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The error message for the NativeSelect
|
|
31
|
-
*/
|
|
32
|
-
errorMessage?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The hint text for the NativeSelect
|
|
35
|
-
*/
|
|
36
|
-
hint?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The id attribute of the NativeSelect
|
|
39
|
-
*/
|
|
40
|
-
id?: string;
|
|
41
|
-
/**
|
|
42
|
-
* If `true`, the NativeSelect is disabled
|
|
43
|
-
*/
|
|
44
|
-
isDisabled?: boolean;
|
|
45
30
|
/**
|
|
46
31
|
* If `true`, the NativeSelect allows multiple selections
|
|
47
32
|
*/
|
|
48
33
|
isMultiSelect?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* If `true`, the NativeSelect is optional
|
|
51
|
-
*/
|
|
52
|
-
isOptional?: boolean;
|
|
53
34
|
/**
|
|
54
35
|
* The label text for the NativeSelect
|
|
55
36
|
*/
|
|
@@ -70,7 +51,7 @@ export type NativeSelectProps = {
|
|
|
70
51
|
* The value or values selected in the NativeSelect
|
|
71
52
|
*/
|
|
72
53
|
value?: string | string[];
|
|
73
|
-
} & SeleniumProps;
|
|
54
|
+
} & Pick<FieldComponentProps, "errorMessage" | "hint" | "id" | "isDisabled" | "isOptional"> & SeleniumProps;
|
|
74
55
|
declare const MemoizedNativeSelect: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
75
56
|
/**
|
|
76
57
|
* The options or optgroup elements within the NativeSelect
|
|
@@ -80,30 +61,10 @@ declare const MemoizedNativeSelect: import("react").MemoExoticComponent<import("
|
|
|
80
61
|
* The default value of the NativeSelect. Only applicable if `value` is not provided
|
|
81
62
|
*/
|
|
82
63
|
defaultValue?: string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* The error message for the NativeSelect
|
|
85
|
-
*/
|
|
86
|
-
errorMessage?: string | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* The hint text for the NativeSelect
|
|
89
|
-
*/
|
|
90
|
-
hint?: string | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* The id attribute of the NativeSelect
|
|
93
|
-
*/
|
|
94
|
-
id?: string | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* If `true`, the NativeSelect is disabled
|
|
97
|
-
*/
|
|
98
|
-
isDisabled?: boolean | undefined;
|
|
99
64
|
/**
|
|
100
65
|
* If `true`, the NativeSelect allows multiple selections
|
|
101
66
|
*/
|
|
102
67
|
isMultiSelect?: boolean | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* If `true`, the NativeSelect is optional
|
|
105
|
-
*/
|
|
106
|
-
isOptional?: boolean | undefined;
|
|
107
68
|
/**
|
|
108
69
|
* The label text for the NativeSelect
|
|
109
70
|
*/
|
|
@@ -124,6 +85,6 @@ declare const MemoizedNativeSelect: import("react").MemoExoticComponent<import("
|
|
|
124
85
|
* The value or values selected in the NativeSelect
|
|
125
86
|
*/
|
|
126
87
|
value?: string | string[] | undefined;
|
|
127
|
-
} & SeleniumProps & import("react").RefAttributes<HTMLSelectElement>>>;
|
|
88
|
+
} & Pick<FieldComponentProps, "id" | "isDisabled" | "isOptional" | "errorMessage" | "hint"> & SeleniumProps & import("react").RefAttributes<HTMLSelectElement>>>;
|
|
128
89
|
export { MemoizedNativeSelect as NativeSelect };
|
|
129
90
|
//# sourceMappingURL=NativeSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSelect.d.ts","sourceRoot":"","sources":["../../src/NativeSelect.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAiC,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"NativeSelect.d.ts","sourceRoot":"","sources":["../../src/NativeSelect.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAiC,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAC7D;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B,GAAG,IAAI,CACN,mBAAmB,EACnB,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,YAAY,GAAG,YAAY,CAC7D,GACC,aAAa,CAAC;AA0EhB,QAAA,MAAM,oBAAoB;IA9GxB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;WACI,MAAM;IACb;;OAEG;aACM,cAAc,CAAC,QAAQ,CAAC;IACjC;;OAEG;eACQ,cAAc,CAAC,UAAU,CAAC;IACrC;;OAEG;cACO,cAAc,CAAC,SAAS,CAAC;IACnC;;OAEG;;gKAgF0C,CAAC;AAGhD,OAAO,EAAE,oBAAoB,IAAI,YAAY,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 } 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,
|
|
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,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,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,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;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,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,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"}
|
package/dist/src/Radio.d.ts
CHANGED
|
@@ -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
|
package/dist/src/Radio.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/src/RadioGroup.d.ts
CHANGED
|
@@ -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,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,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,
|
|
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,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,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;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,
|
|
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,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,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;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"}
|
package/dist/src/Select.d.ts
CHANGED
|
@@ -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.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;;AAYH,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAYH,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;AAErD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,kBAAkB,IAC5C,kBAAkB,SAAS,IAAI,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;AAEtD,MAAM,MAAM,WAAW,CACrB,KAAK,SAAS,eAAe,CAAC,kBAAkB,CAAC,EACjD,kBAAkB,SAAS,OAAO,IAChC;IACF;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;OAEG;IACH,+CAA+C;IAC/C,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,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"}
|