@aivenio/aquarium 2.20.0 → 3.0.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/atoms.cjs +4 -4
- package/dist/atoms.mjs +4 -4
- package/dist/charts.cjs +16 -8
- package/dist/charts.mjs +16 -8
- package/dist/src/atoms/DataList/DataList.js +2 -2
- package/dist/src/atoms/Table/Table.d.ts +3 -1
- package/dist/src/atoms/Table/Table.js +2 -2
- package/dist/src/atoms/Typography/Typography.d.ts +2 -2
- package/dist/src/atoms/Typography/Typography.js +1 -1
- package/dist/src/charts/AreaChart/AreaChart.d.ts +1 -1
- package/dist/src/charts/BarChart/BarChart.d.ts +1 -1
- package/dist/src/charts/Legend/Legend.js +2 -1
- package/dist/src/charts/LineChart/LineChart.d.ts +1 -1
- package/dist/src/charts/PieChart/DoughnutChart.d.ts +1 -1
- package/dist/src/charts/PieChart/DoughnutChart.js +4 -4
- package/dist/src/charts/PieChart/PieChart.d.ts +1 -1
- package/dist/src/charts/PieChart/PieChart.js +2 -2
- package/dist/src/charts/PieChart/renderPieChildren.d.ts +1 -1
- package/dist/src/charts/PieChart/renderPieChildren.js +8 -4
- package/dist/src/charts/lib/utils.d.ts +1 -1
- package/dist/src/charts/lib/utils.js +5 -2
- package/dist/src/molecules/Accordion/Accordion.js +7 -3
- package/dist/src/molecules/Avatar/Avatar.js +2 -2
- package/dist/src/molecules/Box/Box.d.ts +2 -2
- package/dist/src/molecules/Box/Box.js +1 -1
- package/dist/src/molecules/Button/Button.d.ts +19 -9
- package/dist/src/molecules/Button/Button.js +2 -2
- package/dist/src/molecules/Card/CardInputWrapper.d.ts +2 -2
- package/dist/src/molecules/Card/CardInputWrapper.js +2 -2
- package/dist/src/molecules/Context/Context.d.ts +1 -1
- package/dist/src/molecules/Context/Context.js +1 -1
- package/dist/src/molecules/DataList/DataListComponents.d.ts +4 -4
- package/dist/src/molecules/DataList/DataListComponents.js +1 -1
- package/dist/src/molecules/DataList/DataListGroup.d.ts +1 -1
- package/dist/src/molecules/DataList/DataListGroup.js +1 -1
- package/dist/src/molecules/Dropdown/Dropdown.js +1 -1
- package/dist/src/molecules/Element/Element.d.ts +1 -1
- package/dist/src/molecules/Flexbox/Flexbox.d.ts +2 -2
- package/dist/src/molecules/Flexbox/FlexboxItem.d.ts +2 -2
- package/dist/src/molecules/Grid/Grid.d.ts +2 -2
- package/dist/src/molecules/Grid/GridItem.d.ts +2 -2
- package/dist/src/molecules/Link/Link.d.ts +2 -1
- package/dist/src/molecules/List/List.d.ts +1 -1
- package/dist/src/molecules/List/List.js +1 -1
- package/dist/src/molecules/ListItem/ListItem.d.ts +2 -1
- package/dist/src/molecules/ListItem/ListItem.js +1 -1
- package/dist/src/molecules/Popover/Popover.d.ts +1 -1
- package/dist/src/molecules/Popover/Popover.js +2 -2
- package/dist/src/molecules/Popover/PopoverOverlay.d.ts +2 -2
- package/dist/src/molecules/Popover/PopoverOverlay.js +1 -1
- package/dist/src/molecules/PopoverDialog/PopoverDialog.js +6 -2
- package/dist/src/molecules/Portal/Portal.d.ts +1 -1
- package/dist/src/molecules/Section/Section.js +7 -3
- package/dist/src/molecules/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/src/molecules/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/src/molecules/Select/Select.js +1 -1
- package/dist/src/molecules/Tailwindify/Tailwindify.d.ts +1 -1
- package/dist/src/molecules/Tailwindify/Tailwindify.js +1 -1
- package/dist/src/molecules/Tooltip/useTooltipTriggerState.js +2 -2
- package/dist/src/molecules/Transition/Transition.js +8 -3
- package/dist/src/utils/stickyStyles.d.ts +2 -2
- package/dist/src/utils/stickyStyles.js +2 -2
- package/dist/src/utils/table/useScrollTarget.d.ts +1 -1
- package/dist/src/utils/table/useScrollTarget.js +1 -1
- package/dist/src/utils/useInView.d.ts +1 -1
- package/dist/src/utils/useInView.js +1 -1
- package/dist/src/utils/useMeasure.d.ts +1 -1
- package/dist/system.cjs +64 -42
- package/dist/system.mjs +64 -42
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +39 -29
- package/dist/src/molecules/Toast/Toast.spec.d.ts +0 -1
- package/dist/src/molecules/Toast/Toast.spec.js +0 -42
package/dist/system.cjs
CHANGED
@@ -7010,7 +7010,7 @@ function useTooltipTriggerState(props = {}) {
|
|
7010
7010
|
const { delay = TOOLTIP_DELAY } = props;
|
7011
7011
|
const { isOpen, open, close } = (0, import_overlays.useOverlayTriggerState)(props);
|
7012
7012
|
const id = (0, import_react10.useMemo)(() => `${++tooltipId}`, []);
|
7013
|
-
const closeTimeout = (0, import_react10.useRef)();
|
7013
|
+
const closeTimeout = (0, import_react10.useRef)(null);
|
7014
7014
|
const isUnmounted = (0, import_react10.useRef)(false);
|
7015
7015
|
const ensureTooltipEntry = () => {
|
7016
7016
|
tooltips[id] = hideTooltip;
|
@@ -7339,7 +7339,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7339
7339
|
hasChildren && /* @__PURE__ */ import_react12.default.createElement("div", null, children)
|
7340
7340
|
);
|
7341
7341
|
} else {
|
7342
|
-
return children;
|
7342
|
+
return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, children);
|
7343
7343
|
}
|
7344
7344
|
};
|
7345
7345
|
const buttonComponent = /* @__PURE__ */ import_react12.default.createElement(
|
@@ -7443,7 +7443,18 @@ var Transition = ({ children }) => {
|
|
7443
7443
|
keys: (item) => item.key || "",
|
7444
7444
|
config: { tension: 125, friction: 20, precision: 0.1 }
|
7445
7445
|
});
|
7446
|
-
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, transitions((style, item) =>
|
7446
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, transitions((style, item) => (
|
7447
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7448
|
+
/* @__PURE__ */ import_react14.default.createElement(import_web.animated.div, { style }, /* @__PURE__ */ import_react14.default.createElement(
|
7449
|
+
"div",
|
7450
|
+
{
|
7451
|
+
ref: (ref) => {
|
7452
|
+
ref && refMap.set(item, ref);
|
7453
|
+
}
|
7454
|
+
},
|
7455
|
+
item
|
7456
|
+
))
|
7457
|
+
)));
|
7447
7458
|
};
|
7448
7459
|
|
7449
7460
|
// src/atoms/Toast/Toast.tsx
|
@@ -7932,25 +7943,28 @@ var AccordionToggle = ({ panelId, onChange, ...rest }) => {
|
|
7932
7943
|
}
|
7933
7944
|
});
|
7934
7945
|
const { buttonProps } = (0, import_button.useButton)({ elementType: "div", onPress: handleClick }, ref);
|
7935
|
-
return
|
7936
|
-
|
7937
|
-
|
7938
|
-
|
7939
|
-
|
7940
|
-
...
|
7941
|
-
|
7942
|
-
|
7943
|
-
|
7944
|
-
|
7946
|
+
return (
|
7947
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7948
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
7949
|
+
import_web3.animated.div,
|
7950
|
+
{
|
7951
|
+
...rest,
|
7952
|
+
...{
|
7953
|
+
...buttonProps,
|
7954
|
+
onPointerDown: (e) => {
|
7955
|
+
e.preventDefault();
|
7956
|
+
handleClick();
|
7957
|
+
}
|
7958
|
+
},
|
7959
|
+
ref,
|
7960
|
+
"aria-label": "accordion toggle",
|
7961
|
+
"aria-expanded": openPanelId === id,
|
7962
|
+
"aria-controls": `${id}-content`,
|
7963
|
+
style: { transform },
|
7964
|
+
className: tw("text-default focus:outline-none focusable")
|
7945
7965
|
},
|
7946
|
-
|
7947
|
-
|
7948
|
-
"aria-expanded": openPanelId === id,
|
7949
|
-
"aria-controls": `${id}-content`,
|
7950
|
-
style: { transform },
|
7951
|
-
className: tw("text-default focus:outline-none focusable")
|
7952
|
-
},
|
7953
|
-
/* @__PURE__ */ import_react24.default.createElement(import_react25.Icon, { icon: import_caretUp.default, height: 22, width: 22 })
|
7966
|
+
/* @__PURE__ */ import_react24.default.createElement(import_react25.Icon, { icon: import_caretUp.default, height: 22, width: 22 })
|
7967
|
+
)
|
7954
7968
|
);
|
7955
7969
|
};
|
7956
7970
|
var AccordionPanel = ({ children, panelId, ...rest }) => {
|
@@ -7966,17 +7980,20 @@ var AccordionPanel = ({ children, panelId, ...rest }) => {
|
|
7966
7980
|
duration: 150
|
7967
7981
|
}
|
7968
7982
|
});
|
7969
|
-
return
|
7970
|
-
|
7971
|
-
|
7972
|
-
|
7973
|
-
|
7974
|
-
|
7975
|
-
|
7976
|
-
|
7977
|
-
|
7978
|
-
|
7979
|
-
|
7983
|
+
return (
|
7984
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7985
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
7986
|
+
import_web3.animated.div,
|
7987
|
+
{
|
7988
|
+
role: "region",
|
7989
|
+
...rest,
|
7990
|
+
id: `${id}-content`,
|
7991
|
+
"aria-labelledby": `${id}-summary`,
|
7992
|
+
"aria-hidden": !isOpen ? "true" : void 0,
|
7993
|
+
style
|
7994
|
+
},
|
7995
|
+
/* @__PURE__ */ import_react24.default.createElement("div", { ref }, children)
|
7996
|
+
)
|
7980
7997
|
);
|
7981
7998
|
};
|
7982
7999
|
var AccordionUnanimatedPanel = ({ children, panelId }) => {
|
@@ -8257,7 +8274,7 @@ var Skeleton = ({
|
|
8257
8274
|
|
8258
8275
|
// src/molecules/Avatar/Avatar.tsx
|
8259
8276
|
var AvatarStack = ({ images }) => /* @__PURE__ */ import_react29.default.createElement(Box, { display: "flex", className: tw("[&>*:not(:first-child)]:-ml-3") }, images.map(
|
8260
|
-
(image, index) => image ? /* @__PURE__ */ import_react29.default.createElement(Avatar, { key: `${image}.${index}`, image
|
8277
|
+
(image, index) => image ? /* @__PURE__ */ import_react29.default.createElement(Avatar, { key: `${image}.${index}`, image }) : /* @__PURE__ */ import_react29.default.createElement(Avatar.Skeleton, { key: index })
|
8261
8278
|
));
|
8262
8279
|
var Avatar = ({ image, imageAlt = "" }) => /* @__PURE__ */ import_react29.default.createElement("img", { src: image, className: classNames(tw("w-[32px] h-[32px]"), "Aquarium-Avatar"), alt: imageAlt });
|
8263
8280
|
var AvatarSkeleton = () => /* @__PURE__ */ import_react29.default.createElement(Skeleton, { height: 32, width: 32, className: tw("rounded-full") });
|
@@ -8883,7 +8900,7 @@ var Template = ({
|
|
8883
8900
|
};
|
8884
8901
|
|
8885
8902
|
// src/molecules/Card/CardInputWrapper.tsx
|
8886
|
-
var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ import_react43.default.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : children;
|
8903
|
+
var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ import_react43.default.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, children);
|
8887
8904
|
|
8888
8905
|
// src/molecules/Card/Compact.tsx
|
8889
8906
|
var import_react45 = __toESM(require("react"));
|
@@ -10697,7 +10714,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ i
|
|
10697
10714
|
"tr",
|
10698
10715
|
{
|
10699
10716
|
...rest,
|
10700
|
-
...{ inert: disabled
|
10717
|
+
...{ inert: disabled },
|
10701
10718
|
className: classNames(rowClassNames, className, {
|
10702
10719
|
"opacity-70": disabled
|
10703
10720
|
})
|
@@ -10857,7 +10874,7 @@ var Row = ({
|
|
10857
10874
|
{
|
10858
10875
|
...rest,
|
10859
10876
|
role: isGroup ? "rowgroup" : "row",
|
10860
|
-
...{ inert: disabled
|
10877
|
+
...{ inert: disabled },
|
10861
10878
|
className: classNames(tw("contents"), className, {
|
10862
10879
|
"[&>*]:border-b-transparent": noDivider,
|
10863
10880
|
"children:opacity-70": disabled,
|
@@ -10981,7 +10998,10 @@ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor })
|
|
10981
10998
|
}
|
10982
10999
|
};
|
10983
11000
|
}
|
10984
|
-
function useScrollProgress({
|
11001
|
+
function useScrollProgress({
|
11002
|
+
containerRef,
|
11003
|
+
skip
|
11004
|
+
}) {
|
10985
11005
|
const [scrollState, setScrollState] = (0, import_react71.useState)(null);
|
10986
11006
|
const throttledSetScrollState = (0, import_lodash_es24.throttle)(({ scrollX, scrollXProgress }) => {
|
10987
11007
|
setScrollState({ scrollX, scrollXProgress });
|
@@ -13495,9 +13515,9 @@ var PopoverTriggerWrapper = ({ children, ...rest }) => {
|
|
13495
13515
|
const trigger = import_react101.default.Children.only(children);
|
13496
13516
|
const { pressProps } = (0, import_interactions3.usePress)({ ...rest, ref });
|
13497
13517
|
return import_react101.default.cloneElement(trigger, {
|
13498
|
-
"ref": ref,
|
13499
13518
|
...(0, import_utils31.mergeProps)(pressProps, trigger.props),
|
13500
|
-
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
|
13519
|
+
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"],
|
13520
|
+
"ref": ref
|
13501
13521
|
});
|
13502
13522
|
};
|
13503
13523
|
|
@@ -14699,7 +14719,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
|
|
14699
14719
|
secondaryAction.text
|
14700
14720
|
), /* @__PURE__ */ import_react121.default.createElement(Popover3.Button, { kind: "ghost", key: primaryAction.text, dense: true, ...(0, import_lodash_es46.omit)(primaryAction, "text") }, primaryAction.text))));
|
14701
14721
|
}
|
14702
|
-
return child;
|
14722
|
+
return child instanceof Promise ? /* @__PURE__ */ import_react121.default.createElement(import_react121.default.Fragment, null, child) : child;
|
14703
14723
|
};
|
14704
14724
|
return /* @__PURE__ */ import_react121.default.createElement(Popover3, { type: "dialog", isOpen: open, placement, containFocus: true }, import_react121.default.Children.map(children, wrapPromptWithBody));
|
14705
14725
|
};
|
@@ -15104,7 +15124,8 @@ var Section4 = (props) => {
|
|
15104
15124
|
id: toggleId,
|
15105
15125
|
collapsible: _collapsible
|
15106
15126
|
},
|
15107
|
-
_collapsible &&
|
15127
|
+
_collapsible && // @ts-expect-error React spring does not yet support R19 types
|
15128
|
+
/* @__PURE__ */ import_react130.default.createElement(import_web6.animated.div, { style: { transform } }, /* @__PURE__ */ import_react130.default.createElement(Section3.Toggle, null)),
|
15108
15129
|
/* @__PURE__ */ import_react130.default.createElement(Section3.Title, { id: titleId }, /* @__PURE__ */ import_react130.default.createElement(LineClamp2, { lines: 1 }, title), props.tag && /* @__PURE__ */ import_react130.default.createElement(TagLabel, { ...props.tag }), props.badge && /* @__PURE__ */ import_react130.default.createElement(Chip2, { text: props.badge }), props.chip && /* @__PURE__ */ import_react130.default.createElement(StatusChip, { ...props.chip })),
|
15109
15130
|
subtitle && /* @__PURE__ */ import_react130.default.createElement(Section3.Subtitle, { className: tw("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ import_react130.default.createElement(LineClamp2, { lines: 1 }, subtitle))
|
15110
15131
|
), !isCollapsed && /* @__PURE__ */ import_react130.default.createElement(Section3.Actions, null, props.switch && /* @__PURE__ */ import_react130.default.createElement(Switch2, { ...props.switch }), menu && /* @__PURE__ */ import_react130.default.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ import_react130.default.createElement(
|
@@ -15116,7 +15137,8 @@ var Section4 = (props) => {
|
|
15116
15137
|
},
|
15117
15138
|
/* @__PURE__ */ import_react130.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react130.default.createElement(Button.Icon, { "aria-label": menuAriaLabel, icon: import_more6.default })),
|
15118
15139
|
menu
|
15119
|
-
)), props.actions && (0, import_lodash_es48.castArray)(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ import_react130.default.createElement(SelectBase, { "aria-labelledby": titleId, ...props.select }))), !hasTabs && !isCollapsed &&
|
15140
|
+
)), props.actions && (0, import_lodash_es48.castArray)(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ import_react130.default.createElement(SelectBase, { "aria-labelledby": titleId, ...props.select }))), !hasTabs && !isCollapsed && // @ts-expect-error React spring does not yet support R19 types
|
15141
|
+
/* @__PURE__ */ import_react130.default.createElement(import_web6.animated.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ import_react130.default.createElement(
|
15120
15142
|
import_web6.animated.div,
|
15121
15143
|
{
|
15122
15144
|
id: regionId,
|
package/dist/system.mjs
CHANGED
@@ -6847,7 +6847,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6847
6847
|
const { delay = TOOLTIP_DELAY } = props;
|
6848
6848
|
const { isOpen, open, close } = useOverlayTriggerState(props);
|
6849
6849
|
const id = useMemo(() => `${++tooltipId}`, []);
|
6850
|
-
const closeTimeout = useRef();
|
6850
|
+
const closeTimeout = useRef(null);
|
6851
6851
|
const isUnmounted = useRef(false);
|
6852
6852
|
const ensureTooltipEntry = () => {
|
6853
6853
|
tooltips[id] = hideTooltip;
|
@@ -7176,7 +7176,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7176
7176
|
hasChildren && /* @__PURE__ */ React9.createElement("div", null, children)
|
7177
7177
|
);
|
7178
7178
|
} else {
|
7179
|
-
return children;
|
7179
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, children);
|
7180
7180
|
}
|
7181
7181
|
};
|
7182
7182
|
const buttonComponent = /* @__PURE__ */ React9.createElement(
|
@@ -7280,7 +7280,18 @@ var Transition = ({ children }) => {
|
|
7280
7280
|
keys: (item) => item.key || "",
|
7281
7281
|
config: { tension: 125, friction: 20, precision: 0.1 }
|
7282
7282
|
});
|
7283
|
-
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) =>
|
7283
|
+
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) => (
|
7284
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7285
|
+
/* @__PURE__ */ React11.createElement(animated.div, { style }, /* @__PURE__ */ React11.createElement(
|
7286
|
+
"div",
|
7287
|
+
{
|
7288
|
+
ref: (ref) => {
|
7289
|
+
ref && refMap.set(item, ref);
|
7290
|
+
}
|
7291
|
+
},
|
7292
|
+
item
|
7293
|
+
))
|
7294
|
+
)));
|
7284
7295
|
};
|
7285
7296
|
|
7286
7297
|
// src/atoms/Toast/Toast.tsx
|
@@ -7769,25 +7780,28 @@ var AccordionToggle = ({ panelId, onChange, ...rest }) => {
|
|
7769
7780
|
}
|
7770
7781
|
});
|
7771
7782
|
const { buttonProps } = useButton({ elementType: "div", onPress: handleClick }, ref);
|
7772
|
-
return
|
7773
|
-
|
7774
|
-
|
7775
|
-
|
7776
|
-
|
7777
|
-
...
|
7778
|
-
|
7779
|
-
|
7780
|
-
|
7781
|
-
|
7783
|
+
return (
|
7784
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7785
|
+
/* @__PURE__ */ React20.createElement(
|
7786
|
+
animated3.div,
|
7787
|
+
{
|
7788
|
+
...rest,
|
7789
|
+
...{
|
7790
|
+
...buttonProps,
|
7791
|
+
onPointerDown: (e) => {
|
7792
|
+
e.preventDefault();
|
7793
|
+
handleClick();
|
7794
|
+
}
|
7795
|
+
},
|
7796
|
+
ref,
|
7797
|
+
"aria-label": "accordion toggle",
|
7798
|
+
"aria-expanded": openPanelId === id,
|
7799
|
+
"aria-controls": `${id}-content`,
|
7800
|
+
style: { transform },
|
7801
|
+
className: tw("text-default focus:outline-none focusable")
|
7782
7802
|
},
|
7783
|
-
|
7784
|
-
|
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 })
|
7803
|
+
/* @__PURE__ */ React20.createElement(Icon2, { icon: import_caretUp.default, height: 22, width: 22 })
|
7804
|
+
)
|
7791
7805
|
);
|
7792
7806
|
};
|
7793
7807
|
var AccordionPanel = ({ children, panelId, ...rest }) => {
|
@@ -7803,17 +7817,20 @@ var AccordionPanel = ({ children, panelId, ...rest }) => {
|
|
7803
7817
|
duration: 150
|
7804
7818
|
}
|
7805
7819
|
});
|
7806
|
-
return
|
7807
|
-
|
7808
|
-
|
7809
|
-
|
7810
|
-
|
7811
|
-
|
7812
|
-
|
7813
|
-
|
7814
|
-
|
7815
|
-
|
7816
|
-
|
7820
|
+
return (
|
7821
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7822
|
+
/* @__PURE__ */ React20.createElement(
|
7823
|
+
animated3.div,
|
7824
|
+
{
|
7825
|
+
role: "region",
|
7826
|
+
...rest,
|
7827
|
+
id: `${id}-content`,
|
7828
|
+
"aria-labelledby": `${id}-summary`,
|
7829
|
+
"aria-hidden": !isOpen ? "true" : void 0,
|
7830
|
+
style
|
7831
|
+
},
|
7832
|
+
/* @__PURE__ */ React20.createElement("div", { ref }, children)
|
7833
|
+
)
|
7817
7834
|
);
|
7818
7835
|
};
|
7819
7836
|
var AccordionUnanimatedPanel = ({ children, panelId }) => {
|
@@ -8094,7 +8111,7 @@ var Skeleton = ({
|
|
8094
8111
|
|
8095
8112
|
// src/molecules/Avatar/Avatar.tsx
|
8096
8113
|
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
|
8114
|
+
(image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image }) : /* @__PURE__ */ React24.createElement(Avatar.Skeleton, { key: index })
|
8098
8115
|
));
|
8099
8116
|
var Avatar = ({ image, imageAlt = "" }) => /* @__PURE__ */ React24.createElement("img", { src: image, className: classNames(tw("w-[32px] h-[32px]"), "Aquarium-Avatar"), alt: imageAlt });
|
8100
8117
|
var AvatarSkeleton = () => /* @__PURE__ */ React24.createElement(Skeleton, { height: 32, width: 32, className: tw("rounded-full") });
|
@@ -8720,7 +8737,7 @@ var Template = ({
|
|
8720
8737
|
};
|
8721
8738
|
|
8722
8739
|
// 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;
|
8740
|
+
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
8741
|
|
8725
8742
|
// src/molecules/Card/Compact.tsx
|
8726
8743
|
import React39, { useContext as useContext4, useRef as useRef3 } from "react";
|
@@ -10534,7 +10551,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ R
|
|
10534
10551
|
"tr",
|
10535
10552
|
{
|
10536
10553
|
...rest,
|
10537
|
-
...{ inert: disabled
|
10554
|
+
...{ inert: disabled },
|
10538
10555
|
className: classNames(rowClassNames, className, {
|
10539
10556
|
"opacity-70": disabled
|
10540
10557
|
})
|
@@ -10694,7 +10711,7 @@ var Row = ({
|
|
10694
10711
|
{
|
10695
10712
|
...rest,
|
10696
10713
|
role: isGroup ? "rowgroup" : "row",
|
10697
|
-
...{ inert: disabled
|
10714
|
+
...{ inert: disabled },
|
10698
10715
|
className: classNames(tw("contents"), className, {
|
10699
10716
|
"[&>*]:border-b-transparent": noDivider,
|
10700
10717
|
"children:opacity-70": disabled,
|
@@ -10818,7 +10835,10 @@ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor })
|
|
10818
10835
|
}
|
10819
10836
|
};
|
10820
10837
|
}
|
10821
|
-
function useScrollProgress({
|
10838
|
+
function useScrollProgress({
|
10839
|
+
containerRef,
|
10840
|
+
skip
|
10841
|
+
}) {
|
10822
10842
|
const [scrollState, setScrollState] = useState10(null);
|
10823
10843
|
const throttledSetScrollState = throttle(({ scrollX, scrollXProgress }) => {
|
10824
10844
|
setScrollState({ scrollX, scrollXProgress });
|
@@ -13360,9 +13380,9 @@ var PopoverTriggerWrapper = ({ children, ...rest }) => {
|
|
13360
13380
|
const trigger = React92.Children.only(children);
|
13361
13381
|
const { pressProps } = usePress2({ ...rest, ref });
|
13362
13382
|
return React92.cloneElement(trigger, {
|
13363
|
-
"ref": ref,
|
13364
13383
|
...mergeProps3(pressProps, trigger.props),
|
13365
|
-
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
|
13384
|
+
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"],
|
13385
|
+
"ref": ref
|
13366
13386
|
});
|
13367
13387
|
};
|
13368
13388
|
|
@@ -14564,7 +14584,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
|
|
14564
14584
|
secondaryAction.text
|
14565
14585
|
), /* @__PURE__ */ React112.createElement(Popover3.Button, { kind: "ghost", key: primaryAction.text, dense: true, ...omit18(primaryAction, "text") }, primaryAction.text))));
|
14566
14586
|
}
|
14567
|
-
return child;
|
14587
|
+
return child instanceof Promise ? /* @__PURE__ */ React112.createElement(React112.Fragment, null, child) : child;
|
14568
14588
|
};
|
14569
14589
|
return /* @__PURE__ */ React112.createElement(Popover3, { type: "dialog", isOpen: open, placement, containFocus: true }, React112.Children.map(children, wrapPromptWithBody));
|
14570
14590
|
};
|
@@ -14969,7 +14989,8 @@ var Section4 = (props) => {
|
|
14969
14989
|
id: toggleId,
|
14970
14990
|
collapsible: _collapsible
|
14971
14991
|
},
|
14972
|
-
_collapsible &&
|
14992
|
+
_collapsible && // @ts-expect-error React spring does not yet support R19 types
|
14993
|
+
/* @__PURE__ */ React121.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React121.createElement(Section3.Toggle, null)),
|
14973
14994
|
/* @__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
14995
|
subtitle && /* @__PURE__ */ React121.createElement(Section3.Subtitle, { className: tw("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ React121.createElement(LineClamp2, { lines: 1 }, subtitle))
|
14975
14996
|
), !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 +15002,8 @@ var Section4 = (props) => {
|
|
14981
15002
|
},
|
14982
15003
|
/* @__PURE__ */ React121.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React121.createElement(Button.Icon, { "aria-label": menuAriaLabel, icon: import_more6.default })),
|
14983
15004
|
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 &&
|
15005
|
+
)), 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
|
15006
|
+
/* @__PURE__ */ React121.createElement(animated6.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ React121.createElement(
|
14985
15007
|
animated6.div,
|
14986
15008
|
{
|
14987
15009
|
id: regionId,
|