@devalok/shilp-sutra 0.33.2 → 0.34.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/_chunks/badge-group.js +9 -9
- package/dist/_chunks/date-time-picker.js +6 -6
- package/dist/_chunks/document-preview.js +6 -6
- package/dist/_chunks/file-preview.js +1 -1
- package/dist/_chunks/image-preview.js +4 -4
- package/dist/_chunks/tree-view.js +1 -1
- package/dist/_chunks/typing-indicator.js +2 -2
- package/dist/_chunks/use-calendar.js +2 -2
- package/dist/ai/command-bar.js +2 -2
- package/dist/composed/command-palette.js +1 -1
- package/dist/composed/inline-edit.js +5 -5
- package/dist/composed/master-detail.js +30 -30
- package/dist/composed/multi-select-popover.js +1 -1
- package/dist/composed/page-header.js +9 -9
- package/dist/composed/rich-chat-input.js +8 -8
- package/dist/composed/rich-text-editor.js +16 -16
- package/dist/shell/top-bar.js +29 -29
- package/dist/tailwind/index.cjs +2 -11
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +2 -11
- package/dist/ui/accordion.js +11 -11
- package/dist/ui/alert-dialog.js +5 -5
- package/dist/ui/alert.js +1 -1
- package/dist/ui/autocomplete.js +1 -1
- package/dist/ui/banner.js +4 -4
- package/dist/ui/breadcrumb.js +10 -10
- package/dist/ui/button.js +1 -1
- package/dist/ui/checkbox.js +9 -9
- package/dist/ui/color-input.js +27 -27
- package/dist/ui/combobox.js +4 -4
- package/dist/ui/context-menu.js +9 -9
- package/dist/ui/data-table-body.js +8 -8
- package/dist/ui/data-table-header.js +1 -1
- package/dist/ui/data-table-toolbar.js +1 -1
- package/dist/ui/data-table.js +1 -1
- package/dist/ui/dialog.js +7 -7
- package/dist/ui/dropdown-menu.js +46 -46
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input.js +8 -8
- package/dist/ui/link.js +4 -4
- package/dist/ui/menubar.js +52 -52
- package/dist/ui/navigation-menu.js +15 -15
- package/dist/ui/number-input.js +5 -5
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +32 -32
- package/dist/ui/radio.js +6 -6
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.js +2 -2
- package/dist/ui/sheet.js +8 -8
- package/dist/ui/sidebar.js +5 -5
- package/dist/ui/slider.js +4 -4
- package/dist/ui/split-button.js +3 -3
- package/dist/ui/switch.js +4 -4
- package/dist/ui/tabs.js +2 -2
- package/dist/ui/textarea.js +4 -4
- package/dist/ui/toast.js +2 -2
- package/dist/ui/toggle.js +4 -4
- package/llms-full.txt +1 -1
- package/llms.txt +12 -0
- package/package.json +3 -3
package/dist/ui/color-input.js
CHANGED
|
@@ -9,27 +9,27 @@ import { m as x, A as V } from "../_chunks/framer.js";
|
|
|
9
9
|
function B(l) {
|
|
10
10
|
const a = /^#?([0-9a-f]{6})$/i.exec(l);
|
|
11
11
|
if (!a) return null;
|
|
12
|
-
const
|
|
13
|
-
return { r:
|
|
12
|
+
const s = parseInt(a[1], 16);
|
|
13
|
+
return { r: s >> 16 & 255, g: s >> 8 & 255, b: s & 255 };
|
|
14
14
|
}
|
|
15
|
-
function O(l, a,
|
|
16
|
-
return "#" + [l, a,
|
|
15
|
+
function O(l, a, s) {
|
|
16
|
+
return "#" + [l, a, s].map((t) => Math.max(0, Math.min(255, Math.round(t))).toString(16).padStart(2, "0")).join("");
|
|
17
17
|
}
|
|
18
18
|
function ee(l) {
|
|
19
19
|
const a = B(l);
|
|
20
20
|
if (!a) return null;
|
|
21
|
-
const
|
|
22
|
-
if (c ===
|
|
23
|
-
const h = c -
|
|
21
|
+
const s = a.r / 255, t = a.g / 255, i = a.b / 255, c = Math.max(s, t, i), o = Math.min(s, t, i), p = (c + o) / 2;
|
|
22
|
+
if (c === o) return { h: 0, s: 0, l: Math.round(p * 100) };
|
|
23
|
+
const h = c - o, N = p > 0.5 ? h / (2 - c - o) : h / (c - o);
|
|
24
24
|
let M = 0;
|
|
25
|
-
return c ===
|
|
25
|
+
return c === s ? M = ((t - i) / h + (t < i ? 6 : 0)) / 6 : c === t ? M = ((i - s) / h + 2) / 6 : M = ((s - t) / h + 4) / 6, { h: Math.round(M * 360), s: Math.round(N * 100), l: Math.round(p * 100) };
|
|
26
26
|
}
|
|
27
|
-
function te(l, a,
|
|
28
|
-
const t = a / 100, i =
|
|
27
|
+
function te(l, a, s) {
|
|
28
|
+
const t = a / 100, i = s / 100, c = t * Math.min(i, 1 - i), o = (p) => {
|
|
29
29
|
const h = (p + l / 30) % 12, N = i - c * Math.max(Math.min(h - 3, 9 - h, 1), -1);
|
|
30
30
|
return Math.round(255 * N);
|
|
31
31
|
};
|
|
32
|
-
return O(
|
|
32
|
+
return O(o(0), o(8), o(4));
|
|
33
33
|
}
|
|
34
34
|
const re = [
|
|
35
35
|
{ hex: "#EF4444", label: "Red" },
|
|
@@ -46,27 +46,27 @@ const re = [
|
|
|
46
46
|
function ae(l) {
|
|
47
47
|
const a = B(l);
|
|
48
48
|
if (!a) return !1;
|
|
49
|
-
const [
|
|
50
|
-
const
|
|
51
|
-
return
|
|
49
|
+
const [s, t, i] = [a.r, a.g, a.b].map((c) => {
|
|
50
|
+
const o = c / 255;
|
|
51
|
+
return o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
|
|
52
52
|
});
|
|
53
|
-
return 0.2126 *
|
|
53
|
+
return 0.2126 * s + 0.7152 * t + 0.0722 * i > 0.4;
|
|
54
54
|
}
|
|
55
55
|
function w({
|
|
56
56
|
label: l,
|
|
57
57
|
value: a,
|
|
58
|
-
onChange:
|
|
58
|
+
onChange: s,
|
|
59
59
|
onBlur: t,
|
|
60
60
|
disabled: i,
|
|
61
61
|
maxLength: c = 3,
|
|
62
|
-
prefix:
|
|
62
|
+
prefix: o,
|
|
63
63
|
className: p,
|
|
64
64
|
id: h
|
|
65
65
|
}) {
|
|
66
66
|
return /* @__PURE__ */ f("div", { className: k("flex flex-col gap-ds-01", p), children: [
|
|
67
67
|
/* @__PURE__ */ r("label", { htmlFor: h, className: "text-ds-xs font-medium uppercase tracking-wider text-surface-fg-muted", children: l }),
|
|
68
68
|
/* @__PURE__ */ f("div", { className: "flex items-center", children: [
|
|
69
|
-
|
|
69
|
+
o && /* @__PURE__ */ r("span", { className: "text-ds-sm text-surface-fg-muted", children: o }),
|
|
70
70
|
/* @__PURE__ */ r(
|
|
71
71
|
"input",
|
|
72
72
|
{
|
|
@@ -74,12 +74,12 @@ function w({
|
|
|
74
74
|
type: "text",
|
|
75
75
|
value: a,
|
|
76
76
|
disabled: i,
|
|
77
|
-
onChange: (N) =>
|
|
77
|
+
onChange: (N) => s(N.target.value),
|
|
78
78
|
onBlur: t,
|
|
79
79
|
maxLength: c,
|
|
80
80
|
className: k(
|
|
81
81
|
"h-ds-xs-plus w-full rounded-ds-sm border border-surface-border bg-surface-overlay px-ds-02 font-mono text-ds-sm text-surface-fg transition-colors",
|
|
82
|
-
"focus:border-accent-7 focus:outline-
|
|
82
|
+
"focus:border-accent-7 focus:outline-hidden focus:ring-1 focus:ring-accent-9",
|
|
83
83
|
i && "cursor-not-allowed opacity-50"
|
|
84
84
|
)
|
|
85
85
|
}
|
|
@@ -91,11 +91,11 @@ const ne = g.forwardRef(
|
|
|
91
91
|
({
|
|
92
92
|
value: l = "#000000",
|
|
93
93
|
onChange: a,
|
|
94
|
-
presets:
|
|
94
|
+
presets: s,
|
|
95
95
|
disabled: t = !1,
|
|
96
96
|
showPicker: i = !0,
|
|
97
97
|
defaultFormat: c = "hex",
|
|
98
|
-
align:
|
|
98
|
+
align: o = "start",
|
|
99
99
|
variant: p = "default",
|
|
100
100
|
className: h,
|
|
101
101
|
...N
|
|
@@ -122,7 +122,7 @@ const ne = g.forwardRef(
|
|
|
122
122
|
F((m) => m.slice(0, -1)), S(e), a?.(e);
|
|
123
123
|
}, q = () => {
|
|
124
124
|
S(v), a?.(v), F([]);
|
|
125
|
-
}, z =
|
|
125
|
+
}, z = s === !1 ? [] : s ? s.map(
|
|
126
126
|
(e) => typeof e == "string" ? { hex: e, label: e } : e
|
|
127
127
|
) : re, y = B(n), C = ee(n), L = (e, m) => {
|
|
128
128
|
if (!y) return;
|
|
@@ -153,7 +153,7 @@ const ne = g.forwardRef(
|
|
|
153
153
|
disabled: t,
|
|
154
154
|
className: k(
|
|
155
155
|
"group flex items-center justify-center rounded-ds-md px-ds-04 py-ds-02 font-mono text-ds-sm font-medium",
|
|
156
|
-
"focus:outline-
|
|
156
|
+
"focus:outline-hidden focus:ring-2 focus:ring-accent-9 focus:ring-offset-2 focus:ring-offset-surface-base",
|
|
157
157
|
t && "cursor-not-allowed opacity-50"
|
|
158
158
|
),
|
|
159
159
|
animate: {
|
|
@@ -173,7 +173,7 @@ const ne = g.forwardRef(
|
|
|
173
173
|
disabled: t,
|
|
174
174
|
className: k(
|
|
175
175
|
"group relative flex items-center overflow-hidden rounded-ds-md border border-surface-border-strong",
|
|
176
|
-
"hover:border-accent-7 focus:border-accent-7 focus:outline-
|
|
176
|
+
"hover:border-accent-7 focus:border-accent-7 focus:outline-hidden focus:ring-1 focus:ring-accent-9",
|
|
177
177
|
t && "cursor-not-allowed opacity-50"
|
|
178
178
|
),
|
|
179
179
|
whileHover: { scale: 1.02 },
|
|
@@ -202,7 +202,7 @@ const ne = g.forwardRef(
|
|
|
202
202
|
/* @__PURE__ */ r(
|
|
203
203
|
Y,
|
|
204
204
|
{
|
|
205
|
-
align:
|
|
205
|
+
align: o,
|
|
206
206
|
sideOffset: 8,
|
|
207
207
|
className: "w-[272px] rounded-ds-xl border border-surface-border-strong bg-surface-overlay p-0 shadow-floating",
|
|
208
208
|
children: /* @__PURE__ */ f("div", { className: "flex flex-col", children: [
|
|
@@ -211,7 +211,7 @@ const ne = g.forwardRef(
|
|
|
211
211
|
{
|
|
212
212
|
color: n,
|
|
213
213
|
onChange: Z,
|
|
214
|
-
className: "
|
|
214
|
+
className: "w-full!",
|
|
215
215
|
style: { height: 160 }
|
|
216
216
|
}
|
|
217
217
|
) }),
|
package/dist/ui/combobox.js
CHANGED
|
@@ -140,7 +140,7 @@ const A = 2, ae = 36, ne = r.forwardRef(
|
|
|
140
140
|
"button",
|
|
141
141
|
{
|
|
142
142
|
type: "button",
|
|
143
|
-
className: "inline-flex items-center justify-center rounded-ds-full outline-
|
|
143
|
+
className: "inline-flex items-center justify-center rounded-ds-full outline-hidden hover:scale-110 hover:bg-surface-raised-hover transition-transform duration-fast-01 ease-productive-standard",
|
|
144
144
|
onClick: (E) => K(E, t),
|
|
145
145
|
"aria-label": `Remove ${l.label}`,
|
|
146
146
|
tabIndex: -1,
|
|
@@ -181,7 +181,7 @@ const A = 2, ae = 36, ne = r.forwardRef(
|
|
|
181
181
|
className: h(
|
|
182
182
|
"flex h-ds-md w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-raised-hover px-ds-04 py-ds-03 text-ds-md",
|
|
183
183
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
184
|
-
"focus-visible:outline-
|
|
184
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7",
|
|
185
185
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
186
186
|
m && "border-accent-7",
|
|
187
187
|
j
|
|
@@ -218,7 +218,7 @@ const A = 2, ae = 36, ne = r.forwardRef(
|
|
|
218
218
|
{
|
|
219
219
|
ref: I,
|
|
220
220
|
type: "text",
|
|
221
|
-
className: "flex-1 bg-transparent py-ds-03 text-ds-md outline-
|
|
221
|
+
className: "flex-1 bg-transparent py-ds-03 text-ds-md outline-hidden placeholder:text-surface-fg-subtle",
|
|
222
222
|
placeholder: L,
|
|
223
223
|
value: v,
|
|
224
224
|
onChange: (e) => {
|
|
@@ -251,7 +251,7 @@ const A = 2, ae = 36, ne = r.forwardRef(
|
|
|
251
251
|
"aria-selected": t,
|
|
252
252
|
"aria-disabled": e.disabled || void 0,
|
|
253
253
|
className: h(
|
|
254
|
-
"relative flex cursor-pointer select-none items-center gap-ds-03 rounded-ds-md px-ds-04 py-ds-03 text-ds-md outline-
|
|
254
|
+
"relative flex cursor-pointer select-none items-center gap-ds-03 rounded-ds-md px-ds-04 py-ds-03 text-ds-md outline-hidden",
|
|
255
255
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
256
256
|
i === s && "bg-accent-2",
|
|
257
257
|
t && "text-accent-11",
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import { s as f, t as x, u as b, v as y, w as C, x as
|
|
4
|
+
import { s as f, t as x, u as b, v as y, w as C, x as h, y as g, z as N, L as M, B as v, G, E as P, J as j, K as T, M as L } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronRight as A, IconCheck as B, IconCircle as E } from "@tabler/icons-react";
|
|
6
6
|
import { cn as d } from "./lib/utils.js";
|
|
7
7
|
import { tweens as w, springs as R } from "./lib/motion.js";
|
|
@@ -40,7 +40,7 @@ const re = P, U = n.forwardRef(({ className: e, inset: s, children: a, ...o }, r
|
|
|
40
40
|
{
|
|
41
41
|
ref: r,
|
|
42
42
|
className: d(
|
|
43
|
-
"flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-
|
|
43
|
+
"flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-hidden focus:bg-surface-raised focus:text-surface-fg data-[state=open]:bg-surface-raised data-[state=open]:text-surface-fg",
|
|
44
44
|
s && "pl-ds-07",
|
|
45
45
|
e
|
|
46
46
|
),
|
|
@@ -111,7 +111,7 @@ const F = n.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
|
|
|
111
111
|
{
|
|
112
112
|
ref: o,
|
|
113
113
|
className: d(
|
|
114
|
-
"relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-
|
|
114
|
+
"relative flex cursor-default select-none items-center rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-hidden focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
115
115
|
s && "pl-ds-07",
|
|
116
116
|
e
|
|
117
117
|
),
|
|
@@ -120,33 +120,33 @@ const F = n.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
|
|
|
120
120
|
));
|
|
121
121
|
F.displayName = C.displayName;
|
|
122
122
|
const H = n.forwardRef(({ className: e, children: s, checked: a, ...o }, r) => /* @__PURE__ */ l(
|
|
123
|
-
|
|
123
|
+
h,
|
|
124
124
|
{
|
|
125
125
|
ref: r,
|
|
126
126
|
className: d(
|
|
127
|
-
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-
|
|
127
|
+
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-hidden focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
128
128
|
e
|
|
129
129
|
),
|
|
130
130
|
checked: a,
|
|
131
131
|
...o,
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(
|
|
133
|
+
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(u, { icon: B, size: "sm" }) }) }),
|
|
134
134
|
s
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
));
|
|
138
|
-
H.displayName =
|
|
138
|
+
H.displayName = h.displayName;
|
|
139
139
|
const Q = n.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__ */ l(
|
|
140
140
|
N,
|
|
141
141
|
{
|
|
142
142
|
ref: o,
|
|
143
143
|
className: d(
|
|
144
|
-
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-
|
|
144
|
+
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-hidden focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
145
145
|
e
|
|
146
146
|
),
|
|
147
147
|
...a,
|
|
148
148
|
children: [
|
|
149
|
-
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(
|
|
149
|
+
/* @__PURE__ */ t("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(u, { icon: E, size: "sm", className: "fill-current" }) }) }),
|
|
150
150
|
s
|
|
151
151
|
]
|
|
152
152
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as e, jsxs as N } from "react/jsx-runtime";
|
|
3
3
|
import D, { useCallback as w, useState as S, useRef as T, useEffect as I } from "react";
|
|
4
4
|
import { flexRender as _ } from "@tanstack/react-table";
|
|
5
|
-
import { TableBody as
|
|
5
|
+
import { TableBody as h, TableRow as p, TableCell as b } from "./table.js";
|
|
6
6
|
import { Skeleton as E } from "./skeleton.js";
|
|
7
7
|
import { cn as m } from "./lib/utils.js";
|
|
8
8
|
import { useDataTableContext as x, INTERACTIVE_SELECTOR as $, getPinnedCellStyle as V, isColumnEditable as P, getColumnMetaClasses as A } from "./data-table-context.js";
|
|
@@ -34,7 +34,7 @@ function B({
|
|
|
34
34
|
"border border-accent-7 bg-surface-raised-hover",
|
|
35
35
|
"px-ds-02 text-ds-sm",
|
|
36
36
|
"text-surface-fg placeholder:text-surface-fg-subtle",
|
|
37
|
-
"outline-
|
|
37
|
+
"outline-hidden focus:border-accent-7"
|
|
38
38
|
),
|
|
39
39
|
"aria-label": "Edit cell value"
|
|
40
40
|
}
|
|
@@ -61,7 +61,7 @@ function v({
|
|
|
61
61
|
[n, t.original]
|
|
62
62
|
), R = t.getVisibleCells();
|
|
63
63
|
return /* @__PURE__ */ e(
|
|
64
|
-
|
|
64
|
+
p,
|
|
65
65
|
{
|
|
66
66
|
"data-state": t.getIsSelected() && "selected",
|
|
67
67
|
style: a,
|
|
@@ -113,7 +113,7 @@ function j({
|
|
|
113
113
|
}) {
|
|
114
114
|
const { allColumns: c, expandable: s, renderExpanded: o, virtualRows: r } = x();
|
|
115
115
|
return !s || !t.getIsExpanded() || !o ? null : /* @__PURE__ */ e(
|
|
116
|
-
|
|
116
|
+
p,
|
|
117
117
|
{
|
|
118
118
|
style: a,
|
|
119
119
|
className: r ? "absolute w-full flex" : void 0,
|
|
@@ -135,7 +135,7 @@ function M({
|
|
|
135
135
|
rowCount: t
|
|
136
136
|
}) {
|
|
137
137
|
const { allColumns: a, cellPadding: c } = x(), s = a.length, o = ["w-3/4", "w-1/2", "w-2/3", "w-full"];
|
|
138
|
-
return /* @__PURE__ */ e(
|
|
138
|
+
return /* @__PURE__ */ e(h, { children: Array.from({ length: t }, (r, u) => /* @__PURE__ */ e(p, { children: Array.from({ length: s }, (l, d) => {
|
|
139
139
|
const n = (a[d]?.id ?? a[d]?.header) === "_select";
|
|
140
140
|
return /* @__PURE__ */ e(
|
|
141
141
|
b,
|
|
@@ -174,7 +174,7 @@ function q({
|
|
|
174
174
|
}) {
|
|
175
175
|
const { table: u, allColumns: l, virtualRows: d } = x(), f = u.getRowModel().rows;
|
|
176
176
|
return t ? /* @__PURE__ */ e(M, { rowCount: a }) : f.length ? d && o ? /* @__PURE__ */ e(
|
|
177
|
-
|
|
177
|
+
h,
|
|
178
178
|
{
|
|
179
179
|
style: {
|
|
180
180
|
height: `${r}px`,
|
|
@@ -199,10 +199,10 @@ function q({
|
|
|
199
199
|
);
|
|
200
200
|
})
|
|
201
201
|
}
|
|
202
|
-
) : /* @__PURE__ */ e(
|
|
202
|
+
) : /* @__PURE__ */ e(h, { children: f.map((n) => /* @__PURE__ */ N(D.Fragment, { children: [
|
|
203
203
|
/* @__PURE__ */ e(v, { row: n }),
|
|
204
204
|
/* @__PURE__ */ e(j, { row: n })
|
|
205
|
-
] }, n.id)) }) : /* @__PURE__ */ e(
|
|
205
|
+
] }, n.id)) }) : /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
206
206
|
b,
|
|
207
207
|
{
|
|
208
208
|
colSpan: l.length,
|
|
@@ -128,7 +128,7 @@ function R({ stickyHeader: g }) {
|
|
|
128
128
|
"border border-surface-border-strong bg-surface-raised-hover",
|
|
129
129
|
"px-ds-02 text-ds-sm",
|
|
130
130
|
"text-surface-fg placeholder:text-surface-fg-subtle",
|
|
131
|
-
"outline-
|
|
131
|
+
"outline-hidden focus:border-accent-7"
|
|
132
132
|
)
|
|
133
133
|
}
|
|
134
134
|
) }, `${e.id}-filter`)) }, `${n.id}-filters`))
|
package/dist/ui/data-table.js
CHANGED
package/dist/ui/dialog.js
CHANGED
|
@@ -8,7 +8,7 @@ import { tweens as g, springs as j } from "./lib/motion.js";
|
|
|
8
8
|
import { Icon as I } from "./icon.js";
|
|
9
9
|
import { useIsMobile as T } from "../hooks/use-mobile.js";
|
|
10
10
|
import { A as z, m as u } from "../_chunks/framer.js";
|
|
11
|
-
const
|
|
11
|
+
const h = t.createContext({ open: !1 }), P = () => t.useContext(h), A = ({
|
|
12
12
|
open: a,
|
|
13
13
|
defaultOpen: o,
|
|
14
14
|
onOpenChange: e,
|
|
@@ -20,10 +20,10 @@ const N = t.createContext({ open: !1 }), P = () => t.useContext(N), A = ({
|
|
|
20
20
|
},
|
|
21
21
|
[l, e]
|
|
22
22
|
), w = t.useMemo(() => ({ open: i }), [i]);
|
|
23
|
-
return /* @__PURE__ */ s(
|
|
23
|
+
return /* @__PURE__ */ s(h.Provider, { value: w, children: /* @__PURE__ */ s(R, { open: i, onOpenChange: D, ...n }) });
|
|
24
24
|
};
|
|
25
25
|
A.displayName = "Dialog";
|
|
26
|
-
const W = M, F = C, Y = x,
|
|
26
|
+
const W = M, F = C, Y = x, N = t.forwardRef(({ className: a, ...o }, e) => /* @__PURE__ */ s(
|
|
27
27
|
y,
|
|
28
28
|
{
|
|
29
29
|
ref: e,
|
|
@@ -35,11 +35,11 @@ const W = M, F = C, Y = x, h = t.forwardRef(({ className: a, ...o }, e) => /* @_
|
|
|
35
35
|
...o
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
|
-
|
|
38
|
+
N.displayName = y.displayName;
|
|
39
39
|
const H = t.forwardRef(({ className: a, children: o, responsive: e, ...n }, d) => {
|
|
40
40
|
const { open: c } = P(), l = T(), i = e !== !1 && l;
|
|
41
41
|
return /* @__PURE__ */ s(z, { children: c && /* @__PURE__ */ m(F, { forceMount: !0, children: [
|
|
42
|
-
/* @__PURE__ */ s(
|
|
42
|
+
/* @__PURE__ */ s(N, { asChild: !0, children: /* @__PURE__ */ s(
|
|
43
43
|
u.div,
|
|
44
44
|
{
|
|
45
45
|
initial: { opacity: 0 },
|
|
@@ -69,7 +69,7 @@ const H = t.forwardRef(({ className: a, children: o, responsive: e, ...n }, d) =
|
|
|
69
69
|
),
|
|
70
70
|
children: [
|
|
71
71
|
o,
|
|
72
|
-
/* @__PURE__ */ m(x, { title: "Close", className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-raised-hover active:scale-90 focus-visible:outline-
|
|
72
|
+
/* @__PURE__ */ m(x, { title: "Close", className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-raised-hover active:scale-90 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
|
|
73
73
|
/* @__PURE__ */ s(I, { icon: O, size: "lg" }),
|
|
74
74
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "Close" })
|
|
75
75
|
] })
|
|
@@ -147,7 +147,7 @@ export {
|
|
|
147
147
|
q as DialogDescription,
|
|
148
148
|
V as DialogFooter,
|
|
149
149
|
S as DialogHeader,
|
|
150
|
-
|
|
150
|
+
N as DialogOverlay,
|
|
151
151
|
F as DialogPortal,
|
|
152
152
|
X as DialogTitle,
|
|
153
153
|
W as DialogTrigger
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import { N as f, Q as b, U as
|
|
4
|
+
import { N as f, Q as b, U as h, V as g, W as y, X as w, Y as v, Z as x, _ as N, $ as C, a0 as P, a1 as _, a2 as j, a3 as z, a4 as G } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronRight as T, IconCheck as U, IconCircle as A } from "@tabler/icons-react";
|
|
6
6
|
import { cn as d } from "./lib/utils.js";
|
|
7
7
|
import { tweens as M, springs as D } from "./lib/motion.js";
|
|
@@ -9,52 +9,52 @@ import { Icon as R } from "./icon.js";
|
|
|
9
9
|
import { A as S, m as I } from "../_chunks/framer.js";
|
|
10
10
|
const k = t.createContext(!1), O = t.createContext(!1), L = ({
|
|
11
11
|
open: e,
|
|
12
|
-
defaultOpen:
|
|
13
|
-
onOpenChange:
|
|
12
|
+
defaultOpen: a = !1,
|
|
13
|
+
onOpenChange: o,
|
|
14
14
|
...r
|
|
15
15
|
}) => {
|
|
16
|
-
const [n, c] = t.useState(
|
|
16
|
+
const [n, c] = t.useState(a), i = e !== void 0, l = i ? e : n, u = t.useCallback(
|
|
17
17
|
(p) => {
|
|
18
|
-
i || c(p),
|
|
18
|
+
i || c(p), o?.(p);
|
|
19
19
|
},
|
|
20
|
-
[i,
|
|
20
|
+
[i, o]
|
|
21
21
|
);
|
|
22
22
|
return /* @__PURE__ */ s(k.Provider, { value: l, children: /* @__PURE__ */ s(_, { open: l, onOpenChange: u, ...r }) });
|
|
23
23
|
};
|
|
24
24
|
L.displayName = "DropdownMenu";
|
|
25
|
-
const
|
|
25
|
+
const oe = P, re = j, te = h, Q = ({
|
|
26
26
|
open: e,
|
|
27
|
-
defaultOpen:
|
|
28
|
-
onOpenChange:
|
|
27
|
+
defaultOpen: a = !1,
|
|
28
|
+
onOpenChange: o,
|
|
29
29
|
...r
|
|
30
30
|
}) => {
|
|
31
|
-
const [n, c] = t.useState(
|
|
31
|
+
const [n, c] = t.useState(a), i = e !== void 0, l = i ? e : n, u = t.useCallback(
|
|
32
32
|
(p) => {
|
|
33
|
-
i || c(p),
|
|
33
|
+
i || c(p), o?.(p);
|
|
34
34
|
},
|
|
35
|
-
[i,
|
|
35
|
+
[i, o]
|
|
36
36
|
);
|
|
37
37
|
return /* @__PURE__ */ s(O.Provider, { value: l, children: /* @__PURE__ */ s(G, { open: l, onOpenChange: u, ...r }) });
|
|
38
38
|
};
|
|
39
39
|
Q.displayName = "DropdownMenuSub";
|
|
40
|
-
const ne = z, V = t.forwardRef(({ className: e, inset:
|
|
40
|
+
const ne = z, V = t.forwardRef(({ className: e, inset: a, children: o, ...r }, n) => /* @__PURE__ */ m(
|
|
41
41
|
f,
|
|
42
42
|
{
|
|
43
43
|
ref: n,
|
|
44
44
|
className: d(
|
|
45
|
-
"flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-
|
|
46
|
-
|
|
45
|
+
"flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-hidden focus:bg-surface-raised data-[state=open]:bg-surface-raised [&_svg]:pointer-events-none [&_svg]:h-ico-sm [&_svg]:w-ico-sm [&_svg]:shrink-0",
|
|
46
|
+
a && "pl-ds-07",
|
|
47
47
|
e
|
|
48
48
|
),
|
|
49
49
|
...r,
|
|
50
50
|
children: [
|
|
51
|
-
|
|
51
|
+
o,
|
|
52
52
|
/* @__PURE__ */ s(R, { icon: T, size: "sm", className: "ml-auto" })
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
));
|
|
56
56
|
V.displayName = f.displayName;
|
|
57
|
-
const W = t.forwardRef(({ className: e, children:
|
|
57
|
+
const W = t.forwardRef(({ className: e, children: a, ...o }, r) => {
|
|
58
58
|
const n = t.useContext(O);
|
|
59
59
|
return /* @__PURE__ */ s(S, { children: n && /* @__PURE__ */ s(
|
|
60
60
|
b,
|
|
@@ -62,7 +62,7 @@ const W = t.forwardRef(({ className: e, children: o, ...a }, r) => {
|
|
|
62
62
|
ref: r,
|
|
63
63
|
forceMount: !0,
|
|
64
64
|
asChild: !0,
|
|
65
|
-
...
|
|
65
|
+
...o,
|
|
66
66
|
children: /* @__PURE__ */ s(
|
|
67
67
|
I.div,
|
|
68
68
|
{
|
|
@@ -74,20 +74,20 @@ const W = t.forwardRef(({ className: e, children: o, ...a }, r) => {
|
|
|
74
74
|
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
75
75
|
e
|
|
76
76
|
),
|
|
77
|
-
children:
|
|
77
|
+
children: a
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
}
|
|
81
81
|
) });
|
|
82
82
|
});
|
|
83
83
|
W.displayName = b.displayName;
|
|
84
|
-
const X = t.forwardRef(({ className: e, sideOffset:
|
|
84
|
+
const X = t.forwardRef(({ className: e, sideOffset: a = 4, children: o, ...r }, n) => {
|
|
85
85
|
const c = t.useContext(k);
|
|
86
|
-
return /* @__PURE__ */ s(S, { children: c && /* @__PURE__ */ s(
|
|
87
|
-
|
|
86
|
+
return /* @__PURE__ */ s(S, { children: c && /* @__PURE__ */ s(h, { forceMount: !0, children: /* @__PURE__ */ s(
|
|
87
|
+
g,
|
|
88
88
|
{
|
|
89
89
|
ref: n,
|
|
90
|
-
sideOffset:
|
|
90
|
+
sideOffset: a,
|
|
91
91
|
forceMount: !0,
|
|
92
92
|
asChild: !0,
|
|
93
93
|
...r,
|
|
@@ -102,89 +102,89 @@ const X = t.forwardRef(({ className: e, sideOffset: o = 4, children: a, ...r },
|
|
|
102
102
|
"z-popover min-w-[8rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
103
103
|
e
|
|
104
104
|
),
|
|
105
|
-
children:
|
|
105
|
+
children: o
|
|
106
106
|
}
|
|
107
107
|
)
|
|
108
108
|
}
|
|
109
109
|
) }) });
|
|
110
110
|
});
|
|
111
|
-
X.displayName =
|
|
112
|
-
const Y = t.forwardRef(({ className: e, inset:
|
|
111
|
+
X.displayName = g.displayName;
|
|
112
|
+
const Y = t.forwardRef(({ className: e, inset: a, ...o }, r) => /* @__PURE__ */ s(
|
|
113
113
|
y,
|
|
114
114
|
{
|
|
115
115
|
ref: r,
|
|
116
116
|
className: d(
|
|
117
|
-
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-
|
|
118
|
-
|
|
117
|
+
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-hidden transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-raised focus:bg-surface-raised focus:text-surface-fg active:bg-surface-raised-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
118
|
+
a && "pl-ds-07",
|
|
119
119
|
e
|
|
120
120
|
),
|
|
121
|
-
...
|
|
121
|
+
...o
|
|
122
122
|
}
|
|
123
123
|
));
|
|
124
124
|
Y.displayName = y.displayName;
|
|
125
|
-
const Z = t.forwardRef(({ className: e, children:
|
|
125
|
+
const Z = t.forwardRef(({ className: e, children: a, checked: o, ...r }, n) => /* @__PURE__ */ m(
|
|
126
126
|
w,
|
|
127
127
|
{
|
|
128
128
|
ref: n,
|
|
129
129
|
className: d(
|
|
130
|
-
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-
|
|
130
|
+
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-hidden transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-raised focus:bg-surface-raised focus:text-surface-fg active:bg-surface-raised-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
131
131
|
e
|
|
132
132
|
),
|
|
133
|
-
checked:
|
|
133
|
+
checked: o,
|
|
134
134
|
...r,
|
|
135
135
|
children: [
|
|
136
136
|
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(v, { children: /* @__PURE__ */ s(R, { icon: U, size: "sm" }) }) }),
|
|
137
|
-
|
|
137
|
+
a
|
|
138
138
|
]
|
|
139
139
|
}
|
|
140
140
|
));
|
|
141
141
|
Z.displayName = w.displayName;
|
|
142
|
-
const $ = t.forwardRef(({ className: e, children:
|
|
142
|
+
const $ = t.forwardRef(({ className: e, children: a, ...o }, r) => /* @__PURE__ */ m(
|
|
143
143
|
x,
|
|
144
144
|
{
|
|
145
145
|
ref: r,
|
|
146
146
|
className: d(
|
|
147
|
-
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-
|
|
147
|
+
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-hidden transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-raised focus:bg-surface-raised focus:text-surface-fg active:bg-surface-raised-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
148
148
|
e
|
|
149
149
|
),
|
|
150
|
-
...
|
|
150
|
+
...o,
|
|
151
151
|
children: [
|
|
152
152
|
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(v, { children: /* @__PURE__ */ s(A, { className: "h-2 w-2 fill-current" }) }) }),
|
|
153
|
-
|
|
153
|
+
a
|
|
154
154
|
]
|
|
155
155
|
}
|
|
156
156
|
));
|
|
157
157
|
$.displayName = x.displayName;
|
|
158
|
-
const q = t.forwardRef(({ className: e, inset:
|
|
158
|
+
const q = t.forwardRef(({ className: e, inset: a, ...o }, r) => /* @__PURE__ */ s(
|
|
159
159
|
N,
|
|
160
160
|
{
|
|
161
161
|
ref: r,
|
|
162
162
|
className: d(
|
|
163
163
|
"px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
164
|
-
|
|
164
|
+
a && "pl-ds-07",
|
|
165
165
|
e
|
|
166
166
|
),
|
|
167
|
-
...
|
|
167
|
+
...o
|
|
168
168
|
}
|
|
169
169
|
));
|
|
170
170
|
q.displayName = N.displayName;
|
|
171
|
-
const B = t.forwardRef(({ className: e, ...
|
|
171
|
+
const B = t.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s(
|
|
172
172
|
C,
|
|
173
173
|
{
|
|
174
|
-
ref:
|
|
174
|
+
ref: o,
|
|
175
175
|
className: d("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
|
|
176
|
-
...
|
|
176
|
+
...a
|
|
177
177
|
}
|
|
178
178
|
));
|
|
179
179
|
B.displayName = C.displayName;
|
|
180
180
|
const E = ({
|
|
181
181
|
className: e,
|
|
182
|
-
...
|
|
182
|
+
...a
|
|
183
183
|
}) => /* @__PURE__ */ s(
|
|
184
184
|
"span",
|
|
185
185
|
{
|
|
186
186
|
className: d("ml-auto text-ds-sm text-surface-fg-subtle", e),
|
|
187
|
-
...
|
|
187
|
+
...a
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
190
|
E.displayName = "DropdownMenuShortcut";
|
|
@@ -203,5 +203,5 @@ export {
|
|
|
203
203
|
Q as DropdownMenuSub,
|
|
204
204
|
W as DropdownMenuSubContent,
|
|
205
205
|
V as DropdownMenuSubTrigger,
|
|
206
|
-
|
|
206
|
+
oe as DropdownMenuTrigger
|
|
207
207
|
};
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import { ad as u, ae as p, af as C, ag as g } from "../_chunks/primitives.js";
|
|
5
5
|
import { cn as v } from "./lib/utils.js";
|
|
6
|
-
import { tweens as
|
|
6
|
+
import { tweens as h, springs as y } from "./lib/motion.js";
|
|
7
7
|
import { A as x, m as b } from "../_chunks/framer.js";
|
|
8
8
|
const m = r.createContext(!1), H = ({
|
|
9
9
|
open: t,
|
|
@@ -37,9 +37,9 @@ const M = C, w = r.forwardRef(({ className: t, align: n = "center", sideOffset:
|
|
|
37
37
|
initial: { opacity: 0, scale: 0.95 },
|
|
38
38
|
animate: { opacity: 1, scale: 1 },
|
|
39
39
|
exit: { opacity: 0, scale: 0.95 },
|
|
40
|
-
transition: { ...
|
|
40
|
+
transition: { ...y.snappy, opacity: h.fade },
|
|
41
41
|
className: v(
|
|
42
|
-
"z-popover w-64 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 shadow-floating outline-
|
|
42
|
+
"z-popover w-64 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 shadow-floating outline-hidden",
|
|
43
43
|
t
|
|
44
44
|
),
|
|
45
45
|
children: s
|