@aivenio/aquarium 2.18.0 → 2.19.0-rc1
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 +37 -27
- 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
@@ -6998,7 +6998,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6998
6998
|
const { delay = TOOLTIP_DELAY } = props;
|
6999
6999
|
const { isOpen, open, close } = (0, import_overlays.useOverlayTriggerState)(props);
|
7000
7000
|
const id = (0, import_react10.useMemo)(() => `${++tooltipId}`, []);
|
7001
|
-
const closeTimeout = (0, import_react10.useRef)();
|
7001
|
+
const closeTimeout = (0, import_react10.useRef)(null);
|
7002
7002
|
const isUnmounted = (0, import_react10.useRef)(false);
|
7003
7003
|
const ensureTooltipEntry = () => {
|
7004
7004
|
tooltips[id] = hideTooltip;
|
@@ -7327,7 +7327,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7327
7327
|
hasChildren && /* @__PURE__ */ import_react12.default.createElement("div", null, children)
|
7328
7328
|
);
|
7329
7329
|
} else {
|
7330
|
-
return children;
|
7330
|
+
return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, children);
|
7331
7331
|
}
|
7332
7332
|
};
|
7333
7333
|
const buttonComponent = /* @__PURE__ */ import_react12.default.createElement(
|
@@ -7431,7 +7431,18 @@ var Transition = ({ children }) => {
|
|
7431
7431
|
keys: (item) => item.key || "",
|
7432
7432
|
config: { tension: 125, friction: 20, precision: 0.1 }
|
7433
7433
|
});
|
7434
|
-
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, transitions((style, item) =>
|
7434
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, transitions((style, item) => (
|
7435
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7436
|
+
/* @__PURE__ */ import_react14.default.createElement(import_web.animated.div, { style }, /* @__PURE__ */ import_react14.default.createElement(
|
7437
|
+
"div",
|
7438
|
+
{
|
7439
|
+
ref: (ref) => {
|
7440
|
+
ref && refMap.set(item, ref);
|
7441
|
+
}
|
7442
|
+
},
|
7443
|
+
item
|
7444
|
+
))
|
7445
|
+
)));
|
7435
7446
|
};
|
7436
7447
|
|
7437
7448
|
// src/atoms/Toast/Toast.tsx
|
@@ -7920,25 +7931,28 @@ var AccordionToggle = ({ panelId, onChange, ...rest }) => {
|
|
7920
7931
|
}
|
7921
7932
|
});
|
7922
7933
|
const { buttonProps } = (0, import_button.useButton)({ elementType: "div", onPress: handleClick }, ref);
|
7923
|
-
return
|
7924
|
-
|
7925
|
-
|
7926
|
-
|
7927
|
-
|
7928
|
-
...
|
7929
|
-
|
7930
|
-
|
7931
|
-
|
7932
|
-
|
7934
|
+
return (
|
7935
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7936
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
7937
|
+
import_web3.animated.div,
|
7938
|
+
{
|
7939
|
+
...rest,
|
7940
|
+
...{
|
7941
|
+
...buttonProps,
|
7942
|
+
onPointerDown: (e) => {
|
7943
|
+
e.preventDefault();
|
7944
|
+
handleClick();
|
7945
|
+
}
|
7946
|
+
},
|
7947
|
+
ref,
|
7948
|
+
"aria-label": "accordion toggle",
|
7949
|
+
"aria-expanded": openPanelId === id,
|
7950
|
+
"aria-controls": `${id}-content`,
|
7951
|
+
style: { transform },
|
7952
|
+
className: tw("text-default focus:outline-none focusable")
|
7933
7953
|
},
|
7934
|
-
|
7935
|
-
|
7936
|
-
"aria-expanded": openPanelId === id,
|
7937
|
-
"aria-controls": `${id}-content`,
|
7938
|
-
style: { transform },
|
7939
|
-
className: tw("text-default focus:outline-none focusable")
|
7940
|
-
},
|
7941
|
-
/* @__PURE__ */ import_react24.default.createElement(import_react25.Icon, { icon: import_caretUp.default, height: 22, width: 22 })
|
7954
|
+
/* @__PURE__ */ import_react24.default.createElement(import_react25.Icon, { icon: import_caretUp.default, height: 22, width: 22 })
|
7955
|
+
)
|
7942
7956
|
);
|
7943
7957
|
};
|
7944
7958
|
var AccordionPanel = ({ children, panelId, ...rest }) => {
|
@@ -7954,17 +7968,20 @@ var AccordionPanel = ({ children, panelId, ...rest }) => {
|
|
7954
7968
|
duration: 150
|
7955
7969
|
}
|
7956
7970
|
});
|
7957
|
-
return
|
7958
|
-
|
7959
|
-
|
7960
|
-
|
7961
|
-
|
7962
|
-
|
7963
|
-
|
7964
|
-
|
7965
|
-
|
7966
|
-
|
7967
|
-
|
7971
|
+
return (
|
7972
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7973
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
7974
|
+
import_web3.animated.div,
|
7975
|
+
{
|
7976
|
+
role: "region",
|
7977
|
+
...rest,
|
7978
|
+
id: `${id}-content`,
|
7979
|
+
"aria-labelledby": `${id}-summary`,
|
7980
|
+
"aria-hidden": !isOpen ? "true" : void 0,
|
7981
|
+
style
|
7982
|
+
},
|
7983
|
+
/* @__PURE__ */ import_react24.default.createElement("div", { ref }, children)
|
7984
|
+
)
|
7968
7985
|
);
|
7969
7986
|
};
|
7970
7987
|
var AccordionUnanimatedPanel = ({ children, panelId }) => {
|
@@ -8245,7 +8262,7 @@ var Skeleton = ({
|
|
8245
8262
|
|
8246
8263
|
// src/molecules/Avatar/Avatar.tsx
|
8247
8264
|
var AvatarStack = ({ images }) => /* @__PURE__ */ import_react29.default.createElement(Box, { display: "flex", className: tw("[&>*:not(:first-child)]:-ml-3") }, images.map(
|
8248
|
-
(image, index) => image ? /* @__PURE__ */ import_react29.default.createElement(Avatar, { key: `${image}.${index}`, image
|
8265
|
+
(image, index) => image ? /* @__PURE__ */ import_react29.default.createElement(Avatar, { key: `${image}.${index}`, image }) : /* @__PURE__ */ import_react29.default.createElement(Avatar.Skeleton, { key: index })
|
8249
8266
|
));
|
8250
8267
|
var Avatar = ({ image, imageAlt = "" }) => /* @__PURE__ */ import_react29.default.createElement("img", { src: image, className: classNames(tw("w-[32px] h-[32px]"), "Aquarium-Avatar"), alt: imageAlt });
|
8251
8268
|
var AvatarSkeleton = () => /* @__PURE__ */ import_react29.default.createElement(Skeleton, { height: 32, width: 32, className: tw("rounded-full") });
|
@@ -8871,7 +8888,7 @@ var Template = ({
|
|
8871
8888
|
};
|
8872
8889
|
|
8873
8890
|
// src/molecules/Card/CardInputWrapper.tsx
|
8874
|
-
var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ import_react43.default.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : children;
|
8891
|
+
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);
|
8875
8892
|
|
8876
8893
|
// src/molecules/Card/Compact.tsx
|
8877
8894
|
var import_react45 = __toESM(require("react"));
|
@@ -10685,7 +10702,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ i
|
|
10685
10702
|
"tr",
|
10686
10703
|
{
|
10687
10704
|
...rest,
|
10688
|
-
...{ inert: disabled
|
10705
|
+
...{ inert: disabled },
|
10689
10706
|
className: classNames(rowClassNames, className, {
|
10690
10707
|
"opacity-70": disabled
|
10691
10708
|
})
|
@@ -10845,7 +10862,7 @@ var Row = ({
|
|
10845
10862
|
{
|
10846
10863
|
...rest,
|
10847
10864
|
role: isGroup ? "rowgroup" : "row",
|
10848
|
-
...{ inert: disabled
|
10865
|
+
...{ inert: disabled },
|
10849
10866
|
className: classNames(tw("contents"), className, {
|
10850
10867
|
"[&>*]:border-b-transparent": noDivider,
|
10851
10868
|
"children:opacity-70": disabled,
|
@@ -10969,7 +10986,10 @@ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor })
|
|
10969
10986
|
}
|
10970
10987
|
};
|
10971
10988
|
}
|
10972
|
-
function useScrollProgress({
|
10989
|
+
function useScrollProgress({
|
10990
|
+
containerRef,
|
10991
|
+
skip
|
10992
|
+
}) {
|
10973
10993
|
const [scrollState, setScrollState] = (0, import_react71.useState)(null);
|
10974
10994
|
const throttledSetScrollState = (0, import_lodash_es21.throttle)(({ scrollX, scrollXProgress }) => {
|
10975
10995
|
setScrollState({ scrollX, scrollXProgress });
|
@@ -13483,9 +13503,9 @@ var PopoverTriggerWrapper = ({ children, ...rest }) => {
|
|
13483
13503
|
const trigger = import_react101.default.Children.only(children);
|
13484
13504
|
const { pressProps } = (0, import_interactions3.usePress)({ ...rest, ref });
|
13485
13505
|
return import_react101.default.cloneElement(trigger, {
|
13486
|
-
"ref": ref,
|
13487
13506
|
...(0, import_utils31.mergeProps)(pressProps, trigger.props),
|
13488
|
-
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
|
13507
|
+
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"],
|
13508
|
+
"ref": ref
|
13489
13509
|
});
|
13490
13510
|
};
|
13491
13511
|
|
@@ -14687,7 +14707,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
|
|
14687
14707
|
secondaryAction.text
|
14688
14708
|
), /* @__PURE__ */ import_react121.default.createElement(Popover3.Button, { kind: "ghost", key: primaryAction.text, dense: true, ...(0, import_lodash_es41.omit)(primaryAction, "text") }, primaryAction.text))));
|
14689
14709
|
}
|
14690
|
-
return child;
|
14710
|
+
return child instanceof Promise ? /* @__PURE__ */ import_react121.default.createElement(import_react121.default.Fragment, null, child) : child;
|
14691
14711
|
};
|
14692
14712
|
return /* @__PURE__ */ import_react121.default.createElement(Popover3, { type: "dialog", isOpen: open, placement, containFocus: true }, import_react121.default.Children.map(children, wrapPromptWithBody));
|
14693
14713
|
};
|
@@ -15092,7 +15112,8 @@ var Section4 = (props) => {
|
|
15092
15112
|
id: toggleId,
|
15093
15113
|
collapsible: _collapsible
|
15094
15114
|
},
|
15095
|
-
_collapsible &&
|
15115
|
+
_collapsible && // @ts-expect-error React spring does not yet support R19 types
|
15116
|
+
/* @__PURE__ */ import_react130.default.createElement(import_web6.animated.div, { style: { transform } }, /* @__PURE__ */ import_react130.default.createElement(Section3.Toggle, null)),
|
15096
15117
|
/* @__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 })),
|
15097
15118
|
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))
|
15098
15119
|
), !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(
|
@@ -15104,7 +15125,8 @@ var Section4 = (props) => {
|
|
15104
15125
|
},
|
15105
15126
|
/* @__PURE__ */ import_react130.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react130.default.createElement(Button.Icon, { "aria-label": menuAriaLabel, icon: import_more6.default })),
|
15106
15127
|
menu
|
15107
|
-
)), props.actions && (0, import_lodash_es43.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 &&
|
15128
|
+
)), props.actions && (0, import_lodash_es43.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
|
15129
|
+
/* @__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(
|
15108
15130
|
import_web6.animated.div,
|
15109
15131
|
{
|
15110
15132
|
id: regionId,
|
package/dist/system.mjs
CHANGED
@@ -6835,7 +6835,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6835
6835
|
const { delay = TOOLTIP_DELAY } = props;
|
6836
6836
|
const { isOpen, open, close } = useOverlayTriggerState(props);
|
6837
6837
|
const id = useMemo(() => `${++tooltipId}`, []);
|
6838
|
-
const closeTimeout = useRef();
|
6838
|
+
const closeTimeout = useRef(null);
|
6839
6839
|
const isUnmounted = useRef(false);
|
6840
6840
|
const ensureTooltipEntry = () => {
|
6841
6841
|
tooltips[id] = hideTooltip;
|
@@ -7164,7 +7164,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7164
7164
|
hasChildren && /* @__PURE__ */ React9.createElement("div", null, children)
|
7165
7165
|
);
|
7166
7166
|
} else {
|
7167
|
-
return children;
|
7167
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, children);
|
7168
7168
|
}
|
7169
7169
|
};
|
7170
7170
|
const buttonComponent = /* @__PURE__ */ React9.createElement(
|
@@ -7268,7 +7268,18 @@ var Transition = ({ children }) => {
|
|
7268
7268
|
keys: (item) => item.key || "",
|
7269
7269
|
config: { tension: 125, friction: 20, precision: 0.1 }
|
7270
7270
|
});
|
7271
|
-
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) =>
|
7271
|
+
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) => (
|
7272
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7273
|
+
/* @__PURE__ */ React11.createElement(animated.div, { style }, /* @__PURE__ */ React11.createElement(
|
7274
|
+
"div",
|
7275
|
+
{
|
7276
|
+
ref: (ref) => {
|
7277
|
+
ref && refMap.set(item, ref);
|
7278
|
+
}
|
7279
|
+
},
|
7280
|
+
item
|
7281
|
+
))
|
7282
|
+
)));
|
7272
7283
|
};
|
7273
7284
|
|
7274
7285
|
// src/atoms/Toast/Toast.tsx
|
@@ -7757,25 +7768,28 @@ var AccordionToggle = ({ panelId, onChange, ...rest }) => {
|
|
7757
7768
|
}
|
7758
7769
|
});
|
7759
7770
|
const { buttonProps } = useButton({ elementType: "div", onPress: handleClick }, ref);
|
7760
|
-
return
|
7761
|
-
|
7762
|
-
|
7763
|
-
|
7764
|
-
|
7765
|
-
...
|
7766
|
-
|
7767
|
-
|
7768
|
-
|
7769
|
-
|
7771
|
+
return (
|
7772
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7773
|
+
/* @__PURE__ */ React20.createElement(
|
7774
|
+
animated3.div,
|
7775
|
+
{
|
7776
|
+
...rest,
|
7777
|
+
...{
|
7778
|
+
...buttonProps,
|
7779
|
+
onPointerDown: (e) => {
|
7780
|
+
e.preventDefault();
|
7781
|
+
handleClick();
|
7782
|
+
}
|
7783
|
+
},
|
7784
|
+
ref,
|
7785
|
+
"aria-label": "accordion toggle",
|
7786
|
+
"aria-expanded": openPanelId === id,
|
7787
|
+
"aria-controls": `${id}-content`,
|
7788
|
+
style: { transform },
|
7789
|
+
className: tw("text-default focus:outline-none focusable")
|
7770
7790
|
},
|
7771
|
-
|
7772
|
-
|
7773
|
-
"aria-expanded": openPanelId === id,
|
7774
|
-
"aria-controls": `${id}-content`,
|
7775
|
-
style: { transform },
|
7776
|
-
className: tw("text-default focus:outline-none focusable")
|
7777
|
-
},
|
7778
|
-
/* @__PURE__ */ React20.createElement(Icon2, { icon: import_caretUp.default, height: 22, width: 22 })
|
7791
|
+
/* @__PURE__ */ React20.createElement(Icon2, { icon: import_caretUp.default, height: 22, width: 22 })
|
7792
|
+
)
|
7779
7793
|
);
|
7780
7794
|
};
|
7781
7795
|
var AccordionPanel = ({ children, panelId, ...rest }) => {
|
@@ -7791,17 +7805,20 @@ var AccordionPanel = ({ children, panelId, ...rest }) => {
|
|
7791
7805
|
duration: 150
|
7792
7806
|
}
|
7793
7807
|
});
|
7794
|
-
return
|
7795
|
-
|
7796
|
-
|
7797
|
-
|
7798
|
-
|
7799
|
-
|
7800
|
-
|
7801
|
-
|
7802
|
-
|
7803
|
-
|
7804
|
-
|
7808
|
+
return (
|
7809
|
+
// @ts-expect-error React spring does not yet support R19 types
|
7810
|
+
/* @__PURE__ */ React20.createElement(
|
7811
|
+
animated3.div,
|
7812
|
+
{
|
7813
|
+
role: "region",
|
7814
|
+
...rest,
|
7815
|
+
id: `${id}-content`,
|
7816
|
+
"aria-labelledby": `${id}-summary`,
|
7817
|
+
"aria-hidden": !isOpen ? "true" : void 0,
|
7818
|
+
style
|
7819
|
+
},
|
7820
|
+
/* @__PURE__ */ React20.createElement("div", { ref }, children)
|
7821
|
+
)
|
7805
7822
|
);
|
7806
7823
|
};
|
7807
7824
|
var AccordionUnanimatedPanel = ({ children, panelId }) => {
|
@@ -8082,7 +8099,7 @@ var Skeleton = ({
|
|
8082
8099
|
|
8083
8100
|
// src/molecules/Avatar/Avatar.tsx
|
8084
8101
|
var AvatarStack = ({ images }) => /* @__PURE__ */ React24.createElement(Box, { display: "flex", className: tw("[&>*:not(:first-child)]:-ml-3") }, images.map(
|
8085
|
-
(image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image
|
8102
|
+
(image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image }) : /* @__PURE__ */ React24.createElement(Avatar.Skeleton, { key: index })
|
8086
8103
|
));
|
8087
8104
|
var Avatar = ({ image, imageAlt = "" }) => /* @__PURE__ */ React24.createElement("img", { src: image, className: classNames(tw("w-[32px] h-[32px]"), "Aquarium-Avatar"), alt: imageAlt });
|
8088
8105
|
var AvatarSkeleton = () => /* @__PURE__ */ React24.createElement(Skeleton, { height: 32, width: 32, className: tw("rounded-full") });
|
@@ -8708,7 +8725,7 @@ var Template = ({
|
|
8708
8725
|
};
|
8709
8726
|
|
8710
8727
|
// src/molecules/Card/CardInputWrapper.tsx
|
8711
|
-
var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ React37.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : children;
|
8728
|
+
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);
|
8712
8729
|
|
8713
8730
|
// src/molecules/Card/Compact.tsx
|
8714
8731
|
import React39, { useContext as useContext4, useRef as useRef3 } from "react";
|
@@ -10522,7 +10539,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ R
|
|
10522
10539
|
"tr",
|
10523
10540
|
{
|
10524
10541
|
...rest,
|
10525
|
-
...{ inert: disabled
|
10542
|
+
...{ inert: disabled },
|
10526
10543
|
className: classNames(rowClassNames, className, {
|
10527
10544
|
"opacity-70": disabled
|
10528
10545
|
})
|
@@ -10682,7 +10699,7 @@ var Row = ({
|
|
10682
10699
|
{
|
10683
10700
|
...rest,
|
10684
10701
|
role: isGroup ? "rowgroup" : "row",
|
10685
|
-
...{ inert: disabled
|
10702
|
+
...{ inert: disabled },
|
10686
10703
|
className: classNames(tw("contents"), className, {
|
10687
10704
|
"[&>*]:border-b-transparent": noDivider,
|
10688
10705
|
"children:opacity-70": disabled,
|
@@ -10806,7 +10823,10 @@ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor })
|
|
10806
10823
|
}
|
10807
10824
|
};
|
10808
10825
|
}
|
10809
|
-
function useScrollProgress({
|
10826
|
+
function useScrollProgress({
|
10827
|
+
containerRef,
|
10828
|
+
skip
|
10829
|
+
}) {
|
10810
10830
|
const [scrollState, setScrollState] = useState10(null);
|
10811
10831
|
const throttledSetScrollState = throttle(({ scrollX, scrollXProgress }) => {
|
10812
10832
|
setScrollState({ scrollX, scrollXProgress });
|
@@ -13348,9 +13368,9 @@ var PopoverTriggerWrapper = ({ children, ...rest }) => {
|
|
13348
13368
|
const trigger = React92.Children.only(children);
|
13349
13369
|
const { pressProps } = usePress2({ ...rest, ref });
|
13350
13370
|
return React92.cloneElement(trigger, {
|
13351
|
-
"ref": ref,
|
13352
13371
|
...mergeProps3(pressProps, trigger.props),
|
13353
|
-
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
|
13372
|
+
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"],
|
13373
|
+
"ref": ref
|
13354
13374
|
});
|
13355
13375
|
};
|
13356
13376
|
|
@@ -14552,7 +14572,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
|
|
14552
14572
|
secondaryAction.text
|
14553
14573
|
), /* @__PURE__ */ React112.createElement(Popover3.Button, { kind: "ghost", key: primaryAction.text, dense: true, ...omit18(primaryAction, "text") }, primaryAction.text))));
|
14554
14574
|
}
|
14555
|
-
return child;
|
14575
|
+
return child instanceof Promise ? /* @__PURE__ */ React112.createElement(React112.Fragment, null, child) : child;
|
14556
14576
|
};
|
14557
14577
|
return /* @__PURE__ */ React112.createElement(Popover3, { type: "dialog", isOpen: open, placement, containFocus: true }, React112.Children.map(children, wrapPromptWithBody));
|
14558
14578
|
};
|
@@ -14957,7 +14977,8 @@ var Section4 = (props) => {
|
|
14957
14977
|
id: toggleId,
|
14958
14978
|
collapsible: _collapsible
|
14959
14979
|
},
|
14960
|
-
_collapsible &&
|
14980
|
+
_collapsible && // @ts-expect-error React spring does not yet support R19 types
|
14981
|
+
/* @__PURE__ */ React121.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React121.createElement(Section3.Toggle, null)),
|
14961
14982
|
/* @__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 })),
|
14962
14983
|
subtitle && /* @__PURE__ */ React121.createElement(Section3.Subtitle, { className: tw("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ React121.createElement(LineClamp2, { lines: 1 }, subtitle))
|
14963
14984
|
), !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(
|
@@ -14969,7 +14990,8 @@ var Section4 = (props) => {
|
|
14969
14990
|
},
|
14970
14991
|
/* @__PURE__ */ React121.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React121.createElement(Button.Icon, { "aria-label": menuAriaLabel, icon: import_more6.default })),
|
14971
14992
|
menu
|
14972
|
-
)), 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 &&
|
14993
|
+
)), 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
|
14994
|
+
/* @__PURE__ */ React121.createElement(animated6.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ React121.createElement(
|
14973
14995
|
animated6.div,
|
14974
14996
|
{
|
14975
14997
|
id: regionId,
|