@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.d.mts
CHANGED
|
@@ -30,6 +30,8 @@ declare const buttonVariants: (props?: ({
|
|
|
30
30
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
31
31
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
32
32
|
asChild?: boolean;
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
loadingText?: string;
|
|
33
35
|
}
|
|
34
36
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
35
37
|
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ declare const buttonVariants: (props?: ({
|
|
|
30
30
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
31
31
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
32
32
|
asChild?: boolean;
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
loadingText?: string;
|
|
33
35
|
}
|
|
34
36
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
35
37
|
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React10 = require('react');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
5
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
6
7
|
var clsx = require('clsx');
|
|
7
8
|
var tailwindMerge = require('tailwind-merge');
|
|
8
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
var lucideReact = require('lucide-react');
|
|
10
10
|
var framerMotion = require('framer-motion');
|
|
11
11
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
12
12
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
@@ -89,13 +89,18 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
var Button = React10__namespace.forwardRef(
|
|
92
|
-
({ className, variant, size, ...props }, ref) => {
|
|
92
|
+
({ className, variant, size, isLoading = false, loadingText, children, disabled, ...props }, ref) => {
|
|
93
93
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
94
|
"button",
|
|
95
95
|
{
|
|
96
96
|
className: cn(buttonVariants({ variant, size, className })),
|
|
97
97
|
ref,
|
|
98
|
-
|
|
98
|
+
disabled: disabled || isLoading,
|
|
99
|
+
...props,
|
|
100
|
+
children: isLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
101
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-4 w-4 animate-spin shrink-0" }),
|
|
102
|
+
loadingText ?? children
|
|
103
|
+
] }) : children
|
|
99
104
|
}
|
|
100
105
|
);
|
|
101
106
|
}
|
|
@@ -2526,16 +2531,16 @@ var DataTable = Object.assign(DataTableRoot, {
|
|
|
2526
2531
|
ColumnHeader: DataTableColumnHeader
|
|
2527
2532
|
});
|
|
2528
2533
|
function DialogMeshEffect() {
|
|
2529
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute
|
|
2534
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute top-0 left-0 right-0 h-[180px] overflow-hidden rounded-t-lg pointer-events-none z-[1]", children: [
|
|
2530
2535
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2531
2536
|
"div",
|
|
2532
2537
|
{
|
|
2533
2538
|
className: "absolute inset-0",
|
|
2534
2539
|
style: {
|
|
2535
2540
|
background: `
|
|
2536
|
-
radial-gradient(ellipse at 30% -
|
|
2537
|
-
radial-gradient(ellipse at 80% -
|
|
2538
|
-
linear-gradient(to bottom, hsl(var(--primary) / 0.06), transparent
|
|
2541
|
+
radial-gradient(ellipse at 30% -30%, hsl(var(--primary) / 0.2) 0%, transparent 70%),
|
|
2542
|
+
radial-gradient(ellipse at 80% -20%, hsl(var(--primary) / 0.14) 0%, transparent 65%),
|
|
2543
|
+
linear-gradient(to bottom, hsl(var(--primary) / 0.06), transparent 80%)
|
|
2539
2544
|
`
|
|
2540
2545
|
}
|
|
2541
2546
|
}
|
|
@@ -2550,8 +2555,8 @@ function DialogMeshEffect() {
|
|
|
2550
2555
|
linear-gradient(90deg, hsl(var(--primary) / 0.07) 1px, transparent 1px)
|
|
2551
2556
|
`,
|
|
2552
2557
|
backgroundSize: "28px 28px",
|
|
2553
|
-
mask: "linear-gradient(to bottom, black 0%, transparent
|
|
2554
|
-
WebkitMask: "linear-gradient(to bottom, black 0%, transparent
|
|
2558
|
+
mask: "linear-gradient(to bottom, black 0%, transparent 90%)",
|
|
2559
|
+
WebkitMask: "linear-gradient(to bottom, black 0%, transparent 90%)"
|
|
2555
2560
|
}
|
|
2556
2561
|
}
|
|
2557
2562
|
)
|