@profiq/ui 0.1.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 (237) hide show
  1. package/README.md +36 -0
  2. package/dist/components/custom/basic/accordion.d.ts +31 -0
  3. package/dist/components/custom/basic/accordion.d.ts.map +1 -0
  4. package/dist/components/custom/basic/accordion.js +68 -0
  5. package/dist/components/custom/basic/button.d.ts +16 -0
  6. package/dist/components/custom/basic/button.d.ts.map +1 -0
  7. package/dist/components/custom/basic/button.js +46 -0
  8. package/dist/components/custom/basic/input.d.ts +22 -0
  9. package/dist/components/custom/basic/input.d.ts.map +1 -0
  10. package/dist/components/custom/basic/input.js +106 -0
  11. package/dist/components/custom/basic/select.d.ts +18 -0
  12. package/dist/components/custom/basic/select.d.ts.map +1 -0
  13. package/dist/components/custom/basic/select.js +67 -0
  14. package/dist/components/custom/basic/slider.d.ts +24 -0
  15. package/dist/components/custom/basic/slider.d.ts.map +1 -0
  16. package/dist/components/custom/basic/slider.js +54 -0
  17. package/dist/components/custom/basic/switch.d.ts +17 -0
  18. package/dist/components/custom/basic/switch.d.ts.map +1 -0
  19. package/dist/components/custom/basic/switch.js +105 -0
  20. package/dist/components/custom/basic/table.d.ts +9 -0
  21. package/dist/components/custom/basic/table.d.ts.map +1 -0
  22. package/dist/components/custom/basic/table.js +74 -0
  23. package/dist/components/custom/basic/text.d.ts +10 -0
  24. package/dist/components/custom/basic/text.d.ts.map +1 -0
  25. package/dist/components/custom/basic/text.js +26 -0
  26. package/dist/components/custom/basic/textarea.d.ts +7 -0
  27. package/dist/components/custom/basic/textarea.d.ts.map +1 -0
  28. package/dist/components/custom/basic/textarea.js +24 -0
  29. package/dist/components/custom/icons/Backpack.d.ts +3 -0
  30. package/dist/components/custom/icons/Backpack.d.ts.map +1 -0
  31. package/dist/components/custom/icons/Backpack.js +28 -0
  32. package/dist/components/custom/icons/CaretDown.d.ts +3 -0
  33. package/dist/components/custom/icons/CaretDown.d.ts.map +1 -0
  34. package/dist/components/custom/icons/CaretDown.js +20 -0
  35. package/dist/components/custom/icons/CaretUp.d.ts +3 -0
  36. package/dist/components/custom/icons/CaretUp.d.ts.map +1 -0
  37. package/dist/components/custom/icons/CaretUp.js +20 -0
  38. package/dist/components/custom/icons/DotsVertical.d.ts +3 -0
  39. package/dist/components/custom/icons/DotsVertical.d.ts.map +1 -0
  40. package/dist/components/custom/icons/DotsVertical.js +28 -0
  41. package/dist/components/custom/icons/HamburgerMenu.d.ts +3 -0
  42. package/dist/components/custom/icons/HamburgerMenu.d.ts.map +1 -0
  43. package/dist/components/custom/icons/HamburgerMenu.js +28 -0
  44. package/dist/components/custom/icons/Home.d.ts +3 -0
  45. package/dist/components/custom/icons/Home.d.ts.map +1 -0
  46. package/dist/components/custom/icons/Home.js +28 -0
  47. package/dist/components/custom/icons/Icons.d.ts +27 -0
  48. package/dist/components/custom/icons/Icons.d.ts.map +1 -0
  49. package/dist/components/custom/icons/Icons.js +23 -0
  50. package/dist/components/custom/icons/MagnifyingGlass.d.ts +3 -0
  51. package/dist/components/custom/icons/MagnifyingGlass.d.ts.map +1 -0
  52. package/dist/components/custom/icons/MagnifyingGlass.js +24 -0
  53. package/dist/components/custom/icons/Moon.d.ts +3 -0
  54. package/dist/components/custom/icons/Moon.d.ts.map +1 -0
  55. package/dist/components/custom/icons/Moon.js +28 -0
  56. package/dist/components/custom/icons/Sun.d.ts +3 -0
  57. package/dist/components/custom/icons/Sun.d.ts.map +1 -0
  58. package/dist/components/custom/icons/Sun.js +28 -0
  59. package/dist/components/custom/icons/logo/Profiq.d.ts +6 -0
  60. package/dist/components/custom/icons/logo/Profiq.d.ts.map +1 -0
  61. package/dist/components/custom/icons/logo/Profiq.js +92 -0
  62. package/dist/components/custom/icons/logo/logoVariations.d.ts +10 -0
  63. package/dist/components/custom/icons/logo/logoVariations.d.ts.map +1 -0
  64. package/dist/components/custom/icons/logo/logoVariations.js +65 -0
  65. package/dist/components/ui/accordion.d.ts +8 -0
  66. package/dist/components/ui/accordion.d.ts.map +1 -0
  67. package/dist/components/ui/accordion.js +65 -0
  68. package/dist/components/ui/button.d.ts +8 -0
  69. package/dist/components/ui/button.d.ts.map +1 -0
  70. package/dist/components/ui/button.js +29 -0
  71. package/dist/components/ui/buttonVariants.d.ts +5 -0
  72. package/dist/components/ui/buttonVariants.d.ts.map +1 -0
  73. package/dist/components/ui/buttonVariants.js +33 -0
  74. package/dist/components/ui/field.d.ts +25 -0
  75. package/dist/components/ui/field.d.ts.map +1 -0
  76. package/dist/components/ui/field.js +221 -0
  77. package/dist/components/ui/input.d.ts +4 -0
  78. package/dist/components/ui/input.d.ts.map +1 -0
  79. package/dist/components/ui/input.js +22 -0
  80. package/dist/components/ui/label.d.ts +5 -0
  81. package/dist/components/ui/label.d.ts.map +1 -0
  82. package/dist/components/ui/label.js +23 -0
  83. package/dist/components/ui/select.d.ts +16 -0
  84. package/dist/components/ui/select.d.ts.map +1 -0
  85. package/dist/components/ui/select.js +181 -0
  86. package/dist/components/ui/separator.d.ts +5 -0
  87. package/dist/components/ui/separator.d.ts.map +1 -0
  88. package/dist/components/ui/separator.js +27 -0
  89. package/dist/components/ui/slider.d.ts +13 -0
  90. package/dist/components/ui/slider.d.ts.map +1 -0
  91. package/dist/components/ui/slider.js +101 -0
  92. package/dist/components/ui/switch.d.ts +8 -0
  93. package/dist/components/ui/switch.d.ts.map +1 -0
  94. package/dist/components/ui/switch.js +36 -0
  95. package/dist/components/ui/table.d.ts +11 -0
  96. package/dist/components/ui/table.d.ts.map +1 -0
  97. package/dist/components/ui/table.js +115 -0
  98. package/dist/components/ui/textarea.d.ts +4 -0
  99. package/dist/components/ui/textarea.d.ts.map +1 -0
  100. package/dist/components/ui/textarea.js +19 -0
  101. package/dist/components/ui/tooltip.d.ts +10 -0
  102. package/dist/components/ui/tooltip.d.ts.map +1 -0
  103. package/dist/components/ui/tooltip.js +66 -0
  104. package/dist/fonts/Franklin_Gothic/FRANKGO.ttf +0 -0
  105. package/dist/fonts/Franklin_Gothic/Franklin Gothic Condensed.ttf +0 -0
  106. package/dist/fonts/Franklin_Gothic/FranklinGothic.ttf +0 -0
  107. package/dist/fonts/Franklin_Gothic/FranklinGothicITALIC.ttf +0 -0
  108. package/dist/fonts/Franklin_Gothic/fgwo____.ttf +0 -0
  109. package/dist/fonts/Roboto_Slab/LICENSE.txt +202 -0
  110. package/dist/fonts/Roboto_Slab/README.txt +71 -0
  111. package/dist/fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf +0 -0
  112. package/dist/fonts/Roboto_Slab/static/RobotoSlab-Black.ttf +0 -0
  113. package/dist/fonts/Roboto_Slab/static/RobotoSlab-Bold.ttf +0 -0
  114. package/dist/fonts/Roboto_Slab/static/RobotoSlab-ExtraBold.ttf +0 -0
  115. package/dist/fonts/Roboto_Slab/static/RobotoSlab-ExtraLight.ttf +0 -0
  116. package/dist/fonts/Roboto_Slab/static/RobotoSlab-Light.ttf +0 -0
  117. package/dist/fonts/Roboto_Slab/static/RobotoSlab-Medium.ttf +0 -0
  118. package/dist/fonts/Roboto_Slab/static/RobotoSlab-Regular.ttf +0 -0
  119. package/dist/fonts/Roboto_Slab/static/RobotoSlab-SemiBold.ttf +0 -0
  120. package/dist/fonts/Roboto_Slab/static/RobotoSlab-Thin.ttf +0 -0
  121. package/dist/index.css +571 -0
  122. package/dist/index.js +11 -0
  123. package/dist/lib/baseProps.d.ts +9 -0
  124. package/dist/lib/baseProps.d.ts.map +1 -0
  125. package/dist/lib/baseProps.js +13 -0
  126. package/dist/lib/buttonVariants.d.ts +3 -0
  127. package/dist/lib/buttonVariants.d.ts.map +1 -0
  128. package/dist/lib/hooks/useMakeTestId.d.ts +34 -0
  129. package/dist/lib/hooks/useMakeTestId.d.ts.map +1 -0
  130. package/dist/lib/hooks/useMakeTestId.js +26 -0
  131. package/dist/lib/index.d.ts +6 -0
  132. package/dist/lib/index.d.ts.map +1 -0
  133. package/dist/lib/text.types.d.ts +6 -0
  134. package/dist/lib/text.types.d.ts.map +1 -0
  135. package/dist/lib/text.types.js +17 -0
  136. package/dist/lib/utils.d.ts +3 -0
  137. package/dist/lib/utils.d.ts.map +1 -0
  138. package/dist/lib/utils.js +8 -0
  139. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
  140. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  141. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  142. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  143. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  144. package/dist/node_modules/@radix-ui/number/dist/index.js +6 -0
  145. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  146. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +235 -0
  147. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  148. package/dist/node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  149. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  150. package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  151. package/dist/node_modules/@radix-ui/react-arrow/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  152. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +120 -0
  153. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  154. package/dist/node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  155. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +50 -0
  156. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  157. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  158. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  159. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  160. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  161. package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  162. package/dist/node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  163. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  164. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  165. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  166. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  167. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  168. package/dist/node_modules/@radix-ui/react-label/dist/index.js +19 -0
  169. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  170. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  171. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  172. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  173. package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  174. package/dist/node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  175. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  176. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  177. package/dist/node_modules/@radix-ui/react-select/dist/index.js +848 -0
  178. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  179. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  180. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +24 -0
  181. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +436 -0
  182. package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  183. package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  184. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +61 -0
  185. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +132 -0
  186. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  187. package/dist/node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  188. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +338 -0
  189. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  190. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +55 -0
  191. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  192. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  193. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  194. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  195. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +8 -0
  196. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  197. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
  198. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  199. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  200. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +88 -0
  201. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1667 -0
  202. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  203. package/dist/node_modules/class-variance-authority/dist/index.js +35 -0
  204. package/dist/node_modules/clsx/dist/clsx.js +16 -0
  205. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  206. package/dist/node_modules/lucide-react/dist/esm/Icon.js +36 -0
  207. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +23 -0
  208. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
  209. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +6 -0
  210. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +6 -0
  211. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +6 -0
  212. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js +9 -0
  213. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js +4 -0
  214. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js +7 -0
  215. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js +4 -0
  216. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js +8 -0
  217. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  218. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +115 -0
  219. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  220. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  221. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  222. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  223. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  224. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  225. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  226. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  227. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  228. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  229. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  230. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
  231. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  232. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  233. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  234. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  235. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  236. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  237. package/package.json +124 -0
@@ -0,0 +1,132 @@
1
+ import * as r from "react";
2
+ import { composeEventHandlers as T } from "../../primitive/dist/index.js";
3
+ import { useComposedRefs as P } from "../../react-compose-refs/dist/index.js";
4
+ import { createContextScope as I } from "../../react-context/dist/index.js";
5
+ import { useControllableState as M } from "../../react-use-controllable-state/dist/index.js";
6
+ import { usePrevious as H } from "../../react-use-previous/dist/index.js";
7
+ import { useSize as j } from "../../react-use-size/dist/index.js";
8
+ import { Primitive as y } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
9
+ import { jsxs as A, jsx as m } from "react/jsx-runtime";
10
+ var h = "Switch", [U] = I(h), [q, z] = U(h), R = r.forwardRef(
11
+ (t, a) => {
12
+ const {
13
+ __scopeSwitch: e,
14
+ name: c,
15
+ checked: o,
16
+ defaultChecked: v,
17
+ required: i,
18
+ disabled: n,
19
+ value: p = "on",
20
+ onCheckedChange: w,
21
+ form: s,
22
+ ...S
23
+ } = t, [d, u] = r.useState(null), b = P(a, (f) => u(f)), C = r.useRef(!1), k = d ? s || !!d.closest("form") : !0, [l, B] = M({
24
+ prop: o,
25
+ defaultProp: v ?? !1,
26
+ onChange: w,
27
+ caller: h
28
+ });
29
+ return /* @__PURE__ */ A(q, { scope: e, checked: l, disabled: n, children: [
30
+ /* @__PURE__ */ m(
31
+ y.button,
32
+ {
33
+ type: "button",
34
+ role: "switch",
35
+ "aria-checked": l,
36
+ "aria-required": i,
37
+ "data-state": g(l),
38
+ "data-disabled": n ? "" : void 0,
39
+ disabled: n,
40
+ value: p,
41
+ ...S,
42
+ ref: b,
43
+ onClick: T(t.onClick, (f) => {
44
+ B((N) => !N), k && (C.current = f.isPropagationStopped(), C.current || f.stopPropagation());
45
+ })
46
+ }
47
+ ),
48
+ k && /* @__PURE__ */ m(
49
+ x,
50
+ {
51
+ control: d,
52
+ bubbles: !C.current,
53
+ name: c,
54
+ value: p,
55
+ checked: l,
56
+ required: i,
57
+ disabled: n,
58
+ form: s,
59
+ style: { transform: "translateX(-100%)" }
60
+ }
61
+ )
62
+ ] });
63
+ }
64
+ );
65
+ R.displayName = h;
66
+ var E = "SwitchThumb", _ = r.forwardRef(
67
+ (t, a) => {
68
+ const { __scopeSwitch: e, ...c } = t, o = z(E, e);
69
+ return /* @__PURE__ */ m(
70
+ y.span,
71
+ {
72
+ "data-state": g(o.checked),
73
+ "data-disabled": o.disabled ? "" : void 0,
74
+ ...c,
75
+ ref: a
76
+ }
77
+ );
78
+ }
79
+ );
80
+ _.displayName = E;
81
+ var L = "SwitchBubbleInput", x = r.forwardRef(
82
+ ({
83
+ __scopeSwitch: t,
84
+ control: a,
85
+ checked: e,
86
+ bubbles: c = !0,
87
+ ...o
88
+ }, v) => {
89
+ const i = r.useRef(null), n = P(i, v), p = H(e), w = j(a);
90
+ return r.useEffect(() => {
91
+ const s = i.current;
92
+ if (!s) return;
93
+ const S = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(
94
+ S,
95
+ "checked"
96
+ ).set;
97
+ if (p !== e && u) {
98
+ const b = new Event("click", { bubbles: c });
99
+ u.call(s, e), s.dispatchEvent(b);
100
+ }
101
+ }, [p, e, c]), /* @__PURE__ */ m(
102
+ "input",
103
+ {
104
+ type: "checkbox",
105
+ "aria-hidden": !0,
106
+ defaultChecked: e,
107
+ ...o,
108
+ tabIndex: -1,
109
+ ref: n,
110
+ style: {
111
+ ...o.style,
112
+ ...w,
113
+ position: "absolute",
114
+ pointerEvents: "none",
115
+ opacity: 0,
116
+ margin: 0
117
+ }
118
+ }
119
+ );
120
+ }
121
+ );
122
+ x.displayName = L;
123
+ function g(t) {
124
+ return t ? "checked" : "unchecked";
125
+ }
126
+ var Q = R, V = _;
127
+ export {
128
+ Q as Root,
129
+ R as Switch,
130
+ _ as SwitchThumb,
131
+ V as Thumb
132
+ };
@@ -0,0 +1,32 @@
1
+ import * as f from "react";
2
+ import "react-dom";
3
+ import { createSlot as l } from "../../react-slot/dist/index.js";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ var u = [
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
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], w = u.reduce((t, i) => {
24
+ const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: a, ...p } = e, s = a ? o : i;
26
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ export {
31
+ w as Primitive
32
+ };
@@ -0,0 +1,49 @@
1
+ import * as l from "react";
2
+ import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
3
+ import { jsx as u } from "react/jsx-runtime";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function b(e) {
6
+ const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
7
+ const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
8
+ if (a) {
9
+ const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
+ return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
+ }
12
+ return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
13
+ });
14
+ return t.displayName = `${e}.Slot`, t;
15
+ }
16
+ // @__NO_SIDE_EFFECTS__
17
+ function y(e) {
18
+ const r = l.forwardRef((t, o) => {
19
+ const { children: n, ...i } = t;
20
+ if (l.isValidElement(n)) {
21
+ const c = S(n), s = C(i, n.props);
22
+ return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
23
+ }
24
+ return l.Children.count(n) > 1 ? l.Children.only(null) : null;
25
+ });
26
+ return r.displayName = `${e}.SlotClone`, r;
27
+ }
28
+ var g = /* @__PURE__ */ Symbol("radix.slottable");
29
+ function E(e) {
30
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
31
+ }
32
+ function C(e, r) {
33
+ const t = { ...r };
34
+ for (const o in r) {
35
+ const n = e[o], i = r[o];
36
+ /^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
37
+ const a = i(...s);
38
+ return n(...s), a;
39
+ } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
40
+ }
41
+ return { ...e, ...t };
42
+ }
43
+ function S(e) {
44
+ let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
45
+ return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
46
+ }
47
+ export {
48
+ b as createSlot
49
+ };
@@ -0,0 +1,338 @@
1
+ import * as s from "react";
2
+ import { composeEventHandlers as x } from "../../primitive/dist/index.js";
3
+ import { useComposedRefs as N } from "../../react-compose-refs/dist/index.js";
4
+ import { createContextScope as W } from "../../react-context/dist/index.js";
5
+ import { DismissableLayer as $ } from "../../react-dismissable-layer/dist/index.js";
6
+ import { useId as z } from "../../react-id/dist/index.js";
7
+ import { Root as J, Arrow as Q, Anchor as Z, createPopperScope as S, Content as ee } from "../../react-popper/dist/index.js";
8
+ import { Portal as te } from "../../react-portal/dist/index.js";
9
+ import { Presence as G } from "../../react-presence/dist/index.js";
10
+ import { Primitive as oe } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
11
+ import { createSlottable as re } from "../node_modules/@radix-ui/react-slot/dist/index.js";
12
+ import { useControllableState as ne } from "../../react-use-controllable-state/dist/index.js";
13
+ import { Root as se } from "../../react-visually-hidden/dist/index.js";
14
+ import { jsx as f, jsxs as ae } from "react/jsx-runtime";
15
+ var [O] = W("Tooltip", [
16
+ S
17
+ ]), A = S(), j = "TooltipProvider", ie = 700, D = "tooltip.open", [ce, k] = O(j), F = (t) => {
18
+ const {
19
+ __scopeTooltip: o,
20
+ delayDuration: e = ie,
21
+ skipDelayDuration: r = 300,
22
+ disableHoverableContent: n = !1,
23
+ children: c
24
+ } = t, i = s.useRef(!0), v = s.useRef(!1), a = s.useRef(0);
25
+ return s.useEffect(() => {
26
+ const p = a.current;
27
+ return () => window.clearTimeout(p);
28
+ }, []), /* @__PURE__ */ f(
29
+ ce,
30
+ {
31
+ scope: o,
32
+ isOpenDelayedRef: i,
33
+ delayDuration: e,
34
+ onOpen: s.useCallback(() => {
35
+ window.clearTimeout(a.current), i.current = !1;
36
+ }, []),
37
+ onClose: s.useCallback(() => {
38
+ window.clearTimeout(a.current), a.current = window.setTimeout(
39
+ () => i.current = !0,
40
+ r
41
+ );
42
+ }, [r]),
43
+ isPointerInTransitRef: v,
44
+ onPointerInTransitChange: s.useCallback((p) => {
45
+ v.current = p;
46
+ }, []),
47
+ disableHoverableContent: n,
48
+ children: c
49
+ }
50
+ );
51
+ };
52
+ F.displayName = j;
53
+ var R = "Tooltip", [le, _] = O(R), B = (t) => {
54
+ const {
55
+ __scopeTooltip: o,
56
+ children: e,
57
+ open: r,
58
+ defaultOpen: n,
59
+ onOpenChange: c,
60
+ disableHoverableContent: i,
61
+ delayDuration: v
62
+ } = t, a = k(R, t.__scopeTooltip), p = A(o), [l, d] = s.useState(null), h = z(), u = s.useRef(0), m = i ?? a.disableHoverableContent, C = v ?? a.delayDuration, T = s.useRef(!1), [g, y] = ne({
63
+ prop: r,
64
+ defaultProp: n ?? !1,
65
+ onChange: (H) => {
66
+ H ? (a.onOpen(), document.dispatchEvent(new CustomEvent(D))) : a.onClose(), c?.(H);
67
+ },
68
+ caller: R
69
+ }), w = s.useMemo(() => g ? T.current ? "delayed-open" : "instant-open" : "closed", [g]), P = s.useCallback(() => {
70
+ window.clearTimeout(u.current), u.current = 0, T.current = !1, y(!0);
71
+ }, [y]), E = s.useCallback(() => {
72
+ window.clearTimeout(u.current), u.current = 0, y(!1);
73
+ }, [y]), I = s.useCallback(() => {
74
+ window.clearTimeout(u.current), u.current = window.setTimeout(() => {
75
+ T.current = !0, y(!0), u.current = 0;
76
+ }, C);
77
+ }, [C, y]);
78
+ return s.useEffect(() => () => {
79
+ u.current && (window.clearTimeout(u.current), u.current = 0);
80
+ }, []), /* @__PURE__ */ f(J, { ...p, children: /* @__PURE__ */ f(
81
+ le,
82
+ {
83
+ scope: o,
84
+ contentId: h,
85
+ open: g,
86
+ stateAttribute: w,
87
+ trigger: l,
88
+ onTriggerChange: d,
89
+ onTriggerEnter: s.useCallback(() => {
90
+ a.isOpenDelayedRef.current ? I() : P();
91
+ }, [a.isOpenDelayedRef, I, P]),
92
+ onTriggerLeave: s.useCallback(() => {
93
+ m ? E() : (window.clearTimeout(u.current), u.current = 0);
94
+ }, [E, m]),
95
+ onOpen: P,
96
+ onClose: E,
97
+ disableHoverableContent: m,
98
+ children: e
99
+ }
100
+ ) });
101
+ };
102
+ B.displayName = R;
103
+ var L = "TooltipTrigger", U = s.forwardRef(
104
+ (t, o) => {
105
+ const { __scopeTooltip: e, ...r } = t, n = _(L, e), c = k(L, e), i = A(e), v = s.useRef(null), a = N(o, v, n.onTriggerChange), p = s.useRef(!1), l = s.useRef(!1), d = s.useCallback(() => p.current = !1, []);
106
+ return s.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ f(Z, { asChild: !0, ...i, children: /* @__PURE__ */ f(
107
+ oe.button,
108
+ {
109
+ "aria-describedby": n.open ? n.contentId : void 0,
110
+ "data-state": n.stateAttribute,
111
+ ...r,
112
+ ref: a,
113
+ onPointerMove: x(t.onPointerMove, (h) => {
114
+ h.pointerType !== "touch" && !l.current && !c.isPointerInTransitRef.current && (n.onTriggerEnter(), l.current = !0);
115
+ }),
116
+ onPointerLeave: x(t.onPointerLeave, () => {
117
+ n.onTriggerLeave(), l.current = !1;
118
+ }),
119
+ onPointerDown: x(t.onPointerDown, () => {
120
+ n.open && n.onClose(), p.current = !0, document.addEventListener("pointerup", d, { once: !0 });
121
+ }),
122
+ onFocus: x(t.onFocus, () => {
123
+ p.current || n.onOpen();
124
+ }),
125
+ onBlur: x(t.onBlur, n.onClose),
126
+ onClick: x(t.onClick, n.onClose)
127
+ }
128
+ ) });
129
+ }
130
+ );
131
+ U.displayName = L;
132
+ var M = "TooltipPortal", [ue, pe] = O(M, {
133
+ forceMount: void 0
134
+ }), V = (t) => {
135
+ const { __scopeTooltip: o, forceMount: e, children: r, container: n } = t, c = _(M, o);
136
+ return /* @__PURE__ */ f(ue, { scope: o, forceMount: e, children: /* @__PURE__ */ f(G, { present: e || c.open, children: /* @__PURE__ */ f(te, { asChild: !0, container: n, children: r }) }) });
137
+ };
138
+ V.displayName = M;
139
+ var b = "TooltipContent", Y = s.forwardRef(
140
+ (t, o) => {
141
+ const e = pe(b, t.__scopeTooltip), { forceMount: r = e.forceMount, side: n = "top", ...c } = t, i = _(b, t.__scopeTooltip);
142
+ return /* @__PURE__ */ f(G, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ f(q, { side: n, ...c, ref: o }) : /* @__PURE__ */ f(de, { side: n, ...c, ref: o }) });
143
+ }
144
+ ), de = s.forwardRef((t, o) => {
145
+ const e = _(b, t.__scopeTooltip), r = k(b, t.__scopeTooltip), n = s.useRef(null), c = N(o, n), [i, v] = s.useState(null), { trigger: a, onClose: p } = e, l = n.current, { onPointerInTransitChange: d } = r, h = s.useCallback(() => {
146
+ v(null), d(!1);
147
+ }, [d]), u = s.useCallback(
148
+ (m, C) => {
149
+ const T = m.currentTarget, g = { x: m.clientX, y: m.clientY }, y = me(g, T.getBoundingClientRect()), w = Te(g, y), P = Ce(C.getBoundingClientRect()), E = ge([...w, ...P]);
150
+ v(E), d(!0);
151
+ },
152
+ [d]
153
+ );
154
+ return s.useEffect(() => () => h(), [h]), s.useEffect(() => {
155
+ if (a && l) {
156
+ const m = (T) => u(T, l), C = (T) => u(T, a);
157
+ return a.addEventListener("pointerleave", m), l.addEventListener("pointerleave", C), () => {
158
+ a.removeEventListener("pointerleave", m), l.removeEventListener("pointerleave", C);
159
+ };
160
+ }
161
+ }, [a, l, u, h]), s.useEffect(() => {
162
+ if (i) {
163
+ const m = (C) => {
164
+ const T = C.target, g = { x: C.clientX, y: C.clientY }, y = a?.contains(T) || l?.contains(T), w = !ye(g, i);
165
+ y ? h() : w && (h(), p());
166
+ };
167
+ return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
168
+ }
169
+ }, [a, l, i, p, h]), /* @__PURE__ */ f(q, { ...t, ref: c });
170
+ }), [fe, ve] = O(R, { isInside: !1 }), he = re("TooltipContent"), q = s.forwardRef(
171
+ (t, o) => {
172
+ const {
173
+ __scopeTooltip: e,
174
+ children: r,
175
+ "aria-label": n,
176
+ onEscapeKeyDown: c,
177
+ onPointerDownOutside: i,
178
+ ...v
179
+ } = t, a = _(b, e), p = A(e), { onClose: l } = a;
180
+ return s.useEffect(() => (document.addEventListener(D, l), () => document.removeEventListener(D, l)), [l]), s.useEffect(() => {
181
+ if (a.trigger) {
182
+ const d = (h) => {
183
+ h.target?.contains(a.trigger) && l();
184
+ };
185
+ return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
186
+ }
187
+ }, [a.trigger, l]), /* @__PURE__ */ f(
188
+ $,
189
+ {
190
+ asChild: !0,
191
+ disableOutsidePointerEvents: !1,
192
+ onEscapeKeyDown: c,
193
+ onPointerDownOutside: i,
194
+ onFocusOutside: (d) => d.preventDefault(),
195
+ onDismiss: l,
196
+ children: /* @__PURE__ */ ae(
197
+ ee,
198
+ {
199
+ "data-state": a.stateAttribute,
200
+ ...p,
201
+ ...v,
202
+ ref: o,
203
+ style: {
204
+ ...v.style,
205
+ "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
206
+ "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
207
+ "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
208
+ "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
209
+ "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
210
+ },
211
+ children: [
212
+ /* @__PURE__ */ f(he, { children: r }),
213
+ /* @__PURE__ */ f(fe, { scope: e, isInside: !0, children: /* @__PURE__ */ f(se, { id: a.contentId, role: "tooltip", children: n || r }) })
214
+ ]
215
+ }
216
+ )
217
+ }
218
+ );
219
+ }
220
+ );
221
+ Y.displayName = b;
222
+ var X = "TooltipArrow", K = s.forwardRef(
223
+ (t, o) => {
224
+ const { __scopeTooltip: e, ...r } = t, n = A(e);
225
+ return ve(
226
+ X,
227
+ e
228
+ ).isInside ? null : /* @__PURE__ */ f(Q, { ...n, ...r, ref: o });
229
+ }
230
+ );
231
+ K.displayName = X;
232
+ function me(t, o) {
233
+ const e = Math.abs(o.top - t.y), r = Math.abs(o.bottom - t.y), n = Math.abs(o.right - t.x), c = Math.abs(o.left - t.x);
234
+ switch (Math.min(e, r, n, c)) {
235
+ case c:
236
+ return "left";
237
+ case n:
238
+ return "right";
239
+ case e:
240
+ return "top";
241
+ case r:
242
+ return "bottom";
243
+ default:
244
+ throw new Error("unreachable");
245
+ }
246
+ }
247
+ function Te(t, o, e = 5) {
248
+ const r = [];
249
+ switch (o) {
250
+ case "top":
251
+ r.push(
252
+ { x: t.x - e, y: t.y + e },
253
+ { x: t.x + e, y: t.y + e }
254
+ );
255
+ break;
256
+ case "bottom":
257
+ r.push(
258
+ { x: t.x - e, y: t.y - e },
259
+ { x: t.x + e, y: t.y - e }
260
+ );
261
+ break;
262
+ case "left":
263
+ r.push(
264
+ { x: t.x + e, y: t.y - e },
265
+ { x: t.x + e, y: t.y + e }
266
+ );
267
+ break;
268
+ case "right":
269
+ r.push(
270
+ { x: t.x - e, y: t.y - e },
271
+ { x: t.x - e, y: t.y + e }
272
+ );
273
+ break;
274
+ }
275
+ return r;
276
+ }
277
+ function Ce(t) {
278
+ const { top: o, right: e, bottom: r, left: n } = t;
279
+ return [
280
+ { x: n, y: o },
281
+ { x: e, y: o },
282
+ { x: e, y: r },
283
+ { x: n, y: r }
284
+ ];
285
+ }
286
+ function ye(t, o) {
287
+ const { x: e, y: r } = t;
288
+ let n = !1;
289
+ for (let c = 0, i = o.length - 1; c < o.length; i = c++) {
290
+ const v = o[c], a = o[i], p = v.x, l = v.y, d = a.x, h = a.y;
291
+ l > r != h > r && e < (d - p) * (r - l) / (h - l) + p && (n = !n);
292
+ }
293
+ return n;
294
+ }
295
+ function ge(t) {
296
+ const o = t.slice();
297
+ return o.sort((e, r) => e.x < r.x ? -1 : e.x > r.x ? 1 : e.y < r.y ? -1 : e.y > r.y ? 1 : 0), xe(o);
298
+ }
299
+ function xe(t) {
300
+ if (t.length <= 1) return t.slice();
301
+ const o = [];
302
+ for (let r = 0; r < t.length; r++) {
303
+ const n = t[r];
304
+ for (; o.length >= 2; ) {
305
+ const c = o[o.length - 1], i = o[o.length - 2];
306
+ if ((c.x - i.x) * (n.y - i.y) >= (c.y - i.y) * (n.x - i.x)) o.pop();
307
+ else break;
308
+ }
309
+ o.push(n);
310
+ }
311
+ o.pop();
312
+ const e = [];
313
+ for (let r = t.length - 1; r >= 0; r--) {
314
+ const n = t[r];
315
+ for (; e.length >= 2; ) {
316
+ const c = e[e.length - 1], i = e[e.length - 2];
317
+ if ((c.x - i.x) * (n.y - i.y) >= (c.y - i.y) * (n.x - i.x)) e.pop();
318
+ else break;
319
+ }
320
+ e.push(n);
321
+ }
322
+ return e.pop(), o.length === 1 && e.length === 1 && o[0].x === e[0].x && o[0].y === e[0].y ? o : o.concat(e);
323
+ }
324
+ var He = F, Ne = B, Se = U, Ge = V, je = Y, Fe = K;
325
+ export {
326
+ Fe as Arrow,
327
+ je as Content,
328
+ Ge as Portal,
329
+ He as Provider,
330
+ Ne as Root,
331
+ B as Tooltip,
332
+ K as TooltipArrow,
333
+ Y as TooltipContent,
334
+ V as TooltipPortal,
335
+ F as TooltipProvider,
336
+ U as TooltipTrigger,
337
+ Se as Trigger
338
+ };
@@ -0,0 +1,32 @@
1
+ import * as f from "react";
2
+ import "react-dom";
3
+ import { createSlot as l } from "../../react-slot/dist/index.js";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ var u = [
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
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], w = u.reduce((t, i) => {
24
+ const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: a, ...p } = e, s = a ? o : i;
26
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ export {
31
+ w as Primitive
32
+ };
@@ -0,0 +1,55 @@
1
+ import * as l from "react";
2
+ import { composeRefs as y } from "../../../../../react-compose-refs/dist/index.js";
3
+ import { jsx as p, Fragment as S } from "react/jsx-runtime";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function _(e) {
6
+ const r = /* @__PURE__ */ g(e), t = l.forwardRef((o, n) => {
7
+ const { children: i, ...a } = o, s = l.Children.toArray(i), c = s.find(E);
8
+ if (c) {
9
+ const f = c.props.children, m = s.map((u) => u === c ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : u);
10
+ return /* @__PURE__ */ p(r, { ...a, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, m) : null });
11
+ }
12
+ return /* @__PURE__ */ p(r, { ...a, ref: n, children: i });
13
+ });
14
+ return t.displayName = `${e}.Slot`, t;
15
+ }
16
+ // @__NO_SIDE_EFFECTS__
17
+ function g(e) {
18
+ const r = l.forwardRef((t, o) => {
19
+ const { children: n, ...i } = t;
20
+ if (l.isValidElement(n)) {
21
+ const a = b(n), s = C(i, n.props);
22
+ return n.type !== l.Fragment && (s.ref = o ? y(o, a) : a), l.cloneElement(n, s);
23
+ }
24
+ return l.Children.count(n) > 1 ? l.Children.only(null) : null;
25
+ });
26
+ return r.displayName = `${e}.SlotClone`, r;
27
+ }
28
+ var d = /* @__PURE__ */ Symbol("radix.slottable");
29
+ // @__NO_SIDE_EFFECTS__
30
+ function x(e) {
31
+ const r = ({ children: t }) => /* @__PURE__ */ p(S, { children: t });
32
+ return r.displayName = `${e}.Slottable`, r.__radixId = d, r;
33
+ }
34
+ function E(e) {
35
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
36
+ }
37
+ function C(e, r) {
38
+ const t = { ...r };
39
+ for (const o in r) {
40
+ const n = e[o], i = r[o];
41
+ /^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
42
+ const c = i(...s);
43
+ return n(...s), c;
44
+ } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
45
+ }
46
+ return { ...e, ...t };
47
+ }
48
+ function b(e) {
49
+ let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
50
+ return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
51
+ }
52
+ export {
53
+ _ as createSlot,
54
+ x as createSlottable
55
+ };
@@ -0,0 +1,10 @@
1
+ import * as e from "react";
2
+ function c(r) {
3
+ const t = e.useRef(r);
4
+ return e.useEffect(() => {
5
+ t.current = r;
6
+ }), e.useMemo(() => (...u) => t.current?.(...u), []);
7
+ }
8
+ export {
9
+ c as useCallbackRef
10
+ };