@aivenio/aquarium 2.19.0-rc1 → 2.20.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 +82 -61
- package/dist/atoms.mjs +33 -13
- package/dist/charts.cjs +8 -16
- package/dist/charts.mjs +8 -16
- package/dist/src/atoms/Card/Card.js +2 -2
- package/dist/src/atoms/DataList/DataList.js +2 -2
- package/dist/src/atoms/Table/Table.d.ts +1 -3
- 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/atoms/VisuallyHidden/VisuallyHidden.d.ts +3 -0
- package/dist/src/atoms/VisuallyHidden/VisuallyHidden.js +6 -0
- package/dist/src/atoms/index.d.ts +1 -0
- package/dist/src/atoms/index.js +2 -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 +1 -2
- 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 +4 -8
- package/dist/src/charts/lib/utils.d.ts +1 -1
- package/dist/src/charts/lib/utils.js +2 -5
- package/dist/src/icons/creditMemo.d.ts +9 -0
- package/dist/src/icons/creditMemo.js +11 -0
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +2 -1
- package/dist/src/molecules/Accordion/Accordion.js +3 -7
- 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 +9 -19
- package/dist/src/molecules/Button/Button.js +2 -2
- package/dist/src/molecules/Card/Card.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/Card/types.d.ts +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 +1 -2
- 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 +1 -2
- 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 +2 -6
- package/dist/src/molecules/Portal/Portal.d.ts +1 -1
- package/dist/src/molecules/Section/Section.js +3 -7
- 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/Toast/Toast.spec.d.ts +1 -0
- package/dist/src/molecules/Toast/Toast.spec.js +42 -0
- package/dist/src/molecules/Tooltip/useTooltipTriggerState.js +2 -2
- package/dist/src/molecules/Transition/Transition.js +3 -8
- package/dist/src/utils/breakpoints.js +2 -4
- package/dist/src/utils/positioner.js +2 -2
- package/dist/src/utils/stickyStyles.d.ts +2 -2
- package/dist/src/utils/stickyStyles.js +2 -2
- package/dist/src/utils/table/types.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/table/utils.js +2 -2
- 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/src/utils/useStyle.js +2 -4
- package/dist/src/utils/useWindowSize.js +2 -3
- package/dist/styles.css +3 -0
- package/dist/system.cjs +219 -229
- package/dist/system.mjs +67 -77
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/dist/types/utils.d.ts +1 -0
- package/package.json +27 -37
package/dist/system.mjs
CHANGED
@@ -1292,6 +1292,22 @@ var require_creditCard = __commonJS({
|
|
1292
1292
|
}
|
1293
1293
|
});
|
1294
1294
|
|
1295
|
+
// src/icons/creditMemo.js
|
1296
|
+
var require_creditMemo = __commonJS({
|
1297
|
+
"src/icons/creditMemo.js"(exports) {
|
1298
|
+
"use strict";
|
1299
|
+
var data = {
|
1300
|
+
"body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M9.333 1.513v2.754c0 .373 0 .56.073.702a.667.667 0 00.291.292c.143.072.33.072.703.072h2.753m.18 1.326c0-.49 0-.734-.055-.964a2.01 2.01 0 00-.24-.578c-.123-.202-.296-.375-.642-.721L10.27 2.271c-.345-.346-.518-.52-.72-.643a2 2 0 00-.578-.24c-.23-.055-.475-.055-.964-.055H5.867c-1.12 0-1.68 0-2.108.218a2 2 0 00-.875.874c-.217.428-.217.988-.217 2.108v6.934c0 1.12 0 1.68.217 2.108a2 2 0 00.875.874c.427.218.987.218 2.108.218h2.14m.502-3.334H5.333M8 8.667H5.333"/><path d="M9.818 12.58c0 .686.556 1.24 1.24 1.24h1.152a1.329 1.329 0 100-2.656h-1.063a1.329 1.329 0 010-2.658h1.152c.684 0 1.24.555 1.24 1.24m-1.86-2.037v.797m0 5.315v.797"/></g>',
|
1301
|
+
"left": 0,
|
1302
|
+
"top": 0,
|
1303
|
+
"width": 16,
|
1304
|
+
"height": 16
|
1305
|
+
};
|
1306
|
+
exports.__esModule = true;
|
1307
|
+
exports.default = data;
|
1308
|
+
}
|
1309
|
+
});
|
1310
|
+
|
1295
1311
|
// src/icons/cross.js
|
1296
1312
|
var require_cross = __commonJS({
|
1297
1313
|
"src/icons/cross.js"(exports) {
|
@@ -4663,6 +4679,7 @@ var import_console = __toESM(require_console());
|
|
4663
4679
|
var import_container = __toESM(require_container());
|
4664
4680
|
var import_cpuChip = __toESM(require_cpuChip());
|
4665
4681
|
var import_creditCard = __toESM(require_creditCard());
|
4682
|
+
var import_creditMemo = __toESM(require_creditMemo());
|
4666
4683
|
var import_cross = __toESM(require_cross());
|
4667
4684
|
var import_currencyDollar = __toESM(require_currencyDollar());
|
4668
4685
|
var import_dashboard = __toESM(require_dashboard());
|
@@ -4919,9 +4936,7 @@ var createSimpleComponent = (Component, defaultProps, displayName) => {
|
|
4919
4936
|
|
4920
4937
|
// src/utils/useStyle.ts
|
4921
4938
|
import { useContext as useContext2 } from "react";
|
4922
|
-
import get2 from "lodash
|
4923
|
-
import isPlainObject2 from "lodash/isPlainObject";
|
4924
|
-
import isUndefined4 from "lodash/isUndefined";
|
4939
|
+
import { get as get2, isPlainObject as isPlainObject2, isUndefined as isUndefined4 } from "lodash-es";
|
4925
4940
|
|
4926
4941
|
// tailwind.theme.json
|
4927
4942
|
var tailwind_theme_default = {
|
@@ -5852,9 +5867,7 @@ import { I18nProvider } from "@react-aria/i18n";
|
|
5852
5867
|
import { ModalProvider } from "@react-aria/overlays";
|
5853
5868
|
|
5854
5869
|
// src/utils/breakpoints.ts
|
5855
|
-
import isPlainObject from "lodash
|
5856
|
-
import isUndefined from "lodash/isUndefined";
|
5857
|
-
import orderBy from "lodash/orderBy";
|
5870
|
+
import { isPlainObject, isUndefined, orderBy } from "lodash-es";
|
5858
5871
|
|
5859
5872
|
// src/tokens/tokens.json
|
5860
5873
|
var tokens_default = {
|
@@ -6654,8 +6667,7 @@ function selectBreakpointValue(value, matches) {
|
|
6654
6667
|
|
6655
6668
|
// src/utils/useWindowSize.ts
|
6656
6669
|
import { useEffect, useState } from "react";
|
6657
|
-
import debounce from "lodash
|
6658
|
-
import isUndefined2 from "lodash/isUndefined";
|
6670
|
+
import { debounce, isUndefined as isUndefined2 } from "lodash-es";
|
6659
6671
|
function useWindowSize() {
|
6660
6672
|
const getWindowSize = () => {
|
6661
6673
|
if (isUndefined2(globalThis.window)) {
|
@@ -6835,7 +6847,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6835
6847
|
const { delay = TOOLTIP_DELAY } = props;
|
6836
6848
|
const { isOpen, open, close } = useOverlayTriggerState(props);
|
6837
6849
|
const id = useMemo(() => `${++tooltipId}`, []);
|
6838
|
-
const closeTimeout = useRef(
|
6850
|
+
const closeTimeout = useRef();
|
6839
6851
|
const isUnmounted = useRef(false);
|
6840
6852
|
const ensureTooltipEntry = () => {
|
6841
6853
|
tooltips[id] = hideTooltip;
|
@@ -7164,7 +7176,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7164
7176
|
hasChildren && /* @__PURE__ */ React9.createElement("div", null, children)
|
7165
7177
|
);
|
7166
7178
|
} else {
|
7167
|
-
return
|
7179
|
+
return children;
|
7168
7180
|
}
|
7169
7181
|
};
|
7170
7182
|
const buttonComponent = /* @__PURE__ */ React9.createElement(
|
@@ -7268,18 +7280,7 @@ var Transition = ({ children }) => {
|
|
7268
7280
|
keys: (item) => item.key || "",
|
7269
7281
|
config: { tension: 125, friction: 20, precision: 0.1 }
|
7270
7282
|
});
|
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
|
-
)));
|
7283
|
+
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, transitions((style, item) => /* @__PURE__ */ React11.createElement(animated.div, { style }, /* @__PURE__ */ React11.createElement("div", { ref: (ref) => ref && refMap.set(item, ref) }, item))));
|
7283
7284
|
};
|
7284
7285
|
|
7285
7286
|
// src/atoms/Toast/Toast.tsx
|
@@ -7768,28 +7769,25 @@ var AccordionToggle = ({ panelId, onChange, ...rest }) => {
|
|
7768
7769
|
}
|
7769
7770
|
});
|
7770
7771
|
const { buttonProps } = useButton({ elementType: "div", onPress: handleClick }, ref);
|
7771
|
-
return (
|
7772
|
-
|
7773
|
-
|
7774
|
-
|
7775
|
-
{
|
7776
|
-
...
|
7777
|
-
|
7778
|
-
|
7779
|
-
|
7780
|
-
|
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")
|
7772
|
+
return /* @__PURE__ */ React20.createElement(
|
7773
|
+
animated3.div,
|
7774
|
+
{
|
7775
|
+
...rest,
|
7776
|
+
...{
|
7777
|
+
...buttonProps,
|
7778
|
+
onPointerDown: (e) => {
|
7779
|
+
e.preventDefault();
|
7780
|
+
handleClick();
|
7781
|
+
}
|
7790
7782
|
},
|
7791
|
-
|
7792
|
-
|
7783
|
+
ref,
|
7784
|
+
"aria-label": "accordion toggle",
|
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 })
|
7793
7791
|
);
|
7794
7792
|
};
|
7795
7793
|
var AccordionPanel = ({ children, panelId, ...rest }) => {
|
@@ -7805,20 +7803,17 @@ var AccordionPanel = ({ children, panelId, ...rest }) => {
|
|
7805
7803
|
duration: 150
|
7806
7804
|
}
|
7807
7805
|
});
|
7808
|
-
return (
|
7809
|
-
|
7810
|
-
|
7811
|
-
|
7812
|
-
|
7813
|
-
|
7814
|
-
|
7815
|
-
|
7816
|
-
|
7817
|
-
|
7818
|
-
|
7819
|
-
},
|
7820
|
-
/* @__PURE__ */ React20.createElement("div", { ref }, children)
|
7821
|
-
)
|
7806
|
+
return /* @__PURE__ */ React20.createElement(
|
7807
|
+
animated3.div,
|
7808
|
+
{
|
7809
|
+
role: "region",
|
7810
|
+
...rest,
|
7811
|
+
id: `${id}-content`,
|
7812
|
+
"aria-labelledby": `${id}-summary`,
|
7813
|
+
"aria-hidden": !isOpen ? "true" : void 0,
|
7814
|
+
style
|
7815
|
+
},
|
7816
|
+
/* @__PURE__ */ React20.createElement("div", { ref }, children)
|
7822
7817
|
);
|
7823
7818
|
};
|
7824
7819
|
var AccordionUnanimatedPanel = ({ children, panelId }) => {
|
@@ -8099,7 +8094,7 @@ var Skeleton = ({
|
|
8099
8094
|
|
8100
8095
|
// src/molecules/Avatar/Avatar.tsx
|
8101
8096
|
var AvatarStack = ({ images }) => /* @__PURE__ */ React24.createElement(Box, { display: "flex", className: tw("[&>*:not(:first-child)]:-ml-3") }, images.map(
|
8102
|
-
(image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image }) : /* @__PURE__ */ React24.createElement(Avatar.Skeleton, { key: index })
|
8097
|
+
(image, index) => image ? /* @__PURE__ */ React24.createElement(Avatar, { key: `${image}.${index}`, image, imageAlt: "" }) : /* @__PURE__ */ React24.createElement(Avatar.Skeleton, { key: index })
|
8103
8098
|
));
|
8104
8099
|
var Avatar = ({ image, imageAlt = "" }) => /* @__PURE__ */ React24.createElement("img", { src: image, className: classNames(tw("w-[32px] h-[32px]"), "Aquarium-Avatar"), alt: imageAlt });
|
8105
8100
|
var AvatarSkeleton = () => /* @__PURE__ */ React24.createElement(Skeleton, { height: 32, width: 32, className: tw("rounded-full") });
|
@@ -8572,7 +8567,7 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
|
|
8572
8567
|
}
|
8573
8568
|
);
|
8574
8569
|
var Title = (props) => /* @__PURE__ */ React32.createElement(Box.Flex, { component: "div", alignItems: "center", gap: "2", ...props });
|
8575
|
-
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React32.createElement("div", { ...rest, className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) });
|
8570
|
+
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React32.createElement("div", { ...rest, className: classNames(tw("flex flex-col flex-auto", { "gap-4": !dense }), className) });
|
8576
8571
|
var Actions = ({ className, dense, ...rest }) => /* @__PURE__ */ React32.createElement("div", { ...rest, className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) });
|
8577
8572
|
Card.Label = Label;
|
8578
8573
|
Card.Title = Title;
|
@@ -8725,7 +8720,7 @@ var Template = ({
|
|
8725
8720
|
};
|
8726
8721
|
|
8727
8722
|
// src/molecules/Card/CardInputWrapper.tsx
|
8728
|
-
var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ React37.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) :
|
8723
|
+
var CardInputWrapper = ({ input, children }) => input ? /* @__PURE__ */ React37.createElement(Template, { columns: ["1", "auto"], columnGap: "4", alignContent: "space-between" }, children, input) : children;
|
8729
8724
|
|
8730
8725
|
// src/molecules/Card/Compact.tsx
|
8731
8726
|
import React39, { useContext as useContext4, useRef as useRef3 } from "react";
|
@@ -8959,7 +8954,7 @@ var CardSkeleton = ({
|
|
8959
8954
|
Card2.Skeleton = CardSkeleton;
|
8960
8955
|
Card2.Compact = CompactCard;
|
8961
8956
|
Card2.Group = CardGroup;
|
8962
|
-
var CardImage = ({ image, imageAlt, imageHeight, fullSize = false }) => /* @__PURE__ */ React40.createElement(Card.ImageContainer, { fullSize }, image ? imageHeight ? /* @__PURE__ */ React40.createElement(Card.Image, { image, imageAlt, imageHeight }) : /* @__PURE__ */ React40.createElement(Card.Image, { image, imageAlt, fullSize }) : /* @__PURE__ */ React40.createElement(CardImage.Skeleton, { fullSize, imageHeight }));
|
8957
|
+
var CardImage = ({ image, imageAlt, imageHeight, fullSize = false }) => /* @__PURE__ */ React40.createElement(Card.ImageContainer, { fullSize }, typeof image === "string" ? imageHeight ? /* @__PURE__ */ React40.createElement(Card.Image, { image, imageAlt, imageHeight }) : /* @__PURE__ */ React40.createElement(Card.Image, { image, imageAlt, fullSize }) : image ?? /* @__PURE__ */ React40.createElement(CardImage.Skeleton, { fullSize, imageHeight }));
|
8963
8958
|
var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE__ */ React40.createElement(Skeleton, { height: imageHeight, width: "100%" }) : /* @__PURE__ */ React40.createElement(Skeleton, { height: fullSize ? 225 : 174, width: "100%" });
|
8964
8959
|
CardImage.Skeleton = CardImageSkeleton;
|
8965
8960
|
|
@@ -10539,7 +10534,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ R
|
|
10539
10534
|
"tr",
|
10540
10535
|
{
|
10541
10536
|
...rest,
|
10542
|
-
...{ inert: disabled },
|
10537
|
+
...{ inert: disabled ? "" : void 0 },
|
10543
10538
|
className: classNames(rowClassNames, className, {
|
10544
10539
|
"opacity-70": disabled
|
10545
10540
|
})
|
@@ -10699,7 +10694,7 @@ var Row = ({
|
|
10699
10694
|
{
|
10700
10695
|
...rest,
|
10701
10696
|
role: isGroup ? "rowgroup" : "row",
|
10702
|
-
...{ inert: disabled },
|
10697
|
+
...{ inert: disabled ? "" : void 0 },
|
10703
10698
|
className: classNames(tw("contents"), className, {
|
10704
10699
|
"[&>*]:border-b-transparent": noDivider,
|
10705
10700
|
"children:opacity-70": disabled,
|
@@ -10823,10 +10818,7 @@ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor })
|
|
10823
10818
|
}
|
10824
10819
|
};
|
10825
10820
|
}
|
10826
|
-
function useScrollProgress({
|
10827
|
-
containerRef,
|
10828
|
-
skip
|
10829
|
-
}) {
|
10821
|
+
function useScrollProgress({ containerRef, skip }) {
|
10830
10822
|
const [scrollState, setScrollState] = useState10(null);
|
10831
10823
|
const throttledSetScrollState = throttle(({ scrollX, scrollXProgress }) => {
|
10832
10824
|
setScrollState({ scrollX, scrollXProgress });
|
@@ -10881,7 +10873,7 @@ function useScrollStyles({
|
|
10881
10873
|
}
|
10882
10874
|
|
10883
10875
|
// src/utils/table/types.ts
|
10884
|
-
import isArray from "lodash
|
10876
|
+
import { isArray } from "lodash-es";
|
10885
10877
|
var areRowsGrouped = (rows) => {
|
10886
10878
|
return !isArray(rows);
|
10887
10879
|
};
|
@@ -10944,7 +10936,7 @@ var useTableSort = ({ column, direction, onSortChanged } = {}) => {
|
|
10944
10936
|
};
|
10945
10937
|
|
10946
10938
|
// src/utils/table/utils.ts
|
10947
|
-
import orderBy2 from "lodash
|
10939
|
+
import { orderBy as orderBy2 } from "lodash-es";
|
10948
10940
|
var sortRowsBy = (rows, sort) => {
|
10949
10941
|
if (!sort || !columnHasSort(sort.column)) {
|
10950
10942
|
return rows;
|
@@ -13368,9 +13360,9 @@ var PopoverTriggerWrapper = ({ children, ...rest }) => {
|
|
13368
13360
|
const trigger = React92.Children.only(children);
|
13369
13361
|
const { pressProps } = usePress2({ ...rest, ref });
|
13370
13362
|
return React92.cloneElement(trigger, {
|
13363
|
+
"ref": ref,
|
13371
13364
|
...mergeProps3(pressProps, trigger.props),
|
13372
|
-
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
|
13373
|
-
"ref": ref
|
13365
|
+
"aria-controls": rest["aria-controls"] ?? pressProps["aria-controls"]
|
13374
13366
|
});
|
13375
13367
|
};
|
13376
13368
|
|
@@ -14572,7 +14564,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
|
|
14572
14564
|
secondaryAction.text
|
14573
14565
|
), /* @__PURE__ */ React112.createElement(Popover3.Button, { kind: "ghost", key: primaryAction.text, dense: true, ...omit18(primaryAction, "text") }, primaryAction.text))));
|
14574
14566
|
}
|
14575
|
-
return child
|
14567
|
+
return child;
|
14576
14568
|
};
|
14577
14569
|
return /* @__PURE__ */ React112.createElement(Popover3, { type: "dialog", isOpen: open, placement, containFocus: true }, React112.Children.map(children, wrapPromptWithBody));
|
14578
14570
|
};
|
@@ -14977,8 +14969,7 @@ var Section4 = (props) => {
|
|
14977
14969
|
id: toggleId,
|
14978
14970
|
collapsible: _collapsible
|
14979
14971
|
},
|
14980
|
-
_collapsible &&
|
14981
|
-
/* @__PURE__ */ React121.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React121.createElement(Section3.Toggle, null)),
|
14972
|
+
_collapsible && /* @__PURE__ */ React121.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React121.createElement(Section3.Toggle, null)),
|
14982
14973
|
/* @__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 })),
|
14983
14974
|
subtitle && /* @__PURE__ */ React121.createElement(Section3.Subtitle, { className: tw("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ React121.createElement(LineClamp2, { lines: 1 }, subtitle))
|
14984
14975
|
), !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(
|
@@ -14990,8 +14981,7 @@ var Section4 = (props) => {
|
|
14990
14981
|
},
|
14991
14982
|
/* @__PURE__ */ React121.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React121.createElement(Button.Icon, { "aria-label": menuAriaLabel, icon: import_more6.default })),
|
14992
14983
|
menu
|
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 &&
|
14994
|
-
/* @__PURE__ */ React121.createElement(animated6.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ React121.createElement(
|
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 && /* @__PURE__ */ React121.createElement(animated6.div, { className: tw(`h-[1px]`), style: { backgroundColor: "var(--aquarium-border-color-muted)" } })), /* @__PURE__ */ React121.createElement(
|
14995
14985
|
animated6.div,
|
14996
14986
|
{
|
14997
14987
|
id: regionId,
|
@@ -15456,7 +15446,7 @@ var WithGroup = ({ level, children }) => level === 0 ? /* @__PURE__ */ React132.
|
|
15456
15446
|
var SelectItem = Select.Item;
|
15457
15447
|
|
15458
15448
|
// src/utils/positioner.ts
|
15459
|
-
import clamp4 from "lodash
|
15449
|
+
import { clamp as clamp4 } from "lodash-es";
|
15460
15450
|
var PositionerPlacement = /* @__PURE__ */ ((PositionerPlacement2) => {
|
15461
15451
|
PositionerPlacement2["top"] = "top";
|
15462
15452
|
PositionerPlacement2["left"] = "left";
|