@luxfi/ui 7.4.10 → 7.4.12

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 (137) hide show
  1. package/dist/accordion.cjs +107 -166
  2. package/dist/accordion.d.cts +18 -51
  3. package/dist/accordion.d.ts +18 -51
  4. package/dist/accordion.js +109 -166
  5. package/dist/alert.cjs +68 -46
  6. package/dist/alert.js +69 -46
  7. package/dist/avatar.cjs +49 -46
  8. package/dist/avatar.js +52 -48
  9. package/dist/badge.cjs +82 -49
  10. package/dist/badge.js +83 -50
  11. package/dist/checkbox.cjs +42 -75
  12. package/dist/checkbox.js +43 -76
  13. package/dist/chrome.cjs +196 -386
  14. package/dist/chrome.js +198 -386
  15. package/dist/close-button.cjs +3 -7
  16. package/dist/close-button.js +3 -7
  17. package/dist/collapsible.cjs +35 -26
  18. package/dist/collapsible.d.cts +2 -1
  19. package/dist/collapsible.d.ts +2 -1
  20. package/dist/collapsible.js +34 -24
  21. package/dist/dialog.cjs +3 -7
  22. package/dist/dialog.d.cts +1 -1
  23. package/dist/dialog.d.ts +1 -1
  24. package/dist/dialog.js +3 -7
  25. package/dist/drawer.cjs +95 -122
  26. package/dist/drawer.d.cts +43 -10
  27. package/dist/drawer.d.ts +43 -10
  28. package/dist/drawer.js +97 -122
  29. package/dist/empty-state.cjs +13 -13
  30. package/dist/empty-state.js +13 -13
  31. package/dist/expiration-selector.cjs +58 -63
  32. package/dist/expiration-selector.js +58 -63
  33. package/dist/field.cjs +60 -109
  34. package/dist/field.d.cts +0 -1
  35. package/dist/field.d.ts +0 -1
  36. package/dist/field.js +61 -109
  37. package/dist/greeks-display.cjs +48 -39
  38. package/dist/greeks-display.js +48 -39
  39. package/dist/heading.cjs +10 -17
  40. package/dist/heading.d.cts +0 -2
  41. package/dist/heading.d.ts +0 -2
  42. package/dist/heading.js +10 -17
  43. package/dist/icon-button.cjs +82 -82
  44. package/dist/icon-button.d.cts +16 -12
  45. package/dist/icon-button.d.ts +16 -12
  46. package/dist/icon-button.js +82 -82
  47. package/dist/index.cjs +1812 -2105
  48. package/dist/index.d.cts +1 -5
  49. package/dist/index.d.ts +1 -5
  50. package/dist/index.js +1814 -2100
  51. package/dist/input-group.cjs +11 -12
  52. package/dist/input-group.js +11 -12
  53. package/dist/input.cjs +27 -27
  54. package/dist/input.d.cts +21 -1
  55. package/dist/input.d.ts +21 -1
  56. package/dist/input.js +25 -28
  57. package/dist/menu.cjs +160 -271
  58. package/dist/menu.d.cts +41 -57
  59. package/dist/menu.d.ts +41 -57
  60. package/dist/menu.js +161 -251
  61. package/dist/option-chain.cjs +89 -67
  62. package/dist/option-chain.js +89 -67
  63. package/dist/option-position.cjs +88 -85
  64. package/dist/option-position.js +88 -85
  65. package/dist/pnl-diagram.cjs +20 -20
  66. package/dist/pnl-diagram.js +20 -20
  67. package/dist/popover.cjs +4 -8
  68. package/dist/popover.js +4 -8
  69. package/dist/progress.cjs +15 -22
  70. package/dist/progress.d.cts +6 -6
  71. package/dist/progress.d.ts +6 -6
  72. package/dist/progress.js +15 -22
  73. package/dist/radio.cjs +35 -67
  74. package/dist/radio.d.cts +18 -18
  75. package/dist/radio.d.ts +18 -18
  76. package/dist/radio.js +36 -68
  77. package/dist/select.cjs +40 -39
  78. package/dist/select.d.cts +35 -4
  79. package/dist/select.d.ts +35 -4
  80. package/dist/select.js +40 -38
  81. package/dist/separator.cjs +8 -33
  82. package/dist/separator.js +8 -33
  83. package/dist/slider.cjs +33 -49
  84. package/dist/slider.js +34 -50
  85. package/dist/switch.cjs +48 -55
  86. package/dist/switch.js +49 -56
  87. package/dist/tabs.cjs +108 -197
  88. package/dist/tabs.d.cts +16 -60
  89. package/dist/tabs.d.ts +16 -60
  90. package/dist/tabs.js +109 -196
  91. package/dist/tag.cjs +112 -69
  92. package/dist/tag.js +113 -69
  93. package/dist/textarea.cjs +56 -27
  94. package/dist/textarea.js +57 -28
  95. package/dist/toaster.cjs +97 -79
  96. package/dist/toaster.d.cts +7 -8
  97. package/dist/toaster.d.ts +7 -8
  98. package/dist/toaster.js +78 -80
  99. package/dist/tooltip.cjs +28 -17
  100. package/dist/tooltip.js +30 -18
  101. package/package.json +2 -16
  102. package/src/accordion.tsx +173 -227
  103. package/src/alert.tsx +78 -45
  104. package/src/avatar.tsx +54 -37
  105. package/src/badge.tsx +65 -44
  106. package/src/checkbox.tsx +70 -89
  107. package/src/close-button.tsx +3 -8
  108. package/src/collapsible.tsx +55 -52
  109. package/src/drawer.tsx +123 -115
  110. package/src/empty-state.tsx +21 -17
  111. package/src/expiration-selector.tsx +84 -66
  112. package/src/field.tsx +68 -124
  113. package/src/greeks-display.tsx +59 -51
  114. package/src/heading.tsx +22 -26
  115. package/src/icon-button.tsx +134 -141
  116. package/src/ink.tsx +37 -0
  117. package/src/input-group.tsx +59 -36
  118. package/src/input.tsx +41 -32
  119. package/src/menu.tsx +224 -397
  120. package/src/option-chain.tsx +154 -104
  121. package/src/option-position.tsx +136 -114
  122. package/src/pin-input.tsx +37 -29
  123. package/src/pnl-diagram.tsx +36 -28
  124. package/src/popover.tsx +1 -1
  125. package/src/progress.tsx +17 -21
  126. package/src/radio.tsx +56 -75
  127. package/src/select.tsx +80 -59
  128. package/src/separator.tsx +13 -34
  129. package/src/slider.tsx +43 -44
  130. package/src/strategy-builder.tsx +245 -156
  131. package/src/switch.tsx +63 -64
  132. package/src/tabs.tsx +166 -296
  133. package/src/tag.tsx +89 -51
  134. package/src/textarea.tsx +19 -29
  135. package/src/toaster.tsx +118 -86
  136. package/src/tooltip.tsx +21 -13
  137. package/tokens.css +79 -0
@@ -56,23 +56,19 @@ var CloseButtonFrame = gui.styled(gui.View, {
56
56
  }
57
57
  }
58
58
  });
59
- var CLOSE_BUTTON_CLASSES = [
60
- "text-[var(--closeButton-fg,currentColor)]",
61
- "hover:text-[var(--hover-color,currentColor)]",
62
- "disabled:opacity-40"
63
- ].join(" ");
64
59
  var CloseButton = React__namespace.forwardRef(function CloseButton2(props, ref) {
65
60
  const { variant: _variant, size: _size, className, children, ...rest } = props;
66
61
  return /* @__PURE__ */ jsxRuntime.jsx(
67
62
  CloseButtonFrame,
68
63
  {
69
64
  ref,
70
- className: [CLOSE_BUTTON_CLASSES, className].filter(Boolean).join(" "),
65
+ className,
71
66
  ...rest,
72
67
  children: children ?? /* @__PURE__ */ jsxRuntime.jsx(
73
68
  "svg",
74
69
  {
75
- className: "size-5",
70
+ width: 20,
71
+ height: 20,
76
72
  viewBox: "0 0 20 20",
77
73
  fill: "none",
78
74
  "aria-hidden": "true",
@@ -34,23 +34,19 @@ var CloseButtonFrame = styled(View, {
34
34
  }
35
35
  }
36
36
  });
37
- var CLOSE_BUTTON_CLASSES = [
38
- "text-[var(--closeButton-fg,currentColor)]",
39
- "hover:text-[var(--hover-color,currentColor)]",
40
- "disabled:opacity-40"
41
- ].join(" ");
42
37
  var CloseButton = React.forwardRef(function CloseButton2(props, ref) {
43
38
  const { variant: _variant, size: _size, className, children, ...rest } = props;
44
39
  return /* @__PURE__ */ jsx(
45
40
  CloseButtonFrame,
46
41
  {
47
42
  ref,
48
- className: [CLOSE_BUTTON_CLASSES, className].filter(Boolean).join(" "),
43
+ className,
49
44
  ...rest,
50
45
  children: children ?? /* @__PURE__ */ jsx(
51
46
  "svg",
52
47
  {
53
- className: "size-5",
48
+ width: 20,
49
+ height: 20,
54
50
  viewBox: "0 0 20 20",
55
51
  fill: "none",
56
52
  "aria-hidden": "true",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var Collapsible = require('@radix-ui/react-collapsible');
4
+ var gui = require('@hanzo/gui');
5
5
  var React3 = require('react');
6
6
  var clsx = require('clsx');
7
7
  var tailwindMerge = require('tailwind-merge');
@@ -25,7 +25,6 @@ function _interopNamespace(e) {
25
25
  return Object.freeze(n);
26
26
  }
27
27
 
28
- var Collapsible__namespace = /*#__PURE__*/_interopNamespace(Collapsible);
29
28
  var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
30
29
 
31
30
  // src/collapsible.tsx
@@ -485,66 +484,76 @@ function useUpdateEffect(effect, deps) {
485
484
  }, deps);
486
485
  }
487
486
  function scrollToElement(id) {
488
- const el = document.getElementById(id);
489
- if (el) {
490
- el.scrollIntoView({ behavior: "smooth", block: "start" });
491
- }
487
+ document.getElementById(id)?.scrollIntoView({ behavior: "smooth", block: "start" });
492
488
  }
493
489
  var CUT_ID = "CollapsibleDetails";
494
490
  var CollapsibleDetails = (props) => {
495
- const { children, id = CUT_ID, onClick, isExpanded: isExpandedProp = false, text: textProp, loading, noScroll, ...rest } = props;
491
+ const {
492
+ children,
493
+ id = CUT_ID,
494
+ onClick,
495
+ isExpanded: isExpandedProp = false,
496
+ text: textProp,
497
+ loading,
498
+ noScroll,
499
+ ...rest
500
+ } = props;
496
501
  const [isExpanded, setIsExpanded] = React3__namespace.default.useState(isExpandedProp);
497
502
  const handleClick = React3__namespace.default.useCallback((event) => {
498
503
  setIsExpanded((flag) => !flag);
499
- if (!noScroll) {
500
- scrollToElement(id);
501
- }
504
+ if (!noScroll) scrollToElement(id);
502
505
  onClick?.(event);
503
506
  }, [id, noScroll, onClick]);
504
507
  useUpdateEffect(() => {
505
508
  setIsExpanded(isExpandedProp);
506
- if (isExpandedProp && !noScroll) {
507
- scrollToElement(id);
508
- }
509
+ if (isExpandedProp && !noScroll) scrollToElement(id);
509
510
  }, [isExpandedProp, id, noScroll]);
510
511
  const text = isExpanded ? textProp?.[1] ?? "Hide details" : textProp?.[0] ?? "View details";
511
- return /* @__PURE__ */ jsxRuntime.jsxs(Collapsible__namespace.Root, { open: isExpanded, children: [
512
- /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
512
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.Collapsible, { open: isExpanded, onOpenChange: setIsExpanded, children: [
513
+ /* @__PURE__ */ jsxRuntime.jsx(
513
514
  Link,
514
515
  {
515
516
  className: "text-sm underline decoration-dashed w-fit",
517
+ "aria-expanded": isExpanded,
516
518
  onClick: handleClick,
517
519
  loading,
518
520
  ...rest,
519
521
  children: /* @__PURE__ */ jsxRuntime.jsx("span", { id, children: text })
520
522
  }
521
- ) }),
522
- /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Content, { children })
523
+ ),
524
+ /* @__PURE__ */ jsxRuntime.jsx(gui.Collapsible.Content, { children })
523
525
  ] });
524
526
  };
527
+ var CUT_LENGTH = 3;
525
528
  var CollapsibleList = (props) => {
526
- const CUT_LENGTH = 3;
527
- const { items, renderItem, triggerProps, cutLength = CUT_LENGTH, text: textProp, defaultExpanded = false, className, ...rest } = props;
529
+ const {
530
+ items,
531
+ renderItem,
532
+ triggerProps,
533
+ cutLength = CUT_LENGTH,
534
+ text: textProp,
535
+ defaultExpanded = false,
536
+ ...rest
537
+ } = props;
528
538
  const [isExpanded, setIsExpanded] = React3__namespace.default.useState(defaultExpanded);
529
539
  React3__namespace.default.useEffect(() => {
530
540
  setIsExpanded(defaultExpanded);
531
541
  }, [defaultExpanded]);
532
- const handleToggle = React3__namespace.default.useCallback(() => {
533
- setIsExpanded((flag) => !flag);
534
- }, []);
542
+ const handleToggle = React3__namespace.default.useCallback(() => setIsExpanded((flag) => !flag), []);
535
543
  const text = isExpanded ? textProp?.[1] ?? "Hide" : textProp?.[0] ?? "Show all";
536
- return /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Root, { open: isExpanded, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col w-full", className), ...rest, children: [
544
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { width: "100%", ...rest, children: [
537
545
  items.slice(0, isExpanded ? void 0 : cutLength).map(renderItem),
538
- items.length > cutLength && /* @__PURE__ */ jsxRuntime.jsx(Collapsible__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
546
+ items.length > cutLength && /* @__PURE__ */ jsxRuntime.jsx(
539
547
  Link,
540
548
  {
541
549
  className: "text-sm underline decoration-dashed w-fit min-w-0",
550
+ "aria-expanded": isExpanded,
542
551
  onClick: handleToggle,
543
552
  ...triggerProps,
544
553
  children: text
545
554
  }
546
- ) })
547
- ] }) });
555
+ )
556
+ ] });
548
557
  };
549
558
 
550
559
  exports.CollapsibleDetails = CollapsibleDetails;
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { YStack } from '@hanzo/gui';
2
3
  import React__default from 'react';
3
4
  import { LinkProps } from './link.cjs';
4
5
 
@@ -10,7 +11,7 @@ interface CollapsibleDetailsProps extends LinkProps {
10
11
  noScroll?: boolean;
11
12
  }
12
13
  declare const CollapsibleDetails: (props: CollapsibleDetailsProps) => react_jsx_runtime.JSX.Element;
13
- interface CollapsibleListProps<T> extends React__default.ComponentPropsWithoutRef<'div'> {
14
+ interface CollapsibleListProps<T> extends Omit<React__default.ComponentProps<typeof YStack>, 'children' | 'text' | 'items'> {
14
15
  items: Array<T>;
15
16
  renderItem: (item: T, index: number) => React__default.ReactNode;
16
17
  triggerProps?: LinkProps;
@@ -1,4 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { YStack } from '@hanzo/gui';
2
3
  import React__default from 'react';
3
4
  import { LinkProps } from './link.js';
4
5
 
@@ -10,7 +11,7 @@ interface CollapsibleDetailsProps extends LinkProps {
10
11
  noScroll?: boolean;
11
12
  }
12
13
  declare const CollapsibleDetails: (props: CollapsibleDetailsProps) => react_jsx_runtime.JSX.Element;
13
- interface CollapsibleListProps<T> extends React__default.ComponentPropsWithoutRef<'div'> {
14
+ interface CollapsibleListProps<T> extends Omit<React__default.ComponentProps<typeof YStack>, 'children' | 'text' | 'items'> {
14
15
  items: Array<T>;
15
16
  renderItem: (item: T, index: number) => React__default.ReactNode;
16
17
  triggerProps?: LinkProps;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import * as Collapsible from '@radix-ui/react-collapsible';
2
+ import { Collapsible, YStack } from '@hanzo/gui';
3
3
  import * as React3 from 'react';
4
4
  import React3__default from 'react';
5
5
  import { clsx } from 'clsx';
@@ -463,66 +463,76 @@ function useUpdateEffect(effect, deps) {
463
463
  }, deps);
464
464
  }
465
465
  function scrollToElement(id) {
466
- const el = document.getElementById(id);
467
- if (el) {
468
- el.scrollIntoView({ behavior: "smooth", block: "start" });
469
- }
466
+ document.getElementById(id)?.scrollIntoView({ behavior: "smooth", block: "start" });
470
467
  }
471
468
  var CUT_ID = "CollapsibleDetails";
472
469
  var CollapsibleDetails = (props) => {
473
- const { children, id = CUT_ID, onClick, isExpanded: isExpandedProp = false, text: textProp, loading, noScroll, ...rest } = props;
470
+ const {
471
+ children,
472
+ id = CUT_ID,
473
+ onClick,
474
+ isExpanded: isExpandedProp = false,
475
+ text: textProp,
476
+ loading,
477
+ noScroll,
478
+ ...rest
479
+ } = props;
474
480
  const [isExpanded, setIsExpanded] = React3__default.useState(isExpandedProp);
475
481
  const handleClick = React3__default.useCallback((event) => {
476
482
  setIsExpanded((flag) => !flag);
477
- if (!noScroll) {
478
- scrollToElement(id);
479
- }
483
+ if (!noScroll) scrollToElement(id);
480
484
  onClick?.(event);
481
485
  }, [id, noScroll, onClick]);
482
486
  useUpdateEffect(() => {
483
487
  setIsExpanded(isExpandedProp);
484
- if (isExpandedProp && !noScroll) {
485
- scrollToElement(id);
486
- }
488
+ if (isExpandedProp && !noScroll) scrollToElement(id);
487
489
  }, [isExpandedProp, id, noScroll]);
488
490
  const text = isExpanded ? textProp?.[1] ?? "Hide details" : textProp?.[0] ?? "View details";
489
- return /* @__PURE__ */ jsxs(Collapsible.Root, { open: isExpanded, children: [
490
- /* @__PURE__ */ jsx(Collapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(
491
+ return /* @__PURE__ */ jsxs(Collapsible, { open: isExpanded, onOpenChange: setIsExpanded, children: [
492
+ /* @__PURE__ */ jsx(
491
493
  Link,
492
494
  {
493
495
  className: "text-sm underline decoration-dashed w-fit",
496
+ "aria-expanded": isExpanded,
494
497
  onClick: handleClick,
495
498
  loading,
496
499
  ...rest,
497
500
  children: /* @__PURE__ */ jsx("span", { id, children: text })
498
501
  }
499
- ) }),
502
+ ),
500
503
  /* @__PURE__ */ jsx(Collapsible.Content, { children })
501
504
  ] });
502
505
  };
506
+ var CUT_LENGTH = 3;
503
507
  var CollapsibleList = (props) => {
504
- const CUT_LENGTH = 3;
505
- const { items, renderItem, triggerProps, cutLength = CUT_LENGTH, text: textProp, defaultExpanded = false, className, ...rest } = props;
508
+ const {
509
+ items,
510
+ renderItem,
511
+ triggerProps,
512
+ cutLength = CUT_LENGTH,
513
+ text: textProp,
514
+ defaultExpanded = false,
515
+ ...rest
516
+ } = props;
506
517
  const [isExpanded, setIsExpanded] = React3__default.useState(defaultExpanded);
507
518
  React3__default.useEffect(() => {
508
519
  setIsExpanded(defaultExpanded);
509
520
  }, [defaultExpanded]);
510
- const handleToggle = React3__default.useCallback(() => {
511
- setIsExpanded((flag) => !flag);
512
- }, []);
521
+ const handleToggle = React3__default.useCallback(() => setIsExpanded((flag) => !flag), []);
513
522
  const text = isExpanded ? textProp?.[1] ?? "Hide" : textProp?.[0] ?? "Show all";
514
- return /* @__PURE__ */ jsx(Collapsible.Root, { open: isExpanded, children: /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col w-full", className), ...rest, children: [
523
+ return /* @__PURE__ */ jsxs(YStack, { width: "100%", ...rest, children: [
515
524
  items.slice(0, isExpanded ? void 0 : cutLength).map(renderItem),
516
- items.length > cutLength && /* @__PURE__ */ jsx(Collapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(
525
+ items.length > cutLength && /* @__PURE__ */ jsx(
517
526
  Link,
518
527
  {
519
528
  className: "text-sm underline decoration-dashed w-fit min-w-0",
529
+ "aria-expanded": isExpanded,
520
530
  onClick: handleToggle,
521
531
  ...triggerProps,
522
532
  children: text
523
533
  }
524
- ) })
525
- ] }) });
534
+ )
535
+ ] });
526
536
  };
527
537
 
528
538
  export { CollapsibleDetails, CollapsibleList };
package/dist/dialog.cjs CHANGED
@@ -61,23 +61,19 @@ var CloseButtonFrame = gui.styled(gui.View, {
61
61
  }
62
62
  }
63
63
  });
64
- var CLOSE_BUTTON_CLASSES = [
65
- "text-[var(--closeButton-fg,currentColor)]",
66
- "hover:text-[var(--hover-color,currentColor)]",
67
- "disabled:opacity-40"
68
- ].join(" ");
69
64
  var CloseButton = React2__namespace.forwardRef(function CloseButton2(props, ref) {
70
65
  const { variant: _variant, size: _size, className, children, ...rest } = props;
71
66
  return /* @__PURE__ */ jsxRuntime.jsx(
72
67
  CloseButtonFrame,
73
68
  {
74
69
  ref,
75
- className: [CLOSE_BUTTON_CLASSES, className].filter(Boolean).join(" "),
70
+ className,
76
71
  ...rest,
77
72
  children: children ?? /* @__PURE__ */ jsxRuntime.jsx(
78
73
  "svg",
79
74
  {
80
- className: "size-5",
75
+ width: 20,
76
+ height: 20,
81
77
  viewBox: "0 0 20 20",
82
78
  fill: "none",
83
79
  "aria-hidden": "true",
package/dist/dialog.d.cts CHANGED
@@ -57,7 +57,7 @@ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetF
57
57
  unstyled?: boolean | undefined;
58
58
  elevation?: number | _hanzogui_web.SizeTokens | undefined;
59
59
  fullscreen?: boolean | undefined;
60
- }>, "forceMount" | "scope"> & {
60
+ }>, "scope" | "forceMount"> & {
61
61
  forceMount?: boolean;
62
62
  } & {
63
63
  scope?: _hanzo_gui.DialogScopes;
package/dist/dialog.d.ts CHANGED
@@ -57,7 +57,7 @@ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetF
57
57
  unstyled?: boolean | undefined;
58
58
  elevation?: number | _hanzogui_web.SizeTokens | undefined;
59
59
  fullscreen?: boolean | undefined;
60
- }>, "forceMount" | "scope"> & {
60
+ }>, "scope" | "forceMount"> & {
61
61
  forceMount?: boolean;
62
62
  } & {
63
63
  scope?: _hanzo_gui.DialogScopes;
package/dist/dialog.js CHANGED
@@ -39,23 +39,19 @@ var CloseButtonFrame = styled(View, {
39
39
  }
40
40
  }
41
41
  });
42
- var CLOSE_BUTTON_CLASSES = [
43
- "text-[var(--closeButton-fg,currentColor)]",
44
- "hover:text-[var(--hover-color,currentColor)]",
45
- "disabled:opacity-40"
46
- ].join(" ");
47
42
  var CloseButton = React2.forwardRef(function CloseButton2(props, ref) {
48
43
  const { variant: _variant, size: _size, className, children, ...rest } = props;
49
44
  return /* @__PURE__ */ jsx(
50
45
  CloseButtonFrame,
51
46
  {
52
47
  ref,
53
- className: [CLOSE_BUTTON_CLASSES, className].filter(Boolean).join(" "),
48
+ className,
54
49
  ...rest,
55
50
  children: children ?? /* @__PURE__ */ jsx(
56
51
  "svg",
57
52
  {
58
- className: "size-5",
53
+ width: 20,
54
+ height: 20,
59
55
  viewBox: "0 0 20 20",
60
56
  fill: "none",
61
57
  "aria-hidden": "true",