@devalok/shilp-sutra 0.17.2 → 0.18.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.
Files changed (318) hide show
  1. package/dist/_chunks/avatar.js +21 -19
  2. package/dist/_chunks/button-group.js +27 -0
  3. package/dist/_chunks/button.js +53 -35
  4. package/dist/_chunks/card.js +50 -0
  5. package/dist/_chunks/checkbox.js +11 -9
  6. package/dist/_chunks/date-utils.js +13 -0
  7. package/dist/_chunks/form.js +20 -20
  8. package/dist/_chunks/link-context.js +19 -0
  9. package/dist/_chunks/motion.js +1376 -0
  10. package/dist/_chunks/motion2.js +35 -0
  11. package/dist/_chunks/primitives.js +3499 -3920
  12. package/dist/_chunks/sidebar.js +225 -211
  13. package/dist/_chunks/spinner.js +58 -28
  14. package/dist/_chunks/tiptap.js +1 -1
  15. package/dist/_chunks/tooltip.js +27 -10
  16. package/dist/_chunks/tree-view.js +180 -178
  17. package/dist/_chunks/use-calendar.js +531 -515
  18. package/dist/_chunks/utils.js +3 -3
  19. package/dist/_chunks/vendor-client.js +1792 -1049
  20. package/dist/_chunks/vendor-utils.js +5123 -1169
  21. package/dist/composed/activity-feed.d.ts.map +1 -1
  22. package/dist/composed/activity-feed.js +71 -74
  23. package/dist/composed/avatar-group.js +36 -36
  24. package/dist/composed/command-palette.d.ts +1 -1
  25. package/dist/composed/command-palette.d.ts.map +1 -1
  26. package/dist/composed/command-palette.js +207 -158
  27. package/dist/composed/confirm-dialog.d.ts +3 -5
  28. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  29. package/dist/composed/confirm-dialog.js +46 -41
  30. package/dist/composed/content-card.d.ts +1 -1
  31. package/dist/composed/content-card.js +29 -29
  32. package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
  33. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  34. package/dist/composed/date-picker/date-picker.d.ts +1 -1
  35. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  36. package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
  37. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  38. package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
  39. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  40. package/dist/composed/date-picker/month-picker.d.ts +1 -1
  41. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  42. package/dist/composed/date-picker/presets.d.ts +1 -1
  43. package/dist/composed/date-picker/presets.d.ts.map +1 -1
  44. package/dist/composed/date-picker/time-picker.d.ts +1 -1
  45. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  46. package/dist/composed/date-picker/year-picker.d.ts +1 -1
  47. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  48. package/dist/composed/empty-state.d.ts +1 -0
  49. package/dist/composed/empty-state.d.ts.map +1 -1
  50. package/dist/composed/empty-state.js +51 -47
  51. package/dist/composed/error-boundary.d.ts +1 -1
  52. package/dist/composed/error-boundary.d.ts.map +1 -1
  53. package/dist/composed/error-boundary.js +48 -48
  54. package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
  55. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
  56. package/dist/composed/global-loading.d.ts +1 -1
  57. package/dist/composed/global-loading.d.ts.map +1 -1
  58. package/dist/composed/global-loading.js +23 -20
  59. package/dist/composed/index.d.ts +2 -4
  60. package/dist/composed/index.d.ts.map +1 -1
  61. package/dist/composed/index.js +26 -29
  62. package/dist/composed/loading-skeleton.d.ts +1 -1
  63. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  64. package/dist/composed/loading-skeleton.js +92 -87
  65. package/dist/composed/member-picker.d.ts +1 -1
  66. package/dist/composed/member-picker.d.ts.map +1 -1
  67. package/dist/composed/member-picker.js +47 -43
  68. package/dist/composed/page-header.js +36 -36
  69. package/dist/composed/page-skeletons.d.ts +9 -3
  70. package/dist/composed/page-skeletons.d.ts.map +1 -1
  71. package/dist/composed/page-skeletons.js +58 -58
  72. package/dist/composed/priority-indicator.js +19 -19
  73. package/dist/composed/rich-text-editor.d.ts +3 -3
  74. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  75. package/dist/composed/rich-text-editor.js +316 -309
  76. package/dist/composed/schedule-view.js +88 -88
  77. package/dist/composed/simple-tooltip.d.ts +2 -5
  78. package/dist/composed/simple-tooltip.d.ts.map +1 -1
  79. package/dist/composed/simple-tooltip.js +19 -14
  80. package/dist/composed/status-badge.d.ts +2 -1
  81. package/dist/composed/status-badge.d.ts.map +1 -1
  82. package/dist/composed/status-badge.js +76 -63
  83. package/dist/hooks/index.d.ts +2 -1
  84. package/dist/hooks/index.d.ts.map +1 -1
  85. package/dist/hooks/index.js +3 -4
  86. package/dist/hooks/use-toast.d.ts +15 -45
  87. package/dist/hooks/use-toast.d.ts.map +1 -1
  88. package/dist/hooks/use-toast.js +2 -95
  89. package/dist/motion/index.d.ts +4 -0
  90. package/dist/motion/index.d.ts.map +1 -0
  91. package/dist/motion/index.js +10 -0
  92. package/dist/motion/motion-provider.d.ts +18 -0
  93. package/dist/motion/motion-provider.d.ts.map +1 -0
  94. package/dist/motion/motion-provider.js +24 -0
  95. package/dist/motion/primitives-index.d.ts +3 -0
  96. package/dist/motion/primitives-index.d.ts.map +1 -0
  97. package/dist/motion/primitives-index.js +11 -0
  98. package/dist/motion/primitives.d.ts +38 -0
  99. package/dist/motion/primitives.d.ts.map +1 -0
  100. package/dist/motion/primitives.js +187 -0
  101. package/dist/shell/app-command-palette.d.ts +14 -5
  102. package/dist/shell/app-command-palette.d.ts.map +1 -1
  103. package/dist/shell/app-command-palette.js +152 -130
  104. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  105. package/dist/shell/bottom-navbar.js +90 -92
  106. package/dist/shell/command-registry.d.ts +23 -0
  107. package/dist/shell/command-registry.d.ts.map +1 -0
  108. package/dist/shell/command-registry.js +18 -0
  109. package/dist/shell/index.d.ts +2 -1
  110. package/dist/shell/index.d.ts.map +1 -1
  111. package/dist/shell/index.js +14 -11
  112. package/dist/shell/link-context.d.ts +6 -10
  113. package/dist/shell/link-context.d.ts.map +1 -1
  114. package/dist/shell/link-context.js +3 -16
  115. package/dist/shell/notification-center.d.ts.map +1 -1
  116. package/dist/shell/notification-center.js +137 -132
  117. package/dist/shell/notification-preferences.d.ts +10 -5
  118. package/dist/shell/notification-preferences.d.ts.map +1 -1
  119. package/dist/shell/notification-preferences.js +168 -165
  120. package/dist/shell/sidebar.js +119 -119
  121. package/dist/shell/top-bar.js +65 -65
  122. package/dist/tailwind/index.cjs +118 -297
  123. package/dist/tailwind/preset.d.ts.map +1 -1
  124. package/dist/tailwind/preset.js +118 -297
  125. package/dist/tokens/generate-scale.d.ts +86 -0
  126. package/dist/tokens/generate-scale.d.ts.map +1 -0
  127. package/dist/tokens/primitives.css +415 -187
  128. package/dist/tokens/semantic.css +244 -270
  129. package/dist/tokens/typography.css +6 -6
  130. package/dist/ui/accordion.d.ts.map +1 -1
  131. package/dist/ui/accordion.js +32 -22
  132. package/dist/ui/alert-dialog.d.ts +4 -1
  133. package/dist/ui/alert-dialog.d.ts.map +1 -1
  134. package/dist/ui/alert-dialog.js +114 -73
  135. package/dist/ui/alert.d.ts +6 -1
  136. package/dist/ui/alert.d.ts.map +1 -1
  137. package/dist/ui/alert.js +64 -49
  138. package/dist/ui/aspect-ratio.d.ts +2 -1
  139. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  140. package/dist/ui/aspect-ratio.js +14 -4
  141. package/dist/ui/autocomplete.d.ts +11 -2
  142. package/dist/ui/autocomplete.d.ts.map +1 -1
  143. package/dist/ui/autocomplete.js +82 -57
  144. package/dist/ui/avatar.d.ts.map +1 -1
  145. package/dist/ui/avatar.js +45 -34
  146. package/dist/ui/badge.d.ts +1 -1
  147. package/dist/ui/badge.d.ts.map +1 -1
  148. package/dist/ui/badge.js +70 -65
  149. package/dist/ui/banner.d.ts.map +1 -1
  150. package/dist/ui/banner.js +53 -39
  151. package/dist/ui/breadcrumb.d.ts +2 -0
  152. package/dist/ui/breadcrumb.d.ts.map +1 -1
  153. package/dist/ui/breadcrumb.js +21 -21
  154. package/dist/ui/button.d.ts +10 -1
  155. package/dist/ui/button.d.ts.map +1 -1
  156. package/dist/ui/button.js +103 -67
  157. package/dist/ui/card.d.ts +2 -2
  158. package/dist/ui/card.d.ts.map +1 -1
  159. package/dist/ui/card.js +61 -53
  160. package/dist/ui/charts/_internal/animation.d.ts +1 -1
  161. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  162. package/dist/ui/charts/area-chart.d.ts +3 -5
  163. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  164. package/dist/ui/charts/bar-chart.d.ts +3 -5
  165. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  166. package/dist/ui/charts/chart-container.d.ts +2 -5
  167. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  168. package/dist/ui/charts/gauge-chart.d.ts +3 -5
  169. package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
  170. package/dist/ui/charts/index.js +1204 -1095
  171. package/dist/ui/charts/line-chart.d.ts +3 -5
  172. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  173. package/dist/ui/charts/pie-chart.d.ts +2 -5
  174. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  175. package/dist/ui/charts/radar-chart.d.ts +3 -5
  176. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  177. package/dist/ui/charts/sparkline.d.ts +5 -5
  178. package/dist/ui/charts/sparkline.d.ts.map +1 -1
  179. package/dist/ui/checkbox.d.ts.map +1 -1
  180. package/dist/ui/checkbox.js +31 -19
  181. package/dist/ui/chip.d.ts +3 -2
  182. package/dist/ui/chip.d.ts.map +1 -1
  183. package/dist/ui/chip.js +62 -54
  184. package/dist/ui/code.js +16 -16
  185. package/dist/ui/collapsible.d.ts.map +1 -1
  186. package/dist/ui/collapsible.js +23 -15
  187. package/dist/ui/color-input.d.ts +1 -1
  188. package/dist/ui/color-input.d.ts.map +1 -1
  189. package/dist/ui/color-input.js +27 -27
  190. package/dist/ui/combobox.d.ts +2 -0
  191. package/dist/ui/combobox.d.ts.map +1 -1
  192. package/dist/ui/combobox.js +177 -166
  193. package/dist/ui/context-menu.d.ts +4 -2
  194. package/dist/ui/context-menu.d.ts.map +1 -1
  195. package/dist/ui/context-menu.js +146 -86
  196. package/dist/ui/data-table-toolbar.d.ts +3 -2
  197. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  198. package/dist/ui/data-table-toolbar.js +61 -59
  199. package/dist/ui/data-table.d.ts.map +1 -1
  200. package/dist/ui/data-table.js +289 -254
  201. package/dist/ui/dialog.d.ts +3 -1
  202. package/dist/ui/dialog.d.ts.map +1 -1
  203. package/dist/ui/dialog.js +114 -74
  204. package/dist/ui/dropdown-menu.d.ts +5 -3
  205. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  206. package/dist/ui/dropdown-menu.js +150 -89
  207. package/dist/ui/file-upload.d.ts.map +1 -1
  208. package/dist/ui/file-upload.js +169 -127
  209. package/dist/ui/form.d.ts.map +1 -1
  210. package/dist/ui/form.js +29 -26
  211. package/dist/ui/hover-card.d.ts +1 -1
  212. package/dist/ui/hover-card.d.ts.map +1 -1
  213. package/dist/ui/hover-card.js +53 -21
  214. package/dist/ui/index.d.ts +18 -18
  215. package/dist/ui/index.d.ts.map +1 -1
  216. package/dist/ui/index.js +432 -449
  217. package/dist/ui/input-otp.d.ts +2 -0
  218. package/dist/ui/input-otp.d.ts.map +1 -1
  219. package/dist/ui/input-otp.js +7 -7
  220. package/dist/ui/input.d.ts.map +1 -1
  221. package/dist/ui/input.js +36 -34
  222. package/dist/ui/label.js +12 -12
  223. package/dist/ui/lib/date-utils.d.ts +6 -0
  224. package/dist/ui/lib/date-utils.d.ts.map +1 -0
  225. package/dist/ui/lib/index.d.ts +7 -0
  226. package/dist/ui/lib/index.d.ts.map +1 -0
  227. package/dist/ui/lib/link-context.d.ts +13 -0
  228. package/dist/ui/lib/link-context.d.ts.map +1 -0
  229. package/dist/ui/lib/motion.d.ts +44 -9
  230. package/dist/ui/lib/motion.d.ts.map +1 -1
  231. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  232. package/dist/ui/lib/utils.js +1 -1
  233. package/dist/ui/link.js +11 -11
  234. package/dist/ui/menubar.d.ts +4 -2
  235. package/dist/ui/menubar.d.ts.map +1 -1
  236. package/dist/ui/menubar.js +141 -97
  237. package/dist/ui/navigation-menu.d.ts +2 -0
  238. package/dist/ui/navigation-menu.d.ts.map +1 -1
  239. package/dist/ui/navigation-menu.js +176 -73
  240. package/dist/ui/number-input.d.ts.map +1 -1
  241. package/dist/ui/number-input.js +56 -49
  242. package/dist/ui/pagination.js +22 -22
  243. package/dist/ui/popover.d.ts +2 -1
  244. package/dist/ui/popover.d.ts.map +1 -1
  245. package/dist/ui/popover.js +54 -22
  246. package/dist/ui/progress.d.ts.map +1 -1
  247. package/dist/ui/progress.js +58 -42
  248. package/dist/ui/radio.js +19 -19
  249. package/dist/ui/search-input.d.ts.map +1 -1
  250. package/dist/ui/search-input.js +28 -33
  251. package/dist/ui/segmented-control.d.ts +2 -2
  252. package/dist/ui/segmented-control.d.ts.map +1 -1
  253. package/dist/ui/segmented-control.js +143 -124
  254. package/dist/ui/select.d.ts.map +1 -1
  255. package/dist/ui/select.js +72 -61
  256. package/dist/ui/separator.js +11 -11
  257. package/dist/ui/sheet.d.ts +1 -1
  258. package/dist/ui/sheet.d.ts.map +1 -1
  259. package/dist/ui/sheet.js +111 -75
  260. package/dist/ui/sidebar.d.ts +6 -1
  261. package/dist/ui/sidebar.d.ts.map +1 -1
  262. package/dist/ui/sidebar.js +27 -25
  263. package/dist/ui/skeleton.js +1 -1
  264. package/dist/ui/slider.d.ts +9 -0
  265. package/dist/ui/slider.d.ts.map +1 -1
  266. package/dist/ui/slider.js +33 -27
  267. package/dist/ui/spinner.d.ts +32 -25
  268. package/dist/ui/spinner.d.ts.map +1 -1
  269. package/dist/ui/spinner.js +199 -40
  270. package/dist/ui/stat-card.d.ts.map +1 -1
  271. package/dist/ui/stat-card.js +183 -116
  272. package/dist/ui/stepper.d.ts +22 -1
  273. package/dist/ui/stepper.d.ts.map +1 -1
  274. package/dist/ui/stepper.js +121 -43
  275. package/dist/ui/switch.d.ts.map +1 -1
  276. package/dist/ui/switch.js +39 -26
  277. package/dist/ui/table.d.ts +3 -0
  278. package/dist/ui/table.d.ts.map +1 -1
  279. package/dist/ui/table.js +47 -47
  280. package/dist/ui/tabs.d.ts +4 -1
  281. package/dist/ui/tabs.d.ts.map +1 -1
  282. package/dist/ui/tabs.js +94 -44
  283. package/dist/ui/text.d.ts +3 -3
  284. package/dist/ui/text.js +1 -1
  285. package/dist/ui/textarea.d.ts.map +1 -1
  286. package/dist/ui/textarea.js +29 -27
  287. package/dist/ui/toast-types.d.ts +43 -0
  288. package/dist/ui/toast-types.d.ts.map +1 -0
  289. package/dist/ui/toast-types.js +2 -0
  290. package/dist/ui/toast.d.ts +60 -26
  291. package/dist/ui/toast.d.ts.map +1 -1
  292. package/dist/ui/toast.js +535 -89
  293. package/dist/ui/toaster.d.ts +19 -23
  294. package/dist/ui/toaster.d.ts.map +1 -1
  295. package/dist/ui/toaster.js +31 -21
  296. package/dist/ui/toggle-group.d.ts +2 -2
  297. package/dist/ui/toggle-group.d.ts.map +1 -1
  298. package/dist/ui/toggle-group.js +29 -26
  299. package/dist/ui/toggle.d.ts +2 -2
  300. package/dist/ui/toggle.d.ts.map +1 -1
  301. package/dist/ui/toggle.js +21 -17
  302. package/dist/ui/tooltip.d.ts +2 -1
  303. package/dist/ui/tooltip.d.ts.map +1 -1
  304. package/dist/ui/tooltip.js +58 -21
  305. package/dist/ui/tree-view/tree-view.d.ts +1 -1
  306. package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
  307. package/llms-full.txt +221 -102
  308. package/llms.txt +65 -12
  309. package/package.json +26 -8
  310. package/dist/_chunks/switch.js +0 -10
  311. package/dist/composed/upload-progress.d.ts +0 -33
  312. package/dist/composed/upload-progress.d.ts.map +0 -1
  313. package/dist/composed/upload-progress.js +0 -386
  314. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  315. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  316. package/dist/ui/transitions.d.ts +0 -17
  317. package/dist/ui/transitions.d.ts.map +0 -1
  318. package/dist/ui/transitions.js +0 -111
@@ -1,36 +1,39 @@
1
1
  "use client";
2
- import { jsx as r } from "react/jsx-runtime";
3
- import * as i from "react";
4
- import { useRef as l, useState as s, useEffect as f } from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import * as m from "react";
4
+ import { useRef as l, useState as p, useEffect as i } from "react";
5
5
  import { c } from "../_chunks/utils.js";
6
- const m = i.forwardRef(
7
- function({ isLoading: e }, n) {
8
- const t = l(null), [a, o] = s(!0);
9
- return f(() => {
10
- t.current && e && o(!1);
11
- }, [e]), /* @__PURE__ */ r(
6
+ const d = m.forwardRef(
7
+ function({ isLoading: e, className: s, ...u }, f) {
8
+ const t = l(null), [r, a] = p(!0), o = l();
9
+ return i(() => () => {
10
+ clearTimeout(o.current);
11
+ }, []), i(() => {
12
+ t.current && e && a(!1);
13
+ }, [e]), /* @__PURE__ */ n(
12
14
  "div",
13
15
  {
14
- ref: n,
16
+ ref: f,
15
17
  role: "progressbar",
16
18
  "aria-label": "Page loading",
17
19
  "aria-hidden": !e,
18
20
  "aria-valuetext": e ? "Loading" : void 0,
19
- className: "pointer-events-none fixed inset-x-0 top-0 z-toast h-1",
20
- children: /* @__PURE__ */ r(
21
+ ...u,
22
+ className: c("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", s),
23
+ children: /* @__PURE__ */ n(
21
24
  "div",
22
25
  {
23
26
  ref: t,
24
27
  className: c(
25
- "h-full bg-interactive transition-all duration-slow-01 ease-productive-standard",
28
+ "h-full bg-accent-9 transition-all duration-slow-01 ease-productive-standard",
26
29
  e && "w-4/5 opacity-100",
27
- !e && a && "w-0 opacity-0",
28
- !e && !a && "w-full opacity-100"
30
+ !e && r && "w-0 opacity-0",
31
+ !e && !r && "w-full opacity-100"
29
32
  ),
30
33
  onTransitionEnd: () => {
31
- e || setTimeout(() => {
32
- o(!0);
33
- }, 200);
34
+ e || (o.current = setTimeout(() => {
35
+ a(!0);
36
+ }, 200));
34
37
  }
35
38
  }
36
39
  )
@@ -38,7 +41,7 @@ const m = i.forwardRef(
38
41
  );
39
42
  }
40
43
  );
41
- m.displayName = "GlobalLoading";
44
+ d.displayName = "GlobalLoading";
42
45
  export {
43
- m as GlobalLoading
46
+ d as GlobalLoading
44
47
  };
@@ -6,8 +6,8 @@
6
6
  * rich text editors, skeleton loaders, and domain-specific patterns.
7
7
  *
8
8
  * **Server-safe components** (import individually for Server Components):
9
- * `ContentCard`, `EmptyState`, `PageHeader`, `LoadingSkeleton`, `PageSkeletons`,
10
- * `PriorityIndicator`, `StatusBadge`
9
+ * `ContentCard`, `PageHeader`, `LoadingSkeleton`, `PageSkeletons`,
10
+ * `PriorityIndicator`
11
11
  *
12
12
  * @example
13
13
  * import { PageHeader } from '@devalok/shilp-sutra/composed/page-header'
@@ -46,8 +46,6 @@ export { ScheduleView } from './schedule-view';
46
46
  export type { ScheduleViewProps, ScheduleEvent } from './schedule-view';
47
47
  export { ConfirmDialog } from './confirm-dialog';
48
48
  export type { ConfirmDialogProps } from './confirm-dialog';
49
- export { UploadProgress, formatFileSize } from './upload-progress';
50
- export type { UploadProgressProps, UploadFile } from './upload-progress';
51
49
  export { ActivityFeed } from './activity-feed';
52
50
  export type { ActivityItem, ActivityFeedProps } from './activity-feed';
53
51
  export { getInitials } from './lib/string-utils';
@@ -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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EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
@@ -2,41 +2,40 @@
2
2
  import { PageHeader as o } from "./page-header.js";
3
3
  import { ContentCard as a, contentCardVariants as i } from "./content-card.js";
4
4
  import { StatusBadge as p, statusBadgeVariants as s } from "./status-badge.js";
5
- import { EmptyState as l } from "./empty-state.js";
6
- import { AvatarGroup as x } from "./avatar-group.js";
5
+ import { EmptyState as x } from "./empty-state.js";
6
+ import { AvatarGroup as l } from "./avatar-group.js";
7
7
  import { PriorityIndicator as k } from "./priority-indicator.js";
8
8
  import { RichTextEditor as P, RichTextViewer as S } from "./rich-text-editor.js";
9
- import { C as g, D, a as T, b as u, M as b, P as h, T as y, Y as V, u as B } from "../_chunks/use-calendar.js";
9
+ import { C as D, D as T, a as g, b as u, M as b, P as h, T as y, Y as V, u as B } from "../_chunks/use-calendar.js";
10
10
  import { BoardSkeleton as G, CardSkeleton as L, ListSkeleton as M, TableSkeleton as R } from "./loading-skeleton.js";
11
- import { DashboardSkeleton as w, ProjectListSkeleton as A, TaskDetailSkeleton as F } from "./page-skeletons.js";
12
- import { ErrorDisplay as Y } from "./error-boundary.js";
13
- import { GlobalLoading as z } from "./global-loading.js";
14
- import { CommandPalette as U } from "./command-palette.js";
15
- import { MemberPicker as J } from "./member-picker.js";
16
- import { SimpleTooltip as N } from "./simple-tooltip.js";
17
- import { ScheduleView as Q } from "./schedule-view.js";
11
+ import { DashboardSkeleton as w, ProjectListSkeleton as A, TaskDetailSkeleton as I } from "./page-skeletons.js";
12
+ import { ErrorDisplay as j } from "./error-boundary.js";
13
+ import { GlobalLoading as H } from "./global-loading.js";
14
+ import { CommandPalette as z } from "./command-palette.js";
15
+ import { MemberPicker as K } from "./member-picker.js";
16
+ import { SimpleTooltip as O } from "./simple-tooltip.js";
17
+ import { ScheduleView as U } from "./schedule-view.js";
18
18
  import { ConfirmDialog as X } from "./confirm-dialog.js";
19
- import { UploadProgress as _, formatFileSize as $ } from "./upload-progress.js";
20
- import { ActivityFeed as re } from "./activity-feed.js";
21
- import { getInitials as te } from "./lib/string-utils.js";
19
+ import { ActivityFeed as _ } from "./activity-feed.js";
20
+ import { getInitials as ee } from "./lib/string-utils.js";
22
21
  export {
23
- re as ActivityFeed,
24
- x as AvatarGroup,
22
+ _ as ActivityFeed,
23
+ l as AvatarGroup,
25
24
  G as BoardSkeleton,
26
- g as CalendarGrid,
25
+ D as CalendarGrid,
27
26
  L as CardSkeleton,
28
- U as CommandPalette,
27
+ z as CommandPalette,
29
28
  X as ConfirmDialog,
30
29
  a as ContentCard,
31
30
  w as DashboardSkeleton,
32
- D as DatePicker,
33
- T as DateRangePicker,
31
+ T as DatePicker,
32
+ g as DateRangePicker,
34
33
  u as DateTimePicker,
35
- l as EmptyState,
36
- Y as ErrorDisplay,
37
- z as GlobalLoading,
34
+ x as EmptyState,
35
+ j as ErrorDisplay,
36
+ H as GlobalLoading,
38
37
  M as ListSkeleton,
39
- J as MemberPicker,
38
+ K as MemberPicker,
40
39
  b as MonthPicker,
41
40
  o as PageHeader,
42
41
  h as Presets,
@@ -44,17 +43,15 @@ export {
44
43
  A as ProjectListSkeleton,
45
44
  P as RichTextEditor,
46
45
  S as RichTextViewer,
47
- Q as ScheduleView,
48
- N as SimpleTooltip,
46
+ U as ScheduleView,
47
+ O as SimpleTooltip,
49
48
  p as StatusBadge,
50
49
  R as TableSkeleton,
51
- F as TaskDetailSkeleton,
50
+ I as TaskDetailSkeleton,
52
51
  y as TimePicker,
53
- _ as UploadProgress,
54
52
  V as YearPicker,
55
53
  i as contentCardVariants,
56
- $ as formatFileSize,
57
- te as getInitials,
54
+ ee as getInitials,
58
55
  s as statusBadgeVariants,
59
56
  B as useCalendar
60
57
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface CardSkeletonProps {
2
+ export interface CardSkeletonProps extends React.ComponentPropsWithoutRef<'div'> {
3
3
  className?: string;
4
4
  }
5
5
  declare const CardSkeleton: React.ForwardRefExoticComponent<CardSkeletonProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,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B;AAED,QAAA,MAAM,aAAa,2FAgDlB,CAAA;AAID,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,YAAY,0FA8BjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,CAAA"}
@@ -1,30 +1,31 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { c as i } from "../_chunks/utils.js";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { c } from "../_chunks/utils.js";
4
4
  import { Skeleton as s } from "../ui/skeleton.js";
5
- const b = n.forwardRef(
6
- function({ className: a }, r) {
7
- return /* @__PURE__ */ d(
5
+ const b = t.forwardRef(
6
+ function({ className: d, ...l }, o) {
7
+ return /* @__PURE__ */ r(
8
8
  "div",
9
9
  {
10
- ref: r,
11
- className: i(
12
- "rounded-ds-lg border border-border bg-layer-01 p-ds-05b",
13
- a
10
+ ref: o,
11
+ ...l,
12
+ className: c(
13
+ "rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-05b",
14
+ d
14
15
  ),
15
16
  children: [
16
- /* @__PURE__ */ d("div", { className: "flex items-center justify-between pb-ds-05", children: [
17
- /* @__PURE__ */ e(s, { className: "h-[16px] w-[128px] bg-field" }),
18
- /* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-field" })
17
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between pb-ds-05", children: [
18
+ /* @__PURE__ */ e(s, { className: "h-[16px] w-[128px] bg-surface-3" }),
19
+ /* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-3" })
19
20
  ] }),
20
- /* @__PURE__ */ d("div", { className: "space-y-ds-04", children: [
21
- /* @__PURE__ */ e(s, { className: "h-[12px] w-full bg-field" }),
22
- /* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-field" }),
23
- /* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-field" })
21
+ /* @__PURE__ */ r("div", { className: "space-y-ds-04", children: [
22
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-full bg-surface-3" }),
23
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-3" }),
24
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-surface-3" })
24
25
  ] }),
25
- /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03 pt-ds-05", children: [
26
- /* @__PURE__ */ e(s, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-field" }),
27
- /* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-field" })
26
+ /* @__PURE__ */ r("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-3" }),
28
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-surface-3" })
28
29
  ] })
29
30
  ]
30
31
  }
@@ -32,133 +33,137 @@ const b = n.forwardRef(
32
33
  }
33
34
  );
34
35
  b.displayName = "CardSkeleton";
35
- const h = n.forwardRef(
36
+ const g = t.forwardRef(
36
37
  function({
37
- rows: a = 5,
38
- columns: r = 4,
39
- className: c
40
- }, o) {
41
- return /* @__PURE__ */ d(
38
+ rows: d = 5,
39
+ columns: l = 4,
40
+ className: o,
41
+ ...f
42
+ }, n) {
43
+ return /* @__PURE__ */ r(
42
44
  "div",
43
45
  {
44
- ref: o,
45
- className: i(
46
- "overflow-hidden rounded-ds-lg border border-border",
47
- c
46
+ ref: n,
47
+ ...f,
48
+ className: c(
49
+ "overflow-hidden rounded-ds-lg border border-surface-border-strong",
50
+ o
48
51
  ),
49
52
  children: [
50
- /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-border bg-layer-02 px-ds-05 py-ds-04", children: Array.from({ length: r }).map((t, l) => /* @__PURE__ */ e(
53
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-05 border-b border-surface-border-strong bg-surface-2 px-ds-05 py-ds-04", children: Array.from({ length: l }).map((p, a) => /* @__PURE__ */ e(
51
54
  s,
52
55
  {
53
- className: i(
54
- "h-[12px] bg-field",
55
- l === 0 ? "w-[160px]" : "flex-1"
56
+ className: c(
57
+ "h-[12px] bg-surface-3",
58
+ a === 0 ? "w-[160px]" : "flex-1"
56
59
  )
57
60
  },
58
- `head-${l}`
61
+ `head-${a}`
59
62
  )) }),
60
- Array.from({ length: a }).map((t, l) => /* @__PURE__ */ e(
63
+ Array.from({ length: d }).map((p, a) => /* @__PURE__ */ e(
61
64
  "div",
62
65
  {
63
- className: i(
66
+ className: c(
64
67
  "flex items-center gap-ds-05 px-ds-05 py-ds-04",
65
- l < a - 1 && "border-b border-border"
68
+ a < d - 1 && "border-b border-surface-border-strong"
66
69
  ),
67
- children: Array.from({ length: r }).map((p, m) => /* @__PURE__ */ e(
70
+ children: Array.from({ length: l }).map((u, m) => /* @__PURE__ */ e(
68
71
  s,
69
72
  {
70
- className: i(
71
- "h-[12px] bg-field",
73
+ className: c(
74
+ "h-[12px] bg-surface-3",
72
75
  m === 0 ? "w-[160px]" : "flex-1"
73
76
  )
74
77
  },
75
- `cell-${l}-${m}`
78
+ `cell-${a}-${m}`
76
79
  ))
77
80
  },
78
- `row-${l}`
81
+ `row-${a}`
79
82
  ))
80
83
  ]
81
84
  }
82
85
  );
83
86
  }
84
87
  );
85
- h.displayName = "TableSkeleton";
86
- const x = n.forwardRef(
88
+ g.displayName = "TableSkeleton";
89
+ const h = t.forwardRef(
87
90
  function({
88
- columns: a = 4,
89
- cardsPerColumn: r = 3,
90
- className: c
91
- }, o) {
92
- return /* @__PURE__ */ e("div", { ref: o, className: i("flex gap-ds-05 overflow-x-auto", c), children: Array.from({ length: a }).map((t, l) => /* @__PURE__ */ d(
91
+ columns: d = 4,
92
+ cardsPerColumn: l = 3,
93
+ className: o,
94
+ ...f
95
+ }, n) {
96
+ return /* @__PURE__ */ e("div", { ref: n, ...f, className: c("flex gap-ds-05 overflow-x-auto", o), children: Array.from({ length: d }).map((p, a) => /* @__PURE__ */ r(
93
97
  "div",
94
98
  {
95
99
  className: "flex w-[272px] shrink-0 flex-col gap-ds-03",
96
100
  children: [
97
- /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-ds-02 py-ds-03", children: [
98
- /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03", children: [
99
- /* @__PURE__ */ e(s, { className: "h-[12px] w-[12px] rounded bg-field" }),
100
- /* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-field" }),
101
- /* @__PURE__ */ e(s, { className: "h-[16px] w-[20px] rounded-ds-full bg-field" })
101
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between px-ds-02 py-ds-03", children: [
102
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03", children: [
103
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-[12px] rounded bg-surface-3" }),
104
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-[80px] bg-surface-3" }),
105
+ /* @__PURE__ */ e(s, { className: "h-[16px] w-[20px] rounded-ds-full bg-surface-3" })
102
106
  ] }),
103
- /* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-field" })
107
+ /* @__PURE__ */ e(s, { className: "h-ico-sm w-ico-sm rounded bg-surface-3" })
104
108
  ] }),
105
- Array.from({ length: r }).map((p, m) => /* @__PURE__ */ d(
109
+ Array.from({ length: l }).map((u, m) => /* @__PURE__ */ r(
106
110
  "div",
107
111
  {
108
- className: "rounded-ds-lg border border-border bg-layer-01 p-ds-04",
112
+ className: "rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-04",
109
113
  children: [
110
- /* @__PURE__ */ d("div", { className: "space-y-ds-03", children: [
111
- /* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-field" }),
112
- /* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-field" })
114
+ /* @__PURE__ */ r("div", { className: "space-y-ds-03", children: [
115
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-4/5 bg-surface-3" }),
116
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-3/5 bg-surface-3" })
113
117
  ] }),
114
- /* @__PURE__ */ d("div", { className: "flex items-center justify-between pt-ds-04", children: [
115
- /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-02b", children: [
116
- /* @__PURE__ */ e(s, { className: "h-ico-md w-ico-md rounded-ds-full bg-field" }),
117
- /* @__PURE__ */ e(s, { className: "h-ds-03 w-[64px] bg-field" })
118
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between pt-ds-04", children: [
119
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
120
+ /* @__PURE__ */ e(s, { className: "h-ico-md w-ico-md rounded-ds-full bg-surface-3" }),
121
+ /* @__PURE__ */ e(s, { className: "h-ds-03 w-[64px] bg-surface-3" })
118
122
  ] }),
119
- /* @__PURE__ */ e(s, { className: "h-[16px] w-ds-lg rounded-ds-full bg-field" })
123
+ /* @__PURE__ */ e(s, { className: "h-[16px] w-ds-lg rounded-ds-full bg-surface-3" })
120
124
  ] })
121
125
  ]
122
126
  },
123
- `card-${l}-${m}`
127
+ `card-${a}-${m}`
124
128
  ))
125
129
  ]
126
130
  },
127
- `col-${l}`
131
+ `col-${a}`
128
132
  )) });
129
133
  }
130
134
  );
131
- x.displayName = "BoardSkeleton";
132
- const g = n.forwardRef(
135
+ h.displayName = "BoardSkeleton";
136
+ const x = t.forwardRef(
133
137
  function({
134
- rows: a = 6,
135
- showAvatar: r = !0,
136
- className: c
137
- }, o) {
138
- return /* @__PURE__ */ e("div", { ref: o, className: i("flex flex-col", c), children: Array.from({ length: a }).map((t, l) => /* @__PURE__ */ d(
138
+ rows: d = 6,
139
+ showAvatar: l = !0,
140
+ className: o,
141
+ ...f
142
+ }, n) {
143
+ return /* @__PURE__ */ e("div", { ref: n, ...f, className: c("flex flex-col", o), children: Array.from({ length: d }).map((p, a) => /* @__PURE__ */ r(
139
144
  "div",
140
145
  {
141
- className: i(
146
+ className: c(
142
147
  "flex items-center gap-ds-04 py-ds-04",
143
- l < a - 1 && "border-b border-border"
148
+ a < d - 1 && "border-b border-surface-border-strong"
144
149
  ),
145
150
  children: [
146
- r && /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-field" }),
147
- /* @__PURE__ */ d("div", { className: "flex flex-1 flex-col gap-ds-02b", children: [
148
- /* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-field" }),
149
- /* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-field" })
151
+ l && /* @__PURE__ */ e(s, { className: "h-ds-sm w-ds-sm shrink-0 rounded-ds-full bg-surface-3" }),
152
+ /* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-ds-02b", children: [
153
+ /* @__PURE__ */ e(s, { className: "h-[12px] w-2/5 bg-surface-3" }),
154
+ /* @__PURE__ */ e(s, { className: "h-ds-03 w-3/5 bg-surface-3" })
150
155
  ] }),
151
- /* @__PURE__ */ e(s, { className: "h-[20px] w-[56px] rounded-ds-full bg-field" })
156
+ /* @__PURE__ */ e(s, { className: "h-[20px] w-[56px] rounded-ds-full bg-surface-3" })
152
157
  ]
153
158
  },
154
- `list-${l}`
159
+ `list-${a}`
155
160
  )) });
156
161
  }
157
162
  );
158
- g.displayName = "ListSkeleton";
163
+ x.displayName = "ListSkeleton";
159
164
  export {
160
- x as BoardSkeleton,
165
+ h as BoardSkeleton,
161
166
  b as CardSkeleton,
162
- g as ListSkeleton,
163
- h as TableSkeleton
167
+ x as ListSkeleton,
168
+ g as TableSkeleton
164
169
  };
@@ -5,7 +5,7 @@ export interface MemberPickerMember {
5
5
  name: string;
6
6
  avatar?: string;
7
7
  }
8
- export interface MemberPickerProps {
8
+ export interface MemberPickerProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'onSelect'> {
9
9
  members: MemberPickerMember[];
10
10
  selectedIds: string[];
11
11
  onSelect: (memberId: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"member-picker.d.ts","sourceRoot":"","sources":["../../src/composed/member-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAMD,QAAA,MAAM,YAAY,0FAkFjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"member-picker.d.ts","sourceRoot":"","sources":["../../src/composed/member-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChG,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAMD,QAAA,MAAM,YAAY,0FAsFjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,74 +1,78 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
3
- import * as r from "react";
4
- import { c as b } from "../_chunks/utils.js";
5
- import { Popover as g, PopoverTrigger as v, PopoverContent as y } from "../ui/popover.js";
6
- import { A as N, a as w, b as k } from "../_chunks/avatar.js";
7
- import { IconSearch as C, IconCheck as S } from "@tabler/icons-react";
8
- import { getInitials as P } from "./lib/string-utils.js";
9
- const A = r.forwardRef(
2
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
3
+ import * as a from "react";
4
+ import { c as l } from "../_chunks/utils.js";
5
+ import { Popover as N, PopoverTrigger as y, PopoverContent as w } from "../ui/popover.js";
6
+ import { A as k, a as C, b as S } from "../_chunks/avatar.js";
7
+ import { IconSearch as P, IconCheck as A } from "@tabler/icons-react";
8
+ import { getInitials as I } from "./lib/string-utils.js";
9
+ const O = a.forwardRef(
10
10
  ({
11
- members: c,
12
- selectedIds: i,
13
- onSelect: d,
14
- children: p,
15
- multiple: m = !1,
16
- placeholder: x = "Search members..."
17
- }, f) => {
18
- const [h, s] = r.useState(!1), [o, u] = r.useState(""), l = c.filter(
11
+ members: i,
12
+ selectedIds: d,
13
+ onSelect: f,
14
+ children: m,
15
+ multiple: p = !1,
16
+ placeholder: u = "Search members...",
17
+ className: h,
18
+ ...x
19
+ }, g) => {
20
+ const [b, r] = a.useState(!1), [o, v] = a.useState(""), c = i.filter(
19
21
  (e) => e.name.toLowerCase().includes(o.toLowerCase())
20
22
  );
21
- return /* @__PURE__ */ a(g, { open: h, onOpenChange: s, children: [
22
- /* @__PURE__ */ t(v, { asChild: !0, children: p }),
23
- /* @__PURE__ */ a(
24
- y,
23
+ return /* @__PURE__ */ s(N, { open: b, onOpenChange: r, children: [
24
+ /* @__PURE__ */ t(y, { asChild: !0, children: m }),
25
+ /* @__PURE__ */ s(
26
+ w,
25
27
  {
26
- ref: f,
27
- className: "w-[220px] border-border bg-layer-01 p-0",
28
+ ref: g,
29
+ ...x,
30
+ className: l("w-[220px] border-surface-border-strong bg-surface-1 p-0", h),
28
31
  align: "start",
29
32
  sideOffset: 4,
30
33
  children: [
31
- /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03 border-b border-border px-ds-04 py-ds-03", children: [
32
- /* @__PURE__ */ t(C, { className: "h-ico-sm w-ico-sm shrink-0 text-text-placeholder", stroke: 1.5 }),
34
+ /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-03 border-b border-surface-border-strong px-ds-04 py-ds-03", children: [
35
+ /* @__PURE__ */ t(P, { className: "h-ico-sm w-ico-sm shrink-0 text-surface-fg-subtle", stroke: 1.5 }),
33
36
  /* @__PURE__ */ t(
34
37
  "input",
35
38
  {
36
39
  type: "text",
37
- placeholder: x,
40
+ placeholder: u,
38
41
  value: o,
39
- onChange: (e) => u(e.target.value),
40
- className: "w-full bg-transparent text-ds-md font-body text-text-primary placeholder:text-text-placeholder outline-none"
42
+ onChange: (e) => v(e.target.value),
43
+ "aria-label": "Search members",
44
+ className: "w-full bg-transparent text-ds-md font-body text-surface-fg placeholder:text-surface-fg-subtle outline-none"
41
45
  }
42
46
  )
43
47
  ] }),
44
- /* @__PURE__ */ a("div", { className: "max-h-[200px] overflow-y-auto py-ds-02", children: [
45
- l.map((e) => {
46
- const n = i.includes(e.id);
47
- return /* @__PURE__ */ a(
48
+ /* @__PURE__ */ s("div", { className: "max-h-[200px] overflow-y-auto py-ds-02", children: [
49
+ c.map((e) => {
50
+ const n = d.includes(e.id);
51
+ return /* @__PURE__ */ s(
48
52
  "button",
49
53
  {
50
54
  type: "button",
51
55
  onClick: () => {
52
- d(e.id), m || s(!1);
56
+ f(e.id), p || r(!1);
53
57
  },
54
- className: b(
58
+ className: l(
55
59
  "flex w-full items-center gap-ds-03 px-ds-04 py-ds-02b text-left transition-colors",
56
- "hover:bg-field",
57
- n && "bg-field"
60
+ "hover:bg-surface-3",
61
+ n && "bg-surface-3"
58
62
  ),
59
63
  children: [
60
- /* @__PURE__ */ a(N, { className: "h-ico-md w-ico-md", children: [
61
- e.avatar && /* @__PURE__ */ t(w, { src: e.avatar, alt: e.name }),
62
- /* @__PURE__ */ t(k, { className: "bg-layer-03 text-ds-xs font-semibold text-text-on-color", children: P(e.name) })
64
+ /* @__PURE__ */ s(k, { className: "h-ico-md w-ico-md", children: [
65
+ e.avatar && /* @__PURE__ */ t(C, { src: e.avatar, alt: e.name }),
66
+ /* @__PURE__ */ t(S, { className: "bg-surface-3 text-ds-xs font-semibold text-accent-fg", children: I(e.name) })
63
67
  ] }),
64
- /* @__PURE__ */ t("span", { className: "flex-1 truncate text-ds-md font-body text-text-primary", children: e.name }),
65
- n && /* @__PURE__ */ t(S, { className: "h-ico-sm w-ico-sm shrink-0 text-interactive" })
68
+ /* @__PURE__ */ t("span", { className: "flex-1 truncate text-ds-md font-body text-surface-fg", children: e.name }),
69
+ n && /* @__PURE__ */ t(A, { className: "h-ico-sm w-ico-sm shrink-0 text-accent-11" })
66
70
  ]
67
71
  },
68
72
  e.id
69
73
  );
70
74
  }),
71
- l.length === 0 && /* @__PURE__ */ t("p", { className: "px-ds-04 py-ds-05 text-center text-ds-sm font-body text-text-placeholder", children: "No members found" })
75
+ c.length === 0 && /* @__PURE__ */ t("p", { className: "px-ds-04 py-ds-05 text-center text-ds-sm font-body text-surface-fg-subtle", children: "No members found" })
72
76
  ] })
73
77
  ]
74
78
  }
@@ -76,7 +80,7 @@ const A = r.forwardRef(
76
80
  ] });
77
81
  }
78
82
  );
79
- A.displayName = "MemberPicker";
83
+ O.displayName = "MemberPicker";
80
84
  export {
81
- A as MemberPicker
85
+ O as MemberPicker
82
86
  };