@devalok/shilp-sutra 0.21.0 → 0.22.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 (96) hide show
  1. package/dist/_chunks/use-calendar.js +115 -115
  2. package/dist/_chunks/vendor-utils.js +1230 -1178
  3. package/dist/composed/activity-feed.d.ts.map +1 -1
  4. package/dist/composed/activity-feed.js +78 -78
  5. package/dist/composed/avatar-group.d.ts +2 -2
  6. package/dist/composed/avatar-group.d.ts.map +1 -1
  7. package/dist/composed/avatar-group.js +82 -107
  8. package/dist/composed/command-palette.js +50 -50
  9. package/dist/composed/content-card.js +10 -10
  10. package/dist/composed/empty-state.d.ts.map +1 -1
  11. package/dist/composed/empty-state.js +58 -48
  12. package/dist/composed/global-loading.d.ts.map +1 -1
  13. package/dist/composed/global-loading.js +11 -10
  14. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  15. package/dist/composed/loading-skeleton.js +32 -29
  16. package/dist/composed/member-picker.d.ts.map +1 -1
  17. package/dist/composed/member-picker.js +28 -17
  18. package/dist/composed/page-header.js +25 -25
  19. package/dist/composed/priority-indicator.d.ts.map +1 -1
  20. package/dist/composed/priority-indicator.js +60 -36
  21. package/dist/composed/rich-text-editor.js +104 -104
  22. package/dist/composed/schedule-view.d.ts.map +1 -1
  23. package/dist/composed/schedule-view.js +52 -44
  24. package/dist/composed/status-badge.js +16 -16
  25. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  26. package/dist/shell/bottom-navbar.js +35 -31
  27. package/dist/shell/notification-center.d.ts.map +1 -1
  28. package/dist/shell/notification-center.js +119 -111
  29. package/dist/shell/sidebar.js +2 -2
  30. package/dist/shell/top-bar.js +9 -9
  31. package/dist/tailwind/index.cjs +30 -3
  32. package/dist/tailwind/preset.d.ts.map +1 -1
  33. package/dist/tailwind/preset.js +30 -3
  34. package/dist/tokens/semantic.css +10 -10
  35. package/dist/tokens/typography-semantic.css +3 -3
  36. package/dist/ui/accordion.js +22 -22
  37. package/dist/ui/alert.js +8 -8
  38. package/dist/ui/avatar.d.ts.map +1 -1
  39. package/dist/ui/avatar.js +72 -86
  40. package/dist/ui/badge.js +5 -5
  41. package/dist/ui/banner.js +18 -18
  42. package/dist/ui/breadcrumb.js +23 -23
  43. package/dist/ui/button.js +22 -22
  44. package/dist/ui/card.js +16 -16
  45. package/dist/ui/checkbox.d.ts.map +1 -1
  46. package/dist/ui/checkbox.js +72 -25
  47. package/dist/ui/chip.js +14 -14
  48. package/dist/ui/code.js +9 -9
  49. package/dist/ui/combobox.d.ts.map +1 -1
  50. package/dist/ui/combobox.js +46 -45
  51. package/dist/ui/dialog.js +17 -17
  52. package/dist/ui/dropdown-menu.js +22 -22
  53. package/dist/ui/form.d.ts.map +1 -1
  54. package/dist/ui/form.js +35 -29
  55. package/dist/ui/input.js +20 -20
  56. package/dist/ui/label.js +15 -15
  57. package/dist/ui/lib/motion.d.ts.map +1 -1
  58. package/dist/ui/lib/motion.js +2 -2
  59. package/dist/ui/link.js +14 -14
  60. package/dist/ui/number-input.js +36 -36
  61. package/dist/ui/pagination.js +14 -14
  62. package/dist/ui/progress.js +6 -6
  63. package/dist/ui/radio.d.ts.map +1 -1
  64. package/dist/ui/radio.js +24 -12
  65. package/dist/ui/search-input.d.ts.map +1 -1
  66. package/dist/ui/search-input.js +25 -19
  67. package/dist/ui/select.js +15 -15
  68. package/dist/ui/separator.d.ts +10 -2
  69. package/dist/ui/separator.d.ts.map +1 -1
  70. package/dist/ui/separator.js +16 -15
  71. package/dist/ui/sheet.js +7 -7
  72. package/dist/ui/sidebar.d.ts +1 -1
  73. package/dist/ui/sidebar.d.ts.map +1 -1
  74. package/dist/ui/sidebar.js +22 -22
  75. package/dist/ui/skeleton.js +5 -5
  76. package/dist/ui/slider.js +7 -7
  77. package/dist/ui/stat-card.js +19 -19
  78. package/dist/ui/switch.d.ts.map +1 -1
  79. package/dist/ui/switch.js +14 -13
  80. package/dist/ui/tabs.d.ts.map +1 -1
  81. package/dist/ui/tabs.js +60 -51
  82. package/dist/ui/textarea.js +15 -15
  83. package/dist/ui/toast.js +1 -1
  84. package/dist/ui/toggle.js +5 -5
  85. package/dist/ui/tooltip.d.ts +0 -4
  86. package/dist/ui/tooltip.d.ts.map +1 -1
  87. package/dist/ui/tooltip.js +24 -24
  88. package/docs/components/ui/avatar.md +3 -0
  89. package/docs/components/ui/button.md +5 -0
  90. package/docs/components/ui/checkbox.md +5 -0
  91. package/docs/components/ui/dropdown-menu.md +3 -0
  92. package/docs/components/ui/separator.md +3 -0
  93. package/docs/components/ui/tooltip.md +5 -0
  94. package/llms-full.txt +25 -1
  95. package/llms.txt +20 -0
  96. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { jsx as t, jsxs as r } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { Dialog as $, DialogPortal as K, DialogOverlay as q, DialogContentRaw as z, DialogTitle as O, DialogDescription as Q } from "../ui/dialog.js";
5
- import { IconSearch as U, IconCornerDownLeft as D, IconArrowUp as V, IconArrowDown as F } from "@tabler/icons-react";
4
+ import { Dialog as S, DialogPortal as $, DialogOverlay as K, DialogContentRaw as q, DialogTitle as z, DialogDescription as O } from "../ui/dialog.js";
5
+ import { IconSearch as Q, IconCornerDownLeft as C, IconArrowUp as U, IconArrowDown as V } from "@tabler/icons-react";
6
6
  import { cn as p } from "../ui/lib/utils.js";
7
- import { springs as I, tweens as b } from "../ui/lib/motion.js";
8
- import { VisuallyHidden as G } from "../ui/visually-hidden.js";
9
- import { m as c, A as H } from "../_chunks/framer.js";
10
- const T = n.forwardRef(
7
+ import { springs as D, tweens as b } from "../ui/lib/motion.js";
8
+ import { VisuallyHidden as F } from "../ui/visually-hidden.js";
9
+ import { m as c, A as G } from "../_chunks/framer.js";
10
+ const H = n.forwardRef(
11
11
  function({
12
12
  groups: h = [],
13
- placeholder: j = "Search or jump to...",
13
+ placeholder: I = "Search or jump to...",
14
14
  onSearch: g,
15
- emptyMessage: A = "No results found.",
16
- className: E,
17
- ...M
18
- }, R) {
19
- const [y, l] = n.useState(!1), [x, w] = n.useState(""), [d, f] = n.useState(0), v = n.useRef(null), k = n.useRef(null), N = n.useId(), C = `command-palette-listbox-${N}`, i = n.useMemo(() => {
15
+ emptyMessage: j = "No results found.",
16
+ className: A,
17
+ ...E
18
+ }, M) {
19
+ const [y, l] = n.useState(!1), [x, N] = n.useState(""), [d, f] = n.useState(0), v = n.useRef(null), k = n.useRef(null), w = n.useId(), _ = `command-palette-listbox-${w}`, i = n.useMemo(() => {
20
20
  if (!x.trim()) return h;
21
21
  const e = x.toLowerCase();
22
22
  return h.map((s) => ({
@@ -38,12 +38,12 @@ const T = n.forwardRef(
38
38
  }
39
39
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
40
40
  }, []), n.useEffect(() => {
41
- y && (w(""), f(0), requestAnimationFrame(() => {
41
+ y && (N(""), f(0), requestAnimationFrame(() => {
42
42
  var e;
43
43
  (e = v.current) == null || e.focus();
44
44
  }));
45
45
  }, [y]);
46
- const L = (e) => {
46
+ const R = (e) => {
47
47
  switch (e.key) {
48
48
  case "ArrowDown": {
49
49
  e.preventDefault(), f(
@@ -76,9 +76,9 @@ const T = n.forwardRef(
76
76
  );
77
77
  e == null || e.scrollIntoView({ block: "nearest" });
78
78
  }, [d]);
79
- const P = (e) => {
80
- w(e), f(0), g == null || g(e);
81
- }, S = n.useMemo(() => {
79
+ const L = (e) => {
80
+ N(e), f(0), g == null || g(e);
81
+ }, P = n.useMemo(() => {
82
82
  const e = /* @__PURE__ */ new Map();
83
83
  let s = 0;
84
84
  for (const a of i)
@@ -86,18 +86,18 @@ const T = n.forwardRef(
86
86
  e.set(o.id, s++);
87
87
  return e;
88
88
  }, [i]);
89
- return /* @__PURE__ */ t($, { open: y, onOpenChange: l, children: /* @__PURE__ */ r(K, { children: [
89
+ return /* @__PURE__ */ t(S, { open: y, onOpenChange: l, children: /* @__PURE__ */ r($, { children: [
90
90
  /* @__PURE__ */ t(
91
- q,
91
+ K,
92
92
  {
93
93
  className: "fixed inset-0 z-overlay bg-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
94
94
  }
95
95
  ),
96
96
  /* @__PURE__ */ r(
97
- z,
97
+ q,
98
98
  {
99
- ref: R,
100
- ...M,
99
+ ref: M,
100
+ ...E,
101
101
  className: p(
102
102
  "fixed left-1/2 top-[20%] z-modal w-full max-w-[560px] -translate-x-1/2",
103
103
  "overflow-hidden rounded-ds-xl border border-surface-border-strong bg-surface-1 shadow-05",
@@ -106,13 +106,13 @@ const T = n.forwardRef(
106
106
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
107
107
  "data-[state=closed]:slide-out-to-left-1/2 data-[state=open]:slide-in-from-left-1/2",
108
108
  "data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2",
109
- E
109
+ A
110
110
  ),
111
- onKeyDown: L,
111
+ onKeyDown: R,
112
112
  children: [
113
- /* @__PURE__ */ r(G, { children: [
114
- /* @__PURE__ */ t(O, { children: "Command Palette" }),
115
- /* @__PURE__ */ t(Q, { children: "Search or jump to pages, projects, tasks, and actions" })
113
+ /* @__PURE__ */ r(F, { children: [
114
+ /* @__PURE__ */ t(z, { children: "Command Palette" }),
115
+ /* @__PURE__ */ t(O, { children: "Search or jump to pages, projects, tasks, and actions" })
116
116
  ] }),
117
117
  /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-04 border-b border-surface-border-strong px-ds-05 py-ds-04", children: [
118
118
  /* @__PURE__ */ t(
@@ -120,10 +120,10 @@ const T = n.forwardRef(
120
120
  {
121
121
  initial: { opacity: 0, scale: 0.96 },
122
122
  animate: { opacity: 1, scale: 1 },
123
- transition: I.snappy,
123
+ transition: D.snappy,
124
124
  className: "inline-flex shrink-0",
125
125
  children: /* @__PURE__ */ t(
126
- U,
126
+ Q,
127
127
  {
128
128
  className: "h-ico-sm w-ico-sm text-surface-fg-subtle",
129
129
  stroke: 1.5
@@ -136,12 +136,12 @@ const T = n.forwardRef(
136
136
  {
137
137
  ref: v,
138
138
  value: x,
139
- onChange: (e) => P(e.target.value),
140
- placeholder: j,
139
+ onChange: (e) => L(e.target.value),
140
+ placeholder: I,
141
141
  role: "combobox",
142
142
  "aria-expanded": !0,
143
- "aria-controls": C,
144
- "aria-activedescendant": m[d] ? `command-item-${N}-${m[d].id}` : void 0,
143
+ "aria-controls": _,
144
+ "aria-activedescendant": m[d] ? `command-item-${w}-${m[d].id}` : void 0,
145
145
  "aria-autocomplete": "list",
146
146
  className: p(
147
147
  "flex-1 bg-transparent text-ds-base text-surface-fg outline-none",
@@ -152,13 +152,13 @@ const T = n.forwardRef(
152
152
  spellCheck: !1
153
153
  }
154
154
  ),
155
- /* @__PURE__ */ t("kbd", { className: "hidden shrink-0 select-none rounded-ds-md border border-surface-border-strong bg-surface-2 px-ds-02b py-ds-01 text-ds-sm font-medium text-surface-fg-subtle sm:inline-flex", children: "Esc" })
155
+ /* @__PURE__ */ t("kbd", { className: "hidden shrink-0 select-none rounded-ds-md border border-surface-border-strong bg-surface-2 px-ds-02b py-ds-01 text-ds-sm font-medium text-surface-fg-subtle shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)] sm:inline-flex", children: "Esc" })
156
156
  ] }),
157
157
  /* @__PURE__ */ r(
158
158
  "div",
159
159
  {
160
160
  ref: k,
161
- id: C,
161
+ id: _,
162
162
  role: "listbox",
163
163
  "aria-label": "Command results",
164
164
  className: "max-h-[320px] overflow-y-auto px-ds-03 py-ds-03",
@@ -170,7 +170,7 @@ const T = n.forwardRef(
170
170
  animate: { opacity: 1 },
171
171
  transition: b.fade,
172
172
  className: "flex items-center justify-center py-ds-07",
173
- children: /* @__PURE__ */ t("p", { className: "text-ds-md text-surface-fg-subtle", children: A })
173
+ children: /* @__PURE__ */ t("p", { className: "text-ds-md text-surface-fg-subtle", children: j })
174
174
  }
175
175
  ),
176
176
  i.map((e, s) => /* @__PURE__ */ r(
@@ -183,24 +183,24 @@ const T = n.forwardRef(
183
183
  children: [
184
184
  /* @__PURE__ */ t("div", { className: "px-ds-03 pb-ds-02 pt-ds-03", children: /* @__PURE__ */ t("span", { className: "text-ds-xs font-semibold uppercase tracking-wider text-surface-fg-subtle", children: e.label }) }),
185
185
  e.items.map((a) => {
186
- const o = S.get(a.id) ?? 0, u = o === d;
186
+ const o = P.get(a.id) ?? 0, u = o === d;
187
187
  return /* @__PURE__ */ r(
188
188
  c.button,
189
189
  {
190
- id: `command-item-${N}-${a.id}`,
190
+ id: `command-item-${w}-${a.id}`,
191
191
  type: "button",
192
192
  role: "option",
193
193
  "aria-selected": u,
194
194
  "data-command-index": o,
195
195
  initial: { opacity: 0, y: 4 },
196
196
  animate: { opacity: 1, y: 0 },
197
- transition: { ...I.snappy, delay: o * 0.03 },
197
+ transition: { ...D.snappy, delay: o * 0.03 },
198
198
  onClick: () => {
199
199
  a.onSelect(), l(!1);
200
200
  },
201
201
  onMouseEnter: () => f(o),
202
202
  className: p(
203
- "flex w-full items-center gap-ds-04 rounded-ds-lg px-ds-03 py-ds-03 text-left transition-all duration-fast-02 ease-productive-standard",
203
+ "flex w-full items-center gap-ds-04 rounded-ds-lg px-ds-03 py-ds-03 text-left transition-[color,background-color] duration-fast-02 ease-productive-standard",
204
204
  u ? "bg-surface-3 text-surface-fg" : "text-surface-fg-muted hover:bg-surface-2"
205
205
  ),
206
206
  children: [
@@ -208,7 +208,7 @@ const T = n.forwardRef(
208
208
  "span",
209
209
  {
210
210
  className: p(
211
- "[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0 transition-colors duration-fast-02",
211
+ "[&>svg]:h-ico-sm [&>svg]:w-ico-sm shrink-0 transition-colors duration-fast-02 ease-productive-standard",
212
212
  u ? "text-accent-11" : "text-surface-fg-subtle"
213
213
  ),
214
214
  "aria-hidden": "true",
@@ -220,10 +220,10 @@ const T = n.forwardRef(
220
220
  a.description && /* @__PURE__ */ t("span", { className: "text-ds-sm text-surface-fg-subtle", children: a.description })
221
221
  ] }),
222
222
  a.shortcut && /* @__PURE__ */ t("kbd", { className: p(
223
- "shrink-0 rounded border border-surface-border-strong px-ds-02b py-ds-01 text-ds-xs font-medium transition-colors duration-fast-02",
223
+ "shrink-0 rounded border border-surface-border-strong px-ds-02b py-ds-01 text-ds-xs font-medium shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)] transition-colors duration-fast-02 ease-productive-standard",
224
224
  u ? "bg-accent-2 text-accent-11 border-accent-6" : "bg-surface-2 text-surface-fg-subtle"
225
225
  ), children: a.shortcut }),
226
- /* @__PURE__ */ t(H, { children: u && /* @__PURE__ */ t(
226
+ /* @__PURE__ */ t(G, { children: u && /* @__PURE__ */ t(
227
227
  c.span,
228
228
  {
229
229
  initial: { opacity: 0 },
@@ -232,7 +232,7 @@ const T = n.forwardRef(
232
232
  transition: b.fade,
233
233
  className: "inline-flex shrink-0",
234
234
  children: /* @__PURE__ */ t(
235
- D,
235
+ C,
236
236
  {
237
237
  className: "h-ico-sm w-ico-sm text-surface-fg-subtle",
238
238
  stroke: 1.5
@@ -262,17 +262,17 @@ const T = n.forwardRef(
262
262
  children: [
263
263
  /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
264
264
  /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-01", children: [
265
- /* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-2", children: /* @__PURE__ */ t(V, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) }),
266
- /* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-2", children: /* @__PURE__ */ t(F, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) })
265
+ /* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-2 shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(U, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) }),
266
+ /* @__PURE__ */ t("kbd", { className: "inline-flex h-ico-md w-ico-md items-center justify-center rounded border border-surface-border-strong bg-surface-2 shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(V, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) })
267
267
  ] }),
268
268
  /* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: "Navigate" })
269
269
  ] }),
270
270
  /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
271
- /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-2 px-ds-02b", children: /* @__PURE__ */ t(D, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) }),
271
+ /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-2 px-ds-02b shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: /* @__PURE__ */ t(C, { className: "h-ds-03 w-ds-03 text-surface-fg-subtle", stroke: 2 }) }),
272
272
  /* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: "Select" })
273
273
  ] }),
274
274
  /* @__PURE__ */ r("div", { className: "flex items-center gap-ds-02b", children: [
275
- /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-2 px-ds-02b text-ds-xs font-medium text-surface-fg-subtle", children: "Esc" }),
275
+ /* @__PURE__ */ t("kbd", { className: "inline-flex h-[20px] items-center justify-center rounded-ds-md border border-surface-border-strong bg-surface-2 px-ds-02b text-ds-xs font-medium text-surface-fg-subtle shadow-[inset_0_-1px_0_rgba(0,0,0,0.1)]", children: "Esc" }),
276
276
  /* @__PURE__ */ t("span", { className: "text-ds-xs text-surface-fg-subtle", children: "Close" })
277
277
  ] })
278
278
  ]
@@ -284,7 +284,7 @@ const T = n.forwardRef(
284
284
  ] }) });
285
285
  }
286
286
  );
287
- T.displayName = "CommandPalette";
287
+ H.displayName = "CommandPalette";
288
288
  export {
289
- T as CommandPalette
289
+ H as CommandPalette
290
290
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as i, jsx as e, Fragment as m } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import { ag as v } from "../_chunks/vendor-utils.js";
3
+ import { ag as h } from "../_chunks/vendor-utils.js";
4
4
  import { cn as t } from "../ui/lib/utils.js";
5
- const h = v(
6
- "rounded-ds-lg transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
5
+ const v = h(
6
+ "rounded-ds-lg will-change-[box-shadow] transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard",
7
7
  {
8
8
  variants: {
9
9
  variant: {
@@ -23,7 +23,7 @@ const h = v(
23
23
  padding: "default"
24
24
  }
25
25
  }
26
- ), u = (r) => {
26
+ ), b = (r) => {
27
27
  switch (r) {
28
28
  case "compact":
29
29
  return "px-ds-04 py-ds-03";
@@ -49,7 +49,7 @@ const h = v(
49
49
  headerTitle: d,
50
50
  headerActions: o,
51
51
  footer: a,
52
- className: b,
52
+ className: u,
53
53
  children: p,
54
54
  ...l
55
55
  }, f) => {
@@ -59,8 +59,8 @@ const h = v(
59
59
  {
60
60
  ref: f,
61
61
  className: t(
62
- h({ variant: r, padding: n || a ? "none" : s }),
63
- b
62
+ v({ variant: r, padding: n || a ? "none" : s }),
63
+ u
64
64
  ),
65
65
  ...l,
66
66
  children: [
@@ -69,7 +69,7 @@ const h = v(
69
69
  {
70
70
  className: t(
71
71
  "flex items-center justify-between border-b border-surface-border-strong",
72
- u(s)
72
+ b(s)
73
73
  ),
74
74
  children: c ?? /* @__PURE__ */ i(m, { children: [
75
75
  d && /* @__PURE__ */ e("h3", { className: "text-ds-base font-semibold text-surface-fg", children: d }),
@@ -91,7 +91,7 @@ const h = v(
91
91
  {
92
92
  className: t(
93
93
  "border-t border-surface-border-strong",
94
- u(s)
94
+ b(s)
95
95
  ),
96
96
  children: a
97
97
  }
@@ -104,5 +104,5 @@ const h = v(
104
104
  w.displayName = "ContentCard";
105
105
  export {
106
106
  w as ContentCard,
107
- h as contentCardVariants
107
+ v as contentCardVariants
108
108
  };
@@ -1 +1 @@
1
- {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/composed/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpE,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC9B;AAcD,QAAA,MAAM,UAAU,wFAkFf,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/composed/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpE,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC9B;AAcD,QAAA,MAAM,UAAU,wFAuFf,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,9 +1,10 @@
1
1
  "use client";
2
- import { jsx as s, jsxs as i } from "react/jsx-runtime";
3
- import * as a from "react";
2
+ import { jsx as s, jsxs as r } from "react/jsx-runtime";
3
+ import * as l from "react";
4
+ import { tweens as g } from "../ui/lib/motion.js";
4
5
  import { cn as t } from "../ui/lib/utils.js";
5
- import { m as h } from "../_chunks/framer.js";
6
- const g = ({ className: e }) => /* @__PURE__ */ s(
6
+ import { m as n } from "../_chunks/framer.js";
7
+ const y = ({ className: e }) => /* @__PURE__ */ s(
7
8
  "svg",
8
9
  {
9
10
  xmlns: "http://www.w3.org/2000/svg",
@@ -13,82 +14,91 @@ const g = ({ className: e }) => /* @__PURE__ */ s(
13
14
  "aria-hidden": "true",
14
15
  children: /* @__PURE__ */ s("path", { d: "M25.97,21.39c-0.9-1.85,0.08-3.95-1.72-5.39c1.76-1.44,0.8-3.55,1.69-5.39c0.05-0.12,0.04-0.25-0.02-0.35c-0.06-0.1-0.16-0.18-0.29-0.19c-2.05-0.15-3.35-2.04-5.5-1.21c-0.39-2.21-2.7-2.44-3.84-4.13c-0.08-0.1-0.19-0.16-0.31-0.16c-0.12,0-0.23,0.05-0.31,0.16c-1.14,1.69-3.43,1.92-3.82,4.13c-2.14-0.83-3.47,1.07-5.52,1.21c-0.13,0.01-0.23,0.09-0.29,0.19c-0.06,0.1-0.07,0.23-0.02,0.35c0.9,1.85-0.08,3.95,1.72,5.39c-1.76,1.44-0.8,3.55-1.69,5.39C6,21.51,6.02,21.64,6.07,21.74c0.06,0.1,0.16,0.18,0.29,0.19c2.05,0.15,3.38,2.06,5.52,1.23c0.39,2.21,2.67,2.43,3.82,4.12c0.08,0.1,0.19,0.16,0.31,0.16c0.12,0,0.23-0.05,0.31-0.16c1.14-1.69,3.42-1.92,3.81-4.13c2.14,0.83,3.48-1.07,5.53-1.22c0.13-0.01,0.23-0.09,0.29-0.19C26.01,21.64,26.02,21.51,25.97,21.39z" })
15
16
  }
16
- ), y = a.forwardRef(
17
+ ), w = l.forwardRef(
17
18
  ({
18
19
  icon: e,
19
- title: n,
20
- description: d,
21
- action: r,
20
+ title: m,
21
+ description: i,
22
+ action: d,
22
23
  compact: c = !1,
23
- iconSize: m,
24
- className: f,
25
- ...x
26
- }, p) => {
27
- const l = {
24
+ iconSize: f,
25
+ className: x,
26
+ ...p
27
+ }, u) => {
28
+ const a = {
28
29
  sm: "h-ico-sm w-ico-sm",
29
30
  md: "h-ico-lg w-ico-lg",
30
31
  lg: "h-ico-xl w-ico-xl"
31
- }[m ?? (c ? "sm" : "md")], o = e != null && !a.isValidElement(e) && (typeof e == "function" || typeof e == "object" && "$$typeof" in e), u = e ? o ? a.createElement(e, {
32
- className: t("text-surface-fg-subtle", l)
32
+ }[f ?? (c ? "sm" : "md")], o = e != null && !l.isValidElement(e) && (typeof e == "function" || typeof e == "object" && "$$typeof" in e), h = e ? o ? l.createElement(e, {
33
+ className: t("text-surface-fg-subtle", a)
33
34
  }) : e : /* @__PURE__ */ s(
34
- g,
35
+ y,
35
36
  {
36
- className: t("text-surface-fg-subtle", l)
37
+ className: t("text-surface-fg-subtle", a)
37
38
  }
38
39
  );
39
- return /* @__PURE__ */ i(
40
+ return /* @__PURE__ */ r(
40
41
  "div",
41
42
  {
42
- ref: p,
43
+ ref: u,
43
44
  className: t(
44
45
  "flex flex-col items-center justify-center text-center",
45
46
  c ? "gap-ds-04 py-ds-07" : "gap-ds-05 py-ds-10",
46
- f
47
+ x
47
48
  ),
48
- ...x,
49
+ ...p,
49
50
  children: [
50
51
  /* @__PURE__ */ s(
51
- h.div,
52
+ n.div,
52
53
  {
53
54
  className: t(
54
55
  "flex items-center justify-center rounded-ds-xl bg-surface-2",
55
56
  c ? "h-ds-md w-ds-md" : "h-ds-lg w-ds-lg",
56
- !o && e != null && l
57
+ !o && e != null && a
57
58
  ),
58
59
  animate: { y: [0, -4, 0] },
59
60
  transition: { repeat: 1 / 0, duration: 3, ease: "easeInOut" },
60
- children: u
61
+ children: h
61
62
  }
62
63
  ),
63
- /* @__PURE__ */ i("div", { className: "flex max-w-[280px] flex-col gap-ds-02", children: [
64
- /* @__PURE__ */ s(
65
- "h3",
66
- {
67
- className: t(
68
- "text-surface-fg",
69
- c ? "text-ds-md font-semibold" : "text-ds-base font-semibold"
70
- ),
71
- children: n
72
- }
73
- ),
74
- d && /* @__PURE__ */ s(
75
- "p",
76
- {
77
- className: t(
78
- "text-surface-fg-subtle",
79
- c ? "text-ds-sm" : "text-ds-md"
64
+ /* @__PURE__ */ r(
65
+ n.div,
66
+ {
67
+ className: "flex max-w-[280px] flex-col gap-ds-02",
68
+ initial: { opacity: 0 },
69
+ animate: { opacity: 1 },
70
+ transition: { delay: 0.2, ...g.fade },
71
+ children: [
72
+ /* @__PURE__ */ s(
73
+ "h3",
74
+ {
75
+ className: t(
76
+ "text-surface-fg",
77
+ c ? "text-ds-md font-semibold" : "text-ds-base font-semibold"
78
+ ),
79
+ children: m
80
+ }
80
81
  ),
81
- children: d
82
- }
83
- )
84
- ] }),
85
- r && /* @__PURE__ */ s("div", { className: "mt-ds-02", children: r })
82
+ i && /* @__PURE__ */ s(
83
+ "p",
84
+ {
85
+ className: t(
86
+ "text-surface-fg-subtle",
87
+ c ? "text-ds-sm" : "text-ds-md"
88
+ ),
89
+ children: i
90
+ }
91
+ )
92
+ ]
93
+ }
94
+ ),
95
+ d && /* @__PURE__ */ s("div", { className: "mt-ds-02", children: d })
86
96
  ]
87
97
  }
88
98
  );
89
99
  }
90
100
  );
91
- y.displayName = "EmptyState";
101
+ w.displayName = "EmptyState";
92
102
  export {
93
- y as EmptyState
103
+ w as EmptyState
94
104
  };
@@ -1 +1 @@
1
- {"version":3,"file":"global-loading.d.ts","sourceRoot":"","sources":["../../src/composed/global-loading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC/E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,aAAa,2FAgDlB,CAAA;AAID,OAAO,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"global-loading.d.ts","sourceRoot":"","sources":["../../src/composed/global-loading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC/E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,aAAa,2FAqDlB,CAAA;AAID,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import * as m from "react";
4
- import { useRef as l, useState as p, useEffect as i } from "react";
4
+ import { useRef as i, useState as p, useEffect as l } from "react";
5
5
  import { cn as c } from "../ui/lib/utils.js";
6
6
  const d = m.forwardRef(
7
7
  function({ isLoading: e, className: u, ...f }, s) {
8
- const t = l(null), [r, o] = p(!0), a = l();
9
- return i(() => () => {
8
+ const o = i(null), [t, r] = p(!0), a = i();
9
+ return l(() => () => {
10
10
  clearTimeout(a.current);
11
- }, []), i(() => {
12
- t.current && e && o(!1);
11
+ }, []), l(() => {
12
+ o.current && e && r(!1);
13
13
  }, [e]), /* @__PURE__ */ n(
14
14
  "div",
15
15
  {
@@ -23,16 +23,17 @@ const d = m.forwardRef(
23
23
  children: /* @__PURE__ */ n(
24
24
  "div",
25
25
  {
26
- ref: t,
26
+ ref: o,
27
27
  className: c(
28
- "h-full bg-accent-9 transition-all duration-slow-01 ease-productive-standard",
28
+ "h-full bg-accent-9 transition-[width,opacity] duration-slow-01 ease-productive-standard",
29
29
  e && "w-4/5 opacity-100",
30
- !e && r && "w-0 opacity-0",
31
- !e && !r && "w-full opacity-100"
30
+ !e && t && "w-0 opacity-0",
31
+ !e && !t && "w-full opacity-100"
32
32
  ),
33
+ style: !e && !t ? { boxShadow: "0 0 8px var(--color-accent-9)" } : void 0,
33
34
  onTransitionEnd: () => {
34
35
  e || (a.current = setTimeout(() => {
35
- o(!0);
36
+ r(!0);
36
37
  }, 200));
37
38
  }
38
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,YAAY,0FA2BjB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,aAAa,2FAoDlB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;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
+ {"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,YAAY,0FA2BjB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,aAAa,2FAqDlB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,aAAa,2FAiDlB,CAAA;AAID,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,YAAY,0FA+BjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,CAAA"}