@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/popover.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import { P as u, d
|
|
5
|
-
import { cn as
|
|
6
|
-
import { tweens as
|
|
4
|
+
import { P as u, d, c as v, b as P, aP as y } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as g } from "./lib/utils.js";
|
|
6
|
+
import { tweens as x, springs as b } from "./lib/motion.js";
|
|
7
7
|
import { A as h, m as C } from "../_chunks/framer.js";
|
|
8
8
|
const m = t.createContext(!1), w = ({
|
|
9
9
|
open: s,
|
|
10
|
-
defaultOpen:
|
|
10
|
+
defaultOpen: a = !1,
|
|
11
11
|
onOpenChange: o,
|
|
12
|
-
...
|
|
12
|
+
...n
|
|
13
13
|
}) => {
|
|
14
|
-
const [c, i] = t.useState(
|
|
15
|
-
(
|
|
16
|
-
r || i(
|
|
14
|
+
const [c, i] = t.useState(a), r = s !== void 0, p = r ? s : c, f = t.useCallback(
|
|
15
|
+
(l) => {
|
|
16
|
+
r || i(l), o == null || o(l);
|
|
17
17
|
},
|
|
18
18
|
[r, o]
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(
|
|
20
|
+
return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(P, { open: p, onOpenChange: f, ...n }) });
|
|
21
21
|
};
|
|
22
22
|
w.displayName = "Popover";
|
|
23
|
-
const k =
|
|
23
|
+
const k = v, z = y, A = t.forwardRef(({ className: s, align: a = "center", sideOffset: o = 4, children: n, ...c }, i) => {
|
|
24
24
|
const r = t.useContext(m);
|
|
25
25
|
return /* @__PURE__ */ e(h, { children: r && /* @__PURE__ */ e(u, { forceMount: !0, children: /* @__PURE__ */ e(
|
|
26
|
-
|
|
26
|
+
d,
|
|
27
27
|
{
|
|
28
28
|
ref: i,
|
|
29
|
-
align:
|
|
29
|
+
align: a,
|
|
30
30
|
sideOffset: o,
|
|
31
31
|
forceMount: !0,
|
|
32
32
|
asChild: !0,
|
|
@@ -37,18 +37,18 @@ const k = P, z = y, A = t.forwardRef(({ className: s, align: n = "center", sideO
|
|
|
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: { ...
|
|
41
|
-
className:
|
|
42
|
-
"z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
40
|
+
transition: { ...b.snappy, opacity: x.fade },
|
|
41
|
+
className: g(
|
|
42
|
+
"z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 text-surface-fg shadow-floating outline-none",
|
|
43
43
|
s
|
|
44
44
|
),
|
|
45
|
-
children:
|
|
45
|
+
children: n
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
}
|
|
49
49
|
) }) });
|
|
50
50
|
});
|
|
51
|
-
A.displayName =
|
|
51
|
+
A.displayName = d.displayName;
|
|
52
52
|
export {
|
|
53
53
|
w as Popover,
|
|
54
54
|
z as PopoverAnchor,
|
package/dist/ui/progress.js
CHANGED
|
@@ -7,7 +7,7 @@ import { cn as a } from "./lib/utils.js";
|
|
|
7
7
|
import { springs as w } from "./lib/motion.js";
|
|
8
8
|
import { m as x } from "../_chunks/framer.js";
|
|
9
9
|
const N = c(
|
|
10
|
-
"relative w-full overflow-hidden rounded-ds-full bg-surface-
|
|
10
|
+
"relative w-full overflow-hidden rounded-ds-full bg-surface-raised",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
13
13
|
size: {
|
package/dist/ui/radio.js
CHANGED
|
@@ -14,11 +14,11 @@ const u = t.forwardRef(({ className: r, ...a }, s) => /* @__PURE__ */ e(
|
|
|
14
14
|
ref: s,
|
|
15
15
|
className: c(
|
|
16
16
|
"aspect-square h-ico-md w-ico-md rounded-ds-full",
|
|
17
|
-
"border border-surface-border-strong bg-surface-
|
|
17
|
+
"border border-surface-border-strong bg-surface-raised-hover",
|
|
18
18
|
"transition-colors duration-fast-01",
|
|
19
19
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
20
20
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
21
|
-
"hover:border-accent-7 hover:bg-surface-
|
|
21
|
+
"hover:border-accent-7 hover:bg-surface-raised-active",
|
|
22
22
|
"data-[state=checked]:border-accent-7",
|
|
23
23
|
r
|
|
24
24
|
),
|
package/dist/ui/search-input.js
CHANGED
|
@@ -30,10 +30,10 @@ const x = {
|
|
|
30
30
|
className: p(
|
|
31
31
|
"flex w-full font-sans",
|
|
32
32
|
x[i],
|
|
33
|
-
"bg-surface-
|
|
33
|
+
"bg-surface-raised-hover text-surface-fg",
|
|
34
34
|
"border border-surface-border-strong rounded-ds-md",
|
|
35
35
|
"placeholder:text-surface-fg-subtle",
|
|
36
|
-
"hover:bg-surface-
|
|
36
|
+
"hover:bg-surface-raised-active",
|
|
37
37
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
38
38
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:border-accent-7",
|
|
39
39
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
@@ -47,7 +47,7 @@ const x = {
|
|
|
47
47
|
{
|
|
48
48
|
type: "button",
|
|
49
49
|
onClick: r,
|
|
50
|
-
className: "absolute right-[0.75rem] rounded-ds-full h-ico-md w-ico-md flex items-center justify-center text-surface-fg-muted hover:text-surface-fg hover:bg-surface-
|
|
50
|
+
className: "absolute right-[0.75rem] rounded-ds-full h-ico-md w-ico-md flex items-center justify-center text-surface-fg-muted hover:text-surface-fg hover:bg-surface-raised transition-colors ease-productive-standard",
|
|
51
51
|
"aria-label": "Clear search",
|
|
52
52
|
initial: { opacity: 0, scale: 0.8 },
|
|
53
53
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -86,7 +86,7 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<SegmentedControl
|
|
|
86
86
|
* const [view, setView] = useState<'list' | 'grid'>('list')
|
|
87
87
|
* const [focused, setFocused] = useState<string | null>(null)
|
|
88
88
|
*
|
|
89
|
-
* <div role="tablist" className="inline-flex rounded-full border border-surface-border-strong bg-surface-
|
|
89
|
+
* <div role="tablist" className="inline-flex rounded-full border border-surface-border-strong bg-surface-raised">
|
|
90
90
|
* <SegmentedControlItem
|
|
91
91
|
* size="md" variant="tonal" text="List"
|
|
92
92
|
* isSelected={view === 'list'} isFocused={focused === 'list'}
|
|
@@ -6,19 +6,19 @@ import { cn as w } from "./lib/utils.js";
|
|
|
6
6
|
import { springs as L } from "./lib/motion.js";
|
|
7
7
|
import { L as T, m as C, A } from "../_chunks/framer.js";
|
|
8
8
|
function j(u = 600) {
|
|
9
|
-
const [
|
|
9
|
+
const [v, l] = k([]), s = I(/* @__PURE__ */ new Set());
|
|
10
10
|
S(() => () => {
|
|
11
11
|
s.current.forEach(clearTimeout);
|
|
12
12
|
}, []);
|
|
13
13
|
const m = R((n) => {
|
|
14
|
-
const a = n.currentTarget.getBoundingClientRect(), t = Math.max(a.width, a.height) * 2,
|
|
15
|
-
l((i) => [...i, { id: x, x:
|
|
14
|
+
const a = n.currentTarget.getBoundingClientRect(), t = Math.max(a.width, a.height) * 2, b = n.clientX - a.left - t / 2, o = n.clientY - a.top - t / 2, x = Date.now();
|
|
15
|
+
l((i) => [...i, { id: x, x: b, y: o, size: t }]);
|
|
16
16
|
const g = setTimeout(() => {
|
|
17
17
|
l((i) => i.filter((f) => f.id !== x)), s.current.delete(g);
|
|
18
18
|
}, u);
|
|
19
19
|
s.current.add(g);
|
|
20
20
|
}, [u]);
|
|
21
|
-
return { ripples:
|
|
21
|
+
return { ripples: v, createRipple: m };
|
|
22
22
|
}
|
|
23
23
|
const B = H(
|
|
24
24
|
[
|
|
@@ -26,7 +26,7 @@ const B = H(
|
|
|
26
26
|
"transition-[color,background-color,border-color,box-shadow] duration-moderate-02 ease-productive-standard",
|
|
27
27
|
"relative overflow-hidden",
|
|
28
28
|
"font-accent font-semibold leading-none text-center",
|
|
29
|
-
"bg-surface-
|
|
29
|
+
"bg-surface-overlay",
|
|
30
30
|
"first:rounded-tr-none first:rounded-br-none",
|
|
31
31
|
"last:rounded-tl-none last:rounded-bl-none"
|
|
32
32
|
],
|
|
@@ -73,7 +73,7 @@ const B = H(
|
|
|
73
73
|
variant: "filled",
|
|
74
74
|
className: [
|
|
75
75
|
"bg-accent-9",
|
|
76
|
-
"shadow-[0px_4px_8px_0px_var(--color-accent-10),0px_1px_3px_0.05px_var(--color-surface-
|
|
76
|
+
"shadow-[0px_4px_8px_0px_var(--color-accent-10),0px_1px_3px_0.05px_var(--color-surface-raised),inset_0px_8px_16px_0px_var(--color-inset-glow-strong),inset_0px_2px_0px_0px_var(--color-inset-glow-subtle)]"
|
|
77
77
|
].join(" ")
|
|
78
78
|
},
|
|
79
79
|
// Hover + tonal
|
|
@@ -132,16 +132,16 @@ function K(u) {
|
|
|
132
132
|
}
|
|
133
133
|
const U = D.forwardRef(
|
|
134
134
|
function({
|
|
135
|
-
size:
|
|
135
|
+
size: v,
|
|
136
136
|
variant: l,
|
|
137
137
|
options: s,
|
|
138
138
|
selectedId: m,
|
|
139
139
|
onSelect: n,
|
|
140
140
|
disabled: a = !1,
|
|
141
141
|
className: t = "",
|
|
142
|
-
...
|
|
142
|
+
...b
|
|
143
143
|
}, o) {
|
|
144
|
-
const x = K(
|
|
144
|
+
const x = K(v), g = E(), [i, f] = k(null), h = I(null), y = D.useCallback((e) => {
|
|
145
145
|
h.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
146
146
|
}, [o]), N = (e) => {
|
|
147
147
|
if (a) return;
|
|
@@ -172,7 +172,7 @@ const U = D.forwardRef(
|
|
|
172
172
|
ref: y,
|
|
173
173
|
className: w(
|
|
174
174
|
"inline-flex gap-0 p-0 rounded-ds-full",
|
|
175
|
-
"bg-surface-
|
|
175
|
+
"bg-surface-raised",
|
|
176
176
|
"border border-solid border-surface-border-strong",
|
|
177
177
|
t
|
|
178
178
|
),
|
|
@@ -180,7 +180,7 @@ const U = D.forwardRef(
|
|
|
180
180
|
onKeyDown: N,
|
|
181
181
|
tabIndex: -1,
|
|
182
182
|
"aria-label": "Segmented control options",
|
|
183
|
-
...
|
|
183
|
+
...b,
|
|
184
184
|
children: /* @__PURE__ */ d(T, { children: s.map((e) => /* @__PURE__ */ d(
|
|
185
185
|
M,
|
|
186
186
|
{
|
|
@@ -205,20 +205,20 @@ const U = D.forwardRef(
|
|
|
205
205
|
U.displayName = "SegmentedControl";
|
|
206
206
|
const M = D.forwardRef(
|
|
207
207
|
function({
|
|
208
|
-
size:
|
|
208
|
+
size: v,
|
|
209
209
|
variant: l,
|
|
210
210
|
text: s,
|
|
211
211
|
icon: m,
|
|
212
212
|
isSelected: n,
|
|
213
213
|
onClick: a,
|
|
214
214
|
disabled: t = !1,
|
|
215
|
-
isFocused:
|
|
215
|
+
isFocused: b,
|
|
216
216
|
onFocus: o,
|
|
217
217
|
onBlur: x,
|
|
218
218
|
layoutId: g = "segment-indicator"
|
|
219
219
|
}, i) {
|
|
220
220
|
const [f, h] = k("default"), { ripples: y, createRipple: N } = j(), e = () => {
|
|
221
|
-
!t && !
|
|
221
|
+
!t && !b && h("hover");
|
|
222
222
|
}, p = () => {
|
|
223
223
|
t || h("default");
|
|
224
224
|
}, c = () => {
|
|
@@ -232,7 +232,7 @@ const M = D.forwardRef(
|
|
|
232
232
|
ref: i,
|
|
233
233
|
className: w(
|
|
234
234
|
B({
|
|
235
|
-
size:
|
|
235
|
+
size: v,
|
|
236
236
|
variant: l,
|
|
237
237
|
selected: n,
|
|
238
238
|
isHovered: f === "hover",
|
|
@@ -262,7 +262,7 @@ const M = D.forwardRef(
|
|
|
262
262
|
layoutId: g,
|
|
263
263
|
className: w(
|
|
264
264
|
"absolute inset-0 rounded-ds-full pointer-events-none",
|
|
265
|
-
l === "filled" ? "bg-accent-9 shadow-[0px_1px_3px_0.05px_var(--color-accent-10),inset_0px_8px_16px_0px_var(--color-inset-glow-strong),inset_0px_2px_0px_0px_var(--color-inset-glow-subtle)]" : "bg-surface-
|
|
265
|
+
l === "filled" ? "bg-accent-9 shadow-[0px_1px_3px_0.05px_var(--color-accent-10),inset_0px_8px_16px_0px_var(--color-inset-glow-strong),inset_0px_2px_0px_0px_var(--color-inset-glow-subtle)]" : "bg-surface-raised-hover"
|
|
266
266
|
),
|
|
267
267
|
transition: L.smooth
|
|
268
268
|
}
|
package/dist/ui/select.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { ao as
|
|
5
|
-
import { IconChevronDown as
|
|
4
|
+
import { ao as c, ap as w, aq as n, ar as m, as as x, at as p, au as N, av as f, aw as u, ax as v, ay as S, az as h, aA as I, aB as R, aC as C } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronDown as y, IconChevronUp as j, IconCheck as B } from "@tabler/icons-react";
|
|
6
6
|
import { ag as V } from "../_chunks/vendor-utils.js";
|
|
7
7
|
import { cn as r } from "./lib/utils.js";
|
|
8
8
|
import { tweens as z, springs as T } from "./lib/motion.js";
|
|
9
9
|
import { m as D } from "../_chunks/framer.js";
|
|
10
10
|
const O = I, Q = C, W = R, U = V(
|
|
11
|
-
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-
|
|
11
|
+
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-surface-border-strong bg-surface-raised-hover placeholder:text-surface-fg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 focus-visible:border-accent-7 disabled:cursor-not-allowed disabled:opacity-action-disabled [&>span]:line-clamp-1",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
size: {
|
|
@@ -19,20 +19,20 @@ const O = I, Q = C, W = R, U = V(
|
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: { size: "md" }
|
|
21
21
|
}
|
|
22
|
-
), G = o.forwardRef(({ className: s, children: t, size: a, ...d }, i) => /* @__PURE__ */
|
|
23
|
-
|
|
22
|
+
), G = o.forwardRef(({ className: s, children: t, size: a, ...d }, i) => /* @__PURE__ */ l(
|
|
23
|
+
c,
|
|
24
24
|
{
|
|
25
25
|
ref: i,
|
|
26
26
|
className: r(U({ size: a }), s),
|
|
27
27
|
...d,
|
|
28
28
|
children: [
|
|
29
29
|
t,
|
|
30
|
-
/* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(
|
|
30
|
+
/* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(y, { className: "h-ico-sm w-ico-sm opacity-50" }) })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
));
|
|
34
|
-
G.displayName =
|
|
35
|
-
const
|
|
34
|
+
G.displayName = c.displayName;
|
|
35
|
+
const b = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
36
36
|
n,
|
|
37
37
|
{
|
|
38
38
|
ref: a,
|
|
@@ -44,7 +44,7 @@ const y = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
|
44
44
|
children: /* @__PURE__ */ e(j, { className: "h-ico-sm w-ico-sm" })
|
|
45
45
|
}
|
|
46
46
|
));
|
|
47
|
-
|
|
47
|
+
b.displayName = n.displayName;
|
|
48
48
|
const g = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
49
49
|
m,
|
|
50
50
|
{
|
|
@@ -54,7 +54,7 @@ const g = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
|
54
54
|
s
|
|
55
55
|
),
|
|
56
56
|
...t,
|
|
57
|
-
children: /* @__PURE__ */ e(
|
|
57
|
+
children: /* @__PURE__ */ e(y, { className: "h-ico-sm w-ico-sm" })
|
|
58
58
|
}
|
|
59
59
|
));
|
|
60
60
|
g.displayName = m.displayName;
|
|
@@ -65,19 +65,19 @@ const L = o.forwardRef(({ className: s, children: t, position: a = "popper", ...
|
|
|
65
65
|
position: a,
|
|
66
66
|
asChild: !0,
|
|
67
67
|
...d,
|
|
68
|
-
children: /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ l(
|
|
69
69
|
D.div,
|
|
70
70
|
{
|
|
71
71
|
initial: { opacity: 0, scale: 0.95 },
|
|
72
72
|
animate: { opacity: 1, scale: 1 },
|
|
73
73
|
transition: { ...T.snappy, opacity: z.fade },
|
|
74
74
|
className: r(
|
|
75
|
-
"relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
75
|
+
"relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay text-surface-fg shadow-floating",
|
|
76
76
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
77
77
|
s
|
|
78
78
|
),
|
|
79
79
|
children: [
|
|
80
|
-
/* @__PURE__ */ e(
|
|
80
|
+
/* @__PURE__ */ e(b, {}),
|
|
81
81
|
/* @__PURE__ */ e(
|
|
82
82
|
N,
|
|
83
83
|
{
|
|
@@ -104,12 +104,12 @@ const k = o.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
|
104
104
|
}
|
|
105
105
|
));
|
|
106
106
|
k.displayName = f.displayName;
|
|
107
|
-
const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */
|
|
107
|
+
const q = o.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ l(
|
|
108
108
|
u,
|
|
109
109
|
{
|
|
110
110
|
ref: d,
|
|
111
111
|
className: r(
|
|
112
|
-
"relative flex w-full cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-03 pr-ds-07 text-ds-md outline-none transition-colors duration-fast-01 ease-productive-standard hover:bg-surface-
|
|
112
|
+
"relative flex w-full cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-03 pr-ds-07 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 data-[disabled]:pointer-events-none data-[disabled]:opacity-action-disabled",
|
|
113
113
|
s
|
|
114
114
|
),
|
|
115
115
|
...a,
|
|
@@ -136,7 +136,7 @@ export {
|
|
|
136
136
|
q as SelectItem,
|
|
137
137
|
k as SelectLabel,
|
|
138
138
|
g as SelectScrollDownButton,
|
|
139
|
-
|
|
139
|
+
b as SelectScrollUpButton,
|
|
140
140
|
A as SelectSeparator,
|
|
141
141
|
G as SelectTrigger,
|
|
142
142
|
W as SelectValue,
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
4
|
import { aa as h, ab as R, ac as u, ad as x, ae as b, af as y, ag as P, ah as j } from "../_chunks/primitives.js";
|
|
5
5
|
import { ag as T } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { IconX as A } from "@tabler/icons-react";
|
|
7
7
|
import { cn as a } from "./lib/utils.js";
|
|
8
8
|
import { tweens as M, motionProps as g, springs as z } from "./lib/motion.js";
|
|
9
9
|
import { m as v, A as D } from "../_chunks/framer.js";
|
|
10
|
-
const N =
|
|
10
|
+
const N = o.createContext(!1), F = ({
|
|
11
11
|
open: e,
|
|
12
12
|
defaultOpen: s = !1,
|
|
13
13
|
onOpenChange: t,
|
|
14
14
|
children: i,
|
|
15
15
|
...n
|
|
16
16
|
}) => {
|
|
17
|
-
const [l, S] =
|
|
17
|
+
const [l, S] = o.useState(s), d = e !== void 0, m = d ? e : l, C = o.useCallback(
|
|
18
18
|
(f) => {
|
|
19
19
|
d || S(f), t == null || t(f);
|
|
20
20
|
},
|
|
21
21
|
[d, t]
|
|
22
22
|
);
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ r(N.Provider, { value: m, children: /* @__PURE__ */ r(P, { open: m, onOpenChange: C, ...n, children: i }) });
|
|
24
24
|
};
|
|
25
25
|
F.displayName = "Sheet";
|
|
26
|
-
const W = j, Y = x, H = R, w =
|
|
26
|
+
const W = j, Y = x, H = R, w = o.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(h, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ r(
|
|
27
27
|
v.div,
|
|
28
28
|
{
|
|
29
29
|
ref: t,
|
|
@@ -47,7 +47,7 @@ const p = {
|
|
|
47
47
|
left: { x: 0 },
|
|
48
48
|
right: { x: 0 }
|
|
49
49
|
}, V = T(
|
|
50
|
-
"fixed z-modal gap-ds-05 bg-surface-
|
|
50
|
+
"fixed z-modal gap-ds-05 bg-surface-overlay p-ds-06 shadow-overlay",
|
|
51
51
|
{
|
|
52
52
|
variants: {
|
|
53
53
|
side: {
|
|
@@ -61,11 +61,11 @@ const p = {
|
|
|
61
61
|
side: "right"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
), k =
|
|
65
|
-
const l =
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
64
|
+
), k = o.forwardRef(({ side: e = "right", className: s, children: t, ...i }, n) => {
|
|
65
|
+
const l = o.useContext(N);
|
|
66
|
+
return /* @__PURE__ */ r(D, { children: l && /* @__PURE__ */ c(H, { forceMount: !0, children: [
|
|
67
|
+
/* @__PURE__ */ r(w, {}),
|
|
68
|
+
/* @__PURE__ */ r(u, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ c(
|
|
69
69
|
v.div,
|
|
70
70
|
{
|
|
71
71
|
ref: n,
|
|
@@ -76,9 +76,9 @@ const p = {
|
|
|
76
76
|
transition: z.smooth,
|
|
77
77
|
...g(i),
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */ c(x, { 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 ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ c(x, { 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 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: [
|
|
80
|
+
/* @__PURE__ */ r(A, { className: "h-ico-sm w-ico-sm" }),
|
|
81
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Close" })
|
|
82
82
|
] }),
|
|
83
83
|
t
|
|
84
84
|
]
|
|
@@ -87,8 +87,8 @@ const p = {
|
|
|
87
87
|
] }) });
|
|
88
88
|
});
|
|
89
89
|
k.displayName = u.displayName;
|
|
90
|
-
const O =
|
|
91
|
-
({ className: e, ...s }, t) => /* @__PURE__ */
|
|
90
|
+
const O = o.forwardRef(
|
|
91
|
+
({ className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
94
94
|
ref: t,
|
|
@@ -101,8 +101,8 @@ const O = r.forwardRef(
|
|
|
101
101
|
)
|
|
102
102
|
);
|
|
103
103
|
O.displayName = "SheetHeader";
|
|
104
|
-
const U =
|
|
105
|
-
({ className: e, ...s }, t) => /* @__PURE__ */
|
|
104
|
+
const U = o.forwardRef(
|
|
105
|
+
({ className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
108
|
ref: t,
|
|
@@ -115,7 +115,7 @@ const U = r.forwardRef(
|
|
|
115
115
|
)
|
|
116
116
|
);
|
|
117
117
|
U.displayName = "SheetFooter";
|
|
118
|
-
const X =
|
|
118
|
+
const X = o.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
119
119
|
b,
|
|
120
120
|
{
|
|
121
121
|
ref: t,
|
|
@@ -124,7 +124,7 @@ const X = r.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ o(
|
|
|
124
124
|
}
|
|
125
125
|
));
|
|
126
126
|
X.displayName = b.displayName;
|
|
127
|
-
const q =
|
|
127
|
+
const q = o.forwardRef(({ className: e, ...s }, t) => /* @__PURE__ */ r(
|
|
128
128
|
y,
|
|
129
129
|
{
|
|
130
130
|
ref: t,
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -73,7 +73,7 @@ const ae = i(
|
|
|
73
73
|
...o
|
|
74
74
|
},
|
|
75
75
|
className: r(
|
|
76
|
-
"group/sidebar-wrapper flex min-h-svh has-[[data-variant=inset]]:bg-surface-
|
|
76
|
+
"group/sidebar-wrapper flex min-h-svh has-[[data-variant=inset]]:bg-surface-sunken",
|
|
77
77
|
d
|
|
78
78
|
),
|
|
79
79
|
ref: f,
|
|
@@ -98,7 +98,7 @@ const te = i(
|
|
|
98
98
|
"div",
|
|
99
99
|
{
|
|
100
100
|
className: r(
|
|
101
|
-
"flex h-full w-[--sidebar-width] flex-col bg-surface-
|
|
101
|
+
"flex h-full w-[--sidebar-width] flex-col bg-surface-raised text-surface-fg",
|
|
102
102
|
d
|
|
103
103
|
),
|
|
104
104
|
ref: u,
|
|
@@ -110,7 +110,7 @@ const te = i(
|
|
|
110
110
|
{
|
|
111
111
|
"data-sidebar": "sidebar",
|
|
112
112
|
"data-mobile": "true",
|
|
113
|
-
className: "w-[--sidebar-width] bg-surface-
|
|
113
|
+
className: "w-[--sidebar-width] bg-surface-raised p-0 text-surface-fg [&>button]:hidden",
|
|
114
114
|
style: {
|
|
115
115
|
"--sidebar-width": Q
|
|
116
116
|
},
|
|
@@ -152,7 +152,7 @@ const te = i(
|
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
154
|
"data-sidebar": "sidebar",
|
|
155
|
-
className: "flex h-full w-full flex-col bg-surface-
|
|
155
|
+
className: "flex h-full w-full flex-col bg-surface-raised group-data-[variant=floating]:rounded-ds-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-surface-border group-data-[variant=floating]:shadow",
|
|
156
156
|
children: o
|
|
157
157
|
}
|
|
158
158
|
)
|
|
@@ -202,7 +202,7 @@ const re = i(
|
|
|
202
202
|
"hover:after:bg-surface-border-strong absolute inset-y-0 z-raised hidden w-4 -translate-x-1/2 transition-colors ease-productive-standard after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
203
203
|
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
204
204
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
205
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-surface-
|
|
205
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-surface-raised-hover",
|
|
206
206
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
207
207
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
208
208
|
a
|
|
@@ -219,7 +219,7 @@ const ie = i(
|
|
|
219
219
|
{
|
|
220
220
|
ref: t,
|
|
221
221
|
className: r(
|
|
222
|
-
"relative flex min-h-svh flex-1 flex-col bg-surface-
|
|
222
|
+
"relative flex min-h-svh flex-1 flex-col bg-surface-base",
|
|
223
223
|
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-ds-03 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-ds-03 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-ds-xl md:peer-data-[variant=inset]:shadow",
|
|
224
224
|
a
|
|
225
225
|
),
|
|
@@ -234,7 +234,7 @@ const de = i(({ className: a, ...e }, t) => /* @__PURE__ */ s(
|
|
|
234
234
|
ref: t,
|
|
235
235
|
"data-sidebar": "input",
|
|
236
236
|
className: r(
|
|
237
|
-
"h-ds-sm w-full bg-surface-
|
|
237
|
+
"h-ds-sm w-full bg-surface-raised shadow-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
238
238
|
a
|
|
239
239
|
),
|
|
240
240
|
...e
|
|
@@ -325,7 +325,7 @@ const me = i(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ s(
|
|
|
325
325
|
ref: d,
|
|
326
326
|
"data-sidebar": "group-action",
|
|
327
327
|
className: r(
|
|
328
|
-
"hover:bg-surface-
|
|
328
|
+
"hover:bg-surface-raised-hover absolute right-ds-04 top-ds-04 flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-surface-fg outline-none ring-accent-9 transition-transform hover:text-surface-fg focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
329
329
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
330
330
|
"group-data-[collapsible=icon]:hidden",
|
|
331
331
|
a
|
|
@@ -371,12 +371,12 @@ const ge = i(
|
|
|
371
371
|
);
|
|
372
372
|
ge.displayName = "SidebarMenuItem";
|
|
373
373
|
const he = T(
|
|
374
|
-
"peer/menu-button hover:bg-surface-
|
|
374
|
+
"peer/menu-button hover:bg-surface-raised-hover active:bg-accent-2 data-[active=true]:bg-accent-2 data-[state=open]:hover:bg-surface-raised-hover flex w-full items-center gap-ds-03 overflow-hidden rounded-ds-md p-ds-03 text-left outline-none ring-accent-9 transition-[width,height,padding] hover:text-surface-fg focus-visible:ring-2 active:text-surface-fg disabled:pointer-events-none disabled:opacity-action-disabled group-has-[[data-sidebar=menu-action]]/menu-item:pr-ds-07 aria-disabled:pointer-events-none aria-disabled:opacity-action-disabled data-[active=true]:font-medium data-[active=true]:text-surface-fg data-[state=open]:hover:text-surface-fg group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-ds-03 [&>span:last-child]:truncate [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
375
375
|
{
|
|
376
376
|
variants: {
|
|
377
377
|
variant: {
|
|
378
|
-
default: "hover:bg-surface-
|
|
379
|
-
outline: "hover:bg-surface-
|
|
378
|
+
default: "hover:bg-surface-raised-hover hover:text-surface-fg",
|
|
379
|
+
outline: "hover:bg-surface-raised-hover bg-surface-raised shadow-[0_0_0_1px_var(--color-surface-border)] hover:text-surface-fg hover:shadow-[0_0_0_1px_var(--color-surface-border-strong)]"
|
|
380
380
|
},
|
|
381
381
|
size: {
|
|
382
382
|
md: "h-ds-sm text-ds-md",
|
|
@@ -445,7 +445,7 @@ const xe = i(({ className: a, asChild: e = !1, showOnHover: t = !1, ...d }, o) =
|
|
|
445
445
|
ref: o,
|
|
446
446
|
"data-sidebar": "menu-action",
|
|
447
447
|
className: r(
|
|
448
|
-
"hover:bg-surface-
|
|
448
|
+
"hover:bg-surface-raised-hover absolute right-ds-02 top-ds-02b flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-surface-fg outline-none ring-accent-9 transition-transform hover:text-surface-fg focus-visible:ring-2 peer-hover/menu-button:text-surface-fg [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
449
449
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
450
450
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
451
451
|
"peer-data-[size=md]/menu-button:top-ds-02b",
|
|
@@ -538,7 +538,7 @@ const Me = i(({ asChild: a = !1, size: e = "md", isActive: t, className: d, ...o
|
|
|
538
538
|
"data-size": e,
|
|
539
539
|
"data-active": t,
|
|
540
540
|
className: r(
|
|
541
|
-
"hover:bg-surface-
|
|
541
|
+
"hover:bg-surface-raised-hover active:bg-accent-2 flex h-ds-xs-plus min-w-0 -translate-x-px items-center gap-ds-03 overflow-hidden rounded-ds-md px-ds-03 text-surface-fg outline-none ring-accent-9 hover:text-surface-fg focus-visible:ring-2 active:text-surface-fg disabled:pointer-events-none disabled:opacity-action-disabled aria-disabled:pointer-events-none aria-disabled:opacity-action-disabled [&>span:last-child]:truncate [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0 [&>svg]:text-surface-fg",
|
|
542
542
|
"data-[active=true]:bg-accent-2 data-[active=true]:text-surface-fg",
|
|
543
543
|
e === "sm" && "text-ds-sm",
|
|
544
544
|
e === "md" && "text-ds-md",
|
package/dist/ui/slider.js
CHANGED
|
@@ -17,12 +17,12 @@ const v = f.forwardRef(({ className: i, "aria-label": l, value: a, defaultValue:
|
|
|
17
17
|
),
|
|
18
18
|
...n,
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ e(m, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-surface-
|
|
20
|
+
/* @__PURE__ */ e(m, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(b, { className: "absolute h-full bg-accent-9" }) }),
|
|
21
21
|
Array.from({ length: s }, (g, c) => /* @__PURE__ */ e(
|
|
22
22
|
u,
|
|
23
23
|
{
|
|
24
24
|
"aria-label": s === 1 ? l : void 0,
|
|
25
|
-
className: "block h-ico-sm w-ico-sm rounded-ds-full border-2 border-accent-7 bg-surface-
|
|
25
|
+
className: "block h-ico-sm w-ico-sm rounded-ds-full border-2 border-accent-7 bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:scale-110 hover:shadow-raised-hover active:scale-[1.15] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled"
|
|
26
26
|
},
|
|
27
27
|
c
|
|
28
28
|
))
|