@validationcloud/fractal-ui 1.55.0 → 1.57.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 (124) hide show
  1. package/dist/charts.d.ts +9 -0
  2. package/dist/charts.js +25 -0
  3. package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +17 -6
  4. package/dist/{src/components → components}/echarts-renderer/mavrik-theme-horizontal.json.js +10 -8
  5. package/dist/components/echarts-renderer/mavrik-theme.d.ts +30 -0
  6. package/dist/components/echarts-renderer/mavrik-theme.js +25 -0
  7. package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +17 -6
  8. package/dist/{src/components → components}/echarts-renderer/mavrik-theme.json.js +10 -8
  9. package/dist/components/echarts-renderer/sanitize-chart-options-for-static-rendering.d.ts +9 -0
  10. package/dist/components/echarts-renderer/sanitize-chart-options-for-static-rendering.js +21 -0
  11. package/dist/components/select/select.d.ts +10 -8
  12. package/dist/{src/components → components}/select/select.js +43 -43
  13. package/dist/fonts/OFL.txt +93 -0
  14. package/dist/fonts/Poppins-Bold.ttf +0 -0
  15. package/dist/fonts/Poppins-Medium.ttf +0 -0
  16. package/dist/fonts/Poppins-Regular.ttf +0 -0
  17. package/dist/fonts/Poppins-SemiBold.ttf +0 -0
  18. package/dist/index.d.ts +0 -6
  19. package/dist/index.js +59 -74
  20. package/dist/lib/render-chart-to-image.d.ts +8 -1
  21. package/dist/lib/render-chart-to-image.js +83 -0
  22. package/dist/lib/render-mavrik-chart-to-image.d.ts +2 -1
  23. package/dist/lib/render-mavrik-chart-to-image.js +22 -0
  24. package/dist/server.d.ts +2 -0
  25. package/dist/server.js +6 -2
  26. package/package.json +11 -11
  27. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  28. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  29. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  30. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  31. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  32. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +0 -6
  33. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  34. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@1_d580df0584800d3ed24dd50bc4bb768c/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  35. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_965c21727754e936eeb7d35183788fa0/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
  36. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js +0 -53
  37. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
  38. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.6_@types_react-dom@19.2.3_@types_react@19.2.6__@t_c6844451b48448597731ceee2c7ec947/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  39. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -18
  40. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_1236dc37c73a65e17034434472fa319b/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  41. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  42. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_875fb0de6110028421a3e7790df757e0/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  43. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_5324bcb5f7050b43e9225714ff37edcd/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  44. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js +0 -35
  45. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_6ddc7a756051e26689ab8a69ff12c731/node_modules/@radix-ui/react-select/dist/index.js +0 -821
  46. package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js +0 -48
  47. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  48. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -32
  49. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  50. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  51. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  52. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  53. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_06b3b0029799d875b5a80b38402a9c14/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -30
  54. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  55. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
  56. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  57. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  58. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  59. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  60. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  61. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  62. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  63. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  64. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  65. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.6_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  66. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  67. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  68. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.6_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  69. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -27
  70. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  71. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  72. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.6_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  73. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  74. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
  75. package/dist/src/components/echarts-renderer/mavrik-theme.js +0 -23
  76. package/dist/src/lib/render-chart-to-image.js +0 -51
  77. /package/dist/{src/assets → assets}/animated-loader.svg.js +0 -0
  78. /package/dist/{src/assets → assets}/default-avatar.svg.js +0 -0
  79. /package/dist/{src/assets → assets}/not-found.svg.js +0 -0
  80. /package/dist/{src/assets → assets}/vc-logo.svg.js +0 -0
  81. /package/dist/{src/components → components}/animated-loader/animated-loader.js +0 -0
  82. /package/dist/{src/components → components}/badge/badge.js +0 -0
  83. /package/dist/{src/components → components}/box/box.js +0 -0
  84. /package/dist/{src/components → components}/button/button.js +0 -0
  85. /package/dist/{src/components → components}/client-modal/client-modal.js +0 -0
  86. /package/dist/{src/components → components}/collapsible/collapsible.js +0 -0
  87. /package/dist/{src/components → components}/copy-button/copy-button.js +0 -0
  88. /package/dist/{src/components → components}/decorated-icon/decorated-icon.js +0 -0
  89. /package/dist/{src/components → components}/dropdown-menu/dropdown-menu.js +0 -0
  90. /package/dist/{src/components → components}/echarts-renderer/calculate-title-layout.js +0 -0
  91. /package/dist/{src/components → components}/echarts-renderer/detect-horizontal-bars.js +0 -0
  92. /package/dist/{src/components → components}/echarts-renderer/echarts-chart-option.js +0 -0
  93. /package/dist/{src/components → components}/echarts-renderer/echarts-renderer.js +0 -0
  94. /package/dist/{src/components → components}/echarts-renderer/echarts-theme-option.js +0 -0
  95. /package/dist/{src/components → components}/echarts-renderer/mavrik-chart.js +0 -0
  96. /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options.js +0 -0
  97. /package/dist/{src/components → components}/echarts-renderer/use-chart-instance.js +0 -0
  98. /package/dist/{src/components → components}/echarts-renderer/watermark-graphic.js +0 -0
  99. /package/dist/{src/components → components}/error-boundary/error-boundary.js +0 -0
  100. /package/dist/{src/components → components}/icon/icon.js +0 -0
  101. /package/dist/{src/components → components}/icon-button/icon-button.js +0 -0
  102. /package/dist/{src/components → components}/input-button/input-button.js +0 -0
  103. /package/dist/{src/components → components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
  104. /package/dist/{src/components → components}/not-found-component/not-found-component.js +0 -0
  105. /package/dist/{src/components → components}/page-padding/page-padding.js +0 -0
  106. /package/dist/{src/components → components}/protocol-logo/protocol-logo.js +0 -0
  107. /package/dist/{src/components → components}/scroll-area/index.js +0 -0
  108. /package/dist/{src/components → components}/scroll-area/scroll-area-viewport.js +0 -0
  109. /package/dist/{src/components → components}/scroll-area/scroll-area.js +0 -0
  110. /package/dist/{src/components → components}/skeleton/skeleton.js +0 -0
  111. /package/dist/{src/components → components}/switch/switch.js +0 -0
  112. /package/dist/{src/components → components}/text-input/text-input.js +0 -0
  113. /package/dist/{src/components → components}/tooltip/tooltip.js +0 -0
  114. /package/dist/{src/components → components}/tooltip-provider/tooltip-provider.js +0 -0
  115. /package/dist/{src/components → components}/touch-target/touch-target.js +0 -0
  116. /package/dist/{src/components → components}/user-dropdown/user-dropdown.js +0 -0
  117. /package/dist/{src/components → components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
  118. /package/dist/{src/hooks → hooks}/use-scroll-to-bottom.js +0 -0
  119. /package/dist/{src/internal → internal}/modal-header.js +0 -0
  120. /package/dist/{src/internal → internal}/modal.js +0 -0
  121. /package/dist/{src/internal → internal}/react-portal.js +0 -0
  122. /package/dist/{src/internal → internal}/round-button.js +0 -0
  123. /package/dist/{src/lib → lib}/tailwind-merge.js +0 -0
  124. /package/dist/{src/utils → utils}/disable-password-managers.js +0 -0
@@ -1,137 +0,0 @@
1
- "use client";
2
- import * as d from "react";
3
- import { useComposedRefs as R } from "@radix-ui/react-compose-refs";
4
- import { Primitive as M } from "../../../../../@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js";
5
- import { useCallbackRef as y } from "../../../../../@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
6
- import { jsx as _ } from "react/jsx-runtime";
7
- var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, t) => {
8
- const {
9
- loop: n = !1,
10
- trapped: u = !1,
11
- onMountAutoFocus: p,
12
- onUnmountAutoFocus: L,
13
- ...g
14
- } = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(t, (s) => U(s)), a = d.useRef({
15
- paused: !1,
16
- pause() {
17
- this.paused = !0;
18
- },
19
- resume() {
20
- this.paused = !1;
21
- }
22
- }).current;
23
- d.useEffect(() => {
24
- if (u) {
25
- let s = function(i) {
26
- if (a.paused || !o) return;
27
- const c = i.target;
28
- o.contains(c) ? b.current = c : f(b.current, { select: !0 });
29
- }, l = function(i) {
30
- if (a.paused || !o) return;
31
- const c = i.relatedTarget;
32
- c !== null && (o.contains(c) || f(b.current, { select: !0 }));
33
- }, r = function(i) {
34
- if (document.activeElement === document.body)
35
- for (const h of i)
36
- h.removedNodes.length > 0 && f(o);
37
- };
38
- document.addEventListener("focusin", s), document.addEventListener("focusout", l);
39
- const m = new MutationObserver(r);
40
- return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
41
- document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
42
- };
43
- }
44
- }, [u, o, a.paused]), d.useEffect(() => {
45
- if (o) {
46
- O.add(a);
47
- const s = document.activeElement;
48
- if (!o.contains(s)) {
49
- const r = new CustomEvent(F, N);
50
- o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(W(I(o)), { select: !0 }), document.activeElement === s && f(o));
51
- }
52
- return () => {
53
- o.removeEventListener(F, E), setTimeout(() => {
54
- const r = new CustomEvent(T, N);
55
- o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), O.remove(a);
56
- }, 0);
57
- };
58
- }
59
- }, [o, E, v, a]);
60
- const P = d.useCallback(
61
- (s) => {
62
- if (!n && !u || a.paused) return;
63
- const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
64
- if (l && r) {
65
- const m = s.currentTarget, [i, c] = x(m);
66
- i && c ? !s.shiftKey && r === c ? (s.preventDefault(), n && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), n && f(c, { select: !0 })) : r === m && s.preventDefault();
67
- }
68
- },
69
- [n, u, a.paused]
70
- );
71
- return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
72
- });
73
- k.displayName = K;
74
- function w(e, { select: t = !1 } = {}) {
75
- const n = document.activeElement;
76
- for (const u of e)
77
- if (f(u, { select: t }), document.activeElement !== n) return;
78
- }
79
- function x(e) {
80
- const t = I(e), n = S(t, e), u = S(t.reverse(), e);
81
- return [n, u];
82
- }
83
- function I(e) {
84
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
85
- acceptNode: (u) => {
86
- const p = u.tagName === "INPUT" && u.type === "hidden";
87
- return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
88
- }
89
- });
90
- for (; n.nextNode(); ) t.push(n.currentNode);
91
- return t;
92
- }
93
- function S(e, t) {
94
- for (const n of e)
95
- if (!D(n, { upTo: t })) return n;
96
- }
97
- function D(e, { upTo: t }) {
98
- if (getComputedStyle(e).visibility === "hidden") return !0;
99
- for (; e; ) {
100
- if (t !== void 0 && e === t) return !1;
101
- if (getComputedStyle(e).display === "none") return !0;
102
- e = e.parentElement;
103
- }
104
- return !1;
105
- }
106
- function H(e) {
107
- return e instanceof HTMLInputElement && "select" in e;
108
- }
109
- function f(e, { select: t = !1 } = {}) {
110
- if (e && e.focus) {
111
- const n = document.activeElement;
112
- e.focus({ preventScroll: !0 }), e !== n && H(e) && t && e.select();
113
- }
114
- }
115
- var O = V();
116
- function V() {
117
- let e = [];
118
- return {
119
- add(t) {
120
- const n = e[0];
121
- t !== n && n?.pause(), e = C(e, t), e.unshift(t);
122
- },
123
- remove(t) {
124
- e = C(e, t), e[0]?.resume();
125
- }
126
- };
127
- }
128
- function C(e, t) {
129
- const n = [...e], u = n.indexOf(t);
130
- return u !== -1 && n.splice(u, 1), n;
131
- }
132
- function W(e) {
133
- return e.filter((t) => t.tagName !== "A");
134
- }
135
- export {
136
- k as FocusScope
137
- };
@@ -1,13 +0,0 @@
1
- import * as e from "react";
2
- import { useLayoutEffect as a } from "../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
3
- var s = e[" useId ".trim().toString()] || (() => {
4
- }), i = 0;
5
- function d(r) {
6
- const [t, o] = e.useState(s());
7
- return a(() => {
8
- o((u) => u ?? String(i++));
9
- }, [r]), t ? `radix-${t}` : "";
10
- }
11
- export {
12
- d as useId
13
- };
@@ -1,219 +0,0 @@
1
- "use client";
2
- import * as s from "react";
3
- import { useFloating as fe, offset as me, shift as he, flip as ge, size as ue, arrow as we, hide as Pe, limitShift as xe } from "../../../../../@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
4
- import { Root as ye } from "../../../../../@radix-ui_react-arrow@1.1.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@1_d580df0584800d3ed24dd50bc4bb768c/node_modules/@radix-ui/react-arrow/dist/index.js";
5
- import { useComposedRefs as I } from "@radix-ui/react-compose-refs";
6
- import { createContextScope as Ae } from "../../../../../@radix-ui_react-context@1.1.2_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.js";
7
- import { Primitive as Y } from "../../../../../@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js";
8
- import { useCallbackRef as ve } from "../../../../../@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
9
- import { useLayoutEffect as z } from "../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
10
- import { useSize as Ce } from "../../../../../@radix-ui_react-use-size@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.js";
11
- import { jsx as f } from "react/jsx-runtime";
12
- import { autoUpdate as Se } from "../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
13
- var b = "Popper", [M, ke] = Ae(b), [be, X] = M(b), D = (e) => {
14
- const { __scopePopper: a, children: o } = e, [i, n] = s.useState(null);
15
- return /* @__PURE__ */ f(be, { scope: a, anchor: i, onAnchorChange: n, children: o });
16
- };
17
- D.displayName = b;
18
- var F = "PopperAnchor", k = s.forwardRef(
19
- (e, a) => {
20
- const { __scopePopper: o, virtualRef: i, ...n } = e, t = X(F, o), r = s.useRef(null), g = I(a, r);
21
- return s.useEffect(() => {
22
- t.onAnchorChange(i?.current || r.current);
23
- }), i ? null : /* @__PURE__ */ f(Y.div, { ...n, ref: g });
24
- }
25
- );
26
- k.displayName = F;
27
- var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
28
- (e, a) => {
29
- const {
30
- __scopePopper: o,
31
- side: i = "bottom",
32
- sideOffset: n = 0,
33
- align: t = "center",
34
- alignOffset: r = 0,
35
- arrowPadding: g = 0,
36
- avoidCollisions: p = !0,
37
- collisionBoundary: c = [],
38
- collisionPadding: u = 0,
39
- sticky: m = "partial",
40
- hideWhenDetached: P = !1,
41
- updatePositionStrategy: x = "optimized",
42
- onPlaced: d,
43
- ...l
44
- } = e, Z = X(O, o), [C, U] = s.useState(null), q = I(a, (w) => U(w)), [S, G] = s.useState(null), R = Ce(S), J = R?.width ?? 0, E = R?.height ?? 0, K = i + (t !== "center" ? "-" + t : ""), Q = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
45
- padding: Q,
46
- boundary: N.filter(Ne),
47
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
48
- altBoundary: V
49
- }, { refs: ee, floatingStyles: _, placement: te, isPositioned: A, middlewareData: h } = fe({
50
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
51
- strategy: "fixed",
52
- placement: K,
53
- whileElementsMounted: (...w) => Se(...w, {
54
- animationFrame: x === "always"
55
- }),
56
- elements: {
57
- reference: Z.anchor
58
- },
59
- middleware: [
60
- me({ mainAxis: n + E, alignmentAxis: r }),
61
- p && he({
62
- mainAxis: !0,
63
- crossAxis: !1,
64
- limiter: m === "partial" ? xe() : void 0,
65
- ...y
66
- }),
67
- p && ge({ ...y }),
68
- ue({
69
- ...y,
70
- apply: ({ elements: w, rects: W, availableWidth: pe, availableHeight: ce }) => {
71
- const { width: le, height: de } = W.reference, v = w.floating.style;
72
- v.setProperty("--radix-popper-available-width", `${pe}px`), v.setProperty("--radix-popper-available-height", `${ce}px`), v.setProperty("--radix-popper-anchor-width", `${le}px`), v.setProperty("--radix-popper-anchor-height", `${de}px`);
73
- }
74
- }),
75
- S && we({ element: S, padding: g }),
76
- _e({ arrowWidth: J, arrowHeight: E }),
77
- P && Pe({ strategy: "referenceHidden", ...y })
78
- ]
79
- }), [$, re] = L(te), H = ve(d);
80
- z(() => {
81
- A && H?.();
82
- }, [A, H]);
83
- const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = s.useState();
84
- return z(() => {
85
- C && se(window.getComputedStyle(C).zIndex);
86
- }, [C]), /* @__PURE__ */ f(
87
- "div",
88
- {
89
- ref: ee.setFloating,
90
- "data-radix-popper-content-wrapper": "",
91
- style: {
92
- ..._,
93
- transform: A ? _.transform : "translate(0, -200%)",
94
- // keep off the page when measuring
95
- minWidth: "max-content",
96
- zIndex: ie,
97
- "--radix-popper-transform-origin": [
98
- h.transformOrigin?.x,
99
- h.transformOrigin?.y
100
- ].join(" "),
101
- // hide the content if using the hide middleware and should be hidden
102
- // set visibility to hidden and disable pointer events so the UI behaves
103
- // as if the PopperContent isn't there at all
104
- ...h.hide?.referenceHidden && {
105
- visibility: "hidden",
106
- pointerEvents: "none"
107
- }
108
- },
109
- dir: e.dir,
110
- children: /* @__PURE__ */ f(
111
- Oe,
112
- {
113
- scope: o,
114
- placedSide: $,
115
- onArrowChange: G,
116
- arrowX: oe,
117
- arrowY: ne,
118
- shouldHideArrow: ae,
119
- children: /* @__PURE__ */ f(
120
- Y.div,
121
- {
122
- "data-side": $,
123
- "data-align": re,
124
- ...l,
125
- ref: q,
126
- style: {
127
- ...l.style,
128
- // if the PopperContent hasn't been placed yet (not all measurements done)
129
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
130
- animation: A ? void 0 : "none"
131
- }
132
- }
133
- )
134
- }
135
- )
136
- }
137
- );
138
- }
139
- );
140
- B.displayName = O;
141
- var T = "PopperArrow", Ee = {
142
- top: "bottom",
143
- right: "left",
144
- bottom: "top",
145
- left: "right"
146
- }, j = s.forwardRef(function(a, o) {
147
- const { __scopePopper: i, ...n } = a, t = Re(T, i), r = Ee[t.placedSide];
148
- return (
149
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
150
- // doesn't report size as we'd expect on SVG elements.
151
- // it reports their bounding box which is effectively the largest path inside the SVG.
152
- /* @__PURE__ */ f(
153
- "span",
154
- {
155
- ref: t.onArrowChange,
156
- style: {
157
- position: "absolute",
158
- left: t.arrowX,
159
- top: t.arrowY,
160
- [r]: 0,
161
- transformOrigin: {
162
- top: "",
163
- right: "0 0",
164
- bottom: "center 0",
165
- left: "100% 0"
166
- }[t.placedSide],
167
- transform: {
168
- top: "translateY(100%)",
169
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
170
- bottom: "rotate(180deg)",
171
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
172
- }[t.placedSide],
173
- visibility: t.shouldHideArrow ? "hidden" : void 0
174
- },
175
- children: /* @__PURE__ */ f(
176
- ye,
177
- {
178
- ...n,
179
- ref: o,
180
- style: {
181
- ...n.style,
182
- // ensures the element can be measured correctly (mostly for if SVG)
183
- display: "block"
184
- }
185
- }
186
- )
187
- }
188
- )
189
- );
190
- });
191
- j.displayName = T;
192
- function Ne(e) {
193
- return e !== null;
194
- }
195
- var _e = (e) => ({
196
- name: "transformOrigin",
197
- options: e,
198
- fn(a) {
199
- const { placement: o, rects: i, middlewareData: n } = a, r = n.arrow?.centerOffset !== 0, g = r ? 0 : e.arrowWidth, p = r ? 0 : e.arrowHeight, [c, u] = L(o), m = { start: "0%", center: "50%", end: "100%" }[u], P = (n.arrow?.x ?? 0) + g / 2, x = (n.arrow?.y ?? 0) + p / 2;
200
- let d = "", l = "";
201
- return c === "bottom" ? (d = r ? m : `${P}px`, l = `${-p}px`) : c === "top" ? (d = r ? m : `${P}px`, l = `${i.floating.height + p}px`) : c === "right" ? (d = `${-p}px`, l = r ? m : `${x}px`) : c === "left" && (d = `${i.floating.width + p}px`, l = r ? m : `${x}px`), { data: { x: d, y: l } };
202
- }
203
- });
204
- function L(e) {
205
- const [a, o = "center"] = e.split("-");
206
- return [a, o];
207
- }
208
- var Be = D, Te = k, je = B, Le = j;
209
- export {
210
- Te as Anchor,
211
- Le as Arrow,
212
- je as Content,
213
- D as Popper,
214
- k as PopperAnchor,
215
- j as PopperArrow,
216
- B as PopperContent,
217
- Be as Root,
218
- ke as createPopperScope
219
- };
@@ -1,16 +0,0 @@
1
- "use client";
2
- import * as o from "react";
3
- import f from "react-dom";
4
- import { Primitive as m } from "../../../../../@radix-ui_react-primitive@2.0.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_87a4386c2964ee4c9c162dadc854f596/node_modules/@radix-ui/react-primitive/dist/index.js";
5
- import { useLayoutEffect as c } from "../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
6
- import { jsx as u } from "react/jsx-runtime";
7
- var l = "Portal", p = o.forwardRef((r, e) => {
8
- const { container: a, ...i } = r, [n, s] = o.useState(!1);
9
- c(() => s(!0), []);
10
- const t = a || n && globalThis?.document?.body;
11
- return t ? f.createPortal(/* @__PURE__ */ u(m.div, { ...i, ref: e }), t) : null;
12
- });
13
- p.displayName = l;
14
- export {
15
- p as Portal
16
- };
@@ -1,35 +0,0 @@
1
- import * as f from "react";
2
- import * as p from "react-dom";
3
- import { createSlot as c } from "../../../../../@radix-ui_react-slot@1.2.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.js";
4
- import { jsx as u } from "react/jsx-runtime";
5
- var 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
- ], h = l.reduce((t, i) => {
23
- const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
24
- const { asChild: a, ...s } = e, n = a ? o : i;
25
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...s, ref: m });
26
- });
27
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
28
- }, {});
29
- function w(t, i) {
30
- t && p.flushSync(() => t.dispatchEvent(i));
31
- }
32
- export {
33
- h as Primitive,
34
- w as dispatchDiscreteCustomEvent
35
- };