@latty-ds/react 0.3.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 +8 -2
- package/dist/components/Chip/Chip.d.ts +2 -2
- package/dist/components/ColorInput/ColorInput.d.ts +12 -2
- package/dist/components/Combobox/Combobox.d.ts +8 -2
- package/dist/components/DateInput/DateInput.d.ts +8 -2
- package/dist/components/Datepicker/Datepicker.d.ts +14 -4
- package/dist/components/Dialog/Dialog.d.ts +8 -4
- 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 +10 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -2
- package/dist/components/Select/Select.d.ts +10 -2
- package/dist/components/Slider/Slider.d.ts +14 -4
- package/dist/components/Snackbar/Snackbar.d.ts +6 -6
- package/dist/components/Switch/Switch.d.ts +8 -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 +16 -4
- package/dist/index.cjs +283 -269
- package/dist/index.d.ts +15 -15
- package/dist/index.js +278 -264
- 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>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Checkbox as CheckboxEl } from '@latty-ds/web';
|
|
3
3
|
export type CheckboxProps = Omit<HTMLAttributes<CheckboxEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
variant?: CheckboxEl['variant'];
|
|
5
6
|
size?: CheckboxEl['size'];
|
|
6
7
|
checked?: boolean;
|
|
@@ -11,9 +12,12 @@ export type CheckboxProps = Omit<HTMLAttributes<CheckboxEl>, 'onChange'> & {
|
|
|
11
12
|
labelPosition?: CheckboxEl['labelPosition'];
|
|
12
13
|
name?: string;
|
|
13
14
|
value?: string;
|
|
14
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
checked: boolean;
|
|
17
|
+
}) => void;
|
|
15
18
|
};
|
|
16
19
|
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<CheckboxEl>, "onChange"> & {
|
|
20
|
+
formAssociated?: boolean;
|
|
17
21
|
variant?: CheckboxEl["variant"];
|
|
18
22
|
size?: CheckboxEl["size"];
|
|
19
23
|
checked?: boolean;
|
|
@@ -24,5 +28,7 @@ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
24
28
|
labelPosition?: CheckboxEl["labelPosition"];
|
|
25
29
|
name?: string;
|
|
26
30
|
value?: string;
|
|
27
|
-
onChange?: (
|
|
31
|
+
onChange?: (detail: {
|
|
32
|
+
checked: boolean;
|
|
33
|
+
}) => void;
|
|
28
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>>;
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { ColorInput as ColorInputEl } from '@latty-ds/web';
|
|
3
3
|
export type ColorInputProps = Omit<HTMLAttributes<ColorInputEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
value?: string;
|
|
5
6
|
format?: ColorInputEl['format'];
|
|
6
7
|
label?: string;
|
|
7
8
|
placeholder?: string;
|
|
8
9
|
disabled?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
name?: string;
|
|
9
12
|
size?: ColorInputEl['size'];
|
|
10
|
-
onChange?: (
|
|
13
|
+
onChange?: (detail: {
|
|
14
|
+
value: string;
|
|
15
|
+
}) => void;
|
|
11
16
|
};
|
|
12
17
|
export declare const ColorInput: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<ColorInputEl>, "onChange"> & {
|
|
18
|
+
formAssociated?: boolean;
|
|
13
19
|
value?: string;
|
|
14
20
|
format?: ColorInputEl["format"];
|
|
15
21
|
label?: string;
|
|
16
22
|
placeholder?: string;
|
|
17
23
|
disabled?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
name?: string;
|
|
18
26
|
size?: ColorInputEl["size"];
|
|
19
|
-
onChange?: (
|
|
27
|
+
onChange?: (detail: {
|
|
28
|
+
value: string;
|
|
29
|
+
}) => void;
|
|
20
30
|
} & import("react").RefAttributes<ColorInputEl>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Combobox as ComboboxEl } from '@latty-ds/web';
|
|
3
3
|
export type ComboboxProps = Omit<HTMLAttributes<ComboboxEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
options?: ComboboxEl['options'];
|
|
5
6
|
value?: string;
|
|
6
7
|
label?: string;
|
|
@@ -11,9 +12,12 @@ export type ComboboxProps = Omit<HTMLAttributes<ComboboxEl>, 'onChange'> & {
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
required?: boolean;
|
|
13
14
|
name?: string;
|
|
14
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
15
18
|
};
|
|
16
19
|
export declare const Combobox: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<ComboboxEl>, "onChange"> & {
|
|
20
|
+
formAssociated?: boolean;
|
|
17
21
|
options?: ComboboxEl["options"];
|
|
18
22
|
value?: string;
|
|
19
23
|
label?: string;
|
|
@@ -24,5 +28,7 @@ export declare const Combobox: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
24
28
|
disabled?: boolean;
|
|
25
29
|
required?: boolean;
|
|
26
30
|
name?: string;
|
|
27
|
-
onChange?: (
|
|
31
|
+
onChange?: (detail: {
|
|
32
|
+
value: string;
|
|
33
|
+
}) => void;
|
|
28
34
|
} & import("react").RefAttributes<ComboboxEl>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { DateInput as DateInputEl } from '@latty-ds/web';
|
|
3
3
|
export type DateInputProps = Omit<HTMLAttributes<DateInputEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
value?: string;
|
|
5
6
|
min?: string;
|
|
6
7
|
max?: string;
|
|
@@ -16,9 +17,12 @@ export type DateInputProps = Omit<HTMLAttributes<DateInputEl>, 'onChange'> & {
|
|
|
16
17
|
required?: boolean;
|
|
17
18
|
name?: string;
|
|
18
19
|
disabledDates?: DateInputEl['disabledDates'];
|
|
19
|
-
onChange?: (
|
|
20
|
+
onChange?: (detail: {
|
|
21
|
+
value: string;
|
|
22
|
+
}) => void;
|
|
20
23
|
};
|
|
21
24
|
export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<DateInputEl>, "onChange"> & {
|
|
25
|
+
formAssociated?: boolean;
|
|
22
26
|
value?: string;
|
|
23
27
|
min?: string;
|
|
24
28
|
max?: string;
|
|
@@ -34,5 +38,7 @@ export declare const DateInput: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
34
38
|
required?: boolean;
|
|
35
39
|
name?: string;
|
|
36
40
|
disabledDates?: DateInputEl["disabledDates"];
|
|
37
|
-
onChange?: (
|
|
41
|
+
onChange?: (detail: {
|
|
42
|
+
value: string;
|
|
43
|
+
}) => void;
|
|
38
44
|
} & import("react").RefAttributes<DateInputEl>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Datepicker as DatepickerEl } from '@latty-ds/web';
|
|
3
3
|
export type DatepickerProps = Omit<HTMLAttributes<DatepickerEl>, 'onChange' | 'onInput'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
type?: DatepickerEl['type'];
|
|
5
6
|
value?: string;
|
|
6
7
|
min?: string;
|
|
@@ -13,10 +14,15 @@ export type DatepickerProps = Omit<HTMLAttributes<DatepickerEl>, 'onChange' | 'o
|
|
|
13
14
|
required?: boolean;
|
|
14
15
|
readonly?: boolean;
|
|
15
16
|
name?: string;
|
|
16
|
-
onChange?: (
|
|
17
|
-
|
|
17
|
+
onChange?: (detail: {
|
|
18
|
+
value: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
onInput?: (detail: {
|
|
21
|
+
value: string;
|
|
22
|
+
}) => void;
|
|
18
23
|
};
|
|
19
24
|
export declare const Datepicker: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<DatepickerEl>, "onChange" | "onInput"> & {
|
|
25
|
+
formAssociated?: boolean;
|
|
20
26
|
type?: DatepickerEl["type"];
|
|
21
27
|
value?: string;
|
|
22
28
|
min?: string;
|
|
@@ -29,6 +35,10 @@ export declare const Datepicker: import("react").ForwardRefExoticComponent<Omit<
|
|
|
29
35
|
required?: boolean;
|
|
30
36
|
readonly?: boolean;
|
|
31
37
|
name?: string;
|
|
32
|
-
onChange?: (
|
|
33
|
-
|
|
38
|
+
onChange?: (detail: {
|
|
39
|
+
value: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
onInput?: (detail: {
|
|
42
|
+
value: string;
|
|
43
|
+
}) => void;
|
|
34
44
|
} & import("react").RefAttributes<DatepickerEl>>;
|
|
@@ -9,8 +9,10 @@ export type DialogProps = HTMLAttributes<DialogEl> & {
|
|
|
9
9
|
closeOnEscape?: boolean;
|
|
10
10
|
uppercase?: boolean;
|
|
11
11
|
backdropBlur?: boolean;
|
|
12
|
-
onDialogOpen?: (
|
|
13
|
-
|
|
12
|
+
onDialogOpen?: () => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
onDialogClose?: () => void;
|
|
15
|
+
onOpen?: () => void;
|
|
14
16
|
};
|
|
15
17
|
export declare const Dialog: import("react").ForwardRefExoticComponent<HTMLAttributes<DialogEl> & {
|
|
16
18
|
size?: DialogEl["size"];
|
|
@@ -21,6 +23,8 @@ export declare const Dialog: import("react").ForwardRefExoticComponent<HTMLAttri
|
|
|
21
23
|
closeOnEscape?: boolean;
|
|
22
24
|
uppercase?: boolean;
|
|
23
25
|
backdropBlur?: boolean;
|
|
24
|
-
onDialogOpen?: (
|
|
25
|
-
|
|
26
|
+
onDialogOpen?: () => void;
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
onDialogClose?: () => void;
|
|
29
|
+
onOpen?: () => void;
|
|
26
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>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Radio as RadioEl } from '@latty-ds/web';
|
|
3
3
|
export type RadioProps = Omit<HTMLAttributes<RadioEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
variant?: RadioEl['variant'];
|
|
5
6
|
size?: RadioEl['size'];
|
|
6
7
|
checked?: boolean;
|
|
@@ -10,9 +11,13 @@ export type RadioProps = Omit<HTMLAttributes<RadioEl>, 'onChange'> & {
|
|
|
10
11
|
labelPosition?: RadioEl['labelPosition'];
|
|
11
12
|
name?: string;
|
|
12
13
|
value?: string;
|
|
13
|
-
onChange?: (
|
|
14
|
+
onChange?: (detail: {
|
|
15
|
+
value: string;
|
|
16
|
+
checked: boolean;
|
|
17
|
+
}) => void;
|
|
14
18
|
};
|
|
15
19
|
export declare const Radio: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<RadioEl>, "onChange"> & {
|
|
20
|
+
formAssociated?: boolean;
|
|
16
21
|
variant?: RadioEl["variant"];
|
|
17
22
|
size?: RadioEl["size"];
|
|
18
23
|
checked?: boolean;
|
|
@@ -22,5 +27,8 @@ export declare const Radio: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
22
27
|
labelPosition?: RadioEl["labelPosition"];
|
|
23
28
|
name?: string;
|
|
24
29
|
value?: string;
|
|
25
|
-
onChange?: (
|
|
30
|
+
onChange?: (detail: {
|
|
31
|
+
value: string;
|
|
32
|
+
checked: boolean;
|
|
33
|
+
}) => void;
|
|
26
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>>;
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Select as SelectEl } from '@latty-ds/web';
|
|
3
3
|
export type SelectProps = Omit<HTMLAttributes<SelectEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
variant?: SelectEl['variant'];
|
|
5
6
|
size?: SelectEl['size'];
|
|
6
7
|
value?: string;
|
|
7
8
|
placeholder?: string;
|
|
8
9
|
label?: string;
|
|
10
|
+
name?: string;
|
|
9
11
|
helperText?: string;
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
required?: boolean;
|
|
12
14
|
options?: SelectEl['options'];
|
|
13
|
-
onChange?: (
|
|
15
|
+
onChange?: (detail: {
|
|
16
|
+
value: string;
|
|
17
|
+
}) => void;
|
|
14
18
|
};
|
|
15
19
|
export declare const Select: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<SelectEl>, "onChange"> & {
|
|
20
|
+
formAssociated?: boolean;
|
|
16
21
|
variant?: SelectEl["variant"];
|
|
17
22
|
size?: SelectEl["size"];
|
|
18
23
|
value?: string;
|
|
19
24
|
placeholder?: string;
|
|
20
25
|
label?: string;
|
|
26
|
+
name?: string;
|
|
21
27
|
helperText?: string;
|
|
22
28
|
disabled?: boolean;
|
|
23
29
|
required?: boolean;
|
|
24
30
|
options?: SelectEl["options"];
|
|
25
|
-
onChange?: (
|
|
31
|
+
onChange?: (detail: {
|
|
32
|
+
value: string;
|
|
33
|
+
}) => void;
|
|
26
34
|
} & import("react").RefAttributes<SelectEl>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Slider as SliderEl } from '@latty-ds/web';
|
|
3
3
|
export type SliderProps = Omit<HTMLAttributes<SliderEl>, 'onInput' | 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
size?: SliderEl['size'];
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
tooltip?: boolean;
|
|
@@ -10,10 +11,15 @@ export type SliderProps = Omit<HTMLAttributes<SliderEl>, 'onInput' | 'onChange'>
|
|
|
10
11
|
value?: number;
|
|
11
12
|
label?: string;
|
|
12
13
|
name?: string;
|
|
13
|
-
onInput?: (
|
|
14
|
-
|
|
14
|
+
onInput?: (detail: {
|
|
15
|
+
value: number;
|
|
16
|
+
}) => void;
|
|
17
|
+
onChange?: (detail: {
|
|
18
|
+
value: number;
|
|
19
|
+
}) => void;
|
|
15
20
|
};
|
|
16
21
|
export declare const Slider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<SliderEl>, "onChange" | "onInput"> & {
|
|
22
|
+
formAssociated?: boolean;
|
|
17
23
|
size?: SliderEl["size"];
|
|
18
24
|
disabled?: boolean;
|
|
19
25
|
tooltip?: boolean;
|
|
@@ -23,6 +29,10 @@ export declare const Slider: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
23
29
|
value?: number;
|
|
24
30
|
label?: string;
|
|
25
31
|
name?: string;
|
|
26
|
-
onInput?: (
|
|
27
|
-
|
|
32
|
+
onInput?: (detail: {
|
|
33
|
+
value: number;
|
|
34
|
+
}) => void;
|
|
35
|
+
onChange?: (detail: {
|
|
36
|
+
value: number;
|
|
37
|
+
}) => void;
|
|
28
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>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Switch as SwitchEl } from '@latty-ds/web';
|
|
3
3
|
export type SwitchProps = Omit<HTMLAttributes<SwitchEl>, 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
variant?: SwitchEl['variant'];
|
|
5
6
|
size?: SwitchEl['size'];
|
|
6
7
|
checked?: boolean;
|
|
@@ -10,9 +11,12 @@ export type SwitchProps = Omit<HTMLAttributes<SwitchEl>, 'onChange'> & {
|
|
|
10
11
|
labelPosition?: SwitchEl['labelPosition'];
|
|
11
12
|
name?: string;
|
|
12
13
|
value?: string;
|
|
13
|
-
onChange?: (
|
|
14
|
+
onChange?: (detail: {
|
|
15
|
+
checked: boolean;
|
|
16
|
+
}) => void;
|
|
14
17
|
};
|
|
15
18
|
export declare const Switch: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<SwitchEl>, "onChange"> & {
|
|
19
|
+
formAssociated?: boolean;
|
|
16
20
|
variant?: SwitchEl["variant"];
|
|
17
21
|
size?: SwitchEl["size"];
|
|
18
22
|
checked?: boolean;
|
|
@@ -22,5 +26,7 @@ export declare const Switch: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
22
26
|
labelPosition?: SwitchEl["labelPosition"];
|
|
23
27
|
name?: string;
|
|
24
28
|
value?: string;
|
|
25
|
-
onChange?: (
|
|
29
|
+
onChange?: (detail: {
|
|
30
|
+
checked: boolean;
|
|
31
|
+
}) => void;
|
|
26
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>>>>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
import type { Textfield as TextfieldEl, LattyIconName } from '@latty-ds/web';
|
|
3
3
|
export type TextfieldProps = Omit<HTMLAttributes<TextfieldEl>, 'onInput' | 'onChange'> & {
|
|
4
|
+
formAssociated?: boolean;
|
|
4
5
|
variant?: TextfieldEl['variant'];
|
|
5
6
|
size?: TextfieldEl['size'];
|
|
6
7
|
type?: TextfieldEl['type'];
|
|
7
8
|
value?: string;
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
label?: string;
|
|
11
|
+
name?: string;
|
|
10
12
|
helperText?: TextfieldEl['helperText'];
|
|
11
13
|
disabled?: boolean;
|
|
12
14
|
required?: boolean;
|
|
@@ -16,16 +18,22 @@ export type TextfieldProps = Omit<HTMLAttributes<TextfieldEl>, 'onInput' | 'onCh
|
|
|
16
18
|
min?: TextfieldEl['min'];
|
|
17
19
|
max?: TextfieldEl['max'];
|
|
18
20
|
uppercase?: boolean;
|
|
19
|
-
onInput?: (
|
|
20
|
-
|
|
21
|
+
onInput?: (detail: {
|
|
22
|
+
value: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
onChange?: (detail: {
|
|
25
|
+
value: string;
|
|
26
|
+
}) => void;
|
|
21
27
|
};
|
|
22
28
|
export declare const Textfield: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<TextfieldEl>, "onChange" | "onInput"> & {
|
|
29
|
+
formAssociated?: boolean;
|
|
23
30
|
variant?: TextfieldEl["variant"];
|
|
24
31
|
size?: TextfieldEl["size"];
|
|
25
32
|
type?: TextfieldEl["type"];
|
|
26
33
|
value?: string;
|
|
27
34
|
placeholder?: string;
|
|
28
35
|
label?: string;
|
|
36
|
+
name?: string;
|
|
29
37
|
helperText?: TextfieldEl["helperText"];
|
|
30
38
|
disabled?: boolean;
|
|
31
39
|
required?: boolean;
|
|
@@ -35,6 +43,10 @@ export declare const Textfield: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
35
43
|
min?: TextfieldEl["min"];
|
|
36
44
|
max?: TextfieldEl["max"];
|
|
37
45
|
uppercase?: boolean;
|
|
38
|
-
onInput?: (
|
|
39
|
-
|
|
46
|
+
onInput?: (detail: {
|
|
47
|
+
value: string;
|
|
48
|
+
}) => void;
|
|
49
|
+
onChange?: (detail: {
|
|
50
|
+
value: string;
|
|
51
|
+
}) => void;
|
|
40
52
|
} & import("react").RefAttributes<TextfieldEl>>;
|