@sofya-ds/react 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/dist/index.cjs +660 -295
- package/dist/index.css +1 -1
- package/dist/index.d.cts +69 -10
- package/dist/index.d.ts +69 -10
- package/dist/index.js +634 -277
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,13 +3,13 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import { SofyaSurfaceName, SofyaGapName, SofyaMeasureName, HexColor, SofyaTextStyleName, ThemePresetName, SofyaTheme, DeepPartial } from '@sofya-ds/tokens';
|
|
7
|
+
export { DeepPartial, HexColor, SofyaBrandPalette, SofyaColorPalette, SofyaColorScale, SofyaControlSizeScale, SofyaGapName, SofyaGradientToken, SofyaIconButtonSizeScale, SofyaLayoutSizeScale, SofyaMeasureName, SofyaRadiusScale, SofyaResolvedSurfaceToken, SofyaResolvedTextStyle, SofyaRhythmName, SofyaShadowScale, SofyaSpaceName, SofyaSpacingScale, SofyaSurfaceName, SofyaSurfaceScale, SofyaSurfaceToken, SofyaTextStyle, SofyaTextStyleName, SofyaTextStyleScale, SofyaTheme, ThemePresetName, brandPaletteToCssVariables, createWhitelabelTheme, defaultTheme, gradientToCss, hexToHslChannels, mergeTheme, resolveSurfaceToken, resolveTextStyle, resolveTheme, sofyaBrandPalette, sofyaColorPalette, sofyaGapNames, sofyaMeasureNames, sofyaRhythmNames, sofyaSemanticColorHex, sofyaSpaceNames, sofyaSurfaceNames, sofyaTextStyleNames, themePresetNames, themePresets, themeToCssVariables } from '@sofya-ds/tokens';
|
|
6
8
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
10
|
import * as input_otp from 'input-otp';
|
|
9
11
|
import { OTPInputProps } from 'input-otp';
|
|
10
12
|
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
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
14
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
15
15
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
@@ -98,7 +98,7 @@ declare const buttonVariantOptions: readonly ["default", "gradient", "dropdown",
|
|
|
98
98
|
declare const buttonSizeOptions: readonly ["default", "sm", "lg", "icon"];
|
|
99
99
|
|
|
100
100
|
declare const buttonVariants: (props?: ({
|
|
101
|
-
variant?: "default" | "destructive" | "icon" | "
|
|
101
|
+
variant?: "default" | "destructive" | "icon" | "secondary" | "gradient" | "outline" | "dropdown" | "language" | "ghost" | null | undefined;
|
|
102
102
|
size?: "sm" | "default" | "lg" | "icon" | null | undefined;
|
|
103
103
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
104
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -111,7 +111,8 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
111
111
|
}
|
|
112
112
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
113
113
|
|
|
114
|
-
type SurfaceVariant =
|
|
114
|
+
type SurfaceVariant = SofyaSurfaceName;
|
|
115
|
+
declare const surfaceVariantOptions: readonly ["appBackground", "auth", "card", "dataTable", "dialog", "documentCard", "documentCardSelected", "focus", "mainContent", "panel", "proseDialog", "rightPanel", "sidebar"];
|
|
115
116
|
type SurfaceBaseProps = {
|
|
116
117
|
variant?: SurfaceVariant;
|
|
117
118
|
asChild?: boolean;
|
|
@@ -216,11 +217,16 @@ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.Dia
|
|
|
216
217
|
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
217
218
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
218
219
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
type DialogCardStyle = React.CSSProperties & {
|
|
221
|
+
"--sofya-surface-shadow-override"?: string;
|
|
222
|
+
};
|
|
219
223
|
interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
220
224
|
cardClassName?: string;
|
|
225
|
+
cardStyle?: DialogCardStyle;
|
|
221
226
|
overlayClassName?: string;
|
|
222
227
|
showCloseButton?: boolean;
|
|
223
|
-
|
|
228
|
+
surfaceShadow?: string;
|
|
229
|
+
variant?: SurfaceVariant;
|
|
224
230
|
}
|
|
225
231
|
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
226
232
|
declare function DialogHeader({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -231,6 +237,16 @@ declare const DialogCancel: React.ForwardRefExoticComponent<DialogDismissButtonP
|
|
|
231
237
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
232
238
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
233
239
|
|
|
240
|
+
interface DocumentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
241
|
+
actions?: React.ReactNode;
|
|
242
|
+
description?: React.ReactNode;
|
|
243
|
+
leading?: React.ReactNode;
|
|
244
|
+
meta?: React.ReactNode;
|
|
245
|
+
selected?: boolean;
|
|
246
|
+
title: React.ReactNode;
|
|
247
|
+
}
|
|
248
|
+
declare const DocumentCard: React.ForwardRefExoticComponent<DocumentCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
249
|
+
|
|
234
250
|
declare const emptyMediaVariantOptions: readonly ["default", "icon"];
|
|
235
251
|
declare const emptyMediaVariants: (props?: ({
|
|
236
252
|
variant?: "default" | "icon" | null | undefined;
|
|
@@ -291,7 +307,9 @@ declare const legacyIconToTablerNameMap: {
|
|
|
291
307
|
readonly "caret-up": "IconChevronUp";
|
|
292
308
|
readonly "caret-left": "IconChevronLeft";
|
|
293
309
|
readonly "caret-right": "IconChevronRight";
|
|
310
|
+
readonly copy: "IconCopy";
|
|
294
311
|
readonly logout: "IconLogout";
|
|
312
|
+
readonly star: "IconStar";
|
|
295
313
|
readonly "users-group": "IconUsersGroup";
|
|
296
314
|
readonly archive: "IconArchive";
|
|
297
315
|
readonly folder: "IconFolder";
|
|
@@ -436,6 +454,27 @@ declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttri
|
|
|
436
454
|
|
|
437
455
|
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
|
438
456
|
|
|
457
|
+
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
|
458
|
+
interface GapProps {
|
|
459
|
+
gap?: SofyaGapName;
|
|
460
|
+
}
|
|
461
|
+
interface StackProps extends DivProps, GapProps {
|
|
462
|
+
}
|
|
463
|
+
interface ClusterProps extends DivProps, GapProps {
|
|
464
|
+
align?: "start" | "center" | "end" | "stretch";
|
|
465
|
+
justify?: "start" | "center" | "between" | "end";
|
|
466
|
+
}
|
|
467
|
+
interface InlineProps extends DivProps, GapProps {
|
|
468
|
+
align?: "start" | "center" | "end" | "stretch";
|
|
469
|
+
}
|
|
470
|
+
interface ContainerProps extends DivProps {
|
|
471
|
+
measure?: SofyaMeasureName | "none";
|
|
472
|
+
}
|
|
473
|
+
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
474
|
+
declare const Cluster: React.ForwardRefExoticComponent<ClusterProps & React.RefAttributes<HTMLDivElement>>;
|
|
475
|
+
declare const Inline: React.ForwardRefExoticComponent<InlineProps & React.RefAttributes<HTMLDivElement>>;
|
|
476
|
+
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
477
|
+
|
|
439
478
|
declare const linkVariants: (props?: ({
|
|
440
479
|
variant?: "default" | "underlined" | null | undefined;
|
|
441
480
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -488,6 +527,17 @@ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimit
|
|
|
488
527
|
declare const PopoverTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
489
528
|
declare const PopoverDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
490
529
|
|
|
530
|
+
interface ProseDialogContentProps extends DialogContentProps {
|
|
531
|
+
}
|
|
532
|
+
declare const ProseDialogContent: React.ForwardRefExoticComponent<ProseDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
533
|
+
declare function ProseDialogHeader(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
534
|
+
declare namespace ProseDialogHeader {
|
|
535
|
+
var displayName: string;
|
|
536
|
+
}
|
|
537
|
+
declare const ProseDialogTitle: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
538
|
+
declare const ProseDialogDescription: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
539
|
+
declare const ProseDialogBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
540
|
+
|
|
491
541
|
declare const progressSizeOptions: readonly ["sm", "default", "lg"];
|
|
492
542
|
type ProgressSize = (typeof progressSizeOptions)[number];
|
|
493
543
|
interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, "max" | "value"> {
|
|
@@ -549,6 +599,13 @@ type RadioGroupComponent = typeof RadioGroupRoot & {
|
|
|
549
599
|
};
|
|
550
600
|
declare const RadioGroup: RadioGroupComponent;
|
|
551
601
|
|
|
602
|
+
interface RightRailActionProps extends Omit<ButtonProps, "aria-label" | "children" | "leftIcon" | "rightIcon" | "size" | "variant"> {
|
|
603
|
+
"aria-label": string;
|
|
604
|
+
active?: boolean;
|
|
605
|
+
icon: React.ReactNode;
|
|
606
|
+
}
|
|
607
|
+
declare const RightRailAction: React.ForwardRefExoticComponent<RightRailActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
608
|
+
|
|
552
609
|
declare const scrollAreaOrientationOptions: readonly ["horizontal", "vertical"];
|
|
553
610
|
type ScrollAreaOrientation = (typeof scrollAreaOrientationOptions)[number];
|
|
554
611
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -629,13 +686,13 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
|
|
|
629
686
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
630
687
|
|
|
631
688
|
declare const tableCellVariantOptions: readonly ["default", "primary", "muted"];
|
|
632
|
-
declare const tableStatusToneOptions: readonly ["active", "inactive", "warning"];
|
|
689
|
+
declare const tableStatusToneOptions: readonly ["active", "inactive", "info", "warning"];
|
|
633
690
|
declare const tableActionToneOptions: readonly ["primary", "neutral", "danger"];
|
|
634
691
|
declare const tableCellVariants: (props?: ({
|
|
635
692
|
variant?: "default" | "primary" | "muted" | null | undefined;
|
|
636
693
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
637
694
|
declare const tableStatusBadgeVariants: (props?: ({
|
|
638
|
-
tone?: "warning" | "active" | "inactive" | null | undefined;
|
|
695
|
+
tone?: "warning" | "active" | "inactive" | "info" | null | undefined;
|
|
639
696
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
640
697
|
declare const tableActionButtonVariants: (props?: ({
|
|
641
698
|
tone?: "primary" | "neutral" | "danger" | null | undefined;
|
|
@@ -652,6 +709,8 @@ interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement>, V
|
|
|
652
709
|
}
|
|
653
710
|
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
654
711
|
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
712
|
+
declare const TableCellTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
713
|
+
declare const TableCellDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
655
714
|
interface TableStatusBadgeProps extends Omit<React.ComponentPropsWithoutRef<typeof Badge>, "variant" | "pillTone">, VariantProps<typeof tableStatusBadgeVariants> {
|
|
656
715
|
}
|
|
657
716
|
declare function TableStatusBadge({ className, tone, children, ...props }: TableStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
@@ -691,11 +750,11 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
691
750
|
}
|
|
692
751
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
693
752
|
|
|
694
|
-
type TextSize =
|
|
753
|
+
type TextSize = SofyaTextStyleName;
|
|
695
754
|
type TextWeight = React.CSSProperties["fontWeight"];
|
|
696
755
|
type TextVariant = "default" | "gradient" | "shiny" | "split";
|
|
697
756
|
type TextSplitType = "chars" | "words" | "words, chars";
|
|
698
|
-
declare const textSizeOptions: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny", "extra-tiny"];
|
|
757
|
+
declare const textSizeOptions: readonly ["display-xl", "display-lg", "heading-xl", "heading-lg", "heading-md", "h1", "h2", "h3", "h4", "h5", "encounter-title", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body", "label-md", "section-label", "eyebrow-md", "overline-md", "sidebar-title", "sidebar-title-regular", "sidebar-title-strong", "sidebar-label", "sidebar-label-strong", "sidebar-body", "sidebar-tag", "encounter-chip", "encounter-history", "caption", "eyebrow", "tiny", "extra-tiny", "code-sm"];
|
|
699
758
|
declare const textVariantOptions: readonly ["default", "gradient", "shiny", "split"];
|
|
700
759
|
declare const textSplitTypeOptions: readonly ["chars", "words", "words, chars"];
|
|
701
760
|
interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -734,4 +793,4 @@ interface SofyaProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
734
793
|
}
|
|
735
794
|
declare function SofyaProvider({ preset, overrides, className, style, children, ...props }: SofyaProviderProps): react_jsx_runtime.JSX.Element;
|
|
736
795
|
|
|
737
|
-
export { Accordion, type AccordionAppearance, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionProps, 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, DialogBody, DialogCancel, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownAppearance, type DropdownItem, type DropdownProps, DropdownSearch, type DropdownSearchOption, type DropdownSearchProps, type DropdownSubItem, type DropdownTriggerSize, 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, RadioGroupOption, RadioGroupOptionAvatar, type RadioGroupOptionAvatarProps, RadioGroupOptionDescription, type RadioGroupOptionDescriptionProps, RadioGroupOptionIndicator, type RadioGroupOptionIndicatorProps, RadioGroupOptionLabel, type RadioGroupOptionLabelProps, type RadioGroupOptionProps, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupVariant, 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, type SwitchProps, type SwitchSize, 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, type TextWeight, Textarea, type TextareaProps, Toaster, type ToasterProps, Toggle, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadKind, accordionAppearanceOptions, alertSizeOptions, alertToneOptions, avatarSizeOptions, avatarVariants, badgeAlertOptions, badgeAlertVariants, badgePillToneOptions, badgePillVariants, badgeVariantOptions, badgeVariants, buttonLanguageLocaleOptions, buttonSizeOptions, buttonVariantOptions, buttonVariants, cardVariants, dropdownAppearanceOptions, dropdownLanguageItems, dropdownTriggerSizeOptions, dropdownVariantOptions, emptyMediaVariantOptions, iconColorOptions, iconNames, iconSizeMap, iconSizeOptions, inputVariantOptions, isTextContent, logoSizeOptions, logoVariants, notificationVariantOptions, paginationLinkVariants, progressSizeOptions, radioGroupOrientationOptions, radioGroupVariantOptions, renderTextContent, scrollAreaOrientationOptions, selectSizeOptions, spinnerSizeOptions, switchSizeOptions, tableActionToneOptions, tableCellVariantOptions, tableStatusToneOptions, textSizeOptions, textSplitTypeOptions, textVariantOptions, uploadKindOptions };
|
|
796
|
+
export { Accordion, type AccordionAppearance, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionProps, 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, Cluster, type ClusterProps, Container, type ContainerProps, Dialog, DialogBody, DialogCancel, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DocumentCard, type DocumentCardProps, Dropdown, type DropdownAppearance, type DropdownItem, type DropdownProps, DropdownSearch, type DropdownSearchOption, type DropdownSearchProps, type DropdownSubItem, type DropdownTriggerSize, type DropdownVariant, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyTitle, Icon, type IconColor, type IconName, type IconProps, type IconSize, Inline, type InlineProps, 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, ProseDialogBody, ProseDialogContent, type ProseDialogContentProps, ProseDialogDescription, ProseDialogHeader, ProseDialogTitle, RadioGroup, RadioGroupItem, type RadioGroupItemProps, RadioGroupOption, RadioGroupOptionAvatar, type RadioGroupOptionAvatarProps, RadioGroupOptionDescription, type RadioGroupOptionDescriptionProps, RadioGroupOptionIndicator, type RadioGroupOptionIndicatorProps, RadioGroupOptionLabel, type RadioGroupOptionLabelProps, type RadioGroupOptionProps, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupVariant, RightRailAction, type RightRailActionProps, 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, Stack, type StackProps, Surface, type SurfaceVariant, Switch, type SwitchProps, type SwitchSize, Table, TableActionButton, type TableActionButtonProps, TableActions, TableBody, TableCaption, TableCell, TableCellDescription, type TableCellProps, TableCellTitle, TableFooter, TableHead, TableHeader, TableRow, TableStatusBadge, type TableStatusBadgeProps, Tabs, type TabsItem, type TabsProps, Text, type TextProps, type TextSize, type TextSplitType, type TextVariant, type TextWeight, Textarea, type TextareaProps, Toaster, type ToasterProps, Toggle, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadKind, accordionAppearanceOptions, alertSizeOptions, alertToneOptions, avatarSizeOptions, avatarVariants, badgeAlertOptions, badgeAlertVariants, badgePillToneOptions, badgePillVariants, badgeVariantOptions, badgeVariants, buttonLanguageLocaleOptions, buttonSizeOptions, buttonVariantOptions, buttonVariants, cardVariants, dropdownAppearanceOptions, dropdownLanguageItems, dropdownTriggerSizeOptions, dropdownVariantOptions, emptyMediaVariantOptions, iconColorOptions, iconNames, iconSizeMap, iconSizeOptions, inputVariantOptions, isTextContent, logoSizeOptions, logoVariants, notificationVariantOptions, paginationLinkVariants, progressSizeOptions, radioGroupOrientationOptions, radioGroupVariantOptions, renderTextContent, scrollAreaOrientationOptions, selectSizeOptions, spinnerSizeOptions, surfaceVariantOptions, switchSizeOptions, tableActionToneOptions, tableCellVariantOptions, tableStatusToneOptions, textSizeOptions, textSplitTypeOptions, textVariantOptions, uploadKindOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import { SofyaSurfaceName, SofyaGapName, SofyaMeasureName, HexColor, SofyaTextStyleName, ThemePresetName, SofyaTheme, DeepPartial } from '@sofya-ds/tokens';
|
|
7
|
+
export { DeepPartial, HexColor, SofyaBrandPalette, SofyaColorPalette, SofyaColorScale, SofyaControlSizeScale, SofyaGapName, SofyaGradientToken, SofyaIconButtonSizeScale, SofyaLayoutSizeScale, SofyaMeasureName, SofyaRadiusScale, SofyaResolvedSurfaceToken, SofyaResolvedTextStyle, SofyaRhythmName, SofyaShadowScale, SofyaSpaceName, SofyaSpacingScale, SofyaSurfaceName, SofyaSurfaceScale, SofyaSurfaceToken, SofyaTextStyle, SofyaTextStyleName, SofyaTextStyleScale, SofyaTheme, ThemePresetName, brandPaletteToCssVariables, createWhitelabelTheme, defaultTheme, gradientToCss, hexToHslChannels, mergeTheme, resolveSurfaceToken, resolveTextStyle, resolveTheme, sofyaBrandPalette, sofyaColorPalette, sofyaGapNames, sofyaMeasureNames, sofyaRhythmNames, sofyaSemanticColorHex, sofyaSpaceNames, sofyaSurfaceNames, sofyaTextStyleNames, themePresetNames, themePresets, themeToCssVariables } from '@sofya-ds/tokens';
|
|
6
8
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
10
|
import * as input_otp from 'input-otp';
|
|
9
11
|
import { OTPInputProps } from 'input-otp';
|
|
10
12
|
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
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
14
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
15
15
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
@@ -98,7 +98,7 @@ declare const buttonVariantOptions: readonly ["default", "gradient", "dropdown",
|
|
|
98
98
|
declare const buttonSizeOptions: readonly ["default", "sm", "lg", "icon"];
|
|
99
99
|
|
|
100
100
|
declare const buttonVariants: (props?: ({
|
|
101
|
-
variant?: "default" | "destructive" | "icon" | "
|
|
101
|
+
variant?: "default" | "destructive" | "icon" | "secondary" | "gradient" | "outline" | "dropdown" | "language" | "ghost" | null | undefined;
|
|
102
102
|
size?: "sm" | "default" | "lg" | "icon" | null | undefined;
|
|
103
103
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
104
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -111,7 +111,8 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
111
111
|
}
|
|
112
112
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
113
113
|
|
|
114
|
-
type SurfaceVariant =
|
|
114
|
+
type SurfaceVariant = SofyaSurfaceName;
|
|
115
|
+
declare const surfaceVariantOptions: readonly ["appBackground", "auth", "card", "dataTable", "dialog", "documentCard", "documentCardSelected", "focus", "mainContent", "panel", "proseDialog", "rightPanel", "sidebar"];
|
|
115
116
|
type SurfaceBaseProps = {
|
|
116
117
|
variant?: SurfaceVariant;
|
|
117
118
|
asChild?: boolean;
|
|
@@ -216,11 +217,16 @@ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.Dia
|
|
|
216
217
|
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
217
218
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
218
219
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
type DialogCardStyle = React.CSSProperties & {
|
|
221
|
+
"--sofya-surface-shadow-override"?: string;
|
|
222
|
+
};
|
|
219
223
|
interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
220
224
|
cardClassName?: string;
|
|
225
|
+
cardStyle?: DialogCardStyle;
|
|
221
226
|
overlayClassName?: string;
|
|
222
227
|
showCloseButton?: boolean;
|
|
223
|
-
|
|
228
|
+
surfaceShadow?: string;
|
|
229
|
+
variant?: SurfaceVariant;
|
|
224
230
|
}
|
|
225
231
|
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
226
232
|
declare function DialogHeader({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
@@ -231,6 +237,16 @@ declare const DialogCancel: React.ForwardRefExoticComponent<DialogDismissButtonP
|
|
|
231
237
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
232
238
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
233
239
|
|
|
240
|
+
interface DocumentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
241
|
+
actions?: React.ReactNode;
|
|
242
|
+
description?: React.ReactNode;
|
|
243
|
+
leading?: React.ReactNode;
|
|
244
|
+
meta?: React.ReactNode;
|
|
245
|
+
selected?: boolean;
|
|
246
|
+
title: React.ReactNode;
|
|
247
|
+
}
|
|
248
|
+
declare const DocumentCard: React.ForwardRefExoticComponent<DocumentCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
249
|
+
|
|
234
250
|
declare const emptyMediaVariantOptions: readonly ["default", "icon"];
|
|
235
251
|
declare const emptyMediaVariants: (props?: ({
|
|
236
252
|
variant?: "default" | "icon" | null | undefined;
|
|
@@ -291,7 +307,9 @@ declare const legacyIconToTablerNameMap: {
|
|
|
291
307
|
readonly "caret-up": "IconChevronUp";
|
|
292
308
|
readonly "caret-left": "IconChevronLeft";
|
|
293
309
|
readonly "caret-right": "IconChevronRight";
|
|
310
|
+
readonly copy: "IconCopy";
|
|
294
311
|
readonly logout: "IconLogout";
|
|
312
|
+
readonly star: "IconStar";
|
|
295
313
|
readonly "users-group": "IconUsersGroup";
|
|
296
314
|
readonly archive: "IconArchive";
|
|
297
315
|
readonly folder: "IconFolder";
|
|
@@ -436,6 +454,27 @@ declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttri
|
|
|
436
454
|
|
|
437
455
|
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
|
438
456
|
|
|
457
|
+
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
|
458
|
+
interface GapProps {
|
|
459
|
+
gap?: SofyaGapName;
|
|
460
|
+
}
|
|
461
|
+
interface StackProps extends DivProps, GapProps {
|
|
462
|
+
}
|
|
463
|
+
interface ClusterProps extends DivProps, GapProps {
|
|
464
|
+
align?: "start" | "center" | "end" | "stretch";
|
|
465
|
+
justify?: "start" | "center" | "between" | "end";
|
|
466
|
+
}
|
|
467
|
+
interface InlineProps extends DivProps, GapProps {
|
|
468
|
+
align?: "start" | "center" | "end" | "stretch";
|
|
469
|
+
}
|
|
470
|
+
interface ContainerProps extends DivProps {
|
|
471
|
+
measure?: SofyaMeasureName | "none";
|
|
472
|
+
}
|
|
473
|
+
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
474
|
+
declare const Cluster: React.ForwardRefExoticComponent<ClusterProps & React.RefAttributes<HTMLDivElement>>;
|
|
475
|
+
declare const Inline: React.ForwardRefExoticComponent<InlineProps & React.RefAttributes<HTMLDivElement>>;
|
|
476
|
+
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
477
|
+
|
|
439
478
|
declare const linkVariants: (props?: ({
|
|
440
479
|
variant?: "default" | "underlined" | null | undefined;
|
|
441
480
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -488,6 +527,17 @@ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimit
|
|
|
488
527
|
declare const PopoverTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
489
528
|
declare const PopoverDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
490
529
|
|
|
530
|
+
interface ProseDialogContentProps extends DialogContentProps {
|
|
531
|
+
}
|
|
532
|
+
declare const ProseDialogContent: React.ForwardRefExoticComponent<ProseDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
533
|
+
declare function ProseDialogHeader(props: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
534
|
+
declare namespace ProseDialogHeader {
|
|
535
|
+
var displayName: string;
|
|
536
|
+
}
|
|
537
|
+
declare const ProseDialogTitle: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
538
|
+
declare const ProseDialogDescription: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
539
|
+
declare const ProseDialogBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
540
|
+
|
|
491
541
|
declare const progressSizeOptions: readonly ["sm", "default", "lg"];
|
|
492
542
|
type ProgressSize = (typeof progressSizeOptions)[number];
|
|
493
543
|
interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, "max" | "value"> {
|
|
@@ -549,6 +599,13 @@ type RadioGroupComponent = typeof RadioGroupRoot & {
|
|
|
549
599
|
};
|
|
550
600
|
declare const RadioGroup: RadioGroupComponent;
|
|
551
601
|
|
|
602
|
+
interface RightRailActionProps extends Omit<ButtonProps, "aria-label" | "children" | "leftIcon" | "rightIcon" | "size" | "variant"> {
|
|
603
|
+
"aria-label": string;
|
|
604
|
+
active?: boolean;
|
|
605
|
+
icon: React.ReactNode;
|
|
606
|
+
}
|
|
607
|
+
declare const RightRailAction: React.ForwardRefExoticComponent<RightRailActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
608
|
+
|
|
552
609
|
declare const scrollAreaOrientationOptions: readonly ["horizontal", "vertical"];
|
|
553
610
|
type ScrollAreaOrientation = (typeof scrollAreaOrientationOptions)[number];
|
|
554
611
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -629,13 +686,13 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
|
|
|
629
686
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
630
687
|
|
|
631
688
|
declare const tableCellVariantOptions: readonly ["default", "primary", "muted"];
|
|
632
|
-
declare const tableStatusToneOptions: readonly ["active", "inactive", "warning"];
|
|
689
|
+
declare const tableStatusToneOptions: readonly ["active", "inactive", "info", "warning"];
|
|
633
690
|
declare const tableActionToneOptions: readonly ["primary", "neutral", "danger"];
|
|
634
691
|
declare const tableCellVariants: (props?: ({
|
|
635
692
|
variant?: "default" | "primary" | "muted" | null | undefined;
|
|
636
693
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
637
694
|
declare const tableStatusBadgeVariants: (props?: ({
|
|
638
|
-
tone?: "warning" | "active" | "inactive" | null | undefined;
|
|
695
|
+
tone?: "warning" | "active" | "inactive" | "info" | null | undefined;
|
|
639
696
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
640
697
|
declare const tableActionButtonVariants: (props?: ({
|
|
641
698
|
tone?: "primary" | "neutral" | "danger" | null | undefined;
|
|
@@ -652,6 +709,8 @@ interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement>, V
|
|
|
652
709
|
}
|
|
653
710
|
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
654
711
|
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
712
|
+
declare const TableCellTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
713
|
+
declare const TableCellDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
655
714
|
interface TableStatusBadgeProps extends Omit<React.ComponentPropsWithoutRef<typeof Badge>, "variant" | "pillTone">, VariantProps<typeof tableStatusBadgeVariants> {
|
|
656
715
|
}
|
|
657
716
|
declare function TableStatusBadge({ className, tone, children, ...props }: TableStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
@@ -691,11 +750,11 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
691
750
|
}
|
|
692
751
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
693
752
|
|
|
694
|
-
type TextSize =
|
|
753
|
+
type TextSize = SofyaTextStyleName;
|
|
695
754
|
type TextWeight = React.CSSProperties["fontWeight"];
|
|
696
755
|
type TextVariant = "default" | "gradient" | "shiny" | "split";
|
|
697
756
|
type TextSplitType = "chars" | "words" | "words, chars";
|
|
698
|
-
declare const textSizeOptions: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny", "extra-tiny"];
|
|
757
|
+
declare const textSizeOptions: readonly ["display-xl", "display-lg", "heading-xl", "heading-lg", "heading-md", "h1", "h2", "h3", "h4", "h5", "encounter-title", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body", "label-md", "section-label", "eyebrow-md", "overline-md", "sidebar-title", "sidebar-title-regular", "sidebar-title-strong", "sidebar-label", "sidebar-label-strong", "sidebar-body", "sidebar-tag", "encounter-chip", "encounter-history", "caption", "eyebrow", "tiny", "extra-tiny", "code-sm"];
|
|
699
758
|
declare const textVariantOptions: readonly ["default", "gradient", "shiny", "split"];
|
|
700
759
|
declare const textSplitTypeOptions: readonly ["chars", "words", "words, chars"];
|
|
701
760
|
interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -734,4 +793,4 @@ interface SofyaProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
734
793
|
}
|
|
735
794
|
declare function SofyaProvider({ preset, overrides, className, style, children, ...props }: SofyaProviderProps): react_jsx_runtime.JSX.Element;
|
|
736
795
|
|
|
737
|
-
export { Accordion, type AccordionAppearance, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionProps, 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, DialogBody, DialogCancel, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dropdown, type DropdownAppearance, type DropdownItem, type DropdownProps, DropdownSearch, type DropdownSearchOption, type DropdownSearchProps, type DropdownSubItem, type DropdownTriggerSize, 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, RadioGroupOption, RadioGroupOptionAvatar, type RadioGroupOptionAvatarProps, RadioGroupOptionDescription, type RadioGroupOptionDescriptionProps, RadioGroupOptionIndicator, type RadioGroupOptionIndicatorProps, RadioGroupOptionLabel, type RadioGroupOptionLabelProps, type RadioGroupOptionProps, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupVariant, 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, type SwitchProps, type SwitchSize, 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, type TextWeight, Textarea, type TextareaProps, Toaster, type ToasterProps, Toggle, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadKind, accordionAppearanceOptions, alertSizeOptions, alertToneOptions, avatarSizeOptions, avatarVariants, badgeAlertOptions, badgeAlertVariants, badgePillToneOptions, badgePillVariants, badgeVariantOptions, badgeVariants, buttonLanguageLocaleOptions, buttonSizeOptions, buttonVariantOptions, buttonVariants, cardVariants, dropdownAppearanceOptions, dropdownLanguageItems, dropdownTriggerSizeOptions, dropdownVariantOptions, emptyMediaVariantOptions, iconColorOptions, iconNames, iconSizeMap, iconSizeOptions, inputVariantOptions, isTextContent, logoSizeOptions, logoVariants, notificationVariantOptions, paginationLinkVariants, progressSizeOptions, radioGroupOrientationOptions, radioGroupVariantOptions, renderTextContent, scrollAreaOrientationOptions, selectSizeOptions, spinnerSizeOptions, switchSizeOptions, tableActionToneOptions, tableCellVariantOptions, tableStatusToneOptions, textSizeOptions, textSplitTypeOptions, textVariantOptions, uploadKindOptions };
|
|
796
|
+
export { Accordion, type AccordionAppearance, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionProps, 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, Cluster, type ClusterProps, Container, type ContainerProps, Dialog, DialogBody, DialogCancel, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DocumentCard, type DocumentCardProps, Dropdown, type DropdownAppearance, type DropdownItem, type DropdownProps, DropdownSearch, type DropdownSearchOption, type DropdownSearchProps, type DropdownSubItem, type DropdownTriggerSize, type DropdownVariant, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, type EmptyProps, EmptyTitle, Icon, type IconColor, type IconName, type IconProps, type IconSize, Inline, type InlineProps, 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, ProseDialogBody, ProseDialogContent, type ProseDialogContentProps, ProseDialogDescription, ProseDialogHeader, ProseDialogTitle, RadioGroup, RadioGroupItem, type RadioGroupItemProps, RadioGroupOption, RadioGroupOptionAvatar, type RadioGroupOptionAvatarProps, RadioGroupOptionDescription, type RadioGroupOptionDescriptionProps, RadioGroupOptionIndicator, type RadioGroupOptionIndicatorProps, RadioGroupOptionLabel, type RadioGroupOptionLabelProps, type RadioGroupOptionProps, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupVariant, RightRailAction, type RightRailActionProps, 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, Stack, type StackProps, Surface, type SurfaceVariant, Switch, type SwitchProps, type SwitchSize, Table, TableActionButton, type TableActionButtonProps, TableActions, TableBody, TableCaption, TableCell, TableCellDescription, type TableCellProps, TableCellTitle, TableFooter, TableHead, TableHeader, TableRow, TableStatusBadge, type TableStatusBadgeProps, Tabs, type TabsItem, type TabsProps, Text, type TextProps, type TextSize, type TextSplitType, type TextVariant, type TextWeight, Textarea, type TextareaProps, Toaster, type ToasterProps, Toggle, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadKind, accordionAppearanceOptions, alertSizeOptions, alertToneOptions, avatarSizeOptions, avatarVariants, badgeAlertOptions, badgeAlertVariants, badgePillToneOptions, badgePillVariants, badgeVariantOptions, badgeVariants, buttonLanguageLocaleOptions, buttonSizeOptions, buttonVariantOptions, buttonVariants, cardVariants, dropdownAppearanceOptions, dropdownLanguageItems, dropdownTriggerSizeOptions, dropdownVariantOptions, emptyMediaVariantOptions, iconColorOptions, iconNames, iconSizeMap, iconSizeOptions, inputVariantOptions, isTextContent, logoSizeOptions, logoVariants, notificationVariantOptions, paginationLinkVariants, progressSizeOptions, radioGroupOrientationOptions, radioGroupVariantOptions, renderTextContent, scrollAreaOrientationOptions, selectSizeOptions, spinnerSizeOptions, surfaceVariantOptions, switchSizeOptions, tableActionToneOptions, tableCellVariantOptions, tableStatusToneOptions, textSizeOptions, textSplitTypeOptions, textVariantOptions, uploadKindOptions };
|