@sofya-ds/react 1.1.12 → 1.1.14

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,93 @@ 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 "users-group": "IconUsersGroup";
253
242
  };
254
- type IconName = keyof typeof iconNameMap;
243
+ type IconName = keyof typeof legacyIconToTablerNameMap;
255
244
  declare const iconNames: IconName[];
256
245
 
257
246
  declare const iconSizeOptions: readonly ["xs", "sm", "md", "lg", "xl"];
258
247
  type IconSize = (typeof iconSizeOptions)[number] | number;
259
248
  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
249
  type IconColor = (typeof iconColorOptions)[number];
261
- interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> {
250
+ declare const iconSizeMap: {
251
+ readonly xs: 12;
252
+ readonly sm: 16;
253
+ readonly md: 20;
254
+ readonly lg: 24;
255
+ readonly xl: 32;
256
+ };
257
+ type IconBaseProps = Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> & {
258
+ decorative?: boolean;
259
+ size?: IconSize;
260
+ color?: IconColor;
261
+ title?: string;
262
+ strokeWidth?: number;
263
+ };
264
+ type IconProps = IconBaseProps & {
262
265
  name: IconName;
266
+ };
267
+ declare const Icon: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "color" | "ref"> & {
268
+ decorative?: boolean;
263
269
  size?: IconSize;
264
270
  color?: IconColor;
265
271
  title?: string;
266
272
  strokeWidth?: number;
267
- }
268
- declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
273
+ } & {
274
+ name: IconName;
275
+ } & React.RefAttributes<SVGSVGElement>>;
269
276
 
270
- declare const inputVariantOptions: readonly ["default", "search", "otp", "upload"];
271
- type InputVariant = (typeof inputVariantOptions)[number];
272
277
  declare const uploadKindOptions: readonly ["document", "image", "video"];
273
278
  type UploadKind = (typeof uploadKindOptions)[number];
279
+ type InputBaseProps$1 = {
280
+ className?: string;
281
+ containerClassName?: string;
282
+ };
283
+ type UploadInputProps = InputBaseProps$1 & Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "defaultValue" | "placeholder" | "type" | "value"> & {
284
+ label?: React.ReactNode;
285
+ labelClassName?: string;
286
+ defaultValue?: never;
287
+ onFilesChange?: (files: File[]) => void;
288
+ placeholder?: never;
289
+ type?: never;
290
+ uploadDescription?: React.ReactNode;
291
+ uploadKind?: UploadKind;
292
+ uploadOptionalLabel?: React.ReactNode;
293
+ uploadTitle?: React.ReactNode;
294
+ value?: never;
295
+ variant: "upload";
296
+ };
297
+
298
+ declare const inputVariantOptions: readonly ["default", "search", "otp", "upload"];
299
+ type InputVariant = (typeof inputVariantOptions)[number];
300
+
274
301
  type InputBaseProps = {
275
302
  className?: string;
276
303
  containerClassName?: string;
@@ -298,20 +325,6 @@ type OtpInputProps = InputBaseProps & Omit<OTPInputProps, "children" | "classNam
298
325
  otpSlotClassName?: string;
299
326
  otpSplitIndex?: number;
300
327
  };
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
328
  type InputProps = DefaultInputProps | SearchInputProps | OtpInputProps | UploadInputProps;
316
329
  /**
317
330
  * Regras de composicao do Sofya:
@@ -321,7 +334,7 @@ type InputProps = DefaultInputProps | SearchInputProps | OtpInputProps | UploadI
321
334
  */
322
335
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
323
336
 
324
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
337
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "containerClassName" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
325
338
  value?: string;
326
339
  onChange?: (newValue: string) => unknown;
327
340
  maxLength: number;
@@ -334,7 +347,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
334
347
  } & {
335
348
  render: (props: input_otp.RenderProps) => React.ReactNode;
336
349
  children?: never;
337
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
350
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "containerClassName" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
338
351
  value?: string;
339
352
  onChange?: (newValue: string) => unknown;
340
353
  maxLength: number;
@@ -594,4 +607,4 @@ interface SofyaProviderProps extends React.HTMLAttributes<HTMLDivElement> {
594
607
  }
595
608
  declare function SofyaProvider({ preset, overrides, className, style, children, ...props }: SofyaProviderProps): react_jsx_runtime.JSX.Element;
596
609
 
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 };
610
+ 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 };