@aivenio/aquarium 5.0.0 → 5.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.
package/dist/system.mjs CHANGED
@@ -4489,7 +4489,7 @@ var inputClasses = tv({
4489
4489
  }
4490
4490
  });
4491
4491
  var menuClasses = tv({
4492
- base: "text-default bg-popover-content overflow-y-auto"
4492
+ base: "text-default bg-overlay overflow-y-auto"
4493
4493
  });
4494
4494
  var noResultsClasses = tv({
4495
4495
  base: "p-3 text-inactive typography-small"
@@ -5330,7 +5330,8 @@ var tailwind_theme_default = {
5330
5330
  "100": "var(--aquarium-colors-warning-100)",
5331
5331
  muted: "var(--aquarium-background-color-warning-muted)",
5332
5332
  default: "var(--aquarium-background-color-warning-default)",
5333
- intense: "var(--aquarium-background-color-warning-intense)"
5333
+ intense: "var(--aquarium-background-color-warning-intense)",
5334
+ inverse: "var(--aquarium-background-color-warning-inverse)"
5334
5335
  },
5335
5336
  success: {
5336
5337
  "0": "var(--aquarium-colors-success-0)",
@@ -5347,7 +5348,8 @@ var tailwind_theme_default = {
5347
5348
  "100": "var(--aquarium-colors-success-100)",
5348
5349
  muted: "var(--aquarium-background-color-success-muted)",
5349
5350
  default: "var(--aquarium-background-color-success-default)",
5350
- intense: "var(--aquarium-background-color-success-intense)"
5351
+ intense: "var(--aquarium-background-color-success-intense)",
5352
+ inverse: "var(--aquarium-background-color-success-inverse)"
5351
5353
  },
5352
5354
  info: {
5353
5355
  "0": "var(--aquarium-colors-info-0)",
@@ -5364,7 +5366,8 @@ var tailwind_theme_default = {
5364
5366
  "100": "var(--aquarium-colors-info-100)",
5365
5367
  muted: "var(--aquarium-background-color-info-muted)",
5366
5368
  default: "var(--aquarium-background-color-info-default)",
5367
- intense: "var(--aquarium-background-color-info-intense)"
5369
+ intense: "var(--aquarium-background-color-info-intense)",
5370
+ inverse: "var(--aquarium-background-color-info-inverse)"
5368
5371
  },
5369
5372
  grey: {
5370
5373
  "0": "var(--aquarium-colors-grey-0)",
@@ -5414,15 +5417,27 @@ var tailwind_theme_default = {
5414
5417
  hover: "var(--aquarium-background-color-primary-hover)"
5415
5418
  },
5416
5419
  body: "var(--aquarium-background-color-body)",
5420
+ layer: "var(--aquarium-background-color-layer)",
5417
5421
  "body-intense": "var(--aquarium-background-color-body-intense)",
5422
+ inverse: "var(--aquarium-background-color-inverse)",
5423
+ overlay: "var(--aquarium-background-color-overlay)",
5418
5424
  "popover-content": "var(--aquarium-background-color-popover-content)",
5419
5425
  muted: "var(--aquarium-background-color-muted)",
5420
5426
  default: "var(--aquarium-background-color-default)",
5421
5427
  intense: "var(--aquarium-background-color-intense)",
5428
+ action: {
5429
+ "primary-button": {
5430
+ default: "var(--aquarium-background-color-action-primary-button-default)",
5431
+ active: "var(--aquarium-background-color-action-primary-button-active)",
5432
+ hover: "var(--aquarium-background-color-action-primary-button-hover)",
5433
+ disabled: "var(--aquarium-background-color-action-primary-button-disabled)"
5434
+ }
5435
+ },
5422
5436
  danger: {
5423
5437
  muted: "var(--aquarium-background-color-danger-muted)",
5424
5438
  default: "var(--aquarium-background-color-danger-default)",
5425
- intense: "var(--aquarium-background-color-danger-intense)"
5439
+ intense: "var(--aquarium-background-color-danger-intense)",
5440
+ inverse: "var(--aquarium-background-color-danger-inverse)"
5426
5441
  },
5427
5442
  status: {
5428
5443
  announcement: "var(--aquarium-background-color-status-announcement)",
@@ -5686,6 +5701,15 @@ var tailwind_theme_default = {
5686
5701
  muted: "var(--aquarium-border-color-muted)",
5687
5702
  default: "var(--aquarium-border-color-default)",
5688
5703
  intense: "var(--aquarium-border-color-intense)",
5704
+ action: {
5705
+ focus: "var(--aquarium-border-color-action-focus)",
5706
+ "secondary-button": {
5707
+ default: "var(--aquarium-border-color-action-secondary-button-default)",
5708
+ active: "var(--aquarium-border-color-action-secondary-button-active)",
5709
+ hover: "var(--aquarium-border-color-action-secondary-button-hover)",
5710
+ disabled: "var(--aquarium-border-color-action-secondary-button-disabled)"
5711
+ }
5712
+ },
5689
5713
  danger: {
5690
5714
  muted: "var(--aquarium-border-color-danger-muted)",
5691
5715
  default: "var(--aquarium-border-color-danger-default)",
@@ -5914,7 +5938,10 @@ var tokens_default = {
5914
5938
  },
5915
5939
  backgroundColor: {
5916
5940
  body: "white",
5941
+ layer: "white",
5917
5942
  "body-intense": "rgba(58,58,68,1)",
5943
+ inverse: "rgba(58,58,68,1)",
5944
+ overlay: "white",
5918
5945
  "popover-content": "white",
5919
5946
  muted: "rgba(247,247,250,1)",
5920
5947
  default: "rgba(237,237,240,1)",
@@ -5926,25 +5953,37 @@ var tokens_default = {
5926
5953
  active: "rgba(243,246,255,1)",
5927
5954
  hover: "rgba(243,246,255,1)"
5928
5955
  },
5956
+ action: {
5957
+ "primary-button": {
5958
+ default: "rgba(53,69,190,1)",
5959
+ active: "rgba(243,246,255,1)",
5960
+ hover: "rgba(34,47,149,1)",
5961
+ disabled: "rgba(185,197,239,1)"
5962
+ }
5963
+ },
5929
5964
  info: {
5930
5965
  muted: "rgba(224,245,254,1)",
5931
5966
  default: "rgba(3,153,227,1)",
5932
- intense: "rgba(1,116,186,1)"
5967
+ intense: "rgba(1,116,186,1)",
5968
+ inverse: "rgba(3,153,227,1)"
5933
5969
  },
5934
5970
  success: {
5935
5971
  muted: "rgba(236,247,237,1)",
5936
5972
  default: "rgba(0,179,0,1)",
5937
- intense: "rgba(0,142,0,1)"
5973
+ intense: "rgba(0,142,0,1)",
5974
+ inverse: "rgba(0,179,0,1)"
5938
5975
  },
5939
5976
  warning: {
5940
5977
  muted: "rgba(255,248,234,1)",
5941
5978
  default: "rgba(255,179,0,1)",
5942
- intense: "rgba(255,144,3,1)"
5979
+ intense: "rgba(255,144,3,1)",
5980
+ inverse: "rgba(255,179,0,1)"
5943
5981
  },
5944
5982
  danger: {
5945
5983
  muted: "rgba(255,203,210,1)",
5946
5984
  default: "rgba(255,173,179,1)",
5947
- intense: "rgba(230,39,40,1)"
5985
+ intense: "rgba(230,39,40,1)",
5986
+ inverse: "rgba(216,0,5,1)"
5948
5987
  },
5949
5988
  status: {
5950
5989
  announcement: "rgba(243,246,255,1)",
@@ -5966,6 +6005,15 @@ var tokens_default = {
5966
6005
  default: "rgba(53,69,190,1)",
5967
6006
  intense: "rgba(14,22,82,1)"
5968
6007
  },
6008
+ action: {
6009
+ focus: "rgba(53,69,190,1)",
6010
+ "secondary-button": {
6011
+ default: "rgba(53,69,190,1)",
6012
+ active: "rgba(243,246,255,1)",
6013
+ hover: "rgba(243,246,255,1)",
6014
+ disabled: "rgba(129,142,236,1)"
6015
+ }
6016
+ },
5969
6017
  info: {
5970
6018
  muted: "rgba(40,180,244,1)",
5971
6019
  default: "rgba(3,153,227,1)",
@@ -6732,7 +6780,7 @@ var TooltipWrapper = React6.forwardRef(
6732
6780
  "div",
6733
6781
  {
6734
6782
  ref,
6735
- className: "Aquarium-Tooltip p-3 rounded-sm typography-caption max-w-[320px] bg-body-intense text-opposite-default",
6783
+ className: "Aquarium-Tooltip p-3 rounded-sm typography-caption max-w-[320px] bg-inverse text-opposite-default",
6736
6784
  ...mergeProps(props, tooltipProps)
6737
6785
  },
6738
6786
  props.children,
@@ -6772,7 +6820,7 @@ var getArrowStyle = (element, position, { left, top }) => {
6772
6820
  return { left, top };
6773
6821
  };
6774
6822
  var Arrow = (props) => {
6775
- return /* @__PURE__ */ React6.createElement("div", { className: "absolute w-3 h-3 bg-body-intense rotate-45", ...props });
6823
+ return /* @__PURE__ */ React6.createElement("div", { className: "absolute w-3 h-3 bg-inverse rotate-45", ...props });
6776
6824
  };
6777
6825
 
6778
6826
  // src/atoms/Button/Button.tsx
@@ -6807,14 +6855,14 @@ var buttonStateClasses = tv3({
6807
6855
  variants: {
6808
6856
  kind: {
6809
6857
  primary: [
6810
- "active:text-white active:bg-primary-active",
6811
- "hover:bg-primary-intense",
6812
- "disabled:text-white disabled:bg-primary-muted"
6858
+ "active:text-white active:bg-action-primary-button-active",
6859
+ "hover:bg-action-primary-button-hover",
6860
+ "disabled:text-white disabled:bg-action-primary-button-disabled"
6813
6861
  ],
6814
6862
  secondary: [
6815
6863
  "active:bg-primary-active active:text-primary-active",
6816
6864
  "hover:bg-primary-hover",
6817
- "before:disabled:border-primary-muted"
6865
+ "before:disabled:border-action-secondary-button-disabled"
6818
6866
  ],
6819
6867
  ghost: ["hover:text-primary-active"],
6820
6868
  text: interactiveTextStyles(),
@@ -6833,8 +6881,8 @@ var buttonClasses = tv3({
6833
6881
  base: "Aquarium-Button whitespace-nowrap transition text-center text-primary-intense rounded-sm relative px-4 py-3 inline-flex gap-3 items-center justify-center",
6834
6882
  variants: {
6835
6883
  kind: {
6836
- primary: "Aquarium-Button.Primary text-white bg-primary-default icon-stroke-2",
6837
- secondary: "Aquarium-Button.Secondary bg-transparent before:absolute before:inset-0 before:border before:border-primary-default before:rounded-sm icon-stroke-2",
6884
+ primary: "Aquarium-Button.Primary text-white bg-action-primary-button-default icon-stroke-2",
6885
+ secondary: "Aquarium-Button.Secondary bg-transparent before:absolute before:inset-0 before:border before:border-action-secondary-button-default before:rounded-sm icon-stroke-2",
6838
6886
  ghost: "Aquarium-Button.Ghost px-0 icon-stroke-2",
6839
6887
  text: "Aquarium-Button.Text px-0 py-0 icon-stroke-2",
6840
6888
  icon: "Aquarium-Button.Icon px-2 py-2 text-default"
@@ -7008,7 +7056,7 @@ var toastStyles = tv4({
7008
7056
  variants: {
7009
7057
  variant: {
7010
7058
  default: {
7011
- base: "bg-body-intense text-opposite-default",
7059
+ base: "bg-inverse text-opposite-default",
7012
7060
  dismiss: "[&>button]:text-muted",
7013
7061
  action: "[&>*]:text-primary-inactive hover:[&>*]:text-primary-muted"
7014
7062
  },
@@ -9648,7 +9696,8 @@ import {
9648
9696
  } from "react-aria-components";
9649
9697
  import { tv as tv14 } from "tailwind-variants";
9650
9698
  var popoverStyles = tv14({
9651
- base: "rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
9699
+ // z-[101] ensures popover appears above modal (z-modal: 100)
9700
+ base: "rounded-sm shadow-16dp bg-overlay mt-1 overflow-y-auto flex flex-col border border-default outline-none z-[101]"
9652
9701
  });
9653
9702
  var Popover = React55.forwardRef(
9654
9703
  ({ children, offset = 0, className, placement: _placement = "bottom-left", ...props }, ref) => {
@@ -11166,7 +11215,7 @@ import { clsx as clsx27 } from "clsx";
11166
11215
  import { tv as tv17 } from "tailwind-variants";
11167
11216
  var import_tick5 = __toESM(require_tick());
11168
11217
  var dropdownMenuStyles = tv17({
11169
- base: "bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
11218
+ base: "bg-overlay w-full flex flex-col overflow-x-hidden typography-small text-default"
11170
11219
  });
11171
11220
  var DropdownMenu = ({ className, children, ...props }) => {
11172
11221
  return /* @__PURE__ */ React68.createElement(AriaMenu, { className: dropdownMenuStyles({ className: ["Aquarium-DropdownMenu", className] }), ...props }, children);
@@ -15281,8 +15330,8 @@ var bodyMaskClasses = tv24({
15281
15330
  var modalStyles = tv24({
15282
15331
  slots: {
15283
15332
  overlay: "inset-0 overflow-y-auto z-modal fixed",
15284
- backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
15285
- dialog: "bg-popover-content max-h-full flex flex-col",
15333
+ backdrop: "-z-10 fixed min-w-full min-h-full bg-inverse opacity-30",
15334
+ dialog: "bg-overlay max-h-full flex flex-col",
15286
15335
  header: "pl-7 pr-[64px] pt-6 pb-4 gap-3 flex items-center",
15287
15336
  headerImage: "h-[120px] min-h-[120px] w-full",
15288
15337
  titleContainer: "flex flex-col grow",
@@ -15470,9 +15519,8 @@ var DialogWrapper = ({
15470
15519
  };
15471
15520
 
15472
15521
  // src/molecules/Drawer/Drawer.tsx
15473
- import React94, { useRef as useRef12 } from "react";
15522
+ import React94 from "react";
15474
15523
  import { Dialog as AriaDialog2, Modal as AriaModal, ModalOverlay as AriaModalOverlay } from "react-aria-components";
15475
- import { UNSTABLE_PortalProvider } from "@react-aria/overlays";
15476
15524
  import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
15477
15525
  import { clsx as clsx31 } from "clsx";
15478
15526
  import { castArray as castArray4, omit as omit11 } from "lodash-es";
@@ -15792,14 +15840,13 @@ var Drawer = ({
15792
15840
  secondaryActions,
15793
15841
  closeOnEsc = true
15794
15842
  }) => {
15795
- const portalContainerRef = useRef12(null);
15796
15843
  const [hidden, setHidden] = React94.useState(!open);
15797
15844
  if (open && hidden) {
15798
15845
  setHidden(!open);
15799
15846
  }
15800
15847
  const { opacity, right } = useSpring4({
15801
15848
  right: open ? "0px" : `-${WIDTHS[size]}px`,
15802
- opacity: open ? 0.6 : 0,
15849
+ opacity: open ? 0.3 : 0,
15803
15850
  config: {
15804
15851
  mass: 0.5,
15805
15852
  tension: 150,
@@ -15829,18 +15876,13 @@ var Drawer = ({
15829
15876
  className: styles.overlay({ className: "Aquarium-Drawer" })
15830
15877
  },
15831
15878
  /* @__PURE__ */ React94.createElement(AnimatedBackDrop, { style: { opacity } }),
15832
- /* @__PURE__ */ React94.createElement(AriaModal, null, /* @__PURE__ */ React94.createElement(AnimatedDialog, { kind: "drawer", "aria-modal": "true", size: dialogSize, style: { position: "fixed", right } }, /* @__PURE__ */ React94.createElement(AriaDialog2, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => (
15833
- // Create a portal provider to allow nested overlays (Select, Combobox, DatePicker, etc.) to
15834
- // be rendered inside the modal.
15835
- // See: https://react-aria.adobe.com/PortalProvider
15836
- /* @__PURE__ */ React94.createElement(UNSTABLE_PortalProvider, { getContainer: () => portalContainerRef.current }, /* @__PURE__ */ React94.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React94.createElement(Button2.Icon, { "aria-label": "Close", icon: import_cross6.default, onClick: close })), /* @__PURE__ */ React94.createElement(Modal.Header, { className: clsx31({ "pb-3": hasTabs }) }, /* @__PURE__ */ React94.createElement(ModalTitle, { kind: "drawer" }, title)), hasTabs ? /* @__PURE__ */ React94.createElement(
15837
- DrawerTabs,
15838
- {
15839
- ...onlyChild.props,
15840
- className: "[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto"
15841
- }
15842
- ) : /* @__PURE__ */ React94.createElement(Modal.Body, { tabIndex: 0, noFooter: !(secondaryActions ?? primaryAction) }, children, /* @__PURE__ */ React94.createElement("div", { ref: portalContainerRef, className: "relative" })), (secondaryActions ?? primaryAction) && /* @__PURE__ */ React94.createElement(Modal.Footer, null, /* @__PURE__ */ React94.createElement(Modal.Actions, { className: size === "sm" ? "flex-col" : void 0 }, size !== "sm" && menu && /* @__PURE__ */ React94.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React94.createElement(DropdownMenu2, { onAction: (action) => onAction(action), onOpenChange: onMenuOpenChange }, /* @__PURE__ */ React94.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React94.createElement(Button2.Icon, { "aria-label": menuAriaLabel ?? "Context menu", icon: import_more4.default })), menu)), secondaryActions && castArray4(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React94.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React94.createElement(Button2.Primary, { key: primaryAction.text, ...omit11(primaryAction, "text") }, primaryAction.text))))
15843
- ))))
15879
+ /* @__PURE__ */ React94.createElement(AriaModal, null, /* @__PURE__ */ React94.createElement(AnimatedDialog, { kind: "drawer", "aria-modal": "true", size: dialogSize, style: { position: "fixed", right } }, /* @__PURE__ */ React94.createElement(AriaDialog2, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React94.createElement(Button2.Icon, { "aria-label": "Close", icon: import_cross6.default, onClick: close })), /* @__PURE__ */ React94.createElement(Modal.Header, { className: clsx31({ "pb-3": hasTabs }) }, /* @__PURE__ */ React94.createElement(ModalTitle, { kind: "drawer" }, title)), hasTabs ? /* @__PURE__ */ React94.createElement(
15880
+ DrawerTabs,
15881
+ {
15882
+ ...onlyChild.props,
15883
+ className: "[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto"
15884
+ }
15885
+ ) : /* @__PURE__ */ React94.createElement(Modal.Body, { tabIndex: 0, noFooter: !(secondaryActions ?? primaryAction) }, children), (secondaryActions ?? primaryAction) && /* @__PURE__ */ React94.createElement(Modal.Footer, null, /* @__PURE__ */ React94.createElement(Modal.Actions, { className: size === "sm" ? "flex-col" : void 0 }, size !== "sm" && menu && /* @__PURE__ */ React94.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React94.createElement(DropdownMenu2, { onAction: (action) => onAction(action), onOpenChange: onMenuOpenChange }, /* @__PURE__ */ React94.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React94.createElement(Button2.Icon, { "aria-label": menuAriaLabel ?? "Context menu", icon: import_more4.default })), menu)), secondaryActions && castArray4(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React94.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React94.createElement(Button2.Primary, { key: primaryAction.text, ...omit11(primaryAction, "text") }, primaryAction.text)))))))
15844
15886
  );
15845
15887
  };
15846
15888
  var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React94.createElement(Modal.Body, { className: "h-full" }, /* @__PURE__ */ React94.createElement(TabContainer, { className: "!py-4" }, children.find(
@@ -15901,7 +15943,7 @@ var DropdownMenu3 = ({
15901
15943
  const id = setTimeout(() => (menuRef.current?.children[0]).focus());
15902
15944
  return () => clearTimeout(id);
15903
15945
  }, [menuRef.current]);
15904
- return /* @__PURE__ */ React96.createElement("div", { style: { minWidth: "250px" }, className: "py-3 bg-popover-content" }, !!title && /* @__PURE__ */ React96.createElement("div", { className: "px-4 py-4 text-left text-intense typography-default-strong" }, title), /* @__PURE__ */ React96.createElement("ol", { role: "menu", ref: menuRef, id: contentId, "aria-labelledby": triggerId }, React96.Children.map(children, (child) => {
15946
+ return /* @__PURE__ */ React96.createElement("div", { style: { minWidth: "250px" }, className: "py-3 bg-overlay" }, !!title && /* @__PURE__ */ React96.createElement("div", { className: "px-4 py-4 text-left text-intense typography-default-strong" }, title), /* @__PURE__ */ React96.createElement("ol", { role: "menu", ref: menuRef, id: contentId, "aria-labelledby": triggerId }, React96.Children.map(children, (child) => {
15905
15947
  return React96.cloneElement(child, { setClose });
15906
15948
  })));
15907
15949
  };
@@ -16247,9 +16289,8 @@ var ListItem = ({ name, icon, active = false }) => {
16247
16289
  };
16248
16290
 
16249
16291
  // src/molecules/Modal/Modal.tsx
16250
- import React102, { useRef as useRef13 } from "react";
16292
+ import React102 from "react";
16251
16293
  import { Dialog as AriaDialog3, Modal as AriaModal2, ModalOverlay as AriaModalOverlay2 } from "react-aria-components";
16252
- import { UNSTABLE_PortalProvider as UNSTABLE_PortalProvider2 } from "@react-aria/overlays";
16253
16294
  import { clsx as clsx35 } from "clsx";
16254
16295
  import { castArray as castArray5, isEmpty as isEmpty2, omit as omit12 } from "lodash-es";
16255
16296
  var import_cross8 = __toESM(require_cross());
@@ -16265,7 +16306,6 @@ var Modal2 = ({
16265
16306
  primaryAction,
16266
16307
  secondaryActions
16267
16308
  }) => {
16268
- const portalContainerRef = useRef13(null);
16269
16309
  if (!open) {
16270
16310
  return null;
16271
16311
  }
@@ -16282,20 +16322,15 @@ var Modal2 = ({
16282
16322
  className: styles.overlay({ className: "Aquarium-Modal" })
16283
16323
  },
16284
16324
  size !== "screen" && /* @__PURE__ */ React102.createElement(Modal.BackDrop, { className: styles.backdrop() }),
16285
- /* @__PURE__ */ React102.createElement(AriaModal2, { className: styles.dialog() }, /* @__PURE__ */ React102.createElement(AriaDialog3, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => (
16286
- // Create a portal provider to allow nested overlays (Select, Combobox, DatePicker, etc.) to
16287
- // be rendered inside the modal.
16288
- // See: https://react-aria.adobe.com/PortalProvider
16289
- /* @__PURE__ */ React102.createElement(UNSTABLE_PortalProvider2, { getContainer: () => portalContainerRef.current }, /* @__PURE__ */ React102.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React102.createElement(Button2.Icon, { "aria-label": "Close", icon: import_cross8.default, onClick: close })), headerImage !== void 0 && /* @__PURE__ */ React102.createElement(Modal.HeaderImage, { backgroundImage: headerImage }), /* @__PURE__ */ React102.createElement(
16290
- Modal.Header,
16291
- {
16292
- kind: "dialog",
16293
- size,
16294
- className: clsx35({ "pb-3": isComponentType(children, ModalTabs) })
16295
- },
16296
- /* @__PURE__ */ React102.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React102.createElement(ModalTitle, { kind: "dialog" }, title), subtitle && /* @__PURE__ */ React102.createElement(Modal.Subtitle, null, subtitle))
16297
- ), hasTabs ? React102.cloneElement(children, { className: "[&>div:first-child]:px-5 grow" }) : /* @__PURE__ */ React102.createElement(Modal.Body, { tabIndex: 0, noFooter: !hasActions, size }, children, /* @__PURE__ */ React102.createElement("div", { ref: portalContainerRef, className: "relative" })), hasActions && /* @__PURE__ */ React102.createElement(Modal.Footer, null, /* @__PURE__ */ React102.createElement(Modal.Actions, null, secondaryActions && castArray5(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React102.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React102.createElement(Button2.Primary, { key: primaryAction.text, ...omit12(primaryAction, "text") }, primaryAction.text))))
16298
- )))
16325
+ /* @__PURE__ */ React102.createElement(AriaModal2, { className: styles.dialog() }, /* @__PURE__ */ React102.createElement(AriaDialog3, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React102.createElement(Button2.Icon, { "aria-label": "Close", icon: import_cross8.default, onClick: close })), headerImage !== void 0 && /* @__PURE__ */ React102.createElement(Modal.HeaderImage, { backgroundImage: headerImage }), /* @__PURE__ */ React102.createElement(
16326
+ Modal.Header,
16327
+ {
16328
+ kind: "dialog",
16329
+ size,
16330
+ className: clsx35({ "pb-3": isComponentType(children, ModalTabs) })
16331
+ },
16332
+ /* @__PURE__ */ React102.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React102.createElement(ModalTitle, { kind: "dialog" }, title), subtitle && /* @__PURE__ */ React102.createElement(Modal.Subtitle, null, subtitle))
16333
+ ), hasTabs ? React102.cloneElement(children, { className: "[&>div:first-child]:px-5 grow" }) : /* @__PURE__ */ React102.createElement(Modal.Body, { tabIndex: 0, noFooter: !hasActions, size }, children), hasActions && /* @__PURE__ */ React102.createElement(Modal.Footer, null, /* @__PURE__ */ React102.createElement(Modal.Actions, null, secondaryActions && castArray5(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React102.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React102.createElement(Button2.Primary, { key: primaryAction.text, ...omit12(primaryAction, "text") }, primaryAction.text))))))
16299
16334
  );
16300
16335
  };
16301
16336
  var ModalTabs = createTabsComponent(
@@ -16308,7 +16343,7 @@ var ModalTabs = createTabsComponent(
16308
16343
  );
16309
16344
 
16310
16345
  // src/molecules/MultiInput/MultiInput.tsx
16311
- import React104, { useEffect as useEffect9, useRef as useRef14, useState as useState11 } from "react";
16346
+ import React104, { useEffect as useEffect9, useRef as useRef12, useState as useState11 } from "react";
16312
16347
  import { useId as useId13 } from "@react-aria/utils";
16313
16348
  import { castArray as castArray6, identity, omit as omit13 } from "lodash-es";
16314
16349
 
@@ -16390,7 +16425,7 @@ var MultiInputBase = ({
16390
16425
  valid = true,
16391
16426
  ...props
16392
16427
  }) => {
16393
- const inputRef = useRef14(null);
16428
+ const inputRef = useRef12(null);
16394
16429
  const [items, setItems] = useState11(value ?? defaultValue ?? []);
16395
16430
  const [hasFocus, setFocus] = useState11(false);
16396
16431
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
@@ -16559,7 +16594,7 @@ MultiInput.Skeleton = MultiInputSkeleton;
16559
16594
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
16560
16595
 
16561
16596
  // src/molecules/MultiSelect/MultiSelect.tsx
16562
- import React105, { useEffect as useEffect10, useRef as useRef15, useState as useState12 } from "react";
16597
+ import React105, { useEffect as useEffect10, useRef as useRef13, useState as useState12 } from "react";
16563
16598
  import { ariaHideOutside as ariaHideOutside3 } from "@react-aria/overlays";
16564
16599
  import { useId as useId14 } from "@react-aria/utils";
16565
16600
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -16589,10 +16624,10 @@ var MultiSelectBase = ({
16589
16624
  children,
16590
16625
  ...props
16591
16626
  }) => {
16592
- const popoverRef = useRef15(null);
16593
- const targetRef = useRef15(null);
16594
- const menuRef = useRef15(null);
16595
- const inputRef = useRef15(null);
16627
+ const popoverRef = useRef13(null);
16628
+ const targetRef = useRef13(null);
16629
+ const menuRef = useRef13(null);
16630
+ const inputRef = useRef13(null);
16596
16631
  const [inputValue, setInputValue] = useState12("");
16597
16632
  const [hasFocus, setFocus] = useState12(false);
16598
16633
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -17309,7 +17344,7 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
17309
17344
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
17310
17345
 
17311
17346
  // src/molecules/Section/Section.tsx
17312
- import React121, { useRef as useRef16 } from "react";
17347
+ import React121, { useRef as useRef14 } from "react";
17313
17348
  import { useButton as useButton4 } from "@react-aria/button";
17314
17349
  import { useId as useId17 } from "@react-aria/utils";
17315
17350
  import { animated as animated6, useSpring as useSpring5 } from "@react-spring/web";
@@ -17491,8 +17526,8 @@ var Section3 = (props) => {
17491
17526
  const [isCollapsed, setCollapsed] = React121.useState(_collapsed ?? _defaultCollapsed);
17492
17527
  const [isResting, setResting] = React121.useState(true);
17493
17528
  const [ref, { height }] = useMeasure();
17494
- const toggleAreaRef = useRef16(null);
17495
- const isMounted = useRef16(true);
17529
+ const toggleAreaRef = useRef14(null);
17530
+ const isMounted = useRef14(true);
17496
17531
  React121.useEffect(
17497
17532
  () => () => {
17498
17533
  isMounted.current = false;
@@ -17711,7 +17746,7 @@ var stepStyles = tv31({
17711
17746
  slots: ["indicator"],
17712
17747
  dense: true,
17713
17748
  state: "active",
17714
- class: "bg-body-intense"
17749
+ class: "bg-inverse"
17715
17750
  },
17716
17751
  {
17717
17752
  slots: ["indicator"],
@@ -367,7 +367,8 @@
367
367
  "100": "var(--aquarium-colors-warning-100)",
368
368
  "muted": "var(--aquarium-background-color-warning-muted)",
369
369
  "default": "var(--aquarium-background-color-warning-default)",
370
- "intense": "var(--aquarium-background-color-warning-intense)"
370
+ "intense": "var(--aquarium-background-color-warning-intense)",
371
+ "inverse": "var(--aquarium-background-color-warning-inverse)"
371
372
  },
372
373
  "success": {
373
374
  "0": "var(--aquarium-colors-success-0)",
@@ -384,7 +385,8 @@
384
385
  "100": "var(--aquarium-colors-success-100)",
385
386
  "muted": "var(--aquarium-background-color-success-muted)",
386
387
  "default": "var(--aquarium-background-color-success-default)",
387
- "intense": "var(--aquarium-background-color-success-intense)"
388
+ "intense": "var(--aquarium-background-color-success-intense)",
389
+ "inverse": "var(--aquarium-background-color-success-inverse)"
388
390
  },
389
391
  "info": {
390
392
  "0": "var(--aquarium-colors-info-0)",
@@ -401,7 +403,8 @@
401
403
  "100": "var(--aquarium-colors-info-100)",
402
404
  "muted": "var(--aquarium-background-color-info-muted)",
403
405
  "default": "var(--aquarium-background-color-info-default)",
404
- "intense": "var(--aquarium-background-color-info-intense)"
406
+ "intense": "var(--aquarium-background-color-info-intense)",
407
+ "inverse": "var(--aquarium-background-color-info-inverse)"
405
408
  },
406
409
  "grey": {
407
410
  "0": "var(--aquarium-colors-grey-0)",
@@ -451,15 +454,27 @@
451
454
  "hover": "var(--aquarium-background-color-primary-hover)"
452
455
  },
453
456
  "body": "var(--aquarium-background-color-body)",
457
+ "layer": "var(--aquarium-background-color-layer)",
454
458
  "body-intense": "var(--aquarium-background-color-body-intense)",
459
+ "inverse": "var(--aquarium-background-color-inverse)",
460
+ "overlay": "var(--aquarium-background-color-overlay)",
455
461
  "popover-content": "var(--aquarium-background-color-popover-content)",
456
462
  "muted": "var(--aquarium-background-color-muted)",
457
463
  "default": "var(--aquarium-background-color-default)",
458
464
  "intense": "var(--aquarium-background-color-intense)",
465
+ "action": {
466
+ "primary-button": {
467
+ "default": "var(--aquarium-background-color-action-primary-button-default)",
468
+ "active": "var(--aquarium-background-color-action-primary-button-active)",
469
+ "hover": "var(--aquarium-background-color-action-primary-button-hover)",
470
+ "disabled": "var(--aquarium-background-color-action-primary-button-disabled)"
471
+ }
472
+ },
459
473
  "danger": {
460
474
  "muted": "var(--aquarium-background-color-danger-muted)",
461
475
  "default": "var(--aquarium-background-color-danger-default)",
462
- "intense": "var(--aquarium-background-color-danger-intense)"
476
+ "intense": "var(--aquarium-background-color-danger-intense)",
477
+ "inverse": "var(--aquarium-background-color-danger-inverse)"
463
478
  },
464
479
  "status": {
465
480
  "announcement": "var(--aquarium-background-color-status-announcement)",
@@ -723,6 +738,15 @@
723
738
  "muted": "var(--aquarium-border-color-muted)",
724
739
  "default": "var(--aquarium-border-color-default)",
725
740
  "intense": "var(--aquarium-border-color-intense)",
741
+ "action": {
742
+ "focus": "var(--aquarium-border-color-action-focus)",
743
+ "secondary-button": {
744
+ "default": "var(--aquarium-border-color-action-secondary-button-default)",
745
+ "active": "var(--aquarium-border-color-action-secondary-button-active)",
746
+ "hover": "var(--aquarium-border-color-action-secondary-button-hover)",
747
+ "disabled": "var(--aquarium-border-color-action-secondary-button-disabled)"
748
+ }
749
+ },
726
750
  "danger": {
727
751
  "muted": "var(--aquarium-border-color-danger-muted)",
728
752
  "default": "var(--aquarium-border-color-danger-default)",
package/dist/tokens.json CHANGED
@@ -20,7 +20,10 @@
20
20
  },
21
21
  "backgroundColor": {
22
22
  "body": "white",
23
+ "layer": "white",
23
24
  "body-intense": "rgba(58,58,68,1)",
25
+ "inverse": "rgba(58,58,68,1)",
26
+ "overlay": "white",
24
27
  "popover-content": "white",
25
28
  "muted": "rgba(247,247,250,1)",
26
29
  "default": "rgba(237,237,240,1)",
@@ -32,25 +35,37 @@
32
35
  "active": "rgba(243,246,255,1)",
33
36
  "hover": "rgba(243,246,255,1)"
34
37
  },
38
+ "action": {
39
+ "primary-button": {
40
+ "default": "rgba(53,69,190,1)",
41
+ "active": "rgba(243,246,255,1)",
42
+ "hover": "rgba(34,47,149,1)",
43
+ "disabled": "rgba(185,197,239,1)"
44
+ }
45
+ },
35
46
  "info": {
36
47
  "muted": "rgba(224,245,254,1)",
37
48
  "default": "rgba(3,153,227,1)",
38
- "intense": "rgba(1,116,186,1)"
49
+ "intense": "rgba(1,116,186,1)",
50
+ "inverse": "rgba(3,153,227,1)"
39
51
  },
40
52
  "success": {
41
53
  "muted": "rgba(236,247,237,1)",
42
54
  "default": "rgba(0,179,0,1)",
43
- "intense": "rgba(0,142,0,1)"
55
+ "intense": "rgba(0,142,0,1)",
56
+ "inverse": "rgba(0,179,0,1)"
44
57
  },
45
58
  "warning": {
46
59
  "muted": "rgba(255,248,234,1)",
47
60
  "default": "rgba(255,179,0,1)",
48
- "intense": "rgba(255,144,3,1)"
61
+ "intense": "rgba(255,144,3,1)",
62
+ "inverse": "rgba(255,179,0,1)"
49
63
  },
50
64
  "danger": {
51
65
  "muted": "rgba(255,203,210,1)",
52
66
  "default": "rgba(255,173,179,1)",
53
- "intense": "rgba(230,39,40,1)"
67
+ "intense": "rgba(230,39,40,1)",
68
+ "inverse": "rgba(216,0,5,1)"
54
69
  },
55
70
  "status": {
56
71
  "announcement": "rgba(243,246,255,1)",
@@ -72,6 +87,15 @@
72
87
  "default": "rgba(53,69,190,1)",
73
88
  "intense": "rgba(14,22,82,1)"
74
89
  },
90
+ "action": {
91
+ "focus": "rgba(53,69,190,1)",
92
+ "secondary-button": {
93
+ "default": "rgba(53,69,190,1)",
94
+ "active": "rgba(243,246,255,1)",
95
+ "hover": "rgba(243,246,255,1)",
96
+ "disabled": "rgba(129,142,236,1)"
97
+ }
98
+ },
75
99
  "info": {
76
100
  "muted": "rgba(40,180,244,1)",
77
101
  "default": "rgba(3,153,227,1)",