@ixo/ui 0.0.38 → 0.0.39
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/.vite/manifest.json +43 -43
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-BrO36-8M.cjs → components-Dh6ajpNG.cjs} +34 -33
- package/dist/{components-BrO36-8M.cjs.map → components-Dh6ajpNG.cjs.map} +1 -1
- package/dist/{components-BCUQC5jC.js → components-HlNIe7CZ.js} +34 -33
- package/dist/{components-BCUQC5jC.js.map → components-HlNIe7CZ.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-D2yc0dXn.js → index--70UT2n_.js} +2 -2
- package/dist/{index-D2yc0dXn.js.map → index--70UT2n_.js.map} +1 -1
- package/dist/{index-RJQrCYn7.js → index-9UUyZZ-F.js} +3 -3
- package/dist/{index-RJQrCYn7.js.map → index-9UUyZZ-F.js.map} +1 -1
- package/dist/{index-BMqjLaFq.cjs → index-B-Zre99u.cjs} +2 -2
- package/dist/{index-BMqjLaFq.cjs.map → index-B-Zre99u.cjs.map} +1 -1
- package/dist/{index-DE5ijph0.cjs → index-B279S1ib.cjs} +2 -2
- package/dist/{index-DE5ijph0.cjs.map → index-B279S1ib.cjs.map} +1 -1
- package/dist/{index-IuW_YBAi.js → index-BJlA64RQ.js} +3 -3
- package/dist/{index-IuW_YBAi.js.map → index-BJlA64RQ.js.map} +1 -1
- package/dist/{index-DYeDZpgO.cjs → index-BSpy7S9t.cjs} +2 -2
- package/dist/{index-DYeDZpgO.cjs.map → index-BSpy7S9t.cjs.map} +1 -1
- package/dist/{index-DnbJxS8B.js → index-BmURKcEG.js} +2 -2
- package/dist/{index-DnbJxS8B.js.map → index-BmURKcEG.js.map} +1 -1
- package/dist/{index-9bgxOn0r.js → index-CHd1dAzt.js} +2 -2
- package/dist/{index-9bgxOn0r.js.map → index-CHd1dAzt.js.map} +1 -1
- package/dist/{index-DKd-qpnW.cjs → index-CJ6bEuh4.cjs} +2 -2
- package/dist/{index-DKd-qpnW.cjs.map → index-CJ6bEuh4.cjs.map} +1 -1
- package/dist/{index-Al96GH1N.cjs → index-Cc8QzwfQ.cjs} +2 -2
- package/dist/{index-Al96GH1N.cjs.map → index-Cc8QzwfQ.cjs.map} +1 -1
- package/dist/{index-D2yQxkIj.js → index-Cdq0xepm.js} +2 -2
- package/dist/{index-D2yQxkIj.js.map → index-Cdq0xepm.js.map} +1 -1
- package/dist/{index-CSflwNp9.js → index-Ct0LG7BZ.js} +2 -2
- package/dist/{index-CSflwNp9.js.map → index-Ct0LG7BZ.js.map} +1 -1
- package/dist/{index-BIogUZHA.cjs → index-CxrtFKNK.cjs} +2 -2
- package/dist/{index-BIogUZHA.cjs.map → index-CxrtFKNK.cjs.map} +1 -1
- package/dist/{index-Cp-qZhjG.cjs → index-DAzlT5mC.cjs} +3 -3
- package/dist/{index-Cp-qZhjG.cjs.map → index-DAzlT5mC.cjs.map} +1 -1
- package/dist/{index-BY1AiOdr.js → index-DBFKFDFv.js} +2 -2
- package/dist/{index-BY1AiOdr.js.map → index-DBFKFDFv.js.map} +1 -1
- package/dist/{index-DUJe5Ai1.cjs → index-DZdPdzVn.cjs} +2 -2
- package/dist/{index-DUJe5Ai1.cjs.map → index-DZdPdzVn.cjs.map} +1 -1
- package/dist/{index-BveTsSM4.js → index-DhGqlduA.js} +2 -2
- package/dist/{index-BveTsSM4.js.map → index-DhGqlduA.js.map} +1 -1
- package/dist/{index-CY_rB8AB.cjs → index-DnxREYKV.cjs} +3 -3
- package/dist/{index-CY_rB8AB.cjs.map → index-DnxREYKV.cjs.map} +1 -1
- package/dist/{index-B5f_G827.js → index-E541J7_X.js} +2 -2
- package/dist/{index-B5f_G827.js.map → index-E541J7_X.js.map} +1 -1
- package/dist/{index-BJWkWwf4.cjs → index-RMhNdvgC.cjs} +2 -2
- package/dist/{index-BJWkWwf4.cjs.map → index-RMhNdvgC.cjs.map} +1 -1
- package/package.json +5 -5
|
@@ -774,8 +774,8 @@ function AccordionTable({
|
|
|
774
774
|
}
|
|
775
775
|
);
|
|
776
776
|
}
|
|
777
|
-
const Header$3 = lazy(() => import("./index-
|
|
778
|
-
const Footer = lazy(() => import("./index-
|
|
777
|
+
const Header$3 = lazy(() => import("./index-CHd1dAzt.js"));
|
|
778
|
+
const Footer = lazy(() => import("./index-9UUyZZ-F.js"));
|
|
779
779
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
780
780
|
const hasContent = !!content || !!footer;
|
|
781
781
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -859,7 +859,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
859
859
|
}
|
|
860
860
|
const CARD_WIDTH$1 = 350;
|
|
861
861
|
const CARD_HEADER_HEIGHT = 158;
|
|
862
|
-
const Header$2 = lazy(() => import("./index-
|
|
862
|
+
const Header$2 = lazy(() => import("./index-DBFKFDFv.js"));
|
|
863
863
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
864
864
|
const wrapperRef = useRef(null);
|
|
865
865
|
const handleOnClick = useCallback(
|
|
@@ -1294,7 +1294,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1294
1294
|
document.body
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
|
-
const Badge = lazy(() => import("./index
|
|
1297
|
+
const Badge = lazy(() => import("./index--70UT2n_.js"));
|
|
1298
1298
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1299
1299
|
const shadowScrollRef = useRef(null);
|
|
1300
1300
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -2568,6 +2568,28 @@ function SpaceItem({ icon, id, name, selectedSpace, onClick }) {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
);
|
|
2570
2570
|
}
|
|
2571
|
+
function cutText(text, length, ending = "…") {
|
|
2572
|
+
if (!length || text.length <= length) {
|
|
2573
|
+
return text;
|
|
2574
|
+
}
|
|
2575
|
+
const words = text.split(" ");
|
|
2576
|
+
const endingSize = ending.length;
|
|
2577
|
+
let result = "";
|
|
2578
|
+
for (const word of words) {
|
|
2579
|
+
const newValue = result + word + " ";
|
|
2580
|
+
if (newValue.length + endingSize - 1 > length) {
|
|
2581
|
+
break;
|
|
2582
|
+
}
|
|
2583
|
+
result = newValue;
|
|
2584
|
+
}
|
|
2585
|
+
return result.trim() + ending;
|
|
2586
|
+
}
|
|
2587
|
+
function carbonToUSD(carbon) {
|
|
2588
|
+
return (carbon * 0.03).toLocaleString(void 0, {
|
|
2589
|
+
minimumFractionDigits: 0,
|
|
2590
|
+
maximumFractionDigits: 6
|
|
2591
|
+
});
|
|
2592
|
+
}
|
|
2571
2593
|
const CANVAS_MIN_WIDTH = 350;
|
|
2572
2594
|
const CONTENT_MIN_WIDTH = 350;
|
|
2573
2595
|
function AppShellNavigation({
|
|
@@ -2635,6 +2657,7 @@ function AppShellNavigation({
|
|
|
2635
2657
|
},
|
|
2636
2658
|
[onSplitRatioChange]
|
|
2637
2659
|
);
|
|
2660
|
+
const isTitleOverflowing = (pageItem?.pageTitle?.length || 0) > 21;
|
|
2638
2661
|
const handleSplitMouseUp = useCallback(() => {
|
|
2639
2662
|
setIsSplitResizing(false);
|
|
2640
2663
|
isSplitResizingRef.current = false;
|
|
@@ -2821,7 +2844,7 @@ function AppShellNavigation({
|
|
|
2821
2844
|
/* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2822
2845
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "10px", children: [
|
|
2823
2846
|
isBackButtonVisible ? /* @__PURE__ */ jsx(Center, { onClick: onBackClick, sx: { borderRadius: 4, cursor: "pointer", padding: 2, background: theme.bg.navIconsBg }, children: /* @__PURE__ */ jsx(ArrowLeftSolid, { size: 18 }) }) : /* @__PURE__ */ jsx(Center, { sx: { borderRadius: 4, padding: 2, background: theme.bg.navIconsBg }, children: pageItem.pageIcon ? /* @__PURE__ */ jsx(pageItem.pageIcon, { size: 18 }) : /* @__PURE__ */ jsx(Globe, { size: 18 }) }),
|
|
2824
|
-
/* @__PURE__ */ jsx(Text$1, { lh: 1, c: theme.text.overPicture, children: pageItem.pageTitle || "Unknown" })
|
|
2847
|
+
/* @__PURE__ */ jsx(Tooltip$4, { label: pageItem.pageTitle || "Unknown", disabled: !isTitleOverflowing, position: "bottom", withArrow: true, children: /* @__PURE__ */ jsx(Text$1, { lh: 1, c: theme.text.overPicture, children: cutText(pageItem.pageTitle, 21) || "Unknown" }) })
|
|
2825
2848
|
] }),
|
|
2826
2849
|
isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsx(
|
|
2827
2850
|
Center,
|
|
@@ -5950,13 +5973,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5950
5973
|
}
|
|
5951
5974
|
);
|
|
5952
5975
|
}
|
|
5953
|
-
const MainAction = lazy(() => import("./index-
|
|
5954
|
-
const Header$1 = lazy(() => import("./index-
|
|
5955
|
-
const Content = lazy(() => import("./index-
|
|
5976
|
+
const MainAction = lazy(() => import("./index-Cdq0xepm.js"));
|
|
5977
|
+
const Header$1 = lazy(() => import("./index-DhGqlduA.js"));
|
|
5978
|
+
const Content = lazy(() => import("./index-E541J7_X.js"));
|
|
5956
5979
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5957
5980
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5958
|
-
const Assets = lazy(() => import("./index-
|
|
5959
|
-
const Actions = lazy(() => import("./index-
|
|
5981
|
+
const Assets = lazy(() => import("./index-BmURKcEG.js"));
|
|
5982
|
+
const Actions = lazy(() => import("./index-BJlA64RQ.js"));
|
|
5960
5983
|
const HOVER_BORDER_WIDTH = 1;
|
|
5961
5984
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5962
5985
|
const wrapperRef = useRef(null);
|
|
@@ -6293,28 +6316,6 @@ function AssetInfo({
|
|
|
6293
6316
|
}
|
|
6294
6317
|
);
|
|
6295
6318
|
}
|
|
6296
|
-
function cutText(text, length, ending = "…") {
|
|
6297
|
-
if (!length || text.length <= length) {
|
|
6298
|
-
return text;
|
|
6299
|
-
}
|
|
6300
|
-
const words = text.split(" ");
|
|
6301
|
-
const endingSize = ending.length;
|
|
6302
|
-
let result = "";
|
|
6303
|
-
for (const word of words) {
|
|
6304
|
-
const newValue = result + word + " ";
|
|
6305
|
-
if (newValue.length + endingSize - 1 > length) {
|
|
6306
|
-
break;
|
|
6307
|
-
}
|
|
6308
|
-
result = newValue;
|
|
6309
|
-
}
|
|
6310
|
-
return result.trim() + ending;
|
|
6311
|
-
}
|
|
6312
|
-
function carbonToUSD(carbon) {
|
|
6313
|
-
return (carbon * 0.03).toLocaleString(void 0, {
|
|
6314
|
-
minimumFractionDigits: 0,
|
|
6315
|
-
maximumFractionDigits: 6
|
|
6316
|
-
});
|
|
6317
|
-
}
|
|
6318
6319
|
const SHARED_ASSET_PROPS = {
|
|
6319
6320
|
leftTitleColor: "text",
|
|
6320
6321
|
rightTitleColor: "text",
|
|
@@ -11271,4 +11272,4 @@ export {
|
|
|
11271
11272
|
CardHero as y,
|
|
11272
11273
|
CardSelector as z
|
|
11273
11274
|
};
|
|
11274
|
-
//# sourceMappingURL=components-
|
|
11275
|
+
//# sourceMappingURL=components-HlNIe7CZ.js.map
|