@validationcloud/fractal-ui 1.56.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.
- package/dist/charts.js +9 -9
- package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +2 -6
- package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +2 -6
- package/dist/components/select/select.d.ts +10 -8
- package/dist/{src/components → components}/select/select.js +43 -43
- package/dist/index.js +29 -29
- package/dist/lib/render-chart-to-image.d.ts +0 -14
- package/dist/{src/lib → lib}/render-chart-to-image.js +18 -19
- package/dist/server.js +3 -3
- package/package.json +3 -4
- package/dist/lib/get-echarts-module.d.ts +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- 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
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -27
- 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
- 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
- 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
- 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
- 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
- package/dist/src/lib/get-echarts-module.js +0 -8
- /package/dist/{src/assets → assets}/animated-loader.svg.js +0 -0
- /package/dist/{src/assets → assets}/default-avatar.svg.js +0 -0
- /package/dist/{src/assets → assets}/not-found.svg.js +0 -0
- /package/dist/{src/assets → assets}/vc-logo.svg.js +0 -0
- /package/dist/{src/components → components}/animated-loader/animated-loader.js +0 -0
- /package/dist/{src/components → components}/badge/badge.js +0 -0
- /package/dist/{src/components → components}/box/box.js +0 -0
- /package/dist/{src/components → components}/button/button.js +0 -0
- /package/dist/{src/components → components}/client-modal/client-modal.js +0 -0
- /package/dist/{src/components → components}/collapsible/collapsible.js +0 -0
- /package/dist/{src/components → components}/copy-button/copy-button.js +0 -0
- /package/dist/{src/components → components}/decorated-icon/decorated-icon.js +0 -0
- /package/dist/{src/components → components}/dropdown-menu/dropdown-menu.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/calculate-title-layout.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/detect-horizontal-bars.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-chart-option.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-renderer.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/echarts-theme-option.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-chart.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-theme-horizontal.json.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-theme.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/mavrik-theme.json.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options-for-static-rendering.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/use-chart-instance.js +0 -0
- /package/dist/{src/components → components}/echarts-renderer/watermark-graphic.js +0 -0
- /package/dist/{src/components → components}/error-boundary/error-boundary.js +0 -0
- /package/dist/{src/components → components}/icon/icon.js +0 -0
- /package/dist/{src/components → components}/icon-button/icon-button.js +0 -0
- /package/dist/{src/components → components}/input-button/input-button.js +0 -0
- /package/dist/{src/components → components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
- /package/dist/{src/components → components}/not-found-component/not-found-component.js +0 -0
- /package/dist/{src/components → components}/page-padding/page-padding.js +0 -0
- /package/dist/{src/components → components}/protocol-logo/protocol-logo.js +0 -0
- /package/dist/{src/components → components}/scroll-area/index.js +0 -0
- /package/dist/{src/components → components}/scroll-area/scroll-area-viewport.js +0 -0
- /package/dist/{src/components → components}/scroll-area/scroll-area.js +0 -0
- /package/dist/{src/components → components}/skeleton/skeleton.js +0 -0
- /package/dist/{src/components → components}/switch/switch.js +0 -0
- /package/dist/{src/components → components}/text-input/text-input.js +0 -0
- /package/dist/{src/components → components}/tooltip/tooltip.js +0 -0
- /package/dist/{src/components → components}/tooltip-provider/tooltip-provider.js +0 -0
- /package/dist/{src/components → components}/touch-target/touch-target.js +0 -0
- /package/dist/{src/components → components}/user-dropdown/user-dropdown.js +0 -0
- /package/dist/{src/components → components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
- /package/dist/{src/hooks → hooks}/use-scroll-to-bottom.js +0 -0
- /package/dist/{src/internal → internal}/modal-header.js +0 -0
- /package/dist/{src/internal → internal}/modal.js +0 -0
- /package/dist/{src/internal → internal}/react-portal.js +0 -0
- /package/dist/{src/internal → internal}/round-button.js +0 -0
- /package/dist/{src/lib → lib}/render-mavrik-chart-to-image.js +0 -0
- /package/dist/{src/lib → lib}/tailwind-merge.js +0 -0
- /package/dist/{src/utils → utils}/disable-password-managers.js +0 -0
package/dist/charts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EChartsRenderer as o } from "./
|
|
2
|
-
import { EChartsThemeOption as a, isEChartsThemeOption as i } from "./
|
|
3
|
-
import { EChartsChartOption as s, isEChartsChartOption as h } from "./
|
|
4
|
-
import { useChartInstance as n } from "./
|
|
5
|
-
import { MavrikChart as E } from "./
|
|
6
|
-
import { MAVRIK_THEME as x, MAVRIK_THEME_HORIZONTAL as O, selectMavrikTheme as R } from "./
|
|
7
|
-
import { hasHorizontalBars as M } from "./
|
|
8
|
-
import { WATERMARK_GRAPHIC as H, addWatermarkToOptions as I } from "./
|
|
9
|
-
import { sanitizeChartOptionsForStaticRendering as _ } from "./
|
|
1
|
+
import { EChartsRenderer as o } from "./components/echarts-renderer/echarts-renderer.js";
|
|
2
|
+
import { EChartsThemeOption as a, isEChartsThemeOption as i } from "./components/echarts-renderer/echarts-theme-option.js";
|
|
3
|
+
import { EChartsChartOption as s, isEChartsChartOption as h } from "./components/echarts-renderer/echarts-chart-option.js";
|
|
4
|
+
import { useChartInstance as n } from "./components/echarts-renderer/use-chart-instance.js";
|
|
5
|
+
import { MavrikChart as E } from "./components/echarts-renderer/mavrik-chart.js";
|
|
6
|
+
import { MAVRIK_THEME as x, MAVRIK_THEME_HORIZONTAL as O, selectMavrikTheme as R } from "./components/echarts-renderer/mavrik-theme.js";
|
|
7
|
+
import { hasHorizontalBars as M } from "./components/echarts-renderer/detect-horizontal-bars.js";
|
|
8
|
+
import { WATERMARK_GRAPHIC as H, addWatermarkToOptions as I } from "./components/echarts-renderer/watermark-graphic.js";
|
|
9
|
+
import { sanitizeChartOptionsForStaticRendering as _ } from "./components/echarts-renderer/sanitize-chart-options-for-static-rendering.js";
|
|
10
10
|
export {
|
|
11
11
|
s as EChartsChartOption,
|
|
12
12
|
o as EChartsRenderer,
|
|
@@ -136,9 +136,7 @@ declare const _default: {
|
|
|
136
136
|
"splitLine": {
|
|
137
137
|
"show": true,
|
|
138
138
|
"lineStyle": {
|
|
139
|
-
"color": [
|
|
140
|
-
"#3A3D46"
|
|
141
|
-
],
|
|
139
|
+
"color": ["#3A3D46"],
|
|
142
140
|
"type": "dashed"
|
|
143
141
|
}
|
|
144
142
|
}
|
|
@@ -164,9 +162,7 @@ declare const _default: {
|
|
|
164
162
|
"splitLine": {
|
|
165
163
|
"show": true,
|
|
166
164
|
"lineStyle": {
|
|
167
|
-
"color": [
|
|
168
|
-
"#3A3D46"
|
|
169
|
-
],
|
|
165
|
+
"color": ["#3A3D46"],
|
|
170
166
|
"type": "dashed"
|
|
171
167
|
}
|
|
172
168
|
}
|
|
@@ -136,9 +136,7 @@ declare const _default: {
|
|
|
136
136
|
"splitLine": {
|
|
137
137
|
"show": true,
|
|
138
138
|
"lineStyle": {
|
|
139
|
-
"color": [
|
|
140
|
-
"#3A3D46"
|
|
141
|
-
],
|
|
139
|
+
"color": ["#3A3D46"],
|
|
142
140
|
"type": "dashed"
|
|
143
141
|
}
|
|
144
142
|
}
|
|
@@ -164,9 +162,7 @@ declare const _default: {
|
|
|
164
162
|
"splitLine": {
|
|
165
163
|
"show": true,
|
|
166
164
|
"lineStyle": {
|
|
167
|
-
"color": [
|
|
168
|
-
"#3A3D46"
|
|
169
|
-
],
|
|
165
|
+
"color": ["#3A3D46"],
|
|
170
166
|
"type": "dashed"
|
|
171
167
|
}
|
|
172
168
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
1
2
|
/**
|
|
2
3
|
* SelectItem is a wrapper around Radix's Select.Item component, meant to be used with the Select component.
|
|
3
4
|
* It applies project-specific styling to the Radix's component.
|
|
@@ -6,7 +7,14 @@
|
|
|
6
7
|
* - The trigger will display `textValue` when this item is selected
|
|
7
8
|
* - The `children` will be displayed as custom content in the dropdown
|
|
8
9
|
*/
|
|
9
|
-
export declare const SelectItem: import('react').ForwardRefExoticComponent<Omit<
|
|
10
|
+
export declare const SelectItem: import('react').ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement | null>>;
|
|
11
|
+
export interface SelectProps extends SelectPrimitive.SelectProps {
|
|
12
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
13
|
+
size?: 'small' | 'large';
|
|
14
|
+
className?: string;
|
|
15
|
+
contentClassName?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
}
|
|
10
18
|
/**
|
|
11
19
|
* Select is a wrapper around Radix's Select component.
|
|
12
20
|
* It applies project-specific styling to the Radix's component.
|
|
@@ -14,10 +22,4 @@ export declare const SelectItem: import('react').ForwardRefExoticComponent<Omit<
|
|
|
14
22
|
*
|
|
15
23
|
* @see {@link https://radix-ui.com/primitives/docs/components/select}
|
|
16
24
|
*/
|
|
17
|
-
export declare const Select: import('react').ForwardRefExoticComponent<
|
|
18
|
-
variant?: "primary" | "secondary" | "ghost";
|
|
19
|
-
size?: "small" | "large";
|
|
20
|
-
className?: string;
|
|
21
|
-
contentClassName?: string;
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
} & import('@radix-ui/react-select').SelectProps & import('react').RefAttributes<HTMLButtonElement | null>>;
|
|
25
|
+
export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLButtonElement | null>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { twMerge as
|
|
6
|
-
const
|
|
7
|
-
({ className: e, children:
|
|
8
|
-
const l =
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Select as r } from "radix-ui";
|
|
3
|
+
import { forwardRef as g } from "react";
|
|
4
|
+
import { Icon as i } from "../icon/icon.js";
|
|
5
|
+
import { twMerge as c } from "../../lib/tailwind-merge.js";
|
|
6
|
+
const u = g(
|
|
7
|
+
({ className: e, children: o, textValue: n, ...s }, d) => {
|
|
8
|
+
const l = n !== void 0 && n !== "";
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
r.Item,
|
|
11
11
|
{
|
|
12
|
-
className:
|
|
12
|
+
className: c(
|
|
13
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
14
|
// corner radius:
|
|
15
15
|
"rounded-[calc(var(--content-radius)-(var(--content-padding)))]",
|
|
@@ -17,29 +17,29 @@ const I = i(
|
|
|
17
17
|
"px-(--item-padding-x) py-(--item-padding-y)",
|
|
18
18
|
e
|
|
19
19
|
),
|
|
20
|
-
textValue:
|
|
21
|
-
...
|
|
22
|
-
ref:
|
|
20
|
+
textValue: n,
|
|
21
|
+
...s,
|
|
22
|
+
ref: d,
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */ t(
|
|
25
|
-
l &&
|
|
24
|
+
/* @__PURE__ */ t(r.ItemText, { children: /* @__PURE__ */ t("span", { children: l ? n : o }) }),
|
|
25
|
+
l && o
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
({ variant: e = "primary", size:
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
31
|
+
u.displayName = "SelectItem";
|
|
32
|
+
const m = g(
|
|
33
|
+
({ variant: e = "primary", size: o = "large", placeholder: n, children: s, className: d, contentClassName: l, ...h }, p) => /* @__PURE__ */ a(r.Root, { ...h, children: [
|
|
34
|
+
/* @__PURE__ */ a(
|
|
35
|
+
r.Trigger,
|
|
36
36
|
{
|
|
37
|
-
ref:
|
|
38
|
-
className:
|
|
37
|
+
ref: p,
|
|
38
|
+
className: c(
|
|
39
39
|
"group inline-flex items-center justify-between outline-none",
|
|
40
40
|
// size:
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
o === "small" && "tg-caption-bold h-8 gap-2 rounded-lg px-2 py-1.5",
|
|
42
|
+
o === "large" && "gap-r6 tg-button-small h-9 rounded-xl px-4 py-2",
|
|
43
43
|
// variants:
|
|
44
44
|
e === "primary" && "bg-neutral-60 focus:shadow-neutral-40 text-white",
|
|
45
45
|
e === "secondary" && "border-neutral-55 bg-neutral-70 text-neutral-40 border",
|
|
@@ -52,17 +52,17 @@ const _ = i(
|
|
|
52
52
|
e === "primary" && "focus:shadow-[0_0_0_2px]",
|
|
53
53
|
e === "secondary" && "focus:border-neutral-10",
|
|
54
54
|
e === "ghost" && "focus:text-neutral-10",
|
|
55
|
-
|
|
55
|
+
d
|
|
56
56
|
),
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */ t(
|
|
59
|
-
/* @__PURE__ */ t(
|
|
60
|
-
|
|
58
|
+
/* @__PURE__ */ t(r.Value, { placeholder: n }),
|
|
59
|
+
/* @__PURE__ */ t(r.Icon, { children: /* @__PURE__ */ t(
|
|
60
|
+
i,
|
|
61
61
|
{
|
|
62
62
|
icon: "chevron",
|
|
63
|
-
className:
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
className: c(
|
|
64
|
+
o === "small" && "size-2",
|
|
65
|
+
o === "large" && "-mr-1 size-3",
|
|
66
66
|
e === "primary" && "text-white",
|
|
67
67
|
e === "secondary" && "text-neutral-40 group-hover:text-neutral-30",
|
|
68
68
|
e === "ghost" && "text-neutral-40 group-hover:text-neutral-10 group-focus:text-neutral-10"
|
|
@@ -72,12 +72,12 @@ const _ = i(
|
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
/* @__PURE__ */ t(
|
|
76
|
-
|
|
75
|
+
/* @__PURE__ */ t(r.Portal, { children: /* @__PURE__ */ a(
|
|
76
|
+
r.Content,
|
|
77
77
|
{
|
|
78
|
-
className:
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
className: c(
|
|
79
|
+
o === "small" && "[--content-padding:--spacing(1)] [--content-radius:--spacing(2.5)] [--item-padding-x:--spacing(2)] [--item-padding-y:--spacing(1.5)]",
|
|
80
|
+
o === "large" && "[--content-padding:--spacing(1.5)] [--content-radius:--spacing(4)] [--item-padding-x:--spacing(4)] [--item-padding-y:--spacing(2)]",
|
|
81
81
|
"rounded-(--content-radius)",
|
|
82
82
|
// variants:
|
|
83
83
|
e === "primary" && "[--bg-color:var(--color-neutral-60)] [--bg-hover-color:var(--color-neutral-55)]",
|
|
@@ -90,16 +90,16 @@ const _ = i(
|
|
|
90
90
|
align: "end",
|
|
91
91
|
sideOffset: 4,
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */ t(
|
|
94
|
-
/* @__PURE__ */ t(
|
|
95
|
-
/* @__PURE__ */ t(
|
|
93
|
+
/* @__PURE__ */ t(r.ScrollUpButton, { className: "flex h-6 cursor-default items-center justify-center bg-(--bg-color) text-white hover:bg-(--bg-hover-color)", children: /* @__PURE__ */ t(i, { icon: "chevron", className: "size-3 -scale-y-100 text-white" }) }),
|
|
94
|
+
/* @__PURE__ */ t(r.Viewport, { className: "p-(--content-padding)", children: s }),
|
|
95
|
+
/* @__PURE__ */ t(r.ScrollDownButton, { className: "flex h-6 cursor-default items-center justify-center bg-(--bg-color) text-white hover:bg-(--bg-hover-color)", children: /* @__PURE__ */ t(i, { icon: "chevron", className: "size-3 text-white" }) })
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
) })
|
|
99
99
|
] })
|
|
100
100
|
);
|
|
101
|
-
|
|
101
|
+
m.displayName = "Select";
|
|
102
102
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
m as Select,
|
|
104
|
+
u as SelectItem
|
|
105
105
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { AnimatedLoader as e } from "./
|
|
2
|
-
import { Badge as p } from "./
|
|
3
|
-
import { Box as x } from "./
|
|
4
|
-
import { Button as n } from "./
|
|
5
|
-
import { ClientModal as d } from "./
|
|
6
|
-
import { Collapsible as i, CollapsibleContent as u, CollapsibleTrigger as c } from "./
|
|
7
|
-
import { CopyButton as B } from "./
|
|
8
|
-
import { DecoratedIcon as C } from "./
|
|
9
|
-
import { DropdownMenu as T, DropdownMenuItem as s } from "./
|
|
10
|
-
import { ErrorBoundary as M } from "./
|
|
11
|
-
import { ScrollArea as b } from "./
|
|
12
|
-
import { Icon as h } from "./
|
|
13
|
-
import { IconButton as y } from "./
|
|
14
|
-
import { InputButton as L } from "./
|
|
15
|
-
import { MountSvgSprite as k } from "./
|
|
16
|
-
import { NotFoundComponent as F } from "./
|
|
17
|
-
import { PagePadding as j } from "./
|
|
18
|
-
import { ProtocolLogo as z } from "./
|
|
19
|
-
import { Select as H, SelectItem as J } from "./
|
|
20
|
-
import { Skeleton as O } from "./
|
|
21
|
-
import { Switch as R } from "./
|
|
22
|
-
import { TextInput as W } from "./
|
|
23
|
-
import { Tooltip as Y } from "./
|
|
24
|
-
import { TooltipProvider as _ } from "./
|
|
25
|
-
import { TouchTarget as oo } from "./
|
|
26
|
-
import { twMerge as eo } from "./
|
|
27
|
-
import { UserDropdown as po } from "./
|
|
28
|
-
import { UserDropdownMobile as xo } from "./
|
|
29
|
-
import { useScrollToBottom as no } from "./
|
|
1
|
+
import { AnimatedLoader as e } from "./components/animated-loader/animated-loader.js";
|
|
2
|
+
import { Badge as p } from "./components/badge/badge.js";
|
|
3
|
+
import { Box as x } from "./components/box/box.js";
|
|
4
|
+
import { Button as n } from "./components/button/button.js";
|
|
5
|
+
import { ClientModal as d } from "./components/client-modal/client-modal.js";
|
|
6
|
+
import { Collapsible as i, CollapsibleContent as u, CollapsibleTrigger as c } from "./components/collapsible/collapsible.js";
|
|
7
|
+
import { CopyButton as B } from "./components/copy-button/copy-button.js";
|
|
8
|
+
import { DecoratedIcon as C } from "./components/decorated-icon/decorated-icon.js";
|
|
9
|
+
import { DropdownMenu as T, DropdownMenuItem as s } from "./components/dropdown-menu/dropdown-menu.js";
|
|
10
|
+
import { ErrorBoundary as M } from "./components/error-boundary/error-boundary.js";
|
|
11
|
+
import { ScrollArea as b } from "./components/scroll-area/index.js";
|
|
12
|
+
import { Icon as h } from "./components/icon/icon.js";
|
|
13
|
+
import { IconButton as y } from "./components/icon-button/icon-button.js";
|
|
14
|
+
import { InputButton as L } from "./components/input-button/input-button.js";
|
|
15
|
+
import { MountSvgSprite as k } from "./components/mount-svg-sprite/mount-svg-sprite.js";
|
|
16
|
+
import { NotFoundComponent as F } from "./components/not-found-component/not-found-component.js";
|
|
17
|
+
import { PagePadding as j } from "./components/page-padding/page-padding.js";
|
|
18
|
+
import { ProtocolLogo as z } from "./components/protocol-logo/protocol-logo.js";
|
|
19
|
+
import { Select as H, SelectItem as J } from "./components/select/select.js";
|
|
20
|
+
import { Skeleton as O } from "./components/skeleton/skeleton.js";
|
|
21
|
+
import { Switch as R } from "./components/switch/switch.js";
|
|
22
|
+
import { TextInput as W } from "./components/text-input/text-input.js";
|
|
23
|
+
import { Tooltip as Y } from "./components/tooltip/tooltip.js";
|
|
24
|
+
import { TooltipProvider as _ } from "./components/tooltip-provider/tooltip-provider.js";
|
|
25
|
+
import { TouchTarget as oo } from "./components/touch-target/touch-target.js";
|
|
26
|
+
import { twMerge as eo } from "./lib/tailwind-merge.js";
|
|
27
|
+
import { UserDropdown as po } from "./components/user-dropdown/user-dropdown.js";
|
|
28
|
+
import { UserDropdownMobile as xo } from "./components/user-dropdown-mobile/user-dropdown-mobile.js";
|
|
29
|
+
import { useScrollToBottom as no } from "./hooks/use-scroll-to-bottom.js";
|
|
30
30
|
export {
|
|
31
31
|
e as AnimatedLoader,
|
|
32
32
|
p as Badge,
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import { EChartsInitOpts } from 'echarts';
|
|
2
|
-
/**
|
|
3
|
-
* Minimal ECharts interface for server-side rendering.
|
|
4
|
-
* Only includes the methods needed by renderChartToImage.
|
|
5
|
-
*/
|
|
6
|
-
export interface EChartsModule {
|
|
7
|
-
registerTheme: (name: string, theme: Record<string, unknown>) => void;
|
|
8
|
-
init: (dom?: any, theme?: string | Record<string, unknown> | null, opts?: EChartsInitOpts) => EChartsInstance;
|
|
9
|
-
}
|
|
10
|
-
interface EChartsInstance {
|
|
11
|
-
setOption: (option: unknown) => void;
|
|
12
|
-
dispose: () => void;
|
|
13
|
-
}
|
|
14
1
|
export interface RenderChartToImageOptions {
|
|
15
2
|
option: unknown;
|
|
16
3
|
theme?: Record<string, unknown>;
|
|
@@ -46,4 +33,3 @@ export interface RenderChartToImageOptions {
|
|
|
46
33
|
* ```
|
|
47
34
|
*/
|
|
48
35
|
export declare function renderChartToImage({ option, theme, includeWatermark, width, height, devicePixelRatio, }: RenderChartToImageOptions): Buffer;
|
|
49
|
-
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import * as p from "echarts";
|
|
1
2
|
import { randomUUID as y } from "node:crypto";
|
|
2
3
|
import e from "node:path";
|
|
3
|
-
import { fileURLToPath as
|
|
4
|
-
import { Image as
|
|
4
|
+
import { fileURLToPath as O } from "node:url";
|
|
5
|
+
import { Image as b, Canvas as g, FontLibrary as h } from "skia-canvas";
|
|
5
6
|
import { calculateTitleLayout as j } from "../components/echarts-renderer/calculate-title-layout.js";
|
|
6
7
|
import { addWatermarkToOptions as P } from "../components/echarts-renderer/watermark-graphic.js";
|
|
7
|
-
|
|
8
|
-
globalThis.Image = h;
|
|
8
|
+
globalThis.Image = b;
|
|
9
9
|
let s = !1;
|
|
10
|
-
function
|
|
10
|
+
function T() {
|
|
11
11
|
if (!s)
|
|
12
12
|
try {
|
|
13
|
-
const t = e.dirname(
|
|
13
|
+
const t = e.dirname(O(import.meta.url)), r = [
|
|
14
14
|
// dist/src/lib -> dist/fonts (packaged) OR src/lib -> src/fonts (dev)
|
|
15
15
|
e.resolve(t, "../../fonts"),
|
|
16
16
|
// dist/lib -> dist/fonts (packaged)
|
|
@@ -19,7 +19,7 @@ function C() {
|
|
|
19
19
|
let n;
|
|
20
20
|
for (const o of r)
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
h.use("Poppins", [
|
|
23
23
|
e.join(o, "Poppins-Regular.ttf"),
|
|
24
24
|
e.join(o, "Poppins-Medium.ttf"),
|
|
25
25
|
e.join(o, "Poppins-SemiBold.ttf"),
|
|
@@ -34,7 +34,7 @@ function C() {
|
|
|
34
34
|
console.warn("Failed to register Poppins fonts, charts will use fallback font:", t), s = !0;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const I = /* @__PURE__ */ new Set([
|
|
38
38
|
"aria",
|
|
39
39
|
// Tries to set DOM attributes which node-canvas doesn't implement
|
|
40
40
|
"toolbox",
|
|
@@ -46,15 +46,15 @@ const E = /* @__PURE__ */ new Set([
|
|
|
46
46
|
"axisPointer"
|
|
47
47
|
// Crosshair on hover
|
|
48
48
|
]);
|
|
49
|
-
function
|
|
49
|
+
function v(t) {
|
|
50
50
|
if (!t || typeof t != "object" || Array.isArray(t))
|
|
51
51
|
return { animation: !1 };
|
|
52
52
|
const r = Object.fromEntries(
|
|
53
|
-
Object.entries(t).filter(([n]) => !
|
|
53
|
+
Object.entries(t).filter(([n]) => !I.has(n))
|
|
54
54
|
);
|
|
55
55
|
return r.animation = !1, r;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function S({
|
|
58
58
|
option: t,
|
|
59
59
|
theme: r,
|
|
60
60
|
includeWatermark: n = !1,
|
|
@@ -62,23 +62,22 @@ function w({
|
|
|
62
62
|
height: a = 600,
|
|
63
63
|
devicePixelRatio: m = 2
|
|
64
64
|
}) {
|
|
65
|
-
|
|
66
|
-
C();
|
|
65
|
+
T();
|
|
67
66
|
let i;
|
|
68
|
-
r && typeof r == "object" && (i = `theme-${y()}`,
|
|
69
|
-
const
|
|
67
|
+
r && typeof r == "object" && (i = `theme-${y()}`, p.registerTheme(i, r));
|
|
68
|
+
const f = new g(o, a), c = p.init(f, i, {
|
|
70
69
|
renderer: "canvas",
|
|
71
70
|
devicePixelRatio: m,
|
|
72
71
|
width: o,
|
|
73
72
|
height: a
|
|
74
73
|
});
|
|
75
74
|
try {
|
|
76
|
-
const u =
|
|
77
|
-
return
|
|
75
|
+
const u = v(t), l = j(u, o, r), d = n ? P(l) : l;
|
|
76
|
+
return c.setOption(d), f.toBufferSync("png");
|
|
78
77
|
} finally {
|
|
79
|
-
|
|
78
|
+
c.dispose();
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
81
|
export {
|
|
83
|
-
|
|
82
|
+
S as renderChartToImage
|
|
84
83
|
};
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { renderChartToImage as o } from "./
|
|
2
|
-
import { renderMavrikChartToImage as a } from "./
|
|
3
|
-
import { sanitizeChartOptionsForStaticRendering as n } from "./
|
|
1
|
+
import { renderChartToImage as o } from "./lib/render-chart-to-image.js";
|
|
2
|
+
import { renderMavrikChartToImage as a } from "./lib/render-mavrik-chart-to-image.js";
|
|
3
|
+
import { sanitizeChartOptionsForStaticRendering as n } from "./components/echarts-renderer/sanitize-chart-options-for-static-rendering.js";
|
|
4
4
|
export {
|
|
5
5
|
o as renderChartToImage,
|
|
6
6
|
a as renderMavrikChartToImage,
|
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.57.0",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typecheck": "tsc -b --noEmit",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"prepublishOnly": "pnpm build",
|
|
31
|
-
"generate:theme": "node --experimental-transform-types scripts/generate-mavrik-theme.ts"
|
|
31
|
+
"generate:theme": "node --experimental-transform-types scripts/generate-mavrik-theme.ts && prettier --write src/components/echarts-renderer/mavrik-theme*.json"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
@@ -50,8 +50,6 @@
|
|
|
50
50
|
"node": ">=22.14.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@radix-ui/react-select": "^2.1.7",
|
|
54
|
-
"echarts": "^6",
|
|
55
53
|
"radix-ui": "^1",
|
|
56
54
|
"react": "^19",
|
|
57
55
|
"react-dom": "^19",
|
|
@@ -97,6 +95,7 @@
|
|
|
97
95
|
},
|
|
98
96
|
"peerDependencies": {
|
|
99
97
|
"@radix-ui/react-compose-refs": "^1",
|
|
98
|
+
"echarts": "^6",
|
|
100
99
|
"skia-canvas": "^3",
|
|
101
100
|
"radix-ui": "^1",
|
|
102
101
|
"react": "^19",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getEChartsModule(): typeof import('echarts');
|