@tipp/ui 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  2. package/dist/alert-dialog-D1kwc80j.js +143 -0
  3. package/dist/as-child.prop-Dmk_dqBI.js +4 -0
  4. package/dist/assets/index.css +1 -0
  5. package/dist/assets/theme-provider.css +1 -0
  6. package/dist/atoms/alert-dialog.d.ts +2 -0
  7. package/dist/atoms/alert-dialog.d.ts.map +1 -0
  8. package/dist/atoms/alert-dialog.js +4 -0
  9. package/dist/atoms/aspect-ratio.d.ts +2 -0
  10. package/dist/atoms/aspect-ratio.d.ts.map +1 -0
  11. package/dist/atoms/aspect-ratio.js +4 -0
  12. package/dist/atoms/avatar.d.ts +2 -0
  13. package/dist/atoms/avatar.d.ts.map +1 -0
  14. package/dist/atoms/avatar.js +4 -0
  15. package/dist/atoms/badge.d.ts +2 -0
  16. package/dist/atoms/badge.d.ts.map +1 -0
  17. package/dist/atoms/badge.js +4 -0
  18. package/dist/atoms/blockquote.d.ts +2 -0
  19. package/dist/atoms/blockquote.d.ts.map +1 -0
  20. package/dist/atoms/blockquote.js +4 -0
  21. package/dist/atoms/box.d.ts +2 -0
  22. package/dist/atoms/box.d.ts.map +1 -0
  23. package/dist/atoms/box.js +4 -0
  24. package/dist/atoms/button.d.ts +2 -0
  25. package/dist/atoms/button.d.ts.map +1 -0
  26. package/dist/atoms/button.js +4 -0
  27. package/dist/atoms/call-out.d.ts +2 -0
  28. package/dist/atoms/call-out.d.ts.map +1 -0
  29. package/dist/atoms/call-out.js +4 -0
  30. package/dist/atoms/card.d.ts +2 -0
  31. package/dist/atoms/card.d.ts.map +1 -0
  32. package/dist/atoms/card.js +4 -0
  33. package/dist/atoms/check-box-card.d.ts +2 -0
  34. package/dist/atoms/check-box-card.d.ts.map +1 -0
  35. package/dist/atoms/check-box-card.js +4 -0
  36. package/dist/atoms/check-box-group.d.ts +2 -0
  37. package/dist/atoms/check-box-group.d.ts.map +1 -0
  38. package/dist/atoms/check-box-group.js +4 -0
  39. package/dist/atoms/check-box.d.ts +2 -0
  40. package/dist/atoms/check-box.d.ts.map +1 -0
  41. package/dist/atoms/check-box.js +4 -0
  42. package/dist/atoms/code.d.ts +2 -0
  43. package/dist/atoms/code.d.ts.map +1 -0
  44. package/dist/atoms/code.js +4 -0
  45. package/dist/atoms/container.d.ts +2 -0
  46. package/dist/atoms/container.d.ts.map +1 -0
  47. package/dist/atoms/container.js +4 -0
  48. package/dist/atoms/data-list.d.ts +2 -0
  49. package/dist/atoms/data-list.d.ts.map +1 -0
  50. package/dist/atoms/data-list.js +4 -0
  51. package/dist/atoms/date-picker/index.d.ts +7 -0
  52. package/dist/atoms/date-picker/index.d.ts.map +1 -0
  53. package/dist/atoms/date-picker/index.js +6252 -0
  54. package/dist/atoms/dialog.d.ts +2 -0
  55. package/dist/atoms/dialog.d.ts.map +1 -0
  56. package/dist/atoms/dialog.js +4 -0
  57. package/dist/atoms/dropdown-menu.d.ts +2 -0
  58. package/dist/atoms/dropdown-menu.d.ts.map +1 -0
  59. package/dist/atoms/dropdown-menu.js +4 -0
  60. package/dist/atoms/em.d.ts +2 -0
  61. package/dist/atoms/em.d.ts.map +1 -0
  62. package/dist/atoms/em.js +4 -0
  63. package/dist/atoms/flex.d.ts +2 -0
  64. package/dist/atoms/flex.d.ts.map +1 -0
  65. package/dist/atoms/flex.js +4 -0
  66. package/dist/atoms/grid.d.ts +2 -0
  67. package/dist/atoms/grid.d.ts.map +1 -0
  68. package/dist/atoms/grid.js +4 -0
  69. package/dist/atoms/heading.d.ts +2 -0
  70. package/dist/atoms/heading.d.ts.map +1 -0
  71. package/dist/atoms/heading.js +4 -0
  72. package/dist/atoms/hover-card.d.ts +2 -0
  73. package/dist/atoms/hover-card.d.ts.map +1 -0
  74. package/dist/atoms/hover-card.js +4 -0
  75. package/dist/atoms/icon-button.d.ts +2 -0
  76. package/dist/atoms/icon-button.d.ts.map +1 -0
  77. package/dist/atoms/icon-button.js +4 -0
  78. package/dist/atoms/inset.d.ts +2 -0
  79. package/dist/atoms/inset.d.ts.map +1 -0
  80. package/dist/atoms/inset.js +4 -0
  81. package/dist/atoms/kbd.d.ts +2 -0
  82. package/dist/atoms/kbd.d.ts.map +1 -0
  83. package/dist/atoms/kbd.js +4 -0
  84. package/dist/atoms/link.d.ts +2 -0
  85. package/dist/atoms/link.d.ts.map +1 -0
  86. package/dist/atoms/link.js +4 -0
  87. package/dist/atoms/popover.d.ts +2 -0
  88. package/dist/atoms/popover.d.ts.map +1 -0
  89. package/dist/atoms/popover.js +4 -0
  90. package/dist/atoms/progress.d.ts +2 -0
  91. package/dist/atoms/progress.d.ts.map +1 -0
  92. package/dist/atoms/progress.js +4 -0
  93. package/dist/atoms/quote.d.ts +2 -0
  94. package/dist/atoms/quote.d.ts.map +1 -0
  95. package/dist/atoms/quote.js +4 -0
  96. package/dist/atoms/radio-cards.d.ts +2 -0
  97. package/dist/atoms/radio-cards.d.ts.map +1 -0
  98. package/dist/atoms/radio-cards.js +4 -0
  99. package/dist/atoms/radio-group.d.ts +2 -0
  100. package/dist/atoms/radio-group.d.ts.map +1 -0
  101. package/dist/atoms/radio-group.js +4 -0
  102. package/dist/atoms/radio.d.ts +2 -0
  103. package/dist/atoms/radio.d.ts.map +1 -0
  104. package/dist/atoms/radio.js +4 -0
  105. package/dist/atoms/scroll-area.d.ts +2 -0
  106. package/dist/atoms/scroll-area.d.ts.map +1 -0
  107. package/dist/atoms/scroll-area.js +4 -0
  108. package/dist/atoms/section.d.ts +2 -0
  109. package/dist/atoms/section.d.ts.map +1 -0
  110. package/dist/atoms/section.js +4 -0
  111. package/dist/atoms/segmented-control.d.ts +2 -0
  112. package/dist/atoms/segmented-control.d.ts.map +1 -0
  113. package/dist/atoms/segmented-control.js +4 -0
  114. package/dist/atoms/select.d.ts +2 -0
  115. package/dist/atoms/select.d.ts.map +1 -0
  116. package/dist/atoms/select.js +4 -0
  117. package/dist/atoms/separator.d.ts +2 -0
  118. package/dist/atoms/separator.d.ts.map +1 -0
  119. package/dist/atoms/separator.js +4 -0
  120. package/dist/atoms/skeleton.d.ts +2 -0
  121. package/dist/atoms/skeleton.d.ts.map +1 -0
  122. package/dist/atoms/skeleton.js +4 -0
  123. package/dist/atoms/strong.d.ts +2 -0
  124. package/dist/atoms/strong.d.ts.map +1 -0
  125. package/dist/atoms/strong.js +4 -0
  126. package/dist/atoms/switch.d.ts +2 -0
  127. package/dist/atoms/switch.d.ts.map +1 -0
  128. package/dist/atoms/switch.js +4 -0
  129. package/dist/atoms/tab-nav.d.ts +2 -0
  130. package/dist/atoms/tab-nav.d.ts.map +1 -0
  131. package/dist/atoms/tab-nav.js +4 -0
  132. package/dist/atoms/tabs.d.ts +2 -0
  133. package/dist/atoms/tabs.d.ts.map +1 -0
  134. package/dist/atoms/tabs.js +4 -0
  135. package/dist/atoms/text-area.d.ts +2 -0
  136. package/dist/atoms/text-area.d.ts.map +1 -0
  137. package/dist/atoms/text-area.js +4 -0
  138. package/dist/atoms/text-field.d.ts +2 -0
  139. package/dist/atoms/text-field.d.ts.map +1 -0
  140. package/dist/atoms/text-field.js +4 -0
  141. package/dist/atoms/text.d.ts +2 -0
  142. package/dist/atoms/text.d.ts.map +1 -0
  143. package/dist/atoms/text.js +4 -0
  144. package/dist/atoms/tooltip.d.ts +2 -0
  145. package/dist/atoms/tooltip.d.ts.map +1 -0
  146. package/dist/atoms/tooltip.js +4 -0
  147. package/dist/avatar-CzjF7NU3.js +85 -0
  148. package/dist/badge-CyCKR1Mg.js +17 -0
  149. package/dist/base-button-i6PPsCdc.js +27 -0
  150. package/dist/base-checkbox.props-Bk4tRAY3.js +132 -0
  151. package/dist/base-tab-list.props-hSCtMjn2.js +6 -0
  152. package/dist/blockquote-7gbFi2zf.js +12 -0
  153. package/dist/box-C071drmz.js +15 -0
  154. package/dist/button-DpVTjBrm.js +8 -0
  155. package/dist/callout-K8Sm-FQT.js +31 -0
  156. package/dist/card-BX55hIZ3.js +14 -0
  157. package/dist/chart-BkQy6rli.js +14554 -0
  158. package/dist/charts/chart.d.ts +5 -0
  159. package/dist/charts/chart.d.ts.map +1 -0
  160. package/dist/charts/chart.js +5 -0
  161. package/dist/charts-DLVAfnBm.js +10821 -0
  162. package/dist/checkbox-DhyOlPGH.js +14 -0
  163. package/dist/checkbox-cards-C9ZL84Ml.js +30 -0
  164. package/dist/checkbox-group-CoGGFZk-.js +33 -0
  165. package/dist/checkbox-group.primitive-DuerVc21.js +33 -0
  166. package/dist/code-BJLnPPB0.js +18 -0
  167. package/dist/color.prop-C1QiQO-6.js +7 -0
  168. package/dist/components-MfAfNvnv.js +9496 -0
  169. package/dist/container-DBjG5yxq.js +25 -0
  170. package/dist/customGraphicKeyframeAnimation-BL_3uxsi.js +7247 -0
  171. package/dist/data-list-DXP5-QCf.js +36 -0
  172. package/dist/dialog-BYhSvWm4.js +35 -0
  173. package/dist/dialog.props-DOLpgre6.js +255 -0
  174. package/dist/dropdown-menu-B34afpui.js +870 -0
  175. package/dist/em-CxdNq9zL.js +14 -0
  176. package/dist/extract-props-CujC3IXc.js +36 -0
  177. package/dist/features-Dezrf84n.js +1221 -0
  178. package/dist/flex-BY0BY2TI.js +15 -0
  179. package/dist/flex.props-DNysJgUY.js +9 -0
  180. package/dist/floating-ui.dom-Pi62VK_7.js +1084 -0
  181. package/dist/gap.props-DSJMAfZN.js +4 -0
  182. package/dist/get-subtree-DW8zSv8E.js +10 -0
  183. package/dist/grid-BcK4nkHz.js +24 -0
  184. package/dist/heading-BNO0Ttlj.js +19 -0
  185. package/dist/height.props-COFNk7EY.js +4 -0
  186. package/dist/high-contrast.prop-BGHYAKb9.js +4 -0
  187. package/dist/hover-card-C86JJDjR.js +198 -0
  188. package/dist/icon-button-BiYGmnT9.js +8 -0
  189. package/dist/icon.d.ts +2 -0
  190. package/dist/icon.d.ts.map +1 -0
  191. package/dist/icon.js +11 -0
  192. package/dist/icons-B-Giprot.js +12 -0
  193. package/dist/index--Kmch3aI.js +19069 -0
  194. package/dist/index-BGHne2on.js +66 -0
  195. package/dist/index-BGU-u5wR.js +48 -0
  196. package/dist/index-BLlMKB6v.js +35 -0
  197. package/dist/index-BQ0fI5eo.js +14 -0
  198. package/dist/index-BUzFfodu.js +134 -0
  199. package/dist/index-BZPx6jYI.js +8 -0
  200. package/dist/index-CBWtNqYj.js +218 -0
  201. package/dist/index-CMas7-m1.js +32 -0
  202. package/dist/index-CWqnkG-p.js +67 -0
  203. package/dist/index-Chf_UJBH.js +27 -0
  204. package/dist/index-DIx1pnae.js +14 -0
  205. package/dist/index-DLeNytVF.js +9 -0
  206. package/dist/index-DQu1RzkN.js +41 -0
  207. package/dist/index-DbtrAyPY.js +48 -0
  208. package/dist/index-Dei2uCbS.js +16 -0
  209. package/dist/index-DgaYqXVD.js +178 -0
  210. package/dist/index-DoIe4nVR.js +42 -0
  211. package/dist/index-DxFjXziY.js +32 -0
  212. package/dist/index-J-pu07YR.js +13 -0
  213. package/dist/index-KdR831JA.js +669 -0
  214. package/dist/index-W3PwLn5U.js +531 -0
  215. package/dist/inset-B8urCQ4C.js +18 -0
  216. package/dist/kbd-D56CgGV_.js +14 -0
  217. package/dist/labelGuideHelper-CcngZb4a.js +224 -0
  218. package/dist/labelLayoutHelper-ZwNI-nB_.js +211 -0
  219. package/dist/layout.props-CKENeFj3.js +7 -0
  220. package/dist/link-C49WMJKQ.js +18 -0
  221. package/dist/main.d.ts +53 -0
  222. package/dist/main.d.ts.map +1 -0
  223. package/dist/main.js +113 -0
  224. package/dist/map-prop-values-pmPyYjFd.js +22 -0
  225. package/dist/margin.props-ClY9lUrP.js +4 -0
  226. package/dist/merge-styles-B1pWeU8q.js +68 -0
  227. package/dist/padding.props-DHz7-7K8.js +4 -0
  228. package/dist/popover-pOSzBkqq.js +251 -0
  229. package/dist/progress-WApo2WEO.js +93 -0
  230. package/dist/quote-BSvwdJNj.js +14 -0
  231. package/dist/radio-DAyHCNZG.js +16 -0
  232. package/dist/radio-cards-z3X1kLpc.js +24 -0
  233. package/dist/radio-group-B9V-hq03.js +33 -0
  234. package/dist/radius.prop-CH9lMann.js +5 -0
  235. package/dist/react-icons.esm-D7QiCqNB.js +147 -0
  236. package/dist/renderers-Bb3odh12.js +1250 -0
  237. package/dist/require-react-element-D_SFiikK.js +8 -0
  238. package/dist/scroll-area-eDccU6Jg.js +26 -0
  239. package/dist/section-DMnSE0_D.js +19 -0
  240. package/dist/segmented-control-kJXQrfMF.js +173 -0
  241. package/dist/select-BEBm0Xc8.js +832 -0
  242. package/dist/separator-Ba0Kgvyq.js +13 -0
  243. package/dist/skeleton-CUQFQIjD.js +17 -0
  244. package/dist/strong-ejFErGyG.js +14 -0
  245. package/dist/switch-BhvdoZJT.js +123 -0
  246. package/dist/tab-nav-B-m2dwou.js +608 -0
  247. package/dist/tabs-33tSzanC.js +186 -0
  248. package/dist/text-YN9kC4kc.js +19 -0
  249. package/dist/text-align.prop-BXpq--l6.js +5 -0
  250. package/dist/text-area-DBR9oL6S.js +14 -0
  251. package/dist/text-field-CgtdAE3v.js +43 -0
  252. package/dist/theme/theme-provider.d.ts +10 -0
  253. package/dist/theme/theme-provider.d.ts.map +1 -0
  254. package/dist/theme/theme-provider.js +8 -0
  255. package/dist/theme/use-theme.d.ts +2 -0
  256. package/dist/theme/use-theme.d.ts.map +1 -0
  257. package/dist/theme/use-theme.js +4 -0
  258. package/dist/theme-7Cjo8_Y6.js +795 -0
  259. package/dist/tooltip-jaEtV9Zg.js +14 -0
  260. package/dist/truncate.prop-BeER2hSO.js +5 -0
  261. package/dist/ui-props/index.d.ts +3 -0
  262. package/dist/ui-props/index.d.ts.map +1 -0
  263. package/dist/ui-props/index.js +686 -0
  264. package/dist/weight.prop-DBiHURhF.js +4 -0
  265. package/dist/width.props-BFC_4RNX.js +4 -0
  266. package/package.json +48 -0
@@ -0,0 +1,41 @@
1
+ import * as s from "react";
2
+ import { P as p } from "./index-BLlMKB6v.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ var d = "AspectRatio", m = s.forwardRef(
5
+ (o, i) => {
6
+ const { ratio: r = 1 / 1, style: a, ...e } = o;
7
+ return /* @__PURE__ */ t(
8
+ "div",
9
+ {
10
+ style: {
11
+ // ensures inner element is contained
12
+ position: "relative",
13
+ // ensures padding bottom trick maths works
14
+ width: "100%",
15
+ paddingBottom: `${100 / r}%`
16
+ },
17
+ "data-radix-aspect-ratio-wrapper": "",
18
+ children: /* @__PURE__ */ t(
19
+ p.div,
20
+ {
21
+ ...e,
22
+ ref: i,
23
+ style: {
24
+ ...a,
25
+ // ensures children expand in ratio
26
+ position: "absolute",
27
+ top: 0,
28
+ right: 0,
29
+ bottom: 0,
30
+ left: 0
31
+ }
32
+ }
33
+ )
34
+ }
35
+ );
36
+ }
37
+ );
38
+ m.displayName = d;
39
+ export {
40
+ m as A
41
+ };
@@ -0,0 +1,48 @@
1
+ import n from "react";
2
+ import { c as O } from "./index-CWqnkG-p.js";
3
+ import { u as I } from "./index-DIx1pnae.js";
4
+ import { S as x } from "./index-BGU-u5wR.js";
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ function h(s) {
7
+ const f = s + "CollectionProvider", [A, N] = O(f), [_, m] = A(
8
+ f,
9
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
10
+ ), u = (c) => {
11
+ const { scope: e, children: l } = c, o = n.useRef(null), t = n.useRef(/* @__PURE__ */ new Map()).current;
12
+ return /* @__PURE__ */ a(_, { scope: e, itemMap: t, collectionRef: o, children: l });
13
+ };
14
+ u.displayName = f;
15
+ const d = s + "CollectionSlot", p = n.forwardRef(
16
+ (c, e) => {
17
+ const { scope: l, children: o } = c, t = m(d, l), r = I(e, t.collectionRef);
18
+ return /* @__PURE__ */ a(x, { ref: r, children: o });
19
+ }
20
+ );
21
+ p.displayName = d;
22
+ const C = s + "CollectionItemSlot", R = "data-radix-collection-item", M = n.forwardRef(
23
+ (c, e) => {
24
+ const { scope: l, children: o, ...t } = c, r = n.useRef(null), S = I(e, r), i = m(C, l);
25
+ return n.useEffect(() => (i.itemMap.set(r, { ref: r, ...t }), () => void i.itemMap.delete(r))), /* @__PURE__ */ a(x, { [R]: "", ref: S, children: o });
26
+ }
27
+ );
28
+ M.displayName = C;
29
+ function E(c) {
30
+ const e = m(s + "CollectionConsumer", c);
31
+ return n.useCallback(() => {
32
+ const o = e.collectionRef.current;
33
+ if (!o) return [];
34
+ const t = Array.from(o.querySelectorAll(`[${R}]`));
35
+ return Array.from(e.itemMap.values()).sort(
36
+ (i, T) => t.indexOf(i.ref.current) - t.indexOf(T.ref.current)
37
+ );
38
+ }, [e.collectionRef, e.itemMap]);
39
+ }
40
+ return [
41
+ { Provider: u, Slot: p, ItemSlot: M },
42
+ E,
43
+ N
44
+ ];
45
+ }
46
+ export {
47
+ h as c
48
+ };
@@ -0,0 +1,16 @@
1
+ import * as t from "react";
2
+ var r = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
3
+ };
4
+ function f(u) {
5
+ const e = t.useRef(u);
6
+ return t.useEffect(() => {
7
+ e.current = u;
8
+ }), t.useMemo(() => (...s) => {
9
+ var o;
10
+ return (o = e.current) == null ? void 0 : o.call(e, ...s);
11
+ }, []);
12
+ }
13
+ export {
14
+ r as a,
15
+ f as u
16
+ };
@@ -0,0 +1,178 @@
1
+ import * as s from "react";
2
+ import { c as p } from "./index-DLeNytVF.js";
3
+ import { c as V } from "./index-DbtrAyPY.js";
4
+ import { u as j } from "./index-DIx1pnae.js";
5
+ import { c as z } from "./index-CWqnkG-p.js";
6
+ import { u as q } from "./index-J-pu07YR.js";
7
+ import { P as x } from "./index-BLlMKB6v.js";
8
+ import { u as J } from "./index-Dei2uCbS.js";
9
+ import { u as Q } from "./index-CMas7-m1.js";
10
+ import { u as W } from "./index-BQ0fI5eo.js";
11
+ import { jsx as d } from "react/jsx-runtime";
12
+ var h = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [y, G, Z] = V(b), [$, Fe] = z(
13
+ b,
14
+ [Z]
15
+ ), [ee, oe] = $(b), N = s.forwardRef(
16
+ (e, r) => /* @__PURE__ */ d(y.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(y.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(te, { ...e, ref: r }) }) })
17
+ );
18
+ N.displayName = b;
19
+ var te = s.forwardRef((e, r) => {
20
+ const {
21
+ __scopeRovingFocusGroup: c,
22
+ orientation: o,
23
+ loop: F = !1,
24
+ dir: g,
25
+ currentTabStopId: R,
26
+ defaultCurrentTabStopId: E,
27
+ onCurrentTabStopIdChange: m,
28
+ onEntryFocus: a,
29
+ preventScrollOnEntryFocus: w = !1,
30
+ ...C
31
+ } = e, v = s.useRef(null), I = j(r, v), t = W(g), [f = null, T] = Q({
32
+ prop: R,
33
+ defaultProp: E,
34
+ onChange: m
35
+ }), [u, i] = s.useState(!1), S = J(a), k = G(c), A = s.useRef(!1), [L, P] = s.useState(0);
36
+ return s.useEffect(() => {
37
+ const n = v.current;
38
+ if (n)
39
+ return n.addEventListener(h, S), () => n.removeEventListener(h, S);
40
+ }, [S]), /* @__PURE__ */ d(
41
+ ee,
42
+ {
43
+ scope: c,
44
+ orientation: o,
45
+ dir: t,
46
+ loop: F,
47
+ currentTabStopId: f,
48
+ onItemFocus: s.useCallback(
49
+ (n) => T(n),
50
+ [T]
51
+ ),
52
+ onItemShiftTab: s.useCallback(() => i(!0), []),
53
+ onFocusableItemAdd: s.useCallback(
54
+ () => P((n) => n + 1),
55
+ []
56
+ ),
57
+ onFocusableItemRemove: s.useCallback(
58
+ () => P((n) => n - 1),
59
+ []
60
+ ),
61
+ children: /* @__PURE__ */ d(
62
+ x.div,
63
+ {
64
+ tabIndex: u || L === 0 ? -1 : 0,
65
+ "data-orientation": o,
66
+ ...C,
67
+ ref: I,
68
+ style: { outline: "none", ...e.style },
69
+ onMouseDown: p(e.onMouseDown, () => {
70
+ A.current = !0;
71
+ }),
72
+ onFocus: p(e.onFocus, (n) => {
73
+ const U = !A.current;
74
+ if (n.target === n.currentTarget && U && !u) {
75
+ const D = new CustomEvent(h, X);
76
+ if (n.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
77
+ const _ = k().filter((l) => l.focusable), B = _.find((l) => l.active), Y = _.find((l) => l.id === f), H = [B, Y, ..._].filter(
78
+ Boolean
79
+ ).map((l) => l.ref.current);
80
+ M(H, w);
81
+ }
82
+ }
83
+ A.current = !1;
84
+ }),
85
+ onBlur: p(e.onBlur, () => i(!1))
86
+ }
87
+ )
88
+ }
89
+ );
90
+ }), O = "RovingFocusGroupItem", K = s.forwardRef(
91
+ (e, r) => {
92
+ const {
93
+ __scopeRovingFocusGroup: c,
94
+ focusable: o = !0,
95
+ active: F = !1,
96
+ tabStopId: g,
97
+ ...R
98
+ } = e, E = q(), m = g || E, a = oe(O, c), w = a.currentTabStopId === m, C = G(c), { onFocusableItemAdd: v, onFocusableItemRemove: I } = a;
99
+ return s.useEffect(() => {
100
+ if (o)
101
+ return v(), () => I();
102
+ }, [o, v, I]), /* @__PURE__ */ d(
103
+ y.ItemSlot,
104
+ {
105
+ scope: c,
106
+ id: m,
107
+ focusable: o,
108
+ active: F,
109
+ children: /* @__PURE__ */ d(
110
+ x.span,
111
+ {
112
+ tabIndex: w ? 0 : -1,
113
+ "data-orientation": a.orientation,
114
+ ...R,
115
+ ref: r,
116
+ onMouseDown: p(e.onMouseDown, (t) => {
117
+ o ? a.onItemFocus(m) : t.preventDefault();
118
+ }),
119
+ onFocus: p(e.onFocus, () => a.onItemFocus(m)),
120
+ onKeyDown: p(e.onKeyDown, (t) => {
121
+ if (t.key === "Tab" && t.shiftKey) {
122
+ a.onItemShiftTab();
123
+ return;
124
+ }
125
+ if (t.target !== t.currentTarget) return;
126
+ const f = se(t, a.orientation, a.dir);
127
+ if (f !== void 0) {
128
+ if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
129
+ t.preventDefault();
130
+ let u = C().filter((i) => i.focusable).map((i) => i.ref.current);
131
+ if (f === "last") u.reverse();
132
+ else if (f === "prev" || f === "next") {
133
+ f === "prev" && u.reverse();
134
+ const i = u.indexOf(t.currentTarget);
135
+ u = a.loop ? ce(u, i + 1) : u.slice(i + 1);
136
+ }
137
+ setTimeout(() => M(u));
138
+ }
139
+ })
140
+ }
141
+ )
142
+ }
143
+ );
144
+ }
145
+ );
146
+ K.displayName = O;
147
+ var re = {
148
+ ArrowLeft: "prev",
149
+ ArrowUp: "prev",
150
+ ArrowRight: "next",
151
+ ArrowDown: "next",
152
+ PageUp: "first",
153
+ Home: "first",
154
+ PageDown: "last",
155
+ End: "last"
156
+ };
157
+ function ne(e, r) {
158
+ return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
159
+ }
160
+ function se(e, r, c) {
161
+ const o = ne(e.key, c);
162
+ if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
163
+ return re[o];
164
+ }
165
+ function M(e, r = !1) {
166
+ const c = document.activeElement;
167
+ for (const o of e)
168
+ if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
169
+ }
170
+ function ce(e, r) {
171
+ return e.map((c, o) => e[(r + o) % e.length]);
172
+ }
173
+ var ge = N, Re = K;
174
+ export {
175
+ Re as I,
176
+ ge as R,
177
+ Fe as c
178
+ };
@@ -0,0 +1,42 @@
1
+ import { g as c } from "./_commonjsHelpers-DaMA6jEr.js";
2
+ var a = { exports: {} };
3
+ /*!
4
+ Copyright (c) 2018 Jed Watson.
5
+ Licensed under the MIT License (MIT), see
6
+ http://jedwatson.github.io/classnames
7
+ */
8
+ (function(i) {
9
+ (function() {
10
+ var l = {}.hasOwnProperty;
11
+ function s() {
12
+ for (var n = [], o = 0; o < arguments.length; o++) {
13
+ var t = arguments[o];
14
+ if (t) {
15
+ var e = typeof t;
16
+ if (e === "string" || e === "number")
17
+ n.push(t);
18
+ else if (Array.isArray(t)) {
19
+ if (t.length) {
20
+ var f = s.apply(null, t);
21
+ f && n.push(f);
22
+ }
23
+ } else if (e === "object") {
24
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) {
25
+ n.push(t.toString());
26
+ continue;
27
+ }
28
+ for (var r in t)
29
+ l.call(t, r) && t[r] && n.push(r);
30
+ }
31
+ }
32
+ }
33
+ return n.join(" ");
34
+ }
35
+ i.exports ? (s.default = s, i.exports = s) : window.classNames = s;
36
+ })();
37
+ })(a);
38
+ var p = a.exports;
39
+ const v = /* @__PURE__ */ c(p);
40
+ export {
41
+ v as y
42
+ };
@@ -0,0 +1,32 @@
1
+ import * as e from "react";
2
+ import { P as o } from "./index-BLlMKB6v.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ var d = "VisuallyHidden", a = e.forwardRef(
5
+ (r, i) => /* @__PURE__ */ t(
6
+ o.span,
7
+ {
8
+ ...r,
9
+ ref: i,
10
+ style: {
11
+ // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
12
+ position: "absolute",
13
+ border: 0,
14
+ width: 1,
15
+ height: 1,
16
+ padding: 0,
17
+ margin: -1,
18
+ overflow: "hidden",
19
+ clip: "rect(0, 0, 0, 0)",
20
+ whiteSpace: "nowrap",
21
+ wordWrap: "normal",
22
+ ...r.style
23
+ }
24
+ }
25
+ )
26
+ );
27
+ a.displayName = d;
28
+ var m = a;
29
+ export {
30
+ m as R,
31
+ a as V
32
+ };
@@ -0,0 +1,13 @@
1
+ import * as e from "react";
2
+ import { a as s } from "./index-Dei2uCbS.js";
3
+ var u = e.useId || (() => {
4
+ }), i = 0;
5
+ function n(r) {
6
+ const [t, a] = e.useState(u());
7
+ return s(() => {
8
+ a((o) => o ?? String(i++));
9
+ }, [r]), t ? `radix-${t}` : "";
10
+ }
11
+ export {
12
+ n as u
13
+ };