@7onic-ui/react 0.3.8 → 0.3.10

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.
Files changed (171) hide show
  1. package/README.md +2 -2
  2. package/dist/chart.js +1 -1
  3. package/dist/chart.js.map +1 -1
  4. package/dist/chart.mjs +4 -10
  5. package/dist/chart.mjs.map +1 -1
  6. package/dist/chunk-234NAXGV.mjs +252 -0
  7. package/dist/chunk-234NAXGV.mjs.map +1 -0
  8. package/dist/chunk-53MIUPSY.mjs +13 -0
  9. package/dist/chunk-53MIUPSY.mjs.map +1 -0
  10. package/dist/chunk-BN5BEA3V.mjs +195 -0
  11. package/dist/chunk-BN5BEA3V.mjs.map +1 -0
  12. package/dist/chunk-COW3B62M.mjs +214 -0
  13. package/dist/chunk-COW3B62M.mjs.map +1 -0
  14. package/dist/chunk-CTH6SN5Y.mjs +114 -0
  15. package/dist/chunk-CTH6SN5Y.mjs.map +1 -0
  16. package/dist/chunk-D3NTQNDW.mjs +440 -0
  17. package/dist/chunk-D3NTQNDW.mjs.map +1 -0
  18. package/dist/chunk-DDRYEJBJ.mjs +164 -0
  19. package/dist/chunk-DDRYEJBJ.mjs.map +1 -0
  20. package/dist/chunk-DJAEXCRU.mjs +190 -0
  21. package/dist/chunk-DJAEXCRU.mjs.map +1 -0
  22. package/dist/chunk-DRVHHEAY.mjs +145 -0
  23. package/dist/chunk-DRVHHEAY.mjs.map +1 -0
  24. package/dist/chunk-DTLNWOTR.mjs +482 -0
  25. package/dist/chunk-DTLNWOTR.mjs.map +1 -0
  26. package/dist/chunk-DYYQOHQR.mjs +214 -0
  27. package/dist/chunk-DYYQOHQR.mjs.map +1 -0
  28. package/dist/chunk-FHUAH6AJ.mjs +93 -0
  29. package/dist/chunk-FHUAH6AJ.mjs.map +1 -0
  30. package/dist/chunk-GD4YE5AE.mjs +209 -0
  31. package/dist/chunk-GD4YE5AE.mjs.map +1 -0
  32. package/dist/chunk-GRCJ35DX.mjs +144 -0
  33. package/dist/chunk-GRCJ35DX.mjs.map +1 -0
  34. package/dist/chunk-HHX4GABH.mjs +129 -0
  35. package/dist/chunk-HHX4GABH.mjs.map +1 -0
  36. package/dist/chunk-IPCIC2BI.mjs +148 -0
  37. package/dist/chunk-IPCIC2BI.mjs.map +1 -0
  38. package/dist/chunk-IY3R2VGB.mjs +272 -0
  39. package/dist/chunk-IY3R2VGB.mjs.map +1 -0
  40. package/dist/chunk-JCJEVXER.mjs +170 -0
  41. package/dist/chunk-JCJEVXER.mjs.map +1 -0
  42. package/dist/chunk-KBPYAMGS.mjs +157 -0
  43. package/dist/chunk-KBPYAMGS.mjs.map +1 -0
  44. package/dist/chunk-LJJ6K4IU.mjs +318 -0
  45. package/dist/chunk-LJJ6K4IU.mjs.map +1 -0
  46. package/dist/chunk-MRUVGHGP.mjs +375 -0
  47. package/dist/chunk-MRUVGHGP.mjs.map +1 -0
  48. package/dist/chunk-N4K2BDGM.mjs +153 -0
  49. package/dist/chunk-N4K2BDGM.mjs.map +1 -0
  50. package/dist/chunk-NWFMJWGX.mjs +165 -0
  51. package/dist/chunk-NWFMJWGX.mjs.map +1 -0
  52. package/dist/chunk-PTAPPOKU.mjs +117 -0
  53. package/dist/chunk-PTAPPOKU.mjs.map +1 -0
  54. package/dist/chunk-PVTBM7V7.mjs +316 -0
  55. package/dist/chunk-PVTBM7V7.mjs.map +1 -0
  56. package/dist/chunk-Q5WVLK2L.mjs +77 -0
  57. package/dist/chunk-Q5WVLK2L.mjs.map +1 -0
  58. package/dist/chunk-RKSB2N5L.mjs +206 -0
  59. package/dist/chunk-RKSB2N5L.mjs.map +1 -0
  60. package/dist/chunk-S4DGVKBK.mjs +151 -0
  61. package/dist/chunk-S4DGVKBK.mjs.map +1 -0
  62. package/dist/chunk-S4T4PU7F.mjs +114 -0
  63. package/dist/chunk-S4T4PU7F.mjs.map +1 -0
  64. package/dist/chunk-SZPZOGPC.mjs +394 -0
  65. package/dist/chunk-SZPZOGPC.mjs.map +1 -0
  66. package/dist/chunk-T546XBQG.mjs +443 -0
  67. package/dist/chunk-T546XBQG.mjs.map +1 -0
  68. package/dist/chunk-UWTT5AE6.mjs +145 -0
  69. package/dist/chunk-UWTT5AE6.mjs.map +1 -0
  70. package/dist/chunk-V5UFWYFI.mjs +255 -0
  71. package/dist/chunk-V5UFWYFI.mjs.map +1 -0
  72. package/dist/chunk-VUPGBB5X.mjs +150 -0
  73. package/dist/chunk-VUPGBB5X.mjs.map +1 -0
  74. package/dist/chunk-W6YNEU53.mjs +175 -0
  75. package/dist/chunk-W6YNEU53.mjs.map +1 -0
  76. package/dist/chunk-WWSN5YME.mjs +222 -0
  77. package/dist/chunk-WWSN5YME.mjs.map +1 -0
  78. package/dist/chunk-XK52LYR4.mjs +182 -0
  79. package/dist/chunk-XK52LYR4.mjs.map +1 -0
  80. package/dist/chunk-YIAH6KHV.mjs +164 -0
  81. package/dist/chunk-YIAH6KHV.mjs.map +1 -0
  82. package/dist/chunk-Z6JWWCNL.mjs +108 -0
  83. package/dist/chunk-Z6JWWCNL.mjs.map +1 -0
  84. package/dist/chunk-ZDRUTJ4T.mjs +119 -0
  85. package/dist/chunk-ZDRUTJ4T.mjs.map +1 -0
  86. package/dist/components/accordion.mjs +19 -0
  87. package/dist/components/accordion.mjs.map +1 -0
  88. package/dist/components/alert.mjs +15 -0
  89. package/dist/components/alert.mjs.map +1 -0
  90. package/dist/components/avatar.mjs +23 -0
  91. package/dist/components/avatar.mjs.map +1 -0
  92. package/dist/components/badge.mjs +11 -0
  93. package/dist/components/badge.mjs.map +1 -0
  94. package/dist/components/breadcrumb.mjs +23 -0
  95. package/dist/components/breadcrumb.mjs.map +1 -0
  96. package/dist/components/button-group.mjs +11 -0
  97. package/dist/components/button-group.mjs.map +1 -0
  98. package/dist/components/button.mjs +12 -0
  99. package/dist/components/button.mjs.map +1 -0
  100. package/dist/components/card.mjs +25 -0
  101. package/dist/components/card.mjs.map +1 -0
  102. package/dist/components/chat-input.mjs +15 -0
  103. package/dist/components/chat-input.mjs.map +1 -0
  104. package/dist/components/chat-message.mjs +17 -0
  105. package/dist/components/chat-message.mjs.map +1 -0
  106. package/dist/components/checkbox.mjs +12 -0
  107. package/dist/components/checkbox.mjs.map +1 -0
  108. package/dist/components/divider.mjs +11 -0
  109. package/dist/components/divider.mjs.map +1 -0
  110. package/dist/components/drawer.mjs +33 -0
  111. package/dist/components/drawer.mjs.map +1 -0
  112. package/dist/components/dropdown.mjs +35 -0
  113. package/dist/components/dropdown.mjs.map +1 -0
  114. package/dist/components/field.mjs +17 -0
  115. package/dist/components/field.mjs.map +1 -0
  116. package/dist/components/icon-button.mjs +12 -0
  117. package/dist/components/icon-button.mjs.map +1 -0
  118. package/dist/components/input.mjs +12 -0
  119. package/dist/components/input.mjs.map +1 -0
  120. package/dist/components/metric-card.mjs +23 -0
  121. package/dist/components/metric-card.mjs.map +1 -0
  122. package/dist/components/modal.mjs +57 -0
  123. package/dist/components/modal.mjs.map +1 -0
  124. package/dist/components/navigation-menu.mjs +27 -0
  125. package/dist/components/navigation-menu.mjs.map +1 -0
  126. package/dist/components/pagination.mjs +33 -0
  127. package/dist/components/pagination.mjs.map +1 -0
  128. package/dist/components/popover.mjs +23 -0
  129. package/dist/components/popover.mjs.map +1 -0
  130. package/dist/components/progress.mjs +11 -0
  131. package/dist/components/progress.mjs.map +1 -0
  132. package/dist/components/quick-reply.mjs +15 -0
  133. package/dist/components/quick-reply.mjs.map +1 -0
  134. package/dist/components/radio-group.mjs +16 -0
  135. package/dist/components/radio-group.mjs.map +1 -0
  136. package/dist/components/segmented.mjs +15 -0
  137. package/dist/components/segmented.mjs.map +1 -0
  138. package/dist/components/select.mjs +23 -0
  139. package/dist/components/select.mjs.map +1 -0
  140. package/dist/components/skeleton.mjs +11 -0
  141. package/dist/components/skeleton.mjs.map +1 -0
  142. package/dist/components/slider.mjs +11 -0
  143. package/dist/components/slider.mjs.map +1 -0
  144. package/dist/components/spinner.mjs +11 -0
  145. package/dist/components/spinner.mjs.map +1 -0
  146. package/dist/components/switch.mjs +12 -0
  147. package/dist/components/switch.mjs.map +1 -0
  148. package/dist/components/table.mjs +23 -0
  149. package/dist/components/table.mjs.map +1 -0
  150. package/dist/components/tabs.mjs +19 -0
  151. package/dist/components/tabs.mjs.map +1 -0
  152. package/dist/components/textarea.mjs +12 -0
  153. package/dist/components/textarea.mjs.map +1 -0
  154. package/dist/components/toast.mjs +13 -0
  155. package/dist/components/toast.mjs.map +1 -0
  156. package/dist/components/toggle-group.mjs +15 -0
  157. package/dist/components/toggle-group.mjs.map +1 -0
  158. package/dist/components/toggle.mjs +11 -0
  159. package/dist/components/toggle.mjs.map +1 -0
  160. package/dist/components/tooltip.mjs +21 -0
  161. package/dist/components/tooltip.mjs.map +1 -0
  162. package/dist/components/typing-indicator.mjs +11 -0
  163. package/dist/components/typing-indicator.mjs.map +1 -0
  164. package/dist/index.js +22 -7
  165. package/dist/index.js.map +1 -1
  166. package/dist/index.mjs +296 -7521
  167. package/dist/index.mjs.map +1 -1
  168. package/llms.txt +29 -25
  169. package/package.json +4 -3
  170. package/dist/chart.d.mts +0 -147
  171. package/dist/index.d.mts +0 -1535
package/dist/index.d.mts DELETED
@@ -1,1535 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
4
- import { VariantProps } from 'class-variance-authority';
5
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
6
- import * as TogglePrimitive from '@radix-ui/react-toggle';
7
- import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
8
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
9
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
10
- import * as SwitchPrimitive from '@radix-ui/react-switch';
11
- import * as SliderPrimitive from '@radix-ui/react-slider';
12
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
13
- import * as SelectPrimitive from '@radix-ui/react-select';
14
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
15
- import * as TabsPrimitive from '@radix-ui/react-tabs';
16
- import * as DialogPrimitive from '@radix-ui/react-dialog';
17
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
18
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
19
- import * as PopoverPrimitive from '@radix-ui/react-popover';
20
- import * as ProgressPrimitive from '@radix-ui/react-progress';
21
-
22
- declare const accordionVariants: (props?: ({
23
- variant?: "default" | "bordered" | "splitted" | null | undefined;
24
- } & class_variance_authority_types.ClassProp) | undefined) => string;
25
- interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
26
- type?: 'single' | 'multiple';
27
- variant?: 'default' | 'bordered' | 'splitted';
28
- size?: 'sm' | 'default' | 'lg';
29
- iconPosition?: 'left' | 'right';
30
- collapsible?: boolean;
31
- defaultValue?: string | string[];
32
- value?: string | string[];
33
- onValueChange?: ((value: string) => void) | ((value: string[]) => void);
34
- disabled?: boolean;
35
- }
36
- declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
37
- declare const accordionItemVariants: (props?: ({
38
- variant?: "default" | "bordered" | "splitted" | null | undefined;
39
- } & class_variance_authority_types.ClassProp) | undefined) => string;
40
- interface AccordionItemProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>, Omit<VariantProps<typeof accordionItemVariants>, 'variant'> {
41
- }
42
- declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
43
- declare const accordionTriggerVariants: (props?: ({
44
- size?: "default" | "sm" | "lg" | null | undefined;
45
- iconPosition?: "left" | "right" | null | undefined;
46
- } & class_variance_authority_types.ClassProp) | undefined) => string;
47
- interface AccordionTriggerProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> {
48
- /** Custom indicator icon (replaces default chevron) */
49
- icon?: React.ReactNode;
50
- }
51
- declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
52
- interface AccordionContentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> {
53
- }
54
- declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
55
-
56
- declare const breadcrumbSizeMap: {
57
- readonly sm: {
58
- readonly text: "text-xs";
59
- readonly icon: "icon-xs";
60
- readonly gap: "gap-1.5";
61
- };
62
- readonly default: {
63
- readonly text: "text-sm";
64
- readonly icon: "icon-xs";
65
- readonly gap: "gap-2";
66
- };
67
- readonly lg: {
68
- readonly text: "text-md";
69
- readonly icon: "icon-sm";
70
- readonly gap: "gap-2";
71
- };
72
- };
73
- interface BreadcrumbProps extends React.ComponentPropsWithoutRef<'nav'> {
74
- /** Separator element between items */
75
- separator?: React.ReactNode;
76
- /** Size of the breadcrumb */
77
- size?: 'sm' | 'default' | 'lg';
78
- /** Max items before collapsing (undefined = no collapse) */
79
- maxItems?: number;
80
- /** Items visible before the ellipsis when collapsed */
81
- itemsBeforeCollapse?: number;
82
- /** Items visible after the ellipsis when collapsed */
83
- itemsAfterCollapse?: number;
84
- }
85
- declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>;
86
- declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
87
- declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
88
- interface BreadcrumbLinkProps extends React.ComponentPropsWithoutRef<'a'> {
89
- /** Use Radix Slot to compose with custom link components */
90
- asChild?: boolean;
91
- }
92
- declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
93
- declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
94
- declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
95
- interface BreadcrumbEllipsisProps extends React.ComponentPropsWithoutRef<'span'> {
96
- }
97
- declare const BreadcrumbEllipsis: React.ForwardRefExoticComponent<BreadcrumbEllipsisProps & React.RefAttributes<HTMLSpanElement>>;
98
-
99
- declare const dividerVariants: (props?: ({
100
- orientation?: "horizontal" | "vertical" | null | undefined;
101
- variant?: "solid" | "dashed" | "dotted" | null | undefined;
102
- color?: "default" | "strong" | "muted" | null | undefined;
103
- spacing?: "default" | "sm" | "lg" | "md" | null | undefined;
104
- } & class_variance_authority_types.ClassProp) | undefined) => string;
105
- interface DividerProps extends Omit<React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>, 'children' | 'color' | 'orientation'> {
106
- /** Direction of the divider */
107
- orientation?: 'horizontal' | 'vertical';
108
- /** Line style */
109
- variant?: 'solid' | 'dashed' | 'dotted';
110
- /** Line color intensity */
111
- color?: 'default' | 'muted' | 'strong';
112
- /** Spacing around the divider */
113
- spacing?: 'sm' | 'md' | 'default' | 'lg';
114
- /** Content to display on the divider line (horizontal only) */
115
- label?: React.ReactNode;
116
- /** Label position along the line */
117
- labelPosition?: 'left' | 'center' | 'right';
118
- }
119
- declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
120
-
121
- declare const solidColorMap: {
122
- readonly default: "bg-foreground text-background hover:bg-foreground/90 active:bg-foreground/80";
123
- readonly primary: "bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-active";
124
- readonly secondary: "bg-secondary text-secondary-foreground hover:bg-secondary-hover active:bg-secondary-active";
125
- readonly destructive: "bg-error text-error-foreground hover:bg-error-hover active:bg-error-active";
126
- };
127
- type ButtonColor = keyof typeof solidColorMap;
128
- declare const buttonVariants: (props?: ({
129
- variant?: "link" | "solid" | "outline" | "ghost" | null | undefined;
130
- size?: "default" | "sm" | "lg" | "icon" | "md" | "xs" | null | undefined;
131
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
132
- fullWidth?: boolean | null | undefined;
133
- } & class_variance_authority_types.ClassProp) | undefined) => string;
134
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
135
- /** Solid variant color */
136
- color?: ButtonColor;
137
- asChild?: boolean;
138
- loading?: boolean;
139
- leftIcon?: React.ReactNode;
140
- rightIcon?: React.ReactNode;
141
- selected?: boolean;
142
- fontWeight?: 'normal' | 'semibold';
143
- pressEffect?: boolean;
144
- }
145
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
146
-
147
- declare const iconButtonVariants: (props?: ({
148
- variant?: "solid" | "outline" | "ghost" | "subtle" | null | undefined;
149
- size?: "default" | "sm" | "lg" | "md" | "xs" | null | undefined;
150
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
151
- } & class_variance_authority_types.ClassProp) | undefined) => string;
152
- interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
153
- /** Solid variant color */
154
- color?: ButtonColor;
155
- asChild?: boolean;
156
- loading?: boolean;
157
- pressEffect?: boolean;
158
- }
159
- declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
160
-
161
- type ButtonGroupContextValue = {
162
- variant?: 'outline' | 'ghost';
163
- size?: 'xs' | 'sm' | 'md' | 'default' | 'lg';
164
- radius?: 'none' | 'sm' | 'base' | 'default' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
165
- fontWeight?: 'normal' | 'semibold';
166
- disabled?: boolean;
167
- };
168
- declare function useButtonGroup(): ButtonGroupContextValue | null;
169
- interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
170
- orientation?: 'horizontal' | 'vertical';
171
- attached?: boolean;
172
- variant?: 'outline' | 'ghost';
173
- size?: 'xs' | 'sm' | 'md' | 'default' | 'lg';
174
- radius?: 'none' | 'sm' | 'base' | 'default' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
175
- fontWeight?: 'normal' | 'semibold';
176
- disabled?: boolean;
177
- }
178
- declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
179
-
180
- declare const toggleVariants: (props?: ({
181
- variant?: "default" | "outline" | "ghost" | "outline-ghost" | null | undefined;
182
- fontWeight?: "normal" | "semibold" | null | undefined;
183
- size?: "default" | "sm" | "lg" | "md" | "xs" | null | undefined;
184
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
185
- } & class_variance_authority_types.ClassProp) | undefined) => string;
186
- interface ToggleProps extends React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, Omit<VariantProps<typeof toggleVariants>, 'fontWeight'> {
187
- iconOnly?: boolean;
188
- fontWeight?: 'normal' | 'semibold';
189
- pressEffect?: boolean;
190
- }
191
- declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
192
-
193
- declare const toggleGroupVariants: (props?: ({
194
- orientation?: "horizontal" | "vertical" | null | undefined;
195
- } & class_variance_authority_types.ClassProp) | undefined) => string;
196
- declare const toggleGroupItemVariants: (props?: ({
197
- variant?: "default" | "outline" | null | undefined;
198
- fontWeight?: "normal" | "semibold" | null | undefined;
199
- size?: "default" | "sm" | "lg" | "md" | "xs" | null | undefined;
200
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
201
- } & class_variance_authority_types.ClassProp) | undefined) => string;
202
- type ToggleGroupSingleProps = {
203
- type: 'single';
204
- value?: string;
205
- defaultValue?: string;
206
- onValueChange?: (value: string) => void;
207
- };
208
- type ToggleGroupMultipleProps = {
209
- type: 'multiple';
210
- value?: string[];
211
- defaultValue?: string[];
212
- onValueChange?: (value: string[]) => void;
213
- };
214
- type ToggleGroupBaseProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'defaultValue' | 'dir'> & {
215
- disabled?: boolean;
216
- rovingFocus?: boolean;
217
- orientation?: 'horizontal' | 'vertical';
218
- dir?: 'ltr' | 'rtl';
219
- loop?: boolean;
220
- children?: React.ReactNode;
221
- };
222
- type ToggleGroupProps = ToggleGroupBaseProps & VariantProps<typeof toggleGroupVariants> & VariantProps<typeof toggleGroupItemVariants> & (ToggleGroupSingleProps | ToggleGroupMultipleProps);
223
- declare const ToggleGroup: React.ForwardRefExoticComponent<ToggleGroupProps & React.RefAttributes<HTMLDivElement>>;
224
- interface ToggleGroupItemProps extends React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>, Omit<VariantProps<typeof toggleGroupItemVariants>, 'fontWeight'> {
225
- fontWeight?: 'normal' | 'semibold';
226
- }
227
- declare const ToggleGroupItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
228
-
229
- declare const segmentedVariants: (props?: ({
230
- variant?: "default" | "outline" | "ghost" | "underline" | null | undefined;
231
- size?: "default" | "sm" | "lg" | "md" | null | undefined;
232
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
233
- fontWeight?: "normal" | "semibold" | null | undefined;
234
- } & class_variance_authority_types.ClassProp) | undefined) => string;
235
- declare const segmentedItemVariants: (props?: ({
236
- variant?: "default" | "outline" | "ghost" | "underline" | null | undefined;
237
- size?: "default" | "sm" | "lg" | "md" | null | undefined;
238
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
239
- contentType?: "text" | "icon" | "icon-text" | null | undefined;
240
- } & class_variance_authority_types.ClassProp) | undefined) => string;
241
- interface SegmentedProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, VariantProps<typeof segmentedVariants> {
242
- }
243
- declare const Segmented: React.ForwardRefExoticComponent<SegmentedProps & React.RefAttributes<HTMLDivElement>>;
244
- interface SegmentedItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, Omit<VariantProps<typeof segmentedItemVariants>, 'variant'> {
245
- }
246
- declare const SegmentedItem: React.ForwardRefExoticComponent<SegmentedItemProps & React.RefAttributes<HTMLButtonElement>>;
247
-
248
- declare const inputVariants: (props?: ({
249
- variant?: "default" | "filled" | null | undefined;
250
- focusRing?: boolean | null | undefined;
251
- size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
252
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
253
- state?: "default" | "error" | null | undefined;
254
- } & class_variance_authority_types.ClassProp) | undefined) => string;
255
- interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
256
- leftIcon?: React.ReactNode;
257
- rightIcon?: React.ReactNode;
258
- error?: boolean;
259
- focusRing?: boolean;
260
- }
261
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
262
-
263
- declare const textareaVariants: (props?: ({
264
- variant?: "default" | "filled" | null | undefined;
265
- focusRing?: boolean | null | undefined;
266
- size?: "default" | "compact" | null | undefined;
267
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
268
- resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
269
- state?: "default" | "error" | null | undefined;
270
- } & class_variance_authority_types.ClassProp) | undefined) => string;
271
- interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
272
- error?: boolean;
273
- focusRing?: boolean;
274
- }
275
- declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
276
-
277
- interface FieldContextValue {
278
- id: string;
279
- error?: boolean;
280
- disabled?: boolean;
281
- }
282
- declare function useFieldContext(): FieldContextValue | null;
283
- declare const fieldVariants: (props?: ({
284
- gap?: "default" | "sm" | "lg" | "none" | "xs" | null | undefined;
285
- } & class_variance_authority_types.ClassProp) | undefined) => string;
286
- interface FieldProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof fieldVariants> {
287
- error?: boolean;
288
- disabled?: boolean;
289
- }
290
- declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
291
- interface FieldLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
292
- required?: boolean;
293
- }
294
- declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
295
- declare const FieldError: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
296
- declare const FieldCharCount: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
297
-
298
- declare const checkboxColorMap: {
299
- readonly default: "data-[state=checked]:bg-foreground data-[state=checked]:border-foreground data-[state=checked]:text-background data-[state=indeterminate]:bg-foreground data-[state=indeterminate]:border-foreground data-[state=indeterminate]:text-background";
300
- readonly primary: "data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground";
301
- };
302
- type CheckboxColor = keyof typeof checkboxColorMap;
303
- declare const checkboxVariants: (props?: ({
304
- size?: "default" | "sm" | "lg" | null | undefined;
305
- radius?: "sm" | "none" | "md" | null | undefined;
306
- weight?: "bold" | "thin" | null | undefined;
307
- } & class_variance_authority_types.ClassProp) | undefined) => string;
308
- interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, 'children'>, VariantProps<typeof checkboxVariants> {
309
- /** Checked state color */
310
- color?: CheckboxColor;
311
- label?: string;
312
- radius?: 'none' | 'sm' | 'md';
313
- }
314
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
315
-
316
- declare const radioColorMap: {
317
- readonly default: {
318
- readonly border: "data-[state=checked]:border-foreground";
319
- readonly dot: "bg-foreground";
320
- };
321
- readonly primary: {
322
- readonly border: "data-[state=checked]:border-primary";
323
- readonly dot: "bg-primary";
324
- };
325
- };
326
- type RadioColor = keyof typeof radioColorMap;
327
- declare const radioGroupVariants: (props?: ({
328
- orientation?: "horizontal" | "vertical" | null | undefined;
329
- } & class_variance_authority_types.ClassProp) | undefined) => string;
330
- interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
331
- size?: 'sm' | 'default' | 'lg';
332
- weight?: 'thin' | 'bold';
333
- /** Checked state color */
334
- color?: RadioColor;
335
- }
336
- declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
337
- declare const radioItemVariants: (props?: ({
338
- size?: "default" | "sm" | "lg" | null | undefined;
339
- weight?: "bold" | "thin" | null | undefined;
340
- } & class_variance_authority_types.ClassProp) | undefined) => string;
341
- interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
342
- label?: string;
343
- }
344
- declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
345
-
346
- declare const switchVariants: (props?: ({
347
- size?: "default" | "sm" | "lg" | null | undefined;
348
- } & class_variance_authority_types.ClassProp) | undefined) => string;
349
- type SwitchLabelPosition = 'start' | 'end' | 'top' | 'bottom';
350
- type SwitchColor = 'default' | 'primary' | 'success' | 'warning' | 'error';
351
- interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchVariants> {
352
- label?: string;
353
- labelPosition?: SwitchLabelPosition;
354
- startLabel?: string;
355
- endLabel?: string;
356
- checkedIcon?: React.ReactNode;
357
- uncheckedIcon?: React.ReactNode;
358
- color?: SwitchColor;
359
- }
360
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
361
-
362
- declare const sliderVariants: (props?: ({
363
- size?: "default" | "sm" | "lg" | null | undefined;
364
- } & class_variance_authority_types.ClassProp) | undefined) => string;
365
- declare const sliderColorMap: {
366
- readonly default: {
367
- readonly range: "bg-foreground";
368
- readonly thumb: "bg-background border-foreground";
369
- readonly thumbHover: "hover:shadow-[0_0_0_4px_color-mix(in_srgb,var(--color-text)_16%,transparent)] hover:border-foreground";
370
- readonly thumbActive: "active:shadow-[0_0_0_6px_color-mix(in_srgb,var(--color-text)_16%,transparent)]";
371
- };
372
- readonly primary: {
373
- readonly range: "bg-primary";
374
- readonly thumb: "bg-primary-foreground border-primary";
375
- readonly thumbHover: "hover:shadow-primary-glow hover:border-primary-hover";
376
- readonly thumbActive: "active:shadow-[0_0_0_6px_color-mix(in_srgb,var(--color-primary)_16%,transparent)]";
377
- };
378
- };
379
- type SliderColor = keyof typeof sliderColorMap;
380
- interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, VariantProps<typeof sliderVariants> {
381
- /** Track and thumb color */
382
- color?: SliderColor;
383
- /** Tooltip display mode: auto (hover/drag), always, never */
384
- showTooltip?: 'auto' | 'always' | 'never';
385
- /** Custom formatter for tooltip value */
386
- formatLabel?: (value: number) => string;
387
- /** Content to display before the slider (icon, label, etc.) */
388
- startContent?: React.ReactNode;
389
- /** Content to display after the slider */
390
- endContent?: React.ReactNode;
391
- }
392
- declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
393
-
394
- type DropdownMenuRadius = 'md' | 'lg' | 'xl';
395
- type DropdownMenuSize = 'sm' | 'md' | 'lg';
396
- declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
397
- declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
398
- declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
399
- declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
400
- declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
401
- declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
402
- radius?: DropdownMenuRadius;
403
- flush?: boolean;
404
- size?: DropdownMenuSize;
405
- } & React.RefAttributes<HTMLDivElement>>;
406
- declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
407
- inset?: boolean;
408
- } & React.RefAttributes<HTMLDivElement>>;
409
- declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
410
- declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
411
- declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
412
- inset?: boolean;
413
- } & React.RefAttributes<HTMLDivElement>>;
414
- declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
415
- declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
416
- inset?: boolean;
417
- } & React.RefAttributes<HTMLDivElement>>;
418
- declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
419
- declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
420
- declare namespace DropdownMenuShortcut {
421
- var displayName: string;
422
- }
423
-
424
- type SelectRadius = 'none' | 'sm' | 'base' | 'default' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
425
- type SelectSize = 'xs' | 'sm' | 'default' | 'lg' | 'xl';
426
- declare const Select: ({ size, radius, ...props }: React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> & {
427
- size?: SelectSize;
428
- radius?: SelectRadius;
429
- }) => React.JSX.Element;
430
- declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
431
- declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
432
- declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
433
- declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
434
- flush?: boolean;
435
- } & React.RefAttributes<HTMLDivElement>>;
436
- declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
437
- declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
438
- declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
439
-
440
- declare const avatarVariants: (props?: ({
441
- size?: "default" | "sm" | "lg" | "xs" | "xl" | "2xl" | null | undefined;
442
- shape?: "circle" | "square" | null | undefined;
443
- } & class_variance_authority_types.ClassProp) | undefined) => string;
444
- declare const avatarColors: readonly [{
445
- readonly vivid: {
446
- readonly bg: "bg-[#DC2626]";
447
- readonly text: "text-white";
448
- };
449
- readonly soft: {
450
- readonly bg: "bg-[#FEE2E2]";
451
- readonly text: "text-[#DC2626]";
452
- };
453
- }, {
454
- readonly vivid: {
455
- readonly bg: "bg-[#EA580C]";
456
- readonly text: "text-white";
457
- };
458
- readonly soft: {
459
- readonly bg: "bg-[#FFEDD5]";
460
- readonly text: "text-[#EA580C]";
461
- };
462
- }, {
463
- readonly vivid: {
464
- readonly bg: "bg-[#D97706]";
465
- readonly text: "text-white";
466
- };
467
- readonly soft: {
468
- readonly bg: "bg-[#FEF3C7]";
469
- readonly text: "text-[#B45309]";
470
- };
471
- }, {
472
- readonly vivid: {
473
- readonly bg: "bg-[#CA8A04]";
474
- readonly text: "text-white";
475
- };
476
- readonly soft: {
477
- readonly bg: "bg-[#FEF9C3]";
478
- readonly text: "text-[#A16207]";
479
- };
480
- }, {
481
- readonly vivid: {
482
- readonly bg: "bg-[#059669]";
483
- readonly text: "text-white";
484
- };
485
- readonly soft: {
486
- readonly bg: "bg-[#D1FAE5]";
487
- readonly text: "text-[#047857]";
488
- };
489
- }, {
490
- readonly vivid: {
491
- readonly bg: "bg-[#0D9488]";
492
- readonly text: "text-white";
493
- };
494
- readonly soft: {
495
- readonly bg: "bg-[#CCFBF1]";
496
- readonly text: "text-[#0F766E]";
497
- };
498
- }, {
499
- readonly vivid: {
500
- readonly bg: "bg-[#0891B2]";
501
- readonly text: "text-white";
502
- };
503
- readonly soft: {
504
- readonly bg: "bg-[#CFFAFE]";
505
- readonly text: "text-[#0E7490]";
506
- };
507
- }, {
508
- readonly vivid: {
509
- readonly bg: "bg-[#2563EB]";
510
- readonly text: "text-white";
511
- };
512
- readonly soft: {
513
- readonly bg: "bg-[#DBEAFE]";
514
- readonly text: "text-[#1D4ED8]";
515
- };
516
- }, {
517
- readonly vivid: {
518
- readonly bg: "bg-[#4F46E5]";
519
- readonly text: "text-white";
520
- };
521
- readonly soft: {
522
- readonly bg: "bg-[#E0E7FF]";
523
- readonly text: "text-[#4338CA]";
524
- };
525
- }, {
526
- readonly vivid: {
527
- readonly bg: "bg-[#7C3AED]";
528
- readonly text: "text-white";
529
- };
530
- readonly soft: {
531
- readonly bg: "bg-[#EDE9FE]";
532
- readonly text: "text-[#6D28D9]";
533
- };
534
- }, {
535
- readonly vivid: {
536
- readonly bg: "bg-[#9333EA]";
537
- readonly text: "text-white";
538
- };
539
- readonly soft: {
540
- readonly bg: "bg-[#F3E8FF]";
541
- readonly text: "text-[#7E22CE]";
542
- };
543
- }, {
544
- readonly vivid: {
545
- readonly bg: "bg-[#DB2777]";
546
- readonly text: "text-white";
547
- };
548
- readonly soft: {
549
- readonly bg: "bg-[#FCE7F3]";
550
- readonly text: "text-[#BE185D]";
551
- };
552
- }];
553
- type AvatarColorVariant = 'vivid' | 'soft';
554
- /** Extract initials from a name string (e.g. "John Doe" → "JD", "김민수" → "김민") */
555
- declare function getAvatarInitials(name: string, maxChars?: number): string;
556
- /** Hash a name string to a deterministic avatar color pair (djb2 xor variant) */
557
- declare function getAvatarColor(name: string, variant?: AvatarColorVariant): {
558
- readonly bg: "bg-[#DC2626]";
559
- readonly text: "text-white";
560
- } | {
561
- readonly bg: "bg-[#FEE2E2]";
562
- readonly text: "text-[#DC2626]";
563
- } | {
564
- readonly bg: "bg-[#EA580C]";
565
- readonly text: "text-white";
566
- } | {
567
- readonly bg: "bg-[#FFEDD5]";
568
- readonly text: "text-[#EA580C]";
569
- } | {
570
- readonly bg: "bg-[#D97706]";
571
- readonly text: "text-white";
572
- } | {
573
- readonly bg: "bg-[#FEF3C7]";
574
- readonly text: "text-[#B45309]";
575
- } | {
576
- readonly bg: "bg-[#CA8A04]";
577
- readonly text: "text-white";
578
- } | {
579
- readonly bg: "bg-[#FEF9C3]";
580
- readonly text: "text-[#A16207]";
581
- } | {
582
- readonly bg: "bg-[#059669]";
583
- readonly text: "text-white";
584
- } | {
585
- readonly bg: "bg-[#D1FAE5]";
586
- readonly text: "text-[#047857]";
587
- } | {
588
- readonly bg: "bg-[#0D9488]";
589
- readonly text: "text-white";
590
- } | {
591
- readonly bg: "bg-[#CCFBF1]";
592
- readonly text: "text-[#0F766E]";
593
- } | {
594
- readonly bg: "bg-[#0891B2]";
595
- readonly text: "text-white";
596
- } | {
597
- readonly bg: "bg-[#CFFAFE]";
598
- readonly text: "text-[#0E7490]";
599
- } | {
600
- readonly bg: "bg-[#2563EB]";
601
- readonly text: "text-white";
602
- } | {
603
- readonly bg: "bg-[#DBEAFE]";
604
- readonly text: "text-[#1D4ED8]";
605
- } | {
606
- readonly bg: "bg-[#4F46E5]";
607
- readonly text: "text-white";
608
- } | {
609
- readonly bg: "bg-[#E0E7FF]";
610
- readonly text: "text-[#4338CA]";
611
- } | {
612
- readonly bg: "bg-[#7C3AED]";
613
- readonly text: "text-white";
614
- } | {
615
- readonly bg: "bg-[#EDE9FE]";
616
- readonly text: "text-[#6D28D9]";
617
- } | {
618
- readonly bg: "bg-[#9333EA]";
619
- readonly text: "text-white";
620
- } | {
621
- readonly bg: "bg-[#F3E8FF]";
622
- readonly text: "text-[#7E22CE]";
623
- } | {
624
- readonly bg: "bg-[#DB2777]";
625
- readonly text: "text-white";
626
- } | {
627
- readonly bg: "bg-[#FCE7F3]";
628
- readonly text: "text-[#BE185D]";
629
- };
630
- type AvatarSize = 'xs' | 'sm' | 'default' | 'lg' | 'xl' | '2xl';
631
- type AvatarShape = 'circle' | 'square';
632
- type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
633
- interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
634
- status?: AvatarStatus;
635
- }
636
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
637
- interface AvatarImageProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image> {
638
- }
639
- declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
640
- interface AvatarFallbackProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback> {
641
- size?: AvatarSize;
642
- /** Shorthand: auto-generates initials + color from a name. Children override auto-initials. */
643
- name?: string;
644
- /** Pass a name/key to enable colorized mode. The string is hashed to pick a deterministic color. */
645
- colorized?: string;
646
- /** Color style: "vivid" (strong bg + white text) or "soft" (pastel bg + dark text). Default: "vivid" */
647
- colorVariant?: AvatarColorVariant;
648
- }
649
- declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
650
- interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
651
- max?: number;
652
- size?: AvatarSize;
653
- shape?: AvatarShape;
654
- }
655
- declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
656
-
657
- declare const metricCardVariants: (props?: ({
658
- variant?: "default" | "ghost" | "elevated" | null | undefined;
659
- size?: "default" | "sm" | "lg" | null | undefined;
660
- radius?: "default" | "sm" | "lg" | "base" | "none" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
661
- } & class_variance_authority_types.ClassProp) | undefined) => string;
662
- type MetricCardVariant = 'default' | 'elevated' | 'ghost';
663
- type MetricCardSize = 'sm' | 'default' | 'lg';
664
- type MetricCardRadius = 'none' | 'sm' | 'base' | 'default' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
665
- type MetricCardTrendDirection = 'up' | 'down' | 'neutral';
666
- interface MetricCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof metricCardVariants> {
667
- animated?: boolean;
668
- }
669
- declare const MetricCard: React.ForwardRefExoticComponent<MetricCardProps & React.RefAttributes<HTMLDivElement>>;
670
- interface MetricCardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
671
- }
672
- declare const MetricCardHeader: React.ForwardRefExoticComponent<MetricCardHeaderProps & React.RefAttributes<HTMLDivElement>>;
673
- interface MetricCardTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {
674
- }
675
- declare const MetricCardTitle: React.ForwardRefExoticComponent<MetricCardTitleProps & React.RefAttributes<HTMLParagraphElement>>;
676
- interface MetricCardValueProps extends React.HTMLAttributes<HTMLParagraphElement> {
677
- }
678
- declare const MetricCardValue: React.ForwardRefExoticComponent<MetricCardValueProps & React.RefAttributes<HTMLParagraphElement>>;
679
- interface MetricCardTrendProps extends React.HTMLAttributes<HTMLParagraphElement> {
680
- direction: MetricCardTrendDirection;
681
- }
682
- declare const MetricCardTrend: React.ForwardRefExoticComponent<MetricCardTrendProps & React.RefAttributes<HTMLParagraphElement>>;
683
- interface MetricCardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
684
- }
685
- declare const MetricCardDescription: React.ForwardRefExoticComponent<MetricCardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
686
- interface MetricCardSymbolProps extends React.HTMLAttributes<HTMLDivElement> {
687
- }
688
- declare const MetricCardSymbol: React.ForwardRefExoticComponent<MetricCardSymbolProps & React.RefAttributes<HTMLDivElement>>;
689
-
690
- declare const badgeVariants: (props?: ({
691
- size?: "default" | "sm" | "lg" | null | undefined;
692
- radius?: "sm" | "lg" | "base" | "md" | "full" | null | undefined;
693
- } & class_variance_authority_types.ClassProp) | undefined) => string;
694
- type BadgeVariant = 'solid' | 'subtle' | 'outline';
695
- type BadgeColor = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
696
- type BadgeSize = 'sm' | 'default' | 'lg';
697
- type BadgeRadius = 'sm' | 'base' | 'md' | 'lg' | 'full';
698
- interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
699
- /** Visual style */
700
- variant?: BadgeVariant;
701
- /** Semantic color */
702
- color?: BadgeColor;
703
- /** Leading icon slot */
704
- icon?: React.ReactNode;
705
- /** Show a status dot before text */
706
- dot?: boolean;
707
- /** Show a remove button */
708
- removable?: boolean;
709
- /** Callback when remove button is clicked */
710
- onRemove?: () => void;
711
- /** Render as child element (Slot pattern) */
712
- asChild?: boolean;
713
- }
714
- declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
715
-
716
- type CardSize = 'sm' | 'default' | 'lg';
717
- type CardDirection = 'vertical' | 'horizontal';
718
- declare const cardVariants: (props?: ({
719
- variant?: "default" | "outline" | "ghost" | null | undefined;
720
- size?: "default" | "sm" | "lg" | null | undefined;
721
- radius?: "sm" | "lg" | "base" | "md" | "xl" | "2xl" | null | undefined;
722
- direction?: "horizontal" | "vertical" | null | undefined;
723
- } & class_variance_authority_types.ClassProp) | undefined) => string;
724
- type CardVariant = 'default' | 'outline' | 'ghost';
725
- type CardRadius = 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
726
- interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
727
- /** Visual style */
728
- variant?: CardVariant;
729
- /** Content padding scale */
730
- size?: CardSize;
731
- /** Border radius */
732
- radius?: CardRadius;
733
- /** Layout direction */
734
- direction?: CardDirection;
735
- /** Enable hover effect for interactive cards */
736
- interactive?: boolean;
737
- /** Render as child element (Slot pattern) */
738
- asChild?: boolean;
739
- }
740
- declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
741
- interface CardImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
742
- /** Gradient overlay on image */
743
- overlay?: boolean;
744
- /** Overlay opacity (10–90). Default: 60 */
745
- overlayOpacity?: number;
746
- /** Custom class for overlay gradient (overrides overlayOpacity) */
747
- overlayClassName?: string;
748
- }
749
- declare const CardImage: React.ForwardRefExoticComponent<CardImageProps & React.RefAttributes<HTMLImageElement>>;
750
- interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
751
- }
752
- declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
753
- interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
754
- /** Leading icon */
755
- icon?: React.ReactNode;
756
- }
757
- declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
758
- interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
759
- }
760
- declare const CardDescription: React.ForwardRefExoticComponent<CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
761
- interface CardActionProps extends React.HTMLAttributes<HTMLDivElement> {
762
- }
763
- declare const CardAction: React.ForwardRefExoticComponent<CardActionProps & React.RefAttributes<HTMLDivElement>>;
764
- interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
765
- }
766
- declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
767
- interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
768
- }
769
- declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
770
-
771
- type TableSize = 'sm' | 'default' | 'lg';
772
- type TableVariant = 'default' | 'bordered' | 'striped';
773
- declare const tableVariants: (props?: ({
774
- variant?: "default" | "bordered" | "striped" | null | undefined;
775
- } & class_variance_authority_types.ClassProp) | undefined) => string;
776
- interface TableProps extends React.HTMLAttributes<HTMLTableElement>, VariantProps<typeof tableVariants> {
777
- /** Table density */
778
- size?: TableSize;
779
- /** Visual style */
780
- variant?: TableVariant;
781
- /** Sticky header when scrolling */
782
- stickyHeader?: boolean;
783
- /** Additional className for the scroll wrapper (e.g. max-h-[400px]) */
784
- wrapperClassName?: string;
785
- }
786
- declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
787
- declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
788
- declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
789
- declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
790
- interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
791
- /** Enable hover highlight */
792
- interactive?: boolean;
793
- /** Selected state background */
794
- selected?: boolean;
795
- }
796
- declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
797
- type SortDirection = 'asc' | 'desc' | null;
798
- interface SortIconSet {
799
- /** Icon for ascending state */
800
- asc?: React.ReactNode;
801
- /** Icon for descending state */
802
- desc?: React.ReactNode;
803
- /** Icon for unsorted (default) state */
804
- default?: React.ReactNode;
805
- }
806
- interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
807
- /** Text alignment */
808
- align?: 'left' | 'center' | 'right';
809
- /** Enable sort indicator */
810
- sortable?: boolean;
811
- /** Current sort direction */
812
- sortDirection?: SortDirection;
813
- /** Sort click handler */
814
- onSort?: () => void;
815
- /** Custom sort icons (overrides built-in icons) */
816
- sortIcon?: SortIconSet;
817
- }
818
- declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
819
- interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
820
- /** Text alignment */
821
- align?: 'left' | 'center' | 'right';
822
- }
823
- declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
824
- declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
825
-
826
- declare const tabsListVariants: (props?: ({
827
- variant?: "line" | "enclosed" | "pill" | null | undefined;
828
- fitted?: boolean | null | undefined;
829
- } & class_variance_authority_types.ClassProp) | undefined) => string;
830
- interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, VariantProps<typeof tabsListVariants> {
831
- size?: 'sm' | 'md' | 'default' | 'lg';
832
- /** Indicator color for line variant */
833
- color?: 'default' | 'primary';
834
- /** Top border-radius for enclosed variant, container radius for pill variant */
835
- radius?: 'none' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
836
- }
837
- declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
838
- declare const tabsTriggerVariants: (props?: ({
839
- variant?: "line" | "enclosed" | "pill" | null | undefined;
840
- size?: "default" | "sm" | "lg" | "md" | null | undefined;
841
- fitted?: boolean | null | undefined;
842
- } & class_variance_authority_types.ClassProp) | undefined) => string;
843
- interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, Omit<VariantProps<typeof tabsTriggerVariants>, 'variant' | 'size' | 'fitted'> {
844
- }
845
- declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
846
- interface TabsContentProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> {
847
- }
848
- declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
849
- declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
850
-
851
- type NavigationMenuRadius = 'sm' | 'md' | 'lg' | 'xl';
852
- declare const navigationMenuSizeMap: {
853
- readonly sm: {
854
- readonly trigger: "h-8 text-sm px-3 gap-2";
855
- readonly link: "h-8 text-sm px-3 gap-2";
856
- readonly icon: "icon-xs";
857
- readonly collapsedSquare: "size-8";
858
- readonly collapsedWidth: 56;
859
- readonly dropdownLink: "px-3 py-1.5 text-sm gap-2";
860
- readonly subLink: "h-8 text-sm pl-8 pr-3 gap-2";
861
- readonly groupLabel: "text-2xs px-3 mb-1";
862
- readonly groupMargin: "mt-4 first:mt-0";
863
- };
864
- readonly md: {
865
- readonly trigger: "h-9 text-md px-3.5 gap-2";
866
- readonly link: "h-9 text-md px-3.5 gap-2";
867
- readonly icon: "icon-sm";
868
- readonly collapsedSquare: "size-9";
869
- readonly collapsedWidth: 60;
870
- readonly dropdownLink: "px-3 py-1.5 text-md gap-2";
871
- readonly subLink: "h-9 text-md pl-9 pr-3.5 gap-2";
872
- readonly groupLabel: "text-xs px-3.5 mb-1";
873
- readonly groupMargin: "mt-4 first:mt-0";
874
- };
875
- readonly default: {
876
- readonly trigger: "h-10 text-md px-4 gap-2";
877
- readonly link: "h-10 text-md px-4 gap-2";
878
- readonly icon: "icon-sm";
879
- readonly collapsedSquare: "size-10";
880
- readonly collapsedWidth: 64;
881
- readonly dropdownLink: "px-3 py-2 text-md gap-2";
882
- readonly subLink: "h-10 text-md pl-10 pr-4 gap-2";
883
- readonly groupLabel: "text-xs px-4 mb-1.5";
884
- readonly groupMargin: "mt-5 first:mt-0";
885
- };
886
- readonly lg: {
887
- readonly trigger: "h-12 text-base px-6 gap-2";
888
- readonly link: "h-12 text-base px-6 gap-2";
889
- readonly icon: "icon-sm";
890
- readonly collapsedSquare: "size-12";
891
- readonly collapsedWidth: 72;
892
- readonly dropdownLink: "px-3 py-2.5 text-base gap-2";
893
- readonly subLink: "h-12 text-base pl-12 pr-6 gap-2";
894
- readonly groupLabel: "text-xs px-4 mb-2";
895
- readonly groupMargin: "mt-6 first:mt-0";
896
- };
897
- };
898
- interface NavigationMenuProps extends React.HTMLAttributes<HTMLElement> {
899
- /** Layout orientation */
900
- orientation?: 'horizontal' | 'vertical';
901
- /** Size of the menu items */
902
- size?: 'sm' | 'md' | 'default' | 'lg';
903
- /** Vertical only: show icons only (collapsed sidebar) */
904
- collapsed?: boolean;
905
- /** Vertical only: sidebar width (default: 256px / 16rem) */
906
- width?: number | string;
907
- /** Vertical only: collapsed sidebar width (default: 64px / 4rem) */
908
- collapsedWidth?: number | string;
909
- /** Border radius for dropdown content and items */
910
- radius?: NavigationMenuRadius;
911
- /** Font weight for menu items (default: normal, active items always use semibold) */
912
- fontWeight?: 'normal' | 'semibold';
913
- /** Horizontal only: delay before hover opens in ms */
914
- delayDuration?: number;
915
- /** Horizontal only: skip delay when moving between triggers */
916
- skipDelayDuration?: number;
917
- /** Controlled active menu item value */
918
- value?: string;
919
- /** Default active menu item value (uncontrolled) */
920
- defaultValue?: string;
921
- /** Callback when active item changes */
922
- onValueChange?: (value: string) => void;
923
- }
924
- declare const NavigationMenu: React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLElement>>;
925
- interface NavigationMenuListProps extends React.HTMLAttributes<HTMLUListElement> {
926
- }
927
- declare const NavigationMenuList: React.ForwardRefExoticComponent<NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
928
- interface NavigationMenuItemProps extends React.HTMLAttributes<HTMLLIElement> {
929
- /** Value identifier for Radix (horizontal mode) */
930
- value?: string;
931
- /** Vertical only: default open state for sub-menu */
932
- defaultOpen?: boolean;
933
- }
934
- declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
935
- interface NavigationMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
936
- /** Icon displayed before the label */
937
- icon?: React.ReactNode;
938
- /** Custom chevron icon (default: built-in ChevronDown for horizontal, ChevronRight for vertical) */
939
- chevronIcon?: React.ReactNode;
940
- }
941
- declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
942
- interface NavigationMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
943
- }
944
- declare const NavigationMenuContent: React.ForwardRefExoticComponent<NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>;
945
- interface NavigationMenuLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
946
- /** Whether the link represents the current page */
947
- active?: boolean;
948
- /** Compose with custom link component (Radix Slot) */
949
- asChild?: boolean;
950
- /** Icon displayed before the label */
951
- icon?: React.ReactNode;
952
- }
953
- declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
954
- interface NavigationMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
955
- /** Group header label */
956
- label?: string;
957
- }
958
- declare const NavigationMenuGroup: React.ForwardRefExoticComponent<NavigationMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
959
- interface NavigationMenuIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
960
- /** Active indicator dot color (default: dark/foreground, primary: brand color) */
961
- color?: 'default' | 'primary';
962
- }
963
- declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>>;
964
- interface NavigationMenuViewportProps extends React.HTMLAttributes<HTMLDivElement> {
965
- }
966
- declare const NavigationMenuViewport: React.ForwardRefExoticComponent<NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>>;
967
-
968
- type PaginationRange = (number | 'dots')[];
969
- interface UsePaginationProps {
970
- /** Total number of pages */
971
- total: number;
972
- /** Number of siblings on each side of current page */
973
- siblings?: number;
974
- /** Number of boundary pages at start/end */
975
- boundaries?: number;
976
- /** Current active page (1-based) */
977
- page: number;
978
- }
979
- declare function usePagination({ total, siblings, boundaries, page, }: UsePaginationProps): PaginationRange;
980
- type PaginationSize = 'xs' | 'sm' | 'default' | 'lg' | 'xl';
981
- type PaginationVariant = 'default' | 'outline' | 'ghost';
982
- type PaginationColor = 'default' | 'primary';
983
- type PaginationRadius = 'sm' | 'base' | 'md' | 'lg' | 'xl' | 'full';
984
- declare const paginationSizeMap: {
985
- readonly xs: {
986
- readonly item: "h-7 min-w-7 text-xs";
987
- readonly icon: "icon-xs";
988
- readonly gap: "gap-1";
989
- };
990
- readonly sm: {
991
- readonly item: "h-8 min-w-8 text-sm";
992
- readonly icon: "icon-xs";
993
- readonly gap: "gap-1";
994
- };
995
- readonly default: {
996
- readonly item: "h-9 min-w-9 text-md";
997
- readonly icon: "icon-sm";
998
- readonly gap: "gap-1";
999
- };
1000
- readonly lg: {
1001
- readonly item: "h-10 min-w-10 text-md";
1002
- readonly icon: "icon-sm";
1003
- readonly gap: "gap-1.5";
1004
- };
1005
- readonly xl: {
1006
- readonly item: "h-12 min-w-12 text-base";
1007
- readonly icon: "icon-sm";
1008
- readonly gap: "gap-1.5";
1009
- };
1010
- };
1011
- declare const paginationItemVariants: (props?: ({
1012
- radius?: "sm" | "lg" | "base" | "md" | "xl" | "full" | null | undefined;
1013
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1014
- interface PaginationProps extends Omit<React.ComponentPropsWithoutRef<'nav'>, 'onChange'> {
1015
- /** Total number of pages */
1016
- total?: number;
1017
- /** Controlled active page (1-based) */
1018
- value?: number;
1019
- /** Initial page for uncontrolled mode */
1020
- defaultValue?: number;
1021
- /** Page change callback */
1022
- onChange?: (page: number) => void;
1023
- /** Number of siblings on each side of current page */
1024
- siblings?: number;
1025
- /** Number of boundary pages at start/end */
1026
- boundaries?: number;
1027
- /** Component size */
1028
- size?: PaginationSize;
1029
- /** Visual variant */
1030
- variant?: PaginationVariant;
1031
- /** Active page color */
1032
- color?: PaginationColor;
1033
- /** Border radius */
1034
- radius?: PaginationRadius;
1035
- /** Disable all interactions */
1036
- disabled?: boolean;
1037
- /** Show previous/next controls */
1038
- withControls?: boolean;
1039
- /** Show first/last controls */
1040
- withEdges?: boolean;
1041
- /** Loop from last to first and vice versa */
1042
- loop?: boolean;
1043
- }
1044
- declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
1045
- declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
1046
- declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
1047
- interface PaginationLinkProps extends React.ComponentPropsWithoutRef<'button'> {
1048
- /** Page number this link navigates to */
1049
- page: number;
1050
- /** Whether this page is currently active (auto-detected from context if omitted) */
1051
- isActive?: boolean;
1052
- }
1053
- declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
1054
- interface PaginationPreviousProps extends React.ComponentPropsWithoutRef<'button'> {
1055
- /** Custom icon */
1056
- icon?: React.ReactNode;
1057
- }
1058
- declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationPreviousProps & React.RefAttributes<HTMLButtonElement>>;
1059
- interface PaginationNextProps extends React.ComponentPropsWithoutRef<'button'> {
1060
- /** Custom icon */
1061
- icon?: React.ReactNode;
1062
- }
1063
- declare const PaginationNext: React.ForwardRefExoticComponent<PaginationNextProps & React.RefAttributes<HTMLButtonElement>>;
1064
- interface PaginationFirstProps extends React.ComponentPropsWithoutRef<'button'> {
1065
- /** Custom icon */
1066
- icon?: React.ReactNode;
1067
- }
1068
- declare const PaginationFirst: React.ForwardRefExoticComponent<PaginationFirstProps & React.RefAttributes<HTMLButtonElement>>;
1069
- interface PaginationLastProps extends React.ComponentPropsWithoutRef<'button'> {
1070
- /** Custom icon */
1071
- icon?: React.ReactNode;
1072
- }
1073
- declare const PaginationLast: React.ForwardRefExoticComponent<PaginationLastProps & React.RefAttributes<HTMLButtonElement>>;
1074
- declare const PaginationEllipsis: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
1075
- declare const PaginationItems: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1076
-
1077
- declare function Modal(props: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>): React.JSX.Element;
1078
- declare const ModalTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1079
- declare const ModalPortal: React.FC<DialogPrimitive.DialogPortalProps>;
1080
- declare const ModalClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
1081
- declare const ModalOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1082
- declare const modalContentVariants: (props?: ({
1083
- size?: "sm" | "lg" | "md" | "xs" | "xl" | "full" | null | undefined;
1084
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1085
- interface ModalContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof modalContentVariants> {
1086
- /** Scroll behavior when content overflows */
1087
- scrollBehavior?: 'inside' | 'outside';
1088
- /** Show built-in close button */
1089
- showCloseButton?: boolean;
1090
- /** Custom close icon (replaces default X) */
1091
- closeIcon?: React.ReactNode;
1092
- }
1093
- declare const ModalContent: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
1094
- declare const ModalHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1095
- declare const ModalTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
1096
- declare const ModalDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
1097
- declare const ModalBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1098
- declare const ModalFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1099
- declare const AlertModal: React.FC<AlertDialogPrimitive.AlertDialogProps>;
1100
- declare const AlertModalTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1101
- declare const AlertModalPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
1102
- declare const AlertModalOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1103
- declare const alertModalContentVariants: (props?: ({
1104
- size?: "sm" | "xs" | null | undefined;
1105
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1106
- interface AlertModalContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>, VariantProps<typeof alertModalContentVariants> {
1107
- }
1108
- declare const AlertModalContent: React.ForwardRefExoticComponent<AlertModalContentProps & React.RefAttributes<HTMLDivElement>>;
1109
- declare const AlertModalHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1110
- declare const AlertModalTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
1111
- declare const AlertModalDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
1112
- declare const AlertModalBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1113
- declare const AlertModalFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1114
- declare const AlertModalAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1115
- declare const AlertModalCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1116
-
1117
- type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
1118
- type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
1119
- declare const drawerSizeHorizontal: (props?: ({
1120
- size?: "sm" | "lg" | "md" | "xl" | "full" | null | undefined;
1121
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1122
- declare const drawerSizeVertical: (props?: ({
1123
- size?: "sm" | "lg" | "md" | "xl" | "full" | null | undefined;
1124
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1125
- declare function Drawer(props: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>): React.JSX.Element;
1126
- declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1127
- declare const DrawerPortal: React.FC<DialogPrimitive.DialogPortalProps>;
1128
- declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
1129
- declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1130
- interface DrawerContentProps extends Omit<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, 'children'> {
1131
- /** Side from which the drawer slides in */
1132
- side?: DrawerSide;
1133
- /** Panel size (width for left/right, height for top/bottom) */
1134
- size?: DrawerSize;
1135
- /** Show built-in close button */
1136
- showCloseButton?: boolean;
1137
- /** Custom close icon (replaces default X) */
1138
- closeIcon?: React.ReactNode;
1139
- children?: React.ReactNode;
1140
- }
1141
- declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
1142
- declare const DrawerHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1143
- declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
1144
- declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
1145
- declare const DrawerBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1146
- declare const DrawerFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1147
-
1148
- type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
1149
- declare const tooltipContentVariants: (props?: ({
1150
- variant?: "default" | "inverted" | null | undefined;
1151
- size?: "default" | "sm" | null | undefined;
1152
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1153
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
1154
- interface TooltipRootProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root> {
1155
- /** Delay in ms before tooltip appears */
1156
- delayDuration?: number;
1157
- }
1158
- declare function Tooltip({ delayDuration, ...props }: TooltipRootProps): React.JSX.Element;
1159
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1160
- declare const TooltipPortal: React.FC<TooltipPrimitive.TooltipPortalProps>;
1161
- interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
1162
- /** Show arrow pointing to trigger */
1163
- showArrow?: boolean;
1164
- }
1165
- declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
1166
- declare const TooltipArrow: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
1167
-
1168
- type PopoverSide = 'top' | 'right' | 'bottom' | 'left';
1169
- declare const popoverContentVariants: (props?: ({
1170
- variant?: "default" | "elevated" | null | undefined;
1171
- size?: "default" | "sm" | "lg" | null | undefined;
1172
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1173
- interface PopoverRootProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
1174
- }
1175
- declare function Popover(props: PopoverRootProps): React.JSX.Element;
1176
- declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1177
- declare const PopoverPortal: React.FC<PopoverPrimitive.PopoverPortalProps>;
1178
- declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
1179
- declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
1180
- interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, VariantProps<typeof popoverContentVariants> {
1181
- /** Show arrow pointing to trigger */
1182
- showArrow?: boolean;
1183
- /** Show built-in close button */
1184
- showClose?: boolean;
1185
- /** Custom close icon (replaces default X icon) */
1186
- closeIcon?: React.ReactNode;
1187
- }
1188
- declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
1189
- declare const PopoverArrow: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
1190
-
1191
- declare const alertVariants: (props?: ({
1192
- size?: "default" | "sm" | "lg" | null | undefined;
1193
- radius?: "sm" | "lg" | "base" | "none" | "md" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
1194
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1195
- type AlertVariant = 'default' | 'outline' | 'filled';
1196
- type AlertColor = 'info' | 'success' | 'warning' | 'error';
1197
- type AlertSize = 'sm' | 'default' | 'lg';
1198
- interface AlertRootProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
1199
- /** Visual style */
1200
- variant?: AlertVariant;
1201
- /** Semantic color (determines icon, colors, and ARIA role) */
1202
- color?: AlertColor;
1203
- /** Size */
1204
- size?: AlertSize;
1205
- /** Closable — shows close button */
1206
- closable?: boolean;
1207
- /** Close callback */
1208
- onClose?: () => void;
1209
- /** Custom close icon */
1210
- closeIcon?: React.ReactNode;
1211
- /** Custom status icon (overrides default) */
1212
- icon?: React.ReactNode;
1213
- /** Hide the status icon entirely */
1214
- hideIcon?: boolean;
1215
- }
1216
- declare const Alert: React.ForwardRefExoticComponent<AlertRootProps & React.RefAttributes<HTMLDivElement>>;
1217
- interface AlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
1218
- }
1219
- declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
1220
- interface AlertDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
1221
- }
1222
- declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
1223
-
1224
- declare const toastVariants: (props?: ({
1225
- size?: "default" | "sm" | "lg" | null | undefined;
1226
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1227
- type ToastType = 'default' | 'success' | 'error' | 'warning' | 'info' | 'loading';
1228
- type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
1229
- type ToastSize = 'sm' | 'default' | 'lg';
1230
- interface ToastAction {
1231
- label: string;
1232
- onClick: () => void;
1233
- }
1234
- interface ToastData {
1235
- id: string;
1236
- type: ToastType;
1237
- message: React.ReactNode;
1238
- description?: React.ReactNode;
1239
- duration?: number;
1240
- dismissible?: boolean;
1241
- closeButton?: boolean;
1242
- icon?: React.ReactNode;
1243
- action?: ToastAction;
1244
- cancel?: ToastAction;
1245
- onDismiss?: (toast: ToastData) => void;
1246
- onAutoClose?: (toast: ToastData) => void;
1247
- className?: string;
1248
- /** Promise state — managed internally */
1249
- _promiseState?: 'loading' | 'success' | 'error';
1250
- }
1251
- interface ToastOptions {
1252
- id?: string;
1253
- description?: React.ReactNode;
1254
- duration?: number;
1255
- dismissible?: boolean;
1256
- closeButton?: boolean;
1257
- icon?: React.ReactNode;
1258
- action?: ToastAction;
1259
- cancel?: ToastAction;
1260
- onDismiss?: (toast: ToastData) => void;
1261
- onAutoClose?: (toast: ToastData) => void;
1262
- className?: string;
1263
- }
1264
- interface PromiseOptions<T> {
1265
- loading: React.ReactNode;
1266
- success: React.ReactNode | ((data: T) => React.ReactNode);
1267
- error: React.ReactNode | ((err: unknown) => React.ReactNode);
1268
- finally?: () => void;
1269
- description?: {
1270
- loading?: React.ReactNode;
1271
- success?: React.ReactNode | ((data: T) => React.ReactNode);
1272
- error?: React.ReactNode | ((err: unknown) => React.ReactNode);
1273
- };
1274
- }
1275
- declare function toast(message: React.ReactNode, opts?: ToastOptions): string;
1276
- declare namespace toast {
1277
- var success: (message: React.ReactNode, opts?: ToastOptions) => string;
1278
- var error: (message: React.ReactNode, opts?: ToastOptions) => string;
1279
- var warning: (message: React.ReactNode, opts?: ToastOptions) => string;
1280
- var info: (message: React.ReactNode, opts?: ToastOptions) => string;
1281
- var loading: (message: React.ReactNode, opts?: ToastOptions) => string;
1282
- var promise: <T>(promise: Promise<T>, opts: PromiseOptions<T>, toastOpts?: ToastOptions) => Promise<T>;
1283
- var dismiss: (id?: string) => void;
1284
- var custom: (render: (t: ToastData) => React.ReactNode, opts?: ToastOptions) => string;
1285
- }
1286
- interface ToasterProps {
1287
- /** Position on screen */
1288
- position?: ToastPosition;
1289
- /** Default auto-dismiss duration in ms (0 = persistent) */
1290
- duration?: number;
1291
- /** Max visible toasts */
1292
- visibleToasts?: number;
1293
- /** Show close button on all toasts */
1294
- closeButton?: boolean;
1295
- /** Use rich (filled) colors for status toasts — default: true */
1296
- richColors?: boolean;
1297
- /** Expand all toasts (no stacking) */
1298
- expand?: boolean;
1299
- /** Offset from screen edge in px */
1300
- offset?: number;
1301
- /** Gap between toasts in px */
1302
- gap?: number;
1303
- /** Toast size */
1304
- size?: ToastSize;
1305
- /** Additional className for container */
1306
- className?: string;
1307
- }
1308
- declare function Toaster({ position, duration, visibleToasts, closeButton, richColors, expand, offset, gap, size, className, }: ToasterProps): React.JSX.Element;
1309
- declare namespace Toaster {
1310
- var displayName: string;
1311
- }
1312
-
1313
- declare const linearTrackVariants: (props?: ({
1314
- size?: "default" | "sm" | "lg" | null | undefined;
1315
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1316
- interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, 'children'>, VariantProps<typeof linearTrackVariants> {
1317
- /** Progress type */
1318
- type?: 'linear' | 'circular';
1319
- /** Current value (0 to max) */
1320
- value?: number;
1321
- /** Maximum value */
1322
- max?: number;
1323
- /** Visual variant (linear only) */
1324
- variant?: 'default' | 'striped';
1325
- /** Indicator color */
1326
- color?: 'default' | 'primary';
1327
- /** Custom indicator class (overrides color) */
1328
- indicatorClassName?: string;
1329
- /** Show percentage value */
1330
- showValue?: boolean;
1331
- /** Custom label formatter */
1332
- formatLabel?: (value: number, max: number) => string;
1333
- /** Animate striped variant */
1334
- animated?: boolean;
1335
- /** Circular stroke thickness override */
1336
- thickness?: number;
1337
- /** Accessibility label */
1338
- label?: string;
1339
- }
1340
- declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
1341
-
1342
- declare const spinnerVariants: (props?: ({
1343
- size?: "default" | "sm" | "lg" | null | undefined;
1344
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1345
- type OrbitStyle = 'ring' | 'dots' | 'cube' | 'flip' | 'morph';
1346
- interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
1347
- /** Visual variant */
1348
- variant?: 'ring' | 'dots' | 'bars' | 'orbit';
1349
- /** Orbit sub-style (only when variant="orbit") */
1350
- orbitStyle?: OrbitStyle;
1351
- /** Spinner color */
1352
- color?: 'default' | 'primary' | 'current';
1353
- /** Animation speed */
1354
- speed?: 'slow' | 'default' | 'fast';
1355
- /** Accessibility label */
1356
- label?: string;
1357
- }
1358
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
1359
-
1360
- declare const skeletonVariants: (props?: ({
1361
- variant?: "text" | "circular" | "rectangular" | null | undefined;
1362
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1363
- interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
1364
- /** Animation style */
1365
- animation?: 'pulse' | 'wave' | false;
1366
- /** Custom width */
1367
- width?: string | number;
1368
- /** Custom height */
1369
- height?: string | number;
1370
- /** Custom border radius */
1371
- radius?: string | number;
1372
- /** Number of text lines (text variant only, generates stacked lines) */
1373
- count?: number;
1374
- /** Conditional loading — true: show skeleton, false: render children */
1375
- loading?: boolean;
1376
- /** Children to render when loading=false */
1377
- children?: React.ReactNode;
1378
- }
1379
- declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
1380
-
1381
- declare const typingIndicatorVariants: (props?: ({
1382
- size?: "default" | "sm" | "lg" | null | undefined;
1383
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1384
- interface TypingIndicatorProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof typingIndicatorVariants> {
1385
- /** Animation style */
1386
- variant?: 'dots' | 'cursor';
1387
- /** Indicator color */
1388
- color?: 'default' | 'primary' | 'muted';
1389
- /** Animation speed */
1390
- speed?: 'slow' | 'default' | 'fast';
1391
- /** Accessible label (also shown as visual text when showLabel is true) */
1392
- label?: string;
1393
- /** Render label text alongside the indicator */
1394
- showLabel?: boolean;
1395
- }
1396
- declare const TypingIndicator: React.ForwardRefExoticComponent<TypingIndicatorProps & React.RefAttributes<HTMLDivElement>>;
1397
-
1398
- declare const quickReplyRootVariants: (props?: ({
1399
- layout?: "scroll" | "wrap" | null | undefined;
1400
- gap?: "default" | "sm" | "lg" | null | undefined;
1401
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1402
- declare const quickReplyItemVariants: (props?: ({
1403
- size?: "default" | "sm" | "lg" | null | undefined;
1404
- radius?: "lg" | "md" | "full" | null | undefined;
1405
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1406
- type QuickReplyLayout = 'scroll' | 'wrap';
1407
- type QuickReplyVariant = 'outline' | 'filled' | 'ghost';
1408
- type QuickReplyColor = 'default' | 'primary';
1409
- type QuickReplySize = 'sm' | 'default' | 'lg';
1410
- type QuickReplyRadius = 'md' | 'lg' | 'full';
1411
- type QuickReplyGap = 'sm' | 'default' | 'lg';
1412
- interface QuickReplyRootProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof quickReplyRootVariants> {
1413
- /** Layout mode: horizontal scroll or wrap to multiple rows */
1414
- layout?: QuickReplyLayout;
1415
- /** Visual style applied to all child Items */
1416
- variant?: QuickReplyVariant;
1417
- /** Color theme applied to all child Items */
1418
- color?: QuickReplyColor;
1419
- /** Chip size applied to all child Items */
1420
- size?: QuickReplySize;
1421
- /** Border radius applied to all child Items */
1422
- radius?: QuickReplyRadius;
1423
- /** Gap between Items */
1424
- gap?: QuickReplyGap;
1425
- }
1426
- interface QuickReplyItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
1427
- /** Leading icon (SVG or ReactNode) */
1428
- icon?: React.ReactNode;
1429
- /** Render as child element (Slot pattern) */
1430
- asChild?: boolean;
1431
- }
1432
- declare const QuickReply: React.ForwardRefExoticComponent<QuickReplyRootProps & React.RefAttributes<HTMLDivElement>>;
1433
- declare const QuickReplyItem: React.ForwardRefExoticComponent<QuickReplyItemProps & React.RefAttributes<HTMLButtonElement>>;
1434
-
1435
- declare const chatInputVariants: (props?: ({
1436
- variant?: "outline" | "filled" | null | undefined;
1437
- radius?: "sm" | "lg" | "md" | "xl" | "2xl" | "full" | null | undefined;
1438
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1439
- type ChatInputSize = 'sm' | 'default' | 'lg';
1440
- type ChatInputVariant = 'outline' | 'filled';
1441
- type ChatInputRadius = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
1442
- type ChatInputColor = 'default' | 'primary';
1443
- type ChatInputLayout = 'default' | 'inline';
1444
- interface ChatInputRootProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'>, VariantProps<typeof chatInputVariants> {
1445
- /** Visual style of the container */
1446
- variant?: ChatInputVariant;
1447
- /** Corner radius */
1448
- radius?: ChatInputRadius;
1449
- /** Size scale */
1450
- size?: ChatInputSize;
1451
- /** Submit button color — default (dark) or primary (brand) */
1452
- color?: ChatInputColor;
1453
- /** Layout direction — default (stacked) or inline (field + button side by side) */
1454
- layout?: ChatInputLayout;
1455
- /** Disable all interaction */
1456
- disabled?: boolean;
1457
- /** Called when the user submits (Enter key or Submit button) — receives current field value */
1458
- onSubmit?: (value: string) => void;
1459
- }
1460
- interface ChatInputFieldProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'children'> {
1461
- /** Maximum visible rows before the field scrolls */
1462
- maxRows?: number;
1463
- /** Show character counter — requires maxLength to be set */
1464
- showCount?: boolean;
1465
- }
1466
- interface ChatInputSubmitProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
1467
- /** Show loading/stop state — keeps button enabled so user can stop generation */
1468
- loading?: boolean;
1469
- /** Called when clicked during loading state (e.g., stop generation) */
1470
- onStop?: () => void;
1471
- /** Override the auto-calculated button radius */
1472
- buttonRadius?: ChatInputRadius;
1473
- }
1474
- declare const ChatInput: React.ForwardRefExoticComponent<ChatInputRootProps & React.RefAttributes<HTMLDivElement>>;
1475
- declare const ChatInputField: React.ForwardRefExoticComponent<ChatInputFieldProps & React.RefAttributes<HTMLTextAreaElement>>;
1476
- declare const ChatInputSubmit: React.ForwardRefExoticComponent<ChatInputSubmitProps & React.RefAttributes<HTMLButtonElement>>;
1477
-
1478
- type ChatMessageRole = 'user' | 'assistant';
1479
- type ChatMessageVariant = 'bubble' | 'flat';
1480
- type ChatMessageColor = 'default' | 'muted' | 'primary' | 'dark';
1481
- type ChatMessageSize = 'sm' | 'default' | 'lg';
1482
- type ChatMessageRadius = 'md' | 'lg' | 'xl' | '2xl';
1483
- type ChatMessageAvatarSize = 'sm' | 'md' | 'lg';
1484
- /** Built-in status presets (pass as string to Footer.status for auto-rendering) */
1485
- type ChatMessageStatus = 'sending' | 'sent' | 'read' | 'error';
1486
- interface ChatMessageRootProps extends React.HTMLAttributes<HTMLDivElement> {
1487
- /** Sender role — controls alignment (left=assistant, right=user) */
1488
- role?: ChatMessageRole;
1489
- /** Bubble visual style */
1490
- variant?: ChatMessageVariant;
1491
- /** Bubble background color */
1492
- color?: ChatMessageColor;
1493
- /** Size scale — affects text and padding */
1494
- size?: ChatMessageSize;
1495
- /** Bubble corner radius */
1496
- radius?: ChatMessageRadius;
1497
- /** Asymmetric tail corner (radius=0 on the avatar side) */
1498
- tail?: boolean;
1499
- /** Show typing indicator inside Content. Pass true for defaults, or TypingIndicatorProps for custom. */
1500
- typing?: boolean | Omit<TypingIndicatorProps, 'className'>;
1501
- /** Avatar size — overrides default gap between avatar and bubble */
1502
- avatarSize?: ChatMessageAvatarSize;
1503
- /** Action buttons revealed on hover */
1504
- actions?: React.ReactNode;
1505
- }
1506
- interface ChatMessageAvatarProps {
1507
- /** Avatar size: sm(24px), md(28px), lg(32px) */
1508
- size?: ChatMessageAvatarSize;
1509
- /** Image URL */
1510
- src?: string;
1511
- /** Alt text for avatar image */
1512
- alt?: string;
1513
- /** Initials to display when no image (1–2 characters) */
1514
- initials?: string;
1515
- /** Custom icon or ReactNode to render inside the avatar */
1516
- icon?: React.ReactNode;
1517
- /** Additional CSS classes */
1518
- className?: string;
1519
- }
1520
- interface ChatMessageContentProps extends React.HTMLAttributes<HTMLDivElement> {
1521
- }
1522
- interface ChatMessageFooterProps extends React.HTMLAttributes<HTMLDivElement> {
1523
- /** Pre-formatted timestamp string (e.g. "12:34 PM") */
1524
- timestamp?: string;
1525
- /** Status: built-in preset ('sending' | 'sent' | 'read' | 'error') or custom ReactNode */
1526
- status?: React.ReactNode;
1527
- /** Size override (defaults to context value from ChatMessage root) */
1528
- size?: ChatMessageSize;
1529
- }
1530
- declare const ChatMessage: React.ForwardRefExoticComponent<ChatMessageRootProps & React.RefAttributes<HTMLDivElement>>;
1531
- declare const ChatMessageAvatar: React.ForwardRefExoticComponent<ChatMessageAvatarProps & React.RefAttributes<HTMLSpanElement>>;
1532
- declare const ChatMessageContent: React.ForwardRefExoticComponent<ChatMessageContentProps & React.RefAttributes<HTMLDivElement>>;
1533
- declare const ChatMessageFooter: React.ForwardRefExoticComponent<ChatMessageFooterProps & React.RefAttributes<HTMLDivElement>>;
1534
-
1535
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertColor, AlertDescription, type AlertDescriptionProps, AlertModal, AlertModalAction, AlertModalBody, AlertModalCancel, AlertModalContent, type AlertModalContentProps, AlertModalDescription, AlertModalFooter, AlertModalHeader, AlertModalOverlay, AlertModalPortal, AlertModalTitle, AlertModalTrigger, type AlertRootProps, type AlertSize, AlertTitle, type AlertTitleProps, type AlertVariant, Avatar, type AvatarColorVariant, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeColor, type BadgeProps, type BadgeRadius, type BadgeSize, type BadgeVariant, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, type BreadcrumbProps, BreadcrumbSeparator, Button, type ButtonColor, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, type CardProps, type CardRadius, CardTitle, type CardTitleProps, type CardVariant, ChatInput, type ChatInputColor, ChatInputField, type ChatInputFieldProps, type ChatInputLayout, type ChatInputRadius, type ChatInputRootProps, type ChatInputSize, ChatInputSubmit, type ChatInputSubmitProps, type ChatInputVariant, ChatMessage, ChatMessageAvatar, type ChatMessageAvatarProps, type ChatMessageAvatarSize, type ChatMessageColor, ChatMessageContent, type ChatMessageContentProps, ChatMessageFooter, type ChatMessageFooterProps, type ChatMessageRadius, type ChatMessageRole, type ChatMessageRootProps, type ChatMessageSize, type ChatMessageStatus, type ChatMessageVariant, Checkbox, type CheckboxColor, type CheckboxProps, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerSide, type DrawerSize, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, FieldCharCount, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, IconButton, type IconButtonProps, Input, type InputProps, MetricCard, MetricCardDescription, type MetricCardDescriptionProps, MetricCardHeader, type MetricCardHeaderProps, type MetricCardProps, type MetricCardRadius, type MetricCardSize, MetricCardSymbol, type MetricCardSymbolProps, MetricCardTitle, type MetricCardTitleProps, MetricCardTrend, type MetricCardTrendDirection, type MetricCardTrendProps, MetricCardValue, type MetricCardValueProps, type MetricCardVariant, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuGroup, type NavigationMenuGroupProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, type NavigationMenuRadius, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, type OrbitStyle, Pagination, type PaginationColor, PaginationContent, PaginationEllipsis, PaginationFirst, type PaginationFirstProps, PaginationItem, PaginationItems, PaginationLast, type PaginationLastProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, type PaginationRadius, type PaginationRange, type PaginationSize, type PaginationVariant, Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverRootProps, type PopoverSide, PopoverTrigger, Progress, type ProgressProps, QuickReply, type QuickReplyColor, type QuickReplyGap, QuickReplyItem, type QuickReplyItemProps, type QuickReplyLayout, type QuickReplyRadius, type QuickReplyRootProps, type QuickReplySize, type QuickReplyVariant, type RadioColor, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Segmented, SegmentedItem, type SegmentedItemProps, type SegmentedProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Skeleton, type SkeletonProps, Slider, type SliderColor, type SliderProps, type SortIconSet, Spinner, type SpinnerProps, Switch, type SwitchColor, type SwitchLabelPosition, type SwitchProps, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type ToastAction, type ToastData, type ToastPosition, type ToastSize, type ToastType, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, type TooltipRootProps, type TooltipSide, TooltipTrigger, TypingIndicator, type TypingIndicatorProps, type UsePaginationProps, accordionTriggerVariants, accordionVariants, alertModalContentVariants, alertVariants, avatarColors, avatarVariants, badgeVariants, breadcrumbSizeMap, buttonVariants, cardVariants, chatInputVariants, checkboxVariants, dividerVariants, drawerSizeHorizontal, drawerSizeVertical, getAvatarColor, getAvatarInitials, iconButtonVariants, inputVariants, linearTrackVariants, metricCardVariants, modalContentVariants, navigationMenuSizeMap, paginationItemVariants, paginationSizeMap, popoverContentVariants, quickReplyItemVariants, quickReplyRootVariants, radioGroupVariants, radioItemVariants, segmentedItemVariants, segmentedVariants, skeletonVariants, sliderVariants, spinnerVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toast, toastVariants, toggleGroupItemVariants, toggleGroupVariants, toggleVariants, tooltipContentVariants, typingIndicatorVariants, useButtonGroup, useFieldContext, usePagination };