@validationcloud/fractal-ui 1.53.0 → 1.55.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.
- package/dist/components/collapsible/collapsible.d.ts +14 -0
- package/dist/components/select/select.d.ts +23 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +72 -65
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- 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 +208 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- 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 +24 -0
- 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 +49 -0
- 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 +53 -0
- 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 +10 -0
- 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 +128 -0
- 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 +18 -0
- 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 +137 -0
- 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 +13 -0
- 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 +219 -0
- 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 +16 -0
- 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 +35 -0
- 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 +821 -0
- 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 +48 -0
- 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 +10 -0
- 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 +32 -0
- 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 +14 -0
- 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 +6 -0
- 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 +8 -0
- 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 +27 -0
- 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 +30 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- 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 +71 -0
- 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 +7 -0
- 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 +25 -0
- 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 +11 -0
- 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 +112 -0
- 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 +31 -0
- 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 +16 -0
- 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 +68 -0
- 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 +5 -0
- 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 +7 -0
- 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 +11 -0
- 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 +15 -0
- 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 +30 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +27 -0
- 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 +6 -0
- 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 +26 -0
- 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 +25 -0
- 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 +18 -0
- 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 +67 -0
- package/dist/server.js +1 -1
- package/dist/src/components/collapsible/collapsible.js +29 -0
- package/dist/src/components/select/select.js +105 -0
- package/dist/styles/animation.css +40 -0
- package/package.json +2 -1
- /package/dist/{assets → src/assets}/animated-loader.svg.js +0 -0
- /package/dist/{assets → src/assets}/default-avatar.svg.js +0 -0
- /package/dist/{assets → src/assets}/not-found.svg.js +0 -0
- /package/dist/{assets → src/assets}/vc-logo.svg.js +0 -0
- /package/dist/{components → src/components}/animated-loader/animated-loader.js +0 -0
- /package/dist/{components → src/components}/badge/badge.js +0 -0
- /package/dist/{components → src/components}/box/box.js +0 -0
- /package/dist/{components → src/components}/button/button.js +0 -0
- /package/dist/{components → src/components}/client-modal/client-modal.js +0 -0
- /package/dist/{components → src/components}/copy-button/copy-button.js +0 -0
- /package/dist/{components → src/components}/decorated-icon/decorated-icon.js +0 -0
- /package/dist/{components → src/components}/dropdown-menu/dropdown-menu.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/calculate-title-layout.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/detect-horizontal-bars.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-chart-option.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-renderer.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/echarts-theme-option.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-chart.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme-horizontal.json.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.json.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/sanitize-chart-options.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/use-chart-instance.js +0 -0
- /package/dist/{components → src/components}/echarts-renderer/watermark-graphic.js +0 -0
- /package/dist/{components → src/components}/error-boundary/error-boundary.js +0 -0
- /package/dist/{components → src/components}/icon/icon.js +0 -0
- /package/dist/{components → src/components}/icon-button/icon-button.js +0 -0
- /package/dist/{components → src/components}/input-button/input-button.js +0 -0
- /package/dist/{components → src/components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
- /package/dist/{components → src/components}/not-found-component/not-found-component.js +0 -0
- /package/dist/{components → src/components}/page-padding/page-padding.js +0 -0
- /package/dist/{components → src/components}/protocol-logo/protocol-logo.js +0 -0
- /package/dist/{components → src/components}/scroll-area/index.js +0 -0
- /package/dist/{components → src/components}/scroll-area/scroll-area-viewport.js +0 -0
- /package/dist/{components → src/components}/scroll-area/scroll-area.js +0 -0
- /package/dist/{components → src/components}/skeleton/skeleton.js +0 -0
- /package/dist/{components → src/components}/switch/switch.js +0 -0
- /package/dist/{components → src/components}/text-input/text-input.js +0 -0
- /package/dist/{components → src/components}/tooltip/tooltip.js +0 -0
- /package/dist/{components → src/components}/tooltip-provider/tooltip-provider.js +0 -0
- /package/dist/{components → src/components}/touch-target/touch-target.js +0 -0
- /package/dist/{components → src/components}/user-dropdown/user-dropdown.js +0 -0
- /package/dist/{components → src/components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
- /package/dist/{hooks → src/hooks}/use-scroll-to-bottom.js +0 -0
- /package/dist/{internal → src/internal}/modal-header.js +0 -0
- /package/dist/{internal → src/internal}/modal.js +0 -0
- /package/dist/{internal → src/internal}/react-portal.js +0 -0
- /package/dist/{internal → src/internal}/round-button.js +0 -0
- /package/dist/{lib → src/lib}/render-chart-to-image.js +0 -0
- /package/dist/{lib → src/lib}/tailwind-merge.js +0 -0
- /package/dist/{utils → src/utils}/disable-password-managers.js +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getNonce as o } from "../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
c as stylesheetSingleton
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var p = function() {
|
|
2
|
+
return p = Object.assign || function(e) {
|
|
3
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
4
|
+
n = arguments[r];
|
|
5
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6
|
+
}
|
|
7
|
+
return e;
|
|
8
|
+
}, p.apply(this, arguments);
|
|
9
|
+
};
|
|
10
|
+
function c(t, e) {
|
|
11
|
+
var n = {};
|
|
12
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
13
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
14
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
|
15
|
+
e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
|
|
16
|
+
return n;
|
|
17
|
+
}
|
|
18
|
+
function l(t, e, n) {
|
|
19
|
+
if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
|
|
20
|
+
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
21
|
+
return t.concat(a || Array.prototype.slice.call(e));
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
p as __assign,
|
|
25
|
+
c as __rest,
|
|
26
|
+
l as __spreadArray
|
|
27
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { assignRef as o } from "./assignRef.js";
|
|
3
|
+
import { useCallbackRef as l } from "./useRef.js";
|
|
4
|
+
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function v(e, m) {
|
|
6
|
+
var t = l(null, function(n) {
|
|
7
|
+
return e.forEach(function(u) {
|
|
8
|
+
return o(u, n);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
return s(function() {
|
|
12
|
+
var n = c.get(t);
|
|
13
|
+
if (n) {
|
|
14
|
+
var u = new Set(n), r = new Set(e), i = t.current;
|
|
15
|
+
u.forEach(function(a) {
|
|
16
|
+
r.has(a) || o(a, null);
|
|
17
|
+
}), r.forEach(function(a) {
|
|
18
|
+
u.has(a) || o(a, i);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
c.set(t, e);
|
|
22
|
+
}, [e]), t;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
v as useMergeRefs
|
|
26
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useState as u } from "react";
|
|
2
|
+
function n(c, r) {
|
|
3
|
+
var e = u(function() {
|
|
4
|
+
return {
|
|
5
|
+
// value
|
|
6
|
+
value: c,
|
|
7
|
+
// last callback
|
|
8
|
+
callback: r,
|
|
9
|
+
// "memoized" public interface
|
|
10
|
+
facade: {
|
|
11
|
+
get current() {
|
|
12
|
+
return e.value;
|
|
13
|
+
},
|
|
14
|
+
set current(a) {
|
|
15
|
+
var t = e.value;
|
|
16
|
+
t !== a && (e.value = a, e.callback(a, t));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
})[0];
|
|
21
|
+
return e.callback = r, e.facade;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
n as useCallbackRef
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __rest as o, __assign as d } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
var i = function(r) {
|
|
4
|
+
var e = r.sideCar, a = o(r, ["sideCar"]);
|
|
5
|
+
if (!e)
|
|
6
|
+
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
7
|
+
var t = e.read();
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error("Sidecar medium not found");
|
|
10
|
+
return n.createElement(t, d({}, a));
|
|
11
|
+
};
|
|
12
|
+
i.isSideCarExport = !0;
|
|
13
|
+
function p(r, e) {
|
|
14
|
+
return r.useMedium(e), i;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
p as exportSidecar
|
|
18
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { __assign as d } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return r;
|
|
4
|
+
}
|
|
5
|
+
function h(r, t) {
|
|
6
|
+
t === void 0 && (t = l);
|
|
7
|
+
var e = [], o = !1, c = {
|
|
8
|
+
read: function() {
|
|
9
|
+
if (o)
|
|
10
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
+
return e.length ? e[e.length - 1] : r;
|
|
12
|
+
},
|
|
13
|
+
useMedium: function(u) {
|
|
14
|
+
var n = t(u, o);
|
|
15
|
+
return e.push(n), function() {
|
|
16
|
+
e = e.filter(function(i) {
|
|
17
|
+
return i !== n;
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
assignSyncMedium: function(u) {
|
|
22
|
+
for (o = !0; e.length; ) {
|
|
23
|
+
var n = e;
|
|
24
|
+
e = [], n.forEach(u);
|
|
25
|
+
}
|
|
26
|
+
e = {
|
|
27
|
+
push: function(i) {
|
|
28
|
+
return u(i);
|
|
29
|
+
},
|
|
30
|
+
filter: function() {
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
assignMedium: function(u) {
|
|
36
|
+
o = !0;
|
|
37
|
+
var n = [];
|
|
38
|
+
if (e.length) {
|
|
39
|
+
var i = e;
|
|
40
|
+
e = [], i.forEach(u), n = e;
|
|
41
|
+
}
|
|
42
|
+
var s = function() {
|
|
43
|
+
var f = n;
|
|
44
|
+
n = [], f.forEach(u);
|
|
45
|
+
}, a = function() {
|
|
46
|
+
return Promise.resolve().then(s);
|
|
47
|
+
};
|
|
48
|
+
a(), e = {
|
|
49
|
+
push: function(f) {
|
|
50
|
+
n.push(f), a();
|
|
51
|
+
},
|
|
52
|
+
filter: function(f) {
|
|
53
|
+
return n = n.filter(f), e;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
function v(r) {
|
|
61
|
+
r === void 0 && (r = {});
|
|
62
|
+
var t = h(null);
|
|
63
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
v as createSidecarMedium
|
|
67
|
+
};
|
package/dist/server.js
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Collapsible as t } from "radix-ui";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { twMerge as r } from "../../lib/tailwind-merge.js";
|
|
5
|
+
const p = s(
|
|
6
|
+
({ className: a, ...e }, l) => /* @__PURE__ */ o(t.Root, { ref: l, className: r(a), ...e })
|
|
7
|
+
);
|
|
8
|
+
p.displayName = "Collapsible";
|
|
9
|
+
const n = s(({ className: a, ...e }, l) => /* @__PURE__ */ o(t.Trigger, { ref: l, className: r(a), ...e }));
|
|
10
|
+
n.displayName = "CollapsibleTrigger";
|
|
11
|
+
const m = s(({ className: a, orientation: e = "vertical", ...l }, i) => /* @__PURE__ */ o(
|
|
12
|
+
t.Content,
|
|
13
|
+
{
|
|
14
|
+
ref: i,
|
|
15
|
+
className: r(
|
|
16
|
+
"overflow-hidden",
|
|
17
|
+
e === "vertical" && "data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",
|
|
18
|
+
e === "horizontal" && "data-[state=closed]:animate-collapsible-in data-[state=open]:animate-collapsible-out",
|
|
19
|
+
a
|
|
20
|
+
),
|
|
21
|
+
...l
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
m.displayName = "CollapsibleContent";
|
|
25
|
+
export {
|
|
26
|
+
p as Collapsible,
|
|
27
|
+
m as CollapsibleContent,
|
|
28
|
+
n as CollapsibleTrigger
|
|
29
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { SelectItem as p, SelectItemText as u, Select as m, SelectTrigger as x, SelectValue as b, SelectIcon as f, SelectPortal as y, SelectContent as S, SelectScrollUpButton as w, SelectViewport as v, SelectScrollDownButton as N } from "../../../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";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { Icon as d } from "../icon/icon.js";
|
|
5
|
+
import { twMerge as a } from "../../lib/tailwind-merge.js";
|
|
6
|
+
const I = i(
|
|
7
|
+
({ className: e, children: r, textValue: o, ...c }, s) => {
|
|
8
|
+
const l = o !== void 0 && o !== "";
|
|
9
|
+
return /* @__PURE__ */ n(
|
|
10
|
+
p,
|
|
11
|
+
{
|
|
12
|
+
className: a(
|
|
13
|
+
"tg-button-small text-neutral-40 data-highlighted:text-neutral-30 relative flex cursor-pointer items-center select-none data-disabled:pointer-events-none data-disabled:text-neutral-50 data-disabled:line-through data-highlighted:bg-(--bg-hover-color) data-highlighted:outline-none data-[state=checked]:text-white",
|
|
14
|
+
// corner radius:
|
|
15
|
+
"rounded-[calc(var(--content-radius)-(var(--content-padding)))]",
|
|
16
|
+
// padding:
|
|
17
|
+
"px-(--item-padding-x) py-(--item-padding-y)",
|
|
18
|
+
e
|
|
19
|
+
),
|
|
20
|
+
textValue: o,
|
|
21
|
+
...c,
|
|
22
|
+
ref: s,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ t(u, { children: /* @__PURE__ */ t("span", { children: l ? o : r }) }),
|
|
25
|
+
l && r
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
I.displayName = "SelectItem";
|
|
32
|
+
const _ = i(
|
|
33
|
+
({ variant: e = "primary", size: r = "large", placeholder: o, children: c, className: s, contentClassName: l, ...g }, h) => /* @__PURE__ */ n(m, { ...g, children: [
|
|
34
|
+
/* @__PURE__ */ n(
|
|
35
|
+
x,
|
|
36
|
+
{
|
|
37
|
+
ref: h,
|
|
38
|
+
className: a(
|
|
39
|
+
"group inline-flex items-center justify-between outline-none",
|
|
40
|
+
// size:
|
|
41
|
+
r === "small" && "tg-caption-bold h-8 gap-2 rounded-lg px-2 py-1.5",
|
|
42
|
+
r === "large" && "gap-r6 tg-button-small h-9 rounded-xl px-4 py-2",
|
|
43
|
+
// variants:
|
|
44
|
+
e === "primary" && "bg-neutral-60 focus:shadow-neutral-40 text-white",
|
|
45
|
+
e === "secondary" && "border-neutral-55 bg-neutral-70 text-neutral-40 border",
|
|
46
|
+
e === "ghost" && "text-neutral-40 h-auto bg-transparent p-0",
|
|
47
|
+
// :hover:
|
|
48
|
+
e === "primary" && "hover:bg-neutral-55",
|
|
49
|
+
e === "secondary" && "hover:text-neutral-30 hover:border-neutral-50",
|
|
50
|
+
e === "ghost" && "hover:text-neutral-10",
|
|
51
|
+
// :focus:
|
|
52
|
+
e === "primary" && "focus:shadow-[0_0_0_2px]",
|
|
53
|
+
e === "secondary" && "focus:border-neutral-10",
|
|
54
|
+
e === "ghost" && "focus:text-neutral-10",
|
|
55
|
+
s
|
|
56
|
+
),
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ t(b, { placeholder: o }),
|
|
59
|
+
/* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
60
|
+
d,
|
|
61
|
+
{
|
|
62
|
+
icon: "chevron",
|
|
63
|
+
className: a(
|
|
64
|
+
r === "small" && "size-2",
|
|
65
|
+
r === "large" && "-mr-1 size-3",
|
|
66
|
+
e === "primary" && "text-white",
|
|
67
|
+
e === "secondary" && "text-neutral-40 group-hover:text-neutral-30",
|
|
68
|
+
e === "ghost" && "text-neutral-40 group-hover:text-neutral-10 group-focus:text-neutral-10"
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
) })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ t(y, { children: /* @__PURE__ */ n(
|
|
76
|
+
S,
|
|
77
|
+
{
|
|
78
|
+
className: a(
|
|
79
|
+
r === "small" && "[--content-padding:--spacing(1)] [--content-radius:--spacing(2.5)] [--item-padding-x:--spacing(2)] [--item-padding-y:--spacing(1.5)]",
|
|
80
|
+
r === "large" && "[--content-padding:--spacing(1.5)] [--content-radius:--spacing(4)] [--item-padding-x:--spacing(4)] [--item-padding-y:--spacing(2)]",
|
|
81
|
+
"rounded-(--content-radius)",
|
|
82
|
+
// variants:
|
|
83
|
+
e === "primary" && "[--bg-color:var(--color-neutral-60)] [--bg-hover-color:var(--color-neutral-55)]",
|
|
84
|
+
e === "secondary" && "[--bg-color:var(--color-neutral-70)] [--bg-hover-color:var(--color-neutral-60)]",
|
|
85
|
+
"text-neutral-40 max-h-(--radix-select-content-available-height) w-(--radix-select-trigger-width) overflow-hidden bg-(--bg-color) shadow-[0px_8px_20px_2px_rgba(0,0,0,0.40)]",
|
|
86
|
+
e === "ghost" && "bg-neutral-80 [--bg-hover-color:var(--color-neutral-60)]",
|
|
87
|
+
l
|
|
88
|
+
),
|
|
89
|
+
position: "popper",
|
|
90
|
+
align: "end",
|
|
91
|
+
sideOffset: 4,
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ t(w, { className: "flex h-6 cursor-default items-center justify-center bg-(--bg-color) text-white hover:bg-(--bg-hover-color)", children: /* @__PURE__ */ t(d, { icon: "chevron", className: "size-3 -scale-y-100 text-white" }) }),
|
|
94
|
+
/* @__PURE__ */ t(v, { className: "p-(--content-padding)", children: c }),
|
|
95
|
+
/* @__PURE__ */ t(N, { className: "flex h-6 cursor-default items-center justify-center bg-(--bg-color) text-white hover:bg-(--bg-hover-color)", children: /* @__PURE__ */ t(d, { icon: "chevron", className: "size-3 text-white" }) })
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
) })
|
|
99
|
+
] })
|
|
100
|
+
);
|
|
101
|
+
_.displayName = "Select";
|
|
102
|
+
export {
|
|
103
|
+
_ as Select,
|
|
104
|
+
I as SelectItem
|
|
105
|
+
};
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
--animate-tooltip-enter: fade-in 150ms ease-out, scale-up-50 100ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
9
9
|
--animate-tooltip-delayed-enter: fade-in 150ms ease-out, scale-up-50 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
10
10
|
--animate-tooltip-exit: fade-out 100ms ease-in, scale-down-50 100ms ease-in;
|
|
11
|
+
--animate-collapsible-down: collapsible-slide-down 150ms ease-out;
|
|
12
|
+
--animate-collapsible-up: collapsible-slide-up 150ms ease-out;
|
|
13
|
+
--animate-collapsible-in: collapsible-slide-in 150ms ease-out;
|
|
14
|
+
--animate-collapsible-out: collapsible-slide-out 150ms ease-out;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
@keyframes fade-in {
|
|
@@ -81,3 +85,39 @@
|
|
|
81
85
|
transform: translateX(100%);
|
|
82
86
|
}
|
|
83
87
|
}
|
|
88
|
+
|
|
89
|
+
@keyframes collapsible-slide-down {
|
|
90
|
+
from {
|
|
91
|
+
height: 0;
|
|
92
|
+
}
|
|
93
|
+
to {
|
|
94
|
+
height: var(--radix-collapsible-content-height);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes collapsible-slide-up {
|
|
99
|
+
from {
|
|
100
|
+
height: var(--radix-collapsible-content-height);
|
|
101
|
+
}
|
|
102
|
+
to {
|
|
103
|
+
height: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@keyframes collapsible-slide-in {
|
|
108
|
+
from {
|
|
109
|
+
width: var(--radix-collapsible-content-width);
|
|
110
|
+
}
|
|
111
|
+
to {
|
|
112
|
+
width: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes collapsible-slide-out {
|
|
117
|
+
from {
|
|
118
|
+
width: 0;
|
|
119
|
+
}
|
|
120
|
+
to {
|
|
121
|
+
width: var(--radix-collapsible-content-width);
|
|
122
|
+
}
|
|
123
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validationcloud/fractal-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.55.0",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"node": ">=22.14.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
+
"@radix-ui/react-select": "^2.1.7",
|
|
48
49
|
"radix-ui": "^1",
|
|
49
50
|
"react": "^19",
|
|
50
51
|
"react-dom": "^19",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{components → src/components}/echarts-renderer/mavrik-theme-horizontal.json.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|