@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.
- package/dist/charts.d.ts +9 -0
- package/dist/charts.js +25 -0
- package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +17 -6
- package/dist/{src/components → components}/echarts-renderer/mavrik-theme-horizontal.json.js +10 -8
- package/dist/components/echarts-renderer/mavrik-theme.d.ts +30 -0
- package/dist/components/echarts-renderer/mavrik-theme.js +25 -0
- package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +17 -6
- package/dist/{src/components → components}/echarts-renderer/mavrik-theme.json.js +10 -8
- package/dist/components/echarts-renderer/sanitize-chart-options-for-static-rendering.d.ts +9 -0
- package/dist/components/echarts-renderer/sanitize-chart-options-for-static-rendering.js +21 -0
- package/dist/components/select/select.d.ts +10 -8
- package/dist/{src/components → components}/select/select.js +43 -43
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/Poppins-Bold.ttf +0 -0
- package/dist/fonts/Poppins-Medium.ttf +0 -0
- package/dist/fonts/Poppins-Regular.ttf +0 -0
- package/dist/fonts/Poppins-SemiBold.ttf +0 -0
- package/dist/index.d.ts +0 -6
- package/dist/index.js +59 -74
- package/dist/lib/render-chart-to-image.d.ts +8 -1
- package/dist/lib/render-chart-to-image.js +83 -0
- package/dist/lib/render-mavrik-chart-to-image.d.ts +2 -1
- package/dist/lib/render-mavrik-chart-to-image.js +22 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +6 -2
- package/package.json +11 -11
- 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/components/echarts-renderer/mavrik-theme.js +0 -23
- package/dist/src/lib/render-chart-to-image.js +0 -51
- /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/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}/tailwind-merge.js +0 -0
- /package/dist/{src/utils → utils}/disable-password-managers.js +0 -0
package/dist/charts.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { EChartsRenderer, type EChartsRendererProps, type EChartsRendererRef, type EChartsOption, } from './components/echarts-renderer/echarts-renderer';
|
|
2
|
+
export { EChartsThemeOption, isEChartsThemeOption } from './components/echarts-renderer/echarts-theme-option';
|
|
3
|
+
export { EChartsChartOption, isEChartsChartOption } from './components/echarts-renderer/echarts-chart-option';
|
|
4
|
+
export { useChartInstance, type UseChartInstanceProps, type UseChartInstanceReturn, } from './components/echarts-renderer/use-chart-instance';
|
|
5
|
+
export { MavrikChart, type MavrikChartProps } from './components/echarts-renderer/mavrik-chart';
|
|
6
|
+
export { MAVRIK_THEME, MAVRIK_THEME_HORIZONTAL, selectMavrikTheme, type MavrikTheme, } from './components/echarts-renderer/mavrik-theme';
|
|
7
|
+
export { hasHorizontalBars } from './components/echarts-renderer/detect-horizontal-bars';
|
|
8
|
+
export { addWatermarkToOptions, WATERMARK_GRAPHIC } from './components/echarts-renderer/watermark-graphic';
|
|
9
|
+
export { sanitizeChartOptionsForStaticRendering } from './components/echarts-renderer/sanitize-chart-options-for-static-rendering';
|
package/dist/charts.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
export {
|
|
11
|
+
s as EChartsChartOption,
|
|
12
|
+
o as EChartsRenderer,
|
|
13
|
+
a as EChartsThemeOption,
|
|
14
|
+
x as MAVRIK_THEME,
|
|
15
|
+
O as MAVRIK_THEME_HORIZONTAL,
|
|
16
|
+
E as MavrikChart,
|
|
17
|
+
H as WATERMARK_GRAPHIC,
|
|
18
|
+
I as addWatermarkToOptions,
|
|
19
|
+
M as hasHorizontalBars,
|
|
20
|
+
h as isEChartsChartOption,
|
|
21
|
+
i as isEChartsThemeOption,
|
|
22
|
+
_ as sanitizeChartOptionsForStaticRendering,
|
|
23
|
+
R as selectMavrikTheme,
|
|
24
|
+
n as useChartInstance
|
|
25
|
+
};
|
|
@@ -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
|
}
|
|
@@ -270,6 +266,21 @@ declare const _default: {
|
|
|
270
266
|
"color": "#FFFFFF"
|
|
271
267
|
}
|
|
272
268
|
}
|
|
269
|
+
},
|
|
270
|
+
"tooltip": {
|
|
271
|
+
"backgroundColor": "transparent",
|
|
272
|
+
"padding": 10,
|
|
273
|
+
"borderRadius": 8,
|
|
274
|
+
"borderColor": "#50525A",
|
|
275
|
+
"borderWidth": 1,
|
|
276
|
+
"textStyle": {
|
|
277
|
+
"color": "#FCFCFC",
|
|
278
|
+
"fontFamily": "Poppins, sans-serif",
|
|
279
|
+
"fontSize": 11,
|
|
280
|
+
"fontStyle": "normal",
|
|
281
|
+
"fontWeight": 500
|
|
282
|
+
},
|
|
283
|
+
"extraCssText": "letter-spacing: 0.22px; box-shadow: 0 14px 11px -4px rgba(0, 0, 0, 0.30), 0 -4px 4px 0 rgba(0, 0, 0, 0.04) inset; background: radial-gradient(ellipse at 25% 0%, rgba(217, 217, 217, 0.12) 0%, transparent 60%), #1A1D1F;"
|
|
273
284
|
}
|
|
274
285
|
}
|
|
275
286
|
;
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
const o = [{ type: "linear", x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: "#C14E64" }, { offset: 1, color: "#DF687D" }] }, { type: "linear", x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: "#FFFFFF" }, { offset: 1, color: "#FFFFFF" }] }, { type: "linear", x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: "#1E6FDA" }, { offset: 1, color: "#3F8CFF" }] }], e = "#242731", t = { fontFamily: "Poppins, sans-serif", fontWeight: 500 }, l = { top: 32, left: 32, textStyle: { color: "#FFFFFF", fontSize: 16, fontWeight: 600 }, subtextStyle: { color: "#A7A9AD" } }, r = { itemStyle: { borderWidth: 1 }, lineStyle: { width: 2 }, areaStyle: { opacity: 0.15 }, showSymbol: !1, symbolSize: 5, symbol: "circle", smooth: !1, sampling: "lttb" },
|
|
1
|
+
const o = [{ type: "linear", x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: "#C14E64" }, { offset: 1, color: "#DF687D" }] }, { type: "linear", x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: "#FFFFFF" }, { offset: 1, color: "#FFFFFF" }] }, { type: "linear", x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: "#1E6FDA" }, { offset: 1, color: "#3F8CFF" }] }], e = "#242731", t = { fontFamily: "Poppins, sans-serif", fontWeight: 500 }, l = { top: 32, left: 32, textStyle: { color: "#FFFFFF", fontSize: 16, fontWeight: 600 }, subtextStyle: { color: "#A7A9AD" } }, r = { itemStyle: { borderWidth: 1 }, lineStyle: { width: 2 }, areaStyle: { opacity: 0.15 }, showSymbol: !1, symbolSize: 5, symbol: "circle", smooth: !1, sampling: "lttb" }, a = { barGap: "25%", barCategoryGap: "25%" }, i = { axisLine: { show: !0, lineStyle: { color: "#3A3D46", type: "dashed" } }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !1 } }, s = { axisLine: { show: !1 }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !0, lineStyle: { color: ["#3A3D46"], type: "dashed" } } }, n = { axisLine: { show: !1 }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !0, lineStyle: { color: ["#3A3D46"], type: "dashed" } } }, c = { axisLine: { show: !0, lineStyle: { color: "#3A3D46" } }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !1 } }, d = { top: 82, left: "auto", right: 32, icon: "circle", itemGap: 22, itemWidth: 12, itemHeight: 12, textStyle: { color: "#A7A9AD", fontSize: 11 } }, h = { top: 132, left: 32, right: 32, bottom: 32, outerBoundsMode: "same", outerBoundsContain: "axisLabel" }, A = { backgroundColor: "rgba(36, 39, 49, 0)", borderColor: "#3A3D46", borderRadius: 4, dataBackground: { lineStyle: { color: "#606060", width: 1 }, areaStyle: { color: "rgba(96, 96, 96, 0.3)" } }, selectedDataBackground: { lineStyle: { color: "#b36674", width: 1 }, areaStyle: { color: "rgba(164, 91, 105, 0.5)" } }, fillerColor: "rgba(82, 45, 52, 0.35)", handleStyle: { color: "#C14E64", borderColor: "#C14E64" }, moveHandleStyle: { color: "#b36674" }, brushStyle: { color: "rgba(95, 58, 65, 0.2)" }, emphasis: { handleStyle: { color: "rgb(209, 123, 140)", borderColor: "rgb(209, 123, 140)" } }, handleSize: "100%", textStyle: { color: "#A7A9AD" } }, f = { label: { color: "#A7A9AD" }, emphasis: { label: { color: "#FFFFFF" } } }, y = { backgroundColor: "transparent", padding: 10, borderRadius: 8, borderColor: "#50525A", borderWidth: 1, textStyle: { color: "#FCFCFC", fontFamily: "Poppins, sans-serif", fontSize: 11, fontStyle: "normal", fontWeight: 500 }, extraCssText: "letter-spacing: 0.22px; box-shadow: 0 14px 11px -4px rgba(0, 0, 0, 0.30), 0 -4px 4px 0 rgba(0, 0, 0, 0.04) inset; background: radial-gradient(ellipse at 25% 0%, rgba(217, 217, 217, 0.12) 0%, transparent 60%), #1A1D1F;" }, p = {
|
|
2
2
|
color: o,
|
|
3
3
|
backgroundColor: e,
|
|
4
4
|
textStyle: t,
|
|
5
5
|
title: l,
|
|
6
6
|
line: r,
|
|
7
|
-
bar:
|
|
8
|
-
categoryAxis:
|
|
7
|
+
bar: a,
|
|
8
|
+
categoryAxis: i,
|
|
9
9
|
valueAxis: s,
|
|
10
10
|
logAxis: n,
|
|
11
11
|
timeAxis: c,
|
|
12
12
|
legend: d,
|
|
13
13
|
grid: h,
|
|
14
14
|
dataZoom: A,
|
|
15
|
-
markPoint:
|
|
15
|
+
markPoint: f,
|
|
16
|
+
tooltip: y
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
19
|
e as backgroundColor,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
a as bar,
|
|
21
|
+
i as categoryAxis,
|
|
21
22
|
o as color,
|
|
22
23
|
A as dataZoom,
|
|
23
|
-
|
|
24
|
+
p as default,
|
|
24
25
|
h as grid,
|
|
25
26
|
d as legend,
|
|
26
27
|
r as line,
|
|
27
28
|
n as logAxis,
|
|
28
|
-
|
|
29
|
+
f as markPoint,
|
|
29
30
|
t as textStyle,
|
|
30
31
|
c as timeAxis,
|
|
31
32
|
l as title,
|
|
33
|
+
y as tooltip,
|
|
32
34
|
s as valueAxis
|
|
33
35
|
};
|
|
@@ -229,6 +229,21 @@ export declare const MAVRIK_THEME: {
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
|
+
tooltip: {
|
|
233
|
+
backgroundColor: string;
|
|
234
|
+
padding: number;
|
|
235
|
+
borderRadius: number;
|
|
236
|
+
borderColor: string;
|
|
237
|
+
borderWidth: number;
|
|
238
|
+
textStyle: {
|
|
239
|
+
color: string;
|
|
240
|
+
fontFamily: string;
|
|
241
|
+
fontSize: number;
|
|
242
|
+
fontStyle: string;
|
|
243
|
+
fontWeight: number;
|
|
244
|
+
};
|
|
245
|
+
extraCssText: string;
|
|
246
|
+
};
|
|
232
247
|
};
|
|
233
248
|
};
|
|
234
249
|
/** Mavrik theme variant with horizontal gradients (for horizontal bar charts) */
|
|
@@ -461,6 +476,21 @@ export declare const MAVRIK_THEME_HORIZONTAL: {
|
|
|
461
476
|
};
|
|
462
477
|
};
|
|
463
478
|
};
|
|
479
|
+
tooltip: {
|
|
480
|
+
backgroundColor: string;
|
|
481
|
+
padding: number;
|
|
482
|
+
borderRadius: number;
|
|
483
|
+
borderColor: string;
|
|
484
|
+
borderWidth: number;
|
|
485
|
+
textStyle: {
|
|
486
|
+
color: string;
|
|
487
|
+
fontFamily: string;
|
|
488
|
+
fontSize: number;
|
|
489
|
+
fontStyle: string;
|
|
490
|
+
fontWeight: number;
|
|
491
|
+
};
|
|
492
|
+
extraCssText: string;
|
|
493
|
+
};
|
|
464
494
|
};
|
|
465
495
|
};
|
|
466
496
|
export type MavrikTheme = typeof MAVRIK_THEME | typeof MAVRIK_THEME_HORIZONTAL;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { hasHorizontalBars as e } from "./detect-horizontal-bars.js";
|
|
2
|
+
import { isEChartsThemeOption as m } from "./echarts-theme-option.js";
|
|
3
|
+
import r from "./mavrik-theme-horizontal.json.js";
|
|
4
|
+
import i from "./mavrik-theme.json.js";
|
|
5
|
+
function t(o, n) {
|
|
6
|
+
if (!m(n))
|
|
7
|
+
throw new Error(`Invalid ECharts theme configuration JSON: ${o}`);
|
|
8
|
+
}
|
|
9
|
+
t("mavrik-theme.json", i);
|
|
10
|
+
t("mavrik-theme-horizontal.json", r);
|
|
11
|
+
const a = {
|
|
12
|
+
name: "mavrik",
|
|
13
|
+
config: i
|
|
14
|
+
}, h = {
|
|
15
|
+
name: "mavrik-horizontal",
|
|
16
|
+
config: r
|
|
17
|
+
};
|
|
18
|
+
function E(o) {
|
|
19
|
+
return e(o) ? h : a;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
a as MAVRIK_THEME,
|
|
23
|
+
h as MAVRIK_THEME_HORIZONTAL,
|
|
24
|
+
E as selectMavrikTheme
|
|
25
|
+
};
|
|
@@ -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
|
}
|
|
@@ -270,6 +266,21 @@ declare const _default: {
|
|
|
270
266
|
"color": "#FFFFFF"
|
|
271
267
|
}
|
|
272
268
|
}
|
|
269
|
+
},
|
|
270
|
+
"tooltip": {
|
|
271
|
+
"backgroundColor": "transparent",
|
|
272
|
+
"padding": 10,
|
|
273
|
+
"borderRadius": 8,
|
|
274
|
+
"borderColor": "#50525A",
|
|
275
|
+
"borderWidth": 1,
|
|
276
|
+
"textStyle": {
|
|
277
|
+
"color": "#FCFCFC",
|
|
278
|
+
"fontFamily": "Poppins, sans-serif",
|
|
279
|
+
"fontSize": 11,
|
|
280
|
+
"fontStyle": "normal",
|
|
281
|
+
"fontWeight": 500
|
|
282
|
+
},
|
|
283
|
+
"extraCssText": "letter-spacing: 0.22px; box-shadow: 0 14px 11px -4px rgba(0, 0, 0, 0.30), 0 -4px 4px 0 rgba(0, 0, 0, 0.04) inset; background: radial-gradient(ellipse at 25% 0%, rgba(217, 217, 217, 0.12) 0%, transparent 60%), #1A1D1F;"
|
|
273
284
|
}
|
|
274
285
|
}
|
|
275
286
|
;
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
const o = [{ type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: "#C14E64" }, { offset: 1, color: "#DF687D" }] }, { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: "#FFFFFF" }, { offset: 1, color: "#FFFFFF" }] }, { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: "#1E6FDA" }, { offset: 1, color: "#3F8CFF" }] }], e = "#242731", t = { fontFamily: "Poppins, sans-serif", fontWeight: 500 }, l = { top: 32, left: 32, textStyle: { color: "#FFFFFF", fontSize: 16, fontWeight: 600 }, subtextStyle: { color: "#A7A9AD" } }, r = { itemStyle: { borderWidth: 1 }, lineStyle: { width: 2 }, areaStyle: { opacity: 0.15 }, showSymbol: !1, symbolSize: 5, symbol: "circle", smooth: !1, sampling: "lttb" },
|
|
1
|
+
const o = [{ type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: "#C14E64" }, { offset: 1, color: "#DF687D" }] }, { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: "#FFFFFF" }, { offset: 1, color: "#FFFFFF" }] }, { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: "#1E6FDA" }, { offset: 1, color: "#3F8CFF" }] }], e = "#242731", t = { fontFamily: "Poppins, sans-serif", fontWeight: 500 }, l = { top: 32, left: 32, textStyle: { color: "#FFFFFF", fontSize: 16, fontWeight: 600 }, subtextStyle: { color: "#A7A9AD" } }, r = { itemStyle: { borderWidth: 1 }, lineStyle: { width: 2 }, areaStyle: { opacity: 0.15 }, showSymbol: !1, symbolSize: 5, symbol: "circle", smooth: !1, sampling: "lttb" }, a = { barGap: "25%", barCategoryGap: "25%" }, i = { axisLine: { show: !0, lineStyle: { color: "#3A3D46", type: "dashed" } }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !1 } }, s = { axisLine: { show: !1 }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !0, lineStyle: { color: ["#3A3D46"], type: "dashed" } } }, n = { axisLine: { show: !1 }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !0, lineStyle: { color: ["#3A3D46"], type: "dashed" } } }, c = { axisLine: { show: !0, lineStyle: { color: "#3A3D46" } }, axisTick: { show: !1 }, axisLabel: { show: !0, color: "#A7A9AD", hideOverlap: !0 }, nameLocation: "middle", nameTextStyle: { color: "#A7A9AD", fontSize: 11, fontWeight: 400 }, splitLine: { show: !1 } }, d = { top: 82, left: "auto", right: 32, icon: "circle", itemGap: 22, itemWidth: 12, itemHeight: 12, textStyle: { color: "#A7A9AD", fontSize: 11 } }, h = { top: 132, left: 32, right: 32, bottom: 32, outerBoundsMode: "same", outerBoundsContain: "axisLabel" }, A = { backgroundColor: "rgba(36, 39, 49, 0)", borderColor: "#3A3D46", borderRadius: 4, dataBackground: { lineStyle: { color: "#606060", width: 1 }, areaStyle: { color: "rgba(96, 96, 96, 0.3)" } }, selectedDataBackground: { lineStyle: { color: "#b36674", width: 1 }, areaStyle: { color: "rgba(164, 91, 105, 0.5)" } }, fillerColor: "rgba(82, 45, 52, 0.35)", handleStyle: { color: "#C14E64", borderColor: "#C14E64" }, moveHandleStyle: { color: "#b36674" }, brushStyle: { color: "rgba(95, 58, 65, 0.2)" }, emphasis: { handleStyle: { color: "rgb(209, 123, 140)", borderColor: "rgb(209, 123, 140)" } }, handleSize: "100%", textStyle: { color: "#A7A9AD" } }, f = { label: { color: "#A7A9AD" }, emphasis: { label: { color: "#FFFFFF" } } }, y = { backgroundColor: "transparent", padding: 10, borderRadius: 8, borderColor: "#50525A", borderWidth: 1, textStyle: { color: "#FCFCFC", fontFamily: "Poppins, sans-serif", fontSize: 11, fontStyle: "normal", fontWeight: 500 }, extraCssText: "letter-spacing: 0.22px; box-shadow: 0 14px 11px -4px rgba(0, 0, 0, 0.30), 0 -4px 4px 0 rgba(0, 0, 0, 0.04) inset; background: radial-gradient(ellipse at 25% 0%, rgba(217, 217, 217, 0.12) 0%, transparent 60%), #1A1D1F;" }, p = {
|
|
2
2
|
color: o,
|
|
3
3
|
backgroundColor: e,
|
|
4
4
|
textStyle: t,
|
|
5
5
|
title: l,
|
|
6
6
|
line: r,
|
|
7
|
-
bar:
|
|
8
|
-
categoryAxis:
|
|
7
|
+
bar: a,
|
|
8
|
+
categoryAxis: i,
|
|
9
9
|
valueAxis: s,
|
|
10
10
|
logAxis: n,
|
|
11
11
|
timeAxis: c,
|
|
12
12
|
legend: d,
|
|
13
13
|
grid: h,
|
|
14
14
|
dataZoom: A,
|
|
15
|
-
markPoint:
|
|
15
|
+
markPoint: f,
|
|
16
|
+
tooltip: y
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
19
|
e as backgroundColor,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
a as bar,
|
|
21
|
+
i as categoryAxis,
|
|
21
22
|
o as color,
|
|
22
23
|
A as dataZoom,
|
|
23
|
-
|
|
24
|
+
p as default,
|
|
24
25
|
h as grid,
|
|
25
26
|
d as legend,
|
|
26
27
|
r as line,
|
|
27
28
|
n as logAxis,
|
|
28
|
-
|
|
29
|
+
f as markPoint,
|
|
29
30
|
t as textStyle,
|
|
30
31
|
c as timeAxis,
|
|
31
32
|
l as title,
|
|
33
|
+
y as tooltip,
|
|
32
34
|
s as valueAxis
|
|
33
35
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EChartsOption } from 'echarts';
|
|
2
|
+
/**
|
|
3
|
+
* Removes interactive components from chart options for static/image rendering.
|
|
4
|
+
* Also disables animation since it's not useful in static images.
|
|
5
|
+
*
|
|
6
|
+
* Use this function when rendering charts to static images (PNG, SVG exports)
|
|
7
|
+
* either server-side with skia-canvas or for client-side image exports.
|
|
8
|
+
*/
|
|
9
|
+
export declare function sanitizeChartOptionsForStaticRendering(option: EChartsOption): EChartsOption;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const n = /* @__PURE__ */ new Set([
|
|
2
|
+
"aria",
|
|
3
|
+
// Tries to set DOM attributes (not supported by skia-canvas)
|
|
4
|
+
"toolbox",
|
|
5
|
+
// Export/zoom/reset buttons
|
|
6
|
+
"dataZoom",
|
|
7
|
+
// Interactive range slider
|
|
8
|
+
"brush",
|
|
9
|
+
// Selection tool
|
|
10
|
+
"axisPointer"
|
|
11
|
+
// Crosshair on hover
|
|
12
|
+
]);
|
|
13
|
+
function o(e) {
|
|
14
|
+
const t = Object.fromEntries(
|
|
15
|
+
Object.entries(e).filter(([i]) => !n.has(i))
|
|
16
|
+
);
|
|
17
|
+
return t.animation = !1, t;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
o as sanitizeChartOptionsForStaticRendering
|
|
21
|
+
};
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ export { AnimatedLoader } from './components/animated-loader/animated-loader';
|
|
|
2
2
|
export { Badge } from './components/badge/badge';
|
|
3
3
|
export { Box } from './components/box/box';
|
|
4
4
|
export { Button } from './components/button/button';
|
|
5
|
-
export { EChartsRenderer, type EChartsRendererProps, type EChartsRendererRef, type EChartsOption, } from './components/echarts-renderer/echarts-renderer';
|
|
6
|
-
export { EChartsThemeOption, isEChartsThemeOption } from './components/echarts-renderer/echarts-theme-option';
|
|
7
|
-
export { EChartsChartOption, isEChartsChartOption } from './components/echarts-renderer/echarts-chart-option';
|
|
8
|
-
export { useChartInstance, type UseChartInstanceProps, type UseChartInstanceReturn, } from './components/echarts-renderer/use-chart-instance';
|
|
9
|
-
export { MavrikChart, type MavrikChartProps } from './components/echarts-renderer/mavrik-chart';
|
|
10
|
-
export { MAVRIK_THEME, MAVRIK_THEME_HORIZONTAL } from './components/echarts-renderer/mavrik-theme';
|
|
11
5
|
export { ClientModal } from './components/client-modal/client-modal';
|
|
12
6
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/collapsible/collapsible';
|
|
13
7
|
export { CopyButton } from './components/copy-button/copy-button';
|