@devalok/shilp-sutra 0.13.0 → 0.15.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/sidebar.js +21 -21
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +130 -110
- package/dist/shell/notification-center.js +1 -1
- package/dist/shell/sidebar.d.ts +5 -2
- package/dist/shell/sidebar.d.ts.map +1 -1
- package/dist/shell/sidebar.js +16 -16
- package/dist/ui/autocomplete.js +15 -15
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +20 -20
- package/dist/ui/context-menu.js +8 -8
- package/dist/ui/dropdown-menu.js +2 -2
- package/dist/ui/hover-card.js +9 -9
- package/dist/ui/index.js +1 -1
- package/dist/ui/input.js +9 -9
- package/dist/ui/menubar.js +28 -28
- package/dist/ui/number-input.js +9 -9
- package/dist/ui/search-input.js +1 -1
- package/dist/ui/select.js +2 -2
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/llms-full.txt +6 -3
- package/llms.txt +9 -0
- package/package.json +1 -1
package/dist/shell/sidebar.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs as t, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { useLink as G } from "./link-context.js";
|
|
5
|
-
import { S as W, a as T, b, c as z, d as H, e as U, f as $, g as q, h as E, i as A, j as L, k as M, l as j, m as J, n as K, o as Q } from "../_chunks/sidebar.js";
|
|
5
|
+
import { S as W, a as T, b as u, c as z, d as H, e as U, f as $, g as q, h as E, i as A, j as L, k as M, l as j, m as J, n as K, o as Q } from "../_chunks/sidebar.js";
|
|
6
6
|
import { Collapsible as V, CollapsibleTrigger as X, CollapsibleContent as Y } from "../ui/collapsible.js";
|
|
7
7
|
import { A as Z, a as _, b as P } from "../_chunks/avatar.js";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as v } from "../_chunks/utils.js";
|
|
9
9
|
function ee({ className: r }) {
|
|
10
10
|
return /* @__PURE__ */ e(
|
|
11
11
|
"svg",
|
|
@@ -64,7 +64,7 @@ function re({
|
|
|
64
64
|
asChild: !0,
|
|
65
65
|
isActive: n || d,
|
|
66
66
|
tooltip: r.title,
|
|
67
|
-
className:
|
|
67
|
+
className: v(
|
|
68
68
|
I,
|
|
69
69
|
n || d ? B : F
|
|
70
70
|
),
|
|
@@ -122,7 +122,7 @@ function re({
|
|
|
122
122
|
asChild: !0,
|
|
123
123
|
isActive: n,
|
|
124
124
|
tooltip: r.title,
|
|
125
|
-
className:
|
|
125
|
+
className: v(
|
|
126
126
|
I,
|
|
127
127
|
n ? B : F
|
|
128
128
|
),
|
|
@@ -158,14 +158,14 @@ const te = p.forwardRef(
|
|
|
158
158
|
...D
|
|
159
159
|
}, O) => {
|
|
160
160
|
var f, N, w, y;
|
|
161
|
-
const
|
|
161
|
+
const b = G(), g = (s, i = !1) => i || s === "/" ? r === s : r.startsWith(s);
|
|
162
162
|
return /* @__PURE__ */ t(
|
|
163
163
|
W,
|
|
164
164
|
{
|
|
165
165
|
...D,
|
|
166
166
|
ref: O,
|
|
167
167
|
"aria-label": "Main navigation",
|
|
168
|
-
className:
|
|
168
|
+
className: v(
|
|
169
169
|
"z-raised hidden h-full flex-col border-r border-border bg-layer-01 md:flex",
|
|
170
170
|
R
|
|
171
171
|
),
|
|
@@ -181,13 +181,13 @@ const te = p.forwardRef(
|
|
|
181
181
|
/* @__PURE__ */ e("span", { className: "truncate text-ds-sm text-text-placeholder", children: n.designation || n.role })
|
|
182
182
|
] })
|
|
183
183
|
] }),
|
|
184
|
-
/* @__PURE__ */ e(
|
|
184
|
+
/* @__PURE__ */ e(u, {}),
|
|
185
185
|
l && /* @__PURE__ */ t(k, { children: [
|
|
186
186
|
l,
|
|
187
|
-
/* @__PURE__ */ e(
|
|
187
|
+
/* @__PURE__ */ e(u, {})
|
|
188
188
|
] }),
|
|
189
189
|
/* @__PURE__ */ e(z, { className: "no-scrollbar px-ds-04", children: m.map((s, i) => /* @__PURE__ */ t("div", { children: [
|
|
190
|
-
i > 0 && /* @__PURE__ */ e(
|
|
190
|
+
i > 0 && /* @__PURE__ */ e(u, {}),
|
|
191
191
|
/* @__PURE__ */ t(H, { children: [
|
|
192
192
|
/* @__PURE__ */ e(U, { className: "px-ds-04 text-ds-sm text-text-placeholder", children: s.label }),
|
|
193
193
|
s.action && /* @__PURE__ */ e($, { asChild: !0, children: s.action }),
|
|
@@ -196,8 +196,8 @@ const te = p.forwardRef(
|
|
|
196
196
|
re,
|
|
197
197
|
{
|
|
198
198
|
item: c,
|
|
199
|
-
isActive:
|
|
200
|
-
isPathActive:
|
|
199
|
+
isActive: g(c.href, c.exact),
|
|
200
|
+
isPathActive: g
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
203
|
if (h) {
|
|
@@ -210,7 +210,7 @@ const te = p.forwardRef(
|
|
|
210
210
|
] })
|
|
211
211
|
] }, s.label)) }),
|
|
212
212
|
d && /* @__PURE__ */ t(k, { children: [
|
|
213
|
-
/* @__PURE__ */ e(
|
|
213
|
+
/* @__PURE__ */ e(u, {}),
|
|
214
214
|
d
|
|
215
215
|
] }),
|
|
216
216
|
a ? /* @__PURE__ */ t(A, { className: "gap-ds-03 px-ds-06 py-ds-05", children: [
|
|
@@ -230,7 +230,7 @@ const te = p.forwardRef(
|
|
|
230
230
|
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-col gap-ds-03", children: [
|
|
231
231
|
/* @__PURE__ */ e("p", { className: "text-ds-sm text-text-primary", children: a.promo.text }),
|
|
232
232
|
a.promo.action && (a.promo.action.href ? /* @__PURE__ */ e(
|
|
233
|
-
|
|
233
|
+
b,
|
|
234
234
|
{
|
|
235
235
|
href: a.promo.action.href,
|
|
236
236
|
onClick: a.promo.action.onClick,
|
|
@@ -252,7 +252,7 @@ const te = p.forwardRef(
|
|
|
252
252
|
(w = a.links) == null ? void 0 : w.map((s, i) => /* @__PURE__ */ t(p.Fragment, { children: [
|
|
253
253
|
i > 0 && /* @__PURE__ */ e("span", { children: "·" }),
|
|
254
254
|
/* @__PURE__ */ e(
|
|
255
|
-
|
|
255
|
+
b,
|
|
256
256
|
{
|
|
257
257
|
className: "transition-colors hover:text-interactive",
|
|
258
258
|
href: s.href,
|
|
@@ -261,12 +261,12 @@ const te = p.forwardRef(
|
|
|
261
261
|
)
|
|
262
262
|
] }, s.href)),
|
|
263
263
|
((y = a.links) == null ? void 0 : y.length) && a.version && /* @__PURE__ */ e("span", { children: "·" }),
|
|
264
|
-
a.version && /* @__PURE__ */ e("span", { children: a.version })
|
|
264
|
+
a.version && (typeof a.version == "string" ? /* @__PURE__ */ e("span", { children: a.version }) : /* @__PURE__ */ e(b, { className: "transition-colors hover:text-interactive", href: a.version.href, children: a.version.label }))
|
|
265
265
|
] })
|
|
266
266
|
] }) : x.length > 0 ? /* @__PURE__ */ e(A, { className: "px-ds-06 py-ds-05", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03 text-ds-sm text-text-placeholder", children: x.map((s, i) => /* @__PURE__ */ t(p.Fragment, { children: [
|
|
267
267
|
i > 0 && /* @__PURE__ */ e("span", { children: "·" }),
|
|
268
268
|
/* @__PURE__ */ e(
|
|
269
|
-
|
|
269
|
+
b,
|
|
270
270
|
{
|
|
271
271
|
className: "transition-colors hover:text-interactive",
|
|
272
272
|
href: s.href,
|
package/dist/ui/autocomplete.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as O, jsx as
|
|
2
|
+
import { jsxs as O, jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import { c as b } from "../_chunks/utils.js";
|
|
5
5
|
const T = t.forwardRef(
|
|
@@ -13,7 +13,7 @@ const T = t.forwardRef(
|
|
|
13
13
|
className: R,
|
|
14
14
|
id: N
|
|
15
15
|
}, i) => {
|
|
16
|
-
const E = t.useId(), w = N || E,
|
|
16
|
+
const E = t.useId(), w = N || E, v = `${w}-listbox`, k = `${w}-option`, [f, g] = t.useState((o == null ? void 0 : o.label) ?? ""), [c, a] = t.useState(!1), [r, l] = t.useState(-1), $ = t.useRef(null), A = t.useRef(null), y = t.useRef(), M = t.useCallback(
|
|
17
17
|
(e) => {
|
|
18
18
|
$.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
|
|
19
19
|
},
|
|
@@ -25,7 +25,7 @@ const T = t.forwardRef(
|
|
|
25
25
|
const n = t.useMemo(
|
|
26
26
|
() => f ? x.filter((e) => e.label.toLowerCase().includes(f.toLowerCase())) : x,
|
|
27
27
|
[x, f]
|
|
28
|
-
),
|
|
28
|
+
), p = t.useCallback(
|
|
29
29
|
(e) => {
|
|
30
30
|
g(e.label), a(!1), l(-1), u == null || u(e);
|
|
31
31
|
},
|
|
@@ -44,17 +44,17 @@ const T = t.forwardRef(
|
|
|
44
44
|
e.preventDefault(), l((s) => Math.max(s - 1, 0));
|
|
45
45
|
break;
|
|
46
46
|
case "Enter":
|
|
47
|
-
e.preventDefault(), r >= 0 && n[r] &&
|
|
47
|
+
e.preventDefault(), r >= 0 && n[r] && p(n[r]);
|
|
48
48
|
break;
|
|
49
49
|
case "Escape":
|
|
50
50
|
a(!1), l(-1);
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
[c, n, r,
|
|
55
|
-
), K = r >= 0 ? `${
|
|
54
|
+
[c, n, r, p]
|
|
55
|
+
), K = r >= 0 ? `${k}-${r}` : void 0;
|
|
56
56
|
return /* @__PURE__ */ O("div", { className: b("relative", R), children: [
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ m(
|
|
58
58
|
"input",
|
|
59
59
|
{
|
|
60
60
|
ref: M,
|
|
@@ -62,7 +62,7 @@ const T = t.forwardRef(
|
|
|
62
62
|
role: "combobox",
|
|
63
63
|
"aria-expanded": c,
|
|
64
64
|
"aria-autocomplete": "list",
|
|
65
|
-
"aria-controls": c ?
|
|
65
|
+
"aria-controls": c ? v : void 0,
|
|
66
66
|
"aria-activedescendant": K,
|
|
67
67
|
value: f,
|
|
68
68
|
placeholder: D,
|
|
@@ -83,20 +83,20 @@ const T = t.forwardRef(
|
|
|
83
83
|
onKeyDown: S
|
|
84
84
|
}
|
|
85
85
|
),
|
|
86
|
-
c && /* @__PURE__ */
|
|
86
|
+
c && /* @__PURE__ */ m(
|
|
87
87
|
"ul",
|
|
88
88
|
{
|
|
89
|
-
id:
|
|
89
|
+
id: v,
|
|
90
90
|
ref: A,
|
|
91
91
|
role: "listbox",
|
|
92
92
|
className: b(
|
|
93
|
-
"absolute z-
|
|
93
|
+
"absolute z-popover mt-ds-02 w-full overflow-auto rounded-ds-md border border-border bg-layer-01 shadow-02",
|
|
94
94
|
"max-h-60"
|
|
95
95
|
),
|
|
96
|
-
children: n.length === 0 ? /* @__PURE__ */
|
|
96
|
+
children: n.length === 0 ? /* @__PURE__ */ m("li", { className: "px-ds-04 py-ds-03 text-ds-md text-text-secondary", children: I }) : n.map((e, s) => /* @__PURE__ */ m(
|
|
97
97
|
"li",
|
|
98
98
|
{
|
|
99
|
-
id: `${
|
|
99
|
+
id: `${k}-${s}`,
|
|
100
100
|
role: "option",
|
|
101
101
|
"aria-selected": r === s,
|
|
102
102
|
className: b(
|
|
@@ -105,9 +105,9 @@ const T = t.forwardRef(
|
|
|
105
105
|
(o == null ? void 0 : o.value) === e.value && "font-semibold"
|
|
106
106
|
),
|
|
107
107
|
onMouseDown: (d) => d.preventDefault(),
|
|
108
|
-
onClick: () =>
|
|
108
|
+
onClick: () => p(e),
|
|
109
109
|
onKeyDown: (d) => {
|
|
110
|
-
(d.key === "Enter" || d.key === " ") && (d.preventDefault(),
|
|
110
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), p(e));
|
|
111
111
|
},
|
|
112
112
|
onMouseEnter: () => l(s),
|
|
113
113
|
children: e.label
|
package/dist/ui/color-input.js
CHANGED
|
@@ -56,7 +56,7 @@ const f = m.forwardRef(
|
|
|
56
56
|
},
|
|
57
57
|
maxLength: 7,
|
|
58
58
|
className: s(
|
|
59
|
-
"h-ds-sm w-[90px] rounded-ds-md border border-border bg-layer-01 px-ds-03 font-mono text-ds-
|
|
59
|
+
"h-ds-sm w-[90px] rounded-ds-md border border-border bg-layer-01 px-ds-03 font-mono text-ds-md text-text-primary transition-colors",
|
|
60
60
|
"focus:border-interactive focus:outline-none focus:ring-1 focus:ring-interactive",
|
|
61
61
|
o && "cursor-not-allowed opacity-50"
|
|
62
62
|
)
|
package/dist/ui/combobox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as r, jsxs as
|
|
2
|
+
import { jsx as r, jsxs as c, Fragment as B } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { g as G, h as U, P as q, i as J } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as Q, IconSearch as W, IconCheck as Y, IconX as Z } from "@tabler/icons-react";
|
|
@@ -20,7 +20,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
20
20
|
renderOption: E,
|
|
21
21
|
...H
|
|
22
22
|
}, M) => {
|
|
23
|
-
const [h, w] = a.useState(!1), [v, y] = a.useState(""), [i,
|
|
23
|
+
const [h, w] = a.useState(!1), [v, y] = a.useState(""), [i, d] = a.useState(-1), k = a.useRef(null), N = a.useRef(null), R = a.useId(), I = a.useId(), n = a.useMemo(() => f == null ? [] : Array.isArray(f) ? f : [f], [f]), o = a.useMemo(
|
|
24
24
|
() => v ? u.filter(
|
|
25
25
|
(e) => e.label.toLowerCase().includes(v.toLowerCase())
|
|
26
26
|
) : u,
|
|
@@ -46,7 +46,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
46
46
|
[n, m]
|
|
47
47
|
), z = a.useCallback(
|
|
48
48
|
(e) => {
|
|
49
|
-
p || (w(e), e || (y(""),
|
|
49
|
+
p || (w(e), e || (y(""), d(-1)));
|
|
50
50
|
},
|
|
51
51
|
[p]
|
|
52
52
|
);
|
|
@@ -77,19 +77,19 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
77
77
|
case "ArrowDown": {
|
|
78
78
|
e.preventDefault();
|
|
79
79
|
const t = C(i, 1);
|
|
80
|
-
|
|
80
|
+
d(t);
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
case "ArrowUp": {
|
|
84
84
|
e.preventDefault();
|
|
85
85
|
const t = C(i, -1);
|
|
86
|
-
|
|
86
|
+
d(t);
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
case "Home": {
|
|
90
90
|
e.preventDefault();
|
|
91
91
|
const t = o.findIndex((s) => !s.disabled);
|
|
92
|
-
|
|
92
|
+
d(t);
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
case "End": {
|
|
@@ -100,7 +100,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
100
100
|
t = s;
|
|
101
101
|
break;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
d(t);
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
case "Enter": {
|
|
@@ -108,7 +108,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
case "Escape": {
|
|
111
|
-
e.preventDefault(), w(!1), y(""),
|
|
111
|
+
e.preventDefault(), w(!1), y(""), d(-1);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -129,10 +129,10 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
129
129
|
}, [n, u]), F = () => {
|
|
130
130
|
if (b && n.length > 0) {
|
|
131
131
|
const e = n.slice(0, P), t = n.length - P;
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ c("span", { className: "flex flex-1 flex-wrap items-center gap-ds-02 overflow-hidden", children: [
|
|
133
133
|
e.map((s) => {
|
|
134
134
|
const l = u.find((D) => D.value === s);
|
|
135
|
-
return l ? /* @__PURE__ */
|
|
135
|
+
return l ? /* @__PURE__ */ c(
|
|
136
136
|
"span",
|
|
137
137
|
{
|
|
138
138
|
className: "inline-flex items-center gap-ds-01 rounded-ds-md bg-interactive-subtle px-ds-03 py-[1px] text-ds-sm",
|
|
@@ -154,7 +154,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
154
154
|
s
|
|
155
155
|
) : null;
|
|
156
156
|
}),
|
|
157
|
-
t > 0 && /* @__PURE__ */
|
|
157
|
+
t > 0 && /* @__PURE__ */ c("span", { className: "text-ds-sm text-text-secondary", children: [
|
|
158
158
|
"+",
|
|
159
159
|
t,
|
|
160
160
|
" more"
|
|
@@ -168,8 +168,8 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
168
168
|
}
|
|
169
169
|
return /* @__PURE__ */ r("span", { className: "flex-1 truncate text-left text-text-placeholder", children: S });
|
|
170
170
|
};
|
|
171
|
-
return /* @__PURE__ */ r(G, { open: h, onOpenChange: z, children: /* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */ r(U, { asChild: !0, disabled: p, children: /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ r(G, { open: h, onOpenChange: z, children: /* @__PURE__ */ c("div", { className: x("relative", T), ...H, children: [
|
|
172
|
+
/* @__PURE__ */ r(U, { asChild: !0, disabled: p, children: /* @__PURE__ */ c(
|
|
173
173
|
"button",
|
|
174
174
|
{
|
|
175
175
|
ref: M,
|
|
@@ -193,11 +193,11 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
) }),
|
|
196
|
-
/* @__PURE__ */ r(q, { children: /* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ r(q, { children: /* @__PURE__ */ c(
|
|
197
197
|
J,
|
|
198
198
|
{
|
|
199
199
|
className: x(
|
|
200
|
-
"z-
|
|
200
|
+
"z-popover w-[var(--radix-popover-trigger-width)] overflow-hidden rounded-ds-lg border border-border-subtle bg-layer-01 shadow-02",
|
|
201
201
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2"
|
|
202
202
|
),
|
|
203
203
|
sideOffset: 4,
|
|
@@ -207,7 +207,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
207
207
|
e.preventDefault(), (t = k.current) == null || t.focus();
|
|
208
208
|
},
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-ds-02 border-b border-border-subtle px-ds-04", children: [
|
|
211
211
|
/* @__PURE__ */ r(W, { className: "h-ico-sm w-ico-sm shrink-0 text-text-tertiary", "aria-hidden": "true" }),
|
|
212
212
|
/* @__PURE__ */ r(
|
|
213
213
|
"input",
|
|
@@ -218,7 +218,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
218
218
|
placeholder: A,
|
|
219
219
|
value: v,
|
|
220
220
|
onChange: (e) => {
|
|
221
|
-
y(e.target.value),
|
|
221
|
+
y(e.target.value), d(-1);
|
|
222
222
|
},
|
|
223
223
|
onKeyDown: K,
|
|
224
224
|
"aria-autocomplete": "list",
|
|
@@ -239,7 +239,7 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
239
239
|
style: { maxHeight: `${j * V}px` },
|
|
240
240
|
children: o.map((e, t) => {
|
|
241
241
|
const s = O(e.value);
|
|
242
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ c(
|
|
243
243
|
"li",
|
|
244
244
|
{
|
|
245
245
|
id: `${R}-option-${t}`,
|
|
@@ -260,11 +260,11 @@ const P = 2, V = 36, ee = a.forwardRef(
|
|
|
260
260
|
!e.disabled && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), g(e.value));
|
|
261
261
|
},
|
|
262
262
|
onMouseEnter: () => {
|
|
263
|
-
e.disabled ||
|
|
263
|
+
e.disabled || d(t);
|
|
264
264
|
},
|
|
265
265
|
children: [
|
|
266
266
|
e.icon && /* @__PURE__ */ r("span", { className: "flex h-ico-sm w-ico-sm items-center justify-center shrink-0", children: e.icon }),
|
|
267
|
-
/* @__PURE__ */ r("span", { className: "flex flex-1 flex-col", children: E ? E(e, s) : /* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ r("span", { className: "flex flex-1 flex-col", children: E ? E(e, s) : /* @__PURE__ */ c(B, { children: [
|
|
268
268
|
/* @__PURE__ */ r("span", { children: e.label }),
|
|
269
269
|
e.description && /* @__PURE__ */ r("span", { className: "text-ds-sm text-text-secondary", children: e.description })
|
|
270
270
|
] }) }),
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import { j as l, k as m, l as c, m as p, n as u, o as f, p as x, q as b, L as y, r as N, s as h, G as C, t as g, u as w, v as M } from "../_chunks/primitives.js";
|
|
5
|
-
import { IconChevronRight as R, IconCheck as
|
|
5
|
+
import { IconChevronRight as R, IconCheck as v, IconCircle as I } from "@tabler/icons-react";
|
|
6
6
|
import { c as d } from "../_chunks/utils.js";
|
|
7
|
-
const F = h, H = M, J = C, K = c, O = w, Q = g,
|
|
7
|
+
const F = h, H = M, J = C, K = c, O = w, Q = g, S = n.forwardRef(({ className: e, inset: t, children: a, ...o }, r) => /* @__PURE__ */ i(
|
|
8
8
|
l,
|
|
9
9
|
{
|
|
10
10
|
ref: r,
|
|
@@ -20,13 +20,13 @@ const F = h, H = M, J = C, K = c, O = w, Q = g, v = n.forwardRef(({ className: e
|
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
|
|
23
|
+
S.displayName = l.displayName;
|
|
24
24
|
const z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
25
25
|
m,
|
|
26
26
|
{
|
|
27
27
|
ref: a,
|
|
28
28
|
className: d(
|
|
29
|
-
"z-
|
|
29
|
+
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
30
30
|
e
|
|
31
31
|
),
|
|
32
32
|
...t
|
|
@@ -38,7 +38,7 @@ const j = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(c, { chi
|
|
|
38
38
|
{
|
|
39
39
|
ref: a,
|
|
40
40
|
className: d(
|
|
41
|
-
"z-
|
|
41
|
+
"z-popover rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
42
42
|
e
|
|
43
43
|
),
|
|
44
44
|
...t
|
|
@@ -69,7 +69,7 @@ const k = n.forwardRef(({ className: e, children: t, checked: a, ...o }, r) => /
|
|
|
69
69
|
checked: a,
|
|
70
70
|
...o,
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(
|
|
72
|
+
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(v, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
73
73
|
t
|
|
74
74
|
]
|
|
75
75
|
}
|
|
@@ -85,7 +85,7 @@ const T = n.forwardRef(({ className: e, children: t, ...a }, o) => /* @__PURE__
|
|
|
85
85
|
),
|
|
86
86
|
...a,
|
|
87
87
|
children: [
|
|
88
|
-
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(
|
|
88
|
+
/* @__PURE__ */ s("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(I, { className: "h-ico-sm w-ico-sm fill-current" }) }) }),
|
|
89
89
|
t
|
|
90
90
|
]
|
|
91
91
|
}
|
|
@@ -141,6 +141,6 @@ export {
|
|
|
141
141
|
q as ContextMenuShortcut,
|
|
142
142
|
O as ContextMenuSub,
|
|
143
143
|
z as ContextMenuSubContent,
|
|
144
|
-
|
|
144
|
+
S as ContextMenuSubTrigger,
|
|
145
145
|
H as ContextMenuTrigger
|
|
146
146
|
};
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -26,7 +26,7 @@ const C = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
26
26
|
{
|
|
27
27
|
ref: t,
|
|
28
28
|
className: d(
|
|
29
|
-
"z-
|
|
29
|
+
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
30
30
|
e
|
|
31
31
|
),
|
|
32
32
|
...a
|
|
@@ -39,7 +39,7 @@ const z = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, s) => /* @__P
|
|
|
39
39
|
ref: s,
|
|
40
40
|
sideOffset: a,
|
|
41
41
|
className: d(
|
|
42
|
-
"z-
|
|
42
|
+
"z-popover min-w-[8rem] rounded-ds-lg border border-border bg-layer-01 p-ds-02 text-text-primary shadow-03",
|
|
43
43
|
"duration-moderate-01 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
44
44
|
e
|
|
45
45
|
),
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import { w as n, x as o, y as m, z as l } from "../_chunks/primitives.js";
|
|
5
|
-
import { c as
|
|
6
|
-
const u = m,
|
|
5
|
+
import { c as p } from "../_chunks/utils.js";
|
|
6
|
+
const u = m, C = l, f = i.forwardRef(({ className: a, align: e = "center", sideOffset: r = 4, ...d }, s) => /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
7
7
|
o,
|
|
8
8
|
{
|
|
9
9
|
ref: s,
|
|
10
10
|
align: e,
|
|
11
|
-
sideOffset:
|
|
12
|
-
className:
|
|
13
|
-
"z-
|
|
11
|
+
sideOffset: r,
|
|
12
|
+
className: p(
|
|
13
|
+
"z-popover w-64 rounded-ds-lg border border-border bg-layer-01 p-ds-05 shadow-03 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
14
14
|
a
|
|
15
15
|
),
|
|
16
|
-
...
|
|
16
|
+
...d
|
|
17
17
|
}
|
|
18
18
|
) }));
|
|
19
|
-
|
|
19
|
+
f.displayName = o.displayName;
|
|
20
20
|
export {
|
|
21
21
|
u as HoverCard,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
f as HoverCardContent,
|
|
23
|
+
C as HoverCardTrigger
|
|
24
24
|
};
|
package/dist/ui/index.js
CHANGED
|
@@ -211,7 +211,7 @@ const _ = w, N = s.createContext({ variant: "line" }), B = d("inline-flex items-
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
defaultVariants: { variant: "line" }
|
|
214
|
-
}), G = d("inline-flex items-center justify-center whitespace-nowrap font-sans text-ds-md font-medium transition-[color,background-color,border-color,box-shadow] duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-[0.38]", {
|
|
214
|
+
}), G = d("inline-flex items-center justify-center gap-ds-02 whitespace-nowrap font-sans text-ds-md font-medium transition-[color,background-color,border-color,box-shadow] duration-fast-01 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-[0.38]", {
|
|
215
215
|
variants: {
|
|
216
216
|
variant: {
|
|
217
217
|
line: [
|
package/dist/ui/input.js
CHANGED
|
@@ -20,15 +20,15 @@ const h = v(
|
|
|
20
20
|
variants: {
|
|
21
21
|
size: {
|
|
22
22
|
sm: "h-ds-sm text-ds-sm px-ds-03",
|
|
23
|
-
md: "h-ds-md text-ds-
|
|
24
|
-
lg: "h-ds-lg text-ds-
|
|
23
|
+
md: "h-ds-md text-ds-md px-ds-04",
|
|
24
|
+
lg: "h-ds-lg text-ds-md px-ds-05"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: { size: "md" }
|
|
28
28
|
}
|
|
29
29
|
), y = p.forwardRef(
|
|
30
|
-
({ className:
|
|
31
|
-
const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state),
|
|
30
|
+
({ className: a, type: l, state: n, size: c, startIcon: e, endIcon: r, ...t }, u) => {
|
|
31
|
+
const s = g(), i = n ?? (s.state === "helper" ? void 0 : s.state), m = t["aria-describedby"] ?? s.helperTextId, b = t["aria-required"] ?? s.required, d = /* @__PURE__ */ o(
|
|
32
32
|
"input",
|
|
33
33
|
{
|
|
34
34
|
type: l,
|
|
@@ -39,18 +39,18 @@ const h = v(
|
|
|
39
39
|
i === "error" && "border-border-error focus-visible:ring-error",
|
|
40
40
|
i === "warning" && "border-border-warning focus-visible:ring-warning",
|
|
41
41
|
i === "success" && "border-border-success focus-visible:ring-success",
|
|
42
|
-
|
|
42
|
+
a
|
|
43
43
|
),
|
|
44
44
|
"aria-invalid": i === "error" || void 0,
|
|
45
|
-
"aria-describedby":
|
|
46
|
-
"aria-required":
|
|
45
|
+
"aria-describedby": m,
|
|
46
|
+
"aria-required": b || void 0,
|
|
47
47
|
ref: u,
|
|
48
48
|
...t
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
return !e && !r ?
|
|
51
|
+
return !e && !r ? d : /* @__PURE__ */ f("div", { className: "relative flex items-center w-full", children: [
|
|
52
52
|
e && /* @__PURE__ */ o("span", { className: "absolute left-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: e }),
|
|
53
|
-
|
|
53
|
+
d,
|
|
54
54
|
r && /* @__PURE__ */ o("span", { className: "absolute right-ds-03 flex items-center text-text-secondary pointer-events-none [&>svg]:h-ico-sm [&>svg]:w-ico-sm", children: r })
|
|
55
55
|
] });
|
|
56
56
|
}
|