@aivenio/aquarium 2.20.1 → 3.1.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 (90) hide show
  1. package/dist/atoms.cjs +26 -10
  2. package/dist/atoms.mjs +26 -10
  3. package/dist/charts.cjs +16 -8
  4. package/dist/charts.mjs +16 -8
  5. package/dist/src/atoms/DataList/DataList.js +2 -2
  6. package/dist/src/atoms/Select/Select.js +6 -7
  7. package/dist/src/atoms/Table/Table.d.ts +3 -1
  8. package/dist/src/atoms/Table/Table.js +2 -2
  9. package/dist/src/atoms/Typography/Typography.d.ts +2 -2
  10. package/dist/src/atoms/Typography/Typography.js +1 -1
  11. package/dist/src/atoms/utils/index.d.ts +2 -2
  12. package/dist/src/atoms/utils/index.js +2 -2
  13. package/dist/src/charts/AreaChart/AreaChart.d.ts +1 -1
  14. package/dist/src/charts/BarChart/BarChart.d.ts +1 -1
  15. package/dist/src/charts/Legend/Legend.js +2 -1
  16. package/dist/src/charts/LineChart/LineChart.d.ts +1 -1
  17. package/dist/src/charts/PieChart/DoughnutChart.d.ts +1 -1
  18. package/dist/src/charts/PieChart/DoughnutChart.js +4 -4
  19. package/dist/src/charts/PieChart/PieChart.d.ts +1 -1
  20. package/dist/src/charts/PieChart/PieChart.js +2 -2
  21. package/dist/src/charts/PieChart/renderPieChildren.d.ts +1 -1
  22. package/dist/src/charts/PieChart/renderPieChildren.js +8 -4
  23. package/dist/src/charts/lib/utils.d.ts +1 -1
  24. package/dist/src/charts/lib/utils.js +5 -2
  25. package/dist/src/icons/databaseArrow.d.ts +9 -0
  26. package/dist/src/icons/databaseArrow.js +11 -0
  27. package/dist/src/icons/index.d.ts +1 -0
  28. package/dist/src/icons/index.js +2 -1
  29. package/dist/src/molecules/Accordion/Accordion.js +7 -3
  30. package/dist/src/molecules/Avatar/Avatar.js +2 -2
  31. package/dist/src/molecules/Box/Box.d.ts +2 -2
  32. package/dist/src/molecules/Box/Box.js +1 -1
  33. package/dist/src/molecules/Button/Button.d.ts +19 -9
  34. package/dist/src/molecules/Button/Button.js +2 -2
  35. package/dist/src/molecules/Card/CardInputWrapper.d.ts +2 -2
  36. package/dist/src/molecules/Card/CardInputWrapper.js +2 -2
  37. package/dist/src/molecules/Context/Context.d.ts +1 -1
  38. package/dist/src/molecules/Context/Context.js +1 -1
  39. package/dist/src/molecules/DataList/DataListComponents.d.ts +4 -4
  40. package/dist/src/molecules/DataList/DataListComponents.js +1 -1
  41. package/dist/src/molecules/DataList/DataListGroup.d.ts +1 -1
  42. package/dist/src/molecules/DataList/DataListGroup.js +1 -1
  43. package/dist/src/molecules/DatePicker/Button.js +2 -2
  44. package/dist/src/molecules/DatePicker/DatePicker.js +5 -3
  45. package/dist/src/molecules/DatePicker/DateRangePicker.js +4 -3
  46. package/dist/src/molecules/Dropdown/Dropdown.js +1 -1
  47. package/dist/src/molecules/Element/Element.d.ts +1 -1
  48. package/dist/src/molecules/Flexbox/Flexbox.d.ts +2 -2
  49. package/dist/src/molecules/Flexbox/FlexboxItem.d.ts +2 -2
  50. package/dist/src/molecules/Grid/Grid.d.ts +2 -2
  51. package/dist/src/molecules/Grid/GridItem.d.ts +2 -2
  52. package/dist/src/molecules/Link/Link.d.ts +2 -1
  53. package/dist/src/molecules/List/List.d.ts +1 -1
  54. package/dist/src/molecules/List/List.js +1 -1
  55. package/dist/src/molecules/ListItem/ListItem.d.ts +2 -1
  56. package/dist/src/molecules/ListItem/ListItem.js +1 -1
  57. package/dist/src/molecules/NativeSelect/NativeSelect.js +3 -3
  58. package/dist/src/molecules/Popover/Popover.d.ts +1 -1
  59. package/dist/src/molecules/Popover/Popover.js +2 -2
  60. package/dist/src/molecules/Popover/PopoverOverlay.d.ts +2 -2
  61. package/dist/src/molecules/Popover/PopoverOverlay.js +1 -1
  62. package/dist/src/molecules/PopoverDialog/PopoverDialog.js +6 -2
  63. package/dist/src/molecules/Portal/Portal.d.ts +1 -1
  64. package/dist/src/molecules/Section/Section.js +7 -3
  65. package/dist/src/molecules/SegmentedControl/SegmentedControl.d.ts +2 -2
  66. package/dist/src/molecules/SegmentedControl/SegmentedControl.js +1 -1
  67. package/dist/src/molecules/Select/Select.js +7 -17
  68. package/dist/src/molecules/Tailwindify/Tailwindify.d.ts +1 -1
  69. package/dist/src/molecules/Tailwindify/Tailwindify.js +1 -1
  70. package/dist/src/molecules/Tooltip/useTooltipTriggerState.js +2 -2
  71. package/dist/src/molecules/Transition/Transition.js +8 -3
  72. package/dist/src/utils/constants.js +2 -2
  73. package/dist/src/utils/form/FormControl/FormControl.d.ts +3 -2
  74. package/dist/src/utils/form/FormControl/FormControl.js +3 -3
  75. package/dist/src/utils/form/Label/Label.js +7 -4
  76. package/dist/src/utils/stickyStyles.d.ts +2 -2
  77. package/dist/src/utils/stickyStyles.js +2 -2
  78. package/dist/src/utils/table/useScrollTarget.d.ts +1 -1
  79. package/dist/src/utils/table/useScrollTarget.js +1 -1
  80. package/dist/src/utils/useInView.d.ts +1 -1
  81. package/dist/src/utils/useInView.js +1 -1
  82. package/dist/src/utils/useMeasure.d.ts +1 -1
  83. package/dist/styles.css +6 -3
  84. package/dist/system.cjs +133 -84
  85. package/dist/system.mjs +133 -84
  86. package/dist/tsconfig.module.tsbuildinfo +1 -1
  87. package/dist/types/tailwindGenerated.d.ts +1 -1
  88. package/package.json +46 -31
  89. package/dist/src/molecules/Toast/Toast.spec.d.ts +0 -1
  90. package/dist/src/molecules/Toast/Toast.spec.js +0 -42
package/dist/system.mjs CHANGED
@@ -1388,6 +1388,22 @@ var require_database02 = __commonJS({
1388
1388
  }
1389
1389
  });
1390
1390
 
1391
+ // src/icons/databaseArrow.js
1392
+ var require_databaseArrow = __commonJS({
1393
+ "src/icons/databaseArrow.js"(exports) {
1394
+ "use strict";
1395
+ var data = {
1396
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14 3.333c0 1.105-2.686 2-6 2s-6-.895-6-2m12 0c0-1.104-2.686-2-6-2s-6 .896-6 2m12 0v3.212M2 3.333v9.334c0 1.106 2.667 2 6 2m6-8.187c0 1.107-2.667 2-6 2s-6-.893-6-2m6 5.147c-3.333 0-6-.894-6-2m12.91 2.737-2.183-2.182m0 0-2.181 2.182m2.181-2.182v4.364"/>',
1397
+ "left": 0,
1398
+ "top": 0,
1399
+ "width": 16,
1400
+ "height": 16
1401
+ };
1402
+ exports.__esModule = true;
1403
+ exports.default = data;
1404
+ }
1405
+ });
1406
+
1391
1407
  // src/icons/database.js
1392
1408
  var require_database = __commonJS({
1393
1409
  "src/icons/database.js"(exports) {
@@ -4471,7 +4487,7 @@ var InputContainer = React2.forwardRef(
4471
4487
  "border-danger-default": variant === "error",
4472
4488
  "hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
4473
4489
  "border-info-default": variant === "focused",
4474
- "bg-body": variant !== "disabled",
4490
+ "bg-transparent": variant !== "disabled",
4475
4491
  "cursor-not-allowed border-default bg-default": variant === "disabled"
4476
4492
  }
4477
4493
  ),
@@ -4487,12 +4503,11 @@ var Input = React2.forwardRef(({ className, required, ...props }, ref) => /* @__
4487
4503
  "aria-required": required,
4488
4504
  className: classNames(
4489
4505
  className,
4490
- "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
4506
+ "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small bg-transparent disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
4491
4507
  {
4492
4508
  "text-default": !props.disabled,
4493
4509
  "text-inactive": props.disabled,
4494
- "bg-body": !props.readOnly,
4495
- "cursor-default bg-transparent": props.readOnly
4510
+ "cursor-default": props.readOnly
4496
4511
  }
4497
4512
  ),
4498
4513
  ...props
@@ -4504,7 +4519,7 @@ var Menu = React2.forwardRef(
4504
4519
  {
4505
4520
  ref,
4506
4521
  style: { maxHeight },
4507
- className: classNames(className, tw("text-default bg-body overflow-y-auto")),
4522
+ className: classNames(className, tw("text-default bg-popover-content overflow-y-auto")),
4508
4523
  ...props
4509
4524
  },
4510
4525
  children
@@ -4533,7 +4548,7 @@ var Item = React2.forwardRef(
4533
4548
  "li",
4534
4549
  {
4535
4550
  ref,
4536
- className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
4551
+ className: classNames("Aquarium-Select.Item", className, "flex items-center gap-x-3 p-3 typography-small", {
4537
4552
  "cursor-pointer hover:bg-muted": !props["aria-disabled"],
4538
4553
  "cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
4539
4554
  "bg-muted": highlighted
@@ -4685,6 +4700,7 @@ var import_currencyDollar = __toESM(require_currencyDollar());
4685
4700
  var import_dashboard = __toESM(require_dashboard());
4686
4701
  var import_dataLineage = __toESM(require_dataLineage());
4687
4702
  var import_database02 = __toESM(require_database02());
4703
+ var import_databaseArrow = __toESM(require_databaseArrow());
4688
4704
  var import_database = __toESM(require_database());
4689
4705
  var import_dataflow01 = __toESM(require_dataflow01());
4690
4706
  var import_dataflow02 = __toESM(require_dataflow02());
@@ -6847,7 +6863,7 @@ function useTooltipTriggerState(props = {}) {
6847
6863
  const { delay = TOOLTIP_DELAY } = props;
6848
6864
  const { isOpen, open, close } = useOverlayTriggerState(props);
6849
6865
  const id = useMemo(() => `${++tooltipId}`, []);
6850
- const closeTimeout = useRef();
6866
+ const closeTimeout = useRef(null);
6851
6867
  const isUnmounted = useRef(false);
6852
6868
  const ensureTooltipEntry = () => {
6853
6869
  tooltips[id] = hideTooltip;
@@ -7084,7 +7100,7 @@ var Arrow = (props) => {
7084
7100
  var getCommonInputStyles = ({ readOnly, valid }) => tw(
7085
7101
  "block w-full rounded-sm disabled:cursor-not-allowed disabled:border-default disabled:bg-default typography-small text-default disabled:text-inactive placeholder:text-inactive focus:outline-none",
7086
7102
  {
7087
- "px-3 py-3 bg-body": !readOnly,
7103
+ "px-3 py-3 bg-transparent": !readOnly,
7088
7104
  "border-none resize-none cursor-default bg-transparent": readOnly,
7089
7105
  "border border-danger-default": !valid && !readOnly,
7090
7106
  "border border-default hover:border-intense focus:border-info-default": valid && !readOnly
@@ -7176,7 +7192,7 @@ var asButton = (Component, isDropdownButton) => {
7176
7192
  hasChildren && /* @__PURE__ */ React9.createElement("div", null, children)
7177
7193
  );
7178
7194
  } else {
7179
- return children;
7195
+ return /* @__PURE__ */ React9.createElement(React9.Fragment, null, children);
7180
7196
  }
7181
7197
  };
7182
7198
  const buttonComponent = /* @__PURE__ */ React9.createElement(
@@ -7280,7 +7296,18 @@ var Transition = ({ children }) => {
7280
7296
  keys: (item) => item.key || "",
7281
7297
  config: { tension: 125, friction: 20, precision: 0.1 }
7282
7298
  });
7283
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) => /* @__PURE__ */ React11.createElement(animated.div, { style }, /* @__PURE__ */ React11.createElement("div", { ref: (ref) => ref && refMap.set(item, ref) }, item))));
7299
+ return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) => (
7300
+ // @ts-expect-error React spring does not yet support R19 types
7301
+ /* @__PURE__ */ React11.createElement(animated.div, { style }, /* @__PURE__ */ React11.createElement(
7302
+ "div",
7303
+ {
7304
+ ref: (ref) => {
7305
+ ref && refMap.set(item, ref);
7306
+ }
7307
+ },
7308
+ item
7309
+ ))
7310
+ )));
7284
7311
  };
7285
7312
 
7286
7313
  // src/atoms/Toast/Toast.tsx
@@ -7769,25 +7796,28 @@ var AccordionToggle = ({ panelId, onChange, ...rest }) => {
7769
7796
  }
7770
7797
  });
7771
7798
  const { buttonProps } = useButton({ elementType: "div", onPress: handleClick }, ref);
7772
- return /* @__PURE__ */ React20.createElement(
7773
- animated3.div,
7774
- {
7775
- ...rest,
7776
- ...{
7777
- ...buttonProps,
7778
- onPointerDown: (e) => {
7779
- e.preventDefault();
7780
- handleClick();
7781
- }
7799
+ return (
7800
+ // @ts-expect-error React spring does not yet support R19 types
7801
+ /* @__PURE__ */ React20.createElement(
7802
+ animated3.div,
7803
+ {
7804
+ ...rest,
7805
+ ...{
7806
+ ...buttonProps,
7807
+ onPointerDown: (e) => {
7808
+ e.preventDefault();
7809
+ handleClick();
7810
+ }
7811
+ },
7812
+ ref,
7813
+ "aria-label": "accordion toggle",
7814
+ "aria-expanded": openPanelId === id,
7815
+ "aria-controls": `${id}-content`,
7816
+ style: { transform },
7817
+ className: tw("text-default focus:outline-none focusable")
7782
7818
  },
7783
- ref,
7784
- "aria-label": "accordion toggle",
7785
- "aria-expanded": openPanelId === id,
7786
- "aria-controls": `${id}-content`,
7787
- style: { transform },
7788
- className: tw("text-default focus:outline-none focusable")
7789
- },
7790
- /* @__PURE__ */ React20.createElement(Icon2, { icon: import_caretUp.default, height: 22, width: 22 })
7819
+ /* @__PURE__ */ React20.createElement(Icon2, { icon: import_caretUp.default, height: 22, width: 22 })
7820
+ )
7791
7821
  );
7792
7822
  };
7793
7823
  var AccordionPanel = ({ children, panelId, ...rest }) => {
@@ -7803,17 +7833,20 @@ var AccordionPanel = ({ children, panelId, ...rest }) => {
7803
7833
  duration: 150
7804
7834
  }
7805
7835
  });
7806
- return /* @__PURE__ */ React20.createElement(
7807
- animated3.div,
7808
- {
7809
- role: "region",
7810
- ...rest,
7811
- id: `${id}-content`,
7812
- "aria-labelledby": `${id}-summary`,
7813
- "aria-hidden": !isOpen ? "true" : void 0,
7814
- style
7815
- },
7816
- /* @__PURE__ */ React20.createElement("div", { ref }, children)
7836
+ return (
7837
+ // @ts-expect-error React spring does not yet support R19 types
7838
+ /* @__PURE__ */ React20.createElement(
7839
+ animated3.div,
7840
+ {
7841
+ role: "region",
7842
+ ...rest,
7843
+ id: `${id}-content`,
7844
+ "aria-labelledby": `${id}-summary`,
7845
+ "aria-hidden": !isOpen ? "true" : void 0,
7846
+ style
7847
+ },
7848
+ /* @__PURE__ */ React20.createElement("div", { ref }, children)
7849
+ )
7817
7850
  );
7818
7851
  };
7819
7852
  var AccordionUnanimatedPanel = ({ children, panelId }) => {
@@ -8094,7 +8127,7 @@ var Skeleton = ({
8094
8127
 
8095
8128
  // src/molecules/Avatar/Avatar.tsx
8096
8129
  var AvatarStack = ({ images }) => /* @__PURE__ */ React24.createElement(Box, { display: "flex", className: tw("[&>*:not(:first-child)]:-ml-3") }, images.map(
8097
- (image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image, imageAlt: "" }) : /* @__PURE__ */ React24.createElement(Avatar.Skeleton, { key: index })
8130
+ (image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image }) : /* @__PURE__ */ React24.createElement(Avatar.Skeleton, { key: index })
8098
8131
  ));
8099
8132
  var Avatar = ({ image, imageAlt = "" }) => /* @__PURE__ */ React24.createElement("img", { src: image, className: classNames(tw("w-[32px] h-[32px]"), "Aquarium-Avatar"), alt: imageAlt });
8100
8133
  var AvatarSkeleton = () => /* @__PURE__ */ React24.createElement(Skeleton, { height: 32, width: 32, className: tw("rounded-full") });
@@ -8720,7 +8753,7 @@ var Template = ({
8720
8753
  };
8721
8754
 
8722
8755
  // src/molecules/Card/CardInputWrapper.tsx
8723
- var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ React37.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : children;
8756
+ var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ React37.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : /* @__PURE__ */ React37.createElement(React37.Fragment, null, children);
8724
8757
 
8725
8758
  // src/molecules/Card/Compact.tsx
8726
8759
  import React39, { useContext as useContext4, useRef as useRef3 } from "react";
@@ -9301,8 +9334,22 @@ import React49 from "react";
9301
9334
 
9302
9335
  // src/utils/form/FormControl/FormControl.tsx
9303
9336
  import React46 from "react";
9304
- var FormControl = ({ className, inline, children }) => {
9305
- return /* @__PURE__ */ React46.createElement(Box.Flex, { flexDirection: "column", display: inline ? "inline-flex" : "flex", className }, children);
9337
+ var FormControl = ({
9338
+ className,
9339
+ inline,
9340
+ children,
9341
+ "data-testid": dataTestId
9342
+ }) => {
9343
+ return /* @__PURE__ */ React46.createElement(
9344
+ Box.Flex,
9345
+ {
9346
+ "data-testid": dataTestId,
9347
+ flexDirection: "column",
9348
+ display: inline ? "inline-flex" : "flex",
9349
+ className
9350
+ },
9351
+ children
9352
+ );
9306
9353
  };
9307
9354
 
9308
9355
  // src/utils/form/HelperText/HelperText.tsx
@@ -9404,11 +9451,13 @@ var LabelControl = ({
9404
9451
  valid,
9405
9452
  disabled,
9406
9453
  className,
9454
+ htmlFor,
9455
+ "data-testid": dataTestId,
9407
9456
  ...rest
9408
9457
  }) => {
9409
9458
  const legacyError = error2 !== void 0 && valid === false;
9410
9459
  const variant = !valid || legacyError ? "error" : disabled ? "disabled" : "default";
9411
- return /* @__PURE__ */ React49.createElement(FormControl, { className }, !fieldset && /* @__PURE__ */ React49.createElement(Label2, { ...rest, variant }, children), fieldset && /* @__PURE__ */ React49.createElement("fieldset", { id: rest.id }, /* @__PURE__ */ React49.createElement("legend", { className: tw("w-full mb-2") }, /* @__PURE__ */ React49.createElement(LabelText, { ...rest, variant })), children), /* @__PURE__ */ React49.createElement(
9460
+ return /* @__PURE__ */ React49.createElement(FormControl, { "data-testid": dataTestId, className }, !fieldset && !!htmlFor && /* @__PURE__ */ React49.createElement(React49.Fragment, null, /* @__PURE__ */ React49.createElement(Label2, { ...rest, htmlFor, variant }), children), !fieldset && !htmlFor && /* @__PURE__ */ React49.createElement(Label2, { ...rest, variant }, children), fieldset && /* @__PURE__ */ React49.createElement("fieldset", { id: rest.id }, /* @__PURE__ */ React49.createElement("legend", { className: tw("w-full mb-2") }, /* @__PURE__ */ React49.createElement(LabelText, { ...rest, variant })), children), /* @__PURE__ */ React49.createElement(
9412
9461
  HelperText,
9413
9462
  {
9414
9463
  messageId,
@@ -10128,7 +10177,6 @@ var _SelectBase = (props) => {
10128
10177
  emptyState,
10129
10178
  actions,
10130
10179
  children,
10131
- labelWrapper,
10132
10180
  ...rest
10133
10181
  } = withDefaults;
10134
10182
  const [hasFocus, setFocus] = useState8(false);
@@ -10213,7 +10261,7 @@ var _SelectBase = (props) => {
10213
10261
  !readOnly && /* @__PURE__ */ React58.createElement(Select.Toggle, { disabled, isOpen, tabIndex: -1 })
10214
10262
  );
10215
10263
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
10216
- return /* @__PURE__ */ React58.createElement("div", { className: classNames("Aquarium-SelectBase", tw("relative")) }, labelWrapper ? React58.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React58.createElement(
10264
+ return /* @__PURE__ */ React58.createElement("div", { className: classNames("Aquarium-SelectBase", tw("relative")) }, input, isOpen && /* @__PURE__ */ React58.createElement(
10217
10265
  PopoverOverlay,
10218
10266
  {
10219
10267
  state,
@@ -10237,7 +10285,7 @@ var _SelectBase = (props) => {
10237
10285
  ))))
10238
10286
  ));
10239
10287
  };
10240
- var SelectBase = (props) => /* @__PURE__ */ React58.createElement(_SelectBase, { ...props, labelWrapper: void 0 });
10288
+ var SelectBase = (props) => /* @__PURE__ */ React58.createElement(_SelectBase, { ...props });
10241
10289
  var SelectBaseSkeleton = () => /* @__PURE__ */ React58.createElement(Skeleton, { height: 38 });
10242
10290
  SelectBase.Skeleton = SelectBaseSkeleton;
10243
10291
  var Select2 = ({
@@ -10250,31 +10298,27 @@ var Select2 = ({
10250
10298
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
10251
10299
  const labelProps = getLabelControlProps(props);
10252
10300
  const baseProps = omit6(props, without(Object.keys(labelProps), "required"));
10253
- const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
10254
- const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
10255
- const label = /* @__PURE__ */ React58.createElement(Label2, { id: `${id}-label`, htmlFor: `${id}-input`, variant, messageId: errorMessageId, ...labelProps });
10256
- return /* @__PURE__ */ React58.createElement(FormControl, { className: "Aquarium-Select" }, /* @__PURE__ */ React58.createElement(
10257
- _SelectBase,
10258
- {
10259
- ...baseProps,
10260
- ...errorProps,
10261
- id: `${id}-input`,
10262
- options,
10263
- disabled: props.disabled,
10264
- valid: props.valid,
10265
- labelWrapper: label
10266
- }
10267
- ), /* @__PURE__ */ React58.createElement(
10268
- HelperText,
10301
+ return /* @__PURE__ */ React58.createElement(
10302
+ LabelControl,
10269
10303
  {
10304
+ id: `${id}-label`,
10305
+ htmlFor: `${id}-input`,
10270
10306
  messageId: errorMessageId,
10271
- error: !labelProps.valid,
10272
- helperText: labelProps.helperText,
10273
- length: labelProps.length,
10274
- maxLength: labelProps.maxLength,
10275
- reserveSpaceForError: labelProps.reserveSpaceForError
10276
- }
10277
- ));
10307
+ ...labelProps,
10308
+ className: "Aquarium-Select"
10309
+ },
10310
+ /* @__PURE__ */ React58.createElement(
10311
+ _SelectBase,
10312
+ {
10313
+ ...baseProps,
10314
+ ...errorProps,
10315
+ id: `${id}-input`,
10316
+ options,
10317
+ disabled: props.disabled,
10318
+ valid: props.valid
10319
+ }
10320
+ )
10321
+ );
10278
10322
  };
10279
10323
  var SelectSkeleton = () => /* @__PURE__ */ React58.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React58.createElement(SelectBase.Skeleton, null));
10280
10324
  Select2.Skeleton = SelectSkeleton;
@@ -10534,7 +10578,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ R
10534
10578
  "tr",
10535
10579
  {
10536
10580
  ...rest,
10537
- ...{ inert: disabled ? "" : void 0 },
10581
+ ...{ inert: disabled },
10538
10582
  className: classNames(rowClassNames, className, {
10539
10583
  "opacity-70": disabled
10540
10584
  })
@@ -10694,7 +10738,7 @@ var Row = ({
10694
10738
  {
10695
10739
  ...rest,
10696
10740
  role: isGroup ? "rowgroup" : "row",
10697
- ...{ inert: disabled ? "" : void 0 },
10741
+ ...{ inert: disabled },
10698
10742
  className: classNames(tw("contents"), className, {
10699
10743
  "[&>*]:border-b-transparent": noDivider,
10700
10744
  "children:opacity-70": disabled,
@@ -10818,7 +10862,10 @@ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor })
10818
10862
  }
10819
10863
  };
10820
10864
  }
10821
- function useScrollProgress({ containerRef, skip }) {
10865
+ function useScrollProgress({
10866
+ containerRef,
10867
+ skip
10868
+ }) {
10822
10869
  const [scrollState, setScrollState] = useState10(null);
10823
10870
  const throttledSetScrollState = throttle(({ scrollX, scrollXProgress }) => {
10824
10871
  setScrollState({ scrollX, scrollXProgress });
@@ -12244,7 +12291,7 @@ var fieldBorder = tv2({
12244
12291
  }
12245
12292
  });
12246
12293
  var fieldGroup = tv2({
12247
- base: "group flex items-center bg-body border rounded-sm typography-small text-default px-3 py-3 overflow-hidden",
12294
+ base: "group flex items-center bg-transparent border rounded-sm typography-small text-default px-3 py-3 overflow-hidden",
12248
12295
  variants: fieldBorder.variants
12249
12296
  });
12250
12297
 
@@ -12323,7 +12370,7 @@ var ButtonBase = ({
12323
12370
  ...props,
12324
12371
  className: classNames(
12325
12372
  className,
12326
- tw("group-hover:opacity-100 py-1 ", {
12373
+ tw("group-hover:opacity-100 p-0", {
12327
12374
  "opacity-0 group-focus-within:opacity-100": !hideWhenParentIsNotHoveredOrFocused
12328
12375
  })
12329
12376
  )
@@ -12482,7 +12529,7 @@ var createDatePickerBase = (variant) => ({
12482
12529
  isInvalid: valid === false,
12483
12530
  granularity: granularity ?? (variant === "datetime" && !hasSomeValue ? "minute" : void 0)
12484
12531
  },
12485
- /* @__PURE__ */ React83.createElement(FieldGroup, { className: tw("min-w-[210px] w-auto") }, /* @__PURE__ */ React83.createElement(DateInput, { className: tw("flex-1") }), clearSelectionEnabled && !disabled && /* @__PURE__ */ React83.createElement(DatePickerClearButton, null), /* @__PURE__ */ React83.createElement(CalendarButton, null)),
12532
+ /* @__PURE__ */ React83.createElement(FieldGroup, { className: tw("min-w-[210px] w-auto") }, /* @__PURE__ */ React83.createElement(DateInput, { className: tw("flex-1") }), /* @__PURE__ */ React83.createElement(Box.Flex, { alignItems: "center", gap: "2" }, clearSelectionEnabled && !disabled && /* @__PURE__ */ React83.createElement(DatePickerClearButton, null), /* @__PURE__ */ React83.createElement(CalendarButton, null))),
12486
12533
  /* @__PURE__ */ React83.createElement(Popover2, { offset: 0 }, /* @__PURE__ */ React83.createElement(Dialog, null, /* @__PURE__ */ React83.createElement(Spacing, { gap: "3" }, /* @__PURE__ */ React83.createElement(Calendar, null), variant === "datetime" && /* @__PURE__ */ React83.createElement(PickerTimeField, { granularity }), errorMessage && /* @__PURE__ */ React83.createElement(Text, { slot: "errorMessage", className: tw("typography-caption text-danger-default max-w-[300px]") }, errorMessage))))
12487
12534
  );
12488
12535
  };
@@ -12622,7 +12669,7 @@ var createDateRangePickerBase = (variant) => ({
12622
12669
  granularity: granularity ?? (variant === "datetime" && !hasSomeValue ? "minute" : void 0),
12623
12670
  className: tw("group flex flex-col gap-1")
12624
12671
  },
12625
- /* @__PURE__ */ React85.createElement(FieldGroup, { className: tw("min-w-[200px] w-auto gap-2") }, /* @__PURE__ */ React85.createElement(DateInput, { slot: "start", className: tw("px-2 py-1") }), /* @__PURE__ */ React85.createElement("span", { "aria-hidden": true, className: tw("text-muted") }, "-"), /* @__PURE__ */ React85.createElement(DateInput, { slot: "end", className: tw("flex-1 px-2 py-1") }), clearSelectionEnabled && !disabled && /* @__PURE__ */ React85.createElement(DateRangePickerClearButton, null), /* @__PURE__ */ React85.createElement(CalendarButton, null)),
12672
+ /* @__PURE__ */ React85.createElement(FieldGroup, { className: tw("min-w-[200px] w-auto gap-2") }, /* @__PURE__ */ React85.createElement(DateInput, { slot: "start", className: tw("px-2 py-1") }), /* @__PURE__ */ React85.createElement("span", { "aria-hidden": true, className: tw("text-muted") }, "-"), /* @__PURE__ */ React85.createElement(DateInput, { slot: "end", className: tw("flex-1 px-2 py-1") }), /* @__PURE__ */ React85.createElement(Box.Flex, { alignItems: "center", gap: "2" }, clearSelectionEnabled && !disabled && /* @__PURE__ */ React85.createElement(DateRangePickerClearButton, null), /* @__PURE__ */ React85.createElement(CalendarButton, null))),
12626
12673
  /* @__PURE__ */ React85.createElement(Popover2, { offset: 0 }, /* @__PURE__ */ React85.createElement(Dialog, null, /* @__PURE__ */ React85.createElement(Spacing, { gap: "3" }, /* @__PURE__ */ React85.createElement(RangeCalendar, null), variant === "datetime" && /* @__PURE__ */ React85.createElement(Box.Flex, { gap: "6" }, /* @__PURE__ */ React85.createElement("div", { className: tw("flex-1") }, /* @__PURE__ */ React85.createElement(PickerTimeField2, { granularity, part: "start" })), /* @__PURE__ */ React85.createElement("div", { className: tw("flex-1") }, /* @__PURE__ */ React85.createElement(PickerTimeField2, { granularity, part: "end" }))), errorMessage && /* @__PURE__ */ React85.createElement(Text2, { slot: "errorMessage", className: tw("typography-caption text-danger-default max-w-[300px]") }, errorMessage))))
12627
12674
  );
12628
12675
  };
@@ -13360,9 +13407,9 @@ var PopoverTriggerWrapper = ({ children, ...rest }) => {
13360
13407
  const trigger = React92.Children.only(children);
13361
13408
  const { pressProps } = usePress2({ ...rest, ref });
13362
13409
  return React92.cloneElement(trigger, {
13363
- "ref": ref,
13364
13410
  ...mergeProps3(pressProps, trigger.props),
13365
- "aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
13411
+ "aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"],
13412
+ "ref": ref
13366
13413
  });
13367
13414
  };
13368
13415
 
@@ -14308,8 +14355,8 @@ var NativeSelectBase = React106.forwardRef(
14308
14355
  tw(
14309
14356
  "block w-full rounded-sm appearance-none disabled:cursor-not-allowed typography-small text-default placeholder:text-inactive focus:outline-none",
14310
14357
  {
14311
- "px-3 py-3 bg-body disabled:border-default disabled:bg-default disabled:text-inactive": !readOnly,
14312
- "px-0 py-3 border-none": readOnly,
14358
+ "px-3 py-3 bg-transparent disabled:border-default disabled:bg-default disabled:text-inactive": !readOnly,
14359
+ "px-0 py-3 border-none bg-transparent": readOnly,
14313
14360
  "border border-danger-default": !valid && !readOnly,
14314
14361
  "border border-default hover:border-intense focus:border-info-default": valid && !readOnly
14315
14362
  }
@@ -14564,7 +14611,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
14564
14611
  secondaryAction.text
14565
14612
  ), /* @__PURE__ */ React112.createElement(Popover3.Button, { kind: "ghost", key: primaryAction.text, dense: true, ...omit18(primaryAction, "text") }, primaryAction.text))));
14566
14613
  }
14567
- return child;
14614
+ return child instanceof Promise ? /* @__PURE__ */ React112.createElement(React112.Fragment, null, child) : child;
14568
14615
  };
14569
14616
  return /* @__PURE__ */ React112.createElement(Popover3, { type: "dialog", isOpen: open, placement, containFocus: true }, React112.Children.map(children, wrapPromptWithBody));
14570
14617
  };
@@ -14969,7 +15016,8 @@ var Section4 = (props) => {
14969
15016
  id: toggleId,
14970
15017
  collapsible: _collapsible
14971
15018
  },
14972
- _collapsible && /* @__PURE__ */ React121.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React121.createElement(Section3.Toggle, null)),
15019
+ _collapsible && // @ts-expect-error React spring does not yet support R19 types
15020
+ /* @__PURE__ */ React121.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React121.createElement(Section3.Toggle, null)),
14973
15021
  /* @__PURE__ */ React121.createElement(Section3.Title, { id: titleId }, /* @__PURE__ */ React121.createElement(LineClamp2, { lines: 1 }, title), props.tag && /* @__PURE__ */ React121.createElement(TagLabel, { ...props.tag }), props.badge && /* @__PURE__ */ React121.createElement(Chip2, { text: props.badge }), props.chip && /* @__PURE__ */ React121.createElement(StatusChip, { ...props.chip })),
14974
15022
  subtitle && /* @__PURE__ */ React121.createElement(Section3.Subtitle, { className: tw("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ React121.createElement(LineClamp2, { lines: 1 }, subtitle))
14975
15023
  ), !isCollapsed && /* @__PURE__ */ React121.createElement(Section3.Actions, null, props.switch && /* @__PURE__ */ React121.createElement(Switch2, { ...props.switch }), menu && /* @__PURE__ */ React121.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React121.createElement(
@@ -14981,7 +15029,8 @@ var Section4 = (props) => {
14981
15029
  },
14982
15030
  /* @__PURE__ */ React121.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React121.createElement(Button.Icon, { "aria-label": menuAriaLabel, icon: import_more6.default })),
14983
15031
  menu
14984
- )), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ React121.createElement(SelectBase, { "aria-labelledby": titleId, ...props.select }))), !hasTabs && !isCollapsed && /* @__PURE__ */ React121.createElement(animated6.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ React121.createElement(
15032
+ )), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ React121.createElement(SelectBase, { "aria-labelledby": titleId, ...props.select }))), !hasTabs && !isCollapsed && // @ts-expect-error React spring does not yet support R19 types
15033
+ /* @__PURE__ */ React121.createElement(animated6.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ React121.createElement(
14985
15034
  animated6.div,
14986
15035
  {
14987
15036
  id: regionId,