@devalok/shilp-sutra 0.28.0 → 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 +5 -5
- 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 +73 -73
- 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.js +134 -134
- 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/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 +28 -28
- 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/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/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/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 +41 -27
- 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.js +4 -4
- package/dist/ui/tooltip.js +40 -40
- 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/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 +666 -40
- package/llms.txt +37 -18
- package/package.json +7 -2
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as l from "react";
|
|
4
4
|
import { cn as D } from "../ui/lib/utils.js";
|
|
5
|
-
import { motionProps as
|
|
6
|
-
import { IconClock as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
5
|
+
import { motionProps as O } from "../ui/lib/motion.js";
|
|
6
|
+
import { IconClock as b } from "@tabler/icons-react";
|
|
7
|
+
import { Icon as g } from "../ui/icon.js";
|
|
8
|
+
import { SimpleTooltip as M } from "./simple-tooltip.js";
|
|
9
|
+
import { m as S } from "../_chunks/framer.js";
|
|
10
|
+
function j(t) {
|
|
10
11
|
const e = Math.abs(t), n = t < 0 ? "Overdue by " : "", r = t >= 0 ? " left" : "";
|
|
11
12
|
return e < 1 ? t < 0 ? "Overdue" : "Due now" : e < 60 ? `${n}${Math.round(e)}m${r}` : e < 1440 ? `${n}${Math.round(e / 60)}h${r}` : `${n}${Math.round(e / 1440)}d${r}`;
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function z(t) {
|
|
14
15
|
return t.toLocaleDateString(void 0, {
|
|
15
16
|
month: "short",
|
|
16
17
|
day: "numeric",
|
|
@@ -18,7 +19,7 @@ function j(t) {
|
|
|
18
19
|
minute: "2-digit"
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function R({
|
|
22
23
|
deadline: t,
|
|
23
24
|
warningThreshold: e = 1440,
|
|
24
25
|
criticalThreshold: n = 240,
|
|
@@ -28,48 +29,48 @@ function E({
|
|
|
28
29
|
className: u,
|
|
29
30
|
...d
|
|
30
31
|
}) {
|
|
31
|
-
const [,
|
|
32
|
-
|
|
32
|
+
const [, w] = l.useReducer((s) => s + 1, 0);
|
|
33
|
+
l.useEffect(() => {
|
|
33
34
|
if (!a) return;
|
|
34
|
-
const
|
|
35
|
-
return () => clearInterval(
|
|
35
|
+
const s = setInterval(w, a);
|
|
36
|
+
return () => clearInterval(s);
|
|
36
37
|
}, [a]);
|
|
37
|
-
const
|
|
38
|
+
const f = l.useMemo(
|
|
38
39
|
() => t instanceof Date ? t : new Date(t),
|
|
39
40
|
[t]
|
|
40
|
-
), o = (
|
|
41
|
-
let
|
|
42
|
-
o <= 0 ?
|
|
43
|
-
const p = r === "relative" ?
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
|
|
41
|
+
), o = (f.getTime() - Date.now()) / 6e4;
|
|
42
|
+
let i;
|
|
43
|
+
o <= 0 ? i = "text-error-11 font-semibold" : o <= n ? i = "text-error-11" : o <= e ? i = "text-warning-11" : i = "text-success-11";
|
|
44
|
+
const p = r === "relative" ? j(o) : z(f), y = o <= 0, C = o <= n && o > 0, I = y || C, x = r === "relative", h = f.toLocaleString();
|
|
45
|
+
if (I) {
|
|
46
|
+
const s = /* @__PURE__ */ v(
|
|
47
|
+
S.span,
|
|
47
48
|
{
|
|
48
|
-
className: D("inline-flex items-center gap-ds-01 font-sans text-ds-sm",
|
|
49
|
+
className: D("inline-flex items-center gap-ds-01 font-sans text-ds-sm", i, u),
|
|
49
50
|
animate: { opacity: [1, 0.7, 1] },
|
|
50
51
|
transition: { duration: 2, repeat: 1 / 0 },
|
|
51
|
-
...
|
|
52
|
+
...O(d),
|
|
52
53
|
children: [
|
|
53
|
-
m && /* @__PURE__ */ c(
|
|
54
|
+
m && /* @__PURE__ */ c(g, { icon: b, size: "xs" }),
|
|
54
55
|
p
|
|
55
56
|
]
|
|
56
57
|
}
|
|
57
58
|
);
|
|
58
|
-
return x ? /* @__PURE__ */ c(
|
|
59
|
+
return x ? /* @__PURE__ */ c(M, { content: h, children: s }) : s;
|
|
59
60
|
}
|
|
60
61
|
const $ = /* @__PURE__ */ v(
|
|
61
62
|
"span",
|
|
62
63
|
{
|
|
63
|
-
className: D("inline-flex items-center gap-ds-01 font-sans text-ds-sm",
|
|
64
|
+
className: D("inline-flex items-center gap-ds-01 font-sans text-ds-sm", i, u),
|
|
64
65
|
...d,
|
|
65
66
|
children: [
|
|
66
|
-
m && /* @__PURE__ */ c(
|
|
67
|
+
m && /* @__PURE__ */ c(g, { icon: b, size: "xs" }),
|
|
67
68
|
p
|
|
68
69
|
]
|
|
69
70
|
}
|
|
70
71
|
);
|
|
71
|
-
return x ? /* @__PURE__ */ c(
|
|
72
|
+
return x ? /* @__PURE__ */ c(M, { content: h, children: $ }) : $;
|
|
72
73
|
}
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
R as DeadlineIndicator
|
|
75
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../src/composed/error-boundary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../src/composed/error-boundary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC9E,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAmFD,QAAA,MAAM,YAAY,0FA2EjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { IconAlertTriangle as x, IconServerOff as b, IconBan as h, IconFileUnknown as v } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { Icon as y } from "../ui/icon.js";
|
|
6
|
+
import { Button as w } from "../ui/button.js";
|
|
7
|
+
import { cn as c } from "../ui/lib/utils.js";
|
|
8
|
+
function N(e) {
|
|
8
9
|
if (e && typeof e == "object" && "status" in e && typeof e.status == "number")
|
|
9
10
|
return e.status;
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
+
function C(e) {
|
|
12
13
|
if (e instanceof Error)
|
|
13
14
|
return e.message;
|
|
14
15
|
if (e && typeof e == "object" && "data" in e) {
|
|
@@ -20,11 +21,11 @@ function N(e) {
|
|
|
20
21
|
if (typeof e == "string")
|
|
21
22
|
return e;
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function E(e) {
|
|
24
25
|
if (e instanceof Error)
|
|
25
26
|
return e.stack;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function k(e) {
|
|
28
29
|
switch (e) {
|
|
29
30
|
case 404:
|
|
30
31
|
return {
|
|
@@ -60,10 +61,10 @@ function E(e) {
|
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
const
|
|
64
|
-
function({ error: s, onReset:
|
|
65
|
-
const
|
|
66
|
-
return /* @__PURE__ */ t("div", { ref: f, ...d, className:
|
|
64
|
+
const S = p.forwardRef(
|
|
65
|
+
function({ error: s, onReset: a, className: l, ...d }, f) {
|
|
66
|
+
const o = N(s), g = C(s), i = E(s), m = typeof process < "u" && process.env && process.env.NODE_ENV === "development", r = k(o), u = r.icon;
|
|
67
|
+
return /* @__PURE__ */ t("div", { ref: f, ...d, className: c("flex min-h-[60vh] items-center justify-center p-ds-05", l), children: /* @__PURE__ */ n(
|
|
67
68
|
"div",
|
|
68
69
|
{
|
|
69
70
|
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",
|
|
@@ -71,45 +72,47 @@ const k = p.forwardRef(
|
|
|
71
72
|
/* @__PURE__ */ t(
|
|
72
73
|
"div",
|
|
73
74
|
{
|
|
74
|
-
className:
|
|
75
|
+
className: c(
|
|
75
76
|
"flex h-ds-lg w-ds-lg items-center justify-center rounded-ds-2xl",
|
|
76
|
-
|
|
77
|
+
r.bgClass
|
|
77
78
|
),
|
|
78
79
|
children: /* @__PURE__ */ t(
|
|
79
|
-
|
|
80
|
+
y,
|
|
80
81
|
{
|
|
81
|
-
|
|
82
|
+
icon: u,
|
|
83
|
+
size: "2xl",
|
|
84
|
+
className: r.iconClass
|
|
82
85
|
}
|
|
83
86
|
)
|
|
84
87
|
}
|
|
85
88
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
89
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-ds-03", children: [
|
|
90
|
+
o && /* @__PURE__ */ n("span", { className: "text-ds-sm text-surface-fg-subtle", children: [
|
|
88
91
|
"Error ",
|
|
89
|
-
|
|
92
|
+
o
|
|
90
93
|
] }),
|
|
91
|
-
/* @__PURE__ */ t("h2", { className: "text-ds-2xl font-semibold text-surface-fg", children:
|
|
92
|
-
/* @__PURE__ */ t("p", { className: "text-ds-base text-surface-fg-subtle", children: g ||
|
|
94
|
+
/* @__PURE__ */ t("h2", { className: "text-ds-2xl font-semibold text-surface-fg", children: r.title }),
|
|
95
|
+
/* @__PURE__ */ t("p", { className: "text-ds-base text-surface-fg-subtle", children: g || r.message })
|
|
93
96
|
] }),
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
a && /* @__PURE__ */ t("div", { className: "flex items-center gap-ds-04", children: /* @__PURE__ */ t(
|
|
98
|
+
w,
|
|
96
99
|
{
|
|
97
100
|
variant: "outline",
|
|
98
101
|
size: "md",
|
|
99
|
-
onClick:
|
|
102
|
+
onClick: a,
|
|
100
103
|
children: "Try Again"
|
|
101
104
|
}
|
|
102
105
|
) }),
|
|
103
|
-
m &&
|
|
106
|
+
m && i && /* @__PURE__ */ n("div", { className: "w-full overflow-auto rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-05 text-left", children: [
|
|
104
107
|
/* @__PURE__ */ t("p", { className: "text-ds-sm mb-ds-03 font-semibold text-surface-fg", children: "Stack Trace (development only)" }),
|
|
105
|
-
/* @__PURE__ */ t("pre", { className: "whitespace-pre-wrap text-ds-sm text-surface-fg-subtle", children:
|
|
108
|
+
/* @__PURE__ */ t("pre", { className: "whitespace-pre-wrap text-ds-sm text-surface-fg-subtle", children: i })
|
|
106
109
|
] })
|
|
107
110
|
]
|
|
108
111
|
}
|
|
109
112
|
) });
|
|
110
113
|
}
|
|
111
114
|
);
|
|
112
|
-
|
|
115
|
+
S.displayName = "ErrorDisplay";
|
|
113
116
|
export {
|
|
114
|
-
|
|
117
|
+
S as ErrorDisplay
|
|
115
118
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-attachment.d.ts","sourceRoot":"","sources":["../../../src/composed/extensions/file-attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"file-attachment.d.ts","sourceRoot":"","sources":["../../../src/composed/extensions/file-attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AA+BpD,eAAO,MAAM,cAAc,gBAwBzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-preview.d.ts","sourceRoot":"","sources":["../../src/composed/file-preview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"file-preview.d.ts","sourceRoot":"","sources":["../../src/composed/file-preview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA4B9B,KAAK,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;AAE7D,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC7F,GAAG,EAAE,MAAM,CAAA;IACX,iDAAiD;IACjD,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAg2BD,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,IAAI,EAAE,QAAQ,EACd,QAAQ,EACR,GAAG,EACH,WAAe,EACf,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAuClB;AAED,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,YAAY,EAAE,QAAQ,EAAE,CAAA"}
|