@devalok/shilp-sutra 0.28.0 → 0.30.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 +125 -86
- 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.d.ts +1 -1
- package/dist/composed/index.d.ts.map +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 +42 -35
- 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 +3 -0
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +295 -311
- 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 +20 -0
- package/dist/tokens/semantic.css +74 -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 +16 -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 +4 -4
- 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/rich-text-editor.md +6 -0
- 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 +672 -40
- package/llms.txt +46 -21
- package/package.json +7 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../src/composed/filter-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"filter-bar.d.ts","sourceRoot":"","sources":["../../src/composed/filter-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAsB9B,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,C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iBAAiB,CAAC,EACzB,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,EACP,SAAS,GACV,EAAE,sBAAsB,2CAsDxB;AAED,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -2,85 +2,86 @@
|
|
|
2
2
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import * as m from "react";
|
|
4
4
|
import { IconChevronDown as x } from "@tabler/icons-react";
|
|
5
|
+
import { Icon as v } from "../ui/icon.js";
|
|
5
6
|
import { cn as p } from "../ui/lib/utils.js";
|
|
6
|
-
import { springs as
|
|
7
|
-
import { SearchInput as
|
|
8
|
-
import { Button as
|
|
9
|
-
import {
|
|
10
|
-
import { Select as
|
|
7
|
+
import { springs as b } from "../ui/lib/motion.js";
|
|
8
|
+
import { SearchInput as g } from "../ui/search-input.js";
|
|
9
|
+
import { Button as C } from "../ui/button.js";
|
|
10
|
+
import { B as S } from "../_chunks/badge-group.js";
|
|
11
|
+
import { Select as w, SelectTrigger as N, SelectValue as F, SelectContent as B, SelectItem as h } from "../ui/select.js";
|
|
11
12
|
import { MultiSelectPopover as y } from "./multi-select-popover.js";
|
|
12
|
-
import { m as
|
|
13
|
+
import { m as z } from "../_chunks/framer.js";
|
|
13
14
|
const u = m.createContext({ size: "sm" });
|
|
14
|
-
function
|
|
15
|
+
function A({
|
|
15
16
|
searchValue: s,
|
|
16
|
-
onSearchChange:
|
|
17
|
-
searchPlaceholder:
|
|
17
|
+
onSearchChange: r,
|
|
18
|
+
searchPlaceholder: i = "Search...",
|
|
18
19
|
onClearAll: a,
|
|
19
20
|
size: l = "sm",
|
|
20
21
|
children: n,
|
|
21
|
-
className:
|
|
22
|
+
className: t,
|
|
22
23
|
...d
|
|
23
24
|
}) {
|
|
24
25
|
return /* @__PURE__ */ e(u.Provider, { value: { size: l }, children: /* @__PURE__ */ c(
|
|
25
26
|
"div",
|
|
26
27
|
{
|
|
27
|
-
className: p("flex flex-wrap items-center gap-ds-03",
|
|
28
|
+
className: p("flex flex-wrap items-center gap-ds-03", t),
|
|
28
29
|
role: "toolbar",
|
|
29
30
|
"aria-label": "Filters",
|
|
30
31
|
...d,
|
|
31
32
|
children: [
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
r && /* @__PURE__ */ e(
|
|
34
|
+
g,
|
|
34
35
|
{
|
|
35
36
|
size: l,
|
|
36
37
|
value: s,
|
|
37
|
-
onChange: (
|
|
38
|
-
onClear: s ? () =>
|
|
39
|
-
placeholder:
|
|
38
|
+
onChange: (o) => r(o.target.value),
|
|
39
|
+
onClear: s ? () => r("") : void 0,
|
|
40
|
+
placeholder: i,
|
|
40
41
|
className: "w-48"
|
|
41
42
|
}
|
|
42
43
|
),
|
|
43
44
|
n,
|
|
44
|
-
a && /* @__PURE__ */ e(
|
|
45
|
+
a && /* @__PURE__ */ e(C, { variant: "ghost", size: l, onClick: a, children: "Clear all" })
|
|
45
46
|
]
|
|
46
47
|
}
|
|
47
48
|
) });
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function E({
|
|
50
51
|
label: s,
|
|
51
|
-
value:
|
|
52
|
-
onValueChange:
|
|
52
|
+
value: r,
|
|
53
|
+
onValueChange: i,
|
|
53
54
|
options: a,
|
|
54
55
|
allLabel: l = "All",
|
|
55
56
|
className: n
|
|
56
57
|
}) {
|
|
57
|
-
const { size:
|
|
58
|
-
return /* @__PURE__ */ c(
|
|
58
|
+
const { size: t } = m.useContext(u);
|
|
59
|
+
return /* @__PURE__ */ c(w, { value: r, onValueChange: i, children: [
|
|
59
60
|
/* @__PURE__ */ e(
|
|
60
|
-
|
|
61
|
+
N,
|
|
61
62
|
{
|
|
62
|
-
size:
|
|
63
|
-
className: p("w-40",
|
|
64
|
-
children: /* @__PURE__ */ e(
|
|
63
|
+
size: t,
|
|
64
|
+
className: p("w-40", r !== "" && r !== "all" && "border-accent-7", n),
|
|
65
|
+
children: /* @__PURE__ */ e(F, { placeholder: s })
|
|
65
66
|
}
|
|
66
67
|
),
|
|
67
|
-
/* @__PURE__ */ c(
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
a.map((
|
|
68
|
+
/* @__PURE__ */ c(B, { children: [
|
|
69
|
+
/* @__PURE__ */ e(h, { value: "all", children: l }),
|
|
70
|
+
a.map((o) => /* @__PURE__ */ e(h, { value: o.value, children: o.label }, o.value))
|
|
70
71
|
] })
|
|
71
72
|
] });
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function G({
|
|
74
75
|
label: s,
|
|
75
|
-
value:
|
|
76
|
-
onValueChange:
|
|
76
|
+
value: r,
|
|
77
|
+
onValueChange: i,
|
|
77
78
|
options: a,
|
|
78
79
|
className: l
|
|
79
80
|
}) {
|
|
80
|
-
const { size: n } = m.useContext(u),
|
|
81
|
-
() => a.map((
|
|
81
|
+
const { size: n } = m.useContext(u), t = r.length, d = m.useMemo(
|
|
82
|
+
() => a.map((f) => ({ id: f.value, label: f.label })),
|
|
82
83
|
[a]
|
|
83
|
-
),
|
|
84
|
+
), o = {
|
|
84
85
|
xs: "h-ds-xs-plus text-ds-sm px-ds-02",
|
|
85
86
|
sm: "h-ds-sm text-ds-sm px-ds-03",
|
|
86
87
|
md: "h-ds-md text-ds-md px-ds-04"
|
|
@@ -89,8 +90,8 @@ function A({
|
|
|
89
90
|
y,
|
|
90
91
|
{
|
|
91
92
|
items: d,
|
|
92
|
-
value:
|
|
93
|
-
onValueChange:
|
|
93
|
+
value: r,
|
|
94
|
+
onValueChange: i,
|
|
94
95
|
searchPlaceholder: `Search ${s.toLowerCase()}...`,
|
|
95
96
|
children: /* @__PURE__ */ c(
|
|
96
97
|
"button",
|
|
@@ -99,27 +100,27 @@ function A({
|
|
|
99
100
|
className: p(
|
|
100
101
|
"flex items-center justify-between gap-ds-02 whitespace-nowrap rounded-ds-md border bg-surface-raised-hover text-surface-fg",
|
|
101
102
|
"hover:bg-surface-raised-active transition-colors duration-fast-01 ease-productive-standard",
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
o[n],
|
|
104
|
+
t > 0 ? "border-accent-7" : "border-surface-border-strong",
|
|
104
105
|
"w-40",
|
|
105
106
|
l
|
|
106
107
|
),
|
|
107
108
|
children: [
|
|
108
109
|
/* @__PURE__ */ c("span", { className: "flex items-center gap-ds-02 truncate", children: [
|
|
109
110
|
/* @__PURE__ */ e("span", { children: s }),
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
t > 0 && /* @__PURE__ */ e(
|
|
112
|
+
z.span,
|
|
112
113
|
{
|
|
113
114
|
initial: { scale: 0.8 },
|
|
114
115
|
animate: { scale: 1 },
|
|
115
|
-
transition:
|
|
116
|
+
transition: b.bouncy,
|
|
116
117
|
className: "inline-flex",
|
|
117
|
-
children: /* @__PURE__ */ e(
|
|
118
|
+
children: /* @__PURE__ */ e(S, { size: "xs", variant: "solid", className: "ml-ds-01", children: t })
|
|
118
119
|
},
|
|
119
|
-
|
|
120
|
+
t
|
|
120
121
|
)
|
|
121
122
|
] }),
|
|
122
|
-
/* @__PURE__ */ e(
|
|
123
|
+
/* @__PURE__ */ e(v, { icon: x, size: "xs", className: "opacity-50 shrink-0" })
|
|
123
124
|
]
|
|
124
125
|
}
|
|
125
126
|
)
|
|
@@ -127,7 +128,7 @@ function A({
|
|
|
127
128
|
);
|
|
128
129
|
}
|
|
129
130
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
A as FilterBar,
|
|
132
|
+
G as FilterMultiSelect,
|
|
133
|
+
E as FilterSelect
|
|
133
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-section.d.ts","sourceRoot":"","sources":["../../src/composed/form-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"form-section.d.ts","sourceRoot":"","sources":["../../src/composed/form-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAMD,iBAAS,WAAW,CAAC,EACnB,KAAK,EACL,WAAW,EACX,WAAmB,EACnB,WAAkB,EAClB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAgDlB;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -4,36 +4,37 @@ import * as p from "react";
|
|
|
4
4
|
import { cn as l } from "../ui/lib/utils.js";
|
|
5
5
|
import { springs as u } from "../ui/lib/motion.js";
|
|
6
6
|
import { IconChevronDown as b } from "@tabler/icons-react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { Icon as x } from "../ui/icon.js";
|
|
8
|
+
import { Collapsible as N, CollapsibleTrigger as h, CollapsibleContent as g } from "../ui/collapsible.js";
|
|
9
|
+
import { m as v } from "../_chunks/framer.js";
|
|
10
|
+
function z({
|
|
11
|
+
title: m,
|
|
11
12
|
description: r,
|
|
12
|
-
collapsible:
|
|
13
|
+
collapsible: c = !1,
|
|
13
14
|
defaultOpen: a = !0,
|
|
14
15
|
children: t,
|
|
15
16
|
className: o,
|
|
16
17
|
...n
|
|
17
18
|
}) {
|
|
18
19
|
const i = /* @__PURE__ */ s("div", { className: "flex flex-col gap-ds-01", children: [
|
|
19
|
-
/* @__PURE__ */ e("span", { className: "text-ds-md font-semibold text-surface-fg font-sans", children:
|
|
20
|
+
/* @__PURE__ */ e("span", { className: "text-ds-md font-semibold text-surface-fg font-sans", children: m }),
|
|
20
21
|
r && /* @__PURE__ */ e("span", { className: "text-ds-sm text-surface-fg-muted font-sans", children: r })
|
|
21
22
|
] }), [d, f] = p.useState(a);
|
|
22
|
-
return
|
|
23
|
+
return c ? /* @__PURE__ */ s(N, { defaultOpen: a, onOpenChange: f, className: l("space-y-ds-04", o), ...n, children: [
|
|
23
24
|
/* @__PURE__ */ s(h, { className: "flex w-full items-center justify-between py-ds-02 group", children: [
|
|
24
25
|
i,
|
|
25
26
|
/* @__PURE__ */ e(
|
|
26
|
-
|
|
27
|
+
v.span,
|
|
27
28
|
{
|
|
28
29
|
animate: { rotate: d ? 180 : 0 },
|
|
29
30
|
transition: u.snappy,
|
|
30
31
|
className: "inline-flex",
|
|
31
|
-
children: /* @__PURE__ */ e(
|
|
32
|
+
children: /* @__PURE__ */ e(x, { icon: b, size: "sm", className: "text-surface-fg-muted" })
|
|
32
33
|
}
|
|
33
34
|
)
|
|
34
35
|
] }),
|
|
35
36
|
/* @__PURE__ */ e("div", { className: "border-b border-surface-border-subtle" }),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
+
/* @__PURE__ */ e(g, { children: /* @__PURE__ */ e("div", { className: "space-y-ds-04 pt-ds-02", children: t }) })
|
|
37
38
|
] }) : /* @__PURE__ */ s("div", { className: l("space-y-ds-04", o), ...n, children: [
|
|
38
39
|
i,
|
|
39
40
|
/* @__PURE__ */ e("div", { className: "border-b border-surface-border-subtle" }),
|
|
@@ -41,5 +42,5 @@ function O({
|
|
|
41
42
|
] });
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
z as FormSection
|
|
45
46
|
};
|
|
@@ -5,7 +5,7 @@ import { useRef as i, useState as p, useEffect as l } from "react";
|
|
|
5
5
|
import { cn as c } from "../ui/lib/utils.js";
|
|
6
6
|
const d = m.forwardRef(
|
|
7
7
|
function({ isLoading: e, className: u, ...f }, s) {
|
|
8
|
-
const o = i(null), [t, r] = p(!0), a = i();
|
|
8
|
+
const o = i(null), [t, r] = p(!0), a = i(void 0);
|
|
9
9
|
return l(() => () => {
|
|
10
10
|
clearTimeout(a.current);
|
|
11
11
|
}, []), l(() => {
|
package/dist/composed/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type { AvatarGroupProps, AvatarUser } from './avatar-group';
|
|
|
26
26
|
export { PriorityIndicator } from './priority-indicator';
|
|
27
27
|
export type { PriorityIndicatorProps, Priority } from './priority-indicator';
|
|
28
28
|
export { RichTextEditor, RichTextViewer } from './rich-text-editor';
|
|
29
|
-
export type { RichTextEditorProps, RichTextViewerProps, MentionItem } from './rich-text-editor';
|
|
29
|
+
export type { RichTextEditorProps, RichTextViewerProps, MentionItem, ToolbarItem } from './rich-text-editor';
|
|
30
30
|
export { DatePicker, DateRangePicker, CalendarGrid, TimePicker, DateTimePicker, Presets, useCalendar, YearPicker, MonthPicker } from './date-picker';
|
|
31
31
|
export type { DatePickerProps, DateRangePickerProps, CalendarGridProps, CalendarEvent, TimePickerProps, DateTimePickerProps, PresetsProps, PresetKey, YearPickerProps, MonthPickerProps } from './date-picker';
|
|
32
32
|
export { CardSkeleton, TableSkeleton, BoardSkeleton, ListSkeleton } from './loading-skeleton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe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AiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAChE,YAAY,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1F,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/composed/index.js
CHANGED
|
@@ -6,78 +6,78 @@ import { EmptyState as f } from "./empty-state.js";
|
|
|
6
6
|
import { AvatarGroup as s } from "./avatar-group.js";
|
|
7
7
|
import { PriorityIndicator as d } from "./priority-indicator.js";
|
|
8
8
|
import { RichTextEditor as P, RichTextViewer as S } from "./rich-text-editor.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
9
|
+
import { BoardSkeleton as D, CardSkeleton as C, ListSkeleton as T, TableSkeleton as g } from "./loading-skeleton.js";
|
|
10
|
+
import { DashboardSkeleton as B, ProjectListSkeleton as M, TaskDetailSkeleton as y } from "./page-skeletons.js";
|
|
11
|
+
import { ErrorDisplay as F } from "./error-boundary.js";
|
|
12
|
+
import { GlobalLoading as h } from "./global-loading.js";
|
|
13
|
+
import { CommandPalette as I } from "./command-palette.js";
|
|
14
|
+
import { MemberPicker as R } from "./member-picker.js";
|
|
15
|
+
import { SimpleTooltip as A } from "./simple-tooltip.js";
|
|
16
|
+
import { ScheduleView as L } from "./schedule-view.js";
|
|
17
|
+
import { ConfirmDialog as H } from "./confirm-dialog.js";
|
|
18
|
+
import { ActivityFeed as q, groupItemsByTime as z } from "./activity-feed.js";
|
|
19
|
+
import { MultiSelectPopover as K } from "./multi-select-popover.js";
|
|
20
|
+
import { FilterBar as Q, FilterMultiSelect as U, FilterSelect as W } from "./filter-bar.js";
|
|
21
|
+
import { InlineEdit as Z } from "./inline-edit.js";
|
|
22
|
+
import { FormSection as $ } from "./form-section.js";
|
|
23
|
+
import { BulkActionBar as re } from "./bulk-action-bar.js";
|
|
24
|
+
import { DeadlineIndicator as te } from "./deadline-indicator.js";
|
|
25
|
+
import { MasterDetail as ie } from "./master-detail.js";
|
|
26
|
+
import { ResponsiveOverlay as pe } from "./responsive-overlay.js";
|
|
27
|
+
import { MarkdownViewer as xe } from "./markdown-viewer.js";
|
|
28
|
+
import { EmojiPicker as ne, EmojiPickerPopover as se } from "./emoji-picker.js";
|
|
29
|
+
import { FilePreview as de } from "./file-preview.js";
|
|
30
|
+
import { getInitials as Pe } from "./lib/string-utils.js";
|
|
31
|
+
import { C as ue, D as De, a as Ce, b as Te, M as ge, P as ve, T as Be, Y as Me, u as ye } from "../_chunks/use-calendar.js";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
q as ActivityFeed,
|
|
34
34
|
s as AvatarGroup,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
D as BoardSkeleton,
|
|
36
|
+
re as BulkActionBar,
|
|
37
|
+
ue as CalendarGrid,
|
|
38
|
+
C as CardSkeleton,
|
|
39
|
+
I as CommandPalette,
|
|
40
|
+
H as ConfirmDialog,
|
|
41
41
|
a as ContentCard,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
B as DashboardSkeleton,
|
|
43
|
+
De as DatePicker,
|
|
44
|
+
Ce as DateRangePicker,
|
|
45
|
+
Te as DateTimePicker,
|
|
46
|
+
te as DeadlineIndicator,
|
|
47
|
+
ne as EmojiPicker,
|
|
48
|
+
se as EmojiPickerPopover,
|
|
49
49
|
f as EmptyState,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
50
|
+
F as ErrorDisplay,
|
|
51
|
+
de as FilePreview,
|
|
52
|
+
Q as FilterBar,
|
|
53
|
+
U as FilterMultiSelect,
|
|
54
|
+
W as FilterSelect,
|
|
55
|
+
$ as FormSection,
|
|
56
|
+
h as GlobalLoading,
|
|
57
|
+
Z as InlineEdit,
|
|
58
|
+
T as ListSkeleton,
|
|
59
|
+
xe as MarkdownViewer,
|
|
60
|
+
ie as MasterDetail,
|
|
61
|
+
R as MemberPicker,
|
|
62
|
+
ge as MonthPicker,
|
|
63
|
+
K as MultiSelectPopover,
|
|
64
64
|
o as PageHeader,
|
|
65
|
-
|
|
65
|
+
ve as Presets,
|
|
66
66
|
d as PriorityIndicator,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
M as ProjectListSkeleton,
|
|
68
|
+
pe as ResponsiveOverlay,
|
|
69
69
|
P as RichTextEditor,
|
|
70
70
|
S as RichTextViewer,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
L as ScheduleView,
|
|
72
|
+
A as SimpleTooltip,
|
|
73
73
|
p as StatusBadge,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
g as TableSkeleton,
|
|
75
|
+
y as TaskDetailSkeleton,
|
|
76
|
+
Be as TimePicker,
|
|
77
|
+
Me as YearPicker,
|
|
78
78
|
i as contentCardVariants,
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
Pe as getInitials,
|
|
80
|
+
z as groupItemsByTime,
|
|
81
81
|
l as statusBadgeVariants,
|
|
82
|
-
|
|
82
|
+
ye as useCalendar
|
|
83
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-edit.d.ts","sourceRoot":"","sources":["../../src/composed/inline-edit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"inline-edit.d.ts","sourceRoot":"","sources":["../../src/composed/inline-edit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAU9B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC3F,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAUD,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,MAAM,EACN,WAA6B,EAC7B,aAAa,EACb,QAAgB,EAChB,SAAS,EACT,MAAM,EAAE,UAAkB,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CAsIjB;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,107 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as F, jsx as
|
|
2
|
+
import { jsxs as F, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { IconPencil as P } from "@tabler/icons-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { Icon as A } from "../ui/icon.js";
|
|
6
|
+
import { cn as C } from "../ui/lib/utils.js";
|
|
7
|
+
import { Spinner as j } from "../ui/spinner.js";
|
|
8
|
+
function W({
|
|
9
|
+
value: r,
|
|
10
|
+
onSave: h,
|
|
11
|
+
placeholder: d = "Click to edit",
|
|
11
12
|
textClassName: R,
|
|
12
|
-
readOnly:
|
|
13
|
+
readOnly: o = !1,
|
|
13
14
|
maxLength: i,
|
|
14
15
|
saving: b = !1,
|
|
15
16
|
className: w,
|
|
16
17
|
...v
|
|
17
18
|
}) {
|
|
18
|
-
const [D, m] = a.useState(!1), [s, f] = a.useState(!1), t = a.useRef(null), p = a.useRef(
|
|
19
|
+
const [D, m] = a.useState(!1), [s, f] = a.useState(!1), t = a.useRef(null), p = a.useRef(r), u = b || D, E = !r;
|
|
19
20
|
a.useEffect(() => {
|
|
20
|
-
!s && t.current && (t.current.textContent =
|
|
21
|
-
}, [
|
|
21
|
+
!s && t.current && (t.current.textContent = r);
|
|
22
|
+
}, [r, s]);
|
|
22
23
|
function S() {
|
|
23
|
-
|
|
24
|
+
o || u || (f(!0), p.current = r, requestAnimationFrame(() => {
|
|
24
25
|
if (!t.current) return;
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
const e = document.createRange();
|
|
27
|
+
e.selectNodeContents(t.current);
|
|
28
|
+
const n = window.getSelection();
|
|
29
|
+
n?.removeAllRanges(), n?.addRange(e);
|
|
29
30
|
}));
|
|
30
31
|
}
|
|
31
|
-
async function
|
|
32
|
+
async function x() {
|
|
32
33
|
if (!t.current) return;
|
|
33
34
|
f(!1);
|
|
34
|
-
const
|
|
35
|
-
if (t.current.textContent =
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
35
|
+
const n = (t.current.textContent ?? "").trim(), c = i ? n.slice(0, i) : n;
|
|
36
|
+
if (t.current.textContent = c || r, c === r) return;
|
|
37
|
+
const g = h(c);
|
|
38
|
+
if (g instanceof Promise) {
|
|
38
39
|
m(!0);
|
|
39
40
|
try {
|
|
40
|
-
await
|
|
41
|
+
await g;
|
|
41
42
|
} catch {
|
|
42
|
-
t.current && (t.current.textContent =
|
|
43
|
+
t.current && (t.current.textContent = r);
|
|
43
44
|
} finally {
|
|
44
45
|
m(!1);
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function I() {
|
|
49
50
|
t.current && (t.current.textContent = p.current, f(!1), t.current.blur());
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
52
|
+
function k(e) {
|
|
53
|
+
e.key === "Escape" ? (e.preventDefault(), I()) : e.key === "Enter" && (e.preventDefault(), x());
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function y() {
|
|
55
56
|
if (!t.current || !i) return;
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
t.current.textContent =
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
57
|
+
const e = t.current.textContent ?? "";
|
|
58
|
+
if (e.length > i) {
|
|
59
|
+
t.current.textContent = e.slice(0, i);
|
|
60
|
+
const n = document.createRange();
|
|
61
|
+
n.selectNodeContents(t.current), n.collapse(!1);
|
|
62
|
+
const c = window.getSelection();
|
|
63
|
+
c?.removeAllRanges(), c?.addRange(n);
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
|
-
function N(
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
document.execCommand("insertText", !1,
|
|
66
|
+
function N(e) {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
const n = e.clipboardData.getData("text/plain");
|
|
69
|
+
document.execCommand("insertText", !1, n);
|
|
69
70
|
}
|
|
70
|
-
return /* @__PURE__ */ F("div", { className:
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ F("div", { className: C("group inline-flex items-center gap-ds-02", w), ...v, children: [
|
|
72
|
+
/* @__PURE__ */ l(
|
|
72
73
|
"span",
|
|
73
74
|
{
|
|
74
75
|
ref: t,
|
|
75
|
-
role:
|
|
76
|
-
contentEditable: !
|
|
76
|
+
role: o ? void 0 : "textbox",
|
|
77
|
+
contentEditable: !o && !u,
|
|
77
78
|
suppressContentEditableWarning: !0,
|
|
78
|
-
tabIndex:
|
|
79
|
+
tabIndex: o ? void 0 : 0,
|
|
79
80
|
onFocus: S,
|
|
80
|
-
onBlur:
|
|
81
|
-
onKeyDown:
|
|
82
|
-
onInput:
|
|
81
|
+
onBlur: x,
|
|
82
|
+
onKeyDown: k,
|
|
83
|
+
onInput: y,
|
|
83
84
|
onPaste: N,
|
|
84
85
|
spellCheck: s,
|
|
85
|
-
className:
|
|
86
|
+
className: C(
|
|
86
87
|
"font-sans text-surface-fg outline-none",
|
|
87
88
|
R,
|
|
88
89
|
// Idle: subtle hover hint
|
|
89
|
-
!
|
|
90
|
+
!o && !s && "cursor-text rounded-ds-sm -mx-ds-01 px-ds-01 hover:bg-surface-raised-hover transition-colors duration-fast-01",
|
|
90
91
|
// Focused: subtle underline to indicate editing
|
|
91
92
|
s && "rounded-ds-sm -mx-ds-01 px-ds-01 bg-surface-raised-hover ring-1 ring-accent-7",
|
|
92
93
|
// Empty: show placeholder styling
|
|
93
94
|
E && !s && "text-surface-fg-subtle italic",
|
|
94
95
|
// Read-only
|
|
95
|
-
|
|
96
|
+
o && "cursor-default"
|
|
96
97
|
),
|
|
97
|
-
"data-placeholder":
|
|
98
|
-
children:
|
|
98
|
+
"data-placeholder": d,
|
|
99
|
+
children: r || (s ? "" : d)
|
|
99
100
|
}
|
|
100
101
|
),
|
|
101
|
-
!
|
|
102
|
-
u && /* @__PURE__ */
|
|
102
|
+
!o && !s && !u && /* @__PURE__ */ l(A, { icon: P, size: "xs", className: "text-surface-fg-subtle opacity-0 group-hover:opacity-100 transition-opacity duration-fast-01 shrink-0" }),
|
|
103
|
+
u && /* @__PURE__ */ l(j, { size: "sm" })
|
|
103
104
|
] });
|
|
104
105
|
}
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
W as InlineEdit
|
|
107
108
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-viewer.d.ts","sourceRoot":"","sources":["../../src/composed/markdown-viewer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"markdown-viewer.d.ts","sourceRoot":"","sources":["../../src/composed/markdown-viewer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAkC9B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,OAAO,EAAE,MAAM,CAAA;IACf,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAiFD,iBAAS,cAAc,CAAC,EACtB,OAAO,EACP,OAAe,EACf,SAAiB,EACjB,UAAqB,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,mBAAmB,2CAoHrB;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|