@validationcloud/fractal-ui 1.56.0 → 1.58.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 (121) hide show
  1. package/dist/charts.js +9 -9
  2. package/dist/components/echarts-renderer/mavrik-theme-horizontal.json.d.ts +2 -6
  3. package/dist/components/echarts-renderer/mavrik-theme.json.d.ts +2 -6
  4. package/dist/components/select/select.d.ts +10 -8
  5. package/dist/{src/components → components}/select/select.js +43 -43
  6. package/dist/index.js +29 -29
  7. package/dist/lib/font-data.d.ts +17 -0
  8. package/dist/lib/font-data.js +19 -0
  9. package/dist/lib/render-chart-to-image.d.ts +12 -14
  10. package/dist/lib/render-chart-to-image.js +75 -0
  11. package/dist/lib/render-mavrik-chart-to-image.js +28 -0
  12. package/dist/server.js +3 -3
  13. package/package.json +5 -5
  14. package/dist/fonts/Poppins-Bold.ttf +0 -0
  15. package/dist/fonts/Poppins-Medium.ttf +0 -0
  16. package/dist/fonts/Poppins-Regular.ttf +0 -0
  17. package/dist/fonts/Poppins-SemiBold.ttf +0 -0
  18. package/dist/lib/get-echarts-module.d.ts +0 -1
  19. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  20. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  21. 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
  22. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  23. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  24. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +0 -6
  25. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  47. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
  48. 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
  49. 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
  50. 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
  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/Combination.js +0 -11
  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/SideEffect.js +0 -112
  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/UI.js +0 -31
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -27
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. package/dist/src/lib/get-echarts-module.js +0 -8
  68. package/dist/src/lib/render-chart-to-image.js +0 -84
  69. package/dist/src/lib/render-mavrik-chart-to-image.js +0 -22
  70. /package/dist/{src/assets → assets}/animated-loader.svg.js +0 -0
  71. /package/dist/{src/assets → assets}/default-avatar.svg.js +0 -0
  72. /package/dist/{src/assets → assets}/not-found.svg.js +0 -0
  73. /package/dist/{src/assets → assets}/vc-logo.svg.js +0 -0
  74. /package/dist/{src/components → components}/animated-loader/animated-loader.js +0 -0
  75. /package/dist/{src/components → components}/badge/badge.js +0 -0
  76. /package/dist/{src/components → components}/box/box.js +0 -0
  77. /package/dist/{src/components → components}/button/button.js +0 -0
  78. /package/dist/{src/components → components}/client-modal/client-modal.js +0 -0
  79. /package/dist/{src/components → components}/collapsible/collapsible.js +0 -0
  80. /package/dist/{src/components → components}/copy-button/copy-button.js +0 -0
  81. /package/dist/{src/components → components}/decorated-icon/decorated-icon.js +0 -0
  82. /package/dist/{src/components → components}/dropdown-menu/dropdown-menu.js +0 -0
  83. /package/dist/{src/components → components}/echarts-renderer/calculate-title-layout.js +0 -0
  84. /package/dist/{src/components → components}/echarts-renderer/detect-horizontal-bars.js +0 -0
  85. /package/dist/{src/components → components}/echarts-renderer/echarts-chart-option.js +0 -0
  86. /package/dist/{src/components → components}/echarts-renderer/echarts-renderer.js +0 -0
  87. /package/dist/{src/components → components}/echarts-renderer/echarts-theme-option.js +0 -0
  88. /package/dist/{src/components → components}/echarts-renderer/mavrik-chart.js +0 -0
  89. /package/dist/{src/components → components}/echarts-renderer/mavrik-theme-horizontal.json.js +0 -0
  90. /package/dist/{src/components → components}/echarts-renderer/mavrik-theme.js +0 -0
  91. /package/dist/{src/components → components}/echarts-renderer/mavrik-theme.json.js +0 -0
  92. /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options-for-static-rendering.js +0 -0
  93. /package/dist/{src/components → components}/echarts-renderer/sanitize-chart-options.js +0 -0
  94. /package/dist/{src/components → components}/echarts-renderer/use-chart-instance.js +0 -0
  95. /package/dist/{src/components → components}/echarts-renderer/watermark-graphic.js +0 -0
  96. /package/dist/{src/components → components}/error-boundary/error-boundary.js +0 -0
  97. /package/dist/{src/components → components}/icon/icon.js +0 -0
  98. /package/dist/{src/components → components}/icon-button/icon-button.js +0 -0
  99. /package/dist/{src/components → components}/input-button/input-button.js +0 -0
  100. /package/dist/{src/components → components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
  101. /package/dist/{src/components → components}/not-found-component/not-found-component.js +0 -0
  102. /package/dist/{src/components → components}/page-padding/page-padding.js +0 -0
  103. /package/dist/{src/components → components}/protocol-logo/protocol-logo.js +0 -0
  104. /package/dist/{src/components → components}/scroll-area/index.js +0 -0
  105. /package/dist/{src/components → components}/scroll-area/scroll-area-viewport.js +0 -0
  106. /package/dist/{src/components → components}/scroll-area/scroll-area.js +0 -0
  107. /package/dist/{src/components → components}/skeleton/skeleton.js +0 -0
  108. /package/dist/{src/components → components}/switch/switch.js +0 -0
  109. /package/dist/{src/components → components}/text-input/text-input.js +0 -0
  110. /package/dist/{src/components → components}/tooltip/tooltip.js +0 -0
  111. /package/dist/{src/components → components}/tooltip-provider/tooltip-provider.js +0 -0
  112. /package/dist/{src/components → components}/touch-target/touch-target.js +0 -0
  113. /package/dist/{src/components → components}/user-dropdown/user-dropdown.js +0 -0
  114. /package/dist/{src/components → components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
  115. /package/dist/{src/hooks → hooks}/use-scroll-to-bottom.js +0 -0
  116. /package/dist/{src/internal → internal}/modal-header.js +0 -0
  117. /package/dist/{src/internal → internal}/modal.js +0 -0
  118. /package/dist/{src/internal → internal}/react-portal.js +0 -0
  119. /package/dist/{src/internal → internal}/round-button.js +0 -0
  120. /package/dist/{src/lib → lib}/tailwind-merge.js +0 -0
  121. /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 "./src/components/echarts-renderer/echarts-renderer.js";
2
- import { EChartsThemeOption as a, isEChartsThemeOption as i } from "./src/components/echarts-renderer/echarts-theme-option.js";
3
- import { EChartsChartOption as s, isEChartsChartOption as h } from "./src/components/echarts-renderer/echarts-chart-option.js";
4
- import { useChartInstance as n } from "./src/components/echarts-renderer/use-chart-instance.js";
5
- import { MavrikChart as E } from "./src/components/echarts-renderer/mavrik-chart.js";
6
- import { MAVRIK_THEME as x, MAVRIK_THEME_HORIZONTAL as O, selectMavrikTheme as R } from "./src/components/echarts-renderer/mavrik-theme.js";
7
- import { hasHorizontalBars as M } from "./src/components/echarts-renderer/detect-horizontal-bars.js";
8
- import { WATERMARK_GRAPHIC as H, addWatermarkToOptions as I } from "./src/components/echarts-renderer/watermark-graphic.js";
9
- import { sanitizeChartOptionsForStaticRendering as _ } from "./src/components/echarts-renderer/sanitize-chart-options-for-static-rendering.js";
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<import('@radix-ui/react-select').SelectItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement | null>>;
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 n, jsx as t } from "react/jsx-runtime";
2
- import { SelectItem as p, SelectItemText as u, Select as m, SelectTrigger as x, SelectValue as b, SelectIcon as f, SelectPortal as y, SelectContent as S, SelectScrollUpButton as w, SelectViewport as v, SelectScrollDownButton as N } from "../../../node_modules/.pnpm/@radix-ui_react-select@2.1.7_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react@_6ddc7a756051e26689ab8a69ff12c731/node_modules/@radix-ui/react-select/dist/index.js";
3
- import { forwardRef as i } from "react";
4
- import { Icon as d } from "../icon/icon.js";
5
- import { twMerge as a } from "../../lib/tailwind-merge.js";
6
- const I = i(
7
- ({ className: e, children: r, textValue: o, ...c }, s) => {
8
- const l = o !== void 0 && o !== "";
9
- return /* @__PURE__ */ n(
10
- p,
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: a(
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: o,
21
- ...c,
22
- ref: s,
20
+ textValue: n,
21
+ ...s,
22
+ ref: d,
23
23
  children: [
24
- /* @__PURE__ */ t(u, { children: /* @__PURE__ */ t("span", { children: l ? o : r }) }),
25
- l && r
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
- I.displayName = "SelectItem";
32
- const _ = i(
33
- ({ variant: e = "primary", size: r = "large", placeholder: o, children: c, className: s, contentClassName: l, ...g }, h) => /* @__PURE__ */ n(m, { ...g, children: [
34
- /* @__PURE__ */ n(
35
- x,
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: h,
38
- className: a(
37
+ ref: p,
38
+ className: c(
39
39
  "group inline-flex items-center justify-between outline-none",
40
40
  // size:
41
- r === "small" && "tg-caption-bold h-8 gap-2 rounded-lg px-2 py-1.5",
42
- r === "large" && "gap-r6 tg-button-small h-9 rounded-xl px-4 py-2",
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
- s
55
+ d
56
56
  ),
57
57
  children: [
58
- /* @__PURE__ */ t(b, { placeholder: o }),
59
- /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
60
- d,
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: a(
64
- r === "small" && "size-2",
65
- r === "large" && "-mr-1 size-3",
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(y, { children: /* @__PURE__ */ n(
76
- S,
75
+ /* @__PURE__ */ t(r.Portal, { children: /* @__PURE__ */ a(
76
+ r.Content,
77
77
  {
78
- className: a(
79
- r === "small" && "[--content-padding:--spacing(1)] [--content-radius:--spacing(2.5)] [--item-padding-x:--spacing(2)] [--item-padding-y:--spacing(1.5)]",
80
- r === "large" && "[--content-padding:--spacing(1.5)] [--content-radius:--spacing(4)] [--item-padding-x:--spacing(4)] [--item-padding-y:--spacing(2)]",
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(w, { className: "flex h-6 cursor-default items-center justify-center bg-(--bg-color) text-white hover:bg-(--bg-hover-color)", children: /* @__PURE__ */ t(d, { icon: "chevron", className: "size-3 -scale-y-100 text-white" }) }),
94
- /* @__PURE__ */ t(v, { className: "p-(--content-padding)", children: c }),
95
- /* @__PURE__ */ t(N, { className: "flex h-6 cursor-default items-center justify-center bg-(--bg-color) text-white hover:bg-(--bg-hover-color)", children: /* @__PURE__ */ t(d, { icon: "chevron", className: "size-3 text-white" }) })
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
- _.displayName = "Select";
101
+ m.displayName = "Select";
102
102
  export {
103
- _ as Select,
104
- I as SelectItem
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 "./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 { ClientModal as d } from "./src/components/client-modal/client-modal.js";
6
- import { Collapsible as i, CollapsibleContent as u, CollapsibleTrigger as c } from "./src/components/collapsible/collapsible.js";
7
- import { CopyButton as B } from "./src/components/copy-button/copy-button.js";
8
- import { DecoratedIcon as C } from "./src/components/decorated-icon/decorated-icon.js";
9
- import { DropdownMenu as T, DropdownMenuItem as s } from "./src/components/dropdown-menu/dropdown-menu.js";
10
- import { ErrorBoundary as M } from "./src/components/error-boundary/error-boundary.js";
11
- import { ScrollArea as b } from "./src/components/scroll-area/index.js";
12
- import { Icon as h } from "./src/components/icon/icon.js";
13
- import { IconButton as y } from "./src/components/icon-button/icon-button.js";
14
- import { InputButton as L } from "./src/components/input-button/input-button.js";
15
- import { MountSvgSprite as k } from "./src/components/mount-svg-sprite/mount-svg-sprite.js";
16
- import { NotFoundComponent as F } from "./src/components/not-found-component/not-found-component.js";
17
- import { PagePadding as j } from "./src/components/page-padding/page-padding.js";
18
- import { ProtocolLogo as z } from "./src/components/protocol-logo/protocol-logo.js";
19
- import { Select as H, SelectItem as J } from "./src/components/select/select.js";
20
- import { Skeleton as O } from "./src/components/skeleton/skeleton.js";
21
- import { Switch as R } from "./src/components/switch/switch.js";
22
- import { TextInput as W } from "./src/components/text-input/text-input.js";
23
- import { Tooltip as Y } from "./src/components/tooltip/tooltip.js";
24
- import { TooltipProvider as _ } from "./src/components/tooltip-provider/tooltip-provider.js";
25
- import { TouchTarget as oo } from "./src/components/touch-target/touch-target.js";
26
- import { twMerge as eo } from "./src/lib/tailwind-merge.js";
27
- import { UserDropdown as po } from "./src/components/user-dropdown/user-dropdown.js";
28
- import { UserDropdownMobile as xo } from "./src/components/user-dropdown-mobile/user-dropdown-mobile.js";
29
- import { useScrollToBottom as no } from "./src/hooks/use-scroll-to-bottom.js";
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,
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Poppins font files embedded as base64 buffers.
3
+ *
4
+ * AUTO-GENERATED FILE - DO NOT EDIT
5
+ * Run `pnpm generate:fonts` to regenerate.
6
+ *
7
+ * These embedded fonts ensure server-side chart rendering works in serverless
8
+ * environments (Vercel, AWS Lambda) where file system paths are not available.
9
+ */
10
+ /** Poppins-Regular.ttf embedded as base64 buffer */
11
+ export declare const PoppinsRegular: Buffer<ArrayBuffer>;
12
+ /** Poppins-Medium.ttf embedded as base64 buffer */
13
+ export declare const PoppinsMedium: Buffer<ArrayBuffer>;
14
+ /** Poppins-SemiBold.ttf embedded as base64 buffer */
15
+ export declare const PoppinsSemiBold: Buffer<ArrayBuffer>;
16
+ /** Poppins-Bold.ttf embedded as base64 buffer */
17
+ export declare const PoppinsBold: Buffer<ArrayBuffer>;