@devalok/shilp-sutra 0.18.0 → 0.18.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 (123) 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/llms-full.txt +3384 -1591
  109. package/llms.txt +4 -4
  110. package/package.json +25 -2
  111. package/dist/_chunks/avatar.js +0 -52
  112. package/dist/_chunks/button-group.js +0 -27
  113. package/dist/_chunks/button.js +0 -113
  114. package/dist/_chunks/card.js +0 -50
  115. package/dist/_chunks/checkbox.js +0 -16
  116. package/dist/_chunks/form.js +0 -27
  117. package/dist/_chunks/sidebar.js +0 -606
  118. package/dist/_chunks/spinner.js +0 -64
  119. package/dist/_chunks/tooltip.js +0 -30
  120. package/dist/_chunks/utils.js +0 -17
  121. package/dist/motion/motion-provider.js +0 -24
  122. package/dist/motion/primitives.js +0 -187
  123. /package/dist/_chunks/{motion.js → framer.js} +0 -0
@@ -2,24 +2,24 @@
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
4
  import { useRef as l, useState as p, useEffect as i } from "react";
5
- import { c } from "../_chunks/utils.js";
5
+ import { cn as c } from "../ui/lib/utils.js";
6
6
  const d = m.forwardRef(
7
- function({ isLoading: e, className: s, ...u }, f) {
8
- const t = l(null), [r, a] = p(!0), o = l();
7
+ function({ isLoading: e, className: u, ...f }, s) {
8
+ const t = l(null), [r, o] = p(!0), a = l();
9
9
  return i(() => () => {
10
- clearTimeout(o.current);
10
+ clearTimeout(a.current);
11
11
  }, []), i(() => {
12
- t.current && e && a(!1);
12
+ t.current && e && o(!1);
13
13
  }, [e]), /* @__PURE__ */ n(
14
14
  "div",
15
15
  {
16
- ref: f,
16
+ ref: s,
17
17
  role: "progressbar",
18
18
  "aria-label": "Page loading",
19
19
  "aria-hidden": !e,
20
20
  "aria-valuetext": e ? "Loading" : void 0,
21
- ...u,
22
- className: c("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", s),
21
+ ...f,
22
+ className: c("pointer-events-none fixed inset-x-0 top-0 z-toast h-1", u),
23
23
  children: /* @__PURE__ */ n(
24
24
  "div",
25
25
  {
@@ -31,8 +31,8 @@ const d = m.forwardRef(
31
31
  !e && !r && "w-full opacity-100"
32
32
  ),
33
33
  onTransitionEnd: () => {
34
- e || (o.current = setTimeout(() => {
35
- a(!0);
34
+ e || (a.current = setTimeout(() => {
35
+ o(!0);
36
36
  }, 200));
37
37
  }
38
38
  }
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  /**
3
2
  * Extract initials from a person's name.
4
3
  * "John Doe" -> "JD", "Alice" -> "AL"
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  function i(r) {
3
2
  const t = r.trim();
4
3
  if (!t) return "";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
- import { c } from "../_chunks/utils.js";
3
+ import { cn as c } from "../ui/lib/utils.js";
4
4
  import { Skeleton as s } from "../ui/skeleton.js";
5
5
  const b = t.forwardRef(
6
6
  function({ className: d, ...l }, o) {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
3
3
  import * as a from "react";
4
- import { c as l } from "../_chunks/utils.js";
4
+ import { cn as l } from "../ui/lib/utils.js";
5
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";
6
+ import { Avatar as k, AvatarImage as C, AvatarFallback as S } from "../ui/avatar.js";
7
+ import { IconSearch as P, IconCheck as I } from "@tabler/icons-react";
8
+ import { getInitials as A } from "./lib/string-utils.js";
9
9
  const O = a.forwardRef(
10
10
  ({
11
11
  members: i,
@@ -63,10 +63,10 @@ const O = a.forwardRef(
63
63
  children: [
64
64
  /* @__PURE__ */ s(k, { className: "h-ico-md w-ico-md", children: [
65
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) })
66
+ /* @__PURE__ */ t(S, { className: "bg-surface-3 text-ds-xs font-semibold text-accent-fg", children: A(e.name) })
67
67
  ] }),
68
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" })
69
+ n && /* @__PURE__ */ t(I, { className: "h-ico-sm w-ico-sm shrink-0 text-accent-11" })
70
70
  ]
71
71
  },
72
72
  e.id
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import { c as o } from "../_chunks/utils.js";
3
+ import { cn as o } from "../ui/lib/utils.js";
4
4
  import { IconChevronRight as p } from "@tabler/icons-react";
5
5
  const N = n.forwardRef(
6
6
  ({ title: d, subtitle: a, actions: r, breadcrumbs: e, titleClassName: h, className: g, ...x }, m) => {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as s } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
3
  import { Skeleton as d } from "../ui/skeleton.js";
4
- import { c as e } from "../_chunks/utils.js";
4
+ import { cn as e } from "../ui/lib/utils.js";
5
5
  const l = "bg-surface-3", t = n.forwardRef(
6
6
  function({ className: m, ...o }, i) {
7
7
  return /* @__PURE__ */ a("div", { ref: i, ...o, className: e("flex flex-col gap-ds-06", m), children: [
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import { ag as g } from "../_chunks/vendor-utils.js";
4
- import { c as e } from "../_chunks/utils.js";
4
+ import { cn as e } from "../ui/lib/utils.js";
5
5
  import { IconAlertTriangle as f, IconArrowUp as b, IconMinus as p, IconArrowDown as u } from "@tabler/icons-react";
6
6
  const x = {
7
7
  LOW: {
@@ -42,27 +42,27 @@ const x = {
42
42
  }
43
43
  }
44
44
  ), w = d.forwardRef(
45
- ({ priority: s, display: t, className: i, ...c }, n) => {
45
+ ({ priority: s, display: t, className: i, ...n }, c) => {
46
46
  const a = s.toUpperCase(), o = x[a], l = o.icon;
47
47
  return t === "compact" ? /* @__PURE__ */ r(
48
48
  "div",
49
49
  {
50
- ref: n,
50
+ ref: c,
51
51
  className: e(
52
52
  "inline-flex items-center justify-center rounded-ds-md p-ds-02",
53
53
  o.bgColor,
54
54
  i
55
55
  ),
56
56
  title: o.label,
57
- ...c,
57
+ ...n,
58
58
  children: /* @__PURE__ */ r(l, { className: e("h-ico-sm w-ico-sm", o.color), stroke: 2 })
59
59
  }
60
60
  ) : /* @__PURE__ */ m(
61
61
  "div",
62
62
  {
63
- ref: n,
63
+ ref: c,
64
64
  className: e(y({ display: t }), i),
65
- ...c,
65
+ ...n,
66
66
  children: [
67
67
  /* @__PURE__ */ r(
68
68
  "div",
@@ -4,7 +4,7 @@ import * as o from "react";
4
4
  import { N as Y, R as Z, m as ee, a as te, E as se, S as re, u as B, U as P, T as z, b as U, P as ne, H as K, c as $, d as M, L as q, I as O, M as V, e as F } from "../_chunks/tiptap.js";
5
5
  import { IconFile as ie, IconDownload as ce, IconBold as ae, IconItalic as le, IconUnderline as oe, IconStrikethrough as ue, IconHighlight as de, IconH2 as fe, IconH3 as me, IconBlockquote as he, IconList as ge, IconListNumbers as be, IconListCheck as pe, IconCode as ke, IconPhoto as xe, IconPaperclip as we, IconLineDashed as ve, IconAlignLeft as ye, IconAlignCenter as Ae, IconAlignRight as _e, IconMoodSmile as Ne, IconArrowBackUp as Ie, IconArrowForwardUp as Le, IconLink as Ce } from "@tabler/icons-react";
6
6
  import { createRoot as W } from "react-dom/client";
7
- import { c as p } from "../_chunks/utils.js";
7
+ import { cn as p } from "../ui/lib/utils.js";
8
8
  import { useColorMode as Ee } from "../hooks/use-color-mode.js";
9
9
  function Re(e) {
10
10
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
@@ -2,7 +2,7 @@
2
2
  import { jsxs as w, jsx as a } from "react/jsx-runtime";
3
3
  import * as $ from "react";
4
4
  import { startOfWeek as E, addDays as v, format as u, isSameDay as D, isToday as I, getHours as N, getMinutes as S, differenceInMinutes as A } from "date-fns";
5
- import { c as x } from "../_chunks/utils.js";
5
+ import { cn as x } from "../ui/lib/utils.js";
6
6
  const O = {
7
7
  primary: "bg-accent-2 border-accent-7 text-accent-11",
8
8
  success: "bg-success-3 border-success-7 text-success-11",
@@ -15,7 +15,7 @@ function P(r) {
15
15
  return r === 0 ? "12 AM" : r < 12 ? `${r} AM` : r === 12 ? "12 PM" : `${r - 12} PM`;
16
16
  }
17
17
  function T(r, s, o) {
18
- const c = (o - s) * 60, t = (N(r.start) - s) * 60 + S(r.start), i = A(r.end, r.start), d = t / c * 100, m = i / c * 100;
18
+ const i = (o - s) * 60, t = (N(r.start) - s) * 60 + S(r.start), c = A(r.end, r.start), d = t / i * 100, m = c / i * 100;
19
19
  return {
20
20
  top: `${d}%`,
21
21
  height: `${m}%`
@@ -25,7 +25,7 @@ function V({ startHour: r, endHour: s }) {
25
25
  const o = [];
26
26
  for (let t = r; t < s; t++)
27
27
  o.push(t);
28
- const c = 100 / (s - r);
28
+ const i = 100 / (s - r);
29
29
  return /* @__PURE__ */ a(
30
30
  "div",
31
31
  {
@@ -35,7 +35,7 @@ function V({ startHour: r, endHour: s }) {
35
35
  "div",
36
36
  {
37
37
  className: "text-ds-xs text-surface-fg-muted pr-ds-02 text-right",
38
- style: { height: `${c}%` },
38
+ style: { height: `${i}%` },
39
39
  children: P(t)
40
40
  },
41
41
  t
@@ -47,13 +47,13 @@ function j({
47
47
  date: r,
48
48
  events: s,
49
49
  startHour: o,
50
- endHour: c,
50
+ endHour: i,
51
51
  slotDuration: t,
52
- onEventClick: i,
52
+ onEventClick: c,
53
53
  onSlotClick: d,
54
54
  showHeader: m
55
55
  }) {
56
- const y = s.filter((e) => D(e.start, r)), p = (c - o) * 60, g = p / t, b = [];
56
+ const y = s.filter((e) => D(e.start, r)), p = (i - o) * 60, g = p / t, b = [];
57
57
  for (let e = 0; e < g; e++) {
58
58
  const n = new Date(r);
59
59
  n.setHours(o, e * t, 0, 0);
@@ -64,7 +64,7 @@ function j({
64
64
  let h = null;
65
65
  if (l) {
66
66
  const e = /* @__PURE__ */ new Date(), n = N(e), f = S(e);
67
- n >= o && n < c && (h = ((n - o) * 60 + f) / p * 100);
67
+ n >= o && n < i && (h = ((n - o) * 60 + f) / p * 100);
68
68
  }
69
69
  return /* @__PURE__ */ w("div", { className: "flex flex-1 flex-col min-w-[80px]", children: [
70
70
  m && /* @__PURE__ */ a(
@@ -93,7 +93,7 @@ function j({
93
93
  n
94
94
  )),
95
95
  y.map((e) => {
96
- const n = T(e, o, c), f = O[e.color ?? "primary"];
96
+ const n = T(e, o, i), f = O[e.color ?? "primary"];
97
97
  return /* @__PURE__ */ a(
98
98
  "button",
99
99
  {
@@ -106,7 +106,7 @@ function j({
106
106
  ),
107
107
  style: n,
108
108
  onClick: (M) => {
109
- M.stopPropagation(), i == null || i(e);
109
+ M.stopPropagation(), c == null || c(e);
110
110
  },
111
111
  "aria-label": `${e.title}, ${u(e.start, "h:mm a")} to ${u(e.end, "h:mm a")}`,
112
112
  children: /* @__PURE__ */ a("span", { className: "line-clamp-2", children: e.title })
@@ -131,9 +131,9 @@ const R = $.forwardRef(
131
131
  view: r,
132
132
  date: s,
133
133
  events: o,
134
- onEventClick: c,
134
+ onEventClick: i,
135
135
  onSlotClick: t,
136
- startHour: i = 8,
136
+ startHour: c = 8,
137
137
  endHour: d = 18,
138
138
  slotDuration: m = 30,
139
139
  className: y,
@@ -157,16 +157,16 @@ const R = $.forwardRef(
157
157
  ),
158
158
  ...p,
159
159
  children: [
160
- /* @__PURE__ */ a(V, { startHour: i, endHour: d }),
160
+ /* @__PURE__ */ a(V, { startHour: c, endHour: d }),
161
161
  /* @__PURE__ */ a("div", { className: "flex flex-1 divide-x divide-surface-border overflow-x-auto", children: b.map((l) => /* @__PURE__ */ a(
162
162
  j,
163
163
  {
164
164
  date: l,
165
165
  events: o,
166
- startHour: i,
166
+ startHour: c,
167
167
  endHour: d,
168
168
  slotDuration: m,
169
- onEventClick: c,
169
+ onEventClick: i,
170
170
  onSlotClick: t,
171
171
  showHeader: r === "week"
172
172
  },
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as m } from "react/jsx-runtime";
3
- import * as T from "react";
4
- import { T as c, a as d, b as n, c as f } from "../_chunks/tooltip.js";
5
- const h = T.forwardRef(
2
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
3
+ import * as s from "react";
4
+ import { TooltipProvider as T, Tooltip as a, TooltipTrigger as c, TooltipContent as f } from "../ui/tooltip.js";
5
+ const h = s.forwardRef(
6
6
  ({
7
7
  content: i,
8
8
  side: r = "top",
@@ -10,10 +10,10 @@ const h = T.forwardRef(
10
10
  delayDuration: e = 300,
11
11
  children: p,
12
12
  className: l,
13
- ...a
14
- }, s) => /* @__PURE__ */ o(c, { delayDuration: e, children: /* @__PURE__ */ m(d, { children: [
15
- /* @__PURE__ */ o(n, { ref: s, asChild: !0, children: p }),
16
- /* @__PURE__ */ o(f, { side: r, align: t, className: l, ...a, children: i })
13
+ ...m
14
+ }, d) => /* @__PURE__ */ o(T, { delayDuration: e, children: /* @__PURE__ */ n(a, { children: [
15
+ /* @__PURE__ */ o(c, { ref: d, asChild: !0, children: p }),
16
+ /* @__PURE__ */ o(f, { side: r, align: t, className: l, ...m, children: i })
17
17
  ] }) })
18
18
  );
19
19
  h.displayName = "SimpleTooltip";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
3
3
  import * as v from "react";
4
4
  import { ag as C } from "../_chunks/vendor-utils.js";
5
- import { m as g } from "../_chunks/motion2.js";
6
- import { c as r } from "../_chunks/utils.js";
7
- import { A as p, m as l } from "../_chunks/motion.js";
5
+ import { motionProps as g } from "../ui/lib/motion.js";
6
+ import { cn as a } from "../ui/lib/utils.js";
7
+ import { A as p, m as l } from "../_chunks/framer.js";
8
8
  const b = C(
9
9
  "inline-flex items-center gap-ds-02b rounded-ds-full font-body",
10
10
  {
@@ -54,7 +54,7 @@ const b = C(
54
54
  ({ status: m, color: s, size: t, label: n, hideDot: c = !1, className: o, ...i }, d) => {
55
55
  if (s != null) {
56
56
  const h = n ?? s.charAt(0).toUpperCase() + s.slice(1), y = k[s];
57
- return /* @__PURE__ */ a(p, { mode: "wait", children: /* @__PURE__ */ u(
57
+ return /* @__PURE__ */ r(p, { mode: "wait", children: /* @__PURE__ */ u(
58
58
  l.span,
59
59
  {
60
60
  ref: d,
@@ -62,16 +62,16 @@ const b = C(
62
62
  animate: { opacity: 1 },
63
63
  exit: { opacity: 0.6 },
64
64
  transition: f,
65
- className: r(
65
+ className: a(
66
66
  b({ color: s, size: t }),
67
67
  o
68
68
  ),
69
69
  ...g(i),
70
70
  children: [
71
- !c && /* @__PURE__ */ a(
71
+ !c && /* @__PURE__ */ r(
72
72
  "span",
73
73
  {
74
- className: r(
74
+ className: a(
75
75
  "shrink-0 rounded-ds-full",
76
76
  t === "sm" ? "h-ds-02b w-ds-02b" : "h-[8px] w-[8px]",
77
77
  y
@@ -86,7 +86,7 @@ const b = C(
86
86
  ) });
87
87
  }
88
88
  const e = m ?? "pending", x = n ?? e.charAt(0).toUpperCase() + e.slice(1), w = j[e];
89
- return /* @__PURE__ */ a(p, { mode: "wait", children: /* @__PURE__ */ u(
89
+ return /* @__PURE__ */ r(p, { mode: "wait", children: /* @__PURE__ */ u(
90
90
  l.span,
91
91
  {
92
92
  ref: d,
@@ -94,16 +94,16 @@ const b = C(
94
94
  animate: { opacity: 1 },
95
95
  exit: { opacity: 0.6 },
96
96
  transition: f,
97
- className: r(
97
+ className: a(
98
98
  b({ status: e, size: t }),
99
99
  o
100
100
  ),
101
101
  ...g(i),
102
102
  children: [
103
- !c && /* @__PURE__ */ a(
103
+ !c && /* @__PURE__ */ r(
104
104
  "span",
105
105
  {
106
- className: r(
106
+ className: a(
107
107
  "shrink-0 rounded-ds-full",
108
108
  t === "sm" ? "h-ds-02b w-ds-02b" : "h-[8px] w-[8px]",
109
109
  w
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  export { MotionProvider, useMotion, type MotionProviderProps } from './motion-provider';
3
- export { springs, tweens, stagger, type SpringPreset, type TweenPreset } from '../ui/lib/motion';
3
+ export { springs, tweens, stagger, withReducedMotion, motionProps, type SpringPreset, type TweenPreset } from '../ui/lib/motion';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/motion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/motion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,10 +1,12 @@
1
1
  "use client";
2
- import { MotionProvider as r, useMotion as e } from "./motion-provider.js";
3
- import { s as a, a as i, t as n } from "../_chunks/motion2.js";
2
+ import { M as r, u as t } from "../_chunks/motion-provider.js";
3
+ import { motionProps as i, springs as n, stagger as p, tweens as M, withReducedMotion as a } from "../ui/lib/motion.js";
4
4
  export {
5
5
  r as MotionProvider,
6
- a as springs,
7
- i as stagger,
8
- n as tweens,
9
- e as useMotion
6
+ i as motionProps,
7
+ n as springs,
8
+ p as stagger,
9
+ M as tweens,
10
+ t as useMotion,
11
+ a as withReducedMotion
10
12
  };
@@ -1,11 +1,187 @@
1
1
  "use client";
2
- import { MotionCollapse as e, MotionFade as i, MotionPop as n, MotionScale as M, MotionSlide as a, MotionStagger as g, MotionStaggerItem as l } from "./primitives.js";
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ import * as m from "react";
4
+ import { springs as g, tweens as w } from "../ui/lib/motion.js";
5
+ import { cn as f } from "../ui/lib/utils.js";
6
+ import { A as u, m as y } from "../_chunks/framer.js";
7
+ const N = m.forwardRef(
8
+ ({ show: i, children: e, className: t, layout: o, layoutId: n, whileInView: s, viewportOnce: r = !0, viewportMargin: c = "-50px", ...l }, p) => {
9
+ const d = s ? {
10
+ initial: "hidden",
11
+ whileInView: "visible",
12
+ viewport: { once: r, margin: c }
13
+ } : {};
14
+ return /* @__PURE__ */ a(u, { children: i && /* @__PURE__ */ a(
15
+ y.div,
16
+ {
17
+ ref: p,
18
+ initial: { opacity: 0 },
19
+ animate: { opacity: 1 },
20
+ exit: { opacity: 0 },
21
+ transition: w.fade,
22
+ className: f(t),
23
+ layout: o,
24
+ layoutId: n,
25
+ ...d,
26
+ ...l,
27
+ children: e
28
+ }
29
+ ) });
30
+ }
31
+ );
32
+ N.displayName = "MotionFade";
33
+ const V = m.forwardRef(
34
+ ({ show: i, children: e, className: t, preset: o = "snappy", layout: n, layoutId: s, whileInView: r, viewportOnce: c = !0, viewportMargin: l = "-50px", ...p }, d) => {
35
+ const h = g[o], v = r ? {
36
+ initial: "hidden",
37
+ whileInView: "visible",
38
+ viewport: { once: c, margin: l }
39
+ } : {};
40
+ return /* @__PURE__ */ a(u, { children: i && /* @__PURE__ */ a(
41
+ y.div,
42
+ {
43
+ ref: d,
44
+ initial: { opacity: 0, scale: 0.96 },
45
+ animate: { opacity: 1, scale: 1 },
46
+ exit: { opacity: 0, scale: 0.96 },
47
+ transition: { ...h, opacity: w.fade },
48
+ className: f(t),
49
+ layout: n,
50
+ layoutId: s,
51
+ ...v,
52
+ ...p,
53
+ children: e
54
+ }
55
+ ) });
56
+ }
57
+ );
58
+ V.displayName = "MotionScale";
59
+ const b = m.forwardRef(
60
+ ({ show: i, children: e, className: t, preset: o = "bouncy", layout: n, layoutId: s, whileInView: r, viewportOnce: c = !0, viewportMargin: l = "-50px", ...p }, d) => {
61
+ const h = g[o], v = r ? {
62
+ initial: "hidden",
63
+ whileInView: "visible",
64
+ viewport: { once: c, margin: l }
65
+ } : {};
66
+ return /* @__PURE__ */ a(u, { children: i && /* @__PURE__ */ a(
67
+ y.div,
68
+ {
69
+ ref: d,
70
+ initial: { opacity: 0, scale: 0.5 },
71
+ animate: { opacity: 1, scale: 1 },
72
+ exit: { opacity: 0, scale: 0.5 },
73
+ transition: { ...h, opacity: w.fade },
74
+ className: f(t),
75
+ layout: n,
76
+ layoutId: s,
77
+ ...v,
78
+ ...p,
79
+ children: e
80
+ }
81
+ ) });
82
+ }
83
+ );
84
+ b.displayName = "MotionPop";
85
+ const P = m.forwardRef(
86
+ ({ show: i, children: e, className: t, preset: o = "smooth", direction: n = "up", layout: s, layoutId: r, whileInView: c, viewportOnce: l = !0, viewportMargin: p = "-50px", ...d }, h) => {
87
+ const v = g[o], x = {
88
+ up: { y: 16 },
89
+ down: { y: -16 },
90
+ left: { x: 16 },
91
+ right: { x: -16 }
92
+ }[n], M = c ? {
93
+ initial: "hidden",
94
+ whileInView: "visible",
95
+ viewport: { once: l, margin: p }
96
+ } : {};
97
+ return /* @__PURE__ */ a(u, { children: i && /* @__PURE__ */ a(
98
+ y.div,
99
+ {
100
+ ref: h,
101
+ initial: { opacity: 0, ...x },
102
+ animate: { opacity: 1, x: 0, y: 0 },
103
+ exit: { opacity: 0, ...x },
104
+ transition: { ...v, opacity: w.fade },
105
+ className: f(t),
106
+ layout: s,
107
+ layoutId: r,
108
+ ...M,
109
+ ...d,
110
+ children: e
111
+ }
112
+ ) });
113
+ }
114
+ );
115
+ P.displayName = "MotionSlide";
116
+ const R = m.forwardRef(
117
+ ({ show: i, children: e, className: t, preset: o = "gentle", layout: n, layoutId: s, ...r }, c) => {
118
+ const l = g[o];
119
+ return /* @__PURE__ */ a(u, { initial: !1, children: i && /* @__PURE__ */ a(
120
+ y.div,
121
+ {
122
+ ref: c,
123
+ initial: { height: 0, opacity: 0, overflow: "hidden" },
124
+ animate: { height: "auto", opacity: 1, overflow: "hidden" },
125
+ exit: { height: 0, opacity: 0, overflow: "hidden" },
126
+ transition: { ...l, opacity: w.fade },
127
+ className: f(t),
128
+ layout: n,
129
+ layoutId: s,
130
+ ...r,
131
+ children: e
132
+ }
133
+ ) });
134
+ }
135
+ );
136
+ R.displayName = "MotionCollapse";
137
+ const S = m.forwardRef(
138
+ ({ children: i, className: e, delay: t = 0.04, whileInView: o, viewportOnce: n = !0, viewportMargin: s = "-50px", ...r }, c) => {
139
+ const l = {
140
+ hidden: {},
141
+ visible: {
142
+ transition: { staggerChildren: t }
143
+ }
144
+ }, p = o ? { initial: "hidden", whileInView: "visible", viewport: { once: n, margin: s } } : { initial: "hidden", animate: "visible" };
145
+ return /* @__PURE__ */ a(
146
+ y.div,
147
+ {
148
+ ref: c,
149
+ variants: l,
150
+ className: f(e),
151
+ ...p,
152
+ ...r,
153
+ children: i
154
+ }
155
+ );
156
+ }
157
+ );
158
+ S.displayName = "MotionStagger";
159
+ const I = {
160
+ hidden: { opacity: 0, y: 8 },
161
+ visible: {
162
+ opacity: 1,
163
+ y: 0,
164
+ transition: { ...g.smooth, opacity: w.fade }
165
+ }
166
+ }, C = m.forwardRef(
167
+ ({ children: i, className: e, ...t }, o) => /* @__PURE__ */ a(
168
+ y.div,
169
+ {
170
+ ref: o,
171
+ variants: I,
172
+ className: f(e),
173
+ ...t,
174
+ children: i
175
+ }
176
+ )
177
+ );
178
+ C.displayName = "MotionStaggerItem";
3
179
  export {
4
- e as MotionCollapse,
5
- i as MotionFade,
6
- n as MotionPop,
7
- M as MotionScale,
8
- a as MotionSlide,
9
- g as MotionStagger,
10
- l as MotionStaggerItem
180
+ R as MotionCollapse,
181
+ N as MotionFade,
182
+ b as MotionPop,
183
+ V as MotionScale,
184
+ P as MotionSlide,
185
+ S as MotionStagger,
186
+ C as MotionStaggerItem
11
187
  };
@@ -4,7 +4,7 @@ import * as w from "react";
4
4
  import { useCallback as g, useMemo as r } from "react";
5
5
  import { IconFileText as D, IconLayoutDashboard as N, IconCalendarCheck as A, IconUmbrella as C, IconLayoutKanban as E, IconListCheck as h, IconBook as O, IconAdjustmentsHorizontal as U, IconUserCircle as B, IconShieldCheck as K, IconClipboardList as G, IconUserPlus as R, IconSettings as V, IconPackage as v, IconLink as x, IconVideo as J, IconMessage as Y, IconUsers as _ } from "@tabler/icons-react";
6
6
  import { CommandPalette as z } from "../composed/command-palette.js";
7
- import { c as F } from "../_chunks/utils.js";
7
+ import { cn as F } from "../ui/lib/utils.js";
8
8
  import { useCommandRegistry as H } from "./command-registry.js";
9
9
  const q = {
10
10
  TASK: /* @__PURE__ */ a(h, {}),
@@ -4,9 +4,9 @@ import * as w from "react";
4
4
  import { useState as y } from "react";
5
5
  import { u } from "../_chunks/link-context.js";
6
6
  import { IconX as k, IconDots as M } from "@tabler/icons-react";
7
- import { c as o } from "../_chunks/utils.js";
8
- import { s as d } from "../_chunks/motion2.js";
9
- import { m as f } from "../_chunks/motion.js";
7
+ import { cn as o } from "../ui/lib/utils.js";
8
+ import { springs as d } from "../ui/lib/motion.js";
9
+ import { m as f } from "../_chunks/framer.js";
10
10
  function j({ count: a }) {
11
11
  if (!a || a <= 0) return null;
12
12
  const r = a > 99 ? "99+" : String(a), i = a >= 10;