@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/atoms.cjs
CHANGED
@@ -1262,6 +1262,22 @@ var require_creditCard = __commonJS({
|
|
1262
1262
|
}
|
1263
1263
|
});
|
1264
1264
|
|
1265
|
+
// src/icons/creditMemo.js
|
1266
|
+
var require_creditMemo = __commonJS({
|
1267
|
+
"src/icons/creditMemo.js"(exports2) {
|
1268
|
+
"use strict";
|
1269
|
+
var data = {
|
1270
|
+
"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>',
|
1271
|
+
"left": 0,
|
1272
|
+
"top": 0,
|
1273
|
+
"width": 16,
|
1274
|
+
"height": 16
|
1275
|
+
};
|
1276
|
+
exports2.__esModule = true;
|
1277
|
+
exports2.default = data;
|
1278
|
+
}
|
1279
|
+
});
|
1280
|
+
|
1265
1281
|
// src/icons/cross.js
|
1266
1282
|
var require_cross = __commonJS({
|
1267
1283
|
"src/icons/cross.js"(exports2) {
|
@@ -4268,6 +4284,7 @@ __export(atoms_exports, {
|
|
4268
4284
|
Table: () => Table,
|
4269
4285
|
Toast: () => Toast,
|
4270
4286
|
Typography: () => Typography,
|
4287
|
+
VisuallyHidden: () => VisuallyHidden,
|
4271
4288
|
cellClassNames: () => cellClassNames,
|
4272
4289
|
getAlignClassNames: () => getAlignClassNames,
|
4273
4290
|
getBodyCellClassNames: () => getBodyCellClassNames,
|
@@ -4289,20 +4306,18 @@ var import_utils2 = require("@react-aria/utils");
|
|
4289
4306
|
|
4290
4307
|
// src/molecules/Button/Button.tsx
|
4291
4308
|
var import_react18 = __toESM(require("react"));
|
4292
|
-
var
|
4309
|
+
var import_lodash_es7 = require("lodash-es");
|
4293
4310
|
|
4294
4311
|
// src/molecules/Flexbox/Flexbox.tsx
|
4295
4312
|
var import_react13 = __toESM(require("react"));
|
4296
4313
|
|
4297
4314
|
// src/molecules/Tailwindify/Tailwindify.tsx
|
4298
4315
|
var import_react12 = __toESM(require("react"));
|
4299
|
-
var
|
4316
|
+
var import_lodash_es6 = require("lodash-es");
|
4300
4317
|
|
4301
4318
|
// src/utils/useStyle.ts
|
4302
4319
|
var import_react11 = require("react");
|
4303
|
-
var
|
4304
|
-
var import_isPlainObject2 = __toESM(require("lodash/isPlainObject"));
|
4305
|
-
var import_isUndefined3 = __toESM(require("lodash/isUndefined"));
|
4320
|
+
var import_lodash_es5 = require("lodash-es");
|
4306
4321
|
|
4307
4322
|
// tailwind.theme.json
|
4308
4323
|
var tailwind_theme_default = {
|
@@ -5233,9 +5248,7 @@ var import_i18n = require("@react-aria/i18n");
|
|
5233
5248
|
var import_overlays = require("@react-aria/overlays");
|
5234
5249
|
|
5235
5250
|
// src/utils/breakpoints.ts
|
5236
|
-
var
|
5237
|
-
var import_isUndefined = __toESM(require("lodash/isUndefined"));
|
5238
|
-
var import_orderBy = __toESM(require("lodash/orderBy"));
|
5251
|
+
var import_lodash_es = require("lodash-es");
|
5239
5252
|
|
5240
5253
|
// src/tokens/tokens.json
|
5241
5254
|
var tokens_default = {
|
@@ -5990,7 +6003,7 @@ var tokens_default = {
|
|
5990
6003
|
// src/utils/breakpoints.ts
|
5991
6004
|
var { screens: allBreakpoints } = tokens_default;
|
5992
6005
|
var SCREEN_TO_PX_MAPPING = getPxMapping(allBreakpoints);
|
5993
|
-
var BREAKPOINT_PRIORITY = (0,
|
6006
|
+
var BREAKPOINT_PRIORITY = (0, import_lodash_es.orderBy)(
|
5994
6007
|
Object.keys(SCREEN_TO_PX_MAPPING).map((key) => {
|
5995
6008
|
return {
|
5996
6009
|
breakpoint: key,
|
@@ -6015,7 +6028,7 @@ function getPxMapping(breakpoints2) {
|
|
6015
6028
|
function getMatches(windowSize) {
|
6016
6029
|
const mapping = getPxMapping(allBreakpoints);
|
6017
6030
|
return Object.keys(allBreakpoints).reduce((acc, key) => {
|
6018
|
-
const isMatch = !(0,
|
6031
|
+
const isMatch = !(0, import_lodash_es.isUndefined)(windowSize) && windowSize.width > 0 ? windowSize.width > mapping[key] : key === "default" ? true : false;
|
6019
6032
|
return {
|
6020
6033
|
...acc,
|
6021
6034
|
[key]: isMatch
|
@@ -6024,10 +6037,10 @@ function getMatches(windowSize) {
|
|
6024
6037
|
}
|
6025
6038
|
function selectBreakpointValue(value, matches) {
|
6026
6039
|
const bp = BREAKPOINT_PRIORITY.find((bp2) => {
|
6027
|
-
const pickBreakpoint = (0,
|
6028
|
-
return !(0,
|
6040
|
+
const pickBreakpoint = (0, import_lodash_es.isPlainObject)(value) && bp2.breakpoint in value ? bp2.breakpoint : void 0;
|
6041
|
+
return !(0, import_lodash_es.isUndefined)(pickBreakpoint) && matches[bp2.breakpoint];
|
6029
6042
|
});
|
6030
|
-
if (!(0,
|
6043
|
+
if (!(0, import_lodash_es.isUndefined)(bp)) {
|
6031
6044
|
return value[bp.breakpoint];
|
6032
6045
|
}
|
6033
6046
|
return value;
|
@@ -6035,12 +6048,11 @@ function selectBreakpointValue(value, matches) {
|
|
6035
6048
|
|
6036
6049
|
// src/utils/useWindowSize.ts
|
6037
6050
|
var import_react = require("react");
|
6038
|
-
var
|
6039
|
-
var import_isUndefined2 = __toESM(require("lodash/isUndefined"));
|
6051
|
+
var import_lodash_es2 = require("lodash-es");
|
6040
6052
|
|
6041
6053
|
// src/molecules/Toast/Toast.tsx
|
6042
6054
|
var import_react9 = __toESM(require("react"));
|
6043
|
-
var
|
6055
|
+
var import_lodash_es4 = require("lodash-es");
|
6044
6056
|
|
6045
6057
|
// src/molecules/Spacing/Spacing.tsx
|
6046
6058
|
var import_react5 = __toESM(require("react"));
|
@@ -6048,7 +6060,7 @@ var import_react5 = __toESM(require("react"));
|
|
6048
6060
|
// src/molecules/Box/Box.tsx
|
6049
6061
|
var import_react4 = __toESM(require("react"));
|
6050
6062
|
var import_classnames2 = __toESM(require("classnames"));
|
6051
|
-
var
|
6063
|
+
var import_lodash_es3 = require("lodash-es");
|
6052
6064
|
|
6053
6065
|
// src/molecules/Element/Element.tsx
|
6054
6066
|
var import_react2 = __toESM(require("react"));
|
@@ -6158,15 +6170,15 @@ var Box = ({
|
|
6158
6170
|
alignSelf,
|
6159
6171
|
flexDirection,
|
6160
6172
|
flexWrap,
|
6161
|
-
paddingTop: (0,
|
6162
|
-
paddingRight: (0,
|
6163
|
-
paddingBottom: (0,
|
6164
|
-
paddingLeft: (0,
|
6173
|
+
paddingTop: (0, import_lodash_es3.isUndefined)(paddingY) ? paddingTop : paddingY,
|
6174
|
+
paddingRight: (0, import_lodash_es3.isUndefined)(paddingX) ? paddingRight : paddingX,
|
6175
|
+
paddingBottom: (0, import_lodash_es3.isUndefined)(paddingY) ? paddingBottom : paddingY,
|
6176
|
+
paddingLeft: (0, import_lodash_es3.isUndefined)(paddingX) ? paddingLeft : paddingX,
|
6165
6177
|
margin,
|
6166
|
-
marginTop: (0,
|
6167
|
-
marginRight: (0,
|
6168
|
-
marginBottom: (0,
|
6169
|
-
marginLeft: (0,
|
6178
|
+
marginTop: (0, import_lodash_es3.isUndefined)(marginY) ? marginTop : marginY,
|
6179
|
+
marginRight: (0, import_lodash_es3.isUndefined)(marginX) ? marginRight : marginX,
|
6180
|
+
marginBottom: (0, import_lodash_es3.isUndefined)(marginY) ? marginBottom : marginY,
|
6181
|
+
marginLeft: (0, import_lodash_es3.isUndefined)(marginX) ? marginLeft : marginX,
|
6170
6182
|
width,
|
6171
6183
|
height,
|
6172
6184
|
maxWidth,
|
@@ -6320,6 +6332,7 @@ var import_console = __toESM(require_console());
|
|
6320
6332
|
var import_container = __toESM(require_container());
|
6321
6333
|
var import_cpuChip = __toESM(require_cpuChip());
|
6322
6334
|
var import_creditCard = __toESM(require_creditCard());
|
6335
|
+
var import_creditMemo = __toESM(require_creditMemo());
|
6323
6336
|
var import_cross = __toESM(require_cross());
|
6324
6337
|
var import_currencyDollar = __toESM(require_currencyDollar());
|
6325
6338
|
var import_dashboard = __toESM(require_dashboard());
|
@@ -6535,8 +6548,8 @@ var THEME_MAPPING = {
|
|
6535
6548
|
};
|
6536
6549
|
function resolveTailwindThemeValue(key, val) {
|
6537
6550
|
const resolvedKey = key in THEME_MAPPING ? THEME_MAPPING[key] : key;
|
6538
|
-
const found = (0,
|
6539
|
-
if (!(0,
|
6551
|
+
const found = (0, import_lodash_es5.get)(tailwind_theme_default, [resolvedKey, val], void 0) ?? (0, import_lodash_es5.get)(tailwind_theme_default, [resolvedKey, ...(val ?? "").toString().split("-")], void 0);
|
6552
|
+
if (!(0, import_lodash_es5.isUndefined)(found)) {
|
6540
6553
|
return found;
|
6541
6554
|
}
|
6542
6555
|
return val;
|
@@ -6545,16 +6558,16 @@ function useStyle(styles) {
|
|
6545
6558
|
const context2 = (0, import_react11.useContext)(DesignSystemContext);
|
6546
6559
|
return Object.keys(styles).reduce((acc, key) => {
|
6547
6560
|
const property = styles[key];
|
6548
|
-
const isStylesObject = (0,
|
6561
|
+
const isStylesObject = (0, import_lodash_es5.isPlainObject)(property) && "value" in property;
|
6549
6562
|
const value = isStylesObject ? property.value : property;
|
6550
6563
|
const resolvedValue = selectBreakpointValue(value, context2.breakpointMatches);
|
6551
|
-
const transformer = (0,
|
6564
|
+
const transformer = (0, import_lodash_es5.isUndefined)(property?.transformer) ? (val) => resolveTailwindThemeValue(key, val) : (
|
6552
6565
|
// Even if transformer is set, we pass it through the default transformer
|
6553
6566
|
// which will resolve possible tailwind theme mapping values
|
6554
6567
|
(val) => resolveTailwindThemeValue(key, property.transformer(val))
|
6555
6568
|
);
|
6556
6569
|
const cssPropertyValue = transformer(resolvedValue);
|
6557
|
-
if ((0,
|
6570
|
+
if ((0, import_lodash_es5.isUndefined)(cssPropertyValue)) {
|
6558
6571
|
return acc;
|
6559
6572
|
}
|
6560
6573
|
return {
|
@@ -6598,15 +6611,15 @@ function Tailwindify(Component) {
|
|
6598
6611
|
}) => {
|
6599
6612
|
const tailwindifyStyle = useStyle({
|
6600
6613
|
padding,
|
6601
|
-
paddingTop: (0,
|
6602
|
-
paddingRight: (0,
|
6603
|
-
paddingBottom: (0,
|
6604
|
-
paddingLeft: (0,
|
6614
|
+
paddingTop: (0, import_lodash_es6.isUndefined)(paddingY) ? paddingTop : paddingY,
|
6615
|
+
paddingRight: (0, import_lodash_es6.isUndefined)(paddingX) ? paddingRight : paddingX,
|
6616
|
+
paddingBottom: (0, import_lodash_es6.isUndefined)(paddingY) ? paddingBottom : paddingY,
|
6617
|
+
paddingLeft: (0, import_lodash_es6.isUndefined)(paddingX) ? paddingLeft : paddingX,
|
6605
6618
|
margin,
|
6606
|
-
marginTop: (0,
|
6607
|
-
marginRight: (0,
|
6608
|
-
marginBottom: (0,
|
6609
|
-
marginLeft: (0,
|
6619
|
+
marginTop: (0, import_lodash_es6.isUndefined)(marginY) ? marginTop : marginY,
|
6620
|
+
marginRight: (0, import_lodash_es6.isUndefined)(marginX) ? marginRight : marginX,
|
6621
|
+
marginBottom: (0, import_lodash_es6.isUndefined)(marginY) ? marginBottom : marginY,
|
6622
|
+
marginLeft: (0, import_lodash_es6.isUndefined)(marginX) ? marginLeft : marginX,
|
6610
6623
|
backgroundColor,
|
6611
6624
|
width,
|
6612
6625
|
height,
|
@@ -6631,20 +6644,20 @@ function Tailwindify(Component) {
|
|
6631
6644
|
const isLastChild = index === children.length - 1;
|
6632
6645
|
const childProps = {};
|
6633
6646
|
const additionalStyle = {};
|
6634
|
-
if (!isLastChild && !(0,
|
6647
|
+
if (!isLastChild && !(0, import_lodash_es6.isUndefined)(space)) {
|
6635
6648
|
additionalStyle.marginBottom = resolveTailwindThemeValue("margin", space);
|
6636
6649
|
additionalStyle.marginRight = resolveTailwindThemeValue("margin", space);
|
6637
6650
|
}
|
6638
|
-
if (!isLastChild && !(0,
|
6651
|
+
if (!isLastChild && !(0, import_lodash_es6.isUndefined)(spaceY)) {
|
6639
6652
|
additionalStyle.marginBottom = resolveTailwindThemeValue("margin", spaceY);
|
6640
6653
|
}
|
6641
|
-
if (!isLastChild && !(0,
|
6654
|
+
if (!isLastChild && !(0, import_lodash_es6.isUndefined)(spaceX)) {
|
6642
6655
|
additionalStyle.marginRight = resolveTailwindThemeValue("margin", spaceX);
|
6643
6656
|
}
|
6644
6657
|
if (Object.keys(childProps).length === 0 && Object.keys(additionalStyle).length === 0) {
|
6645
6658
|
return child;
|
6646
6659
|
}
|
6647
|
-
const childStyle = (0,
|
6660
|
+
const childStyle = (0, import_lodash_es6.get)(child, ["props", "style"], {});
|
6648
6661
|
const newProps = { ...childProps, style: { ...childStyle, ...additionalStyle } };
|
6649
6662
|
return import_react12.default.cloneElement(child, newProps);
|
6650
6663
|
});
|
@@ -6718,7 +6731,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6718
6731
|
const { delay = TOOLTIP_DELAY } = props;
|
6719
6732
|
const { isOpen, open, close } = (0, import_overlays2.useOverlayTriggerState)(props);
|
6720
6733
|
const id = (0, import_react16.useMemo)(() => `${++tooltipId}`, []);
|
6721
|
-
const closeTimeout = (0, import_react16.useRef)(
|
6734
|
+
const closeTimeout = (0, import_react16.useRef)();
|
6722
6735
|
const isUnmounted = (0, import_react16.useRef)(false);
|
6723
6736
|
const ensureTooltipEntry = () => {
|
6724
6737
|
tooltips[id] = hideTooltip;
|
@@ -7038,7 +7051,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7038
7051
|
hasChildren && /* @__PURE__ */ import_react18.default.createElement("div", null, children)
|
7039
7052
|
);
|
7040
7053
|
} else {
|
7041
|
-
return
|
7054
|
+
return children;
|
7042
7055
|
}
|
7043
7056
|
};
|
7044
7057
|
const buttonComponent = /* @__PURE__ */ import_react18.default.createElement(
|
@@ -7049,7 +7062,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7049
7062
|
className: classNames(
|
7050
7063
|
"Aquarium-Button",
|
7051
7064
|
{
|
7052
|
-
[`Aquarium-Button.${capitalize((0,
|
7065
|
+
[`Aquarium-Button.${capitalize((0, import_lodash_es7.camelCase)(kind))}`]: !isIconOnlyButton,
|
7053
7066
|
"Aquarium-Button.Icon": isIconOnlyButton,
|
7054
7067
|
"Aquarium-Dense": dense,
|
7055
7068
|
"Aquarium-Busy": loading2
|
@@ -7124,7 +7137,7 @@ Button.GhostDropdown = GhostDropdownButton;
|
|
7124
7137
|
|
7125
7138
|
// src/atoms/Typography/Typography.tsx
|
7126
7139
|
var import_react19 = __toESM(require("react"));
|
7127
|
-
var
|
7140
|
+
var import_lodash_es8 = require("lodash-es");
|
7128
7141
|
var typographies = Object.fromEntries(Object.keys(tokens_default.typography).map((key) => [key, `typography-${key}`]));
|
7129
7142
|
var Typography = ({
|
7130
7143
|
children,
|
@@ -7136,7 +7149,7 @@ var Typography = ({
|
|
7136
7149
|
...rest
|
7137
7150
|
}) => {
|
7138
7151
|
const HtmlElement = htmlTag;
|
7139
|
-
const resolvedColorName = (0,
|
7152
|
+
const resolvedColorName = (0, import_lodash_es8.isUndefined)(color) || color === "current" ? "default" : color;
|
7140
7153
|
const style = useStyle({ fontWeight });
|
7141
7154
|
return /* @__PURE__ */ import_react19.default.createElement(
|
7142
7155
|
HtmlElement,
|
@@ -7360,7 +7373,7 @@ Banner2.DismissContainer = ({ layout, children, className, ...rest }) => /* @__P
|
|
7360
7373
|
|
7361
7374
|
// src/atoms/Card/Card.tsx
|
7362
7375
|
var import_react24 = __toESM(require("react"));
|
7363
|
-
var
|
7376
|
+
var import_lodash_es9 = require("lodash-es");
|
7364
7377
|
|
7365
7378
|
// src/molecules/Typography/Typography.tsx
|
7366
7379
|
var import_react22 = __toESM(require("react"));
|
@@ -7524,11 +7537,11 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
|
|
7524
7537
|
"h-[174px]": !imageHeight && !fullSize,
|
7525
7538
|
"h-[225px]": !imageHeight && fullSize
|
7526
7539
|
}),
|
7527
|
-
style: { height: (0,
|
7540
|
+
style: { height: (0, import_lodash_es9.isNumber)(imageHeight) ? `${imageHeight}px` : imageHeight }
|
7528
7541
|
}
|
7529
7542
|
);
|
7530
7543
|
var Title = (props) => /* @__PURE__ */ import_react24.default.createElement(Box.Flex, { component: "div", alignItems: "center", gap: "2", ...props });
|
7531
|
-
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ import_react24.default.createElement("div", { ...rest, className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) });
|
7544
|
+
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ import_react24.default.createElement("div", { ...rest, className: classNames(tw("flex flex-col flex-auto", { "gap-4": !dense }), className) });
|
7532
7545
|
var Actions = ({ className, dense, ...rest }) => /* @__PURE__ */ import_react24.default.createElement("div", { ...rest, className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) });
|
7533
7546
|
Card.Label = Label;
|
7534
7547
|
Card.Title = Title;
|
@@ -7683,7 +7696,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ i
|
|
7683
7696
|
"tr",
|
7684
7697
|
{
|
7685
7698
|
...rest,
|
7686
|
-
...{ inert: disabled },
|
7699
|
+
...{ inert: disabled ? "" : void 0 },
|
7687
7700
|
className: classNames(rowClassNames, className, {
|
7688
7701
|
"opacity-70": disabled
|
7689
7702
|
})
|
@@ -7843,7 +7856,7 @@ var Row = ({
|
|
7843
7856
|
{
|
7844
7857
|
...rest,
|
7845
7858
|
role: isGroup ? "rowgroup" : "row",
|
7846
|
-
...{ inert: disabled },
|
7859
|
+
...{ inert: disabled ? "" : void 0 },
|
7847
7860
|
className: classNames(tw("contents"), className, {
|
7848
7861
|
"[&>*]:border-b-transparent": noDivider,
|
7849
7862
|
"children:opacity-70": disabled,
|
@@ -7947,7 +7960,7 @@ var import_react31 = __toESM(require("react"));
|
|
7947
7960
|
|
7948
7961
|
// src/atoms/Skeleton/Skeleton.tsx
|
7949
7962
|
var import_react30 = __toESM(require("react"));
|
7950
|
-
var
|
7963
|
+
var import_lodash_es10 = require("lodash-es");
|
7951
7964
|
var import_tailwind_variants = require("tailwind-variants");
|
7952
7965
|
var skeletonStyles = (0, import_tailwind_variants.tv)({
|
7953
7966
|
base: "bg-default",
|
@@ -7978,11 +7991,11 @@ var Skeleton = ({
|
|
7978
7991
|
...rest
|
7979
7992
|
}) => {
|
7980
7993
|
const styles = {
|
7981
|
-
width: (0,
|
7982
|
-
height: (0,
|
7994
|
+
width: (0, import_lodash_es10.isNumber)(width) ? `${width}px` : width,
|
7995
|
+
height: (0, import_lodash_es10.isNumber)(height) ? `${height}px` : height
|
7983
7996
|
};
|
7984
7997
|
const classes2 = skeletonStyles({
|
7985
|
-
hasHeight: !(0,
|
7998
|
+
hasHeight: !(0, import_lodash_es10.isUndefined)(height),
|
7986
7999
|
display,
|
7987
8000
|
rounded,
|
7988
8001
|
animate,
|
@@ -8143,7 +8156,7 @@ var import_react34 = __toESM(require("react"));
|
|
8143
8156
|
|
8144
8157
|
// src/molecules/Grid/Grid.tsx
|
8145
8158
|
var import_react33 = __toESM(require("react"));
|
8146
|
-
var
|
8159
|
+
var import_lodash_es11 = require("lodash-es");
|
8147
8160
|
var breakpoints = Object.keys(tokens_default.screens);
|
8148
8161
|
var GridItem = Tailwindify(
|
8149
8162
|
({
|
@@ -8163,8 +8176,8 @@ var GridItem = Tailwindify(
|
|
8163
8176
|
rowEnd,
|
8164
8177
|
...props
|
8165
8178
|
}) => {
|
8166
|
-
const breakPointableProperties = (0,
|
8167
|
-
const gridColumn = !(0,
|
8179
|
+
const breakPointableProperties = (0, import_lodash_es11.pick)(props, breakpoints);
|
8180
|
+
const gridColumn = !(0, import_lodash_es11.isEmpty)(breakPointableProperties) ? (0, import_lodash_es11.mapValues)(breakPointableProperties, (value) => value === "full" ? "1 / -1" : value ? `span-${value}` : "auto") : void 0;
|
8168
8181
|
const hookStyle = useStyle({
|
8169
8182
|
display,
|
8170
8183
|
justifySelf,
|
@@ -8558,7 +8571,7 @@ var PopoverDialog = {
|
|
8558
8571
|
|
8559
8572
|
// src/atoms/ProgressBar/ProgressBar.tsx
|
8560
8573
|
var import_react41 = __toESM(require("react"));
|
8561
|
-
var
|
8574
|
+
var import_lodash_es12 = require("lodash-es");
|
8562
8575
|
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ import_react41.default.createElement(
|
8563
8576
|
"div",
|
8564
8577
|
{
|
@@ -8574,7 +8587,7 @@ var STATUS_COLORS = {
|
|
8574
8587
|
error: tw("bg-danger-intense")
|
8575
8588
|
};
|
8576
8589
|
ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
|
8577
|
-
const completedPercentage = (0,
|
8590
|
+
const completedPercentage = (0, import_lodash_es12.clamp)((value - min) / (max - min) * 100, 0, 100);
|
8578
8591
|
return /* @__PURE__ */ import_react41.default.createElement(
|
8579
8592
|
"div",
|
8580
8593
|
{
|
@@ -8916,6 +8929,13 @@ var Switch = import_react45.default.forwardRef(
|
|
8916
8929
|
disabled && /* @__PURE__ */ import_react45.default.createElement(Icon, { icon: import_ban2.default, width: "10px", height: "10px" })
|
8917
8930
|
))
|
8918
8931
|
);
|
8932
|
+
|
8933
|
+
// src/atoms/VisuallyHidden/VisuallyHidden.tsx
|
8934
|
+
var import_react46 = __toESM(require("react"));
|
8935
|
+
var import_visually_hidden = require("@react-aria/visually-hidden");
|
8936
|
+
var VisuallyHidden = (props) => {
|
8937
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_visually_hidden.VisuallyHidden, { ...props });
|
8938
|
+
};
|
8919
8939
|
// Annotate the CommonJS export names for ESM import in node:
|
8920
8940
|
0 && (module.exports = {
|
8921
8941
|
Alert,
|
@@ -8945,6 +8965,7 @@ var Switch = import_react45.default.forwardRef(
|
|
8945
8965
|
Table,
|
8946
8966
|
Toast,
|
8947
8967
|
Typography,
|
8968
|
+
VisuallyHidden,
|
8948
8969
|
cellClassNames,
|
8949
8970
|
getAlignClassNames,
|
8950
8971
|
getBodyCellClassNames,
|
package/dist/atoms.mjs
CHANGED
@@ -1256,6 +1256,22 @@ var require_creditCard = __commonJS({
|
|
1256
1256
|
}
|
1257
1257
|
});
|
1258
1258
|
|
1259
|
+
// src/icons/creditMemo.js
|
1260
|
+
var require_creditMemo = __commonJS({
|
1261
|
+
"src/icons/creditMemo.js"(exports) {
|
1262
|
+
"use strict";
|
1263
|
+
var data = {
|
1264
|
+
"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>',
|
1265
|
+
"left": 0,
|
1266
|
+
"top": 0,
|
1267
|
+
"width": 16,
|
1268
|
+
"height": 16
|
1269
|
+
};
|
1270
|
+
exports.__esModule = true;
|
1271
|
+
exports.default = data;
|
1272
|
+
}
|
1273
|
+
});
|
1274
|
+
|
1259
1275
|
// src/icons/cross.js
|
1260
1276
|
var require_cross = __commonJS({
|
1261
1277
|
"src/icons/cross.js"(exports) {
|
@@ -4249,9 +4265,7 @@ import { get as get2, isUndefined as isUndefined5 } from "lodash-es";
|
|
4249
4265
|
|
4250
4266
|
// src/utils/useStyle.ts
|
4251
4267
|
import { useContext as useContext2 } from "react";
|
4252
|
-
import get from "lodash
|
4253
|
-
import isPlainObject2 from "lodash/isPlainObject";
|
4254
|
-
import isUndefined4 from "lodash/isUndefined";
|
4268
|
+
import { get, isPlainObject as isPlainObject2, isUndefined as isUndefined4 } from "lodash-es";
|
4255
4269
|
|
4256
4270
|
// tailwind.theme.json
|
4257
4271
|
var tailwind_theme_default = {
|
@@ -5182,9 +5196,7 @@ import { I18nProvider } from "@react-aria/i18n";
|
|
5182
5196
|
import { ModalProvider } from "@react-aria/overlays";
|
5183
5197
|
|
5184
5198
|
// src/utils/breakpoints.ts
|
5185
|
-
import isPlainObject from "lodash
|
5186
|
-
import isUndefined from "lodash/isUndefined";
|
5187
|
-
import orderBy from "lodash/orderBy";
|
5199
|
+
import { isPlainObject, isUndefined, orderBy } from "lodash-es";
|
5188
5200
|
|
5189
5201
|
// src/tokens/tokens.json
|
5190
5202
|
var tokens_default = {
|
@@ -5984,8 +5996,7 @@ function selectBreakpointValue(value, matches) {
|
|
5984
5996
|
|
5985
5997
|
// src/utils/useWindowSize.ts
|
5986
5998
|
import { useEffect, useState } from "react";
|
5987
|
-
import debounce from "lodash
|
5988
|
-
import isUndefined2 from "lodash/isUndefined";
|
5999
|
+
import { debounce, isUndefined as isUndefined2 } from "lodash-es";
|
5989
6000
|
|
5990
6001
|
// src/molecules/Toast/Toast.tsx
|
5991
6002
|
import React8, { createContext, useContext, useEffect as useEffect2, useReducer } from "react";
|
@@ -6269,6 +6280,7 @@ var import_console = __toESM(require_console());
|
|
6269
6280
|
var import_container = __toESM(require_container());
|
6270
6281
|
var import_cpuChip = __toESM(require_cpuChip());
|
6271
6282
|
var import_creditCard = __toESM(require_creditCard());
|
6283
|
+
var import_creditMemo = __toESM(require_creditMemo());
|
6272
6284
|
var import_cross = __toESM(require_cross());
|
6273
6285
|
var import_currencyDollar = __toESM(require_currencyDollar());
|
6274
6286
|
var import_dashboard = __toESM(require_dashboard());
|
@@ -6670,7 +6682,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6670
6682
|
const { delay = TOOLTIP_DELAY } = props;
|
6671
6683
|
const { isOpen, open, close } = useOverlayTriggerState(props);
|
6672
6684
|
const id = useMemo2(() => `${++tooltipId}`, []);
|
6673
|
-
const closeTimeout = useRef(
|
6685
|
+
const closeTimeout = useRef();
|
6674
6686
|
const isUnmounted = useRef(false);
|
6675
6687
|
const ensureTooltipEntry = () => {
|
6676
6688
|
tooltips[id] = hideTooltip;
|
@@ -6990,7 +7002,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
6990
7002
|
hasChildren && /* @__PURE__ */ React14.createElement("div", null, children)
|
6991
7003
|
);
|
6992
7004
|
} else {
|
6993
|
-
return
|
7005
|
+
return children;
|
6994
7006
|
}
|
6995
7007
|
};
|
6996
7008
|
const buttonComponent = /* @__PURE__ */ React14.createElement(
|
@@ -7480,7 +7492,7 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
|
|
7480
7492
|
}
|
7481
7493
|
);
|
7482
7494
|
var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex, { component: "div", alignItems: "center", gap: "2", ...props });
|
7483
|
-
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) });
|
7495
|
+
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex flex-col flex-auto", { "gap-4": !dense }), className) });
|
7484
7496
|
var Actions = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) });
|
7485
7497
|
Card.Label = Label;
|
7486
7498
|
Card.Title = Title;
|
@@ -7635,7 +7647,7 @@ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ R
|
|
7635
7647
|
"tr",
|
7636
7648
|
{
|
7637
7649
|
...rest,
|
7638
|
-
...{ inert: disabled },
|
7650
|
+
...{ inert: disabled ? "" : void 0 },
|
7639
7651
|
className: classNames(rowClassNames, className, {
|
7640
7652
|
"opacity-70": disabled
|
7641
7653
|
})
|
@@ -7795,7 +7807,7 @@ var Row = ({
|
|
7795
7807
|
{
|
7796
7808
|
...rest,
|
7797
7809
|
role: isGroup ? "rowgroup" : "row",
|
7798
|
-
...{ inert: disabled },
|
7810
|
+
...{ inert: disabled ? "" : void 0 },
|
7799
7811
|
className: classNames(tw("contents"), className, {
|
7800
7812
|
"[&>*]:border-b-transparent": noDivider,
|
7801
7813
|
"children:opacity-70": disabled,
|
@@ -8868,6 +8880,13 @@ var Switch = React41.forwardRef(
|
|
8868
8880
|
disabled && /* @__PURE__ */ React41.createElement(Icon, { icon: import_ban2.default, width: "10px", height: "10px" })
|
8869
8881
|
))
|
8870
8882
|
);
|
8883
|
+
|
8884
|
+
// src/atoms/VisuallyHidden/VisuallyHidden.tsx
|
8885
|
+
import React42 from "react";
|
8886
|
+
import { VisuallyHidden as AriaVisuallyHidden } from "@react-aria/visually-hidden";
|
8887
|
+
var VisuallyHidden = (props) => {
|
8888
|
+
return /* @__PURE__ */ React42.createElement(AriaVisuallyHidden, { ...props });
|
8889
|
+
};
|
8871
8890
|
export {
|
8872
8891
|
Alert,
|
8873
8892
|
Banner2 as Banner,
|
@@ -8896,6 +8915,7 @@ export {
|
|
8896
8915
|
Table,
|
8897
8916
|
Toast,
|
8898
8917
|
Typography,
|
8918
|
+
VisuallyHidden,
|
8899
8919
|
cellClassNames,
|
8900
8920
|
getAlignClassNames,
|
8901
8921
|
getBodyCellClassNames,
|
package/dist/charts.cjs
CHANGED
@@ -2887,10 +2887,7 @@ var renderChartChildren = (child, chartProps) => {
|
|
2887
2887
|
return renderYAxis(child, chartProps);
|
2888
2888
|
}
|
2889
2889
|
case Tooltip.displayName: {
|
2890
|
-
|
2891
|
-
return import_react7.default.cloneElement(tooltip, {
|
2892
|
-
content: /* @__PURE__ */ import_react7.default.createElement(TooltipContentWrapper, { content: tooltip.props.content })
|
2893
|
-
});
|
2890
|
+
return import_react7.default.cloneElement(child, { content: /* @__PURE__ */ import_react7.default.createElement(TooltipContentWrapper, { content: child.props.content }) });
|
2894
2891
|
}
|
2895
2892
|
default: {
|
2896
2893
|
return child;
|
@@ -3164,17 +3161,13 @@ var renderPieChildren = (children, opts = {}) => {
|
|
3164
3161
|
}
|
3165
3162
|
switch (getDisplayName(child.type)) {
|
3166
3163
|
case Tooltip.displayName: {
|
3167
|
-
|
3168
|
-
|
3169
|
-
content: /* @__PURE__ */ import_react14.default.createElement(TooltipContentWrapper, { content: tooltip, tooltipColor: opts.tooltipColor }),
|
3164
|
+
return import_react14.default.cloneElement(child, {
|
3165
|
+
content: /* @__PURE__ */ import_react14.default.createElement(TooltipContentWrapper, { content: child.props.content, tooltipColor: opts.tooltipColor }),
|
3170
3166
|
labelStyle: { paddingBottom: 0 }
|
3171
3167
|
});
|
3172
3168
|
}
|
3173
3169
|
case import_recharts11.Legend.displayName: {
|
3174
|
-
return import_react14.default.cloneElement(child, {
|
3175
|
-
verticalAlign: "top",
|
3176
|
-
align: "center"
|
3177
|
-
});
|
3170
|
+
return import_react14.default.cloneElement(child, { verticalAlign: "top", align: "center" });
|
3178
3171
|
}
|
3179
3172
|
default: {
|
3180
3173
|
return child;
|
@@ -3194,7 +3187,7 @@ var DoughnutChart = ({
|
|
3194
3187
|
var DoughnutChartWrapper = ({ isBusy, busyLabel, ...props }) => {
|
3195
3188
|
const [containerWidth, setContainerWidth] = import_react15.default.useState(0);
|
3196
3189
|
const [containerHeight, setContainerHeight] = import_react15.default.useState(0);
|
3197
|
-
const [activeIndex, setActiveIndex] = import_react15.default.useState(
|
3190
|
+
const [activeIndex, setActiveIndex] = import_react15.default.useState(null);
|
3198
3191
|
const { getDefaultColor } = import_react15.default.useContext(DefaultPaletteContext);
|
3199
3192
|
const [chartValue, _children] = extractChildByDisplayName(props.children, ChartValue.displayName);
|
3200
3193
|
const [doughnut, children] = extractChildByDisplayName(_children, DoughnutChart.Doughnut.displayName);
|
@@ -3219,7 +3212,7 @@ var DoughnutChartWrapper = ({ isBusy, busyLabel, ...props }) => {
|
|
3219
3212
|
const y = (yOffset + yMargin) / scale;
|
3220
3213
|
return /* @__PURE__ */ import_react15.default.createElement("foreignObject", { width: refSize, height: refSize, x, y, transform: `scale(${scale})` }, chartValue);
|
3221
3214
|
};
|
3222
|
-
const highlightActive = activeIndex !==
|
3215
|
+
const highlightActive = activeIndex !== null && tooltip;
|
3223
3216
|
return /* @__PURE__ */ import_react15.default.createElement(
|
3224
3217
|
ResponsiveContainer,
|
3225
3218
|
{
|
@@ -3233,10 +3226,9 @@ var DoughnutChartWrapper = ({ isBusy, busyLabel, ...props }) => {
|
|
3233
3226
|
import_recharts12.Pie,
|
3234
3227
|
{
|
3235
3228
|
...doughnut.props,
|
3236
|
-
ref: void 0,
|
3237
3229
|
fill: doughnut.props.fill ?? getDefaultColor(doughnut.props.dataKey),
|
3238
3230
|
onMouseEnter: (_, index) => setActiveIndex(index),
|
3239
|
-
onMouseLeave: () => setActiveIndex(
|
3231
|
+
onMouseLeave: () => setActiveIndex(null),
|
3240
3232
|
activeIndex,
|
3241
3233
|
inactiveShape: { className: highlightActive ? "inactive" : void 0 },
|
3242
3234
|
activeShape: { className: highlightActive ? "active" : void 0 }
|
@@ -3265,7 +3257,7 @@ var PieChart = ({ palette, ...props }) => {
|
|
3265
3257
|
var PieChartWrapper = ({ isBusy, busyLabel, ...props }) => {
|
3266
3258
|
const [pie, children] = extractChildByDisplayName(props.children, PieChart.Pie.displayName);
|
3267
3259
|
const { getDefaultColor } = import_react16.default.useContext(DefaultPaletteContext);
|
3268
|
-
return /* @__PURE__ */ import_react16.default.createElement(ResponsiveContainer, { width: props.width, height: props.height, isBusy, busyLabel }, /* @__PURE__ */ import_react16.default.createElement(import_recharts13.PieChart, { width: 500, height: 500 }, renderPieChildren(children, { tooltipColor: "fill" }), pie && /* @__PURE__ */ import_react16.default.createElement(import_recharts13.Pie, { ...pie.props,
|
3260
|
+
return /* @__PURE__ */ import_react16.default.createElement(ResponsiveContainer, { width: props.width, height: props.height, isBusy, busyLabel }, /* @__PURE__ */ import_react16.default.createElement(import_recharts13.PieChart, { width: 500, height: 500 }, renderPieChildren(children, { tooltipColor: "fill" }), pie && /* @__PURE__ */ import_react16.default.createElement(import_recharts13.Pie, { ...pie.props, fill: pie.props.fill ?? getDefaultColor(pie.props.dataKey) })));
|
3269
3261
|
};
|
3270
3262
|
var Pie = Object.assign((props) => /* @__PURE__ */ import_react16.default.createElement(import_recharts13.Pie, { ...props }), import_recharts13.Pie);
|
3271
3263
|
Pie.defaultProps = Object.assign({}, import_recharts13.Pie.defaultProps, {
|