@aivenio/aquarium 1.70.0 → 1.72.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
@@ -2704,6 +2704,22 @@ var require_googleLogo = __commonJS({
2704
2704
  }
2705
2705
  });
2706
2706
 
2707
+ // src/icons/governance.js
2708
+ var require_governance = __commonJS({
2709
+ "src/icons/governance.js"(exports) {
2710
+ "use strict";
2711
+ var data = {
2712
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M18.333 10V7.517c0-.985 0-1.477-.151-1.826a1.6 1.6 0 00-.625-.768c-.31-.22-.92-.346-2.14-.6-1.345-.28-2.378-.785-3.322-1.515-.453-.35-.68-.525-.856-.573a.772.772 0 00-.478 0c-.177.048-.403.223-.856.573-.944.73-1.977 1.235-3.321 1.515-1.22.254-1.83.38-2.141.6a1.6 1.6 0 00-.625.768c-.151.349-.151.841-.151 1.826V11c0 4.5 4.907 7.772 6.693 8.814.203.118.305.177.448.208.11.024.273.024.384 0 .143-.03.245-.09.448-.208"/><path d="m19.25 19.25-1.772-1.772m.957-2.302a3.26 3.26 0 11-6.518 0 3.26 3.26 0 016.518 0Z"/></g>',
2713
+ "left": 0,
2714
+ "top": 0,
2715
+ "width": 22,
2716
+ "height": 22
2717
+ };
2718
+ exports.__esModule = true;
2719
+ exports.default = data;
2720
+ }
2721
+ });
2722
+
2707
2723
  // src/icons/grid.js
2708
2724
  var require_grid = __commonJS({
2709
2725
  "src/icons/grid.js"(exports) {
@@ -4512,6 +4528,22 @@ var require_ticket = __commonJS({
4512
4528
  }
4513
4529
  });
4514
4530
 
4531
+ // src/icons/tiered.js
4532
+ var require_tiered = __commonJS({
4533
+ "src/icons/tiered.js"(exports) {
4534
+ "use strict";
4535
+ var data = {
4536
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m20 16.288-8.678 4.11c-.118.056-.177.084-.239.095a.477.477 0 01-.166 0c-.062-.011-.12-.04-.239-.095L2 16.288m0-3.901 4.339 2.055 4.339 2.054c.118.056.177.084.239.095.055.01.111.01.166 0 .062-.01.12-.039.239-.095L20 12.386 17 11M5.7 10C4.209 10 3 8.849 3 7.429c0-1.34 1.075-2.44 2.448-2.56C5.728 3.24 7.212 2 9 2s3.271 1.241 3.552 2.868C13.925 4.99 15 6.09 15 7.428 15 8.849 13.791 10 12.3 10H5.7Z"/>',
4537
+ "left": 0,
4538
+ "top": 0,
4539
+ "width": 22,
4540
+ "height": 22
4541
+ };
4542
+ exports.__esModule = true;
4543
+ exports.default = data;
4544
+ }
4545
+ });
4546
+
4515
4547
  // src/icons/time.js
4516
4548
  var require_time = __commonJS({
4517
4549
  "src/icons/time.js"(exports) {
@@ -6319,6 +6351,7 @@ var import_githubLogo = __toESM(require_githubLogo());
6319
6351
  var import_globeNetwork = __toESM(require_globeNetwork());
6320
6352
  var import_globe = __toESM(require_globe());
6321
6353
  var import_googleLogo = __toESM(require_googleLogo());
6354
+ var import_governance = __toESM(require_governance());
6322
6355
  var import_grid = __toESM(require_grid());
6323
6356
  var import_groupedBarChart = __toESM(require_groupedBarChart());
6324
6357
  var import_heart = __toESM(require_heart());
@@ -6434,6 +6467,7 @@ var import_thumbsUp = __toESM(require_thumbsUp());
6434
6467
  var import_tickCircle = __toESM(require_tickCircle());
6435
6468
  var import_tick2 = __toESM(require_tick());
6436
6469
  var import_ticket = __toESM(require_ticket());
6470
+ var import_tiered = __toESM(require_tiered());
6437
6471
  var import_time = __toESM(require_time());
6438
6472
  var import_timelineAreaChart = __toESM(require_timelineAreaChart());
6439
6473
  var import_timelineBarChart = __toESM(require_timelineBarChart());
@@ -9858,7 +9892,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React52.crea
9858
9892
  }, children);
9859
9893
 
9860
9894
  // src/molecules/DataList/DataList.tsx
9861
- import React72, { useRef as useRef7 } from "react";
9895
+ import React72, { useRef as useRef8 } from "react";
9862
9896
  import { useControlledState } from "@react-stately/utils";
9863
9897
  import castArray2 from "lodash/castArray";
9864
9898
  import compact from "lodash/compact";
@@ -9867,8 +9901,9 @@ import isArray3 from "lodash/isArray";
9867
9901
  import isFunction3 from "lodash/isFunction";
9868
9902
 
9869
9903
  // src/molecules/Accordion/Accordion.tsx
9870
- import React55, { createContext as createContext2, useContext as useContext5, useState as useState6 } from "react";
9904
+ import React55, { createContext as createContext2, useContext as useContext5, useRef as useRef6, useState as useState6 } from "react";
9871
9905
  import { Icon as Icon2 } from "@iconify/react";
9906
+ import { useButton as useButton3 } from "@react-aria/button";
9872
9907
  import { useId as useId6 } from "@react-aria/utils";
9873
9908
  import { animated as animated3, useSpring as useSpring2 } from "@react-spring/web";
9874
9909
  import isUndefined8 from "lodash/isUndefined";
@@ -9968,6 +10003,7 @@ var Accordion = ({ children, openPanelId: panelId }) => {
9968
10003
  };
9969
10004
  var AccordionToggle = (_a) => {
9970
10005
  var _b = _a, { panelId, onChange } = _b, rest = __objRest(_b, ["panelId", "onChange"]);
10006
+ const ref = useRef6(null);
9971
10007
  const id = usePanelContext(panelId);
9972
10008
  const [openPanelId, setOpenPanelId] = useAccordionContext();
9973
10009
  const isOpen = openPanelId === id;
@@ -9980,14 +10016,19 @@ var AccordionToggle = (_a) => {
9980
10016
  duration: 150
9981
10017
  }
9982
10018
  });
9983
- return /* @__PURE__ */ React55.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
9984
- role: "button",
9985
- tabIndex: 0,
10019
+ const { buttonProps } = useButton3({ elementType: "div", onPress: handleClick }, ref);
10020
+ return /* @__PURE__ */ React55.createElement(animated3.div, __spreadProps(__spreadValues(__spreadValues({}, rest), __spreadProps(__spreadValues({}, buttonProps), {
10021
+ onPointerDown: (e) => {
10022
+ e.preventDefault();
10023
+ handleClick();
10024
+ }
10025
+ })), {
10026
+ ref,
9986
10027
  "aria-label": "accordion toggle",
9987
10028
  "aria-expanded": openPanelId === id,
9988
10029
  "aria-controls": `${id}-content`,
9989
- onClick: handleClick,
9990
- style: { transform }
10030
+ style: { transform },
10031
+ className: tw("focus:outline-none focusable")
9991
10032
  }), /* @__PURE__ */ React55.createElement(Icon2, {
9992
10033
  icon: import_caretUp.default,
9993
10034
  height: 22,
@@ -10233,7 +10274,7 @@ Input2.Skeleton = () => /* @__PURE__ */ React57.createElement(LabelControl.Skele
10233
10274
  Input2.Skeleton.displayName = "Input.Skeleton";
10234
10275
 
10235
10276
  // src/molecules/Select/Select.tsx
10236
- import React58, { useRef as useRef6, useState as useState8 } from "react";
10277
+ import React58, { useRef as useRef7, useState as useState8 } from "react";
10237
10278
  import { useId as useId8 } from "@react-aria/utils";
10238
10279
  import { useSelect } from "downshift";
10239
10280
  import defaults from "lodash/defaults";
@@ -10324,8 +10365,8 @@ var _SelectBase = (props) => {
10324
10365
  "labelWrapper"
10325
10366
  ]);
10326
10367
  const [hasFocus, setFocus] = useState8(false);
10327
- const targetRef = useRef6(null);
10328
- const menuRef = useRef6(null);
10368
+ const targetRef = useRef7(null);
10369
+ const menuRef = useRef7(null);
10329
10370
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
10330
10371
  const findItemByValue = (val) => {
10331
10372
  if (val === null) {
@@ -11976,7 +12017,7 @@ var DataList2 = (_a) => {
11976
12017
  "toolbar"
11977
12018
  ]);
11978
12019
  var _a2, _b2;
11979
- const containerRef = useRef7(null);
12020
+ const containerRef = useRef8(null);
11980
12021
  const hasStickyColumns = columns.some((column) => column.sticky);
11981
12022
  const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
11982
12023
  const [selected, setSelected] = useControlledState(
@@ -12175,7 +12216,7 @@ DataList2.Skeleton = DataListSkeleton;
12175
12216
  DataList2.Toolbar = DataListToolbar;
12176
12217
 
12177
12218
  // src/molecules/DataTable/DataTable.tsx
12178
- import React75, { useRef as useRef8 } from "react";
12219
+ import React75, { useRef as useRef9 } from "react";
12179
12220
  import classNames8 from "classnames";
12180
12221
  import compact2 from "lodash/compact";
12181
12222
  import isFunction4 from "lodash/isFunction";
@@ -12264,7 +12305,7 @@ var DataTable = (_a) => {
12264
12305
  "onPrev"
12265
12306
  ]);
12266
12307
  var _a2;
12267
- const containerRef = useRef8(null);
12308
+ const containerRef = useRef9(null);
12268
12309
  const hasStickyColumns = columns.some((column) => column.sticky);
12269
12310
  const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
12270
12311
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
@@ -12634,7 +12675,7 @@ import castArray3 from "lodash/castArray";
12634
12675
  import omit9 from "lodash/omit";
12635
12676
 
12636
12677
  // src/molecules/Tabs/Tabs.tsx
12637
- import React78, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState11 } from "react";
12678
+ import React78, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef10, useState as useState11 } from "react";
12638
12679
  import isNumber5 from "lodash/isNumber";
12639
12680
  import kebabCase from "lodash/kebabCase";
12640
12681
  var import_chevronLeft4 = __toESM(require_chevronLeft());
@@ -12765,9 +12806,9 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12765
12806
  const [selected, setSelected] = useState11((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
12766
12807
  const [leftCaret, showLeftCaret] = useState11(false);
12767
12808
  const [rightCaret, showRightCaret] = useState11(false);
12768
- const parentRef = useRef9(null);
12769
- const containerRef = useRef9(null);
12770
- const tabsRef = useRef9(null);
12809
+ const parentRef = useRef10(null);
12810
+ const containerRef = useRef10(null);
12811
+ const tabsRef = useRef10(null);
12771
12812
  const revealSelectedTab = ({ smooth }) => {
12772
12813
  var _a2, _b2;
12773
12814
  const container = containerRef.current;
@@ -13077,7 +13118,7 @@ var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children,
13077
13118
  import React82 from "react";
13078
13119
 
13079
13120
  // src/molecules/Popover/Popover.tsx
13080
- import React81, { useRef as useRef10 } from "react";
13121
+ import React81, { useRef as useRef11 } from "react";
13081
13122
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
13082
13123
  import { useOverlayTrigger } from "@react-aria/overlays";
13083
13124
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -13122,7 +13163,7 @@ var Popover2 = (props) => {
13122
13163
  crossOffset,
13123
13164
  shouldFlip
13124
13165
  } = props;
13125
- const triggerRef = useRef10(null);
13166
+ const triggerRef = useRef11(null);
13126
13167
  const state = useOverlayTriggerState4(props);
13127
13168
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
13128
13169
  return /* @__PURE__ */ React81.createElement(PopoverContext.Provider, {
@@ -13182,7 +13223,7 @@ Popover2.Button = PopoverButton;
13182
13223
  var PopoverTriggerWrapper = (_a) => {
13183
13224
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
13184
13225
  var _a2;
13185
- const ref = useRef10(null);
13226
+ const ref = useRef11(null);
13186
13227
  const trigger = React81.Children.only(children);
13187
13228
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
13188
13229
  return React81.cloneElement(trigger, __spreadProps(__spreadValues({
@@ -13655,7 +13696,7 @@ var ModalTabs = createTabsComponent(
13655
13696
  );
13656
13697
 
13657
13698
  // src/molecules/MultiInput/MultiInput.tsx
13658
- import React93, { useEffect as useEffect9, useRef as useRef11, useState as useState12 } from "react";
13699
+ import React93, { useEffect as useEffect9, useRef as useRef12, useState as useState12 } from "react";
13659
13700
  import { useId as useId12 } from "@react-aria/utils";
13660
13701
  import castArray5 from "lodash/castArray";
13661
13702
  import identity from "lodash/identity";
@@ -13752,7 +13793,7 @@ var MultiInputBase = (_a) => {
13752
13793
  "valid"
13753
13794
  ]);
13754
13795
  var _a2;
13755
- const inputRef = useRef11(null);
13796
+ const inputRef = useRef12(null);
13756
13797
  const [items, setItems] = useState12((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
13757
13798
  const [hasFocus, setFocus] = useState12(false);
13758
13799
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
@@ -13917,7 +13958,7 @@ MultiInput.Skeleton = MultiInputSkeleton;
13917
13958
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
13918
13959
 
13919
13960
  // src/molecules/MultiSelect/MultiSelect.tsx
13920
- import React94, { useEffect as useEffect10, useRef as useRef12, useState as useState13 } from "react";
13961
+ import React94, { useEffect as useEffect10, useRef as useRef13, useState as useState13 } from "react";
13921
13962
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
13922
13963
  import { useId as useId13 } from "@react-aria/utils";
13923
13964
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -13983,10 +14024,10 @@ var MultiSelectBase = (_a) => {
13983
14024
  "children"
13984
14025
  ]);
13985
14026
  var _a2;
13986
- const popoverRef = useRef12(null);
13987
- const targetRef = useRef12(null);
13988
- const menuRef = useRef12(null);
13989
- const inputRef = useRef12(null);
14027
+ const popoverRef = useRef13(null);
14028
+ const targetRef = useRef13(null);
14029
+ const menuRef = useRef13(null);
14030
+ const inputRef = useRef13(null);
13990
14031
  const [inputValue, setInputValue] = useState13("");
13991
14032
  const [hasFocus, setFocus] = useState13(false);
13992
14033
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -14786,7 +14827,8 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
14786
14827
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14787
14828
 
14788
14829
  // src/molecules/Section/Section.tsx
14789
- import React110 from "react";
14830
+ import React110, { useRef as useRef14 } from "react";
14831
+ import { useButton as useButton4 } from "@react-aria/button";
14790
14832
  import { useId as useId16 } from "@react-aria/utils";
14791
14833
  import { animated as animated6, useSpring as useSpring5 } from "@react-spring/web";
14792
14834
  import castArray7 from "lodash/castArray";
@@ -14937,20 +14979,27 @@ Section3.Header = (_a) => {
14937
14979
  var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
14938
14980
  return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14939
14981
  className: classNames(
14940
- tw("px-6 flex gap-5 justify-between items-center h-[72px]", { "bg-muted": expanded }),
14941
- className
14942
- )
14943
- }), children);
14944
- };
14945
- Section3.TitleContainer = (_a) => {
14946
- var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
14947
- return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14948
- className: classNames(
14949
- tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", { "cursor-pointer": collapsible }),
14982
+ tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
14983
+ "bg-muted": expanded
14984
+ }),
14950
14985
  className
14951
14986
  )
14952
14987
  }), children);
14953
14988
  };
14989
+ Section3.TitleContainer = React109.forwardRef(
14990
+ (_a, ref) => {
14991
+ var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
14992
+ return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14993
+ ref,
14994
+ className: classNames(
14995
+ tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
14996
+ "cursor-pointer focus:outline-none focusable": collapsible
14997
+ }),
14998
+ className
14999
+ )
15000
+ }), children);
15001
+ }
15002
+ );
14954
15003
  Section3.Toggle = (props) => /* @__PURE__ */ React109.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14955
15004
  icon: import_caretUp2.default,
14956
15005
  height: 22,
@@ -14996,6 +15045,7 @@ var Section4 = (props) => {
14996
15045
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
14997
15046
  const [isCollapsed, setCollapsed] = React110.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14998
15047
  const [ref, { height }] = useMeasure();
15048
+ const toggleAreaRef = useRef14(null);
14999
15049
  const menu = title ? (_c = props.menu) != null ? _c : void 0 : void 0;
15000
15050
  const menuAriaLabel = title ? (_e = (_d = props.menuAriaLabel) != null ? _d : props.menuLabel) != null ? _e : "Context menu" : void 0;
15001
15051
  const onAction = title ? props.onAction : void 0;
@@ -15029,19 +15079,25 @@ var Section4 = (props) => {
15029
15079
  const regionId = useId16();
15030
15080
  const titleId = useId16();
15031
15081
  const hasTabs = isComponentType(children, Tabs);
15082
+ const { buttonProps } = useButton4(
15083
+ { "elementType": "div", "onPress": handleTitleClick, "aria-expanded": !isCollapsed, "aria-controls": regionId },
15084
+ toggleAreaRef
15085
+ );
15032
15086
  return /* @__PURE__ */ React110.createElement(Section3, {
15033
15087
  "aria-label": title,
15034
15088
  className: "Aquarium-Section"
15035
15089
  }, title && /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(Section3.Header, {
15036
15090
  expanded: _collapsible && !isCollapsed
15037
- }, /* @__PURE__ */ React110.createElement(Section3.TitleContainer, {
15038
- role: _collapsible ? "button" : void 0,
15091
+ }, /* @__PURE__ */ React110.createElement(Section3.TitleContainer, __spreadProps(__spreadValues({}, _collapsible ? __spreadProps(__spreadValues({}, buttonProps), {
15092
+ onPointerDown: (e) => {
15093
+ e.preventDefault();
15094
+ handleTitleClick();
15095
+ }
15096
+ }) : { onClick: handleTitleClick }), {
15097
+ ref: _collapsible ? toggleAreaRef : void 0,
15039
15098
  id: toggleId,
15040
- collapsible: _collapsible,
15041
- onClick: handleTitleClick,
15042
- "aria-expanded": _collapsible ? !isCollapsed : void 0,
15043
- "aria-controls": _collapsible ? regionId : void 0
15044
- }, _collapsible && /* @__PURE__ */ React110.createElement(animated6.div, {
15099
+ collapsible: _collapsible
15100
+ }), _collapsible && /* @__PURE__ */ React110.createElement(animated6.div, {
15045
15101
  style: { transform }
15046
15102
  }, /* @__PURE__ */ React110.createElement(Section3.Toggle, null)), /* @__PURE__ */ React110.createElement(Section3.Title, {
15047
15103
  id: titleId
@@ -15064,7 +15120,7 @@ var Section4 = (props) => {
15064
15120
  icon: import_more6.default
15065
15121
  })), menu)), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React110.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React110.createElement(SelectBase, __spreadValues({
15066
15122
  "aria-labelledby": titleId
15067
- }, props.select)))), !hasTabs && /* @__PURE__ */ React110.createElement(animated6.div, {
15123
+ }, props.select)))), !hasTabs && !isCollapsed && /* @__PURE__ */ React110.createElement(animated6.div, {
15068
15124
  className: tw(`h-[1px]`),
15069
15125
  style: { backgroundColor }
15070
15126
  })), /* @__PURE__ */ React110.createElement(animated6.div, {
@@ -15088,8 +15144,8 @@ var SegmentedControl = (_a) => {
15088
15144
  var _b = _a, {
15089
15145
  children,
15090
15146
  value,
15091
- dense = false,
15092
- variant = "filled",
15147
+ dense: _dense = false,
15148
+ variant: _variant = "filled",
15093
15149
  selected = false,
15094
15150
  className
15095
15151
  } = _b, rest = __objRest(_b, [
@@ -15103,12 +15159,7 @@ var SegmentedControl = (_a) => {
15103
15159
  return /* @__PURE__ */ React111.createElement("li", null, /* @__PURE__ */ React111.createElement("button", __spreadProps(__spreadValues({
15104
15160
  type: "button"
15105
15161
  }, rest), {
15106
- className: classNames(
15107
- getCommonClassNames(dense, selected),
15108
- !rest.disabled && getHoverClassNames(variant),
15109
- selected && getSelectedClassNames(variant),
15110
- className
15111
- ),
15162
+ className: classNames(getBaseSegmentedControlClassNames(selected), className),
15112
15163
  "aria-pressed": selected
15113
15164
  }), children));
15114
15165
  };
@@ -15116,8 +15167,8 @@ var SegmentedControlGroup = (_a) => {
15116
15167
  var _b = _a, {
15117
15168
  value,
15118
15169
  onChange,
15119
- variant = "filled",
15120
- dense = false,
15170
+ variant: _variant = "filled",
15171
+ dense: _dense = false,
15121
15172
  children,
15122
15173
  className,
15123
15174
  ariaLabel
@@ -15130,49 +15181,28 @@ var SegmentedControlGroup = (_a) => {
15130
15181
  "className",
15131
15182
  "ariaLabel"
15132
15183
  ]);
15133
- const classes2 = tw("rounded flex", {
15134
- "border border-default text-muted": variant === "outlined",
15135
- "bg-muted": variant === "raised"
15136
- });
15137
15184
  return /* @__PURE__ */ React111.createElement("ul", __spreadProps(__spreadValues({}, rest), {
15138
15185
  "aria-label": ariaLabel,
15139
- className: classNames("Aquarium-SegmentedControl", classes2, className)
15186
+ className: classNames(
15187
+ "Aquarium-SegmentedControl",
15188
+ "flex border border-default rounded-sm divide-x divide-grey-20",
15189
+ className
15190
+ )
15140
15191
  }), React111.Children.map(
15141
15192
  children,
15142
15193
  (child) => React111.cloneElement(child, {
15143
- dense,
15144
- variant,
15145
15194
  onClick: () => onChange(child.props.value),
15146
15195
  selected: child.props.value === value
15147
15196
  })
15148
15197
  ));
15149
15198
  };
15150
- var getHoverClassNames = (variant) => tw(
15151
- "hover:text-intense",
15152
- {
15153
- "hover:bg-muted": variant !== "raised",
15154
- "hover:bg-default": variant === "raised"
15155
- },
15156
- {
15157
- "active:bg-default": variant !== "raised",
15158
- "active:bg-intense": variant === "raised"
15159
- }
15160
- );
15161
- var getSelectedClassNames = (variant) => tw("relative z-40 text-intense", {
15162
- "bg-white ring-2 ring-offset-0 ring-grey-30 focus:ring-2": variant === "outlined",
15163
- "bg-white shadow-2dp": variant === "raised",
15164
- "bg-default": variant === "filled"
15165
- });
15166
- var getCommonClassNames = (dense, selected) => tw(
15167
- "transition whitespace-nowrap rounded mr-1",
15168
- "focus:outline-none focus:ring-1 focus:ring-offset-0 focus:ring-grey-60",
15169
- "disabled:cursor-not-allowed disabled:text-inactive",
15199
+ var getBaseSegmentedControlClassNames = (selected) => tw(
15200
+ "transition whitespace-nowrap rounded-sm px-4 py-[10px] hover:bg-primary-hover",
15201
+ "focus-visible:outline-none focus-visible:relative focus-visible:z-50 focus-visible:ring-1 focus-visible:ring-offset-0 focusable",
15202
+ "disabled:cursor-not-allowed disabled:text-inactive disabled:bg-muted",
15170
15203
  {
15171
- "py-4 px-5": !dense,
15172
- "py-2 px-4": dense,
15173
- "typography-default-strong": !dense,
15174
- "typography-small-strong": dense,
15175
- "text-muted": !selected
15204
+ "typography-small text-default bg-body": !selected,
15205
+ "typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-80": selected
15176
15206
  }
15177
15207
  );
15178
15208