@sofya-ds/react 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,621 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
- import * as DialogPrimitive from '@radix-ui/react-dialog';
8
- import * as input_otp from 'input-otp';
9
- import { OTPInputProps } from 'input-otp';
10
- export { OTPInputProps, REGEXP_ONLY_DIGITS } from 'input-otp';
11
- import { HexColor, ThemePresetName, SofyaTheme, DeepPartial } from '@sofya-ds/tokens';
12
- export { DeepPartial, HexColor, SofyaBrandPalette, SofyaColorPalette, SofyaGradientToken, SofyaResolvedSurfaceToken, SofyaResolvedTextStyle, SofyaSurfaceName, SofyaSurfaceScale, SofyaSurfaceToken, SofyaTextStyle, SofyaTextStyleName, SofyaTextStyleScale, SofyaTheme, ThemePresetName, brandPaletteToCssVariables, createWhitelabelTheme, defaultTheme, gradientToCss, hexToHslChannels, mergeTheme, resolveSurfaceToken, resolveTextStyle, resolveTheme, sofyaBrandPalette, sofyaColorPalette, sofyaSemanticColorHex, sofyaSurfaceNames, sofyaTextStyleNames, themePresetNames, themePresets, themeToCssVariables } from '@sofya-ds/tokens';
13
- import * as PopoverPrimitive from '@radix-ui/react-popover';
14
- import * as ProgressPrimitive from '@radix-ui/react-progress';
15
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
16
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
17
- import * as SelectPrimitive from '@radix-ui/react-select';
18
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
19
- import { ToasterProps as ToasterProps$1 } from 'sonner';
20
- export { ExternalToast, ToastClassnames, toast } from 'sonner';
21
- import * as SwitchPrimitives from '@radix-ui/react-switch';
22
- import * as TabsPrimitive from '@radix-ui/react-tabs';
23
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
24
-
25
- declare const avatarSizeOptions: readonly ["sm", "default", "lg"];
26
- declare const avatarVariants: (props?: ({
27
- size?: "sm" | "default" | "lg" | null | undefined;
28
- } & class_variance_authority_types.ClassProp) | undefined) => string;
29
- interface AvatarProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarVariants> {
30
- alt?: string;
31
- name: string;
32
- src?: string;
33
- }
34
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
35
-
36
- declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
37
- declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
- interface AccordionTriggerProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> {
39
- indicator?: React.ReactNode;
40
- }
41
- declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
42
- interface AccordionContentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> {
43
- contentClassName?: string;
44
- }
45
- declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
46
-
47
- declare const alertToneOptions: readonly ["default", "info", "success", "warning", "destructive"];
48
- declare const alertSizeOptions: readonly ["sm", "default", "lg"];
49
- type AlertTone = (typeof alertToneOptions)[number];
50
- type AlertSize = (typeof alertSizeOptions)[number];
51
- declare const alertVariants: (props?: ({
52
- size?: "sm" | "default" | "lg" | null | undefined;
53
- tone?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
54
- } & class_variance_authority_types.ClassProp) | undefined) => string;
55
- interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
56
- icon?: React.ReactNode;
57
- showToneIcon?: boolean;
58
- }
59
- declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
60
- declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
61
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
62
-
63
- declare const badgeVariantOptions: readonly ["default", "secondary", "outline", "success", "warning", "destructive", "pill"];
64
- declare const badgeAlertOptions: readonly ["default", "medium", "high"];
65
- declare const badgePillToneOptions: readonly ["neutral", "danger"];
66
- declare const badgeVariants: (props?: ({
67
- variant?: "default" | "destructive" | "success" | "warning" | "secondary" | "outline" | "pill" | null | undefined;
68
- } & class_variance_authority_types.ClassProp) | undefined) => string;
69
- declare const badgeAlertVariants: (props?: ({
70
- alert?: "default" | "medium" | "high" | null | undefined;
71
- } & class_variance_authority_types.ClassProp) | undefined) => string;
72
- declare const badgePillVariants: (props?: ({
73
- tone?: "neutral" | "danger" | null | undefined;
74
- } & class_variance_authority_types.ClassProp) | undefined) => string;
75
- type BadgeVariant = (typeof badgeVariantOptions)[number];
76
- type BadgeAlert = (typeof badgeAlertOptions)[number];
77
- type BadgePillTone = (typeof badgePillToneOptions)[number];
78
- interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
79
- alert?: BadgeAlert;
80
- pillTone?: BadgePillTone;
81
- }
82
- declare function Badge({ className, variant, alert, pillTone, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
83
-
84
- declare const buttonLanguageLocaleOptions: readonly ["pt-BR", "en-US", "es-ES"];
85
- type ButtonLanguageLocale = (typeof buttonLanguageLocaleOptions)[number];
86
-
87
- declare const buttonVariantOptions: readonly ["default", "gradient", "dropdown", "icon", "language", "secondary", "outline", "ghost", "destructive"];
88
- declare const buttonSizeOptions: readonly ["default", "sm", "lg", "icon"];
89
-
90
- declare const buttonVariants: (props?: ({
91
- variant?: "default" | "destructive" | "icon" | "gradient" | "secondary" | "outline" | "dropdown" | "language" | "ghost" | null | undefined;
92
- size?: "sm" | "default" | "lg" | "icon" | null | undefined;
93
- } & class_variance_authority_types.ClassProp) | undefined) => string;
94
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
95
- active?: boolean;
96
- asChild?: boolean;
97
- languageLocale?: ButtonLanguageLocale;
98
- leftIcon?: React.ReactNode;
99
- loading?: boolean;
100
- rightIcon?: React.ReactNode;
101
- }
102
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
103
-
104
- type SurfaceVariant = "card" | "panel" | "focus";
105
- type SurfaceBaseProps = {
106
- variant?: SurfaceVariant;
107
- asChild?: boolean;
108
- className?: string;
109
- style?: React.CSSProperties;
110
- };
111
- type SurfaceProps<E extends React.ElementType = "div"> = SurfaceBaseProps & Omit<React.ComponentPropsWithoutRef<E>, keyof SurfaceBaseProps | "as"> & {
112
- as?: E;
113
- };
114
- declare const Surface: <E extends React.ElementType = "div">(props: SurfaceProps<E> & React.RefAttributes<Element>) => React.ReactElement | null;
115
-
116
- declare const cardVariants: readonly ["card", "panel", "focus"];
117
- interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
118
- variant?: SurfaceVariant;
119
- }
120
- declare function Card({ className, variant, ...props }: CardProps): react_jsx_runtime.JSX.Element;
121
- declare function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
122
- declare function CardTitle({ children, className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
123
- declare function CardDescription({ children, className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
124
- declare function CardContent({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
125
- declare function CardFooter({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
126
-
127
- interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
128
- description?: React.ReactNode;
129
- descriptionClassName?: string;
130
- label?: React.ReactNode;
131
- labelClassName?: string;
132
- }
133
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
134
-
135
- declare const dropdownVariantOptions: readonly ["card", "panel", "language", "selected"];
136
- type DropdownVariant = (typeof dropdownVariantOptions)[number];
137
- interface DropdownItem {
138
- value: string;
139
- label: React.ReactNode;
140
- triggerLabel?: React.ReactNode;
141
- icon?: React.ReactNode;
142
- indicator?: React.ReactNode;
143
- disabled?: boolean;
144
- languageLocale?: ButtonLanguageLocale;
145
- }
146
- declare const dropdownLanguageItems: readonly DropdownItem[];
147
- interface DropdownProps extends Pick<React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>, "defaultOpen" | "modal" | "onOpenChange" | "open"> {
148
- align?: "start" | "center" | "end";
149
- contentClassName?: string;
150
- defaultValue?: string;
151
- disabled?: boolean;
152
- items?: readonly DropdownItem[];
153
- itemClassName?: string;
154
- onValueChange?: (value: string) => void;
155
- placeholder?: React.ReactNode;
156
- sideOffset?: number;
157
- triggerClassName?: string;
158
- triggerIcon?: React.ReactNode;
159
- value?: string;
160
- variant?: DropdownVariant;
161
- }
162
- declare function Dropdown({ align, contentClassName, defaultOpen, defaultValue, disabled, items, itemClassName, modal, onOpenChange, onValueChange, open, placeholder, sideOffset, triggerClassName, triggerIcon, value, variant, }: DropdownProps): react_jsx_runtime.JSX.Element;
163
-
164
- declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
165
- declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
166
- declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
167
- declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
168
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
169
- interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
170
- cardClassName?: string;
171
- cardVariant?: CardProps["variant"];
172
- overlayClassName?: string;
173
- showCloseButton?: boolean;
174
- }
175
- declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
176
- declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
177
- declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
178
- type DialogDismissButtonProps = Omit<ButtonProps, "asChild">;
179
- declare const DialogCancel: React.ForwardRefExoticComponent<DialogDismissButtonProps & React.RefAttributes<HTMLButtonElement>>;
180
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
181
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
182
-
183
- declare const emptyMediaVariantOptions: readonly ["default", "icon"];
184
- declare const emptyMediaVariants: (props?: ({
185
- variant?: "default" | "icon" | null | undefined;
186
- } & class_variance_authority_types.ClassProp) | undefined) => string;
187
- interface EmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "content" | "title"> {
188
- content?: React.ReactNode;
189
- description?: React.ReactNode;
190
- media?: React.ReactNode;
191
- title?: React.ReactNode;
192
- }
193
- interface EmptyMediaProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyMediaVariants> {
194
- }
195
- declare const EmptyMedia: React.ForwardRefExoticComponent<EmptyMediaProps & React.RefAttributes<HTMLDivElement>>;
196
- declare function EmptyHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
197
- declare namespace EmptyHeader {
198
- var displayName: string;
199
- }
200
- declare function EmptyTitle({ children, className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
201
- declare namespace EmptyTitle {
202
- var displayName: string;
203
- }
204
- declare function EmptyDescription({ children, className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
205
- declare namespace EmptyDescription {
206
- var displayName: string;
207
- }
208
- declare function EmptyContent({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
209
- declare namespace EmptyContent {
210
- var displayName: string;
211
- }
212
- declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
213
-
214
- declare const legacyIconToTablerNameMap: {
215
- readonly "adjustments-horizontal-filled": "IconAdjustmentsHorizontalFilled";
216
- readonly books: "IconBooks";
217
- readonly organization: "IconBuildingHospital";
218
- readonly locations: "IconMapPin";
219
- readonly people: "IconUsers";
220
- readonly terminologies: "IconLanguage";
221
- readonly guidelines: "IconChecklist";
222
- readonly logs: "IconChartBar";
223
- readonly profile: "IconUserSearch";
224
- readonly experience: "IconSchool";
225
- readonly voice: "IconMicrophone";
226
- readonly plus: "IconPlus";
227
- readonly check: "IconCheck";
228
- readonly "caret-down": "IconChevronDown";
229
- readonly lightbulb: "IconBulb";
230
- readonly chats: "IconMessages";
231
- readonly file: "IconFile";
232
- readonly folders: "IconFolders";
233
- readonly sparkle: "IconSparkles";
234
- readonly x: "IconX";
235
- readonly "pencil-simple-line": "IconPencil";
236
- readonly search: "IconSearch";
237
- readonly "arrow-up": "IconArrowUp";
238
- readonly question: "IconHelpCircle";
239
- readonly "user-filled": "IconUserFilled";
240
- readonly "caret-up": "IconChevronUp";
241
- readonly "caret-left": "IconChevronLeft";
242
- readonly "caret-right": "IconChevronRight";
243
- readonly "users-group": "IconUsersGroup";
244
- readonly archive: "IconArchive";
245
- readonly folder: "IconFolder";
246
- readonly trash: "IconTrash";
247
- readonly "trash-filled": "IconTrashFilled";
248
- readonly "trash-off": "IconTrashOff";
249
- readonly "trash-x": "IconTrashX";
250
- readonly delete: "IconTrash";
251
- readonly remove: "IconTrashX";
252
- readonly lixeira: "IconTrash";
253
- };
254
- type IconName = keyof typeof legacyIconToTablerNameMap;
255
- declare const iconNames: IconName[];
256
-
257
- declare const iconSizeOptions: readonly ["xs", "sm", "md", "lg", "xl"];
258
- type IconSize = (typeof iconSizeOptions)[number] | number;
259
- declare const iconColorOptions: readonly ["current", "foreground", "muted-foreground", "primary", "primary-foreground", "secondary-foreground", "accent", "accent-foreground", "destructive", "destructive-foreground", "success", "success-foreground", "warning", "warning-foreground", "neutral-50", "neutral-100", "neutral-200", "neutral-600", "neutral-700", "neutral-800", "neutral-900", "tag-navy", "tag-blue", "tag-violet", "tag-magenta", "tag-red", "tag-brick", "tag-sand", "tag-green", "agent-pink", "agent-sky", "agent-lavender", "agent-mint", "agent-green"];
260
- type IconColor = (typeof iconColorOptions)[number];
261
- declare const iconSizeMap: {
262
- readonly xs: 12;
263
- readonly sm: 16;
264
- readonly md: 20;
265
- readonly lg: 24;
266
- readonly xl: 32;
267
- };
268
- type IconBaseProps = Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> & {
269
- decorative?: boolean;
270
- size?: IconSize;
271
- color?: IconColor;
272
- title?: string;
273
- strokeWidth?: number;
274
- };
275
- type IconProps = IconBaseProps & {
276
- name: IconName;
277
- };
278
- declare const Icon: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> & {
279
- decorative?: boolean;
280
- size?: IconSize;
281
- color?: IconColor;
282
- title?: string;
283
- strokeWidth?: number;
284
- } & {
285
- name: IconName;
286
- } & React.RefAttributes<SVGSVGElement>>;
287
-
288
- declare const uploadKindOptions: readonly ["document", "image", "video"];
289
- type UploadKind = (typeof uploadKindOptions)[number];
290
- type InputBaseProps$1 = {
291
- className?: string;
292
- containerClassName?: string;
293
- };
294
- type UploadInputProps = InputBaseProps$1 & Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "defaultValue" | "placeholder" | "type" | "value"> & {
295
- label?: React.ReactNode;
296
- labelClassName?: string;
297
- defaultValue?: never;
298
- onFilesChange?: (files: File[]) => void;
299
- placeholder?: never;
300
- type?: never;
301
- uploadDescription?: React.ReactNode;
302
- uploadKind?: UploadKind;
303
- uploadOptionalLabel?: React.ReactNode;
304
- uploadTitle?: React.ReactNode;
305
- value?: never;
306
- variant: "upload";
307
- };
308
-
309
- declare const inputVariantOptions: readonly ["default", "search", "otp", "upload"];
310
- type InputVariant = (typeof inputVariantOptions)[number];
311
-
312
- type InputBaseProps = {
313
- className?: string;
314
- containerClassName?: string;
315
- };
316
- type DefaultInputProps = InputBaseProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "className"> & {
317
- label?: React.ReactNode;
318
- labelClassName?: string;
319
- variant?: "default";
320
- };
321
- type SearchInputProps = InputBaseProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "className"> & {
322
- label?: never;
323
- labelClassName?: never;
324
- variant: "search";
325
- };
326
- type OtpInputProps = InputBaseProps & Omit<OTPInputProps, "children" | "className" | "containerClassName" | "render" | "type"> & {
327
- label?: never;
328
- labelClassName?: never;
329
- placeholder?: never;
330
- type?: "text";
331
- variant: "otp";
332
- otpGroupClassName?: string;
333
- otpLength?: number;
334
- otpSeparator?: React.ReactNode;
335
- otpSeparatorClassName?: string;
336
- otpSlotClassName?: string;
337
- otpSplitIndex?: number;
338
- };
339
- type InputProps = DefaultInputProps | SearchInputProps | OtpInputProps | UploadInputProps;
340
- /**
341
- * Regras de composicao do Sofya:
342
- * - nao envolver o campo em wrappers decorativos com borda;
343
- * - `containerClassName` deve servir para layout e espacamento;
344
- * - se a tela pedir contexto visual, use uma surface real da interface, nunca uma moldura extra do campo.
345
- */
346
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
347
-
348
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "containerClassName" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
349
- value?: string;
350
- onChange?: (newValue: string) => unknown;
351
- maxLength: number;
352
- textAlign?: "left" | "center" | "right";
353
- onComplete?: (...args: any[]) => unknown;
354
- pushPasswordManagerStrategy?: "increase-width" | "none";
355
- pasteTransformer?: (pasted: string) => string;
356
- containerClassName?: string;
357
- noScriptCSSFallback?: string | null;
358
- } & {
359
- render: (props: input_otp.RenderProps) => React.ReactNode;
360
- children?: never;
361
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "containerClassName" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
362
- value?: string;
363
- onChange?: (newValue: string) => unknown;
364
- maxLength: number;
365
- textAlign?: "left" | "center" | "right";
366
- onComplete?: (...args: any[]) => unknown;
367
- pushPasswordManagerStrategy?: "increase-width" | "none";
368
- pasteTransformer?: (pasted: string) => string;
369
- containerClassName?: string;
370
- noScriptCSSFallback?: string | null;
371
- } & {
372
- render?: never;
373
- children: React.ReactNode;
374
- } & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
375
- declare const InputOTPGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
376
- declare const InputOTPSlot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
377
- index: number;
378
- } & React.RefAttributes<HTMLDivElement>>;
379
- declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
380
-
381
- declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
382
-
383
- declare const linkVariants: (props?: ({
384
- variant?: "default" | "underlined" | null | undefined;
385
- } & class_variance_authority_types.ClassProp) | undefined) => string;
386
- interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
387
- asChild?: boolean;
388
- }
389
- declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
390
-
391
- declare const logoVariants: readonly ["mono", "default", "text", "full"];
392
- type LogoVariant = (typeof logoVariants)[number];
393
- declare const logoSizeOptions: readonly ["sm", "md", "lg", "xl", "2xl"];
394
- type LogoSize = (typeof logoSizeOptions)[number] | number;
395
- interface LogoProps extends Omit<React.SVGProps<SVGSVGElement>, "ref" | "width" | "height"> {
396
- variant?: LogoVariant;
397
- size?: LogoSize;
398
- width?: number;
399
- height?: number;
400
- title?: string;
401
- monoColor?: HexColor;
402
- }
403
- declare const Logo: React.ForwardRefExoticComponent<LogoProps & React.RefAttributes<SVGSVGElement>>;
404
-
405
- declare const paginationLinkVariants: (props?: ({
406
- isActive?: boolean | null | undefined;
407
- size?: "default" | "icon" | null | undefined;
408
- } & class_variance_authority_types.ClassProp) | undefined) => string;
409
- declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
410
- declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
411
- declare function PaginationItem({ className, ...props }: React.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
412
- type PaginationLinkProps = {
413
- asChild?: boolean;
414
- isActive?: boolean;
415
- size?: "default" | "icon";
416
- } & React.ComponentProps<"a">;
417
- declare function PaginationLink({ asChild, className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
418
- declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
419
- text?: string;
420
- }): react_jsx_runtime.JSX.Element;
421
- declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
422
- text?: string;
423
- }): react_jsx_runtime.JSX.Element;
424
- declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
425
-
426
- declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
427
- declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
428
- declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
429
- declare const PopoverPortal: React.FC<PopoverPrimitive.PopoverPortalProps>;
430
- declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
431
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
432
- declare const PopoverTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
433
- declare const PopoverDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
434
-
435
- declare const progressSizeOptions: readonly ["sm", "default", "lg"];
436
- type ProgressSize = (typeof progressSizeOptions)[number];
437
- interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, "max" | "value"> {
438
- indicatorClassName?: string;
439
- max?: number;
440
- size?: ProgressSize;
441
- value?: number | null;
442
- }
443
- declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
444
-
445
- declare const radioGroupOrientationOptions: readonly ["horizontal", "vertical"];
446
- type RadioGroupOrientation = (typeof radioGroupOrientationOptions)[number];
447
- declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
448
- interface RadioGroupItemProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, "children" | "className"> {
449
- className?: string;
450
- controlClassName?: string;
451
- description?: React.ReactNode;
452
- descriptionClassName?: string;
453
- indicatorClassName?: string;
454
- label?: React.ReactNode;
455
- labelClassName?: string;
456
- }
457
- declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
458
-
459
- declare const scrollAreaOrientationOptions: readonly ["horizontal", "vertical"];
460
- type ScrollAreaOrientation = (typeof scrollAreaOrientationOptions)[number];
461
- declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
462
- declare const ScrollAreaViewport: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
463
- interface ScrollAreaScrollbarProps extends Omit<React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Scrollbar>, "children"> {
464
- thumbClassName?: string;
465
- }
466
- declare const ScrollAreaScrollbar: React.ForwardRefExoticComponent<ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>>;
467
- declare const ScrollAreaCorner: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaCornerProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
468
-
469
- declare const selectSizeOptions: readonly ["default", "sm"];
470
- type SelectSize = (typeof selectSizeOptions)[number];
471
- declare const Select: React.FC<SelectPrimitive.SelectProps>;
472
- declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
473
- declare const SelectValue: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
474
- interface SelectTriggerProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
475
- size?: SelectSize;
476
- }
477
- declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
478
- declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
479
- declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
480
- declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
481
- declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
482
- declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
483
- declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
484
-
485
- declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
486
-
487
- interface SliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "max" | "min" | "onChange" | "size" | "step" | "type" | "value"> {
488
- defaultValue?: number;
489
- formatValue?: (value: number) => React.ReactNode;
490
- label?: React.ReactNode;
491
- labelClassName?: string;
492
- max?: number;
493
- min?: number;
494
- onChange?: React.ChangeEventHandler<HTMLInputElement>;
495
- onValueChange?: (value: number) => void;
496
- rangeClassName?: string;
497
- sliderClassName?: string;
498
- showValue?: boolean;
499
- step?: number;
500
- thumbSize?: number | string;
501
- thumbClassName?: string;
502
- trackClassName?: string;
503
- trackSize?: number | string;
504
- value?: number;
505
- valueClassName?: string;
506
- }
507
- declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
508
-
509
- interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
510
- }
511
- declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
512
-
513
- declare const notificationVariantOptions: readonly ["default", "success", "error", "warning"];
514
- type NotificationVariant = (typeof notificationVariantOptions)[number];
515
- type ToasterProps = ToasterProps$1;
516
-
517
- declare const Toaster: React.ForwardRefExoticComponent<ToasterProps$1 & React.RefAttributes<HTMLElement>>;
518
-
519
- declare const spinnerSizeOptions: readonly ["sm", "default", "lg"];
520
- type SpinnerSize = (typeof spinnerSizeOptions)[number];
521
- interface SpinnerProps extends Omit<React.ComponentPropsWithoutRef<"svg">, "children"> {
522
- size?: SpinnerSize;
523
- }
524
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<SVGSVGElement>>;
525
-
526
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
527
-
528
- declare const tableCellVariantOptions: readonly ["default", "primary", "muted"];
529
- declare const tableStatusToneOptions: readonly ["active", "inactive", "warning"];
530
- declare const tableActionToneOptions: readonly ["primary", "neutral", "danger"];
531
- declare const tableCellVariants: (props?: ({
532
- variant?: "default" | "primary" | "muted" | null | undefined;
533
- } & class_variance_authority_types.ClassProp) | undefined) => string;
534
- declare const tableStatusBadgeVariants: (props?: ({
535
- tone?: "warning" | "active" | "inactive" | null | undefined;
536
- } & class_variance_authority_types.ClassProp) | undefined) => string;
537
- declare const tableActionButtonVariants: (props?: ({
538
- tone?: "primary" | "neutral" | "danger" | null | undefined;
539
- } & class_variance_authority_types.ClassProp) | undefined) => string;
540
- declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
541
- declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
542
- declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
543
- declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
544
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
545
- declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
546
- interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement>, VariantProps<typeof tableCellVariants> {
547
- }
548
- declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
549
- declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
550
- interface TableStatusBadgeProps extends Omit<React.ComponentPropsWithoutRef<typeof Badge>, "variant" | "pillTone">, VariantProps<typeof tableStatusBadgeVariants> {
551
- }
552
- declare function TableStatusBadge({ className, tone, children, ...props }: TableStatusBadgeProps): react_jsx_runtime.JSX.Element;
553
- interface TableActionButtonProps extends Omit<React.ComponentPropsWithoutRef<typeof Button>, "size" | "variant">, VariantProps<typeof tableActionButtonVariants> {
554
- }
555
- declare const TableActionButton: React.ForwardRefExoticComponent<TableActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
556
- declare const TableActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
557
-
558
- interface TabsItem {
559
- value: string;
560
- label: React.ReactNode;
561
- content?: React.ReactNode;
562
- contentClassName?: string;
563
- disabled?: boolean;
564
- loading?: boolean;
565
- triggerClassName?: string;
566
- }
567
- interface TabsProps extends Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>, "children" | "defaultValue" | "value" | "onValueChange"> {
568
- contentClassName?: string;
569
- defaultValue?: string;
570
- items: readonly TabsItem[];
571
- listClassName?: string;
572
- onValueChange?: (value: string) => void;
573
- triggerClassName?: string;
574
- value?: string;
575
- }
576
- declare function Tabs({ className, contentClassName, defaultValue, items, listClassName, onValueChange, triggerClassName, value, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
577
- declare namespace Tabs {
578
- var displayName: string;
579
- }
580
-
581
- interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "className"> {
582
- className?: string;
583
- containerClassName?: string;
584
- label?: React.ReactNode;
585
- labelClassName?: string;
586
- }
587
- declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
588
-
589
- type TextSize = "h1" | "h2" | "h3" | "h4" | "h5" | "body" | "tiny";
590
- type TextVariant = "default" | "gradient" | "shiny" | "split";
591
- type TextSplitType = "chars" | "words" | "words, chars";
592
- declare const textSizeOptions: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny"];
593
- declare const textVariantOptions: readonly ["default", "gradient", "shiny", "split"];
594
- declare const textSplitTypeOptions: readonly ["chars", "words", "words, chars"];
595
- interface TextProps extends React.HTMLAttributes<HTMLElement> {
596
- as?: React.ElementType;
597
- onSplitAnimationComplete?: () => void;
598
- size?: TextSize;
599
- splitDelay?: number;
600
- splitRootMargin?: string;
601
- splitThreshold?: number;
602
- splitType?: TextSplitType;
603
- variant?: TextVariant;
604
- }
605
- declare function isTextContent(children: React.ReactNode): children is string | number;
606
- type RenderTextContentOptions = Pick<TextProps, "as" | "className" | "size" | "style" | "variant">;
607
- declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
608
- declare function renderTextContent(children: React.ReactNode, { as, className, size, style, variant }?: RenderTextContentOptions): bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
609
-
610
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
611
- declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
612
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
613
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
614
-
615
- interface SofyaProviderProps extends React.HTMLAttributes<HTMLDivElement> {
616
- preset?: ThemePresetName | SofyaTheme;
617
- overrides?: DeepPartial<SofyaTheme>;
618
- }
619
- declare function SofyaProvider({ preset, overrides, className, style, children, ...props }: SofyaProviderProps): react_jsx_runtime.JSX.Element;
620
-
621
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, type AlertSize, AlertTitle, type AlertTone, Avatar, type AvatarProps, Badge, type BadgeAlert, type BadgePillTone, type BadgeProps, type BadgeVariant, Button, type ButtonLanguageLocale, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Dialog, DialogCancel, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownItem, type DropdownProps, type DropdownVariant, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyTitle, Icon, type IconColor, type IconName, type IconProps, type IconSize, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, type InputVariant, Label, Link, type LinkProps, Logo, type LogoProps, type LogoSize, type LogoVariant, type NotificationVariant, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverPortal, PopoverTitle, PopoverTrigger, Progress, type ProgressProps, type ProgressSize, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOrientation, ScrollArea, ScrollAreaCorner, type ScrollAreaOrientation, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaViewport, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, type SelectSize, SelectTrigger, SelectValue, Separator, Skeleton, type SkeletonProps, Slider, type SliderProps, SofyaProvider, type SofyaProviderProps, Spinner, type SpinnerProps, type SpinnerSize, Surface, type SurfaceVariant, Switch, Table, TableActionButton, type TableActionButtonProps, TableActions, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableHead, TableHeader, TableRow, TableStatusBadge, type TableStatusBadgeProps, Tabs, type TabsItem, type TabsProps, Text, type TextProps, type TextSize, type TextSplitType, type TextVariant, Textarea, type TextareaProps, Toaster, type ToasterProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadKind, alertSizeOptions, alertToneOptions, avatarSizeOptions, avatarVariants, badgeAlertOptions, badgeAlertVariants, badgePillToneOptions, badgePillVariants, badgeVariantOptions, badgeVariants, buttonLanguageLocaleOptions, buttonSizeOptions, buttonVariantOptions, buttonVariants, cardVariants, dropdownLanguageItems, dropdownVariantOptions, emptyMediaVariantOptions, iconColorOptions, iconNames, iconSizeMap, iconSizeOptions, inputVariantOptions, isTextContent, logoSizeOptions, logoVariants, notificationVariantOptions, paginationLinkVariants, progressSizeOptions, radioGroupOrientationOptions, renderTextContent, scrollAreaOrientationOptions, selectSizeOptions, spinnerSizeOptions, tableActionToneOptions, tableCellVariantOptions, tableStatusToneOptions, textSizeOptions, textSplitTypeOptions, textVariantOptions, uploadKindOptions };