@devalok/shilp-sutra 0.27.2 → 0.29.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 +299 -0
- package/dist/_chunks/framer.js +1915 -1980
- package/dist/_chunks/keybinding.js +4 -5
- package/dist/_chunks/primitives.js +3198 -3272
- package/dist/_chunks/sonner.js +29 -31
- package/dist/_chunks/stat-row.js +110 -131
- package/dist/_chunks/tiptap.js +42 -78
- package/dist/_chunks/tree-view.js +138 -149
- package/dist/_chunks/typing-indicator.js +565 -0
- package/dist/_chunks/use-calendar.js +416 -439
- package/dist/_chunks/vendor-client.js +977 -814
- package/dist/_chunks/vendor-utils.js +5 -5
- package/dist/ai/block-renderer.js +22 -22
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +241 -263
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +87 -107
- package/dist/composed/activity-feed.d.ts +2 -0
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +118 -90
- package/dist/composed/avatar-group.d.ts +1 -0
- package/dist/composed/avatar-group.d.ts.map +1 -1
- package/dist/composed/avatar-group.js +91 -67
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +29 -28
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +99 -113
- package/dist/composed/content-card.js +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +29 -28
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +30 -27
- package/dist/composed/extensions/file-attachment.d.ts.map +1 -1
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +261 -271
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +49 -48
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +12 -11
- package/dist/composed/global-loading.js +1 -1
- package/dist/composed/index.js +63 -63
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +55 -54
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +44 -43
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +35 -34
- package/dist/composed/multi-select-popover.d.ts.map +1 -1
- package/dist/composed/multi-select-popover.js +64 -64
- package/dist/composed/page-header.d.ts.map +1 -1
- package/dist/composed/page-header.js +31 -37
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/priority-indicator.js +37 -36
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +287 -306
- package/dist/composed/schedule-view.js +62 -62
- package/dist/composed/status-badge.d.ts +4 -2
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +58 -45
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +93 -93
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +21 -20
- package/dist/shell/index.js +18 -18
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +96 -95
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +82 -85
- package/dist/shell/sidebar.js +59 -60
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +103 -103
- package/dist/tailwind/index.cjs +37 -4
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +38 -5
- package/dist/tokens/primitives.css +10 -0
- package/dist/tokens/semantic.css +70 -7
- package/dist/ui/accordion.d.ts +5 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +44 -39
- package/dist/ui/alert-dialog.js +57 -57
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +30 -29
- package/dist/ui/aspect-ratio.js +4 -4
- package/dist/ui/autocomplete.js +56 -56
- package/dist/ui/avatar.js +2 -2
- package/dist/ui/badge-group.d.ts +22 -0
- package/dist/ui/badge-group.d.ts.map +1 -0
- package/dist/ui/badge-group.js +8 -0
- package/dist/ui/badge-indicator.d.ts +32 -0
- package/dist/ui/badge-indicator.d.ts.map +1 -0
- package/dist/ui/badge-indicator.js +54 -0
- package/dist/ui/badge.d.ts +27 -24
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +13 -129
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +27 -26
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +37 -36
- package/dist/ui/button-group.d.ts +12 -6
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +18 -18
- package/dist/ui/button-processing.d.ts +15 -0
- package/dist/ui/button-processing.d.ts.map +1 -0
- package/dist/ui/button-processing.js +77 -0
- package/dist/ui/button.d.ts +50 -25
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +243 -127
- package/dist/ui/card.js +20 -21
- package/dist/ui/charts/index.js +499 -508
- package/dist/ui/chat/date-separator.d.ts +12 -0
- package/dist/ui/chat/date-separator.d.ts.map +1 -0
- package/dist/ui/chat/index.d.ts +9 -0
- package/dist/ui/chat/index.d.ts.map +1 -0
- package/dist/ui/chat/index.js +12 -0
- package/dist/ui/chat/message-input.d.ts +16 -0
- package/dist/ui/chat/message-input.d.ts.map +1 -0
- package/dist/ui/chat/message-list.d.ts +24 -0
- package/dist/ui/chat/message-list.d.ts.map +1 -0
- package/dist/ui/chat/message.d.ts +108 -0
- package/dist/ui/chat/message.d.ts.map +1 -0
- package/dist/ui/chat/system-message.d.ts +11 -0
- package/dist/ui/chat/system-message.d.ts.map +1 -0
- package/dist/ui/chat/typing-indicator.d.ts +14 -0
- package/dist/ui/chat/typing-indicator.d.ts.map +1 -0
- package/dist/ui/chat/unread-separator.d.ts +12 -0
- package/dist/ui/chat/unread-separator.d.ts.map +1 -0
- package/dist/ui/checkbox.js +18 -18
- package/dist/ui/chip.d.ts +13 -62
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +10 -109
- package/dist/ui/collapsible.js +4 -4
- package/dist/ui/color-input.d.ts +19 -5
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +371 -79
- package/dist/ui/color-swatch.js +11 -11
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +74 -80
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +86 -85
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +51 -57
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +268 -296
- package/dist/ui/devalok-grain.d.ts +81 -0
- package/dist/ui/devalok-grain.d.ts.map +1 -0
- package/dist/ui/devalok-grain.js +69 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +73 -72
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +93 -92
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +82 -82
- package/dist/ui/hover-card.js +29 -29
- package/dist/ui/icon-button.d.ts +7 -7
- package/dist/ui/icon-button.d.ts.map +1 -1
- package/dist/ui/icon-context.d.ts +15 -0
- package/dist/ui/icon-context.d.ts.map +1 -0
- package/dist/ui/icon-context.js +20 -0
- package/dist/ui/icon-group.d.ts +22 -0
- package/dist/ui/icon-group.d.ts.map +1 -0
- package/dist/ui/icon-group.js +32 -0
- package/dist/ui/icon.d.ts +57 -0
- package/dist/ui/icon.d.ts.map +1 -0
- package/dist/ui/icon.js +122 -0
- package/dist/ui/index.d.ts +8 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +351 -329
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +21 -20
- package/dist/ui/input.d.ts +32 -11
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +149 -44
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/motion.d.ts +2 -0
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +13 -11
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +87 -86
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +23 -28
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +54 -53
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +45 -44
- package/dist/ui/popover.js +30 -30
- package/dist/ui/progress.d.ts +3 -1
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +43 -39
- package/dist/ui/radio.js +1 -1
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +47 -60
- package/dist/ui/segmented-control.js +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +54 -53
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +46 -45
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +196 -193
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/spinner.js +74 -74
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +85 -86
- package/dist/ui/switch.d.ts +3 -0
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +40 -26
- package/dist/ui/tabs.js +43 -43
- package/dist/ui/text.js +1 -1
- package/dist/ui/textarea.js +10 -10
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +169 -169
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +5 -5
- package/dist/ui/tooltip.js +41 -41
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
- package/docs/components/_header.md +4 -4
- package/docs/components/composed/activity-feed.md +7 -0
- package/docs/components/composed/avatar-group.md +8 -5
- package/docs/components/composed/status-badge.md +14 -1
- package/docs/components/ui/accordion.md +5 -2
- package/docs/components/ui/badge-group.md +38 -0
- package/docs/components/ui/badge-indicator.md +40 -0
- package/docs/components/ui/badge.md +36 -5
- package/docs/components/ui/button-processing.md +15 -0
- package/docs/components/ui/button.md +40 -11
- package/docs/components/ui/chat.md +214 -0
- package/docs/components/ui/color-input.md +58 -4
- package/docs/components/ui/data-table.md +3 -0
- package/docs/components/ui/devalok-grain.md +55 -0
- package/docs/components/ui/icon-button.md +12 -5
- package/docs/components/ui/icon-context.md +38 -0
- package/docs/components/ui/icon-group.md +36 -0
- package/docs/components/ui/icon.md +47 -0
- package/docs/components/ui/input.md +32 -6
- package/docs/components/ui/progress.md +5 -0
- package/docs/components/ui/spinner.md +3 -0
- package/docs/components/ui/switch.md +13 -0
- package/llms-full.txt +724 -44
- package/llms.txt +38 -19
- package/package.json +8 -2
package/dist/ui/skeleton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { a as g } from "../_chunks/vendor-utils.js";
|
|
4
4
|
import { cn as r } from "./lib/utils.js";
|
|
5
5
|
const k = g("bg-skeleton-base", {
|
|
6
6
|
variants: {
|
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 {
|
|
4
|
+
import { aE as r, aF as m, aG as b, aH as u } from "../_chunks/primitives.js";
|
|
5
5
|
import { cn as h } from "./lib/utils.js";
|
|
6
6
|
const v = f.forwardRef(({ className: i, "aria-label": l, value: a, defaultValue: o, ...n }, t) => {
|
|
7
7
|
const s = (a ?? o ?? [0]).length;
|
package/dist/ui/spinner.js
CHANGED
|
@@ -1,202 +1,202 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as M, jsx as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsxs as M, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as y from "react";
|
|
4
4
|
import { cn as $ } from "./lib/utils.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as v, m as c, A as g } from "../_chunks/framer.js";
|
|
6
6
|
const N = {
|
|
7
7
|
sm: "h-ico-sm w-ico-sm",
|
|
8
8
|
md: "h-ico-md w-ico-md",
|
|
9
9
|
lg: "h-ico-lg w-ico-lg"
|
|
10
|
-
}, S = { sm: 3, md: 3, lg: 4 }, K = { sm: 1.8, md: 2, lg: 2.5 },
|
|
10
|
+
}, S = { sm: 3, md: 3, lg: 4 }, K = { sm: 1.8, md: 2, lg: 2.5 }, n = 10, o = 2 * Math.PI * n, T = {
|
|
11
11
|
spinning: "Loading...",
|
|
12
12
|
success: "Complete",
|
|
13
13
|
error: "Error"
|
|
14
|
-
},
|
|
14
|
+
}, b = {
|
|
15
15
|
spinning: "var(--color-accent-9)",
|
|
16
16
|
success: "var(--color-success-9)",
|
|
17
17
|
error: "var(--color-error-9)"
|
|
18
|
-
},
|
|
19
|
-
({ size:
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
if (
|
|
18
|
+
}, F = "M7 12.5l3 3 7-7", P = "M8 8l8 8M16 8l-8 8", j = "M5 12.5l4 4 10-10", U = "M6 6l12 12M18 6l-12 12", B = y.forwardRef(
|
|
19
|
+
({ size: k = "md", state: r = "spinning", variant: L = "filled", delay: l = 0, onComplete: C, className: O }, E) => {
|
|
20
|
+
const s = v(), [I, x] = y.useState(l === 0);
|
|
21
|
+
if (y.useEffect(() => {
|
|
22
|
+
if (l <= 0) {
|
|
23
23
|
x(!0);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
const W = setTimeout(() => x(!0),
|
|
26
|
+
const W = setTimeout(() => x(!0), l);
|
|
27
27
|
return () => clearTimeout(W);
|
|
28
|
-
}, [
|
|
29
|
-
const
|
|
30
|
-
return /* @__PURE__ */ M("span", { ref:
|
|
28
|
+
}, [l]), !I) return null;
|
|
29
|
+
const i = S[k], d = K[k], p = r === "spinning", a = r === "success" || r === "error", t = L === "filled", u = L === "bare" && r === "spinning" ? "currentColor" : b[r], h = t ? "white" : "currentColor", A = t ? F : j, R = t ? P : U, f = 0.4, _ = 0.3, w = 0.25, m = t ? 0.5 : 0.35, D = 0.35;
|
|
30
|
+
return /* @__PURE__ */ M("span", { ref: E, role: "status", className: $("inline-flex", O), children: [
|
|
31
31
|
/* @__PURE__ */ M(
|
|
32
32
|
"svg",
|
|
33
33
|
{
|
|
34
|
-
className: N[
|
|
34
|
+
className: N[k],
|
|
35
35
|
viewBox: "0 0 24 24",
|
|
36
36
|
fill: "none",
|
|
37
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
38
38
|
children: [
|
|
39
|
-
|
|
39
|
+
s ? !(a && !t) && /* @__PURE__ */ e(
|
|
40
40
|
"circle",
|
|
41
41
|
{
|
|
42
42
|
cx: "12",
|
|
43
43
|
cy: "12",
|
|
44
|
-
r:
|
|
44
|
+
r: n,
|
|
45
45
|
stroke: "var(--color-surface-border)",
|
|
46
|
-
strokeWidth:
|
|
46
|
+
strokeWidth: i,
|
|
47
47
|
fill: "none"
|
|
48
48
|
}
|
|
49
|
-
) : /* @__PURE__ */
|
|
50
|
-
|
|
49
|
+
) : /* @__PURE__ */ e(
|
|
50
|
+
c.circle,
|
|
51
51
|
{
|
|
52
52
|
cx: "12",
|
|
53
53
|
cy: "12",
|
|
54
|
-
r:
|
|
54
|
+
r: n,
|
|
55
55
|
stroke: "var(--color-surface-border)",
|
|
56
|
-
strokeWidth:
|
|
56
|
+
strokeWidth: i,
|
|
57
57
|
fill: "none",
|
|
58
|
-
animate: { opacity:
|
|
59
|
-
transition: { duration: 0.2, delay:
|
|
58
|
+
animate: { opacity: a && !t ? 0 : 1 },
|
|
59
|
+
transition: { duration: 0.2, delay: a && !t ? f : 0 }
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
|
-
|
|
62
|
+
s ? /* @__PURE__ */ e(
|
|
63
63
|
"circle",
|
|
64
64
|
{
|
|
65
65
|
cx: "12",
|
|
66
66
|
cy: "12",
|
|
67
|
-
r:
|
|
68
|
-
stroke:
|
|
69
|
-
strokeWidth:
|
|
67
|
+
r: n,
|
|
68
|
+
stroke: u,
|
|
69
|
+
strokeWidth: i,
|
|
70
70
|
fill: "none",
|
|
71
71
|
strokeLinecap: "round",
|
|
72
|
-
strokeDasharray:
|
|
72
|
+
strokeDasharray: p ? `${o * 0.75} ${o * 0.25}` : `${o} 0`,
|
|
73
73
|
style: {
|
|
74
74
|
transformOrigin: "center",
|
|
75
|
-
transform:
|
|
76
|
-
opacity:
|
|
75
|
+
transform: p ? "rotate(-90deg)" : void 0,
|
|
76
|
+
opacity: a && !t ? 0 : 1
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
) : /* @__PURE__ */
|
|
80
|
-
|
|
79
|
+
) : /* @__PURE__ */ e(
|
|
80
|
+
c.circle,
|
|
81
81
|
{
|
|
82
82
|
cx: "12",
|
|
83
83
|
cy: "12",
|
|
84
|
-
r:
|
|
85
|
-
stroke:
|
|
86
|
-
strokeWidth:
|
|
84
|
+
r: n,
|
|
85
|
+
stroke: u,
|
|
86
|
+
strokeWidth: i,
|
|
87
87
|
fill: "none",
|
|
88
88
|
strokeLinecap: "round",
|
|
89
89
|
style: { transformOrigin: "center" },
|
|
90
|
-
animate:
|
|
90
|
+
animate: p ? {
|
|
91
91
|
rotate: [0, 360],
|
|
92
92
|
strokeDasharray: [
|
|
93
|
-
`${
|
|
94
|
-
`${
|
|
95
|
-
`${
|
|
93
|
+
`${o * 0.1} ${o * 0.9}`,
|
|
94
|
+
`${o * 0.75} ${o * 0.25}`,
|
|
95
|
+
`${o * 0.1} ${o * 0.9}`
|
|
96
96
|
]
|
|
97
97
|
} : {
|
|
98
98
|
rotate: 0,
|
|
99
|
-
strokeDasharray: `${
|
|
99
|
+
strokeDasharray: `${o} 0`,
|
|
100
100
|
// In bare mode, fade out the arc after it completes
|
|
101
|
-
...!
|
|
101
|
+
...!t && { opacity: 0 }
|
|
102
102
|
},
|
|
103
|
-
transition:
|
|
103
|
+
transition: p ? {
|
|
104
104
|
rotate: { duration: 1, repeat: 1 / 0, ease: "linear" },
|
|
105
105
|
strokeDasharray: { duration: 1.5, repeat: 1 / 0, ease: "easeInOut" }
|
|
106
106
|
} : {
|
|
107
107
|
rotate: { duration: 0.3, ease: "easeOut" },
|
|
108
|
-
strokeDasharray: { duration:
|
|
109
|
-
...!
|
|
108
|
+
strokeDasharray: { duration: f, ease: "easeInOut" },
|
|
109
|
+
...!t && { opacity: { duration: 0.2, delay: f } }
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ e(g, { children: a && t && (s ? /* @__PURE__ */ e(
|
|
114
114
|
"circle",
|
|
115
115
|
{
|
|
116
116
|
cx: "12",
|
|
117
117
|
cy: "12",
|
|
118
|
-
r:
|
|
119
|
-
fill:
|
|
118
|
+
r: n + i / 2,
|
|
119
|
+
fill: u,
|
|
120
120
|
stroke: "none"
|
|
121
121
|
},
|
|
122
122
|
"fill-static"
|
|
123
|
-
) : /* @__PURE__ */
|
|
124
|
-
|
|
123
|
+
) : /* @__PURE__ */ e(
|
|
124
|
+
c.circle,
|
|
125
125
|
{
|
|
126
126
|
cx: "12",
|
|
127
127
|
cy: "12",
|
|
128
|
-
r:
|
|
129
|
-
fill:
|
|
128
|
+
r: n + i / 2,
|
|
129
|
+
fill: u,
|
|
130
130
|
stroke: "none",
|
|
131
131
|
initial: { opacity: 0 },
|
|
132
132
|
animate: { opacity: 1 },
|
|
133
|
-
transition: { duration:
|
|
133
|
+
transition: { duration: w, delay: _, ease: "easeOut" },
|
|
134
134
|
style: { transformOrigin: "center" }
|
|
135
135
|
},
|
|
136
136
|
"fill"
|
|
137
137
|
)) }),
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ e(g, { children: r === "success" && (s ? /* @__PURE__ */ e(
|
|
139
139
|
"path",
|
|
140
140
|
{
|
|
141
141
|
d: A,
|
|
142
|
-
stroke:
|
|
143
|
-
strokeWidth:
|
|
142
|
+
stroke: h,
|
|
143
|
+
strokeWidth: d,
|
|
144
144
|
strokeLinecap: "round",
|
|
145
145
|
strokeLinejoin: "round",
|
|
146
146
|
fill: "none"
|
|
147
147
|
},
|
|
148
148
|
"check-static"
|
|
149
|
-
) : /* @__PURE__ */
|
|
150
|
-
|
|
149
|
+
) : /* @__PURE__ */ e(
|
|
150
|
+
c.path,
|
|
151
151
|
{
|
|
152
152
|
d: A,
|
|
153
|
-
stroke:
|
|
154
|
-
strokeWidth:
|
|
153
|
+
stroke: h,
|
|
154
|
+
strokeWidth: d,
|
|
155
155
|
strokeLinecap: "round",
|
|
156
156
|
strokeLinejoin: "round",
|
|
157
157
|
fill: "none",
|
|
158
158
|
initial: { pathLength: 0, opacity: 0 },
|
|
159
159
|
animate: { pathLength: 1, opacity: 1 },
|
|
160
160
|
transition: {
|
|
161
|
-
pathLength: { duration: D, ease: "easeOut", delay:
|
|
162
|
-
opacity: { duration: 0.1, delay:
|
|
161
|
+
pathLength: { duration: D, ease: "easeOut", delay: m },
|
|
162
|
+
opacity: { duration: 0.1, delay: m }
|
|
163
163
|
},
|
|
164
|
-
onAnimationComplete: () =>
|
|
164
|
+
onAnimationComplete: () => C?.()
|
|
165
165
|
},
|
|
166
166
|
"check"
|
|
167
167
|
)) }),
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ e(g, { children: r === "error" && (s ? /* @__PURE__ */ e(
|
|
169
169
|
"path",
|
|
170
170
|
{
|
|
171
171
|
d: R,
|
|
172
|
-
stroke:
|
|
173
|
-
strokeWidth:
|
|
172
|
+
stroke: h,
|
|
173
|
+
strokeWidth: d,
|
|
174
174
|
strokeLinecap: "round",
|
|
175
175
|
fill: "none"
|
|
176
176
|
},
|
|
177
177
|
"x-static"
|
|
178
|
-
) : /* @__PURE__ */
|
|
179
|
-
|
|
178
|
+
) : /* @__PURE__ */ e(
|
|
179
|
+
c.path,
|
|
180
180
|
{
|
|
181
181
|
d: R,
|
|
182
|
-
stroke:
|
|
183
|
-
strokeWidth:
|
|
182
|
+
stroke: h,
|
|
183
|
+
strokeWidth: d,
|
|
184
184
|
strokeLinecap: "round",
|
|
185
185
|
fill: "none",
|
|
186
186
|
initial: { pathLength: 0, opacity: 0 },
|
|
187
187
|
animate: { pathLength: 1, opacity: 1 },
|
|
188
188
|
transition: {
|
|
189
|
-
pathLength: { duration: D, ease: "easeOut", delay:
|
|
190
|
-
opacity: { duration: 0.1, delay:
|
|
189
|
+
pathLength: { duration: D, ease: "easeOut", delay: m },
|
|
190
|
+
opacity: { duration: 0.1, delay: m }
|
|
191
191
|
},
|
|
192
|
-
onAnimationComplete: () =>
|
|
192
|
+
onAnimationComplete: () => C?.()
|
|
193
193
|
},
|
|
194
194
|
"x"
|
|
195
195
|
)) })
|
|
196
196
|
]
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: T[r] })
|
|
200
200
|
] });
|
|
201
201
|
}
|
|
202
202
|
);
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/ui/stat-card.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;KACrC,CAAA;IACD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,sEAAsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kDAAkD;IAClD,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAC7D,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAuGD,QAAA,MAAM,QAAQ,sFA0Nb,CAAA;AAID,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
package/dist/ui/stat-card.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as o, jsx as e, Fragment as
|
|
3
|
-
import { IconTrendingUp as
|
|
4
|
-
import * as
|
|
2
|
+
import { jsxs as o, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
3
|
+
import { IconTrendingUp as E, IconTrendingDown as O, IconMinus as W } from "@tabler/icons-react";
|
|
4
|
+
import * as b from "react";
|
|
5
5
|
import { u as G } from "../_chunks/link-context.js";
|
|
6
6
|
import { tweens as v, springs as w } from "./lib/motion.js";
|
|
7
|
-
import { cn as
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { cn as f } from "./lib/utils.js";
|
|
8
|
+
import { Icon as R } from "./icon.js";
|
|
9
|
+
import { m as l } from "../_chunks/framer.js";
|
|
10
|
+
const S = {
|
|
10
11
|
default: "border-l-accent-9",
|
|
11
12
|
success: "border-l-success-9",
|
|
12
13
|
warning: "border-l-warning-9",
|
|
13
14
|
error: "border-l-error-9",
|
|
14
15
|
info: "border-l-info-9"
|
|
15
16
|
};
|
|
16
|
-
function H(d,
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
return
|
|
21
|
-
const g =
|
|
22
|
-
return `${
|
|
17
|
+
function H(d, c, t) {
|
|
18
|
+
const r = d.filter((n) => Number.isFinite(n));
|
|
19
|
+
if (r.length < 2) return "";
|
|
20
|
+
const s = Math.min(...r), a = Math.max(...r) - s || 1, i = c / (r.length - 1);
|
|
21
|
+
return r.map((n, u) => {
|
|
22
|
+
const g = u * i, x = t - (n - s) / a * t;
|
|
23
|
+
return `${u === 0 ? "M" : "L"}${g.toFixed(1)},${x.toFixed(1)}`;
|
|
23
24
|
}).join(" ");
|
|
24
25
|
}
|
|
25
26
|
function K({
|
|
26
27
|
data: d,
|
|
27
|
-
colorClass:
|
|
28
|
+
colorClass: c
|
|
28
29
|
}) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
|
|
30
|
+
const t = b.useId(), r = b.useRef(null), [s, p] = b.useState(0), a = 80, i = 32, n = H(d, a, i);
|
|
31
|
+
if (b.useEffect(() => {
|
|
32
|
+
r.current && p(r.current.getTotalLength());
|
|
32
33
|
}, [n]), !n) return null;
|
|
33
|
-
const
|
|
34
|
-
return /* @__PURE__ */ o("div", { className:
|
|
34
|
+
const u = `${n} L${a.toFixed(1)},${i.toFixed(1)} L0,${i.toFixed(1)} Z`;
|
|
35
|
+
return /* @__PURE__ */ o("div", { className: f("w-20 h-8", c), "aria-hidden": "true", children: [
|
|
35
36
|
/* @__PURE__ */ o(
|
|
36
37
|
"svg",
|
|
37
38
|
{
|
|
38
|
-
viewBox: `0 0 ${
|
|
39
|
+
viewBox: `0 0 ${a} ${i}`,
|
|
39
40
|
className: "w-full h-full overflow-visible",
|
|
40
41
|
preserveAspectRatio: "none",
|
|
41
42
|
children: [
|
|
42
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ o("linearGradient", { id: `sparkline-fill-${
|
|
43
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ o("linearGradient", { id: `sparkline-fill-${t}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
43
44
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.1" }),
|
|
44
45
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
|
|
45
46
|
] }) }),
|
|
46
|
-
/* @__PURE__ */ e("path", { d:
|
|
47
|
+
/* @__PURE__ */ e("path", { d: u, fill: `url(#sparkline-fill-${t})` }),
|
|
47
48
|
/* @__PURE__ */ e(
|
|
48
49
|
"path",
|
|
49
50
|
{
|
|
50
|
-
ref:
|
|
51
|
+
ref: r,
|
|
51
52
|
d: n,
|
|
52
53
|
fill: "none",
|
|
53
54
|
stroke: "currentColor",
|
|
@@ -55,62 +56,62 @@ function K({
|
|
|
55
56
|
strokeLinecap: "round",
|
|
56
57
|
strokeLinejoin: "round",
|
|
57
58
|
style: {
|
|
58
|
-
opacity:
|
|
59
|
-
strokeDasharray:
|
|
60
|
-
strokeDashoffset:
|
|
61
|
-
animation:
|
|
59
|
+
opacity: s === 0 ? 0 : 1,
|
|
60
|
+
strokeDasharray: s,
|
|
61
|
+
strokeDashoffset: s,
|
|
62
|
+
animation: s > 0 ? `sparkline-draw-${t.replace(/:/g, "")} 1s ease-out forwards` : "none"
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
)
|
|
65
66
|
]
|
|
66
67
|
}
|
|
67
68
|
),
|
|
68
|
-
|
|
69
|
+
s > 0 && /* @__PURE__ */ e("style", { children: `@keyframes sparkline-draw-${t.replace(/:/g, "")} { to { stroke-dashoffset: 0; } }` })
|
|
69
70
|
] });
|
|
70
71
|
}
|
|
71
|
-
function U({ progress: d, label:
|
|
72
|
-
const
|
|
73
|
-
return /* @__PURE__ */ e("div", { className: "h-1 w-full rounded-ds-full bg-surface-raised mt-ds-04", role: "progressbar", "aria-label": `${
|
|
72
|
+
function U({ progress: d, label: c }) {
|
|
73
|
+
const t = Math.max(0, Math.min(100, d)), r = t >= 90 ? "bg-success-9" : t >= 70 ? "bg-warning-9" : "bg-accent-9";
|
|
74
|
+
return /* @__PURE__ */ e("div", { className: "h-1 w-full rounded-ds-full bg-surface-raised mt-ds-04", role: "progressbar", "aria-label": `${c} progress`, "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, children: /* @__PURE__ */ e(
|
|
74
75
|
"div",
|
|
75
76
|
{
|
|
76
|
-
className:
|
|
77
|
-
style: { width: `${
|
|
77
|
+
className: f("h-full rounded-ds-full transition-[width] duration-moderate-02 ease-productive-standard", r),
|
|
78
|
+
style: { width: `${t}%` }
|
|
78
79
|
}
|
|
79
80
|
) });
|
|
80
81
|
}
|
|
81
|
-
const V =
|
|
82
|
+
const V = b.forwardRef(
|
|
82
83
|
({
|
|
83
84
|
className: d,
|
|
84
|
-
label:
|
|
85
|
-
title:
|
|
86
|
-
value:
|
|
87
|
-
prefix:
|
|
88
|
-
suffix:
|
|
89
|
-
delta:
|
|
85
|
+
label: c,
|
|
86
|
+
title: t,
|
|
87
|
+
value: r,
|
|
88
|
+
prefix: s,
|
|
89
|
+
suffix: p,
|
|
90
|
+
delta: a,
|
|
90
91
|
icon: i,
|
|
91
92
|
loading: n,
|
|
92
|
-
comparisonLabel:
|
|
93
|
+
comparisonLabel: u,
|
|
93
94
|
secondaryLabel: g,
|
|
94
95
|
progress: x,
|
|
95
96
|
accent: y,
|
|
96
97
|
sparkline: N,
|
|
97
|
-
onClick:
|
|
98
|
+
onClick: m,
|
|
98
99
|
href: $,
|
|
99
100
|
footer: F,
|
|
100
|
-
...
|
|
101
|
+
...h
|
|
101
102
|
}, k) => {
|
|
102
|
-
const
|
|
103
|
+
const P = G(), L = t ?? c ?? "", I = !!(m || $), M = I && !h["aria-label"] ? `View ${L}` : h["aria-label"];
|
|
103
104
|
if (n)
|
|
104
105
|
return /* @__PURE__ */ o(
|
|
105
106
|
"div",
|
|
106
107
|
{
|
|
107
108
|
ref: k,
|
|
108
|
-
className:
|
|
109
|
+
className: f(
|
|
109
110
|
"rounded-ds-lg border border-surface-border bg-surface-raised shadow-raised p-ds-05b",
|
|
110
|
-
y && `border-l-[3px] ${
|
|
111
|
+
y && `border-l-[3px] ${S[y]}`,
|
|
111
112
|
d
|
|
112
113
|
),
|
|
113
|
-
...
|
|
114
|
+
...h,
|
|
114
115
|
children: [
|
|
115
116
|
/* @__PURE__ */ e("div", { className: "h-ds-04 w-24 rounded-ds-sm bg-skeleton-base animate-pulse mb-ds-05" }),
|
|
116
117
|
/* @__PURE__ */ e("div", { className: "h-ds-sm w-32 rounded-ds-md bg-skeleton-base animate-pulse mb-ds-03" }),
|
|
@@ -118,10 +119,10 @@ const V = f.forwardRef(
|
|
|
118
119
|
]
|
|
119
120
|
}
|
|
120
121
|
);
|
|
121
|
-
const
|
|
122
|
+
const B = a?.direction === "up" ? E : a?.direction === "down" ? O : W, T = a?.direction === "up" ? "text-success-11" : a?.direction === "down" ? "text-error-11" : "text-surface-fg-muted", z = a?.direction === "up" ? "text-success-11" : a?.direction === "down" ? "text-error-11" : "text-accent-11", D = /* @__PURE__ */ o(A, { children: [
|
|
122
123
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between mb-ds-04", children: [
|
|
123
124
|
/* @__PURE__ */ e(
|
|
124
|
-
|
|
125
|
+
l.p,
|
|
125
126
|
{
|
|
126
127
|
className: "text-ds-md font-medium text-surface-fg-muted",
|
|
127
128
|
initial: { opacity: 0 },
|
|
@@ -131,38 +132,36 @@ const V = f.forwardRef(
|
|
|
131
132
|
}
|
|
132
133
|
),
|
|
133
134
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-ds-03", children: [
|
|
134
|
-
N && N.length >= 2 && /* @__PURE__ */ e(K, { data: N, colorClass:
|
|
135
|
+
N && N.length >= 2 && /* @__PURE__ */ e(K, { data: N, colorClass: z }),
|
|
135
136
|
i && /* @__PURE__ */ e(
|
|
136
|
-
|
|
137
|
+
l.span,
|
|
137
138
|
{
|
|
138
139
|
className: "text-surface-fg-muted",
|
|
139
140
|
initial: { opacity: 0, scale: 0.96 },
|
|
140
141
|
animate: { opacity: 1, scale: 1 },
|
|
141
142
|
transition: w.snappy,
|
|
142
143
|
"aria-hidden": "true",
|
|
143
|
-
children: typeof i == "function" ?
|
|
144
|
-
className: "h-ico-lg w-ico-lg"
|
|
145
|
-
}) : i
|
|
144
|
+
children: typeof i == "function" ? /* @__PURE__ */ e(R, { icon: i, size: "lg" }) : i
|
|
146
145
|
}
|
|
147
146
|
)
|
|
148
147
|
] })
|
|
149
148
|
] }),
|
|
150
149
|
/* @__PURE__ */ e("div", { className: "overflow-hidden", children: /* @__PURE__ */ o(
|
|
151
|
-
|
|
150
|
+
l.p,
|
|
152
151
|
{
|
|
153
152
|
className: "inline-block text-ds-3xl font-semibold text-surface-fg",
|
|
154
153
|
initial: { opacity: 0, y: "100%" },
|
|
155
154
|
animate: { opacity: 1, y: 0 },
|
|
156
155
|
transition: w.smooth,
|
|
157
156
|
children: [
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */ e("span", { className: "tabular-nums", children:
|
|
160
|
-
|
|
157
|
+
s && /* @__PURE__ */ e("span", { className: "text-surface-fg-muted text-ds-lg", children: s }),
|
|
158
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: r }),
|
|
159
|
+
p && /* @__PURE__ */ e("span", { className: "text-surface-fg-muted text-ds-lg", children: p })
|
|
161
160
|
]
|
|
162
161
|
}
|
|
163
162
|
) }),
|
|
164
163
|
g && /* @__PURE__ */ e(
|
|
165
|
-
|
|
164
|
+
l.p,
|
|
166
165
|
{
|
|
167
166
|
className: "text-ds-sm text-surface-fg-subtle mt-ds-01",
|
|
168
167
|
initial: { opacity: 0 },
|
|
@@ -172,7 +171,7 @@ const V = f.forwardRef(
|
|
|
172
171
|
}
|
|
173
172
|
),
|
|
174
173
|
x != null && /* @__PURE__ */ e(
|
|
175
|
-
|
|
174
|
+
l.div,
|
|
176
175
|
{
|
|
177
176
|
initial: { opacity: 0 },
|
|
178
177
|
animate: { opacity: 1 },
|
|
@@ -180,34 +179,34 @@ const V = f.forwardRef(
|
|
|
180
179
|
children: /* @__PURE__ */ e(U, { progress: x, label: L })
|
|
181
180
|
}
|
|
182
181
|
),
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
a && /* @__PURE__ */ o(
|
|
183
|
+
l.div,
|
|
185
184
|
{
|
|
186
|
-
className:
|
|
185
|
+
className: f(
|
|
187
186
|
"mt-ds-03 flex items-center gap-ds-02 text-ds-sm font-medium",
|
|
188
|
-
|
|
187
|
+
T
|
|
189
188
|
),
|
|
190
189
|
initial: { opacity: 0, y: 8 },
|
|
191
190
|
animate: { opacity: 1, y: 0 },
|
|
192
191
|
transition: { ...w.smooth, delay: 0.2 },
|
|
193
192
|
children: [
|
|
194
193
|
/* @__PURE__ */ e(
|
|
195
|
-
|
|
194
|
+
l.span,
|
|
196
195
|
{
|
|
197
196
|
className: "inline-flex",
|
|
198
197
|
initial: { opacity: 0.5, scale: 1.4 },
|
|
199
198
|
animate: { opacity: 1, scale: 1 },
|
|
200
199
|
transition: w.bouncy,
|
|
201
|
-
children: /* @__PURE__ */ e(
|
|
200
|
+
children: /* @__PURE__ */ e(R, { icon: B, size: "sm" })
|
|
202
201
|
}
|
|
203
202
|
),
|
|
204
|
-
/* @__PURE__ */ e("span", { children:
|
|
205
|
-
|
|
203
|
+
/* @__PURE__ */ e("span", { children: a.value }),
|
|
204
|
+
u && /* @__PURE__ */ e("span", { className: "text-surface-fg-subtle font-normal", children: u })
|
|
206
205
|
]
|
|
207
206
|
}
|
|
208
207
|
),
|
|
209
208
|
F && /* @__PURE__ */ e(
|
|
210
|
-
|
|
209
|
+
l.div,
|
|
211
210
|
{
|
|
212
211
|
className: "mt-ds-04 pt-ds-04 border-t border-surface-border text-ds-sm",
|
|
213
212
|
initial: { opacity: 0 },
|
|
@@ -216,37 +215,37 @@ const V = f.forwardRef(
|
|
|
216
215
|
children: F
|
|
217
216
|
}
|
|
218
217
|
)
|
|
219
|
-
] }), j =
|
|
218
|
+
] }), j = f(
|
|
220
219
|
"rounded-ds-lg border border-surface-border bg-surface-raised shadow-raised p-ds-05b",
|
|
221
|
-
y && `border-l-[3px] ${
|
|
222
|
-
|
|
220
|
+
y && `border-l-[3px] ${S[y]}`,
|
|
221
|
+
I && "cursor-pointer hover:shadow-raised-hover hover:border-surface-border-strong transition-[box-shadow,border-color] duration-fast-02 ease-productive-standard group",
|
|
223
222
|
d
|
|
224
223
|
);
|
|
225
224
|
return $ ? /* @__PURE__ */ e(
|
|
226
|
-
|
|
225
|
+
P,
|
|
227
226
|
{
|
|
228
227
|
ref: k,
|
|
229
228
|
href: $,
|
|
230
|
-
onClick:
|
|
231
|
-
className:
|
|
232
|
-
"aria-label":
|
|
233
|
-
...
|
|
234
|
-
children:
|
|
229
|
+
onClick: m,
|
|
230
|
+
className: f(j, "block no-underline"),
|
|
231
|
+
"aria-label": M,
|
|
232
|
+
...h,
|
|
233
|
+
children: D
|
|
235
234
|
}
|
|
236
235
|
) : /* @__PURE__ */ e(
|
|
237
236
|
"div",
|
|
238
237
|
{
|
|
239
238
|
ref: k,
|
|
240
239
|
className: j,
|
|
241
|
-
onClick:
|
|
242
|
-
role:
|
|
243
|
-
tabIndex:
|
|
244
|
-
"aria-label":
|
|
245
|
-
onKeyDown:
|
|
246
|
-
(C.key === "Enter" || C.key === " ") && (C.preventDefault(),
|
|
240
|
+
onClick: m,
|
|
241
|
+
role: m ? "button" : void 0,
|
|
242
|
+
tabIndex: m ? 0 : void 0,
|
|
243
|
+
"aria-label": M,
|
|
244
|
+
onKeyDown: m ? (C) => {
|
|
245
|
+
(C.key === "Enter" || C.key === " ") && (C.preventDefault(), m());
|
|
247
246
|
} : void 0,
|
|
248
|
-
...
|
|
249
|
-
children:
|
|
247
|
+
...h,
|
|
248
|
+
children: D
|
|
250
249
|
}
|
|
251
250
|
);
|
|
252
251
|
}
|