@devalok/shilp-sutra 0.34.0 → 0.34.1

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.
Files changed (172) hide show
  1. package/dist/_chunks/badge-group.js +306 -246
  2. package/dist/_chunks/chat.js +513 -0
  3. package/dist/_chunks/date-picker.js +748 -0
  4. package/dist/_chunks/document-preview.js +109 -90
  5. package/dist/_chunks/file-preview.js +492 -504
  6. package/dist/_chunks/framer.js +5564 -5613
  7. package/dist/_chunks/image-preview.js +127 -88
  8. package/dist/_chunks/keybinding.js +12 -14
  9. package/dist/_chunks/link-context.js +19 -16
  10. package/dist/_chunks/mention-suggestion.js +353 -350
  11. package/dist/_chunks/motion-provider.js +26 -20
  12. package/dist/_chunks/popover.js +127 -0
  13. package/dist/_chunks/primitives.js +7584 -6425
  14. package/dist/_chunks/rich-chat-input.js +2070 -0
  15. package/dist/_chunks/rolldown-runtime.js +21 -0
  16. package/dist/_chunks/shared.js +126 -0
  17. package/dist/_chunks/sonner.js +605 -734
  18. package/dist/_chunks/stat-row.js +418 -440
  19. package/dist/_chunks/tiptap.js +15850 -19964
  20. package/dist/_chunks/tree-view.js +231 -290
  21. package/dist/_chunks/use-calendar.js +161 -208
  22. package/dist/_chunks/vendor-client.js +314 -2199
  23. package/dist/_chunks/vendor-utils.js +1721 -2978
  24. package/dist/ai/ai-command-provider.js +23 -17
  25. package/dist/ai/block-renderer.js +68 -51
  26. package/dist/ai/blocks/index.js +2 -12
  27. package/dist/ai/command-bar.js +470 -519
  28. package/dist/ai/conversation.js +241 -227
  29. package/dist/ai/index.js +181 -167
  30. package/dist/ai/types.js +0 -1
  31. package/dist/composed/activity-feed.js +232 -202
  32. package/dist/composed/avatar-group.js +164 -222
  33. package/dist/composed/bulk-action-bar.js +174 -165
  34. package/dist/composed/command-palette.js +290 -308
  35. package/dist/composed/confirm-dialog.js +28 -48
  36. package/dist/composed/content-card.js +69 -108
  37. package/dist/composed/date-picker/index.js +3 -13
  38. package/dist/composed/deadline-indicator.js +68 -74
  39. package/dist/composed/emoji-picker.js +83 -110
  40. package/dist/composed/empty-state.js +64 -103
  41. package/dist/composed/error-boundary.js +129 -127
  42. package/dist/composed/file-preview.js +2 -12
  43. package/dist/composed/filter-bar.js +98 -130
  44. package/dist/composed/form-section.js +61 -45
  45. package/dist/composed/global-loading.js +34 -47
  46. package/dist/composed/index.js +34 -92
  47. package/dist/composed/inline-edit.js +92 -107
  48. package/dist/composed/lib/string-utils.js +8 -8
  49. package/dist/composed/loading-skeleton.js +103 -171
  50. package/dist/composed/markdown-viewer.js +187 -139
  51. package/dist/composed/master-detail.js +147 -156
  52. package/dist/composed/member-picker.js +46 -49
  53. package/dist/composed/multi-select-popover.js +181 -179
  54. package/dist/composed/page-header.js +54 -76
  55. package/dist/composed/page-skeletons.js +143 -127
  56. package/dist/composed/priority-indicator.js +105 -111
  57. package/dist/composed/responsive-overlay.js +36 -41
  58. package/dist/composed/rich-chat-input.js +2 -1860
  59. package/dist/composed/rich-text-editor.js +561 -424
  60. package/dist/composed/schedule-view.js +134 -185
  61. package/dist/composed/simple-tooltip.js +21 -21
  62. package/dist/composed/status-badge.js +133 -137
  63. package/dist/hooks/index.js +7 -12
  64. package/dist/hooks/use-color-mode.js +28 -25
  65. package/dist/hooks/use-mobile.js +13 -13
  66. package/dist/hooks/use-toast.js +2 -4
  67. package/dist/hooks/use-touch-device.js +9 -11
  68. package/dist/hooks/use-viewport-height.js +14 -14
  69. package/dist/motion/index.js +3 -11
  70. package/dist/motion/primitives-index.js +226 -186
  71. package/dist/shell/app-command-palette.js +203 -234
  72. package/dist/shell/bottom-navbar.js +150 -190
  73. package/dist/shell/command-registry.js +13 -14
  74. package/dist/shell/index.js +10 -20
  75. package/dist/shell/link-context.js +2 -5
  76. package/dist/shell/notification-center.js +238 -259
  77. package/dist/shell/notification-preferences.js +241 -184
  78. package/dist/shell/sidebar.js +251 -281
  79. package/dist/shell/top-bar.js +203 -237
  80. package/dist/tailwind/index.cjs +426 -442
  81. package/dist/tailwind/index.js +2 -4
  82. package/dist/tailwind/preset.js +443 -459
  83. package/dist/ui/accordion.js +52 -60
  84. package/dist/ui/alert-dialog.js +111 -156
  85. package/dist/ui/alert.js +177 -99
  86. package/dist/ui/aspect-ratio.js +13 -16
  87. package/dist/ui/autocomplete.js +112 -148
  88. package/dist/ui/avatar.js +196 -169
  89. package/dist/ui/badge-group.js +2 -7
  90. package/dist/ui/badge-indicator.js +42 -51
  91. package/dist/ui/badge.js +2 -15
  92. package/dist/ui/banner.js +76 -68
  93. package/dist/ui/breadcrumb.js +65 -84
  94. package/dist/ui/button-group.js +109 -102
  95. package/dist/ui/button-processing.js +69 -73
  96. package/dist/ui/button.js +393 -279
  97. package/dist/ui/card.js +151 -157
  98. package/dist/ui/charts/index.js +1002 -1319
  99. package/dist/ui/chat/index.js +2 -11
  100. package/dist/ui/checkbox.js +77 -100
  101. package/dist/ui/code.js +18 -32
  102. package/dist/ui/collapsible.js +21 -29
  103. package/dist/ui/color-input.js +453 -372
  104. package/dist/ui/color-swatch.js +60 -90
  105. package/dist/ui/combobox.js +244 -293
  106. package/dist/ui/container.js +18 -24
  107. package/dist/ui/context-menu.js +154 -203
  108. package/dist/ui/data-table-body.js +116 -213
  109. package/dist/ui/data-table-bulk-actions.js +43 -59
  110. package/dist/ui/data-table-card.js +84 -71
  111. package/dist/ui/data-table-context.js +39 -42
  112. package/dist/ui/data-table-header.js +98 -139
  113. package/dist/ui/data-table-pagination.js +69 -82
  114. package/dist/ui/data-table-toolbar.js +104 -130
  115. package/dist/ui/data-table.js +278 -354
  116. package/dist/ui/devalok-grain.js +77 -66
  117. package/dist/ui/dialog.js +122 -151
  118. package/dist/ui/dropdown-menu.js +152 -203
  119. package/dist/ui/file-upload.js +242 -266
  120. package/dist/ui/form.js +60 -56
  121. package/dist/ui/hover-card.js +54 -54
  122. package/dist/ui/icon-button.js +21 -26
  123. package/dist/ui/icon-context.js +17 -17
  124. package/dist/ui/icon-group.js +22 -29
  125. package/dist/ui/icon.js +201 -121
  126. package/dist/ui/index.js +74 -350
  127. package/dist/ui/input-otp.js +44 -48
  128. package/dist/ui/input.js +92 -169
  129. package/dist/ui/label.js +17 -22
  130. package/dist/ui/lib/date-utils.js +14 -11
  131. package/dist/ui/lib/motion.js +77 -36
  132. package/dist/ui/lib/utils.js +39 -16
  133. package/dist/ui/link.js +13 -24
  134. package/dist/ui/menubar.js +132 -210
  135. package/dist/ui/navigation-menu.js +163 -193
  136. package/dist/ui/number-input.js +72 -95
  137. package/dist/ui/pagination.js +122 -159
  138. package/dist/ui/popover.js +2 -131
  139. package/dist/ui/progress-ring.js +133 -143
  140. package/dist/ui/progress.js +51 -95
  141. package/dist/ui/radio.js +41 -50
  142. package/dist/ui/search-input.js +51 -53
  143. package/dist/ui/segmented-control.js +93 -114
  144. package/dist/ui/select.js +131 -157
  145. package/dist/ui/separator.js +15 -25
  146. package/dist/ui/sheet.js +135 -163
  147. package/dist/ui/sidebar.js +357 -600
  148. package/dist/ui/skeleton.js +179 -231
  149. package/dist/ui/slider.js +24 -34
  150. package/dist/ui/spinner.js +226 -205
  151. package/dist/ui/split-button.js +227 -276
  152. package/dist/ui/stack.js +56 -70
  153. package/dist/ui/stat-card.js +259 -251
  154. package/dist/ui/status-dot.js +67 -63
  155. package/dist/ui/stepper.js +119 -168
  156. package/dist/ui/switch.js +51 -54
  157. package/dist/ui/table.js +57 -90
  158. package/dist/ui/tabs.js +139 -156
  159. package/dist/ui/text.js +52 -59
  160. package/dist/ui/textarea.js +40 -57
  161. package/dist/ui/toast-types.js +0 -1
  162. package/dist/ui/toast.js +554 -536
  163. package/dist/ui/toaster.js +23 -33
  164. package/dist/ui/toggle-group.js +37 -41
  165. package/dist/ui/toggle.js +36 -40
  166. package/dist/ui/tooltip.js +80 -65
  167. package/dist/ui/tree-view/index.js +2 -6
  168. package/dist/ui/visually-hidden.js +12 -10
  169. package/llms-full.txt +1 -1
  170. package/package.json +1 -1
  171. package/dist/_chunks/date-time-picker.js +0 -851
  172. package/dist/_chunks/typing-indicator.js +0 -565
@@ -1,109 +1,94 @@
1
1
  "use client";
2
- import { jsxs as P, jsx as l } from "react/jsx-runtime";
3
- import * as i from "react";
4
- import { IconPencil as A } from "@tabler/icons-react";
5
- import { Icon as j } from "../ui/icon.js";
6
- import { cn as C } from "../ui/lib/utils.js";
7
- import { Spinner as z } from "../ui/spinner.js";
8
- const K = i.forwardRef(({
9
- value: r,
10
- onSave: h,
11
- placeholder: d = "Click to edit",
12
- textClassName: R,
13
- readOnly: o = !1,
14
- maxLength: a,
15
- saving: b = !1,
16
- className: w,
17
- ...v
18
- }, E) => {
19
- const [D, m] = i.useState(!1), [s, f] = i.useState(!1), t = i.useRef(null), p = i.useRef(r), u = b || D, I = !r;
20
- i.useEffect(() => {
21
- !s && t.current && (t.current.textContent = r);
22
- }, [r, s]);
23
- function S() {
24
- o || u || (f(!0), p.current = r, requestAnimationFrame(() => {
25
- if (!t.current) return;
26
- const e = document.createRange();
27
- e.selectNodeContents(t.current);
28
- const n = window.getSelection();
29
- n?.removeAllRanges(), n?.addRange(e);
30
- }));
31
- }
32
- async function x() {
33
- if (!t.current) return;
34
- f(!1);
35
- const n = (t.current.textContent ?? "").trim(), c = a ? n.slice(0, a) : n;
36
- if (t.current.textContent = c || r, c === r) return;
37
- const g = h(c);
38
- if (g instanceof Promise) {
39
- m(!0);
40
- try {
41
- await g;
42
- } catch {
43
- t.current && (t.current.textContent = r);
44
- } finally {
45
- m(!1);
46
- }
47
- }
48
- }
49
- function y() {
50
- t.current && (t.current.textContent = p.current, f(!1), t.current.blur());
51
- }
52
- function N(e) {
53
- e.key === "Escape" ? (e.preventDefault(), y()) : e.key === "Enter" && (e.preventDefault(), x());
54
- }
55
- function k() {
56
- if (!t.current || !a) return;
57
- const e = t.current.textContent ?? "";
58
- if (e.length > a) {
59
- t.current.textContent = e.slice(0, a);
60
- const n = document.createRange();
61
- n.selectNodeContents(t.current), n.collapse(!1);
62
- const c = window.getSelection();
63
- c?.removeAllRanges(), c?.addRange(n);
64
- }
65
- }
66
- function F(e) {
67
- e.preventDefault();
68
- const n = e.clipboardData.getData("text/plain");
69
- document.execCommand("insertText", !1, n);
70
- }
71
- return /* @__PURE__ */ P("div", { ref: E, className: C("group inline-flex items-center gap-ds-02", w), ...v, children: [
72
- /* @__PURE__ */ l(
73
- "span",
74
- {
75
- ref: t,
76
- role: o ? void 0 : "textbox",
77
- contentEditable: !o && !u,
78
- suppressContentEditableWarning: !0,
79
- tabIndex: o ? void 0 : 0,
80
- onFocus: S,
81
- onBlur: x,
82
- onKeyDown: N,
83
- onInput: k,
84
- onPaste: F,
85
- spellCheck: s,
86
- className: C(
87
- "font-sans text-surface-fg outline-hidden",
88
- R,
89
- // Idle: subtle hover hint
90
- !o && !s && "cursor-text rounded-ds-sm -mx-ds-01 px-ds-01 hover:bg-surface-raised-hover transition-colors duration-fast-01",
91
- // Focused: subtle underline to indicate editing
92
- s && "rounded-ds-sm -mx-ds-01 px-ds-01 bg-surface-raised-hover ring-1 ring-accent-7",
93
- // Empty: show placeholder styling
94
- I && !s && "text-surface-fg-subtle italic",
95
- // Read-only
96
- o && "cursor-default"
97
- ),
98
- "data-placeholder": d,
99
- children: r || (s ? "" : d)
100
- }
101
- ),
102
- !o && !s && !u && /* @__PURE__ */ l(j, { icon: A, size: "xs", className: "text-surface-fg-subtle opacity-0 group-hover:opacity-100 transition-opacity duration-fast-01 shrink-0" }),
103
- u && /* @__PURE__ */ l(z, { size: "sm" })
104
- ] });
2
+ import { cn as e } from "../ui/lib/utils.js";
3
+ import { Spinner as t } from "../ui/spinner.js";
4
+ import { Icon as n } from "../ui/icon.js";
5
+ import * as r from "react";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ import { IconPencil as o } from "@tabler/icons-react";
8
+ //#region src/composed/inline-edit.tsx
9
+ var s = r.forwardRef(({ value: s, onSave: c, placeholder: l = "Click to edit", textClassName: u, readOnly: d = !1, maxLength: f, saving: p = !1, className: m, ...h }, g) => {
10
+ let [_, v] = r.useState(!1), [y, b] = r.useState(!1), x = r.useRef(null), S = r.useRef(s), C = p || _, w = !s;
11
+ r.useEffect(() => {
12
+ !y && x.current && (x.current.textContent = s);
13
+ }, [s, y]);
14
+ function T() {
15
+ d || C || (b(!0), S.current = s, requestAnimationFrame(() => {
16
+ if (!x.current) return;
17
+ let e = document.createRange();
18
+ e.selectNodeContents(x.current);
19
+ let t = window.getSelection();
20
+ t?.removeAllRanges(), t?.addRange(e);
21
+ }));
22
+ }
23
+ async function E() {
24
+ if (!x.current) return;
25
+ b(!1);
26
+ let e = (x.current.textContent ?? "").trim(), t = f ? e.slice(0, f) : e;
27
+ if (x.current.textContent = t || s, t === s) return;
28
+ let n = c(t);
29
+ if (n instanceof Promise) {
30
+ v(!0);
31
+ try {
32
+ await n;
33
+ } catch {
34
+ x.current && (x.current.textContent = s);
35
+ } finally {
36
+ v(!1);
37
+ }
38
+ }
39
+ }
40
+ function D() {
41
+ x.current && (x.current.textContent = S.current, b(!1), x.current.blur());
42
+ }
43
+ function O(e) {
44
+ e.key === "Escape" ? (e.preventDefault(), D()) : e.key === "Enter" && (e.preventDefault(), E());
45
+ }
46
+ function k() {
47
+ if (!x.current || !f) return;
48
+ let e = x.current.textContent ?? "";
49
+ if (e.length > f) {
50
+ x.current.textContent = e.slice(0, f);
51
+ let t = document.createRange();
52
+ t.selectNodeContents(x.current), t.collapse(!1);
53
+ let n = window.getSelection();
54
+ n?.removeAllRanges(), n?.addRange(t);
55
+ }
56
+ }
57
+ function A(e) {
58
+ e.preventDefault();
59
+ let t = e.clipboardData.getData("text/plain");
60
+ document.execCommand("insertText", !1, t);
61
+ }
62
+ return /* @__PURE__ */ a("div", {
63
+ ref: g,
64
+ className: e("group inline-flex items-center gap-ds-02", m),
65
+ ...h,
66
+ children: [
67
+ /* @__PURE__ */ i("span", {
68
+ ref: x,
69
+ role: d ? void 0 : "textbox",
70
+ contentEditable: !d && !C,
71
+ suppressContentEditableWarning: !0,
72
+ tabIndex: d ? void 0 : 0,
73
+ onFocus: T,
74
+ onBlur: E,
75
+ onKeyDown: O,
76
+ onInput: k,
77
+ onPaste: A,
78
+ spellCheck: y,
79
+ className: e("font-sans text-surface-fg outline-hidden", u, !d && !y && "cursor-text rounded-ds-sm -mx-ds-01 px-ds-01 hover:bg-surface-raised-hover transition-colors duration-fast-01", y && "rounded-ds-sm -mx-ds-01 px-ds-01 bg-surface-raised-hover ring-1 ring-accent-7", w && !y && "text-surface-fg-subtle italic", d && "cursor-default"),
80
+ "data-placeholder": l,
81
+ children: s || (y ? "" : l)
82
+ }),
83
+ !d && !y && !C && /* @__PURE__ */ i(n, {
84
+ icon: o,
85
+ size: "xs",
86
+ className: "text-surface-fg-subtle opacity-0 group-hover:opacity-100 transition-opacity duration-fast-01 shrink-0"
87
+ }),
88
+ C && /* @__PURE__ */ i(t, { size: "sm" })
89
+ ]
90
+ });
105
91
  });
106
- K.displayName = "InlineEdit";
107
- export {
108
- K as InlineEdit
109
- };
92
+ s.displayName = "InlineEdit";
93
+ //#endregion
94
+ export { s as InlineEdit };
@@ -1,9 +1,9 @@
1
- function i(r) {
2
- const t = r.trim();
3
- if (!t) return "";
4
- const e = t.split(/\s+/);
5
- return e.length >= 2 ? (e[0][0] + e[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
1
+ //#region src/composed/lib/string-utils.ts
2
+ function e(e) {
3
+ let t = e.trim();
4
+ if (!t) return "";
5
+ let n = t.split(/\s+/);
6
+ return n.length >= 2 ? (n[0][0] + n[1][0]).toUpperCase() : t.slice(0, 2).toUpperCase();
6
7
  }
7
- export {
8
- i as getInitials
9
- };
8
+ //#endregion
9
+ export { e as getInitials };
@@ -1,172 +1,104 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
1
+ import { cn as e } from "../ui/lib/utils.js";
2
+ import { Skeleton as t } from "../ui/skeleton.js";
2
3
  import * as n from "react";
3
- import { cn as c } from "../ui/lib/utils.js";
4
- import { Skeleton as s } from "../ui/skeleton.js";
5
- const u = n.forwardRef(
6
- function({ className: d, ...l }, o) {
7
- return /* @__PURE__ */ a(
8
- "div",
9
- {
10
- ref: o,
11
- ...l,
12
- className: c(
13
- "rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-05b",
14
- d
15
- ),
16
- children: [
17
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between pb-ds-05", children: [
18
- /* @__PURE__ */ e(s, { className: "h-[16px] w-[128px] bg-surface-raised-hover" }),
19
- /* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-raised-hover" })
20
- ] }),
21
- /* @__PURE__ */ a("div", { className: "space-y-ds-04", children: [
22
- /* @__PURE__ */ e(s, { className: "h-[12px] w-full bg-surface-raised-hover" }),
23
- /* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-raised-hover" }),
24
- /* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-surface-raised-hover" })
25
- ] }),
26
- /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03 pt-ds-05", children: [
27
- /* @__PURE__ */ e(s, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-surface-raised-hover" }),
28
- /* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-surface-raised-hover" })
29
- ] })
30
- ]
31
- }
32
- );
33
- }
34
- );
35
- u.displayName = "CardSkeleton";
36
- const b = n.forwardRef(
37
- function({
38
- rows: d = 5,
39
- columns: l = 4,
40
- className: o,
41
- ...i
42
- }, m) {
43
- return /* @__PURE__ */ a(
44
- "div",
45
- {
46
- ref: m,
47
- ...i,
48
- className: c(
49
- "overflow-hidden rounded-ds-lg border border-surface-border-strong",
50
- o
51
- ),
52
- children: [
53
- /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-raised px-ds-05 py-ds-04", children: Array.from({ length: l }).map((h, r) => /* @__PURE__ */ e(
54
- s,
55
- {
56
- className: c(
57
- "h-[12px] bg-surface-raised-hover",
58
- r === 0 ? "w-[160px]" : "flex-1"
59
- )
60
- },
61
- `head-${r}`
62
- )) }),
63
- Array.from({ length: d }).map((h, r) => /* @__PURE__ */ e(
64
- "div",
65
- {
66
- className: c(
67
- "flex items-center gap-ds-05 px-ds-05 py-ds-04",
68
- r < d - 1 && "border-b border-surface-border-strong"
69
- ),
70
- style: { animationDelay: `${r * 50}ms` },
71
- children: Array.from({ length: l }).map((p, f) => /* @__PURE__ */ e(
72
- s,
73
- {
74
- className: c(
75
- "h-[12px] bg-surface-raised-hover",
76
- f === 0 ? "w-[160px]" : "flex-1"
77
- )
78
- },
79
- `cell-${r}-${f}`
80
- ))
81
- },
82
- `row-${r}`
83
- ))
84
- ]
85
- }
86
- );
87
- }
88
- );
89
- b.displayName = "TableSkeleton";
90
- const g = n.forwardRef(
91
- function({
92
- columns: d = 4,
93
- cardsPerColumn: l = 3,
94
- className: o,
95
- ...i
96
- }, m) {
97
- return /* @__PURE__ */ e("div", { ref: m, ...i, className: c("flex gap-ds-05 overflow-x-auto", o), children: Array.from({ length: d }).map((h, r) => /* @__PURE__ */ a(
98
- "div",
99
- {
100
- className: "flex w-[272px] shrink-0 flex-col gap-ds-03",
101
- children: [
102
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between px-ds-02 py-ds-03", children: [
103
- /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
104
- /* @__PURE__ */ e(s, { className: "h-[12px] w-[12px] rounded bg-surface-raised-hover" }),
105
- /* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-surface-raised-hover" }),
106
- /* @__PURE__ */ e(s, { className: "h-[16px] w-[20px] rounded-ds-full bg-surface-raised-hover" })
107
- ] }),
108
- /* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-raised-hover" })
109
- ] }),
110
- Array.from({ length: l }).map((p, f) => /* @__PURE__ */ a(
111
- "div",
112
- {
113
- className: "rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-04",
114
- style: { animationDelay: `${(r * l + f) * 50}ms` },
115
- children: [
116
- /* @__PURE__ */ a("div", { className: "space-y-ds-03", children: [
117
- /* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-raised-hover" }),
118
- /* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-surface-raised-hover" })
119
- ] }),
120
- /* @__PURE__ */ a("div", { className: "flex items-center justify-between pt-ds-04", children: [
121
- /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-02b", children: [
122
- /* @__PURE__ */ e(s, { className: "h-ico-md w-ico-md rounded-ds-full bg-surface-raised-hover" }),
123
- /* @__PURE__ */ e(s, { className: "h-ds-03 w-[64px] bg-surface-raised-hover" })
124
- ] }),
125
- /* @__PURE__ */ e(s, { className: "h-[16px] w-ds-lg rounded-ds-full bg-surface-raised-hover" })
126
- ] })
127
- ]
128
- },
129
- `card-${r}-${f}`
130
- ))
131
- ]
132
- },
133
- `col-${r}`
134
- )) });
135
- }
136
- );
137
- g.displayName = "BoardSkeleton";
138
- const x = n.forwardRef(
139
- function({
140
- rows: d = 6,
141
- showAvatar: l = !0,
142
- className: o,
143
- ...i
144
- }, m) {
145
- return /* @__PURE__ */ e("div", { ref: m, ...i, className: c("flex flex-col", o), children: Array.from({ length: d }).map((h, r) => /* @__PURE__ */ a(
146
- "div",
147
- {
148
- className: c(
149
- "flex items-center gap-ds-04 py-ds-04",
150
- r < d - 1 && "border-b border-surface-border-strong"
151
- ),
152
- style: { animationDelay: `${r * 50}ms` },
153
- children: [
154
- l && /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-surface-raised-hover" }),
155
- /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-ds-02b", children: [
156
- /* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-surface-raised-hover" }),
157
- /* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-surface-raised-hover" })
158
- ] }),
159
- /* @__PURE__ */ e(s, { className: "h-[20px] w-[56px] rounded-ds-full bg-surface-raised-hover" })
160
- ]
161
- },
162
- `list-${r}`
163
- )) });
164
- }
165
- );
166
- x.displayName = "ListSkeleton";
167
- export {
168
- g as BoardSkeleton,
169
- u as CardSkeleton,
170
- x as ListSkeleton,
171
- b as TableSkeleton
172
- };
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/composed/loading-skeleton.tsx
6
+ var a = n.forwardRef(function({ className: n, ...a }, o) {
7
+ return /* @__PURE__ */ i("div", {
8
+ ref: o,
9
+ ...a,
10
+ className: e("rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-05b", n),
11
+ children: [
12
+ /* @__PURE__ */ i("div", {
13
+ className: "flex items-center justify-between pb-ds-05",
14
+ children: [/* @__PURE__ */ r(t, { className: "h-[16px] w-[128px] bg-surface-raised-hover" }), /* @__PURE__ */ r(t, { className: "h-ico-sm w-ico-sm rounded bg-surface-raised-hover" })]
15
+ }),
16
+ /* @__PURE__ */ i("div", {
17
+ className: "space-y-ds-04",
18
+ children: [
19
+ /* @__PURE__ */ r(t, { className: "h-[12px] w-full bg-surface-raised-hover" }),
20
+ /* @__PURE__ */ r(t, { className: "h-[12px] w-4/5 bg-surface-raised-hover" }),
21
+ /* @__PURE__ */ r(t, { className: "h-[12px] w-3/5 bg-surface-raised-hover" })
22
+ ]
23
+ }),
24
+ /* @__PURE__ */ i("div", {
25
+ className: "flex items-center gap-ds-03 pt-ds-05",
26
+ children: [/* @__PURE__ */ r(t, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-surface-raised-hover" }), /* @__PURE__ */ r(t, { className: "h-[12px] w-[80px] bg-surface-raised-hover" })]
27
+ })
28
+ ]
29
+ });
30
+ });
31
+ a.displayName = "CardSkeleton";
32
+ var o = n.forwardRef(function({ rows: n = 5, columns: a = 4, className: o, ...s }, c) {
33
+ return /* @__PURE__ */ i("div", {
34
+ ref: c,
35
+ ...s,
36
+ className: e("overflow-hidden rounded-ds-lg border border-surface-border-strong", o),
37
+ children: [/* @__PURE__ */ r("div", {
38
+ className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-raised px-ds-05 py-ds-04",
39
+ children: Array.from({ length: a }).map((n, i) => /* @__PURE__ */ r(t, { className: e("h-[12px] bg-surface-raised-hover", i === 0 ? "w-[160px]" : "flex-1") }, `head-${i}`))
40
+ }), Array.from({ length: n }).map((i, o) => /* @__PURE__ */ r("div", {
41
+ className: e("flex items-center gap-ds-05 px-ds-05 py-ds-04", o < n - 1 && "border-b border-surface-border-strong"),
42
+ style: { animationDelay: `${o * 50}ms` },
43
+ children: Array.from({ length: a }).map((n, i) => /* @__PURE__ */ r(t, { className: e("h-[12px] bg-surface-raised-hover", i === 0 ? "w-[160px]" : "flex-1") }, `cell-${o}-${i}`))
44
+ }, `row-${o}`))]
45
+ });
46
+ });
47
+ o.displayName = "TableSkeleton";
48
+ var s = n.forwardRef(function({ columns: n = 4, cardsPerColumn: a = 3, className: o, ...s }, c) {
49
+ return /* @__PURE__ */ r("div", {
50
+ ref: c,
51
+ ...s,
52
+ className: e("flex gap-ds-05 overflow-x-auto", o),
53
+ children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ i("div", {
54
+ className: "flex w-[272px] shrink-0 flex-col gap-ds-03",
55
+ children: [/* @__PURE__ */ i("div", {
56
+ className: "flex items-center justify-between px-ds-02 py-ds-03",
57
+ children: [/* @__PURE__ */ i("div", {
58
+ className: "flex items-center gap-ds-03",
59
+ children: [
60
+ /* @__PURE__ */ r(t, { className: "h-[12px] w-[12px] rounded bg-surface-raised-hover" }),
61
+ /* @__PURE__ */ r(t, { className: "h-[12px] w-[80px] bg-surface-raised-hover" }),
62
+ /* @__PURE__ */ r(t, { className: "h-[16px] w-[20px] rounded-ds-full bg-surface-raised-hover" })
63
+ ]
64
+ }), /* @__PURE__ */ r(t, { className: "h-ico-sm w-ico-sm rounded bg-surface-raised-hover" })]
65
+ }), Array.from({ length: a }).map((e, o) => /* @__PURE__ */ i("div", {
66
+ className: "rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-04",
67
+ style: { animationDelay: `${(n * a + o) * 50}ms` },
68
+ children: [/* @__PURE__ */ i("div", {
69
+ className: "space-y-ds-03",
70
+ children: [/* @__PURE__ */ r(t, { className: "h-[12px] w-4/5 bg-surface-raised-hover" }), /* @__PURE__ */ r(t, { className: "h-[12px] w-3/5 bg-surface-raised-hover" })]
71
+ }), /* @__PURE__ */ i("div", {
72
+ className: "flex items-center justify-between pt-ds-04",
73
+ children: [/* @__PURE__ */ i("div", {
74
+ className: "flex items-center gap-ds-02b",
75
+ children: [/* @__PURE__ */ r(t, { className: "h-ico-md w-ico-md rounded-ds-full bg-surface-raised-hover" }), /* @__PURE__ */ r(t, { className: "h-ds-03 w-[64px] bg-surface-raised-hover" })]
76
+ }), /* @__PURE__ */ r(t, { className: "h-[16px] w-ds-lg rounded-ds-full bg-surface-raised-hover" })]
77
+ })]
78
+ }, `card-${n}-${o}`))]
79
+ }, `col-${n}`))
80
+ });
81
+ });
82
+ s.displayName = "BoardSkeleton";
83
+ var c = n.forwardRef(function({ rows: n = 6, showAvatar: a = !0, className: o, ...s }, c) {
84
+ return /* @__PURE__ */ r("div", {
85
+ ref: c,
86
+ ...s,
87
+ className: e("flex flex-col", o),
88
+ children: Array.from({ length: n }).map((o, s) => /* @__PURE__ */ i("div", {
89
+ className: e("flex items-center gap-ds-04 py-ds-04", s < n - 1 && "border-b border-surface-border-strong"),
90
+ style: { animationDelay: `${s * 50}ms` },
91
+ children: [
92
+ a && /* @__PURE__ */ r(t, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-surface-raised-hover" }),
93
+ /* @__PURE__ */ i("div", {
94
+ className: "flex flex-1 flex-col gap-ds-02b",
95
+ children: [/* @__PURE__ */ r(t, { className: "h-[12px] w-2/5 bg-surface-raised-hover" }), /* @__PURE__ */ r(t, { className: "h-ds-03 w-3/5 bg-surface-raised-hover" })]
96
+ }),
97
+ /* @__PURE__ */ r(t, { className: "h-[20px] w-[56px] rounded-ds-full bg-surface-raised-hover" })
98
+ ]
99
+ }, `list-${s}`))
100
+ });
101
+ });
102
+ c.displayName = "ListSkeleton";
103
+ //#endregion
104
+ export { s as BoardSkeleton, a as CardSkeleton, c as ListSkeleton, o as TableSkeleton };