@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,136 @@
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function u(t) {
5
+ return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(t) {
8
+ var e;
9
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
10
+ }
11
+ function N(t) {
12
+ var e;
13
+ return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
14
+ }
15
+ function p(t) {
16
+ return c() ? t instanceof Node || t instanceof i(t).Node : !1;
17
+ }
18
+ function m(t) {
19
+ return c() ? t instanceof Element || t instanceof i(t).Element : !1;
20
+ }
21
+ function w(t) {
22
+ return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
23
+ }
24
+ function f(t) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
26
+ }
27
+ const E = /* @__PURE__ */ new Set(["inline", "contents"]);
28
+ function y(t) {
29
+ const {
30
+ overflow: e,
31
+ overflowX: n,
32
+ overflowY: o,
33
+ display: r
34
+ } = S(t);
35
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
36
+ }
37
+ const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
38
+ function A(t) {
39
+ return T.has(u(t));
40
+ }
41
+ const v = [":popover-open", ":modal"];
42
+ function L(t) {
43
+ return v.some((e) => {
44
+ try {
45
+ return t.matches(e);
46
+ } catch {
47
+ return !1;
48
+ }
49
+ });
50
+ }
51
+ const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
52
+ function V(t) {
53
+ const e = O(), n = m(t) ? S(t) : t;
54
+ return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
55
+ }
56
+ function B(t) {
57
+ let e = s(t);
58
+ for (; w(e) && !h(e); ) {
59
+ if (V(e))
60
+ return e;
61
+ if (L(e))
62
+ return null;
63
+ e = s(e);
64
+ }
65
+ return null;
66
+ }
67
+ function O() {
68
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
69
+ }
70
+ const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
71
+ function h(t) {
72
+ return R.has(u(t));
73
+ }
74
+ function S(t) {
75
+ return i(t).getComputedStyle(t);
76
+ }
77
+ function F(t) {
78
+ return m(t) ? {
79
+ scrollLeft: t.scrollLeft,
80
+ scrollTop: t.scrollTop
81
+ } : {
82
+ scrollLeft: t.scrollX,
83
+ scrollTop: t.scrollY
84
+ };
85
+ }
86
+ function s(t) {
87
+ if (u(t) === "html")
88
+ return t;
89
+ const e = (
90
+ // Step into the shadow DOM of the parent of a slotted node.
91
+ t.assignedSlot || // DOM Element detected.
92
+ t.parentNode || // ShadowRoot detected.
93
+ f(t) && t.host || // Fallback.
94
+ N(t)
95
+ );
96
+ return f(e) ? e.host : e;
97
+ }
98
+ function b(t) {
99
+ const e = s(t);
100
+ return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
101
+ }
102
+ function d(t, e, n) {
103
+ var o;
104
+ e === void 0 && (e = []), n === void 0 && (n = !0);
105
+ const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
106
+ if (g) {
107
+ const a = _(l);
108
+ return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
109
+ }
110
+ return e.concat(r, d(r, [], n));
111
+ }
112
+ function _(t) {
113
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
114
+ }
115
+ export {
116
+ S as getComputedStyle,
117
+ B as getContainingBlock,
118
+ N as getDocumentElement,
119
+ _ as getFrameElement,
120
+ b as getNearestOverflowAncestor,
121
+ u as getNodeName,
122
+ F as getNodeScroll,
123
+ d as getOverflowAncestors,
124
+ s as getParentNode,
125
+ i as getWindow,
126
+ V as isContainingBlock,
127
+ m as isElement,
128
+ w as isHTMLElement,
129
+ h as isLastTraversableNode,
130
+ p as isNode,
131
+ y as isOverflowElement,
132
+ f as isShadowRoot,
133
+ A as isTableElement,
134
+ L as isTopLayer,
135
+ O as isWebKit
136
+ };
@@ -0,0 +1,130 @@
1
+ const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, E = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), h = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ }, x = {
10
+ start: "end",
11
+ end: "start"
12
+ };
13
+ function R(t, e, n) {
14
+ return p(t, m(e, n));
15
+ }
16
+ function T(t, e) {
17
+ return typeof t == "function" ? t(e) : t;
18
+ }
19
+ function g(t) {
20
+ return t.split("-")[0];
21
+ }
22
+ function a(t) {
23
+ return t.split("-")[1];
24
+ }
25
+ function b(t) {
26
+ return t === "x" ? "y" : "x";
27
+ }
28
+ function d(t) {
29
+ return t === "y" ? "height" : "width";
30
+ }
31
+ const A = /* @__PURE__ */ new Set(["top", "bottom"]);
32
+ function P(t) {
33
+ return A.has(g(t)) ? "y" : "x";
34
+ }
35
+ function y(t) {
36
+ return b(P(t));
37
+ }
38
+ function k(t, e, n) {
39
+ n === void 0 && (n = !1);
40
+ const r = a(t), i = y(t), o = d(i);
41
+ let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
42
+ return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
43
+ }
44
+ function q(t) {
45
+ const e = f(t);
46
+ return [s(t), e, s(e)];
47
+ }
48
+ function s(t) {
49
+ return t.replace(/start|end/g, (e) => x[e]);
50
+ }
51
+ const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
52
+ function S(t, e, n) {
53
+ switch (t) {
54
+ case "top":
55
+ case "bottom":
56
+ return n ? e ? l : u : e ? u : l;
57
+ case "left":
58
+ case "right":
59
+ return e ? M : O;
60
+ default:
61
+ return [];
62
+ }
63
+ }
64
+ function z(t, e, n, r) {
65
+ const i = a(t);
66
+ let o = S(g(t), n === "start", r);
67
+ return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
68
+ }
69
+ function f(t) {
70
+ return t.replace(/left|right|bottom|top/g, (e) => h[e]);
71
+ }
72
+ function w(t) {
73
+ return {
74
+ top: 0,
75
+ right: 0,
76
+ bottom: 0,
77
+ left: 0,
78
+ ...t
79
+ };
80
+ }
81
+ function B(t) {
82
+ return typeof t != "number" ? w(t) : {
83
+ top: t,
84
+ right: t,
85
+ bottom: t,
86
+ left: t
87
+ };
88
+ }
89
+ function D(t) {
90
+ const {
91
+ x: e,
92
+ y: n,
93
+ width: r,
94
+ height: i
95
+ } = t;
96
+ return {
97
+ width: r,
98
+ height: i,
99
+ top: n,
100
+ left: e,
101
+ right: e + r,
102
+ bottom: n + i,
103
+ x: e,
104
+ y: n
105
+ };
106
+ }
107
+ export {
108
+ R as clamp,
109
+ E as createCoords,
110
+ T as evaluate,
111
+ w as expandPaddingObject,
112
+ L as floor,
113
+ a as getAlignment,
114
+ y as getAlignmentAxis,
115
+ k as getAlignmentSides,
116
+ d as getAxisLength,
117
+ q as getExpandedPlacements,
118
+ s as getOppositeAlignmentPlacement,
119
+ b as getOppositeAxis,
120
+ z as getOppositeAxisPlacements,
121
+ f as getOppositePlacement,
122
+ B as getPaddingObject,
123
+ g as getSide,
124
+ P as getSideAxis,
125
+ p as max,
126
+ m as min,
127
+ D as rectToClientRect,
128
+ C as round,
129
+ j as sides
130
+ };
@@ -0,0 +1,6 @@
1
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
3
+ }
4
+ export {
5
+ m as clamp
6
+ };
@@ -0,0 +1,9 @@
1
+ function f(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
2
+ return function(e) {
3
+ if (n?.(e), t === !1 || !e.defaultPrevented)
4
+ return r?.(e);
5
+ };
6
+ }
7
+ export {
8
+ f as composeEventHandlers
9
+ };
@@ -0,0 +1,235 @@
1
+ import s from "react";
2
+ import { createContextScope as Q } from "../../react-context/dist/index.js";
3
+ import { createCollection as W } from "../../react-collection/dist/index.js";
4
+ import { useComposedRefs as X } from "../../react-compose-refs/dist/index.js";
5
+ import { composeEventHandlers as Z } from "../../primitive/dist/index.js";
6
+ import { useControllableState as O } from "../../react-use-controllable-state/dist/index.js";
7
+ import { Primitive as T } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
8
+ import { Content as $, Root as ee, Trigger as oe, createCollapsibleScope as M } from "../../react-collapsible/dist/index.js";
9
+ import { useId as re } from "../../react-id/dist/index.js";
10
+ import { useDirection as te } from "../../react-direction/dist/index.js";
11
+ import { jsx as n } from "react/jsx-runtime";
12
+ var d = "Accordion", ne = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [E, ce, ie] = W(d), [b] = Q(d, [
13
+ ie,
14
+ M
15
+ ]), S = M(), V = s.forwardRef(
16
+ (o, c) => {
17
+ const { type: e, ...t } = o, i = t, r = t;
18
+ return /* @__PURE__ */ n(E.Provider, { scope: o.__scopeAccordion, children: e === "multiple" ? /* @__PURE__ */ n(de, { ...r, ref: c }) : /* @__PURE__ */ n(se, { ...i, ref: c }) });
19
+ }
20
+ );
21
+ V.displayName = d;
22
+ var [H, ae] = b(d), [K, le] = b(
23
+ d,
24
+ { collapsible: !1 }
25
+ ), se = s.forwardRef(
26
+ (o, c) => {
27
+ const {
28
+ value: e,
29
+ defaultValue: t,
30
+ onValueChange: i = () => {
31
+ },
32
+ collapsible: r = !1,
33
+ ...l
34
+ } = o, [a, p] = O({
35
+ prop: e,
36
+ defaultProp: t ?? "",
37
+ onChange: i,
38
+ caller: d
39
+ });
40
+ return /* @__PURE__ */ n(
41
+ H,
42
+ {
43
+ scope: o.__scopeAccordion,
44
+ value: s.useMemo(() => a ? [a] : [], [a]),
45
+ onItemOpen: p,
46
+ onItemClose: s.useCallback(() => r && p(""), [r, p]),
47
+ children: /* @__PURE__ */ n(K, { scope: o.__scopeAccordion, collapsible: r, children: /* @__PURE__ */ n(L, { ...l, ref: c }) })
48
+ }
49
+ );
50
+ }
51
+ ), de = s.forwardRef((o, c) => {
52
+ const {
53
+ value: e,
54
+ defaultValue: t,
55
+ onValueChange: i = () => {
56
+ },
57
+ ...r
58
+ } = o, [l, a] = O({
59
+ prop: e,
60
+ defaultProp: t ?? [],
61
+ onChange: i,
62
+ caller: d
63
+ }), p = s.useCallback(
64
+ (v) => a((u = []) => [...u, v]),
65
+ [a]
66
+ ), m = s.useCallback(
67
+ (v) => a((u = []) => u.filter((h) => h !== v)),
68
+ [a]
69
+ );
70
+ return /* @__PURE__ */ n(
71
+ H,
72
+ {
73
+ scope: o.__scopeAccordion,
74
+ value: l,
75
+ onItemOpen: p,
76
+ onItemClose: m,
77
+ children: /* @__PURE__ */ n(K, { scope: o.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ n(L, { ...r, ref: c }) })
78
+ }
79
+ );
80
+ }), [pe, I] = b(d), L = s.forwardRef(
81
+ (o, c) => {
82
+ const { __scopeAccordion: e, disabled: t, dir: i, orientation: r = "vertical", ...l } = o, a = s.useRef(null), p = X(a, c), m = ce(e), u = te(i) === "ltr", h = Z(o.onKeyDown, (C) => {
83
+ if (!ne.includes(C.key)) return;
84
+ const F = C.target, x = m().filter((N) => !N.ref.current?.disabled), A = x.findIndex((N) => N.ref.current === F), D = x.length;
85
+ if (A === -1) return;
86
+ C.preventDefault();
87
+ let f = A;
88
+ const _ = 0, w = D - 1, R = () => {
89
+ f = A + 1, f > w && (f = _);
90
+ }, P = () => {
91
+ f = A - 1, f < _ && (f = w);
92
+ };
93
+ switch (C.key) {
94
+ case "Home":
95
+ f = _;
96
+ break;
97
+ case "End":
98
+ f = w;
99
+ break;
100
+ case "ArrowRight":
101
+ r === "horizontal" && (u ? R() : P());
102
+ break;
103
+ case "ArrowDown":
104
+ r === "vertical" && R();
105
+ break;
106
+ case "ArrowLeft":
107
+ r === "horizontal" && (u ? P() : R());
108
+ break;
109
+ case "ArrowUp":
110
+ r === "vertical" && P();
111
+ break;
112
+ }
113
+ const J = f % D;
114
+ x[J].ref.current?.focus();
115
+ });
116
+ return /* @__PURE__ */ n(
117
+ pe,
118
+ {
119
+ scope: e,
120
+ disabled: t,
121
+ direction: i,
122
+ orientation: r,
123
+ children: /* @__PURE__ */ n(E.Slot, { scope: e, children: /* @__PURE__ */ n(
124
+ T.div,
125
+ {
126
+ ...l,
127
+ "data-orientation": r,
128
+ ref: p,
129
+ onKeyDown: t ? void 0 : h
130
+ }
131
+ ) })
132
+ }
133
+ );
134
+ }
135
+ ), g = "AccordionItem", [fe, k] = b(g), z = s.forwardRef(
136
+ (o, c) => {
137
+ const { __scopeAccordion: e, value: t, ...i } = o, r = I(g, e), l = ae(g, e), a = S(e), p = re(), m = t && l.value.includes(t) || !1, v = r.disabled || o.disabled;
138
+ return /* @__PURE__ */ n(
139
+ fe,
140
+ {
141
+ scope: e,
142
+ open: m,
143
+ disabled: v,
144
+ triggerId: p,
145
+ children: /* @__PURE__ */ n(
146
+ ee,
147
+ {
148
+ "data-orientation": r.orientation,
149
+ "data-state": B(m),
150
+ ...a,
151
+ ...i,
152
+ ref: c,
153
+ disabled: v,
154
+ open: m,
155
+ onOpenChange: (u) => {
156
+ u ? l.onItemOpen(t) : l.onItemClose(t);
157
+ }
158
+ }
159
+ )
160
+ }
161
+ );
162
+ }
163
+ );
164
+ z.displayName = g;
165
+ var G = "AccordionHeader", U = s.forwardRef(
166
+ (o, c) => {
167
+ const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(G, e);
168
+ return /* @__PURE__ */ n(
169
+ T.h3,
170
+ {
171
+ "data-orientation": i.orientation,
172
+ "data-state": B(r.open),
173
+ "data-disabled": r.disabled ? "" : void 0,
174
+ ...t,
175
+ ref: c
176
+ }
177
+ );
178
+ }
179
+ );
180
+ U.displayName = G;
181
+ var y = "AccordionTrigger", j = s.forwardRef(
182
+ (o, c) => {
183
+ const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(y, e), l = le(y, e), a = S(e);
184
+ return /* @__PURE__ */ n(E.ItemSlot, { scope: e, children: /* @__PURE__ */ n(
185
+ oe,
186
+ {
187
+ "aria-disabled": r.open && !l.collapsible || void 0,
188
+ "data-orientation": i.orientation,
189
+ id: r.triggerId,
190
+ ...a,
191
+ ...t,
192
+ ref: c
193
+ }
194
+ ) });
195
+ }
196
+ );
197
+ j.displayName = y;
198
+ var Y = "AccordionContent", q = s.forwardRef(
199
+ (o, c) => {
200
+ const { __scopeAccordion: e, ...t } = o, i = I(d, e), r = k(Y, e), l = S(e);
201
+ return /* @__PURE__ */ n(
202
+ $,
203
+ {
204
+ role: "region",
205
+ "aria-labelledby": r.triggerId,
206
+ "data-orientation": i.orientation,
207
+ ...l,
208
+ ...t,
209
+ ref: c,
210
+ style: {
211
+ "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
212
+ "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
213
+ ...o.style
214
+ }
215
+ }
216
+ );
217
+ }
218
+ );
219
+ q.displayName = Y;
220
+ function B(o) {
221
+ return o ? "open" : "closed";
222
+ }
223
+ var we = V, Re = z, Pe = U, Ne = j, ye = q;
224
+ export {
225
+ V as Accordion,
226
+ q as AccordionContent,
227
+ U as AccordionHeader,
228
+ z as AccordionItem,
229
+ j as AccordionTrigger,
230
+ ye as Content,
231
+ Pe as Header,
232
+ Re as Item,
233
+ we as Root,
234
+ Ne as Trigger
235
+ };
@@ -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,24 @@
1
+ import * as n from "react";
2
+ import { Primitive as p } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
3
+ import { jsx as o } from "react/jsx-runtime";
4
+ var v = "Arrow", e = n.forwardRef((r, i) => {
5
+ const { children: t, width: a = 10, height: s = 5, ...m } = r;
6
+ return /* @__PURE__ */ o(
7
+ p.svg,
8
+ {
9
+ ...m,
10
+ ref: i,
11
+ width: a,
12
+ height: s,
13
+ viewBox: "0 0 30 10",
14
+ preserveAspectRatio: "none",
15
+ children: r.asChild ? t : /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
16
+ }
17
+ );
18
+ });
19
+ e.displayName = v;
20
+ var h = e;
21
+ export {
22
+ e as Arrow,
23
+ h as Root
24
+ };
@@ -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
+ };