@facter/ds-core 1.8.3 → 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/dist/index.d.mts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +166 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -280,12 +280,12 @@ var badgeVariants = cva(
|
|
|
280
280
|
{
|
|
281
281
|
variants: {
|
|
282
282
|
variant: {
|
|
283
|
-
default: "border-
|
|
284
|
-
secondary: "border-
|
|
285
|
-
success: "border-
|
|
286
|
-
warning: "border-
|
|
287
|
-
error: "border-
|
|
288
|
-
info: "border-
|
|
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
|
|
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
|
-
|
|
2570
|
+
positionClasses2,
|
|
2571
2571
|
className
|
|
2572
2572
|
),
|
|
2573
2573
|
children: /* @__PURE__ */ jsx("div", { className: "relative", children: rippleRings })
|
|
@@ -6330,8 +6330,8 @@ var PageHeader = React10.memo(function PageHeader2({
|
|
|
6330
6330
|
),
|
|
6331
6331
|
children: [
|
|
6332
6332
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col leading-none", children: [
|
|
6333
|
-
/* @__PURE__ */ jsx("
|
|
6334
|
-
/* @__PURE__ */ jsx("
|
|
6333
|
+
/* @__PURE__ */ jsx("span", { className: "text-3xl font-semibold", children: title }),
|
|
6334
|
+
/* @__PURE__ */ jsx("span", { className: "text-[1.05rem] text-muted-foreground max-w-lg text-balance leading-relaxed", children: description })
|
|
6335
6335
|
] }),
|
|
6336
6336
|
children && /* @__PURE__ */ jsx("div", { className: "flex gap-3 mt-2 sm:mt-0 shrink-0", children })
|
|
6337
6337
|
]
|
|
@@ -7692,6 +7692,157 @@ var Wizard = Object.assign(WizardRoot, {
|
|
|
7692
7692
|
/** Progress bar indicator */
|
|
7693
7693
|
Progress: WizardProgress
|
|
7694
7694
|
});
|
|
7695
|
+
var positionClasses = {
|
|
7696
|
+
"bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
|
|
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", children, style, ...props }, ref) => {
|
|
7702
|
+
return /* @__PURE__ */ jsx(
|
|
7703
|
+
"div",
|
|
7704
|
+
{
|
|
7705
|
+
ref,
|
|
7706
|
+
className: cn("fixed z-50", positionClasses[position]),
|
|
7707
|
+
style,
|
|
7708
|
+
...props,
|
|
7709
|
+
children: /* @__PURE__ */ jsx(
|
|
7710
|
+
"div",
|
|
7711
|
+
{
|
|
7712
|
+
className: cn(
|
|
7713
|
+
"flex items-center gap-1.5 px-2 py-1.5 rounded-full",
|
|
7714
|
+
"bg-white/70 dark:bg-gray-900/70 backdrop-blur-xl",
|
|
7715
|
+
"border border-white/50 dark:border-white/10",
|
|
7716
|
+
"shadow-xl shadow-black/10 dark:shadow-black/30",
|
|
7717
|
+
"ring-1 ring-black/5 dark:ring-white/5",
|
|
7718
|
+
"transition-all duration-300 ease-out",
|
|
7719
|
+
visible ? "translate-y-0 opacity-100" : "translate-y-4 opacity-0 pointer-events-none",
|
|
7720
|
+
className
|
|
7721
|
+
),
|
|
7722
|
+
children
|
|
7723
|
+
}
|
|
7724
|
+
)
|
|
7725
|
+
}
|
|
7726
|
+
);
|
|
7727
|
+
}
|
|
7728
|
+
);
|
|
7729
|
+
FloatingBar.displayName = "FloatingBar";
|
|
7730
|
+
var actionVariants = cva(
|
|
7731
|
+
"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",
|
|
7732
|
+
{
|
|
7733
|
+
variants: {
|
|
7734
|
+
variant: {
|
|
7735
|
+
default: "bg-primary hover:bg-primary/90 text-primary-foreground",
|
|
7736
|
+
success: "bg-emerald-600 hover:bg-emerald-700 text-white",
|
|
7737
|
+
destructive: "bg-red-600 hover:bg-red-700 text-white",
|
|
7738
|
+
ghost: "hover:bg-accent text-foreground"
|
|
7739
|
+
},
|
|
7740
|
+
size: {
|
|
7741
|
+
default: "h-8 px-4 text-sm",
|
|
7742
|
+
sm: "h-7 px-3 text-xs"
|
|
7743
|
+
}
|
|
7744
|
+
},
|
|
7745
|
+
defaultVariants: {
|
|
7746
|
+
variant: "default",
|
|
7747
|
+
size: "default"
|
|
7748
|
+
}
|
|
7749
|
+
}
|
|
7750
|
+
);
|
|
7751
|
+
var FloatingBarAction = React10.forwardRef(
|
|
7752
|
+
({ className, variant, size, icon: Icon2, children, ...props }, ref) => {
|
|
7753
|
+
return /* @__PURE__ */ jsxs(
|
|
7754
|
+
"button",
|
|
7755
|
+
{
|
|
7756
|
+
ref,
|
|
7757
|
+
className: cn(actionVariants({ variant, size, className })),
|
|
7758
|
+
...props,
|
|
7759
|
+
children: [
|
|
7760
|
+
Icon2 && /* @__PURE__ */ jsx(Icon2, { className: "h-3.5 w-3.5" }),
|
|
7761
|
+
/* @__PURE__ */ jsx("span", { children })
|
|
7762
|
+
]
|
|
7763
|
+
}
|
|
7764
|
+
);
|
|
7765
|
+
}
|
|
7766
|
+
);
|
|
7767
|
+
FloatingBarAction.displayName = "FloatingBarAction";
|
|
7768
|
+
var iconActionVariants = cva(
|
|
7769
|
+
"inline-flex items-center justify-center rounded-full transition-colors duration-150 disabled:opacity-50 disabled:pointer-events-none",
|
|
7770
|
+
{
|
|
7771
|
+
variants: {
|
|
7772
|
+
variant: {
|
|
7773
|
+
default: "text-muted-foreground hover:text-foreground hover:bg-muted",
|
|
7774
|
+
success: "text-muted-foreground hover:text-emerald-600 hover:bg-emerald-500/10",
|
|
7775
|
+
warning: "text-muted-foreground hover:text-amber-600 hover:bg-amber-500/10",
|
|
7776
|
+
danger: "text-muted-foreground hover:text-destructive hover:bg-destructive/10"
|
|
7777
|
+
},
|
|
7778
|
+
size: {
|
|
7779
|
+
default: "h-8 w-8",
|
|
7780
|
+
sm: "h-7 w-7"
|
|
7781
|
+
}
|
|
7782
|
+
},
|
|
7783
|
+
defaultVariants: {
|
|
7784
|
+
variant: "default",
|
|
7785
|
+
size: "default"
|
|
7786
|
+
}
|
|
7787
|
+
}
|
|
7788
|
+
);
|
|
7789
|
+
var FloatingBarIconAction = React10.forwardRef(
|
|
7790
|
+
({ className, variant, size, icon: Icon2, label, ...props }, ref) => {
|
|
7791
|
+
return /* @__PURE__ */ jsx(
|
|
7792
|
+
"button",
|
|
7793
|
+
{
|
|
7794
|
+
ref,
|
|
7795
|
+
"aria-label": label,
|
|
7796
|
+
title: label,
|
|
7797
|
+
className: cn(iconActionVariants({ variant, size, className })),
|
|
7798
|
+
...props,
|
|
7799
|
+
children: /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4" })
|
|
7800
|
+
}
|
|
7801
|
+
);
|
|
7802
|
+
}
|
|
7803
|
+
);
|
|
7804
|
+
FloatingBarIconAction.displayName = "FloatingBarIconAction";
|
|
7805
|
+
var FloatingBarDivider = React10.forwardRef(
|
|
7806
|
+
({ className, ...props }, ref) => {
|
|
7807
|
+
return /* @__PURE__ */ jsx(
|
|
7808
|
+
"div",
|
|
7809
|
+
{
|
|
7810
|
+
ref,
|
|
7811
|
+
className: cn("w-px h-5 bg-border mx-0.5", className),
|
|
7812
|
+
...props
|
|
7813
|
+
}
|
|
7814
|
+
);
|
|
7815
|
+
}
|
|
7816
|
+
);
|
|
7817
|
+
FloatingBarDivider.displayName = "FloatingBarDivider";
|
|
7818
|
+
var FloatingBarCounter = React10.forwardRef(
|
|
7819
|
+
({ className, count, label = "selecionado", pluralLabel, ...props }, ref) => {
|
|
7820
|
+
const plural = pluralLabel ?? `${label}s`;
|
|
7821
|
+
return /* @__PURE__ */ jsxs(
|
|
7822
|
+
"span",
|
|
7823
|
+
{
|
|
7824
|
+
ref,
|
|
7825
|
+
className: cn(
|
|
7826
|
+
"text-sm font-medium whitespace-nowrap tabular-nums px-2",
|
|
7827
|
+
className
|
|
7828
|
+
),
|
|
7829
|
+
...props,
|
|
7830
|
+
children: [
|
|
7831
|
+
count,
|
|
7832
|
+
" ",
|
|
7833
|
+
count === 1 ? label : plural
|
|
7834
|
+
]
|
|
7835
|
+
}
|
|
7836
|
+
);
|
|
7837
|
+
}
|
|
7838
|
+
);
|
|
7839
|
+
FloatingBarCounter.displayName = "FloatingBarCounter";
|
|
7840
|
+
var FloatingBarCompound = Object.assign(FloatingBar, {
|
|
7841
|
+
Action: FloatingBarAction,
|
|
7842
|
+
IconAction: FloatingBarIconAction,
|
|
7843
|
+
Divider: FloatingBarDivider,
|
|
7844
|
+
Counter: FloatingBarCounter
|
|
7845
|
+
});
|
|
7695
7846
|
function Logo({
|
|
7696
7847
|
width = 100,
|
|
7697
7848
|
color = "currentColor",
|
|
@@ -8100,6 +8251,6 @@ var THEME_INFO = {
|
|
|
8100
8251
|
}
|
|
8101
8252
|
};
|
|
8102
8253
|
|
|
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 };
|
|
8254
|
+
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
8255
|
//# sourceMappingURL=index.mjs.map
|
|
8105
8256
|
//# sourceMappingURL=index.mjs.map
|