@validationcloud/fractal-ui 1.53.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 (105) hide show
  1. package/dist/components/select/select.d.ts +23 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +52 -49
  4. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  5. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  6. 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
  7. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  8. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  9. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.js +6 -0
  10. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  32. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +27 -0
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. package/dist/server.js +1 -1
  53. package/dist/src/components/select/select.js +105 -0
  54. package/package.json +2 -1
  55. /package/dist/{assets → src/assets}/animated-loader.svg.js +0 -0
  56. /package/dist/{assets → src/assets}/default-avatar.svg.js +0 -0
  57. /package/dist/{assets → src/assets}/not-found.svg.js +0 -0
  58. /package/dist/{assets → src/assets}/vc-logo.svg.js +0 -0
  59. /package/dist/{components → src/components}/animated-loader/animated-loader.js +0 -0
  60. /package/dist/{components → src/components}/badge/badge.js +0 -0
  61. /package/dist/{components → src/components}/box/box.js +0 -0
  62. /package/dist/{components → src/components}/button/button.js +0 -0
  63. /package/dist/{components → src/components}/client-modal/client-modal.js +0 -0
  64. /package/dist/{components → src/components}/copy-button/copy-button.js +0 -0
  65. /package/dist/{components → src/components}/decorated-icon/decorated-icon.js +0 -0
  66. /package/dist/{components → src/components}/dropdown-menu/dropdown-menu.js +0 -0
  67. /package/dist/{components → src/components}/echarts-renderer/calculate-title-layout.js +0 -0
  68. /package/dist/{components → src/components}/echarts-renderer/detect-horizontal-bars.js +0 -0
  69. /package/dist/{components → src/components}/echarts-renderer/echarts-chart-option.js +0 -0
  70. /package/dist/{components → src/components}/echarts-renderer/echarts-renderer.js +0 -0
  71. /package/dist/{components → src/components}/echarts-renderer/echarts-theme-option.js +0 -0
  72. /package/dist/{components → src/components}/echarts-renderer/mavrik-chart.js +0 -0
  73. /package/dist/{components → src/components}/echarts-renderer/mavrik-theme-horizontal.json.js +0 -0
  74. /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.js +0 -0
  75. /package/dist/{components → src/components}/echarts-renderer/mavrik-theme.json.js +0 -0
  76. /package/dist/{components → src/components}/echarts-renderer/sanitize-chart-options.js +0 -0
  77. /package/dist/{components → src/components}/echarts-renderer/use-chart-instance.js +0 -0
  78. /package/dist/{components → src/components}/echarts-renderer/watermark-graphic.js +0 -0
  79. /package/dist/{components → src/components}/error-boundary/error-boundary.js +0 -0
  80. /package/dist/{components → src/components}/icon/icon.js +0 -0
  81. /package/dist/{components → src/components}/icon-button/icon-button.js +0 -0
  82. /package/dist/{components → src/components}/input-button/input-button.js +0 -0
  83. /package/dist/{components → src/components}/mount-svg-sprite/mount-svg-sprite.js +0 -0
  84. /package/dist/{components → src/components}/not-found-component/not-found-component.js +0 -0
  85. /package/dist/{components → src/components}/page-padding/page-padding.js +0 -0
  86. /package/dist/{components → src/components}/protocol-logo/protocol-logo.js +0 -0
  87. /package/dist/{components → src/components}/scroll-area/index.js +0 -0
  88. /package/dist/{components → src/components}/scroll-area/scroll-area-viewport.js +0 -0
  89. /package/dist/{components → src/components}/scroll-area/scroll-area.js +0 -0
  90. /package/dist/{components → src/components}/skeleton/skeleton.js +0 -0
  91. /package/dist/{components → src/components}/switch/switch.js +0 -0
  92. /package/dist/{components → src/components}/text-input/text-input.js +0 -0
  93. /package/dist/{components → src/components}/tooltip/tooltip.js +0 -0
  94. /package/dist/{components → src/components}/tooltip-provider/tooltip-provider.js +0 -0
  95. /package/dist/{components → src/components}/touch-target/touch-target.js +0 -0
  96. /package/dist/{components → src/components}/user-dropdown/user-dropdown.js +0 -0
  97. /package/dist/{components → src/components}/user-dropdown-mobile/user-dropdown-mobile.js +0 -0
  98. /package/dist/{hooks → src/hooks}/use-scroll-to-bottom.js +0 -0
  99. /package/dist/{internal → src/internal}/modal-header.js +0 -0
  100. /package/dist/{internal → src/internal}/modal.js +0 -0
  101. /package/dist/{internal → src/internal}/react-portal.js +0 -0
  102. /package/dist/{internal → src/internal}/round-button.js +0 -0
  103. /package/dist/{lib → src/lib}/render-chart-to-image.js +0 -0
  104. /package/dist/{lib → src/lib}/tailwind-merge.js +0 -0
  105. /package/dist/{utils → src/utils}/disable-password-managers.js +0 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * SelectItem is a wrapper around Radix's Select.Item component, meant to be used with the Select component.
3
+ * It applies project-specific styling to the Radix's component.
4
+ *
5
+ * When `textValue` is provided:
6
+ * - The trigger will display `textValue` when this item is selected
7
+ * - The `children` will be displayed as custom content in the dropdown
8
+ */
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
+ /**
11
+ * Select is a wrapper around Radix's Select component.
12
+ * It applies project-specific styling to the Radix's component.
13
+ * The component is meant to be used with SelectItem provided as children.
14
+ *
15
+ * @see {@link https://radix-ui.com/primitives/docs/components/select}
16
+ */
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>>;
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export { MountSvgSprite } from './components/mount-svg-sprite/mount-svg-sprite';
21
21
  export { NotFoundComponent } from './components/not-found-component/not-found-component';
22
22
  export { PagePadding } from './components/page-padding/page-padding';
23
23
  export { ProtocolLogo } from './components/protocol-logo/protocol-logo';
24
+ export { Select, SelectItem } from './components/select/select';
24
25
  export { Skeleton } from './components/skeleton/skeleton';
25
26
  export { Switch } from './components/switch/switch';
26
27
  export { TextInput } from './components/text-input/text-input';
package/dist/index.js CHANGED
@@ -1,47 +1,48 @@
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 i } 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 C, isEChartsChartOption as l } from "./components/echarts-renderer/echarts-chart-option.js";
8
- import { useChartInstance as T } from "./components/echarts-renderer/use-chart-instance.js";
9
- import { MavrikChart as E } from "./components/echarts-renderer/mavrik-chart.js";
10
- import { MAVRIK_THEME as B, MAVRIK_THEME_HORIZONTAL as g } from "./components/echarts-renderer/mavrik-theme.js";
11
- import { ClientModal as O } from "./components/client-modal/client-modal.js";
12
- import { CopyButton as A } from "./components/copy-button/copy-button.js";
13
- import { DecoratedIcon as P } from "./components/decorated-icon/decorated-icon.js";
14
- import { DropdownMenu as v, DropdownMenuItem as H } from "./components/dropdown-menu/dropdown-menu.js";
15
- import { ErrorBoundary as _ } from "./components/error-boundary/error-boundary.js";
16
- import { ScrollArea as y } from "./components/scroll-area/index.js";
17
- import { Icon as N } from "./components/icon/icon.js";
18
- import { IconButton as V } from "./components/icon-button/icon-button.js";
19
- import { InputButton as F } from "./components/input-button/input-button.js";
20
- import { MountSvgSprite as j } from "./components/mount-svg-sprite/mount-svg-sprite.js";
21
- import { NotFoundComponent as z } from "./components/not-found-component/not-found-component.js";
22
- import { PagePadding as J } from "./components/page-padding/page-padding.js";
23
- import { ProtocolLogo as W } from "./components/protocol-logo/protocol-logo.js";
24
- import { Skeleton as Y } from "./components/skeleton/skeleton.js";
25
- import { Switch as oo } from "./components/switch/switch.js";
26
- import { TextInput as to } from "./components/text-input/text-input.js";
27
- import { Tooltip as po } from "./components/tooltip/tooltip.js";
28
- import { TooltipProvider as xo } from "./components/tooltip-provider/tooltip-provider.js";
29
- import { TouchTarget as no } from "./components/touch-target/touch-target.js";
30
- import { twMerge as io } from "./lib/tailwind-merge.js";
31
- import { UserDropdown as ho } from "./components/user-dropdown/user-dropdown.js";
32
- import { UserDropdownMobile as Co } from "./components/user-dropdown-mobile/user-dropdown-mobile.js";
33
- import { useScrollToBottom as Mo } 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";
34
35
  export {
35
36
  t as AnimatedLoader,
36
37
  p as Badge,
37
38
  x as Box,
38
39
  n as Button,
39
- O as ClientModal,
40
+ w as ClientModal,
40
41
  A as CopyButton,
41
42
  P as DecoratedIcon,
42
43
  v as DropdownMenu,
43
44
  H as DropdownMenuItem,
44
- C as EChartsChartOption,
45
+ c as EChartsChartOption,
45
46
  i as EChartsRenderer,
46
47
  u as EChartsThemeOption,
47
48
  _ as ErrorBoundary,
@@ -49,24 +50,26 @@ export {
49
50
  V as IconButton,
50
51
  F as InputButton,
51
52
  B as MAVRIK_THEME,
52
- g as MAVRIK_THEME_HORIZONTAL,
53
- E as MavrikChart,
53
+ S as MAVRIK_THEME_HORIZONTAL,
54
+ T as MavrikChart,
54
55
  j as MountSvgSprite,
55
56
  z as NotFoundComponent,
56
57
  J as PagePadding,
57
58
  W as ProtocolLogo,
58
59
  y as ScrollArea,
59
- Y as Skeleton,
60
- oo as Switch,
61
- to as TextInput,
62
- po as Tooltip,
63
- xo as TooltipProvider,
64
- no as TouchTarget,
65
- ho as UserDropdown,
66
- Co as UserDropdownMobile,
67
- l as isEChartsChartOption,
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,
68
71
  h as isEChartsThemeOption,
69
- io as twMerge,
70
- T as useChartInstance,
71
- Mo as useScrollToBottom
72
+ lo as twMerge,
73
+ I as useChartInstance,
74
+ To as useScrollToBottom
72
75
  };
@@ -0,0 +1,527 @@
1
+ import { evaluate as L, getSideAxis as T, getSide as j, clamp as X, getOppositePlacement as ee, getExpandedPlacements as te, getOppositeAxisPlacements as ne, getAlignmentSides as ie, getAlignment as z, min as $, max as W, getPaddingObject as J, rectToClientRect as _, getOppositeAxis as K, getAlignmentAxis as N, sides as se, getAxisLength as Q } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
2
+ function I(t, e, d) {
3
+ let {
4
+ reference: a,
5
+ floating: r
6
+ } = t;
7
+ const n = T(e), o = N(e), m = Q(o), u = j(e), h = n === "y", c = a.x + a.width / 2 - r.width / 2, s = a.y + a.height / 2 - r.height / 2, f = a[m] / 2 - r[m] / 2;
8
+ let i;
9
+ switch (u) {
10
+ case "top":
11
+ i = {
12
+ x: c,
13
+ y: a.y - r.height
14
+ };
15
+ break;
16
+ case "bottom":
17
+ i = {
18
+ x: c,
19
+ y: a.y + a.height
20
+ };
21
+ break;
22
+ case "right":
23
+ i = {
24
+ x: a.x + a.width,
25
+ y: s
26
+ };
27
+ break;
28
+ case "left":
29
+ i = {
30
+ x: a.x - r.width,
31
+ y: s
32
+ };
33
+ break;
34
+ default:
35
+ i = {
36
+ x: a.x,
37
+ y: a.y
38
+ };
39
+ }
40
+ switch (z(e)) {
41
+ case "start":
42
+ i[o] -= f * (d && h ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ i[o] += f * (d && h ? -1 : 1);
46
+ break;
47
+ }
48
+ return i;
49
+ }
50
+ const ce = async (t, e, d) => {
51
+ const {
52
+ placement: a = "bottom",
53
+ strategy: r = "absolute",
54
+ middleware: n = [],
55
+ platform: o
56
+ } = d, m = n.filter(Boolean), u = await (o.isRTL == null ? void 0 : o.isRTL(e));
57
+ let h = await o.getElementRects({
58
+ reference: t,
59
+ floating: e,
60
+ strategy: r
61
+ }), {
62
+ x: c,
63
+ y: s
64
+ } = I(h, a, u), f = a, i = {}, l = 0;
65
+ for (let g = 0; g < m.length; g++) {
66
+ const {
67
+ name: x,
68
+ fn: y
69
+ } = m[g], {
70
+ x: A,
71
+ y: p,
72
+ data: v,
73
+ reset: w
74
+ } = await y({
75
+ x: c,
76
+ y: s,
77
+ initialPlacement: a,
78
+ placement: f,
79
+ strategy: r,
80
+ middlewareData: i,
81
+ rects: h,
82
+ platform: o,
83
+ elements: {
84
+ reference: t,
85
+ floating: e
86
+ }
87
+ });
88
+ c = A ?? c, s = p ?? s, i = {
89
+ ...i,
90
+ [x]: {
91
+ ...i[x],
92
+ ...v
93
+ }
94
+ }, w && l <= 50 && (l++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (h = w.rects === !0 ? await o.getElementRects({
95
+ reference: t,
96
+ floating: e,
97
+ strategy: r
98
+ }) : w.rects), {
99
+ x: c,
100
+ y: s
101
+ } = I(h, f, u)), g = -1);
102
+ }
103
+ return {
104
+ x: c,
105
+ y: s,
106
+ placement: f,
107
+ strategy: r,
108
+ middlewareData: i
109
+ };
110
+ };
111
+ async function Y(t, e) {
112
+ var d;
113
+ e === void 0 && (e = {});
114
+ const {
115
+ x: a,
116
+ y: r,
117
+ platform: n,
118
+ rects: o,
119
+ elements: m,
120
+ strategy: u
121
+ } = t, {
122
+ boundary: h = "clippingAncestors",
123
+ rootBoundary: c = "viewport",
124
+ elementContext: s = "floating",
125
+ altBoundary: f = !1,
126
+ padding: i = 0
127
+ } = L(e, t), l = J(i), x = m[f ? s === "floating" ? "reference" : "floating" : s], y = _(await n.getClippingRect({
128
+ element: (d = await (n.isElement == null ? void 0 : n.isElement(x))) == null || d ? x : x.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(m.floating)),
129
+ boundary: h,
130
+ rootBoundary: c,
131
+ strategy: u
132
+ })), A = s === "floating" ? {
133
+ x: a,
134
+ y: r,
135
+ width: o.floating.width,
136
+ height: o.floating.height
137
+ } : o.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(m.floating)), v = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
138
+ x: 1,
139
+ y: 1
140
+ } : {
141
+ x: 1,
142
+ y: 1
143
+ }, w = _(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
144
+ elements: m,
145
+ rect: A,
146
+ offsetParent: p,
147
+ strategy: u
148
+ }) : A);
149
+ return {
150
+ top: (y.top - w.top + l.top) / v.y,
151
+ bottom: (w.bottom - y.bottom + l.bottom) / v.y,
152
+ left: (y.left - w.left + l.left) / v.x,
153
+ right: (w.right - y.right + l.right) / v.x
154
+ };
155
+ }
156
+ const le = (t) => ({
157
+ name: "arrow",
158
+ options: t,
159
+ async fn(e) {
160
+ const {
161
+ x: d,
162
+ y: a,
163
+ placement: r,
164
+ rects: n,
165
+ platform: o,
166
+ elements: m,
167
+ middlewareData: u
168
+ } = e, {
169
+ element: h,
170
+ padding: c = 0
171
+ } = L(t, e) || {};
172
+ if (h == null)
173
+ return {};
174
+ const s = J(c), f = {
175
+ x: d,
176
+ y: a
177
+ }, i = N(r), l = Q(i), g = await o.getDimensions(h), x = i === "y", y = x ? "top" : "left", A = x ? "bottom" : "right", p = x ? "clientHeight" : "clientWidth", v = n.reference[l] + n.reference[i] - f[i] - n.floating[l], w = f[i] - n.reference[i], P = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(h));
178
+ let C = P ? P[p] : 0;
179
+ (!C || !await (o.isElement == null ? void 0 : o.isElement(P))) && (C = m.floating[p] || n.floating[l]);
180
+ const M = v / 2 - w / 2, k = C / 2 - g[l] / 2 - 1, O = $(s[y], k), H = $(s[A], k), D = O, F = C - g[l] - H, b = C / 2 - g[l] / 2 + M, B = X(D, b, F), E = !u.arrow && z(r) != null && b !== B && n.reference[l] / 2 - (b < D ? O : H) - g[l] / 2 < 0, S = E ? b < D ? b - D : b - F : 0;
181
+ return {
182
+ [i]: f[i] + S,
183
+ data: {
184
+ [i]: B,
185
+ centerOffset: b - B - S,
186
+ ...E && {
187
+ alignmentOffset: S
188
+ }
189
+ },
190
+ reset: E
191
+ };
192
+ }
193
+ }), re = function(t) {
194
+ return t === void 0 && (t = {}), {
195
+ name: "flip",
196
+ options: t,
197
+ async fn(e) {
198
+ var d, a;
199
+ const {
200
+ placement: r,
201
+ middlewareData: n,
202
+ rects: o,
203
+ initialPlacement: m,
204
+ platform: u,
205
+ elements: h
206
+ } = e, {
207
+ mainAxis: c = !0,
208
+ crossAxis: s = !0,
209
+ fallbackPlacements: f,
210
+ fallbackStrategy: i = "bestFit",
211
+ fallbackAxisSideDirection: l = "none",
212
+ flipAlignment: g = !0,
213
+ ...x
214
+ } = L(t, e);
215
+ if ((d = n.arrow) != null && d.alignmentOffset)
216
+ return {};
217
+ const y = j(r), A = T(m), p = j(m) === m, v = await (u.isRTL == null ? void 0 : u.isRTL(h.floating)), w = f || (p || !g ? [ee(m)] : te(m)), P = l !== "none";
218
+ !f && P && w.push(...ne(m, g, l, v));
219
+ const C = [m, ...w], M = await Y(e, x), k = [];
220
+ let O = ((a = n.flip) == null ? void 0 : a.overflows) || [];
221
+ if (c && k.push(M[y]), s) {
222
+ const b = ie(r, o, v);
223
+ k.push(M[b[0]], M[b[1]]);
224
+ }
225
+ if (O = [...O, {
226
+ placement: r,
227
+ overflows: k
228
+ }], !k.every((b) => b <= 0)) {
229
+ var H, D;
230
+ const b = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, B = C[b];
231
+ if (B && (!(s === "alignment" ? A !== T(B) : !1) || // We leave the current main axis only if every placement on that axis
232
+ // overflows the main axis.
233
+ O.every((R) => T(R.placement) === A ? R.overflows[0] > 0 : !0)))
234
+ return {
235
+ data: {
236
+ index: b,
237
+ overflows: O
238
+ },
239
+ reset: {
240
+ placement: B
241
+ }
242
+ };
243
+ let E = (D = O.filter((S) => S.overflows[0] <= 0).sort((S, R) => S.overflows[1] - R.overflows[1])[0]) == null ? void 0 : D.placement;
244
+ if (!E)
245
+ switch (i) {
246
+ case "bestFit": {
247
+ var F;
248
+ const S = (F = O.filter((R) => {
249
+ if (P) {
250
+ const V = T(R.placement);
251
+ return V === A || // Create a bias to the `y` side axis due to horizontal
252
+ // reading directions favoring greater width.
253
+ V === "y";
254
+ }
255
+ return !0;
256
+ }).map((R) => [R.placement, R.overflows.filter((V) => V > 0).reduce((V, Z) => V + Z, 0)]).sort((R, V) => R[1] - V[1])[0]) == null ? void 0 : F[0];
257
+ S && (E = S);
258
+ break;
259
+ }
260
+ case "initialPlacement":
261
+ E = m;
262
+ break;
263
+ }
264
+ if (r !== E)
265
+ return {
266
+ reset: {
267
+ placement: E
268
+ }
269
+ };
270
+ }
271
+ return {};
272
+ }
273
+ };
274
+ };
275
+ function q(t, e) {
276
+ return {
277
+ top: t.top - e.height,
278
+ right: t.right - e.width,
279
+ bottom: t.bottom - e.height,
280
+ left: t.left - e.width
281
+ };
282
+ }
283
+ function G(t) {
284
+ return se.some((e) => t[e] >= 0);
285
+ }
286
+ const fe = function(t) {
287
+ return t === void 0 && (t = {}), {
288
+ name: "hide",
289
+ options: t,
290
+ async fn(e) {
291
+ const {
292
+ rects: d
293
+ } = e, {
294
+ strategy: a = "referenceHidden",
295
+ ...r
296
+ } = L(t, e);
297
+ switch (a) {
298
+ case "referenceHidden": {
299
+ const n = await Y(e, {
300
+ ...r,
301
+ elementContext: "reference"
302
+ }), o = q(n, d.reference);
303
+ return {
304
+ data: {
305
+ referenceHiddenOffsets: o,
306
+ referenceHidden: G(o)
307
+ }
308
+ };
309
+ }
310
+ case "escaped": {
311
+ const n = await Y(e, {
312
+ ...r,
313
+ altBoundary: !0
314
+ }), o = q(n, d.floating);
315
+ return {
316
+ data: {
317
+ escapedOffsets: o,
318
+ escaped: G(o)
319
+ }
320
+ };
321
+ }
322
+ default:
323
+ return {};
324
+ }
325
+ }
326
+ };
327
+ }, U = /* @__PURE__ */ new Set(["left", "top"]);
328
+ async function oe(t, e) {
329
+ const {
330
+ placement: d,
331
+ platform: a,
332
+ elements: r
333
+ } = t, n = await (a.isRTL == null ? void 0 : a.isRTL(r.floating)), o = j(d), m = z(d), u = T(d) === "y", h = U.has(o) ? -1 : 1, c = n && u ? -1 : 1, s = L(e, t);
334
+ let {
335
+ mainAxis: f,
336
+ crossAxis: i,
337
+ alignmentAxis: l
338
+ } = typeof s == "number" ? {
339
+ mainAxis: s,
340
+ crossAxis: 0,
341
+ alignmentAxis: null
342
+ } : {
343
+ mainAxis: s.mainAxis || 0,
344
+ crossAxis: s.crossAxis || 0,
345
+ alignmentAxis: s.alignmentAxis
346
+ };
347
+ return m && typeof l == "number" && (i = m === "end" ? l * -1 : l), u ? {
348
+ x: i * c,
349
+ y: f * h
350
+ } : {
351
+ x: f * h,
352
+ y: i * c
353
+ };
354
+ }
355
+ const me = function(t) {
356
+ return t === void 0 && (t = 0), {
357
+ name: "offset",
358
+ options: t,
359
+ async fn(e) {
360
+ var d, a;
361
+ const {
362
+ x: r,
363
+ y: n,
364
+ placement: o,
365
+ middlewareData: m
366
+ } = e, u = await oe(e, t);
367
+ return o === ((d = m.offset) == null ? void 0 : d.placement) && (a = m.arrow) != null && a.alignmentOffset ? {} : {
368
+ x: r + u.x,
369
+ y: n + u.y,
370
+ data: {
371
+ ...u,
372
+ placement: o
373
+ }
374
+ };
375
+ }
376
+ };
377
+ }, de = function(t) {
378
+ return t === void 0 && (t = {}), {
379
+ name: "shift",
380
+ options: t,
381
+ async fn(e) {
382
+ const {
383
+ x: d,
384
+ y: a,
385
+ placement: r
386
+ } = e, {
387
+ mainAxis: n = !0,
388
+ crossAxis: o = !1,
389
+ limiter: m = {
390
+ fn: (x) => {
391
+ let {
392
+ x: y,
393
+ y: A
394
+ } = x;
395
+ return {
396
+ x: y,
397
+ y: A
398
+ };
399
+ }
400
+ },
401
+ ...u
402
+ } = L(t, e), h = {
403
+ x: d,
404
+ y: a
405
+ }, c = await Y(e, u), s = T(j(r)), f = K(s);
406
+ let i = h[f], l = h[s];
407
+ if (n) {
408
+ const x = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", A = i + c[x], p = i - c[y];
409
+ i = X(A, i, p);
410
+ }
411
+ if (o) {
412
+ const x = s === "y" ? "top" : "left", y = s === "y" ? "bottom" : "right", A = l + c[x], p = l - c[y];
413
+ l = X(A, l, p);
414
+ }
415
+ const g = m.fn({
416
+ ...e,
417
+ [f]: i,
418
+ [s]: l
419
+ });
420
+ return {
421
+ ...g,
422
+ data: {
423
+ x: g.x - d,
424
+ y: g.y - a,
425
+ enabled: {
426
+ [f]: n,
427
+ [s]: o
428
+ }
429
+ }
430
+ };
431
+ }
432
+ };
433
+ }, xe = function(t) {
434
+ return t === void 0 && (t = {}), {
435
+ options: t,
436
+ fn(e) {
437
+ const {
438
+ x: d,
439
+ y: a,
440
+ placement: r,
441
+ rects: n,
442
+ middlewareData: o
443
+ } = e, {
444
+ offset: m = 0,
445
+ mainAxis: u = !0,
446
+ crossAxis: h = !0
447
+ } = L(t, e), c = {
448
+ x: d,
449
+ y: a
450
+ }, s = T(r), f = K(s);
451
+ let i = c[f], l = c[s];
452
+ const g = L(m, e), x = typeof g == "number" ? {
453
+ mainAxis: g,
454
+ crossAxis: 0
455
+ } : {
456
+ mainAxis: 0,
457
+ crossAxis: 0,
458
+ ...g
459
+ };
460
+ if (u) {
461
+ const p = f === "y" ? "height" : "width", v = n.reference[f] - n.floating[p] + x.mainAxis, w = n.reference[f] + n.reference[p] - x.mainAxis;
462
+ i < v ? i = v : i > w && (i = w);
463
+ }
464
+ if (h) {
465
+ var y, A;
466
+ const p = f === "y" ? "width" : "height", v = U.has(j(r)), w = n.reference[s] - n.floating[p] + (v && ((y = o.offset) == null ? void 0 : y[s]) || 0) + (v ? 0 : x.crossAxis), P = n.reference[s] + n.reference[p] + (v ? 0 : ((A = o.offset) == null ? void 0 : A[s]) || 0) - (v ? x.crossAxis : 0);
467
+ l < w ? l = w : l > P && (l = P);
468
+ }
469
+ return {
470
+ [f]: i,
471
+ [s]: l
472
+ };
473
+ }
474
+ };
475
+ }, ge = function(t) {
476
+ return t === void 0 && (t = {}), {
477
+ name: "size",
478
+ options: t,
479
+ async fn(e) {
480
+ var d, a;
481
+ const {
482
+ placement: r,
483
+ rects: n,
484
+ platform: o,
485
+ elements: m
486
+ } = e, {
487
+ apply: u = () => {
488
+ },
489
+ ...h
490
+ } = L(t, e), c = await Y(e, h), s = j(r), f = z(r), i = T(r) === "y", {
491
+ width: l,
492
+ height: g
493
+ } = n.floating;
494
+ let x, y;
495
+ s === "top" || s === "bottom" ? (x = s, y = f === (await (o.isRTL == null ? void 0 : o.isRTL(m.floating)) ? "start" : "end") ? "left" : "right") : (y = s, x = f === "end" ? "top" : "bottom");
496
+ const A = g - c.top - c.bottom, p = l - c.left - c.right, v = $(g - c[x], A), w = $(l - c[y], p), P = !e.middlewareData.shift;
497
+ let C = v, M = w;
498
+ if ((d = e.middlewareData.shift) != null && d.enabled.x && (M = p), (a = e.middlewareData.shift) != null && a.enabled.y && (C = A), P && !f) {
499
+ const O = W(c.left, 0), H = W(c.right, 0), D = W(c.top, 0), F = W(c.bottom, 0);
500
+ i ? M = l - 2 * (O !== 0 || H !== 0 ? O + H : W(c.left, c.right)) : C = g - 2 * (D !== 0 || F !== 0 ? D + F : W(c.top, c.bottom));
501
+ }
502
+ await u({
503
+ ...e,
504
+ availableWidth: M,
505
+ availableHeight: C
506
+ });
507
+ const k = await o.getDimensions(m.floating);
508
+ return l !== k.width || g !== k.height ? {
509
+ reset: {
510
+ rects: !0
511
+ }
512
+ } : {};
513
+ }
514
+ };
515
+ };
516
+ export {
517
+ le as arrow,
518
+ ce as computePosition,
519
+ Y as detectOverflow,
520
+ re as flip,
521
+ fe as hide,
522
+ xe as limitShift,
523
+ me as offset,
524
+ _ as rectToClientRect,
525
+ de as shift,
526
+ ge as size
527
+ };