@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
|
@@ -3,7 +3,7 @@ import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { b9 as N, ba as h, bb as w, bc as x, bd as R, be as M, bf as O, bg as V } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronDown as L } from "@tabler/icons-react";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as d } from "./lib/utils.js";
|
|
7
7
|
import { tweens as g, springs as I } from "./lib/motion.js";
|
|
8
8
|
import { Icon as S } from "./icon.js";
|
|
9
9
|
import { m as y } from "../_chunks/framer.js";
|
|
@@ -11,7 +11,7 @@ const W = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__PURE__
|
|
|
11
11
|
N,
|
|
12
12
|
{
|
|
13
13
|
ref: r,
|
|
14
|
-
className:
|
|
14
|
+
className: d(
|
|
15
15
|
"relative z-raised flex max-w-max flex-1 items-center justify-center",
|
|
16
16
|
n
|
|
17
17
|
),
|
|
@@ -27,7 +27,7 @@ const z = a.forwardRef(({ className: n, ...o }, t) => /* @__PURE__ */ c(
|
|
|
27
27
|
h,
|
|
28
28
|
{
|
|
29
29
|
ref: t,
|
|
30
|
-
className:
|
|
30
|
+
className: d(
|
|
31
31
|
"group flex flex-1 list-none items-center justify-center space-x-ds-02",
|
|
32
32
|
n
|
|
33
33
|
),
|
|
@@ -39,8 +39,8 @@ const P = O, D = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__
|
|
|
39
39
|
w,
|
|
40
40
|
{
|
|
41
41
|
ref: r,
|
|
42
|
-
className:
|
|
43
|
-
"group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-ds-md bg-transparent px-ds-05 py-ds-03 text-ds-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-
|
|
42
|
+
className: d(
|
|
43
|
+
"group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-ds-md bg-transparent px-ds-05 py-ds-03 text-ds-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
44
44
|
n
|
|
45
45
|
),
|
|
46
46
|
...t,
|
|
@@ -68,8 +68,8 @@ const b = {
|
|
|
68
68
|
a.useEffect(() => {
|
|
69
69
|
const s = r.current;
|
|
70
70
|
if (!s) return;
|
|
71
|
-
const
|
|
72
|
-
|
|
71
|
+
const u = s.getAttribute("data-motion");
|
|
72
|
+
u && l(u);
|
|
73
73
|
const f = new MutationObserver((A) => {
|
|
74
74
|
for (const C of A)
|
|
75
75
|
if (C.attributeName === "data-motion") {
|
|
@@ -84,7 +84,7 @@ const b = {
|
|
|
84
84
|
x,
|
|
85
85
|
{
|
|
86
86
|
ref: m,
|
|
87
|
-
className:
|
|
87
|
+
className: d(
|
|
88
88
|
"left-0 top-0 w-full md:absolute md:w-auto",
|
|
89
89
|
n
|
|
90
90
|
),
|
|
@@ -116,16 +116,16 @@ const Q = V, j = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
116
116
|
if (!e) return;
|
|
117
117
|
const p = e.getAttribute("data-state");
|
|
118
118
|
l(p === "open");
|
|
119
|
-
const s = new MutationObserver((
|
|
120
|
-
for (const f of
|
|
119
|
+
const s = new MutationObserver((u) => {
|
|
120
|
+
for (const f of u)
|
|
121
121
|
f.attributeName === "data-state" && l(e.getAttribute("data-state") === "open");
|
|
122
122
|
});
|
|
123
123
|
return s.observe(e, { attributes: !0, attributeFilter: ["data-state"] }), () => s.disconnect();
|
|
124
|
-
}, []), /* @__PURE__ */ v("div", { className:
|
|
124
|
+
}, []), /* @__PURE__ */ v("div", { className: d("absolute left-0 top-full flex justify-center"), children: [
|
|
125
125
|
/* @__PURE__ */ c(
|
|
126
126
|
R,
|
|
127
127
|
{
|
|
128
|
-
className:
|
|
128
|
+
className: d(
|
|
129
129
|
"origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
130
130
|
n
|
|
131
131
|
),
|
|
@@ -158,8 +158,8 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
158
158
|
if (!e) return;
|
|
159
159
|
const p = e.getAttribute("data-state");
|
|
160
160
|
l(p === "visible");
|
|
161
|
-
const s = new MutationObserver((
|
|
162
|
-
for (const f of
|
|
161
|
+
const s = new MutationObserver((u) => {
|
|
162
|
+
for (const f of u)
|
|
163
163
|
f.attributeName === "data-state" && l(e.getAttribute("data-state") === "visible");
|
|
164
164
|
});
|
|
165
165
|
return s.observe(e, { attributes: !0, attributeFilter: ["data-state"] }), () => s.disconnect();
|
|
@@ -167,7 +167,7 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
167
167
|
M,
|
|
168
168
|
{
|
|
169
169
|
ref: m,
|
|
170
|
-
className:
|
|
170
|
+
className: d(
|
|
171
171
|
"top-full z-base flex h-ds-02b items-end justify-center overflow-hidden",
|
|
172
172
|
n
|
|
173
173
|
),
|
package/dist/ui/number-input.js
CHANGED
|
@@ -15,9 +15,9 @@ const M = w.forwardRef(
|
|
|
15
15
|
disabled: c = !1,
|
|
16
16
|
className: m,
|
|
17
17
|
"aria-label": b,
|
|
18
|
-
...
|
|
18
|
+
...d
|
|
19
19
|
}, p) => {
|
|
20
|
-
const
|
|
20
|
+
const u = D(), h = b ?? (d.id || u.helperTextId ? void 0 : "Numeric value"), v = (s) => {
|
|
21
21
|
const e = s.target.value.trim();
|
|
22
22
|
if (e === "" || e === "-") {
|
|
23
23
|
n?.(t >= 0 ? t : 0);
|
|
@@ -68,9 +68,9 @@ const M = w.forwardRef(
|
|
|
68
68
|
step: i,
|
|
69
69
|
disabled: c,
|
|
70
70
|
"aria-label": h,
|
|
71
|
-
"aria-describedby":
|
|
72
|
-
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted focus-visible:outline-
|
|
73
|
-
...
|
|
71
|
+
"aria-describedby": d["aria-describedby"] ?? u.helperTextId,
|
|
72
|
+
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
73
|
+
...d
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
/* @__PURE__ */ a(
|
package/dist/ui/pagination.js
CHANGED
|
@@ -34,7 +34,7 @@ const u = o.forwardRef(
|
|
|
34
34
|
ref: t,
|
|
35
35
|
"aria-current": i ? "page" : void 0,
|
|
36
36
|
className: r(
|
|
37
|
-
"inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium tabular-nums transition-colors focus-visible:outline-
|
|
37
|
+
"inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium tabular-nums transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled active:scale-95",
|
|
38
38
|
i ? "bg-accent-9 text-accent-fg" : "hover:bg-surface-raised-hover text-surface-fg",
|
|
39
39
|
e
|
|
40
40
|
),
|
package/dist/ui/popover.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as s from "react";
|
|
4
4
|
import { ab as P, a6 as R, a5 as M, a7 as w, q as N, r as y, p as A, o as O, bh as j } from "../_chunks/primitives.js";
|
|
5
5
|
import { cn as g } from "./lib/utils.js";
|
|
6
6
|
import { tweens as v, springs as z } from "./lib/motion.js";
|
|
@@ -8,21 +8,21 @@ import { useIsMobile as E } from "../hooks/use-mobile.js";
|
|
|
8
8
|
import { u as k, A as b, m as p } from "../_chunks/framer.js";
|
|
9
9
|
function B({
|
|
10
10
|
open: t,
|
|
11
|
-
onOpenChange:
|
|
11
|
+
onOpenChange: a,
|
|
12
12
|
children: i,
|
|
13
|
-
className:
|
|
14
|
-
dragHandle:
|
|
15
|
-
swipeable:
|
|
16
|
-
title:
|
|
13
|
+
className: d,
|
|
14
|
+
dragHandle: l = !0,
|
|
15
|
+
swipeable: c = !0,
|
|
16
|
+
title: n
|
|
17
17
|
}) {
|
|
18
|
-
const o = k(), r =
|
|
18
|
+
const o = k(), r = s.useRef(null), u = s.useCallback(
|
|
19
19
|
(f, m) => {
|
|
20
20
|
const C = r.current?.getBoundingClientRect().height ?? 300;
|
|
21
|
-
(m.offset.y > C * 0.3 || m.velocity.y > 500) &&
|
|
21
|
+
(m.offset.y > C * 0.3 || m.velocity.y > 500) && a(!1);
|
|
22
22
|
},
|
|
23
|
-
[
|
|
23
|
+
[a]
|
|
24
24
|
);
|
|
25
|
-
return /* @__PURE__ */ e(P, { open: t, onOpenChange:
|
|
25
|
+
return /* @__PURE__ */ e(P, { open: t, onOpenChange: a, children: /* @__PURE__ */ e(b, { children: t && /* @__PURE__ */ h(R, { forceMount: !0, children: [
|
|
26
26
|
/* @__PURE__ */ e(M, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ e(
|
|
27
27
|
p.div,
|
|
28
28
|
{
|
|
@@ -38,25 +38,25 @@ function B({
|
|
|
38
38
|
{
|
|
39
39
|
forceMount: !0,
|
|
40
40
|
asChild: !0,
|
|
41
|
-
"aria-label":
|
|
41
|
+
"aria-label": n,
|
|
42
42
|
children: /* @__PURE__ */ h(
|
|
43
43
|
p.div,
|
|
44
44
|
{
|
|
45
45
|
ref: r,
|
|
46
46
|
className: g(
|
|
47
|
-
"fixed inset-x-0 bottom-0 z-modal max-h-[85vh] overflow-y-auto rounded-t-ds-xl border-t border-surface-border-strong bg-surface-overlay shadow-overlay outline-
|
|
48
|
-
|
|
47
|
+
"fixed inset-x-0 bottom-0 z-modal max-h-[85vh] overflow-y-auto rounded-t-ds-xl border-t border-surface-border-strong bg-surface-overlay shadow-overlay outline-hidden",
|
|
48
|
+
d
|
|
49
49
|
),
|
|
50
50
|
initial: { y: "100%" },
|
|
51
51
|
animate: { y: 0 },
|
|
52
52
|
exit: { y: "100%" },
|
|
53
53
|
transition: o ? { duration: 0 } : { type: "spring", damping: 30, stiffness: 300 },
|
|
54
|
-
drag:
|
|
54
|
+
drag: c && !o ? "y" : !1,
|
|
55
55
|
dragConstraints: { top: 0 },
|
|
56
56
|
dragElastic: 0.2,
|
|
57
57
|
onDragEnd: u,
|
|
58
58
|
children: [
|
|
59
|
-
|
|
59
|
+
l && /* @__PURE__ */ e("div", { className: "flex justify-center pt-ds-03 pb-ds-02", children: /* @__PURE__ */ e("div", { className: "h-1 w-8 rounded-ds-full bg-surface-border" }) }),
|
|
60
60
|
/* @__PURE__ */ e("div", { className: "px-ds-05 pb-ds-06", children: i })
|
|
61
61
|
]
|
|
62
62
|
}
|
|
@@ -65,28 +65,28 @@ function B({
|
|
|
65
65
|
)
|
|
66
66
|
] }) }) });
|
|
67
67
|
}
|
|
68
|
-
const x =
|
|
68
|
+
const x = s.createContext({ open: !1, onClose: () => {
|
|
69
69
|
} }), D = ({
|
|
70
70
|
open: t,
|
|
71
|
-
defaultOpen:
|
|
71
|
+
defaultOpen: a = !1,
|
|
72
72
|
onOpenChange: i,
|
|
73
|
-
...
|
|
73
|
+
...d
|
|
74
74
|
}) => {
|
|
75
|
-
const [
|
|
75
|
+
const [l, c] = s.useState(a), n = t !== void 0, o = n ? t : l, r = s.useCallback(
|
|
76
76
|
(f) => {
|
|
77
|
-
|
|
77
|
+
n || c(f), i?.(f);
|
|
78
78
|
},
|
|
79
|
-
[
|
|
80
|
-
), u =
|
|
79
|
+
[n, i]
|
|
80
|
+
), u = s.useMemo(
|
|
81
81
|
() => ({ open: o, onClose: () => r(!1) }),
|
|
82
82
|
[o, r]
|
|
83
83
|
);
|
|
84
|
-
return /* @__PURE__ */ e(x.Provider, { value: u, children: /* @__PURE__ */ e(O, { open: o, onOpenChange: r, ...
|
|
84
|
+
return /* @__PURE__ */ e(x.Provider, { value: u, children: /* @__PURE__ */ e(O, { open: o, onOpenChange: r, ...d }) });
|
|
85
85
|
};
|
|
86
86
|
D.displayName = "Popover";
|
|
87
|
-
const _ = A, $ = j, S =
|
|
88
|
-
const
|
|
89
|
-
return
|
|
87
|
+
const _ = A, $ = j, S = s.forwardRef(({ className: t, align: a = "center", sideOffset: i = 4, children: d, ...l }, c) => {
|
|
88
|
+
const n = E(), { open: o, onClose: r } = s.useContext(x);
|
|
89
|
+
return n ? /* @__PURE__ */ e(
|
|
90
90
|
B,
|
|
91
91
|
{
|
|
92
92
|
open: o,
|
|
@@ -95,17 +95,17 @@ const _ = A, $ = j, S = n.forwardRef(({ className: t, align: s = "center", sideO
|
|
|
95
95
|
},
|
|
96
96
|
title: "Options",
|
|
97
97
|
className: t,
|
|
98
|
-
children:
|
|
98
|
+
children: d
|
|
99
99
|
}
|
|
100
100
|
) : /* @__PURE__ */ e(b, { children: o && /* @__PURE__ */ e(N, { forceMount: !0, children: /* @__PURE__ */ e(
|
|
101
101
|
y,
|
|
102
102
|
{
|
|
103
|
-
ref:
|
|
104
|
-
align:
|
|
103
|
+
ref: c,
|
|
104
|
+
align: a,
|
|
105
105
|
sideOffset: i,
|
|
106
106
|
forceMount: !0,
|
|
107
107
|
asChild: !0,
|
|
108
|
-
...
|
|
108
|
+
...l,
|
|
109
109
|
children: /* @__PURE__ */ e(
|
|
110
110
|
p.div,
|
|
111
111
|
{
|
|
@@ -114,10 +114,10 @@ const _ = A, $ = j, S = n.forwardRef(({ className: t, align: s = "center", sideO
|
|
|
114
114
|
exit: { opacity: 0, scale: 0.95 },
|
|
115
115
|
transition: { ...z.snappy, opacity: v.fade },
|
|
116
116
|
className: g(
|
|
117
|
-
"z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 text-surface-fg shadow-floating outline-
|
|
117
|
+
"z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-05 text-surface-fg shadow-floating outline-hidden",
|
|
118
118
|
t
|
|
119
119
|
),
|
|
120
|
-
children:
|
|
120
|
+
children: d
|
|
121
121
|
}
|
|
122
122
|
)
|
|
123
123
|
}
|
package/dist/ui/radio.js
CHANGED
|
@@ -12,11 +12,11 @@ const p = {
|
|
|
12
12
|
sm: "h-5 w-5",
|
|
13
13
|
md: "h-6 w-6",
|
|
14
14
|
lg: "h-7 w-7"
|
|
15
|
-
},
|
|
15
|
+
}, h = {
|
|
16
16
|
sm: "h-1.5 w-1.5",
|
|
17
17
|
md: "h-ds-03 w-ds-03",
|
|
18
18
|
lg: "h-2.5 w-2.5"
|
|
19
|
-
},
|
|
19
|
+
}, b = c.forwardRef(({ className: r, size: a = "md", ...s }, d) => /* @__PURE__ */ e(
|
|
20
20
|
t,
|
|
21
21
|
{
|
|
22
22
|
ref: d,
|
|
@@ -25,7 +25,7 @@ const p = {
|
|
|
25
25
|
p[a],
|
|
26
26
|
"border border-surface-border-strong bg-surface-raised-hover",
|
|
27
27
|
"transition-colors duration-fast-01",
|
|
28
|
-
"focus-visible:outline-
|
|
28
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
29
29
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
30
30
|
"hover:border-accent-7 hover:bg-surface-raised-active",
|
|
31
31
|
"data-[state=checked]:border-accent-7",
|
|
@@ -39,13 +39,13 @@ const p = {
|
|
|
39
39
|
initial: { scale: 0 },
|
|
40
40
|
animate: { scale: 1 },
|
|
41
41
|
transition: m.bouncy,
|
|
42
|
-
children: /* @__PURE__ */ e(l, { className: o(
|
|
42
|
+
children: /* @__PURE__ */ e(l, { className: o(h[a], "fill-accent-9 text-accent-11") })
|
|
43
43
|
}
|
|
44
44
|
) })
|
|
45
45
|
}
|
|
46
46
|
));
|
|
47
|
-
|
|
47
|
+
b.displayName = t.displayName;
|
|
48
48
|
export {
|
|
49
49
|
u as RadioGroup,
|
|
50
|
-
|
|
50
|
+
b as RadioGroupItem
|
|
51
51
|
};
|
|
@@ -82,7 +82,7 @@ const C = {
|
|
|
82
82
|
className: i(
|
|
83
83
|
"relative inline-flex items-center justify-center gap-ds-02 rounded-ds-md",
|
|
84
84
|
"font-medium transition-colors duration-fast-02 ease-productive-standard",
|
|
85
|
-
"outline-
|
|
85
|
+
"outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
86
86
|
y,
|
|
87
87
|
t ? N[l] : "text-surface-fg-muted hover:text-surface-fg"
|
|
88
88
|
),
|
package/dist/ui/select.js
CHANGED
|
@@ -9,7 +9,7 @@ import { tweens as U, springs as G } from "./lib/motion.js";
|
|
|
9
9
|
import { Icon as i } from "./icon.js";
|
|
10
10
|
import { m as L } from "../_chunks/framer.js";
|
|
11
11
|
const X = C, Y = B, Z = j, k = D(
|
|
12
|
-
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md placeholder:text-surface-fg-subtle focus-visible:outline-
|
|
12
|
+
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md placeholder:text-surface-fg-subtle focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-action-disabled [&>span]:line-clamp-1",
|
|
13
13
|
{
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
@@ -123,7 +123,7 @@ const $ = o.forwardRef(({ className: s, children: r, ...a }, d) => /* @__PURE__
|
|
|
123
123
|
{
|
|
124
124
|
ref: d,
|
|
125
125
|
className: t(
|
|
126
|
-
"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-
|
|
126
|
+
"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-hidden 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",
|
|
127
127
|
s
|
|
128
128
|
),
|
|
129
129
|
...a,
|
package/dist/ui/sheet.js
CHANGED
|
@@ -17,16 +17,16 @@ const j = r.createContext({ open: !1, onClose: () => {
|
|
|
17
17
|
children: m,
|
|
18
18
|
...u
|
|
19
19
|
}) => {
|
|
20
|
-
const [i, p] = r.useState(o), a = t !== void 0,
|
|
20
|
+
const [i, p] = r.useState(o), a = t !== void 0, d = a ? t : i, c = r.useCallback(
|
|
21
21
|
(n) => {
|
|
22
22
|
a || p(n), s?.(n);
|
|
23
23
|
},
|
|
24
24
|
[a, s]
|
|
25
25
|
), h = r.useMemo(
|
|
26
|
-
() => ({ open:
|
|
27
|
-
[
|
|
26
|
+
() => ({ open: d, onClose: () => c(!1) }),
|
|
27
|
+
[d, c]
|
|
28
28
|
);
|
|
29
|
-
return /* @__PURE__ */ e(j.Provider, { value: h, children: /* @__PURE__ */ e(z, { open:
|
|
29
|
+
return /* @__PURE__ */ e(j.Provider, { value: h, children: /* @__PURE__ */ e(z, { open: d, onOpenChange: c, ...u, children: m }) });
|
|
30
30
|
};
|
|
31
31
|
X.displayName = "Sheet";
|
|
32
32
|
const ie = A, ne = C, _ = T, O = r.forwardRef(({ className: t, ...o }, s) => /* @__PURE__ */ e(v, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -68,13 +68,13 @@ const y = {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
), J = r.forwardRef(({ side: t = "right", responsive: o, className: s, children: m, ...u }, i) => {
|
|
71
|
-
const p = H(), a = o !== !1 && p,
|
|
71
|
+
const p = H(), a = o !== !1 && p, d = B(), { open: c, onClose: h } = r.useContext(j), n = a ? "bottom" : t ?? "right", g = r.useRef(null), P = r.useCallback(
|
|
72
72
|
(f) => {
|
|
73
73
|
g.current = f, typeof i == "function" ? i(f) : i && (i.current = f);
|
|
74
74
|
},
|
|
75
75
|
[i]
|
|
76
76
|
);
|
|
77
|
-
return /* @__PURE__ */ e(U, { children:
|
|
77
|
+
return /* @__PURE__ */ e(U, { children: c && /* @__PURE__ */ b(_, { forceMount: !0, children: [
|
|
78
78
|
/* @__PURE__ */ e(O, {}),
|
|
79
79
|
/* @__PURE__ */ e(N, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ b(
|
|
80
80
|
M.div,
|
|
@@ -85,7 +85,7 @@ const y = {
|
|
|
85
85
|
animate: q[n],
|
|
86
86
|
exit: y[n],
|
|
87
87
|
transition: E.smooth,
|
|
88
|
-
drag: a && !
|
|
88
|
+
drag: a && !d ? "y" : !1,
|
|
89
89
|
dragConstraints: { top: 0 },
|
|
90
90
|
dragElastic: 0.2,
|
|
91
91
|
onDragEnd: a ? (f, x) => {
|
|
@@ -95,7 +95,7 @@ const y = {
|
|
|
95
95
|
...R(u),
|
|
96
96
|
children: [
|
|
97
97
|
a && /* @__PURE__ */ e("div", { className: "flex justify-center pt-ds-03 pb-ds-02", children: /* @__PURE__ */ e("div", { className: "h-1 w-8 rounded-ds-full bg-surface-border" }) }),
|
|
98
|
-
/* @__PURE__ */ b(C, { title: "Close", className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-raised-hover active:scale-90 focus-visible:outline-
|
|
98
|
+
/* @__PURE__ */ b(C, { title: "Close", className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-surface-fg-subtle transition-colors ease-productive-standard hover:text-surface-fg-muted hover:bg-surface-raised-hover active:scale-90 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none", children: [
|
|
99
99
|
/* @__PURE__ */ e(F, { icon: V, size: "sm" }),
|
|
100
100
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
|
|
101
101
|
] }),
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -339,7 +339,7 @@ const ge = o(({ className: e, asChild: a = !1, ...t }, r) => /* @__PURE__ */ s(
|
|
|
339
339
|
ref: r,
|
|
340
340
|
"data-sidebar": "group-label",
|
|
341
341
|
className: i(
|
|
342
|
-
"flex h-ds-sm shrink-0 items-center rounded-ds-md px-ds-03 text-ds-sm font-medium text-surface-fg-muted outline-
|
|
342
|
+
"flex h-ds-sm shrink-0 items-center rounded-ds-md px-ds-03 text-ds-sm font-medium text-surface-fg-muted outline-hidden ring-accent-9 transition-[margin,opacity] duration-moderate-02 ease-productive-exit focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
343
343
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
344
344
|
e
|
|
345
345
|
),
|
|
@@ -353,7 +353,7 @@ const he = o(({ className: e, asChild: a = !1, ...t }, r) => /* @__PURE__ */ s(
|
|
|
353
353
|
ref: r,
|
|
354
354
|
"data-sidebar": "group-action",
|
|
355
355
|
className: i(
|
|
356
|
-
"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-
|
|
356
|
+
"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-hidden ring-accent-9 transition-transform hover:text-surface-fg focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
357
357
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
358
358
|
"group-data-[collapsible=icon]:hidden",
|
|
359
359
|
e
|
|
@@ -399,7 +399,7 @@ const Se = o(
|
|
|
399
399
|
);
|
|
400
400
|
Se.displayName = "SidebarMenuItem";
|
|
401
401
|
const we = T(
|
|
402
|
-
"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-
|
|
402
|
+
"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-hidden 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",
|
|
403
403
|
{
|
|
404
404
|
variants: {
|
|
405
405
|
variant: {
|
|
@@ -473,7 +473,7 @@ const ye = o(({ className: e, asChild: a = !1, showOnHover: t = !1, ...r }, d) =
|
|
|
473
473
|
ref: d,
|
|
474
474
|
"data-sidebar": "menu-action",
|
|
475
475
|
className: i(
|
|
476
|
-
"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-
|
|
476
|
+
"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-hidden 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",
|
|
477
477
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
478
478
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
479
479
|
"peer-data-[size=md]/menu-button:top-ds-02b",
|
|
@@ -566,7 +566,7 @@ const ke = o(({ asChild: e = !1, size: a = "md", isActive: t, className: r, ...d
|
|
|
566
566
|
"data-size": a,
|
|
567
567
|
"data-active": t,
|
|
568
568
|
className: i(
|
|
569
|
-
"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-
|
|
569
|
+
"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-hidden 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",
|
|
570
570
|
"data-[active=true]:bg-accent-2 data-[active=true]:text-surface-fg",
|
|
571
571
|
a === "sm" && "text-ds-sm",
|
|
572
572
|
a === "md" && "text-ds-md",
|
package/dist/ui/slider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as f from "react";
|
|
4
|
-
import { aD as s, aE as b, aF as
|
|
4
|
+
import { aD as s, aE as b, aF as h, aG as u } from "../_chunks/primitives.js";
|
|
5
5
|
import { cn as m } from "./lib/utils.js";
|
|
6
6
|
const v = f.forwardRef(({ className: i, "aria-label": l, value: a, defaultValue: o, ...t }, n) => {
|
|
7
7
|
const r = (a ?? o ?? [0]).length;
|
|
@@ -17,12 +17,12 @@ const v = f.forwardRef(({ className: i, "aria-label": l, value: a, defaultValue:
|
|
|
17
17
|
),
|
|
18
18
|
...t,
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */ e(b, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e(b, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e(h, { className: "absolute h-full bg-accent-9" }) }),
|
|
21
21
|
Array.from({ length: r }, (g, c) => /* @__PURE__ */ e(
|
|
22
|
-
|
|
22
|
+
u,
|
|
23
23
|
{
|
|
24
24
|
"aria-label": r === 1 ? l : void 0,
|
|
25
|
-
className: "touch-target block h-6 w-6 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-
|
|
25
|
+
className: "touch-target block h-6 w-6 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-hidden 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
|
))
|
package/dist/ui/split-button.js
CHANGED
|
@@ -189,7 +189,7 @@ const se = n.forwardRef(
|
|
|
189
189
|
className: o(
|
|
190
190
|
"inline-flex items-center justify-center select-none",
|
|
191
191
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
192
|
-
"focus-visible:outline-
|
|
192
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-inset",
|
|
193
193
|
"disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
194
194
|
y,
|
|
195
195
|
N[r],
|
|
@@ -211,7 +211,7 @@ const se = n.forwardRef(
|
|
|
211
211
|
className: o(
|
|
212
212
|
"inline-flex items-center justify-center font-semibold select-none whitespace-nowrap",
|
|
213
213
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
214
|
-
"focus-visible:outline-
|
|
214
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-inset",
|
|
215
215
|
"disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
216
216
|
y,
|
|
217
217
|
N[r],
|
|
@@ -236,7 +236,7 @@ const se = n.forwardRef(
|
|
|
236
236
|
className: o(
|
|
237
237
|
"inline-flex items-center justify-center select-none",
|
|
238
238
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
239
|
-
"focus-visible:outline-
|
|
239
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-inset",
|
|
240
240
|
"disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
241
241
|
y,
|
|
242
242
|
N[r],
|
package/dist/ui/switch.js
CHANGED
|
@@ -13,7 +13,7 @@ const R = {
|
|
|
13
13
|
accent: "data-[state=checked]:bg-accent-9",
|
|
14
14
|
success: "data-[state=checked]:bg-success-9",
|
|
15
15
|
warning: "data-[state=checked]:bg-warning-9"
|
|
16
|
-
}, S = a.forwardRef(({ className: i, error: d, size: l = "md", color:
|
|
16
|
+
}, S = a.forwardRef(({ className: i, error: d, size: l = "md", color: h = "accent", thumbIcon: m, checked: e, defaultChecked: r, onCheckedChange: s, ...u }, b) => {
|
|
17
17
|
const [f, p] = a.useState(r ?? !1), g = e !== void 0 ? e : f, { track: w, thumb: v, travel: k } = R[l], x = a.useCallback(
|
|
18
18
|
(o) => {
|
|
19
19
|
e === void 0 && p(o), s?.(o);
|
|
@@ -24,9 +24,9 @@ const R = {
|
|
|
24
24
|
c,
|
|
25
25
|
{
|
|
26
26
|
className: n(
|
|
27
|
-
"touch-target peer inline-flex shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-surface-border-strong shadow-raised transition-colors duration-fast-01 focus-visible:outline-
|
|
27
|
+
"touch-target peer inline-flex shrink-0 cursor-pointer items-center rounded-ds-full border-2 border-surface-border-strong shadow-raised transition-colors duration-fast-01 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-action-disabled data-[state=checked]:border-transparent data-[state=unchecked]:bg-surface-border-strong data-[state=unchecked]:hover:bg-surface-raised-active",
|
|
28
28
|
w,
|
|
29
|
-
j[
|
|
29
|
+
j[h],
|
|
30
30
|
d && "border-error-7 data-[state=checked]:bg-error-9",
|
|
31
31
|
i
|
|
32
32
|
),
|
|
@@ -45,7 +45,7 @@ const R = {
|
|
|
45
45
|
animate: { x: g ? k : 0 },
|
|
46
46
|
whileTap: { scale: 0.85 },
|
|
47
47
|
transition: y.snappy,
|
|
48
|
-
children:
|
|
48
|
+
children: m
|
|
49
49
|
}
|
|
50
50
|
) })
|
|
51
51
|
}
|
package/dist/ui/tabs.js
CHANGED
|
@@ -48,7 +48,7 @@ const C = e.createContext({
|
|
|
48
48
|
},
|
|
49
49
|
defaultVariants: { variant: "line", size: "md" }
|
|
50
50
|
}), R = y(
|
|
51
|
-
"relative inline-flex items-center justify-center gap-ds-02 whitespace-nowrap font-sans font-medium transition-colors duration-100 focus-visible:outline-
|
|
51
|
+
"relative inline-flex items-center justify-center gap-ds-02 whitespace-nowrap font-sans font-medium transition-colors duration-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
52
52
|
{
|
|
53
53
|
variants: {
|
|
54
54
|
variant: {
|
|
@@ -136,7 +136,7 @@ const S = e.forwardRef(({ className: t, children: n, ...o }, r) => /* @__PURE__
|
|
|
136
136
|
{
|
|
137
137
|
ref: r,
|
|
138
138
|
className: m(
|
|
139
|
-
"mt-ds-05 ring-offset-background focus-visible:outline-
|
|
139
|
+
"mt-ds-05 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
140
140
|
t
|
|
141
141
|
),
|
|
142
142
|
...o,
|
package/dist/ui/textarea.js
CHANGED
|
@@ -14,7 +14,7 @@ const p = m(
|
|
|
14
14
|
"placeholder:text-surface-fg-subtle",
|
|
15
15
|
"hover:bg-surface-raised-active",
|
|
16
16
|
"transition-colors duration-fast-01 ease-productive-standard",
|
|
17
|
-
"focus-visible:outline-
|
|
17
|
+
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:border-accent-7",
|
|
18
18
|
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
19
19
|
"read-only:bg-surface-raised read-only:cursor-default"
|
|
20
20
|
],
|
|
@@ -30,8 +30,8 @@ const p = m(
|
|
|
30
30
|
defaultVariants: { size: "md" }
|
|
31
31
|
}
|
|
32
32
|
), v = l.forwardRef(
|
|
33
|
-
({ className:
|
|
34
|
-
const r = b(), e =
|
|
33
|
+
({ className: i, state: a, size: o, ...s }, t) => {
|
|
34
|
+
const r = b(), e = a ?? (r.state === "helper" ? void 0 : r.state), d = s["aria-describedby"] ?? r.helperTextId, n = s["aria-required"] ?? r.required;
|
|
35
35
|
return /* @__PURE__ */ c(
|
|
36
36
|
x.textarea,
|
|
37
37
|
{
|
|
@@ -43,7 +43,7 @@ const p = m(
|
|
|
43
43
|
e === "error" && "border-error-7 focus-visible:ring-error-7",
|
|
44
44
|
e === "warning" && "border-warning-7 focus-visible:ring-warning-7",
|
|
45
45
|
e === "success" && "border-success-7 focus-visible:ring-success-7",
|
|
46
|
-
|
|
46
|
+
i
|
|
47
47
|
),
|
|
48
48
|
ref: t,
|
|
49
49
|
...f(s)
|
package/dist/ui/toast.js
CHANGED
|
@@ -152,7 +152,7 @@ function B({
|
|
|
152
152
|
{
|
|
153
153
|
type: "button",
|
|
154
154
|
onClick: r.onClick,
|
|
155
|
-
className: "text-ds-sm font-medium text-accent-11 underline-offset-2 hover:underline hover:bg-surface-raised-hover rounded-ds-sm px-ds-02 py-ds-01 transition-[color,background-color] duration-fast-01 ease-productive-standard focus-visible:outline-
|
|
155
|
+
className: "text-ds-sm font-medium text-accent-11 underline-offset-2 hover:underline hover:bg-surface-raised-hover rounded-ds-sm px-ds-02 py-ds-01 transition-[color,background-color] duration-fast-01 ease-productive-standard focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:rounded-ds-sm",
|
|
156
156
|
children: r.label
|
|
157
157
|
}
|
|
158
158
|
),
|
|
@@ -161,7 +161,7 @@ function B({
|
|
|
161
161
|
{
|
|
162
162
|
type: "button",
|
|
163
163
|
onClick: n.onClick,
|
|
164
|
-
className: "text-ds-sm text-surface-fg-muted hover:text-surface-fg focus-visible:outline-
|
|
164
|
+
className: "text-ds-sm text-surface-fg-muted hover:text-surface-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:rounded-ds-sm",
|
|
165
165
|
children: n.label
|
|
166
166
|
}
|
|
167
167
|
)
|
package/dist/ui/toggle.js
CHANGED
|
@@ -7,7 +7,7 @@ import { springs as m, motionProps as c } from "./lib/motion.js";
|
|
|
7
7
|
import { cn as f } from "./lib/utils.js";
|
|
8
8
|
import { m as l } from "../_chunks/framer.js";
|
|
9
9
|
const p = l.create(e), g = d(
|
|
10
|
-
"inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium transition-colors duration-fast-01 ease-productive-standard focus-visible:outline-
|
|
10
|
+
"inline-flex items-center justify-center gap-ds-03 rounded-ds-md font-medium transition-colors duration-fast-01 ease-productive-standard focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled data-[state=on]:bg-accent-2 data-[state=on]:text-accent-11",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
@@ -25,14 +25,14 @@ const p = l.create(e), g = d(
|
|
|
25
25
|
size: "md"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
), u = n.forwardRef(({ className: t, variant: s, size:
|
|
28
|
+
), u = n.forwardRef(({ className: t, variant: s, size: a, ...o }, r) => /* @__PURE__ */ i(
|
|
29
29
|
p,
|
|
30
30
|
{
|
|
31
31
|
ref: r,
|
|
32
32
|
whileTap: { scale: 0.95 },
|
|
33
33
|
transition: m.snappy,
|
|
34
|
-
className: f(g({ variant: s, size:
|
|
35
|
-
...c(
|
|
34
|
+
className: f(g({ variant: s, size: a }), t),
|
|
35
|
+
...c(o)
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
38
|
u.displayName = e.displayName;
|