@facter/ds-core 1.31.0 → 1.33.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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React10 from 'react';
|
|
3
3
|
import { createContext, useRef, useState, useCallback, useEffect, Children, isValidElement, useMemo, useContext } from 'react';
|
|
4
|
+
import { Loader2, ChevronDown, Check, Inbox, Search, ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight, X, Circle, PinOff, Pin, ArrowDown, ArrowUp, ChevronsUpDown, FileText, FileSpreadsheet, Download, Rows4, Rows3, LayoutList, SlidersHorizontal, Info, AlertTriangle, XCircle, CheckCircle2, Building2, Star, ArrowRight, User, LogOut, Menu, AlertCircle, TrendingUp, TrendingDown, Sun, Moon, Bell, MoreHorizontal, Settings } from 'lucide-react';
|
|
4
5
|
import { cva } from 'class-variance-authority';
|
|
5
6
|
import { clsx } from 'clsx';
|
|
6
7
|
import { twMerge } from 'tailwind-merge';
|
|
7
8
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import { ChevronDown, Check, Inbox, Search, ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight, X, Circle, PinOff, Pin, ArrowDown, ArrowUp, ChevronsUpDown, FileText, FileSpreadsheet, Download, Rows4, Rows3, LayoutList, SlidersHorizontal, Info, AlertTriangle, XCircle, CheckCircle2, Building2, Star, ArrowRight, User, LogOut, Menu, Loader2, AlertCircle, TrendingUp, TrendingDown, Sun, Moon, Bell, MoreHorizontal, Settings } from 'lucide-react';
|
|
9
9
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
10
10
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
11
11
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -58,13 +58,18 @@ var buttonVariants = cva(
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
var Button = React10.forwardRef(
|
|
61
|
-
({ className, variant, size, ...props }, ref) => {
|
|
61
|
+
({ className, variant, size, isLoading = false, loadingText, children, disabled, ...props }, ref) => {
|
|
62
62
|
return /* @__PURE__ */ jsx(
|
|
63
63
|
"button",
|
|
64
64
|
{
|
|
65
65
|
className: cn(buttonVariants({ variant, size, className })),
|
|
66
66
|
ref,
|
|
67
|
-
|
|
67
|
+
disabled: disabled || isLoading,
|
|
68
|
+
...props,
|
|
69
|
+
children: isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70
|
+
/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin shrink-0" }),
|
|
71
|
+
loadingText ?? children
|
|
72
|
+
] }) : children
|
|
68
73
|
}
|
|
69
74
|
);
|
|
70
75
|
}
|
|
@@ -2495,16 +2500,16 @@ var DataTable = Object.assign(DataTableRoot, {
|
|
|
2495
2500
|
ColumnHeader: DataTableColumnHeader
|
|
2496
2501
|
});
|
|
2497
2502
|
function DialogMeshEffect() {
|
|
2498
|
-
return /* @__PURE__ */ jsxs("div", { className: "absolute
|
|
2503
|
+
return /* @__PURE__ */ jsxs("div", { className: "absolute top-0 left-0 right-0 h-[180px] overflow-hidden rounded-t-lg pointer-events-none z-[1]", children: [
|
|
2499
2504
|
/* @__PURE__ */ jsx(
|
|
2500
2505
|
"div",
|
|
2501
2506
|
{
|
|
2502
2507
|
className: "absolute inset-0",
|
|
2503
2508
|
style: {
|
|
2504
2509
|
background: `
|
|
2505
|
-
radial-gradient(ellipse at 30% -
|
|
2506
|
-
radial-gradient(ellipse at 80% -
|
|
2507
|
-
linear-gradient(to bottom, hsl(var(--primary) / 0.06), transparent
|
|
2510
|
+
radial-gradient(ellipse at 30% -30%, hsl(var(--primary) / 0.2) 0%, transparent 70%),
|
|
2511
|
+
radial-gradient(ellipse at 80% -20%, hsl(var(--primary) / 0.14) 0%, transparent 65%),
|
|
2512
|
+
linear-gradient(to bottom, hsl(var(--primary) / 0.06), transparent 80%)
|
|
2508
2513
|
`
|
|
2509
2514
|
}
|
|
2510
2515
|
}
|
|
@@ -2519,8 +2524,8 @@ function DialogMeshEffect() {
|
|
|
2519
2524
|
linear-gradient(90deg, hsl(var(--primary) / 0.07) 1px, transparent 1px)
|
|
2520
2525
|
`,
|
|
2521
2526
|
backgroundSize: "28px 28px",
|
|
2522
|
-
mask: "linear-gradient(to bottom, black 0%, transparent
|
|
2523
|
-
WebkitMask: "linear-gradient(to bottom, black 0%, transparent
|
|
2527
|
+
mask: "linear-gradient(to bottom, black 0%, transparent 90%)",
|
|
2528
|
+
WebkitMask: "linear-gradient(to bottom, black 0%, transparent 90%)"
|
|
2524
2529
|
}
|
|
2525
2530
|
}
|
|
2526
2531
|
)
|