@orion-ds/react 4.2.8 → 4.2.10

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 (351) hide show
  1. package/dist/components/Accordion/Accordion.module.css +1 -1
  2. package/dist/components/Card/Card.d.ts.map +1 -1
  3. package/dist/components/Card/Card.module.css +1 -1
  4. package/dist/components/Card/Card.stories.d.ts.map +1 -1
  5. package/dist/components/Card/Card.types.d.ts +2 -0
  6. package/dist/components/Card/Card.types.d.ts.map +1 -1
  7. package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
  8. package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
  9. package/dist/components/NavTree/NavTree.d.ts.map +1 -1
  10. package/dist/components/NavTree/NavTree.module.css +1 -1
  11. package/dist/components/NavTree/NavTree.stories.d.ts.map +1 -1
  12. package/dist/components/NavTree/NavTree.types.d.ts +2 -2
  13. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  14. package/dist/components/SearchInput/SearchInput.module.css +1 -1
  15. package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -0
  16. package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -1
  17. package/dist/components/SearchInput/SearchInput.types.d.ts +5 -1
  18. package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -1
  19. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  20. package/dist/components/Tabs/Tabs.module.css +1 -1
  21. package/dist/components/Tabs/Tabs.types.d.ts +6 -0
  22. package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
  23. package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
  24. package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
  25. package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.types.d.ts.map +1 -1
  26. package/dist/components/index.d.ts +1 -1
  27. package/dist/components/index.d.ts.map +1 -1
  28. package/dist/examples/LandingPage.example.d.ts.map +1 -1
  29. package/dist/hooks/useTheme.d.ts.map +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index10.cjs +1 -1
  33. package/dist/index10.mjs +1 -1
  34. package/dist/index100.cjs +1 -1
  35. package/dist/index100.mjs +46 -33
  36. package/dist/index101.cjs +1 -1
  37. package/dist/index101.mjs +30 -24
  38. package/dist/index102.cjs +1 -1
  39. package/dist/index102.mjs +28 -28
  40. package/dist/index103.cjs +1 -1
  41. package/dist/index103.mjs +54 -40
  42. package/dist/index104.cjs +1 -1
  43. package/dist/index104.mjs +33 -53
  44. package/dist/index105.cjs +1 -1
  45. package/dist/index105.mjs +40 -58
  46. package/dist/index106.cjs +1 -1
  47. package/dist/index106.mjs +52 -30
  48. package/dist/index107.cjs +1 -1
  49. package/dist/index107.mjs +40 -20
  50. package/dist/index108.cjs +1 -1
  51. package/dist/index108.mjs +40 -18
  52. package/dist/index109.cjs +1 -1
  53. package/dist/index109.mjs +40 -30
  54. package/dist/index11.cjs +1 -1
  55. package/dist/index11.mjs +1 -1
  56. package/dist/index111.cjs +1 -1
  57. package/dist/index111.mjs +30 -46
  58. package/dist/index112.cjs +1 -1
  59. package/dist/index112.mjs +30 -52
  60. package/dist/index113.cjs +1 -1
  61. package/dist/index113.mjs +22 -28
  62. package/dist/index114.cjs +1 -1
  63. package/dist/index114.mjs +18 -44
  64. package/dist/index116.cjs +1 -1
  65. package/dist/index116.mjs +62 -30
  66. package/dist/index117.cjs +1 -1
  67. package/dist/index117.mjs +57 -32
  68. package/dist/index118.cjs +1 -1
  69. package/dist/index118.mjs +42 -33
  70. package/dist/index119.cjs +1 -1
  71. package/dist/index119.mjs +28 -30
  72. package/dist/index12.cjs +1 -1
  73. package/dist/index12.mjs +1 -1
  74. package/dist/index120.cjs +1 -1
  75. package/dist/index120.mjs +24 -35
  76. package/dist/index121.cjs +1 -1
  77. package/dist/index121.mjs +18 -36
  78. package/dist/index122.cjs +1 -1
  79. package/dist/index122.mjs +32 -20
  80. package/dist/index123.cjs +1 -1
  81. package/dist/index123.mjs +46 -14
  82. package/dist/index124.cjs +1 -1
  83. package/dist/index124.mjs +28 -27
  84. package/dist/index125.cjs +1 -1
  85. package/dist/index125.mjs +16 -14
  86. package/dist/index126.cjs +1 -1
  87. package/dist/index126.mjs +15 -37
  88. package/dist/index127.cjs +1 -1
  89. package/dist/index127.mjs +16 -28
  90. package/dist/index128.cjs +1 -1
  91. package/dist/index128.mjs +20 -24
  92. package/dist/index129.cjs +1 -1
  93. package/dist/index129.mjs +28 -28
  94. package/dist/index13.cjs +1 -1
  95. package/dist/index13.mjs +1 -1
  96. package/dist/index130.cjs +1 -1
  97. package/dist/index130.mjs +36 -28
  98. package/dist/index131.cjs +1 -1
  99. package/dist/index131.mjs +50 -28
  100. package/dist/index132.cjs +1 -1
  101. package/dist/index132.mjs +29 -41
  102. package/dist/index133.cjs +1 -1
  103. package/dist/index133.mjs +28 -52
  104. package/dist/index134.cjs +1 -1
  105. package/dist/index134.mjs +37 -37
  106. package/dist/index135.cjs +1 -1
  107. package/dist/index135.mjs +28 -50
  108. package/dist/index136.cjs +1 -1
  109. package/dist/index136.mjs +26 -18
  110. package/dist/index137.cjs +1 -1
  111. package/dist/index137.mjs +18 -154
  112. package/dist/index138.cjs +1 -1
  113. package/dist/index138.mjs +38 -218
  114. package/dist/index139.cjs +1 -1
  115. package/dist/index139.mjs +24 -28
  116. package/dist/index14.cjs +1 -1
  117. package/dist/index14.mjs +1 -1
  118. package/dist/index140.cjs +1 -1
  119. package/dist/index140.mjs +35 -42
  120. package/dist/index141.cjs +1 -1
  121. package/dist/index141.mjs +234 -44
  122. package/dist/index142.cjs +1 -1
  123. package/dist/index142.mjs +34 -17
  124. package/dist/index143.cjs +1 -1
  125. package/dist/index143.mjs +44 -47
  126. package/dist/index144.cjs +1 -1
  127. package/dist/index144.mjs +170 -64
  128. package/dist/index145.cjs +1 -1
  129. package/dist/index145.mjs +186 -31
  130. package/dist/index146.cjs +1 -1
  131. package/dist/index146.mjs +29 -41
  132. package/dist/index147.cjs +1 -1
  133. package/dist/index147.mjs +90 -32
  134. package/dist/index148.cjs +1 -1
  135. package/dist/index148.mjs +53 -57
  136. package/dist/index149.cjs +1 -1
  137. package/dist/index149.mjs +66 -62
  138. package/dist/index15.cjs +1 -1
  139. package/dist/index15.mjs +1 -1
  140. package/dist/index150.cjs +1 -1
  141. package/dist/index150.mjs +124 -42
  142. package/dist/index151.cjs +1 -1
  143. package/dist/index151.mjs +108 -24
  144. package/dist/index152.cjs +1 -1
  145. package/dist/index152.mjs +111 -40
  146. package/dist/index153.cjs +1 -1
  147. package/dist/index153.mjs +122 -20
  148. package/dist/index154.cjs +1 -1
  149. package/dist/index154.mjs +214 -76
  150. package/dist/index155.cjs +1 -1
  151. package/dist/index155.mjs +18 -67
  152. package/dist/index156.cjs +1 -1
  153. package/dist/index156.mjs +67 -65
  154. package/dist/index157.cjs +1 -1
  155. package/dist/index157.mjs +55 -40
  156. package/dist/index158.cjs +1 -1
  157. package/dist/index158.mjs +20 -234
  158. package/dist/index159.cjs +1 -1
  159. package/dist/index159.mjs +33 -34
  160. package/dist/index16.cjs +1 -1
  161. package/dist/index16.mjs +73 -69
  162. package/dist/index160.cjs +1 -1
  163. package/dist/index160.mjs +57 -44
  164. package/dist/index161.cjs +1 -1
  165. package/dist/index161.mjs +28 -170
  166. package/dist/index162.cjs +1 -1
  167. package/dist/index162.mjs +25 -186
  168. package/dist/index163.cjs +1 -1
  169. package/dist/index163.mjs +53 -29
  170. package/dist/index164.cjs +1 -1
  171. package/dist/index164.mjs +65 -90
  172. package/dist/index165.cjs +1 -1
  173. package/dist/index165.mjs +63 -53
  174. package/dist/index166.cjs +1 -1
  175. package/dist/index166.mjs +106 -66
  176. package/dist/index167.cjs +1 -1
  177. package/dist/index167.mjs +45 -124
  178. package/dist/index168.cjs +1 -1
  179. package/dist/index168.mjs +20 -108
  180. package/dist/index169.cjs +1 -1
  181. package/dist/index169.mjs +30 -111
  182. package/dist/index17.cjs +1 -1
  183. package/dist/index17.mjs +1 -1
  184. package/dist/index170.cjs +1 -1
  185. package/dist/index170.mjs +27 -122
  186. package/dist/index171.cjs +1 -1
  187. package/dist/index171.mjs +46 -214
  188. package/dist/index172.cjs +1 -1
  189. package/dist/index172.mjs +24 -106
  190. package/dist/index173.cjs +1 -1
  191. package/dist/index173.mjs +12 -22
  192. package/dist/index174.cjs +1 -1
  193. package/dist/index174.mjs +33 -18
  194. package/dist/index175.cjs +1 -1
  195. package/dist/index175.mjs +42 -64
  196. package/dist/index176.cjs +1 -1
  197. package/dist/index176.mjs +64 -18
  198. package/dist/index177.cjs +1 -1
  199. package/dist/index177.mjs +51 -55
  200. package/dist/index178.cjs +1 -1
  201. package/dist/index178.mjs +76 -12
  202. package/dist/index179.cjs +1 -1
  203. package/dist/index179.mjs +42 -38
  204. package/dist/index18.cjs +1 -1
  205. package/dist/index18.mjs +1 -1
  206. package/dist/index180.cjs +1 -1
  207. package/dist/index180.mjs +64 -26
  208. package/dist/index181.cjs +1 -1
  209. package/dist/index181.mjs +44 -45
  210. package/dist/index182.cjs +1 -1
  211. package/dist/index182.mjs +17 -17
  212. package/dist/index183.cjs +1 -1
  213. package/dist/index183.mjs +17 -17
  214. package/dist/index185.cjs +1 -1
  215. package/dist/index185.mjs +1 -1
  216. package/dist/index19.cjs +1 -1
  217. package/dist/index19.mjs +2 -2
  218. package/dist/index20.cjs +1 -1
  219. package/dist/index20.mjs +14 -14
  220. package/dist/index21.cjs +1 -1
  221. package/dist/index21.mjs +1 -1
  222. package/dist/index22.cjs +1 -1
  223. package/dist/index22.mjs +1 -1
  224. package/dist/index23.cjs +1 -1
  225. package/dist/index23.mjs +56 -36
  226. package/dist/index25.cjs +1 -1
  227. package/dist/index25.mjs +1 -1
  228. package/dist/index26.cjs +1 -1
  229. package/dist/index26.mjs +1 -1
  230. package/dist/index27.cjs +1 -1
  231. package/dist/index27.mjs +1 -1
  232. package/dist/index28.cjs +1 -1
  233. package/dist/index28.mjs +1 -1
  234. package/dist/index29.cjs +1 -1
  235. package/dist/index29.mjs +1 -1
  236. package/dist/index30.cjs +1 -1
  237. package/dist/index30.mjs +1 -1
  238. package/dist/index31.cjs +1 -1
  239. package/dist/index31.mjs +1 -1
  240. package/dist/index32.cjs +1 -1
  241. package/dist/index32.mjs +1 -1
  242. package/dist/index33.cjs +1 -1
  243. package/dist/index33.mjs +1 -1
  244. package/dist/index34.cjs +1 -1
  245. package/dist/index34.mjs +1 -1
  246. package/dist/index35.cjs +1 -1
  247. package/dist/index35.mjs +1 -1
  248. package/dist/index36.cjs +1 -1
  249. package/dist/index36.mjs +1 -1
  250. package/dist/index37.cjs +1 -1
  251. package/dist/index37.mjs +1 -1
  252. package/dist/index38.cjs +1 -1
  253. package/dist/index38.mjs +1 -1
  254. package/dist/index39.cjs +1 -1
  255. package/dist/index39.mjs +1 -1
  256. package/dist/index40.cjs +1 -1
  257. package/dist/index40.mjs +1 -1
  258. package/dist/index42.cjs +1 -1
  259. package/dist/index42.mjs +1 -1
  260. package/dist/index43.cjs +1 -1
  261. package/dist/index43.mjs +1 -1
  262. package/dist/index44.cjs +1 -1
  263. package/dist/index44.mjs +1 -1
  264. package/dist/index46.cjs +1 -1
  265. package/dist/index46.mjs +1 -1
  266. package/dist/index47.cjs +1 -1
  267. package/dist/index47.mjs +1 -1
  268. package/dist/index48.mjs +95 -31
  269. package/dist/index49.cjs +1 -1
  270. package/dist/index49.mjs +1 -1
  271. package/dist/index5.cjs +1 -1
  272. package/dist/index5.mjs +1 -1
  273. package/dist/index50.cjs +1 -1
  274. package/dist/index50.mjs +1 -1
  275. package/dist/index51.cjs +1 -1
  276. package/dist/index51.mjs +1 -1
  277. package/dist/index52.cjs +1 -1
  278. package/dist/index52.mjs +1 -1
  279. package/dist/index53.cjs +1 -1
  280. package/dist/index53.mjs +82 -78
  281. package/dist/index54.cjs +1 -1
  282. package/dist/index54.mjs +1 -1
  283. package/dist/index55.cjs +1 -1
  284. package/dist/index55.mjs +1 -1
  285. package/dist/index56.cjs +1 -1
  286. package/dist/index56.mjs +1 -1
  287. package/dist/index57.cjs +1 -1
  288. package/dist/index57.mjs +1 -1
  289. package/dist/index58.cjs +1 -1
  290. package/dist/index58.mjs +1 -1
  291. package/dist/index59.cjs +1 -1
  292. package/dist/index59.mjs +1 -1
  293. package/dist/index6.cjs +1 -1
  294. package/dist/index6.mjs +1 -1
  295. package/dist/index60.cjs +1 -1
  296. package/dist/index60.mjs +1 -1
  297. package/dist/index61.cjs +1 -1
  298. package/dist/index61.mjs +1 -1
  299. package/dist/index62.cjs +1 -1
  300. package/dist/index62.mjs +42 -39
  301. package/dist/index63.cjs +1 -1
  302. package/dist/index63.mjs +1 -1
  303. package/dist/index64.cjs +1 -1
  304. package/dist/index64.mjs +1 -1
  305. package/dist/index65.cjs +1 -1
  306. package/dist/index65.mjs +1 -1
  307. package/dist/index66.cjs +1 -1
  308. package/dist/index66.mjs +1 -1
  309. package/dist/index68.cjs +1 -1
  310. package/dist/index68.mjs +1 -1
  311. package/dist/index69.cjs +1 -1
  312. package/dist/index69.mjs +1 -1
  313. package/dist/index7.cjs +1 -1
  314. package/dist/index7.mjs +1 -1
  315. package/dist/index70.cjs +1 -1
  316. package/dist/index70.mjs +1 -1
  317. package/dist/index71.cjs +1 -1
  318. package/dist/index71.mjs +1 -1
  319. package/dist/index72.cjs +1 -1
  320. package/dist/index72.mjs +16 -14
  321. package/dist/index73.cjs +1 -1
  322. package/dist/index73.mjs +1 -1
  323. package/dist/index76.cjs +1 -1
  324. package/dist/index76.mjs +1 -1
  325. package/dist/index77.cjs +1 -1
  326. package/dist/index77.mjs +1 -1
  327. package/dist/index78.cjs +1 -1
  328. package/dist/index78.mjs +1 -1
  329. package/dist/index79.cjs +1 -1
  330. package/dist/index79.mjs +1 -1
  331. package/dist/index8.cjs +1 -1
  332. package/dist/index8.mjs +1 -1
  333. package/dist/index80.cjs +1 -1
  334. package/dist/index80.mjs +1 -1
  335. package/dist/index81.cjs +1 -1
  336. package/dist/index81.mjs +21 -3
  337. package/dist/index82.cjs +1 -1
  338. package/dist/index82.mjs +2 -2
  339. package/dist/index9.cjs +1 -1
  340. package/dist/index9.mjs +1 -1
  341. package/dist/index94.mjs +3 -1
  342. package/dist/index97.cjs +1 -1
  343. package/dist/index97.mjs +154 -24
  344. package/dist/index98.cjs +1 -1
  345. package/dist/index98.mjs +218 -46
  346. package/dist/index99.cjs +1 -1
  347. package/dist/index99.mjs +36 -55
  348. package/dist/styles.css +6 -5
  349. package/dist/theme.css +1 -0
  350. package/dist/tokens/brands.d.ts.map +1 -1
  351. package/package.json +4 -4
package/dist/index53.mjs CHANGED
@@ -2,11 +2,13 @@ import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as B, useMemo as E, createContext as H, useContext as L } from "react";
3
3
  import { ChevronRight as f, Plus as T, MoreHorizontal as j, Pencil as F, Copy as W, FolderSymlink as V, Trash2 as q } from "lucide-react";
4
4
  import { useLocalStorage as x } from "./index92.mjs";
5
- import i from "./index149.mjs";
5
+ import i from "./index165.mjs";
6
6
  import { Button as O } from "./index14.mjs";
7
7
  import { Dropdown as G } from "./index35.mjs";
8
8
  import { Collapsible as A } from "./index24.mjs";
9
- const I = H(void 0);
9
+ const I = H(
10
+ void 0
11
+ );
10
12
  function w() {
11
13
  const e = L(I);
12
14
  if (!e)
@@ -143,13 +145,7 @@ function K({ section: e }) {
143
145
  ) });
144
146
  }
145
147
  function S({ node: e, depth: p, sectionId: g }) {
146
- const {
147
- activeNodeId: N,
148
- isOpen: v,
149
- toggleNode: r,
150
- onNodeClick: d,
151
- actionConfig: t
152
- } = w(), s = e.type === "folder", c = s && e.children && e.children.length > 0, l = v(e.id), $ = N === e.id, u = () => {
148
+ const { activeNodeId: N, isOpen: v, toggleNode: r, onNodeClick: d, actionConfig: t } = w(), s = e.type === "folder", c = s && e.children && e.children.length > 0, l = v(e.id), $ = N === e.id, u = () => {
153
149
  s ? r(e.id) : d && d(e);
154
150
  }, b = (a) => {
155
151
  a.stopPropagation(), t?.onAdd?.(s ? e.id : null, g);
@@ -187,82 +183,90 @@ function S({ node: e, depth: p, sectionId: g }) {
187
183
  const y = {
188
184
  paddingLeft: `calc(var(--spacing-2) * ${p + 1})`
189
185
  };
190
- return /* @__PURE__ */ m("div", { className: i.node, role: "treeitem", "aria-expanded": s && l, children: [
191
- /* @__PURE__ */ m(
192
- "div",
193
- {
194
- className: `${i.nodeRow} ${$ ? i.nodeRowActive : ""} ${p > 0 ? i.nodeNested : ""}`,
195
- onClick: u,
196
- style: y,
197
- tabIndex: 0,
198
- onKeyDown: (a) => {
199
- (a.key === "Enter" || a.key === " ") && (a.preventDefault(), u());
200
- },
201
- children: [
202
- e.icon ? s ? /* @__PURE__ */ m("div", { className: i.iconSlot, children: [
203
- /* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }),
204
- c && /* @__PURE__ */ n(
205
- "div",
206
- {
207
- className: `${i.slotChevron} ${l ? i.slotChevronOpen : ""}`,
208
- children: /* @__PURE__ */ n(f, { size: 16 })
209
- }
210
- )
211
- ] }) : /* @__PURE__ */ n("div", { className: i.iconSlot, children: /* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }) }) : s ? /* @__PURE__ */ n(
212
- f,
213
- {
214
- size: 12,
215
- className: `${i.nodeChevron} ${l ? i.nodeChevronOpen : ""}`
216
- }
217
- ) : /* @__PURE__ */ n("div", { className: i.nodeChevronHidden }),
218
- /* @__PURE__ */ n("span", { className: i.nodeLabel, children: e.label }),
219
- e.badge !== void 0 && /* @__PURE__ */ n("span", { className: i.nodeBadge, children: e.badge }),
220
- /* @__PURE__ */ m("div", { className: i.nodeActions, children: [
221
- /* @__PURE__ */ n(
222
- O,
223
- {
224
- variant: "ghost",
225
- size: "sm",
226
- iconOnly: !0,
227
- icon: /* @__PURE__ */ n(T, { size: 14 }),
228
- onClick: b,
229
- "aria-label": `Agregar página en ${e.label}`,
230
- title: `Agregar página en ${e.label}`
231
- }
232
- ),
233
- /* @__PURE__ */ n(
234
- G,
235
- {
236
- trigger: /* @__PURE__ */ n(
186
+ return /* @__PURE__ */ m(
187
+ "div",
188
+ {
189
+ className: i.node,
190
+ role: "treeitem",
191
+ "aria-expanded": s && l,
192
+ children: [
193
+ /* @__PURE__ */ m(
194
+ "div",
195
+ {
196
+ className: `${i.nodeRow} ${$ ? i.nodeRowActive : ""} ${p > 0 ? i.nodeNested : ""}`,
197
+ onClick: u,
198
+ style: y,
199
+ tabIndex: 0,
200
+ onKeyDown: (a) => {
201
+ (a.key === "Enter" || a.key === " ") && (a.preventDefault(), u());
202
+ },
203
+ children: [
204
+ e.icon ? s ? /* @__PURE__ */ m("div", { className: i.iconSlot, children: [
205
+ /* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }),
206
+ c && /* @__PURE__ */ n(
207
+ "div",
208
+ {
209
+ className: `${i.slotChevron} ${l ? i.slotChevronOpen : ""}`,
210
+ children: /* @__PURE__ */ n(f, { size: 16 })
211
+ }
212
+ )
213
+ ] }) : /* @__PURE__ */ n("div", { className: i.iconSlot, children: /* @__PURE__ */ n("span", { className: i.slotIcon, children: e.icon }) }) : s ? /* @__PURE__ */ n(
214
+ f,
215
+ {
216
+ size: 12,
217
+ className: `${i.nodeChevron} ${l ? i.nodeChevronOpen : ""}`
218
+ }
219
+ ) : /* @__PURE__ */ n("div", { className: i.nodeChevronHidden }),
220
+ /* @__PURE__ */ n("span", { className: i.nodeLabel, children: e.label }),
221
+ e.badge !== void 0 && /* @__PURE__ */ n("span", { className: i.nodeBadge, children: e.badge }),
222
+ /* @__PURE__ */ m("div", { className: i.nodeActions, children: [
223
+ /* @__PURE__ */ n(
237
224
  O,
238
225
  {
239
226
  variant: "ghost",
240
227
  size: "sm",
241
228
  iconOnly: !0,
242
- icon: /* @__PURE__ */ n(j, { size: 14 }),
243
- "aria-label": "Más acciones",
244
- title: "Más acciones"
229
+ icon: /* @__PURE__ */ n(T, { size: 14 }),
230
+ onClick: b,
231
+ "aria-label": `Agregar página en ${e.label}`,
232
+ title: `Agregar página en ${e.label}`
245
233
  }
246
234
  ),
247
- items: C,
248
- placement: "bottom-end",
249
- minWidth: 160
250
- }
251
- )
252
- ] })
253
- ]
254
- }
255
- ),
256
- s && l && c && /* @__PURE__ */ n("div", { className: i.nodeChildren, children: e.children.map((a) => /* @__PURE__ */ n(
257
- S,
258
- {
259
- node: a,
260
- depth: p + 1,
261
- sectionId: g
262
- },
263
- a.id
264
- )) })
265
- ] });
235
+ /* @__PURE__ */ n(
236
+ G,
237
+ {
238
+ trigger: /* @__PURE__ */ n(
239
+ O,
240
+ {
241
+ variant: "ghost",
242
+ size: "sm",
243
+ iconOnly: !0,
244
+ icon: /* @__PURE__ */ n(j, { size: 14 }),
245
+ "aria-label": "Más acciones",
246
+ title: "Más acciones"
247
+ }
248
+ ),
249
+ items: C,
250
+ placement: "bottom-end",
251
+ minWidth: 160
252
+ }
253
+ )
254
+ ] })
255
+ ]
256
+ }
257
+ ),
258
+ s && l && c && /* @__PURE__ */ n("div", { className: i.nodeChildren, children: e.children.map((a) => /* @__PURE__ */ n(
259
+ S,
260
+ {
261
+ node: a,
262
+ depth: p + 1,
263
+ sectionId: g
264
+ },
265
+ a.id
266
+ )) })
267
+ ]
268
+ }
269
+ );
266
270
  }
267
271
  export {
268
272
  J as NavTree
package/dist/index54.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("./index135.cjs"),d=({children:e,href:l,className:t})=>{const s=[a.default.brand,t].filter(Boolean).join(" ");return l?n.jsx("a",{href:l,className:s,children:e}):n.jsx("div",{className:s,children:e})};d.displayName="Navbar.Brand";const u=({children:e,className:l,...t})=>{const s=[a.default.nav,l].filter(Boolean).join(" ");return n.jsx("nav",{className:s,...t,children:e})};u.displayName="Navbar.Nav";const N=({children:e,href:l,active:t=!1,className:s,onClick:r,...i})=>{const c=[a.default.link,t&&a.default.active,s].filter(Boolean).join(" ");return n.jsx("a",{href:l,className:c,"aria-current":t?"page":void 0,onClick:r,...i,children:e})};N.displayName="Navbar.Link";const v=({children:e,className:l,...t})=>{const s=[a.default.actions,l].filter(Boolean).join(" ");return n.jsx("div",{className:s,...t,children:e})};v.displayName="Navbar.Actions";const f=({isOpen:e,onToggle:l,className:t})=>{const s=[a.default.toggle,e&&a.default.toggleOpen,t].filter(Boolean).join(" ");return n.jsx("button",{type:"button",className:s,onClick:l,"aria-expanded":e,"aria-label":e?"Close menu":"Open menu",children:n.jsxs("span",{className:a.default.toggleIcon,children:[n.jsx("span",{className:a.default.toggleLine}),n.jsx("span",{className:a.default.toggleLine}),n.jsx("span",{className:a.default.toggleLine})]})})};f.displayName="Navbar.Toggle";const p=({children:e,isOpen:l,className:t,...s})=>{const r=[a.default.collapse,l&&a.default.collapseOpen,t].filter(Boolean).join(" ");return n.jsx("div",{className:r,...s,children:e})};p.displayName="Navbar.Collapse";const b=({children:e,className:l,...t})=>{const s=[a.default.collapseActions,l].filter(Boolean).join(" ");return n.jsx("div",{className:s,...t,children:e})};b.displayName="Navbar.CollapseActions";const o=({children:e,height:l="md",variant:t="solid",colorScheme:s="auto",sticky:r=!1,bordered:i=!0,className:c,...m})=>{const g=[a.default.navbar,a.default[l],a.default[t],s!=="auto"&&a.default[`scheme${s.charAt(0).toUpperCase()+s.slice(1)}`],r&&a.default.sticky,i&&a.default.bordered,c].filter(Boolean).join(" ");return n.jsx("header",{className:g,...m,children:e})};o.Brand=d;o.Nav=u;o.Link=N;o.Actions=v;o.Toggle=f;o.Collapse=p;o.CollapseActions=b;o.displayName="Navbar";exports.Navbar=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("./index131.cjs"),d=({children:e,href:l,className:t})=>{const s=[a.default.brand,t].filter(Boolean).join(" ");return l?n.jsx("a",{href:l,className:s,children:e}):n.jsx("div",{className:s,children:e})};d.displayName="Navbar.Brand";const u=({children:e,className:l,...t})=>{const s=[a.default.nav,l].filter(Boolean).join(" ");return n.jsx("nav",{className:s,...t,children:e})};u.displayName="Navbar.Nav";const N=({children:e,href:l,active:t=!1,className:s,onClick:r,...i})=>{const c=[a.default.link,t&&a.default.active,s].filter(Boolean).join(" ");return n.jsx("a",{href:l,className:c,"aria-current":t?"page":void 0,onClick:r,...i,children:e})};N.displayName="Navbar.Link";const v=({children:e,className:l,...t})=>{const s=[a.default.actions,l].filter(Boolean).join(" ");return n.jsx("div",{className:s,...t,children:e})};v.displayName="Navbar.Actions";const f=({isOpen:e,onToggle:l,className:t})=>{const s=[a.default.toggle,e&&a.default.toggleOpen,t].filter(Boolean).join(" ");return n.jsx("button",{type:"button",className:s,onClick:l,"aria-expanded":e,"aria-label":e?"Close menu":"Open menu",children:n.jsxs("span",{className:a.default.toggleIcon,children:[n.jsx("span",{className:a.default.toggleLine}),n.jsx("span",{className:a.default.toggleLine}),n.jsx("span",{className:a.default.toggleLine})]})})};f.displayName="Navbar.Toggle";const p=({children:e,isOpen:l,className:t,...s})=>{const r=[a.default.collapse,l&&a.default.collapseOpen,t].filter(Boolean).join(" ");return n.jsx("div",{className:r,...s,children:e})};p.displayName="Navbar.Collapse";const b=({children:e,className:l,...t})=>{const s=[a.default.collapseActions,l].filter(Boolean).join(" ");return n.jsx("div",{className:s,...t,children:e})};b.displayName="Navbar.CollapseActions";const o=({children:e,height:l="md",variant:t="solid",colorScheme:s="auto",sticky:r=!1,bordered:i=!0,className:c,...m})=>{const g=[a.default.navbar,a.default[l],a.default[t],s!=="auto"&&a.default[`scheme${s.charAt(0).toUpperCase()+s.slice(1)}`],r&&a.default.sticky,i&&a.default.bordered,c].filter(Boolean).join(" ");return n.jsx("header",{className:g,...m,children:e})};o.Brand=d;o.Nav=u;o.Link=N;o.Actions=v;o.Toggle=f;o.Collapse=p;o.CollapseActions=b;o.displayName="Navbar";exports.Navbar=o;
package/dist/index54.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
- import a from "./index135.mjs";
2
+ import a from "./index131.mjs";
3
3
  const N = ({
4
4
  children: s,
5
5
  href: l,
package/dist/index55.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),d=require("lucide-react"),s=require("./index155.cjs"),T={info:e.jsx(d.Info,{size:18}),success:e.jsx(d.CheckCircle,{size:18}),warning:e.jsx(d.AlertTriangle,{size:18}),error:e.jsx(d.XCircle,{size:18}),default:e.jsx(d.Bell,{size:18})},p=({notification:l,onMarkAsRead:r,onDismiss:u})=>{const m=l.icon||T[l.type||"default"],t=l.href||l.onClick,c=()=>{l.onClick&&l.onClick(),!l.read&&r&&r(l.id)},h=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s.default.itemLeft,children:l.avatar?e.jsx("img",{src:l.avatar,alt:"",className:s.default.itemAvatar}):e.jsx("div",{className:`${s.default.itemIcon} ${s.default[`icon-${l.type||"default"}`]}`,children:m})}),e.jsxs("div",{className:s.default.itemContent,children:[e.jsxs("div",{className:s.default.itemHeader,children:[e.jsx("span",{className:s.default.itemTitle,children:l.title}),!l.read&&e.jsx("span",{className:s.default.unreadDot})]}),l.message&&e.jsx("p",{className:s.default.itemMessage,children:l.message}),e.jsx("span",{className:s.default.itemTime,children:l.relativeTime||l.timestamp})]}),e.jsxs("div",{className:s.default.itemActions,children:[!l.read&&r&&e.jsx("button",{type:"button",className:s.default.itemAction,onClick:n=>{n.stopPropagation(),r(l.id)},title:"Mark as read",children:e.jsx(d.Check,{size:14})}),u&&e.jsx("button",{type:"button",className:s.default.itemAction,onClick:n=>{n.stopPropagation(),u(l.id)},title:"Dismiss",children:e.jsx(d.X,{size:14})})]})]});return l.href?e.jsx("a",{href:l.href,className:`${s.default.item} ${l.read?s.default.itemRead:""}`,onClick:c,children:h}):e.jsx("div",{className:`${s.default.item} ${l.read?s.default.itemRead:""} ${t?s.default.itemClickable:""}`,onClick:t?c:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,children:h})},v=f.forwardRef(({notifications:l,onMarkAsRead:r,onMarkAllAsRead:u,onDismiss:m,onClearAll:t,onViewAll:c,title:h="Notifications",emptyMessage:n="No notifications",loading:C=!1,maxHeight:b="400px",groupByCategory:x=!1,showUnreadCount:g=!0,className:k,...y},z)=>{const N=f.useMemo(()=>l.filter(a=>!a.read).length,[l]),o=f.useMemo(()=>{if(!x)return null;const a={};return l.forEach(j=>{const i=j.category||"Other";a[i]||(a[i]=[]),a[i].push(j)}),a},[l,x]),$=[s.default.notificationCenter,k].filter(Boolean).join(" ");return e.jsxs("div",{ref:z,className:$,...y,children:[e.jsxs("div",{className:s.default.header,children:[e.jsxs("div",{className:s.default.headerTitle,children:[e.jsx("span",{children:h}),g&&N>0&&e.jsx("span",{className:s.default.badge,children:N})]}),e.jsx("div",{className:s.default.headerActions,children:u&&N>0&&e.jsx("button",{type:"button",className:s.default.headerAction,onClick:u,children:"Mark all as read"})})]}),e.jsx("div",{className:s.default.content,style:{maxHeight:b},children:C?e.jsx("div",{className:s.default.loading,children:e.jsx("div",{className:s.default.spinner})}):l.length===0?e.jsxs("div",{className:s.default.empty,children:[e.jsx(d.Bell,{size:32}),e.jsx("span",{children:n})]}):x&&o?Object.entries(o).map(([a,j])=>e.jsxs("div",{className:s.default.group,children:[e.jsx("div",{className:s.default.groupTitle,children:a}),j.map(i=>e.jsx(p,{notification:i,onMarkAsRead:r,onDismiss:m},i.id))]},a)):l.map(a=>e.jsx(p,{notification:a,onMarkAsRead:r,onDismiss:m},a.id))}),(c||t)&&l.length>0&&e.jsxs("div",{className:s.default.footer,children:[t&&e.jsx("button",{type:"button",className:s.default.footerAction,onClick:t,children:"Clear all"}),c&&e.jsx("button",{type:"button",className:s.default.footerActionPrimary,onClick:c,children:"View all notifications"})]})]})});v.displayName="NotificationCenter";exports.NotificationCenter=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),d=require("lucide-react"),s=require("./index156.cjs"),T={info:e.jsx(d.Info,{size:18}),success:e.jsx(d.CheckCircle,{size:18}),warning:e.jsx(d.AlertTriangle,{size:18}),error:e.jsx(d.XCircle,{size:18}),default:e.jsx(d.Bell,{size:18})},p=({notification:l,onMarkAsRead:r,onDismiss:u})=>{const m=l.icon||T[l.type||"default"],t=l.href||l.onClick,c=()=>{l.onClick&&l.onClick(),!l.read&&r&&r(l.id)},h=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s.default.itemLeft,children:l.avatar?e.jsx("img",{src:l.avatar,alt:"",className:s.default.itemAvatar}):e.jsx("div",{className:`${s.default.itemIcon} ${s.default[`icon-${l.type||"default"}`]}`,children:m})}),e.jsxs("div",{className:s.default.itemContent,children:[e.jsxs("div",{className:s.default.itemHeader,children:[e.jsx("span",{className:s.default.itemTitle,children:l.title}),!l.read&&e.jsx("span",{className:s.default.unreadDot})]}),l.message&&e.jsx("p",{className:s.default.itemMessage,children:l.message}),e.jsx("span",{className:s.default.itemTime,children:l.relativeTime||l.timestamp})]}),e.jsxs("div",{className:s.default.itemActions,children:[!l.read&&r&&e.jsx("button",{type:"button",className:s.default.itemAction,onClick:n=>{n.stopPropagation(),r(l.id)},title:"Mark as read",children:e.jsx(d.Check,{size:14})}),u&&e.jsx("button",{type:"button",className:s.default.itemAction,onClick:n=>{n.stopPropagation(),u(l.id)},title:"Dismiss",children:e.jsx(d.X,{size:14})})]})]});return l.href?e.jsx("a",{href:l.href,className:`${s.default.item} ${l.read?s.default.itemRead:""}`,onClick:c,children:h}):e.jsx("div",{className:`${s.default.item} ${l.read?s.default.itemRead:""} ${t?s.default.itemClickable:""}`,onClick:t?c:void 0,role:t?"button":void 0,tabIndex:t?0:void 0,children:h})},v=f.forwardRef(({notifications:l,onMarkAsRead:r,onMarkAllAsRead:u,onDismiss:m,onClearAll:t,onViewAll:c,title:h="Notifications",emptyMessage:n="No notifications",loading:C=!1,maxHeight:b="400px",groupByCategory:x=!1,showUnreadCount:g=!0,className:k,...y},z)=>{const N=f.useMemo(()=>l.filter(a=>!a.read).length,[l]),o=f.useMemo(()=>{if(!x)return null;const a={};return l.forEach(j=>{const i=j.category||"Other";a[i]||(a[i]=[]),a[i].push(j)}),a},[l,x]),$=[s.default.notificationCenter,k].filter(Boolean).join(" ");return e.jsxs("div",{ref:z,className:$,...y,children:[e.jsxs("div",{className:s.default.header,children:[e.jsxs("div",{className:s.default.headerTitle,children:[e.jsx("span",{children:h}),g&&N>0&&e.jsx("span",{className:s.default.badge,children:N})]}),e.jsx("div",{className:s.default.headerActions,children:u&&N>0&&e.jsx("button",{type:"button",className:s.default.headerAction,onClick:u,children:"Mark all as read"})})]}),e.jsx("div",{className:s.default.content,style:{maxHeight:b},children:C?e.jsx("div",{className:s.default.loading,children:e.jsx("div",{className:s.default.spinner})}):l.length===0?e.jsxs("div",{className:s.default.empty,children:[e.jsx(d.Bell,{size:32}),e.jsx("span",{children:n})]}):x&&o?Object.entries(o).map(([a,j])=>e.jsxs("div",{className:s.default.group,children:[e.jsx("div",{className:s.default.groupTitle,children:a}),j.map(i=>e.jsx(p,{notification:i,onMarkAsRead:r,onDismiss:m},i.id))]},a)):l.map(a=>e.jsx(p,{notification:a,onMarkAsRead:r,onDismiss:m},a.id))}),(c||t)&&l.length>0&&e.jsxs("div",{className:s.default.footer,children:[t&&e.jsx("button",{type:"button",className:s.default.footerAction,onClick:t,children:"Clear all"}),c&&e.jsx("button",{type:"button",className:s.default.footerActionPrimary,onClick:c,children:"View all notifications"})]})]})});v.displayName="NotificationCenter";exports.NotificationCenter=v;
package/dist/index55.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as a, jsx as l, Fragment as I } from "react/jsx-runtime";
2
2
  import { forwardRef as j, useMemo as C } from "react";
3
3
  import { Bell as g, Check as P, X as O, XCircle as X, AlertTriangle as w, CheckCircle as E, Info as F } from "lucide-react";
4
- import e from "./index155.mjs";
4
+ import e from "./index156.mjs";
5
5
  const H = {
6
6
  info: /* @__PURE__ */ l(F, { size: 18 }),
7
7
  success: /* @__PURE__ */ l(E, { size: 18 }),
package/dist/index56.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),i=require("lucide-react"),a=require("./index99.cjs"),h=y.forwardRef(({title:m,description:c,breadcrumbs:t,actions:n,tabs:r,activeTab:u,onTabChange:f,backLink:s,badge:o,variant:j="default",size:x="md",bordered:N=!0,sticky:b=!1,className:p,...g},v)=>{const C=[a.default.pageHeader,a.default[`variant-${j}`],a.default[`size-${x}`],N&&a.default.bordered,b&&a.default.sticky,p].filter(Boolean).join(" "),k=(l,d)=>{f&&f(l),d&&(window.location.href=d)};return e.jsxs("div",{ref:v,className:C,...g,children:[s&&e.jsx("div",{className:a.default.backLink,children:s.href?e.jsxs("a",{href:s.href,className:a.default.backLinkAnchor,children:[e.jsx(i.ChevronLeft,{size:16}),e.jsx("span",{children:s.label||"Back"})]}):e.jsxs("button",{type:"button",onClick:s.onClick,className:a.default.backLinkButton,children:[e.jsx(i.ChevronLeft,{size:16}),e.jsx("span",{children:s.label||"Back"})]})}),t&&t.length>0&&e.jsx("nav",{className:a.default.breadcrumbs,"aria-label":"Breadcrumb",children:e.jsx("ol",{className:a.default.breadcrumbList,children:t.map((l,d)=>e.jsxs("li",{className:a.default.breadcrumbItem,children:[d>0&&e.jsx(i.ChevronRight,{size:14,className:a.default.breadcrumbSeparator}),l.href?e.jsx("a",{href:l.href,className:a.default.breadcrumbLink,children:l.label}):l.onClick?e.jsx("button",{type:"button",onClick:l.onClick,className:a.default.breadcrumbButton,children:l.label}):e.jsx("span",{className:a.default.breadcrumbCurrent,"aria-current":"page",children:l.label})]},l.label))})}),e.jsxs("div",{className:a.default.main,children:[e.jsxs("div",{className:a.default.titleSection,children:[e.jsxs("div",{className:a.default.titleRow,children:[e.jsx("h1",{className:a.default.title,children:m}),o&&e.jsx("span",{className:a.default.badge,children:o})]}),c&&e.jsx("p",{className:a.default.description,children:c})]}),n&&e.jsx("div",{className:a.default.actions,children:n})]}),r&&r.length>0&&e.jsx("div",{className:a.default.tabs,role:"tablist",children:r.map(l=>e.jsxs("button",{role:"tab",type:"button","aria-selected":u===l.id,className:`${a.default.tab} ${u===l.id?a.default.tabActive:""}`,onClick:()=>k(l.id,l.href),children:[e.jsx("span",{children:l.label}),l.badge&&e.jsx("span",{className:a.default.tabBadge,children:l.badge})]},l.id))})]})});h.displayName="PageHeader";exports.PageHeader=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),i=require("lucide-react"),a=require("./index157.cjs"),h=y.forwardRef(({title:m,description:c,breadcrumbs:t,actions:n,tabs:r,activeTab:u,onTabChange:f,backLink:s,badge:o,variant:j="default",size:x="md",bordered:N=!0,sticky:b=!1,className:p,...g},v)=>{const C=[a.default.pageHeader,a.default[`variant-${j}`],a.default[`size-${x}`],N&&a.default.bordered,b&&a.default.sticky,p].filter(Boolean).join(" "),k=(l,d)=>{f&&f(l),d&&(window.location.href=d)};return e.jsxs("div",{ref:v,className:C,...g,children:[s&&e.jsx("div",{className:a.default.backLink,children:s.href?e.jsxs("a",{href:s.href,className:a.default.backLinkAnchor,children:[e.jsx(i.ChevronLeft,{size:16}),e.jsx("span",{children:s.label||"Back"})]}):e.jsxs("button",{type:"button",onClick:s.onClick,className:a.default.backLinkButton,children:[e.jsx(i.ChevronLeft,{size:16}),e.jsx("span",{children:s.label||"Back"})]})}),t&&t.length>0&&e.jsx("nav",{className:a.default.breadcrumbs,"aria-label":"Breadcrumb",children:e.jsx("ol",{className:a.default.breadcrumbList,children:t.map((l,d)=>e.jsxs("li",{className:a.default.breadcrumbItem,children:[d>0&&e.jsx(i.ChevronRight,{size:14,className:a.default.breadcrumbSeparator}),l.href?e.jsx("a",{href:l.href,className:a.default.breadcrumbLink,children:l.label}):l.onClick?e.jsx("button",{type:"button",onClick:l.onClick,className:a.default.breadcrumbButton,children:l.label}):e.jsx("span",{className:a.default.breadcrumbCurrent,"aria-current":"page",children:l.label})]},l.label))})}),e.jsxs("div",{className:a.default.main,children:[e.jsxs("div",{className:a.default.titleSection,children:[e.jsxs("div",{className:a.default.titleRow,children:[e.jsx("h1",{className:a.default.title,children:m}),o&&e.jsx("span",{className:a.default.badge,children:o})]}),c&&e.jsx("p",{className:a.default.description,children:c})]}),n&&e.jsx("div",{className:a.default.actions,children:n})]}),r&&r.length>0&&e.jsx("div",{className:a.default.tabs,role:"tablist",children:r.map(l=>e.jsxs("button",{role:"tab",type:"button","aria-selected":u===l.id,className:`${a.default.tab} ${u===l.id?a.default.tabActive:""}`,onClick:()=>k(l.id,l.href),children:[e.jsx("span",{children:l.label}),l.badge&&e.jsx("span",{className:a.default.tabBadge,children:l.badge})]},l.id))})]})});h.displayName="PageHeader";exports.PageHeader=h;
package/dist/index56.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as w } from "react";
3
3
  import { ChevronLeft as N, ChevronRight as z } from "lucide-react";
4
- import e from "./index99.mjs";
4
+ import e from "./index157.mjs";
5
5
  const $ = w(
6
6
  ({
7
7
  title: p,
package/dist/index57.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("react"),o=require("./index173.cjs"),L=(t,e,u)=>{const h=u*2+5;if(e<=h)return Array.from({length:e},(r,p)=>p+1);const a=Math.max(t-u,1),d=Math.min(t+u,e),f=a>2,l=d<e-1,s=[];s.push(1),f?s.push("ellipsis"):a===2&&s.push(2);for(let r=a;r<=d;r++)r!==1&&r!==e&&s.push(r);return l?s.push("ellipsis"):d===e-1&&s.push(e-1),e>1&&s.push(e),s},k=b.forwardRef(({currentPage:t,totalPages:e,onPageChange:u,siblingCount:h=1,showFirstLast:a=!0,showPrevNext:d=!0,size:f="md",disabled:l=!1,className:s,...r},p)=>{const m=b.useMemo(()=>L(t,e,h),[t,e,h]),x=t>1,j=t<e,c=n=>{!l&&n>=1&&n<=e&&n!==t&&u(n)},v=[o.default.pagination,o.default[f],l&&o.default.disabled,s].filter(Boolean).join(" ");return e<=0?null:i.jsx("nav",{ref:p,className:v,"aria-label":"Pagination",...r,children:i.jsxs("ul",{className:o.default.list,children:[a&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(1),disabled:!x||l,"aria-label":"Go to first page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M11 12L7 8l4-4M5 12V4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),d&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(t-1),disabled:!x||l,"aria-label":"Go to previous page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M10 12L6 8l4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),m.map((n,N)=>i.jsx("li",{children:n==="ellipsis"?i.jsx("span",{className:o.default.ellipsis,"aria-hidden":"true",children:"…"}):i.jsx("button",{type:"button",className:`${o.default.button} ${o.default.pageButton} ${n===t?o.default.active:""}`,onClick:()=>c(n),disabled:l,"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,children:n})},n==="ellipsis"?`ellipsis-${N}`:n)),d&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(t+1),disabled:!j||l,"aria-label":"Go to next page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M6 12l4-4-4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),a&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(e),disabled:!j||l,"aria-label":"Go to last page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M5 12l4-4-4-4M11 12V4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})})]})})});k.displayName="Pagination";exports.Pagination=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("react"),o=require("./index113.cjs"),L=(t,e,u)=>{const h=u*2+5;if(e<=h)return Array.from({length:e},(r,p)=>p+1);const a=Math.max(t-u,1),d=Math.min(t+u,e),f=a>2,l=d<e-1,s=[];s.push(1),f?s.push("ellipsis"):a===2&&s.push(2);for(let r=a;r<=d;r++)r!==1&&r!==e&&s.push(r);return l?s.push("ellipsis"):d===e-1&&s.push(e-1),e>1&&s.push(e),s},k=b.forwardRef(({currentPage:t,totalPages:e,onPageChange:u,siblingCount:h=1,showFirstLast:a=!0,showPrevNext:d=!0,size:f="md",disabled:l=!1,className:s,...r},p)=>{const m=b.useMemo(()=>L(t,e,h),[t,e,h]),x=t>1,j=t<e,c=n=>{!l&&n>=1&&n<=e&&n!==t&&u(n)},v=[o.default.pagination,o.default[f],l&&o.default.disabled,s].filter(Boolean).join(" ");return e<=0?null:i.jsx("nav",{ref:p,className:v,"aria-label":"Pagination",...r,children:i.jsxs("ul",{className:o.default.list,children:[a&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(1),disabled:!x||l,"aria-label":"Go to first page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M11 12L7 8l4-4M5 12V4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),d&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(t-1),disabled:!x||l,"aria-label":"Go to previous page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M10 12L6 8l4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),m.map((n,N)=>i.jsx("li",{children:n==="ellipsis"?i.jsx("span",{className:o.default.ellipsis,"aria-hidden":"true",children:"…"}):i.jsx("button",{type:"button",className:`${o.default.button} ${o.default.pageButton} ${n===t?o.default.active:""}`,onClick:()=>c(n),disabled:l,"aria-label":`Go to page ${n}`,"aria-current":n===t?"page":void 0,children:n})},n==="ellipsis"?`ellipsis-${N}`:n)),d&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(t+1),disabled:!j||l,"aria-label":"Go to next page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M6 12l4-4-4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}),a&&i.jsx("li",{children:i.jsx("button",{type:"button",className:o.default.button,onClick:()=>c(e),disabled:!j||l,"aria-label":"Go to last page",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:i.jsx("path",{d:"M5 12l4-4-4-4M11 12V4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})})]})})});k.displayName="Pagination";exports.Pagination=k;
package/dist/index57.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
2
  import { forwardRef as L, useMemo as w } from "react";
3
- import t from "./index173.mjs";
3
+ import t from "./index113.mjs";
4
4
  const M = (e, n, d) => {
5
5
  const p = d * 2 + 5;
6
6
  if (n <= p)
package/dist/index58.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),t=require("react"),_=require("react-dom"),m=require("./index174.cjs"),G=(r,u,l,c)=>{const d=window.scrollX,f=window.scrollY;let n=0,s=0;const e={top:r.top+f-u.height-c,bottom:r.bottom+f+c,left:r.left+d-u.width-c,right:r.right+d+c,centerX:r.left+d+(r.width-u.width)/2,centerY:r.top+f+(r.height-u.height)/2,startX:r.left+d,endX:r.right+d-u.width,startY:r.top+f,endY:r.bottom+f-u.height};switch(l){case"top":n=e.top,s=e.centerX;break;case"top-start":n=e.top,s=e.startX;break;case"top-end":n=e.top,s=e.endX;break;case"bottom":n=e.bottom,s=e.centerX;break;case"bottom-start":n=e.bottom,s=e.startX;break;case"bottom-end":n=e.bottom,s=e.endX;break;case"left":n=e.centerY,s=e.left;break;case"left-start":n=e.startY,s=e.left;break;case"left-end":n=e.endY,s=e.left;break;case"right":n=e.centerY,s=e.right;break;case"right-start":n=e.startY,s=e.right;break;case"right-end":n=e.endY,s=e.right;break}return{top:n,left:s}},q=t.forwardRef(({trigger:r,content:u,placement:l="bottom",triggerType:c="click",open:d,defaultOpen:f=!1,onOpenChange:n,showArrow:s=!0,offset:e=8,closeOnClickOutside:j=!0,closeOnEscape:T=!0,openDelay:X=0,closeDelay:Y=150,fullWidth:B=!1,className:M,...N},W)=>{const[F,S]=t.useState(f),[x,I]=t.useState({top:0,left:0}),h=t.useRef(null),p=t.useRef(null),w=t.useRef(null),k=t.useRef(null);t.useImperativeHandle(W,()=>h.current);const L=d!==void 0,a=L?d:F,i=t.useCallback(o=>{L||S(o),n?.(o)},[L,n]),b=t.useCallback(()=>{if(!h.current||!p.current)return;const o=h.current.getBoundingClientRect(),g=p.current.getBoundingClientRect(),C=G(o,g,l,e);I(C)},[l,e]);t.useEffect(()=>{if(a)return requestAnimationFrame(b),window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0)}},[a,b]),t.useEffect(()=>{if(!a||!j)return;const o=g=>{const C=g.target;h.current&&!h.current.contains(C)&&p.current&&!p.current.contains(C)&&i(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,j,i]),t.useEffect(()=>{if(!a||!T)return;const o=g=>{g.key==="Escape"&&i(!1)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[a,T,i]),t.useEffect(()=>()=>{w.current&&clearTimeout(w.current),k.current&&clearTimeout(k.current)},[]);const E=t.useCallback(()=>{k.current&&clearTimeout(k.current),X>0?w.current=setTimeout(()=>i(!0),X):i(!0)},[X,i]),P=t.useCallback(()=>{w.current&&clearTimeout(w.current),Y>0?k.current=setTimeout(()=>i(!1),Y):i(!1)},[Y,i]),$=t.useCallback(()=>{a?P():E()},[a,E,P]),y=()=>{const o={"aria-expanded":a,"aria-haspopup":!0};switch(c){case"click":return{...o,onClick:$};case"hover":return{...o,onMouseEnter:E,onMouseLeave:P};case"focus":return{...o,onFocus:E,onBlur:P};case"manual":return o;default:return o}},z=t.isValidElement(r)?t.cloneElement(r,y()):r,A=()=>l.startsWith("top")?"bottom":l.startsWith("bottom")?"top":l.startsWith("left")?"right":l.startsWith("right")?"left":"top",H=[m.default.popover,a&&m.default.visible,M].filter(Boolean).join(" "),O=v.jsxs("div",{ref:p,className:H,style:{top:x.top,left:x.left},role:"dialog","aria-modal":"false",onMouseEnter:c==="hover"?E:void 0,onMouseLeave:c==="hover"?P:void 0,...N,children:[s&&v.jsx("div",{className:`${m.default.arrow} ${m.default[`arrow-${A()}`]}`,"aria-hidden":"true"}),v.jsx("div",{className:m.default.content,children:u})]}),V=[m.default.trigger,B&&m.default.triggerFullWidth].filter(Boolean).join(" ");return v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:h,className:V,children:z}),a&&_.createPortal(O,document.body)]})});q.displayName="Popover";exports.Popover=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),t=require("react"),_=require("react-dom"),m=require("./index155.cjs"),G=(r,u,l,c)=>{const d=window.scrollX,f=window.scrollY;let n=0,s=0;const e={top:r.top+f-u.height-c,bottom:r.bottom+f+c,left:r.left+d-u.width-c,right:r.right+d+c,centerX:r.left+d+(r.width-u.width)/2,centerY:r.top+f+(r.height-u.height)/2,startX:r.left+d,endX:r.right+d-u.width,startY:r.top+f,endY:r.bottom+f-u.height};switch(l){case"top":n=e.top,s=e.centerX;break;case"top-start":n=e.top,s=e.startX;break;case"top-end":n=e.top,s=e.endX;break;case"bottom":n=e.bottom,s=e.centerX;break;case"bottom-start":n=e.bottom,s=e.startX;break;case"bottom-end":n=e.bottom,s=e.endX;break;case"left":n=e.centerY,s=e.left;break;case"left-start":n=e.startY,s=e.left;break;case"left-end":n=e.endY,s=e.left;break;case"right":n=e.centerY,s=e.right;break;case"right-start":n=e.startY,s=e.right;break;case"right-end":n=e.endY,s=e.right;break}return{top:n,left:s}},q=t.forwardRef(({trigger:r,content:u,placement:l="bottom",triggerType:c="click",open:d,defaultOpen:f=!1,onOpenChange:n,showArrow:s=!0,offset:e=8,closeOnClickOutside:j=!0,closeOnEscape:T=!0,openDelay:X=0,closeDelay:Y=150,fullWidth:B=!1,className:M,...N},W)=>{const[F,S]=t.useState(f),[x,I]=t.useState({top:0,left:0}),h=t.useRef(null),p=t.useRef(null),w=t.useRef(null),k=t.useRef(null);t.useImperativeHandle(W,()=>h.current);const L=d!==void 0,a=L?d:F,i=t.useCallback(o=>{L||S(o),n?.(o)},[L,n]),b=t.useCallback(()=>{if(!h.current||!p.current)return;const o=h.current.getBoundingClientRect(),g=p.current.getBoundingClientRect(),C=G(o,g,l,e);I(C)},[l,e]);t.useEffect(()=>{if(a)return requestAnimationFrame(b),window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0)}},[a,b]),t.useEffect(()=>{if(!a||!j)return;const o=g=>{const C=g.target;h.current&&!h.current.contains(C)&&p.current&&!p.current.contains(C)&&i(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,j,i]),t.useEffect(()=>{if(!a||!T)return;const o=g=>{g.key==="Escape"&&i(!1)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[a,T,i]),t.useEffect(()=>()=>{w.current&&clearTimeout(w.current),k.current&&clearTimeout(k.current)},[]);const E=t.useCallback(()=>{k.current&&clearTimeout(k.current),X>0?w.current=setTimeout(()=>i(!0),X):i(!0)},[X,i]),P=t.useCallback(()=>{w.current&&clearTimeout(w.current),Y>0?k.current=setTimeout(()=>i(!1),Y):i(!1)},[Y,i]),$=t.useCallback(()=>{a?P():E()},[a,E,P]),y=()=>{const o={"aria-expanded":a,"aria-haspopup":!0};switch(c){case"click":return{...o,onClick:$};case"hover":return{...o,onMouseEnter:E,onMouseLeave:P};case"focus":return{...o,onFocus:E,onBlur:P};case"manual":return o;default:return o}},z=t.isValidElement(r)?t.cloneElement(r,y()):r,A=()=>l.startsWith("top")?"bottom":l.startsWith("bottom")?"top":l.startsWith("left")?"right":l.startsWith("right")?"left":"top",H=[m.default.popover,a&&m.default.visible,M].filter(Boolean).join(" "),O=v.jsxs("div",{ref:p,className:H,style:{top:x.top,left:x.left},role:"dialog","aria-modal":"false",onMouseEnter:c==="hover"?E:void 0,onMouseLeave:c==="hover"?P:void 0,...N,children:[s&&v.jsx("div",{className:`${m.default.arrow} ${m.default[`arrow-${A()}`]}`,"aria-hidden":"true"}),v.jsx("div",{className:m.default.content,children:u})]}),V=[m.default.trigger,B&&m.default.triggerFullWidth].filter(Boolean).join(" ");return v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:h,className:V,children:z}),a&&_.createPortal(O,document.body)]})});q.displayName="Popover";exports.Popover=q;
package/dist/index58.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as x, jsx as B, Fragment as Q } from "react/jsx-runtime";
2
2
  import { forwardRef as U, useState as F, useRef as g, useImperativeHandle as Z, useCallback as X, useEffect as L, isValidElement as _, cloneElement as D } from "react";
3
3
  import { createPortal as R } from "react-dom";
4
- import f from "./index174.mjs";
4
+ import f from "./index155.mjs";
5
5
  const tt = (e, a, c, l) => {
6
6
  const u = window.scrollX, d = window.scrollY;
7
7
  let r = 0, o = 0;
package/dist/index59.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index116.cjs"),d=({value:t,max:i=100,variant:n="primary",size:c="md",showLabel:o=!1,label:r,indeterminate:s=!1,className:u,...f})=>{const l=t!==void 0?Math.min(Math.max(t/i*100,0),100):0,m=[a.default.container,a.default[c],a.default[n],s&&a.default.indeterminate,u].filter(Boolean).join(" ");return e.jsxs("div",{className:m,...f,children:[(o||r)&&e.jsxs("div",{className:a.default.labelWrapper,children:[r&&e.jsx("span",{children:r}),o&&!s&&e.jsxs("span",{className:a.default.percentage,children:[Math.round(l),"%"]})]}),e.jsx("div",{className:a.default.track,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":i,"aria-label":r||`Progress: ${Math.round(l)}%`,children:e.jsx("div",{className:a.default.bar,style:{width:s?void 0:`${l}%`}})})]})};d.displayName="ProgressBar";exports.ProgressBar=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index169.cjs"),d=({value:t,max:i=100,variant:n="primary",size:c="md",showLabel:o=!1,label:r,indeterminate:s=!1,className:u,...f})=>{const l=t!==void 0?Math.min(Math.max(t/i*100,0),100):0,m=[a.default.container,a.default[c],a.default[n],s&&a.default.indeterminate,u].filter(Boolean).join(" ");return e.jsxs("div",{className:m,...f,children:[(o||r)&&e.jsxs("div",{className:a.default.labelWrapper,children:[r&&e.jsx("span",{children:r}),o&&!s&&e.jsxs("span",{className:a.default.percentage,children:[Math.round(l),"%"]})]}),e.jsx("div",{className:a.default.track,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":i,"aria-label":r||`Progress: ${Math.round(l)}%`,children:e.jsx("div",{className:a.default.bar,style:{width:s?void 0:`${l}%`}})})]})};d.displayName="ProgressBar";exports.ProgressBar=d;
package/dist/index59.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as n } from "react/jsx-runtime";
2
- import a from "./index116.mjs";
2
+ import a from "./index169.mjs";
3
3
  const v = ({
4
4
  value: e,
5
5
  max: c = 100,
package/dist/index6.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("react"),l=require("lucide-react"),a=require("./index156.cjs"),k=require("./index22.cjs"),z=require("./index14.cjs"),c=16,q={comment:e.jsx(l.MessageSquare,{size:c}),update:e.jsx(l.Edit,{size:c}),create:e.jsx(l.Plus,{size:c}),delete:e.jsx(l.Trash2,{size:c}),assign:e.jsx(l.UserPlus,{size:c}),complete:e.jsx(l.CheckCircle,{size:c}),upload:e.jsx(l.Upload,{size:c}),default:e.jsx(l.Circle,{size:c})},b=({item:s,showConnector:i,compact:d})=>{const r=s.icon||q[s.type||"default"],o=s.iconVariant||"default";return e.jsxs("div",{className:`${a.default.item} ${d?a.default.itemCompact:""}`,children:[e.jsxs("div",{className:a.default.iconColumn,children:[e.jsx("div",{className:`${a.default.iconWrapper} ${a.default[`iconVariant-${o}`]}`,children:r}),i&&e.jsx("div",{className:a.default.connector})]}),e.jsxs("div",{className:a.default.content,children:[e.jsxs("div",{className:a.default.header,children:[s.actor&&e.jsxs("span",{className:a.default.actor,children:[s.actor.avatar&&e.jsx("img",{src:s.actor.avatar,alt:s.actor.name,className:a.default.avatar}),s.actor.href?e.jsx("a",{href:s.actor.href,className:a.default.actorName,children:s.actor.name}):e.jsx("span",{className:a.default.actorName,children:s.actor.name})]}),e.jsx("span",{className:a.default.title,children:s.title}),e.jsx("span",{className:a.default.time,children:s.relativeTime||s.timestamp})]}),s.description&&e.jsx("div",{className:a.default.description,children:s.description}),s.metadata&&Object.keys(s.metadata).length>0&&e.jsx("div",{className:a.default.metadata,children:Object.entries(s.metadata).map(([n,u])=>e.jsxs("span",{className:a.default.metadataItem,children:[e.jsxs("span",{className:a.default.metadataKey,children:[n,":"]}),e.jsx("span",{className:a.default.metadataValue,children:u})]},n))}),s.actions&&e.jsx("div",{className:a.default.actions,children:s.actions})]})]})},x=g.forwardRef(({activities:s,showFilters:i=!1,filters:d,activeFilter:r,onFilterChange:o,onLoadMore:n,hasMore:u=!1,loading:m=!1,emptyMessage:h="No activity yet.",showConnectors:f=!0,compact:j=!1,className:v,...N},p)=>{const y=[a.default.activityFeed,j&&a.default.compact,v].filter(Boolean).join(" ");return e.jsxs("div",{ref:p,className:y,...N,children:[i&&d&&d.length>0&&e.jsx("div",{className:a.default.filters,children:d.map(t=>e.jsxs(k.Chip,{clickable:!0,selected:r===t.value,onClick:()=>o?.(t.value),children:[t.label,t.count!==void 0&&` (${t.count})`]},t.value))}),e.jsxs("div",{className:a.default.list,children:[s.length===0&&!m?e.jsx("div",{className:a.default.empty,children:h}):s.map((t,C)=>e.jsx(b,{item:t,showConnector:f&&C<s.length-1,compact:j},t.id)),m&&e.jsx(e.Fragment,{children:[1,2,3].map(t=>e.jsxs("div",{className:a.default.skeleton,children:[e.jsx("div",{className:a.default.skeletonIcon}),e.jsxs("div",{className:a.default.skeletonContent,children:[e.jsx("div",{className:a.default.skeletonTitle}),e.jsx("div",{className:a.default.skeletonDesc})]})]},t))})]}),u&&!m&&e.jsx(z.Button,{variant:"secondary",onClick:n,style:{width:"100%",marginTop:"var(--spacing-2)"},children:"Load more"})]})});x.displayName="ActivityFeed";exports.ActivityFeed=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("react"),l=require("lucide-react"),a=require("./index164.cjs"),k=require("./index22.cjs"),z=require("./index14.cjs"),c=16,q={comment:e.jsx(l.MessageSquare,{size:c}),update:e.jsx(l.Edit,{size:c}),create:e.jsx(l.Plus,{size:c}),delete:e.jsx(l.Trash2,{size:c}),assign:e.jsx(l.UserPlus,{size:c}),complete:e.jsx(l.CheckCircle,{size:c}),upload:e.jsx(l.Upload,{size:c}),default:e.jsx(l.Circle,{size:c})},b=({item:s,showConnector:i,compact:d})=>{const r=s.icon||q[s.type||"default"],o=s.iconVariant||"default";return e.jsxs("div",{className:`${a.default.item} ${d?a.default.itemCompact:""}`,children:[e.jsxs("div",{className:a.default.iconColumn,children:[e.jsx("div",{className:`${a.default.iconWrapper} ${a.default[`iconVariant-${o}`]}`,children:r}),i&&e.jsx("div",{className:a.default.connector})]}),e.jsxs("div",{className:a.default.content,children:[e.jsxs("div",{className:a.default.header,children:[s.actor&&e.jsxs("span",{className:a.default.actor,children:[s.actor.avatar&&e.jsx("img",{src:s.actor.avatar,alt:s.actor.name,className:a.default.avatar}),s.actor.href?e.jsx("a",{href:s.actor.href,className:a.default.actorName,children:s.actor.name}):e.jsx("span",{className:a.default.actorName,children:s.actor.name})]}),e.jsx("span",{className:a.default.title,children:s.title}),e.jsx("span",{className:a.default.time,children:s.relativeTime||s.timestamp})]}),s.description&&e.jsx("div",{className:a.default.description,children:s.description}),s.metadata&&Object.keys(s.metadata).length>0&&e.jsx("div",{className:a.default.metadata,children:Object.entries(s.metadata).map(([n,u])=>e.jsxs("span",{className:a.default.metadataItem,children:[e.jsxs("span",{className:a.default.metadataKey,children:[n,":"]}),e.jsx("span",{className:a.default.metadataValue,children:u})]},n))}),s.actions&&e.jsx("div",{className:a.default.actions,children:s.actions})]})]})},x=g.forwardRef(({activities:s,showFilters:i=!1,filters:d,activeFilter:r,onFilterChange:o,onLoadMore:n,hasMore:u=!1,loading:m=!1,emptyMessage:h="No activity yet.",showConnectors:f=!0,compact:j=!1,className:v,...N},p)=>{const y=[a.default.activityFeed,j&&a.default.compact,v].filter(Boolean).join(" ");return e.jsxs("div",{ref:p,className:y,...N,children:[i&&d&&d.length>0&&e.jsx("div",{className:a.default.filters,children:d.map(t=>e.jsxs(k.Chip,{clickable:!0,selected:r===t.value,onClick:()=>o?.(t.value),children:[t.label,t.count!==void 0&&` (${t.count})`]},t.value))}),e.jsxs("div",{className:a.default.list,children:[s.length===0&&!m?e.jsx("div",{className:a.default.empty,children:h}):s.map((t,C)=>e.jsx(b,{item:t,showConnector:f&&C<s.length-1,compact:j},t.id)),m&&e.jsx(e.Fragment,{children:[1,2,3].map(t=>e.jsxs("div",{className:a.default.skeleton,children:[e.jsx("div",{className:a.default.skeletonIcon}),e.jsxs("div",{className:a.default.skeletonContent,children:[e.jsx("div",{className:a.default.skeletonTitle}),e.jsx("div",{className:a.default.skeletonDesc})]})]},t))})]}),u&&!m&&e.jsx(z.Button,{variant:"secondary",onClick:n,style:{width:"100%",marginTop:"var(--spacing-2)"},children:"Load more"})]})});x.displayName="ActivityFeed";exports.ActivityFeed=x;
package/dist/index6.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as e, Fragment as g } from "react/jsx-runtime";
2
2
  import { forwardRef as z } from "react";
3
3
  import { Circle as I, Upload as $, CheckCircle as j, UserPlus as b, Trash2 as F, Plus as T, Edit as V, MessageSquare as w } from "lucide-react";
4
- import a from "./index156.mjs";
4
+ import a from "./index164.mjs";
5
5
  import { Chip as x } from "./index22.mjs";
6
6
  import { Button as A } from "./index14.mjs";
7
7
  const t = 16, O = {
package/dist/index60.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),i=require("react"),r=require("lucide-react"),s=require("./index148.cjs"),p=i.forwardRef(({actions:o,variant:t="fab",position:N="bottom-right",primaryAction:h,triggerIcon:x,showLabels:k,fixed:$=!0,offset:y=24,className:v,style:A,...f},g)=>{const[a,n]=i.useState(!1),u=i.useRef(null),j=k??t==="bar";i.useEffect(()=>{if(!a)return;const e=d=>{u.current&&!u.current.contains(d.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]),i.useEffect(()=>{if(!a)return;const e=d=>{d.key==="Escape"&&n(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]);const c=e=>{e.disabled||(e.onClick(),(t==="fab"||t==="menu")&&n(!1))},b=[s.default.quickActions,s.default[`variant-${t}`],s.default[`position-${N}`],$&&s.default.fixed,a&&s.default.open,v].filter(Boolean).join(" "),m={...A,"--offset":`${y}px`};return t==="fab"?l.jsxs("div",{ref:u,className:b,style:m,...f,children:[l.jsx("div",{className:s.default.fabActions,children:o.map((e,d)=>l.jsxs("button",{type:"button",className:`${s.default.fabAction} ${e.variant?s.default[`action-${e.variant}`]:""} ${e.disabled?s.default.actionDisabled:""}`,onClick:()=>c(e),disabled:e.disabled,style:{transitionDelay:a?`${d*50}ms`:"0ms"},title:e.label,children:[l.jsx("span",{className:s.default.fabActionIcon,children:e.icon}),j&&l.jsx("span",{className:s.default.fabActionLabel,children:e.label})]},e.id))}),l.jsx("button",{type:"button",className:s.default.fabTrigger,onClick:()=>{h&&!a?c(h):n(!a)},"aria-expanded":a,"aria-label":a?"Close actions":"Open actions",children:l.jsx("span",{className:`${s.default.fabTriggerIcon} ${a?s.default.fabTriggerIconRotate:""}`,children:a?l.jsx(r.X,{size:24}):x||l.jsx(r.Plus,{size:24})})})]}):t==="bar"?l.jsx("div",{ref:g,className:b,style:m,...f,children:l.jsx("div",{className:s.default.bar,children:o.map(e=>l.jsxs("button",{type:"button",className:`${s.default.barAction} ${e.variant?s.default[`action-${e.variant}`]:""} ${e.disabled?s.default.actionDisabled:""}`,onClick:()=>c(e),disabled:e.disabled,title:e.label,children:[l.jsx("span",{className:s.default.barActionIcon,children:e.icon}),j&&l.jsx("span",{className:s.default.barActionLabel,children:e.label}),e.shortcut&&l.jsx("kbd",{className:s.default.shortcut,children:e.shortcut})]},e.id))})}):l.jsxs("div",{ref:u,className:b,style:m,...f,children:[a&&l.jsx("div",{className:s.default.menu,children:o.map(e=>l.jsxs("button",{type:"button",className:`${s.default.menuAction} ${e.variant?s.default[`action-${e.variant}`]:""} ${e.disabled?s.default.actionDisabled:""}`,onClick:()=>c(e),disabled:e.disabled,children:[l.jsx("span",{className:s.default.menuActionIcon,children:e.icon}),l.jsx("span",{className:s.default.menuActionLabel,children:e.label}),e.shortcut&&l.jsx("kbd",{className:s.default.shortcut,children:e.shortcut})]},e.id))}),l.jsx("button",{type:"button",className:s.default.menuTrigger,onClick:()=>n(!a),"aria-expanded":a,"aria-label":a?"Close menu":"Open menu",children:a?l.jsx(r.X,{size:20}):x||l.jsx(r.Plus,{size:20})})]})});p.displayName="QuickActions";exports.QuickActions=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),i=require("react"),r=require("lucide-react"),s=require("./index160.cjs"),p=i.forwardRef(({actions:o,variant:t="fab",position:N="bottom-right",primaryAction:h,triggerIcon:x,showLabels:k,fixed:$=!0,offset:y=24,className:v,style:A,...f},g)=>{const[a,n]=i.useState(!1),u=i.useRef(null),j=k??t==="bar";i.useEffect(()=>{if(!a)return;const e=d=>{u.current&&!u.current.contains(d.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]),i.useEffect(()=>{if(!a)return;const e=d=>{d.key==="Escape"&&n(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]);const c=e=>{e.disabled||(e.onClick(),(t==="fab"||t==="menu")&&n(!1))},b=[s.default.quickActions,s.default[`variant-${t}`],s.default[`position-${N}`],$&&s.default.fixed,a&&s.default.open,v].filter(Boolean).join(" "),m={...A,"--offset":`${y}px`};return t==="fab"?l.jsxs("div",{ref:u,className:b,style:m,...f,children:[l.jsx("div",{className:s.default.fabActions,children:o.map((e,d)=>l.jsxs("button",{type:"button",className:`${s.default.fabAction} ${e.variant?s.default[`action-${e.variant}`]:""} ${e.disabled?s.default.actionDisabled:""}`,onClick:()=>c(e),disabled:e.disabled,style:{transitionDelay:a?`${d*50}ms`:"0ms"},title:e.label,children:[l.jsx("span",{className:s.default.fabActionIcon,children:e.icon}),j&&l.jsx("span",{className:s.default.fabActionLabel,children:e.label})]},e.id))}),l.jsx("button",{type:"button",className:s.default.fabTrigger,onClick:()=>{h&&!a?c(h):n(!a)},"aria-expanded":a,"aria-label":a?"Close actions":"Open actions",children:l.jsx("span",{className:`${s.default.fabTriggerIcon} ${a?s.default.fabTriggerIconRotate:""}`,children:a?l.jsx(r.X,{size:24}):x||l.jsx(r.Plus,{size:24})})})]}):t==="bar"?l.jsx("div",{ref:g,className:b,style:m,...f,children:l.jsx("div",{className:s.default.bar,children:o.map(e=>l.jsxs("button",{type:"button",className:`${s.default.barAction} ${e.variant?s.default[`action-${e.variant}`]:""} ${e.disabled?s.default.actionDisabled:""}`,onClick:()=>c(e),disabled:e.disabled,title:e.label,children:[l.jsx("span",{className:s.default.barActionIcon,children:e.icon}),j&&l.jsx("span",{className:s.default.barActionLabel,children:e.label}),e.shortcut&&l.jsx("kbd",{className:s.default.shortcut,children:e.shortcut})]},e.id))})}):l.jsxs("div",{ref:u,className:b,style:m,...f,children:[a&&l.jsx("div",{className:s.default.menu,children:o.map(e=>l.jsxs("button",{type:"button",className:`${s.default.menuAction} ${e.variant?s.default[`action-${e.variant}`]:""} ${e.disabled?s.default.actionDisabled:""}`,onClick:()=>c(e),disabled:e.disabled,children:[l.jsx("span",{className:s.default.menuActionIcon,children:e.icon}),l.jsx("span",{className:s.default.menuActionLabel,children:e.label}),e.shortcut&&l.jsx("kbd",{className:s.default.shortcut,children:e.shortcut})]},e.id))}),l.jsx("button",{type:"button",className:s.default.menuTrigger,onClick:()=>n(!a),"aria-expanded":a,"aria-label":a?"Close menu":"Open menu",children:a?l.jsx(r.X,{size:20}):x||l.jsx(r.Plus,{size:20})})]})});p.displayName="QuickActions";exports.QuickActions=p;
package/dist/index60.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as x, useState as E, useRef as D, useEffect as N } from "react";
3
3
  import { X as $, Plus as k } from "lucide-react";
4
- import s from "./index148.mjs";
4
+ import s from "./index160.mjs";
5
5
  const I = x(
6
6
  ({
7
7
  actions: o,
package/dist/index61.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),f=require("react"),g=require("lucide-react"),e=require("./index145.cjs"),h=f.forwardRef(({label:d,helperText:l,error:s,size:m="md",className:j,id:N,disabled:n,required:t,"aria-label":c,"aria-describedby":o,...b},v)=>{const x=f.useId(),r=N||`radio-${x}`,u=`${r}-error`,p=`${r}-helper`,i=[];s&&i.push(u),l&&!s&&i.push(p),o&&i.push(o);const R=i.length>0?i.join(" "):void 0;!(d||c)&&process.env.NODE_ENV==="development"&&console.warn("Radio: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const y=[e.default.container,e.default[m],s&&e.default.error,n&&e.default.disabled,j].filter(Boolean).join(" ");return a.jsxs("div",{className:y,children:[a.jsx("input",{ref:v,type:"radio",id:r,className:e.default.input,disabled:n,required:t,"aria-required":t||void 0,"aria-invalid":s?"true":"false","aria-describedby":R,"aria-label":d?void 0:c,...b}),a.jsxs("label",{htmlFor:r,className:e.default.labelWrapper,children:[a.jsx("span",{className:e.default.radio,"aria-hidden":"true",children:a.jsx("span",{className:e.default.dot})}),d&&a.jsxs("span",{className:e.default.label,children:[d,t&&a.jsx("span",{className:e.default.required,"aria-hidden":"true",children:"*"})]})]}),l&&!s&&a.jsx("p",{id:p,className:e.default.helperText,children:l}),s&&a.jsxs("p",{id:u,className:e.default.errorMessage,role:"alert","aria-live":"assertive",children:[a.jsx(g.AlertCircle,{size:14,"aria-hidden":"true"}),a.jsx("span",{children:s})]})]})});h.displayName="Radio";exports.Radio=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),f=require("react"),g=require("lucide-react"),e=require("./index111.cjs"),h=f.forwardRef(({label:d,helperText:l,error:s,size:m="md",className:j,id:N,disabled:n,required:t,"aria-label":c,"aria-describedby":o,...b},v)=>{const x=f.useId(),r=N||`radio-${x}`,u=`${r}-error`,p=`${r}-helper`,i=[];s&&i.push(u),l&&!s&&i.push(p),o&&i.push(o);const R=i.length>0?i.join(" "):void 0;!(d||c)&&process.env.NODE_ENV==="development"&&console.warn("Radio: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const y=[e.default.container,e.default[m],s&&e.default.error,n&&e.default.disabled,j].filter(Boolean).join(" ");return a.jsxs("div",{className:y,children:[a.jsx("input",{ref:v,type:"radio",id:r,className:e.default.input,disabled:n,required:t,"aria-required":t||void 0,"aria-invalid":s?"true":"false","aria-describedby":R,"aria-label":d?void 0:c,...b}),a.jsxs("label",{htmlFor:r,className:e.default.labelWrapper,children:[a.jsx("span",{className:e.default.radio,"aria-hidden":"true",children:a.jsx("span",{className:e.default.dot})}),d&&a.jsxs("span",{className:e.default.label,children:[d,t&&a.jsx("span",{className:e.default.required,"aria-hidden":"true",children:"*"})]})]}),l&&!s&&a.jsx("p",{id:p,className:e.default.helperText,children:l}),s&&a.jsxs("p",{id:u,className:e.default.errorMessage,role:"alert","aria-live":"assertive",children:[a.jsx(g.AlertCircle,{size:14,"aria-hidden":"true"}),a.jsx("span",{children:s})]})]})});h.displayName="Radio";exports.Radio=h;
package/dist/index61.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as j, useId as R } from "react";
3
3
  import { AlertCircle as A } from "lucide-react";
4
- import e from "./index145.mjs";
4
+ import e from "./index111.mjs";
5
5
  const B = j(
6
6
  ({
7
7
  label: r,
package/dist/index62.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),i=require("lucide-react"),e=require("./index157.cjs"),p=r.forwardRef(({size:l="md",value:a,onClear:o,onSearch:t,showClear:m=!0,showSearchButton:j=!1,searchIcon:b,clearLabel:C="Clear search",searchLabel:x="Search",loading:n=!1,fullWidth:y=!1,disabled:d=!1,className:k,onKeyDown:f,...I},N)=>{const S=a!==void 0&&a!=="",g=r.useCallback(u=>{u.key==="Enter"&&t&&t(u.currentTarget.value),f?.(u)},[t,f]),z=r.useCallback(()=>{o?.()},[o]),q=r.useCallback(()=>{t&&typeof a=="string"&&t(a)},[t,a]),M=[e.default.container,e.default[l],y&&e.default.fullWidth,n&&e.default.loading,d&&e.default.disabled,k].filter(Boolean).join(" "),h={sm:"Sm",md:"Md",lg:"Lg"}[l],R=[e.default.input,e.default[`input${h}`]].join(" "),B=[e.default.searchIcon,e.default[`searchIcon${h}`]].join(" "),c=l==="sm"?16:l==="lg"?22:18;return s.jsxs("div",{className:M,children:[s.jsx("span",{className:B,"aria-hidden":"true",children:n?s.jsx(i.Loader2,{size:c,className:e.default.spinner}):b||s.jsx(i.Search,{size:c})}),s.jsx("input",{ref:N,type:"search",className:R,value:a,disabled:d,onKeyDown:g,...I}),m&&S&&!n&&s.jsx("button",{type:"button",className:e.default.clearButton,onClick:z,"aria-label":C,children:s.jsx(i.X,{size:c-2})}),j&&s.jsx("button",{type:"button",className:e.default.searchButton,onClick:q,"aria-label":x,disabled:n,children:s.jsx(i.Search,{size:c})})]})});p.displayName="SearchInput";exports.SearchInput=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),u=require("lucide-react"),e=require("./index103.cjs"),p=r.forwardRef(({size:l="md",value:a,onClear:d,onSearch:t,showClear:j=!0,showSearchButton:m=!1,searchIcon:C,clearLabel:b="Clear search",searchLabel:x="Search",loading:n=!1,fullWidth:y=!1,disabled:f=!1,className:k,onKeyDown:h,...I},N)=>{const S=a!==void 0&&a!=="",g=r.useCallback(o=>{o.key==="Enter"&&t&&t(o.currentTarget.value),h?.(o)},[t,h]),B=r.useCallback(()=>{d?.()},[d]),q=r.useCallback(()=>{t&&typeof a=="string"&&t(a)},[t,a]),z=[e.default.container,e.default[l],y&&e.default.fullWidth,n&&e.default.loading,f&&e.default.disabled,k].filter(Boolean).join(" "),i={sm:"Sm",md:"Md",lg:"Lg",xl:"Xl"}[l],M=[e.default.input,e.default[`input${i}`]].join(" "),R=[e.default.searchIcon,e.default[`searchIcon${i}`]].join(" "),$=[e.default.clearButton,e.default[`clearButton${i}`]].join(" "),c=l==="sm"?16:l==="lg"?22:l==="xl"?26:18;return s.jsxs("div",{className:z,children:[s.jsx("span",{className:R,"aria-hidden":"true",children:n?s.jsx(u.Loader2,{size:c,className:e.default.spinner}):C||s.jsx(u.Search,{size:c})}),s.jsx("input",{ref:N,type:"search",className:M,value:a,disabled:f,onKeyDown:g,...I}),j&&S&&!n&&s.jsx("button",{type:"button",className:$,onClick:B,"aria-label":b,children:s.jsx(u.X,{size:c-2})}),m&&s.jsx("button",{type:"button",className:e.default.searchButton,onClick:q,"aria-label":x,disabled:n,children:s.jsx(u.Search,{size:c})})]})});p.displayName="SearchInput";exports.SearchInput=p;
package/dist/index62.mjs CHANGED
@@ -1,78 +1,81 @@
1
1
  import { jsxs as L, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as S, useCallback as l } from "react";
3
- import { Loader2 as $, Search as h, X as D } from "lucide-react";
4
- import s from "./index157.mjs";
2
+ import { forwardRef as S, useCallback as i } from "react";
3
+ import { Loader2 as X, Search as u, X as D } from "lucide-react";
4
+ import s from "./index103.mjs";
5
5
  const E = S(
6
6
  ({
7
7
  size: n = "md",
8
- value: a,
9
- onClear: o,
10
- onSearch: t,
11
- showClear: f = !0,
12
- showSearchButton: u = !1,
8
+ value: t,
9
+ onClear: m,
10
+ onSearch: a,
11
+ showClear: h = !0,
12
+ showSearchButton: f = !1,
13
13
  searchIcon: C,
14
14
  clearLabel: y = "Clear search",
15
15
  searchLabel: b = "Search",
16
- loading: r = !1,
16
+ loading: l = !1,
17
17
  fullWidth: N = !1,
18
- disabled: m = !1,
18
+ disabled: p = !1,
19
19
  className: j,
20
- onKeyDown: p,
20
+ onKeyDown: d,
21
21
  ...k
22
- }, z) => {
23
- const I = a !== void 0 && a !== "", g = l(
24
- (i) => {
25
- i.key === "Enter" && t && t(i.currentTarget.value), p?.(i);
22
+ }, x) => {
23
+ const B = t !== void 0 && t !== "", I = i(
24
+ (o) => {
25
+ o.key === "Enter" && a && a(o.currentTarget.value), d?.(o);
26
26
  },
27
- [t, p]
28
- ), x = l(() => {
29
- o?.();
30
- }, [o]), B = l(() => {
31
- t && typeof a == "string" && t(a);
32
- }, [t, a]), M = [
27
+ [a, d]
28
+ ), z = i(() => {
29
+ m?.();
30
+ }, [m]), g = i(() => {
31
+ a && typeof t == "string" && a(t);
32
+ }, [a, t]), M = [
33
33
  s.container,
34
34
  s[n],
35
35
  N && s.fullWidth,
36
- r && s.loading,
37
- m && s.disabled,
36
+ l && s.loading,
37
+ p && s.disabled,
38
38
  j
39
- ].filter(Boolean).join(" "), d = { sm: "Sm", md: "Md", lg: "Lg" }[n], w = [s.input, s[`input${d}`]].join(" "), K = [
39
+ ].filter(Boolean).join(" "), r = { sm: "Sm", md: "Md", lg: "Lg", xl: "Xl" }[n], $ = [s.input, s[`input${r}`]].join(" "), w = [
40
40
  s.searchIcon,
41
- s[`searchIcon${d}`]
42
- ].join(" "), c = n === "sm" ? 16 : n === "lg" ? 22 : 18;
41
+ s[`searchIcon${r}`]
42
+ ].join(" "), K = [
43
+ s.clearButton,
44
+ s[`clearButton${r}`]
45
+ ].join(" "), c = n === "sm" ? 16 : n === "lg" ? 22 : n === "xl" ? 26 : 18;
43
46
  return /* @__PURE__ */ L("div", { className: M, children: [
44
- /* @__PURE__ */ e("span", { className: K, "aria-hidden": "true", children: r ? /* @__PURE__ */ e($, { size: c, className: s.spinner }) : C || /* @__PURE__ */ e(h, { size: c }) }),
47
+ /* @__PURE__ */ e("span", { className: w, "aria-hidden": "true", children: l ? /* @__PURE__ */ e(X, { size: c, className: s.spinner }) : C || /* @__PURE__ */ e(u, { size: c }) }),
45
48
  /* @__PURE__ */ e(
46
49
  "input",
47
50
  {
48
- ref: z,
51
+ ref: x,
49
52
  type: "search",
50
- className: w,
51
- value: a,
52
- disabled: m,
53
- onKeyDown: g,
53
+ className: $,
54
+ value: t,
55
+ disabled: p,
56
+ onKeyDown: I,
54
57
  ...k
55
58
  }
56
59
  ),
57
- f && I && !r && /* @__PURE__ */ e(
60
+ h && B && !l && /* @__PURE__ */ e(
58
61
  "button",
59
62
  {
60
63
  type: "button",
61
- className: s.clearButton,
62
- onClick: x,
64
+ className: K,
65
+ onClick: z,
63
66
  "aria-label": y,
64
67
  children: /* @__PURE__ */ e(D, { size: c - 2 })
65
68
  }
66
69
  ),
67
- u && /* @__PURE__ */ e(
70
+ f && /* @__PURE__ */ e(
68
71
  "button",
69
72
  {
70
73
  type: "button",
71
74
  className: s.searchButton,
72
- onClick: B,
75
+ onClick: g,
73
76
  "aria-label": b,
74
- disabled: r,
75
- children: /* @__PURE__ */ e(h, { size: c })
77
+ disabled: l,
78
+ children: /* @__PURE__ */ e(u, { size: c })
76
79
  }
77
80
  )
78
81
  ] });
package/dist/index63.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index182.cjs"),o=t.forwardRef(({as:a="section",spacing:n="lg",background:l="none",borderTop:r=!1,borderBottom:c=!1,className:s,children:i,...d},u)=>{const f=[e.default.section,e.default[`spacing-${n}`],e.default[`bg-${l}`],r&&e.default.borderTop,c&&e.default.borderBottom,s].filter(Boolean).join(" ");return t.createElement(a,{ref:u,className:f,...d},i)});o.displayName="Section";exports.Section=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index183.cjs"),o=t.forwardRef(({as:a="section",spacing:n="lg",background:l="none",borderTop:r=!1,borderBottom:c=!1,className:s,children:i,...d},u)=>{const f=[e.default.section,e.default[`spacing-${n}`],e.default[`bg-${l}`],r&&e.default.borderTop,c&&e.default.borderBottom,s].filter(Boolean).join(" ");return t.createElement(a,{ref:u,className:f,...d},i)});o.displayName="Section";exports.Section=o;
package/dist/index63.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { forwardRef as f, createElement as p } from "react";
2
- import e from "./index182.mjs";
2
+ import e from "./index183.mjs";
3
3
  const d = f(
4
4
  ({
5
5
  as: o = "section",
package/dist/index64.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),$=require("react"),e=require("./index109.cjs"),n=$.forwardRef(({label:i,error:a,helperText:d,options:o,placeholder:r="Select an option...",fullWidth:u=!1,size:f="md",optional:m=!1,className:h,id:j,disabled:p,required:c,children:b,...x},N)=>{const s=j||`select-${Math.random().toString(36).substr(2,9)}`,v=[e.default.selectContainer,u&&e.default.fullWidth,a&&e.default.error,h].filter(Boolean).join(" "),S=[e.default.select,e.default[f]].filter(Boolean).join(" ");return l.jsxs("div",{className:v,children:[i&&l.jsxs("label",{htmlFor:s,className:e.default.label,children:[i,m&&l.jsx("span",{className:e.default.optional,children:"(optional)"}),c&&l.jsx("span",{"aria-label":"required",children:"*"})]}),l.jsx("div",{className:e.default.selectWrapper,children:l.jsxs("select",{ref:N,id:s,className:S,disabled:p,required:c,"aria-invalid":a?"true":"false","aria-describedby":a?`${s}-error`:d?`${s}-helper`:void 0,...x,children:[r&&l.jsx("option",{value:"",disabled:!0,className:e.default.placeholder,children:r}),o?.map(t=>l.jsx("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)),b]})}),d&&!a&&l.jsx("span",{id:`${s}-helper`,className:e.default.helperText,children:d}),a&&l.jsxs("span",{id:`${s}-error`,className:e.default.errorMessage,role:"alert",children:[l.jsx("span",{className:e.default.errorIcon,"aria-hidden":"true",children:"⚠"}),a]})]})});n.displayName="Select";exports.Select=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),$=require("react"),e=require("./index112.cjs"),n=$.forwardRef(({label:i,error:a,helperText:d,options:o,placeholder:r="Select an option...",fullWidth:u=!1,size:f="md",optional:m=!1,className:h,id:j,disabled:p,required:c,children:b,...x},N)=>{const s=j||`select-${Math.random().toString(36).substr(2,9)}`,v=[e.default.selectContainer,u&&e.default.fullWidth,a&&e.default.error,h].filter(Boolean).join(" "),S=[e.default.select,e.default[f]].filter(Boolean).join(" ");return l.jsxs("div",{className:v,children:[i&&l.jsxs("label",{htmlFor:s,className:e.default.label,children:[i,m&&l.jsx("span",{className:e.default.optional,children:"(optional)"}),c&&l.jsx("span",{"aria-label":"required",children:"*"})]}),l.jsx("div",{className:e.default.selectWrapper,children:l.jsxs("select",{ref:N,id:s,className:S,disabled:p,required:c,"aria-invalid":a?"true":"false","aria-describedby":a?`${s}-error`:d?`${s}-helper`:void 0,...x,children:[r&&l.jsx("option",{value:"",disabled:!0,className:e.default.placeholder,children:r}),o?.map(t=>l.jsx("option",{value:t.value,disabled:t.disabled,children:t.label},t.value)),b]})}),d&&!a&&l.jsx("span",{id:`${s}-helper`,className:e.default.helperText,children:d}),a&&l.jsxs("span",{id:`${s}-error`,className:e.default.errorMessage,role:"alert",children:[l.jsx("span",{className:e.default.errorIcon,"aria-hidden":"true",children:"⚠"}),a]})]})});n.displayName="Select";exports.Select=n;
package/dist/index64.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as y } from "react";
3
- import e from "./index109.mjs";
3
+ import e from "./index112.mjs";
4
4
  const C = y(
5
5
  ({
6
6
  label: n,