@aivenio/aquarium 1.79.0 → 1.80.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 +29 -21
- package/dist/atoms.mjs +29 -21
- package/dist/src/atoms/Section/Section.js +3 -3
- package/dist/src/molecules/Combobox/Combobox.js +6 -1
- package/dist/src/molecules/DataList/DataList.d.ts +5 -1
- package/dist/src/molecules/DataList/DataList.js +60 -60
- package/dist/src/molecules/DataList/DataListComponents.d.ts +2 -1
- package/dist/src/molecules/DataList/DataListComponents.js +3 -3
- package/dist/src/molecules/DataList/DataListGroup.d.ts +1 -1
- package/dist/src/molecules/DataList/DataListGroup.js +3 -3
- package/dist/src/molecules/DataTable/DataTable.d.ts +5 -1
- package/dist/src/molecules/DataTable/DataTable.js +36 -36
- package/dist/src/molecules/MultiSelect/MultiSelect.js +6 -1
- package/dist/src/molecules/Section/Section.js +4 -6
- package/dist/src/molecules/Select/Select.js +6 -1
- package/dist/src/molecules/Tooltip/Tooltip.d.ts +5 -0
- package/dist/src/molecules/Tooltip/Tooltip.js +4 -2
- package/dist/src/utils/mocks/mockScrollIntoView.d.ts +1 -0
- package/dist/src/utils/mocks/mockScrollIntoView.js +11 -0
- package/dist/src/utils/setupTests.js +3 -1
- package/dist/styles.css +9 -0
- package/dist/system.cjs +71 -45
- package/dist/system.mjs +71 -45
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +3 -12
package/dist/system.cjs
CHANGED
@@ -7030,7 +7030,9 @@ function useTooltipTriggerState(props = {}) {
|
|
7030
7030
|
// src/molecules/Tooltip/Tooltip.tsx
|
7031
7031
|
var Tooltip = (_a) => {
|
7032
7032
|
var _b = _a, { inline = true, delay = 200 } = _b, props = __objRest(_b, ["inline", "delay"]);
|
7033
|
+
var _a2;
|
7033
7034
|
const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
|
7035
|
+
const display = (_a2 = props.display) != null ? _a2 : inline ? "inline-block" : "block";
|
7034
7036
|
const triggerRef = import_react11.default.useRef(null);
|
7035
7037
|
const overlayRef = import_react11.default.useRef(null);
|
7036
7038
|
const state = useTooltipTriggerState(__spreadValues({ isDisabled, delay }, props));
|
@@ -7047,41 +7049,41 @@ var Tooltip = (_a) => {
|
|
7047
7049
|
onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
|
7048
7050
|
});
|
7049
7051
|
const handleClick = (e) => {
|
7050
|
-
var
|
7051
|
-
(
|
7052
|
+
var _a3, _b2;
|
7053
|
+
(_a3 = props.onClick) == null ? void 0 : _a3.call(props, e);
|
7052
7054
|
(_b2 = triggerProps.onClick) == null ? void 0 : _b2.call(triggerProps, e);
|
7053
7055
|
};
|
7054
7056
|
const handleMouseDown = (e) => {
|
7055
|
-
var
|
7056
|
-
(
|
7057
|
+
var _a3, _b2;
|
7058
|
+
(_a3 = props.onMouseDown) == null ? void 0 : _a3.call(props, e);
|
7057
7059
|
(_b2 = triggerProps.onMouseDown) == null ? void 0 : _b2.call(triggerProps, e);
|
7058
7060
|
};
|
7059
7061
|
const handleMouseUp = (e) => {
|
7060
|
-
var
|
7061
|
-
(
|
7062
|
+
var _a3, _b2;
|
7063
|
+
(_a3 = props.onMouseUp) == null ? void 0 : _a3.call(props, e);
|
7062
7064
|
(_b2 = triggerProps.onMouseUp) == null ? void 0 : _b2.call(triggerProps, e);
|
7063
7065
|
};
|
7064
7066
|
const handlePointerDown = (e) => {
|
7065
|
-
var
|
7066
|
-
(
|
7067
|
+
var _a3, _b2;
|
7068
|
+
(_a3 = props.onPointerDown) == null ? void 0 : _a3.call(props, e);
|
7067
7069
|
(_b2 = triggerProps.onPointerDown) == null ? void 0 : _b2.call(triggerProps, e);
|
7068
7070
|
};
|
7069
7071
|
const handlePointerUp = (e) => {
|
7070
|
-
var
|
7071
|
-
(
|
7072
|
+
var _a3, _b2;
|
7073
|
+
(_a3 = props.onPointerUp) == null ? void 0 : _a3.call(props, e);
|
7072
7074
|
(_b2 = triggerProps.onPointerUp) == null ? void 0 : _b2.call(triggerProps, e);
|
7073
7075
|
};
|
7074
7076
|
return /* @__PURE__ */ import_react11.default.createElement("div", __spreadProps(__spreadValues({
|
7075
|
-
className:
|
7077
|
+
className: display
|
7076
7078
|
}, triggerProps), {
|
7077
7079
|
onFocus: (e) => {
|
7078
|
-
var
|
7079
|
-
(
|
7080
|
+
var _a3, _b2;
|
7081
|
+
(_a3 = triggerProps.onFocus) == null ? void 0 : _a3.call(triggerProps, e);
|
7080
7082
|
(_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
|
7081
7083
|
},
|
7082
7084
|
onBlur: (e) => {
|
7083
|
-
var
|
7084
|
-
(
|
7085
|
+
var _a3, _b2;
|
7086
|
+
(_a3 = triggerProps.onBlur) == null ? void 0 : _a3.call(triggerProps, e);
|
7085
7087
|
(_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
|
7086
7088
|
},
|
7087
7089
|
onClick: handleClick,
|
@@ -10428,7 +10430,8 @@ var ComboboxBase = (_a) => {
|
|
10428
10430
|
onInputValueChange: ({ selectedItem: selectedItem2, inputValue: inputValue2 }) => {
|
10429
10431
|
updateInputItems(inputValue2, selectedItem2);
|
10430
10432
|
onSearchChange == null ? void 0 : onSearchChange(inputValue2);
|
10431
|
-
}
|
10433
|
+
},
|
10434
|
+
scrollIntoView: (node, _menuNode) => node.scrollIntoView({ block: "nearest" })
|
10432
10435
|
});
|
10433
10436
|
const state = {
|
10434
10437
|
isOpen,
|
@@ -10894,7 +10897,8 @@ var _SelectBase = (props) => {
|
|
10894
10897
|
isItemDisabled: (item, index) => isOptionDisabled(item, index),
|
10895
10898
|
items,
|
10896
10899
|
itemToString,
|
10897
|
-
onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem)
|
10900
|
+
onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem),
|
10901
|
+
scrollIntoView: (node, _menuNode) => node.scrollIntoView({ block: "nearest" })
|
10898
10902
|
});
|
10899
10903
|
const state = {
|
10900
10904
|
isOpen,
|
@@ -12169,6 +12173,7 @@ var DataListRow = ({
|
|
12169
12173
|
menu,
|
12170
12174
|
active,
|
12171
12175
|
disabled,
|
12176
|
+
rowClassName,
|
12172
12177
|
renderFirstColumn,
|
12173
12178
|
additionalRowProps = () => ({}),
|
12174
12179
|
additionalColumnProps = () => ({}),
|
@@ -12183,7 +12188,9 @@ var DataListRow = ({
|
|
12183
12188
|
}, additionalRowProps(row, index, rows)), renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ import_react75.default.createElement(List, {
|
12184
12189
|
items: columns,
|
12185
12190
|
renderItem: (column, columnIndex) => {
|
12186
|
-
const cell2 = /* @__PURE__ */ import_react75.default.createElement(DataList.Cell, __spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)),
|
12191
|
+
const cell2 = /* @__PURE__ */ import_react75.default.createElement(DataList.Cell, __spreadProps(__spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)), {
|
12192
|
+
className: rowClassName == null ? void 0 : rowClassName(row, index, rows)
|
12193
|
+
}), /* @__PURE__ */ import_react75.default.createElement(DataListCell, {
|
12187
12194
|
column,
|
12188
12195
|
row,
|
12189
12196
|
index,
|
@@ -12292,6 +12299,7 @@ var DataListGroup = (_a) => {
|
|
12292
12299
|
const {
|
12293
12300
|
columns,
|
12294
12301
|
disabled,
|
12302
|
+
rowClassName,
|
12295
12303
|
expandedGroupIds,
|
12296
12304
|
getGroupRow,
|
12297
12305
|
renderGroupName = renderDefaultGroupName,
|
@@ -12343,6 +12351,7 @@ var DataListGroup = (_a) => {
|
|
12343
12351
|
menuAriaLabel
|
12344
12352
|
}),
|
12345
12353
|
disabled,
|
12354
|
+
rowClassName,
|
12346
12355
|
additionalRowProps: () => selectable ? {
|
12347
12356
|
"aria-selected": isChecked
|
12348
12357
|
} : {},
|
@@ -12522,6 +12531,7 @@ var DataList2 = (_a) => {
|
|
12522
12531
|
rowDetails,
|
12523
12532
|
group,
|
12524
12533
|
disabled,
|
12534
|
+
rowClassName,
|
12525
12535
|
getGroupRow,
|
12526
12536
|
renderGroupName,
|
12527
12537
|
renderEmptyGroup,
|
@@ -12551,6 +12561,7 @@ var DataList2 = (_a) => {
|
|
12551
12561
|
"rowDetails",
|
12552
12562
|
"group",
|
12553
12563
|
"disabled",
|
12564
|
+
"rowClassName",
|
12554
12565
|
"getGroupRow",
|
12555
12566
|
"renderGroupName",
|
12556
12567
|
"renderEmptyGroup",
|
@@ -12616,15 +12627,7 @@ var DataList2 = (_a) => {
|
|
12616
12627
|
)
|
12617
12628
|
);
|
12618
12629
|
const allRowsSelected = totalSelected >= allEnabledRowIds.length;
|
12619
|
-
|
12620
|
-
value: {
|
12621
|
-
rows: (0, import_isArray3.default)(rows) ? sortedRows : rows,
|
12622
|
-
selectedRows: selected
|
12623
|
-
}
|
12624
|
-
}, /* @__PURE__ */ import_react80.default.createElement("div", {
|
12625
|
-
className: "relative w-full overflow-x-auto",
|
12626
|
-
ref: containerRef
|
12627
|
-
}, /* @__PURE__ */ import_react80.default.createElement(Template, {
|
12630
|
+
const componentContent = /* @__PURE__ */ import_react80.default.createElement(Template, {
|
12628
12631
|
className: "Aquarium-DataList",
|
12629
12632
|
columns: templateColumns,
|
12630
12633
|
role: "table"
|
@@ -12681,6 +12684,7 @@ var DataList2 = (_a) => {
|
|
12681
12684
|
}, menuHeaderName)), toolbar), groups && /* @__PURE__ */ import_react80.default.createElement(DataListGroup, {
|
12682
12685
|
columns,
|
12683
12686
|
disabled,
|
12687
|
+
rowClassName,
|
12684
12688
|
getGroupRow,
|
12685
12689
|
renderGroupName,
|
12686
12690
|
renderEmptyGroup,
|
@@ -12726,6 +12730,7 @@ var DataList2 = (_a) => {
|
|
12726
12730
|
menuAriaLabel
|
12727
12731
|
}),
|
12728
12732
|
disabled,
|
12733
|
+
rowClassName,
|
12729
12734
|
additionalRowProps: (row2) => {
|
12730
12735
|
var _a4;
|
12731
12736
|
return selectable ? {
|
@@ -12759,7 +12764,17 @@ var DataList2 = (_a) => {
|
|
12759
12764
|
role: "cell"
|
12760
12765
|
}, details)));
|
12761
12766
|
}
|
12762
|
-
})))
|
12767
|
+
})));
|
12768
|
+
const wrappedContent = hasStickyColumns ? /* @__PURE__ */ import_react80.default.createElement("div", {
|
12769
|
+
className: "relative w-full h-full overflow-auto",
|
12770
|
+
ref: containerRef
|
12771
|
+
}, componentContent) : componentContent;
|
12772
|
+
return /* @__PURE__ */ import_react80.default.createElement(DataListContext.Provider, {
|
12773
|
+
value: {
|
12774
|
+
rows: (0, import_isArray3.default)(rows) ? sortedRows : rows,
|
12775
|
+
selectedRows: selected
|
12776
|
+
}
|
12777
|
+
}, wrappedContent);
|
12763
12778
|
};
|
12764
12779
|
DataList2.Skeleton = DataListSkeleton;
|
12765
12780
|
DataList2.Toolbar = DataListToolbar;
|
@@ -12829,6 +12844,7 @@ var DataTable = (_a) => {
|
|
12829
12844
|
onAction,
|
12830
12845
|
onMenuOpenChange,
|
12831
12846
|
disabled,
|
12847
|
+
rowClassName,
|
12832
12848
|
defaultSort,
|
12833
12849
|
onSortChanged,
|
12834
12850
|
ariaLabel,
|
@@ -12847,6 +12863,7 @@ var DataTable = (_a) => {
|
|
12847
12863
|
"onAction",
|
12848
12864
|
"onMenuOpenChange",
|
12849
12865
|
"disabled",
|
12866
|
+
"rowClassName",
|
12850
12867
|
"defaultSort",
|
12851
12868
|
"onSortChanged",
|
12852
12869
|
"ariaLabel",
|
@@ -12868,10 +12885,7 @@ var DataTable = (_a) => {
|
|
12868
12885
|
}, children))),
|
12869
12886
|
[amountOfColumns]
|
12870
12887
|
);
|
12871
|
-
|
12872
|
-
className: "relative w-full overflow-x-auto",
|
12873
|
-
ref: containerRef
|
12874
|
-
}, /* @__PURE__ */ import_react83.default.createElement(Table2, {
|
12888
|
+
const compponentContent = /* @__PURE__ */ import_react83.default.createElement(Table2, {
|
12875
12889
|
ariaLabel,
|
12876
12890
|
onNext,
|
12877
12891
|
onPrev,
|
@@ -12936,14 +12950,20 @@ var DataTable = (_a) => {
|
|
12936
12950
|
items: columns,
|
12937
12951
|
renderItem: (column) => {
|
12938
12952
|
return createAnimatedCell({
|
12939
|
-
cellElement: /* @__PURE__ */ import_react83.default.createElement(Table2.Cell, __spreadValues({}, cellProps(column)),
|
12953
|
+
cellElement: /* @__PURE__ */ import_react83.default.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
|
12954
|
+
className: rowClassName == null ? void 0 : rowClassName(row, index, rows)
|
12955
|
+
}), renderCell(column, row, index, sortedRows)),
|
12940
12956
|
stickyStyles,
|
12941
12957
|
stickyColumn: cellProps(column).stickyColumn
|
12942
12958
|
});
|
12943
12959
|
}
|
12944
12960
|
}), renderRowMenu(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
|
12945
12961
|
}
|
12946
|
-
})))
|
12962
|
+
})));
|
12963
|
+
return hasStickyColumns ? /* @__PURE__ */ import_react83.default.createElement("div", {
|
12964
|
+
className: "relative w-full overflow-x-auto",
|
12965
|
+
ref: containerRef
|
12966
|
+
}, compponentContent) : compponentContent;
|
12947
12967
|
};
|
12948
12968
|
var renderRowMenu = (row, index, {
|
12949
12969
|
menu,
|
@@ -15055,7 +15075,8 @@ var MultiSelectBase = (_a) => {
|
|
15055
15075
|
break;
|
15056
15076
|
}
|
15057
15077
|
}
|
15058
|
-
}
|
15078
|
+
},
|
15079
|
+
scrollIntoView: (node, _menuNode) => node.scrollIntoView({ block: "nearest" })
|
15059
15080
|
});
|
15060
15081
|
const state = {
|
15061
15082
|
isOpen,
|
@@ -15922,12 +15943,18 @@ var TagLabel = (_a) => {
|
|
15922
15943
|
var import_react128 = __toESM(require("react"));
|
15923
15944
|
var import_caretUp2 = __toESM(require_caretUp());
|
15924
15945
|
var Section3 = (_a) => {
|
15925
|
-
var _b = _a, {
|
15926
|
-
|
15927
|
-
|
15928
|
-
|
15929
|
-
|
15930
|
-
|
15946
|
+
var _b = _a, {
|
15947
|
+
children,
|
15948
|
+
className
|
15949
|
+
} = _b, rest = __objRest(_b, [
|
15950
|
+
"children",
|
15951
|
+
"className"
|
15952
|
+
]);
|
15953
|
+
return /* @__PURE__ */ import_react128.default.createElement(Box, __spreadProps(__spreadValues({
|
15954
|
+
component: "section"
|
15955
|
+
}, rest), {
|
15956
|
+
className: classNames(tw("border border-muted"), className)
|
15957
|
+
}), children);
|
15931
15958
|
};
|
15932
15959
|
Section3.Header = (_a) => {
|
15933
15960
|
var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
|
@@ -16023,12 +16050,11 @@ var Section4 = (props) => {
|
|
16023
16050
|
height: height !== null ? targetHeight : void 0,
|
16024
16051
|
opacity: isCollapsed ? 0 : 1,
|
16025
16052
|
transform: `rotate(${isCollapsed ? 90 : 180}deg)`,
|
16026
|
-
backgroundColor: isCollapsed ? tokens_default.backgroundColor.muted : tokens_default.backgroundColor.default,
|
16027
16053
|
config: {
|
16028
16054
|
duration: 150
|
16029
16055
|
},
|
16030
16056
|
immediate: !_collapsible
|
16031
|
-
}), { transform
|
16057
|
+
}), { transform } = _f, spring = __objRest(_f, ["transform"]);
|
16032
16058
|
const toggleId = (0, import_utils39.useId)();
|
16033
16059
|
const regionId = (0, import_utils39.useId)();
|
16034
16060
|
const titleId = (0, import_utils39.useId)();
|
@@ -16039,7 +16065,7 @@ var Section4 = (props) => {
|
|
16039
16065
|
);
|
16040
16066
|
return /* @__PURE__ */ import_react129.default.createElement(Section3, {
|
16041
16067
|
"aria-label": title,
|
16042
|
-
className: "Aquarium-Section"
|
16068
|
+
className: _collapsible ? "Aquarium-Collapsible-Section" : "Aquarium-Section"
|
16043
16069
|
}, title && /* @__PURE__ */ import_react129.default.createElement(import_react129.default.Fragment, null, /* @__PURE__ */ import_react129.default.createElement(Section3.Header, {
|
16044
16070
|
expanded: _collapsible && !isCollapsed
|
16045
16071
|
}, /* @__PURE__ */ import_react129.default.createElement(Section3.TitleContainer, __spreadProps(__spreadValues({}, _collapsible ? __spreadProps(__spreadValues({}, buttonProps), {
|
@@ -16076,7 +16102,7 @@ var Section4 = (props) => {
|
|
16076
16102
|
"aria-labelledby": titleId
|
16077
16103
|
}, props.select)))), !hasTabs && !isCollapsed && /* @__PURE__ */ import_react129.default.createElement(import_web6.animated.div, {
|
16078
16104
|
className: tw(`h-[1px]`),
|
16079
|
-
style: { backgroundColor }
|
16105
|
+
style: { backgroundColor: "var(--aquarium-border-color-muted)" }
|
16080
16106
|
})), /* @__PURE__ */ import_react129.default.createElement(import_web6.animated.div, {
|
16081
16107
|
id: regionId,
|
16082
16108
|
"aria-hidden": _collapsible ? isCollapsed ? true : void 0 : void 0,
|
package/dist/system.mjs
CHANGED
@@ -6870,7 +6870,9 @@ function useTooltipTriggerState(props = {}) {
|
|
6870
6870
|
// src/molecules/Tooltip/Tooltip.tsx
|
6871
6871
|
var Tooltip = (_a) => {
|
6872
6872
|
var _b = _a, { inline = true, delay = 200 } = _b, props = __objRest(_b, ["inline", "delay"]);
|
6873
|
+
var _a2;
|
6873
6874
|
const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
|
6875
|
+
const display = (_a2 = props.display) != null ? _a2 : inline ? "inline-block" : "block";
|
6874
6876
|
const triggerRef = React8.useRef(null);
|
6875
6877
|
const overlayRef = React8.useRef(null);
|
6876
6878
|
const state = useTooltipTriggerState(__spreadValues({ isDisabled, delay }, props));
|
@@ -6887,41 +6889,41 @@ var Tooltip = (_a) => {
|
|
6887
6889
|
onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
|
6888
6890
|
});
|
6889
6891
|
const handleClick = (e) => {
|
6890
|
-
var
|
6891
|
-
(
|
6892
|
+
var _a3, _b2;
|
6893
|
+
(_a3 = props.onClick) == null ? void 0 : _a3.call(props, e);
|
6892
6894
|
(_b2 = triggerProps.onClick) == null ? void 0 : _b2.call(triggerProps, e);
|
6893
6895
|
};
|
6894
6896
|
const handleMouseDown = (e) => {
|
6895
|
-
var
|
6896
|
-
(
|
6897
|
+
var _a3, _b2;
|
6898
|
+
(_a3 = props.onMouseDown) == null ? void 0 : _a3.call(props, e);
|
6897
6899
|
(_b2 = triggerProps.onMouseDown) == null ? void 0 : _b2.call(triggerProps, e);
|
6898
6900
|
};
|
6899
6901
|
const handleMouseUp = (e) => {
|
6900
|
-
var
|
6901
|
-
(
|
6902
|
+
var _a3, _b2;
|
6903
|
+
(_a3 = props.onMouseUp) == null ? void 0 : _a3.call(props, e);
|
6902
6904
|
(_b2 = triggerProps.onMouseUp) == null ? void 0 : _b2.call(triggerProps, e);
|
6903
6905
|
};
|
6904
6906
|
const handlePointerDown = (e) => {
|
6905
|
-
var
|
6906
|
-
(
|
6907
|
+
var _a3, _b2;
|
6908
|
+
(_a3 = props.onPointerDown) == null ? void 0 : _a3.call(props, e);
|
6907
6909
|
(_b2 = triggerProps.onPointerDown) == null ? void 0 : _b2.call(triggerProps, e);
|
6908
6910
|
};
|
6909
6911
|
const handlePointerUp = (e) => {
|
6910
|
-
var
|
6911
|
-
(
|
6912
|
+
var _a3, _b2;
|
6913
|
+
(_a3 = props.onPointerUp) == null ? void 0 : _a3.call(props, e);
|
6912
6914
|
(_b2 = triggerProps.onPointerUp) == null ? void 0 : _b2.call(triggerProps, e);
|
6913
6915
|
};
|
6914
6916
|
return /* @__PURE__ */ React8.createElement("div", __spreadProps(__spreadValues({
|
6915
|
-
className:
|
6917
|
+
className: display
|
6916
6918
|
}, triggerProps), {
|
6917
6919
|
onFocus: (e) => {
|
6918
|
-
var
|
6919
|
-
(
|
6920
|
+
var _a3, _b2;
|
6921
|
+
(_a3 = triggerProps.onFocus) == null ? void 0 : _a3.call(triggerProps, e);
|
6920
6922
|
(_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
|
6921
6923
|
},
|
6922
6924
|
onBlur: (e) => {
|
6923
|
-
var
|
6924
|
-
(
|
6925
|
+
var _a3, _b2;
|
6926
|
+
(_a3 = triggerProps.onBlur) == null ? void 0 : _a3.call(triggerProps, e);
|
6925
6927
|
(_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
|
6926
6928
|
},
|
6927
6929
|
onClick: handleClick,
|
@@ -10268,7 +10270,8 @@ var ComboboxBase = (_a) => {
|
|
10268
10270
|
onInputValueChange: ({ selectedItem: selectedItem2, inputValue: inputValue2 }) => {
|
10269
10271
|
updateInputItems(inputValue2, selectedItem2);
|
10270
10272
|
onSearchChange == null ? void 0 : onSearchChange(inputValue2);
|
10271
|
-
}
|
10273
|
+
},
|
10274
|
+
scrollIntoView: (node, _menuNode) => node.scrollIntoView({ block: "nearest" })
|
10272
10275
|
});
|
10273
10276
|
const state = {
|
10274
10277
|
isOpen,
|
@@ -10734,7 +10737,8 @@ var _SelectBase = (props) => {
|
|
10734
10737
|
isItemDisabled: (item, index) => isOptionDisabled(item, index),
|
10735
10738
|
items,
|
10736
10739
|
itemToString,
|
10737
|
-
onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem)
|
10740
|
+
onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem),
|
10741
|
+
scrollIntoView: (node, _menuNode) => node.scrollIntoView({ block: "nearest" })
|
10738
10742
|
});
|
10739
10743
|
const state = {
|
10740
10744
|
isOpen,
|
@@ -12009,6 +12013,7 @@ var DataListRow = ({
|
|
12009
12013
|
menu,
|
12010
12014
|
active,
|
12011
12015
|
disabled,
|
12016
|
+
rowClassName,
|
12012
12017
|
renderFirstColumn,
|
12013
12018
|
additionalRowProps = () => ({}),
|
12014
12019
|
additionalColumnProps = () => ({}),
|
@@ -12023,7 +12028,9 @@ var DataListRow = ({
|
|
12023
12028
|
}, additionalRowProps(row, index, rows)), renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React68.createElement(List, {
|
12024
12029
|
items: columns,
|
12025
12030
|
renderItem: (column, columnIndex) => {
|
12026
|
-
const cell2 = /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)),
|
12031
|
+
const cell2 = /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadProps(__spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)), {
|
12032
|
+
className: rowClassName == null ? void 0 : rowClassName(row, index, rows)
|
12033
|
+
}), /* @__PURE__ */ React68.createElement(DataListCell, {
|
12027
12034
|
column,
|
12028
12035
|
row,
|
12029
12036
|
index,
|
@@ -12132,6 +12139,7 @@ var DataListGroup = (_a) => {
|
|
12132
12139
|
const {
|
12133
12140
|
columns,
|
12134
12141
|
disabled,
|
12142
|
+
rowClassName,
|
12135
12143
|
expandedGroupIds,
|
12136
12144
|
getGroupRow,
|
12137
12145
|
renderGroupName = renderDefaultGroupName,
|
@@ -12183,6 +12191,7 @@ var DataListGroup = (_a) => {
|
|
12183
12191
|
menuAriaLabel
|
12184
12192
|
}),
|
12185
12193
|
disabled,
|
12194
|
+
rowClassName,
|
12186
12195
|
additionalRowProps: () => selectable ? {
|
12187
12196
|
"aria-selected": isChecked
|
12188
12197
|
} : {},
|
@@ -12362,6 +12371,7 @@ var DataList2 = (_a) => {
|
|
12362
12371
|
rowDetails,
|
12363
12372
|
group,
|
12364
12373
|
disabled,
|
12374
|
+
rowClassName,
|
12365
12375
|
getGroupRow,
|
12366
12376
|
renderGroupName,
|
12367
12377
|
renderEmptyGroup,
|
@@ -12391,6 +12401,7 @@ var DataList2 = (_a) => {
|
|
12391
12401
|
"rowDetails",
|
12392
12402
|
"group",
|
12393
12403
|
"disabled",
|
12404
|
+
"rowClassName",
|
12394
12405
|
"getGroupRow",
|
12395
12406
|
"renderGroupName",
|
12396
12407
|
"renderEmptyGroup",
|
@@ -12456,15 +12467,7 @@ var DataList2 = (_a) => {
|
|
12456
12467
|
)
|
12457
12468
|
);
|
12458
12469
|
const allRowsSelected = totalSelected >= allEnabledRowIds.length;
|
12459
|
-
|
12460
|
-
value: {
|
12461
|
-
rows: isArray3(rows) ? sortedRows : rows,
|
12462
|
-
selectedRows: selected
|
12463
|
-
}
|
12464
|
-
}, /* @__PURE__ */ React72.createElement("div", {
|
12465
|
-
className: "relative w-full overflow-x-auto",
|
12466
|
-
ref: containerRef
|
12467
|
-
}, /* @__PURE__ */ React72.createElement(Template, {
|
12470
|
+
const componentContent = /* @__PURE__ */ React72.createElement(Template, {
|
12468
12471
|
className: "Aquarium-DataList",
|
12469
12472
|
columns: templateColumns,
|
12470
12473
|
role: "table"
|
@@ -12521,6 +12524,7 @@ var DataList2 = (_a) => {
|
|
12521
12524
|
}, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React72.createElement(DataListGroup, {
|
12522
12525
|
columns,
|
12523
12526
|
disabled,
|
12527
|
+
rowClassName,
|
12524
12528
|
getGroupRow,
|
12525
12529
|
renderGroupName,
|
12526
12530
|
renderEmptyGroup,
|
@@ -12566,6 +12570,7 @@ var DataList2 = (_a) => {
|
|
12566
12570
|
menuAriaLabel
|
12567
12571
|
}),
|
12568
12572
|
disabled,
|
12573
|
+
rowClassName,
|
12569
12574
|
additionalRowProps: (row2) => {
|
12570
12575
|
var _a4;
|
12571
12576
|
return selectable ? {
|
@@ -12599,7 +12604,17 @@ var DataList2 = (_a) => {
|
|
12599
12604
|
role: "cell"
|
12600
12605
|
}, details)));
|
12601
12606
|
}
|
12602
|
-
})))
|
12607
|
+
})));
|
12608
|
+
const wrappedContent = hasStickyColumns ? /* @__PURE__ */ React72.createElement("div", {
|
12609
|
+
className: "relative w-full h-full overflow-auto",
|
12610
|
+
ref: containerRef
|
12611
|
+
}, componentContent) : componentContent;
|
12612
|
+
return /* @__PURE__ */ React72.createElement(DataListContext.Provider, {
|
12613
|
+
value: {
|
12614
|
+
rows: isArray3(rows) ? sortedRows : rows,
|
12615
|
+
selectedRows: selected
|
12616
|
+
}
|
12617
|
+
}, wrappedContent);
|
12603
12618
|
};
|
12604
12619
|
DataList2.Skeleton = DataListSkeleton;
|
12605
12620
|
DataList2.Toolbar = DataListToolbar;
|
@@ -12669,6 +12684,7 @@ var DataTable = (_a) => {
|
|
12669
12684
|
onAction,
|
12670
12685
|
onMenuOpenChange,
|
12671
12686
|
disabled,
|
12687
|
+
rowClassName,
|
12672
12688
|
defaultSort,
|
12673
12689
|
onSortChanged,
|
12674
12690
|
ariaLabel,
|
@@ -12687,6 +12703,7 @@ var DataTable = (_a) => {
|
|
12687
12703
|
"onAction",
|
12688
12704
|
"onMenuOpenChange",
|
12689
12705
|
"disabled",
|
12706
|
+
"rowClassName",
|
12690
12707
|
"defaultSort",
|
12691
12708
|
"onSortChanged",
|
12692
12709
|
"ariaLabel",
|
@@ -12708,10 +12725,7 @@ var DataTable = (_a) => {
|
|
12708
12725
|
}, children))),
|
12709
12726
|
[amountOfColumns]
|
12710
12727
|
);
|
12711
|
-
|
12712
|
-
className: "relative w-full overflow-x-auto",
|
12713
|
-
ref: containerRef
|
12714
|
-
}, /* @__PURE__ */ React75.createElement(Table2, {
|
12728
|
+
const compponentContent = /* @__PURE__ */ React75.createElement(Table2, {
|
12715
12729
|
ariaLabel,
|
12716
12730
|
onNext,
|
12717
12731
|
onPrev,
|
@@ -12776,14 +12790,20 @@ var DataTable = (_a) => {
|
|
12776
12790
|
items: columns,
|
12777
12791
|
renderItem: (column) => {
|
12778
12792
|
return createAnimatedCell({
|
12779
|
-
cellElement: /* @__PURE__ */ React75.createElement(Table2.Cell, __spreadValues({}, cellProps(column)),
|
12793
|
+
cellElement: /* @__PURE__ */ React75.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
|
12794
|
+
className: rowClassName == null ? void 0 : rowClassName(row, index, rows)
|
12795
|
+
}), renderCell(column, row, index, sortedRows)),
|
12780
12796
|
stickyStyles,
|
12781
12797
|
stickyColumn: cellProps(column).stickyColumn
|
12782
12798
|
});
|
12783
12799
|
}
|
12784
12800
|
}), renderRowMenu(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
|
12785
12801
|
}
|
12786
|
-
})))
|
12802
|
+
})));
|
12803
|
+
return hasStickyColumns ? /* @__PURE__ */ React75.createElement("div", {
|
12804
|
+
className: "relative w-full overflow-x-auto",
|
12805
|
+
ref: containerRef
|
12806
|
+
}, compponentContent) : compponentContent;
|
12787
12807
|
};
|
12788
12808
|
var renderRowMenu = (row, index, {
|
12789
12809
|
menu,
|
@@ -14921,7 +14941,8 @@ var MultiSelectBase = (_a) => {
|
|
14921
14941
|
break;
|
14922
14942
|
}
|
14923
14943
|
}
|
14924
|
-
}
|
14944
|
+
},
|
14945
|
+
scrollIntoView: (node, _menuNode) => node.scrollIntoView({ block: "nearest" })
|
14925
14946
|
});
|
14926
14947
|
const state = {
|
14927
14948
|
isOpen,
|
@@ -15788,12 +15809,18 @@ var TagLabel = (_a) => {
|
|
15788
15809
|
import React119 from "react";
|
15789
15810
|
var import_caretUp2 = __toESM(require_caretUp());
|
15790
15811
|
var Section3 = (_a) => {
|
15791
|
-
var _b = _a, {
|
15792
|
-
|
15793
|
-
|
15794
|
-
|
15795
|
-
|
15796
|
-
|
15812
|
+
var _b = _a, {
|
15813
|
+
children,
|
15814
|
+
className
|
15815
|
+
} = _b, rest = __objRest(_b, [
|
15816
|
+
"children",
|
15817
|
+
"className"
|
15818
|
+
]);
|
15819
|
+
return /* @__PURE__ */ React119.createElement(Box, __spreadProps(__spreadValues({
|
15820
|
+
component: "section"
|
15821
|
+
}, rest), {
|
15822
|
+
className: classNames(tw("border border-muted"), className)
|
15823
|
+
}), children);
|
15797
15824
|
};
|
15798
15825
|
Section3.Header = (_a) => {
|
15799
15826
|
var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
|
@@ -15889,12 +15916,11 @@ var Section4 = (props) => {
|
|
15889
15916
|
height: height !== null ? targetHeight : void 0,
|
15890
15917
|
opacity: isCollapsed ? 0 : 1,
|
15891
15918
|
transform: `rotate(${isCollapsed ? 90 : 180}deg)`,
|
15892
|
-
backgroundColor: isCollapsed ? tokens_default.backgroundColor.muted : tokens_default.backgroundColor.default,
|
15893
15919
|
config: {
|
15894
15920
|
duration: 150
|
15895
15921
|
},
|
15896
15922
|
immediate: !_collapsible
|
15897
|
-
}), { transform
|
15923
|
+
}), { transform } = _f, spring = __objRest(_f, ["transform"]);
|
15898
15924
|
const toggleId = useId19();
|
15899
15925
|
const regionId = useId19();
|
15900
15926
|
const titleId = useId19();
|
@@ -15905,7 +15931,7 @@ var Section4 = (props) => {
|
|
15905
15931
|
);
|
15906
15932
|
return /* @__PURE__ */ React120.createElement(Section3, {
|
15907
15933
|
"aria-label": title,
|
15908
|
-
className: "Aquarium-Section"
|
15934
|
+
className: _collapsible ? "Aquarium-Collapsible-Section" : "Aquarium-Section"
|
15909
15935
|
}, title && /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(Section3.Header, {
|
15910
15936
|
expanded: _collapsible && !isCollapsed
|
15911
15937
|
}, /* @__PURE__ */ React120.createElement(Section3.TitleContainer, __spreadProps(__spreadValues({}, _collapsible ? __spreadProps(__spreadValues({}, buttonProps), {
|
@@ -15942,7 +15968,7 @@ var Section4 = (props) => {
|
|
15942
15968
|
"aria-labelledby": titleId
|
15943
15969
|
}, props.select)))), !hasTabs && !isCollapsed && /* @__PURE__ */ React120.createElement(animated6.div, {
|
15944
15970
|
className: tw(`h-[1px]`),
|
15945
|
-
style: { backgroundColor }
|
15971
|
+
style: { backgroundColor: "var(--aquarium-border-color-muted)" }
|
15946
15972
|
})), /* @__PURE__ */ React120.createElement(animated6.div, {
|
15947
15973
|
id: regionId,
|
15948
15974
|
"aria-hidden": _collapsible ? isCollapsed ? true : void 0 : void 0,
|