@devalok/shilp-sutra 0.33.1 → 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/blocks/block-table.d.ts +1 -1
- package/dist/ai/blocks/block-table.d.ts.map +1 -1
- package/dist/ai/blocks/confirm.d.ts +1 -1
- package/dist/ai/blocks/confirm.d.ts.map +1 -1
- package/dist/ai/blocks/divider.d.ts +1 -1
- package/dist/ai/blocks/divider.d.ts.map +1 -1
- package/dist/ai/blocks/error.d.ts +1 -1
- package/dist/ai/blocks/error.d.ts.map +1 -1
- package/dist/ai/blocks/info.d.ts +2 -2
- package/dist/ai/blocks/info.d.ts.map +1 -1
- package/dist/ai/blocks/loading.d.ts +1 -1
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/blocks/stat-row.d.ts +1 -1
- package/dist/ai/blocks/stat-row.d.ts.map +1 -1
- package/dist/ai/blocks/success.d.ts +1 -1
- package/dist/ai/blocks/success.d.ts.map +1 -1
- package/dist/ai/blocks/text.d.ts +2 -2
- package/dist/ai/blocks/text.d.ts.map +1 -1
- package/dist/ai/command-bar.js +2 -2
- package/dist/ai/devadoot-icon.d.ts +1 -1
- package/dist/ai/devadoot-icon.d.ts.map +1 -1
- 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 +5 -5
package/dist/ui/banner.js
CHANGED
|
@@ -28,8 +28,8 @@ const B = N(
|
|
|
28
28
|
error: h,
|
|
29
29
|
neutral: o
|
|
30
30
|
}, j = r.forwardRef(
|
|
31
|
-
({ className: a, color: s = "info", action: c, actions:
|
|
32
|
-
const t =
|
|
31
|
+
({ className: a, color: s = "info", action: c, actions: d, onDismiss: n, children: l, ...m }, f) => {
|
|
32
|
+
const t = d ?? c, u = V[s ?? "info"], [b, p] = r.useState(!0), g = r.useCallback(() => {
|
|
33
33
|
p(!1);
|
|
34
34
|
}, []);
|
|
35
35
|
return /* @__PURE__ */ e(A, { onExitComplete: n, children: b && /* @__PURE__ */ x(
|
|
@@ -44,14 +44,14 @@ const B = N(
|
|
|
44
44
|
...k(m),
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ e(i, { icon: u, size: "md", className: "shrink-0" }),
|
|
47
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children:
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: l }),
|
|
48
48
|
t && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-ds-02 [&_button]:transition-colors [&_button]:duration-moderate-01 [&_button]:ease-productive-standard [&_button:hover]:bg-current/10", children: t }),
|
|
49
49
|
n && /* @__PURE__ */ e(
|
|
50
50
|
"button",
|
|
51
51
|
{
|
|
52
52
|
type: "button",
|
|
53
53
|
onClick: g,
|
|
54
|
-
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-moderate-01 ease-productive-standard hover:bg-current/10 focus-visible:outline-
|
|
54
|
+
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-moderate-01 ease-productive-standard hover:bg-current/10 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
55
55
|
"aria-label": "Dismiss",
|
|
56
56
|
title: "Dismiss",
|
|
57
57
|
children: /* @__PURE__ */ e(i, { icon: I, size: "sm" })
|
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import { S as d } from "../_chunks/primitives.js";
|
|
4
4
|
import { IconDots as n, IconChevronRight as l } from "@tabler/icons-react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as m from "react";
|
|
6
6
|
import { cn as i } from "./lib/utils.js";
|
|
7
|
-
import { Icon as
|
|
8
|
-
const u =
|
|
7
|
+
import { Icon as o } from "./icon.js";
|
|
8
|
+
const u = m.forwardRef(({ ...e }, r) => /* @__PURE__ */ s("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
|
|
9
9
|
u.displayName = "Breadcrumb";
|
|
10
|
-
const f =
|
|
10
|
+
const f = m.forwardRef(
|
|
11
11
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
12
12
|
"ol",
|
|
13
13
|
{
|
|
@@ -21,23 +21,23 @@ const f = o.forwardRef(
|
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
23
|
f.displayName = "BreadcrumbList";
|
|
24
|
-
const p =
|
|
24
|
+
const p = m.forwardRef(
|
|
25
25
|
({ className: e, ...r }, a) => /* @__PURE__ */ s("li", { ref: a, className: i("inline-flex items-center gap-ds-03", e), ...r })
|
|
26
26
|
);
|
|
27
27
|
p.displayName = "BreadcrumbItem";
|
|
28
|
-
const b =
|
|
28
|
+
const b = m.forwardRef(({ className: e, asChild: r = !1, ...a }, t) => /* @__PURE__ */ s(
|
|
29
29
|
r ? d : "a",
|
|
30
30
|
{
|
|
31
31
|
ref: t,
|
|
32
32
|
className: i(
|
|
33
|
-
"transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg focus-visible:outline-
|
|
33
|
+
"transition-colors duration-fast-01 ease-productive-standard hover:text-surface-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
|
|
34
34
|
e
|
|
35
35
|
),
|
|
36
36
|
...a
|
|
37
37
|
}
|
|
38
38
|
));
|
|
39
39
|
b.displayName = "BreadcrumbLink";
|
|
40
|
-
const g =
|
|
40
|
+
const g = m.forwardRef(
|
|
41
41
|
({ className: e, ...r }, a) => /* @__PURE__ */ s(
|
|
42
42
|
"span",
|
|
43
43
|
{
|
|
@@ -56,7 +56,7 @@ const B = ({ children: e, className: r, ...a }) => /* @__PURE__ */ s(
|
|
|
56
56
|
"aria-hidden": "true",
|
|
57
57
|
className: i("[&>svg]:h-ico-sm [&>svg]:w-ico-sm", r),
|
|
58
58
|
...a,
|
|
59
|
-
children: e ?? /* @__PURE__ */ s(
|
|
59
|
+
children: e ?? /* @__PURE__ */ s(o, { icon: l, size: "sm" })
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
B.displayName = "BreadcrumbSeparator";
|
|
@@ -68,7 +68,7 @@ const N = ({ className: e, ...r }) => /* @__PURE__ */ c(
|
|
|
68
68
|
className: i("flex h-ds-sm-plus w-ds-sm-plus items-center justify-center", e),
|
|
69
69
|
...r,
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */ s(
|
|
71
|
+
/* @__PURE__ */ s(o, { icon: n, size: "sm" }),
|
|
72
72
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "More" })
|
|
73
73
|
]
|
|
74
74
|
}
|
package/dist/ui/button.js
CHANGED
|
@@ -13,7 +13,7 @@ import { cn as i } from "./lib/utils.js";
|
|
|
13
13
|
import { Spinner as B } from "./spinner.js";
|
|
14
14
|
import { u as je, m as Ie } from "../_chunks/framer.js";
|
|
15
15
|
const H = be(
|
|
16
|
-
"relative inline-flex items-center justify-center whitespace-nowrap font-sans select-none overflow-hidden isolate focus-visible:outline-
|
|
16
|
+
"relative inline-flex items-center justify-center whitespace-nowrap font-sans select-none overflow-hidden isolate focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled disabled:cursor-not-allowed disabled:saturate-[0.3] [&>span:not([data-grain])]:relative [&>span:not([data-grain])]:z-[2]",
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { j as l, k as C } from "../_chunks/primitives.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as i from "react";
|
|
5
5
|
import { cn as v } from "./lib/utils.js";
|
|
6
|
-
import { A as w, m as
|
|
6
|
+
import { A as w, m as n } from "../_chunks/framer.js";
|
|
7
7
|
const y = {
|
|
8
8
|
sm: "h-5 w-5",
|
|
9
9
|
md: "h-6 w-6",
|
|
@@ -12,10 +12,10 @@ const y = {
|
|
|
12
12
|
sm: "h-[14px] w-[14px]",
|
|
13
13
|
md: "h-[18px] w-[18px]",
|
|
14
14
|
lg: "h-5 w-5"
|
|
15
|
-
}, j =
|
|
16
|
-
const t = s !== void 0, [b, k] =
|
|
15
|
+
}, j = i.forwardRef(({ className: u, error: m, indeterminate: a, size: o = "md", checked: s, onCheckedChange: c, defaultChecked: d, ...f }, p) => {
|
|
16
|
+
const t = s !== void 0, [b, k] = i.useState(
|
|
17
17
|
a ? "indeterminate" : !!d
|
|
18
|
-
), r = a ? "indeterminate" : t ? s : b, g = r === !0 || r === "indeterminate", x =
|
|
18
|
+
), r = a ? "indeterminate" : t ? s : b, g = r === !0 || r === "indeterminate", x = i.useCallback(
|
|
19
19
|
(h) => {
|
|
20
20
|
t || k(h), c?.(h);
|
|
21
21
|
},
|
|
@@ -34,7 +34,7 @@ const y = {
|
|
|
34
34
|
"border border-surface-border-strong",
|
|
35
35
|
"bg-surface-raised-hover",
|
|
36
36
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
37
|
-
"focus-visible:outline-
|
|
37
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
38
38
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
39
39
|
"data-[state=unchecked]:hover:border-accent-7 data-[state=unchecked]:hover:bg-surface-raised-active",
|
|
40
40
|
"data-[state=checked]:bg-accent-9 data-[state=checked]:border-accent-7 data-[state=checked]:text-accent-fg",
|
|
@@ -44,7 +44,7 @@ const y = {
|
|
|
44
44
|
),
|
|
45
45
|
...f,
|
|
46
46
|
children: /* @__PURE__ */ e(w, { children: g && /* @__PURE__ */ e(C, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ e(
|
|
47
|
-
|
|
47
|
+
n.span,
|
|
48
48
|
{
|
|
49
49
|
className: "flex items-center justify-center text-current",
|
|
50
50
|
initial: { opacity: 0 },
|
|
@@ -60,7 +60,7 @@ const y = {
|
|
|
60
60
|
fill: "none",
|
|
61
61
|
className: L[o],
|
|
62
62
|
children: r === "indeterminate" ? /* @__PURE__ */ e(
|
|
63
|
-
|
|
63
|
+
n.line,
|
|
64
64
|
{
|
|
65
65
|
x1: "4",
|
|
66
66
|
y1: "8",
|
|
@@ -75,7 +75,7 @@ const y = {
|
|
|
75
75
|
transition: { duration: 0.24, ease: "easeOut" }
|
|
76
76
|
}
|
|
77
77
|
) : /* @__PURE__ */ e(
|
|
78
|
-
|
|
78
|
+
n.path,
|
|
79
79
|
{
|
|
80
80
|
d: "M3.5 8.5l3 3 6-6",
|
|
81
81
|
stroke: "currentColor",
|
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
|