@devalok/shilp-sutra 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/_chunks/badge-group.js +299 -0
  2. package/dist/_chunks/framer.js +1915 -1980
  3. package/dist/_chunks/keybinding.js +4 -5
  4. package/dist/_chunks/primitives.js +3198 -3272
  5. package/dist/_chunks/sonner.js +29 -31
  6. package/dist/_chunks/stat-row.js +110 -131
  7. package/dist/_chunks/tiptap.js +42 -78
  8. package/dist/_chunks/tree-view.js +138 -149
  9. package/dist/_chunks/typing-indicator.js +565 -0
  10. package/dist/_chunks/use-calendar.js +416 -439
  11. package/dist/_chunks/vendor-client.js +5 -5
  12. package/dist/_chunks/vendor-utils.js +5 -5
  13. package/dist/ai/block-renderer.js +22 -22
  14. package/dist/ai/blocks/loading.d.ts.map +1 -1
  15. package/dist/ai/command-bar.d.ts.map +1 -1
  16. package/dist/ai/command-bar.js +241 -263
  17. package/dist/ai/conversation.d.ts.map +1 -1
  18. package/dist/ai/conversation.js +87 -107
  19. package/dist/composed/activity-feed.d.ts +2 -0
  20. package/dist/composed/activity-feed.d.ts.map +1 -1
  21. package/dist/composed/activity-feed.js +118 -90
  22. package/dist/composed/avatar-group.d.ts +1 -0
  23. package/dist/composed/avatar-group.d.ts.map +1 -1
  24. package/dist/composed/avatar-group.js +125 -86
  25. package/dist/composed/bulk-action-bar.d.ts.map +1 -1
  26. package/dist/composed/bulk-action-bar.js +29 -28
  27. package/dist/composed/command-palette.d.ts.map +1 -1
  28. package/dist/composed/command-palette.js +99 -113
  29. package/dist/composed/content-card.js +1 -1
  30. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  31. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  32. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  33. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  34. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  35. package/dist/composed/deadline-indicator.d.ts.map +1 -1
  36. package/dist/composed/deadline-indicator.js +29 -28
  37. package/dist/composed/error-boundary.d.ts.map +1 -1
  38. package/dist/composed/error-boundary.js +30 -27
  39. package/dist/composed/extensions/file-attachment.d.ts.map +1 -1
  40. package/dist/composed/file-preview.d.ts.map +1 -1
  41. package/dist/composed/file-preview.js +261 -271
  42. package/dist/composed/filter-bar.d.ts.map +1 -1
  43. package/dist/composed/filter-bar.js +49 -48
  44. package/dist/composed/form-section.d.ts.map +1 -1
  45. package/dist/composed/form-section.js +12 -11
  46. package/dist/composed/global-loading.js +1 -1
  47. package/dist/composed/index.d.ts +1 -1
  48. package/dist/composed/index.d.ts.map +1 -1
  49. package/dist/composed/index.js +63 -63
  50. package/dist/composed/inline-edit.d.ts.map +1 -1
  51. package/dist/composed/inline-edit.js +55 -54
  52. package/dist/composed/markdown-viewer.d.ts.map +1 -1
  53. package/dist/composed/markdown-viewer.js +44 -43
  54. package/dist/composed/master-detail.d.ts.map +1 -1
  55. package/dist/composed/master-detail.js +35 -34
  56. package/dist/composed/multi-select-popover.d.ts.map +1 -1
  57. package/dist/composed/multi-select-popover.js +73 -73
  58. package/dist/composed/page-header.d.ts.map +1 -1
  59. package/dist/composed/page-header.js +42 -35
  60. package/dist/composed/priority-indicator.d.ts.map +1 -1
  61. package/dist/composed/priority-indicator.js +37 -36
  62. package/dist/composed/rich-text-editor.d.ts +3 -0
  63. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  64. package/dist/composed/rich-text-editor.js +295 -311
  65. package/dist/composed/schedule-view.js +62 -62
  66. package/dist/composed/status-badge.d.ts +4 -2
  67. package/dist/composed/status-badge.d.ts.map +1 -1
  68. package/dist/composed/status-badge.js +58 -45
  69. package/dist/shell/app-command-palette.d.ts.map +1 -1
  70. package/dist/shell/app-command-palette.js +93 -93
  71. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  72. package/dist/shell/bottom-navbar.js +21 -20
  73. package/dist/shell/index.js +18 -18
  74. package/dist/shell/notification-center.d.ts.map +1 -1
  75. package/dist/shell/notification-center.js +96 -95
  76. package/dist/shell/notification-preferences.d.ts.map +1 -1
  77. package/dist/shell/notification-preferences.js +82 -85
  78. package/dist/shell/sidebar.js +59 -60
  79. package/dist/shell/top-bar.d.ts.map +1 -1
  80. package/dist/shell/top-bar.js +103 -103
  81. package/dist/tailwind/index.cjs +37 -4
  82. package/dist/tailwind/preset.d.ts.map +1 -1
  83. package/dist/tailwind/preset.js +38 -5
  84. package/dist/tokens/primitives.css +20 -0
  85. package/dist/tokens/semantic.css +74 -7
  86. package/dist/ui/accordion.d.ts +5 -2
  87. package/dist/ui/accordion.d.ts.map +1 -1
  88. package/dist/ui/accordion.js +44 -39
  89. package/dist/ui/alert-dialog.js +57 -57
  90. package/dist/ui/alert.d.ts +1 -1
  91. package/dist/ui/alert.d.ts.map +1 -1
  92. package/dist/ui/alert.js +30 -29
  93. package/dist/ui/aspect-ratio.js +4 -4
  94. package/dist/ui/autocomplete.js +56 -56
  95. package/dist/ui/avatar.js +2 -2
  96. package/dist/ui/badge-group.d.ts +22 -0
  97. package/dist/ui/badge-group.d.ts.map +1 -0
  98. package/dist/ui/badge-group.js +8 -0
  99. package/dist/ui/badge-indicator.d.ts +32 -0
  100. package/dist/ui/badge-indicator.d.ts.map +1 -0
  101. package/dist/ui/badge-indicator.js +54 -0
  102. package/dist/ui/badge.d.ts +27 -24
  103. package/dist/ui/badge.d.ts.map +1 -1
  104. package/dist/ui/badge.js +13 -129
  105. package/dist/ui/banner.d.ts +1 -1
  106. package/dist/ui/banner.d.ts.map +1 -1
  107. package/dist/ui/banner.js +27 -26
  108. package/dist/ui/breadcrumb.d.ts.map +1 -1
  109. package/dist/ui/breadcrumb.js +37 -36
  110. package/dist/ui/button-group.d.ts +12 -6
  111. package/dist/ui/button-group.d.ts.map +1 -1
  112. package/dist/ui/button-group.js +18 -18
  113. package/dist/ui/button-processing.d.ts +16 -0
  114. package/dist/ui/button-processing.d.ts.map +1 -0
  115. package/dist/ui/button-processing.js +77 -0
  116. package/dist/ui/button.d.ts +50 -25
  117. package/dist/ui/button.d.ts.map +1 -1
  118. package/dist/ui/button.js +243 -127
  119. package/dist/ui/card.js +20 -21
  120. package/dist/ui/charts/index.js +499 -508
  121. package/dist/ui/chat/date-separator.d.ts +12 -0
  122. package/dist/ui/chat/date-separator.d.ts.map +1 -0
  123. package/dist/ui/chat/index.d.ts +9 -0
  124. package/dist/ui/chat/index.d.ts.map +1 -0
  125. package/dist/ui/chat/index.js +12 -0
  126. package/dist/ui/chat/message-input.d.ts +16 -0
  127. package/dist/ui/chat/message-input.d.ts.map +1 -0
  128. package/dist/ui/chat/message-list.d.ts +24 -0
  129. package/dist/ui/chat/message-list.d.ts.map +1 -0
  130. package/dist/ui/chat/message.d.ts +108 -0
  131. package/dist/ui/chat/message.d.ts.map +1 -0
  132. package/dist/ui/chat/system-message.d.ts +11 -0
  133. package/dist/ui/chat/system-message.d.ts.map +1 -0
  134. package/dist/ui/chat/typing-indicator.d.ts +14 -0
  135. package/dist/ui/chat/typing-indicator.d.ts.map +1 -0
  136. package/dist/ui/chat/unread-separator.d.ts +12 -0
  137. package/dist/ui/chat/unread-separator.d.ts.map +1 -0
  138. package/dist/ui/checkbox.js +18 -18
  139. package/dist/ui/chip.d.ts +13 -62
  140. package/dist/ui/chip.d.ts.map +1 -1
  141. package/dist/ui/chip.js +10 -109
  142. package/dist/ui/collapsible.js +4 -4
  143. package/dist/ui/color-input.js +134 -134
  144. package/dist/ui/color-swatch.js +11 -11
  145. package/dist/ui/combobox.d.ts.map +1 -1
  146. package/dist/ui/combobox.js +74 -80
  147. package/dist/ui/context-menu.d.ts.map +1 -1
  148. package/dist/ui/context-menu.js +86 -85
  149. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  150. package/dist/ui/data-table-toolbar.js +51 -57
  151. package/dist/ui/data-table.d.ts.map +1 -1
  152. package/dist/ui/data-table.js +268 -296
  153. package/dist/ui/devalok-grain.d.ts +81 -0
  154. package/dist/ui/devalok-grain.d.ts.map +1 -0
  155. package/dist/ui/devalok-grain.js +69 -0
  156. package/dist/ui/dialog.d.ts.map +1 -1
  157. package/dist/ui/dialog.js +73 -72
  158. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  159. package/dist/ui/dropdown-menu.js +93 -92
  160. package/dist/ui/file-upload.d.ts.map +1 -1
  161. package/dist/ui/file-upload.js +82 -82
  162. package/dist/ui/hover-card.js +29 -29
  163. package/dist/ui/icon-button.d.ts +7 -7
  164. package/dist/ui/icon-button.d.ts.map +1 -1
  165. package/dist/ui/icon-context.d.ts +15 -0
  166. package/dist/ui/icon-context.d.ts.map +1 -0
  167. package/dist/ui/icon-context.js +20 -0
  168. package/dist/ui/icon-group.d.ts +22 -0
  169. package/dist/ui/icon-group.d.ts.map +1 -0
  170. package/dist/ui/icon-group.js +32 -0
  171. package/dist/ui/icon.d.ts +57 -0
  172. package/dist/ui/icon.d.ts.map +1 -0
  173. package/dist/ui/icon.js +122 -0
  174. package/dist/ui/index.d.ts +8 -1
  175. package/dist/ui/index.d.ts.map +1 -1
  176. package/dist/ui/index.js +351 -329
  177. package/dist/ui/input-otp.d.ts.map +1 -1
  178. package/dist/ui/input-otp.js +21 -20
  179. package/dist/ui/input.d.ts +32 -11
  180. package/dist/ui/input.d.ts.map +1 -1
  181. package/dist/ui/input.js +149 -44
  182. package/dist/ui/lib/motion.d.ts +2 -0
  183. package/dist/ui/lib/motion.d.ts.map +1 -1
  184. package/dist/ui/lib/motion.js +13 -11
  185. package/dist/ui/lib/utils.js +4 -4
  186. package/dist/ui/menubar.d.ts.map +1 -1
  187. package/dist/ui/menubar.js +87 -86
  188. package/dist/ui/navigation-menu.d.ts.map +1 -1
  189. package/dist/ui/navigation-menu.js +23 -28
  190. package/dist/ui/number-input.d.ts.map +1 -1
  191. package/dist/ui/number-input.js +54 -53
  192. package/dist/ui/pagination.d.ts.map +1 -1
  193. package/dist/ui/pagination.js +45 -44
  194. package/dist/ui/popover.js +28 -28
  195. package/dist/ui/progress.d.ts +3 -1
  196. package/dist/ui/progress.d.ts.map +1 -1
  197. package/dist/ui/progress.js +43 -39
  198. package/dist/ui/search-input.d.ts.map +1 -1
  199. package/dist/ui/search-input.js +47 -60
  200. package/dist/ui/segmented-control.js +1 -1
  201. package/dist/ui/select.d.ts.map +1 -1
  202. package/dist/ui/select.js +54 -53
  203. package/dist/ui/sheet.d.ts.map +1 -1
  204. package/dist/ui/sheet.js +46 -45
  205. package/dist/ui/sidebar.d.ts.map +1 -1
  206. package/dist/ui/sidebar.js +196 -193
  207. package/dist/ui/skeleton.js +1 -1
  208. package/dist/ui/spinner.js +74 -74
  209. package/dist/ui/stat-card.d.ts.map +1 -1
  210. package/dist/ui/stat-card.js +85 -86
  211. package/dist/ui/switch.d.ts +3 -0
  212. package/dist/ui/switch.d.ts.map +1 -1
  213. package/dist/ui/switch.js +41 -27
  214. package/dist/ui/tabs.js +43 -43
  215. package/dist/ui/text.js +1 -1
  216. package/dist/ui/textarea.js +10 -10
  217. package/dist/ui/toast.d.ts.map +1 -1
  218. package/dist/ui/toast.js +169 -169
  219. package/dist/ui/toggle.js +4 -4
  220. package/dist/ui/tooltip.js +40 -40
  221. package/dist/ui/tree-view/tree-item.d.ts.map +1 -1
  222. package/docs/components/_header.md +4 -4
  223. package/docs/components/composed/activity-feed.md +7 -0
  224. package/docs/components/composed/avatar-group.md +8 -5
  225. package/docs/components/composed/rich-text-editor.md +6 -0
  226. package/docs/components/composed/status-badge.md +14 -1
  227. package/docs/components/ui/accordion.md +5 -2
  228. package/docs/components/ui/badge-group.md +38 -0
  229. package/docs/components/ui/badge-indicator.md +40 -0
  230. package/docs/components/ui/badge.md +36 -5
  231. package/docs/components/ui/button-processing.md +15 -0
  232. package/docs/components/ui/button.md +40 -11
  233. package/docs/components/ui/chat.md +214 -0
  234. package/docs/components/ui/data-table.md +3 -0
  235. package/docs/components/ui/devalok-grain.md +55 -0
  236. package/docs/components/ui/icon-button.md +12 -5
  237. package/docs/components/ui/icon-context.md +38 -0
  238. package/docs/components/ui/icon-group.md +36 -0
  239. package/docs/components/ui/icon.md +47 -0
  240. package/docs/components/ui/input.md +32 -6
  241. package/docs/components/ui/progress.md +5 -0
  242. package/docs/components/ui/spinner.md +3 -0
  243. package/docs/components/ui/switch.md +13 -0
  244. package/llms-full.txt +672 -40
  245. package/llms.txt +46 -21
  246. package/package.json +7 -2
@@ -1,87 +1,88 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
3
- import * as k from "react";
4
- import { cn as i } from "../ui/lib/utils.js";
5
- import { IconChevronRight as F } from "@tabler/icons-react";
6
- import { Avatar as W, AvatarImage as j, AvatarFallback as E } from "../ui/avatar.js";
7
- import { Button as S } from "../ui/button.js";
8
- import { Skeleton as v } from "../ui/skeleton.js";
9
- import { getInitials as R } from "./lib/string-utils.js";
10
- import { formatRelativeTime as L } from "../ui/lib/date-utils.js";
11
- import { tweens as D } from "../ui/lib/motion.js";
12
- import { m as T } from "../_chunks/framer.js";
13
- const z = {
2
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
3
+ import * as D from "react";
4
+ import { cn as a } from "../ui/lib/utils.js";
5
+ import { IconChevronRight as W } from "@tabler/icons-react";
6
+ import { Icon as j } from "../ui/icon.js";
7
+ import { Avatar as z, AvatarImage as R, AvatarFallback as L } from "../ui/avatar.js";
8
+ import { Button as E } from "../ui/button.js";
9
+ import { Skeleton as N } from "../ui/skeleton.js";
10
+ import { getInitials as B } from "./lib/string-utils.js";
11
+ import { formatRelativeTime as G } from "../ui/lib/date-utils.js";
12
+ import { tweens as T } from "../ui/lib/motion.js";
13
+ import { m as A } from "../_chunks/framer.js";
14
+ const O = {
14
15
  default: "bg-surface-fg-subtle",
15
16
  success: "bg-success-9",
16
17
  warning: "bg-warning-9",
17
18
  error: "bg-error-9",
18
19
  info: "bg-info-9"
19
- }, B = {
20
+ }, I = {
20
21
  today: "Today",
21
22
  yesterday: "Yesterday",
22
23
  thisWeek: "This Week",
23
24
  older: "Older"
24
25
  };
25
- function G(e, a) {
26
- const d = { ...B, ...a }, o = /* @__PURE__ */ new Date(), c = new Date(o.getFullYear(), o.getMonth(), o.getDate()), n = new Date(c.getTime() - 24 * 60 * 60 * 1e3), r = o.getDay(), b = r === 0 ? 6 : r - 1, y = new Date(
27
- c.getTime() - b * 24 * 60 * 60 * 1e3
28
- ), f = [], m = [], u = [], g = [];
29
- for (const l of e) {
30
- const x = (typeof l.timestamp == "string" ? new Date(l.timestamp) : l.timestamp).getTime();
31
- x >= c.getTime() ? f.push(l) : x >= n.getTime() ? m.push(l) : x >= y.getTime() ? u.push(l) : g.push(l);
26
+ function Y(e, s) {
27
+ const l = { ...I, ...s }, n = /* @__PURE__ */ new Date(), f = new Date(n.getFullYear(), n.getMonth(), n.getDate()), o = new Date(f.getTime() - 1440 * 60 * 1e3), i = n.getDay(), w = i === 0 ? 6 : i - 1, k = new Date(
28
+ f.getTime() - w * 24 * 60 * 60 * 1e3
29
+ ), g = [], m = [], u = [], h = [];
30
+ for (const c of e) {
31
+ const v = (typeof c.timestamp == "string" ? new Date(c.timestamp) : c.timestamp).getTime();
32
+ v >= f.getTime() ? g.push(c) : v >= o.getTime() ? m.push(c) : v >= k.getTime() ? u.push(c) : h.push(c);
32
33
  }
33
- const h = [];
34
- return f.length > 0 && h.push({ label: d.today, items: f }), m.length > 0 && h.push({ label: d.yesterday, items: m }), u.length > 0 && h.push({ label: d.thisWeek, items: u }), g.length > 0 && h.push({ label: d.older, items: g }), h;
34
+ const p = [];
35
+ return g.length > 0 && p.push({ label: l.today, items: g }), m.length > 0 && p.push({ label: l.yesterday, items: m }), u.length > 0 && p.push({ label: l.thisWeek, items: u }), h.length > 0 && p.push({ label: l.older, items: h }), p;
35
36
  }
36
- function I({ compact: e }) {
37
- return /* @__PURE__ */ t("div", { className: i("flex flex-col", e ? "gap-1" : "gap-3"), children: [0, 1, 2].map((a) => /* @__PURE__ */ s("div", { className: "flex items-center gap-ds-03", children: [
38
- /* @__PURE__ */ t(v, { className: "h-2 w-2 shrink-0 rounded-ds-full" }),
39
- !e && /* @__PURE__ */ t(v, { className: "h-4 w-4 shrink-0 rounded-ds-full" }),
40
- /* @__PURE__ */ t(v, { className: i("flex-1", e ? "h-3" : "h-4") }),
41
- /* @__PURE__ */ t(v, { className: "h-3 w-12" })
42
- ] }, a)) });
37
+ function M({ compact: e }) {
38
+ return /* @__PURE__ */ t("div", { className: a("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: [
39
+ /* @__PURE__ */ t(N, { className: "h-2 w-2 shrink-0 rounded-ds-full" }),
40
+ !e && /* @__PURE__ */ t(N, { className: "h-4 w-4 shrink-0 rounded-ds-full" }),
41
+ /* @__PURE__ */ t(N, { className: a("flex-1", e ? "h-3" : "h-4") }),
42
+ /* @__PURE__ */ t(N, { className: "h-3 w-12" })
43
+ ] }, s)) });
43
44
  }
44
- function O({
45
+ function U({
45
46
  item: e,
46
- compact: a
47
+ compact: s
47
48
  }) {
48
- const [d, o] = k.useState(!1), c = e.color ?? "default", n = () => {
49
- e.detail && o((r) => !r);
49
+ const [l, n] = D.useState(!1), f = e.color ?? "default", o = () => {
50
+ e.detail && n((i) => !i);
50
51
  };
51
- return /* @__PURE__ */ s("div", { className: i("relative flex items-start", a ? "gap-ds-02" : "gap-ds-03"), children: [
52
+ return /* @__PURE__ */ r("div", { className: a("relative flex items-start", s ? "gap-ds-02" : "gap-ds-03"), children: [
52
53
  /* @__PURE__ */ t(
53
54
  "div",
54
55
  {
55
- className: i(
56
+ className: a(
56
57
  "relative z-10 mt-1.5 h-2 w-2 shrink-0 rounded-ds-full ring-2 ring-surface-base",
57
- z[c]
58
+ O[f]
58
59
  )
59
60
  }
60
61
  ),
61
- !a && e.actor && /* @__PURE__ */ s(W, { className: "h-5 w-5 shrink-0 text-[9px]", children: [
62
- e.actor.image && /* @__PURE__ */ t(j, { src: e.actor.image, alt: e.actor.name }),
63
- /* @__PURE__ */ t(E, { className: "text-[9px]", children: R(e.actor.name) })
62
+ !s && e.actor && /* @__PURE__ */ r(z, { className: "h-5 w-5 shrink-0 text-[9px]", children: [
63
+ e.actor.image && /* @__PURE__ */ t(R, { src: e.actor.image, alt: e.actor.name }),
64
+ /* @__PURE__ */ t(L, { className: "text-[9px]", children: B(e.actor.name) })
64
65
  ] }),
65
- /* @__PURE__ */ s("div", { className: "flex min-w-0 flex-1 flex-col", children: [
66
- /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-ds-02", children: [
67
- /* @__PURE__ */ s("div", { className: i("min-w-0 flex-1 flex items-center gap-ds-01 flex-wrap", a ? "text-ds-xs" : "text-ds-sm"), children: [
68
- e.actor && /* @__PURE__ */ s("span", { className: "font-medium text-surface-fg", children: [
66
+ /* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1 flex-col", children: [
67
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-ds-02", children: [
68
+ /* @__PURE__ */ r("div", { className: a("min-w-0 flex-1 flex items-center gap-ds-01 flex-wrap", s ? "text-ds-xs" : "text-ds-sm"), children: [
69
+ e.actor && /* @__PURE__ */ r("span", { className: "font-medium text-surface-fg", children: [
69
70
  e.actor.name,
70
71
  " "
71
72
  ] }),
72
- e.detail && /* @__PURE__ */ t(F, { className: i("h-3 w-3 shrink-0 text-surface-fg-subtle transition-transform duration-fast-02 ease-productive-standard", d && "rotate-90") }),
73
+ e.detail && /* @__PURE__ */ t(j, { icon: W, size: "xs", className: a("shrink-0 text-surface-fg-subtle transition-transform duration-fast-02 ease-productive-standard", l && "rotate-90") }),
73
74
  /* @__PURE__ */ t(
74
75
  "span",
75
76
  {
76
- className: i(
77
+ className: a(
77
78
  "text-surface-fg-muted",
78
79
  e.detail && "cursor-pointer hover:underline hover:bg-surface-raised rounded-ds-md"
79
80
  ),
80
- onClick: n,
81
+ onClick: o,
81
82
  role: e.detail ? "button" : void 0,
82
83
  tabIndex: e.detail ? 0 : void 0,
83
- onKeyDown: e.detail ? (r) => {
84
- (r.key === "Enter" || r.key === " ") && (r.preventDefault(), n());
84
+ onKeyDown: e.detail ? (i) => {
85
+ (i.key === "Enter" || i.key === " ") && (i.preventDefault(), o());
85
86
  } : void 0,
86
87
  children: e.action
87
88
  }
@@ -90,32 +91,51 @@ function O({
90
91
  /* @__PURE__ */ t(
91
92
  "time",
92
93
  {
93
- className: i(
94
+ className: a(
94
95
  "shrink-0 whitespace-nowrap text-surface-fg-subtle",
95
- a ? "text-ds-xs" : "text-ds-sm"
96
+ s ? "text-ds-xs" : "text-ds-sm"
96
97
  ),
97
98
  dateTime: (typeof e.timestamp == "string" ? new Date(e.timestamp) : e.timestamp).toISOString(),
98
- children: L(e.timestamp)
99
+ children: G(e.timestamp)
99
100
  }
100
101
  )
101
102
  ] }),
102
- d && e.detail && /* @__PURE__ */ t("div", { className: "mt-ds-02 animate-in fade-in slide-in-from-top-1 text-ds-sm text-surface-fg-muted", children: e.detail })
103
+ l && e.detail && /* @__PURE__ */ t("div", { className: "mt-ds-02 animate-in fade-in slide-in-from-top-1 text-ds-sm text-surface-fg-muted", children: e.detail })
103
104
  ] })
104
105
  ] });
105
106
  }
106
- function Y({
107
+ function _({
108
+ item: e,
109
+ compact: s,
110
+ children: l
111
+ }) {
112
+ const n = e.color ?? "default";
113
+ return /* @__PURE__ */ r("div", { className: a("relative flex items-start", s ? "gap-ds-02" : "gap-ds-03"), children: [
114
+ /* @__PURE__ */ t(
115
+ "div",
116
+ {
117
+ className: a(
118
+ "relative z-10 mt-1.5 h-2 w-2 shrink-0 rounded-ds-full ring-2 ring-surface-base",
119
+ O[n]
120
+ )
121
+ }
122
+ ),
123
+ /* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: l })
124
+ ] });
125
+ }
126
+ function H({
107
127
  label: e,
108
- isFirst: a
128
+ isFirst: s
109
129
  }) {
110
- return /* @__PURE__ */ s(
111
- T.div,
130
+ return /* @__PURE__ */ r(
131
+ A.div,
112
132
  {
113
133
  initial: { opacity: 0 },
114
134
  animate: { opacity: 1 },
115
- transition: D.fade,
116
- className: i(
135
+ transition: T.fade,
136
+ className: a(
117
137
  "flex items-center gap-ds-03",
118
- a ? "" : "mt-ds-06",
138
+ s ? "" : "mt-ds-06",
119
139
  "mb-ds-03"
120
140
  ),
121
141
  children: [
@@ -126,43 +146,51 @@ function Y({
126
146
  }
127
147
  );
128
148
  }
129
- const M = k.forwardRef(
149
+ const K = D.forwardRef(
130
150
  ({
131
151
  items: e,
132
- onLoadMore: a,
133
- loading: d = !1,
134
- hasMore: o = !1,
135
- emptyState: c,
136
- compact: n = !1,
137
- maxInitialItems: r,
138
- groupBy: b = "none",
139
- groupLabels: y,
140
- className: f,
141
- ...m
142
- }, u) => {
143
- const [g, h] = k.useState(!1);
144
- if (d)
145
- return /* @__PURE__ */ t("div", { ref: u, className: i("relative", f), ...m, children: /* @__PURE__ */ t(I, { compact: n }) });
152
+ onLoadMore: s,
153
+ loading: l = !1,
154
+ hasMore: n = !1,
155
+ emptyState: f,
156
+ compact: o = !1,
157
+ maxInitialItems: i,
158
+ groupBy: w = "none",
159
+ groupLabels: k,
160
+ renderItem: g,
161
+ className: m,
162
+ ...u
163
+ }, h) => {
164
+ const [p, c] = D.useState(!1);
165
+ if (l)
166
+ return /* @__PURE__ */ t("div", { ref: h, className: a("relative", m), ...u, children: /* @__PURE__ */ t(M, { compact: o }) });
146
167
  if (e.length === 0)
147
- return c ? /* @__PURE__ */ t("div", { ref: u, className: f, ...m, children: c }) : null;
148
- const l = r != null && !g && e.length > r, w = l ? e.slice(0, r) : e, x = b === "time";
149
- return /* @__PURE__ */ s("div", { ref: u, className: i("relative", f), ...m, children: [
150
- x ? /* @__PURE__ */ t("div", { children: G(w, y).map((p, N) => /* @__PURE__ */ s("div", { children: [
151
- /* @__PURE__ */ t(Y, { label: p.label, isFirst: N === 0 }),
152
- /* @__PURE__ */ s("div", { className: i("relative flex flex-col", n ? "gap-1" : "gap-3"), children: [
168
+ return f ? /* @__PURE__ */ t("div", { ref: h, className: m, ...u, children: f }) : null;
169
+ const b = i != null && !p && e.length > i, v = b ? e.slice(0, i) : e, F = w === "time", S = (d, x) => {
170
+ if (g) {
171
+ const y = g(d, x);
172
+ if (y !== void 0)
173
+ return /* @__PURE__ */ t(_, { item: d, compact: o, children: y });
174
+ }
175
+ return /* @__PURE__ */ t(U, { item: d, compact: o });
176
+ };
177
+ return /* @__PURE__ */ r("div", { ref: h, className: a("relative", m), ...u, children: [
178
+ F ? /* @__PURE__ */ t("div", { children: Y(v, k).map((d, x) => /* @__PURE__ */ r("div", { children: [
179
+ /* @__PURE__ */ t(H, { label: d.label, isFirst: x === 0 }),
180
+ /* @__PURE__ */ r("div", { className: a("relative flex flex-col", o ? "gap-1" : "gap-3"), children: [
153
181
  /* @__PURE__ */ t("div", { className: "absolute bottom-0 left-[3px] top-0 w-px bg-surface-border" }),
154
- p.items.map((A, C) => /* @__PURE__ */ t(T.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { ...D.fade, delay: C * 0.03 }, children: /* @__PURE__ */ t(O, { item: A, compact: n }) }, A.id))
182
+ d.items.map((y, C) => /* @__PURE__ */ t(A.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { ...T.fade, delay: C * 0.03 }, children: S(y, C) }, y.id))
155
183
  ] })
156
- ] }, p.label)) }) : /* @__PURE__ */ s("div", { className: i("relative flex flex-col", n ? "gap-1" : "gap-3"), children: [
184
+ ] }, d.label)) }) : /* @__PURE__ */ r("div", { className: a("relative flex flex-col", o ? "gap-1" : "gap-3"), children: [
157
185
  /* @__PURE__ */ t("div", { className: "absolute bottom-0 left-[3px] top-0 w-px bg-surface-border" }),
158
- w.map((p, N) => /* @__PURE__ */ t(T.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { ...D.fade, delay: N * 0.03 }, children: /* @__PURE__ */ t(O, { item: p, compact: n }) }, p.id))
186
+ v.map((d, x) => /* @__PURE__ */ t(A.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { ...T.fade, delay: x * 0.03 }, children: S(d, x) }, d.id))
159
187
  ] }),
160
- l && /* @__PURE__ */ t("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ s(
161
- S,
188
+ b && /* @__PURE__ */ t("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ r(
189
+ E,
162
190
  {
163
191
  variant: "ghost",
164
192
  size: "sm",
165
- onClick: () => h(!0),
193
+ onClick: () => c(!0),
166
194
  children: [
167
195
  "Show all (",
168
196
  e.length,
@@ -170,12 +198,12 @@ const M = k.forwardRef(
170
198
  ]
171
199
  }
172
200
  ) }),
173
- o && a && !l && /* @__PURE__ */ t("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ t(S, { variant: "ghost", size: "sm", onClick: a, children: "Load more" }) })
201
+ n && s && !b && /* @__PURE__ */ t("div", { className: "relative mt-ds-03 flex justify-center", children: /* @__PURE__ */ t(E, { variant: "ghost", size: "sm", onClick: s, children: "Load more" }) })
174
202
  ] });
175
203
  }
176
204
  );
177
- M.displayName = "ActivityFeed";
205
+ K.displayName = "ActivityFeed";
178
206
  export {
179
- M as ActivityFeed,
180
- G as groupItemsByTime
207
+ K as ActivityFeed,
208
+ Y as groupItemsByTime
181
209
  };
@@ -9,6 +9,7 @@ export interface AvatarUser {
9
9
  name: string;
10
10
  image?: string | null;
11
11
  ring?: AvatarRing;
12
+ indicator?: 'lead' | 'admin' | React.ReactNode;
12
13
  }
13
14
  export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarSizeVariants> {
14
15
  users: AvatarUser[];
@@ -1 +1 @@
1
- {"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/composed/avatar-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAOjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgB9C,QAAA,MAAM,kBAAkB;;8EAgBvB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oEAAoE;IACpE,WAAW,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAAA;IAC/C,uDAAuD;IACvD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACnE,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,iEAAiE;IACjE,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;CAC9C;AAED,QAAA,MAAM,WAAW,yFAqLhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/composed/avatar-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AASjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAgB9C,QAAA,MAAM,kBAAkB;;8EAgBvB,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,SAAS,CAAA;CAC/C;AAED,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oEAAoE;IACpE,WAAW,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAAA;IAC/C,uDAAuD;IACvD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACnE,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,iEAAiE;IACjE,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;CAC9C;AAED,QAAA,MAAM,WAAW,yFAmOhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1,16 +1,18 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
3
- import * as v from "react";
4
- import { c as $ } from "../_chunks/vendor-utils.js";
5
- import { cn as o } from "../ui/lib/utils.js";
6
- import { Avatar as E, AvatarImage as F, AvatarFallback as G } from "../ui/avatar.js";
7
- import { TooltipProvider as H, Tooltip as x, TooltipTrigger as y, TooltipContent as N } from "../ui/tooltip.js";
8
- import { getInitials as B } from "./lib/string-utils.js";
9
- const w = {
2
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
3
+ import * as y from "react";
4
+ import { a as F } from "../_chunks/vendor-utils.js";
5
+ import { cn as i } from "../ui/lib/utils.js";
6
+ import { springs as G } from "../ui/lib/motion.js";
7
+ import { Avatar as H, AvatarImage as B, AvatarFallback as L } from "../ui/avatar.js";
8
+ import { TooltipProvider as O, Tooltip as w, TooltipTrigger as N, TooltipContent as M } from "../ui/tooltip.js";
9
+ import { getInitials as q } from "./lib/string-utils.js";
10
+ import { A as J, m as K } from "../_chunks/framer.js";
11
+ const S = {
10
12
  lead: "ring-2 ring-accent-7 ring-offset-1 ring-offset-surface-raised",
11
13
  admin: "ring-2 ring-warning-7 ring-offset-1 ring-offset-surface-raised",
12
14
  client: "ring-2 ring-info-7 ring-offset-1 ring-offset-surface-raised"
13
- }, I = $(
15
+ }, z = F(
14
16
  "shrink-0 overflow-hidden rounded-ds-full border-2",
15
17
  {
16
18
  variants: {
@@ -26,151 +28,188 @@ const w = {
26
28
  size: "md"
27
29
  }
28
30
  }
29
- ), L = v.forwardRef(
31
+ ), Q = y.forwardRef(
30
32
  ({
31
33
  users: l,
32
- max: m = 4,
33
- size: n,
34
- showTooltip: M = !0,
35
- borderColor: T = "surface-raised",
36
- onOverflowClick: p,
37
- renderAvatar: h,
38
- expandDirection: z = "right",
39
- expandAmount: C = "default",
40
- className: S,
41
- ...j
42
- }, k) => {
43
- const a = l.slice(0, m), i = l.length - m, c = {
34
+ max: f = 4,
35
+ size: a,
36
+ showTooltip: $ = !0,
37
+ borderColor: C = "surface-raised",
38
+ onOverflowClick: h,
39
+ renderAvatar: u,
40
+ expandDirection: I = "right",
41
+ expandAmount: T = "default",
42
+ className: k,
43
+ ...A
44
+ }, P) => {
45
+ const n = l.slice(0, f), o = l.length - f, c = {
44
46
  xs: "-ml-ds-02",
45
47
  sm: "-ml-ds-02b",
46
48
  md: "-ml-ds-03",
47
49
  lg: "-ml-ds-04",
48
50
  xl: "-ml-ds-05"
49
- }[n ?? "md"], g = T === "surface-base" ? "border-surface-base" : "border-surface-raised", [A, d] = v.useState(!1), P = {
51
+ }[a ?? "md"], x = {
52
+ xs: "text-[9px]",
53
+ sm: "text-ds-xs",
54
+ md: "text-ds-sm",
55
+ lg: "text-ds-md",
56
+ xl: "text-ds-lg"
57
+ }[a ?? "md"], j = {
58
+ xs: "h-1 w-1",
59
+ sm: "h-1.5 w-1.5",
60
+ md: "h-2 w-2",
61
+ lg: "h-2.5 w-2.5",
62
+ xl: "h-3 w-3"
63
+ }[a ?? "md"], g = C === "surface-base" ? "border-surface-base" : "border-surface-raised", [D, d] = y.useState(!1), R = {
50
64
  xs: 8,
51
65
  sm: 10,
52
66
  md: 12,
53
67
  lg: 16,
54
68
  xl: 20
55
- }[n ?? "md"], R = { compact: 0.5, default: 1, wide: 1.5 }[C], V = a.length + (i > 0 ? 1 : 0);
56
- function f(e) {
57
- if (!A) return "translateX(0)";
58
- const r = P * R;
59
- return z === "left" ? `translateX(-${(V - 1 - e) * r}px)` : `translateX(${e * r}px)`;
69
+ }[a ?? "md"], V = { compact: 0.5, default: 1, wide: 1.5 }[T], X = n.length + (o > 0 ? 1 : 0);
70
+ function m(e) {
71
+ if (!D) return "translateX(0)";
72
+ const t = R * V;
73
+ return I === "left" ? `translateX(-${(X - 1 - e) * t}px)` : `translateX(${e * t}px)`;
60
74
  }
61
- const u = "transition-[transform,opacity] duration-300 ease-out hover:z-50 hover:scale-105 group-hover:[&:not(:hover)]:opacity-85";
62
- return /* @__PURE__ */ t(H, { children: /* @__PURE__ */ s(
75
+ const b = "transition-[transform,opacity] duration-300 ease-out hover:z-50 hover:scale-105 group-hover:[&:not(:hover)]:opacity-85";
76
+ return /* @__PURE__ */ r(O, { children: /* @__PURE__ */ s(
63
77
  "div",
64
78
  {
65
- ref: k,
79
+ ref: P,
66
80
  role: "group",
67
81
  "aria-label": `${l.length} team members`,
68
82
  tabIndex: 0,
69
- className: o("group flex items-center", S),
83
+ className: i("group flex items-center", k),
70
84
  onMouseEnter: () => d(!0),
71
85
  onMouseLeave: () => d(!1),
72
86
  onFocus: () => d(!0),
73
87
  onBlur: (e) => {
74
88
  e.currentTarget.contains(e.relatedTarget) || d(!1);
75
89
  },
76
- ...j,
90
+ ...A,
77
91
  children: [
78
- a.map((e, r) => {
79
- const X = B(e.name);
80
- if (h)
81
- return /* @__PURE__ */ t(
92
+ n.map((e, t) => {
93
+ const E = q(e.name), p = `${e.name}-${t}`;
94
+ if (u)
95
+ return /* @__PURE__ */ r(
82
96
  "div",
83
97
  {
84
- className: o(
85
- "shrink-0",
86
- r > 0 && c,
87
- u,
88
- e.ring && e.ring !== "none" && w[e.ring]
98
+ className: i(
99
+ "shrink-0 rounded-ds-full",
100
+ t > 0 && c,
101
+ b,
102
+ e.ring && e.ring !== "none" && S[e.ring]
89
103
  ),
90
- style: { zIndex: a.length - r, transform: f(r) },
91
- children: h(e, r)
104
+ style: { zIndex: n.length - t, transform: m(t) },
105
+ children: u(e, t)
92
106
  },
93
- e.name
107
+ p
94
108
  );
95
- const b = /* @__PURE__ */ s(
96
- E,
109
+ const v = /* @__PURE__ */ s(
110
+ "div",
97
111
  {
98
- size: n,
99
- className: o(
100
- g,
101
- r > 0 && c,
102
- u,
103
- e.ring && e.ring !== "none" && w[e.ring]
112
+ className: i(
113
+ "relative shrink-0 rounded-ds-full",
114
+ t > 0 && c,
115
+ b,
116
+ e.ring && e.ring !== "none" && S[e.ring]
104
117
  ),
105
- style: { zIndex: a.length - r, transform: f(r) },
118
+ style: { zIndex: n.length - t, transform: m(t) },
106
119
  children: [
107
- e.image && /* @__PURE__ */ t(F, { src: e.image, alt: e.name }),
108
- /* @__PURE__ */ t(
109
- G,
120
+ /* @__PURE__ */ s(
121
+ H,
122
+ {
123
+ size: a,
124
+ className: g,
125
+ children: [
126
+ e.image && /* @__PURE__ */ r(B, { src: e.image, alt: e.name }),
127
+ /* @__PURE__ */ r(
128
+ L,
129
+ {
130
+ colorSeed: e.name,
131
+ children: E
132
+ }
133
+ )
134
+ ]
135
+ }
136
+ ),
137
+ /* @__PURE__ */ r(J, { children: e.indicator && /* @__PURE__ */ r(
138
+ K.span,
110
139
  {
111
- className: "font-body font-semibold",
112
- colorSeed: e.name,
113
- children: X
140
+ initial: { scale: 0, opacity: 0 },
141
+ animate: { scale: 1, opacity: 1 },
142
+ exit: { scale: 0, opacity: 0 },
143
+ transition: G.snappy,
144
+ className: i(
145
+ "absolute top-0 right-0 rounded-ds-full ring-1 ring-surface-raised",
146
+ j,
147
+ e.indicator === "lead" ? "bg-warning-9" : e.indicator === "admin" ? "bg-accent-9" : ""
148
+ ),
149
+ children: typeof e.indicator != "string" && e.indicator
114
150
  }
115
- )
151
+ ) })
116
152
  ]
117
153
  },
118
- e.name
154
+ p
119
155
  );
120
- return M ? /* @__PURE__ */ s(x, { children: [
121
- /* @__PURE__ */ t(y, { asChild: !0, children: b }),
122
- /* @__PURE__ */ t(
123
- N,
156
+ return $ ? /* @__PURE__ */ s(w, { children: [
157
+ /* @__PURE__ */ r(N, { asChild: !0, children: v }),
158
+ /* @__PURE__ */ r(
159
+ M,
124
160
  {
125
161
  className: "border-surface-border-strong bg-surface-base text-surface-fg",
126
162
  sideOffset: 6,
127
- children: /* @__PURE__ */ t("p", { className: "text-ds-sm", children: e.name })
163
+ children: /* @__PURE__ */ r("p", { className: "text-ds-sm", children: e.name })
128
164
  }
129
165
  )
130
- ] }, e.name) : b;
166
+ ] }, p) : v;
131
167
  }),
132
- i > 0 && /* @__PURE__ */ s(x, { children: [
133
- /* @__PURE__ */ t(y, { asChild: !0, children: p ? /* @__PURE__ */ s(
168
+ o > 0 && /* @__PURE__ */ s(w, { children: [
169
+ /* @__PURE__ */ r(N, { asChild: !0, children: h ? /* @__PURE__ */ s(
134
170
  "button",
135
171
  {
136
172
  type: "button",
137
- onClick: p,
138
- className: o(
139
- I({ size: n }),
173
+ onClick: h,
174
+ "aria-label": `${o} more members`,
175
+ className: i(
176
+ z({ size: a }),
140
177
  g,
141
178
  c,
142
- "flex cursor-pointer items-center justify-center bg-accent-2 font-body font-semibold text-accent-11",
179
+ `flex cursor-pointer items-center justify-center bg-accent-2 font-semibold text-accent-11 ${x}`,
143
180
  "hover:scale-105 hover:bg-accent-3 transition-[transform,background-color] duration-300 ease-out"
144
181
  ),
145
- style: { zIndex: 0, transform: f(a.length) },
182
+ style: { zIndex: 0, transform: m(n.length) },
146
183
  children: [
147
184
  "+",
148
- i
185
+ o
149
186
  ]
150
187
  }
151
188
  ) : /* @__PURE__ */ s(
152
189
  "div",
153
190
  {
154
- className: o(
155
- I({ size: n }),
191
+ role: "img",
192
+ "aria-label": `${o} more members`,
193
+ className: i(
194
+ z({ size: a }),
156
195
  g,
157
196
  c,
158
- "flex cursor-default items-center justify-center bg-accent-2 font-body font-semibold text-accent-11",
197
+ `flex cursor-default items-center justify-center bg-accent-2 font-semibold text-accent-11 ${x}`,
159
198
  "transition-[transform,opacity] duration-300 ease-out"
160
199
  ),
161
- style: { zIndex: 0, transform: f(a.length) },
200
+ style: { zIndex: 0, transform: m(n.length) },
162
201
  children: [
163
202
  "+",
164
- i
203
+ o
165
204
  ]
166
205
  }
167
206
  ) }),
168
- /* @__PURE__ */ t(
169
- N,
207
+ /* @__PURE__ */ r(
208
+ M,
170
209
  {
171
210
  className: "border-surface-border-strong bg-surface-base text-surface-fg",
172
211
  sideOffset: 6,
173
- children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-ds-01", children: l.slice(m).map((e, r) => /* @__PURE__ */ t("p", { className: "text-ds-sm", children: e.name }, r)) })
212
+ children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-ds-01", children: l.slice(f).map((e, t) => /* @__PURE__ */ r("p", { className: "text-ds-sm", children: e.name }, t)) })
174
213
  }
175
214
  )
176
215
  ] })
@@ -179,7 +218,7 @@ const w = {
179
218
  ) });
180
219
  }
181
220
  );
182
- L.displayName = "AvatarGroup";
221
+ Q.displayName = "AvatarGroup";
183
222
  export {
184
- L as AvatarGroup
223
+ Q as AvatarGroup
185
224
  };
@@ -1 +1 @@
1
- {"version":3,"file":"bulk-action-bar.d.ts","sourceRoot":"","sources":["../../src/composed/bulk-action-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAa9B,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,2DAA2D;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAoED,iBAAS,aAAa,CAAC,EACrB,IAAI,EACJ,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE,kBAAkB,4BAwDpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"bulk-action-bar.d.ts","sourceRoot":"","sources":["../../src/composed/bulk-action-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,2DAA2D;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAoED,iBAAS,aAAa,CAAC,EACrB,IAAI,EACJ,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE,kBAAkB,4BAwDpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}