@aivenio/aquarium 1.70.0 → 1.71.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
@@ -4512,6 +4512,22 @@ var require_ticket = __commonJS({
4512
4512
  }
4513
4513
  });
4514
4514
 
4515
+ // src/icons/tiered.js
4516
+ var require_tiered = __commonJS({
4517
+ "src/icons/tiered.js"(exports) {
4518
+ "use strict";
4519
+ var data = {
4520
+ "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"/>',
4521
+ "left": 0,
4522
+ "top": 0,
4523
+ "width": 22,
4524
+ "height": 22
4525
+ };
4526
+ exports.__esModule = true;
4527
+ exports.default = data;
4528
+ }
4529
+ });
4530
+
4515
4531
  // src/icons/time.js
4516
4532
  var require_time = __commonJS({
4517
4533
  "src/icons/time.js"(exports) {
@@ -6434,6 +6450,7 @@ var import_thumbsUp = __toESM(require_thumbsUp());
6434
6450
  var import_tickCircle = __toESM(require_tickCircle());
6435
6451
  var import_tick2 = __toESM(require_tick());
6436
6452
  var import_ticket = __toESM(require_ticket());
6453
+ var import_tiered = __toESM(require_tiered());
6437
6454
  var import_time = __toESM(require_time());
6438
6455
  var import_timelineAreaChart = __toESM(require_timelineAreaChart());
6439
6456
  var import_timelineBarChart = __toESM(require_timelineBarChart());
@@ -9858,7 +9875,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React52.crea
9858
9875
  }, children);
9859
9876
 
9860
9877
  // src/molecules/DataList/DataList.tsx
9861
- import React72, { useRef as useRef7 } from "react";
9878
+ import React72, { useRef as useRef8 } from "react";
9862
9879
  import { useControlledState } from "@react-stately/utils";
9863
9880
  import castArray2 from "lodash/castArray";
9864
9881
  import compact from "lodash/compact";
@@ -9867,8 +9884,9 @@ import isArray3 from "lodash/isArray";
9867
9884
  import isFunction3 from "lodash/isFunction";
9868
9885
 
9869
9886
  // src/molecules/Accordion/Accordion.tsx
9870
- import React55, { createContext as createContext2, useContext as useContext5, useState as useState6 } from "react";
9887
+ import React55, { createContext as createContext2, useContext as useContext5, useRef as useRef6, useState as useState6 } from "react";
9871
9888
  import { Icon as Icon2 } from "@iconify/react";
9889
+ import { useButton as useButton3 } from "@react-aria/button";
9872
9890
  import { useId as useId6 } from "@react-aria/utils";
9873
9891
  import { animated as animated3, useSpring as useSpring2 } from "@react-spring/web";
9874
9892
  import isUndefined8 from "lodash/isUndefined";
@@ -9968,6 +9986,7 @@ var Accordion = ({ children, openPanelId: panelId }) => {
9968
9986
  };
9969
9987
  var AccordionToggle = (_a) => {
9970
9988
  var _b = _a, { panelId, onChange } = _b, rest = __objRest(_b, ["panelId", "onChange"]);
9989
+ const ref = useRef6(null);
9971
9990
  const id = usePanelContext(panelId);
9972
9991
  const [openPanelId, setOpenPanelId] = useAccordionContext();
9973
9992
  const isOpen = openPanelId === id;
@@ -9980,14 +9999,19 @@ var AccordionToggle = (_a) => {
9980
9999
  duration: 150
9981
10000
  }
9982
10001
  });
9983
- return /* @__PURE__ */ React55.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
9984
- role: "button",
9985
- tabIndex: 0,
10002
+ const { buttonProps } = useButton3({ elementType: "div", onPress: handleClick }, ref);
10003
+ return /* @__PURE__ */ React55.createElement(animated3.div, __spreadProps(__spreadValues(__spreadValues({}, rest), __spreadProps(__spreadValues({}, buttonProps), {
10004
+ onPointerDown: (e) => {
10005
+ e.preventDefault();
10006
+ handleClick();
10007
+ }
10008
+ })), {
10009
+ ref,
9986
10010
  "aria-label": "accordion toggle",
9987
10011
  "aria-expanded": openPanelId === id,
9988
10012
  "aria-controls": `${id}-content`,
9989
- onClick: handleClick,
9990
- style: { transform }
10013
+ style: { transform },
10014
+ className: tw("focus:outline-none focusable")
9991
10015
  }), /* @__PURE__ */ React55.createElement(Icon2, {
9992
10016
  icon: import_caretUp.default,
9993
10017
  height: 22,
@@ -10233,7 +10257,7 @@ Input2.Skeleton = () => /* @__PURE__ */ React57.createElement(LabelControl.Skele
10233
10257
  Input2.Skeleton.displayName = "Input.Skeleton";
10234
10258
 
10235
10259
  // src/molecules/Select/Select.tsx
10236
- import React58, { useRef as useRef6, useState as useState8 } from "react";
10260
+ import React58, { useRef as useRef7, useState as useState8 } from "react";
10237
10261
  import { useId as useId8 } from "@react-aria/utils";
10238
10262
  import { useSelect } from "downshift";
10239
10263
  import defaults from "lodash/defaults";
@@ -10324,8 +10348,8 @@ var _SelectBase = (props) => {
10324
10348
  "labelWrapper"
10325
10349
  ]);
10326
10350
  const [hasFocus, setFocus] = useState8(false);
10327
- const targetRef = useRef6(null);
10328
- const menuRef = useRef6(null);
10351
+ const targetRef = useRef7(null);
10352
+ const menuRef = useRef7(null);
10329
10353
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
10330
10354
  const findItemByValue = (val) => {
10331
10355
  if (val === null) {
@@ -11976,7 +12000,7 @@ var DataList2 = (_a) => {
11976
12000
  "toolbar"
11977
12001
  ]);
11978
12002
  var _a2, _b2;
11979
- const containerRef = useRef7(null);
12003
+ const containerRef = useRef8(null);
11980
12004
  const hasStickyColumns = columns.some((column) => column.sticky);
11981
12005
  const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
11982
12006
  const [selected, setSelected] = useControlledState(
@@ -12175,7 +12199,7 @@ DataList2.Skeleton = DataListSkeleton;
12175
12199
  DataList2.Toolbar = DataListToolbar;
12176
12200
 
12177
12201
  // src/molecules/DataTable/DataTable.tsx
12178
- import React75, { useRef as useRef8 } from "react";
12202
+ import React75, { useRef as useRef9 } from "react";
12179
12203
  import classNames8 from "classnames";
12180
12204
  import compact2 from "lodash/compact";
12181
12205
  import isFunction4 from "lodash/isFunction";
@@ -12264,7 +12288,7 @@ var DataTable = (_a) => {
12264
12288
  "onPrev"
12265
12289
  ]);
12266
12290
  var _a2;
12267
- const containerRef = useRef8(null);
12291
+ const containerRef = useRef9(null);
12268
12292
  const hasStickyColumns = columns.some((column) => column.sticky);
12269
12293
  const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
12270
12294
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
@@ -12634,7 +12658,7 @@ import castArray3 from "lodash/castArray";
12634
12658
  import omit9 from "lodash/omit";
12635
12659
 
12636
12660
  // src/molecules/Tabs/Tabs.tsx
12637
- import React78, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState11 } from "react";
12661
+ import React78, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef10, useState as useState11 } from "react";
12638
12662
  import isNumber5 from "lodash/isNumber";
12639
12663
  import kebabCase from "lodash/kebabCase";
12640
12664
  var import_chevronLeft4 = __toESM(require_chevronLeft());
@@ -12765,9 +12789,9 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12765
12789
  const [selected, setSelected] = useState11((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
12766
12790
  const [leftCaret, showLeftCaret] = useState11(false);
12767
12791
  const [rightCaret, showRightCaret] = useState11(false);
12768
- const parentRef = useRef9(null);
12769
- const containerRef = useRef9(null);
12770
- const tabsRef = useRef9(null);
12792
+ const parentRef = useRef10(null);
12793
+ const containerRef = useRef10(null);
12794
+ const tabsRef = useRef10(null);
12771
12795
  const revealSelectedTab = ({ smooth }) => {
12772
12796
  var _a2, _b2;
12773
12797
  const container = containerRef.current;
@@ -13077,7 +13101,7 @@ var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children,
13077
13101
  import React82 from "react";
13078
13102
 
13079
13103
  // src/molecules/Popover/Popover.tsx
13080
- import React81, { useRef as useRef10 } from "react";
13104
+ import React81, { useRef as useRef11 } from "react";
13081
13105
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
13082
13106
  import { useOverlayTrigger } from "@react-aria/overlays";
13083
13107
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -13122,7 +13146,7 @@ var Popover2 = (props) => {
13122
13146
  crossOffset,
13123
13147
  shouldFlip
13124
13148
  } = props;
13125
- const triggerRef = useRef10(null);
13149
+ const triggerRef = useRef11(null);
13126
13150
  const state = useOverlayTriggerState4(props);
13127
13151
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
13128
13152
  return /* @__PURE__ */ React81.createElement(PopoverContext.Provider, {
@@ -13182,7 +13206,7 @@ Popover2.Button = PopoverButton;
13182
13206
  var PopoverTriggerWrapper = (_a) => {
13183
13207
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
13184
13208
  var _a2;
13185
- const ref = useRef10(null);
13209
+ const ref = useRef11(null);
13186
13210
  const trigger = React81.Children.only(children);
13187
13211
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
13188
13212
  return React81.cloneElement(trigger, __spreadProps(__spreadValues({
@@ -13655,7 +13679,7 @@ var ModalTabs = createTabsComponent(
13655
13679
  );
13656
13680
 
13657
13681
  // src/molecules/MultiInput/MultiInput.tsx
13658
- import React93, { useEffect as useEffect9, useRef as useRef11, useState as useState12 } from "react";
13682
+ import React93, { useEffect as useEffect9, useRef as useRef12, useState as useState12 } from "react";
13659
13683
  import { useId as useId12 } from "@react-aria/utils";
13660
13684
  import castArray5 from "lodash/castArray";
13661
13685
  import identity from "lodash/identity";
@@ -13752,7 +13776,7 @@ var MultiInputBase = (_a) => {
13752
13776
  "valid"
13753
13777
  ]);
13754
13778
  var _a2;
13755
- const inputRef = useRef11(null);
13779
+ const inputRef = useRef12(null);
13756
13780
  const [items, setItems] = useState12((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
13757
13781
  const [hasFocus, setFocus] = useState12(false);
13758
13782
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
@@ -13917,7 +13941,7 @@ MultiInput.Skeleton = MultiInputSkeleton;
13917
13941
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
13918
13942
 
13919
13943
  // src/molecules/MultiSelect/MultiSelect.tsx
13920
- import React94, { useEffect as useEffect10, useRef as useRef12, useState as useState13 } from "react";
13944
+ import React94, { useEffect as useEffect10, useRef as useRef13, useState as useState13 } from "react";
13921
13945
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
13922
13946
  import { useId as useId13 } from "@react-aria/utils";
13923
13947
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -13983,10 +14007,10 @@ var MultiSelectBase = (_a) => {
13983
14007
  "children"
13984
14008
  ]);
13985
14009
  var _a2;
13986
- const popoverRef = useRef12(null);
13987
- const targetRef = useRef12(null);
13988
- const menuRef = useRef12(null);
13989
- const inputRef = useRef12(null);
14010
+ const popoverRef = useRef13(null);
14011
+ const targetRef = useRef13(null);
14012
+ const menuRef = useRef13(null);
14013
+ const inputRef = useRef13(null);
13990
14014
  const [inputValue, setInputValue] = useState13("");
13991
14015
  const [hasFocus, setFocus] = useState13(false);
13992
14016
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -14786,7 +14810,8 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
14786
14810
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14787
14811
 
14788
14812
  // src/molecules/Section/Section.tsx
14789
- import React110 from "react";
14813
+ import React110, { useRef as useRef14 } from "react";
14814
+ import { useButton as useButton4 } from "@react-aria/button";
14790
14815
  import { useId as useId16 } from "@react-aria/utils";
14791
14816
  import { animated as animated6, useSpring as useSpring5 } from "@react-spring/web";
14792
14817
  import castArray7 from "lodash/castArray";
@@ -14937,20 +14962,27 @@ Section3.Header = (_a) => {
14937
14962
  var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
14938
14963
  return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14939
14964
  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 }),
14965
+ tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
14966
+ "bg-muted": expanded
14967
+ }),
14950
14968
  className
14951
14969
  )
14952
14970
  }), children);
14953
14971
  };
14972
+ Section3.TitleContainer = React109.forwardRef(
14973
+ (_a, ref) => {
14974
+ var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
14975
+ return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14976
+ ref,
14977
+ className: classNames(
14978
+ tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
14979
+ "cursor-pointer focus:outline-none focusable": collapsible
14980
+ }),
14981
+ className
14982
+ )
14983
+ }), children);
14984
+ }
14985
+ );
14954
14986
  Section3.Toggle = (props) => /* @__PURE__ */ React109.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14955
14987
  icon: import_caretUp2.default,
14956
14988
  height: 22,
@@ -14996,6 +15028,7 @@ var Section4 = (props) => {
14996
15028
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
14997
15029
  const [isCollapsed, setCollapsed] = React110.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14998
15030
  const [ref, { height }] = useMeasure();
15031
+ const toggleAreaRef = useRef14(null);
14999
15032
  const menu = title ? (_c = props.menu) != null ? _c : void 0 : void 0;
15000
15033
  const menuAriaLabel = title ? (_e = (_d = props.menuAriaLabel) != null ? _d : props.menuLabel) != null ? _e : "Context menu" : void 0;
15001
15034
  const onAction = title ? props.onAction : void 0;
@@ -15029,19 +15062,25 @@ var Section4 = (props) => {
15029
15062
  const regionId = useId16();
15030
15063
  const titleId = useId16();
15031
15064
  const hasTabs = isComponentType(children, Tabs);
15065
+ const { buttonProps } = useButton4(
15066
+ { "elementType": "div", "onPress": handleTitleClick, "aria-expanded": !isCollapsed, "aria-controls": regionId },
15067
+ toggleAreaRef
15068
+ );
15032
15069
  return /* @__PURE__ */ React110.createElement(Section3, {
15033
15070
  "aria-label": title,
15034
15071
  className: "Aquarium-Section"
15035
15072
  }, title && /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(Section3.Header, {
15036
15073
  expanded: _collapsible && !isCollapsed
15037
- }, /* @__PURE__ */ React110.createElement(Section3.TitleContainer, {
15038
- role: _collapsible ? "button" : void 0,
15074
+ }, /* @__PURE__ */ React110.createElement(Section3.TitleContainer, __spreadProps(__spreadValues({}, _collapsible ? __spreadProps(__spreadValues({}, buttonProps), {
15075
+ onPointerDown: (e) => {
15076
+ e.preventDefault();
15077
+ handleTitleClick();
15078
+ }
15079
+ }) : { onClick: handleTitleClick }), {
15080
+ ref: _collapsible ? toggleAreaRef : void 0,
15039
15081
  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, {
15082
+ collapsible: _collapsible
15083
+ }), _collapsible && /* @__PURE__ */ React110.createElement(animated6.div, {
15045
15084
  style: { transform }
15046
15085
  }, /* @__PURE__ */ React110.createElement(Section3.Toggle, null)), /* @__PURE__ */ React110.createElement(Section3.Title, {
15047
15086
  id: titleId
@@ -15064,7 +15103,7 @@ var Section4 = (props) => {
15064
15103
  icon: import_more6.default
15065
15104
  })), 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
15105
  "aria-labelledby": titleId
15067
- }, props.select)))), !hasTabs && /* @__PURE__ */ React110.createElement(animated6.div, {
15106
+ }, props.select)))), !hasTabs && !isCollapsed && /* @__PURE__ */ React110.createElement(animated6.div, {
15068
15107
  className: tw(`h-[1px]`),
15069
15108
  style: { backgroundColor }
15070
15109
  })), /* @__PURE__ */ React110.createElement(animated6.div, {
@@ -15088,8 +15127,8 @@ var SegmentedControl = (_a) => {
15088
15127
  var _b = _a, {
15089
15128
  children,
15090
15129
  value,
15091
- dense = false,
15092
- variant = "filled",
15130
+ dense: _dense = false,
15131
+ variant: _variant = "filled",
15093
15132
  selected = false,
15094
15133
  className
15095
15134
  } = _b, rest = __objRest(_b, [
@@ -15103,12 +15142,7 @@ var SegmentedControl = (_a) => {
15103
15142
  return /* @__PURE__ */ React111.createElement("li", null, /* @__PURE__ */ React111.createElement("button", __spreadProps(__spreadValues({
15104
15143
  type: "button"
15105
15144
  }, rest), {
15106
- className: classNames(
15107
- getCommonClassNames(dense, selected),
15108
- !rest.disabled && getHoverClassNames(variant),
15109
- selected && getSelectedClassNames(variant),
15110
- className
15111
- ),
15145
+ className: classNames(getBaseSegmentedControlClassNames(selected), className),
15112
15146
  "aria-pressed": selected
15113
15147
  }), children));
15114
15148
  };
@@ -15116,8 +15150,8 @@ var SegmentedControlGroup = (_a) => {
15116
15150
  var _b = _a, {
15117
15151
  value,
15118
15152
  onChange,
15119
- variant = "filled",
15120
- dense = false,
15153
+ variant: _variant = "filled",
15154
+ dense: _dense = false,
15121
15155
  children,
15122
15156
  className,
15123
15157
  ariaLabel
@@ -15130,49 +15164,28 @@ var SegmentedControlGroup = (_a) => {
15130
15164
  "className",
15131
15165
  "ariaLabel"
15132
15166
  ]);
15133
- const classes2 = tw("rounded flex", {
15134
- "border border-default text-muted": variant === "outlined",
15135
- "bg-muted": variant === "raised"
15136
- });
15137
15167
  return /* @__PURE__ */ React111.createElement("ul", __spreadProps(__spreadValues({}, rest), {
15138
15168
  "aria-label": ariaLabel,
15139
- className: classNames("Aquarium-SegmentedControl", classes2, className)
15169
+ className: classNames(
15170
+ "Aquarium-SegmentedControl",
15171
+ "flex border border-default rounded-sm divide-x divide-grey-20",
15172
+ className
15173
+ )
15140
15174
  }), React111.Children.map(
15141
15175
  children,
15142
15176
  (child) => React111.cloneElement(child, {
15143
- dense,
15144
- variant,
15145
15177
  onClick: () => onChange(child.props.value),
15146
15178
  selected: child.props.value === value
15147
15179
  })
15148
15180
  ));
15149
15181
  };
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",
15182
+ var getBaseSegmentedControlClassNames = (selected) => tw(
15183
+ "transition whitespace-nowrap rounded-sm px-4 py-[10px] hover:bg-primary-hover",
15184
+ "focus-visible:outline-none focus-visible:relative focus-visible:z-50 focus-visible:ring-1 focus-visible:ring-offset-0 focusable",
15185
+ "disabled:cursor-not-allowed disabled:text-inactive disabled:bg-muted",
15170
15186
  {
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
15187
+ "typography-small text-default bg-body": !selected,
15188
+ "typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-80": selected
15176
15189
  }
15177
15190
  );
15178
15191