rupoui 1.3.2 → 1.3.3
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/README.md +13 -13
- package/dist/components/button/Button.d.ts +6 -3
- package/dist/components/button/button.styles.d.ts +176 -162
- package/dist/components/button/button.types.d.ts +14 -14
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/calendar/Calendar.d.ts +3 -2
- package/dist/components/calendar/calendar.grid.d.ts +5 -2
- package/dist/components/calendar/calendar.navigation.d.ts +1 -1
- package/dist/components/calendar/calendar.selection.d.ts +6 -2
- package/dist/components/calendar/calendar.state.d.ts +1 -1
- package/dist/components/calendar/calendar.styles.d.ts +106 -83
- package/dist/components/calendar/calendar.types.d.ts +39 -39
- package/dist/components/calendar/index.d.ts +3 -3
- package/dist/components/checkbox/Checkbox.d.ts +4 -2
- package/dist/components/checkbox/CheckboxGroup.d.ts +4 -2
- package/dist/components/checkbox/checkbox-group-context.d.ts +12 -12
- package/dist/components/checkbox/checkbox.styles.d.ts +313 -285
- package/dist/components/checkbox/checkbox.types.d.ts +161 -154
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/useCheckbox.d.ts +389 -311
- package/dist/components/checkbox/useCheckboxGroup.d.ts +353 -280
- package/dist/components/chip/Chip.d.ts +4 -2
- package/dist/components/chip/ChipGroup.d.ts +4 -2
- package/dist/components/chip/chip-group-context.d.ts +9 -6
- package/dist/components/chip/chip.styles.d.ts +206 -192
- package/dist/components/chip/chip.types.d.ts +155 -149
- package/dist/components/chip/index.d.ts +5 -5
- package/dist/components/chip/useChip.d.ts +22 -20
- package/dist/components/chip/useChipGroup.d.ts +350 -277
- package/dist/components/datepicker/DatePart.d.ts +16 -14
- package/dist/components/datepicker/DatePicker.d.ts +17 -16
- package/dist/components/datepicker/DatePickerCalendar.d.ts +8 -7
- package/dist/components/datepicker/DatePickerDay.d.ts +11 -9
- package/dist/components/datepicker/DatePickerInput.d.ts +16 -15
- package/dist/components/datepicker/DatePickerPopover.d.ts +7 -6
- package/dist/components/datepicker/SegmentedDatePickerInput.d.ts +9 -8
- package/dist/components/datepicker/datepicker.controller.d.ts +6 -2
- package/dist/components/datepicker/datepicker.input.logic.d.ts +16 -6
- package/dist/components/datepicker/datepicker.input.state.d.ts +1 -1
- package/dist/components/datepicker/datepicker.input.types.d.ts +20 -20
- package/dist/components/datepicker/datepicker.keyboard.d.ts +6 -2
- package/dist/components/datepicker/datepicker.state.d.ts +1 -1
- package/dist/components/datepicker/datepicker.styles.d.ts +118 -95
- package/dist/components/datepicker/datepicker.types.d.ts +52 -52
- package/dist/components/datepicker/index.d.ts +5 -5
- package/dist/components/dropdown/Dropdown.d.ts +3 -2
- package/dist/components/dropdown/DropdownContent.d.ts +3 -2
- package/dist/components/dropdown/DropdownItem.d.ts +3 -2
- package/dist/components/dropdown/DropdownSection.d.ts +3 -2
- package/dist/components/dropdown/DropdownSeparator.d.ts +3 -2
- package/dist/components/dropdown/DropdownTrigger.d.ts +3 -2
- package/dist/components/dropdown/context.d.ts +22 -21
- package/dist/components/dropdown/dropdown.styles.d.ts +180 -166
- package/dist/components/dropdown/dropdown.types.d.ts +97 -85
- package/dist/components/dropdown/index.d.ts +9 -9
- package/dist/components/dropdown/useDropdown.d.ts +15 -15
- package/dist/components/input/Input.d.ts +9 -4
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.styles.d.ts +239 -225
- package/dist/components/input/input.types.d.ts +60 -58
- package/dist/components/input-number/InputNumber.d.ts +24 -5
- package/dist/components/input-number/index.d.ts +2 -2
- package/dist/components/input-number/input-number.styles.d.ts +331 -317
- package/dist/components/input-number/input-number.types.d.ts +132 -116
- package/dist/components/input-number/utils.d.ts +11 -3
- package/dist/components/modal/Modal.d.ts +4 -3
- package/dist/components/modal/ModalContent.d.ts +7 -3
- package/dist/components/modal/ModalLayout.d.ts +16 -4
- package/dist/components/modal/ModalTrigger.d.ts +5 -3
- package/dist/components/modal/context.d.ts +8 -8
- package/dist/components/modal/index.d.ts +6 -6
- package/dist/components/modal/modal.styles.d.ts +233 -219
- package/dist/components/modal/modal.types.d.ts +35 -34
- package/dist/components/modal/useModal.d.ts +7 -7
- package/dist/components/pagination/Pagination.d.ts +6 -3
- package/dist/components/pagination/PaginationContent.d.ts +6 -3
- package/dist/components/pagination/PaginationContext.d.ts +54 -54
- package/dist/components/pagination/PaginationEllipsis.d.ts +6 -3
- package/dist/components/pagination/PaginationItem.d.ts +6 -3
- package/dist/components/pagination/PaginationItems.d.ts +2 -2
- package/dist/components/pagination/PaginationNext.d.ts +6 -3
- package/dist/components/pagination/PaginationPrevious.d.ts +6 -3
- package/dist/components/pagination/index.d.ts +18 -9
- package/dist/components/pagination/pagination.styles.d.ts +147 -133
- package/dist/components/pagination/pagination.types.d.ts +125 -121
- package/dist/components/pagination/usePagination.d.ts +25 -20
- package/dist/components/popover/Popover.d.ts +3 -2
- package/dist/components/popover/PopoverContent.d.ts +3 -2
- package/dist/components/popover/PopoverContext.d.ts +103 -83
- package/dist/components/popover/PopoverTrigger.d.ts +3 -2
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/popover.styles.d.ts +122 -108
- package/dist/components/popover/popover.types.d.ts +96 -95
- package/dist/components/popover/usePopover.d.ts +52 -42
- package/dist/components/radio/Radio.d.ts +4 -2
- package/dist/components/radio/RadioGroup.d.ts +4 -2
- package/dist/components/radio/index.d.ts +3 -3
- package/dist/components/radio/radio-group-context.d.ts +12 -12
- package/dist/components/radio/radio.styles.d.ts +306 -278
- package/dist/components/radio/radio.types.d.ts +145 -138
- package/dist/components/radio/useRadio.d.ts +391 -311
- package/dist/components/radio/useRadioGroup.d.ts +354 -281
- package/dist/components/ripple/Ripple.d.ts +9 -9
- package/dist/components/select/Select.d.ts +6 -3
- package/dist/components/select/SelectItem.d.ts +15 -4
- package/dist/components/select/index.d.ts +5 -5
- package/dist/components/select/select.styles.d.ts +224 -210
- package/dist/components/select/select.types.d.ts +51 -50
- package/dist/components/select/useSelect.d.ts +16 -16
- package/dist/components/spinner/Spinner.d.ts +9 -3
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/spinner.styles.d.ts +91 -77
- package/dist/components/spinner/spinner.types.d.ts +4 -4
- package/dist/components/switch/Switch.d.ts +4 -2
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch.styles.d.ts +147 -133
- package/dist/components/switch/switch.types.d.ts +84 -80
- package/dist/components/switch/useSwitch.d.ts +389 -311
- package/dist/components/tabs/Tab.d.ts +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +4 -4
- package/dist/components/tabs/tabs.styles.d.ts +341 -327
- package/dist/components/tabs/tabs.types.d.ts +67 -66
- package/dist/components/tabs/useTabs.d.ts +4 -4
- package/dist/components/textarea/Textarea.d.ts +9 -4
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.styles.d.ts +276 -262
- package/dist/components/textarea/textarea.types.d.ts +57 -55
- package/dist/components/toast/Toast.d.ts +8 -4
- package/dist/components/toast/ToastProvider.d.ts +8 -4
- package/dist/components/toast/ToastViewport.d.ts +14 -4
- package/dist/components/toast/Toaster.d.ts +4 -2
- package/dist/components/toast/index.d.ts +7 -7
- package/dist/components/toast/toast-store.d.ts +10 -10
- package/dist/components/toast/toast-subcomponents.d.ts +10 -4
- package/dist/components/toast/toast.types.d.ts +18 -18
- package/dist/components/toast/use-toast-internal.d.ts +1 -1
- package/dist/components/toast/utils.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/tooltip.styles.d.ts +187 -173
- package/dist/components/tooltip/tooltip.types.d.ts +85 -72
- package/dist/components/tooltip/useTooltip.d.ts +25 -25
- package/dist/components/tooltip/utils.d.ts +24 -13
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/useDisclosure.d.ts +10 -10
- package/dist/hooks/useFocusTrap.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +24 -25
- package/dist/index.js +1697 -1632
- package/dist/motion/focus.d.ts +6 -6
- package/dist/motion/hover.d.ts +8 -8
- package/dist/motion/index.d.ts +5 -5
- package/dist/motion/press.d.ts +7 -7
- package/dist/motion/reveal.d.ts +16 -16
- package/dist/motion/tokens.d.ts +9 -9
- package/dist/provider/RupoUIContext.d.ts +2 -2
- package/dist/provider/RupoUIProvider.d.ts +9 -5
- package/dist/provider/types.d.ts +46 -25
- package/dist/provider/useRupoUI.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/tokens/colors.d.ts +24 -24
- package/dist/styles/tokens/index.d.ts +5 -5
- package/dist/styles/tokens/motion.d.ts +9 -9
- package/dist/styles/tokens/radius.d.ts +6 -6
- package/dist/styles/tokens/spacing.d.ts +11 -11
- package/dist/styles/tokens/typography.d.ts +64 -32
- package/dist/tailwind/index.d.ts +7 -7
- package/dist/tailwind/plugin-utils.d.ts +1 -1
- package/dist/tailwind/theme.d.ts +1 -1
- package/package.json +11 -2
- package/dist/components/toast/ToastDemo.d.ts +0 -1
|
@@ -1,46 +1,54 @@
|
|
|
1
|
-
export declare const calendar: import(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
export declare const calendar: import("tailwind-variants").TVReturnType<
|
|
2
|
+
| {
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]:
|
|
5
|
+
| import("tailwind-merge").ClassNameValue
|
|
6
|
+
| {
|
|
7
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
footer?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
header?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
grid?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
cell?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
headerTitle?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
weekdaysWrapper?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
daysWrapper?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
weekday?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
cellToday?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
cellDisabled?: import("tailwind-merge").ClassNameValue;
|
|
19
|
+
cellOutside?: import("tailwind-merge").ClassNameValue;
|
|
20
|
+
navButton?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
timeInput?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
cellSelected?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
| {
|
|
27
|
+
[x: string]: {
|
|
28
|
+
[x: string]:
|
|
29
|
+
| import("tailwind-merge").ClassNameValue
|
|
30
|
+
| {
|
|
31
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
32
|
+
footer?: import("tailwind-merge").ClassNameValue;
|
|
33
|
+
header?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
grid?: import("tailwind-merge").ClassNameValue;
|
|
36
|
+
cell?: import("tailwind-merge").ClassNameValue;
|
|
37
|
+
headerTitle?: import("tailwind-merge").ClassNameValue;
|
|
38
|
+
weekdaysWrapper?: import("tailwind-merge").ClassNameValue;
|
|
39
|
+
daysWrapper?: import("tailwind-merge").ClassNameValue;
|
|
40
|
+
weekday?: import("tailwind-merge").ClassNameValue;
|
|
41
|
+
cellToday?: import("tailwind-merge").ClassNameValue;
|
|
42
|
+
cellDisabled?: import("tailwind-merge").ClassNameValue;
|
|
43
|
+
cellOutside?: import("tailwind-merge").ClassNameValue;
|
|
44
|
+
navButton?: import("tailwind-merge").ClassNameValue;
|
|
45
|
+
timeInput?: import("tailwind-merge").ClassNameValue;
|
|
46
|
+
cellSelected?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
| {},
|
|
51
|
+
{
|
|
44
52
|
base: string;
|
|
45
53
|
header: string;
|
|
46
54
|
headerTitle: string;
|
|
@@ -57,28 +65,34 @@ export declare const calendar: import('tailwind-variants').TVReturnType<{
|
|
|
57
65
|
footer: string;
|
|
58
66
|
navButton: string;
|
|
59
67
|
timeInput: string;
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
},
|
|
69
|
+
undefined,
|
|
70
|
+
| {
|
|
71
|
+
[key: string]: {
|
|
72
|
+
[key: string]:
|
|
73
|
+
| import("tailwind-merge").ClassNameValue
|
|
74
|
+
| {
|
|
75
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
76
|
+
footer?: import("tailwind-merge").ClassNameValue;
|
|
77
|
+
header?: import("tailwind-merge").ClassNameValue;
|
|
78
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
79
|
+
grid?: import("tailwind-merge").ClassNameValue;
|
|
80
|
+
cell?: import("tailwind-merge").ClassNameValue;
|
|
81
|
+
headerTitle?: import("tailwind-merge").ClassNameValue;
|
|
82
|
+
weekdaysWrapper?: import("tailwind-merge").ClassNameValue;
|
|
83
|
+
daysWrapper?: import("tailwind-merge").ClassNameValue;
|
|
84
|
+
weekday?: import("tailwind-merge").ClassNameValue;
|
|
85
|
+
cellToday?: import("tailwind-merge").ClassNameValue;
|
|
86
|
+
cellDisabled?: import("tailwind-merge").ClassNameValue;
|
|
87
|
+
cellOutside?: import("tailwind-merge").ClassNameValue;
|
|
88
|
+
navButton?: import("tailwind-merge").ClassNameValue;
|
|
89
|
+
timeInput?: import("tailwind-merge").ClassNameValue;
|
|
90
|
+
cellSelected?: import("tailwind-merge").ClassNameValue;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
| {},
|
|
95
|
+
{
|
|
82
96
|
base: string;
|
|
83
97
|
header: string;
|
|
84
98
|
headerTitle: string;
|
|
@@ -95,21 +109,30 @@ export declare const calendar: import('tailwind-variants').TVReturnType<{
|
|
|
95
109
|
footer: string;
|
|
96
110
|
navButton: string;
|
|
97
111
|
timeInput: string;
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
},
|
|
113
|
+
import("tailwind-variants").TVReturnType<
|
|
114
|
+
unknown,
|
|
115
|
+
{
|
|
116
|
+
base: string;
|
|
117
|
+
header: string;
|
|
118
|
+
headerTitle: string;
|
|
119
|
+
grid: string;
|
|
120
|
+
weekdaysWrapper: string;
|
|
121
|
+
daysWrapper: string;
|
|
122
|
+
weekday: string;
|
|
123
|
+
cell: string[];
|
|
124
|
+
cellSelected: string[];
|
|
125
|
+
cellToday: string;
|
|
126
|
+
cellDisabled: string;
|
|
127
|
+
cellOutside: string;
|
|
128
|
+
time: string;
|
|
129
|
+
footer: string;
|
|
130
|
+
navButton: string;
|
|
131
|
+
timeInput: string;
|
|
132
|
+
},
|
|
133
|
+
undefined,
|
|
134
|
+
unknown,
|
|
135
|
+
unknown,
|
|
136
|
+
undefined
|
|
137
|
+
>
|
|
138
|
+
>;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
export interface CalendarState {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
viewDate: Date;
|
|
3
|
+
selectedDate?: Date;
|
|
4
4
|
}
|
|
5
5
|
export interface CalendarEngineDay {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
date: Date;
|
|
7
|
+
isToday: boolean;
|
|
8
|
+
isSelected: boolean;
|
|
9
|
+
isDisabled: boolean;
|
|
10
|
+
isOutsideMonth: boolean;
|
|
11
|
+
isCurrentMonth?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export type CalendarCell = CalendarEngineDay;
|
|
14
14
|
export interface CalendarConfig {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
|
+
minDate?: Date;
|
|
17
|
+
maxDate?: Date;
|
|
18
|
+
disabledDates?: Date[] | ((date: Date) => boolean);
|
|
19
19
|
}
|
|
20
20
|
export interface CalendarEngine {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
weeks: CalendarEngineDay[][];
|
|
22
|
+
viewDate: Date;
|
|
23
|
+
goToNextMonth(): void;
|
|
24
|
+
goToPrevMonth(): void;
|
|
25
|
+
setDate(date: Date): void;
|
|
26
26
|
}
|
|
27
27
|
export interface CalendarProps {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
engine: CalendarEngine;
|
|
29
|
+
granularity?: "date" | "minute" | "second";
|
|
30
|
+
isDisabled?: boolean;
|
|
31
|
+
isReadOnly?: boolean;
|
|
32
|
+
classNames?: {
|
|
33
|
+
base?: string;
|
|
34
|
+
header?: string;
|
|
35
|
+
headerTitle?: string;
|
|
36
|
+
grid?: string;
|
|
37
|
+
weekdaysWrapper?: string;
|
|
38
|
+
daysWrapper?: string;
|
|
39
|
+
weekday?: string;
|
|
40
|
+
cell?: string;
|
|
41
|
+
cellSelected?: string;
|
|
42
|
+
cellToday?: string;
|
|
43
|
+
cellDisabled?: string;
|
|
44
|
+
cellOutside?: string;
|
|
45
|
+
time?: string;
|
|
46
|
+
footer?: string;
|
|
47
|
+
navButton?: string;
|
|
48
|
+
timeInput?: string;
|
|
49
|
+
};
|
|
50
50
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./Calendar";
|
|
2
|
+
export * from "./calendar.types";
|
|
3
|
+
export * from "./calendar.grid";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { CheckboxProps } from
|
|
1
|
+
import { CheckboxProps } from "./checkbox.types";
|
|
2
2
|
|
|
3
|
-
export declare const Checkbox: import(
|
|
3
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<
|
|
4
|
+
Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>
|
|
5
|
+
>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { CheckboxGroupProps } from
|
|
1
|
+
import { CheckboxGroupProps } from "./checkbox.types";
|
|
2
2
|
|
|
3
|
-
export declare const CheckboxGroup: import(
|
|
3
|
+
export declare const CheckboxGroup: import("react").ForwardRefExoticComponent<
|
|
4
|
+
CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>
|
|
5
|
+
>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { CheckboxGroupProps } from
|
|
1
|
+
import { CheckboxGroupProps } from "./checkbox.types";
|
|
2
2
|
|
|
3
3
|
interface CheckboxGroupContextValue {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
groupState: string[];
|
|
5
|
+
setGroupState: (value: string[]) => void;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
isReadOnly?: boolean;
|
|
8
|
+
isInvalid?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
size?: CheckboxGroupProps["size"];
|
|
11
|
+
color?: CheckboxGroupProps["color"];
|
|
12
|
+
radius?: CheckboxGroupProps["radius"];
|
|
13
|
+
variant?: CheckboxGroupProps["variant"];
|
|
14
14
|
}
|
|
15
|
-
export declare const CheckboxGroupContext: import(
|
|
15
|
+
export declare const CheckboxGroupContext: import("react").Context<CheckboxGroupContextValue | null>;
|
|
16
16
|
export declare const useCheckboxGroupContext: () => CheckboxGroupContextValue | null;
|
|
17
17
|
export {};
|