@devalok/shilp-sutra 0.33.2 → 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 (175) 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 -451
  81. package/dist/tailwind/index.js +2 -4
  82. package/dist/tailwind/preset.d.ts.map +1 -1
  83. package/dist/tailwind/preset.js +443 -468
  84. package/dist/ui/accordion.js +52 -60
  85. package/dist/ui/alert-dialog.js +111 -156
  86. package/dist/ui/alert.js +177 -99
  87. package/dist/ui/aspect-ratio.js +13 -16
  88. package/dist/ui/autocomplete.js +112 -148
  89. package/dist/ui/avatar.js +196 -169
  90. package/dist/ui/badge-group.js +2 -7
  91. package/dist/ui/badge-indicator.js +42 -51
  92. package/dist/ui/badge.js +2 -15
  93. package/dist/ui/banner.js +76 -68
  94. package/dist/ui/breadcrumb.js +65 -84
  95. package/dist/ui/button-group.js +109 -102
  96. package/dist/ui/button-processing.js +69 -73
  97. package/dist/ui/button.js +393 -279
  98. package/dist/ui/card.js +151 -157
  99. package/dist/ui/charts/index.js +1002 -1319
  100. package/dist/ui/chat/index.js +2 -11
  101. package/dist/ui/checkbox.js +77 -100
  102. package/dist/ui/code.js +18 -32
  103. package/dist/ui/collapsible.js +21 -29
  104. package/dist/ui/color-input.js +453 -372
  105. package/dist/ui/color-swatch.js +60 -90
  106. package/dist/ui/combobox.js +244 -293
  107. package/dist/ui/container.js +18 -24
  108. package/dist/ui/context-menu.js +154 -203
  109. package/dist/ui/data-table-body.js +116 -213
  110. package/dist/ui/data-table-bulk-actions.js +43 -59
  111. package/dist/ui/data-table-card.js +84 -71
  112. package/dist/ui/data-table-context.js +39 -42
  113. package/dist/ui/data-table-header.js +98 -139
  114. package/dist/ui/data-table-pagination.js +69 -82
  115. package/dist/ui/data-table-toolbar.js +104 -130
  116. package/dist/ui/data-table.js +278 -354
  117. package/dist/ui/devalok-grain.js +77 -66
  118. package/dist/ui/dialog.js +122 -151
  119. package/dist/ui/dropdown-menu.js +152 -203
  120. package/dist/ui/file-upload.js +242 -266
  121. package/dist/ui/form.js +60 -56
  122. package/dist/ui/hover-card.js +54 -54
  123. package/dist/ui/icon-button.js +21 -26
  124. package/dist/ui/icon-context.js +17 -17
  125. package/dist/ui/icon-group.js +22 -29
  126. package/dist/ui/icon.js +201 -121
  127. package/dist/ui/index.js +74 -350
  128. package/dist/ui/input-otp.d.ts.map +1 -1
  129. package/dist/ui/input-otp.js +44 -48
  130. package/dist/ui/input.js +92 -169
  131. package/dist/ui/label.js +17 -22
  132. package/dist/ui/lib/date-utils.js +14 -11
  133. package/dist/ui/lib/motion.js +77 -36
  134. package/dist/ui/lib/utils.js +39 -16
  135. package/dist/ui/link.js +13 -24
  136. package/dist/ui/menubar.js +132 -210
  137. package/dist/ui/navigation-menu.js +164 -194
  138. package/dist/ui/number-input.js +72 -95
  139. package/dist/ui/pagination.js +122 -159
  140. package/dist/ui/popover.js +2 -131
  141. package/dist/ui/progress-ring.js +133 -143
  142. package/dist/ui/progress.js +51 -95
  143. package/dist/ui/radio.js +41 -50
  144. package/dist/ui/search-input.js +51 -53
  145. package/dist/ui/segmented-control.js +93 -114
  146. package/dist/ui/select.js +131 -157
  147. package/dist/ui/separator.js +15 -25
  148. package/dist/ui/sheet.js +135 -163
  149. package/dist/ui/sidebar.js +357 -600
  150. package/dist/ui/skeleton.js +179 -231
  151. package/dist/ui/slider.js +24 -34
  152. package/dist/ui/spinner.js +226 -205
  153. package/dist/ui/split-button.js +227 -276
  154. package/dist/ui/stack.js +56 -70
  155. package/dist/ui/stat-card.js +259 -251
  156. package/dist/ui/status-dot.js +67 -63
  157. package/dist/ui/stepper.js +119 -168
  158. package/dist/ui/switch.js +51 -54
  159. package/dist/ui/table.js +57 -90
  160. package/dist/ui/tabs.js +139 -156
  161. package/dist/ui/text.js +52 -59
  162. package/dist/ui/textarea.js +40 -57
  163. package/dist/ui/toast-types.js +0 -1
  164. package/dist/ui/toast.js +554 -536
  165. package/dist/ui/toaster.js +23 -33
  166. package/dist/ui/toggle-group.js +37 -41
  167. package/dist/ui/toggle.js +36 -40
  168. package/dist/ui/tooltip.js +80 -65
  169. package/dist/ui/tree-view/index.js +2 -6
  170. package/dist/ui/visually-hidden.js +12 -10
  171. package/llms-full.txt +1 -1
  172. package/llms.txt +12 -0
  173. package/package.json +3 -3
  174. package/dist/_chunks/date-time-picker.js +0 -851
  175. package/dist/_chunks/typing-indicator.js +0 -565
@@ -1,133 +1,101 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as c } from "react/jsx-runtime";
3
- import * as d from "react";
4
- import { IconChevronDown as x } from "@tabler/icons-react";
5
- import { Icon as v } from "../ui/icon.js";
6
- import { cn as u } from "../ui/lib/utils.js";
7
- import { springs as b } from "../ui/lib/motion.js";
8
- import { SearchInput as g } from "../ui/search-input.js";
9
- import { Button as w } from "../ui/button.js";
10
- import { B as C } from "../_chunks/badge-group.js";
11
- import { Select as S, SelectTrigger as N, SelectValue as F, SelectContent as B, SelectItem as h } from "../ui/select.js";
12
- import { MultiSelectPopover as y } from "./multi-select-popover.js";
13
- import { m as z } from "../_chunks/framer.js";
14
- const f = d.createContext({ size: "sm" }), I = d.forwardRef(({
15
- searchValue: s,
16
- onSearchChange: r,
17
- searchPlaceholder: i = "Search...",
18
- onClearAll: a,
19
- size: l = "sm",
20
- children: n,
21
- className: t,
22
- ...m
23
- }, o) => /* @__PURE__ */ e(f.Provider, { value: { size: l }, children: /* @__PURE__ */ c(
24
- "div",
25
- {
26
- ref: o,
27
- className: u("flex flex-wrap items-center gap-ds-03", t),
28
- role: "toolbar",
29
- "aria-label": "Filters",
30
- ...m,
31
- children: [
32
- r && /* @__PURE__ */ e(
33
- g,
34
- {
35
- size: l,
36
- value: s,
37
- onChange: (p) => r(p.target.value),
38
- onClear: s ? () => r("") : void 0,
39
- placeholder: i,
40
- className: "w-48"
41
- }
42
- ),
43
- n,
44
- a && /* @__PURE__ */ e(w, { variant: "ghost", size: l, onClick: a, children: "Clear all" })
45
- ]
46
- }
47
- ) }));
48
- I.displayName = "FilterBar";
49
- function E({
50
- label: s,
51
- value: r,
52
- onValueChange: i,
53
- options: a,
54
- allLabel: l = "All",
55
- className: n
56
- }) {
57
- const { size: t } = d.useContext(f);
58
- return /* @__PURE__ */ c(S, { value: r, onValueChange: i, children: [
59
- /* @__PURE__ */ e(
60
- N,
61
- {
62
- size: t,
63
- className: u("w-40", r !== "" && r !== "all" && "border-accent-7", n),
64
- children: /* @__PURE__ */ e(F, { placeholder: s })
65
- }
66
- ),
67
- /* @__PURE__ */ c(B, { children: [
68
- /* @__PURE__ */ e(h, { value: "all", children: l }),
69
- a.map((o) => /* @__PURE__ */ e(h, { value: o.value, children: o.label }, o.value))
70
- ] })
71
- ] });
2
+ import { a as e } from "../_chunks/framer.js";
3
+ import { springs as t } from "../ui/lib/motion.js";
4
+ import { cn as n } from "../ui/lib/utils.js";
5
+ import { Icon as r } from "../ui/icon.js";
6
+ import { n as i } from "../_chunks/badge-group.js";
7
+ import { Button as a } from "../ui/button.js";
8
+ import { Select as o, SelectContent as s, SelectItem as c, SelectTrigger as l, SelectValue as u } from "../ui/select.js";
9
+ import { SearchInput as d } from "../ui/search-input.js";
10
+ import { MultiSelectPopover as f } from "./multi-select-popover.js";
11
+ import * as p from "react";
12
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
13
+ import { IconChevronDown as g } from "@tabler/icons-react";
14
+ //#region src/composed/filter-bar.tsx
15
+ var _ = p.createContext({ size: "sm" }), v = p.forwardRef(({ searchValue: e, onSearchChange: t, searchPlaceholder: r = "Search...", onClearAll: i, size: o = "sm", children: s, className: c, ...l }, u) => /* @__PURE__ */ m(_.Provider, {
16
+ value: { size: o },
17
+ children: /* @__PURE__ */ h("div", {
18
+ ref: u,
19
+ className: n("flex flex-wrap items-center gap-ds-03", c),
20
+ role: "toolbar",
21
+ "aria-label": "Filters",
22
+ ...l,
23
+ children: [
24
+ t && /* @__PURE__ */ m(d, {
25
+ size: o,
26
+ value: e,
27
+ onChange: (e) => t(e.target.value),
28
+ onClear: e ? () => t("") : void 0,
29
+ placeholder: r,
30
+ className: "w-48"
31
+ }),
32
+ s,
33
+ i && /* @__PURE__ */ m(a, {
34
+ variant: "ghost",
35
+ size: o,
36
+ onClick: i,
37
+ children: "Clear all"
38
+ })
39
+ ]
40
+ })
41
+ }));
42
+ v.displayName = "FilterBar";
43
+ function y({ label: e, value: t, onValueChange: r, options: i, allLabel: a = "All", className: d }) {
44
+ let { size: f } = p.useContext(_);
45
+ return /* @__PURE__ */ h(o, {
46
+ value: t,
47
+ onValueChange: r,
48
+ children: [/* @__PURE__ */ m(l, {
49
+ size: f,
50
+ className: n("w-40", t !== "" && t !== "all" && "border-accent-7", d),
51
+ children: /* @__PURE__ */ m(u, { placeholder: e })
52
+ }), /* @__PURE__ */ h(s, { children: [/* @__PURE__ */ m(c, {
53
+ value: "all",
54
+ children: a
55
+ }), i.map((e) => /* @__PURE__ */ m(c, {
56
+ value: e.value,
57
+ children: e.label
58
+ }, e.value))] })]
59
+ });
72
60
  }
73
- function G({
74
- label: s,
75
- value: r,
76
- onValueChange: i,
77
- options: a,
78
- className: l
79
- }) {
80
- const { size: n } = d.useContext(f), t = r.length, m = d.useMemo(
81
- () => a.map((p) => ({ id: p.value, label: p.label })),
82
- [a]
83
- ), o = {
84
- xs: "h-ds-xs-plus text-ds-sm px-ds-02",
85
- sm: "h-ds-sm text-ds-sm px-ds-03",
86
- md: "h-ds-md text-ds-md px-ds-04"
87
- };
88
- return /* @__PURE__ */ e(
89
- y,
90
- {
91
- items: m,
92
- value: r,
93
- onValueChange: i,
94
- searchPlaceholder: `Search ${s.toLowerCase()}...`,
95
- children: /* @__PURE__ */ c(
96
- "button",
97
- {
98
- type: "button",
99
- className: u(
100
- "flex items-center justify-between gap-ds-02 whitespace-nowrap rounded-ds-md border bg-surface-raised-hover text-surface-fg",
101
- "hover:bg-surface-raised-active transition-colors duration-fast-01 ease-productive-standard",
102
- o[n],
103
- t > 0 ? "border-accent-7" : "border-surface-border-strong",
104
- "w-40",
105
- l
106
- ),
107
- children: [
108
- /* @__PURE__ */ c("span", { className: "flex items-center gap-ds-02 truncate", children: [
109
- /* @__PURE__ */ e("span", { children: s }),
110
- t > 0 && /* @__PURE__ */ e(
111
- z.span,
112
- {
113
- initial: { scale: 0.8 },
114
- animate: { scale: 1 },
115
- transition: b.bouncy,
116
- className: "inline-flex",
117
- children: /* @__PURE__ */ e(C, { size: "xs", variant: "solid", className: "ml-ds-01", children: t })
118
- },
119
- t
120
- )
121
- ] }),
122
- /* @__PURE__ */ e(v, { icon: x, size: "xs", className: "opacity-50 shrink-0" })
123
- ]
124
- }
125
- )
126
- }
127
- );
61
+ function b({ label: a, value: o, onValueChange: s, options: c, className: l }) {
62
+ let { size: u } = p.useContext(_), d = o.length;
63
+ return /* @__PURE__ */ m(f, {
64
+ items: p.useMemo(() => c.map((e) => ({
65
+ id: e.value,
66
+ label: e.label
67
+ })), [c]),
68
+ value: o,
69
+ onValueChange: s,
70
+ searchPlaceholder: `Search ${a.toLowerCase()}...`,
71
+ children: /* @__PURE__ */ h("button", {
72
+ type: "button",
73
+ className: n("flex items-center justify-between gap-ds-02 whitespace-nowrap rounded-ds-md border bg-surface-raised-hover text-surface-fg", "hover:bg-surface-raised-active transition-colors duration-fast-01 ease-productive-standard", {
74
+ xs: "h-ds-xs-plus text-ds-sm px-ds-02",
75
+ sm: "h-ds-sm text-ds-sm px-ds-03",
76
+ md: "h-ds-md text-ds-md px-ds-04"
77
+ }[u], d > 0 ? "border-accent-7" : "border-surface-border-strong", "w-40", l),
78
+ children: [/* @__PURE__ */ h("span", {
79
+ className: "flex items-center gap-ds-02 truncate",
80
+ children: [/* @__PURE__ */ m("span", { children: a }), d > 0 && /* @__PURE__ */ m(e.span, {
81
+ initial: { scale: .8 },
82
+ animate: { scale: 1 },
83
+ transition: t.bouncy,
84
+ className: "inline-flex",
85
+ children: /* @__PURE__ */ m(i, {
86
+ size: "xs",
87
+ variant: "solid",
88
+ className: "ml-ds-01",
89
+ children: d
90
+ })
91
+ }, d)]
92
+ }), /* @__PURE__ */ m(r, {
93
+ icon: g,
94
+ size: "xs",
95
+ className: "opacity-50 shrink-0"
96
+ })]
97
+ })
98
+ });
128
99
  }
129
- export {
130
- I as FilterBar,
131
- G as FilterMultiSelect,
132
- E as FilterSelect
133
- };
100
+ //#endregion
101
+ export { v as FilterBar, b as FilterMultiSelect, y as FilterSelect };
@@ -1,47 +1,63 @@
1
1
  "use client";
2
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
- import * as m from "react";
4
- import { cn as l } from "../ui/lib/utils.js";
5
- import { springs as u } from "../ui/lib/motion.js";
6
- import { IconChevronDown as x } from "@tabler/icons-react";
7
- import { Icon as N } from "../ui/icon.js";
8
- import { Collapsible as h, CollapsibleTrigger as g, CollapsibleContent as y } from "../ui/collapsible.js";
9
- import { m as v } from "../_chunks/framer.js";
10
- const C = m.forwardRef(({
11
- title: c,
12
- description: r,
13
- collapsible: d = !1,
14
- defaultOpen: a = !0,
15
- children: o,
16
- className: t,
17
- ...n
18
- }, f) => {
19
- const i = /* @__PURE__ */ s("div", { className: "flex flex-col gap-ds-01", children: [
20
- /* @__PURE__ */ e("span", { className: "text-ds-md font-semibold text-surface-fg font-sans", children: c }),
21
- r && /* @__PURE__ */ e("span", { className: "text-ds-sm text-surface-fg-muted font-sans", children: r })
22
- ] }), [p, b] = m.useState(a);
23
- return d ? /* @__PURE__ */ s(h, { defaultOpen: a, onOpenChange: b, className: l("space-y-ds-04", t), ...n, children: [
24
- /* @__PURE__ */ s(g, { className: "flex w-full items-center justify-between py-ds-02 group", children: [
25
- i,
26
- /* @__PURE__ */ e(
27
- v.span,
28
- {
29
- animate: { rotate: p ? 180 : 0 },
30
- transition: u.snappy,
31
- className: "inline-flex",
32
- children: /* @__PURE__ */ e(N, { icon: x, size: "sm", className: "text-surface-fg-muted" })
33
- }
34
- )
35
- ] }),
36
- /* @__PURE__ */ e("div", { className: "border-b border-surface-border-subtle" }),
37
- /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e("div", { className: "space-y-ds-04 pt-ds-02", children: o }) })
38
- ] }) : /* @__PURE__ */ s("div", { ref: f, className: l("space-y-ds-04", t), ...n, children: [
39
- i,
40
- /* @__PURE__ */ e("div", { className: "border-b border-surface-border-subtle" }),
41
- /* @__PURE__ */ e("div", { className: "space-y-ds-04", children: o })
42
- ] });
2
+ import { a as e } from "../_chunks/framer.js";
3
+ import { springs as t } from "../ui/lib/motion.js";
4
+ import { cn as n } from "../ui/lib/utils.js";
5
+ import { Icon as r } from "../ui/icon.js";
6
+ import { Collapsible as i, CollapsibleContent as a, CollapsibleTrigger as o } from "../ui/collapsible.js";
7
+ import * as s from "react";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { IconChevronDown as u } from "@tabler/icons-react";
10
+ //#region src/composed/form-section.tsx
11
+ var d = s.forwardRef(({ title: d, description: f, collapsible: p = !1, defaultOpen: m = !0, children: h, className: g, ..._ }, v) => {
12
+ let y = /* @__PURE__ */ l("div", {
13
+ className: "flex flex-col gap-ds-01",
14
+ children: [/* @__PURE__ */ c("span", {
15
+ className: "text-ds-md font-semibold text-surface-fg font-sans",
16
+ children: d
17
+ }), f && /* @__PURE__ */ c("span", {
18
+ className: "text-ds-sm text-surface-fg-muted font-sans",
19
+ children: f
20
+ })]
21
+ }), [b, x] = s.useState(m);
22
+ return p ? /* @__PURE__ */ l(i, {
23
+ defaultOpen: m,
24
+ onOpenChange: x,
25
+ className: n("space-y-ds-04", g),
26
+ ..._,
27
+ children: [
28
+ /* @__PURE__ */ l(o, {
29
+ className: "flex w-full items-center justify-between py-ds-02 group",
30
+ children: [y, /* @__PURE__ */ c(e.span, {
31
+ animate: { rotate: b ? 180 : 0 },
32
+ transition: t.snappy,
33
+ className: "inline-flex",
34
+ children: /* @__PURE__ */ c(r, {
35
+ icon: u,
36
+ size: "sm",
37
+ className: "text-surface-fg-muted"
38
+ })
39
+ })]
40
+ }),
41
+ /* @__PURE__ */ c("div", { className: "border-b border-surface-border-subtle" }),
42
+ /* @__PURE__ */ c(a, { children: /* @__PURE__ */ c("div", {
43
+ className: "space-y-ds-04 pt-ds-02",
44
+ children: h
45
+ }) })
46
+ ]
47
+ }) : /* @__PURE__ */ l("div", {
48
+ ref: v,
49
+ className: n("space-y-ds-04", g),
50
+ ..._,
51
+ children: [
52
+ y,
53
+ /* @__PURE__ */ c("div", { className: "border-b border-surface-border-subtle" }),
54
+ /* @__PURE__ */ c("div", {
55
+ className: "space-y-ds-04",
56
+ children: h
57
+ })
58
+ ]
59
+ });
43
60
  });
44
- C.displayName = "FormSection";
45
- export {
46
- C as FormSection
47
- };
61
+ d.displayName = "FormSection";
62
+ //#endregion
63
+ export { d as FormSection };
@@ -1,48 +1,35 @@
1
1
  "use client";
2
- import { jsx as n } from "react/jsx-runtime";
3
- import * as m from "react";
4
- import { useRef as i, useState as p, useEffect as l } from "react";
5
- import { cn as c } from "../ui/lib/utils.js";
6
- const d = m.forwardRef(
7
- function({ isLoading: e, className: u, ...f }, s) {
8
- const o = i(null), [t, r] = p(!0), a = i(void 0);
9
- return l(() => () => {
10
- clearTimeout(a.current);
11
- }, []), l(() => {
12
- o.current && e && r(!1);
13
- }, [e]), /* @__PURE__ */ n(
14
- "div",
15
- {
16
- ref: s,
17
- role: "progressbar",
18
- "aria-label": "Page loading",
19
- "aria-hidden": !e,
20
- "aria-valuetext": e ? "Loading" : void 0,
21
- ...f,
22
- className: c("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", u),
23
- children: /* @__PURE__ */ n(
24
- "div",
25
- {
26
- ref: o,
27
- className: c(
28
- "h-full bg-accent-9 transition-[width,opacity] duration-slow-01 ease-productive-standard",
29
- e && "w-4/5 opacity-100",
30
- !e && t && "w-0 opacity-0",
31
- !e && !t && "w-full opacity-100"
32
- ),
33
- style: !e && !t ? { boxShadow: "0 0 8px var(--color-accent-9)" } : void 0,
34
- onTransitionEnd: () => {
35
- e || (a.current = setTimeout(() => {
36
- r(!0);
37
- }, 200));
38
- }
39
- }
40
- )
41
- }
42
- );
43
- }
44
- );
45
- d.displayName = "GlobalLoading";
46
- export {
47
- d as GlobalLoading
48
- };
2
+ import { cn as e } from "../ui/lib/utils.js";
3
+ import * as t from "react";
4
+ import { useEffect as n, useRef as r, useState as i } from "react";
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ //#region src/composed/global-loading.tsx
7
+ var o = t.forwardRef(function({ isLoading: t, className: o, ...s }, c) {
8
+ let l = r(null), [u, d] = i(!0), f = r(void 0);
9
+ return n(() => () => {
10
+ clearTimeout(f.current);
11
+ }, []), n(() => {
12
+ l.current && t && d(!1);
13
+ }, [t]), /* @__PURE__ */ a("div", {
14
+ ref: c,
15
+ role: "progressbar",
16
+ "aria-label": "Page loading",
17
+ "aria-hidden": !t,
18
+ "aria-valuetext": t ? "Loading" : void 0,
19
+ ...s,
20
+ className: e("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", o),
21
+ children: /* @__PURE__ */ a("div", {
22
+ ref: l,
23
+ className: e("h-full bg-accent-9 transition-[width,opacity] duration-slow-01 ease-productive-standard", t && "w-4/5 opacity-100", !t && u && "w-0 opacity-0", !t && !u && "w-full opacity-100"),
24
+ style: !t && !u ? { boxShadow: "0 0 8px var(--color-accent-9)" } : void 0,
25
+ onTransitionEnd: () => {
26
+ t || (f.current = setTimeout(() => {
27
+ d(!0);
28
+ }, 200));
29
+ }
30
+ })
31
+ });
32
+ });
33
+ o.displayName = "GlobalLoading";
34
+ //#endregion
35
+ export { o as GlobalLoading };
@@ -1,93 +1,35 @@
1
1
  "use client";
2
- import { PageHeader as o } from "./page-header.js";
3
- import { ContentCard as a, contentCardVariants as i } from "./content-card.js";
4
- import { StatusBadge as p, statusBadgeVariants as f } from "./status-badge.js";
5
- import { EmptyState as x } from "./empty-state.js";
6
- import { AvatarGroup as s } from "./avatar-group.js";
7
- import { PriorityIndicator as d } from "./priority-indicator.js";
8
- import { RichTextEditor as P, RichTextViewer as u } from "./rich-text-editor.js";
9
- import { AudioPlayer as g, AudioWaveform as C, RichChatInput as D, useVoiceRecorder as E } from "./rich-chat-input.js";
10
- import { BoardSkeleton as v, CardSkeleton as y, ListSkeleton as B, TableSkeleton as h } from "./loading-skeleton.js";
11
- import { DashboardSkeleton as M, ProjectListSkeleton as I, TaskDetailSkeleton as R } from "./page-skeletons.js";
12
- import { ErrorBoundary as b, ErrorDisplay as j } from "./error-boundary.js";
13
- import { GlobalLoading as A } from "./global-loading.js";
14
- import { CommandPalette as L } from "./command-palette.js";
15
- import { MemberPicker as H } from "./member-picker.js";
16
- import { SimpleTooltip as O } from "./simple-tooltip.js";
17
- import { ScheduleView as q } from "./schedule-view.js";
18
- import { ConfirmDialog as J } from "./confirm-dialog.js";
19
- import { ActivityFeed as Q, groupItemsByTime as U } from "./activity-feed.js";
20
- import { MultiSelectPopover as Z } from "./multi-select-popover.js";
21
- import { FilterBar as $, FilterMultiSelect as ee, FilterSelect as re } from "./filter-bar.js";
22
- import { InlineEdit as te } from "./inline-edit.js";
23
- import { FormSection as ie } from "./form-section.js";
24
- import { BulkActionBar as pe } from "./bulk-action-bar.js";
25
- import { DeadlineIndicator as le } from "./deadline-indicator.js";
26
- import { MasterDetail as ne } from "./master-detail.js";
27
- import { ResponsiveOverlay as ce } from "./responsive-overlay.js";
28
- import { MarkdownViewer as ke } from "./markdown-viewer.js";
29
- import { EmojiPicker as ue, EmojiPickerPopover as Se } from "./emoji-picker.js";
30
- import { E as Ce, c as De } from "../_chunks/mention-suggestion.js";
31
- import { F as Te } from "../_chunks/file-preview.js";
32
- import { getInitials as ye } from "./lib/string-utils.js";
33
- import { C as he, u as Fe } from "../_chunks/use-calendar.js";
34
- import { D as Ie, a as Re, b as Ve, M as be, P as je, T as we, Y as Ae } from "../_chunks/date-time-picker.js";
35
- export {
36
- Q as ActivityFeed,
37
- g as AudioPlayer,
38
- C as AudioWaveform,
39
- s as AvatarGroup,
40
- v as BoardSkeleton,
41
- pe as BulkActionBar,
42
- he as CalendarGrid,
43
- y as CardSkeleton,
44
- L as CommandPalette,
45
- J as ConfirmDialog,
46
- a as ContentCard,
47
- M as DashboardSkeleton,
48
- Ie as DatePicker,
49
- Re as DateRangePicker,
50
- Ve as DateTimePicker,
51
- le as DeadlineIndicator,
52
- Ce as EmojiNode,
53
- ue as EmojiPicker,
54
- Se as EmojiPickerPopover,
55
- x as EmptyState,
56
- b as ErrorBoundary,
57
- j as ErrorDisplay,
58
- Te as FilePreview,
59
- $ as FilterBar,
60
- ee as FilterMultiSelect,
61
- re as FilterSelect,
62
- ie as FormSection,
63
- A as GlobalLoading,
64
- te as InlineEdit,
65
- B as ListSkeleton,
66
- ke as MarkdownViewer,
67
- ne as MasterDetail,
68
- H as MemberPicker,
69
- be as MonthPicker,
70
- Z as MultiSelectPopover,
71
- o as PageHeader,
72
- je as Presets,
73
- d as PriorityIndicator,
74
- I as ProjectListSkeleton,
75
- ce as ResponsiveOverlay,
76
- D as RichChatInput,
77
- P as RichTextEditor,
78
- u as RichTextViewer,
79
- q as ScheduleView,
80
- O as SimpleTooltip,
81
- p as StatusBadge,
82
- h as TableSkeleton,
83
- R as TaskDetailSkeleton,
84
- we as TimePicker,
85
- Ae as YearPicker,
86
- i as contentCardVariants,
87
- De as createEmojiSuggestion,
88
- ye as getInitials,
89
- U as groupItemsByTime,
90
- f as statusBadgeVariants,
91
- Fe as useCalendar,
92
- E as useVoiceRecorder
93
- };
2
+ import { getInitials as e } from "./lib/string-utils.js";
3
+ import { ActivityFeed as t, groupItemsByTime as n } from "./activity-feed.js";
4
+ import { AvatarGroup as r } from "./avatar-group.js";
5
+ import { BulkActionBar as i } from "./bulk-action-bar.js";
6
+ import { CommandPalette as a } from "./command-palette.js";
7
+ import { ConfirmDialog as o } from "./confirm-dialog.js";
8
+ import { ContentCard as s, contentCardVariants as c } from "./content-card.js";
9
+ import { SimpleTooltip as l } from "./simple-tooltip.js";
10
+ import { DeadlineIndicator as u } from "./deadline-indicator.js";
11
+ import { EmojiPicker as d, EmojiPickerPopover as f } from "./emoji-picker.js";
12
+ import { EmptyState as p } from "./empty-state.js";
13
+ import { ErrorBoundary as m, ErrorDisplay as h } from "./error-boundary.js";
14
+ import { t as g } from "../_chunks/file-preview.js";
15
+ import { MultiSelectPopover as _ } from "./multi-select-popover.js";
16
+ import { FilterBar as v, FilterMultiSelect as y, FilterSelect as b } from "./filter-bar.js";
17
+ import { FormSection as x } from "./form-section.js";
18
+ import { GlobalLoading as S } from "./global-loading.js";
19
+ import { PageHeader as C } from "./page-header.js";
20
+ import { StatusBadge as w, statusBadgeVariants as T } from "./status-badge.js";
21
+ import { PriorityIndicator as E } from "./priority-indicator.js";
22
+ import { n as D, r as O } from "../_chunks/mention-suggestion.js";
23
+ import { RichTextEditor as k, RichTextViewer as A } from "./rich-text-editor.js";
24
+ import { b as j, n as M, r as N, t as P } from "../_chunks/rich-chat-input.js";
25
+ import { n as F, t as I } from "../_chunks/use-calendar.js";
26
+ import { a as L, i as R, n as z, o as B, r as V, s as H, t as U } from "../_chunks/date-picker.js";
27
+ import { BoardSkeleton as W, CardSkeleton as G, ListSkeleton as K, TableSkeleton as q } from "./loading-skeleton.js";
28
+ import { DashboardSkeleton as J, ProjectListSkeleton as Y, TaskDetailSkeleton as X } from "./page-skeletons.js";
29
+ import { MemberPicker as Z } from "./member-picker.js";
30
+ import { ScheduleView as Q } from "./schedule-view.js";
31
+ import { InlineEdit as $ } from "./inline-edit.js";
32
+ import { MasterDetail as ee } from "./master-detail.js";
33
+ import { ResponsiveOverlay as te } from "./responsive-overlay.js";
34
+ import { MarkdownViewer as ne } from "./markdown-viewer.js";
35
+ export { t as ActivityFeed, N as AudioPlayer, j as AudioWaveform, r as AvatarGroup, W as BoardSkeleton, i as BulkActionBar, F as CalendarGrid, G as CardSkeleton, a as CommandPalette, o as ConfirmDialog, s as ContentCard, J as DashboardSkeleton, L as DatePicker, V as DateRangePicker, U as DateTimePicker, u as DeadlineIndicator, O as EmojiNode, d as EmojiPicker, f as EmojiPickerPopover, p as EmptyState, m as ErrorBoundary, h as ErrorDisplay, g as FilePreview, v as FilterBar, y as FilterMultiSelect, b as FilterSelect, x as FormSection, S as GlobalLoading, $ as InlineEdit, K as ListSkeleton, ne as MarkdownViewer, ee as MasterDetail, Z as MemberPicker, B as MonthPicker, _ as MultiSelectPopover, C as PageHeader, R as Presets, E as PriorityIndicator, Y as ProjectListSkeleton, te as ResponsiveOverlay, P as RichChatInput, k as RichTextEditor, A as RichTextViewer, Q as ScheduleView, l as SimpleTooltip, w as StatusBadge, q as TableSkeleton, X as TaskDetailSkeleton, z as TimePicker, H as YearPicker, c as contentCardVariants, D as createEmojiSuggestion, e as getInitials, n as groupItemsByTime, T as statusBadgeVariants, I as useCalendar, M as useVoiceRecorder };