panelui-native 0.108.0 → 0.109.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/lib/module/components/badge/index.js +85 -4
- package/lib/module/components/badge/index.js.map +1 -1
- package/lib/module/components/button/index.js +12 -0
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/button-group/index.js +3 -0
- package/lib/module/components/button-group/index.js.map +1 -1
- package/lib/module/components/checkbox/index.js +54 -4
- package/lib/module/components/checkbox/index.js.map +1 -1
- package/lib/module/components/chip/index.js +23 -1
- package/lib/module/components/chip/index.js.map +1 -1
- package/lib/module/components/input/index.js +14 -0
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/map/index.js +157 -5
- package/lib/module/components/map/index.js.map +1 -1
- package/lib/module/components/map/map-insets.js +174 -0
- package/lib/module/components/map/map-insets.js.map +1 -0
- package/lib/module/components/radio-group/index.js +49 -3
- package/lib/module/components/radio-group/index.js.map +1 -1
- package/lib/module/components/select/index.js +54 -2
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/switch/index.js +42 -3
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/tabs/index.js +147 -1
- package/lib/module/components/tabs/index.js.map +1 -1
- package/lib/module/components/textarea/index.js +18 -0
- package/lib/module/components/textarea/index.js.map +1 -1
- package/lib/module/components/toggle-button/index.js +34 -2
- package/lib/module/components/toggle-button/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/badge/index.d.ts +68 -0
- package/lib/typescript/src/components/badge/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts +12 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button-group/index.d.ts +9 -0
- package/lib/typescript/src/components/button-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/checkbox/index.d.ts +89 -0
- package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/index.d.ts +24 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input/index.d.ts +30 -0
- package/lib/typescript/src/components/input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/index.d.ts +67 -1
- package/lib/typescript/src/components/map/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/map-insets.d.ts +80 -0
- package/lib/typescript/src/components/map/map-insets.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/index.d.ts +188 -1
- package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/select/index.d.ts +9 -1
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/index.d.ts +38 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tabs/index.d.ts +10 -1
- package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
- package/lib/typescript/src/components/textarea/index.d.ts +18 -0
- package/lib/typescript/src/components/textarea/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toggle-button/index.d.ts +24 -0
- package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +7 -7
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/badge/index.tsx +30 -4
- package/src/components/button/index.tsx +9 -2
- package/src/components/button-group/index.tsx +1 -0
- package/src/components/checkbox/index.tsx +47 -3
- package/src/components/chip/index.tsx +5 -1
- package/src/components/input/index.tsx +6 -0
- package/src/components/map/index.tsx +215 -5
- package/src/components/map/map-insets.ts +169 -0
- package/src/components/radio-group/index.tsx +56 -4
- package/src/components/select/index.tsx +50 -1
- package/src/components/switch/index.tsx +16 -4
- package/src/components/tabs/index.tsx +61 -0
- package/src/components/textarea/index.tsx +6 -0
- package/src/components/toggle-button/index.tsx +16 -1
- package/src/index.ts +8 -3
|
@@ -20,8 +20,189 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { type ReactNode } from 'react';
|
|
22
22
|
import { View, type ViewProps } from 'react-native';
|
|
23
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
23
24
|
type RadioVariant = 'dot' | 'card';
|
|
24
25
|
type RadioOrientation = 'vertical' | 'horizontal';
|
|
26
|
+
declare const itemVariants: import("tailwind-variants").TVReturnType<{
|
|
27
|
+
size: {
|
|
28
|
+
xs: {
|
|
29
|
+
row: string;
|
|
30
|
+
indicator: string;
|
|
31
|
+
dot: string;
|
|
32
|
+
label: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
sm: {
|
|
36
|
+
row: string;
|
|
37
|
+
indicator: string;
|
|
38
|
+
dot: string;
|
|
39
|
+
label: string;
|
|
40
|
+
};
|
|
41
|
+
md: {};
|
|
42
|
+
lg: {
|
|
43
|
+
row: string;
|
|
44
|
+
indicator: string;
|
|
45
|
+
dot: string;
|
|
46
|
+
label: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
xl: {
|
|
50
|
+
row: string;
|
|
51
|
+
indicator: string;
|
|
52
|
+
dot: string;
|
|
53
|
+
label: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
variant: {
|
|
58
|
+
dot: {};
|
|
59
|
+
card: {
|
|
60
|
+
row: string;
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
selected: {
|
|
65
|
+
true: {};
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
true: {
|
|
69
|
+
row: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* A card in a row shares the width rather than filling it, so two or three
|
|
74
|
+
* options sit side by side instead of each taking the whole line.
|
|
75
|
+
*/
|
|
76
|
+
horizontal: {
|
|
77
|
+
true: {};
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
row: string;
|
|
81
|
+
indicator: string;
|
|
82
|
+
dot: string;
|
|
83
|
+
label: string;
|
|
84
|
+
description: string;
|
|
85
|
+
}, undefined, {
|
|
86
|
+
size: {
|
|
87
|
+
xs: {
|
|
88
|
+
row: string;
|
|
89
|
+
indicator: string;
|
|
90
|
+
dot: string;
|
|
91
|
+
label: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
sm: {
|
|
95
|
+
row: string;
|
|
96
|
+
indicator: string;
|
|
97
|
+
dot: string;
|
|
98
|
+
label: string;
|
|
99
|
+
};
|
|
100
|
+
md: {};
|
|
101
|
+
lg: {
|
|
102
|
+
row: string;
|
|
103
|
+
indicator: string;
|
|
104
|
+
dot: string;
|
|
105
|
+
label: string;
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
108
|
+
xl: {
|
|
109
|
+
row: string;
|
|
110
|
+
indicator: string;
|
|
111
|
+
dot: string;
|
|
112
|
+
label: string;
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
variant: {
|
|
117
|
+
dot: {};
|
|
118
|
+
card: {
|
|
119
|
+
row: string;
|
|
120
|
+
label: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
selected: {
|
|
124
|
+
true: {};
|
|
125
|
+
};
|
|
126
|
+
disabled: {
|
|
127
|
+
true: {
|
|
128
|
+
row: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* A card in a row shares the width rather than filling it, so two or three
|
|
133
|
+
* options sit side by side instead of each taking the whole line.
|
|
134
|
+
*/
|
|
135
|
+
horizontal: {
|
|
136
|
+
true: {};
|
|
137
|
+
};
|
|
138
|
+
}, {
|
|
139
|
+
row: string;
|
|
140
|
+
indicator: string;
|
|
141
|
+
dot: string;
|
|
142
|
+
label: string;
|
|
143
|
+
description: string;
|
|
144
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
145
|
+
size: {
|
|
146
|
+
xs: {
|
|
147
|
+
row: string;
|
|
148
|
+
indicator: string;
|
|
149
|
+
dot: string;
|
|
150
|
+
label: string;
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
153
|
+
sm: {
|
|
154
|
+
row: string;
|
|
155
|
+
indicator: string;
|
|
156
|
+
dot: string;
|
|
157
|
+
label: string;
|
|
158
|
+
};
|
|
159
|
+
md: {};
|
|
160
|
+
lg: {
|
|
161
|
+
row: string;
|
|
162
|
+
indicator: string;
|
|
163
|
+
dot: string;
|
|
164
|
+
label: string;
|
|
165
|
+
description: string;
|
|
166
|
+
};
|
|
167
|
+
xl: {
|
|
168
|
+
row: string;
|
|
169
|
+
indicator: string;
|
|
170
|
+
dot: string;
|
|
171
|
+
label: string;
|
|
172
|
+
description: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
variant: {
|
|
176
|
+
dot: {};
|
|
177
|
+
card: {
|
|
178
|
+
row: string;
|
|
179
|
+
label: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
selected: {
|
|
183
|
+
true: {};
|
|
184
|
+
};
|
|
185
|
+
disabled: {
|
|
186
|
+
true: {
|
|
187
|
+
row: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* A card in a row shares the width rather than filling it, so two or three
|
|
192
|
+
* options sit side by side instead of each taking the whole line.
|
|
193
|
+
*/
|
|
194
|
+
horizontal: {
|
|
195
|
+
true: {};
|
|
196
|
+
};
|
|
197
|
+
}, {
|
|
198
|
+
row: string;
|
|
199
|
+
indicator: string;
|
|
200
|
+
dot: string;
|
|
201
|
+
label: string;
|
|
202
|
+
description: string;
|
|
203
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
204
|
+
/** How big a group's discs and labels are. */
|
|
205
|
+
type RadioSize = NonNullable<VariantProps<typeof itemVariants>['size']>;
|
|
25
206
|
export interface RadioGroupProps extends ViewProps {
|
|
26
207
|
className?: string;
|
|
27
208
|
value?: string;
|
|
@@ -33,6 +214,12 @@ export interface RadioGroupProps extends ViewProps {
|
|
|
33
214
|
* settings choice where each option carries a description.
|
|
34
215
|
*/
|
|
35
216
|
variant?: RadioVariant;
|
|
217
|
+
/**
|
|
218
|
+
* How big every option's disc and label are. Set on the group rather than
|
|
219
|
+
* per option, because options of different sizes read as though one of them
|
|
220
|
+
* matters more. The row keeps a 48-point target at every size.
|
|
221
|
+
*/
|
|
222
|
+
size?: RadioSize;
|
|
36
223
|
/**
|
|
37
224
|
* `horizontal` lays the options out along a row that wraps — for two or
|
|
38
225
|
* three short choices, where a stacked list wastes the width and reads as
|
|
@@ -64,5 +251,5 @@ export interface RadioGroupItemProps {
|
|
|
64
251
|
export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<View>> & {
|
|
65
252
|
Item: import("react").ForwardRefExoticComponent<RadioGroupItemProps & import("react").RefAttributes<View>>;
|
|
66
253
|
};
|
|
67
|
-
export type { RadioVariant };
|
|
254
|
+
export type { RadioVariant, RadioSize };
|
|
68
255
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/radio-group/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAa,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/radio-group/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAa,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO/D,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAK1D,KAAK,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;AACnC,KAA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CAAC,EAAE,SAAS,CAAC;CACtB;AAwGD,eAAO,MAAM,UAAU;;CAErB,CAAC;AAEH,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
*/
|
|
36
36
|
import { type ReactNode } from 'react';
|
|
37
37
|
export type SelectPresentation = 'sheet' | 'inline' | 'overlay';
|
|
38
|
+
/** How big the trigger is. */
|
|
39
|
+
export type SelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
38
40
|
/**
|
|
39
41
|
* The filter field's text, from inside an open Select.
|
|
40
42
|
*
|
|
@@ -168,6 +170,12 @@ export interface SelectProps {
|
|
|
168
170
|
placeholder?: string;
|
|
169
171
|
/** Refuses the trigger and dims it. The options cannot be opened. */
|
|
170
172
|
disabled?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* How big the trigger is: its padding, its text and its chevron. The options
|
|
175
|
+
* it opens are not resized. Ignored in `native` mode, where the platform
|
|
176
|
+
* draws the picker. For the height of the sheet, see `sheetProps.size`.
|
|
177
|
+
*/
|
|
178
|
+
size?: SelectSize;
|
|
171
179
|
/** Extra classes for the trigger — the field you press to open the list. */
|
|
172
180
|
triggerClassName?: string;
|
|
173
181
|
/** Extra classes for the selected option's text on the trigger. */
|
|
@@ -242,7 +250,7 @@ export interface SelectProps {
|
|
|
242
250
|
nativeAppearance?: 'menu' | 'wheel';
|
|
243
251
|
children: ReactNode;
|
|
244
252
|
}
|
|
245
|
-
declare function SelectRoot({ className, value, valueLabel, onValueChange, placeholder, disabled, triggerClassName, valueClassName, placeholderClassName, listClassName, searchClassName, searchInputClassName, searchContainerClassName, emptyClassName, presentation, title, sheetProps, contentWidth, offset, onOpenChange, searchable, searchPlaceholder, emptyMessage, native, nativeAppearance, children, }: SelectProps): import("react").JSX.Element;
|
|
253
|
+
declare function SelectRoot({ className, value, valueLabel, onValueChange, placeholder, disabled, triggerClassName, valueClassName, placeholderClassName, listClassName, searchClassName, searchInputClassName, searchContainerClassName, emptyClassName, presentation, size, title, sheetProps, contentWidth, offset, onOpenChange, searchable, searchPlaceholder, emptyMessage, native, nativeAppearance, children, }: SelectProps): import("react").JSX.Element;
|
|
246
254
|
export declare const Select: typeof SelectRoot & {
|
|
247
255
|
Item: typeof SelectItem;
|
|
248
256
|
Group: typeof SelectGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiGf,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhE,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAoB1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,eAAe,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAMtF;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,2EAA2E;AAC3E,iBAA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ACb,WAAgC,EAChC,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,YAAsB,EACtB,IAAW,EACX,KAAK,EACL,UAAU,EACV,YAAwB,EACxB,MAAU,EACV,YAAY,EACZ,UAAkB,EAClB,iBAA4B,EAC5B,YAA2B,EAC3B,MAAM,EACN,gBAAyB,EACzB,QAAQ,GACT,EAAE,WAAW,+BAuYb;AAKD,eAAO,MAAM,MAAM;;;CAGjB,CAAC"}
|
|
@@ -2,6 +2,10 @@ import { View, type PressableProps } from 'react-native';
|
|
|
2
2
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
size: {
|
|
5
|
+
xs: {
|
|
6
|
+
track: string;
|
|
7
|
+
thumb: string;
|
|
8
|
+
};
|
|
5
9
|
sm: {
|
|
6
10
|
track: string;
|
|
7
11
|
thumb: string;
|
|
@@ -10,6 +14,14 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
10
14
|
track: string;
|
|
11
15
|
thumb: string;
|
|
12
16
|
};
|
|
17
|
+
lg: {
|
|
18
|
+
track: string;
|
|
19
|
+
thumb: string;
|
|
20
|
+
};
|
|
21
|
+
xl: {
|
|
22
|
+
track: string;
|
|
23
|
+
thumb: string;
|
|
24
|
+
};
|
|
13
25
|
};
|
|
14
26
|
disabled: {
|
|
15
27
|
true: {
|
|
@@ -22,6 +34,10 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
22
34
|
thumb: string;
|
|
23
35
|
}, undefined, {
|
|
24
36
|
size: {
|
|
37
|
+
xs: {
|
|
38
|
+
track: string;
|
|
39
|
+
thumb: string;
|
|
40
|
+
};
|
|
25
41
|
sm: {
|
|
26
42
|
track: string;
|
|
27
43
|
thumb: string;
|
|
@@ -30,6 +46,14 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
30
46
|
track: string;
|
|
31
47
|
thumb: string;
|
|
32
48
|
};
|
|
49
|
+
lg: {
|
|
50
|
+
track: string;
|
|
51
|
+
thumb: string;
|
|
52
|
+
};
|
|
53
|
+
xl: {
|
|
54
|
+
track: string;
|
|
55
|
+
thumb: string;
|
|
56
|
+
};
|
|
33
57
|
};
|
|
34
58
|
disabled: {
|
|
35
59
|
true: {
|
|
@@ -42,6 +66,10 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
42
66
|
thumb: string;
|
|
43
67
|
}, import("tailwind-variants").TVReturnType<{
|
|
44
68
|
size: {
|
|
69
|
+
xs: {
|
|
70
|
+
track: string;
|
|
71
|
+
thumb: string;
|
|
72
|
+
};
|
|
45
73
|
sm: {
|
|
46
74
|
track: string;
|
|
47
75
|
thumb: string;
|
|
@@ -50,6 +78,14 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
50
78
|
track: string;
|
|
51
79
|
thumb: string;
|
|
52
80
|
};
|
|
81
|
+
lg: {
|
|
82
|
+
track: string;
|
|
83
|
+
thumb: string;
|
|
84
|
+
};
|
|
85
|
+
xl: {
|
|
86
|
+
track: string;
|
|
87
|
+
thumb: string;
|
|
88
|
+
};
|
|
53
89
|
};
|
|
54
90
|
disabled: {
|
|
55
91
|
true: {
|
|
@@ -61,6 +97,8 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
61
97
|
activeTrack: string;
|
|
62
98
|
thumb: string;
|
|
63
99
|
}, undefined, unknown, unknown, undefined>>;
|
|
100
|
+
/** How big a switch is. */
|
|
101
|
+
export type SwitchSize = NonNullable<VariantProps<typeof switchVariants>['size']>;
|
|
64
102
|
export interface SwitchProps extends VariantProps<typeof switchVariants>, Pick<PressableProps, 'accessibilityLabel' | 'accessibilityHint' | 'accessibilityLabelledBy'> {
|
|
65
103
|
className?: string;
|
|
66
104
|
value: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAOpE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQ1D,QAAA,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAOpE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQ1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAwBlB,CAAC;AAEH,2BAA2B;AAC3B,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAoBlF,MAAM,WAAW,WACf,SAAQ,YAAY,CAAC,OAAO,cAAc,CAAC,EACzC,IAAI,CAAC,cAAc,EAAE,oBAAoB,GAAG,mBAAmB,GAAG,yBAAyB,CAAC;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAeD,eAAO,MAAM,MAAM,8FAgGlB,CAAC"}
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
import { type ReactNode } from 'react';
|
|
37
37
|
import { type ViewProps } from 'react-native';
|
|
38
38
|
export type TabsVariant = 'segmented' | 'underline' | 'pill' | 'expanding';
|
|
39
|
+
/** How big the triggers and their labels are. */
|
|
40
|
+
export type TabsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
39
41
|
/**
|
|
40
42
|
* How much of an inactive panel survives a switch away from it.
|
|
41
43
|
*
|
|
@@ -72,6 +74,13 @@ export interface TabsProps extends ViewProps {
|
|
|
72
74
|
* every trigger an `icon` — a closed tab has nothing else.
|
|
73
75
|
*/
|
|
74
76
|
variant?: TabsVariant;
|
|
77
|
+
/**
|
|
78
|
+
* How big the triggers and their labels are. `xs` and `sm` are for a tab set
|
|
79
|
+
* inside something else, such as a card or a toolbar; `lg` and `xl` are for
|
|
80
|
+
* one that is the main navigation of a screen. Icons and badges you pass are
|
|
81
|
+
* not resized.
|
|
82
|
+
*/
|
|
83
|
+
size?: TabsSize;
|
|
75
84
|
/**
|
|
76
85
|
* Mount every panel up front instead of only the ones that have been
|
|
77
86
|
* reached, so a scroll position or a half-filled form is there from the
|
|
@@ -121,7 +130,7 @@ export interface TabsProps extends ViewProps {
|
|
|
121
130
|
animation?: TabsAnimation;
|
|
122
131
|
children: ReactNode;
|
|
123
132
|
}
|
|
124
|
-
declare function TabsRoot({ className, value, onValueChange, defaultValue, variant, keepMounted, swipeable, animation, children, ...props }: TabsProps): import("react").JSX.Element;
|
|
133
|
+
declare function TabsRoot({ className, value, onValueChange, defaultValue, variant, size, keepMounted, swipeable, animation, children, ...props }: TabsProps): import("react").JSX.Element;
|
|
125
134
|
export interface TabsListProps extends ViewProps {
|
|
126
135
|
className?: string;
|
|
127
136
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;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C,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,sCAyDrF;AAQD,eAAO,MAAM,IAAI;;;;CAIf,CAAC"}
|
|
@@ -11,6 +11,9 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
size: {
|
|
14
|
+
xs: {
|
|
15
|
+
field: string;
|
|
16
|
+
};
|
|
14
17
|
sm: {
|
|
15
18
|
field: string;
|
|
16
19
|
};
|
|
@@ -20,6 +23,9 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
20
23
|
lg: {
|
|
21
24
|
field: string;
|
|
22
25
|
};
|
|
26
|
+
xl: {
|
|
27
|
+
field: string;
|
|
28
|
+
};
|
|
23
29
|
};
|
|
24
30
|
disabled: {
|
|
25
31
|
true: {
|
|
@@ -49,6 +55,9 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
49
55
|
};
|
|
50
56
|
};
|
|
51
57
|
size: {
|
|
58
|
+
xs: {
|
|
59
|
+
field: string;
|
|
60
|
+
};
|
|
52
61
|
sm: {
|
|
53
62
|
field: string;
|
|
54
63
|
};
|
|
@@ -58,6 +67,9 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
58
67
|
lg: {
|
|
59
68
|
field: string;
|
|
60
69
|
};
|
|
70
|
+
xl: {
|
|
71
|
+
field: string;
|
|
72
|
+
};
|
|
61
73
|
};
|
|
62
74
|
disabled: {
|
|
63
75
|
true: {
|
|
@@ -87,6 +99,9 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
87
99
|
};
|
|
88
100
|
};
|
|
89
101
|
size: {
|
|
102
|
+
xs: {
|
|
103
|
+
field: string;
|
|
104
|
+
};
|
|
90
105
|
sm: {
|
|
91
106
|
field: string;
|
|
92
107
|
};
|
|
@@ -96,6 +111,9 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
96
111
|
lg: {
|
|
97
112
|
field: string;
|
|
98
113
|
};
|
|
114
|
+
xl: {
|
|
115
|
+
field: string;
|
|
116
|
+
};
|
|
99
117
|
};
|
|
100
118
|
disabled: {
|
|
101
119
|
true: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/textarea/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EACL,SAAS,EAIT,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/textarea/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EACL,SAAS,EAIT,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAoC,CAAC;AAyBhF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoClB,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAzE,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAzE,yEAAyE;;;;;;;;;;;;;2CAS3E,CAAC;AAEH,KAAK,oBAAoB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAElE,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,eAAe,CAAC,EACzD,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,MAAM,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID,eAAO,MAAM,QAAQ,qGA6NpB,CAAC"}
|
|
@@ -41,6 +41,10 @@ declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
size: {
|
|
44
|
+
xs: {
|
|
45
|
+
root: string;
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
44
48
|
sm: {
|
|
45
49
|
root: string;
|
|
46
50
|
label: string;
|
|
@@ -53,6 +57,10 @@ declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
53
57
|
root: string;
|
|
54
58
|
label: string;
|
|
55
59
|
};
|
|
60
|
+
xl: {
|
|
61
|
+
root: string;
|
|
62
|
+
label: string;
|
|
63
|
+
};
|
|
56
64
|
};
|
|
57
65
|
selected: {
|
|
58
66
|
true: {
|
|
@@ -88,6 +96,10 @@ declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
88
96
|
};
|
|
89
97
|
};
|
|
90
98
|
size: {
|
|
99
|
+
xs: {
|
|
100
|
+
root: string;
|
|
101
|
+
label: string;
|
|
102
|
+
};
|
|
91
103
|
sm: {
|
|
92
104
|
root: string;
|
|
93
105
|
label: string;
|
|
@@ -100,6 +112,10 @@ declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
100
112
|
root: string;
|
|
101
113
|
label: string;
|
|
102
114
|
};
|
|
115
|
+
xl: {
|
|
116
|
+
root: string;
|
|
117
|
+
label: string;
|
|
118
|
+
};
|
|
103
119
|
};
|
|
104
120
|
selected: {
|
|
105
121
|
true: {
|
|
@@ -135,6 +151,10 @@ declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
135
151
|
};
|
|
136
152
|
};
|
|
137
153
|
size: {
|
|
154
|
+
xs: {
|
|
155
|
+
root: string;
|
|
156
|
+
label: string;
|
|
157
|
+
};
|
|
138
158
|
sm: {
|
|
139
159
|
root: string;
|
|
140
160
|
label: string;
|
|
@@ -147,6 +167,10 @@ declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
147
167
|
root: string;
|
|
148
168
|
label: string;
|
|
149
169
|
};
|
|
170
|
+
xl: {
|
|
171
|
+
root: string;
|
|
172
|
+
label: string;
|
|
173
|
+
};
|
|
150
174
|
};
|
|
151
175
|
selected: {
|
|
152
176
|
true: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toggle-button/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,wCAAqC,C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MAAM,CAAC;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAgHD,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,sBAAsB,+BAczE;kBAdQ,iBAAiB;;;AAiB1B,eAAO,MAAM,YAAY;;CAEvB,CAAC;AAEH,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -16,7 +16,7 @@ export { Avatar, type AvatarProps, type AvatarBadgeProps, type AvatarGroupProps,
|
|
|
16
16
|
export { Attachment, type AttachmentProps, type AttachmentGroupProps, type AttachmentMediaProps, type AttachmentContentProps, type AttachmentTitleProps, type AttachmentDescriptionProps, type AttachmentActionsProps, type AttachmentActionProps, type AttachmentState, } from './components/attachment/index.js';
|
|
17
17
|
export { AreaChart, useAreaChart, type AreaChartProps, type AreaChartHandle, type AreaChartGridProps, type AreaChartHeaderProps, type AreaChartAreaProps, type AreaChartXAxisProps, type AreaChartYAxisProps, type AreaChartTooltipProps, type AreaChartLegendProps, type AreaChartDatum, type AreaChartStatus, } from './components/area-chart/index.js';
|
|
18
18
|
export { AnimatedBadge, type AnimatedBadgeProps, type AnimatedBadgeSize, type AnimatedBadgeStatus, } from './components/animated-badge/index.js';
|
|
19
|
-
export { Badge, type BadgeProps } from './components/badge/index.js';
|
|
19
|
+
export { Badge, type BadgeProps, type BadgeSize } from './components/badge/index.js';
|
|
20
20
|
export { BarChart, useBarChart, type BarChartProps, type BarChartHandle, type BarChartHeaderProps, type BarChartGridProps, type BarChartBarProps, type BarChartXAxisProps, type BarChartYAxisProps, type BarChartTooltipProps, type BarChartLegendProps, type BarChartDatum, type BarChartStatus, type BarChartOrientation, } from './components/bar-chart/index.js';
|
|
21
21
|
export { CandlestickChart, useCandlestickChart, type CandlestickChartProps, type CandlestickChartHandle, type CandlestickChartHeaderProps, type CandlestickChartGridProps, type CandlestickChartCandlesProps, type CandlestickChartXAxisProps, type CandlestickChartYAxisProps, type CandlestickChartTooltipProps, type CandlestickChartLegendProps, type CandlestickChartDatum, type CandlestickChartStatus, } from './components/candlestick-chart/index.js';
|
|
22
22
|
export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, type BottomSheetHeaderProps, type BottomSheetBodyProps, type BottomSheetFooterProps, } from './components/bottom-sheet/index.js';
|
|
@@ -38,18 +38,18 @@ export { Frame, type FrameProps, type FrameRootProps, type FramePanelProps, type
|
|
|
38
38
|
export { GridItem, type GridItemProps, type GridItemGroupProps, type GridItemBackgroundProps, type GridItemMediaProps, type GridItemTitleProps, type GridItemValueProps, type GridItemDescriptionProps, type GridItemFooterProps, type GridItemActionsProps, } from './components/grid-item/index.js';
|
|
39
39
|
export { HeatmapChart, useHeatmapChart, buildHeatmapCalendar, type HeatmapChartProps, type HeatmapCellsProps, type HeatmapSeparatorProps, type HeatmapXAxisProps, type HeatmapYAxisProps, type HeatmapTooltipProps, type HeatmapLegendProps, type HeatmapColumn, type HeatmapBin, type HeatmapCell, type HeatmapLayout, } from './components/heatmap-chart/index.js';
|
|
40
40
|
export { HexChart, useHexChart, type HexChartProps, type HexChartHandle, type HexChartHeaderProps, type HexChartCellsProps, type HexChartTooltipProps, type HexChartLegendProps, type HexChartSkeletonProps, type HexChartStatus, type HexDatum, type HexShape, } from './components/hex-chart/index.js';
|
|
41
|
-
export { Map, useMap, hasMapLibre, CARTO_SOURCE, type MapProps, type MapHandle, type MapFitBoundsOptions, type MapMarkerProps, type MapLabelProps, type MapPopupProps, type MapControlsProps, type MapControlsPosition, type MapRouteProps, type MapArcProps, type MapGeoJSONProps, type MapClusterProps, type MapFeatureAccessibility, type MapHeatmapProps, type MapUserLocationProps, type BasemapSource, type BasemapTokens, type LngLat, type LngLatBounds, type ViewPadding, type ViewState, } from './components/map/index.js';
|
|
41
|
+
export { Map, useMap, hasMapLibre, CARTO_SOURCE, type MapProps, type MapHandle, type MapFitBoundsOptions, type MapMarkerProps, type MapLabelProps, type MapPopupProps, type MapControlsProps, type MapControlsPosition, type MapOverlayProps, type MapOverlayPosition, type MapRouteProps, type MapArcProps, type MapGeoJSONProps, type MapClusterProps, type MapFeatureAccessibility, type MapHeatmapProps, type MapUserLocationProps, type BasemapSource, type BasemapTokens, type LngLat, type LngLatBounds, type ViewPadding, type ViewState, } from './components/map/index.js';
|
|
42
42
|
export { RadarChart, useRadarChart, type RadarChartProps, type RadarChartHandle, type RadarChartHeaderProps, type RadarChartGridProps, type RadarChartAxisProps, type RadarChartSeriesProps, type RadarChartLegendProps, type RadarChartDatum, type RadarChartStatus, } from './components/radar-chart/index.js';
|
|
43
|
-
export { Select, useSelectSearch, type SelectProps, type SelectItemProps, type SelectGroupProps, type SelectPresentation, type SelectSheetProps, } from './components/select/index.js';
|
|
43
|
+
export { Select, useSelectSearch, type SelectProps, type SelectItemProps, type SelectGroupProps, type SelectPresentation, type SelectSize, type SelectSheetProps, } from './components/select/index.js';
|
|
44
44
|
export { SelectionMode, useSelectionMode, type SelectionModeProps, type SelectionModeItemProps, type SelectionModeIndicatorProps, type SelectionModeHeaderProps, type SelectionModeBarProps, type SelectionModeActionProps, } from './components/selection-mode/index.js';
|
|
45
45
|
export { SectionRail, type SectionRailProps, type SectionRailTriggerProps, type SectionRailBarProps, type SectionRailContentProps, type SectionRailItemProps, type SectionRailPlacement, type SectionRailAlign, } from './components/section-rail/index.js';
|
|
46
46
|
export { SectionProgress, type SectionProgressProps, type SectionProgressItemProps, type SectionProgressPlacement, type SectionProgressColor, type SectionProgressScroll, } from './components/section-progress/index.js';
|
|
47
|
-
export { Tabs, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, type TabsVariant, type TabsKeepMounted, type TabsAnimation, } from './components/tabs/index.js';
|
|
47
|
+
export { Tabs, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, type TabsVariant, type TabsSize, type TabsKeepMounted, type TabsAnimation, } from './components/tabs/index.js';
|
|
48
48
|
export { Table, type TableProps, type TableFrameProps, type TableHeaderProps, type TableBodyProps, type TableFooterProps, type TableRowProps, type TableHeadProps, type TableCellProps, type TableCaptionProps, type TableEmptyProps, type TableColumn, type TableSortDirection, } from './components/table/index.js';
|
|
49
49
|
export { Carousel, useCarouselState, type CarouselProps, type CarouselHandle, type CarouselContentProps, type CarouselItemProps, type CarouselCaptionProps, type CarouselDotsProps, type CarouselArrowProps, type CarouselControlsProps, type CarouselVariant, type CarouselOrientation, type CarouselAlign, } from './components/carousel/index.js';
|
|
50
50
|
export { Calendar, type CalendarProps, type CalendarHeaderProps, type CalendarNavProps, type CalendarMode, type CalendarCaptionLayout, type CalendarDisabled, type CalendarSelection, type DateRange, } from './components/calendar/index.js';
|
|
51
51
|
export { Card, type CardProps } from './components/card/index.js';
|
|
52
|
-
export { Checkbox, type CheckboxProps } from './components/checkbox/index.js';
|
|
52
|
+
export { Checkbox, type CheckboxProps, type CheckboxSize } from './components/checkbox/index.js';
|
|
53
53
|
export { Chip, useChip, type ChipProps, type ChipLabelProps, type ChipVariant, type ChipSize, } from './components/chip/index.js';
|
|
54
54
|
export { CircularText, type CircularTextProps } from './components/circular-text/index.js';
|
|
55
55
|
export { Collapsible, type CollapsibleProps, type CollapsibleTriggerProps, type CollapsibleIndicatorProps, type CollapsibleContentProps, type CollapsibleVariant, } from './components/collapsible/index.js';
|
|
@@ -104,7 +104,7 @@ export { Progress, type ProgressProps } from './components/progress/index.js';
|
|
|
104
104
|
export { ProgressButton, useProgressButton, type ProgressButtonProps, type ProgressButtonLabelProps, type ProgressButtonDoneProps, type ProgressButtonVariant, type ProgressButtonSize, } from './components/progress-button/index.js';
|
|
105
105
|
export { QRCode, type QRCodeProps, type QRCodeCanvasProps, type QRCodeFrameProps, type QRCodeHeaderProps, type QRCodeTitleProps, type QRCodeActionProps, type QRCodePanelProps, type QRCodeDescriptionProps, type QRCodeCaptionProps, type QRCodeValueProps, type QRCodeLogoProps, type QRCodeTriggerProps, type QRCodeContentProps, type QRCodeSize, type QRCodePresentation, type QRCodeModuleShape, type QRCodeEyeFrameShape, type QRCodeEyeBallShape, type ErrorCorrectionLevel, } from './components/qr-code/index.js';
|
|
106
106
|
export { Questionnaire, type QuestionnaireProps, type QuestionnaireTitleProps, type QuestionnaireProgressProps, type QuestionnaireProgressState, type QuestionnaireProgressVariant, type QuestionnaireItemProps, type QuestionnaireQuestionProps, type QuestionnaireDescriptionProps, type QuestionnaireChoicesProps, type QuestionnaireChoiceProps, type QuestionnaireInputProps, type QuestionnaireErrorProps, type QuestionnaireFooterProps, type QuestionnaireActionProps, type QuestionnaireActionState, type QuestionnaireAnswers, type QuestionnaireItemDefinition, type QuestionnaireItemStatus, type QuestionnaireShortcutMode, } from './components/questionnaire/index.js';
|
|
107
|
-
export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, } from './components/radio-group/index.js';
|
|
107
|
+
export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, type RadioSize, } from './components/radio-group/index.js';
|
|
108
108
|
export { Rating, type RatingProps, type RatingColor, type RatingSize, } from './components/rating/index.js';
|
|
109
109
|
export { RingChart, useRingChart, type RingChartProps, type RingChartHandle, type RingChartRingProps, type RingChartCenterProps, type RingChartLegendProps, type RingDatum, } from './components/ring-chart/index.js';
|
|
110
110
|
export { Support, useSupport, type SupportProps, type SupportHeaderProps, type SupportStatusProps, type SupportGroupProps, type SupportChannelProps, type SupportTopicsProps, type SupportTopicProps, type SupportConversationProps, type SupportArticleProps, type SupportAgentProps, type SupportTicketProps, type SupportHandoffProps, type SupportNoteProps, type SupportRepliesProps, type SupportReplyProps, type SupportResolutionProps, type SupportAvailability, type SupportConversationStatus, } from './components/support/index.js';
|
|
@@ -139,7 +139,7 @@ export { StackCard, useStackCard, type StackCardProps, type StackCardHandle, typ
|
|
|
139
139
|
export { Steps, type StepsProps, type StepsItemProps, type StepsTriggerProps, type StepsIndicatorProps, type StepsSeparatorProps, type StepState, type StepsOrientation, } from './components/steps/index.js';
|
|
140
140
|
export { Surface, type SurfaceProps } from './components/surface/index.js';
|
|
141
141
|
export { Swipe, useSwipeGroup, type SwipeProps, type SwipeGroupProps, type SwipePanelProps, type SwipeActionProps, type SwipeActionColor, type SwipeOpenSide, type SwipeHandle, } from './components/swipe/index.js';
|
|
142
|
-
export { Switch, type SwitchProps } from './components/switch/index.js';
|
|
142
|
+
export { Switch, type SwitchProps, type SwitchSize } from './components/switch/index.js';
|
|
143
143
|
export { TimePicker, type TimePickerProps, type TimePickerLayout, type TimePickerPresentation, } from './components/time-picker/index.js';
|
|
144
144
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineIndicatorProps, type TimelineStatProps, type TimelineVariant, type TimelineTone, type TimelineOrientation, } from './components/timeline/index.js';
|
|
145
145
|
export { Toast, ToastViewport, toast, useToast, type ToastProps, type ToastOptions, type ToastItem, type ToastVariant, type ToastPlacement, type ToastHandle, type ToastIndicatorProps, type ToastCloseProps, } from './components/toast/index.js';
|