@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.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 iconNameMap: {
215
- readonly files: "files";
216
- readonly books: "books";
217
- readonly "file-magnifying-glass": "file-magnifying-glass";
218
- readonly minus: "minus";
219
- readonly plus: "plus";
220
- readonly "arrows-in-simple": "arrows-in-simple";
221
- readonly check: "check";
222
- readonly "caret-down": "caret-down";
223
- readonly lightbulb: "lightbulb";
224
- readonly chats: "chats";
225
- readonly file: "file";
226
- readonly folders: "folders";
227
- readonly sparkle: "sparkle";
228
- readonly "microphone-stage": "microphone-stage";
229
- readonly "battery-low": "battery-low";
230
- readonly microphone: "microphone";
231
- readonly "microphone-slash": "microphone-slash";
232
- readonly play: "play";
233
- readonly x: "x";
234
- readonly mail: "Mail";
235
- readonly pause: "pause";
236
- readonly broadcast: "broadcast";
237
- readonly "sidebar-simple": "sidebar-simple";
238
- readonly "pencil-simple-line": "pencil-simple-line";
239
- readonly search: "search";
240
- readonly "list-dashes": "list-dashes";
241
- readonly brain: "brain";
242
- readonly eye: "eye";
243
- readonly frame: "Frame";
244
- readonly "arrow-up": "arrow-up";
245
- readonly question: "question";
246
- readonly "caret-up": "caret-up";
247
- readonly "stop-1": "stop 1";
248
- readonly "pause-1": "pause 1";
249
- readonly "play-1": "play 1";
250
- readonly "corners-out-1": "corners-out 1";
251
- readonly "corners-in-1": "corners-in 1";
252
- readonly volume: "Volume";
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 iconNameMap;
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
- interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> {
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
- declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
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" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
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" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
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 };