@okshaun/components 0.1.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.
@@ -0,0 +1,832 @@
1
+ import { AriaAttributes } from 'react';
2
+ import { BadgeVariantProps } from '../../../styled-system/recipes';
3
+ import { BoxVariantProps } from '../../../styled-system/recipes';
4
+ import { ButtonVariantProps } from '../../../styled-system/recipes';
5
+ import { CardVariantProps } from '../../../styled-system/recipes';
6
+ import { ChangeEventHandler } from 'react';
7
+ import { CheckboxInputVariantProps } from '../../../styled-system/recipes';
8
+ import { CheckboxVariantProps } from '../../../styled-system/recipes';
9
+ import { ColorToken } from '../../../styled-system/tokens';
10
+ import { ComponentPropsWithoutRef } from 'react';
11
+ import { default as default_2 } from 'react';
12
+ import { DividerVariantProps } from '../../../styled-system/recipes';
13
+ import { ElementType } from 'react';
14
+ import { FC } from 'react';
15
+ import { FontSizeToken } from '../../../styled-system/tokens';
16
+ import { FontToken } from '../../../styled-system/tokens';
17
+ import { FontWeightToken } from '../../../styled-system/tokens';
18
+ import { HeadingVariantProps } from '../../../styled-system/recipes';
19
+ import { IconButtonVariantProps } from '../../../styled-system/recipes';
20
+ import { IconNamesList } from './icons';
21
+ import { JSX } from 'react/jsx-runtime';
22
+ import { LabelVariantProps } from '../../../styled-system/recipes';
23
+ import { LinkVariantProps } from '../../../styled-system/recipes';
24
+ import { MenuVariantProps } from '../../../styled-system/recipes';
25
+ import { RadioInputVariantProps } from '../../../styled-system/recipes';
26
+ import { RadioVariantProps } from '../../../styled-system/recipes';
27
+ import * as React_2 from 'react';
28
+ import { ReactNode } from 'react';
29
+ import { SpinnerVariantProps } from '../../../styled-system/recipes';
30
+ import { SVGAttributes } from 'react';
31
+ import { SystemStyleObject } from '../../../styled-system/types';
32
+ import { TagVariantProps } from '../../../styled-system/recipes';
33
+ import { TextareaVariantProps } from '../../../styled-system/recipes';
34
+ import { TextinputVariantProps } from '../../../styled-system/recipes';
35
+ import { TextVariantProps } from '../../../styled-system/recipes';
36
+ import { ToggleInputVariantProps } from '../../../styled-system/recipes';
37
+ import { ToggleVariantProps } from '../../../styled-system/recipes';
38
+ import { TooltipVariantProps } from '../../../styled-system/recipes';
39
+
40
+ declare type AllowedIconSizes = keyof typeof numericSizes;
41
+
42
+ /**
43
+ * The Badge component uses the polymorphic Box as its base.
44
+ * Renders as a <span> by default but can be changed via the 'as' prop.
45
+ */
46
+ export declare const Badge: BadgeComponent;
47
+
48
+ /**
49
+ * Define a polymorphic BadgeComponent type.
50
+ */
51
+ declare type BadgeComponent = <E extends React_2.ElementType = 'span'>(props: BadgeProps<E> & {
52
+ ref?: React_2.ForwardedRef<Element>;
53
+ }) => React_2.ReactElement;
54
+
55
+ /**
56
+ * BadgeProps is generic and manages its own polymorphism.
57
+ * It includes props for the element type E (default "span") and BadgeVariantProps.
58
+ */
59
+ declare type BadgeProps<E extends React_2.ElementType = 'span'> = React_2.ComponentPropsWithoutRef<E> & BadgeVariantProps & {
60
+ as?: E;
61
+ className?: string;
62
+ children?: React_2.ReactNode;
63
+ };
64
+
65
+ export declare const Box: default_2.FC<BoxProps>;
66
+
67
+ declare type BoxProps = Omit<ComponentPropsWithoutRef<ElementType>, 'as'> & SystemStyleObject & BoxVariantProps & {
68
+ as?: ElementType;
69
+ } & AriaAttributes;
70
+
71
+ export declare const Breadcrumbs: default_2.FC<BreadcrumbsProps>;
72
+
73
+ declare type BreadcrumbsProps = BoxProps & {
74
+ items: {
75
+ id: string;
76
+ label: string;
77
+ href?: string;
78
+ }[];
79
+ };
80
+
81
+ /**
82
+ * The Button component uses the polymorphic Box as its base.
83
+ * It automatically renders as an <a> if href is provided.
84
+ * Since ButtonProps extends BoxProps, any extra props (like onClick) are automatically allowed.
85
+ */
86
+ export declare const Button: ButtonComponent;
87
+
88
+ /**
89
+ * Define a polymorphic ButtonComponent type.
90
+ * The ref type will be inferred from the element type E.
91
+ */
92
+ declare type ButtonComponent = <E extends React_2.ElementType = 'button'>(props: ButtonProps<E> & {
93
+ ref?: React_2.ForwardedRef<Element>;
94
+ }) => React_2.ReactElement;
95
+
96
+ /**
97
+ * ButtonProps is generic and manages its own polymorphism.
98
+ * It includes props for the element type E (default "button") and ButtonVariantProps.
99
+ * This means that any prop accepted by the underlying element (e.g. onClick) is automatically allowed.
100
+ */
101
+ declare type ButtonProps<E extends React_2.ElementType = 'button'> = React_2.ComponentPropsWithoutRef<E> & ButtonVariantProps & {
102
+ as?: E;
103
+ href?: string;
104
+ loading?: boolean;
105
+ className?: string;
106
+ children?: React_2.ReactNode;
107
+ disabled?: boolean;
108
+ };
109
+
110
+ export declare const Card: React.FC<CardProps>;
111
+
112
+ declare type CardProps = Omit<BoxProps, keyof CardVariantProps> & CardVariantProps & {
113
+ href?: string;
114
+ children?: string | ReactNode;
115
+ grabbed?: boolean;
116
+ disabled?: boolean;
117
+ };
118
+
119
+ /**
120
+ * Checkbox is a controlled component.
121
+ * You must pass `checked` and `onChange` props.
122
+ *
123
+ * @example
124
+ * const [checked, setChecked] = useState(false);
125
+ * <Checkbox
126
+ * checked={checked}
127
+ * onChange={(e) => setChecked(e.target.checked)}
128
+ * />
129
+ */
130
+ export declare const Checkbox: React.FC<CheckboxProps>;
131
+
132
+ export declare const CheckboxInput: FC<CheckboxInputProps>;
133
+
134
+ declare type CheckboxInputProps = BoxProps & CheckboxInputVariantProps & {
135
+ name: string;
136
+ id?: string;
137
+ error?: boolean;
138
+ children?: string | ReactNode;
139
+ checked: boolean;
140
+ onChange: ChangeEventHandler<HTMLInputElement>;
141
+ };
142
+
143
+ declare type CheckboxProps = {
144
+ /** Form field name */
145
+ name: string;
146
+ /** Controlled checked state (REQUIRED) */
147
+ checked: boolean;
148
+ /** Change handler (REQUIRED) */
149
+ onChange: ChangeEventHandler<HTMLInputElement>;
150
+ /** Unique identifier for the checkbox */
151
+ id?: string;
152
+ /** Display indeterminate state (partially checked) */
153
+ indeterminate?: boolean;
154
+ /** Disable the checkbox */
155
+ disabled?: boolean;
156
+ /** Display error state */
157
+ error?: boolean;
158
+ } & Omit<BoxProps, 'checked' | 'onChange' | keyof CheckboxVariantProps> & CheckboxVariantProps;
159
+
160
+ export declare const Divider: React.FC<DividerProps>;
161
+
162
+ declare type DividerProps = Omit<BoxProps, keyof DividerVariantProps> & DividerVariantProps & {
163
+ direction?: string;
164
+ weight?: string;
165
+ };
166
+
167
+ export declare const Heading: React.FC<HeadingProps>;
168
+
169
+ declare type HeadingProps = Omit<TextProps, keyof HeadingVariantProps> & HeadingVariantProps & {
170
+ children?: string | React.ReactNode;
171
+ level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
172
+ };
173
+
174
+ export declare const Icon: default_2.FC<IconProps>;
175
+
176
+ /**
177
+ * The IconButton component builds on Box.
178
+ * It automatically renders as a "button" (or an "a" if an href is provided)
179
+ * and applies the iconButton recipe styles.
180
+ *
181
+ * If the caller does not pass children but does provide an 'iconName',
182
+ * the component renders the corresponding Icon automatically.
183
+ */
184
+ export declare const IconButton: IconButtonComponent;
185
+
186
+ /**
187
+ * Define the polymorphic component type for IconButton.
188
+ */
189
+ declare type IconButtonComponent = <E extends React_2.ElementType = 'button'>(props: IconButtonProps<E> & {
190
+ ref?: React_2.ForwardedRef<Element>;
191
+ }) => React_2.ReactElement;
192
+
193
+ /**
194
+ * IconButtonProps is generic and manages its own polymorphism.
195
+ * It includes props for the element type E (default "button") and IconButtonVariantProps.
196
+ *
197
+ * We've added a new optional prop 'iconName'. When provided (and if no children
198
+ * are passed), IconButton will render the corresponding Icon automatically.
199
+ */
200
+ declare type IconButtonProps<E extends React_2.ElementType = 'button'> = React_2.ComponentPropsWithoutRef<E> & IconButtonVariantProps & {
201
+ as?: E;
202
+ href?: string;
203
+ loading?: boolean;
204
+ loadingText?: React_2.ReactNode;
205
+ children?: React_2.ReactNode;
206
+ disabled?: boolean;
207
+ className?: string;
208
+ iconName?: IconNamesList;
209
+ };
210
+
211
+ export declare const IconNames: {
212
+ readonly 'aa-placeholder': "aa-placeholder";
213
+ readonly alarm: "alarm";
214
+ readonly 'alt-route': "alt-route";
215
+ readonly apps: "apps";
216
+ readonly 'arrow-bubble': "arrow-bubble";
217
+ readonly 'arrow-down': "arrow-down";
218
+ readonly 'arrow-drop-down': "arrow-drop-down";
219
+ readonly 'arrow-drop-up': "arrow-drop-up";
220
+ readonly 'arrow-left': "arrow-left";
221
+ readonly 'arrow-line-down': "arrow-line-down";
222
+ readonly 'arrow-line-left': "arrow-line-left";
223
+ readonly 'arrow-line-right': "arrow-line-right";
224
+ readonly 'arrow-line-up': "arrow-line-up";
225
+ readonly 'arrow-prompt': "arrow-prompt";
226
+ readonly 'arrow-redo': "arrow-redo";
227
+ readonly 'arrow-right': "arrow-right";
228
+ readonly 'arrow-square-in': "arrow-square-in";
229
+ readonly 'arrow-square-out': "arrow-square-out";
230
+ readonly 'arrow-undo': "arrow-undo";
231
+ readonly 'arrow-up': "arrow-up";
232
+ readonly 'arrows-down-up': "arrows-down-up";
233
+ readonly 'arrows-left-right': "arrows-left-right";
234
+ readonly asterisk: "asterisk";
235
+ readonly at: "at";
236
+ readonly attachment: "attachment";
237
+ readonly bank: "bank";
238
+ readonly 'barcode-reader': "barcode-reader";
239
+ readonly barcode: "barcode";
240
+ readonly barricade: "barricade";
241
+ readonly basket: "basket";
242
+ readonly 'bell-active': "bell-active";
243
+ readonly 'bell-slash': "bell-slash";
244
+ readonly bell: "bell";
245
+ readonly bin: "bin";
246
+ readonly 'blog-post': "blog-post";
247
+ readonly blueprint: "blueprint";
248
+ readonly 'book-a': "book-a";
249
+ readonly book: "book";
250
+ readonly 'bookmark-outlined': "bookmark-outlined";
251
+ readonly bookmark: "bookmark";
252
+ readonly bookmarks: "bookmarks";
253
+ readonly broadcast: "broadcast";
254
+ readonly Building: "Building";
255
+ readonly 'calendar-add': "calendar-add";
256
+ readonly 'calendar-view-day': "calendar-view-day";
257
+ readonly 'calendar-view-month': "calendar-view-month";
258
+ readonly 'calendar-view-week': "calendar-view-week";
259
+ readonly calendar: "calendar";
260
+ readonly 'caret-down': "caret-down";
261
+ readonly 'caret-left': "caret-left";
262
+ readonly 'caret-right': "caret-right";
263
+ readonly 'caret-up': "caret-up";
264
+ readonly cart: "cart";
265
+ readonly certificate: "certificate";
266
+ readonly 'check-all': "check-all";
267
+ readonly 'check-thick': "check-thick";
268
+ readonly check: "check";
269
+ readonly 'checkbox-checked': "checkbox-checked";
270
+ readonly 'checkbox-focus': "checkbox-focus";
271
+ readonly 'checkbox-indeterminate': "checkbox-indeterminate";
272
+ readonly checkbox: "checkbox";
273
+ readonly 'circle-change': "circle-change";
274
+ readonly 'circle-check': "circle-check";
275
+ readonly circle: "circle";
276
+ readonly 'circles-add': "circles-add";
277
+ readonly circuit: "circuit";
278
+ readonly clipboard: "clipboard";
279
+ readonly 'clock-countdown': "clock-countdown";
280
+ readonly clock: "clock";
281
+ readonly 'cloud-synced': "cloud-synced";
282
+ readonly code: "code";
283
+ readonly color: "color";
284
+ readonly compass: "compass";
285
+ readonly cone: "cone";
286
+ readonly confetti: "confetti";
287
+ readonly copy: "copy";
288
+ readonly 'credit-card': "credit-card";
289
+ readonly 'cube-focus': "cube-focus";
290
+ readonly 'cursor-click': "cursor-click";
291
+ readonly cursor: "cursor";
292
+ readonly cut: "cut";
293
+ readonly 'data-object': "data-object";
294
+ readonly database: "database";
295
+ readonly devices: "devices";
296
+ readonly dictionary: "dictionary";
297
+ readonly dna: "dna";
298
+ readonly donut: "donut";
299
+ readonly dot: "dot";
300
+ readonly dots: "dots";
301
+ readonly 'download-cloud': "download-cloud";
302
+ readonly download: "download";
303
+ readonly edit: "edit";
304
+ readonly encrypted: "encrypted";
305
+ readonly envelope: "envelope";
306
+ readonly equal: "equal";
307
+ readonly eraser: "eraser";
308
+ readonly error: "error";
309
+ readonly 'event-list': "event-list";
310
+ readonly export: "export";
311
+ readonly extension: "extension";
312
+ readonly 'eye-slash': "eye-slash";
313
+ readonly eye: "eye";
314
+ readonly faq: "faq";
315
+ readonly 'file-add': "file-add";
316
+ readonly file: "file";
317
+ readonly files: "files";
318
+ readonly 'filter-remove': "filter-remove";
319
+ readonly filter: "filter";
320
+ readonly finish: "finish";
321
+ readonly 'fit-screen': "fit-screen";
322
+ readonly 'flag-checkered': "flag-checkered";
323
+ readonly flag: "flag";
324
+ readonly forklift: "forklift";
325
+ readonly 'fullscreen-exit': "fullscreen-exit";
326
+ readonly fullscreen: "fullscreen";
327
+ readonly garage: "garage";
328
+ readonly gauge: "gauge";
329
+ readonly 'globe-grid': "globe-grid";
330
+ readonly globe: "globe";
331
+ readonly gripper: "gripper";
332
+ readonly 'handle-vertical': "handle-vertical";
333
+ readonly handle: "handle";
334
+ readonly hash: "hash";
335
+ readonly 'heart-outlined': "heart-outlined";
336
+ readonly heart: "heart";
337
+ readonly help: "help";
338
+ readonly history: "history";
339
+ readonly home: "home";
340
+ readonly image: "image";
341
+ readonly images: "images";
342
+ readonly inbox: "inbox";
343
+ readonly infinity: "infinity";
344
+ readonly info: "info";
345
+ readonly inventory: "inventory";
346
+ readonly invoice: "invoice";
347
+ readonly 'jump-back': "jump-back";
348
+ readonly 'jump-forward': "jump-forward";
349
+ readonly kanban: "kanban";
350
+ readonly 'kbd-backspace': "kbd-backspace";
351
+ readonly 'kbd-capslock': "kbd-capslock";
352
+ readonly 'kbd-command': "kbd-command";
353
+ readonly 'kbd-control': "kbd-control";
354
+ readonly 'kbd-hide': "kbd-hide";
355
+ readonly 'kbd-option': "kbd-option";
356
+ readonly 'kbd-return': "kbd-return";
357
+ readonly 'kbd-shift': "kbd-shift";
358
+ readonly 'kbd-space': "kbd-space";
359
+ readonly kbd: "kbd";
360
+ readonly lightning: "lightning";
361
+ readonly 'line-segment': "line-segment";
362
+ readonly 'line-segments': "line-segments";
363
+ readonly 'link-slash': "link-slash";
364
+ readonly link: "link";
365
+ readonly 'linked-services': "linked-services";
366
+ readonly 'list-bullets': "list-bullets";
367
+ readonly 'list-checks': "list-checks";
368
+ readonly 'list-numbers': "list-numbers";
369
+ readonly 'lock-open': "lock-open";
370
+ readonly lock: "lock";
371
+ readonly 'map-pin': "map-pin";
372
+ readonly map: "map";
373
+ readonly 'mark-unread': "mark-unread";
374
+ readonly 'menu-close': "menu-close";
375
+ readonly menu: "menu";
376
+ readonly message: "message";
377
+ readonly messages: "messages";
378
+ readonly 'minus-thick': "minus-thick";
379
+ readonly minus: "minus";
380
+ readonly money: "money";
381
+ readonly monitor: "monitor";
382
+ readonly moon: "moon";
383
+ readonly navigation: "navigation";
384
+ readonly 'network-x': "network-x";
385
+ readonly network: "network";
386
+ readonly 'newspaper-clipping': "newspaper-clipping";
387
+ readonly newspaper: "newspaper";
388
+ readonly 'note-stack': "note-stack";
389
+ readonly note: "note";
390
+ readonly notepad: "notepad";
391
+ readonly notification: "notification";
392
+ readonly nut: "nut";
393
+ readonly order: "order";
394
+ readonly package: "package";
395
+ readonly 'page-first': "page-first";
396
+ readonly 'page-last': "page-last";
397
+ readonly parts: "parts";
398
+ readonly password: "password";
399
+ readonly path: "path";
400
+ readonly pause: "pause";
401
+ readonly pencil: "pencil";
402
+ readonly percent: "percent";
403
+ readonly 'play-pause': "play-pause";
404
+ readonly play: "play";
405
+ readonly plus: "plus";
406
+ readonly printer: "printer";
407
+ readonly prohibit: "prohibit";
408
+ readonly 'question-mark': "question-mark";
409
+ readonly quote: "quote";
410
+ readonly 'radio-checked': "radio-checked";
411
+ readonly 'radio-focus': "radio-focus";
412
+ readonly radio: "radio";
413
+ readonly 'read-doc': "read-doc";
414
+ readonly receipt: "receipt";
415
+ readonly recycle: "recycle";
416
+ readonly refresh: "refresh";
417
+ readonly repeat: "repeat";
418
+ readonly 'reply-all': "reply-all";
419
+ readonly reply: "reply";
420
+ readonly resize: "resize";
421
+ readonly ribbon: "ribbon";
422
+ readonly 'rows-add': "rows-add";
423
+ readonly ruler: "ruler";
424
+ readonly rules: "rules";
425
+ readonly scale: "scale";
426
+ readonly 'schedule-backward': "schedule-backward";
427
+ readonly 'schedule-forward': "schedule-forward";
428
+ readonly screwdriver: "screwdriver";
429
+ readonly scroll: "scroll";
430
+ readonly 'search-check': "search-check";
431
+ readonly 'search-items': "search-items";
432
+ readonly 'search-objects': "search-objects";
433
+ readonly search: "search";
434
+ readonly send: "send";
435
+ readonly settings: "settings";
436
+ readonly shapes: "shapes";
437
+ readonly share: "share";
438
+ readonly shuffle: "shuffle";
439
+ readonly signpost: "signpost";
440
+ readonly 'skip-back': "skip-back";
441
+ readonly 'skip-forward': "skip-forward";
442
+ readonly skull: "skull";
443
+ readonly sliders: "sliders";
444
+ readonly 'sort-alpha-down': "sort-alpha-down";
445
+ readonly 'sort-alpha-up': "sort-alpha-up";
446
+ readonly 'sort-ascending': "sort-ascending";
447
+ readonly 'sort-descending': "sort-descending";
448
+ readonly 'sort-time-down': "sort-time-down";
449
+ readonly 'sort-time-up': "sort-time-up";
450
+ readonly 'square-add': "square-add";
451
+ readonly 'square-inside': "square-inside";
452
+ readonly 'square-select': "square-select";
453
+ readonly square: "square";
454
+ readonly stamp: "stamp";
455
+ readonly 'star-outlined': "star-outlined";
456
+ readonly star: "star";
457
+ readonly start: "start";
458
+ readonly step: "step";
459
+ readonly stop: "stop";
460
+ readonly story: "story";
461
+ readonly strategy: "strategy";
462
+ readonly success: "success";
463
+ readonly sun: "sun";
464
+ readonly support: "support";
465
+ readonly sync: "sync";
466
+ readonly tag: "tag";
467
+ readonly 'target-2': "target-2";
468
+ readonly target: "target";
469
+ readonly 'task-alt': "task-alt";
470
+ readonly 'text-add': "text-add";
471
+ readonly textbox: "textbox";
472
+ readonly 'time-add': "time-add";
473
+ readonly timer: "timer";
474
+ readonly toolbox: "toolbox";
475
+ readonly tools: "tools";
476
+ readonly trash: "trash";
477
+ readonly trophy: "trophy";
478
+ readonly 'truck-trailer': "truck-trailer";
479
+ readonly update: "update";
480
+ readonly 'upload-cloud': "upload-cloud";
481
+ readonly upload: "upload";
482
+ readonly 'user-add': "user-add";
483
+ readonly 'user-details': "user-details";
484
+ readonly 'user-group': "user-group";
485
+ readonly 'user-id-badge': "user-id-badge";
486
+ readonly 'user-id-card': "user-id-card";
487
+ readonly 'user-recent': "user-recent";
488
+ readonly user: "user";
489
+ readonly verified: "verified";
490
+ readonly video: "video";
491
+ readonly 'view-cards': "view-cards";
492
+ readonly 'view-doc': "view-doc";
493
+ readonly 'view-grid': "view-grid";
494
+ readonly 'view-rows': "view-rows";
495
+ readonly 'view-table': "view-table";
496
+ readonly wand: "wand";
497
+ readonly warning: "warning";
498
+ readonly weight: "weight";
499
+ readonly widgets: "widgets";
500
+ readonly 'work-order': "work-order";
501
+ readonly 'wrench-2': "wrench-2";
502
+ readonly wrench: "wrench";
503
+ readonly x: "x";
504
+ readonly 'zoom-in': "zoom-in";
505
+ readonly 'zoom-out': "zoom-out";
506
+ };
507
+
508
+ declare type IconProps = Omit<BoxProps, 'size'> & SVGAttributes<SVGElement> & {
509
+ name: IconNamesList;
510
+ size?: AllowedIconSizes;
511
+ fill?: ColorToken;
512
+ };
513
+
514
+ export declare const Label: default_2.FC<LabelProps>;
515
+
516
+ declare type LabelProps = Omit<BoxProps, keyof LabelVariantProps> & LabelVariantProps & {
517
+ htmlFor?: string;
518
+ children?: string | default_2.ReactNode;
519
+ };
520
+
521
+ export declare const Link: React.FC<LinkProps>;
522
+
523
+ declare type LinkProps = Omit<BoxProps, keyof LinkVariantProps> & LinkVariantProps & {
524
+ href: string;
525
+ external?: boolean;
526
+ disabled?: boolean;
527
+ size?: FontSizeToken;
528
+ family?: FontToken;
529
+ italic?: boolean;
530
+ bold?: boolean;
531
+ weight?: FontWeightToken;
532
+ className?: string;
533
+ children?: React.ReactNode;
534
+ };
535
+
536
+ export declare const Menu: React.FC<MenuProps>;
537
+
538
+ declare type MenuProps = Omit<BoxProps, keyof MenuVariantProps> & MenuVariantProps & {
539
+ menuSection: {
540
+ id?: string;
541
+ title?: string;
542
+ divider?: boolean;
543
+ spacer?: boolean;
544
+ link?: boolean;
545
+ items: {
546
+ id: string;
547
+ label: string;
548
+ description?: string;
549
+ value?: string;
550
+ iconName?: string;
551
+ children?: MenuProps['menuSection'];
552
+ disabled?: boolean;
553
+ href?: string;
554
+ }[];
555
+ }[];
556
+ iconPlacement?: 'left' | 'right';
557
+ variant?: 'single-select' | 'multi-select';
558
+ multiSelectType?: 'checkbox' | 'toggle';
559
+ onChange?: (selected: string[] | string | null) => void;
560
+ };
561
+
562
+ declare const numericSizes: {
563
+ '0': {
564
+ value: string;
565
+ };
566
+ '1': {
567
+ value: string;
568
+ };
569
+ '2': {
570
+ value: string;
571
+ };
572
+ '3': {
573
+ value: string;
574
+ };
575
+ '4': {
576
+ value: string;
577
+ };
578
+ '5': {
579
+ value: string;
580
+ };
581
+ '6': {
582
+ value: string;
583
+ };
584
+ '7': {
585
+ value: string;
586
+ };
587
+ '8': {
588
+ value: string;
589
+ };
590
+ '9': {
591
+ value: string;
592
+ };
593
+ '10': {
594
+ value: string;
595
+ };
596
+ '12': {
597
+ value: string;
598
+ };
599
+ '14': {
600
+ value: string;
601
+ };
602
+ '16': {
603
+ value: string;
604
+ };
605
+ '20': {
606
+ value: string;
607
+ };
608
+ '22': {
609
+ value: string;
610
+ };
611
+ '24': {
612
+ value: string;
613
+ };
614
+ '32': {
615
+ value: string;
616
+ };
617
+ '40': {
618
+ value: string;
619
+ };
620
+ '48': {
621
+ value: string;
622
+ };
623
+ '56': {
624
+ value: string;
625
+ };
626
+ '64': {
627
+ value: string;
628
+ };
629
+ '72': {
630
+ value: string;
631
+ };
632
+ '80': {
633
+ value: string;
634
+ };
635
+ '88': {
636
+ value: string;
637
+ };
638
+ '96': {
639
+ value: string;
640
+ };
641
+ '104': {
642
+ value: string;
643
+ };
644
+ '112': {
645
+ value: string;
646
+ };
647
+ '120': {
648
+ value: string;
649
+ };
650
+ '128': {
651
+ value: string;
652
+ };
653
+ '136': {
654
+ value: string;
655
+ };
656
+ '144': {
657
+ value: string;
658
+ };
659
+ '152': {
660
+ value: string;
661
+ };
662
+ '160': {
663
+ value: string;
664
+ };
665
+ '168': {
666
+ value: string;
667
+ };
668
+ '176': {
669
+ value: string;
670
+ };
671
+ '184': {
672
+ value: string;
673
+ };
674
+ '192': {
675
+ value: string;
676
+ };
677
+ '200': {
678
+ value: string;
679
+ };
680
+ '208': {
681
+ value: string;
682
+ };
683
+ '216': {
684
+ value: string;
685
+ };
686
+ '224': {
687
+ value: string;
688
+ };
689
+ '232': {
690
+ value: string;
691
+ };
692
+ '240': {
693
+ value: string;
694
+ };
695
+ '248': {
696
+ value: string;
697
+ };
698
+ '256': {
699
+ value: string;
700
+ };
701
+ '264': {
702
+ value: string;
703
+ };
704
+ '272': {
705
+ value: string;
706
+ };
707
+ '280': {
708
+ value: string;
709
+ };
710
+ };
711
+
712
+ declare type Position = 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'bottom-start' | 'left-start' | 'right-start' | 'top-end' | 'bottom-end' | 'left-end' | 'right-end';
713
+
714
+ export declare const Pre: React.FC<PreProps>;
715
+
716
+ declare type PreProps = BoxProps & {
717
+ children: string | React.ReactNode;
718
+ lang?: string;
719
+ as?: string;
720
+ };
721
+
722
+ export declare const Radio: React.FC<RadioProps>;
723
+
724
+ export declare const RadioInput: FC<RadioInputProps>;
725
+
726
+ declare type RadioInputProps = BoxProps & RadioInputVariantProps & {
727
+ name: string;
728
+ id?: string;
729
+ error?: boolean;
730
+ children?: string | ReactNode;
731
+ };
732
+
733
+ declare type RadioProps = Omit<BoxProps, keyof RadioVariantProps> & RadioVariantProps & {
734
+ id?: string;
735
+ name: string;
736
+ disabled?: boolean;
737
+ error?: boolean;
738
+ };
739
+
740
+ export declare const Spinner: React.FC<SpinnerProps>;
741
+
742
+ declare type SpinnerProps = Omit<BoxProps, keyof SpinnerVariantProps> & SpinnerVariantProps & {
743
+ size?: 'standard' | 'small' | 'large';
744
+ className?: string;
745
+ };
746
+
747
+ export declare const Tag: React.FC<TagProps>;
748
+
749
+ declare type TagProps = BoxProps & TagVariantProps & {
750
+ children: string | ReactNode;
751
+ iconName?: IconNamesList;
752
+ };
753
+
754
+ declare const Text_2: default_2.FC<TextProps>;
755
+ export { Text_2 as Text }
756
+
757
+ export declare const Textarea: React.FC<TextareaProps>;
758
+
759
+ declare type TextareaProps = Omit<BoxProps, keyof TextareaVariantProps> & TextareaVariantProps & {
760
+ name: string;
761
+ autoSize?: boolean;
762
+ error?: boolean;
763
+ disabled?: boolean;
764
+ id?: string;
765
+ };
766
+
767
+ export declare const TextInput: React.FC<TextInputProps>;
768
+
769
+ declare type TextInputProps = Omit<BoxProps, keyof TextinputVariantProps> & TextinputVariantProps & {
770
+ name: string;
771
+ error?: boolean;
772
+ id?: string;
773
+ 'aria-describedby'?: string;
774
+ } & AriaAttributes;
775
+
776
+ declare type TextProps = Omit<BoxProps, keyof TextVariantProps> & TextVariantProps & {
777
+ italic?: boolean;
778
+ family?: FontToken;
779
+ bold?: boolean;
780
+ underline?: boolean;
781
+ size?: FontSizeToken;
782
+ weight?: FontWeightToken;
783
+ children?: string | default_2.ReactNode;
784
+ as?: ElementType;
785
+ className?: string;
786
+ };
787
+
788
+ export declare type Theme = 'light' | 'dark';
789
+
790
+ declare interface ThemeContextType {
791
+ theme: Theme;
792
+ setTheme: (theme: Theme) => void;
793
+ }
794
+
795
+ export declare function ThemeProvider({ children }: {
796
+ children: React.ReactNode;
797
+ }): JSX.Element;
798
+
799
+ export declare function ThemeSwitcher(): JSX.Element;
800
+
801
+ export declare const Toggle: default_2.FC<ToggleProps>;
802
+
803
+ export declare const ToggleInput: FC<ToggleInputProps>;
804
+
805
+ declare type ToggleInputProps = BoxProps & ToggleInputVariantProps & {
806
+ name: string;
807
+ id?: string;
808
+ error?: boolean;
809
+ children?: string | ReactNode;
810
+ };
811
+
812
+ declare type ToggleProps = Omit<BoxProps, keyof ToggleVariantProps> & ToggleVariantProps & {
813
+ name: string;
814
+ id?: string;
815
+ error?: boolean;
816
+ disabled?: boolean;
817
+ };
818
+
819
+ export declare const Tooltip: React.FC<TooltipProps>;
820
+
821
+ declare type TooltipProps = Omit<BoxProps, keyof TooltipVariantProps> & TooltipVariantProps & {
822
+ text: string;
823
+ title?: string;
824
+ caret?: boolean;
825
+ position?: Position;
826
+ children?: ReactNode;
827
+ trigger?: 'onHover' | 'onClick';
828
+ };
829
+
830
+ export declare function useTheme(): ThemeContextType;
831
+
832
+ export { }