@facter/ds-core 1.8.4 → 1.10.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/dist/index.mjs CHANGED
@@ -280,12 +280,12 @@ var badgeVariants = cva(
280
280
  {
281
281
  variants: {
282
282
  variant: {
283
- default: "border-transparent bg-primary/15 text-primary hover:bg-primary/25",
284
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
285
- success: "border-transparent bg-green-500/15 text-green-600 dark:text-green-400 hover:bg-green-500/25",
286
- warning: "border-transparent bg-yellow-500/15 text-yellow-600 dark:text-yellow-400 hover:bg-yellow-500/25",
287
- error: "border-transparent bg-red-500/15 text-red-600 dark:text-red-400 hover:bg-red-500/25",
288
- info: "border-transparent bg-blue-500/15 text-blue-600 dark:text-blue-400 hover:bg-blue-500/25",
283
+ default: "border-primary/15 bg-primary/5 text-primary hover:bg-primary/15",
284
+ secondary: "border-secondary/15 bg-secondary/80 text-secondary-foreground hover:bg-secondary/70",
285
+ success: "border-green-500/15 bg-green-500/5 text-green-600 dark:text-green-400 hover:bg-green-500/15",
286
+ warning: "border-yellow-500/15 bg-yellow-500/5 text-yellow-600 dark:text-yellow-400 hover:bg-yellow-500/15",
287
+ error: "border-red-500/15 bg-red-500/5 text-red-600 dark:text-red-400 hover:bg-red-500/15",
288
+ info: "border-blue-500/15 bg-blue-500/5 text-blue-600 dark:text-blue-400 hover:bg-blue-500/15",
289
289
  outline: "border-border text-foreground hover:bg-muted"
290
290
  },
291
291
  size: {
@@ -2545,7 +2545,7 @@ var RippleEffect = React10.memo(
2545
2545
  }) => {
2546
2546
  const { base, increment } = SIZE_CONFIG[size];
2547
2547
  const opacities = INTENSITY_CONFIG[intensity];
2548
- const positionClasses = POSITION_CONFIG[position];
2548
+ const positionClasses2 = POSITION_CONFIG[position];
2549
2549
  const rippleRings = React10.useMemo(
2550
2550
  () => Array.from({ length: rings }).map((_, index) => {
2551
2551
  const ringSize = base + increment * (rings - index - 1);
@@ -2567,7 +2567,7 @@ var RippleEffect = React10.memo(
2567
2567
  {
2568
2568
  className: cn(
2569
2569
  "absolute inset-0 flex pointer-events-none",
2570
- positionClasses,
2570
+ positionClasses2,
2571
2571
  className
2572
2572
  ),
2573
2573
  children: /* @__PURE__ */ jsx("div", { className: "relative", children: rippleRings })
@@ -7692,6 +7692,162 @@ var Wizard = Object.assign(WizardRoot, {
7692
7692
  /** Progress bar indicator */
7693
7693
  Progress: WizardProgress
7694
7694
  });
7695
+ var positionClasses = {
7696
+ "bottom-center": "bottom-6 inset-x-0 flex justify-center",
7697
+ "bottom-left": "bottom-6 left-6",
7698
+ "bottom-right": "bottom-6 right-6"
7699
+ };
7700
+ var FloatingBar = React10.forwardRef(
7701
+ ({ className, visible = true, position = "bottom-center", wrapperClassName, children, style, ...props }, ref) => {
7702
+ return /* @__PURE__ */ jsx(
7703
+ "div",
7704
+ {
7705
+ ref,
7706
+ className: cn(
7707
+ "fixed z-50 pointer-events-none",
7708
+ positionClasses[position],
7709
+ wrapperClassName
7710
+ ),
7711
+ style,
7712
+ ...props,
7713
+ children: /* @__PURE__ */ jsx(
7714
+ "div",
7715
+ {
7716
+ className: cn(
7717
+ "pointer-events-auto",
7718
+ "flex items-center gap-2 px-4 py-2.5 rounded-full",
7719
+ "bg-white/80 dark:bg-gray-900/80 backdrop-blur-xl",
7720
+ "border border-white/60 dark:border-white/10",
7721
+ "shadow-2xl shadow-black/15 dark:shadow-black/40",
7722
+ "ring-1 ring-black/[0.06] dark:ring-white/[0.06]",
7723
+ "transition-all duration-300",
7724
+ visible ? "translate-y-0 opacity-100 scale-100" : "translate-y-6 opacity-0 scale-95 pointer-events-none",
7725
+ className
7726
+ ),
7727
+ children
7728
+ }
7729
+ )
7730
+ }
7731
+ );
7732
+ }
7733
+ );
7734
+ FloatingBar.displayName = "FloatingBar";
7735
+ var actionVariants = cva(
7736
+ "inline-flex items-center gap-2 rounded-full font-medium transition-all duration-150 active:scale-[0.97] disabled:opacity-50 disabled:pointer-events-none cursor-pointer",
7737
+ {
7738
+ variants: {
7739
+ variant: {
7740
+ default: "bg-primary hover:bg-primary/90 text-primary-foreground shadow-sm",
7741
+ success: "bg-emerald-600 hover:bg-emerald-700 text-white shadow-sm shadow-emerald-600/20",
7742
+ destructive: "bg-red-600 hover:bg-red-700 text-white shadow-sm shadow-red-600/20",
7743
+ ghost: "hover:bg-accent text-foreground"
7744
+ },
7745
+ size: {
7746
+ default: "h-9 px-5 text-sm",
7747
+ sm: "h-8 px-4 text-xs"
7748
+ }
7749
+ },
7750
+ defaultVariants: {
7751
+ variant: "default",
7752
+ size: "default"
7753
+ }
7754
+ }
7755
+ );
7756
+ var FloatingBarAction = React10.forwardRef(
7757
+ ({ className, variant, size, icon: Icon2, children, ...props }, ref) => {
7758
+ return /* @__PURE__ */ jsxs(
7759
+ "button",
7760
+ {
7761
+ ref,
7762
+ className: cn(actionVariants({ variant, size, className })),
7763
+ ...props,
7764
+ children: [
7765
+ Icon2 && /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4" }),
7766
+ /* @__PURE__ */ jsx("span", { children })
7767
+ ]
7768
+ }
7769
+ );
7770
+ }
7771
+ );
7772
+ FloatingBarAction.displayName = "FloatingBarAction";
7773
+ var iconActionVariants = cva(
7774
+ "inline-flex items-center justify-center rounded-full transition-colors duration-150 cursor-pointer disabled:opacity-50 disabled:pointer-events-none",
7775
+ {
7776
+ variants: {
7777
+ variant: {
7778
+ default: "text-muted-foreground hover:text-foreground hover:bg-muted",
7779
+ success: "text-muted-foreground hover:text-emerald-600 hover:bg-emerald-500/10",
7780
+ warning: "text-muted-foreground hover:text-amber-600 hover:bg-amber-500/10",
7781
+ danger: "text-muted-foreground hover:text-destructive hover:bg-destructive/10"
7782
+ },
7783
+ size: {
7784
+ default: "h-9 w-9",
7785
+ sm: "h-8 w-8"
7786
+ }
7787
+ },
7788
+ defaultVariants: {
7789
+ variant: "default",
7790
+ size: "default"
7791
+ }
7792
+ }
7793
+ );
7794
+ var FloatingBarIconAction = React10.forwardRef(
7795
+ ({ className, variant, size, icon: Icon2, label, ...props }, ref) => {
7796
+ return /* @__PURE__ */ jsx(
7797
+ "button",
7798
+ {
7799
+ ref,
7800
+ "aria-label": label,
7801
+ title: label,
7802
+ className: cn(iconActionVariants({ variant, size, className })),
7803
+ ...props,
7804
+ children: /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4" })
7805
+ }
7806
+ );
7807
+ }
7808
+ );
7809
+ FloatingBarIconAction.displayName = "FloatingBarIconAction";
7810
+ var FloatingBarDivider = React10.forwardRef(
7811
+ ({ className, ...props }, ref) => {
7812
+ return /* @__PURE__ */ jsx(
7813
+ "div",
7814
+ {
7815
+ ref,
7816
+ className: cn("w-px h-6 bg-border/60 mx-0.5", className),
7817
+ ...props
7818
+ }
7819
+ );
7820
+ }
7821
+ );
7822
+ FloatingBarDivider.displayName = "FloatingBarDivider";
7823
+ var FloatingBarCounter = React10.forwardRef(
7824
+ ({ className, count, label = "selecionado", pluralLabel, ...props }, ref) => {
7825
+ const plural = pluralLabel ?? `${label}s`;
7826
+ return /* @__PURE__ */ jsxs(
7827
+ "span",
7828
+ {
7829
+ ref,
7830
+ className: cn(
7831
+ "text-sm font-medium whitespace-nowrap tabular-nums px-2",
7832
+ className
7833
+ ),
7834
+ ...props,
7835
+ children: [
7836
+ count,
7837
+ " ",
7838
+ count === 1 ? label : plural
7839
+ ]
7840
+ }
7841
+ );
7842
+ }
7843
+ );
7844
+ FloatingBarCounter.displayName = "FloatingBarCounter";
7845
+ var FloatingBarCompound = Object.assign(FloatingBar, {
7846
+ Action: FloatingBarAction,
7847
+ IconAction: FloatingBarIconAction,
7848
+ Divider: FloatingBarDivider,
7849
+ Counter: FloatingBarCounter
7850
+ });
7695
7851
  function Logo({
7696
7852
  width = 100,
7697
7853
  color = "currentColor",
@@ -8100,6 +8256,6 @@ var THEME_INFO = {
8100
8256
  }
8101
8257
  };
8102
8258
 
8103
- export { AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BigNumberCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DENSITY_CONFIG, DashboardLayout, DataTable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FACTER_THEMES, Form, FormCheckbox, FormDescription, FormError, FormFieldProvider, FormFieldWrapper, FormInput, FormLabel, FormRadioGroup, FormSelect, FormSwitch, FormTextarea, GlobalLoaderController, Input, ItemCard, ItemCardActionButton, ItemCardActions, ItemCardActionsRow, ItemCardBadge, ItemCardContent, ItemCardContentItem, ItemCardEmpty, ItemCardFooter, ItemCardFooterDivider, ItemCardFooterItem, ItemCardHeader, ItemCardIcon, ItemCardRoot, ItemCardSubtitle, ItemCardTitle, ItemCardTitleGroup, Kanban, Loader, LoaderProvider, Logo, MobileNav, MobileNavItem, Navbar, NavbarCompanyProfile, NavbarNotification, NavbarUserMenu, PageHeader, Popover, PopoverContent, PopoverTrigger, RippleBackground, RippleEffect, RippleWrapper, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, SectionHeaderBadge, SectionHeaderContent, SectionHeaderIcon, SectionHeaderRoot, SectionHeaderSubtitle, SectionHeaderTitle, Select, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectionLayout, Separator3 as Separator, Sidebar, SimpleTooltip, Skeleton, Sparkline, StatsCard, Switch, THEME_INFO, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, ThemeToggle, Toaster, Tooltip, TooltipAction, TooltipActions, TooltipArrow, TooltipContent, TooltipDescription, TooltipHeader, TooltipIcon, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, TooltipTrigger, Wizard, WizardContent, WizardNavigation, WizardPanel, WizardProgress, WizardProvider, WizardStepConnector, WizardStepIndicator, WizardSteps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery2 as useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
8259
+ export { AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BigNumberCard, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DENSITY_CONFIG, DashboardLayout, DataTable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogWrapper, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FACTER_THEMES, FloatingBarCompound as FloatingBar, FloatingBarAction, FloatingBarCounter, FloatingBarDivider, FloatingBarIconAction, Form, FormCheckbox, FormDescription, FormError, FormFieldProvider, FormFieldWrapper, FormInput, FormLabel, FormRadioGroup, FormSelect, FormSwitch, FormTextarea, GlobalLoaderController, Input, ItemCard, ItemCardActionButton, ItemCardActions, ItemCardActionsRow, ItemCardBadge, ItemCardContent, ItemCardContentItem, ItemCardEmpty, ItemCardFooter, ItemCardFooterDivider, ItemCardFooterItem, ItemCardHeader, ItemCardIcon, ItemCardRoot, ItemCardSubtitle, ItemCardTitle, ItemCardTitleGroup, Kanban, Loader, LoaderProvider, Logo, MobileNav, MobileNavItem, Navbar, NavbarCompanyProfile, NavbarNotification, NavbarUserMenu, PageHeader, Popover, PopoverContent, PopoverTrigger, RippleBackground, RippleEffect, RippleWrapper, ScrollArea, ScrollBar, SectionHeader, SectionHeaderActions, SectionHeaderBadge, SectionHeaderContent, SectionHeaderIcon, SectionHeaderRoot, SectionHeaderSubtitle, SectionHeaderTitle, Select, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectionLayout, Separator3 as Separator, Sidebar, SimpleTooltip, Skeleton, Sparkline, StatsCard, Switch, THEME_INFO, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, ThemeToggle, Toaster, Tooltip, TooltipAction, TooltipActions, TooltipArrow, TooltipContent, TooltipDescription, TooltipHeader, TooltipIcon, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTitle, TooltipTrigger, Wizard, WizardContent, WizardNavigation, WizardPanel, WizardProgress, WizardProvider, WizardStepConnector, WizardStepIndicator, WizardSteps, cn, itemCardBadgeVariants, itemCardIconVariants, itemCardVariants, loader, toast, useDashboardLayout, useDataTable, useDataTableColumnVisibility, useDataTableDensity, useDataTableEmpty, useDataTableInstance, useDataTableLoading, useDataTableMeta, useDataTablePagination, useDataTableSelection, useDataTableSorting, useDataTableState, useDebounce, useDebouncedCallback, useFormFieldContext, useItemCard, useKanban, useKanbanOptional, useLoader, useMediaQuery2 as useMediaQuery, useSidebar, useSidebarOptional, useTheme, useWizardContext, useWizardContextOptional };
8104
8260
  //# sourceMappingURL=index.mjs.map
8105
8261
  //# sourceMappingURL=index.mjs.map