@ixo/ui 0.0.38 → 0.0.40
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 +1 -5
- package/dist/components/AppShellNavigation/index.d.ts.map +1 -1
- package/dist/{components-BrO36-8M.cjs → components-C4syxh7E.cjs} +34 -38
- package/dist/{components-BrO36-8M.cjs.map → components-C4syxh7E.cjs.map} +1 -1
- package/dist/{components-BCUQC5jC.js → components-CqTGmHcg.js} +34 -38
- package/dist/{components-BCUQC5jC.js.map → components-CqTGmHcg.js.map} +1 -1
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/{index-BMqjLaFq.cjs → index-53vLP_Z1.cjs} +2 -2
- package/dist/{index-BMqjLaFq.cjs.map → index-53vLP_Z1.cjs.map} +1 -1
- package/dist/{index-D2yQxkIj.js → index-BNsUpFnG.js} +2 -2
- package/dist/{index-D2yQxkIj.js.map → index-BNsUpFnG.js.map} +1 -1
- package/dist/{index-Al96GH1N.cjs → index-BZZVVGWc.cjs} +2 -2
- package/dist/{index-Al96GH1N.cjs.map → index-BZZVVGWc.cjs.map} +1 -1
- package/dist/{index-BveTsSM4.js → index-BiEPg62o.js} +2 -2
- package/dist/{index-BveTsSM4.js.map → index-BiEPg62o.js.map} +1 -1
- package/dist/{index-DE5ijph0.cjs → index-Br-LPA19.cjs} +2 -2
- package/dist/{index-DE5ijph0.cjs.map → index-Br-LPA19.cjs.map} +1 -1
- package/dist/{index-9bgxOn0r.js → index-C6mephxW.js} +2 -2
- package/dist/{index-9bgxOn0r.js.map → index-C6mephxW.js.map} +1 -1
- package/dist/{index-B5f_G827.js → index-C7GIfL0K.js} +2 -2
- package/dist/{index-B5f_G827.js.map → index-C7GIfL0K.js.map} +1 -1
- package/dist/{index-Cp-qZhjG.cjs → index-CAhZlLHI.cjs} +3 -3
- package/dist/{index-Cp-qZhjG.cjs.map → index-CAhZlLHI.cjs.map} +1 -1
- package/dist/{index-DYeDZpgO.cjs → index-CF_eiQT5.cjs} +2 -2
- package/dist/{index-DYeDZpgO.cjs.map → index-CF_eiQT5.cjs.map} +1 -1
- package/dist/{index-IuW_YBAi.js → index-CSyWW5M9.js} +3 -3
- package/dist/{index-IuW_YBAi.js.map → index-CSyWW5M9.js.map} +1 -1
- package/dist/{index-D2yc0dXn.js → index-CtuDXjpW.js} +2 -2
- package/dist/{index-D2yc0dXn.js.map → index-CtuDXjpW.js.map} +1 -1
- package/dist/{index-DnbJxS8B.js → index-DBmK8wo0.js} +2 -2
- package/dist/{index-DnbJxS8B.js.map → index-DBmK8wo0.js.map} +1 -1
- package/dist/{index-DKd-qpnW.cjs → index-DJJDuYPt.cjs} +2 -2
- package/dist/{index-DKd-qpnW.cjs.map → index-DJJDuYPt.cjs.map} +1 -1
- package/dist/{index-BY1AiOdr.js → index-D_lOxfZA.js} +2 -2
- package/dist/{index-BY1AiOdr.js.map → index-D_lOxfZA.js.map} +1 -1
- package/dist/{index-BIogUZHA.cjs → index-DjL20pr9.cjs} +2 -2
- package/dist/{index-BIogUZHA.cjs.map → index-DjL20pr9.cjs.map} +1 -1
- package/dist/{index-CSflwNp9.js → index-DrPdJdbB.js} +2 -2
- package/dist/{index-CSflwNp9.js.map → index-DrPdJdbB.js.map} +1 -1
- package/dist/{index-RJQrCYn7.js → index-VKuhFO08.js} +3 -3
- package/dist/{index-RJQrCYn7.js.map → index-VKuhFO08.js.map} +1 -1
- package/dist/{index-BJWkWwf4.cjs → index-VcdXPa9t.cjs} +2 -2
- package/dist/{index-BJWkWwf4.cjs.map → index-VcdXPa9t.cjs.map} +1 -1
- package/dist/{index-CY_rB8AB.cjs → index-vV5U7oln.cjs} +3 -3
- package/dist/{index-CY_rB8AB.cjs.map → index-vV5U7oln.cjs.map} +1 -1
- package/dist/{index-DUJe5Ai1.cjs → index-w1HUie3I.cjs} +2 -2
- package/dist/{index-DUJe5Ai1.cjs.map → index-w1HUie3I.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-C6mephxW.js"));
|
|
778
|
+
const Footer = lazy(() => import("./index-VKuhFO08.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-D_lOxfZA.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-CtuDXjpW.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({
|
|
@@ -2582,8 +2604,6 @@ function AppShellNavigation({
|
|
|
2582
2604
|
avatarIcon,
|
|
2583
2605
|
onMenuItemClick,
|
|
2584
2606
|
onSettingsIconClick,
|
|
2585
|
-
onBackClick,
|
|
2586
|
-
isBackButtonVisible,
|
|
2587
2607
|
footerContent,
|
|
2588
2608
|
roomCategories,
|
|
2589
2609
|
right,
|
|
@@ -2635,6 +2655,7 @@ function AppShellNavigation({
|
|
|
2635
2655
|
},
|
|
2636
2656
|
[onSplitRatioChange]
|
|
2637
2657
|
);
|
|
2658
|
+
const isTitleOverflowing = (pageItem?.pageTitle?.length || 0) > 21;
|
|
2638
2659
|
const handleSplitMouseUp = useCallback(() => {
|
|
2639
2660
|
setIsSplitResizing(false);
|
|
2640
2661
|
isSplitResizingRef.current = false;
|
|
@@ -2819,10 +2840,7 @@ function AppShellNavigation({
|
|
|
2819
2840
|
isNavbarNotCollapsed && !isAiOpened && /* @__PURE__ */ jsxs(Stack$1, { justify: "space-between", w: "100%", pt: 16, pb: 10, px: 12, children: [
|
|
2820
2841
|
/* @__PURE__ */ jsxs(Stack$1, { gap: 5, children: [
|
|
2821
2842
|
/* @__PURE__ */ jsxs(Flex, { mb: 24, style: { width: "100%" }, justify: "space-between", align: "center", children: [
|
|
2822
|
-
/* @__PURE__ */
|
|
2823
|
-
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" })
|
|
2825
|
-
] }),
|
|
2843
|
+
/* @__PURE__ */ jsx(Flex, { align: "center", gap: "10px", children: /* @__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, 19) || "Unknown" }) }) }),
|
|
2826
2844
|
isAiBtnVisible && !isAiOpened && /* @__PURE__ */ jsx(
|
|
2827
2845
|
Center,
|
|
2828
2846
|
{
|
|
@@ -5950,13 +5968,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
5950
5968
|
}
|
|
5951
5969
|
);
|
|
5952
5970
|
}
|
|
5953
|
-
const MainAction = lazy(() => import("./index-
|
|
5954
|
-
const Header$1 = lazy(() => import("./index-
|
|
5955
|
-
const Content = lazy(() => import("./index-
|
|
5971
|
+
const MainAction = lazy(() => import("./index-BNsUpFnG.js"));
|
|
5972
|
+
const Header$1 = lazy(() => import("./index-BiEPg62o.js"));
|
|
5973
|
+
const Content = lazy(() => import("./index-C7GIfL0K.js"));
|
|
5956
5974
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
5957
5975
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
5958
|
-
const Assets = lazy(() => import("./index-
|
|
5959
|
-
const Actions = lazy(() => import("./index-
|
|
5976
|
+
const Assets = lazy(() => import("./index-DBmK8wo0.js"));
|
|
5977
|
+
const Actions = lazy(() => import("./index-CSyWW5M9.js"));
|
|
5960
5978
|
const HOVER_BORDER_WIDTH = 1;
|
|
5961
5979
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
5962
5980
|
const wrapperRef = useRef(null);
|
|
@@ -6293,28 +6311,6 @@ function AssetInfo({
|
|
|
6293
6311
|
}
|
|
6294
6312
|
);
|
|
6295
6313
|
}
|
|
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
6314
|
const SHARED_ASSET_PROPS = {
|
|
6319
6315
|
leftTitleColor: "text",
|
|
6320
6316
|
rightTitleColor: "text",
|
|
@@ -11271,4 +11267,4 @@ export {
|
|
|
11271
11267
|
CardHero as y,
|
|
11272
11268
|
CardSelector as z
|
|
11273
11269
|
};
|
|
11274
|
-
//# sourceMappingURL=components-
|
|
11270
|
+
//# sourceMappingURL=components-CqTGmHcg.js.map
|