@devalok/shilp-sutra 0.22.2 → 0.23.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/tree-view.js +26 -26
- package/dist/_chunks/use-calendar.js +106 -106
- package/dist/composed/activity-feed.js +10 -10
- package/dist/composed/avatar-group.js +74 -75
- package/dist/composed/command-palette.js +8 -8
- package/dist/composed/content-card.js +10 -10
- package/dist/composed/empty-state.js +6 -6
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/loading-skeleton.js +83 -83
- package/dist/composed/member-picker.js +6 -6
- package/dist/composed/page-skeletons.js +5 -5
- package/dist/composed/rich-text-editor.js +63 -63
- package/dist/composed/schedule-view.js +26 -26
- package/dist/composed/status-badge.js +8 -8
- package/dist/shell/bottom-navbar.js +4 -4
- package/dist/shell/notification-center.js +29 -29
- package/dist/shell/notification-preferences.js +2 -2
- package/dist/shell/sidebar.js +6 -6
- package/dist/shell/top-bar.js +71 -71
- package/dist/tailwind/index.cjs +33 -11
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +33 -11
- package/dist/tokens/primitives.css +2 -0
- package/dist/tokens/semantic.css +83 -14
- package/dist/tokens/typography.css +1 -1
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/alert-dialog.js +32 -32
- package/dist/ui/alert.js +12 -12
- package/dist/ui/autocomplete.js +16 -16
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +81 -74
- package/dist/ui/badge.js +2 -2
- package/dist/ui/banner.js +1 -1
- package/dist/ui/button.js +8 -8
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/card.js +10 -10
- package/dist/ui/charts/index.js +312 -312
- package/dist/ui/checkbox.js +3 -3
- package/dist/ui/chip.js +4 -4
- package/dist/ui/code.js +2 -2
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +37 -37
- package/dist/ui/context-menu.js +6 -6
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +132 -132
- package/dist/ui/dialog.js +12 -12
- package/dist/ui/dropdown-menu.js +67 -67
- package/dist/ui/file-upload.js +3 -3
- package/dist/ui/hover-card.js +13 -13
- package/dist/ui/input-otp.js +9 -9
- package/dist/ui/input.js +10 -10
- package/dist/ui/menubar.js +33 -33
- package/dist/ui/navigation-menu.js +52 -52
- package/dist/ui/number-input.js +14 -14
- package/dist/ui/pagination.js +25 -25
- package/dist/ui/popover.js +17 -17
- package/dist/ui/progress.js +1 -1
- package/dist/ui/radio.js +2 -2
- package/dist/ui/search-input.js +3 -3
- package/dist/ui/segmented-control.d.ts +1 -1
- package/dist/ui/segmented-control.js +16 -16
- package/dist/ui/select.js +17 -17
- package/dist/ui/sheet.js +21 -21
- package/dist/ui/sidebar.js +13 -13
- package/dist/ui/slider.js +2 -2
- package/dist/ui/stat-card.js +52 -52
- package/dist/ui/stepper.js +1 -1
- package/dist/ui/switch.js +11 -11
- package/dist/ui/table.js +19 -19
- package/dist/ui/tabs.js +2 -2
- package/dist/ui/textarea.js +6 -6
- package/dist/ui/toast.js +3 -3
- package/dist/ui/toggle.js +7 -7
- package/dist/ui/tooltip.js +17 -17
- package/docs/components/composed/avatar-group.md +5 -0
- package/docs/components/ui/avatar.md +4 -0
- package/llms-full.txt +10 -1
- package/llms.txt +66 -5
- package/package.json +1 -1
package/dist/ui/dialog.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import { aa as g, ab as C, ac as f, ad as
|
|
4
|
+
import { aa as g, ab as C, ac as f, ad as y, ae as x, af as v, ag as R, ah as j } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconX as M } from "@tabler/icons-react";
|
|
6
6
|
import { cn as i } from "./lib/utils.js";
|
|
7
7
|
import { tweens as p, springs as T } from "./lib/motion.js";
|
|
8
8
|
import { A as P, m as u } from "../_chunks/framer.js";
|
|
9
|
-
const
|
|
9
|
+
const N = t.createContext({ open: !1 }), z = () => t.useContext(N), A = ({
|
|
10
10
|
open: a,
|
|
11
11
|
defaultOpen: s,
|
|
12
12
|
onOpenChange: e,
|
|
13
13
|
...r
|
|
14
14
|
}) => {
|
|
15
|
-
const [l,
|
|
15
|
+
const [l, h] = t.useState(s ?? !1), n = a !== void 0, c = n ? a : l, b = t.useCallback(
|
|
16
16
|
(m) => {
|
|
17
|
-
n ||
|
|
17
|
+
n || h(m), e == null || e(m);
|
|
18
18
|
},
|
|
19
19
|
[n, e]
|
|
20
20
|
), w = t.useMemo(() => ({ open: c }), [c]);
|
|
21
|
-
return /* @__PURE__ */ o(
|
|
21
|
+
return /* @__PURE__ */ o(N.Provider, { value: w, children: /* @__PURE__ */ o(R, { open: c, onOpenChange: b, ...r }) });
|
|
22
22
|
};
|
|
23
23
|
A.displayName = "Dialog";
|
|
24
|
-
const K = j, F = C, L =
|
|
24
|
+
const K = j, F = C, L = y, D = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
|
|
25
25
|
g,
|
|
26
26
|
{
|
|
27
27
|
ref: e,
|
|
@@ -61,12 +61,12 @@ const H = t.forwardRef(({ className: a, children: s, ...e }, r) => {
|
|
|
61
61
|
exit: { opacity: 0, scale: 0.95, x: "-50%", y: "-50%" },
|
|
62
62
|
transition: { ...T.smooth, opacity: p.fade },
|
|
63
63
|
className: i(
|
|
64
|
-
"fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg gap-ds-05 border border-surface-border-strong bg-surface-
|
|
64
|
+
"fixed left-[50%] top-[50%] z-modal grid w-full max-w-lg gap-ds-05 border border-surface-border-strong bg-surface-overlay p-ds-06 shadow-overlay rounded-ds-xl",
|
|
65
65
|
a
|
|
66
66
|
),
|
|
67
67
|
children: [
|
|
68
68
|
s,
|
|
69
|
-
/* @__PURE__ */ d(
|
|
69
|
+
/* @__PURE__ */ d(y, { 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-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
|
|
70
70
|
/* @__PURE__ */ o(M, { className: "h-ico-lg w-ico-lg" }),
|
|
71
71
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
72
72
|
] })
|
|
@@ -116,7 +116,7 @@ const O = t.forwardRef(
|
|
|
116
116
|
);
|
|
117
117
|
O.displayName = "DialogFooter";
|
|
118
118
|
const S = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
|
|
119
|
-
|
|
119
|
+
x,
|
|
120
120
|
{
|
|
121
121
|
ref: e,
|
|
122
122
|
className: i(
|
|
@@ -126,16 +126,16 @@ const S = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
|
|
|
126
126
|
...s
|
|
127
127
|
}
|
|
128
128
|
));
|
|
129
|
-
S.displayName =
|
|
129
|
+
S.displayName = x.displayName;
|
|
130
130
|
const V = t.forwardRef(({ className: a, ...s }, e) => /* @__PURE__ */ o(
|
|
131
|
-
|
|
131
|
+
v,
|
|
132
132
|
{
|
|
133
133
|
ref: e,
|
|
134
134
|
className: i("text-ds-md text-surface-fg-muted", a),
|
|
135
135
|
...s
|
|
136
136
|
}
|
|
137
137
|
));
|
|
138
|
-
V.displayName =
|
|
138
|
+
V.displayName = v.displayName;
|
|
139
139
|
export {
|
|
140
140
|
A as Dialog,
|
|
141
141
|
L as DialogClose,
|
package/dist/ui/dropdown-menu.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as m, jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { X as f, Y as b, Z as
|
|
2
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { X as f, Y as b, Z as y, _ as w, $ as g, a0 as v, a1 as h, a2 as x, a3 as N, a4 as M, a5 as P, a6 as _, a7 as j, a8 as G, a9 as T } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronRight as z, IconCheck as A, IconCircle as L } from "@tabler/icons-react";
|
|
6
6
|
import { cn as d } from "./lib/utils.js";
|
|
7
7
|
import { tweens as D, springs as C } from "./lib/motion.js";
|
|
8
8
|
import { A as R, m as S } from "../_chunks/framer.js";
|
|
9
|
-
const I =
|
|
9
|
+
const I = t.createContext(!1), k = t.createContext(!1), U = ({
|
|
10
10
|
open: s,
|
|
11
|
-
defaultOpen:
|
|
11
|
+
defaultOpen: o = !1,
|
|
12
12
|
onOpenChange: e,
|
|
13
|
-
...
|
|
13
|
+
...r
|
|
14
14
|
}) => {
|
|
15
|
-
const [n,
|
|
15
|
+
const [n, c] = t.useState(o), i = s !== void 0, l = i ? s : n, p = t.useCallback(
|
|
16
16
|
(u) => {
|
|
17
|
-
|
|
17
|
+
i || c(u), e == null || e(u);
|
|
18
18
|
},
|
|
19
|
-
[
|
|
19
|
+
[i, e]
|
|
20
20
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ a(I.Provider, { value: l, children: /* @__PURE__ */ a(_, { open: l, onOpenChange: p, ...r }) });
|
|
22
22
|
};
|
|
23
23
|
U.displayName = "DropdownMenu";
|
|
24
|
-
const se = P,
|
|
24
|
+
const se = P, ae = j, oe = y, X = ({
|
|
25
25
|
open: s,
|
|
26
|
-
defaultOpen:
|
|
26
|
+
defaultOpen: o = !1,
|
|
27
27
|
onOpenChange: e,
|
|
28
|
-
...
|
|
28
|
+
...r
|
|
29
29
|
}) => {
|
|
30
|
-
const [n,
|
|
30
|
+
const [n, c] = t.useState(o), i = s !== void 0, l = i ? s : n, p = t.useCallback(
|
|
31
31
|
(u) => {
|
|
32
|
-
|
|
32
|
+
i || c(u), e == null || e(u);
|
|
33
33
|
},
|
|
34
|
-
[
|
|
34
|
+
[i, e]
|
|
35
35
|
);
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ a(k.Provider, { value: l, children: /* @__PURE__ */ a(T, { open: l, onOpenChange: p, ...r }) });
|
|
37
37
|
};
|
|
38
38
|
X.displayName = "DropdownMenuSub";
|
|
39
|
-
const
|
|
39
|
+
const re = G, Y = t.forwardRef(({ className: s, inset: o, children: e, ...r }, n) => /* @__PURE__ */ m(
|
|
40
40
|
f,
|
|
41
41
|
{
|
|
42
42
|
ref: n,
|
|
43
43
|
className: d(
|
|
44
|
-
"flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none focus:bg-surface-
|
|
45
|
-
|
|
44
|
+
"flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none 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",
|
|
45
|
+
o && "pl-ds-07",
|
|
46
46
|
s
|
|
47
47
|
),
|
|
48
|
-
...
|
|
48
|
+
...r,
|
|
49
49
|
children: [
|
|
50
50
|
e,
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ a(z, { className: "ml-auto" })
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
));
|
|
55
55
|
Y.displayName = f.displayName;
|
|
56
|
-
const Z =
|
|
57
|
-
const n =
|
|
58
|
-
return /* @__PURE__ */
|
|
56
|
+
const Z = t.forwardRef(({ className: s, children: o, ...e }, r) => {
|
|
57
|
+
const n = t.useContext(k);
|
|
58
|
+
return /* @__PURE__ */ a(R, { children: n && /* @__PURE__ */ a(
|
|
59
59
|
b,
|
|
60
60
|
{
|
|
61
|
-
ref:
|
|
61
|
+
ref: r,
|
|
62
62
|
forceMount: !0,
|
|
63
63
|
asChild: !0,
|
|
64
64
|
...e,
|
|
65
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ a(
|
|
66
66
|
S.div,
|
|
67
67
|
{
|
|
68
68
|
initial: { opacity: 0, scale: 0.95 },
|
|
@@ -70,27 +70,27 @@ const Z = r.forwardRef(({ className: s, children: a, ...e }, t) => {
|
|
|
70
70
|
exit: { opacity: 0, scale: 0.95 },
|
|
71
71
|
transition: { ...C.snappy, opacity: D.fade },
|
|
72
72
|
className: d(
|
|
73
|
-
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
73
|
+
"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",
|
|
74
74
|
s
|
|
75
75
|
),
|
|
76
|
-
children:
|
|
76
|
+
children: o
|
|
77
77
|
}
|
|
78
78
|
)
|
|
79
79
|
}
|
|
80
80
|
) });
|
|
81
81
|
});
|
|
82
82
|
Z.displayName = b.displayName;
|
|
83
|
-
const $ =
|
|
84
|
-
const
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
|
|
83
|
+
const $ = t.forwardRef(({ className: s, sideOffset: o = 4, children: e, ...r }, n) => {
|
|
84
|
+
const c = t.useContext(I);
|
|
85
|
+
return /* @__PURE__ */ a(R, { children: c && /* @__PURE__ */ a(y, { forceMount: !0, children: /* @__PURE__ */ a(
|
|
86
|
+
w,
|
|
87
87
|
{
|
|
88
88
|
ref: n,
|
|
89
|
-
sideOffset:
|
|
89
|
+
sideOffset: o,
|
|
90
90
|
forceMount: !0,
|
|
91
91
|
asChild: !0,
|
|
92
|
-
...
|
|
93
|
-
children: /* @__PURE__ */
|
|
92
|
+
...r,
|
|
93
|
+
children: /* @__PURE__ */ a(
|
|
94
94
|
S.div,
|
|
95
95
|
{
|
|
96
96
|
initial: { opacity: 0, scale: 0.95 },
|
|
@@ -98,7 +98,7 @@ const $ = r.forwardRef(({ className: s, sideOffset: a = 4, children: e, ...t },
|
|
|
98
98
|
exit: { opacity: 0, scale: 0.95 },
|
|
99
99
|
transition: { ...C.snappy, opacity: D.fade },
|
|
100
100
|
className: d(
|
|
101
|
-
"z-popover min-w-[8rem] rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
101
|
+
"z-popover min-w-[8rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
102
102
|
s
|
|
103
103
|
),
|
|
104
104
|
children: e
|
|
@@ -107,83 +107,83 @@ const $ = r.forwardRef(({ className: s, sideOffset: a = 4, children: e, ...t },
|
|
|
107
107
|
}
|
|
108
108
|
) }) });
|
|
109
109
|
});
|
|
110
|
-
$.displayName =
|
|
111
|
-
const q =
|
|
110
|
+
$.displayName = w.displayName;
|
|
111
|
+
const q = t.forwardRef(({ className: s, inset: o, ...e }, r) => /* @__PURE__ */ a(
|
|
112
112
|
g,
|
|
113
113
|
{
|
|
114
|
-
ref:
|
|
114
|
+
ref: r,
|
|
115
115
|
className: d(
|
|
116
|
-
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-
|
|
117
|
-
|
|
116
|
+
"relative flex cursor-default select-none items-center gap-ds-03 rounded-ds-md px-ds-03 py-ds-02b text-ds-md outline-none 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",
|
|
117
|
+
o && "pl-ds-07",
|
|
118
118
|
s
|
|
119
119
|
),
|
|
120
120
|
...e
|
|
121
121
|
}
|
|
122
122
|
));
|
|
123
123
|
q.displayName = g.displayName;
|
|
124
|
-
const B =
|
|
125
|
-
|
|
124
|
+
const B = t.forwardRef(({ className: s, children: o, checked: e, ...r }, n) => /* @__PURE__ */ m(
|
|
125
|
+
v,
|
|
126
126
|
{
|
|
127
127
|
ref: n,
|
|
128
128
|
className: d(
|
|
129
|
-
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-
|
|
129
|
+
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none 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",
|
|
130
130
|
s
|
|
131
131
|
),
|
|
132
132
|
checked: e,
|
|
133
|
-
...
|
|
133
|
+
...r,
|
|
134
134
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
|
|
135
|
+
/* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ a(h, { children: /* @__PURE__ */ a(A, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
136
|
+
o
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
139
|
));
|
|
140
|
-
B.displayName =
|
|
141
|
-
const E =
|
|
142
|
-
|
|
140
|
+
B.displayName = v.displayName;
|
|
141
|
+
const E = t.forwardRef(({ className: s, children: o, ...e }, r) => /* @__PURE__ */ m(
|
|
142
|
+
x,
|
|
143
143
|
{
|
|
144
|
-
ref:
|
|
144
|
+
ref: r,
|
|
145
145
|
className: d(
|
|
146
|
-
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-
|
|
146
|
+
"relative flex cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-07 pr-ds-03 text-ds-md outline-none 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",
|
|
147
147
|
s
|
|
148
148
|
),
|
|
149
149
|
...e,
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
151
|
+
/* @__PURE__ */ a("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ a(h, { children: /* @__PURE__ */ a(L, { className: "h-2 w-2 fill-current" }) }) }),
|
|
152
|
+
o
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
));
|
|
156
|
-
E.displayName =
|
|
157
|
-
const F =
|
|
156
|
+
E.displayName = x.displayName;
|
|
157
|
+
const F = t.forwardRef(({ className: s, inset: o, ...e }, r) => /* @__PURE__ */ a(
|
|
158
158
|
N,
|
|
159
159
|
{
|
|
160
|
-
ref:
|
|
160
|
+
ref: r,
|
|
161
161
|
className: d(
|
|
162
162
|
"px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
163
|
-
|
|
163
|
+
o && "pl-ds-07",
|
|
164
164
|
s
|
|
165
165
|
),
|
|
166
166
|
...e
|
|
167
167
|
}
|
|
168
168
|
));
|
|
169
169
|
F.displayName = N.displayName;
|
|
170
|
-
const H =
|
|
170
|
+
const H = t.forwardRef(({ className: s, ...o }, e) => /* @__PURE__ */ a(
|
|
171
171
|
M,
|
|
172
172
|
{
|
|
173
173
|
ref: e,
|
|
174
174
|
className: d("-mx-ds-01 my-ds-02 h-px bg-surface-border", s),
|
|
175
|
-
...
|
|
175
|
+
...o
|
|
176
176
|
}
|
|
177
177
|
));
|
|
178
178
|
H.displayName = M.displayName;
|
|
179
179
|
const J = ({
|
|
180
180
|
className: s,
|
|
181
|
-
...
|
|
182
|
-
}) => /* @__PURE__ */
|
|
181
|
+
...o
|
|
182
|
+
}) => /* @__PURE__ */ a(
|
|
183
183
|
"span",
|
|
184
184
|
{
|
|
185
185
|
className: d("ml-auto text-ds-sm text-surface-fg-subtle", s),
|
|
186
|
-
...
|
|
186
|
+
...o
|
|
187
187
|
}
|
|
188
188
|
);
|
|
189
189
|
J.displayName = "DropdownMenuShortcut";
|
|
@@ -191,11 +191,11 @@ export {
|
|
|
191
191
|
U as DropdownMenu,
|
|
192
192
|
B as DropdownMenuCheckboxItem,
|
|
193
193
|
$ as DropdownMenuContent,
|
|
194
|
-
|
|
194
|
+
ae as DropdownMenuGroup,
|
|
195
195
|
q as DropdownMenuItem,
|
|
196
196
|
F as DropdownMenuLabel,
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
oe as DropdownMenuPortal,
|
|
198
|
+
re as DropdownMenuRadioGroup,
|
|
199
199
|
E as DropdownMenuRadioItem,
|
|
200
200
|
H as DropdownMenuSeparator,
|
|
201
201
|
J as DropdownMenuShortcut,
|
package/dist/ui/file-upload.js
CHANGED
|
@@ -99,7 +99,7 @@ const J = r.forwardRef(
|
|
|
99
99
|
"inline-flex items-center gap-ds-02 rounded-ds-md px-ds-03 py-ds-02",
|
|
100
100
|
"text-ds-sm font-medium",
|
|
101
101
|
"border border-surface-border-strong",
|
|
102
|
-
"bg-surface-
|
|
102
|
+
"bg-surface-raised-hover text-surface-fg-muted",
|
|
103
103
|
"hover:bg-accent-2",
|
|
104
104
|
"disabled:opacity-action-disabled disabled:cursor-not-allowed",
|
|
105
105
|
"transition-colors"
|
|
@@ -165,7 +165,7 @@ const J = r.forwardRef(
|
|
|
165
165
|
"flex flex-col items-center justify-center gap-ds-03 rounded-ds-lg",
|
|
166
166
|
"border-2 border-dashed p-ds-08",
|
|
167
167
|
"cursor-pointer",
|
|
168
|
-
"border-surface-border-strong bg-surface-
|
|
168
|
+
"border-surface-border-strong bg-surface-raised-hover",
|
|
169
169
|
b && "border-accent-7 bg-accent-2",
|
|
170
170
|
s && "opacity-action-disabled cursor-not-allowed"
|
|
171
171
|
),
|
|
@@ -213,7 +213,7 @@ const J = r.forwardRef(
|
|
|
213
213
|
"aria-valuenow": x,
|
|
214
214
|
"aria-valuemin": 0,
|
|
215
215
|
"aria-valuemax": 100,
|
|
216
|
-
className: "h-2 w-full overflow-hidden rounded-ds-full bg-surface-
|
|
216
|
+
className: "h-2 w-full overflow-hidden rounded-ds-full bg-surface-raised-hover",
|
|
217
217
|
children: /* @__PURE__ */ t(
|
|
218
218
|
c.div,
|
|
219
219
|
{
|
package/dist/ui/hover-card.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import { r as u, s as p, t as
|
|
4
|
+
import { r as u, s as p, t as v, u as C } from "../_chunks/primitives.js";
|
|
5
5
|
import { cn as y } from "./lib/utils.js";
|
|
6
|
-
import { tweens as
|
|
7
|
-
import { A as
|
|
6
|
+
import { tweens as g, springs as x } from "./lib/motion.js";
|
|
7
|
+
import { A as b, m as H } from "../_chunks/framer.js";
|
|
8
8
|
const m = t.createContext(!1), h = ({
|
|
9
|
-
open:
|
|
10
|
-
defaultOpen:
|
|
9
|
+
open: a,
|
|
10
|
+
defaultOpen: s = !1,
|
|
11
11
|
onOpenChange: e,
|
|
12
12
|
...n
|
|
13
13
|
}) => {
|
|
14
|
-
const [i, c] = t.useState(
|
|
14
|
+
const [i, c] = t.useState(s), o = a !== void 0, d = o ? a : i, f = t.useCallback(
|
|
15
15
|
(l) => {
|
|
16
16
|
o || c(l), e == null || e(l);
|
|
17
17
|
},
|
|
18
18
|
[o, e]
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ r(m.Provider, { value: d, children: /* @__PURE__ */ r(
|
|
20
|
+
return /* @__PURE__ */ r(m.Provider, { value: d, children: /* @__PURE__ */ r(C, { open: d, onOpenChange: f, ...n }) });
|
|
21
21
|
};
|
|
22
22
|
h.displayName = "HoverCard";
|
|
23
|
-
const T =
|
|
23
|
+
const T = v, w = t.forwardRef(({ className: a, align: s = "center", sideOffset: e = 4, children: n, ...i }, c) => {
|
|
24
24
|
const o = t.useContext(m);
|
|
25
|
-
return /* @__PURE__ */ r(
|
|
25
|
+
return /* @__PURE__ */ r(b, { children: o && /* @__PURE__ */ r(u, { forceMount: !0, children: /* @__PURE__ */ r(
|
|
26
26
|
p,
|
|
27
27
|
{
|
|
28
28
|
ref: c,
|
|
29
|
-
align:
|
|
29
|
+
align: s,
|
|
30
30
|
sideOffset: e,
|
|
31
31
|
forceMount: !0,
|
|
32
32
|
asChild: !0,
|
|
@@ -37,10 +37,10 @@ const T = C, w = t.forwardRef(({ className: s, align: a = "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: { ...x.snappy, opacity: g.fade },
|
|
41
41
|
className: y(
|
|
42
|
-
"z-popover w-64 rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
43
|
-
|
|
42
|
+
"z-popover w-64 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 shadow-floating outline-none",
|
|
43
|
+
a
|
|
44
44
|
),
|
|
45
45
|
children: n
|
|
46
46
|
}
|
package/dist/ui/input-otp.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { OTPInput as m, OTPInputContext as u } from "input-otp";
|
|
5
5
|
import { IconMinus as f } from "@tabler/icons-react";
|
|
6
6
|
import { cn as o } from "./lib/utils.js";
|
|
7
|
-
const x = a.forwardRef(({ className: e, containerClassName:
|
|
7
|
+
const x = a.forwardRef(({ className: e, containerClassName: r, ...s }, n) => /* @__PURE__ */ t(
|
|
8
8
|
m,
|
|
9
9
|
{
|
|
10
10
|
ref: n,
|
|
11
11
|
containerClassName: o(
|
|
12
12
|
"flex items-center gap-ds-03 has-[:disabled]:opacity-action-disabled",
|
|
13
|
-
|
|
13
|
+
r
|
|
14
14
|
),
|
|
15
15
|
className: o("disabled:cursor-not-allowed", e),
|
|
16
16
|
...s
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
19
|
x.displayName = "InputOTP";
|
|
20
|
-
const b = a.forwardRef(({ className: e, ...
|
|
20
|
+
const b = a.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t("div", { ref: s, className: o("flex items-center", e), ...r }));
|
|
21
21
|
b.displayName = "InputOTPGroup";
|
|
22
|
-
const I = a.forwardRef(({ index: e, className:
|
|
22
|
+
const I = a.forwardRef(({ index: e, className: r, ...s }, n) => {
|
|
23
23
|
const i = a.useContext(u), { char: d, hasFakeCaret: l, isActive: c } = i.slots[e];
|
|
24
24
|
return /* @__PURE__ */ p(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
ref: n,
|
|
28
28
|
className: o(
|
|
29
|
-
"relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-
|
|
29
|
+
"relative flex h-ds-sm-plus w-ds-sm-plus items-center justify-center border-y border-r border-surface-border-strong text-ds-md shadow-raised transition-[box-shadow] first:rounded-l-ds-md first:border-l last:rounded-r-ds-md",
|
|
30
30
|
c && "z-raised ring-2 ring-accent-9",
|
|
31
|
-
|
|
31
|
+
r
|
|
32
32
|
),
|
|
33
33
|
...s,
|
|
34
34
|
children: [
|
|
35
35
|
d,
|
|
36
|
-
l && /* @__PURE__ */
|
|
36
|
+
l && /* @__PURE__ */ t("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ t("div", { className: "animate-caret-blink h-[16px] w-px bg-surface-fg duration-slow-02" }) })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
});
|
|
41
41
|
I.displayName = "InputOTPSlot";
|
|
42
|
-
const O = a.forwardRef(({ ...e },
|
|
42
|
+
const O = a.forwardRef(({ ...e }, r) => /* @__PURE__ */ t("div", { ref: r, role: "separator", ...e, children: /* @__PURE__ */ t(f, {}) }));
|
|
43
43
|
O.displayName = "InputOTPSeparator";
|
|
44
44
|
export {
|
|
45
45
|
x as InputOTP,
|
package/dist/ui/input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
3
3
|
import * as v from "react";
|
|
4
4
|
import { ag as p } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as d } from "./lib/utils.js";
|
|
@@ -9,14 +9,14 @@ import { m as w } from "../_chunks/framer.js";
|
|
|
9
9
|
const y = p(
|
|
10
10
|
[
|
|
11
11
|
"flex w-full font-sans",
|
|
12
|
-
"bg-surface-
|
|
12
|
+
"bg-surface-raised-hover text-surface-fg",
|
|
13
13
|
"border border-surface-border rounded-ds-md",
|
|
14
14
|
"placeholder:text-surface-fg-subtle",
|
|
15
|
-
"hover:bg-surface-
|
|
15
|
+
"hover:bg-surface-raised-active",
|
|
16
16
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
17
17
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-7 focus-visible:border-surface-border",
|
|
18
18
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
19
|
-
"read-only:bg-surface-
|
|
19
|
+
"read-only:bg-surface-raised read-only:cursor-default"
|
|
20
20
|
],
|
|
21
21
|
{
|
|
22
22
|
variants: {
|
|
@@ -29,13 +29,13 @@ const y = p(
|
|
|
29
29
|
defaultVariants: { size: "md" }
|
|
30
30
|
}
|
|
31
31
|
), N = v.forwardRef(
|
|
32
|
-
({ className: n, type: l, state: m, size:
|
|
33
|
-
const r = h(), i = m ?? (r.state === "helper" ? void 0 : r.state), f =
|
|
32
|
+
({ className: n, type: l, state: m, size: a = "md", startIcon: e, endIcon: s, ...t }, u) => {
|
|
33
|
+
const r = h(), i = m ?? (r.state === "helper" ? void 0 : r.state), f = t["aria-describedby"] ?? r.helperTextId, b = t["aria-required"] ?? r.required, c = /* @__PURE__ */ o(
|
|
34
34
|
w.input,
|
|
35
35
|
{
|
|
36
36
|
type: l,
|
|
37
37
|
className: d(
|
|
38
|
-
y({ size:
|
|
38
|
+
y({ size: a }),
|
|
39
39
|
e && "pl-ds-07",
|
|
40
40
|
s && "pr-ds-07",
|
|
41
41
|
i === "error" && "border-error-7 focus-visible:ring-error-7",
|
|
@@ -47,13 +47,13 @@ const y = p(
|
|
|
47
47
|
"aria-describedby": f,
|
|
48
48
|
"aria-required": b || void 0,
|
|
49
49
|
ref: u,
|
|
50
|
-
...x(
|
|
50
|
+
...x(t)
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
53
|
return !e && !s ? c : /* @__PURE__ */ g("div", { className: "relative flex items-center w-full", children: [
|
|
54
|
-
e && /* @__PURE__ */
|
|
54
|
+
e && /* @__PURE__ */ o("span", { className: d("absolute left-ds-03 flex items-center text-surface-fg-muted pointer-events-none", a === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: e }),
|
|
55
55
|
c,
|
|
56
|
-
s && /* @__PURE__ */
|
|
56
|
+
s && /* @__PURE__ */ o("span", { className: d("absolute right-ds-03 flex items-center text-surface-fg-muted pointer-events-none", a === "lg" ? "[&>svg]:h-ico-md [&>svg]:w-ico-md" : "[&>svg]:h-ico-sm [&>svg]:w-ico-sm"), children: s })
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
);
|