@latty-ds/react 0.4.0 → 0.5.0
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/dist/components/Accordion/Accordion.d.ts +6 -2
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +16 -4
- package/dist/components/Checkbox/Checkbox.d.ts +6 -2
- package/dist/components/Chip/Chip.d.ts +2 -2
- package/dist/components/ColorInput/ColorInput.d.ts +6 -2
- package/dist/components/Combobox/Combobox.d.ts +6 -2
- package/dist/components/DateInput/DateInput.d.ts +6 -2
- package/dist/components/Datepicker/Datepicker.d.ts +12 -4
- package/dist/components/Dialog/Dialog.d.ts +8 -8
- package/dist/components/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/DropdownItem/DropdownItem.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +6 -2
- package/dist/components/Radio/Radio.d.ts +8 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -2
- package/dist/components/Select/Select.d.ts +6 -2
- package/dist/components/Slider/Slider.d.ts +12 -4
- package/dist/components/Snackbar/Snackbar.d.ts +6 -6
- package/dist/components/Switch/Switch.d.ts +6 -2
- package/dist/components/TabGroup/TabGroup.d.ts +6 -2
- package/dist/components/Table/Table.d.ts +2 -2
- package/dist/components/Textfield/Textfield.d.ts +12 -4
- package/dist/index.cjs +231 -231
- package/dist/index.d.ts +10 -10
- package/dist/index.js +243 -243
- package/package.json +4 -4
|
@@ -7,7 +7,9 @@ export type AccordionProps = Omit<HTMLAttributes<AccordionEl>, 'onToggle'> & {
|
|
|
7
7
|
open?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
uppercase?: boolean;
|
|
10
|
-
onToggle?: (
|
|
10
|
+
onToggle?: (detail: {
|
|
11
|
+
open: boolean;
|
|
12
|
+
}) => void;
|
|
11
13
|
};
|
|
12
14
|
export declare const Accordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<AccordionEl>, "onToggle"> & {
|
|
13
15
|
label?: string;
|
|
@@ -16,5 +18,7 @@ export declare const Accordion: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
16
18
|
open?: boolean;
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
uppercase?: boolean;
|
|
19
|
-
onToggle?: (
|
|
21
|
+
onToggle?: (detail: {
|
|
22
|
+
open: boolean;
|
|
23
|
+
}) => void;
|
|
20
24
|
} & import("react").RefAttributes<AccordionEl>>;
|
|
@@ -8,7 +8,7 @@ export type AlertProps = HTMLAttributes<AlertEl> & {
|
|
|
8
8
|
closable?: boolean;
|
|
9
9
|
background?: string;
|
|
10
10
|
uppercase?: boolean;
|
|
11
|
-
onClose?: (
|
|
11
|
+
onClose?: () => void;
|
|
12
12
|
};
|
|
13
13
|
export declare const Alert: import("react").ForwardRefExoticComponent<HTMLAttributes<AlertEl> & {
|
|
14
14
|
variant?: AlertEl["variant"];
|
|
@@ -18,5 +18,5 @@ export declare const Alert: import("react").ForwardRefExoticComponent<HTMLAttrib
|
|
|
18
18
|
closable?: boolean;
|
|
19
19
|
background?: string;
|
|
20
20
|
uppercase?: boolean;
|
|
21
|
-
onClose?: (
|
|
21
|
+
onClose?: () => void;
|
|
22
22
|
} & import("react").RefAttributes<AlertEl>>;
|
|
@@ -13,8 +13,14 @@ export type CalendarProps = Omit<HTMLAttributes<CalendarEl>, 'onChange'> & {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
months?: number;
|
|
15
15
|
disabledDates?: CalendarEl['disabledDates'];
|
|
16
|
-
onChange?: (
|
|
17
|
-
|
|
16
|
+
onChange?: (detail: {
|
|
17
|
+
valueStart: string;
|
|
18
|
+
valueEnd: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
onMonthChange?: (detail: {
|
|
21
|
+
year: number;
|
|
22
|
+
month: number;
|
|
23
|
+
}) => void;
|
|
18
24
|
};
|
|
19
25
|
export declare const Calendar: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<CalendarEl>, "onChange"> & {
|
|
20
26
|
mode?: CalendarEl["mode"];
|
|
@@ -29,6 +35,12 @@ export declare const Calendar: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
29
35
|
disabled?: boolean;
|
|
30
36
|
months?: number;
|
|
31
37
|
disabledDates?: CalendarEl["disabledDates"];
|
|
32
|
-
onChange?: (
|
|
33
|
-
|
|
38
|
+
onChange?: (detail: {
|
|
39
|
+
valueStart: string;
|
|
40
|
+
valueEnd: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
onMonthChange?: (detail: {
|
|
43
|
+
year: number;
|
|
44
|
+
month: number;
|
|
45
|
+
}) => void;
|
|
34
46
|
} & import("react").RefAttributes<CalendarEl>>;
|
|
@@ -12,7 +12,9 @@ export type CheckboxProps = Omit<HTMLAttributes<CheckboxEl>, 'onChange'> & {
|
|
|
12
12
|
labelPosition?: CheckboxEl['labelPosition'];
|
|
13
13
|
name?: string;
|
|
14
14
|
value?: string;
|
|
15
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
checked: boolean;
|
|
17
|
+
}) => void;
|
|
16
18
|
};
|
|
17
19
|
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<CheckboxEl>, "onChange"> & {
|
|
18
20
|
formAssociated?: boolean;
|
|
@@ -26,5 +28,7 @@ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
26
28
|
labelPosition?: CheckboxEl["labelPosition"];
|
|
27
29
|
name?: string;
|
|
28
30
|
value?: string;
|
|
29
|
-
onChange?: (
|
|
31
|
+
onChange?: (detail: {
|
|
32
|
+
checked: boolean;
|
|
33
|
+
}) => void;
|
|
30
34
|
} & import("react").RefAttributes<CheckboxEl>>;
|
|
@@ -7,7 +7,7 @@ export type ChipProps = HTMLAttributes<ChipEl> & {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
deletable?: boolean;
|
|
9
9
|
background?: string;
|
|
10
|
-
onDelete?: (
|
|
10
|
+
onDelete?: () => void;
|
|
11
11
|
};
|
|
12
12
|
export declare const Chip: import("react").ForwardRefExoticComponent<HTMLAttributes<ChipEl> & {
|
|
13
13
|
appearance?: ChipEl["appearance"];
|
|
@@ -16,5 +16,5 @@ export declare const Chip: import("react").ForwardRefExoticComponent<HTMLAttribu
|
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
deletable?: boolean;
|
|
18
18
|
background?: string;
|
|
19
|
-
onDelete?: (
|
|
19
|
+
onDelete?: () => void;
|
|
20
20
|
} & import("react").RefAttributes<ChipEl>>;
|
|
@@ -10,7 +10,9 @@ export type ColorInputProps = Omit<HTMLAttributes<ColorInputEl>, 'onChange'> & {
|
|
|
10
10
|
required?: boolean;
|
|
11
11
|
name?: string;
|
|
12
12
|
size?: ColorInputEl['size'];
|
|
13
|
-
onChange?: (
|
|
13
|
+
onChange?: (detail: {
|
|
14
|
+
value: string;
|
|
15
|
+
}) => void;
|
|
14
16
|
};
|
|
15
17
|
export declare const ColorInput: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<ColorInputEl>, "onChange"> & {
|
|
16
18
|
formAssociated?: boolean;
|
|
@@ -22,5 +24,7 @@ export declare const ColorInput: import("react").ForwardRefExoticComponent<Omit<
|
|
|
22
24
|
required?: boolean;
|
|
23
25
|
name?: string;
|
|
24
26
|
size?: ColorInputEl["size"];
|
|
25
|
-
onChange?: (
|
|
27
|
+
onChange?: (detail: {
|
|
28
|
+
value: string;
|
|
29
|
+
}) => void;
|
|
26
30
|
} & import("react").RefAttributes<ColorInputEl>>;
|
|
@@ -12,7 +12,9 @@ export type ComboboxProps = Omit<HTMLAttributes<ComboboxEl>, 'onChange'> & {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
required?: boolean;
|
|
14
14
|
name?: string;
|
|
15
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
16
18
|
};
|
|
17
19
|
export declare const Combobox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<ComboboxEl>, "onChange"> & {
|
|
18
20
|
formAssociated?: boolean;
|
|
@@ -26,5 +28,7 @@ export declare const Combobox: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
26
28
|
disabled?: boolean;
|
|
27
29
|
required?: boolean;
|
|
28
30
|
name?: string;
|
|
29
|
-
onChange?: (
|
|
31
|
+
onChange?: (detail: {
|
|
32
|
+
value: string;
|
|
33
|
+
}) => void;
|
|
30
34
|
} & import("react").RefAttributes<ComboboxEl>>;
|
|
@@ -17,7 +17,9 @@ export type DateInputProps = Omit<HTMLAttributes<DateInputEl>, 'onChange'> & {
|
|
|
17
17
|
required?: boolean;
|
|
18
18
|
name?: string;
|
|
19
19
|
disabledDates?: DateInputEl['disabledDates'];
|
|
20
|
-
onChange?: (
|
|
20
|
+
onChange?: (detail: {
|
|
21
|
+
value: string;
|
|
22
|
+
}) => void;
|
|
21
23
|
};
|
|
22
24
|
export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<DateInputEl>, "onChange"> & {
|
|
23
25
|
formAssociated?: boolean;
|
|
@@ -36,5 +38,7 @@ export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
36
38
|
required?: boolean;
|
|
37
39
|
name?: string;
|
|
38
40
|
disabledDates?: DateInputEl["disabledDates"];
|
|
39
|
-
onChange?: (
|
|
41
|
+
onChange?: (detail: {
|
|
42
|
+
value: string;
|
|
43
|
+
}) => void;
|
|
40
44
|
} & import("react").RefAttributes<DateInputEl>>;
|
|
@@ -14,8 +14,12 @@ export type DatepickerProps = Omit<HTMLAttributes<DatepickerEl>, 'onChange' | 'o
|
|
|
14
14
|
required?: boolean;
|
|
15
15
|
readonly?: boolean;
|
|
16
16
|
name?: string;
|
|
17
|
-
onChange?: (
|
|
18
|
-
|
|
17
|
+
onChange?: (detail: {
|
|
18
|
+
value: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
onInput?: (detail: {
|
|
21
|
+
value: string;
|
|
22
|
+
}) => void;
|
|
19
23
|
};
|
|
20
24
|
export declare const Datepicker: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<DatepickerEl>, "onChange" | "onInput"> & {
|
|
21
25
|
formAssociated?: boolean;
|
|
@@ -31,6 +35,10 @@ export declare const Datepicker: import("react").ForwardRefExoticComponent<Omit<
|
|
|
31
35
|
required?: boolean;
|
|
32
36
|
readonly?: boolean;
|
|
33
37
|
name?: string;
|
|
34
|
-
onChange?: (
|
|
35
|
-
|
|
38
|
+
onChange?: (detail: {
|
|
39
|
+
value: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
onInput?: (detail: {
|
|
42
|
+
value: string;
|
|
43
|
+
}) => void;
|
|
36
44
|
} & import("react").RefAttributes<DatepickerEl>>;
|
|
@@ -9,10 +9,10 @@ export type DialogProps = HTMLAttributes<DialogEl> & {
|
|
|
9
9
|
closeOnEscape?: boolean;
|
|
10
10
|
uppercase?: boolean;
|
|
11
11
|
backdropBlur?: boolean;
|
|
12
|
-
onDialogOpen?: (
|
|
13
|
-
onClose?: (
|
|
14
|
-
onDialogClose?: (
|
|
15
|
-
onOpen?: (
|
|
12
|
+
onDialogOpen?: () => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
onDialogClose?: () => void;
|
|
15
|
+
onOpen?: () => void;
|
|
16
16
|
};
|
|
17
17
|
export declare const Dialog: import("react").ForwardRefExoticComponent<HTMLAttributes<DialogEl> & {
|
|
18
18
|
size?: DialogEl["size"];
|
|
@@ -23,8 +23,8 @@ export declare const Dialog: import("react").ForwardRefExoticComponent<HTMLAttri
|
|
|
23
23
|
closeOnEscape?: boolean;
|
|
24
24
|
uppercase?: boolean;
|
|
25
25
|
backdropBlur?: boolean;
|
|
26
|
-
onDialogOpen?: (
|
|
27
|
-
onClose?: (
|
|
28
|
-
onDialogClose?: (
|
|
29
|
-
onOpen?: (
|
|
26
|
+
onDialogOpen?: () => void;
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
onDialogClose?: () => void;
|
|
29
|
+
onOpen?: () => void;
|
|
30
30
|
} & import("react").RefAttributes<DialogEl>>;
|
|
@@ -3,12 +3,12 @@ import type { Dropdown as DropdownEl } from '@latty-ds/web';
|
|
|
3
3
|
export type DropdownProps = HTMLAttributes<DropdownEl> & {
|
|
4
4
|
open?: boolean;
|
|
5
5
|
placement?: DropdownEl['placement'];
|
|
6
|
-
onOpen?: (
|
|
7
|
-
onClose?: (
|
|
6
|
+
onOpen?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
8
|
};
|
|
9
9
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<HTMLAttributes<DropdownEl> & {
|
|
10
10
|
open?: boolean;
|
|
11
11
|
placement?: DropdownEl["placement"];
|
|
12
|
-
onOpen?: (
|
|
13
|
-
onClose?: (
|
|
12
|
+
onOpen?: () => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
14
|
} & import("react").RefAttributes<DropdownEl>>;
|
|
@@ -4,11 +4,11 @@ export type DropdownItemProps = HTMLAttributes<DropdownItemEl> & {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
href?: string;
|
|
7
|
-
onSelect?: (
|
|
7
|
+
onSelect?: () => void;
|
|
8
8
|
};
|
|
9
9
|
export declare const DropdownItem: import("react").ForwardRefExoticComponent<HTMLAttributes<DropdownItemEl> & {
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
selected?: boolean;
|
|
12
12
|
href?: string;
|
|
13
|
-
onSelect?: (
|
|
13
|
+
onSelect?: () => void;
|
|
14
14
|
} & import("react").RefAttributes<DropdownItemEl>>;
|
|
@@ -5,12 +5,16 @@ export type PaginationProps = Omit<HTMLAttributes<PaginationEl>, 'onChange'> & {
|
|
|
5
5
|
totalPages?: number;
|
|
6
6
|
size?: PaginationEl['size'];
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
onChange?: (
|
|
8
|
+
onChange?: (detail: {
|
|
9
|
+
page: number;
|
|
10
|
+
}) => void;
|
|
9
11
|
};
|
|
10
12
|
export declare const Pagination: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<PaginationEl>, "onChange"> & {
|
|
11
13
|
page?: number;
|
|
12
14
|
totalPages?: number;
|
|
13
15
|
size?: PaginationEl["size"];
|
|
14
16
|
disabled?: boolean;
|
|
15
|
-
onChange?: (
|
|
17
|
+
onChange?: (detail: {
|
|
18
|
+
page: number;
|
|
19
|
+
}) => void;
|
|
16
20
|
} & import("react").RefAttributes<PaginationEl>>;
|
|
@@ -11,7 +11,10 @@ export type RadioProps = Omit<HTMLAttributes<RadioEl>, 'onChange'> & {
|
|
|
11
11
|
labelPosition?: RadioEl['labelPosition'];
|
|
12
12
|
name?: string;
|
|
13
13
|
value?: string;
|
|
14
|
-
onChange?: (
|
|
14
|
+
onChange?: (detail: {
|
|
15
|
+
value: string;
|
|
16
|
+
checked: boolean;
|
|
17
|
+
}) => void;
|
|
15
18
|
};
|
|
16
19
|
export declare const Radio: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<RadioEl>, "onChange"> & {
|
|
17
20
|
formAssociated?: boolean;
|
|
@@ -24,5 +27,8 @@ export declare const Radio: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
24
27
|
labelPosition?: RadioEl["labelPosition"];
|
|
25
28
|
name?: string;
|
|
26
29
|
value?: string;
|
|
27
|
-
onChange?: (
|
|
30
|
+
onChange?: (detail: {
|
|
31
|
+
value: string;
|
|
32
|
+
checked: boolean;
|
|
33
|
+
}) => void;
|
|
28
34
|
} & import("react").RefAttributes<RadioEl>>;
|
|
@@ -8,7 +8,9 @@ export type RadioGroupProps = Omit<HTMLAttributes<RadioGroupEl>, 'onChange'> & {
|
|
|
8
8
|
helperText?: string;
|
|
9
9
|
error?: boolean;
|
|
10
10
|
required?: boolean;
|
|
11
|
-
onChange?: (
|
|
11
|
+
onChange?: (detail: {
|
|
12
|
+
value: string;
|
|
13
|
+
}) => void;
|
|
12
14
|
};
|
|
13
15
|
export declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<RadioGroupEl>, "onChange"> & {
|
|
14
16
|
label?: string;
|
|
@@ -18,5 +20,7 @@ export declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<
|
|
|
18
20
|
helperText?: string;
|
|
19
21
|
error?: boolean;
|
|
20
22
|
required?: boolean;
|
|
21
|
-
onChange?: (
|
|
23
|
+
onChange?: (detail: {
|
|
24
|
+
value: string;
|
|
25
|
+
}) => void;
|
|
22
26
|
} & import("react").RefAttributes<RadioGroupEl>>;
|
|
@@ -12,7 +12,9 @@ export type SelectProps = Omit<HTMLAttributes<SelectEl>, 'onChange'> & {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
required?: boolean;
|
|
14
14
|
options?: SelectEl['options'];
|
|
15
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
16
18
|
};
|
|
17
19
|
export declare const Select: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<SelectEl>, "onChange"> & {
|
|
18
20
|
formAssociated?: boolean;
|
|
@@ -26,5 +28,7 @@ export declare const Select: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
26
28
|
disabled?: boolean;
|
|
27
29
|
required?: boolean;
|
|
28
30
|
options?: SelectEl["options"];
|
|
29
|
-
onChange?: (
|
|
31
|
+
onChange?: (detail: {
|
|
32
|
+
value: string;
|
|
33
|
+
}) => void;
|
|
30
34
|
} & import("react").RefAttributes<SelectEl>>;
|
|
@@ -11,8 +11,12 @@ export type SliderProps = Omit<HTMLAttributes<SliderEl>, 'onInput' | 'onChange'>
|
|
|
11
11
|
value?: number;
|
|
12
12
|
label?: string;
|
|
13
13
|
name?: string;
|
|
14
|
-
onInput?: (
|
|
15
|
-
|
|
14
|
+
onInput?: (detail: {
|
|
15
|
+
value: number;
|
|
16
|
+
}) => void;
|
|
17
|
+
onChange?: (detail: {
|
|
18
|
+
value: number;
|
|
19
|
+
}) => void;
|
|
16
20
|
};
|
|
17
21
|
export declare const Slider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<SliderEl>, "onChange" | "onInput"> & {
|
|
18
22
|
formAssociated?: boolean;
|
|
@@ -25,6 +29,10 @@ export declare const Slider: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
25
29
|
value?: number;
|
|
26
30
|
label?: string;
|
|
27
31
|
name?: string;
|
|
28
|
-
onInput?: (
|
|
29
|
-
|
|
32
|
+
onInput?: (detail: {
|
|
33
|
+
value: number;
|
|
34
|
+
}) => void;
|
|
35
|
+
onChange?: (detail: {
|
|
36
|
+
value: number;
|
|
37
|
+
}) => void;
|
|
30
38
|
} & import("react").RefAttributes<SliderEl>>;
|
|
@@ -7,9 +7,9 @@ export type SnackbarProps = HTMLAttributes<SnackbarEl> & {
|
|
|
7
7
|
closable?: boolean;
|
|
8
8
|
actionLabel?: string;
|
|
9
9
|
icon?: LattyIconName;
|
|
10
|
-
onShow?: (
|
|
11
|
-
onHide?: (
|
|
12
|
-
onAction?: (
|
|
10
|
+
onShow?: () => void;
|
|
11
|
+
onHide?: () => void;
|
|
12
|
+
onAction?: () => void;
|
|
13
13
|
};
|
|
14
14
|
export declare const Snackbar: import("react").ForwardRefExoticComponent<HTMLAttributes<SnackbarEl> & {
|
|
15
15
|
variant?: SnackbarEl["variant"];
|
|
@@ -18,7 +18,7 @@ export declare const Snackbar: import("react").ForwardRefExoticComponent<HTMLAtt
|
|
|
18
18
|
closable?: boolean;
|
|
19
19
|
actionLabel?: string;
|
|
20
20
|
icon?: LattyIconName;
|
|
21
|
-
onShow?: (
|
|
22
|
-
onHide?: (
|
|
23
|
-
onAction?: (
|
|
21
|
+
onShow?: () => void;
|
|
22
|
+
onHide?: () => void;
|
|
23
|
+
onAction?: () => void;
|
|
24
24
|
} & import("react").RefAttributes<SnackbarEl>>;
|
|
@@ -11,7 +11,9 @@ export type SwitchProps = Omit<HTMLAttributes<SwitchEl>, 'onChange'> & {
|
|
|
11
11
|
labelPosition?: SwitchEl['labelPosition'];
|
|
12
12
|
name?: string;
|
|
13
13
|
value?: string;
|
|
14
|
-
onChange?: (
|
|
14
|
+
onChange?: (detail: {
|
|
15
|
+
checked: boolean;
|
|
16
|
+
}) => void;
|
|
15
17
|
};
|
|
16
18
|
export declare const Switch: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<SwitchEl>, "onChange"> & {
|
|
17
19
|
formAssociated?: boolean;
|
|
@@ -24,5 +26,7 @@ export declare const Switch: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
24
26
|
labelPosition?: SwitchEl["labelPosition"];
|
|
25
27
|
name?: string;
|
|
26
28
|
value?: string;
|
|
27
|
-
onChange?: (
|
|
29
|
+
onChange?: (detail: {
|
|
30
|
+
checked: boolean;
|
|
31
|
+
}) => void;
|
|
28
32
|
} & import("react").RefAttributes<SwitchEl>>;
|
|
@@ -4,11 +4,15 @@ export type TabGroupProps = Omit<HTMLAttributes<TabGroupEl>, 'onChange'> & {
|
|
|
4
4
|
value?: string;
|
|
5
5
|
appearance?: TabGroupEl['appearance'];
|
|
6
6
|
size?: TabGroupEl['size'];
|
|
7
|
-
onChange?: (
|
|
7
|
+
onChange?: (detail: {
|
|
8
|
+
value: string;
|
|
9
|
+
}) => void;
|
|
8
10
|
};
|
|
9
11
|
export declare const TabGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<TabGroupEl>, "onChange"> & {
|
|
10
12
|
value?: string;
|
|
11
13
|
appearance?: TabGroupEl["appearance"];
|
|
12
14
|
size?: TabGroupEl["size"];
|
|
13
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
14
18
|
} & import("react").RefAttributes<TabGroupEl>>;
|
|
@@ -12,7 +12,7 @@ export type TableProps = HTMLAttributes<TableEl> & {
|
|
|
12
12
|
emptyMessage?: string;
|
|
13
13
|
rowKey?: string;
|
|
14
14
|
sort?: TableEl['sort'];
|
|
15
|
-
onSortChange?: (
|
|
15
|
+
onSortChange?: () => void;
|
|
16
16
|
};
|
|
17
17
|
export declare const Table: import("react").ForwardRefExoticComponent<HTMLAttributes<TableEl<Record<string, unknown>>> & {
|
|
18
18
|
columns?: TableEl["columns"];
|
|
@@ -26,5 +26,5 @@ export declare const Table: import("react").ForwardRefExoticComponent<HTMLAttrib
|
|
|
26
26
|
emptyMessage?: string;
|
|
27
27
|
rowKey?: string;
|
|
28
28
|
sort?: TableEl["sort"];
|
|
29
|
-
onSortChange?: (
|
|
29
|
+
onSortChange?: () => void;
|
|
30
30
|
} & import("react").RefAttributes<TableEl<Record<string, unknown>>>>;
|
|
@@ -18,8 +18,12 @@ export type TextfieldProps = Omit<HTMLAttributes<TextfieldEl>, 'onInput' | 'onCh
|
|
|
18
18
|
min?: TextfieldEl['min'];
|
|
19
19
|
max?: TextfieldEl['max'];
|
|
20
20
|
uppercase?: boolean;
|
|
21
|
-
onInput?: (
|
|
22
|
-
|
|
21
|
+
onInput?: (detail: {
|
|
22
|
+
value: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
onChange?: (detail: {
|
|
25
|
+
value: string;
|
|
26
|
+
}) => void;
|
|
23
27
|
};
|
|
24
28
|
export declare const Textfield: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<TextfieldEl>, "onChange" | "onInput"> & {
|
|
25
29
|
formAssociated?: boolean;
|
|
@@ -39,6 +43,10 @@ export declare const Textfield: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
39
43
|
min?: TextfieldEl["min"];
|
|
40
44
|
max?: TextfieldEl["max"];
|
|
41
45
|
uppercase?: boolean;
|
|
42
|
-
onInput?: (
|
|
43
|
-
|
|
46
|
+
onInput?: (detail: {
|
|
47
|
+
value: string;
|
|
48
|
+
}) => void;
|
|
49
|
+
onChange?: (detail: {
|
|
50
|
+
value: string;
|
|
51
|
+
}) => void;
|
|
44
52
|
} & import("react").RefAttributes<TextfieldEl>>;
|