@devalok/shilp-sutra 0.49.0 → 0.49.2
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 +41 -41
- package/dist/_chunks/badge-group.js.map +1 -1
- package/dist/_chunks/block-shell.js +1 -1
- package/dist/_chunks/chart-container.js +1 -1
- package/dist/_chunks/chat.js +6 -15
- package/dist/_chunks/chat.js.map +1 -1
- package/dist/_chunks/colors.js +2 -2
- package/dist/_chunks/document-preview.js +4 -4
- package/dist/_chunks/emoji-suggestion.js +5 -5
- package/dist/_chunks/emoji-suggestion.js.map +1 -1
- package/dist/_chunks/emoji.js +1 -1
- package/dist/_chunks/field-state.js +1 -1
- package/dist/_chunks/grid-lines.js +1 -1
- package/dist/_chunks/image-preview.js +7 -7
- package/dist/_chunks/keybinding.js +1 -1
- package/dist/_chunks/link-context.js +1 -1
- package/dist/_chunks/mention-suggestion.js +2 -2
- package/dist/_chunks/mention.js +1 -1
- package/dist/_chunks/motion-provider.js +1 -1
- package/dist/_chunks/normalize-icon.js +1 -1
- package/dist/_chunks/oauth-button.js +2 -2
- package/dist/_chunks/popover.js +17 -17
- package/dist/_chunks/primitives.js +1 -1
- package/dist/_chunks/shared.js +5 -5
- package/dist/_chunks/success.js +5 -8
- package/dist/_chunks/success.js.map +1 -1
- package/dist/_chunks/tiptap.js +11 -11
- package/dist/_chunks/tooltip.js +1 -1
- package/dist/_chunks/tree-view.js +2 -2
- package/dist/_chunks/use-calendar.js +1 -1
- package/dist/_chunks/use-controllable-open.js +1 -1
- package/dist/_chunks/vendor-client.js +1 -1
- package/dist/_chunks/vendor-utils.js +1 -1
- package/dist/ai/block-renderer.js +8 -11
- package/dist/ai/block-renderer.js.map +1 -1
- package/dist/ai/blocks/error.js +1 -1
- package/dist/ai/blocks/index.js +2 -2
- package/dist/ai/blocks/text.js +1 -1
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +8 -39
- package/dist/ai/command-bar.js.map +1 -1
- package/dist/ai/conversation.js +4 -10
- package/dist/ai/conversation.js.map +1 -1
- package/dist/ai/devadoot-icon.d.ts.map +1 -1
- package/dist/ai/index.js +10 -41
- package/dist/ai/index.js.map +1 -1
- package/dist/composed/activity-feed.js +3 -3
- package/dist/composed/activity-feed.js.map +1 -1
- package/dist/composed/avatar-group.js +3 -3
- package/dist/composed/avatar-group.js.map +1 -1
- package/dist/composed/bulk-action-bar.js +1 -1
- package/dist/composed/command-palette.js +6 -6
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/date-picker/index.js +10 -10
- package/dist/composed/emoji-picker.js +4 -4
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +23 -33
- package/dist/composed/empty-state.js.map +1 -1
- package/dist/composed/extensions/emoji-node.js +1 -1
- package/dist/composed/extensions/emoji-suggestion.js +1 -1
- package/dist/composed/file-preview.js +14 -14
- package/dist/composed/filter-bar.js +1 -1
- package/dist/composed/multi-select-popover.js +3 -3
- package/dist/composed/priority-indicator.js +1 -1
- package/dist/composed/responsive-modal.js +21 -21
- package/dist/composed/rich-chat-input.js +445 -445
- package/dist/composed/rich-chat-input.js.map +1 -1
- package/dist/composed/rich-text-editor.js +28 -28
- package/dist/composed/schedule-view.js +1 -1
- package/dist/composed/schedule-view.js.map +1 -1
- package/dist/composed/status-badge.js +1 -1
- package/dist/motion/index.js +2 -2
- package/dist/shell/bottom-navbar.js +3 -3
- package/dist/shell/bottom-navbar.js.map +1 -1
- package/dist/shell/index.js +2 -2
- package/dist/shell/link-context.js +2 -2
- package/dist/shell/notification-center.js +3 -3
- package/dist/shell/sidebar.js +2 -2
- package/dist/shell/top-bar.js +1 -1
- package/dist/ui/accordion.js +14 -14
- package/dist/ui/alert-dialog.js +31 -31
- package/dist/ui/alert.js +1 -1
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +7 -7
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +52 -67
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge-group.js +1 -1
- package/dist/ui/badge.d.ts +2 -0
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +1 -1
- package/dist/ui/banner.js +1 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/button.js +9 -9
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.js +1 -1
- package/dist/ui/charts/area-chart.js +6 -6
- package/dist/ui/charts/bar-chart.js +6 -6
- package/dist/ui/charts/chart-container.js +1 -1
- package/dist/ui/charts/gauge-chart.js +2 -2
- package/dist/ui/charts/index.js +2 -2
- package/dist/ui/charts/line-chart.js +6 -6
- package/dist/ui/charts/pie-chart.js +5 -5
- package/dist/ui/charts/radar-chart.js +5 -5
- package/dist/ui/charts/sparkline.js +2 -2
- package/dist/ui/chat/index.js +2 -2
- package/dist/ui/checkbox.js +5 -5
- package/dist/ui/collapsible.js +4 -4
- package/dist/ui/color-input.js +4 -4
- package/dist/ui/combobox.js +8 -8
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/context-menu.js +41 -41
- package/dist/ui/dialog.js +25 -25
- package/dist/ui/dot.d.ts.map +1 -1
- package/dist/ui/dot.js +24 -32
- package/dist/ui/dot.js.map +1 -1
- package/dist/ui/dropdown-menu.js +51 -51
- package/dist/ui/hover-card.js +9 -9
- package/dist/ui/icon-button.js +1 -1
- package/dist/ui/index.js +6 -6
- package/dist/ui/input.js +2 -2
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/utils.js +4 -4
- package/dist/ui/link.js +1 -1
- package/dist/ui/menubar.js +53 -53
- package/dist/ui/navigation-menu.js +27 -27
- package/dist/ui/number-input.js +2 -2
- package/dist/ui/oauth-button/index.js +2 -2
- package/dist/ui/pagination.js +1 -1
- package/dist/ui/popover.js +2 -2
- package/dist/ui/progress.js +2 -2
- package/dist/ui/radio.js +2 -2
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.js +35 -35
- package/dist/ui/separator.js +1 -1
- package/dist/ui/sheet.js +22 -22
- package/dist/ui/sidebar.js +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +8 -8
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/split-button.js +3 -3
- package/dist/ui/stat-card.d.ts +2 -0
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +94 -126
- package/dist/ui/stat-card.js.map +1 -1
- package/dist/ui/stat-flash.js +1 -1
- package/dist/ui/stepper.js +1 -1
- package/dist/ui/surface.js +2 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/table-row-link.js +1 -1
- package/dist/ui/tabs.js +13 -13
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +2 -2
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/tooltip.js +16 -16
- package/dist/ui/tree-view/index.js +2 -2
- package/llms.txt +1 -1
- package/mcp-manifest.json +1 -1
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
- package/skill/references/components.md +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Content$1 as e, Indicator as t, Item as n, Link as r, List$1 as i, Root2$1 as a, Trigger$1 as o, Viewport as s } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as c, tweens as l } from "./lib/motion.js";
|
|
4
4
|
import { cn as u } from "./lib/utils.js";
|
|
5
5
|
import { Icon as d } from "./icon.js";
|
|
@@ -8,23 +8,23 @@ import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
|
8
8
|
import { IconChevronDown as h } from "@tabler/icons-react";
|
|
9
9
|
import { motion as g } from "framer-motion";
|
|
10
10
|
//#region src/ui/navigation-menu.tsx
|
|
11
|
-
var _ = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(
|
|
11
|
+
var _ = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(a, {
|
|
12
12
|
ref: r,
|
|
13
13
|
className: u("relative z-raised flex max-w-max flex-1 items-center justify-center", e),
|
|
14
14
|
...n,
|
|
15
15
|
children: [t, /* @__PURE__ */ p(w, {})]
|
|
16
16
|
}));
|
|
17
|
-
_.displayName =
|
|
17
|
+
_.displayName = a.displayName;
|
|
18
18
|
var v = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(i, {
|
|
19
19
|
ref: n,
|
|
20
20
|
className: u("group flex flex-1 list-none items-center justify-center space-x-ds-02", e),
|
|
21
21
|
...t
|
|
22
22
|
}));
|
|
23
23
|
v.displayName = i.displayName;
|
|
24
|
-
var y =
|
|
25
|
-
ref:
|
|
24
|
+
var y = n, b = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(o, {
|
|
25
|
+
ref: r,
|
|
26
26
|
className: u("group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-control 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", e),
|
|
27
|
-
...
|
|
27
|
+
...n,
|
|
28
28
|
children: [
|
|
29
29
|
t,
|
|
30
30
|
" ",
|
|
@@ -35,7 +35,7 @@ var y = o, b = f.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PU
|
|
|
35
35
|
})
|
|
36
36
|
]
|
|
37
37
|
}));
|
|
38
|
-
b.displayName =
|
|
38
|
+
b.displayName = o.displayName;
|
|
39
39
|
var x = {
|
|
40
40
|
"from-start": {
|
|
41
41
|
x: "-13rem",
|
|
@@ -95,16 +95,16 @@ var x = {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
S.displayName = e.displayName;
|
|
98
|
-
var C =
|
|
99
|
-
let
|
|
100
|
-
|
|
101
|
-
}, [n]), [
|
|
98
|
+
var C = r, w = f.forwardRef(({ className: e, ...t }, n) => {
|
|
99
|
+
let r = f.useRef(null), i = f.useCallback((e) => {
|
|
100
|
+
r.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
|
|
101
|
+
}, [n]), [a, o] = f.useState(!1);
|
|
102
102
|
return f.useEffect(() => {
|
|
103
|
-
let e =
|
|
103
|
+
let e = r.current;
|
|
104
104
|
if (!e) return;
|
|
105
|
-
|
|
105
|
+
o(e.getAttribute("data-state") === "open");
|
|
106
106
|
let t = new MutationObserver((t) => {
|
|
107
|
-
for (let n of t) n.attributeName === "data-state" &&
|
|
107
|
+
for (let n of t) n.attributeName === "data-state" && o(e.getAttribute("data-state") === "open");
|
|
108
108
|
});
|
|
109
109
|
return t.observe(e, {
|
|
110
110
|
attributes: !0,
|
|
@@ -112,15 +112,15 @@ var C = t, w = f.forwardRef(({ className: e, ...t }, n) => {
|
|
|
112
112
|
}), () => t.disconnect();
|
|
113
113
|
}, []), /* @__PURE__ */ m("div", {
|
|
114
114
|
className: u("absolute left-0 top-full flex justify-center"),
|
|
115
|
-
children: [/* @__PURE__ */ p(
|
|
115
|
+
children: [/* @__PURE__ */ p(s, {
|
|
116
116
|
className: u("origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-overlay bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]", e),
|
|
117
|
-
ref:
|
|
117
|
+
ref: i,
|
|
118
118
|
...t
|
|
119
119
|
}), /* @__PURE__ */ p(g.div, {
|
|
120
120
|
"aria-hidden": !0,
|
|
121
121
|
className: "absolute inset-0 pointer-events-none",
|
|
122
122
|
initial: !1,
|
|
123
|
-
animate:
|
|
123
|
+
animate: a ? {
|
|
124
124
|
opacity: 1,
|
|
125
125
|
scale: 1
|
|
126
126
|
} : {
|
|
@@ -134,13 +134,13 @@ var C = t, w = f.forwardRef(({ className: e, ...t }, n) => {
|
|
|
134
134
|
})]
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
-
w.displayName =
|
|
138
|
-
var T = f.forwardRef(({ className: e, ...
|
|
139
|
-
let
|
|
140
|
-
|
|
141
|
-
}, [
|
|
137
|
+
w.displayName = s.displayName;
|
|
138
|
+
var T = f.forwardRef(({ className: e, ...n }, r) => {
|
|
139
|
+
let i = f.useRef(null), a = f.useCallback((e) => {
|
|
140
|
+
i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
141
|
+
}, [r]), [o, s] = f.useState(!1);
|
|
142
142
|
return f.useEffect(() => {
|
|
143
|
-
let e =
|
|
143
|
+
let e = i.current;
|
|
144
144
|
if (!e) return;
|
|
145
145
|
s(e.getAttribute("data-state") === "visible");
|
|
146
146
|
let t = new MutationObserver((t) => {
|
|
@@ -150,10 +150,10 @@ var T = f.forwardRef(({ className: e, ...t }, n) => {
|
|
|
150
150
|
attributes: !0,
|
|
151
151
|
attributeFilter: ["data-state"]
|
|
152
152
|
}), () => t.disconnect();
|
|
153
|
-
}, []), /* @__PURE__ */ p(
|
|
154
|
-
ref:
|
|
153
|
+
}, []), /* @__PURE__ */ p(t, {
|
|
154
|
+
ref: a,
|
|
155
155
|
className: u("top-full z-base flex h-ds-02b items-end justify-center overflow-hidden", e),
|
|
156
|
-
...
|
|
156
|
+
...n,
|
|
157
157
|
children: /* @__PURE__ */ p(g.div, {
|
|
158
158
|
layout: !0,
|
|
159
159
|
initial: !1,
|
|
@@ -163,6 +163,6 @@ var T = f.forwardRef(({ className: e, ...t }, n) => {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
|
-
T.displayName =
|
|
166
|
+
T.displayName = t.displayName;
|
|
167
167
|
//#endregion
|
|
168
168
|
export { _ as NavigationMenu, S as NavigationMenuContent, T as NavigationMenuIndicator, y as NavigationMenuItem, C as NavigationMenuLink, v as NavigationMenuList, b as NavigationMenuTrigger, w as NavigationMenuViewport };
|
package/dist/ui/number-input.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cva as e } from "../_chunks/vendor-utils.js";
|
|
3
3
|
import { cn as t } from "./lib/utils.js";
|
|
4
4
|
import { Icon as n } from "./icon.js";
|
|
5
5
|
import { useFormField as r } from "./form.js";
|
|
6
|
-
import {
|
|
6
|
+
import { resolveFieldState as i } from "../_chunks/field-state.js";
|
|
7
7
|
import * as a from "react";
|
|
8
8
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
9
|
import { IconMinus as c, IconPlus as l } from "@tabler/icons-react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { OAuth as e, OAuthButton as t, OAuthConnectionRow as n, OAuthDivider as r, OAuthGlyph as i, OAuthGroup as a, getOAuthLabel as o, getOAuthName as s } from "../../_chunks/oauth-button.js";
|
|
3
|
+
export { e as OAuth, t as OAuthButton, n as OAuthConnectionRow, r as OAuthDivider, i as OAuthGlyph, a as OAuthGroup, o as getOAuthLabel, s as getOAuthName };
|
package/dist/ui/pagination.js
CHANGED
package/dist/ui/popover.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { Popover as e, PopoverAnchor as t, PopoverContent as n, PopoverTrigger as r } from "../_chunks/popover.js";
|
|
3
|
+
export { e as Popover, t as PopoverAnchor, n as PopoverContent, r as PopoverTrigger };
|
package/dist/ui/progress.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Root as e } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as t } from "./lib/motion.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cva as n } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as r } from "./lib/utils.js";
|
|
6
6
|
import * as i from "react";
|
|
7
7
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
package/dist/ui/radio.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Indicator$1 as e, Item2$1 as t, Root2$4 as n } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as r } from "./lib/motion.js";
|
|
4
4
|
import { cn as i } from "./lib/utils.js";
|
|
5
5
|
import { useFormField as a } from "./form.js";
|
|
6
|
-
import {
|
|
6
|
+
import { resolveFieldState as o } from "../_chunks/field-state.js";
|
|
7
7
|
import * as s from "react";
|
|
8
8
|
import { jsx as c } from "react/jsx-runtime";
|
|
9
9
|
import { IconCircle as l } from "@tabler/icons-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { IconProvider as e } from "./icon-context.js";
|
|
3
3
|
import { cn as t } from "./lib/utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { normalizeIcon as n } from "../_chunks/normalize-icon.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { LayoutGroup as o, motion as s } from "framer-motion";
|
package/dist/ui/select.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as e,
|
|
2
|
+
import { Content2$2 as e, Group as t, Icon as n, Item$1 as r, ItemIndicator as i, ItemText as a, Label as o, Portal$1 as s, Root2$3 as c, ScrollDownButton as l, ScrollUpButton as u, Separator as d, Trigger$4 as f, Value as p, Viewport$1 as m } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as h, tweens as g } from "./lib/motion.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cva as _ } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as v } from "./lib/utils.js";
|
|
6
6
|
import { Icon as y } from "./icon.js";
|
|
7
7
|
import { useFormField as b } from "./form.js";
|
|
8
|
-
import {
|
|
8
|
+
import { resolveFieldState as x } from "../_chunks/field-state.js";
|
|
9
9
|
import * as S from "react";
|
|
10
10
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
11
11
|
import { IconCheck as T, IconChevronDown as E, IconChevronUp as D } from "@tabler/icons-react";
|
|
12
12
|
import { motion as O } from "framer-motion";
|
|
13
13
|
//#region src/ui/select.tsx
|
|
14
|
-
var k =
|
|
14
|
+
var k = c, A = t, j = p, M = _("flex w-full items-center justify-between whitespace-nowrap rounded-control 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 [&>span]:min-w-0", {
|
|
15
15
|
variants: {
|
|
16
16
|
variant: {
|
|
17
17
|
default: "border border-surface-border-strong bg-surface-raised-hover focus-visible:border-accent-7",
|
|
@@ -36,20 +36,20 @@ var k = i, A = t, j = p, M = _("flex w-full items-center justify-between whitesp
|
|
|
36
36
|
state: "default",
|
|
37
37
|
size: "md"
|
|
38
38
|
}
|
|
39
|
-
}), N = S.forwardRef(({ className: e, children: t, variant:
|
|
40
|
-
let c = b(), l = x(i ?? void 0, c.state), u = o["aria-describedby"] ?? c.helperTextId,
|
|
41
|
-
return /* @__PURE__ */ w(
|
|
39
|
+
}), N = S.forwardRef(({ className: e, children: t, variant: r, state: i, size: a, ...o }, s) => {
|
|
40
|
+
let c = b(), l = x(i ?? void 0, c.state), u = o["aria-describedby"] ?? c.helperTextId, d = o["aria-required"] ?? c.required;
|
|
41
|
+
return /* @__PURE__ */ w(f, {
|
|
42
42
|
ref: s,
|
|
43
43
|
className: v(M({
|
|
44
|
-
variant:
|
|
44
|
+
variant: r,
|
|
45
45
|
state: l ?? "default",
|
|
46
46
|
size: a
|
|
47
47
|
}), e),
|
|
48
48
|
"aria-invalid": l === "error" || void 0,
|
|
49
49
|
"aria-describedby": u,
|
|
50
|
-
"aria-required":
|
|
50
|
+
"aria-required": d || void 0,
|
|
51
51
|
...o,
|
|
52
|
-
children: [t, /* @__PURE__ */ C(
|
|
52
|
+
children: [t, /* @__PURE__ */ C(n, {
|
|
53
53
|
asChild: !0,
|
|
54
54
|
children: /* @__PURE__ */ C(y, {
|
|
55
55
|
icon: E,
|
|
@@ -59,8 +59,8 @@ var k = i, A = t, j = p, M = _("flex w-full items-center justify-between whitesp
|
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
|
-
N.displayName =
|
|
63
|
-
var P = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
62
|
+
N.displayName = f.displayName;
|
|
63
|
+
var P = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(u, {
|
|
64
64
|
ref: n,
|
|
65
65
|
className: v("flex cursor-default items-center justify-center py-ds-02", e),
|
|
66
66
|
...t,
|
|
@@ -69,22 +69,22 @@ var P = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(l, {
|
|
|
69
69
|
size: "sm"
|
|
70
70
|
})
|
|
71
71
|
}));
|
|
72
|
-
P.displayName =
|
|
73
|
-
var F = S.forwardRef(({ className:
|
|
74
|
-
ref:
|
|
75
|
-
className: v("flex cursor-default items-center justify-center py-ds-02",
|
|
76
|
-
...
|
|
72
|
+
P.displayName = u.displayName;
|
|
73
|
+
var F = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(l, {
|
|
74
|
+
ref: n,
|
|
75
|
+
className: v("flex cursor-default items-center justify-center py-ds-02", e),
|
|
76
|
+
...t,
|
|
77
77
|
children: /* @__PURE__ */ C(y, {
|
|
78
78
|
icon: E,
|
|
79
79
|
size: "sm"
|
|
80
80
|
})
|
|
81
81
|
}));
|
|
82
|
-
F.displayName =
|
|
83
|
-
var I = S.forwardRef(({ className:
|
|
84
|
-
ref:
|
|
85
|
-
position:
|
|
82
|
+
F.displayName = l.displayName;
|
|
83
|
+
var I = S.forwardRef(({ className: t, children: n, position: r = "popper", ...i }, a) => /* @__PURE__ */ C(s, { children: /* @__PURE__ */ C(e, {
|
|
84
|
+
ref: a,
|
|
85
|
+
position: r,
|
|
86
86
|
asChild: !0,
|
|
87
|
-
...
|
|
87
|
+
...i,
|
|
88
88
|
children: /* @__PURE__ */ w(O.div, {
|
|
89
89
|
initial: {
|
|
90
90
|
opacity: 0,
|
|
@@ -98,45 +98,45 @@ var I = S.forwardRef(({ className: e, children: t, position: n = "popper", ...r
|
|
|
98
98
|
...h.snappy,
|
|
99
99
|
opacity: g.fade
|
|
100
100
|
},
|
|
101
|
-
className: v("relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-overlay bg-surface-overlay text-surface-fg shadow-floating",
|
|
101
|
+
className: v("relative z-popover max-h-96 min-w-[8rem] overflow-hidden rounded-overlay bg-surface-overlay text-surface-fg shadow-floating", r === "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", t),
|
|
102
102
|
children: [
|
|
103
103
|
/* @__PURE__ */ C(P, {}),
|
|
104
|
-
/* @__PURE__ */ C(
|
|
105
|
-
className: v("p-ds-02",
|
|
106
|
-
children:
|
|
104
|
+
/* @__PURE__ */ C(m, {
|
|
105
|
+
className: v("p-ds-02", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
106
|
+
children: n
|
|
107
107
|
}),
|
|
108
108
|
/* @__PURE__ */ C(F, {})
|
|
109
109
|
]
|
|
110
110
|
})
|
|
111
111
|
}) }));
|
|
112
|
-
I.displayName =
|
|
112
|
+
I.displayName = e.displayName;
|
|
113
113
|
var L = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(o, {
|
|
114
114
|
ref: n,
|
|
115
115
|
className: v("px-ds-03 py-ds-02b text-ds-md font-semibold", e),
|
|
116
116
|
...t
|
|
117
117
|
}));
|
|
118
118
|
L.displayName = o.displayName;
|
|
119
|
-
var R = S.forwardRef(({ className: e, children: t, ...
|
|
120
|
-
ref:
|
|
119
|
+
var R = S.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ w(r, {
|
|
120
|
+
ref: o,
|
|
121
121
|
className: v("relative flex w-full cursor-default select-none items-center rounded-control 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", e),
|
|
122
|
-
...
|
|
122
|
+
...n,
|
|
123
123
|
children: [/* @__PURE__ */ C("span", {
|
|
124
124
|
className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center",
|
|
125
|
-
children: /* @__PURE__ */ C(
|
|
125
|
+
children: /* @__PURE__ */ C(i, { children: /* @__PURE__ */ C(y, {
|
|
126
126
|
icon: T,
|
|
127
127
|
size: "sm"
|
|
128
128
|
}) })
|
|
129
|
-
}), /* @__PURE__ */ C(
|
|
129
|
+
}), /* @__PURE__ */ C(a, {
|
|
130
130
|
className: "min-w-0 line-clamp-1",
|
|
131
131
|
children: t
|
|
132
132
|
})]
|
|
133
133
|
}));
|
|
134
|
-
R.displayName =
|
|
135
|
-
var z = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(
|
|
134
|
+
R.displayName = r.displayName;
|
|
135
|
+
var z = S.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ C(d, {
|
|
136
136
|
ref: n,
|
|
137
137
|
className: v("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
|
|
138
138
|
...t
|
|
139
139
|
}));
|
|
140
|
-
z.displayName =
|
|
140
|
+
z.displayName = d.displayName;
|
|
141
141
|
//#endregion
|
|
142
142
|
export { k as Select, I as SelectContent, A as SelectGroup, R as SelectItem, L as SelectLabel, F as SelectScrollDownButton, P as SelectScrollUpButton, z as SelectSeparator, N as SelectTrigger, j as SelectValue, M as selectTriggerVariants };
|
package/dist/ui/separator.js
CHANGED
package/dist/ui/sheet.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Close as e, Content$2 as t, Description as n, Overlay as r, Portal$4 as i, Root$8 as a, Title as o, Trigger$9 as s } from "../_chunks/primitives.js";
|
|
3
3
|
import { motionProps as c, springs as l, tweens as u } from "./lib/motion.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cva as d } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as f } from "./lib/utils.js";
|
|
6
6
|
import { Icon as p } from "./icon.js";
|
|
7
7
|
import { useIsMobile as m } from "../hooks/use-mobile.js";
|
|
8
|
-
import {
|
|
8
|
+
import { useControllableOpen as h } from "../_chunks/use-controllable-open.js";
|
|
9
9
|
import * as g from "react";
|
|
10
10
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
11
|
import { IconX as y } from "@tabler/icons-react";
|
|
@@ -14,27 +14,27 @@ import { AnimatePresence as b, motion as x, useReducedMotion as S } from "framer
|
|
|
14
14
|
var C = g.createContext({
|
|
15
15
|
open: !1,
|
|
16
16
|
onClose: () => {}
|
|
17
|
-
}), w = ({ open:
|
|
17
|
+
}), w = ({ open: e, defaultOpen: t = !1, onOpenChange: n, children: r, ...i }) => {
|
|
18
18
|
let { open: o, setOpen: s, close: c } = h({
|
|
19
|
-
open:
|
|
20
|
-
defaultOpen:
|
|
21
|
-
onOpenChange:
|
|
19
|
+
open: e,
|
|
20
|
+
defaultOpen: t,
|
|
21
|
+
onOpenChange: n
|
|
22
22
|
}), l = g.useMemo(() => ({
|
|
23
23
|
open: o,
|
|
24
24
|
onClose: c
|
|
25
25
|
}), [o, c]);
|
|
26
26
|
return /* @__PURE__ */ _(C.Provider, {
|
|
27
27
|
value: l,
|
|
28
|
-
children: /* @__PURE__ */ _(
|
|
28
|
+
children: /* @__PURE__ */ _(a, {
|
|
29
29
|
open: o,
|
|
30
30
|
onOpenChange: s,
|
|
31
|
-
...
|
|
32
|
-
children:
|
|
31
|
+
...i,
|
|
32
|
+
children: r
|
|
33
33
|
})
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
w.displayName = "Sheet";
|
|
37
|
-
var T =
|
|
37
|
+
var T = s, E = e, D = i, O = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(r, {
|
|
38
38
|
forceMount: !0,
|
|
39
39
|
asChild: !0,
|
|
40
40
|
children: /* @__PURE__ */ _(x.div, {
|
|
@@ -47,7 +47,7 @@ var T = r, E = a, D = s, O = g.forwardRef(({ className: e, ...t }, n) => /* @__P
|
|
|
47
47
|
...c(t)
|
|
48
48
|
})
|
|
49
49
|
}));
|
|
50
|
-
O.displayName =
|
|
50
|
+
O.displayName = r.displayName;
|
|
51
51
|
var k = {
|
|
52
52
|
top: { y: "-100%" },
|
|
53
53
|
bottom: { y: "100%" },
|
|
@@ -66,18 +66,18 @@ var k = {
|
|
|
66
66
|
right: "inset-y-0 right-0 h-full w-3/4 border-l border-surface-border-strong sm:max-w-sm"
|
|
67
67
|
} },
|
|
68
68
|
defaultVariants: { side: "right" }
|
|
69
|
-
}), M = g.forwardRef(({ side:
|
|
70
|
-
let u = m(), d =
|
|
69
|
+
}), M = g.forwardRef(({ side: n = "right", responsive: r, className: i, children: a, ...o }, s) => {
|
|
70
|
+
let u = m(), d = r !== !1 && u, h = S(), { open: w, onClose: T } = g.useContext(C), E = d ? "bottom" : n ?? "right", M = g.useRef(null), N = g.useCallback((e) => {
|
|
71
71
|
M.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
|
|
72
72
|
}, [s]);
|
|
73
73
|
return /* @__PURE__ */ _(b, { children: w && /* @__PURE__ */ v(D, {
|
|
74
74
|
forceMount: !0,
|
|
75
|
-
children: [/* @__PURE__ */ _(O, {}), /* @__PURE__ */ _(
|
|
75
|
+
children: [/* @__PURE__ */ _(O, {}), /* @__PURE__ */ _(t, {
|
|
76
76
|
forceMount: !0,
|
|
77
77
|
asChild: !0,
|
|
78
78
|
children: /* @__PURE__ */ v(x.div, {
|
|
79
79
|
ref: N,
|
|
80
|
-
className: f(j({ side: E }),
|
|
80
|
+
className: f(j({ side: E }), i),
|
|
81
81
|
initial: k[E],
|
|
82
82
|
animate: A[E],
|
|
83
83
|
exit: k[E],
|
|
@@ -95,7 +95,7 @@ var k = {
|
|
|
95
95
|
className: "flex justify-center pt-ds-03 pb-ds-02",
|
|
96
96
|
children: /* @__PURE__ */ _("div", { className: "h-1 w-8 rounded-pill bg-surface-border" })
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */ v(
|
|
98
|
+
/* @__PURE__ */ v(e, {
|
|
99
99
|
title: "Close",
|
|
100
100
|
className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-control-inner 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",
|
|
101
101
|
children: [/* @__PURE__ */ _(p, {
|
|
@@ -106,13 +106,13 @@ var k = {
|
|
|
106
106
|
children: "Close"
|
|
107
107
|
})]
|
|
108
108
|
}),
|
|
109
|
-
|
|
109
|
+
a
|
|
110
110
|
]
|
|
111
111
|
})
|
|
112
112
|
})]
|
|
113
113
|
}) });
|
|
114
114
|
});
|
|
115
|
-
M.displayName =
|
|
115
|
+
M.displayName = t.displayName;
|
|
116
116
|
var N = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _("div", {
|
|
117
117
|
ref: n,
|
|
118
118
|
className: f("flex flex-col space-y-ds-03 text-center sm:text-left", e),
|
|
@@ -131,11 +131,11 @@ var F = g.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ _(o, {
|
|
|
131
131
|
...t
|
|
132
132
|
}));
|
|
133
133
|
F.displayName = o.displayName;
|
|
134
|
-
var I = g.forwardRef(({ className: e, ...
|
|
134
|
+
var I = g.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ _(n, {
|
|
135
135
|
ref: r,
|
|
136
136
|
className: f("text-ds-md text-surface-fg-muted", e),
|
|
137
|
-
...
|
|
137
|
+
...t
|
|
138
138
|
}));
|
|
139
|
-
I.displayName =
|
|
139
|
+
I.displayName = n.displayName;
|
|
140
140
|
//#endregion
|
|
141
141
|
export { w as Sheet, E as SheetClose, M as SheetContent, I as SheetDescription, P as SheetFooter, N as SheetHeader, O as SheetOverlay, D as SheetPortal, F as SheetTitle, T as SheetTrigger };
|
package/dist/ui/sidebar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Slot as e } from "../_chunks/primitives.js";
|
|
3
3
|
import { springs as t } from "./lib/motion.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cva as n } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as r } from "./lib/utils.js";
|
|
6
6
|
import { Icon as i } from "./icon.js";
|
|
7
7
|
import { useIsMobile as a } from "../hooks/use-mobile.js";
|
package/dist/ui/skeleton.js
CHANGED
package/dist/ui/slider.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Range as e, Root$3 as t, Thumb$1 as n, Track as r } from "../_chunks/primitives.js";
|
|
3
|
+
import { cva as i } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { cn as a } from "./lib/utils.js";
|
|
5
5
|
import { useFormField as o } from "./form.js";
|
|
6
6
|
import * as s from "react";
|
|
@@ -13,7 +13,7 @@ var u = i("relative w-full grow overflow-hidden rounded-pill bg-surface-raised-h
|
|
|
13
13
|
lg: "h-[10px]"
|
|
14
14
|
} },
|
|
15
15
|
defaultVariants: { size: "md" }
|
|
16
|
-
}), d = i("touch-target block rounded-pill bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:
|
|
16
|
+
}), d = i("touch-target block rounded-pill bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:shadow-raised-hover active:scale-[1.15] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled", {
|
|
17
17
|
variants: {
|
|
18
18
|
size: {
|
|
19
19
|
sm: "h-4 w-4 border",
|
|
@@ -38,7 +38,7 @@ var u = i("relative w-full grow overflow-hidden rounded-pill bg-surface-raised-h
|
|
|
38
38
|
error: "bg-error-9"
|
|
39
39
|
}, p = s.forwardRef(({ className: i, "aria-label": s, value: p, defaultValue: m, size: h = "md", color: g = "accent", ..._ }, v) => {
|
|
40
40
|
let y = h ?? "md", b = g ?? "accent", x = o(), S = x.state === "error", C = _["aria-describedby"] ?? x.helperTextId, w = _["aria-required"] ?? x.required, T = (p ?? m ?? [0]).length;
|
|
41
|
-
return /* @__PURE__ */ l(
|
|
41
|
+
return /* @__PURE__ */ l(t, {
|
|
42
42
|
ref: v,
|
|
43
43
|
value: p,
|
|
44
44
|
defaultValue: m,
|
|
@@ -47,18 +47,18 @@ var u = i("relative w-full grow overflow-hidden rounded-pill bg-surface-raised-h
|
|
|
47
47
|
"aria-required": w || void 0,
|
|
48
48
|
className: a("relative flex w-full touch-none select-none items-center", i),
|
|
49
49
|
..._,
|
|
50
|
-
children: [/* @__PURE__ */ c(
|
|
50
|
+
children: [/* @__PURE__ */ c(r, {
|
|
51
51
|
className: u({ size: y }),
|
|
52
52
|
children: /* @__PURE__ */ c(e, { className: a("absolute h-full", f[b]) })
|
|
53
|
-
}), Array.from({ length: T }, (e,
|
|
53
|
+
}), Array.from({ length: T }, (e, t) => /* @__PURE__ */ c(n, {
|
|
54
54
|
"aria-label": T === 1 ? s : void 0,
|
|
55
55
|
className: d({
|
|
56
56
|
size: y,
|
|
57
57
|
color: b
|
|
58
58
|
})
|
|
59
|
-
},
|
|
59
|
+
}, t))]
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
|
-
p.displayName =
|
|
62
|
+
p.displayName = t.displayName;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { p as Slider, d as sliderThumbVariants, u as sliderTrackVariants };
|
package/dist/ui/slider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","names":[],"sources":["../../src/ui/slider.tsx"],"sourcesContent":["'use client'\n\nimport * as SliderPrimitive from '@primitives/react-slider'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { useFormField } from './form'\nimport { cn } from './lib/utils'\n\nconst sliderTrackVariants = cva(\n 'relative w-full grow overflow-hidden rounded-pill bg-surface-raised-hover',\n {\n variants: {\n size: {\n sm: 'h-ds-02',\n md: 'h-ds-02b',\n lg: 'h-[10px]',\n },\n },\n defaultVariants: { size: 'md' },\n },\n)\n\nconst sliderThumbVariants = cva(\n 'touch-target block rounded-pill bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:
|
|
1
|
+
{"version":3,"file":"slider.js","names":[],"sources":["../../src/ui/slider.tsx"],"sourcesContent":["'use client'\n\nimport * as SliderPrimitive from '@primitives/react-slider'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { useFormField } from './form'\nimport { cn } from './lib/utils'\n\nconst sliderTrackVariants = cva(\n 'relative w-full grow overflow-hidden rounded-pill bg-surface-raised-hover',\n {\n variants: {\n size: {\n sm: 'h-ds-02',\n md: 'h-ds-02b',\n lg: 'h-[10px]',\n },\n },\n defaultVariants: { size: 'md' },\n },\n)\n\nconst sliderThumbVariants = cva(\n 'touch-target block rounded-pill bg-surface-overlay shadow-raised transition-[color,transform,box-shadow] duration-fast-02 ease-productive-standard hover:shadow-raised-hover active:scale-[1.15] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled',\n {\n variants: {\n size: {\n sm: 'h-4 w-4 border',\n md: 'h-6 w-6 border-2',\n lg: 'h-8 w-8 border-[3px]',\n },\n color: {\n accent: 'border-accent-7 focus-visible:ring-accent-9',\n success: 'border-success-7 focus-visible:ring-success-9',\n warning: 'border-warning-7 focus-visible:ring-warning-9',\n error: 'border-error-7 focus-visible:ring-error-9',\n },\n },\n defaultVariants: { size: 'md', color: 'accent' },\n },\n)\n\nconst sliderRangeColorMap: Record<string, string> = {\n accent: 'bg-accent-9',\n success: 'bg-success-9',\n warning: 'bg-warning-9',\n error: 'bg-error-9',\n}\n\nexport type SliderSize = NonNullable<VariantProps<typeof sliderTrackVariants>['size']>\nexport type SliderColor = NonNullable<VariantProps<typeof sliderThumbVariants>['color']>\n\nexport interface SliderProps\n extends Omit<React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, 'color'> {\n /** Size of the slider. Controls track height and thumb diameter. */\n size?: SliderSize\n /** Color of the range fill and thumb border. */\n color?: SliderColor\n}\n\n/**\n * A Radix-powered slider supporting single or multiple thumbs.\n *\n * Pass `defaultValue={[50]}` for a single thumb, or `defaultValue={[25, 75]}`\n * for a range slider with two thumbs. One `<Thumb>` is rendered per value entry.\n *\n * When using multiple thumbs, provide per-thumb labels via the `aria-label` array\n * on the `value`/`defaultValue` entries, or wrap each in a labelled form field.\n *\n * **Sizes:** `sm` | `md` (default) | `lg`\n *\n * **Colors:** `accent` (default) | `success` | `warning` | `error`\n */\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n SliderProps\n>(({ className, 'aria-label': ariaLabel, value, defaultValue, size: sizeProp = 'md', color: colorProp = 'accent', ...props }, ref) => {\n const size = sizeProp ?? 'md'\n const color = colorProp ?? 'accent'\n const fieldCtx = useFormField()\n const isError = fieldCtx.state === 'error'\n const ariaDescribedBy = props['aria-describedby'] ?? fieldCtx.helperTextId\n const ariaRequired = props['aria-required'] ?? fieldCtx.required\n\n // Determine how many thumbs to render from controlled or default value\n const thumbCount = (value ?? defaultValue ?? [0]).length\n\n return (\n <SliderPrimitive.Root\n ref={ref}\n value={value}\n defaultValue={defaultValue}\n aria-invalid={isError || undefined}\n aria-describedby={ariaDescribedBy}\n aria-required={ariaRequired || undefined}\n className={cn(\n 'relative flex w-full touch-none select-none items-center',\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track className={sliderTrackVariants({ size })}>\n <SliderPrimitive.Range className={cn('absolute h-full', sliderRangeColorMap[color])} />\n </SliderPrimitive.Track>\n {Array.from({ length: thumbCount }, (_, i) => (\n <SliderPrimitive.Thumb\n key={i}\n aria-label={thumbCount === 1 ? (ariaLabel as string | undefined) : undefined}\n className={sliderThumbVariants({ size, color })}\n />\n ))}\n </SliderPrimitive.Root>\n )\n})\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider, sliderThumbVariants,sliderTrackVariants }\n"],"mappings":";;;;;;;;AASA,IAAM,IAAsB,EAC1B,6EACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EAAE,MAAM,MAAM;CAChC,CACF,EAEK,IAAsB,EAC1B,gVACA;CACE,UAAU;EACR,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,OAAO;GACL,QAAQ;GACR,SAAS;GACT,SAAS;GACT,OAAO;GACR;EACF;CACD,iBAAiB;EAAE,MAAM;EAAM,OAAO;EAAU;CACjD,CACF,EAEK,IAA8C;CAClD,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACR,EA0BK,IAAS,EAAM,YAGlB,EAAE,cAAW,cAAc,GAAW,UAAO,iBAAc,MAAM,IAAW,MAAM,OAAO,IAAY,UAAU,GAAG,KAAS,MAAQ;CACpI,IAAM,IAAO,KAAY,MACnB,IAAQ,KAAa,UACrB,IAAW,GAAc,EACzB,IAAU,EAAS,UAAU,SAC7B,IAAkB,EAAM,uBAAuB,EAAS,cACxD,IAAe,EAAM,oBAAoB,EAAS,UAGlD,KAAc,KAAS,KAAgB,CAAC,EAAE,EAAE;AAElD,QACE,kBAAC,GAAD;EACO;EACE;EACO;EACd,gBAAc,KAAW,KAAA;EACzB,oBAAkB;EAClB,iBAAe,KAAgB,KAAA;EAC/B,WAAW,EACT,4DACA,EACD;EACD,GAAI;YAXN,CAaE,kBAAC,GAAD;GAAuB,WAAW,EAAoB,EAAE,SAAM,CAAC;aAC7D,kBAAC,GAAD,EAAuB,WAAW,EAAG,mBAAmB,EAAoB,GAAO,EAAI,CAAA;GACjE,CAAA,EACvB,MAAM,KAAK,EAAE,QAAQ,GAAY,GAAG,GAAG,MACtC,kBAAC,GAAD;GAEE,cAAY,MAAe,IAAK,IAAmC,KAAA;GACnE,WAAW,EAAoB;IAAE;IAAM;IAAO,CAAC;GAC/C,EAHK,EAGL,CACF,CACmB;;EAEzB;AACF,EAAO,cAAA,EAAmC"}
|
package/dist/ui/split-button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "./lib/utils.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Popover as t, PopoverContent as n, PopoverTrigger as r } from "../_chunks/popover.js";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
//#region src/ui/split-button.tsx
|
|
@@ -119,7 +119,7 @@ var _ = i.forwardRef(function({ children: _, onClick: v, dropdownContent: y, ope
|
|
|
119
119
|
let [P, F] = i.useMemo(() => {
|
|
120
120
|
let [e, t] = A.split("-");
|
|
121
121
|
return [e, t === "start" ? "start" : t === "end" ? "end" : "center"];
|
|
122
|
-
}, [A]), I = m(S, C), L = c[S][C] ?? c[S].accent, R = j == null ? void 0 : { width: typeof j == "number" ? `${j}px` : j }, z = /* @__PURE__ */ o(
|
|
122
|
+
}, [A]), I = m(S, C), L = c[S][C] ?? c[S].accent, R = j == null ? void 0 : { width: typeof j == "number" ? `${j}px` : j }, z = /* @__PURE__ */ o(r, {
|
|
123
123
|
asChild: !0,
|
|
124
124
|
children: /* @__PURE__ */ o("button", {
|
|
125
125
|
type: "button",
|
|
@@ -130,7 +130,7 @@ var _ = i.forwardRef(function({ children: _, onClick: v, dropdownContent: y, ope
|
|
|
130
130
|
children: O ?? /* @__PURE__ */ o(g, {})
|
|
131
131
|
})
|
|
132
132
|
});
|
|
133
|
-
return /* @__PURE__ */ s(
|
|
133
|
+
return /* @__PURE__ */ s(t, {
|
|
134
134
|
open: b,
|
|
135
135
|
onOpenChange: x,
|
|
136
136
|
children: [/* @__PURE__ */ o("div", {
|
package/dist/ui/stat-card.d.ts
CHANGED
|
@@ -85,6 +85,8 @@ export interface StatCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
85
85
|
size?: CardSize;
|
|
86
86
|
/** How the brand accent reads: `none` (neutral — default), `icon` (accent chip around `icon`), or `tint` (subtle accent surface wash + accent value). */
|
|
87
87
|
accentStyle?: 'none' | 'icon' | 'tint';
|
|
88
|
+
/** Animate value/label in on mount (subtle settle; content stays visible either way, never opacity-gated). @default false */
|
|
89
|
+
reveal?: boolean;
|
|
88
90
|
/** When `accentStyle="icon"`: `soft` (tinted chip) or `solid` (filled accent chip). @default 'soft' */
|
|
89
91
|
iconFill?: 'soft' | 'solid';
|
|
90
92
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/ui/stat-card.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAiC,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAGrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAOjD,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAY,MAAM,cAAc,CAAA;AAE1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE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