@solibo/solibo-ui 2.1.2 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/dist/assets/Degular.woff2 +0 -0
  2. package/dist/assets/Geist.woff2 +0 -0
  3. package/dist/assets/index.css +1 -1
  4. package/dist/assets/index10.css +1 -1
  5. package/dist/assets/index11.css +1 -1
  6. package/dist/assets/index12.css +1 -1
  7. package/dist/assets/index13.css +1 -1
  8. package/dist/assets/index14.css +1 -1
  9. package/dist/assets/index15.css +1 -1
  10. package/dist/assets/index16.css +1 -1
  11. package/dist/assets/index17.css +1 -1
  12. package/dist/assets/index18.css +1 -1
  13. package/dist/assets/index19.css +1 -1
  14. package/dist/assets/index2.css +1 -1
  15. package/dist/assets/index20.css +1 -0
  16. package/dist/assets/index21.css +1 -1
  17. package/dist/assets/index22.css +1 -1
  18. package/dist/assets/index23.css +1 -1
  19. package/dist/assets/index26.css +1 -1
  20. package/dist/assets/index27.css +1 -1
  21. package/dist/assets/index28.css +1 -1
  22. package/dist/assets/index3.css +1 -1
  23. package/dist/assets/index31.css +1 -1
  24. package/dist/assets/index32.css +1 -1
  25. package/dist/assets/index33.css +1 -1
  26. package/dist/assets/index34.css +1 -1
  27. package/dist/assets/index38.css +1 -1
  28. package/dist/assets/index39.css +1 -1
  29. package/dist/assets/index41.css +1 -1
  30. package/dist/assets/index43.css +1 -1
  31. package/dist/assets/index46.css +1 -1
  32. package/dist/assets/index48.css +1 -1
  33. package/dist/assets/index49.css +1 -1
  34. package/dist/assets/index50.css +1 -1
  35. package/dist/assets/index51.css +1 -1
  36. package/dist/assets/index52.css +1 -1
  37. package/dist/assets/index53.css +1 -1
  38. package/dist/assets/index54.css +1 -1
  39. package/dist/assets/index55.css +1 -1
  40. package/dist/assets/index56.css +1 -0
  41. package/dist/assets/index6.css +1 -1
  42. package/dist/assets/index8.css +1 -1
  43. package/dist/assets/index9.css +1 -1
  44. package/dist/assets/menu-popover.css +1 -1
  45. package/dist/components/app-link/index.cjs +1 -1
  46. package/dist/components/app-link/index.js +1 -1
  47. package/dist/components/app-shell/index.cjs +1 -1
  48. package/dist/components/app-shell/index.js +3 -3
  49. package/dist/components/aside/index.cjs +1 -1
  50. package/dist/components/aside/index.js +5 -5
  51. package/dist/components/avatar/index.cjs +1 -1
  52. package/dist/components/avatar/index.js +30 -30
  53. package/dist/components/badge/index.cjs +1 -1
  54. package/dist/components/badge/index.js +41 -39
  55. package/dist/components/banner/index.cjs +1 -1
  56. package/dist/components/banner/index.js +4 -4
  57. package/dist/components/branding/index.cjs +1 -1
  58. package/dist/components/branding/index.js +2 -2
  59. package/dist/components/button/index.cjs +1 -1
  60. package/dist/components/button/index.js +29 -29
  61. package/dist/components/card/index.cjs +1 -1
  62. package/dist/components/card/index.js +57 -49
  63. package/dist/components/checkbox/index.cjs +1 -1
  64. package/dist/components/checkbox/index.js +5 -5
  65. package/dist/components/chip/index.cjs +1 -1
  66. package/dist/components/chip/index.js +25 -25
  67. package/dist/components/collapsible/index.cjs +1 -1
  68. package/dist/components/collapsible/index.js +34 -18
  69. package/dist/components/controls/index.cjs +2 -2
  70. package/dist/components/controls/index.js +11 -11
  71. package/dist/components/croppable/index.cjs +1 -1
  72. package/dist/components/croppable/index.js +269 -233
  73. package/dist/components/dialog/index.cjs +1 -1
  74. package/dist/components/dialog/index.js +38 -38
  75. package/dist/components/divider/index.cjs +1 -1
  76. package/dist/components/divider/index.js +3 -3
  77. package/dist/components/dropdown/index.cjs +1 -1
  78. package/dist/components/dropdown/index.js +90 -90
  79. package/dist/components/dropzone/index.cjs +1 -1
  80. package/dist/components/dropzone/index.js +11 -11
  81. package/dist/components/editor/index.cjs +1 -55
  82. package/dist/components/editor/index.js +403 -16299
  83. package/dist/components/fieldset/index.cjs +1 -1
  84. package/dist/components/fieldset/index.js +3 -3
  85. package/dist/components/figure/index.cjs +1 -1
  86. package/dist/components/figure/index.js +14 -12
  87. package/dist/components/file/index.cjs +1 -1
  88. package/dist/components/file/index.js +1 -1
  89. package/dist/components/footer/index.cjs +1 -1
  90. package/dist/components/footer/index.js +12 -8
  91. package/dist/components/form/index.cjs +1 -1
  92. package/dist/components/form/index.js +9 -9
  93. package/dist/components/graph/index.cjs +1 -1
  94. package/dist/components/graph/index.js +12 -12
  95. package/dist/components/group/index.cjs +1 -1
  96. package/dist/components/group/index.js +38 -11
  97. package/dist/components/header/index.cjs +1 -1
  98. package/dist/components/header/index.js +49 -32
  99. package/dist/components/icon/index.cjs +1 -1
  100. package/dist/components/icon/index.js +7 -7
  101. package/dist/components/iframe/index.cjs +1 -1
  102. package/dist/components/iframe/index.js +71 -66
  103. package/dist/components/image/index.cjs +1 -1
  104. package/dist/components/image/index.js +1 -1
  105. package/dist/components/input/index.cjs +1 -1
  106. package/dist/components/input/index.js +3 -3
  107. package/dist/components/link/index.cjs +1 -1
  108. package/dist/components/link/index.js +27 -14
  109. package/dist/components/list/index.cjs +1 -1
  110. package/dist/components/list/index.js +62 -58
  111. package/dist/components/loading/index.cjs +1 -1
  112. package/dist/components/loading/index.js +5 -5
  113. package/dist/components/menu/index.cjs +1 -1
  114. package/dist/components/menu/index.js +1 -1
  115. package/dist/components/message/index.cjs +1 -1
  116. package/dist/components/message/index.js +2 -2
  117. package/dist/components/messages/index.cjs +1 -1
  118. package/dist/components/messages/index.js +6 -6
  119. package/dist/components/nav/index.cjs +1 -1
  120. package/dist/components/nav/index.js +31 -29
  121. package/dist/components/object/index.cjs +1 -1
  122. package/dist/components/object/index.js +1 -1
  123. package/dist/components/page-layout/index.cjs +1 -1
  124. package/dist/components/page-layout/index.js +33 -20
  125. package/dist/components/panel/index.cjs +2 -0
  126. package/dist/components/panel/index.js +25 -0
  127. package/dist/components/popover/index.cjs +1 -1
  128. package/dist/components/popover/index.js +35 -35
  129. package/dist/components/portal/index.cjs +1 -1
  130. package/dist/components/portal/index.js +22 -22
  131. package/dist/components/search/index.cjs +1 -1
  132. package/dist/components/search/index.js +50 -50
  133. package/dist/components/select/index.cjs +1 -1
  134. package/dist/components/select/index.js +3 -3
  135. package/dist/components/sortable/index.cjs +1 -1
  136. package/dist/components/sortable/index.js +49 -49
  137. package/dist/components/textarea/index.cjs +1 -1
  138. package/dist/components/textarea/index.js +29 -27
  139. package/dist/components/toast/index.cjs +1 -1
  140. package/dist/components/toast/index.js +1 -1
  141. package/dist/components/toggle/index.cjs +1 -1
  142. package/dist/components/toggle/index.js +10 -10
  143. package/dist/components/toolbar/index.cjs +1 -1
  144. package/dist/components/toolbar/index.js +3 -3
  145. package/dist/components/tooltip/index.cjs +1 -1
  146. package/dist/components/tooltip/index.js +2 -2
  147. package/dist/components/widget/index.cjs +1 -1
  148. package/dist/components/widget/index.js +22 -13
  149. package/dist/icons-BIdcCH-v.cjs +2 -0
  150. package/dist/{icons-CTtWkF6z.js → icons-DVeBguFb.js} +6 -3
  151. package/dist/index-7blZaPiA.cjs +2 -0
  152. package/dist/{index-CMPTHneU.js → index-Dd20d_9U.js} +9 -9
  153. package/dist/{index-BIpgkB-u.js → index-Dx-KtGBg.js} +12 -12
  154. package/dist/index-VLDsM9it.cjs +2 -0
  155. package/dist/index.cjs +1 -1
  156. package/dist/index.d.ts +391 -17
  157. package/dist/index.js +59 -56
  158. package/dist/menu-popover-Ceb_9V67.js +77 -0
  159. package/dist/menu-popover-bqblnK6P.cjs +2 -0
  160. package/dist/styles/fonts.css +11 -0
  161. package/dist/tokens.json +1 -1
  162. package/package.json +15 -8
  163. package/dist/classix-5H4IWnMA.cjs +0 -2
  164. package/dist/classix-5H4IWnMA.cjs.map +0 -1
  165. package/dist/classix-DG18itHa.js +0 -9
  166. package/dist/classix-DG18itHa.js.map +0 -1
  167. package/dist/components/app-link/index.cjs.map +0 -1
  168. package/dist/components/app-link/index.js.map +0 -1
  169. package/dist/components/app-shell/index.cjs.map +0 -1
  170. package/dist/components/app-shell/index.js.map +0 -1
  171. package/dist/components/aside/index.cjs.map +0 -1
  172. package/dist/components/aside/index.js.map +0 -1
  173. package/dist/components/avatar/index.cjs.map +0 -1
  174. package/dist/components/avatar/index.js.map +0 -1
  175. package/dist/components/badge/index.cjs.map +0 -1
  176. package/dist/components/badge/index.js.map +0 -1
  177. package/dist/components/banner/index.cjs.map +0 -1
  178. package/dist/components/banner/index.js.map +0 -1
  179. package/dist/components/branding/index.cjs.map +0 -1
  180. package/dist/components/branding/index.js.map +0 -1
  181. package/dist/components/button/index.cjs.map +0 -1
  182. package/dist/components/button/index.js.map +0 -1
  183. package/dist/components/card/index.cjs.map +0 -1
  184. package/dist/components/card/index.js.map +0 -1
  185. package/dist/components/checkbox/index.cjs.map +0 -1
  186. package/dist/components/checkbox/index.js.map +0 -1
  187. package/dist/components/chip/index.cjs.map +0 -1
  188. package/dist/components/chip/index.js.map +0 -1
  189. package/dist/components/clipboard/index.cjs.map +0 -1
  190. package/dist/components/clipboard/index.js.map +0 -1
  191. package/dist/components/collapsible/index.cjs.map +0 -1
  192. package/dist/components/collapsible/index.js.map +0 -1
  193. package/dist/components/controls/index.cjs.map +0 -1
  194. package/dist/components/controls/index.js.map +0 -1
  195. package/dist/components/croppable/index.cjs.map +0 -1
  196. package/dist/components/croppable/index.js.map +0 -1
  197. package/dist/components/dialog/index.cjs.map +0 -1
  198. package/dist/components/dialog/index.js.map +0 -1
  199. package/dist/components/divider/index.cjs.map +0 -1
  200. package/dist/components/divider/index.js.map +0 -1
  201. package/dist/components/dropdown/index.cjs.map +0 -1
  202. package/dist/components/dropdown/index.js.map +0 -1
  203. package/dist/components/dropzone/index.cjs.map +0 -1
  204. package/dist/components/dropzone/index.js.map +0 -1
  205. package/dist/components/editor/index.cjs.map +0 -1
  206. package/dist/components/editor/index.js.map +0 -1
  207. package/dist/components/empty-state/index.cjs.map +0 -1
  208. package/dist/components/empty-state/index.js.map +0 -1
  209. package/dist/components/fieldset/index.cjs.map +0 -1
  210. package/dist/components/fieldset/index.js.map +0 -1
  211. package/dist/components/figure/index.cjs.map +0 -1
  212. package/dist/components/figure/index.js.map +0 -1
  213. package/dist/components/file/index.cjs.map +0 -1
  214. package/dist/components/file/index.js.map +0 -1
  215. package/dist/components/footer/index.cjs.map +0 -1
  216. package/dist/components/footer/index.js.map +0 -1
  217. package/dist/components/form/index.cjs.map +0 -1
  218. package/dist/components/form/index.js.map +0 -1
  219. package/dist/components/graph/index.cjs.map +0 -1
  220. package/dist/components/graph/index.js.map +0 -1
  221. package/dist/components/group/index.cjs.map +0 -1
  222. package/dist/components/group/index.js.map +0 -1
  223. package/dist/components/header/index.cjs.map +0 -1
  224. package/dist/components/header/index.js.map +0 -1
  225. package/dist/components/icon/index.cjs.map +0 -1
  226. package/dist/components/icon/index.js.map +0 -1
  227. package/dist/components/iframe/index.cjs.map +0 -1
  228. package/dist/components/iframe/index.js.map +0 -1
  229. package/dist/components/image/index.cjs.map +0 -1
  230. package/dist/components/image/index.js.map +0 -1
  231. package/dist/components/input/index.cjs.map +0 -1
  232. package/dist/components/input/index.js.map +0 -1
  233. package/dist/components/link/index.cjs.map +0 -1
  234. package/dist/components/link/index.js.map +0 -1
  235. package/dist/components/list/index.cjs.map +0 -1
  236. package/dist/components/list/index.js.map +0 -1
  237. package/dist/components/loading/index.cjs.map +0 -1
  238. package/dist/components/loading/index.js.map +0 -1
  239. package/dist/components/menu/index.cjs.map +0 -1
  240. package/dist/components/menu/index.js.map +0 -1
  241. package/dist/components/message/index.cjs.map +0 -1
  242. package/dist/components/message/index.js.map +0 -1
  243. package/dist/components/messages/index.cjs.map +0 -1
  244. package/dist/components/messages/index.js.map +0 -1
  245. package/dist/components/nav/index.cjs.map +0 -1
  246. package/dist/components/nav/index.js.map +0 -1
  247. package/dist/components/object/index.cjs.map +0 -1
  248. package/dist/components/object/index.js.map +0 -1
  249. package/dist/components/page-layout/index.cjs.map +0 -1
  250. package/dist/components/page-layout/index.js.map +0 -1
  251. package/dist/components/popover/index.cjs.map +0 -1
  252. package/dist/components/popover/index.js.map +0 -1
  253. package/dist/components/portal/index.cjs.map +0 -1
  254. package/dist/components/portal/index.js.map +0 -1
  255. package/dist/components/search/index.cjs.map +0 -1
  256. package/dist/components/search/index.js.map +0 -1
  257. package/dist/components/select/index.cjs.map +0 -1
  258. package/dist/components/select/index.js.map +0 -1
  259. package/dist/components/sortable/index.cjs.map +0 -1
  260. package/dist/components/sortable/index.js.map +0 -1
  261. package/dist/components/table/index.cjs.map +0 -1
  262. package/dist/components/table/index.js.map +0 -1
  263. package/dist/components/textarea/index.cjs.map +0 -1
  264. package/dist/components/textarea/index.js.map +0 -1
  265. package/dist/components/toast/index.cjs.map +0 -1
  266. package/dist/components/toast/index.js.map +0 -1
  267. package/dist/components/toasts/index.cjs.map +0 -1
  268. package/dist/components/toasts/index.js.map +0 -1
  269. package/dist/components/toggle/index.cjs.map +0 -1
  270. package/dist/components/toggle/index.js.map +0 -1
  271. package/dist/components/toolbar/index.cjs.map +0 -1
  272. package/dist/components/toolbar/index.js.map +0 -1
  273. package/dist/components/tooltip/index.cjs.map +0 -1
  274. package/dist/components/tooltip/index.js.map +0 -1
  275. package/dist/components/widget/index.cjs.map +0 -1
  276. package/dist/components/widget/index.js.map +0 -1
  277. package/dist/icons-B3hIY9Bm.cjs +0 -2
  278. package/dist/icons-B3hIY9Bm.cjs.map +0 -1
  279. package/dist/icons-CTtWkF6z.js.map +0 -1
  280. package/dist/index-BIpgkB-u.js.map +0 -1
  281. package/dist/index-Bbauu1No.cjs +0 -2
  282. package/dist/index-Bbauu1No.cjs.map +0 -1
  283. package/dist/index-CMPTHneU.js.map +0 -1
  284. package/dist/index-DAjU2bTe.cjs +0 -2
  285. package/dist/index-DAjU2bTe.cjs.map +0 -1
  286. package/dist/index.cjs.map +0 -1
  287. package/dist/index.js.map +0 -1
  288. package/dist/menu-popover-BV7nUXlb.js +0 -77
  289. package/dist/menu-popover-BV7nUXlb.js.map +0 -1
  290. package/dist/menu-popover-fGpFDJTo.cjs +0 -2
  291. package/dist/menu-popover-fGpFDJTo.cjs.map +0 -1
  292. package/dist/use-touched-B999bBr8.js.map +0 -1
  293. package/dist/use-touched-Bq5Gjbpz.cjs.map +0 -1
@@ -1,89 +1,94 @@
1
- import { jsxs as q, jsx as l } from "react/jsx-runtime";
2
- import { t as I } from "../../classix-DG18itHa.js";
3
- import { useRef as H, useState as O, useCallback as v, useEffect as S } from "react";
1
+ import { jsxs as N, jsx as r } from "react/jsx-runtime";
2
+ import O from "classix";
3
+ import { useRef as H, useState as C, useCallback as E, useEffect as S } from "react";
4
4
  import { Button as U } from "../button/index.js";
5
- import { Controls as L } from "../controls/index.js";
6
- import { Dialog as X } from "../dialog/index.js";
7
- import { Header as J } from "../header/index.js";
8
- import '../../assets/index18.css';const K = "_wrapper_s1xgg_3", Q = "_toolbar_s1xgg_8", W = "_iframe_s1xgg_14", Y = "_scrollable_s1xgg_25", i = {
9
- wrapper: K,
10
- toolbar: Q,
11
- iframe: W,
12
- "fullscreen-iframe": "_fullscreen-iframe_s1xgg_20",
13
- scrollable: Y
14
- }, u = 120, Z = 12e3, D = 8, le = ({
15
- accessibleLabel: f,
16
- autoResize: n = !1,
17
- className: E,
18
- closeFullscreenLabel: N = "Close fullscreen",
19
- fullscreenLabel: k = "View in fullscreen",
20
- hasFullscreenView: B = !0,
21
- loading: G = "lazy",
5
+ import { Controls as K } from "../controls/index.js";
6
+ import { Dialog as Q } from "../dialog/index.js";
7
+ import { Header as W } from "../header/index.js";
8
+ import '../../assets/index19.css';const Y = "_wrapper_vtkwq_1", Z = "_toolbar_vtkwq_6", z = "_iframe_vtkwq_12", o = {
9
+ wrapper: Y,
10
+ toolbar: Z,
11
+ iframe: z,
12
+ "fullscreen-iframe": "_fullscreen-iframe_vtkwq_18",
13
+ "print-content": "_print-content_vtkwq_23"
14
+ }, f = 120, D = 12e3, L = 8, ie = ({
15
+ accessibleLabel: c,
16
+ autoResize: i = !1,
17
+ className: y,
18
+ closeFullscreenLabel: B = "Close fullscreen",
19
+ fullscreenLabel: G = "View in fullscreen",
20
+ hasFullscreenView: V = !0,
21
+ loading: $ = "lazy",
22
22
  onLoad: d,
23
- referrerPolicy: y = "no-referrer",
24
- sandbox: x = "",
23
+ printContent: M,
24
+ referrerPolicy: T = "no-referrer",
25
+ sandbox: k = "",
25
26
  srcDoc: h,
26
- style: M,
27
- ...T
27
+ style: q,
28
+ ...x
28
29
  }) => {
29
- const g = H(null), c = H(null), o = H(null), [V, A] = O(u), [F, p] = O(!1), w = v(() => {
30
- c.current !== null && (window.cancelAnimationFrame(c.current), c.current = null), o.current !== null && (window.clearTimeout(o.current), o.current = null);
31
- }, []), _ = v(() => {
32
- if (!n) return;
33
- const r = g.current, e = r == null ? void 0 : r.contentDocument;
34
- if (!r || !e) return;
35
- const m = r.style.height;
30
+ const p = H(null), a = H(null), l = H(null), [j, A] = C(f), [w, v] = C(!1), g = E(() => {
31
+ a.current !== null && (window.cancelAnimationFrame(a.current), a.current = null), l.current !== null && (window.clearTimeout(l.current), l.current = null);
32
+ }, []), _ = E(() => {
33
+ if (!i) return;
34
+ const t = p.current, e = t == null ? void 0 : t.contentDocument;
35
+ if (!t || !e) return;
36
+ const m = t.style.height;
36
37
  try {
37
- r.style.height = `${u}px`;
38
- const s = e.querySelector("[data-iframe-content]") ?? e.body, a = s.getBoundingClientRect(), {
39
- body: b,
40
- documentElement: C
41
- } = e, j = Math.min(Math.max(Math.ceil(Math.max(s.scrollHeight, s.offsetHeight, a.height, b.scrollHeight, b.offsetHeight, C.scrollHeight, C.offsetHeight) + D), u), Z);
42
- A(j);
38
+ t.style.height = `${f}px`;
39
+ const s = e.querySelector("[data-iframe-content]") ?? e.body, u = s.getBoundingClientRect(), {
40
+ body: F,
41
+ documentElement: I
42
+ } = e, J = Math.min(Math.max(Math.ceil(Math.max(s.scrollHeight, s.offsetHeight, u.height, F.scrollHeight, F.offsetHeight, I.scrollHeight, I.offsetHeight) + L), f), D);
43
+ A(J);
43
44
  } catch {
44
45
  } finally {
45
- r.style.height = m;
46
+ t.style.height = m;
46
47
  }
47
- }, [n]), t = v(() => {
48
- !n || c.current !== null || (c.current = window.requestAnimationFrame(() => {
49
- c.current = null, _(), o.current !== null && window.clearTimeout(o.current), o.current = window.setTimeout(() => {
50
- o.current = null, _();
48
+ }, [i]), n = E(() => {
49
+ !i || a.current !== null || (a.current = window.requestAnimationFrame(() => {
50
+ a.current = null, _(), l.current !== null && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
51
+ l.current = null, _();
51
52
  }, 250);
52
53
  }));
53
- }, [n, _]), $ = (r) => {
54
+ }, [i, _]), X = (t) => {
54
55
  var m, s;
55
- t();
56
- const e = (m = g.current) == null ? void 0 : m.contentDocument;
57
- Array.from((e == null ? void 0 : e.images) ?? []).forEach((a) => {
58
- a.complete || (a.addEventListener("load", t, {
56
+ n();
57
+ const e = (m = p.current) == null ? void 0 : m.contentDocument;
58
+ Array.from((e == null ? void 0 : e.images) ?? []).forEach((u) => {
59
+ u.complete || (u.addEventListener("load", n, {
59
60
  once: !0
60
- }), a.addEventListener("error", t, {
61
+ }), u.addEventListener("error", n, {
61
62
  once: !0
62
63
  }));
63
- }), (s = e == null ? void 0 : e.fonts) == null || s.ready.then(t).catch(() => {
64
- }), d == null || d(r);
64
+ }), (s = e == null ? void 0 : e.fonts) == null || s.ready.then(n).catch(() => {
65
+ }), d == null || d(t);
65
66
  };
66
67
  return S(() => {
67
- if (n)
68
- return w(), A(u), t(), w;
69
- }, [n, w, t, h]), S(() => {
70
- var r;
71
- if (n)
72
- return window.addEventListener("resize", t), (r = window.visualViewport) == null || r.addEventListener("resize", t), () => {
68
+ if (i)
69
+ return g(), A(f), n(), g;
70
+ }, [i, g, n, h]), S(() => {
71
+ var t;
72
+ if (i)
73
+ return window.addEventListener("resize", n), (t = window.visualViewport) == null || t.addEventListener("resize", n), () => {
73
74
  var e;
74
- window.removeEventListener("resize", t), (e = window.visualViewport) == null || e.removeEventListener("resize", t);
75
+ window.removeEventListener("resize", n), (e = window.visualViewport) == null || e.removeEventListener("resize", n);
75
76
  };
76
- }, [n, t]), /* @__PURE__ */ q("div", { className: i.wrapper, "data-component": "iframe", children: [
77
- B && /* @__PURE__ */ l("div", { className: i.toolbar, children: /* @__PURE__ */ l(U, { "aria-expanded": F, "aria-haspopup": "dialog", onClick: () => p(!0), variant: "tertiary", children: k }) }),
78
- /* @__PURE__ */ l("iframe", { ...T, className: I(i.iframe, !n && i.scrollable, E), loading: G, onLoad: $, ref: g, referrerPolicy: y, sandbox: x, srcDoc: h, style: n ? {
79
- ...M,
80
- height: V,
81
- minHeight: u
82
- } : M, title: f }),
83
- F && /* @__PURE__ */ l(X, { "aria-label": `${f} fullscreen`, controls: /* @__PURE__ */ l(L, { children: /* @__PURE__ */ l(U, { onClick: () => p(!1), children: N }) }), fullscreen: !0, header: /* @__PURE__ */ l(J, { children: /* @__PURE__ */ l("h2", { children: f }) }), open: !0, setOpen: p, children: /* @__PURE__ */ l("iframe", { ...T, className: I(i.iframe, i["fullscreen-iframe"], i.scrollable, E), loading: "eager", referrerPolicy: y, sandbox: x, srcDoc: h, title: `${f} fullscreen` }) })
77
+ }, [i, n]), /* @__PURE__ */ N("div", { className: o.wrapper, "data-component": "iframe", children: [
78
+ V && /* @__PURE__ */ r("div", { className: o.toolbar, children: /* @__PURE__ */ r(U, { "aria-expanded": w, "aria-haspopup": "dialog", onClick: () => v(!0), variant: "tertiary", children: G }) }),
79
+ /* @__PURE__ */ r("iframe", { ...x, className: O(o.iframe, y), loading: $, onLoad: X, ref: p, referrerPolicy: T, sandbox: k, srcDoc: h, style: i ? {
80
+ ...q,
81
+ height: j,
82
+ minHeight: f
83
+ } : q, title: c }),
84
+ !w && /* @__PURE__ */ r("div", { className: o["print-content"], "data-iframe-print-content": !0, children: M ?? /* @__PURE__ */ r("p", { children: c }) }),
85
+ w && /* @__PURE__ */ N(Q, { "aria-label": `${c} fullscreen`, controls: /* @__PURE__ */ r(K, { children: /* @__PURE__ */ r(U, { onClick: () => v(!1), children: B }) }), fullscreen: !0, header: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r("h2", { children: c }) }), open: !0, setOpen: v, children: [
86
+ /* @__PURE__ */ r("iframe", { ...x, className: O(o.iframe, o["fullscreen-iframe"], y), loading: "eager", referrerPolicy: T, sandbox: k, srcDoc: h, title: `${c} fullscreen` }),
87
+ /* @__PURE__ */ r("div", { className: o["print-content"], "data-iframe-print-content": !0, children: M ?? /* @__PURE__ */ r("p", { children: c }) })
88
+ ] })
84
89
  ] });
85
90
  };
86
91
  export {
87
- le as Iframe
92
+ ie as Iframe
88
93
  };
89
94
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_14j8z_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:i,style:l,...t}){const u=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=u.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),i==null||i(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:u,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index18.css');const d=require("react/jsx-runtime"),c=require("react"),o="_image_14j8z_1",y={image:o};function S({fadeDurationMs:n=250,showOnError:r=!0,onLoad:a,onError:i,style:l,...t}){const u=c.useRef(null),[m,s]=c.useState(!1);c.useEffect(()=>{s(!1)},[t.src,t.srcSet]),c.useEffect(()=>{const e=u.current;e&&e.complete&&e.naturalWidth>0&&s(!0)},[t.src,t.srcSet]);const f=e=>{s(!0),a==null||a(e)},g=e=>{r&&s(!0),i==null||i(e)};return d.jsx("img",{...t,className:y.image,onLoad:f,onError:g,ref:u,style:{...l,opacity:m?1:0,"--duration-override":`${n}ms`},"data-component":"image"})}exports.Image=S;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsx as g } from "react/jsx-runtime";
2
2
  import { useRef as o, useState as h, useEffect as m } from "react";
3
- import '../../assets/index17.css';const y = "_image_14j8z_1", S = {
3
+ import '../../assets/index18.css';const y = "_image_14j8z_1", S = {
4
4
  image: y
5
5
  };
6
6
  function x({
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../classix-5H4IWnMA.cjs");require("react");require("../../icons-B3hIY9Bm.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-Bbauu1No.cjs");exports.Input=e.Input;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("classix");require("react");require("../../icons-BIdcCH-v.cjs");require("../../use-touched-Bq5Gjbpz.cjs");const e=require("../../index-7blZaPiA.cjs");exports.Input=e.Input;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import "../../classix-DG18itHa.js";
2
+ import "classix";
3
3
  import "react";
4
- import "../../icons-CTtWkF6z.js";
4
+ import "../../icons-DVeBguFb.js";
5
5
  import "../../use-touched-B999bBr8.js";
6
- import { I as a } from "../../index-CMPTHneU.js";
6
+ import { I as a } from "../../index-Dd20d_9U.js";
7
7
  export {
8
8
  a as Input
9
9
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index50.css');const a=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),m="_link_fsphh_1",o="_primary_fsphh_19",c="_danger_fsphh_25",_="_minimal_fsphh_33",n={link:m,primary:o,danger:c,minimal:_},p=({children:i,className:r,to:s="#",variant:e="primary",...t})=>a.jsx("a",{className:l.t(r,n.link,n[e]),href:s,...t,"data-component":"link",children:i});exports.Link=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const t=require("react/jsx-runtime"),o=require("classix"),c="_link_5i71r_1",l="_neutral_5i71r_19",m="_content_5i71r_24",_="_adornment_5i71r_33",d="_text_5i71r_37",u="_primary_5i71r_43",p="_danger_5i71r_49",x="_minimal_5i71r_57",n={link:c,neutral:l,content:m,adornment:_,text:d,primary:u,danger:p,minimal:x},k=({children:s,leading:e,trailing:r})=>t.jsxs("span",{className:n.content,"data-component":"linkcontent",children:[e!=null&&t.jsx("span",{className:n.adornment,children:e}),t.jsx("span",{className:n.text,children:s}),r!=null&&t.jsx("span",{className:n.adornment,children:r})]}),j=({children:s,className:e,to:r="#",variant:a="primary",...i})=>t.jsx("a",{className:o(e,n.link,n[a]),href:r,...i,"data-component":"link",children:s});exports.Link=j;exports.LinkContent=k;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,18 +1,31 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { t as o } from "../../classix-DG18itHa.js";
3
- import '../../assets/index50.css';const p = "_link_fsphh_1", _ = "_primary_fsphh_19", l = "_danger_fsphh_25", e = "_minimal_fsphh_33", n = {
4
- link: p,
5
- primary: _,
6
- danger: l,
7
- minimal: e
8
- }, f = ({
9
- children: r,
10
- className: i,
11
- to: m = "#",
12
- variant: a = "primary",
1
+ import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
+ import c from "classix";
3
+ import '../../assets/index51.css';const m = "_link_5i71r_1", _ = "_neutral_5i71r_19", l = "_content_5i71r_24", p = "_adornment_5i71r_33", d = "_text_5i71r_37", k = "_primary_5i71r_43", x = "_danger_5i71r_49", u = "_minimal_5i71r_57", n = {
4
+ link: m,
5
+ neutral: _,
6
+ content: l,
7
+ adornment: p,
8
+ text: d,
9
+ primary: k,
10
+ danger: x,
11
+ minimal: u
12
+ }, h = ({
13
+ children: e,
14
+ leading: t,
15
+ trailing: r
16
+ }) => /* @__PURE__ */ i("span", { className: n.content, "data-component": "linkcontent", children: [
17
+ t != null && /* @__PURE__ */ a("span", { className: n.adornment, children: t }),
18
+ /* @__PURE__ */ a("span", { className: n.text, children: e }),
19
+ r != null && /* @__PURE__ */ a("span", { className: n.adornment, children: r })
20
+ ] }), f = ({
21
+ children: e,
22
+ className: t,
23
+ to: r = "#",
24
+ variant: o = "primary",
13
25
  ...s
14
- }) => /* @__PURE__ */ t("a", { className: o(i, n.link, n[a]), href: m, ...s, "data-component": "link", children: r });
26
+ }) => /* @__PURE__ */ a("a", { className: c(t, n.link, n[o]), href: r, ...s, "data-component": "link", children: e });
15
27
  export {
16
- f as Link
28
+ f as Link,
29
+ h as LinkContent
17
30
  };
18
31
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index51.css');const a=require("react/jsx-runtime"),q=require("../../classix-5H4IWnMA.cjs"),l=require("react");function H(t){return l.isValidElement(t)&&t.type===l.Fragment}function O(t,s=[]){return l.Children.forEach(t,i=>{H(i)?O(i.props.children,s):s.push(i)}),s}function F(t,{wrapper:s="li"}={}){return O(t).filter(n=>n!==null).map((n,u)=>{if(l.isValidElement(n)&&n.type===s)return n;const f=l.isValidElement(n)&&n.key!=null?n.key:u;return l.createElement(s,{key:f},n)})}const T="_controls_bp7if_3",V="_horizontal_bp7if_8",A="_list_bp7if_19",I="_columns_bp7if_59",D="_masonry_bp7if_69",P="_scrollable_bp7if_79",$="_overflowing_bp7if_86",G="_compact_bp7if_111",r={controls:T,horizontal:V,list:A,columns:I,masonry:D,scrollable:P,overflowing:$,compact:G},M=(t,s)=>{typeof t=="function"?t(s):t&&(t.current=s)};function J({children:t,className:s,columns:i=1,compact:p=!1,controls:n,horizontal:u,layout:f="grid",maxVisibleItems:m,ordered:z,ref:y,style:B,...b}){const _=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,v=l.useRef(null),[c,S]=l.useState(),o=f==="grid"&&_===1&&!u&&m!=null&&Number.isFinite(m)&&m>=1?Math.floor(m):void 0,h=!!o&&c!=null;l.useLayoutEffect(()=>{const e=v.current;if(!e||!o)return;const R=()=>{const g=Array.from(e.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=g[o-1],k=g.length>o&&N?N.getBoundingClientRect().bottom-e.getBoundingClientRect().top+e.scrollTop+(parseFloat(getComputedStyle(e).paddingBottom)||0):void 0;S(k)},d=new ResizeObserver(R),C=()=>{d.disconnect(),d.observe(e),Array.from(e.children).forEach(g=>d.observe(g)),R()},L=new MutationObserver(C);return L.observe(e,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{d.disconnect(),L.disconnect()}},[t,o,h]);const x=q.t(s,r.list,f==="masonry"?r.masonry:_>1&&r.columns,!!o&&r.scrollable,h&&r.overflowing,u&&r.horizontal,p&&r.compact),E={...B,"--list-columns":_,"--list-max-height":o&&c!=null?`${c}px`:void 0},w=z?a.jsx("ol",{className:x,ref:e=>{v.current=e,M(y,e)},style:E,...b,tabIndex:b.tabIndex??(o&&c!=null?0:void 0),children:F(t)}):a.jsx("ul",{className:x,ref:e=>{v.current=e,M(y,e)},style:E,...b,tabIndex:b.tabIndex??(o&&c!=null?0:void 0),children:F(t)});return n==null?w:a.jsxs(a.Fragment,{children:[a.jsx("div",{className:r.controls,children:n}),w]})}exports.List=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index52.css');const u=require("react/jsx-runtime"),H=require("classix"),r=require("react");function T(e){return r.isValidElement(e)&&e.type===r.Fragment}function O(e,n=[]){return r.Children.forEach(e,i=>{T(i)?O(i.props.children,n):n.push(i)}),n}function F(e,{wrapper:n="li"}={}){return O(e).filter(s=>s!==null).map((s,c)=>{if(r.isValidElement(s)&&s.type===n)return s;const m=r.isValidElement(s)&&s.key!=null?s.key:c;return r.createElement(n,{key:m,"data-component":"wrapchildren"},s)})}const V="_controls_uue68_1",A="_horizontal_uue68_9",I="_list_uue68_20",D="_columns_uue68_61",P="_masonry_uue68_71",$="_scrollable_uue68_81",G="_overflowing_uue68_88",J="_sized_uue68_111",K="_compact_uue68_123",l={controls:V,horizontal:A,list:I,columns:D,masonry:P,scrollable:$,overflowing:G,sized:J,compact:K},M=(e,n)=>{typeof e=="function"?e(n):e&&(e.current=n)};function Q({children:e,className:n,columns:i=1,columnWidth:b,compact:s=!1,controls:c,horizontal:m,layout:h="grid",maxVisibleItems:f,ordered:B,ref:p,style:S,...d}){const v=Number.isFinite(i)?Math.max(1,Math.floor(i)):1,y=r.useRef(null),[a,k]=r.useState(),o=h==="grid"&&v===1&&!m&&f!=null&&Number.isFinite(f)&&f>=1?Math.floor(f):void 0,w=!!o&&a!=null;r.useLayoutEffect(()=>{const t=y.current;if(!t||!o)return;const R=()=>{const g=Array.from(t.children).filter(j=>j instanceof HTMLElement&&getComputedStyle(j).display!=="none"),N=g[o-1],q=g.length>o&&N?N.getBoundingClientRect().bottom-t.getBoundingClientRect().top+t.scrollTop+(parseFloat(getComputedStyle(t).paddingBottom)||0):void 0;k(q)},_=new ResizeObserver(R),C=()=>{_.disconnect(),_.observe(t),Array.from(t.children).forEach(g=>_.observe(g)),R()},L=new MutationObserver(C);return L.observe(t,{childList:!0,subtree:!0,characterData:!0}),C(),()=>{_.disconnect(),L.disconnect()}},[e,o,w]);const x=H(n,l.list,h==="masonry"?l.masonry:v>1&&l.columns,!!o&&l.scrollable,w&&l.overflowing,m&&l.horizontal,s&&l.compact,b&&l.sized),z={...S,"--list-columns":v,"--list-column-width":b,"--list-max-height":o&&a!=null?`${a}px`:void 0},E=B?u.jsx("ol",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)}):u.jsx("ul",{className:x,ref:t=>{y.current=t,M(p,t)},style:z,...d,tabIndex:d.tabIndex??(o&&a!=null?0:void 0),"data-component":"list",children:F(e)});return c==null?E:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:l.controls,"data-component":"list",children:c}),E]})}exports.List=Q;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,85 +1,89 @@
1
- import { jsx as g, jsxs as V, Fragment as j } from "react/jsx-runtime";
2
- import { t as A } from "../../classix-DG18itHa.js";
3
- import i, { useRef as I, useState as T, useLayoutEffect as D } from "react";
4
- import '../../assets/index51.css';function $(t) {
1
+ import { jsx as b, jsxs as j, Fragment as A } from "react/jsx-runtime";
2
+ import I from "classix";
3
+ import i, { useRef as T, useState as D, useLayoutEffect as $ } from "react";
4
+ import '../../assets/index52.css';function q(t) {
5
5
  return i.isValidElement(t) && t.type === i.Fragment;
6
6
  }
7
- function M(t, o = []) {
7
+ function O(t, n = []) {
8
8
  return i.Children.forEach(t, (r) => {
9
- $(r) ? M(r.props.children, o) : o.push(r);
10
- }), o;
9
+ q(r) ? O(r.props.children, n) : n.push(r);
10
+ }), n;
11
11
  }
12
- function z(t, {
13
- wrapper: o = "li"
12
+ function B(t, {
13
+ wrapper: n = "li"
14
14
  } = {}) {
15
- return M(t).filter((n) => n !== null).map((n, a) => {
16
- if (i.isValidElement(n) && n.type === o)
17
- return n;
18
- const u = i.isValidElement(n) && n.key != null ? n.key : a;
19
- return i.createElement(o, {
20
- key: u
21
- }, n);
15
+ return O(t).filter((o) => o !== null).map((o, c) => {
16
+ if (i.isValidElement(o) && o.type === n)
17
+ return o;
18
+ const u = i.isValidElement(o) && o.key != null ? o.key : c;
19
+ return i.createElement(n, {
20
+ key: u,
21
+ "data-component": "wrapchildren"
22
+ }, o);
22
23
  });
23
24
  }
24
- const q = "_controls_bp7if_3", G = "_horizontal_bp7if_8", J = "_list_bp7if_19", K = "_columns_bp7if_59", P = "_masonry_bp7if_69", Q = "_scrollable_bp7if_79", U = "_overflowing_bp7if_86", W = "_compact_bp7if_111", l = {
25
- controls: q,
26
- horizontal: G,
27
- list: J,
28
- columns: K,
29
- masonry: P,
30
- scrollable: Q,
31
- overflowing: U,
32
- compact: W
33
- }, B = (t, o) => {
34
- typeof t == "function" ? t(o) : t && (t.current = o);
25
+ const G = "_controls_uue68_1", J = "_horizontal_uue68_9", K = "_list_uue68_20", P = "_columns_uue68_61", Q = "_masonry_uue68_71", U = "_scrollable_uue68_81", X = "_overflowing_uue68_88", Y = "_sized_uue68_111", Z = "_compact_uue68_123", l = {
26
+ controls: G,
27
+ horizontal: J,
28
+ list: K,
29
+ columns: P,
30
+ masonry: Q,
31
+ scrollable: U,
32
+ overflowing: X,
33
+ sized: Y,
34
+ compact: Z
35
+ }, M = (t, n) => {
36
+ typeof t == "function" ? t(n) : t && (t.current = n);
35
37
  };
36
- function tt({
38
+ function nt({
37
39
  children: t,
38
- className: o,
40
+ className: n,
39
41
  columns: r = 1,
40
- compact: v = !1,
41
- controls: n,
42
- horizontal: a,
43
- layout: u = "grid",
44
- maxVisibleItems: f,
45
- ordered: O,
46
- ref: h,
47
- style: k,
48
- ...m
42
+ columnWidth: g,
43
+ compact: o = !1,
44
+ controls: c,
45
+ horizontal: u,
46
+ layout: h = "grid",
47
+ maxVisibleItems: m,
48
+ ordered: k,
49
+ ref: y,
50
+ style: H,
51
+ ...f
49
52
  }) {
50
- const p = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1, _ = I(null), [c, H] = T(), s = u === "grid" && p === 1 && !a && f != null && Number.isFinite(f) && f >= 1 ? Math.floor(f) : void 0, y = !!s && c != null;
51
- D(() => {
52
- const e = _.current;
53
+ const p = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1, v = T(null), [a, S] = D(), s = h === "grid" && p === 1 && !u && m != null && Number.isFinite(m) && m >= 1 ? Math.floor(m) : void 0, w = !!s && a != null;
54
+ $(() => {
55
+ const e = v.current;
53
56
  if (!e || !s) return;
54
57
  const C = () => {
55
- const d = Array.from(e.children).filter((L) => L instanceof HTMLElement && getComputedStyle(L).display !== "none"), F = d[s - 1], S = d.length > s && F ? F.getBoundingClientRect().bottom - e.getBoundingClientRect().top + e.scrollTop + (parseFloat(getComputedStyle(e).paddingBottom) || 0) : void 0;
56
- H(S);
57
- }, b = new ResizeObserver(C), N = () => {
58
- b.disconnect(), b.observe(e), Array.from(e.children).forEach((d) => b.observe(d)), C();
58
+ const _ = Array.from(e.children).filter((L) => L instanceof HTMLElement && getComputedStyle(L).display !== "none"), F = _[s - 1], V = _.length > s && F ? F.getBoundingClientRect().bottom - e.getBoundingClientRect().top + e.scrollTop + (parseFloat(getComputedStyle(e).paddingBottom) || 0) : void 0;
59
+ S(V);
60
+ }, d = new ResizeObserver(C), N = () => {
61
+ d.disconnect(), d.observe(e), Array.from(e.children).forEach((_) => d.observe(_)), C();
59
62
  }, R = new MutationObserver(N);
60
63
  return R.observe(e, {
61
64
  childList: !0,
62
65
  subtree: !0,
63
66
  characterData: !0
64
67
  }), N(), () => {
65
- b.disconnect(), R.disconnect();
68
+ d.disconnect(), R.disconnect();
66
69
  };
67
- }, [t, s, y]);
68
- const E = A(o, l.list, u === "masonry" ? l.masonry : p > 1 && l.columns, !!s && l.scrollable, y && l.overflowing, a && l.horizontal, v && l.compact), w = {
69
- ...k,
70
+ }, [t, s, w]);
71
+ const z = I(n, l.list, h === "masonry" ? l.masonry : p > 1 && l.columns, !!s && l.scrollable, w && l.overflowing, u && l.horizontal, o && l.compact, g && l.sized), E = {
72
+ ...H,
70
73
  "--list-columns": p,
71
- "--list-max-height": s && c != null ? `${c}px` : void 0
72
- }, x = O ? /* @__PURE__ */ g("ol", { className: E, ref: (e) => {
73
- _.current = e, B(h, e);
74
- }, style: w, ...m, tabIndex: m.tabIndex ?? (s && c != null ? 0 : void 0), children: z(t) }) : /* @__PURE__ */ g("ul", { className: E, ref: (e) => {
75
- _.current = e, B(h, e);
76
- }, style: w, ...m, tabIndex: m.tabIndex ?? (s && c != null ? 0 : void 0), children: z(t) });
77
- return n == null ? x : /* @__PURE__ */ V(j, { children: [
78
- /* @__PURE__ */ g("div", { className: l.controls, children: n }),
74
+ "--list-column-width": g,
75
+ "--list-max-height": s && a != null ? `${a}px` : void 0
76
+ }, x = k ? /* @__PURE__ */ b("ol", { className: z, ref: (e) => {
77
+ v.current = e, M(y, e);
78
+ }, style: E, ...f, tabIndex: f.tabIndex ?? (s && a != null ? 0 : void 0), "data-component": "list", children: B(t) }) : /* @__PURE__ */ b("ul", { className: z, ref: (e) => {
79
+ v.current = e, M(y, e);
80
+ }, style: E, ...f, tabIndex: f.tabIndex ?? (s && a != null ? 0 : void 0), "data-component": "list", children: B(t) });
81
+ return c == null ? x : /* @__PURE__ */ j(A, { children: [
82
+ /* @__PURE__ */ b("div", { className: l.controls, "data-component": "list", children: c }),
79
83
  x
80
84
  ] });
81
85
  }
82
86
  export {
83
- tt as List
87
+ nt as List
84
88
  };
85
89
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index52.css');const l=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),o="_loading_107mr_23",m="_spin_107mr_1",r="_small_107mr_40",c="_large_107mr_46",_="_ping_107mr_52",d="_sticky_107mr_78",s={loading:o,default:"_default_107mr_29",spin:m,small:r,large:c,ping:_,sticky:d},g={large:s.large,medium:s.medium,small:s.small},u=({variant:a="default",size:e="medium",sticky:i=!1,...t})=>l.jsx("div",{className:n.t(s.loading,i&&s.sticky),"data-component":"loading",children:l.jsx("span",{className:n.t(s.loading,s[a],g[e]),...t})});exports.Loading=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index53.css');const n=require("react/jsx-runtime"),l=require("classix"),o="_loading_107mr_23",c="_spin_107mr_1",m="_small_107mr_40",r="_large_107mr_46",_="_ping_107mr_52",d="_sticky_107mr_78",s={loading:o,default:"_default_107mr_29",spin:c,small:m,large:r,ping:_,sticky:d},g={large:s.large,medium:s.medium,small:s.small},u=({variant:a="default",size:e="medium",sticky:i=!1,...t})=>n.jsx("div",{className:l.cx(s.loading,i&&s.sticky),"data-component":"loading",children:n.jsx("span",{className:l.cx(s.loading,s[a],g[e]),...t})});exports.Loading=u;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { t as a } from "../../classix-DG18itHa.js";
3
- import '../../assets/index52.css';const o = "_loading_107mr_23", _ = "_spin_107mr_1", e = "_small_107mr_40", r = "_large_107mr_46", c = "_ping_107mr_52", d = "_sticky_107mr_78", s = {
4
- loading: o,
2
+ import { cx as a } from "classix";
3
+ import '../../assets/index53.css';const t = "_loading_107mr_23", _ = "_spin_107mr_1", e = "_small_107mr_40", r = "_large_107mr_46", c = "_ping_107mr_52", d = "_sticky_107mr_78", s = {
4
+ loading: t,
5
5
  default: "_default_107mr_29",
6
6
  spin: _,
7
7
  small: e,
@@ -16,8 +16,8 @@ import '../../assets/index52.css';const o = "_loading_107mr_23", _ = "_spin_107m
16
16
  variant: n = "default",
17
17
  size: i = "medium",
18
18
  sticky: m = !1,
19
- ...t
20
- }) => /* @__PURE__ */ l("div", { className: a(s.loading, m && s.sticky), "data-component": "loading", children: /* @__PURE__ */ l("span", { className: a(s.loading, s[n], g[i]), ...t }) });
19
+ ...o
20
+ }) => /* @__PURE__ */ l("div", { className: a(s.loading, m && s.sticky), "data-component": "loading", children: /* @__PURE__ */ l("span", { className: a(s.loading, s[n], g[i]), ...o }) });
21
21
  export {
22
22
  f as Loading
23
23
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-fGpFDJTo.cjs");function v(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const D=e=>v(e).map(n=>({button:r.jsxs(j.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(M.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),h=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const d=D(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:d,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u,isPositioned:x})=>r.jsx(i.MenuActionList,{actions:d,initialFocus:u,readyToFocus:x,menuAccessibleLabel:a,onSelect:c=>{var t;(t=c.onSelect)==null||t.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),j=require("../button/index.cjs"),M=require("../icon/index.cjs"),i=require("../../menu-popover-bqblnK6P.cjs");function v(e){return[...e].sort((n,a)=>+!!n.isDanger-+!!a.isDanger)}const D=e=>v(e).map(n=>({button:r.jsxs(j.Button,{"aria-label":n.accessibleLabel,disabled:n.disabled,children:[n.icon&&r.jsx(M.Icon,{gap:"right",name:n.icon,size:"small"}),r.jsx("span",{children:n.label})]}),id:n.id,isActive:n.isActive,isDanger:n.isDanger,value:n})),h=({inline:e=!1,items:n,menuAccessibleLabel:a="Menu",onItemSelect:s,triggerAccessibleLabel:l="Open menu",triggerIcon:p="DotsThreeVertical",triggerLabel:b,variant:g="popover"})=>{const d=D(n);return g==="simple"?r.jsx(i.MenuActionList,{actions:d,menuAccessibleLabel:a,onSelect:o=>{var u;(u=o.onSelect)==null||u.call(o),s==null||s(o)},"data-component":"menu"}):r.jsx(i.MenuPopover,{inline:e,triggerAccessibleLabel:l,triggerIcon:p,triggerLabel:b,"data-component":"menu",children:({close:o,initialFocus:u,isPositioned:x})=>r.jsx(i.MenuActionList,{actions:d,initialFocus:u,readyToFocus:x,menuAccessibleLabel:a,onSelect:c=>{var t;(t=c.onSelect)==null||t.call(c),s==null||s(c),o()},usesMenuSemantics:!0})})};exports.Menu=h;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as M } from "react/jsx-runtime";
2
2
  import { Button as h } from "../button/index.js";
3
3
  import { Icon as v } from "../icon/index.js";
4
- import { M as l, a as t } from "../../menu-popover-BV7nUXlb.js";
4
+ import { M as l, a as t } from "../../menu-popover-Ceb_9V67.js";
5
5
  function x(o) {
6
6
  return [...o].sort((n, u) => +!!n.isDanger - +!!u.isDanger);
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index16.css');const e=require("react/jsx-runtime"),j=require("../../classix-5H4IWnMA.cjs"),h=require("../avatar/index.cjs"),N=require("../icon/index.cjs"),w="_attachments_1crfp_1",y="_footer_1crfp_27",S="_message_1crfp_11",b="_timestamp_1crfp_147",q="_actions_1crfp_152",I="_preview_1crfp_164",s={attachments:w,"message-group":"_message-group_1crfp_11",footer:y,message:S,timestamp:b,actions:q,preview:I},M=({actions:i,appearance:m="default",attachments:o,author:a,authorColor:l,authorImageUrl:d,authorLink:_,authorRole:p,content:g,iconName:f="Info",id:u,preview:v,timestamp:r,timestampText:x,type:t="default"})=>{const c=r?new Date(r):void 0,n=c?e.jsx("time",{className:s.timestamp,dateTime:c.toISOString(),children:x??c.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[a&&e.jsx(h.Avatar,{accessibleLabel:a,color:l,imageUrl:d,link:_,name:a,role:p}),t==="system"&&n,e.jsxs("div",{className:j.t(s.message,v&&s.preview),"data-appearance":m,"data-id":u,"data-type":t,children:[t=="system"&&e.jsx(N.Icon,{gap:"right",name:f,size:"tiny"}),g]}),o&&e.jsx("div",{className:s.attachments,children:o}),t!=="system"&&(i?e.jsxs("div",{className:s.footer,children:[n,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:i})]}):n)]})};exports.Message=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index17.css');const e=require("react/jsx-runtime"),j=require("classix"),h=require("../avatar/index.cjs"),N=require("../icon/index.cjs"),w="_attachments_1crfp_1",y="_footer_1crfp_27",S="_message_1crfp_11",b="_timestamp_1crfp_147",q="_actions_1crfp_152",I="_preview_1crfp_164",s={attachments:w,"message-group":"_message-group_1crfp_11",footer:y,message:S,timestamp:b,actions:q,preview:I},M=({actions:o,appearance:m="default",attachments:i,author:a,authorColor:l,authorImageUrl:d,authorLink:_,authorRole:p,content:g,iconName:f="Info",id:u,preview:v,timestamp:r,timestampText:x,type:t="default"})=>{const c=r?new Date(r):void 0,n=c?e.jsx("time",{className:s.timestamp,dateTime:c.toISOString(),children:x??c.toLocaleString()}):null;return e.jsxs("div",{className:s["message-group"],"data-message-type":t,"data-component":"message",children:[a&&e.jsx(h.Avatar,{accessibleLabel:a,color:l,imageUrl:d,link:_,name:a,role:p}),t==="system"&&n,e.jsxs("div",{className:j(s.message,v&&s.preview),"data-appearance":m,"data-id":u,"data-type":t,children:[t=="system"&&e.jsx(N.Icon,{gap:"right",name:f,size:"tiny"}),g]}),i&&e.jsx("div",{className:s.attachments,children:i}),t!=="system"&&(o?e.jsxs("div",{className:s.footer,children:[n,e.jsx("div",{className:s.actions,"data-message-actions":!0,children:o})]}):n)]})};exports.Message=M;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,8 @@
1
1
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
2
- import { t as w } from "../../classix-DG18itHa.js";
2
+ import w from "classix";
3
3
  import { Avatar as x } from "../avatar/index.js";
4
4
  import { Icon as y } from "../icon/index.js";
5
- import '../../assets/index16.css';const I = "_attachments_1crfp_1", S = "_footer_1crfp_27", b = "_message_1crfp_11", j = "_timestamp_1crfp_147", L = "_actions_1crfp_152", k = "_preview_1crfp_164", e = {
5
+ import '../../assets/index17.css';const I = "_attachments_1crfp_1", S = "_footer_1crfp_27", b = "_message_1crfp_11", j = "_timestamp_1crfp_147", L = "_actions_1crfp_152", k = "_preview_1crfp_164", e = {
6
6
  attachments: I,
7
7
  "message-group": "_message-group_1crfp_11",
8
8
  footer: S,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const n=require("react/jsx-runtime"),D=require("../../classix-5H4IWnMA.cjs"),r=require("react"),G=require("../editor/index.cjs"),I=require("../list/index.cjs"),J=require("../tooltip/index.cjs"),K=require("../message/index.cjs"),Q="_messages_6nen5_1",V="_fill_6nen5_20",j={messages:Q,fill:V},X=({fill:M=!1,files:u,handleUpload:y,inlineImages:c,maxEditorRows:Y=5,message:d="",messages:l,minEditorRows:b=1,onChange:H,onFilesChange:a,onInlineImagesChange:B,onSubmit:N,placeholder:O,sending:m,submitLabel:P="Send message",tooltipLabel:f})=>{var L;const v=r.useRef(null),o=r.useRef(!0),h=r.useRef(!1),[U,W]=r.useState([]),p=u??U,g=(L=l[l.length-1])==null?void 0:L.id,k=d.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim()==="";return r.useLayoutEffect(()=>{var q;const e=(q=v.current)==null?void 0:q.querySelector("[data-message-list]");if(!e||g===void 0)return;const z=e.scrollHeight-e.scrollTop-e.clientHeight<450,_=!h.current||z;o.current=_,h.current=!0;const A=window.setTimeout(()=>{o.current=!1},5e3),E=()=>{e.scrollTop=e.scrollHeight};_&&E();const T=t=>{o.current&&t.target instanceof HTMLImageElement&&E()},x=t=>{t.deltaY<0&&(o.current=!1)};let i;const w=t=>{var s;i=(s=t.touches[0])==null?void 0:s.clientY},R=t=>{var S;const s=(S=t.touches[0])==null?void 0:S.clientY;s!==void 0&&i!==void 0&&s>i&&(o.current=!1),i=s};return e.addEventListener("load",T,!0),e.addEventListener("wheel",x,{passive:!0}),e.addEventListener("touchstart",w,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),()=>{window.clearTimeout(A),e.removeEventListener("load",T,!0),e.removeEventListener("wheel",x),e.removeEventListener("touchstart",w),e.removeEventListener("touchmove",R)}},[g]),n.jsxs("div",{className:D.t(j.messages,M&&j.fill),"data-component":"messages",ref:v,children:[n.jsx(I.List,{"data-message-list":!0,children:l.map(e=>n.jsx(K.Message,{...e},e.id))}),f&&n.jsx(J.Tooltip,{variant:"static",children:f}),n.jsx(G.Editor,{autofocus:!0,content:d,disabled:m||k&&p.length===0&&!(c!=null&&c.length),files:p,inlineImages:c,isSubmitting:m,maxRows:Y,minRows:b,onChange:H,onFilesChange:e=>{u===void 0&&W(e),a==null||a(e)},onInlineImagesChange:B,onSubmit:N,onUpload:y,placeholder:O,submitLabel:P})]})};exports.Messages=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index15.css');const n=require("react/jsx-runtime"),D=require("classix"),r=require("react"),G=require("../editor/index.cjs"),I=require("../list/index.cjs"),J=require("../tooltip/index.cjs"),K=require("../message/index.cjs"),Q="_messages_6nen5_1",V="_fill_6nen5_20",j={messages:Q,fill:V},X=({fill:M=!1,files:u,handleUpload:y,inlineImages:c,maxEditorRows:Y=5,message:d="",messages:l,minEditorRows:b=1,onChange:H,onFilesChange:a,onInlineImagesChange:B,onSubmit:N,placeholder:O,sending:m,submitLabel:P="Send message",tooltipLabel:f})=>{var L;const v=r.useRef(null),o=r.useRef(!0),h=r.useRef(!1),[U,W]=r.useState([]),p=u??U,g=(L=l[l.length-1])==null?void 0:L.id,k=d.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").trim()==="";return r.useLayoutEffect(()=>{var q;const e=(q=v.current)==null?void 0:q.querySelector("[data-message-list]");if(!e||g===void 0)return;const z=e.scrollHeight-e.scrollTop-e.clientHeight<450,_=!h.current||z;o.current=_,h.current=!0;const A=window.setTimeout(()=>{o.current=!1},5e3),E=()=>{e.scrollTop=e.scrollHeight};_&&E();const T=t=>{o.current&&t.target instanceof HTMLImageElement&&E()},x=t=>{t.deltaY<0&&(o.current=!1)};let i;const w=t=>{var s;i=(s=t.touches[0])==null?void 0:s.clientY},R=t=>{var S;const s=(S=t.touches[0])==null?void 0:S.clientY;s!==void 0&&i!==void 0&&s>i&&(o.current=!1),i=s};return e.addEventListener("load",T,!0),e.addEventListener("wheel",x,{passive:!0}),e.addEventListener("touchstart",w,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),()=>{window.clearTimeout(A),e.removeEventListener("load",T,!0),e.removeEventListener("wheel",x),e.removeEventListener("touchstart",w),e.removeEventListener("touchmove",R)}},[g]),n.jsxs("div",{className:D(j.messages,M&&j.fill),ref:v,"data-component":"messages",children:[n.jsx(I.List,{"data-message-list":!0,children:l.map(e=>n.jsx(K.Message,{...e},e.id))}),f&&n.jsx(J.Tooltip,{variant:"static",children:f}),n.jsx(G.Editor,{autofocus:!0,content:d,disabled:m||k&&p.length===0&&!(c!=null&&c.length),files:p,inlineImages:c,isSubmitting:m,maxRows:Y,minRows:b,onChange:H,onFilesChange:e=>{u===void 0&&W(e),a==null||a(e)},onInlineImagesChange:B,onSubmit:N,onUpload:y,placeholder:O,submitLabel:P})]})};exports.Messages=X;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,17 +1,17 @@
1
1
  import { jsxs as I, jsx as c } from "react/jsx-runtime";
2
- import { t as J } from "../../classix-DG18itHa.js";
2
+ import J from "classix";
3
3
  import { useRef as i, useState as K, useLayoutEffect as O } from "react";
4
4
  import { Editor as P } from "../editor/index.js";
5
5
  import { List as Q } from "../list/index.js";
6
6
  import { Tooltip as V } from "../tooltip/index.js";
7
7
  import { Message as X } from "../message/index.js";
8
- import '../../assets/index14.css';const Z = "_messages_6nen5_1", $ = "_fill_6nen5_20", y = {
8
+ import '../../assets/index15.css';const Z = "_messages_6nen5_1", $ = "_fill_6nen5_20", x = {
9
9
  messages: Z,
10
10
  fill: $
11
11
  }, ne = ({
12
- fill: H = !1,
12
+ fill: y = !1,
13
13
  files: u,
14
- handleUpload: x,
14
+ handleUpload: H,
15
15
  inlineImages: r,
16
16
  maxEditorRows: B = 5,
17
17
  message: d = "",
@@ -63,12 +63,12 @@ import '../../assets/index14.css';const Z = "_messages_6nen5_1", $ = "_fill_6nen
63
63
  }), () => {
64
64
  window.clearTimeout(G), e.removeEventListener("load", w, !0), e.removeEventListener("wheel", R), e.removeEventListener("touchstart", S), e.removeEventListener("touchmove", _);
65
65
  };
66
- }, [L]), /* @__PURE__ */ I("div", { className: J(y.messages, H && y.fill), "data-component": "messages", ref: h, children: [
66
+ }, [L]), /* @__PURE__ */ I("div", { className: J(x.messages, y && x.fill), ref: h, "data-component": "messages", children: [
67
67
  /* @__PURE__ */ c(Q, { "data-message-list": !0, children: l.map((e) => /* @__PURE__ */ c(X, { ...e }, e.id)) }),
68
68
  f && /* @__PURE__ */ c(V, { variant: "static", children: f }),
69
69
  /* @__PURE__ */ c(P, { autofocus: !0, content: d, disabled: m || A && p.length === 0 && !(r != null && r.length), files: p, inlineImages: r, isSubmitting: m, maxRows: B, minRows: b, onChange: j, onFilesChange: (e) => {
70
70
  u === void 0 && z(e), a == null || a(e);
71
- }, onInlineImagesChange: q, onSubmit: N, onUpload: x, placeholder: U, submitLabel: W })
71
+ }, onInlineImagesChange: q, onSubmit: N, onUpload: H, placeholder: U, submitLabel: W })
72
72
  ] });
73
73
  };
74
74
  export {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const i=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),u=require("react"),b=require("../../icons-B3hIY9Bm.cjs"),m="_nav_1lfxs_3",v="_label_1lfxs_9",p="_item_1lfxs_17",x="_actions_1lfxs_36",g="_highlighted_1lfxs_60",N="_horizontal_1lfxs_64",j="_sidebar_1lfxs_74",w="_tabs_1lfxs_130",q="_pills_1lfxs_150",t={nav:m,label:v,item:p,actions:x,highlighted:g,horizontal:N,sidebar:j,tabs:w,pills:q},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...s})=>i.jsx("span",{className:c.t(a,t.label),...s,"data-component":"navlabel"}),S=({actions:a,children:s,className:o,highlighted:n=!1,...e})=>i.jsxs("div",{className:c.t(t.item,n&&t.highlighted,o),"data-nav-item":!0,...e,"data-component":"navitem",children:[s,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:s,className:o,horizontal:n=!1,variant:e="default",...d})=>{const[_,r]=u.useState(!1),f={"--icon-svg":b.iconSVG("CaretDown")};return i.jsx("nav",{className:c.t(o,n&&t.horizontal,t.nav,y[e]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(e!=="pills"||window.innerWidth>960)return;const h=l.relatedTarget;l.currentTarget.contains(h)||r(!1)},onClick:()=>{e!=="pills"||window.innerWidth>960||r(l=>!l)},style:f,...d,"data-component":"nav",children:s})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const i=require("react/jsx-runtime"),r=require("classix"),b=require("react"),m=require("../../icons-BIdcCH-v.cjs"),v="_nav_1jlcq_3",p="_label_1jlcq_9",j="_item_1jlcq_17",q="_actions_1jlcq_36",g="_highlighted_1jlcq_60",f="_horizontal_1jlcq_64",N="_sidebar_1jlcq_74",w="_stacked_1jlcq_124",x="_tabs_1jlcq_141",k="_pills_1jlcq_161",t={nav:v,label:p,item:j,actions:q,highlighted:g,horizontal:f,sidebar:N,stacked:w,tabs:x,pills:k},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>i.jsx("span",{className:r(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:c,highlighted:n=!1,layout:s="row",...o})=>i.jsxs("div",{className:r(t.item,n&&t.highlighted,s==="stack"&&t.stacked,c),"data-nav-item":!0,...o,"data-component":"navitem",children:[e,a&&i.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:c,horizontal:n=!1,variant:s="default",...o})=>{const[_,d]=b.useState(!1),h={"--icon-svg":m.iconSVG("CaretDown")};return i.jsx("nav",{className:r(c,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":_?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:l=>{if(s!=="pills"||window.innerWidth>960)return;const u=l.relatedTarget;l.currentTarget.contains(u)||d(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||d(l=>!l)},style:h,...o,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
2
2
  //# sourceMappingURL=index.cjs.map