@sofya-ds/react 1.1.13 → 1.1.15
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/dist/index.cjs +1101 -1195
- package/dist/index.css +1 -1
- package/dist/index.d.cts +86 -62
- package/dist/index.d.ts +86 -62
- package/dist/index.js +1156 -1208
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -211,66 +211,104 @@ declare namespace EmptyContent {
|
|
|
211
211
|
}
|
|
212
212
|
declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
213
213
|
|
|
214
|
-
declare const
|
|
215
|
-
readonly
|
|
216
|
-
readonly books: "
|
|
217
|
-
readonly
|
|
218
|
-
readonly
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
221
|
-
readonly
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
readonly
|
|
228
|
-
readonly "
|
|
229
|
-
readonly
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
234
|
-
readonly
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
237
|
-
readonly "
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly "
|
|
241
|
-
readonly
|
|
242
|
-
readonly
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
246
|
-
readonly
|
|
247
|
-
readonly "
|
|
248
|
-
readonly "
|
|
249
|
-
readonly "
|
|
250
|
-
readonly
|
|
251
|
-
readonly
|
|
252
|
-
readonly
|
|
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
253
|
};
|
|
254
|
-
type IconName = keyof typeof
|
|
254
|
+
type IconName = keyof typeof legacyIconToTablerNameMap;
|
|
255
255
|
declare const iconNames: IconName[];
|
|
256
256
|
|
|
257
257
|
declare const iconSizeOptions: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
258
258
|
type IconSize = (typeof iconSizeOptions)[number] | number;
|
|
259
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
260
|
type IconColor = (typeof iconColorOptions)[number];
|
|
261
|
-
|
|
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 & {
|
|
262
276
|
name: IconName;
|
|
277
|
+
};
|
|
278
|
+
declare const Icon: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> & {
|
|
279
|
+
decorative?: boolean;
|
|
263
280
|
size?: IconSize;
|
|
264
281
|
color?: IconColor;
|
|
265
282
|
title?: string;
|
|
266
283
|
strokeWidth?: number;
|
|
267
|
-
}
|
|
268
|
-
|
|
284
|
+
} & {
|
|
285
|
+
name: IconName;
|
|
286
|
+
} & React.RefAttributes<SVGSVGElement>>;
|
|
269
287
|
|
|
270
|
-
declare const inputVariantOptions: readonly ["default", "search", "otp", "upload"];
|
|
271
|
-
type InputVariant = (typeof inputVariantOptions)[number];
|
|
272
288
|
declare const uploadKindOptions: readonly ["document", "image", "video"];
|
|
273
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
|
+
|
|
274
312
|
type InputBaseProps = {
|
|
275
313
|
className?: string;
|
|
276
314
|
containerClassName?: string;
|
|
@@ -298,20 +336,6 @@ type OtpInputProps = InputBaseProps & Omit<OTPInputProps, "children" | "classNam
|
|
|
298
336
|
otpSlotClassName?: string;
|
|
299
337
|
otpSplitIndex?: number;
|
|
300
338
|
};
|
|
301
|
-
type UploadInputProps = InputBaseProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "defaultValue" | "placeholder" | "type" | "value"> & {
|
|
302
|
-
label?: React.ReactNode;
|
|
303
|
-
labelClassName?: string;
|
|
304
|
-
defaultValue?: never;
|
|
305
|
-
onFilesChange?: (files: File[]) => void;
|
|
306
|
-
placeholder?: never;
|
|
307
|
-
type?: never;
|
|
308
|
-
uploadDescription?: React.ReactNode;
|
|
309
|
-
uploadKind?: UploadKind;
|
|
310
|
-
uploadOptionalLabel?: React.ReactNode;
|
|
311
|
-
uploadTitle?: React.ReactNode;
|
|
312
|
-
value?: never;
|
|
313
|
-
variant: "upload";
|
|
314
|
-
};
|
|
315
339
|
type InputProps = DefaultInputProps | SearchInputProps | OtpInputProps | UploadInputProps;
|
|
316
340
|
/**
|
|
317
341
|
* Regras de composicao do Sofya:
|
|
@@ -321,7 +345,7 @@ type InputProps = DefaultInputProps | SearchInputProps | OtpInputProps | UploadI
|
|
|
321
345
|
*/
|
|
322
346
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
323
347
|
|
|
324
|
-
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "
|
|
348
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "containerClassName" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
325
349
|
value?: string;
|
|
326
350
|
onChange?: (newValue: string) => unknown;
|
|
327
351
|
maxLength: number;
|
|
@@ -334,7 +358,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
334
358
|
} & {
|
|
335
359
|
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
336
360
|
children?: never;
|
|
337
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "
|
|
361
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "containerClassName" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
338
362
|
value?: string;
|
|
339
363
|
onChange?: (newValue: string) => unknown;
|
|
340
364
|
maxLength: number;
|
|
@@ -594,4 +618,4 @@ interface SofyaProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
594
618
|
}
|
|
595
619
|
declare function SofyaProvider({ preset, overrides, className, style, children, ...props }: SofyaProviderProps): react_jsx_runtime.JSX.Element;
|
|
596
620
|
|
|
597
|
-
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, iconSizeOptions, inputVariantOptions, isTextContent, logoSizeOptions, logoVariants, notificationVariantOptions, paginationLinkVariants, progressSizeOptions, radioGroupOrientationOptions, renderTextContent, scrollAreaOrientationOptions, selectSizeOptions, spinnerSizeOptions, tableActionToneOptions, tableCellVariantOptions, tableStatusToneOptions, textSizeOptions, textSplitTypeOptions, textVariantOptions, uploadKindOptions };
|
|
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 };
|