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,304 +1,318 @@
|
|
|
1
|
-
export declare const modal: import(
|
|
1
|
+
export declare const modal: import("tailwind-variants").TVReturnType<
|
|
2
|
+
{
|
|
2
3
|
size: {
|
|
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
|
-
|
|
4
|
+
xs: {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
sm: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
md: {
|
|
11
|
+
base: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
base: string;
|
|
15
|
+
};
|
|
16
|
+
xl: {
|
|
17
|
+
base: string;
|
|
18
|
+
};
|
|
19
|
+
"2xl": {
|
|
20
|
+
base: string;
|
|
21
|
+
};
|
|
22
|
+
"3xl": {
|
|
23
|
+
base: string;
|
|
24
|
+
};
|
|
25
|
+
"4xl": {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
"5xl": {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
full: {
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
33
34
|
};
|
|
34
35
|
radius: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
none: {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
sm: {
|
|
40
|
+
base: string;
|
|
41
|
+
};
|
|
42
|
+
md: {
|
|
43
|
+
base: string;
|
|
44
|
+
};
|
|
45
|
+
lg: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
xl: {
|
|
49
|
+
base: string;
|
|
50
|
+
};
|
|
50
51
|
};
|
|
51
52
|
placement: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
auto: {
|
|
54
|
+
base: string;
|
|
55
|
+
};
|
|
56
|
+
center: {
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
top: {
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
bottom: {
|
|
63
|
+
base: string;
|
|
64
|
+
};
|
|
65
|
+
"top-center": {
|
|
66
|
+
base: string;
|
|
67
|
+
};
|
|
68
|
+
"bottom-center": {
|
|
69
|
+
base: string;
|
|
70
|
+
};
|
|
70
71
|
};
|
|
71
72
|
backdrop: {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
transparent: {
|
|
74
|
+
backdrop: string;
|
|
75
|
+
};
|
|
76
|
+
opaque: {
|
|
77
|
+
backdrop: string;
|
|
78
|
+
};
|
|
79
|
+
blur: {
|
|
80
|
+
backdrop: string;
|
|
81
|
+
};
|
|
81
82
|
};
|
|
82
83
|
scrollBehavior: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
normal: {
|
|
85
|
+
base: string;
|
|
86
|
+
};
|
|
87
|
+
inside: {
|
|
88
|
+
base: string;
|
|
89
|
+
body: string;
|
|
90
|
+
};
|
|
91
|
+
outside: {
|
|
92
|
+
base: string;
|
|
93
|
+
backdrop: string;
|
|
94
|
+
};
|
|
94
95
|
};
|
|
95
|
-
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
96
98
|
base: string;
|
|
97
99
|
backdrop: string;
|
|
98
100
|
header: string;
|
|
99
101
|
body: string;
|
|
100
102
|
footer: string;
|
|
101
103
|
closeButton: string;
|
|
102
|
-
},
|
|
104
|
+
},
|
|
105
|
+
undefined,
|
|
106
|
+
{
|
|
103
107
|
size: {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
108
|
+
xs: {
|
|
109
|
+
base: string;
|
|
110
|
+
};
|
|
111
|
+
sm: {
|
|
112
|
+
base: string;
|
|
113
|
+
};
|
|
114
|
+
md: {
|
|
115
|
+
base: string;
|
|
116
|
+
};
|
|
117
|
+
lg: {
|
|
118
|
+
base: string;
|
|
119
|
+
};
|
|
120
|
+
xl: {
|
|
121
|
+
base: string;
|
|
122
|
+
};
|
|
123
|
+
"2xl": {
|
|
124
|
+
base: string;
|
|
125
|
+
};
|
|
126
|
+
"3xl": {
|
|
127
|
+
base: string;
|
|
128
|
+
};
|
|
129
|
+
"4xl": {
|
|
130
|
+
base: string;
|
|
131
|
+
};
|
|
132
|
+
"5xl": {
|
|
133
|
+
base: string;
|
|
134
|
+
};
|
|
135
|
+
full: {
|
|
136
|
+
base: string;
|
|
137
|
+
};
|
|
134
138
|
};
|
|
135
139
|
radius: {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
140
|
+
none: {
|
|
141
|
+
base: string;
|
|
142
|
+
};
|
|
143
|
+
sm: {
|
|
144
|
+
base: string;
|
|
145
|
+
};
|
|
146
|
+
md: {
|
|
147
|
+
base: string;
|
|
148
|
+
};
|
|
149
|
+
lg: {
|
|
150
|
+
base: string;
|
|
151
|
+
};
|
|
152
|
+
xl: {
|
|
153
|
+
base: string;
|
|
154
|
+
};
|
|
151
155
|
};
|
|
152
156
|
placement: {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
auto: {
|
|
158
|
+
base: string;
|
|
159
|
+
};
|
|
160
|
+
center: {
|
|
161
|
+
base: string;
|
|
162
|
+
};
|
|
163
|
+
top: {
|
|
164
|
+
base: string;
|
|
165
|
+
};
|
|
166
|
+
bottom: {
|
|
167
|
+
base: string;
|
|
168
|
+
};
|
|
169
|
+
"top-center": {
|
|
170
|
+
base: string;
|
|
171
|
+
};
|
|
172
|
+
"bottom-center": {
|
|
173
|
+
base: string;
|
|
174
|
+
};
|
|
171
175
|
};
|
|
172
176
|
backdrop: {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
transparent: {
|
|
178
|
+
backdrop: string;
|
|
179
|
+
};
|
|
180
|
+
opaque: {
|
|
181
|
+
backdrop: string;
|
|
182
|
+
};
|
|
183
|
+
blur: {
|
|
184
|
+
backdrop: string;
|
|
185
|
+
};
|
|
182
186
|
};
|
|
183
187
|
scrollBehavior: {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
188
|
+
normal: {
|
|
189
|
+
base: string;
|
|
190
|
+
};
|
|
191
|
+
inside: {
|
|
192
|
+
base: string;
|
|
193
|
+
body: string;
|
|
194
|
+
};
|
|
195
|
+
outside: {
|
|
196
|
+
base: string;
|
|
197
|
+
backdrop: string;
|
|
198
|
+
};
|
|
195
199
|
};
|
|
196
|
-
},
|
|
200
|
+
},
|
|
201
|
+
{
|
|
197
202
|
base: string;
|
|
198
203
|
backdrop: string;
|
|
199
204
|
header: string;
|
|
200
205
|
body: string;
|
|
201
206
|
footer: string;
|
|
202
207
|
closeButton: string;
|
|
203
|
-
},
|
|
204
|
-
|
|
208
|
+
},
|
|
209
|
+
import("tailwind-variants").TVReturnType<
|
|
210
|
+
{
|
|
211
|
+
size: {
|
|
205
212
|
xs: {
|
|
206
|
-
|
|
213
|
+
base: string;
|
|
207
214
|
};
|
|
208
215
|
sm: {
|
|
209
|
-
|
|
216
|
+
base: string;
|
|
210
217
|
};
|
|
211
218
|
md: {
|
|
212
|
-
|
|
219
|
+
base: string;
|
|
213
220
|
};
|
|
214
221
|
lg: {
|
|
215
|
-
|
|
222
|
+
base: string;
|
|
216
223
|
};
|
|
217
224
|
xl: {
|
|
218
|
-
|
|
225
|
+
base: string;
|
|
219
226
|
};
|
|
220
227
|
"2xl": {
|
|
221
|
-
|
|
228
|
+
base: string;
|
|
222
229
|
};
|
|
223
230
|
"3xl": {
|
|
224
|
-
|
|
231
|
+
base: string;
|
|
225
232
|
};
|
|
226
233
|
"4xl": {
|
|
227
|
-
|
|
234
|
+
base: string;
|
|
228
235
|
};
|
|
229
236
|
"5xl": {
|
|
230
|
-
|
|
237
|
+
base: string;
|
|
231
238
|
};
|
|
232
239
|
full: {
|
|
233
|
-
|
|
240
|
+
base: string;
|
|
234
241
|
};
|
|
235
|
-
|
|
236
|
-
|
|
242
|
+
};
|
|
243
|
+
radius: {
|
|
237
244
|
none: {
|
|
238
|
-
|
|
245
|
+
base: string;
|
|
239
246
|
};
|
|
240
247
|
sm: {
|
|
241
|
-
|
|
248
|
+
base: string;
|
|
242
249
|
};
|
|
243
250
|
md: {
|
|
244
|
-
|
|
251
|
+
base: string;
|
|
245
252
|
};
|
|
246
253
|
lg: {
|
|
247
|
-
|
|
254
|
+
base: string;
|
|
248
255
|
};
|
|
249
256
|
xl: {
|
|
250
|
-
|
|
257
|
+
base: string;
|
|
251
258
|
};
|
|
252
|
-
|
|
253
|
-
|
|
259
|
+
};
|
|
260
|
+
placement: {
|
|
254
261
|
auto: {
|
|
255
|
-
|
|
262
|
+
base: string;
|
|
256
263
|
};
|
|
257
264
|
center: {
|
|
258
|
-
|
|
265
|
+
base: string;
|
|
259
266
|
};
|
|
260
267
|
top: {
|
|
261
|
-
|
|
268
|
+
base: string;
|
|
262
269
|
};
|
|
263
270
|
bottom: {
|
|
264
|
-
|
|
271
|
+
base: string;
|
|
265
272
|
};
|
|
266
273
|
"top-center": {
|
|
267
|
-
|
|
274
|
+
base: string;
|
|
268
275
|
};
|
|
269
276
|
"bottom-center": {
|
|
270
|
-
|
|
277
|
+
base: string;
|
|
271
278
|
};
|
|
272
|
-
|
|
273
|
-
|
|
279
|
+
};
|
|
280
|
+
backdrop: {
|
|
274
281
|
transparent: {
|
|
275
|
-
|
|
282
|
+
backdrop: string;
|
|
276
283
|
};
|
|
277
284
|
opaque: {
|
|
278
|
-
|
|
285
|
+
backdrop: string;
|
|
279
286
|
};
|
|
280
287
|
blur: {
|
|
281
|
-
|
|
288
|
+
backdrop: string;
|
|
282
289
|
};
|
|
283
|
-
|
|
284
|
-
|
|
290
|
+
};
|
|
291
|
+
scrollBehavior: {
|
|
285
292
|
normal: {
|
|
286
|
-
|
|
293
|
+
base: string;
|
|
287
294
|
};
|
|
288
295
|
inside: {
|
|
289
|
-
|
|
290
|
-
|
|
296
|
+
base: string;
|
|
297
|
+
body: string;
|
|
291
298
|
};
|
|
292
299
|
outside: {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
base: string;
|
|
301
|
+
backdrop: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
base: string;
|
|
307
|
+
backdrop: string;
|
|
308
|
+
header: string;
|
|
309
|
+
body: string;
|
|
310
|
+
footer: string;
|
|
311
|
+
closeButton: string;
|
|
312
|
+
},
|
|
313
|
+
undefined,
|
|
314
|
+
unknown,
|
|
315
|
+
unknown,
|
|
316
|
+
undefined
|
|
317
|
+
>
|
|
318
|
+
>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { VariantProps } from
|
|
3
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
import { modal } from "./modal.styles";
|
|
4
5
|
|
|
5
6
|
export type ModalVariant = "default" | "solid" | "bordered" | "flat" | "ghost" | "shadow";
|
|
6
7
|
export type ModalColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
@@ -9,44 +10,44 @@ export type ModalRadius = "none" | "sm" | "md" | "lg" | "xl";
|
|
|
9
10
|
export type ModalPlacement = "auto" | "top" | "center" | "bottom" | "top-center" | "bottom-center";
|
|
10
11
|
export type ModalBackdrop = "transparent" | "opaque" | "blur";
|
|
11
12
|
export interface ModalProps {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
17
|
+
isDismissable?: boolean;
|
|
18
|
+
hideCloseButton?: boolean;
|
|
19
|
+
backdrop?: ModalBackdrop;
|
|
20
|
+
size?: ModalSize;
|
|
21
|
+
radius?: ModalRadius;
|
|
22
|
+
placement?: ModalPlacement;
|
|
23
|
+
scrollBehavior?: "normal" | "inside" | "outside";
|
|
24
|
+
closeButton?: ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
classNames?: {
|
|
27
|
+
base?: string;
|
|
28
|
+
header?: string;
|
|
29
|
+
body?: string;
|
|
30
|
+
footer?: string;
|
|
31
|
+
backdrop?: string;
|
|
32
|
+
closeButton?: string;
|
|
33
|
+
};
|
|
34
|
+
motionProps?: any;
|
|
35
|
+
id?: string;
|
|
35
36
|
}
|
|
36
37
|
export interface ModalContentProps {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
children: ReactNode | ((onClose: () => void) => ReactNode);
|
|
39
|
+
className?: string;
|
|
39
40
|
}
|
|
40
41
|
export interface ModalHeaderProps {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
className?: string;
|
|
43
44
|
}
|
|
44
45
|
export interface ModalBodyProps {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
className?: string;
|
|
47
48
|
}
|
|
48
49
|
export interface ModalFooterProps {
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
className?: string;
|
|
51
52
|
}
|
|
52
53
|
export type ModalVariants = VariantProps<typeof modal>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ModalProps } from
|
|
1
|
+
import { ModalProps } from "./modal.types";
|
|
2
2
|
|
|
3
3
|
export declare function useModal(props: ModalProps): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
open: () => void;
|
|
6
|
+
close: () => void;
|
|
7
|
+
toggle: () => void;
|
|
8
|
+
headerId: string;
|
|
9
|
+
bodyId: string;
|
|
10
10
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
import { PaginationProps } from './pagination.types';
|
|
1
|
+
import { default as React } from "react";
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import { PaginationProps } from "./pagination.types";
|
|
4
|
+
|
|
5
|
+
export declare const Pagination: React.ForwardRefExoticComponent<
|
|
6
|
+
PaginationProps & React.RefAttributes<HTMLElement>
|
|
7
|
+
>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
import { PaginationContentProps } from './pagination.types';
|
|
1
|
+
import { default as React } from "react";
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import { PaginationContentProps } from "./pagination.types";
|
|
4
|
+
|
|
5
|
+
export declare const PaginationContent: React.ForwardRefExoticComponent<
|
|
6
|
+
PaginationContentProps & React.RefAttributes<HTMLDivElement>
|
|
7
|
+
>;
|