@pismo/marola 1.0.16 → 1.0.17
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.
|
@@ -432,7 +432,9 @@ const Ie = "_input_y5x3p_57", Oe = "_input__label_y5x3p_84", d = {
|
|
|
432
432
|
...a
|
|
433
433
|
}, H) => {
|
|
434
434
|
var u, w;
|
|
435
|
-
const [q, $] = ce(
|
|
435
|
+
const [q, $] = ce(
|
|
436
|
+
((u = a.value) == null ? void 0 : u.length) || ((w = a.defaultValue) == null ? void 0 : w.length) || 0
|
|
437
|
+
), L = _e(), U = v || `input_${L}`;
|
|
436
438
|
Object.assign(a, { "data-testid": C });
|
|
437
439
|
const t = E && !F, r = (p) => {
|
|
438
440
|
var Y, W;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
+
export type SelectContextProps = {
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
selectedValue?: string | string[] | null;
|
|
6
|
+
onChange?: (value: string | string[] | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
|
|
7
|
+
};
|
|
3
8
|
export type SelectOptionProps = {
|
|
4
9
|
disabled?: boolean;
|
|
5
10
|
value: string;
|
|
@@ -8,6 +13,8 @@ export type SelectOptionProps = {
|
|
|
8
13
|
className?: string;
|
|
9
14
|
'data-testid'?: string;
|
|
10
15
|
};
|
|
16
|
+
export declare const SelectContext: import('react').Context<SelectContextProps>;
|
|
17
|
+
export declare const useSelectContext: () => SelectContextProps;
|
|
11
18
|
export declare const SelectOption: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
19
|
export type SelectProps = {
|
|
13
20
|
children?: ReactNode;
|
|
@@ -17,14 +24,15 @@ export type SelectProps = {
|
|
|
17
24
|
className?: string;
|
|
18
25
|
name?: string;
|
|
19
26
|
id?: string;
|
|
20
|
-
value?: string;
|
|
27
|
+
value?: string | string[] | null;
|
|
21
28
|
label?: string;
|
|
29
|
+
multiple?: boolean;
|
|
22
30
|
classNameWrapper?: string;
|
|
23
31
|
classNameLabel?: string;
|
|
24
32
|
testIdLabel?: string;
|
|
25
33
|
testIdWrapper?: string;
|
|
26
34
|
'data-testid'?: string;
|
|
27
|
-
onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
|
|
35
|
+
onChange?: (value: string | string[] | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
|
|
28
36
|
fullWidth?: boolean;
|
|
29
37
|
/** Info message text */
|
|
30
38
|
infoMessage?: React.ReactNode;
|