@devalok/shilp-sutra 0.22.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/tree-view.js +26 -26
- package/dist/_chunks/use-calendar.js +106 -106
- package/dist/composed/activity-feed.js +10 -10
- package/dist/composed/avatar-group.js +74 -75
- package/dist/composed/command-palette.js +8 -8
- package/dist/composed/content-card.js +10 -10
- package/dist/composed/empty-state.js +6 -6
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/loading-skeleton.js +83 -83
- package/dist/composed/member-picker.js +6 -6
- package/dist/composed/page-skeletons.js +5 -5
- package/dist/composed/rich-text-editor.js +63 -63
- package/dist/composed/schedule-view.js +26 -26
- package/dist/composed/status-badge.js +8 -8
- package/dist/shell/bottom-navbar.js +4 -4
- package/dist/shell/notification-center.js +29 -29
- package/dist/shell/notification-preferences.js +2 -2
- package/dist/shell/sidebar.js +6 -6
- package/dist/shell/top-bar.js +71 -71
- package/dist/tailwind/index.cjs +33 -11
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +33 -11
- package/dist/tokens/primitives.css +2 -0
- package/dist/tokens/semantic.css +83 -14
- package/dist/tokens/typography.css +1 -1
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/alert-dialog.js +32 -32
- package/dist/ui/alert.js +12 -12
- package/dist/ui/autocomplete.js +16 -16
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +81 -74
- package/dist/ui/badge.js +2 -2
- package/dist/ui/banner.js +1 -1
- package/dist/ui/button.js +8 -8
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/card.js +10 -10
- package/dist/ui/charts/index.js +312 -312
- package/dist/ui/checkbox.js +3 -3
- package/dist/ui/chip.js +4 -4
- package/dist/ui/code.js +2 -2
- package/dist/ui/color-input.js +1 -1
- package/dist/ui/combobox.js +37 -37
- package/dist/ui/context-menu.js +6 -6
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +132 -132
- package/dist/ui/dialog.js +12 -12
- package/dist/ui/dropdown-menu.js +67 -67
- package/dist/ui/file-upload.js +3 -3
- package/dist/ui/hover-card.js +13 -13
- package/dist/ui/input-otp.js +9 -9
- package/dist/ui/input.js +10 -10
- package/dist/ui/menubar.js +33 -33
- package/dist/ui/navigation-menu.js +52 -52
- package/dist/ui/number-input.js +14 -14
- package/dist/ui/pagination.js +25 -25
- package/dist/ui/popover.js +17 -17
- package/dist/ui/progress.js +1 -1
- package/dist/ui/radio.js +2 -2
- package/dist/ui/search-input.js +3 -3
- package/dist/ui/segmented-control.d.ts +1 -1
- package/dist/ui/segmented-control.js +16 -16
- package/dist/ui/select.js +17 -17
- package/dist/ui/sheet.js +21 -21
- package/dist/ui/sidebar.js +13 -13
- package/dist/ui/slider.js +2 -2
- package/dist/ui/stat-card.js +52 -52
- package/dist/ui/stepper.js +1 -1
- package/dist/ui/switch.js +11 -11
- package/dist/ui/table.js +19 -19
- package/dist/ui/tabs.js +2 -2
- package/dist/ui/textarea.js +6 -6
- package/dist/ui/toast.js +3 -3
- package/dist/ui/toggle.js +7 -7
- package/dist/ui/tooltip.js +17 -17
- package/docs/components/composed/avatar-group.md +5 -0
- package/docs/components/ui/avatar.md +4 -0
- package/llms-full.txt +10 -1
- package/llms.txt +66 -5
- package/package.json +1 -1
|
@@ -23,12 +23,12 @@ const z = {
|
|
|
23
23
|
older: "Older"
|
|
24
24
|
};
|
|
25
25
|
function G(e, a) {
|
|
26
|
-
const d = { ...B, ...a }, o = /* @__PURE__ */ new Date(), c = new Date(o.getFullYear(), o.getMonth(), o.getDate()), n = new Date(c.getTime() - 24 * 60 * 60 * 1e3), r = o.getDay(),
|
|
27
|
-
c.getTime() -
|
|
26
|
+
const d = { ...B, ...a }, o = /* @__PURE__ */ new Date(), c = new Date(o.getFullYear(), o.getMonth(), o.getDate()), n = new Date(c.getTime() - 24 * 60 * 60 * 1e3), r = o.getDay(), b = r === 0 ? 6 : r - 1, y = new Date(
|
|
27
|
+
c.getTime() - b * 24 * 60 * 60 * 1e3
|
|
28
28
|
), f = [], m = [], u = [], g = [];
|
|
29
29
|
for (const l of e) {
|
|
30
30
|
const x = (typeof l.timestamp == "string" ? new Date(l.timestamp) : l.timestamp).getTime();
|
|
31
|
-
x >= c.getTime() ? f.push(l) : x >= n.getTime() ? m.push(l) : x >=
|
|
31
|
+
x >= c.getTime() ? f.push(l) : x >= n.getTime() ? m.push(l) : x >= y.getTime() ? u.push(l) : g.push(l);
|
|
32
32
|
}
|
|
33
33
|
const h = [];
|
|
34
34
|
return f.length > 0 && h.push({ label: d.today, items: f }), m.length > 0 && h.push({ label: d.yesterday, items: m }), u.length > 0 && h.push({ label: d.thisWeek, items: u }), g.length > 0 && h.push({ label: d.older, items: g }), h;
|
|
@@ -53,7 +53,7 @@ function O({
|
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
className: i(
|
|
56
|
-
"relative z-10 mt-1.5 h-2 w-2 shrink-0 rounded-ds-full ring-2 ring-surface-
|
|
56
|
+
"relative z-10 mt-1.5 h-2 w-2 shrink-0 rounded-ds-full ring-2 ring-surface-base",
|
|
57
57
|
z[c]
|
|
58
58
|
)
|
|
59
59
|
}
|
|
@@ -75,7 +75,7 @@ function O({
|
|
|
75
75
|
{
|
|
76
76
|
className: i(
|
|
77
77
|
"text-surface-fg-muted",
|
|
78
|
-
e.detail && "cursor-pointer hover:underline hover:bg-surface-
|
|
78
|
+
e.detail && "cursor-pointer hover:underline hover:bg-surface-raised rounded-ds-md"
|
|
79
79
|
),
|
|
80
80
|
onClick: n,
|
|
81
81
|
role: e.detail ? "button" : void 0,
|
|
@@ -120,7 +120,7 @@ function Y({
|
|
|
120
120
|
),
|
|
121
121
|
children: [
|
|
122
122
|
/* @__PURE__ */ t("hr", { className: "flex-1 border-surface-border" }),
|
|
123
|
-
/* @__PURE__ */ t("span", { className: "bg-surface-
|
|
123
|
+
/* @__PURE__ */ t("span", { className: "bg-surface-base px-ds-03 text-ds-xs font-medium uppercase tracking-wider text-surface-fg-subtle", children: e }),
|
|
124
124
|
/* @__PURE__ */ t("hr", { className: "flex-1 border-surface-border" })
|
|
125
125
|
]
|
|
126
126
|
}
|
|
@@ -135,8 +135,8 @@ const M = k.forwardRef(
|
|
|
135
135
|
emptyState: c,
|
|
136
136
|
compact: n = !1,
|
|
137
137
|
maxInitialItems: r,
|
|
138
|
-
groupBy:
|
|
139
|
-
groupLabels:
|
|
138
|
+
groupBy: b = "none",
|
|
139
|
+
groupLabels: y,
|
|
140
140
|
className: f,
|
|
141
141
|
...m
|
|
142
142
|
}, u) => {
|
|
@@ -145,9 +145,9 @@ const M = k.forwardRef(
|
|
|
145
145
|
return /* @__PURE__ */ t("div", { ref: u, className: i("relative", f), ...m, children: /* @__PURE__ */ t(I, { compact: n }) });
|
|
146
146
|
if (e.length === 0)
|
|
147
147
|
return c ? /* @__PURE__ */ t("div", { ref: u, className: f, ...m, children: c }) : null;
|
|
148
|
-
const l = r != null && !g && e.length > r, w = l ? e.slice(0, r) : e, x =
|
|
148
|
+
const l = r != null && !g && e.length > r, w = l ? e.slice(0, r) : e, x = b === "time";
|
|
149
149
|
return /* @__PURE__ */ s("div", { ref: u, className: i("relative", f), ...m, children: [
|
|
150
|
-
x ? /* @__PURE__ */ t("div", { children: G(w,
|
|
150
|
+
x ? /* @__PURE__ */ t("div", { children: G(w, y).map((p, N) => /* @__PURE__ */ s("div", { children: [
|
|
151
151
|
/* @__PURE__ */ t(Y, { label: p.label, isFirst: N === 0 }),
|
|
152
152
|
/* @__PURE__ */ s("div", { className: i("relative flex flex-col", n ? "gap-1" : "gap-3"), children: [
|
|
153
153
|
/* @__PURE__ */ t("div", { className: "absolute bottom-0 left-[3px] top-0 w-px bg-surface-border" }),
|
|
@@ -1,112 +1,111 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import * as v from "react";
|
|
4
4
|
import { ag as $ } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { cn as o } from "../ui/lib/utils.js";
|
|
6
6
|
import { Avatar as E, AvatarImage as F, AvatarFallback as G } from "../ui/avatar.js";
|
|
7
|
-
import { TooltipProvider as H, Tooltip as
|
|
7
|
+
import { TooltipProvider as H, Tooltip as x, TooltipTrigger as y, TooltipContent as N } from "../ui/tooltip.js";
|
|
8
8
|
import { getInitials as B } from "./lib/string-utils.js";
|
|
9
|
-
const
|
|
10
|
-
lead: "ring-2 ring-accent-7 ring-offset-1 ring-offset-surface-
|
|
11
|
-
admin: "ring-2 ring-warning-7 ring-offset-1 ring-offset-surface-
|
|
12
|
-
client: "ring-2 ring-info-7 ring-offset-1 ring-offset-surface-
|
|
13
|
-
},
|
|
9
|
+
const w = {
|
|
10
|
+
lead: "ring-2 ring-accent-7 ring-offset-1 ring-offset-surface-raised",
|
|
11
|
+
admin: "ring-2 ring-warning-7 ring-offset-1 ring-offset-surface-raised",
|
|
12
|
+
client: "ring-2 ring-info-7 ring-offset-1 ring-offset-surface-raised"
|
|
13
|
+
}, I = $(
|
|
14
14
|
"shrink-0 overflow-hidden rounded-ds-full border-2",
|
|
15
15
|
{
|
|
16
16
|
variants: {
|
|
17
17
|
size: {
|
|
18
|
-
xs: "h-ds-xs w-ds-xs
|
|
19
|
-
sm: "h-ds-sm w-ds-sm
|
|
20
|
-
md: "h-ds-md w-ds-md
|
|
21
|
-
lg: "h-ds-lg w-ds-lg
|
|
22
|
-
xl: "h-ds-xl w-ds-xl
|
|
18
|
+
xs: "h-ds-xs w-ds-xs",
|
|
19
|
+
sm: "h-ds-sm w-ds-sm",
|
|
20
|
+
md: "h-ds-md w-ds-md",
|
|
21
|
+
lg: "h-ds-lg w-ds-lg",
|
|
22
|
+
xl: "h-ds-xl w-ds-xl"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
defaultVariants: {
|
|
26
26
|
size: "md"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
), L =
|
|
29
|
+
), L = v.forwardRef(
|
|
30
30
|
({
|
|
31
31
|
users: l,
|
|
32
|
-
max:
|
|
33
|
-
size:
|
|
32
|
+
max: m = 4,
|
|
33
|
+
size: n,
|
|
34
34
|
showTooltip: M = !0,
|
|
35
35
|
borderColor: T = "surface-2",
|
|
36
|
-
onOverflowClick:
|
|
37
|
-
renderAvatar:
|
|
38
|
-
expandDirection:
|
|
39
|
-
expandAmount:
|
|
36
|
+
onOverflowClick: p,
|
|
37
|
+
renderAvatar: h,
|
|
38
|
+
expandDirection: z = "right",
|
|
39
|
+
expandAmount: C = "default",
|
|
40
40
|
className: S,
|
|
41
41
|
...j
|
|
42
|
-
},
|
|
43
|
-
const
|
|
42
|
+
}, k) => {
|
|
43
|
+
const a = l.slice(0, m), i = l.length - m, c = {
|
|
44
44
|
xs: "-ml-ds-02",
|
|
45
45
|
sm: "-ml-ds-02b",
|
|
46
46
|
md: "-ml-ds-03",
|
|
47
47
|
lg: "-ml-ds-04",
|
|
48
48
|
xl: "-ml-ds-05"
|
|
49
|
-
}[
|
|
49
|
+
}[n ?? "md"], g = T === "surface-1" ? "border-surface-base" : "border-surface-raised", [A, d] = v.useState(!1), P = {
|
|
50
50
|
xs: 8,
|
|
51
51
|
sm: 10,
|
|
52
52
|
md: 12,
|
|
53
53
|
lg: 16,
|
|
54
54
|
xl: 20
|
|
55
|
-
}[
|
|
56
|
-
function
|
|
57
|
-
if (!
|
|
58
|
-
const
|
|
59
|
-
return
|
|
55
|
+
}[n ?? "md"], R = { compact: 0.5, default: 1, wide: 1.5 }[C], V = a.length + (i > 0 ? 1 : 0);
|
|
56
|
+
function f(e) {
|
|
57
|
+
if (!A) return "translateX(0)";
|
|
58
|
+
const r = P * R;
|
|
59
|
+
return z === "left" ? `translateX(-${(V - 1 - e) * r}px)` : `translateX(${e * r}px)`;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
const u = "transition-[transform,opacity] duration-300 ease-out hover:z-50 hover:scale-105 group-hover:[&:not(:hover)]:opacity-85";
|
|
62
|
+
return /* @__PURE__ */ t(H, { children: /* @__PURE__ */ s(
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
|
-
ref:
|
|
65
|
+
ref: k,
|
|
66
66
|
role: "group",
|
|
67
67
|
"aria-label": `${l.length} team members`,
|
|
68
68
|
tabIndex: 0,
|
|
69
69
|
className: o("group flex items-center", S),
|
|
70
|
-
onMouseEnter: () =>
|
|
71
|
-
onMouseLeave: () =>
|
|
72
|
-
onFocus: () =>
|
|
70
|
+
onMouseEnter: () => d(!0),
|
|
71
|
+
onMouseLeave: () => d(!1),
|
|
72
|
+
onFocus: () => d(!0),
|
|
73
73
|
onBlur: (e) => {
|
|
74
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
74
|
+
e.currentTarget.contains(e.relatedTarget) || d(!1);
|
|
75
75
|
},
|
|
76
76
|
...j,
|
|
77
77
|
children: [
|
|
78
|
-
|
|
78
|
+
a.map((e, r) => {
|
|
79
79
|
const X = B(e.name);
|
|
80
|
-
if (
|
|
81
|
-
return /* @__PURE__ */
|
|
80
|
+
if (h)
|
|
81
|
+
return /* @__PURE__ */ t(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
className: o(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
e.ring && e.ring !== "none" && I[e.ring]
|
|
85
|
+
"shrink-0",
|
|
86
|
+
r > 0 && c,
|
|
87
|
+
u,
|
|
88
|
+
e.ring && e.ring !== "none" && w[e.ring]
|
|
90
89
|
),
|
|
91
|
-
style: { zIndex:
|
|
92
|
-
children:
|
|
90
|
+
style: { zIndex: a.length - r, transform: f(r) },
|
|
91
|
+
children: h(e, r)
|
|
93
92
|
},
|
|
94
93
|
e.name
|
|
95
94
|
);
|
|
96
|
-
const
|
|
95
|
+
const b = /* @__PURE__ */ s(
|
|
97
96
|
E,
|
|
98
97
|
{
|
|
98
|
+
size: n,
|
|
99
99
|
className: o(
|
|
100
|
-
g
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
e.ring && e.ring !== "none" && I[e.ring]
|
|
100
|
+
g,
|
|
101
|
+
r > 0 && c,
|
|
102
|
+
u,
|
|
103
|
+
e.ring && e.ring !== "none" && w[e.ring]
|
|
105
104
|
),
|
|
106
|
-
style: { zIndex:
|
|
105
|
+
style: { zIndex: a.length - r, transform: f(r) },
|
|
107
106
|
children: [
|
|
108
|
-
e.image && /* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
107
|
+
e.image && /* @__PURE__ */ t(F, { src: e.image, alt: e.name }),
|
|
108
|
+
/* @__PURE__ */ t(
|
|
110
109
|
G,
|
|
111
110
|
{
|
|
112
111
|
className: "font-body font-semibold",
|
|
@@ -118,60 +117,60 @@ const I = {
|
|
|
118
117
|
},
|
|
119
118
|
e.name
|
|
120
119
|
);
|
|
121
|
-
return M ? /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
120
|
+
return M ? /* @__PURE__ */ s(x, { children: [
|
|
121
|
+
/* @__PURE__ */ t(y, { asChild: !0, children: b }),
|
|
122
|
+
/* @__PURE__ */ t(
|
|
123
|
+
N,
|
|
125
124
|
{
|
|
126
|
-
className: "border-surface-border-strong bg-surface-
|
|
125
|
+
className: "border-surface-border-strong bg-surface-base text-surface-fg",
|
|
127
126
|
sideOffset: 6,
|
|
128
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ t("p", { className: "text-ds-sm", children: e.name })
|
|
129
128
|
}
|
|
130
129
|
)
|
|
131
|
-
] }, e.name) :
|
|
130
|
+
] }, e.name) : b;
|
|
132
131
|
}),
|
|
133
|
-
i > 0 && /* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
132
|
+
i > 0 && /* @__PURE__ */ s(x, { children: [
|
|
133
|
+
/* @__PURE__ */ t(y, { asChild: !0, children: p ? /* @__PURE__ */ s(
|
|
135
134
|
"button",
|
|
136
135
|
{
|
|
137
136
|
type: "button",
|
|
138
|
-
onClick:
|
|
137
|
+
onClick: p,
|
|
139
138
|
className: o(
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
I({ size: n }),
|
|
140
|
+
g,
|
|
142
141
|
c,
|
|
143
142
|
"flex cursor-pointer items-center justify-center bg-accent-2 font-body font-semibold text-accent-11",
|
|
144
143
|
"hover:scale-105 hover:bg-accent-3 transition-[transform,background-color] duration-300 ease-out"
|
|
145
144
|
),
|
|
146
|
-
style: { zIndex: 0, transform:
|
|
145
|
+
style: { zIndex: 0, transform: f(a.length) },
|
|
147
146
|
children: [
|
|
148
147
|
"+",
|
|
149
148
|
i
|
|
150
149
|
]
|
|
151
150
|
}
|
|
152
|
-
) : /* @__PURE__ */
|
|
151
|
+
) : /* @__PURE__ */ s(
|
|
153
152
|
"div",
|
|
154
153
|
{
|
|
155
154
|
className: o(
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
I({ size: n }),
|
|
156
|
+
g,
|
|
158
157
|
c,
|
|
159
158
|
"flex cursor-default items-center justify-center bg-accent-2 font-body font-semibold text-accent-11",
|
|
160
159
|
"transition-[transform,opacity] duration-300 ease-out"
|
|
161
160
|
),
|
|
162
|
-
style: { zIndex: 0, transform:
|
|
161
|
+
style: { zIndex: 0, transform: f(a.length) },
|
|
163
162
|
children: [
|
|
164
163
|
"+",
|
|
165
164
|
i
|
|
166
165
|
]
|
|
167
166
|
}
|
|
168
167
|
) }),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
168
|
+
/* @__PURE__ */ t(
|
|
169
|
+
N,
|
|
171
170
|
{
|
|
172
|
-
className: "border-surface-border-strong bg-surface-
|
|
171
|
+
className: "border-surface-border-strong bg-surface-base text-surface-fg",
|
|
173
172
|
sideOffset: 6,
|
|
174
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-ds-01", children: l.slice(m).map((e, r) => /* @__PURE__ */ t("p", { className: "text-ds-sm", children: e.name }, r)) })
|
|
175
174
|
}
|
|
176
175
|
)
|
|
177
176
|
] })
|
|
@@ -100,7 +100,7 @@ const H = n.forwardRef(
|
|
|
100
100
|
...E,
|
|
101
101
|
className: p(
|
|
102
102
|
"fixed left-1/2 top-[20%] z-modal w-full max-w-[560px] -translate-x-1/2",
|
|
103
|
-
"overflow-hidden rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
103
|
+
"overflow-hidden rounded-ds-xl border border-surface-border-strong bg-surface-overlay shadow-overlay",
|
|
104
104
|
"duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
105
105
|
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
106
106
|
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
@@ -152,7 +152,7 @@ const H = n.forwardRef(
|
|
|
152
152
|
spellCheck: !1
|
|
153
153
|
}
|
|
154
154
|
),
|
|
155
|
-
/* @__PURE__ */ t("kbd", { className: "hidden shrink-0 select-none rounded-ds-md border border-surface-border-strong bg-surface-
|
|
155
|
+
/* @__PURE__ */ t("kbd", { className: "hidden shrink-0 select-none rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b py-ds-01 text-ds-sm font-medium text-surface-fg-subtle shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)] sm:inline-flex", children: "Esc" })
|
|
156
156
|
] }),
|
|
157
157
|
/* @__PURE__ */ r(
|
|
158
158
|
"div",
|
|
@@ -201,7 +201,7 @@ const H = n.forwardRef(
|
|
|
201
201
|
onMouseEnter: () => f(o),
|
|
202
202
|
className: p(
|
|
203
203
|
"flex w-full items-center gap-ds-04 rounded-ds-lg px-ds-03 py-ds-03 text-left transition-[color,background-color] duration-fast-02 ease-productive-standard",
|
|
204
|
-
u ? "bg-surface-
|
|
204
|
+
u ? "bg-surface-raised-hover text-surface-fg" : "text-surface-fg-muted hover:bg-surface-raised"
|
|
205
205
|
),
|
|
206
206
|
children: [
|
|
207
207
|
a.icon && /* @__PURE__ */ t(
|
|
@@ -221,7 +221,7 @@ const H = n.forwardRef(
|
|
|
221
221
|
] }),
|
|
222
222
|
a.shortcut && /* @__PURE__ */ t("kbd", { className: p(
|
|
223
223
|
"shrink-0 rounded border border-surface-border-strong px-ds-02b py-ds-01 text-ds-xs font-medium shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)] transition-colors duration-fast-02 ease-productive-standard",
|
|
224
|
-
u ? "bg-accent-2 text-accent-11 border-accent-6" : "bg-surface-
|
|
224
|
+
u ? "bg-accent-2 text-accent-11 border-accent-6" : "bg-surface-raised text-surface-fg-subtle"
|
|
225
225
|
), children: a.shortcut }),
|
|
226
226
|
/* @__PURE__ */ t(G, { children: u && /* @__PURE__ */ t(
|
|
227
227
|
c.span,
|
|
@@ -262,17 +262,17 @@ const H = n.forwardRef(
|
|
|
262
262
|
children: [
|
|
263
263
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
|
|
264
264
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-01", children: [
|
|
265
|
-
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-
|
|
266
|
-
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-
|
|
265
|
+
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(U, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) }),
|
|
266
|
+
/* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-raised shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(V, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) })
|
|
267
267
|
] }),
|
|
268
268
|
/* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: "Navigate" })
|
|
269
269
|
] }),
|
|
270
270
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
|
|
271
|
-
/* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-
|
|
271
|
+
/* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(C, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) }),
|
|
272
272
|
/* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: "Select" })
|
|
273
273
|
] }),
|
|
274
274
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
|
|
275
|
-
/* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-
|
|
275
|
+
/* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-raised px-ds-02b text-ds-xs font-medium text-surface-fg-subtle shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: "Esc" }),
|
|
276
276
|
/* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: "Close" })
|
|
277
277
|
] })
|
|
278
278
|
]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
3
|
import { ag as h } from "../_chunks/vendor-utils.js";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as d } from "../ui/lib/utils.js";
|
|
5
5
|
const v = h(
|
|
6
6
|
"rounded-ds-lg will-change-[box-shadow] transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
default: "border border-surface-border-strong bg-surface-
|
|
10
|
+
default: "border border-surface-border-strong bg-surface-raised shadow-raised hover:shadow-raised-hover",
|
|
11
11
|
outline: "border border-surface-border bg-transparent hover:border-surface-border-strong",
|
|
12
|
-
ghost: "border border-transparent bg-transparent hover:bg-surface-
|
|
12
|
+
ghost: "border border-transparent bg-transparent hover:bg-surface-raised"
|
|
13
13
|
},
|
|
14
14
|
padding: {
|
|
15
15
|
default: "p-ds-05b",
|
|
@@ -46,19 +46,19 @@ const v = h(
|
|
|
46
46
|
variant: r,
|
|
47
47
|
padding: s,
|
|
48
48
|
header: c,
|
|
49
|
-
headerTitle:
|
|
49
|
+
headerTitle: t,
|
|
50
50
|
headerActions: o,
|
|
51
51
|
footer: a,
|
|
52
52
|
className: u,
|
|
53
53
|
children: p,
|
|
54
54
|
...l
|
|
55
55
|
}, f) => {
|
|
56
|
-
const n = c ||
|
|
56
|
+
const n = c || t || o;
|
|
57
57
|
return /* @__PURE__ */ i(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
60
|
ref: f,
|
|
61
|
-
className:
|
|
61
|
+
className: d(
|
|
62
62
|
v({ variant: r, padding: n || a ? "none" : s }),
|
|
63
63
|
u
|
|
64
64
|
),
|
|
@@ -67,12 +67,12 @@ const v = h(
|
|
|
67
67
|
n && /* @__PURE__ */ e(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
|
-
className:
|
|
70
|
+
className: d(
|
|
71
71
|
"flex items-center justify-between border-b border-surface-border-strong",
|
|
72
72
|
b(s)
|
|
73
73
|
),
|
|
74
74
|
children: c ?? /* @__PURE__ */ i(m, { children: [
|
|
75
|
-
|
|
75
|
+
t && /* @__PURE__ */ e("h3", { className: "text-ds-base font-semibold text-surface-fg", children: t }),
|
|
76
76
|
o && /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03", children: o })
|
|
77
77
|
] })
|
|
78
78
|
}
|
|
@@ -80,7 +80,7 @@ const v = h(
|
|
|
80
80
|
/* @__PURE__ */ e(
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
83
|
-
className:
|
|
83
|
+
className: d(
|
|
84
84
|
(n || a) && x(s)
|
|
85
85
|
),
|
|
86
86
|
children: p
|
|
@@ -89,7 +89,7 @@ const v = h(
|
|
|
89
89
|
a && /* @__PURE__ */ e(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
|
-
className:
|
|
92
|
+
className: d(
|
|
93
93
|
"border-t border-surface-border-strong",
|
|
94
94
|
b(s)
|
|
95
95
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, jsxs as
|
|
2
|
+
import { jsx as s, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import { tweens as g } from "../ui/lib/motion.js";
|
|
5
5
|
import { cn as t } from "../ui/lib/utils.js";
|
|
@@ -29,7 +29,7 @@ const y = ({ className: e }) => /* @__PURE__ */ s(
|
|
|
29
29
|
sm: "h-ico-sm w-ico-sm",
|
|
30
30
|
md: "h-ico-lg w-ico-lg",
|
|
31
31
|
lg: "h-ico-xl w-ico-xl"
|
|
32
|
-
}[f ?? (c ? "sm" : "md")],
|
|
32
|
+
}[f ?? (c ? "sm" : "md")], r = e != null && !l.isValidElement(e) && (typeof e == "function" || typeof e == "object" && "$$typeof" in e), h = e ? r ? l.createElement(e, {
|
|
33
33
|
className: t("text-surface-fg-subtle", a)
|
|
34
34
|
}) : e : /* @__PURE__ */ s(
|
|
35
35
|
y,
|
|
@@ -37,7 +37,7 @@ const y = ({ className: e }) => /* @__PURE__ */ s(
|
|
|
37
37
|
className: t("text-surface-fg-subtle", a)
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ o(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
ref: u,
|
|
@@ -52,16 +52,16 @@ const y = ({ className: e }) => /* @__PURE__ */ s(
|
|
|
52
52
|
n.div,
|
|
53
53
|
{
|
|
54
54
|
className: t(
|
|
55
|
-
"flex items-center justify-center rounded-ds-xl bg-surface-
|
|
55
|
+
"flex items-center justify-center rounded-ds-xl bg-surface-raised",
|
|
56
56
|
c ? "h-ds-md w-ds-md" : "h-ds-lg w-ds-lg",
|
|
57
|
-
!
|
|
57
|
+
!r && e != null && a
|
|
58
58
|
),
|
|
59
59
|
animate: { y: [0, -4, 0] },
|
|
60
60
|
transition: { repeat: 1 / 0, duration: 3, ease: "easeInOut" },
|
|
61
61
|
children: h
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ o(
|
|
65
65
|
n.div,
|
|
66
66
|
{
|
|
67
67
|
className: "flex max-w-[280px] flex-col gap-ds-02",
|
|
@@ -66,7 +66,7 @@ const k = p.forwardRef(
|
|
|
66
66
|
return /* @__PURE__ */ t("div", { ref: f, ...d, className: o("flex min-h-[60vh] items-center justify-center p-ds-05", l), children: /* @__PURE__ */ r(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
className: "flex w-full max-w-lg flex-col items-center gap-ds-06 rounded-ds-xl border border-surface-border-strong bg-surface-
|
|
69
|
+
className: "flex w-full max-w-lg flex-col items-center gap-ds-06 rounded-ds-xl border border-surface-border-strong bg-surface-raised p-ds-07 text-center shadow-raised",
|
|
70
70
|
children: [
|
|
71
71
|
/* @__PURE__ */ t(
|
|
72
72
|
"div",
|
|
@@ -100,7 +100,7 @@ const k = p.forwardRef(
|
|
|
100
100
|
children: "Try Again"
|
|
101
101
|
}
|
|
102
102
|
) }),
|
|
103
|
-
m && c && /* @__PURE__ */ r("div", { className: "w-full overflow-auto rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
103
|
+
m && c && /* @__PURE__ */ r("div", { className: "w-full overflow-auto rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-05 text-left", children: [
|
|
104
104
|
/* @__PURE__ */ t("p", { className: "text-ds-sm mb-ds-03 font-semibold text-surface-fg", children: "Stack Trace (development only)" }),
|
|
105
105
|
/* @__PURE__ */ t("pre", { className: "whitespace-pre-wrap text-ds-sm text-surface-fg-subtle", children: c })
|
|
106
106
|
] })
|