@locus-ui/components 0.0.1

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.
@@ -0,0 +1,1236 @@
1
+ import * as React$1 from 'react';
2
+ import React__default, { HTMLAttributes, FC } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+
5
+ declare const breakpoints: readonly ["initial", "xs", "sm", "md", "lg", "xl"];
6
+ type Breakpoint = (typeof breakpoints)[number];
7
+ type Union<S = string, T extends string | number = string> = T | Omit<S, T>;
8
+ type Responsive<T> = T | Partial<Record<Breakpoint, T>>;
9
+ type BooleanPropDef = {
10
+ type: "boolean";
11
+ default?: boolean;
12
+ required?: boolean;
13
+ className?: string;
14
+ cssProperty?: string;
15
+ dataAttr?: string;
16
+ };
17
+ type StringPropDef = {
18
+ type: "string";
19
+ default?: string;
20
+ required?: boolean;
21
+ className?: string;
22
+ cssProperty?: string;
23
+ };
24
+ type ReactNodePropDef<T = React.ReactNode> = {
25
+ type: "reactNode";
26
+ required?: boolean;
27
+ };
28
+ type EnumPropDef<T> = {
29
+ type: "enum";
30
+ values: readonly T[];
31
+ default?: T | "theme";
32
+ required?: boolean;
33
+ className?: string;
34
+ dataAttr?: string;
35
+ };
36
+ type EnumOrStringPropDef<T extends string> = {
37
+ type: "enum | string";
38
+ values: readonly T[];
39
+ default?: T | "theme";
40
+ required?: boolean;
41
+ className?: string;
42
+ dataAttr?: string;
43
+ };
44
+ type ValueOrArrayPropDef<T> = {
45
+ type: "value | array";
46
+ default?: T | T[];
47
+ required?: boolean;
48
+ className?: string;
49
+ };
50
+ type FunctionPropDef<T extends (...args: any[]) => any = (...args: any[]) => any> = {
51
+ type: "function";
52
+ required?: boolean;
53
+ };
54
+ type BasePropDef<T = any> = BooleanPropDef | StringPropDef | ReactNodePropDef<T> | EnumPropDef<T> | EnumOrStringPropDef<T & string> | ValueOrArrayPropDef<T> | FunctionPropDef<T & ((...args: any[]) => any)>;
55
+ type ResponsivePropDef<T = any> = BasePropDef<T> & {
56
+ responsive: true;
57
+ };
58
+ type GetPropDefType<Def> = Def extends BooleanPropDef ? Def extends ResponsivePropDef ? Responsive<boolean> : boolean : Def extends StringPropDef ? Def extends ResponsivePropDef ? Responsive<string> : string : Def extends ReactNodePropDef<infer Type> ? Type : Def extends FunctionPropDef<infer Fn> ? Fn : Def extends EnumOrStringPropDef<infer Type> ? Def extends ResponsivePropDef<infer Type extends string> ? Responsive<Union<string, Type>> : Union<string, Type> : Def extends ValueOrArrayPropDef<infer Type> ? Def extends ResponsivePropDef<infer Type> ? Responsive<Type | Type[]> : Type | Type[] : Def extends EnumPropDef<infer Type> ? Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type : never;
59
+ type GetPropDefTypes<P> = {
60
+ [K in keyof P]?: GetPropDefType<P[K]>;
61
+ };
62
+
63
+ declare const AlignPropDef: {
64
+ /**
65
+ * The alignment of the component.
66
+ */
67
+ align: {
68
+ type: "enum";
69
+ values: readonly ["start", "center", "end"];
70
+ dataAttr: string;
71
+ };
72
+ };
73
+ type AlignProp = GetPropDefTypes<typeof AlignPropDef>;
74
+
75
+ declare const ColorPropDef: {
76
+ /**
77
+ * Sets the color of the component.
78
+ *
79
+ * @example color="primary" // primary color
80
+ */
81
+ color: {
82
+ type: "enum | string";
83
+ values: readonly ["primary", "secondary", "tertiary", "accent", "success", "warning", "danger", "info"];
84
+ dataAttr: string;
85
+ className: string;
86
+ };
87
+ };
88
+ type ColorProp = GetPropDefTypes<typeof ColorPropDef>;
89
+
90
+ declare const MarginPropDefs: {
91
+ /**
92
+ * Sets margin on all sides of the element.
93
+ * Supports scale, auto, inherit, custom, and responsive values.
94
+ *
95
+ * @example m="4" // 16px margin on all sides
96
+ * @example m="-26px" // -26px negative margin custom value
97
+ * @example m={{ initial: "2", md: "4", lg: "8" }} // responsive margins
98
+ *
99
+ * @link
100
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin
101
+ */
102
+ m: {
103
+ type: "enum | string";
104
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
105
+ dataAttr: string;
106
+ className: string;
107
+ responsive: true;
108
+ };
109
+ /**
110
+ * Sets margin on the top of the element.
111
+ * Supports scale, auto, inherit, custom, and responsive values.
112
+ *
113
+ * @example mt="4" // 16px margin on all sides
114
+ * @example mt="-26px" // -26px negative margin custom value
115
+ * @example mt={{ initial: "2", md: "4", lg: "8" }} // responsive margins
116
+ *
117
+ * @link
118
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top
119
+ */
120
+ mt: {
121
+ type: "enum | string";
122
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
123
+ dataAttr: string;
124
+ className: string;
125
+ responsive: true;
126
+ };
127
+ /**
128
+ * Sets margin on the bottom of the element.
129
+ * Supports scale, auto, inherit, custom, and responsive values.
130
+ *
131
+ * @example mb="4" // 16px margin on all sides
132
+ * @example mb="-26px" // -26px negative margin custom value
133
+ * @example mb={{ initial: "2", md: "4", lg: "8" }} // responsive margins
134
+ *
135
+ * @link
136
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom
137
+ */
138
+ mb: {
139
+ type: "enum | string";
140
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
141
+ dataAttr: string;
142
+ className: string;
143
+ responsive: true;
144
+ };
145
+ /**
146
+ * Sets margin on the left of the element.
147
+ * Supports scale, auto, inherit, custom, and responsive values.
148
+ *
149
+ * @example ml="4" // 16px margin on all sides
150
+ * @example ml="-26px" // -26px negative margin custom value
151
+ * @example ml={{ initial: "2", md: "4", lg: "8" }} // responsive margins
152
+ *
153
+ * @link
154
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left
155
+ */
156
+ ml: {
157
+ type: "enum | string";
158
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
159
+ dataAttr: string;
160
+ className: string;
161
+ responsive: true;
162
+ };
163
+ /**
164
+ * Sets margin on the right of the element.
165
+ * Supports scale, auto, inherit, custom, and responsive values.
166
+ *
167
+ * @example mr="4" // 16px margin on all sides
168
+ * @example mr="-26px" // -26px negative margin custom value
169
+ * @example mr={{ initial: "2", md: "4", lg: "8" }} // responsive margins
170
+ *
171
+ * @link
172
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right
173
+ */
174
+ mr: {
175
+ type: "enum | string";
176
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
177
+ dataAttr: string;
178
+ className: string;
179
+ responsive: true;
180
+ };
181
+ /**
182
+ * Sets margin on the left and right (horizontal) sides of the element.
183
+ * Supports scale, auto, inherit, custom, and responsive values.
184
+ *
185
+ * @example mx="4" // 16px horizontal margin
186
+ * @example mx="-26px" // -26px negative horizontal margin custom value
187
+ * @example mx={{ initial: "2", md: "4", lg: "8" }} // responsive horizontal margins
188
+ *
189
+ * @link
190
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left
191
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right
192
+ */
193
+ mx: {
194
+ type: "enum | string";
195
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
196
+ dataAttr: string;
197
+ className: string;
198
+ responsive: true;
199
+ };
200
+ /**
201
+ * Sets margin on the top and bottom (vertical) sides of the element.
202
+ * Supports scale, auto, inherit, custom, and responsive values.
203
+ *
204
+ * @example my="4" // 16px vertical margin
205
+ * @example my="-26px" // -26px negative vertical margin custom value
206
+ * @example my={{ initial: "2", md: "4", lg: "8" }} // responsive vertical margins
207
+ *
208
+ * @link
209
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top
210
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom
211
+ */
212
+ my: {
213
+ type: "enum | string";
214
+ values: readonly ["auto", "inherit", "-8", "-6", "-5", "-4", "-3", "-2", "-1", "0", "1", "2", "3", "4", "5", "6", "8"];
215
+ dataAttr: string;
216
+ className: string;
217
+ responsive: true;
218
+ };
219
+ };
220
+ type MarginProps = GetPropDefTypes<typeof MarginPropDefs>;
221
+
222
+ declare const PaddingPropDefs: {
223
+ /**
224
+ * Sets padding on all sides of the element.
225
+ * Supports scale, inherit, custom, and responsive values.
226
+ *
227
+ * @example p="4" // 16px padding on all sides
228
+ * @example p="26px" // 26px padding custom value
229
+ * @example p={{ initial: "2", md: "4", lg: "8" }} // responsive padding
230
+ *
231
+ * @link
232
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding
233
+ */
234
+ p: {
235
+ type: "enum | string";
236
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
237
+ dataAttr: string;
238
+ className: string;
239
+ responsive: true;
240
+ };
241
+ /**
242
+ * Sets padding on the top of the element.
243
+ * Supports scale, inherit, custom, and responsive values.
244
+ *
245
+ * @example pt="4" // 16px top padding
246
+ * @example pt="26px" // 26px top padding custom value
247
+ * @example pt={{ initial: "2", md: "4", lg: "8" }} // responsive top padding
248
+ *
249
+ * @link
250
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top
251
+ */
252
+ pt: {
253
+ type: "enum | string";
254
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
255
+ dataAttr: string;
256
+ className: string;
257
+ responsive: true;
258
+ };
259
+ /**
260
+ * Sets padding on the bottom of the element.
261
+ * Supports scale, inherit, custom, and responsive values.
262
+ *
263
+ * @example pb="4" // 16px bottom padding
264
+ * @example pb="26px" // 26px bottom padding custom value
265
+ * @example pb={{ initial: "2", md: "4", lg: "8" }} // responsive bottom padding
266
+ *
267
+ * @link
268
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom
269
+ */
270
+ pb: {
271
+ type: "enum | string";
272
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
273
+ dataAttr: string;
274
+ className: string;
275
+ responsive: true;
276
+ };
277
+ /**
278
+ * Sets padding on the left of the element.
279
+ * Supports scale, inherit, custom, and responsive values.
280
+ *
281
+ * @example pl="4" // 16px left padding
282
+ * @example pl="26px" // 26px left padding custom value
283
+ * @example pl={{ initial: "2", md: "4", lg: "8" }} // responsive left padding
284
+ *
285
+ * @link
286
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left
287
+ */
288
+ pl: {
289
+ type: "enum | string";
290
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
291
+ dataAttr: string;
292
+ className: string;
293
+ responsive: true;
294
+ };
295
+ /**
296
+ * Sets padding on the right of the element.
297
+ * Supports scale, inherit, custom, and responsive values.
298
+ *
299
+ * @example pr="4" // 16px right padding
300
+ * @example pr="26px" // 26px right padding custom value
301
+ * @example pr={{ initial: "2", md: "4", lg: "8" }} // responsive right padding
302
+ *
303
+ * @link
304
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right
305
+ */
306
+ pr: {
307
+ type: "enum | string";
308
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
309
+ dataAttr: string;
310
+ className: string;
311
+ responsive: true;
312
+ };
313
+ /**
314
+ * Sets padding on the left and right (horizontal) sides of the element.
315
+ * Supports scale, inherit, custom, and responsive values.
316
+ *
317
+ * @example px="4" // 16px horizontal padding
318
+ * @example px="26px" // 26px horizontal padding custom value
319
+ * @example px={{ initial: "2", md: "4", lg: "8" }} // responsive horizontal padding
320
+ *
321
+ * @link
322
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left
323
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right
324
+ */
325
+ px: {
326
+ type: "enum | string";
327
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
328
+ dataAttr: string;
329
+ className: string;
330
+ responsive: true;
331
+ };
332
+ /**
333
+ * Sets padding on the top and bottom (vertical) sides of the element.
334
+ * Supports scale, inherit, custom, and responsive values.
335
+ *
336
+ * @example py="4" // 16px vertical padding
337
+ * @example py="26px" // 26px vertical padding custom value
338
+ * @example py={{ initial: "2", md: "4", lg: "8" }} // responsive vertical padding
339
+ *
340
+ * @link
341
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top
342
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom
343
+ */
344
+ py: {
345
+ type: "enum | string";
346
+ values: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "8"];
347
+ dataAttr: string;
348
+ className: string;
349
+ responsive: true;
350
+ };
351
+ };
352
+ type PaddingProps = GetPropDefTypes<typeof PaddingPropDefs>;
353
+
354
+ declare const RadiusPropDefs: {
355
+ /**
356
+ * Sets the border-radius of the element.
357
+ * Supports scaled, inherit, custom, and responsive values.
358
+ *
359
+ * @example radius="md" // medium border-radius
360
+ * @example radius="26px" // 26px border-radius custom value
361
+ * @example radius={{ initial: "none", lg: "full" }} // responsive border-radius
362
+ *
363
+ * @default "theme" // uses the theme's default border-radius value or none if not set
364
+ *
365
+ * @link
366
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
367
+ */
368
+ radius: {
369
+ type: "enum | string";
370
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
371
+ default: "theme";
372
+ dataAttr: string;
373
+ className: string;
374
+ responsive: true;
375
+ };
376
+ /**
377
+ * Sets the top border-radius of the element.
378
+ * Supports scaled, inherit, custom, and responsive values.
379
+ *
380
+ * @example radius-t="md" // medium border-radius
381
+ * @example radius-t="26px" // 26px border-radius custom value
382
+ * @example radius-t={{ initial: "none", lg: "full" }} // responsive border-radius
383
+ *
384
+ * @link
385
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius
386
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
387
+ */
388
+ "radius-t": {
389
+ type: "enum | string";
390
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
391
+ dataAttr: string;
392
+ className: string;
393
+ responsive: true;
394
+ };
395
+ /**
396
+ * Sets the right border-radius of the element.
397
+ * Supports scaled, inherit, custom, and responsive values.
398
+ *
399
+ * @example radius-r="md" // medium border-radius
400
+ * @example radius-r="26px" // 26px border-radius custom value
401
+ * @example radius-r={{ initial: "none", lg: "full" }} // responsive border-radius
402
+ *
403
+ * @link
404
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
405
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
406
+ */
407
+ "radius-r": {
408
+ type: "enum | string";
409
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
410
+ dataAttr: string;
411
+ className: string;
412
+ responsive: true;
413
+ };
414
+ /**
415
+ * Sets the bottom border-radius of the element.
416
+ * Supports scaled, inherit, custom, and responsive values.
417
+ *
418
+ * @example radius-b="md" // medium border-radius
419
+ * @example radius-b="26px" // 26px border-radius custom value
420
+ * @example radius-b={{ initial: "none", lg: "full" }} // responsive border-radius
421
+ *
422
+ * @link
423
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius
424
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
425
+ */
426
+ "radius-b": {
427
+ type: "enum | string";
428
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
429
+ dataAttr: string;
430
+ className: string;
431
+ responsive: true;
432
+ };
433
+ /**
434
+ * Sets the left border-radius of the element.
435
+ * Supports scaled, inherit, custom, and responsive values.
436
+ *
437
+ * @example radius-l="md" // medium border-radius
438
+ * @example radius-l="26px" // 26px border-radius custom value
439
+ * @example radius-l={{ initial: "none", lg: "full" }} // responsive border-radius
440
+ *
441
+ * @link
442
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-top-radius
443
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-bottom-radius
444
+ */
445
+ "radius-l": {
446
+ type: "enum | string";
447
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
448
+ dataAttr: string;
449
+ className: string;
450
+ responsive: true;
451
+ };
452
+ /**
453
+ * Sets the top-left border-radius of the element.
454
+ * Supports scaled, inherit, custom, and responsive values.
455
+ *
456
+ * @example radius-tl="md" // medium border-radius
457
+ * @example radius-tl="26px" // 26px border-radius custom value
458
+ * @example radius-tl={{ initial: "none", lg: "full" }} // responsive border-radius
459
+ *
460
+ * @link
461
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius
462
+ */
463
+ "radius-tl": {
464
+ type: "enum | string";
465
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
466
+ dataAttr: string;
467
+ className: string;
468
+ responsive: true;
469
+ };
470
+ /**
471
+ * Sets the top-right border-radius of the element.
472
+ * Supports scaled, inherit, custom, and responsive values.
473
+ *
474
+ * @example "radius-tr"="md" // medium border-radius
475
+ * @example "radius-tr"="26px" // 26px border-radius custom value
476
+ * @example "radius-tr"={{ initial: "none", lg: "full" }} // responsive border-radius
477
+ *
478
+ * @link
479
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
480
+ */
481
+ "radius-tr": {
482
+ type: "enum | string";
483
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
484
+ dataAttr: string;
485
+ className: string;
486
+ responsive: true;
487
+ };
488
+ /**
489
+ * Sets the bottom-right border-radius of the element.
490
+ * Supports scaled, inherit, custom, and responsive values.
491
+ *
492
+ * @example "radius-br"="md" // medium border-radius
493
+ * @example "radius-br"="26px" // 26px border-radius custom value
494
+ * @example "radius-br"={{ initial: "none", lg: "full" }} // responsive border-radius
495
+ *
496
+ * @link
497
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
498
+ */
499
+ "radius-br": {
500
+ type: "enum | string";
501
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
502
+ dataAttr: string;
503
+ className: string;
504
+ responsive: true;
505
+ };
506
+ /**
507
+ * Sets the bottom-left border-radius of the element.
508
+ * Supports scaled, inherit, custom, and responsive values.
509
+ *
510
+ * @example "radius-bl"="md" // medium border-radius
511
+ * @example "radius-bl"="26px" // 26px border-radius custom value
512
+ * @example "radius-bl"={{ initial: "none", lg: "full" }} // responsive border-radius
513
+ *
514
+ * @link
515
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius
516
+ */
517
+ "radius-bl": {
518
+ type: "enum | string";
519
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
520
+ dataAttr: string;
521
+ className: string;
522
+ responsive: true;
523
+ };
524
+ };
525
+ type RadiusProps = GetPropDefTypes<typeof RadiusPropDefs>;
526
+
527
+ declare const RoundnessPropDef: {
528
+ /**
529
+ * Sets the roundness multiplier for the element's radius.
530
+ * Supports scaled and inherit values.
531
+ *
532
+ * @example roundness="4" // 8px base roundness
533
+ * @example roundness="inherit" // inherits roundness from parent
534
+ *
535
+ * @default "theme" // uses the theme's default roundness value or none if not set
536
+ */
537
+ roundness: {
538
+ type: "enum";
539
+ values: readonly ["1", "2", "3", "4", "5", "6", "inherit"];
540
+ default: "theme";
541
+ dataAttr: string;
542
+ };
543
+ };
544
+ type RoundnessProp = GetPropDefTypes<typeof RoundnessPropDef>;
545
+
546
+ declare const SizePropDef: {
547
+ /**
548
+ * Sets the size of the component.
549
+ *
550
+ * @example size="md" // medium sized component
551
+ */
552
+ size: {
553
+ type: "enum | string";
554
+ values: readonly ["xs", "sm", "md", "lg", "xl"];
555
+ dataAttr: string;
556
+ className: string;
557
+ };
558
+ };
559
+ type SizeProp = GetPropDefTypes<typeof SizePropDef>;
560
+
561
+ declare const SpacingPropDef: {
562
+ /**
563
+ * Sets the spacing scale for the component.
564
+ * This multiplier affects various layout properties such as margin, padding, and gap values.
565
+ *
566
+ * @example spacing="md" // medium spacing scale (1)
567
+ * @example spacing={{ initial: "sm", lg: "xl" }} // responsive spacing
568
+ *
569
+ * @default "theme" // uses the theme's default spacing value or none if not set
570
+ */
571
+ spacing: {
572
+ type: "enum";
573
+ values: readonly ["xs", "sm", "md", "lg", "xl", "inherit"];
574
+ dataAttr: string;
575
+ default: "theme";
576
+ responsive: true;
577
+ };
578
+ };
579
+ type SpacingProp = GetPropDefTypes<typeof SpacingPropDef>;
580
+
581
+ declare const AccordionContentPropDefs: {};
582
+ type AccordionContentInternalProps = GetPropDefTypes<typeof AccordionContentPropDefs>;
583
+
584
+ interface AllAccordionContentProps extends AccordionContentInternalProps, PaddingProps {
585
+ }
586
+ type AccordionContentProps = AllAccordionContentProps & Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
587
+ children?: React.ReactNode;
588
+ };
589
+
590
+ declare const AccordionHeaderPropDefs: {
591
+ /** The value of the parent AccordionItem — injected automatically */
592
+ value: {
593
+ type: "string";
594
+ };
595
+ };
596
+ type AccordionHeaderInternalProps = GetPropDefTypes<typeof AccordionHeaderPropDefs>;
597
+
598
+ interface AllAccordionHeaderProps extends AccordionHeaderInternalProps, PaddingProps {
599
+ }
600
+ type AccordionHeaderProps = AllAccordionHeaderProps & Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
601
+ children?: React.ReactNode;
602
+ };
603
+
604
+ declare const AccordionItemPropDefs: {
605
+ /**
606
+ * Sets the accordion item to be open by default.
607
+ */
608
+ readonly open: {
609
+ type: "boolean";
610
+ };
611
+ /**
612
+ * The value of the accordion item. Automatically generated if not provided.
613
+ */
614
+ readonly value: {
615
+ type: "string";
616
+ };
617
+ };
618
+ type AccordionItemInternalProps = GetPropDefTypes<typeof AccordionItemPropDefs>;
619
+
620
+ interface AllAccordionItemProps extends AccordionItemInternalProps {
621
+ }
622
+ /**
623
+ * An individual item within an accordion. Contains the header and content for a single section of the accordion.
624
+ */
625
+ type AccordionItemProps = AllAccordionItemProps & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children"> & {
626
+ children?: React__default.ReactNode;
627
+ };
628
+
629
+ /**
630
+ * Type utility to restrict children to specific React element types.
631
+ * Use with Omit<Props, 'children'> & StrictChildren<AllowedProps>
632
+ *
633
+ * @example
634
+ * type MyComponentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>
635
+ * & StrictChildren<ChildAProps | ChildBProps>;
636
+ */
637
+ type StrictChildren<AllowedChildProps> = {
638
+ children: React$1.ReactElement<AllowedChildProps> | React$1.ReactElement<AllowedChildProps>[];
639
+ };
640
+ /**
641
+ * Type utility to replace the children prop with strictly typed children.
642
+ * Combines Omit and StrictChildren in one step.
643
+ *
644
+ * @example
645
+ * type MyComponentProps = WithStrictChildren<
646
+ * React.HTMLAttributes<HTMLDivElement>,
647
+ * ChildAProps | ChildBProps
648
+ * >;
649
+ */
650
+ type WithStrictChildren<Props extends {
651
+ children?: React$1.ReactNode;
652
+ }, AllowedChildProps> = Omit<Props, "children"> & StrictChildren<AllowedChildProps>;
653
+
654
+ declare const AccordionRootPropsDefs: {
655
+ /**
656
+ * Sets the variant style of the accordion ("solid", "outlined", or "muted").
657
+ */
658
+ variant: {
659
+ type: "enum";
660
+ values: readonly ["solid", "outlined", "muted"];
661
+ dataAttr: string;
662
+ };
663
+ /**
664
+ * Allows multiple accordion items to be expanded simultaneously when set to true.
665
+ */
666
+ multiple: {
667
+ type: "boolean";
668
+ };
669
+ /**
670
+ * The value of the accordion.
671
+ */
672
+ value: ValueOrArrayPropDef<string>;
673
+ /**
674
+ * Callback fired when the value of the accordion changes.
675
+ */
676
+ onValueChange: FunctionPropDef<(value: string | string[] | null) => void>;
677
+ };
678
+ type AccordionRootInternalProps = GetPropDefTypes<typeof AccordionRootPropsDefs>;
679
+
680
+ interface AllAccordionRootProps extends AccordionRootInternalProps, SizeProp {
681
+ }
682
+ /**
683
+ * A versatile Accordion component, managing state, context, and styling.
684
+ */
685
+ type AccordionRootProps = AllAccordionRootProps & WithStrictChildren<HTMLAttributes<HTMLDivElement>, AccordionItemProps>;
686
+
687
+ declare const Accordion: React$1.FC<AccordionRootProps> & {
688
+ Root: React$1.FC<AccordionRootProps>;
689
+ Item: React$1.FC<AccordionItemProps>;
690
+ Header: React$1.FC<AccordionHeaderProps>;
691
+ Content: React$1.FC<AccordionContentProps>;
692
+ };
693
+
694
+ interface BoxExternalProps extends MarginProps, PaddingProps, SpacingProp, RadiusProps, RoundnessProp {
695
+ }
696
+ /**
697
+ * A versatile container used to provide layout and styling capabilities.
698
+ */
699
+ declare const Box: React$1.ForwardRefExoticComponent<GetPropDefTypes<{}> & BoxExternalProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
700
+
701
+ declare const ButtonRootPropsDefs: {
702
+ /**
703
+ * Sets the variant style of the button ("solid", "outlined", "muted", or "clear").
704
+ */
705
+ readonly variant: {
706
+ type: "enum";
707
+ values: readonly ["solid", "outlined", "muted", "clear"];
708
+ dataAttr: string;
709
+ };
710
+ /**
711
+ * Enables high contrast mode for better visibility.
712
+ * @default undefined
713
+ */
714
+ readonly highContrast: {
715
+ type: "boolean";
716
+ dataAttr: string;
717
+ };
718
+ /**
719
+ * Disables the button component.
720
+ * @default undefined
721
+ */
722
+ readonly disabled: {
723
+ type: "boolean";
724
+ dataAttr: string;
725
+ };
726
+ /**
727
+ * Makes the button read-only.
728
+ * @default undefined
729
+ */
730
+ readonly readonly: {
731
+ type: "boolean";
732
+ dataAttr: string;
733
+ };
734
+ };
735
+ type ButtonRootInternalProps = GetPropDefTypes<typeof ButtonRootPropsDefs>;
736
+
737
+ interface AllButtonRootProps extends ButtonRootInternalProps, ColorProp, MarginProps, PaddingProps, RadiusProps, SizeProp {
738
+ }
739
+ type ButtonRootProps = AllButtonRootProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
740
+ declare const Button: React.FC<ButtonRootProps>;
741
+
742
+ declare const CheckboxIndicatorPropDefs: {
743
+ /**
744
+ * Sets the variant style of the checkbox ("solid" or "outlined").
745
+ */
746
+ readonly variant: {
747
+ type: "enum";
748
+ values: readonly ["solid", "outlined", "muted"];
749
+ dataAttr: string;
750
+ };
751
+ };
752
+ type CheckboxIndicatorInternalProps = GetPropDefTypes<typeof CheckboxIndicatorPropDefs>;
753
+
754
+ interface AllCheckboxIndicatorProps extends CheckboxIndicatorInternalProps, SizeProp {
755
+ }
756
+ type CheckboxIndicatorProps = AllCheckboxIndicatorProps & Omit<React__default.HTMLAttributes<HTMLSpanElement>, "children">;
757
+
758
+ declare const CheckboxLabelPropDefs: {
759
+ /**
760
+ * Sets the position of the label relative to the checkbox.
761
+ *
762
+ * @example position="left" // positions the label to the left of the checkbox
763
+ * @example position="top" // positions the label above the checkbox
764
+ */
765
+ readonly position: {
766
+ type: "enum";
767
+ values: readonly ["top", "left", "right", "bottom"];
768
+ dataAttr: string;
769
+ };
770
+ };
771
+ type CheckboxLabelInternalProps = GetPropDefTypes<typeof CheckboxLabelPropDefs>;
772
+
773
+ interface AllCheckboxLabelProps extends CheckboxLabelInternalProps {
774
+ }
775
+ type CheckboxLabelProps = AllCheckboxLabelProps & Omit<React__default.HTMLAttributes<HTMLLabelElement>, "children"> & {
776
+ children?: React__default.ReactNode;
777
+ };
778
+
779
+ declare const CheckboxRootPropsDefs: {
780
+ /**
781
+ * Sets the variant style of the checkbox ("solid" or "outlined").
782
+ */
783
+ readonly variant: {
784
+ type: "enum";
785
+ values: readonly ["solid", "outlined", "muted"];
786
+ dataAttr: string;
787
+ };
788
+ /**
789
+ * Sets the checked state of the checkbox.
790
+ *
791
+ * When using an uncontrolled checkbox, use `defaultChecked` instead.
792
+ * @default undefined
793
+ */
794
+ readonly checked: {
795
+ type: "boolean";
796
+ dataAttr: string;
797
+ };
798
+ /**
799
+ * Sets the indeterminate state of the checkbox.
800
+ * @default undefined
801
+ */
802
+ readonly indeterminate: {
803
+ type: "boolean";
804
+ dataAttr: string;
805
+ };
806
+ /**
807
+ * Enables high contrast mode for better visibility.
808
+ * @default undefined
809
+ */
810
+ readonly highContrast: {
811
+ type: "boolean";
812
+ dataAttr: string;
813
+ };
814
+ /**
815
+ * The value of the checkbox (checked state).
816
+ */
817
+ readonly value: {
818
+ type: "boolean";
819
+ };
820
+ /**
821
+ * Sets the default checked state of the checkbox.
822
+ * @default undefined
823
+ */
824
+ readonly defaultChecked: {
825
+ type: "boolean";
826
+ };
827
+ /**
828
+ * Disables the checkbox component.
829
+ * @default undefined
830
+ */
831
+ readonly disabled: {
832
+ type: "boolean";
833
+ dataAttr: string;
834
+ };
835
+ /**
836
+ * Makes the checkbox read-only.
837
+ * @default undefined
838
+ */
839
+ readonly readonly: {
840
+ type: "boolean";
841
+ dataAttr: string;
842
+ };
843
+ /**
844
+ * Marks the checkbox as required.
845
+ * @default undefined
846
+ */
847
+ readonly required: {
848
+ type: "boolean";
849
+ dataAttr: string;
850
+ };
851
+ /**
852
+ * Sets the name attribute of the checkbox input for form control.
853
+ * @default undefined
854
+ */
855
+ readonly name: {
856
+ type: "string";
857
+ };
858
+ /**
859
+ * Callback fired when the checked state changes.
860
+ *
861
+ * @param value - The new checked state.
862
+ */
863
+ readonly onCheckedChange: FunctionPropDef<(value: boolean) => void>;
864
+ };
865
+ type CheckboxRootInternalProps = GetPropDefTypes<typeof CheckboxRootPropsDefs>;
866
+
867
+ interface AllCheckboxRootProps extends CheckboxRootInternalProps, AlignProp, ColorProp, MarginProps, SizeProp {
868
+ }
869
+ /**
870
+ * A versatile Checkbox, managing state, context, and styling.
871
+ */
872
+ type CheckboxRootProps = AllCheckboxRootProps & WithStrictChildren<HTMLAttributes<HTMLDivElement>, CheckboxLabelProps | CheckboxIndicatorProps>;
873
+
874
+ declare const Checkbox: React$1.FC<CheckboxRootProps> & {
875
+ Root: React$1.FC<CheckboxRootProps>;
876
+ Label: React$1.ForwardRefExoticComponent<AllCheckboxLabelProps & Omit<React$1.HTMLAttributes<HTMLLabelElement>, "children"> & {
877
+ children?: React.ReactNode;
878
+ } & React$1.RefAttributes<HTMLLabelElement>>;
879
+ Indicator: React$1.FC<CheckboxIndicatorProps>;
880
+ };
881
+
882
+ declare const Container: React$1.ForwardRefExoticComponent<{} & {
883
+ direction?: "row" | "column" | undefined;
884
+ } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
885
+
886
+ declare const variants: readonly ["clear", "shadow", "blurred"];
887
+ type PortalBackdropInternalProps = {
888
+ /**
889
+ * The visual style variant of the backdrop.
890
+ *
891
+ * @example variant="blurred" // Applies a blurred effect to the backdrop
892
+ * @default "clear"
893
+ */
894
+ variant?: (typeof variants)[number];
895
+ /**
896
+ * The opacity level of the backdrop.
897
+ *
898
+ * @example opacity="0.5" // Sets the backdrop opacity to 50%
899
+ * @default "0.3"
900
+ */
901
+ opacity?: string;
902
+ /**
903
+ * The blur amount applied to the backdrop when the "blurred" variant is used.
904
+ *
905
+ * @example blur="4px" // Sets the backdrop blur to 4 pixels
906
+ * @default "2px"
907
+ */
908
+ blur?: string;
909
+ };
910
+
911
+ interface AllPortalBackdropProps extends PortalBackdropInternalProps {
912
+ }
913
+ type PortalBackdropProps = AllPortalBackdropProps & Omit<React$1.HTMLAttributes<HTMLDivElement>, "children">;
914
+
915
+ declare const PortalContentPropsDefs: {
916
+ /**
917
+ * The position of the portal content relative to the screen if no anchor is used.
918
+ *
919
+ * @example position="bl" // Portal renders at bottom-left of the screen
920
+ */
921
+ position: {
922
+ type: "enum";
923
+ values: readonly ["tl", "top", "tr", "left", "center", "right", "bl", "bottom", "br"];
924
+ default: "center";
925
+ dataAttr: string;
926
+ };
927
+ /**
928
+ * Whether the portal content is anchored to an element.
929
+ *
930
+ * When anchored, the portal content is positioned relative to the trigger element unless a custom anchorRef is provided.
931
+ */
932
+ anchored: {
933
+ type: "boolean";
934
+ dataAttr: string;
935
+ };
936
+ /**
937
+ * The side of the anchor element to position the portal content on.
938
+ *
939
+ * @default "bottom"
940
+ */
941
+ side: {
942
+ type: "enum";
943
+ values: readonly ["top", "right", "bottom", "left"];
944
+ default: "bottom";
945
+ };
946
+ /** Offset in pixels from the anchor element along the side axis. */
947
+ sideOffset: {
948
+ type: "string";
949
+ };
950
+ /** Offset in pixels along the alignment axis. */
951
+ alignOffset: {
952
+ type: "string";
953
+ };
954
+ };
955
+ type PortalContentInternalProps = GetPropDefTypes<typeof PortalContentPropsDefs>;
956
+
957
+ interface AllPortalContentProps extends PortalContentInternalProps, AlignProp {
958
+ }
959
+ type PortalContentProps = AllPortalContentProps & React$1.HTMLAttributes<HTMLDivElement>;
960
+
961
+ interface PortalTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
962
+ asChild?: boolean;
963
+ }
964
+
965
+ declare const PortalRootPropsDefs: {
966
+ /** Whether the portal is open. */
967
+ open: {
968
+ type: "boolean";
969
+ default: false;
970
+ };
971
+ /** Callback fired when the open state changes. */
972
+ onOpenChange: {
973
+ type: "function";
974
+ };
975
+ /** Whether the portal is open by default (uncontrolled). */
976
+ defaultOpen: {
977
+ type: "boolean";
978
+ default: false;
979
+ };
980
+ /** Custom anchor element ref. If not provided, the trigger is used as anchor. */
981
+ anchorRef: ReactNodePropDef<React.RefObject<HTMLElement | null>>;
982
+ };
983
+ type PortalRootInternalProps = GetPropDefTypes<typeof PortalRootPropsDefs>;
984
+
985
+ interface AllPortalRootProps extends PortalRootInternalProps {
986
+ }
987
+ type PortalRootProps = AllPortalRootProps & WithStrictChildren<React$1.HTMLAttributes<HTMLDivElement>, PortalTriggerProps | PortalBackdropProps | PortalContentProps>;
988
+
989
+ declare const Portal: {
990
+ /** The root component that provides context for the portal. */
991
+ Root: React$1.FC<PortalRootProps>;
992
+ /** The trigger element that opens the portal when interacted with. */
993
+ Trigger: React$1.ForwardRefExoticComponent<PortalTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
994
+ /** The content displayed inside the portal when open. */
995
+ Content: React$1.ForwardRefExoticComponent<AllPortalContentProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
996
+ /** A backdrop optionally displayed behind portal content when open. */
997
+ Backdrop: React$1.ForwardRefExoticComponent<AllPortalBackdropProps & Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & React$1.RefAttributes<HTMLDivElement>>;
998
+ };
999
+
1000
+ interface SelectSeparatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
1001
+ }
1002
+
1003
+ declare const SelectItemPropDefs: {
1004
+ readonly value: {
1005
+ type: "string";
1006
+ };
1007
+ readonly disabled: {
1008
+ type: "boolean";
1009
+ default: false;
1010
+ };
1011
+ };
1012
+ type SelectItemInternalProps = GetPropDefTypes<typeof SelectItemPropDefs>;
1013
+
1014
+ interface AllSelectItemProps extends SelectItemInternalProps {
1015
+ }
1016
+
1017
+ declare const SelectLabelPropDefs: {
1018
+ readonly position: {
1019
+ type: "enum";
1020
+ values: readonly ["top", "left", "inside"];
1021
+ default: "top";
1022
+ dataAttr: string;
1023
+ };
1024
+ };
1025
+ type SelectLabelInternalProps = GetPropDefTypes<typeof SelectLabelPropDefs>;
1026
+
1027
+ interface AllSelectLabelProps extends SelectLabelInternalProps {
1028
+ }
1029
+ type SelectLabelProps = AllSelectLabelProps & Omit<React$1.HTMLAttributes<HTMLLabelElement>, "children"> & {
1030
+ children?: React$1.ReactNode;
1031
+ };
1032
+
1033
+ declare const SelectGroupsPropDefs: {
1034
+ readonly title: {
1035
+ type: "string";
1036
+ };
1037
+ };
1038
+ type SelectGroupInternalProps = GetPropDefTypes<typeof SelectGroupsPropDefs>;
1039
+
1040
+ interface AllSelectGroupProps extends SelectGroupInternalProps {
1041
+ }
1042
+
1043
+ interface SelectViewportProps extends React$1.HTMLAttributes<HTMLDivElement> {
1044
+ }
1045
+
1046
+ declare const SelectContentPropDefs: {
1047
+ readonly position: {
1048
+ type: "enum";
1049
+ values: readonly ["popper", "inline"];
1050
+ default: "popper";
1051
+ dataAttr: string;
1052
+ };
1053
+ readonly side: {
1054
+ type: "enum";
1055
+ values: readonly ["top", "bottom"];
1056
+ default: "bottom";
1057
+ dataAttr: string;
1058
+ };
1059
+ readonly offset: {
1060
+ type: "string";
1061
+ };
1062
+ readonly align: {
1063
+ type: "enum";
1064
+ values: readonly ["start", "center", "end"];
1065
+ default: "center";
1066
+ dataAttr: string;
1067
+ };
1068
+ };
1069
+ type SelectContentInternalProps = GetPropDefTypes<typeof SelectContentPropDefs>;
1070
+
1071
+ interface AllSelectContentProps extends SelectContentInternalProps, RadiusProps, SpacingProp {
1072
+ }
1073
+ type SelectContentProps = AllSelectContentProps & Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
1074
+ children?: React$1.ReactNode;
1075
+ };
1076
+
1077
+ declare const SelectTriggerPropsDefs: {};
1078
+ type SelectTriggerInternalProps = GetPropDefTypes<typeof SelectTriggerPropsDefs>;
1079
+
1080
+ interface AllSelectTriggerProps extends SelectTriggerInternalProps, RadiusProps, RoundnessProp {
1081
+ }
1082
+ type SelectTriggerProps = AllSelectTriggerProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
1083
+ asChild?: boolean;
1084
+ children?: React$1.ReactNode;
1085
+ };
1086
+
1087
+ declare const SelectRootPropsDefs: {
1088
+ readonly variant: {
1089
+ type: "enum";
1090
+ values: readonly ["outlined", "solid", "clear"];
1091
+ dataAttr: string;
1092
+ };
1093
+ readonly value: {
1094
+ type: "string";
1095
+ };
1096
+ readonly defaultValue: {
1097
+ type: "string";
1098
+ };
1099
+ readonly disabled: {
1100
+ type: "boolean";
1101
+ };
1102
+ readonly required: {
1103
+ type: "boolean";
1104
+ };
1105
+ readonly placeholder: {
1106
+ type: "string";
1107
+ };
1108
+ readonly name: {
1109
+ type: "string";
1110
+ };
1111
+ readonly onValueChange: FunctionPropDef<(value: string) => void>;
1112
+ };
1113
+ type SelectRootInternalProps = GetPropDefTypes<typeof SelectRootPropsDefs>;
1114
+
1115
+ interface AllSelectRootProps extends SelectRootInternalProps, MarginProps, RadiusProps {
1116
+ }
1117
+ type SelectRootProps = AllSelectRootProps & WithStrictChildren<HTMLAttributes<HTMLSelectElement>, SelectLabelProps | SelectTriggerProps | SelectContentProps>;
1118
+
1119
+ declare const Select: {
1120
+ Root: React$1.FC<SelectRootProps>;
1121
+ Trigger: React$1.ForwardRefExoticComponent<AllSelectTriggerProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
1122
+ asChild?: boolean;
1123
+ children?: React.ReactNode;
1124
+ } & React$1.RefAttributes<HTMLButtonElement>>;
1125
+ Content: React$1.ForwardRefExoticComponent<AllSelectContentProps & Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
1126
+ children?: React.ReactNode;
1127
+ } & React$1.RefAttributes<HTMLDivElement>>;
1128
+ Viewport: React$1.ForwardRefExoticComponent<SelectViewportProps & React$1.RefAttributes<HTMLDivElement>>;
1129
+ Group: React$1.ForwardRefExoticComponent<AllSelectGroupProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1130
+ Label: React$1.ForwardRefExoticComponent<AllSelectLabelProps & Omit<React$1.HTMLAttributes<HTMLLabelElement>, "children"> & {
1131
+ children?: React.ReactNode;
1132
+ } & React$1.RefAttributes<HTMLLabelElement>>;
1133
+ Item: React$1.ForwardRefExoticComponent<AllSelectItemProps & Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
1134
+ children?: React.ReactNode;
1135
+ } & React$1.RefAttributes<HTMLDivElement>>;
1136
+ Separator: React$1.ForwardRefExoticComponent<SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
1137
+ };
1138
+
1139
+ declare const SeparatorPropsDefs: {
1140
+ /**
1141
+ * The direction of the separator.
1142
+ *
1143
+ * @example direction="vertical" // positions the separator vertically
1144
+ */
1145
+ direction: {
1146
+ type: "enum";
1147
+ values: readonly ["horizontal", "vertical"];
1148
+ default: "horizontal";
1149
+ dataAttr: string;
1150
+ };
1151
+ /**
1152
+ * The variant of the separator.
1153
+ *
1154
+ * @example variant="dashed" // makes the separator dashed
1155
+ */
1156
+ variant: {
1157
+ type: "enum";
1158
+ values: readonly ["solid", "dashed", "dotted"];
1159
+ default: "solid";
1160
+ dataAttr: string;
1161
+ };
1162
+ };
1163
+ type SeparatorInternalProps = GetPropDefTypes<typeof SeparatorPropsDefs>;
1164
+
1165
+ interface AllSeparatorProps extends SeparatorInternalProps, MarginProps, PaddingProps {
1166
+ }
1167
+ type SeparatorProps = AllSeparatorProps & React__default.HTMLAttributes<HTMLDivElement>;
1168
+ /**
1169
+ * A component for visually separating content with a line
1170
+ */
1171
+ declare const Separator: FC<SeparatorProps>;
1172
+
1173
+ interface TextExternalProps extends MarginProps, PaddingProps {
1174
+ }
1175
+ /**
1176
+ * A component for displaying text with customizable styling and layout.
1177
+ */
1178
+ declare const Text: React__default.ForwardRefExoticComponent<GetPropDefTypes<{
1179
+ disabled: {
1180
+ type: "boolean";
1181
+ default: false;
1182
+ dataAttr: string;
1183
+ };
1184
+ }> & TextExternalProps & React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
1185
+
1186
+ declare const ThemePropsDefs: {
1187
+ appearance: {
1188
+ type: "enum";
1189
+ values: readonly ["inherit", "light", "dark"];
1190
+ default: "inherit";
1191
+ };
1192
+ radius: {
1193
+ type: "enum";
1194
+ values: readonly ["none", "xs", "sm", "md", "lg", "xl", "full", "inherit"];
1195
+ default: "md";
1196
+ };
1197
+ roundness: {
1198
+ type: "enum";
1199
+ values: readonly ["1", "2", "3", "4", "5", "6", "inherit"];
1200
+ default: "3";
1201
+ };
1202
+ spacing: {
1203
+ type: "enum";
1204
+ values: readonly ["xs", "sm", "md", "lg", "xl", "inherit"];
1205
+ default: "md";
1206
+ };
1207
+ };
1208
+
1209
+ declare const Theme: React$1.ForwardRefExoticComponent<{} & {
1210
+ radius?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "none" | "full" | undefined;
1211
+ roundness?: "inherit" | "1" | "2" | "3" | "4" | "5" | "6" | undefined;
1212
+ spacing?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | undefined;
1213
+ appearance?: "inherit" | "dark" | "light" | undefined;
1214
+ } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
1215
+
1216
+ type ThemeAppearance = (typeof ThemePropsDefs.appearance.values)[number];
1217
+ type ThemeRadius = (typeof ThemePropsDefs.radius.values)[number];
1218
+ type ThemeRoundness = (typeof ThemePropsDefs.roundness.values)[number];
1219
+ type ThemeSpacing = (typeof ThemePropsDefs.spacing.values)[number];
1220
+ interface ThemeChangeHandlers {
1221
+ onAppearanceChange?: (appearance: ThemeAppearance) => void;
1222
+ onRadiusChange?: (radius: ThemeRadius) => void;
1223
+ onRoundnessChange?: (roundness: ThemeRoundness) => void;
1224
+ onSpacingChange?: (spacing: ThemeSpacing) => void;
1225
+ }
1226
+ interface ThemeContextValue extends ThemeChangeHandlers {
1227
+ appearance: ThemeAppearance;
1228
+ radius: ThemeRadius;
1229
+ roundness: ThemeRoundness;
1230
+ spacing: ThemeSpacing;
1231
+ }
1232
+ declare function useTheme(): ThemeContextValue;
1233
+
1234
+ declare function ThemeControl(): react_jsx_runtime.JSX.Element;
1235
+
1236
+ export { Accordion, Box, Button, Checkbox, Container, Portal, Select, Separator, Text, Theme, type ThemeAppearance, ThemeControl, type ThemeRadius, type ThemeRoundness, type ThemeSpacing, useTheme };