@devalok/shilp-sutra 0.18.0 → 0.18.1
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/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +101 -101
- package/dist/_chunks/tree-view.js +12 -12
- package/dist/_chunks/use-calendar.js +1 -1
- package/dist/_chunks/vendor-utils.js +2 -2
- package/dist/composed/activity-feed.js +21 -21
- package/dist/composed/avatar-group.js +25 -25
- package/dist/composed/command-palette.js +3 -3
- package/dist/composed/confirm-dialog.js +1 -1
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/empty-state.js +2 -2
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +10 -10
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.js +1 -1
- package/dist/composed/member-picker.js +6 -6
- package/dist/composed/page-header.js +1 -1
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +1 -1
- package/dist/composed/schedule-view.js +15 -15
- package/dist/composed/simple-tooltip.js +8 -8
- package/dist/composed/status-badge.js +12 -12
- package/dist/motion/index.d.ts +1 -1
- package/dist/motion/index.d.ts.map +1 -1
- package/dist/motion/index.js +8 -6
- package/dist/motion/primitives-index.js +184 -8
- package/dist/shell/app-command-palette.js +1 -1
- package/dist/shell/bottom-navbar.js +3 -3
- package/dist/shell/notification-center.js +35 -35
- package/dist/shell/notification-preferences.js +29 -28
- package/dist/shell/sidebar.js +56 -56
- package/dist/shell/top-bar.js +25 -25
- package/dist/ui/accordion.js +11 -11
- package/dist/ui/alert-dialog.js +41 -41
- package/dist/ui/alert.js +10 -10
- package/dist/ui/aspect-ratio.js +5 -5
- package/dist/ui/autocomplete.js +15 -15
- package/dist/ui/avatar.js +4 -4
- package/dist/ui/badge.js +11 -11
- package/dist/ui/banner.js +3 -3
- package/dist/ui/breadcrumb.js +8 -8
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.js +25 -25
- package/dist/ui/card.js +5 -5
- package/dist/ui/charts/index.js +4 -4
- package/dist/ui/checkbox.js +4 -4
- package/dist/ui/chip.js +14 -14
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +7 -7
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +5 -5
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +4 -4
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +55 -55
- package/dist/ui/dialog.js +3 -3
- package/dist/ui/dropdown-menu.js +3 -3
- package/dist/ui/file-upload.js +10 -10
- package/dist/ui/form.js +1 -1
- package/dist/ui/hover-card.js +12 -12
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +322 -516
- package/dist/ui/input-otp.js +4 -4
- package/dist/ui/input.js +9 -9
- package/dist/ui/label.js +9 -9
- package/dist/ui/lib/date-utils.d.ts +0 -1
- package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
- package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.js +66 -66
- package/dist/ui/navigation-menu.js +4 -4
- package/dist/ui/number-input.js +9 -9
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +18 -18
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.js +11 -11
- package/dist/ui/search-input.js +2 -2
- package/dist/ui/segmented-control.d.ts +2 -0
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +59 -55
- package/dist/ui/select.js +19 -19
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.js +10 -10
- package/dist/ui/sidebar.js +574 -38
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +9 -9
- package/dist/ui/spinner.js +2 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +35 -35
- package/dist/ui/stepper.d.ts +1 -3
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +74 -74
- package/dist/ui/switch.js +7 -7
- package/dist/ui/table.js +28 -28
- package/dist/ui/tabs.js +10 -10
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.js +12 -12
- package/dist/ui/toaster.js +11 -11
- package/dist/ui/toggle-group.js +2 -2
- package/dist/ui/toggle.js +8 -8
- package/dist/ui/tooltip.js +21 -21
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +3384 -1591
- package/llms.txt +4 -4
- package/package.json +25 -2
- package/dist/_chunks/avatar.js +0 -52
- package/dist/_chunks/button-group.js +0 -27
- package/dist/_chunks/button.js +0 -113
- package/dist/_chunks/card.js +0 -50
- package/dist/_chunks/checkbox.js +0 -16
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -606
- package/dist/_chunks/spinner.js +0 -64
- package/dist/_chunks/tooltip.js +0 -30
- package/dist/_chunks/utils.js +0 -17
- package/dist/motion/motion-provider.js +0 -24
- package/dist/motion/primitives.js +0 -187
- /package/dist/_chunks/{motion.js → framer.js} +0 -0
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
3
3
|
import { S as t } from "../_chunks/primitives.js";
|
|
4
4
|
import { IconDots as n, IconChevronRight as d } from "@tabler/icons-react";
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
const l =
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { cn as m } from "./lib/utils.js";
|
|
7
|
+
const l = o.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
|
|
8
8
|
l.displayName = "Breadcrumb";
|
|
9
|
-
const f =
|
|
9
|
+
const f = o.forwardRef(
|
|
10
10
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
11
11
|
"ol",
|
|
12
12
|
{
|
|
@@ -20,14 +20,14 @@ const f = c.forwardRef(
|
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
22
|
f.displayName = "BreadcrumbList";
|
|
23
|
-
const p =
|
|
23
|
+
const p = o.forwardRef(
|
|
24
24
|
({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: m("inline-flex items-center gap-ds-02b", e), ...r })
|
|
25
25
|
);
|
|
26
26
|
p.displayName = "BreadcrumbItem";
|
|
27
|
-
const u =
|
|
27
|
+
const u = o.forwardRef(({ className: e, asChild: r = !1, ...a }, c) => /* @__PURE__ */ s(
|
|
28
28
|
r ? t : "a",
|
|
29
29
|
{
|
|
30
|
-
ref:
|
|
30
|
+
ref: c,
|
|
31
31
|
className: m(
|
|
32
32
|
"transition-colors hover:text-surface-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
|
|
33
33
|
e
|
|
@@ -36,7 +36,7 @@ const u = c.forwardRef(({ className: e, asChild: r = !1, ...a }, o) => /* @__PUR
|
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
38
|
u.displayName = "BreadcrumbLink";
|
|
39
|
-
const b =
|
|
39
|
+
const b = o.forwardRef(
|
|
40
40
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
41
41
|
"span",
|
|
42
42
|
{
|
package/dist/ui/button-group.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { cn as a } from "./lib/utils.js";
|
|
5
5
|
const l = o.createContext({});
|
|
6
6
|
function h() {
|
|
7
7
|
return o.useContext(l);
|
|
8
8
|
}
|
|
9
9
|
const p = o.forwardRef(
|
|
10
10
|
({ className: u, variant: t, color: n, size: e, orientation: i = "horizontal", children: d, ...c }, s) => {
|
|
11
|
-
const
|
|
12
|
-
return /* @__PURE__ */ r(l.Provider, { value:
|
|
11
|
+
const f = o.useMemo(() => ({ variant: t, color: n, size: e }), [t, n, e]);
|
|
12
|
+
return /* @__PURE__ */ r(l.Provider, { value: f, children: /* @__PURE__ */ r(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
ref: s,
|
|
16
16
|
role: "group",
|
|
17
|
-
className:
|
|
17
|
+
className: a(
|
|
18
18
|
"inline-flex",
|
|
19
19
|
i === "horizontal" ? [
|
|
20
20
|
"flex-row",
|
package/dist/ui/button.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsx as e, jsxs as C } from "react/jsx-runtime";
|
|
3
3
|
import { ag as K } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { IconCheck as L, IconX as O } from "@tabler/icons-react";
|
|
5
|
-
import { S as P,
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { A as _, m as $ } from "../_chunks/
|
|
5
|
+
import { S as P, M as Q } from "../_chunks/primitives.js";
|
|
6
|
+
import * as n from "react";
|
|
7
|
+
import { useButtonGroup as U } from "./button-group.js";
|
|
8
|
+
import { springs as Y } from "./lib/motion.js";
|
|
9
|
+
import { cn as c } from "./lib/utils.js";
|
|
10
|
+
import { Spinner as Z } from "./spinner.js";
|
|
11
|
+
import { A as _, m as $ } from "../_chunks/framer.js";
|
|
12
12
|
const R = K(
|
|
13
13
|
"inline-flex items-center justify-center gap-ds-03 whitespace-nowrap font-sans font-semibold select-none border border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
14
14
|
{
|
|
@@ -80,27 +80,27 @@ const R = K(
|
|
|
80
80
|
"icon-sm": "sm",
|
|
81
81
|
"icon-md": "sm",
|
|
82
82
|
"icon-lg": "md"
|
|
83
|
-
}, re =
|
|
83
|
+
}, re = n.forwardRef(
|
|
84
84
|
({
|
|
85
85
|
className: b,
|
|
86
86
|
variant: A,
|
|
87
87
|
color: V,
|
|
88
88
|
size: B,
|
|
89
|
-
asChild:
|
|
89
|
+
asChild: M = !1,
|
|
90
90
|
startIcon: h,
|
|
91
91
|
endIcon: p,
|
|
92
|
-
loading:
|
|
92
|
+
loading: E = !1,
|
|
93
93
|
loadingPosition: d = "start",
|
|
94
94
|
fullWidth: w = !1,
|
|
95
95
|
disabled: x,
|
|
96
|
-
onClick:
|
|
96
|
+
onClick: F,
|
|
97
97
|
onClickAsync: m,
|
|
98
98
|
asyncFeedbackDuration: T = 1500,
|
|
99
|
-
children:
|
|
99
|
+
children: a,
|
|
100
100
|
...N
|
|
101
101
|
}, y) => {
|
|
102
|
-
const u = U(), S = A ?? u.variant, z = V ?? u.color, i = B ?? u.size ?? "md", f = W[i], G = ee[i], [t, l] =
|
|
103
|
-
|
|
102
|
+
const u = U(), S = A ?? u.variant, z = V ?? u.color, i = B ?? u.size ?? "md", f = W[i], G = ee[i], [t, l] = n.useState("idle"), j = n.useRef(), o = n.useRef(!0);
|
|
103
|
+
n.useEffect(() => () => {
|
|
104
104
|
o.current = !1, clearTimeout(j.current);
|
|
105
105
|
}, []);
|
|
106
106
|
const I = (v) => {
|
|
@@ -113,10 +113,10 @@ const R = K(
|
|
|
113
113
|
o.current && l("idle");
|
|
114
114
|
}, T));
|
|
115
115
|
}));
|
|
116
|
-
}, k = !!m, r = k ? t === "loading" :
|
|
117
|
-
if (
|
|
116
|
+
}, k = !!m, r = k ? t === "loading" : E, s = t === "success" || t === "error", g = r ? /* @__PURE__ */ e(Z, { size: G }) : null;
|
|
117
|
+
if (M) {
|
|
118
118
|
const v = {
|
|
119
|
-
className:
|
|
119
|
+
className: c(
|
|
120
120
|
R({ variant: S, color: z, size: i }),
|
|
121
121
|
w && "w-full",
|
|
122
122
|
b
|
|
@@ -126,19 +126,19 @@ const R = K(
|
|
|
126
126
|
"aria-busy": r || void 0,
|
|
127
127
|
...N
|
|
128
128
|
};
|
|
129
|
-
return /* @__PURE__ */ e(P, { ...v, children: /* @__PURE__ */ e(Q, { children:
|
|
129
|
+
return /* @__PURE__ */ e(P, { ...v, children: /* @__PURE__ */ e(Q, { children: a }) });
|
|
130
130
|
}
|
|
131
|
-
const X = () => r && d === "start" ? g : h ? /* @__PURE__ */ e("span", { className:
|
|
132
|
-
/* @__PURE__ */ e("span", { className: "invisible", children:
|
|
131
|
+
const X = () => r && d === "start" ? g : h ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center", f), children: h }) : null, q = () => r && d === "end" ? g : p ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center", f), children: p }) : null, D = () => r && d === "center" ? /* @__PURE__ */ C("span", { className: "relative inline-flex items-center justify-center", children: [
|
|
132
|
+
/* @__PURE__ */ e("span", { className: "invisible", children: a }),
|
|
133
133
|
/* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center", children: g })
|
|
134
|
-
] }) :
|
|
134
|
+
] }) : a, H = s ? t === "success" ? "bg-success-9 text-accent-fg border-transparent hover:bg-success-9" : "bg-error-9 text-accent-fg border-transparent hover:bg-error-9" : void 0, J = s ? /* @__PURE__ */ e(_, { mode: "wait", children: /* @__PURE__ */ e(
|
|
135
135
|
$.span,
|
|
136
136
|
{
|
|
137
137
|
initial: { opacity: 0, scale: 0.5 },
|
|
138
138
|
animate: { opacity: 1, scale: 1 },
|
|
139
139
|
exit: { opacity: 0, scale: 0.5 },
|
|
140
140
|
transition: Y.bouncy,
|
|
141
|
-
className:
|
|
141
|
+
className: c("inline-flex shrink-0 items-center justify-center", f),
|
|
142
142
|
children: t === "success" ? /* @__PURE__ */ e(L, { className: "h-full w-full" }) : /* @__PURE__ */ e(O, { className: "h-full w-full" })
|
|
143
143
|
},
|
|
144
144
|
t
|
|
@@ -147,7 +147,7 @@ const R = K(
|
|
|
147
147
|
"button",
|
|
148
148
|
{
|
|
149
149
|
...N,
|
|
150
|
-
className:
|
|
150
|
+
className: c(
|
|
151
151
|
R({ variant: S, color: z, size: i }),
|
|
152
152
|
w && "w-full",
|
|
153
153
|
!r && !s && "active:scale-[0.97] transition-transform duration-100",
|
|
@@ -158,10 +158,10 @@ const R = K(
|
|
|
158
158
|
ref: y,
|
|
159
159
|
disabled: x || r || s,
|
|
160
160
|
"aria-busy": r || void 0,
|
|
161
|
-
onClick: k ? I :
|
|
161
|
+
onClick: k ? I : F,
|
|
162
162
|
children: [
|
|
163
163
|
s ? J : X(),
|
|
164
|
-
s ?
|
|
164
|
+
s ? a : D(),
|
|
165
165
|
s ? null : q()
|
|
166
166
|
]
|
|
167
167
|
}
|
package/dist/ui/card.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import { ag as f } from "../_chunks/vendor-utils.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { m
|
|
5
|
+
import { springs as c, motionProps as l } from "./lib/motion.js";
|
|
6
|
+
import { cn as d } from "./lib/utils.js";
|
|
7
|
+
import { m } from "../_chunks/framer.js";
|
|
8
8
|
const p = f(
|
|
9
9
|
"rounded-ds-lg text-surface-fg",
|
|
10
10
|
{
|
|
@@ -26,14 +26,14 @@ const p = f(
|
|
|
26
26
|
a
|
|
27
27
|
);
|
|
28
28
|
return r ? /* @__PURE__ */ s(
|
|
29
|
-
|
|
29
|
+
m.div,
|
|
30
30
|
{
|
|
31
31
|
ref: n,
|
|
32
32
|
whileHover: { y: -2 },
|
|
33
33
|
whileTap: { scale: 0.98 },
|
|
34
34
|
transition: c.snappy,
|
|
35
35
|
className: i,
|
|
36
|
-
...
|
|
36
|
+
...l(t)
|
|
37
37
|
}
|
|
38
38
|
) : /* @__PURE__ */ s("div", { ref: n, className: i, ...t });
|
|
39
39
|
}
|
package/dist/ui/charts/index.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { jsx as t, jsxs as g, Fragment as et } from "react/jsx-runtime";
|
|
3
3
|
import * as nt from "react";
|
|
4
4
|
import { useRef as yt, useState as mt, useEffect as xt, useCallback as kt } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { cn as H } from "../lib/utils.js";
|
|
6
6
|
import { scaleBand as St, scaleLinear as ot, scalePoint as Ct } from "d3-scale";
|
|
7
|
-
import {
|
|
7
|
+
import { tweens as st, motionProps as it } from "../lib/motion.js";
|
|
8
8
|
import { axisLeft as Xt, axisBottom as Dt, axisRight as Pt, axisTop as zt } from "d3-axis";
|
|
9
9
|
import { select as Bt } from "d3-selection";
|
|
10
|
-
import {
|
|
11
|
-
import { m as rt } from "../../_chunks/
|
|
10
|
+
import { u as Vt } from "../../_chunks/motion-provider.js";
|
|
11
|
+
import { m as rt } from "../../_chunks/framer.js";
|
|
12
12
|
import { line as ft, curveMonotoneX as dt, curveLinear as At, stack as _t, stackOrderNone as jt, stackOffsetNone as Tt, area as Nt, pie as Yt, arc as vt, lineRadial as Ot, curveLinearClosed as Wt } from "d3-shape";
|
|
13
13
|
const It = {
|
|
14
14
|
top: 20,
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { N as a, Q as m } from "../_chunks/primitives.js";
|
|
4
4
|
import { IconMinus as l, IconCheck as f } from "@tabler/icons-react";
|
|
5
5
|
import * as b from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { A as p, m as x } from "../_chunks/
|
|
6
|
+
import { springs as u } from "./lib/motion.js";
|
|
7
|
+
import { cn as h } from "./lib/utils.js";
|
|
8
|
+
import { A as p, m as x } from "../_chunks/framer.js";
|
|
9
9
|
const g = b.forwardRef(({ className: c, error: i, indeterminate: r, checked: s, ...o }, n) => {
|
|
10
10
|
const t = r ? "indeterminate" : s, d = t === !0 || t === "indeterminate";
|
|
11
11
|
return /* @__PURE__ */ e(
|
package/dist/ui/chip.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as f, jsx as
|
|
2
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as v from "react";
|
|
4
4
|
import { IconX as N } from "@tabler/icons-react";
|
|
5
5
|
import { ag as h } from "../_chunks/vendor-utils.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { m as n } from "../_chunks/
|
|
9
|
-
import { A as $ } from "../_chunks/
|
|
6
|
+
import { springs as w, motionProps as C } from "./lib/motion.js";
|
|
7
|
+
import { cn as k } from "./lib/utils.js";
|
|
8
|
+
import { m as n } from "../_chunks/framer.js";
|
|
9
|
+
import { A as $ } from "../_chunks/framer.js";
|
|
10
10
|
const j = h(
|
|
11
11
|
"inline-flex items-center gap-ds-02 font-sans leading-ds-relaxed rounded-ds-full transition-colors duration-fast-01",
|
|
12
12
|
{
|
|
@@ -69,8 +69,8 @@ const j = h(
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
), R = v.forwardRef(
|
|
72
|
-
({ label: t, variant: i, size: l, color: g, icon: o, onClick: s, onDismiss: c, disabled:
|
|
73
|
-
const
|
|
72
|
+
({ label: t, variant: i, size: l, color: g, icon: o, onClick: s, onDismiss: c, disabled: a, className: d, ...m }, b) => {
|
|
73
|
+
const e = !!s, u = e ? n.button : n.span, y = e && !a ? "cursor-pointer hover:bg-surface-4 active:scale-95" : "", x = a ? "opacity-action-disabled cursor-not-allowed" : "";
|
|
74
74
|
return /* @__PURE__ */ f(
|
|
75
75
|
u,
|
|
76
76
|
{
|
|
@@ -80,14 +80,14 @@ const j = h(
|
|
|
80
80
|
exit: { opacity: 0, scale: 0.8 },
|
|
81
81
|
transition: w.snappy,
|
|
82
82
|
className: k(j({ variant: i, size: l, color: g }), y, x, d),
|
|
83
|
-
onClick:
|
|
84
|
-
disabled:
|
|
85
|
-
type:
|
|
83
|
+
onClick: e ? s : void 0,
|
|
84
|
+
disabled: e ? a : void 0,
|
|
85
|
+
type: e ? "button" : void 0,
|
|
86
86
|
...C(m),
|
|
87
87
|
children: [
|
|
88
|
-
o && /* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
c && /* @__PURE__ */
|
|
88
|
+
o && /* @__PURE__ */ r("span", { className: "flex-shrink-0 [&>svg]:w-ico-sm [&>svg]:h-ico-sm", children: o }),
|
|
89
|
+
/* @__PURE__ */ r("span", { children: t }),
|
|
90
|
+
c && /* @__PURE__ */ r(
|
|
91
91
|
"button",
|
|
92
92
|
{
|
|
93
93
|
type: "button",
|
|
@@ -96,7 +96,7 @@ const j = h(
|
|
|
96
96
|
onClick: (p) => {
|
|
97
97
|
p.stopPropagation(), c();
|
|
98
98
|
},
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ r(N, { className: "h-ico-sm w-ico-sm" })
|
|
100
100
|
}
|
|
101
101
|
)
|
|
102
102
|
]
|
package/dist/ui/code.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { cn as t } from "./lib/utils.js";
|
|
4
4
|
const m = f.forwardRef(
|
|
5
5
|
({ className: o, variant: a = "inline", children: r, ...d }, s) => a === "block" ? /* @__PURE__ */ e(
|
|
6
6
|
"pre",
|
package/dist/ui/collapsible.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import { U as o, V as r, W as m } from "../_chunks/primitives.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { m as
|
|
8
|
-
const y = r, N = m,
|
|
5
|
+
import { cn as n } from "./lib/utils.js";
|
|
6
|
+
import { tweens as p } from "./lib/motion.js";
|
|
7
|
+
import { m as d } from "../_chunks/framer.js";
|
|
8
|
+
const y = r, N = m, c = l.forwardRef(({ className: t, children: e, ...i }, s) => /* @__PURE__ */ a(
|
|
9
9
|
o,
|
|
10
10
|
{
|
|
11
11
|
ref: s,
|
|
12
12
|
className: n("overflow-hidden data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up", t),
|
|
13
13
|
...i,
|
|
14
14
|
children: /* @__PURE__ */ a(
|
|
15
|
-
|
|
15
|
+
d.div,
|
|
16
16
|
{
|
|
17
17
|
initial: !1,
|
|
18
18
|
animate: { opacity: 1 },
|
|
@@ -22,9 +22,9 @@ const y = r, N = m, d = l.forwardRef(({ className: t, children: e, ...i }, s) =>
|
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
|
-
|
|
25
|
+
c.displayName = o.displayName;
|
|
26
26
|
export {
|
|
27
27
|
y as Collapsible,
|
|
28
|
-
|
|
28
|
+
c as CollapsibleContent,
|
|
29
29
|
N as CollapsibleTrigger
|
|
30
30
|
};
|
package/dist/ui/color-input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
|
-
import { c } from "
|
|
4
|
+
import { cn as c } from "./lib/utils.js";
|
|
5
5
|
const b = m.forwardRef(
|
|
6
6
|
({ value: s = "#000000", onChange: l, presets: n, disabled: o = !1, className: i, ...u }, f) => {
|
|
7
7
|
const a = (r) => {
|
package/dist/ui/combobox.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as o, Fragment as G } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { b as U, c as q, P as J, d as Q } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as W, IconSearch as Y, IconCheck as Z, IconX as V } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { m as te } from "../_chunks/
|
|
6
|
+
import { cn as p } from "./lib/utils.js";
|
|
7
|
+
import { tweens as ee, springs as se } from "./lib/motion.js";
|
|
8
|
+
import { m as te } from "../_chunks/framer.js";
|
|
9
9
|
const P = 2, re = 36, ae = r.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
options: f,
|
|
@@ -149,7 +149,7 @@ const P = 2, re = 36, ae = r.forwardRef(
|
|
|
149
149
|
onClick: (D) => K(D, t),
|
|
150
150
|
"aria-label": `Remove ${l.label}`,
|
|
151
151
|
tabIndex: -1,
|
|
152
|
-
children: /* @__PURE__ */ a(V, { className: "h-
|
|
152
|
+
children: /* @__PURE__ */ a(V, { className: "h-ico-sm w-ico-sm", "aria-hidden": "true" })
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
]
|
package/dist/ui/container.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { cn as d } from "./lib/utils.js";
|
|
3
3
|
const f = {
|
|
4
4
|
default: "max-w-layout",
|
|
5
5
|
body: "max-w-layout-body",
|
|
6
6
|
full: "max-w-full"
|
|
7
|
-
},
|
|
7
|
+
}, u = a.forwardRef(
|
|
8
8
|
({ as: t, maxWidth: o = "default", className: e, children: l, ...m }, n) => {
|
|
9
9
|
const r = t || "div";
|
|
10
10
|
return a.createElement(
|
|
@@ -18,7 +18,7 @@ const f = {
|
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
u.displayName = "Container";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
u as Container
|
|
24
24
|
};
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { e as f, f as p, g as x, h as b, i as y, j as C, k as N, l as h, L as g, m as M, G, n as P, o as T, p as L, q as z } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronRight as A, IconCheck as q, IconCircle as U } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { A as R, m as S } from "../_chunks/
|
|
6
|
+
import { cn as d } from "./lib/utils.js";
|
|
7
|
+
import { tweens as w, springs as v } from "./lib/motion.js";
|
|
8
|
+
import { A as R, m as S } from "../_chunks/framer.js";
|
|
9
9
|
const I = n.createContext(!1), k = n.createContext(!1), B = ({
|
|
10
10
|
onOpenChange: e,
|
|
11
11
|
...a
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { IconSearch as v, IconColumns3 as w, IconTextResize as D, IconDownload as N } from "@tabler/icons-react";
|
|
4
4
|
import { DropdownMenu as y, DropdownMenuTrigger as T, DropdownMenuContent as k, DropdownMenuLabel as I, DropdownMenuSeparator as L, DropdownMenuCheckboxItem as j } from "./dropdown-menu.js";
|
|
5
|
-
import {
|
|
5
|
+
import { cn as f } from "./lib/utils.js";
|
|
6
6
|
const b = {
|
|
7
7
|
compact: "Compact",
|
|
8
8
|
standard: "Standard",
|
|
@@ -45,9 +45,9 @@ function R({
|
|
|
45
45
|
...a
|
|
46
46
|
}) {
|
|
47
47
|
const i = n.getAllColumns().filter((e) => e.getCanHide() && e.id !== "_select");
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
m && /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ s("div", { className: f("flex items-center gap-ds-03 pb-ds-04", t), ...a, children: [
|
|
49
|
+
m && /* @__PURE__ */ s("div", { className: "flex flex-1 items-center gap-ds-02", children: [
|
|
50
|
+
/* @__PURE__ */ o(
|
|
51
51
|
v,
|
|
52
52
|
{
|
|
53
53
|
size: 16,
|
|
@@ -55,7 +55,7 @@ function R({
|
|
|
55
55
|
"aria-hidden": "true"
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ o(
|
|
59
59
|
"input",
|
|
60
60
|
{
|
|
61
61
|
type: "text",
|
|
@@ -72,26 +72,26 @@ function R({
|
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
74
|
] }),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
i.length > 0 && /* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ s("div", { className: "ml-auto flex items-center gap-ds-03", children: [
|
|
76
|
+
i.length > 0 && /* @__PURE__ */ s(y, { children: [
|
|
77
|
+
/* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ s(
|
|
78
78
|
"button",
|
|
79
79
|
{
|
|
80
80
|
type: "button",
|
|
81
81
|
className: g,
|
|
82
82
|
"aria-label": "Toggle column visibility",
|
|
83
83
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ o(w, { size: 16, className: d }),
|
|
85
85
|
"Columns"
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
) }),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ s(k, { align: "end", className: "w-40", children: [
|
|
90
|
+
/* @__PURE__ */ o(I, { children: "Toggle columns" }),
|
|
91
|
+
/* @__PURE__ */ o(L, {}),
|
|
92
92
|
i.map((e) => {
|
|
93
93
|
const h = e.columnDef.header, C = typeof h == "string" ? h : e.id;
|
|
94
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ o(
|
|
95
95
|
j,
|
|
96
96
|
{
|
|
97
97
|
checked: e.getIsVisible(),
|
|
@@ -103,7 +103,7 @@ function R({
|
|
|
103
103
|
})
|
|
104
104
|
] })
|
|
105
105
|
] }),
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ s(
|
|
107
107
|
"button",
|
|
108
108
|
{
|
|
109
109
|
type: "button",
|
|
@@ -112,12 +112,12 @@ function R({
|
|
|
112
112
|
"aria-label": `Table density: ${b[l]}. Click to change.`,
|
|
113
113
|
title: `Density: ${b[l]}`,
|
|
114
114
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ o(D, { size: 16, className: d }),
|
|
116
116
|
b[l]
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
r && /* @__PURE__ */
|
|
120
|
+
r && /* @__PURE__ */ s(
|
|
121
121
|
"button",
|
|
122
122
|
{
|
|
123
123
|
type: "button",
|
|
@@ -125,7 +125,7 @@ function R({
|
|
|
125
125
|
onClick: () => S(n),
|
|
126
126
|
"aria-label": "Export table as CSV",
|
|
127
127
|
children: [
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ o(N, { size: 16, className: d }),
|
|
129
129
|
"Export"
|
|
130
130
|
]
|
|
131
131
|
}
|