@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/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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AAMrD,QAAA,MAAM,QAAQ;;;;;
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/ui/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAmB,MAAM,WAAW,CAAA;AAMrD,QAAA,MAAM,QAAQ;;;;;kBAUV,GAAD;;;;;;;;;;;;;kBAAC,GAAD;;;;;;;;2FAGD,CAAA;AAGF,QAAA,MAAM,aAAa,mKAKjB,CAAA;AAGF,QAAA,MAAM,YAAY;WAEiC,MAAM;wCAuBvD,CAAA;AAGF,QAAA,MAAM,iBAAiB,mKAOrB,CAAA;AAGF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE3E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
package/dist/ui/input.js
CHANGED
|
@@ -12,7 +12,7 @@ const w = B(
|
|
|
12
12
|
"border border-surface-border rounded-ds-md",
|
|
13
13
|
"hover:bg-surface-raised-active",
|
|
14
14
|
"transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
|
|
15
|
-
"focus-within:outline-
|
|
15
|
+
"focus-within:outline-hidden focus-within:ring-2 focus-within:ring-accent-9 focus-within:ring-offset-2 focus-within:border-surface-border",
|
|
16
16
|
"has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-action-disabled",
|
|
17
17
|
"has-[:read-only]:bg-surface-raised has-[:read-only]:cursor-default"
|
|
18
18
|
],
|
|
@@ -52,9 +52,9 @@ const w = B(
|
|
|
52
52
|
startIcon: M,
|
|
53
53
|
endIcon: k,
|
|
54
54
|
wrapperClassName: P,
|
|
55
|
-
...
|
|
55
|
+
...a
|
|
56
56
|
}, R) => {
|
|
57
|
-
const e = N ?? "md", t = D(), n = z ?? (t.state === "helper" ? void 0 : t.state), S =
|
|
57
|
+
const e = N ?? "md", t = D(), n = z ?? (t.state === "helper" ? void 0 : t.state), S = a["aria-describedby"] ?? t.helperTextId, V = a["aria-required"] ?? t.required, d = T ?? M, i = j ?? k, o = !!d, c = !!i, l = q ?? (typeof d == "string" ? "label" : "icon"), u = I ?? (typeof i == "string" ? "label" : "icon"), p = {
|
|
58
58
|
xs: "px-ds-02",
|
|
59
59
|
sm: "px-ds-02",
|
|
60
60
|
md: "px-ds-03",
|
|
@@ -81,7 +81,7 @@ const w = B(
|
|
|
81
81
|
P
|
|
82
82
|
),
|
|
83
83
|
children: [
|
|
84
|
-
|
|
84
|
+
o && l === "label" && /* @__PURE__ */ s(
|
|
85
85
|
"span",
|
|
86
86
|
{
|
|
87
87
|
className: r(
|
|
@@ -96,7 +96,7 @@ const w = B(
|
|
|
96
96
|
children: d
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
|
-
|
|
99
|
+
o && l === "icon" && /* @__PURE__ */ s(h, { size: g[e], children: /* @__PURE__ */ s(
|
|
100
100
|
"span",
|
|
101
101
|
{
|
|
102
102
|
className: r(
|
|
@@ -112,13 +112,13 @@ const w = B(
|
|
|
112
112
|
{
|
|
113
113
|
type: y,
|
|
114
114
|
className: r(
|
|
115
|
-
"flex-1 min-w-0 h-full bg-transparent outline-
|
|
115
|
+
"flex-1 min-w-0 h-full bg-transparent outline-hidden font-sans",
|
|
116
116
|
"placeholder:text-surface-fg-subtle",
|
|
117
117
|
"disabled:cursor-not-allowed",
|
|
118
118
|
"read-only:cursor-default",
|
|
119
119
|
E[e],
|
|
120
120
|
// Remove left padding when start icon section is present (icon provides visual space)
|
|
121
|
-
|
|
121
|
+
o && l === "icon" && "pl-0",
|
|
122
122
|
// Remove right padding when end icon section is present
|
|
123
123
|
c && u === "icon" && "pr-0",
|
|
124
124
|
v
|
|
@@ -127,7 +127,7 @@ const w = B(
|
|
|
127
127
|
"aria-describedby": S,
|
|
128
128
|
"aria-required": V || void 0,
|
|
129
129
|
ref: R,
|
|
130
|
-
...
|
|
130
|
+
...a
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
133
|
c && u === "label" && /* @__PURE__ */ s(
|
package/dist/ui/link.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { S as a } from "../_chunks/primitives.js";
|
|
4
4
|
import * as c from "react";
|
|
5
5
|
import { cn as s } from "./lib/utils.js";
|
|
6
6
|
const d = c.forwardRef(
|
|
7
|
-
({ className: o, inline: e = !0, asChild: t = !1, ...r },
|
|
7
|
+
({ className: o, inline: e = !0, asChild: t = !1, ...r }, i) => /* @__PURE__ */ n(
|
|
8
8
|
t ? a : "a",
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: i,
|
|
11
11
|
className: s(
|
|
12
12
|
"text-accent-11 underline decoration-transparent hover:decoration-current underline-offset-2",
|
|
13
13
|
"hover:text-accent-12 active:opacity-80 transition-[color,text-decoration-color,opacity] duration-fast-01 ease-productive-standard",
|
|
14
|
-
"focus-visible:outline-
|
|
14
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 rounded-ds-sm",
|
|
15
15
|
e ? "inline" : "block",
|
|
16
16
|
o
|
|
17
17
|
),
|
package/dist/ui/menubar.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import { aV as p, aW as f, aX as b, aY as g, aZ as
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { aV as p, aW as f, aX as b, aY as g, aZ as h, a_ as y, a$ as N, b0 as x, b1 as v, b2 as M, b3 as w, b4 as R, b5 as k, b6 as _, b7 as j, b8 as z } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronRight as G, IconCheck as P, IconCircle as T } from "@tabler/icons-react";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as d } from "./lib/utils.js";
|
|
7
7
|
import { tweens as O, springs as A } from "./lib/motion.js";
|
|
8
8
|
import { Icon as C } from "./icon.js";
|
|
9
9
|
import { A as L, m as U } from "../_chunks/framer.js";
|
|
10
|
-
const S =
|
|
10
|
+
const S = o.createContext(!1), V = (e) => /* @__PURE__ */ r(j, { ...e });
|
|
11
11
|
V.displayName = "MenubarMenu";
|
|
12
|
-
const
|
|
12
|
+
const oe = k, de = h, W = ({
|
|
13
13
|
open: e,
|
|
14
14
|
defaultOpen: s = !1,
|
|
15
15
|
onOpenChange: a,
|
|
16
|
-
...
|
|
16
|
+
...t
|
|
17
17
|
}) => {
|
|
18
|
-
const [
|
|
18
|
+
const [n, c] = o.useState(s), i = e !== void 0, u = i ? e : n, I = o.useCallback(
|
|
19
19
|
(m) => {
|
|
20
20
|
i || c(m), a?.(m);
|
|
21
21
|
},
|
|
22
22
|
[i, a]
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */ r(S.Provider, { value: u, children: /* @__PURE__ */ r(z, { open: u, onOpenChange: I, ...
|
|
24
|
+
return /* @__PURE__ */ r(S.Provider, { value: u, children: /* @__PURE__ */ r(z, { open: u, onOpenChange: I, ...t }) });
|
|
25
25
|
};
|
|
26
26
|
W.displayName = "MenubarSub";
|
|
27
|
-
const
|
|
27
|
+
const ne = _, X = o.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
28
28
|
p,
|
|
29
29
|
{
|
|
30
30
|
ref: a,
|
|
31
|
-
className:
|
|
31
|
+
className: d(
|
|
32
32
|
"flex h-ds-sm-plus items-center space-x-ds-02 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 shadow-raised",
|
|
33
33
|
e
|
|
34
34
|
),
|
|
@@ -36,28 +36,28 @@ const de = _, X = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
38
|
X.displayName = p.displayName;
|
|
39
|
-
const Y =
|
|
39
|
+
const Y = o.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
40
40
|
f,
|
|
41
41
|
{
|
|
42
42
|
ref: a,
|
|
43
|
-
className:
|
|
44
|
-
"flex cursor-default select-none items-center rounded-ds-sm px-ds-04 py-ds-02 text-ds-md font-medium outline-
|
|
43
|
+
className: d(
|
|
44
|
+
"flex cursor-default select-none items-center rounded-ds-sm px-ds-04 py-ds-02 text-ds-md font-medium outline-hidden transition-colors hover:bg-surface-raised-hover focus-visible:bg-surface-raised-hover data-[state=open]:bg-surface-raised-hover",
|
|
45
45
|
e
|
|
46
46
|
),
|
|
47
47
|
...s
|
|
48
48
|
}
|
|
49
49
|
));
|
|
50
50
|
Y.displayName = f.displayName;
|
|
51
|
-
const Z =
|
|
51
|
+
const Z = o.forwardRef(({ className: e, inset: s, children: a, ...t }, n) => /* @__PURE__ */ l(
|
|
52
52
|
b,
|
|
53
53
|
{
|
|
54
|
-
ref:
|
|
55
|
-
className:
|
|
56
|
-
"flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-
|
|
54
|
+
ref: n,
|
|
55
|
+
className: d(
|
|
56
|
+
"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",
|
|
57
57
|
s && "pl-ds-07",
|
|
58
58
|
e
|
|
59
59
|
),
|
|
60
|
-
...
|
|
60
|
+
...t,
|
|
61
61
|
children: [
|
|
62
62
|
a,
|
|
63
63
|
/* @__PURE__ */ r(C, { icon: G, size: "sm", className: "ml-auto" })
|
|
@@ -65,12 +65,12 @@ const Z = t.forwardRef(({ className: e, inset: s, children: a, ...o }, d) => /*
|
|
|
65
65
|
}
|
|
66
66
|
));
|
|
67
67
|
Z.displayName = b.displayName;
|
|
68
|
-
const $ =
|
|
69
|
-
const
|
|
70
|
-
return /* @__PURE__ */ r(L, { children:
|
|
68
|
+
const $ = o.forwardRef(({ className: e, children: s, ...a }, t) => {
|
|
69
|
+
const n = o.useContext(S);
|
|
70
|
+
return /* @__PURE__ */ r(L, { children: n && /* @__PURE__ */ r(
|
|
71
71
|
g,
|
|
72
72
|
{
|
|
73
|
-
ref:
|
|
73
|
+
ref: t,
|
|
74
74
|
forceMount: !0,
|
|
75
75
|
asChild: !0,
|
|
76
76
|
...a,
|
|
@@ -81,7 +81,7 @@ const $ = t.forwardRef(({ className: e, children: s, ...a }, o) => {
|
|
|
81
81
|
animate: { opacity: 1, scale: 1 },
|
|
82
82
|
exit: { opacity: 0, scale: 0.95 },
|
|
83
83
|
transition: { ...A.snappy, opacity: O.fade },
|
|
84
|
-
className:
|
|
84
|
+
className: d(
|
|
85
85
|
"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",
|
|
86
86
|
e
|
|
87
87
|
),
|
|
@@ -92,31 +92,31 @@ const $ = t.forwardRef(({ className: e, children: s, ...a }, o) => {
|
|
|
92
92
|
) });
|
|
93
93
|
});
|
|
94
94
|
$.displayName = g.displayName;
|
|
95
|
-
const q =
|
|
96
|
-
({ className: e, align: s = "start", alignOffset: a = -4, sideOffset:
|
|
97
|
-
|
|
95
|
+
const q = o.forwardRef(
|
|
96
|
+
({ className: e, align: s = "start", alignOffset: a = -4, sideOffset: t = 8, children: n, ...c }, i) => /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(
|
|
97
|
+
y,
|
|
98
98
|
{
|
|
99
99
|
ref: i,
|
|
100
100
|
align: s,
|
|
101
101
|
alignOffset: a,
|
|
102
|
-
sideOffset:
|
|
103
|
-
className:
|
|
102
|
+
sideOffset: t,
|
|
103
|
+
className: d(
|
|
104
104
|
"z-popover min-w-[12rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
105
105
|
"data-[state=open]:animate-popover-in data-[state=closed]:animate-popover-out",
|
|
106
106
|
e
|
|
107
107
|
),
|
|
108
108
|
...c,
|
|
109
|
-
children:
|
|
109
|
+
children: n
|
|
110
110
|
}
|
|
111
111
|
) })
|
|
112
112
|
);
|
|
113
|
-
q.displayName =
|
|
114
|
-
const B =
|
|
113
|
+
q.displayName = y.displayName;
|
|
114
|
+
const B = o.forwardRef(({ className: e, inset: s, ...a }, t) => /* @__PURE__ */ r(
|
|
115
115
|
N,
|
|
116
116
|
{
|
|
117
|
-
ref:
|
|
118
|
-
className:
|
|
119
|
-
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-
|
|
117
|
+
ref: t,
|
|
118
|
+
className: d(
|
|
119
|
+
"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 focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
120
120
|
s && "pl-ds-07",
|
|
121
121
|
e
|
|
122
122
|
),
|
|
@@ -124,16 +124,16 @@ const B = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
|
|
|
124
124
|
}
|
|
125
125
|
));
|
|
126
126
|
B.displayName = N.displayName;
|
|
127
|
-
const D =
|
|
127
|
+
const D = o.forwardRef(({ className: e, children: s, checked: a, ...t }, n) => /* @__PURE__ */ l(
|
|
128
128
|
x,
|
|
129
129
|
{
|
|
130
|
-
ref:
|
|
131
|
-
className:
|
|
132
|
-
"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
|
+
ref: n,
|
|
131
|
+
className: d(
|
|
132
|
+
"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 focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
133
133
|
e
|
|
134
134
|
),
|
|
135
135
|
checked: a,
|
|
136
|
-
...
|
|
136
|
+
...t,
|
|
137
137
|
children: [
|
|
138
138
|
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(C, { icon: P, size: "sm" }) }) }),
|
|
139
139
|
s
|
|
@@ -141,12 +141,12 @@ const D = t.forwardRef(({ className: e, children: s, checked: a, ...o }, d) => /
|
|
|
141
141
|
}
|
|
142
142
|
));
|
|
143
143
|
D.displayName = x.displayName;
|
|
144
|
-
const E =
|
|
144
|
+
const E = o.forwardRef(({ className: e, children: s, ...a }, t) => /* @__PURE__ */ l(
|
|
145
145
|
M,
|
|
146
146
|
{
|
|
147
|
-
ref:
|
|
148
|
-
className:
|
|
149
|
-
"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
|
+
ref: t,
|
|
148
|
+
className: d(
|
|
149
|
+
"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 focus:bg-surface-raised focus:text-surface-fg data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
150
150
|
e
|
|
151
151
|
),
|
|
152
152
|
...a,
|
|
@@ -157,11 +157,11 @@ const E = t.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__
|
|
|
157
157
|
}
|
|
158
158
|
));
|
|
159
159
|
E.displayName = M.displayName;
|
|
160
|
-
const F =
|
|
160
|
+
const F = o.forwardRef(({ className: e, inset: s, ...a }, t) => /* @__PURE__ */ r(
|
|
161
161
|
w,
|
|
162
162
|
{
|
|
163
|
-
ref:
|
|
164
|
-
className:
|
|
163
|
+
ref: t,
|
|
164
|
+
className: d(
|
|
165
165
|
"px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
166
166
|
s && "pl-ds-07",
|
|
167
167
|
e
|
|
@@ -170,11 +170,11 @@ const F = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
|
|
|
170
170
|
}
|
|
171
171
|
));
|
|
172
172
|
F.displayName = w.displayName;
|
|
173
|
-
const H =
|
|
173
|
+
const H = o.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
174
174
|
R,
|
|
175
175
|
{
|
|
176
176
|
ref: a,
|
|
177
|
-
className:
|
|
177
|
+
className: d("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
|
|
178
178
|
...s
|
|
179
179
|
}
|
|
180
180
|
));
|
|
@@ -185,7 +185,7 @@ const J = ({
|
|
|
185
185
|
}) => /* @__PURE__ */ r(
|
|
186
186
|
"span",
|
|
187
187
|
{
|
|
188
|
-
className:
|
|
188
|
+
className: d(
|
|
189
189
|
"ml-auto text-ds-sm text-surface-fg-subtle",
|
|
190
190
|
e
|
|
191
191
|
),
|
|
@@ -197,12 +197,12 @@ export {
|
|
|
197
197
|
X as Menubar,
|
|
198
198
|
D as MenubarCheckboxItem,
|
|
199
199
|
q as MenubarContent,
|
|
200
|
-
|
|
200
|
+
oe as MenubarGroup,
|
|
201
201
|
B as MenubarItem,
|
|
202
202
|
F as MenubarLabel,
|
|
203
203
|
V as MenubarMenu,
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
de as MenubarPortal,
|
|
205
|
+
ne as MenubarRadioGroup,
|
|
206
206
|
E as MenubarRadioItem,
|
|
207
207
|
H as MenubarSeparator,
|
|
208
208
|
J as MenubarShortcut,
|