@bbki.ng/components 2.6.16 → 3.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 (149) hide show
  1. package/dist/Button.d.ts +1 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs +6 -0
  3. package/dist/_virtual/index.mjs +4 -0
  4. package/dist/_virtual/jsx-runtime.mjs +7 -0
  5. package/dist/_virtual/jsx-runtime2.mjs +4 -0
  6. package/dist/_virtual/react-jsx-runtime.development.mjs +4 -0
  7. package/dist/_virtual/react-jsx-runtime.production.min.mjs +4 -0
  8. package/dist/article/Article.d.ts +11 -0
  9. package/dist/article/Article.mjs +43 -0
  10. package/dist/blink-dot/BlinkDot.d.ts +5 -0
  11. package/dist/blink-dot/BlinkDot.mjs +20 -0
  12. package/dist/blur-cover/BlurCover.d.ts +6 -0
  13. package/dist/blur-cover/BlurCover.mjs +28 -0
  14. package/dist/breadcrumb/Breadcrumb.d.ts +9 -0
  15. package/dist/breadcrumb/Breadcrumb.mjs +35 -0
  16. package/dist/button/Button.d.ts +18 -0
  17. package/dist/button/Button.mjs +35 -0
  18. package/dist/canvas/Canvas.d.ts +23 -0
  19. package/dist/canvas/Canvas.mjs +85 -0
  20. package/dist/canvas/useRenderer.d.ts +10 -0
  21. package/dist/canvas/useRenderer.mjs +31 -0
  22. package/dist/context-menu/index.d.ts +27 -0
  23. package/dist/context-menu/index.mjs +131 -0
  24. package/dist/drop-image/DropImage.d.ts +25 -0
  25. package/dist/drop-image/DropImage.mjs +151 -0
  26. package/dist/drop-image/useDropImage.d.ts +19 -0
  27. package/dist/drop-image/useDropImage.mjs +67 -0
  28. package/dist/drop-image/utils.d.ts +2 -0
  29. package/dist/drop-image/utils.mjs +4 -0
  30. package/dist/drop-zone/DropZone.d.ts +9 -0
  31. package/dist/drop-zone/DropZone.mjs +44 -0
  32. package/dist/img/Gallery.d.ts +11 -0
  33. package/dist/img/Gallery.mjs +37 -0
  34. package/dist/img/Img.d.ts +3 -0
  35. package/dist/img/Img.mjs +80 -0
  36. package/dist/img/RandomRowsLayout.d.ts +9 -0
  37. package/dist/img/RandomRowsLayout.mjs +49 -0
  38. package/dist/img/types.d.ts +21 -0
  39. package/dist/img/types.mjs +4 -0
  40. package/dist/img/utils.d.ts +7 -0
  41. package/dist/img/utils.mjs +15 -0
  42. package/dist/index.d.ts +25 -380
  43. package/dist/index.mjs +79 -0
  44. package/dist/input/index.d.ts +3 -0
  45. package/dist/input/index.mjs +17 -0
  46. package/dist/label/index.d.ts +5 -0
  47. package/dist/label/index.mjs +17 -0
  48. package/dist/layout/layout.d.ts +7 -0
  49. package/dist/layout/layout.mjs +27 -0
  50. package/dist/link/Link.d.ts +17 -0
  51. package/dist/link/Link.mjs +83 -0
  52. package/dist/list/list.d.ts +23 -0
  53. package/dist/list/list.mjs +76 -0
  54. package/dist/loading-spiral/LoadingSpiral.d.ts +5 -0
  55. package/dist/loading-spiral/LoadingSpiral.mjs +37 -0
  56. package/dist/loading-spiral/constants.d.ts +6 -0
  57. package/dist/loading-spiral/constants.mjs +61 -0
  58. package/dist/loading-spiral/createOptions.d.ts +17 -0
  59. package/dist/loading-spiral/createOptions.mjs +30 -0
  60. package/dist/loading-spiral/createSettings.d.ts +16 -0
  61. package/dist/loading-spiral/createSettings.mjs +21 -0
  62. package/dist/loading-spiral/useCanvasRef.d.ts +4 -0
  63. package/dist/loading-spiral/utils.d.ts +1 -0
  64. package/dist/logo/Logo.d.ts +6 -0
  65. package/dist/logo/Logo.mjs +36 -0
  66. package/dist/nav/Nav.d.ts +10 -0
  67. package/dist/nav/Nav.mjs +27 -0
  68. package/dist/node_modules/.pnpm/@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  69. package/dist/node_modules/.pnpm/@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +519 -0
  70. package/dist/node_modules/.pnpm/@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +373 -0
  71. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.0.8_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +182 -0
  72. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +108 -0
  73. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +120 -0
  74. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs +9 -0
  75. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-arrow/dist/index.mjs +19 -0
  76. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom_04e7d2b59cf7ec97f40d26a998d7601d/node_modules/@radix-ui/react-collection/dist/index.mjs +60 -0
  77. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +16 -0
  78. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +25 -0
  79. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.1.5_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_1ce4db5e792f73d797e22c043cc3d326/node_modules/@radix-ui/react-context-menu/dist/index.mjs +213 -0
  80. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +88 -0
  81. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +9 -0
  82. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.5_@types_react-dom@18.0.6_@types_react@18.0.15_re_0263a24376d55e4c2bb8fa2f75f1db3c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +136 -0
  83. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +20 -0
  84. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-do_a79d961df31bbecb3b2c94878dbb0724/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +188 -0
  85. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +61 -0
  86. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +18 -0
  87. package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-label/dist/index.mjs +20 -0
  88. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.0.6_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.mjs +657 -0
  89. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.1.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popper/dist/index.mjs +218 -0
  90. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.mjs +14 -0
  91. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.mjs +81 -0
  92. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +44 -0
  93. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +31 -0
  94. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_69cf2e3e4b4e2c2fefdb8ea262543b5e/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +199 -0
  95. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +53 -0
  96. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +48 -0
  97. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +16 -0
  98. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +37 -0
  99. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.3_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +17 -0
  100. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +6 -0
  101. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +37 -0
  102. package/dist/node_modules/.pnpm/aria-hidden@1.2.3/node_modules/aria-hidden/dist/es2015/index.mjs +49 -0
  103. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs +6 -0
  104. package/dist/node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.mjs +40 -0
  105. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +23 -0
  106. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +7 -0
  107. package/dist/node_modules/.pnpm/phenomenon@1.6.0/node_modules/phenomenon/dist/phenomenon.mjs +109 -0
  108. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +61 -0
  109. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +7 -0
  110. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +25 -0
  111. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +17 -0
  112. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +116 -0
  113. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +46 -0
  114. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +16 -0
  115. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +62 -0
  116. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
  117. package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
  118. package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +11 -0
  119. package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +15 -0
  120. package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +30 -0
  121. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +589 -0
  122. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
  123. package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.mjs +8 -0
  124. package/dist/node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.es6.mjs +29 -0
  125. package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +6 -0
  126. package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +26 -0
  127. package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +25 -0
  128. package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
  129. package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +67 -0
  130. package/dist/page/Page.d.ts +28 -0
  131. package/dist/page/Page.mjs +67 -0
  132. package/dist/panel/Panel.d.ts +6 -0
  133. package/dist/panel/Panel.mjs +17 -0
  134. package/dist/pop-confirm/PopConfirm.d.ts +10 -0
  135. package/dist/pop-confirm/PopConfirm.mjs +40 -0
  136. package/dist/skeleton/Seleton.d.ts +23 -0
  137. package/dist/skeleton/Seleton.mjs +69 -0
  138. package/dist/spinner/Spinner.d.ts +7 -0
  139. package/dist/table/Table.d.ts +18 -0
  140. package/dist/table/Table.mjs +34 -0
  141. package/dist/tag/Tag.d.ts +10 -0
  142. package/dist/tag/Tag.mjs +33 -0
  143. package/package.json +22 -13
  144. package/dist/index.cjs +0 -1816
  145. package/dist/index.cjs.map +0 -1
  146. package/dist/index.css +0 -1821
  147. package/dist/index.css.map +0 -1
  148. package/dist/index.js +0 -1738
  149. package/dist/index.js.map +0 -1
@@ -0,0 +1,218 @@
1
+ import H from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
2
+ import { forwardRef as N, useRef as he, useEffect as ue, createElement as m, useState as C } from "react";
3
+ import { useFloating as ge, arrow as ve } from "../../../../../@floating-ui_react-dom@2.0.8_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs";
4
+ import { Root as xe } from "../../../../../@radix-ui_react-arrow@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-arrow/dist/index.mjs";
5
+ import { useComposedRefs as B } from "../../../../../@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs";
6
+ import { createContextScope as Pe } from "../../../../../@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs";
7
+ import { Primitive as F } from "../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs";
8
+ import { useCallbackRef as be } from "../../../../../@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs";
9
+ import { useLayoutEffect as k } from "../../../../../@radix-ui_react-use-layout-effect@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs";
10
+ import { useSize as ye } from "../../../../../@radix-ui_react-use-size@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs";
11
+ import { offset as Ae } from "../../../../../@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs";
12
+ import { shift as _e, flip as Ce, size as Se, hide as Oe, autoUpdate as De, limitShift as Re } from "../../../../../@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs";
13
+ const T = "Popper", [j, et] = Pe(T), [Ee, Z] = j(T), He = (o) => {
14
+ const { __scopePopper: i, children: r } = o, [t, a] = C(null);
15
+ return /* @__PURE__ */ m(Ee, {
16
+ scope: i,
17
+ anchor: t,
18
+ onAnchorChange: a
19
+ }, r);
20
+ }, Ne = "PopperAnchor", We = /* @__PURE__ */ N((o, i) => {
21
+ const { __scopePopper: r, virtualRef: t, ...a } = o, e = Z(Ne, r), n = he(null), s = B(i, n);
22
+ return ue(() => {
23
+ e.onAnchorChange((t == null ? void 0 : t.current) || n.current);
24
+ }), t ? null : /* @__PURE__ */ m(F.div, H({}, a, {
25
+ ref: s
26
+ }));
27
+ }), L = "PopperContent", [ze, Ye] = j(L), Ie = /* @__PURE__ */ N((o, i) => {
28
+ var r, t, a, e, n, s, w, l;
29
+ const { __scopePopper: S, side: d = "bottom", sideOffset: O = 0, align: c = "center", alignOffset: h = 0, arrowPadding: D = 0, avoidCollisions: p = !0, collisionBoundary: u = [], collisionPadding: g = 0, sticky: f = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: q = "optimized", onPlaced: G, ...W } = o, J = Z(L, S), [R, K] = C(null), Q = B(
30
+ i,
31
+ (P) => K(P)
32
+ ), [E, V] = C(null), v = ye(E), ee = (r = v == null ? void 0 : v.width) !== null && r !== void 0 ? r : 0, z = (t = v == null ? void 0 : v.height) !== null && t !== void 0 ? t : 0, te = d + (c !== "center" ? "-" + c : ""), oe = typeof g == "number" ? g : {
33
+ top: 0,
34
+ right: 0,
35
+ bottom: 0,
36
+ left: 0,
37
+ ...g
38
+ }, Y = Array.isArray(u) ? u : [
39
+ u
40
+ ], re = Y.length > 0, b = {
41
+ padding: oe,
42
+ boundary: Y.filter(ke),
43
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
44
+ altBoundary: re
45
+ }, { refs: ae, floatingStyles: I, placement: ne, isPositioned: y, middlewareData: x } = ge({
46
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
47
+ strategy: "fixed",
48
+ placement: te,
49
+ whileElementsMounted: (...P) => De(...P, {
50
+ animationFrame: q === "always"
51
+ }),
52
+ elements: {
53
+ reference: J.anchor
54
+ },
55
+ middleware: [
56
+ Ae({
57
+ mainAxis: O + z,
58
+ alignmentAxis: h
59
+ }),
60
+ p && _e({
61
+ mainAxis: !0,
62
+ crossAxis: !1,
63
+ limiter: f === "partial" ? Re() : void 0,
64
+ ...b
65
+ }),
66
+ p && Ce({
67
+ ...b
68
+ }),
69
+ Se({
70
+ ...b,
71
+ apply: ({ elements: P, rects: M, availableWidth: fe, availableHeight: $e }) => {
72
+ const { width: me, height: we } = M.reference, _ = P.floating.style;
73
+ _.setProperty("--radix-popper-available-width", `${fe}px`), _.setProperty("--radix-popper-available-height", `${$e}px`), _.setProperty("--radix-popper-anchor-width", `${me}px`), _.setProperty("--radix-popper-anchor-height", `${we}px`);
74
+ }
75
+ }),
76
+ E && ve({
77
+ element: E,
78
+ padding: D
79
+ }),
80
+ Be({
81
+ arrowWidth: ee,
82
+ arrowHeight: z
83
+ }),
84
+ $ && Oe({
85
+ strategy: "referenceHidden",
86
+ ...b
87
+ })
88
+ ]
89
+ }), [X, ie] = U(ne), A = be(G);
90
+ k(() => {
91
+ y && (A == null || A());
92
+ }, [
93
+ y,
94
+ A
95
+ ]);
96
+ const de = (a = x.arrow) === null || a === void 0 ? void 0 : a.x, ce = (e = x.arrow) === null || e === void 0 ? void 0 : e.y, se = ((n = x.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, [le, pe] = C();
97
+ return k(() => {
98
+ R && pe(window.getComputedStyle(R).zIndex);
99
+ }, [
100
+ R
101
+ ]), /* @__PURE__ */ m("div", {
102
+ ref: ae.setFloating,
103
+ "data-radix-popper-content-wrapper": "",
104
+ style: {
105
+ ...I,
106
+ transform: y ? I.transform : "translate(0, -200%)",
107
+ // keep off the page when measuring
108
+ minWidth: "max-content",
109
+ zIndex: le,
110
+ "--radix-popper-transform-origin": [
111
+ (s = x.transformOrigin) === null || s === void 0 ? void 0 : s.x,
112
+ (w = x.transformOrigin) === null || w === void 0 ? void 0 : w.y
113
+ ].join(" ")
114
+ },
115
+ dir: o.dir
116
+ }, /* @__PURE__ */ m(ze, {
117
+ scope: S,
118
+ placedSide: X,
119
+ onArrowChange: V,
120
+ arrowX: de,
121
+ arrowY: ce,
122
+ shouldHideArrow: se
123
+ }, /* @__PURE__ */ m(F.div, H({
124
+ "data-side": X,
125
+ "data-align": ie
126
+ }, W, {
127
+ ref: Q,
128
+ style: {
129
+ ...W.style,
130
+ // if the PopperContent hasn't been placed yet (not all measurements done)
131
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
132
+ animation: y ? void 0 : "none",
133
+ // hide the content if using the hide middleware and should be hidden
134
+ opacity: (l = x.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
135
+ }
136
+ }))));
137
+ }), Xe = "PopperArrow", Me = {
138
+ top: "bottom",
139
+ right: "left",
140
+ bottom: "top",
141
+ left: "right"
142
+ }, tt = /* @__PURE__ */ N(function(i, r) {
143
+ const { __scopePopper: t, ...a } = i, e = Ye(Xe, t), n = Me[e.placedSide];
144
+ return (
145
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
146
+ // doesn't report size as we'd expect on SVG elements.
147
+ // it reports their bounding box which is effectively the largest path inside the SVG.
148
+ /* @__PURE__ */ m("span", {
149
+ ref: e.onArrowChange,
150
+ style: {
151
+ position: "absolute",
152
+ left: e.arrowX,
153
+ top: e.arrowY,
154
+ [n]: 0,
155
+ transformOrigin: {
156
+ top: "",
157
+ right: "0 0",
158
+ bottom: "center 0",
159
+ left: "100% 0"
160
+ }[e.placedSide],
161
+ transform: {
162
+ top: "translateY(100%)",
163
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
164
+ bottom: "rotate(180deg)",
165
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
166
+ }[e.placedSide],
167
+ visibility: e.shouldHideArrow ? "hidden" : void 0
168
+ }
169
+ }, /* @__PURE__ */ m(xe, H({}, a, {
170
+ ref: r,
171
+ style: {
172
+ ...a.style,
173
+ // ensures the element can be measured correctly (mostly for if SVG)
174
+ display: "block"
175
+ }
176
+ })))
177
+ );
178
+ });
179
+ function ke(o) {
180
+ return o !== null;
181
+ }
182
+ const Be = (o) => ({
183
+ name: "transformOrigin",
184
+ options: o,
185
+ fn(i) {
186
+ var r, t, a, e, n;
187
+ const { placement: s, rects: w, middlewareData: l } = i, d = ((r = l.arrow) === null || r === void 0 ? void 0 : r.centerOffset) !== 0, O = d ? 0 : o.arrowWidth, c = d ? 0 : o.arrowHeight, [h, D] = U(s), p = {
188
+ start: "0%",
189
+ center: "50%",
190
+ end: "100%"
191
+ }[D], u = ((t = (a = l.arrow) === null || a === void 0 ? void 0 : a.x) !== null && t !== void 0 ? t : 0) + O / 2, g = ((e = (n = l.arrow) === null || n === void 0 ? void 0 : n.y) !== null && e !== void 0 ? e : 0) + c / 2;
192
+ let f = "", $ = "";
193
+ return h === "bottom" ? (f = d ? p : `${u}px`, $ = `${-c}px`) : h === "top" ? (f = d ? p : `${u}px`, $ = `${w.floating.height + c}px`) : h === "right" ? (f = `${-c}px`, $ = d ? p : `${g}px`) : h === "left" && (f = `${w.floating.width + c}px`, $ = d ? p : `${g}px`), {
194
+ data: {
195
+ x: f,
196
+ y: $
197
+ }
198
+ };
199
+ }
200
+ });
201
+ function U(o) {
202
+ const [i, r = "center"] = o.split("-");
203
+ return [
204
+ i,
205
+ r
206
+ ];
207
+ }
208
+ const ot = He, rt = We, at = Ie;
209
+ export {
210
+ rt as Anchor,
211
+ at as Content,
212
+ He as Popper,
213
+ We as PopperAnchor,
214
+ tt as PopperArrow,
215
+ Ie as PopperContent,
216
+ ot as Root,
217
+ et as createPopperScope
218
+ };
@@ -0,0 +1,14 @@
1
+ import l from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
2
+ import { forwardRef as i, createElement as c } from "react";
3
+ import d from "react-dom";
4
+ import { Primitive as f } from "../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs";
5
+ const b = /* @__PURE__ */ i((e, t) => {
6
+ var o;
7
+ const { container: r = globalThis == null || (o = globalThis.document) === null || o === void 0 ? void 0 : o.body, ...a } = e;
8
+ return r ? /* @__PURE__ */ d.createPortal(/* @__PURE__ */ c(f.div, l({}, a, {
9
+ ref: t
10
+ })), r) : null;
11
+ });
12
+ export {
13
+ b as Portal
14
+ };
@@ -0,0 +1,81 @@
1
+ import { Children as v, cloneElement as $, useState as E, useRef as N, useEffect as M, useCallback as O, useReducer as T } from "react";
2
+ import { flushSync as h } from "react-dom";
3
+ import { useComposedRefs as U } from "../../../../../@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs";
4
+ import { useLayoutEffect as p } from "../../../../../@radix-ui_react-use-layout-effect@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs";
5
+ function I(n, t) {
6
+ return T((r, o) => {
7
+ const i = t[r][o];
8
+ return i ?? r;
9
+ }, n);
10
+ }
11
+ const P = (n) => {
12
+ const { present: t, children: r } = n, o = S(t), i = typeof r == "function" ? r({
13
+ present: o.isPresent
14
+ }) : v.only(r), s = U(o.ref, i.ref);
15
+ return typeof r == "function" || o.isPresent ? /* @__PURE__ */ $(i, {
16
+ ref: s
17
+ }) : null;
18
+ };
19
+ P.displayName = "Presence";
20
+ function S(n) {
21
+ const [t, r] = E(), o = N({}), i = N(n), s = N("none"), l = n ? "mounted" : "unmounted", [f, a] = I(l, {
22
+ mounted: {
23
+ UNMOUNT: "unmounted",
24
+ ANIMATION_OUT: "unmountSuspended"
25
+ },
26
+ unmountSuspended: {
27
+ MOUNT: "mounted",
28
+ ANIMATION_END: "unmounted"
29
+ },
30
+ unmounted: {
31
+ MOUNT: "mounted"
32
+ }
33
+ });
34
+ return M(() => {
35
+ const e = d(o.current);
36
+ s.current = f === "mounted" ? e : "none";
37
+ }, [
38
+ f
39
+ ]), p(() => {
40
+ const e = o.current, c = i.current;
41
+ if (c !== n) {
42
+ const A = s.current, m = d(e);
43
+ n ? a("MOUNT") : m === "none" || (e == null ? void 0 : e.display) === "none" ? a("UNMOUNT") : a(c && A !== m ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
44
+ }
45
+ }, [
46
+ n,
47
+ a
48
+ ]), p(() => {
49
+ if (t) {
50
+ const e = (u) => {
51
+ const m = d(o.current).includes(u.animationName);
52
+ u.target === t && m && h(
53
+ () => a("ANIMATION_END")
54
+ );
55
+ }, c = (u) => {
56
+ u.target === t && (s.current = d(o.current));
57
+ };
58
+ return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", e), t.addEventListener("animationend", e), () => {
59
+ t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", e), t.removeEventListener("animationend", e);
60
+ };
61
+ } else
62
+ a("ANIMATION_END");
63
+ }, [
64
+ t,
65
+ a
66
+ ]), {
67
+ isPresent: [
68
+ "mounted",
69
+ "unmountSuspended"
70
+ ].includes(f),
71
+ ref: O((e) => {
72
+ e && (o.current = getComputedStyle(e)), r(e);
73
+ }, [])
74
+ };
75
+ }
76
+ function d(n) {
77
+ return (n == null ? void 0 : n.animationName) || "none";
78
+ }
79
+ export {
80
+ P as Presence
81
+ };
@@ -0,0 +1,44 @@
1
+ import s from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
2
+ import { forwardRef as m, useEffect as n, createElement as p } from "react";
3
+ import { flushSync as d } from "react-dom";
4
+ import { Slot as $ } from "../../../../../@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs";
5
+ const l = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "span",
20
+ "svg",
21
+ "ul"
22
+ ], E = l.reduce((e, t) => {
23
+ const r = /* @__PURE__ */ m((i, o) => {
24
+ const { asChild: c, ...f } = i, a = c ? $ : t;
25
+ return n(() => {
26
+ window[Symbol.for("radix-ui")] = !0;
27
+ }, []), /* @__PURE__ */ p(a, s({}, f, {
28
+ ref: o
29
+ }));
30
+ });
31
+ return r.displayName = `Primitive.${t}`, {
32
+ ...e,
33
+ [t]: r
34
+ };
35
+ }, {});
36
+ function b(e, t) {
37
+ e && d(
38
+ () => e.dispatchEvent(t)
39
+ );
40
+ }
41
+ export {
42
+ E as Primitive,
43
+ b as dispatchDiscreteCustomEvent
44
+ };
@@ -0,0 +1,31 @@
1
+ import * as f from "react";
2
+ import "react-dom";
3
+ import { Slot as n } from "../../../../../@radix-ui_react-slot@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs";
4
+ import { jsx as s } from "../../../../../../../_virtual/jsx-runtime.mjs";
5
+ var d = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "span",
20
+ "svg",
21
+ "ul"
22
+ ], c = d.reduce((o, r) => {
23
+ const i = f.forwardRef((t, e) => {
24
+ const { asChild: m, ...a } = t, p = m ? n : r;
25
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(p, { ...a, ref: e });
26
+ });
27
+ return i.displayName = `Primitive.${r}`, { ...o, [r]: i };
28
+ }, {});
29
+ export {
30
+ c as Primitive
31
+ };
@@ -0,0 +1,199 @@
1
+ import _ from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
2
+ import { forwardRef as A, useEffect as O, createElement as i, useRef as P, useState as y, useCallback as v } from "react";
3
+ import { composeEventHandlers as $ } from "../../../../../@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs";
4
+ import { createCollection as V } from "../../../../../@radix-ui_react-collection@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom_04e7d2b59cf7ec97f40d26a998d7601d/node_modules/@radix-ui/react-collection/dist/index.mjs";
5
+ import { useComposedRefs as z } from "../../../../../@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs";
6
+ import { createContextScope as j } from "../../../../../@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs";
7
+ import { useId as q } from "../../../../../@radix-ui_react-id@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs";
8
+ import { Primitive as N } from "../../../../../@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs";
9
+ import { useCallbackRef as J } from "../../../../../@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs";
10
+ import { useControllableState as Q } from "../../../../../@radix-ui_react-use-controllable-state@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs";
11
+ import { useDirection as W } from "../../../../../@radix-ui_react-direction@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs";
12
+ const S = "rovingFocusGroup.onEntryFocus", X = {
13
+ bubbles: !1,
14
+ cancelable: !0
15
+ }, G = "RovingFocusGroup", [w, M, Z] = V(G), [ee, Ee] = j(G, [
16
+ Z
17
+ ]), [oe, te] = ee(G), re = /* @__PURE__ */ A((e, o) => /* @__PURE__ */ i(w.Provider, {
18
+ scope: e.__scopeRovingFocusGroup
19
+ }, /* @__PURE__ */ i(w.Slot, {
20
+ scope: e.__scopeRovingFocusGroup
21
+ }, /* @__PURE__ */ i(ne, _({}, e, {
22
+ ref: o
23
+ }))))), ne = /* @__PURE__ */ A((e, o) => {
24
+ const { __scopeRovingFocusGroup: n, orientation: t, loop: I = !1, dir: F, currentTabStopId: g, defaultCurrentTabStopId: R, onCurrentTabStopIdChange: b, onEntryFocus: f, ...T } = e, l = P(null), p = z(o, l), m = W(F), [c = null, d] = Q({
25
+ prop: g,
26
+ defaultProp: R,
27
+ onChange: b
28
+ }), [E, s] = y(!1), a = J(f), U = M(n), x = P(!1), [K, h] = y(0);
29
+ return O(() => {
30
+ const r = l.current;
31
+ if (r)
32
+ return r.addEventListener(S, a), () => r.removeEventListener(S, a);
33
+ }, [
34
+ a
35
+ ]), /* @__PURE__ */ i(oe, {
36
+ scope: n,
37
+ orientation: t,
38
+ dir: m,
39
+ loop: I,
40
+ currentTabStopId: c,
41
+ onItemFocus: v(
42
+ (r) => d(r),
43
+ [
44
+ d
45
+ ]
46
+ ),
47
+ onItemShiftTab: v(
48
+ () => s(!0),
49
+ []
50
+ ),
51
+ onFocusableItemAdd: v(
52
+ () => h(
53
+ (r) => r + 1
54
+ ),
55
+ []
56
+ ),
57
+ onFocusableItemRemove: v(
58
+ () => h(
59
+ (r) => r - 1
60
+ ),
61
+ []
62
+ )
63
+ }, /* @__PURE__ */ i(N.div, _({
64
+ tabIndex: E || K === 0 ? -1 : 0,
65
+ "data-orientation": t
66
+ }, T, {
67
+ ref: p,
68
+ style: {
69
+ outline: "none",
70
+ ...e.style
71
+ },
72
+ onMouseDown: $(e.onMouseDown, () => {
73
+ x.current = !0;
74
+ }),
75
+ onFocus: $(e.onFocus, (r) => {
76
+ const k = !x.current;
77
+ if (r.target === r.currentTarget && k && !E) {
78
+ const D = new CustomEvent(S, X);
79
+ if (r.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
80
+ const C = U().filter(
81
+ (u) => u.focusable
82
+ ), B = C.find(
83
+ (u) => u.active
84
+ ), Y = C.find(
85
+ (u) => u.id === c
86
+ ), H = [
87
+ B,
88
+ Y,
89
+ ...C
90
+ ].filter(Boolean).map(
91
+ (u) => u.ref.current
92
+ );
93
+ L(H);
94
+ }
95
+ }
96
+ x.current = !1;
97
+ }),
98
+ onBlur: $(
99
+ e.onBlur,
100
+ () => s(!1)
101
+ )
102
+ })));
103
+ }), ce = "RovingFocusGroupItem", fe = /* @__PURE__ */ A((e, o) => {
104
+ const { __scopeRovingFocusGroup: n, focusable: t = !0, active: I = !1, tabStopId: F, ...g } = e, R = q(), b = F || R, f = te(ce, n), T = f.currentTabStopId === b, l = M(n), { onFocusableItemAdd: p, onFocusableItemRemove: m } = f;
105
+ return O(() => {
106
+ if (t)
107
+ return p(), () => m();
108
+ }, [
109
+ t,
110
+ p,
111
+ m
112
+ ]), /* @__PURE__ */ i(w.ItemSlot, {
113
+ scope: n,
114
+ id: b,
115
+ focusable: t,
116
+ active: I
117
+ }, /* @__PURE__ */ i(N.span, _({
118
+ tabIndex: T ? 0 : -1,
119
+ "data-orientation": f.orientation
120
+ }, g, {
121
+ ref: o,
122
+ onMouseDown: $(e.onMouseDown, (c) => {
123
+ t ? f.onItemFocus(b) : c.preventDefault();
124
+ }),
125
+ onFocus: $(
126
+ e.onFocus,
127
+ () => f.onItemFocus(b)
128
+ ),
129
+ onKeyDown: $(e.onKeyDown, (c) => {
130
+ if (c.key === "Tab" && c.shiftKey) {
131
+ f.onItemShiftTab();
132
+ return;
133
+ }
134
+ if (c.target !== c.currentTarget)
135
+ return;
136
+ const d = de(c, f.orientation, f.dir);
137
+ if (d !== void 0) {
138
+ c.preventDefault();
139
+ let s = l().filter(
140
+ (a) => a.focusable
141
+ ).map(
142
+ (a) => a.ref.current
143
+ );
144
+ if (d === "last")
145
+ s.reverse();
146
+ else if (d === "prev" || d === "next") {
147
+ d === "prev" && s.reverse();
148
+ const a = s.indexOf(c.currentTarget);
149
+ s = f.loop ? ue(s, a + 1) : s.slice(a + 1);
150
+ }
151
+ setTimeout(
152
+ () => L(s)
153
+ );
154
+ }
155
+ })
156
+ })));
157
+ }), se = {
158
+ ArrowLeft: "prev",
159
+ ArrowUp: "prev",
160
+ ArrowRight: "next",
161
+ ArrowDown: "next",
162
+ PageUp: "first",
163
+ Home: "first",
164
+ PageDown: "last",
165
+ End: "last"
166
+ };
167
+ function ae(e, o) {
168
+ return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
169
+ }
170
+ function de(e, o, n) {
171
+ const t = ae(e.key, n);
172
+ if (!(o === "vertical" && [
173
+ "ArrowLeft",
174
+ "ArrowRight"
175
+ ].includes(t)) && !(o === "horizontal" && [
176
+ "ArrowUp",
177
+ "ArrowDown"
178
+ ].includes(t)))
179
+ return se[t];
180
+ }
181
+ function L(e) {
182
+ const o = document.activeElement;
183
+ for (const n of e)
184
+ if (n === o || (n.focus(), document.activeElement !== o))
185
+ return;
186
+ }
187
+ function ue(e, o) {
188
+ return e.map(
189
+ (n, t) => e[(o + t) % e.length]
190
+ );
191
+ }
192
+ const xe = re, Ce = fe;
193
+ export {
194
+ Ce as Item,
195
+ xe as Root,
196
+ re as RovingFocusGroup,
197
+ fe as RovingFocusGroupItem,
198
+ Ee as createRovingFocusGroupScope
199
+ };
@@ -0,0 +1,53 @@
1
+ import d from "../../../../../@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs";
2
+ import { forwardRef as m, Children as s, isValidElement as f, createElement as a, cloneElement as $, Fragment as y } from "react";
3
+ import { composeRefs as h } from "../../../../../@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs";
4
+ const b = /* @__PURE__ */ m((r, t) => {
5
+ const { children: e, ...n } = r, o = s.toArray(e), l = o.find(x);
6
+ if (l) {
7
+ const c = l.props.children, i = o.map((u) => u === l ? s.count(c) > 1 ? s.only(null) : /* @__PURE__ */ f(c) ? c.props.children : null : u);
8
+ return /* @__PURE__ */ a(p, d({}, n, {
9
+ ref: t
10
+ }), /* @__PURE__ */ f(c) ? /* @__PURE__ */ $(c, void 0, i) : null);
11
+ }
12
+ return /* @__PURE__ */ a(p, d({}, n, {
13
+ ref: t
14
+ }), e);
15
+ });
16
+ b.displayName = "Slot";
17
+ const p = /* @__PURE__ */ m((r, t) => {
18
+ const { children: e, ...n } = r;
19
+ return /* @__PURE__ */ f(e) ? /* @__PURE__ */ $(e, {
20
+ ...v(n, e.props),
21
+ ref: t ? h(t, e.ref) : e.ref
22
+ }) : s.count(e) > 1 ? s.only(null) : null;
23
+ });
24
+ p.displayName = "SlotClone";
25
+ const S = ({ children: r }) => /* @__PURE__ */ a(y, null, r);
26
+ function x(r) {
27
+ return /* @__PURE__ */ f(r) && r.type === S;
28
+ }
29
+ function v(r, t) {
30
+ const e = {
31
+ ...t
32
+ };
33
+ for (const n in t) {
34
+ const o = r[n], l = t[n];
35
+ /^on[A-Z]/.test(n) ? o && l ? e[n] = (...i) => {
36
+ l(...i), o(...i);
37
+ } : o && (e[n] = o) : n === "style" ? e[n] = {
38
+ ...o,
39
+ ...l
40
+ } : n === "className" && (e[n] = [
41
+ o,
42
+ l
43
+ ].filter(Boolean).join(" "));
44
+ }
45
+ return {
46
+ ...r,
47
+ ...e
48
+ };
49
+ }
50
+ export {
51
+ b as Slot,
52
+ S as Slottable
53
+ };