@devalok/shilp-sutra 0.18.0 → 0.18.2

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 (214) hide show
  1. package/dist/_chunks/motion-provider.js +24 -0
  2. package/dist/_chunks/primitives.js +101 -101
  3. package/dist/_chunks/tree-view.js +12 -12
  4. package/dist/_chunks/use-calendar.js +1 -1
  5. package/dist/_chunks/vendor-utils.js +2 -2
  6. package/dist/composed/activity-feed.js +21 -21
  7. package/dist/composed/avatar-group.js +25 -25
  8. package/dist/composed/command-palette.js +3 -3
  9. package/dist/composed/confirm-dialog.js +1 -1
  10. package/dist/composed/content-card.js +1 -1
  11. package/dist/composed/empty-state.js +2 -2
  12. package/dist/composed/error-boundary.js +2 -2
  13. package/dist/composed/global-loading.js +10 -10
  14. package/dist/composed/lib/string-utils.d.ts +0 -1
  15. package/dist/composed/lib/string-utils.js +0 -1
  16. package/dist/composed/loading-skeleton.js +1 -1
  17. package/dist/composed/member-picker.js +6 -6
  18. package/dist/composed/page-header.js +1 -1
  19. package/dist/composed/page-skeletons.js +1 -1
  20. package/dist/composed/priority-indicator.js +6 -6
  21. package/dist/composed/rich-text-editor.js +1 -1
  22. package/dist/composed/schedule-view.js +15 -15
  23. package/dist/composed/simple-tooltip.js +8 -8
  24. package/dist/composed/status-badge.js +12 -12
  25. package/dist/motion/index.d.ts +1 -1
  26. package/dist/motion/index.d.ts.map +1 -1
  27. package/dist/motion/index.js +8 -6
  28. package/dist/motion/primitives-index.js +184 -8
  29. package/dist/shell/app-command-palette.js +1 -1
  30. package/dist/shell/bottom-navbar.js +3 -3
  31. package/dist/shell/notification-center.js +35 -35
  32. package/dist/shell/notification-preferences.js +29 -28
  33. package/dist/shell/sidebar.js +56 -56
  34. package/dist/shell/top-bar.js +25 -25
  35. package/dist/ui/accordion.js +11 -11
  36. package/dist/ui/alert-dialog.js +41 -41
  37. package/dist/ui/alert.js +10 -10
  38. package/dist/ui/aspect-ratio.js +5 -5
  39. package/dist/ui/autocomplete.js +15 -15
  40. package/dist/ui/avatar.js +4 -4
  41. package/dist/ui/badge.js +11 -11
  42. package/dist/ui/banner.js +3 -3
  43. package/dist/ui/breadcrumb.js +8 -8
  44. package/dist/ui/button-group.js +4 -4
  45. package/dist/ui/button.js +25 -25
  46. package/dist/ui/card.js +5 -5
  47. package/dist/ui/charts/index.js +4 -4
  48. package/dist/ui/checkbox.js +4 -4
  49. package/dist/ui/chip.js +14 -14
  50. package/dist/ui/code.js +1 -1
  51. package/dist/ui/collapsible.js +7 -7
  52. package/dist/ui/color-input.js +1 -1
  53. package/dist/ui/combobox.js +5 -5
  54. package/dist/ui/container.js +4 -4
  55. package/dist/ui/context-menu.js +4 -4
  56. package/dist/ui/data-table-toolbar.js +18 -18
  57. package/dist/ui/data-table.js +55 -55
  58. package/dist/ui/dialog.js +3 -3
  59. package/dist/ui/dropdown-menu.js +3 -3
  60. package/dist/ui/file-upload.js +10 -10
  61. package/dist/ui/form.js +1 -1
  62. package/dist/ui/hover-card.js +12 -12
  63. package/dist/ui/icon-button.js +9 -9
  64. package/dist/ui/index.js +322 -516
  65. package/dist/ui/input-otp.js +4 -4
  66. package/dist/ui/input.js +9 -9
  67. package/dist/ui/label.js +9 -9
  68. package/dist/ui/lib/date-utils.d.ts +0 -1
  69. package/dist/{_chunks → ui/lib}/date-utils.js +1 -2
  70. package/dist/{_chunks/motion2.js → ui/lib/motion.js} +13 -14
  71. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  72. package/dist/ui/lib/utils.js +1 -1
  73. package/dist/ui/link.js +1 -1
  74. package/dist/ui/menubar.js +66 -66
  75. package/dist/ui/navigation-menu.js +4 -4
  76. package/dist/ui/number-input.js +9 -9
  77. package/dist/ui/pagination.js +1 -1
  78. package/dist/ui/popover.js +18 -18
  79. package/dist/ui/progress.js +4 -4
  80. package/dist/ui/radio.js +11 -11
  81. package/dist/ui/search-input.js +2 -2
  82. package/dist/ui/segmented-control.d.ts +2 -0
  83. package/dist/ui/segmented-control.d.ts.map +1 -1
  84. package/dist/ui/segmented-control.js +59 -55
  85. package/dist/ui/select.js +19 -19
  86. package/dist/ui/separator.js +5 -5
  87. package/dist/ui/sheet.js +10 -10
  88. package/dist/ui/sidebar.js +574 -38
  89. package/dist/ui/skeleton.js +1 -1
  90. package/dist/ui/slider.js +9 -9
  91. package/dist/ui/spinner.js +2 -2
  92. package/dist/ui/stack.js +1 -1
  93. package/dist/ui/stat-card.js +35 -35
  94. package/dist/ui/stepper.d.ts +1 -3
  95. package/dist/ui/stepper.d.ts.map +1 -1
  96. package/dist/ui/stepper.js +74 -74
  97. package/dist/ui/switch.js +7 -7
  98. package/dist/ui/table.js +28 -28
  99. package/dist/ui/tabs.js +10 -10
  100. package/dist/ui/text.js +1 -1
  101. package/dist/ui/textarea.js +10 -10
  102. package/dist/ui/toast.js +12 -12
  103. package/dist/ui/toaster.js +11 -11
  104. package/dist/ui/toggle-group.js +2 -2
  105. package/dist/ui/toggle.js +8 -8
  106. package/dist/ui/tooltip.js +21 -21
  107. package/dist/ui/visually-hidden.js +3 -3
  108. package/docs/components/_header.md +83 -0
  109. package/docs/components/composed/activity-feed.md +43 -0
  110. package/docs/components/composed/avatar-group.md +32 -0
  111. package/docs/components/composed/command-palette.md +40 -0
  112. package/docs/components/composed/confirm-dialog.md +46 -0
  113. package/docs/components/composed/content-card.md +36 -0
  114. package/docs/components/composed/date-picker.md +130 -0
  115. package/docs/components/composed/empty-state.md +53 -0
  116. package/docs/components/composed/error-boundary.md +29 -0
  117. package/docs/components/composed/global-loading.md +27 -0
  118. package/docs/components/composed/loading-skeleton.md +51 -0
  119. package/docs/components/composed/member-picker.md +35 -0
  120. package/docs/components/composed/page-header.md +41 -0
  121. package/docs/components/composed/page-skeletons.md +32 -0
  122. package/docs/components/composed/priority-indicator.md +32 -0
  123. package/docs/components/composed/rich-text-editor.md +71 -0
  124. package/docs/components/composed/schedule-view.md +39 -0
  125. package/docs/components/composed/simple-tooltip.md +33 -0
  126. package/docs/components/composed/status-badge.md +41 -0
  127. package/docs/components/shell/app-command-palette.md +44 -0
  128. package/docs/components/shell/bottom-navbar.md +48 -0
  129. package/docs/components/shell/command-registry.md +48 -0
  130. package/docs/components/shell/link-context.md +41 -0
  131. package/docs/components/shell/notification-center.md +63 -0
  132. package/docs/components/shell/notification-preferences.md +42 -0
  133. package/docs/components/shell/sidebar.md +88 -0
  134. package/docs/components/shell/top-bar.md +63 -0
  135. package/docs/components/ui/accordion.md +48 -0
  136. package/docs/components/ui/alert-dialog.md +58 -0
  137. package/docs/components/ui/alert.md +43 -0
  138. package/docs/components/ui/aspect-ratio.md +25 -0
  139. package/docs/components/ui/autocomplete.md +48 -0
  140. package/docs/components/ui/avatar.md +34 -0
  141. package/docs/components/ui/badge.md +48 -0
  142. package/docs/components/ui/banner.md +35 -0
  143. package/docs/components/ui/breadcrumb.md +37 -0
  144. package/docs/components/ui/button-group.md +32 -0
  145. package/docs/components/ui/button.md +55 -0
  146. package/docs/components/ui/card.md +48 -0
  147. package/docs/components/ui/charts.md +43 -0
  148. package/docs/components/ui/checkbox.md +31 -0
  149. package/docs/components/ui/chip.md +43 -0
  150. package/docs/components/ui/code.md +28 -0
  151. package/docs/components/ui/collapsible.md +40 -0
  152. package/docs/components/ui/color-input.md +37 -0
  153. package/docs/components/ui/combobox.md +54 -0
  154. package/docs/components/ui/container.md +26 -0
  155. package/docs/components/ui/context-menu.md +43 -0
  156. package/docs/components/ui/data-table-toolbar.md +44 -0
  157. package/docs/components/ui/data-table.md +91 -0
  158. package/docs/components/ui/dialog.md +51 -0
  159. package/docs/components/ui/dropdown-menu.md +45 -0
  160. package/docs/components/ui/file-upload.md +41 -0
  161. package/docs/components/ui/form.md +51 -0
  162. package/docs/components/ui/hover-card.md +32 -0
  163. package/docs/components/ui/icon-button.md +33 -0
  164. package/docs/components/ui/input-otp.md +44 -0
  165. package/docs/components/ui/input.md +48 -0
  166. package/docs/components/ui/label.md +25 -0
  167. package/docs/components/ui/link.md +29 -0
  168. package/docs/components/ui/menubar.md +44 -0
  169. package/docs/components/ui/navigation-menu.md +46 -0
  170. package/docs/components/ui/number-input.md +44 -0
  171. package/docs/components/ui/pagination.md +48 -0
  172. package/docs/components/ui/popover.md +30 -0
  173. package/docs/components/ui/progress.md +29 -0
  174. package/docs/components/ui/radio.md +34 -0
  175. package/docs/components/ui/search-input.md +43 -0
  176. package/docs/components/ui/segmented-control.md +50 -0
  177. package/docs/components/ui/select.md +49 -0
  178. package/docs/components/ui/separator.md +29 -0
  179. package/docs/components/ui/sheet.md +47 -0
  180. package/docs/components/ui/sidebar.md +72 -0
  181. package/docs/components/ui/skeleton.md +77 -0
  182. package/docs/components/ui/slider.md +29 -0
  183. package/docs/components/ui/spinner.md +50 -0
  184. package/docs/components/ui/stack.md +39 -0
  185. package/docs/components/ui/stat-card.md +61 -0
  186. package/docs/components/ui/stepper.md +49 -0
  187. package/docs/components/ui/switch.md +34 -0
  188. package/docs/components/ui/table.md +47 -0
  189. package/docs/components/ui/tabs.md +56 -0
  190. package/docs/components/ui/text.md +37 -0
  191. package/docs/components/ui/textarea.md +39 -0
  192. package/docs/components/ui/toast.md +65 -0
  193. package/docs/components/ui/toaster.md +47 -0
  194. package/docs/components/ui/toggle-group.md +43 -0
  195. package/docs/components/ui/toggle.md +37 -0
  196. package/docs/components/ui/tooltip.md +33 -0
  197. package/docs/components/ui/tree-view.md +65 -0
  198. package/docs/components/ui/visually-hidden.md +21 -0
  199. package/llms-full.txt +3384 -1591
  200. package/llms.txt +4 -4
  201. package/package.json +28 -3
  202. package/dist/_chunks/avatar.js +0 -52
  203. package/dist/_chunks/button-group.js +0 -27
  204. package/dist/_chunks/button.js +0 -113
  205. package/dist/_chunks/card.js +0 -50
  206. package/dist/_chunks/checkbox.js +0 -16
  207. package/dist/_chunks/form.js +0 -27
  208. package/dist/_chunks/sidebar.js +0 -606
  209. package/dist/_chunks/spinner.js +0 -64
  210. package/dist/_chunks/tooltip.js +0 -30
  211. package/dist/_chunks/utils.js +0 -17
  212. package/dist/motion/motion-provider.js +0 -24
  213. package/dist/motion/primitives.js +0 -187
  214. /package/dist/_chunks/{motion.js → framer.js} +0 -0
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import * as o from "react";
4
+ import { tweens as s, springs as n } from "../ui/lib/motion.js";
5
+ import { u as f, M as m } from "./framer.js";
6
+ const i = o.createContext({
7
+ springs: n,
8
+ tweens: s,
9
+ reducedMotion: !1
10
+ });
11
+ function l({ children: u, reducedMotion: e = "user" }) {
12
+ const a = f() ?? !1, r = e === "user" ? a : e, c = o.useMemo(
13
+ () => ({ springs: n, tweens: s, reducedMotion: r }),
14
+ [r]
15
+ );
16
+ return /* @__PURE__ */ t(i.Provider, { value: c, children: /* @__PURE__ */ t(m, { reducedMotion: e === "user" ? "user" : e ? "always" : "never", children: u }) });
17
+ }
18
+ function x() {
19
+ return o.useContext(i);
20
+ }
21
+ export {
22
+ l as M,
23
+ x as u
24
+ };
@@ -6406,24 +6406,24 @@ function Dt(e) {
6406
6406
  var dh = ol, fh = sl, ph = ll, vh = ul, mh = dl, gh = fl, hh = pl, Ch = ml;
6407
6407
  export {
6408
6408
  qm as $,
6409
- lg as A,
6410
- pm as B,
6411
- sd as C,
6412
- mm as D,
6413
- Cm as E,
6414
- Pm as F,
6409
+ gm as A,
6410
+ dm as B,
6411
+ um as C,
6412
+ bm as D,
6413
+ fm as E,
6414
+ Rm as F,
6415
6415
  Dm as G,
6416
6416
  cm as H,
6417
- ym as I,
6418
- bm as J,
6419
- gm as K,
6417
+ im as I,
6418
+ ym as J,
6419
+ Pm as K,
6420
6420
  Om as L,
6421
- hm as M,
6422
- dm as N,
6421
+ am as M,
6422
+ sd as N,
6423
6423
  vm as O,
6424
6424
  xm as P,
6425
- fm as Q,
6426
- Rm as R,
6425
+ id as Q,
6426
+ sm as R,
6427
6427
  rm as S,
6428
6428
  lm as T,
6429
6429
  Jl as U,
@@ -6433,8 +6433,8 @@ export {
6433
6433
  rg as Y,
6434
6434
  zm as Z,
6435
6435
  Ym as _,
6436
- am as a,
6437
- eh as a$,
6436
+ wm as a,
6437
+ Qg as a$,
6438
6438
  Zm as a0,
6439
6439
  eg as a1,
6440
6440
  Qm as a2,
@@ -6445,33 +6445,33 @@ export {
6445
6445
  Xm as a7,
6446
6446
  Jm as a8,
6447
6447
  ng as a9,
6448
- Ng as aA,
6449
- Ag as aB,
6450
- Dg as aC,
6451
- Og as aD,
6452
- kg as aE,
6453
- $g as aF,
6454
- Lg as aG,
6455
- Bg as aH,
6456
- Vg as aI,
6457
- Kg as aJ,
6448
+ gg as aA,
6449
+ Cg as aB,
6450
+ Pg as aC,
6451
+ Ng as aD,
6452
+ Ag as aE,
6453
+ Dg as aF,
6454
+ Og as aG,
6455
+ kg as aH,
6456
+ $g as aI,
6457
+ Lg as aJ,
6458
6458
  Ug as aK,
6459
6459
  Hg as aL,
6460
- Sm as aM,
6461
- Fg as aN,
6462
- Gg as aO,
6463
- jg as aP,
6464
- Zg as aQ,
6465
- lh as aR,
6466
- uh as aS,
6467
- Jg as aT,
6468
- Qg as aU,
6469
- nh as aV,
6470
- oh as aW,
6471
- sh as aX,
6472
- ah as aY,
6473
- th as aZ,
6474
- ih as a_,
6460
+ Bg as aM,
6461
+ Vg as aN,
6462
+ Kg as aO,
6463
+ Sm as aP,
6464
+ Fg as aQ,
6465
+ Gg as aR,
6466
+ Wg as aS,
6467
+ zg as aT,
6468
+ Yg as aU,
6469
+ Xg as aV,
6470
+ jg as aW,
6471
+ Zg as aX,
6472
+ lh as aY,
6473
+ uh as aZ,
6474
+ Jg as a_,
6475
6475
  Fu as aa,
6476
6476
  Lu as ab,
6477
6477
  Gu as ac,
@@ -6480,65 +6480,65 @@ export {
6480
6480
  Ku as af,
6481
6481
  ku as ag,
6482
6482
  $u as ah,
6483
- dg as ai,
6484
- fg as aj,
6485
- pg as ak,
6486
- hg as al,
6487
- bg as am,
6488
- Mg as an,
6489
- Ig as ao,
6490
- wg as ap,
6491
- Rg as aq,
6492
- yg as ar,
6493
- Eg as as,
6494
- Sg as at,
6495
- xg as au,
6496
- _g as av,
6497
- Tg as aw,
6498
- gg as ax,
6499
- Cg as ay,
6500
- Pg as az,
6501
- id as b,
6502
- rh as b0,
6503
- qg as b1,
6504
- ch as b2,
6505
- dh as b3,
6506
- fh as b4,
6507
- vh as b5,
6508
- hh as b6,
6509
- Ch as b7,
6510
- gh as b8,
6511
- ph as b9,
6512
- mh as ba,
6513
- ug as bb,
6514
- vg as bc,
6515
- mg as bd,
6516
- Wg as be,
6517
- zg as bf,
6518
- Yg as bg,
6519
- Xg as bh,
6520
- im as c,
6521
- um as d,
6522
- sm as e,
6523
- wm as f,
6524
- Em as g,
6525
- _m as h,
6526
- Mm as i,
6527
- Vm as j,
6528
- Um as k,
6529
- Nm as l,
6530
- Am as m,
6531
- km as n,
6532
- $m as o,
6533
- Gm as p,
6534
- Fm as q,
6535
- Bm as r,
6536
- Lm as s,
6537
- Tm as t,
6538
- Im as u,
6539
- Km as v,
6540
- ig as w,
6541
- cg as x,
6542
- sg as y,
6543
- ag as z
6483
+ ug as ai,
6484
+ dg as aj,
6485
+ fg as ak,
6486
+ pg as al,
6487
+ vg as am,
6488
+ mg as an,
6489
+ hg as ao,
6490
+ bg as ap,
6491
+ Mg as aq,
6492
+ Ig as ar,
6493
+ wg as as,
6494
+ Rg as at,
6495
+ yg as au,
6496
+ Eg as av,
6497
+ Sg as aw,
6498
+ xg as ax,
6499
+ _g as ay,
6500
+ Tg as az,
6501
+ Em as b,
6502
+ nh as b0,
6503
+ oh as b1,
6504
+ sh as b2,
6505
+ ah as b3,
6506
+ th as b4,
6507
+ ih as b5,
6508
+ eh as b6,
6509
+ rh as b7,
6510
+ qg as b8,
6511
+ ch as b9,
6512
+ dh as ba,
6513
+ fh as bb,
6514
+ vh as bc,
6515
+ hh as bd,
6516
+ Ch as be,
6517
+ gh as bf,
6518
+ ph as bg,
6519
+ mh as bh,
6520
+ _m as c,
6521
+ Mm as d,
6522
+ Vm as e,
6523
+ Um as f,
6524
+ Nm as g,
6525
+ Am as h,
6526
+ km as i,
6527
+ $m as j,
6528
+ Gm as k,
6529
+ Fm as l,
6530
+ Bm as m,
6531
+ Lm as n,
6532
+ Tm as o,
6533
+ Im as p,
6534
+ Km as q,
6535
+ ig as r,
6536
+ cg as s,
6537
+ sg as t,
6538
+ ag as u,
6539
+ lg as v,
6540
+ pm as w,
6541
+ mm as x,
6542
+ Cm as y,
6543
+ hm as z
6544
6544
  };
@@ -2,13 +2,13 @@
2
2
  import { jsxs as V, jsx as l } from "react/jsx-runtime";
3
3
  import * as d from "react";
4
4
  import { useState as P, useCallback as K } from "react";
5
- import { c as A } from "./utils.js";
5
+ import { cn as A } from "../ui/lib/utils.js";
6
6
  import { IconChevronRight as M } from "@tabler/icons-react";
7
- import { C as z } from "./checkbox.js";
7
+ import { Checkbox as z } from "../ui/checkbox.js";
8
8
  function G(t = {}) {
9
9
  const { defaultExpanded: h, defaultSelected: r, multiSelect: f, onSelect: g, onExpand: o } = t, [k, w] = P(
10
10
  new Set(h ?? [])
11
- ), [y, N] = P(
11
+ ), [C, N] = P(
12
12
  new Set(r ?? [])
13
13
  ), s = K(
14
14
  (n) => {
@@ -29,11 +29,11 @@ function G(t = {}) {
29
29
  );
30
30
  return {
31
31
  expanded: k,
32
- selected: y,
32
+ selected: C,
33
33
  toggle: s,
34
34
  select: c,
35
35
  isExpanded: (n) => k.has(n),
36
- isSelected: (n) => y.has(n),
36
+ isSelected: (n) => C.has(n),
37
37
  expandAll: (n) => w(new Set(n)),
38
38
  collapseAll: () => w(/* @__PURE__ */ new Set())
39
39
  };
@@ -48,7 +48,7 @@ const j = d.forwardRef(
48
48
  disabled: o = !1,
49
49
  children: k,
50
50
  depth: w = 0,
51
- className: y
51
+ className: C
52
52
  }, N) => {
53
53
  const s = H(), c = d.Children.count(k) > 0, n = s.tree.isExpanded(t), i = s.tree.isSelected(t), p = (e) => {
54
54
  o || s.tree.select(t, e);
@@ -96,7 +96,7 @@ const j = d.forwardRef(
96
96
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
97
97
  i && "bg-accent-3 text-accent-11",
98
98
  o && "opacity-action-disabled cursor-not-allowed pointer-events-none",
99
- y
99
+ C
100
100
  ),
101
101
  children: [
102
102
  c ? /* @__PURE__ */ l(
@@ -214,7 +214,7 @@ const B = d.forwardRef(
214
214
  onSelect: o,
215
215
  onExpand: k,
216
216
  className: w,
217
- children: y,
217
+ children: C,
218
218
  ...N
219
219
  }, s) => {
220
220
  const c = G({
@@ -249,8 +249,8 @@ const B = d.forwardRef(
249
249
  const S = a.getAttribute("data-tree-item");
250
250
  if (S && c.isExpanded(S)) {
251
251
  x.preventDefault();
252
- const C = u[b + 1];
253
- C == null || C.focus();
252
+ const y = u[b + 1];
253
+ y == null || y.focus();
254
254
  }
255
255
  }
256
256
  break;
@@ -258,7 +258,7 @@ const B = d.forwardRef(
258
258
  case "ArrowLeft": {
259
259
  const a = u[b];
260
260
  if (a) {
261
- const S = a.getAttribute("data-tree-item"), C = a.closest('[role="treeitem"]'), I = (E = C == null ? void 0 : C.parentElement) == null ? void 0 : E.closest(
261
+ const S = a.getAttribute("data-tree-item"), y = a.closest('[role="treeitem"]'), I = (E = y == null ? void 0 : y.parentElement) == null ? void 0 : E.closest(
262
262
  '[role="treeitem"]'
263
263
  );
264
264
  if (S && !c.isExpanded(S) && I) {
@@ -283,7 +283,7 @@ const B = d.forwardRef(
283
283
  }, m = d.useMemo(
284
284
  () => ({ tree: c, checkboxes: g }),
285
285
  [c, g]
286
- ), D = t ? q(t) : y;
286
+ ), D = t ? q(t) : C;
287
287
  return /* @__PURE__ */ l(L.Provider, { value: m, children: /* @__PURE__ */ l(
288
288
  "ul",
289
289
  {
@@ -4,7 +4,7 @@ import * as p from "react";
4
4
  import { useState as Se } from "react";
5
5
  import { format as D, startOfMonth as z, endOfMonth as me, startOfWeek as ve, endOfWeek as Ye, addDays as _, subMonths as be, addMonths as te, isSameMonth as ge, isSameDay as X, lastDayOfMonth as Re, isBefore as C, startOfDay as K, isAfter as ee, isWithinInterval as xe, setMonth as re, setYear as ne, endOfDay as U, startOfYear as Te, subDays as ue, setHours as J, setMinutes as se, setSeconds as ye } from "date-fns";
6
6
  import { IconChevronLeft as Ae, IconChevronRight as He, IconCalendarEvent as we, IconClock as Oe, IconCalendarClock as De } from "@tabler/icons-react";
7
- import { c as y } from "./utils.js";
7
+ import { cn as y } from "../ui/lib/utils.js";
8
8
  import { Popover as ce, PopoverTrigger as oe, PopoverContent as ae } from "../ui/popover.js";
9
9
  const Ee = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Q = p.forwardRef(
10
10
  function({
@@ -7919,8 +7919,8 @@ export {
7919
7919
  Ea as ae,
7920
7920
  jd as af,
7921
7921
  Bd as ag,
7922
- hh as ah,
7923
- Id as ai,
7922
+ Id as ah,
7923
+ hh as ai,
7924
7924
  Io as b,
7925
7925
  Ys as c,
7926
7926
  uu as d,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as r } from "react/jsx-runtime";
3
3
  import * as g from "react";
4
- import { c as s } from "../_chunks/utils.js";
4
+ import { cn as t } from "../ui/lib/utils.js";
5
5
  import { IconChevronRight as b } from "@tabler/icons-react";
6
- import { A as k, a as y, b as A } from "../_chunks/avatar.js";
7
- import { B as x } from "../_chunks/button.js";
6
+ import { Avatar as k, AvatarImage as y, AvatarFallback as A } from "../ui/avatar.js";
7
+ import { Button as x } from "../ui/button.js";
8
8
  import { Skeleton as c } from "../ui/skeleton.js";
9
9
  import { getInitials as S } from "./lib/string-utils.js";
10
- import { f as C } from "../_chunks/date-utils.js";
10
+ import { formatRelativeTime as C } from "../ui/lib/date-utils.js";
11
11
  const j = {
12
12
  default: "bg-surface-fg-subtle",
13
13
  success: "bg-success-9",
@@ -16,46 +16,46 @@ const j = {
16
16
  info: "bg-info-9"
17
17
  };
18
18
  function D({ compact: e }) {
19
- return /* @__PURE__ */ a("div", { className: s("flex flex-col", e ? "gap-1" : "gap-3"), children: [0, 1, 2].map((t) => /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03", children: [
19
+ return /* @__PURE__ */ a("div", { className: t("flex flex-col", e ? "gap-1" : "gap-3"), children: [0, 1, 2].map((s) => /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-03", children: [
20
20
  /* @__PURE__ */ a(c, { className: "h-2 w-2 shrink-0 rounded-ds-full" }),
21
21
  !e && /* @__PURE__ */ a(c, { className: "h-4 w-4 shrink-0 rounded-ds-full" }),
22
- /* @__PURE__ */ a(c, { className: s("flex-1", e ? "h-3" : "h-4") }),
22
+ /* @__PURE__ */ a(c, { className: t("flex-1", e ? "h-3" : "h-4") }),
23
23
  /* @__PURE__ */ a(c, { className: "h-3 w-12" })
24
- ] }, t)) });
24
+ ] }, s)) });
25
25
  }
26
26
  function R({
27
27
  item: e,
28
- compact: t
28
+ compact: s
29
29
  }) {
30
30
  const [n, o] = g.useState(!1), d = e.color ?? "default", i = () => {
31
31
  e.detail && o((l) => !l);
32
32
  };
33
- return /* @__PURE__ */ r("div", { className: s("relative flex items-start", t ? "gap-ds-02" : "gap-ds-03"), children: [
33
+ return /* @__PURE__ */ r("div", { className: t("relative flex items-start", s ? "gap-ds-02" : "gap-ds-03"), children: [
34
34
  /* @__PURE__ */ a(
35
35
  "div",
36
36
  {
37
- className: s(
37
+ className: t(
38
38
  "relative z-10 mt-1.5 h-2 w-2 shrink-0 rounded-ds-full ring-2 ring-surface-1",
39
39
  j[d]
40
40
  )
41
41
  }
42
42
  ),
43
- !t && e.actor && /* @__PURE__ */ r(k, { className: "h-5 w-5 shrink-0 text-[9px]", children: [
43
+ !s && e.actor && /* @__PURE__ */ r(k, { className: "h-5 w-5 shrink-0 text-[9px]", children: [
44
44
  e.actor.image && /* @__PURE__ */ a(y, { src: e.actor.image, alt: e.actor.name }),
45
45
  /* @__PURE__ */ a(A, { className: "text-[9px]", children: S(e.actor.name) })
46
46
  ] }),
47
47
  /* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1 flex-col", children: [
48
48
  /* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-ds-02", children: [
49
- /* @__PURE__ */ r("div", { className: s("min-w-0 flex-1 flex items-center gap-ds-01 flex-wrap", t ? "text-ds-xs" : "text-ds-sm"), children: [
49
+ /* @__PURE__ */ r("div", { className: t("min-w-0 flex-1 flex items-center gap-ds-01 flex-wrap", s ? "text-ds-xs" : "text-ds-sm"), children: [
50
50
  e.actor && /* @__PURE__ */ r("span", { className: "font-medium text-surface-fg", children: [
51
51
  e.actor.name,
52
52
  " "
53
53
  ] }),
54
- e.detail && /* @__PURE__ */ a(b, { className: s("h-3 w-3 shrink-0 text-surface-fg-subtle transition-transform", n && "rotate-90") }),
54
+ e.detail && /* @__PURE__ */ a(b, { className: t("h-3 w-3 shrink-0 text-surface-fg-subtle transition-transform", n && "rotate-90") }),
55
55
  /* @__PURE__ */ a(
56
56
  "span",
57
57
  {
58
- className: s(
58
+ className: t(
59
59
  "text-surface-fg-muted",
60
60
  e.detail && "cursor-pointer hover:underline"
61
61
  ),
@@ -72,9 +72,9 @@ function R({
72
72
  /* @__PURE__ */ a(
73
73
  "time",
74
74
  {
75
- className: s(
75
+ className: t(
76
76
  "shrink-0 whitespace-nowrap text-surface-fg-subtle",
77
- t ? "text-ds-xs" : "text-ds-sm"
77
+ s ? "text-ds-xs" : "text-ds-sm"
78
78
  ),
79
79
  dateTime: (typeof e.timestamp == "string" ? new Date(e.timestamp) : e.timestamp).toISOString(),
80
80
  children: C(e.timestamp)
@@ -88,7 +88,7 @@ function R({
88
88
  const z = g.forwardRef(
89
89
  ({
90
90
  items: e,
91
- onLoadMore: t,
91
+ onLoadMore: s,
92
92
  loading: n = !1,
93
93
  hasMore: o = !1,
94
94
  emptyState: d,
@@ -99,13 +99,13 @@ const z = g.forwardRef(
99
99
  }, h) => {
100
100
  const [p, N] = g.useState(!1);
101
101
  if (n)
102
- return /* @__PURE__ */ a("div", { ref: h, className: s("relative", f), ...m, children: /* @__PURE__ */ a(D, { compact: i }) });
102
+ return /* @__PURE__ */ a("div", { ref: h, className: t("relative", f), ...m, children: /* @__PURE__ */ a(D, { compact: i }) });
103
103
  if (e.length === 0)
104
104
  return d ? /* @__PURE__ */ a("div", { ref: h, className: f, ...m, children: d }) : null;
105
105
  const u = l != null && !p && e.length > l, w = u ? e.slice(0, l) : e;
106
- return /* @__PURE__ */ r("div", { ref: h, className: s("relative", f), ...m, children: [
106
+ return /* @__PURE__ */ r("div", { ref: h, className: t("relative", f), ...m, children: [
107
107
  /* @__PURE__ */ a("div", { className: "absolute bottom-0 left-[3px] top-0 w-px bg-surface-border" }),
108
- /* @__PURE__ */ a("div", { className: s("relative flex flex-col", i ? "gap-1" : "gap-3"), children: w.map((v) => /* @__PURE__ */ a(R, { item: v, compact: i }, v.id)) }),
108
+ /* @__PURE__ */ a("div", { className: t("relative flex flex-col", i ? "gap-1" : "gap-3"), children: w.map((v) => /* @__PURE__ */ a(R, { item: v, compact: i }, v.id)) }),
109
109
  u && /* @__PURE__ */ a("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ r(
110
110
  x,
111
111
  {
@@ -119,7 +119,7 @@ const z = g.forwardRef(
119
119
  ]
120
120
  }
121
121
  ) }),
122
- o && t && !u && /* @__PURE__ */ a("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ a(x, { variant: "ghost", size: "sm", onClick: t, children: "Load more" }) })
122
+ o && s && !u && /* @__PURE__ */ a("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ a(x, { variant: "ghost", size: "sm", onClick: s, children: "Load more" }) })
123
123
  ] });
124
124
  }
125
125
  );
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
3
3
  import * as y from "react";
4
4
  import { ag as w } from "../_chunks/vendor-utils.js";
5
- import { c as o } from "../_chunks/utils.js";
6
- import { A, a as T, b as C } from "../_chunks/avatar.js";
7
- import { T as I, a as f, b as p, c as h } from "../_chunks/tooltip.js";
5
+ import { cn as o } from "../ui/lib/utils.js";
6
+ import { Avatar as A, AvatarImage as T, AvatarFallback as C } from "../ui/avatar.js";
7
+ import { TooltipProvider as I, Tooltip as f, TooltipTrigger as p, TooltipContent as h } from "../ui/tooltip.js";
8
8
  import { getInitials as j } from "./lib/string-utils.js";
9
9
  const g = w(
10
10
  "shrink-0 overflow-hidden rounded-ds-full border-2 border-surface-1",
@@ -21,30 +21,30 @@ const g = w(
21
21
  }
22
22
  }
23
23
  ), z = y.forwardRef(
24
- ({ users: t, max: d = 4, size: l, showTooltip: v = !0, className: b, ...u }, x) => {
25
- const c = t.slice(0, d), i = t.length - d, m = {
24
+ ({ users: t, max: d = 4, size: l, showTooltip: v = !0, className: x, ...b }, u) => {
25
+ const i = t.slice(0, d), n = t.length - d, c = {
26
26
  sm: "-ml-ds-02b",
27
27
  md: "-ml-ds-03",
28
28
  lg: "-ml-ds-04"
29
29
  }[l ?? "md"];
30
- return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ r(
30
+ return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ s(
31
31
  "div",
32
32
  {
33
- ref: x,
34
- className: o("flex items-center", b),
35
- ...u,
33
+ ref: u,
34
+ className: o("flex items-center", x),
35
+ ...b,
36
36
  children: [
37
- c.map((s, a) => {
38
- const N = j(s.name), n = /* @__PURE__ */ r(
37
+ i.map((a, r) => {
38
+ const N = j(a.name), m = /* @__PURE__ */ s(
39
39
  A,
40
40
  {
41
41
  className: o(
42
42
  g({ size: l }),
43
- a > 0 && m
43
+ r > 0 && c
44
44
  ),
45
- style: { zIndex: c.length - a },
45
+ style: { zIndex: i.length - r },
46
46
  children: [
47
- s.image && /* @__PURE__ */ e(T, { src: s.image, alt: s.name }),
47
+ a.image && /* @__PURE__ */ e(T, { src: a.image, alt: a.name }),
48
48
  /* @__PURE__ */ e(
49
49
  C,
50
50
  {
@@ -54,33 +54,33 @@ const g = w(
54
54
  )
55
55
  ]
56
56
  },
57
- a
57
+ a.name
58
58
  );
59
- return v ? /* @__PURE__ */ r(f, { children: [
60
- /* @__PURE__ */ e(p, { asChild: !0, children: n }),
59
+ return v ? /* @__PURE__ */ s(f, { children: [
60
+ /* @__PURE__ */ e(p, { asChild: !0, children: m }),
61
61
  /* @__PURE__ */ e(
62
62
  h,
63
63
  {
64
64
  className: "border-surface-border-strong bg-surface-1 text-surface-fg",
65
65
  sideOffset: 6,
66
- children: /* @__PURE__ */ e("p", { className: "text-ds-sm", children: s.name })
66
+ children: /* @__PURE__ */ e("p", { className: "text-ds-sm", children: a.name })
67
67
  }
68
68
  )
69
- ] }, a) : n;
69
+ ] }, a.name) : m;
70
70
  }),
71
- i > 0 && /* @__PURE__ */ r(f, { children: [
72
- /* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ r(
71
+ n > 0 && /* @__PURE__ */ s(f, { children: [
72
+ /* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ s(
73
73
  "div",
74
74
  {
75
75
  className: o(
76
76
  g({ size: l }),
77
- m,
77
+ c,
78
78
  "flex cursor-default items-center justify-center bg-accent-2 font-body font-semibold text-accent-11"
79
79
  ),
80
80
  style: { zIndex: 0 },
81
81
  children: [
82
82
  "+",
83
- i
83
+ n
84
84
  ]
85
85
  }
86
86
  ) }),
@@ -89,7 +89,7 @@ const g = w(
89
89
  {
90
90
  className: "border-surface-border-strong bg-surface-1 text-surface-fg",
91
91
  sideOffset: 6,
92
- children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-01", children: t.slice(d).map((s, a) => /* @__PURE__ */ e("p", { className: "text-ds-sm", children: s.name }, a)) })
92
+ children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-01", children: t.slice(d).map((a, r) => /* @__PURE__ */ e("p", { className: "text-ds-sm", children: a.name }, r)) })
93
93
  }
94
94
  )
95
95
  ] })
@@ -3,10 +3,10 @@ import { jsx as t, jsxs as r } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
4
  import { Dialog as $, DialogPortal as K, DialogOverlay as q, DialogContentRaw as z, DialogTitle as O, DialogDescription as Q } from "../ui/dialog.js";
5
5
  import { IconSearch as U, IconCornerDownLeft as D, IconArrowUp as V, IconArrowDown as F } from "@tabler/icons-react";
6
- import { c as p } from "../_chunks/utils.js";
7
- import { s as I, t as b } from "../_chunks/motion2.js";
6
+ import { cn as p } from "../ui/lib/utils.js";
7
+ import { springs as I, tweens as b } from "../ui/lib/motion.js";
8
8
  import { VisuallyHidden as G } from "../ui/visually-hidden.js";
9
- import { m as c, A as H } from "../_chunks/motion.js";
9
+ import { m as c, A as H } from "../_chunks/framer.js";
10
10
  const T = n.forwardRef(
11
11
  function({
12
12
  groups: h = [],
@@ -2,7 +2,7 @@
2
2
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
3
3
  import * as g from "react";
4
4
  import { AlertDialog as p, AlertDialogContent as A, AlertDialogHeader as C, AlertDialogTitle as u, AlertDialogDescription as x, AlertDialogFooter as b } from "../ui/alert-dialog.js";
5
- import { B as o } from "../_chunks/button.js";
5
+ import { Button as o } from "../ui/button.js";
6
6
  const j = g.forwardRef(
7
7
  ({
8
8
  open: t,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as e, Fragment as m } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
3
  import { ag as v } from "../_chunks/vendor-utils.js";
4
- import { c as t } from "../_chunks/utils.js";
4
+ import { cn as t } from "../ui/lib/utils.js";
5
5
  const h = v(
6
6
  "rounded-ds-lg transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
7
7
  {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as s, jsxs as i } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
- import { c as t } from "../_chunks/utils.js";
5
- import { m as h } from "../_chunks/motion.js";
4
+ import { cn as t } from "../ui/lib/utils.js";
5
+ import { m as h } from "../_chunks/framer.js";
6
6
  const g = ({ className: e }) => /* @__PURE__ */ s(
7
7
  "svg",
8
8
  {
@@ -2,8 +2,8 @@
2
2
  import { jsx as t, jsxs as r } from "react/jsx-runtime";
3
3
  import * as p from "react";
4
4
  import { IconAlertTriangle as x, IconServerOff as b, IconBan as h, IconFileUnknown as v } from "@tabler/icons-react";
5
- import { B as y } from "../_chunks/button.js";
6
- import { c as o } from "../_chunks/utils.js";
5
+ import { Button as y } from "../ui/button.js";
6
+ import { cn as o } from "../ui/lib/utils.js";
7
7
  function w(e) {
8
8
  if (e && typeof e == "object" && "status" in e && typeof e.status == "number")
9
9
  return e.status;