@validationcloud/fractal-ui 1.52.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/components/echarts-renderer/calculate-title-layout.d.ts +8 -0
  2. package/dist/components/echarts-renderer/calculate-title-layout.test.d.ts +1 -0
  3. package/dist/components/echarts-renderer/detect-horizontal-bars.d.ts +13 -0
  4. package/dist/components/echarts-renderer/mavrik-chart.d.ts +19 -0
  5. package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +277 -0
  6. package/dist/components/echarts-renderer/mavrik-theme.d.ts +242 -0
  7. package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +6 -2
  8. package/dist/components/echarts-renderer/sanitize-chart-options.d.ts +6 -0
  9. package/dist/components/echarts-renderer/use-chart-instance.d.ts +0 -1
  10. package/dist/components/echarts-renderer/watermark-graphic.d.ts +12 -0
  11. package/dist/components/select/select.d.ts +23 -0
  12. package/dist/index.d.ts +3 -1
  13. package/dist/index.js +67 -61
  14. package/dist/lib/render-mavrik-chart-to-image.d.ts +33 -0
  15. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  16. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  17. 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
  18. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  19. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  20. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +6 -0
  21. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  43. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +27 -0
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. package/dist/server.js +1 -1
  64. package/dist/src/assets/vc-logo.svg.js +4 -0
  65. package/dist/src/components/echarts-renderer/calculate-title-layout.js +72 -0
  66. package/dist/src/components/echarts-renderer/detect-horizontal-bars.js +13 -0
  67. package/dist/src/components/echarts-renderer/mavrik-chart.js +12 -0
  68. package/dist/src/components/echarts-renderer/mavrik-theme-horizontal.json.js +33 -0
  69. package/dist/src/components/echarts-renderer/mavrik-theme.js +23 -0
  70. package/dist/src/components/echarts-renderer/sanitize-chart-options.js +9 -0
  71. package/dist/src/components/echarts-renderer/use-chart-instance.js +63 -0
  72. package/dist/src/components/echarts-renderer/watermark-graphic.js +25 -0
  73. package/dist/src/components/select/select.js +105 -0
  74. package/dist/src/lib/render-chart-to-image.js +51 -0
  75. package/package.json +20 -15
  76. package/dist/components/echarts-renderer/mavrik-theme.js +0 -11
  77. package/dist/components/echarts-renderer/use-chart-instance.js +0 -46
  78. package/dist/lib/render-chart-to-image.js +0 -34
  79. /package/dist/{assets → src/assets}/animated-loader.svg.js +0 -0
  80. /package/dist/{assets → src/assets}/default-avatar.svg.js +0 -0
  81. /package/dist/{assets → src/assets}/not-found.svg.js +0 -0
  82. /package/dist/{components → src/components}/animated-loader/animated-loader.js +0 -0
  83. /package/dist/{components → src/components}/badge/badge.js +0 -0
  84. /package/dist/{components → src/components}/box/box.js +0 -0
  85. /package/dist/{components → src/components}/button/button.js +0 -0
  86. /package/dist/{components → src/components}/client-modal/client-modal.js +0 -0
  87. /package/dist/{components → src/components}/copy-button/copy-button.js +0 -0
  88. /package/dist/{components → src/components}/decorated-icon/decorated-icon.js +0 -0
  89. /package/dist/{components → src/components}/dropdown-menu/dropdown-menu.js +0 -0
  90. /package/dist/{components → src/components}/echarts-renderer/echarts-chart-option.js +0 -0
  91. /package/dist/{components → src/components}/echarts-renderer/echarts-renderer.js +0 -0
  92. /package/dist/{components → src/components}/echarts-renderer/echarts-theme-option.js +0 -0
  93. /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.json.js +0 -0
  94. /package/dist/{components → src/components}/error-boundary/error-boundary.js +0 -0
  95. /package/dist/{components → src/components}/icon/icon.js +0 -0
  96. /package/dist/{components → src/components}/icon-button/icon-button.js +0 -0
  97. /package/dist/{components → src/components}/input-button/input-button.js +0 -0
  98. /package/dist/{components → src/components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
  99. /package/dist/{components → src/components}/not-found-component/not-found-component.js +0 -0
  100. /package/dist/{components → src/components}/page-padding/page-padding.js +0 -0
  101. /package/dist/{components → src/components}/protocol-logo/protocol-logo.js +0 -0
  102. /package/dist/{components → src/components}/scroll-area/index.js +0 -0
  103. /package/dist/{components → src/components}/scroll-area/scroll-area-viewport.js +0 -0
  104. /package/dist/{components → src/components}/scroll-area/scroll-area.js +0 -0
  105. /package/dist/{components → src/components}/skeleton/skeleton.js +0 -0
  106. /package/dist/{components → src/components}/switch/switch.js +0 -0
  107. /package/dist/{components → src/components}/text-input/text-input.js +0 -0
  108. /package/dist/{components → src/components}/tooltip/tooltip.js +0 -0
  109. /package/dist/{components → src/components}/tooltip-provider/tooltip-provider.js +0 -0
  110. /package/dist/{components → src/components}/touch-target/touch-target.js +0 -0
  111. /package/dist/{components → src/components}/user-dropdown/user-dropdown.js +0 -0
  112. /package/dist/{components → src/components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
  113. /package/dist/{hooks → src/hooks}/use-scroll-to-bottom.js +0 -0
  114. /package/dist/{internal → src/internal}/modal-header.js +0 -0
  115. /package/dist/{internal → src/internal}/modal.js +0 -0
  116. /package/dist/{internal → src/internal}/react-portal.js +0 -0
  117. /package/dist/{internal → src/internal}/round-button.js +0 -0
  118. /package/dist/{lib → src/lib}/tailwind-merge.js +0 -0
  119. /package/dist/{utils → src/utils}/disable-password-managers.js +0 -0
package/dist/index.js CHANGED
@@ -1,69 +1,75 @@
1
- import { AnimatedLoader as t } 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 { EChartsRenderer as d } from "./components/echarts-renderer/echarts-renderer.js";
6
- import { EChartsThemeOption as u, isEChartsThemeOption as h } from "./components/echarts-renderer/echarts-theme-option.js";
7
- import { EChartsChartOption as l, isEChartsChartOption as C } from "./components/echarts-renderer/echarts-chart-option.js";
8
- import { useChartInstance as T } from "./components/echarts-renderer/use-chart-instance.js";
9
- import { MAVRIK_THEME as E } from "./components/echarts-renderer/mavrik-theme.js";
10
- import { ClientModal as M } from "./components/client-modal/client-modal.js";
11
- import { CopyButton as w } from "./components/copy-button/copy-button.js";
12
- import { DecoratedIcon as D } from "./components/decorated-icon/decorated-icon.js";
13
- import { DropdownMenu as P, DropdownMenuItem as A } from "./components/dropdown-menu/dropdown-menu.js";
14
- import { ErrorBoundary as y } from "./components/error-boundary/error-boundary.js";
15
- import { ScrollArea as R } from "./components/scroll-area/index.js";
16
- import { Icon as b } from "./components/icon/icon.js";
17
- import { IconButton as F } from "./components/icon-button/icon-button.js";
18
- import { InputButton as K } from "./components/input-button/input-button.js";
19
- import { MountSvgSprite as V } from "./components/mount-svg-sprite/mount-svg-sprite.js";
20
- import { NotFoundComponent as j } from "./components/not-found-component/not-found-component.js";
21
- import { PagePadding as z } from "./components/page-padding/page-padding.js";
22
- import { ProtocolLogo as J } from "./components/protocol-logo/protocol-logo.js";
23
- import { Skeleton as W } from "./components/skeleton/skeleton.js";
24
- import { Switch as Y } from "./components/switch/switch.js";
25
- import { TextInput as $ } from "./components/text-input/text-input.js";
26
- import { Tooltip as ro } from "./components/tooltip/tooltip.js";
27
- import { TooltipProvider as eo } from "./components/tooltip-provider/tooltip-provider.js";
28
- import { TouchTarget as mo } from "./components/touch-target/touch-target.js";
29
- import { twMerge as fo } from "./lib/tailwind-merge.js";
30
- import { UserDropdown as ao } from "./components/user-dropdown/user-dropdown.js";
31
- import { UserDropdownMobile as uo } from "./components/user-dropdown-mobile/user-dropdown-mobile.js";
32
- import { useScrollToBottom as so } from "./hooks/use-scroll-to-bottom.js";
1
+ import { AnimatedLoader as t } from "./src/components/animated-loader/animated-loader.js";
2
+ import { Badge as p } from "./src/components/badge/badge.js";
3
+ import { Box as x } from "./src/components/box/box.js";
4
+ import { Button as n } from "./src/components/button/button.js";
5
+ import { EChartsRenderer as i } from "./src/components/echarts-renderer/echarts-renderer.js";
6
+ import { EChartsThemeOption as u, isEChartsThemeOption as h } from "./src/components/echarts-renderer/echarts-theme-option.js";
7
+ import { EChartsChartOption as c, isEChartsChartOption as s } from "./src/components/echarts-renderer/echarts-chart-option.js";
8
+ import { useChartInstance as I } from "./src/components/echarts-renderer/use-chart-instance.js";
9
+ import { MavrikChart as T } from "./src/components/echarts-renderer/mavrik-chart.js";
10
+ import { MAVRIK_THEME as B, MAVRIK_THEME_HORIZONTAL as S } from "./src/components/echarts-renderer/mavrik-theme.js";
11
+ import { ClientModal as w } from "./src/components/client-modal/client-modal.js";
12
+ import { CopyButton as A } from "./src/components/copy-button/copy-button.js";
13
+ import { DecoratedIcon as P } from "./src/components/decorated-icon/decorated-icon.js";
14
+ import { DropdownMenu as v, DropdownMenuItem as H } from "./src/components/dropdown-menu/dropdown-menu.js";
15
+ import { ErrorBoundary as _ } from "./src/components/error-boundary/error-boundary.js";
16
+ import { ScrollArea as y } from "./src/components/scroll-area/index.js";
17
+ import { Icon as N } from "./src/components/icon/icon.js";
18
+ import { IconButton as V } from "./src/components/icon-button/icon-button.js";
19
+ import { InputButton as F } from "./src/components/input-button/input-button.js";
20
+ import { MountSvgSprite as j } from "./src/components/mount-svg-sprite/mount-svg-sprite.js";
21
+ import { NotFoundComponent as z } from "./src/components/not-found-component/not-found-component.js";
22
+ import { PagePadding as J } from "./src/components/page-padding/page-padding.js";
23
+ import { ProtocolLogo as W } from "./src/components/protocol-logo/protocol-logo.js";
24
+ import { Select as Y, SelectItem as $ } from "./src/components/select/select.js";
25
+ import { Skeleton as ro } from "./src/components/skeleton/skeleton.js";
26
+ import { Switch as eo } from "./src/components/switch/switch.js";
27
+ import { TextInput as mo } from "./src/components/text-input/text-input.js";
28
+ import { Tooltip as fo } from "./src/components/tooltip/tooltip.js";
29
+ import { TooltipProvider as ao } from "./src/components/tooltip-provider/tooltip-provider.js";
30
+ import { TouchTarget as uo } from "./src/components/touch-target/touch-target.js";
31
+ import { twMerge as lo } from "./src/lib/tailwind-merge.js";
32
+ import { UserDropdown as so } from "./src/components/user-dropdown/user-dropdown.js";
33
+ import { UserDropdownMobile as Io } from "./src/components/user-dropdown-mobile/user-dropdown-mobile.js";
34
+ import { useScrollToBottom as To } from "./src/hooks/use-scroll-to-bottom.js";
33
35
  export {
34
36
  t as AnimatedLoader,
35
37
  p as Badge,
36
38
  x as Box,
37
39
  n as Button,
38
- M as ClientModal,
39
- w as CopyButton,
40
- D as DecoratedIcon,
41
- P as DropdownMenu,
42
- A as DropdownMenuItem,
43
- l as EChartsChartOption,
44
- d as EChartsRenderer,
40
+ w as ClientModal,
41
+ A as CopyButton,
42
+ P as DecoratedIcon,
43
+ v as DropdownMenu,
44
+ H as DropdownMenuItem,
45
+ c as EChartsChartOption,
46
+ i as EChartsRenderer,
45
47
  u as EChartsThemeOption,
46
- y as ErrorBoundary,
47
- b as Icon,
48
- F as IconButton,
49
- K as InputButton,
50
- E as MAVRIK_THEME,
51
- V as MountSvgSprite,
52
- j as NotFoundComponent,
53
- z as PagePadding,
54
- J as ProtocolLogo,
55
- R as ScrollArea,
56
- W as Skeleton,
57
- Y as Switch,
58
- $ as TextInput,
59
- ro as Tooltip,
60
- eo as TooltipProvider,
61
- mo as TouchTarget,
62
- ao as UserDropdown,
63
- uo as UserDropdownMobile,
64
- C as isEChartsChartOption,
48
+ _ as ErrorBoundary,
49
+ N as Icon,
50
+ V as IconButton,
51
+ F as InputButton,
52
+ B as MAVRIK_THEME,
53
+ S as MAVRIK_THEME_HORIZONTAL,
54
+ T as MavrikChart,
55
+ j as MountSvgSprite,
56
+ z as NotFoundComponent,
57
+ J as PagePadding,
58
+ W as ProtocolLogo,
59
+ y as ScrollArea,
60
+ Y as Select,
61
+ $ as SelectItem,
62
+ ro as Skeleton,
63
+ eo as Switch,
64
+ mo as TextInput,
65
+ fo as Tooltip,
66
+ ao as TooltipProvider,
67
+ uo as TouchTarget,
68
+ so as UserDropdown,
69
+ Io as UserDropdownMobile,
70
+ s as isEChartsChartOption,
65
71
  h as isEChartsThemeOption,
66
- fo as twMerge,
67
- T as useChartInstance,
68
- so as useScrollToBottom
72
+ lo as twMerge,
73
+ I as useChartInstance,
74
+ To as useScrollToBottom
69
75
  };
@@ -0,0 +1,33 @@
1
+ import { EChartsOption } from 'echarts';
2
+ export interface RenderMavrikChartToImageOptions {
3
+ option: EChartsOption;
4
+ width?: number;
5
+ height?: number;
6
+ devicePixelRatio?: number;
7
+ }
8
+ /**
9
+ * Renders an ECharts chart to a PNG image buffer using the Mavrik theme.
10
+ *
11
+ * Automatically selects the correct theme variant based on chart type:
12
+ * - Vertical bars: gradient flows top-to-bottom
13
+ * - Horizontal bars: gradient flows left-to-right
14
+ *
15
+ * For custom themes, use renderChartToImage directly.
16
+ *
17
+ * @param options - Chart configuration and rendering options
18
+ * @returns PNG image buffer
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const buffer = renderMavrikChartToImage({
23
+ * option: {
24
+ * xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed'] },
25
+ * yAxis: { type: 'value' },
26
+ * series: [{ data: [120, 200, 150], type: 'bar' }]
27
+ * },
28
+ * width: 800,
29
+ * height: 600
30
+ * });
31
+ * ```
32
+ */
33
+ export declare function renderMavrikChartToImage({ option, width, height, devicePixelRatio, }: RenderMavrikChartToImageOptions): Buffer;