@ixo/ui 0.1.3 → 0.1.5
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/{UsersSolid-CU7U_J3x.js → UsersSolid-BAHkDzh8.js} +51 -47
- package/dist/UsersSolid-BAHkDzh8.js.map +1 -0
- package/dist/{UsersSolid-C29C53eo.cjs → UsersSolid-C5FpNZ_K.cjs} +5 -1
- package/dist/UsersSolid-C5FpNZ_K.cjs.map +1 -0
- package/dist/components/AccordionTable/index.d.ts.map +1 -1
- package/dist/components/DropDown/index.d.ts.map +1 -1
- package/dist/components/Table/components/Tr.d.ts +1 -1
- package/dist/components/Table/components/Tr.d.ts.map +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/types.d.ts +4 -1
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/TableList/Cell.d.ts.map +1 -1
- package/dist/components/TableList/IconRow.d.ts.map +1 -1
- package/dist/components/TableList/index.d.ts.map +1 -1
- package/dist/{components-BfMR4Jm_.js → components-CmANQWf-.js} +148 -174
- package/dist/components-CmANQWf-.js.map +1 -0
- package/dist/{components-CMx1Z6qW.cjs → components-D-S05IGO.cjs} +146 -172
- package/dist/components-D-S05IGO.cjs.map +1 -0
- package/dist/constants/mantineTheme.d.ts +6 -6
- package/dist/export/components.cjs +1 -1
- package/dist/export/components.mjs +1 -1
- package/dist/export/icons/index.cjs +1 -1
- package/dist/export/icons/index.mjs +48 -48
- package/dist/{index-j30UxndW.cjs → index-BNv7Wt6j.cjs} +2 -2
- package/dist/{index-j30UxndW.cjs.map → index-BNv7Wt6j.cjs.map} +1 -1
- package/dist/{index-BA_IGjzx.js → index-BO0bmguj.js} +2 -2
- package/dist/{index-BA_IGjzx.js.map → index-BO0bmguj.js.map} +1 -1
- package/dist/{index-Mjt1S0Pd.cjs → index-BOPdrL0z.cjs} +3 -3
- package/dist/{index-Mjt1S0Pd.cjs.map → index-BOPdrL0z.cjs.map} +1 -1
- package/dist/{index-By8bP9F4.js → index-BcS9nv9y.js} +3 -3
- package/dist/{index-By8bP9F4.js.map → index-BcS9nv9y.js.map} +1 -1
- package/dist/{index-3sr4i_O3.js → index-Bl4vCmPD.js} +2 -2
- package/dist/{index-3sr4i_O3.js.map → index-Bl4vCmPD.js.map} +1 -1
- package/dist/{index-CUP32wrD.cjs → index-Bp3jax94.cjs} +2 -2
- package/dist/{index-CUP32wrD.cjs.map → index-Bp3jax94.cjs.map} +1 -1
- package/dist/{index-CzELlodl.cjs → index-Bzvm895X.cjs} +2 -2
- package/dist/{index-CzELlodl.cjs.map → index-Bzvm895X.cjs.map} +1 -1
- package/dist/{index-xLk8g4d_.cjs → index-C81_pkCa.cjs} +2 -2
- package/dist/{index-xLk8g4d_.cjs.map → index-C81_pkCa.cjs.map} +1 -1
- package/dist/{index-BfDwRtFi.cjs → index-CF8hUSL4.cjs} +2 -2
- package/dist/{index-BfDwRtFi.cjs.map → index-CF8hUSL4.cjs.map} +1 -1
- package/dist/{index-BtFFAaIr.js → index-COFYd2Cs.js} +2 -2
- package/dist/{index-BtFFAaIr.js.map → index-COFYd2Cs.js.map} +1 -1
- package/dist/{index-BAz_xpVr.js → index-CUsPvPQY.js} +2 -2
- package/dist/{index-BAz_xpVr.js.map → index-CUsPvPQY.js.map} +1 -1
- package/dist/{index-DKU106Gm.js → index-Cdx2iFWc.js} +2 -2
- package/dist/{index-DKU106Gm.js.map → index-Cdx2iFWc.js.map} +1 -1
- package/dist/{index-C697oQC3.cjs → index-D5-ydt83.cjs} +2 -2
- package/dist/{index-C697oQC3.cjs.map → index-D5-ydt83.cjs.map} +1 -1
- package/dist/{index-BT-G2YjM.js → index-D8rBCYAR.js} +3 -3
- package/dist/{index-BT-G2YjM.js.map → index-D8rBCYAR.js.map} +1 -1
- package/dist/{index-B012tdby.cjs → index-DGVkbm1G.cjs} +2 -2
- package/dist/{index-B012tdby.cjs.map → index-DGVkbm1G.cjs.map} +1 -1
- package/dist/{index-LPfRhRqy.cjs → index-Dn7Yp1ku.cjs} +3 -3
- package/dist/{index-LPfRhRqy.cjs.map → index-Dn7Yp1ku.cjs.map} +1 -1
- package/dist/{index-P7O0pqQQ.js → index-PVwto1-Y.js} +2 -2
- package/dist/{index-P7O0pqQQ.js.map → index-PVwto1-Y.js.map} +1 -1
- package/dist/{index-DKH0pkHE.js → index-SQJMSt4m.js} +3 -3
- package/dist/{index-DKH0pkHE.js.map → index-SQJMSt4m.js.map} +1 -1
- package/dist/{index-D3n59w3g.js → index-UKyxkTI5.js} +2 -2
- package/dist/{index-D3n59w3g.js.map → index-UKyxkTI5.js.map} +1 -1
- package/dist/{index-BnDLND8p.cjs → index-znoKlTv8.cjs} +3 -3
- package/dist/{index-BnDLND8p.cjs.map → index-znoKlTv8.cjs.map} +1 -1
- package/dist/utils/colors.d.ts +1 -0
- package/dist/utils/colors.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/UsersSolid-C29C53eo.cjs.map +0 -1
- package/dist/UsersSolid-CU7U_J3x.js.map +0 -1
- package/dist/components-BfMR4Jm_.js.map +0 -1
- package/dist/components-CMx1Z6qW.cjs.map +0 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
25
25
|
const radash = require("radash");
|
|
26
26
|
const react = require("@emotion/react");
|
|
27
|
-
const UsersSolid = require("./UsersSolid-
|
|
27
|
+
const UsersSolid = require("./UsersSolid-C5FpNZ_K.cjs");
|
|
28
28
|
const react$1 = require("react");
|
|
29
29
|
const constants = require("./constants-DFJRYpE2.cjs");
|
|
30
30
|
const core = require("@mantine/core");
|
|
@@ -530,7 +530,7 @@ function isValidClick(e, target) {
|
|
|
530
530
|
}
|
|
531
531
|
return true;
|
|
532
532
|
}
|
|
533
|
-
function Tr({ children, selected, onClick }) {
|
|
533
|
+
function Tr({ children, selected, noBg, onClick }) {
|
|
534
534
|
const wrapperRef = react$1.useRef(null);
|
|
535
535
|
const handleClick = (e) => {
|
|
536
536
|
if (!onClick) {
|
|
@@ -553,11 +553,26 @@ function Tr({ children, selected, onClick }) {
|
|
|
553
553
|
borderStyle: "solid",
|
|
554
554
|
borderWidth: 1,
|
|
555
555
|
borderColor: "transparent",
|
|
556
|
-
backgroundColor: selected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
557
|
-
|
|
556
|
+
backgroundColor: selected ? "var(--mantine-color-neutralColor-5)" : noBg ? "transparent" : "var(--mantine-color-neutralColor-3)",
|
|
557
|
+
borderBottom: selected || !noBg ? "1px solid transparent" : "1px solid var(--mantine-color-neutralColor-6)",
|
|
558
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
559
|
+
...noBg && {
|
|
560
|
+
borderRadius: 0,
|
|
561
|
+
"&:first-of-type": {
|
|
562
|
+
borderTopLeftRadius: 0,
|
|
563
|
+
borderBottomLeftRadius: 0
|
|
564
|
+
},
|
|
565
|
+
"&:last-child": {
|
|
566
|
+
borderTopRightRadius: 0,
|
|
567
|
+
borderBottomRightRadius: 0
|
|
568
|
+
}
|
|
569
|
+
}
|
|
558
570
|
},
|
|
559
571
|
"&:hover > td": {
|
|
560
|
-
backgroundColor: onClick ? "var(--mantine-color-neutralColor-
|
|
572
|
+
backgroundColor: onClick ? "var(--mantine-color-neutralColor-4)" : void 0
|
|
573
|
+
},
|
|
574
|
+
"&:last-child > td": {
|
|
575
|
+
borderBottom: "1px solid transparent"
|
|
561
576
|
}
|
|
562
577
|
};
|
|
563
578
|
},
|
|
@@ -565,7 +580,7 @@ function Tr({ children, selected, onClick }) {
|
|
|
565
580
|
}
|
|
566
581
|
);
|
|
567
582
|
}
|
|
568
|
-
function Table({ children }) {
|
|
583
|
+
function Table({ children, noSpacing = false }) {
|
|
569
584
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
570
585
|
"div",
|
|
571
586
|
{
|
|
@@ -579,7 +594,7 @@ function Table({ children }) {
|
|
|
579
594
|
css: (theme) => ({
|
|
580
595
|
width: "100%",
|
|
581
596
|
borderCollapse: "separate",
|
|
582
|
-
borderSpacing: `0 ${theme.spacing * 2}px
|
|
597
|
+
borderSpacing: noSpacing ? `0 ${theme.spacing * 2}px` : "0px",
|
|
583
598
|
background: "neutral.1"
|
|
584
599
|
}),
|
|
585
600
|
children
|
|
@@ -593,6 +608,63 @@ Table.Th = Th;
|
|
|
593
608
|
Table.TBody = TBody;
|
|
594
609
|
Table.Tr = Tr;
|
|
595
610
|
Table.Td = Td;
|
|
611
|
+
const Flex = react$1.forwardRef(
|
|
612
|
+
({
|
|
613
|
+
direction = "row",
|
|
614
|
+
align = "stretch",
|
|
615
|
+
justify = "flex-start",
|
|
616
|
+
gap = 0,
|
|
617
|
+
m = 0,
|
|
618
|
+
mt = 0,
|
|
619
|
+
mb = 0,
|
|
620
|
+
ml = 0,
|
|
621
|
+
mr = 0,
|
|
622
|
+
mx = 0,
|
|
623
|
+
my = 0,
|
|
624
|
+
p = 0,
|
|
625
|
+
pt = 0,
|
|
626
|
+
pb = 0,
|
|
627
|
+
pl = 0,
|
|
628
|
+
pr = 0,
|
|
629
|
+
px = 0,
|
|
630
|
+
py = 0,
|
|
631
|
+
bg,
|
|
632
|
+
radius = 0,
|
|
633
|
+
children,
|
|
634
|
+
...props
|
|
635
|
+
}, ref) => {
|
|
636
|
+
const hasIndividualPadding = pt !== 0 || pb !== 0 || pl !== 0 || pr !== 0 || px !== 0 || py !== 0;
|
|
637
|
+
const hasIndividualMargin = mt !== 0 || mb !== 0 || ml !== 0 || mr !== 0 || mx !== 0 || my !== 0;
|
|
638
|
+
const style = {
|
|
639
|
+
display: "flex",
|
|
640
|
+
flexDirection: direction,
|
|
641
|
+
alignItems: align,
|
|
642
|
+
justifyContent: justify,
|
|
643
|
+
gap,
|
|
644
|
+
backgroundColor: bg,
|
|
645
|
+
borderRadius: radius,
|
|
646
|
+
...props.style
|
|
647
|
+
};
|
|
648
|
+
if (hasIndividualMargin) {
|
|
649
|
+
if (mt !== 0 || my !== 0) style.marginTop = mt || my;
|
|
650
|
+
if (mb !== 0 || my !== 0) style.marginBottom = mb || my;
|
|
651
|
+
if (ml !== 0 || mx !== 0) style.marginLeft = ml || mx;
|
|
652
|
+
if (mr !== 0 || mx !== 0) style.marginRight = mr || mx;
|
|
653
|
+
} else if (m !== 0) {
|
|
654
|
+
style.margin = m;
|
|
655
|
+
}
|
|
656
|
+
if (hasIndividualPadding) {
|
|
657
|
+
if (pt !== 0 || py !== 0) style.paddingTop = pt || py;
|
|
658
|
+
if (pb !== 0 || py !== 0) style.paddingBottom = pb || py;
|
|
659
|
+
if (pl !== 0 || px !== 0) style.paddingLeft = pl || px;
|
|
660
|
+
if (pr !== 0 || px !== 0) style.paddingRight = pr || px;
|
|
661
|
+
} else if (p !== 0) {
|
|
662
|
+
style.padding = p;
|
|
663
|
+
}
|
|
664
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props, style, children });
|
|
665
|
+
}
|
|
666
|
+
);
|
|
667
|
+
Flex.displayName = "Flex";
|
|
596
668
|
const TRANSITION_DURATION = 250;
|
|
597
669
|
function AccordionTable({
|
|
598
670
|
items,
|
|
@@ -649,16 +721,12 @@ function AccordionTable({
|
|
|
649
721
|
core.Accordion.Item,
|
|
650
722
|
{
|
|
651
723
|
value: item.id.toString(),
|
|
652
|
-
css: ({ spacing
|
|
653
|
-
backgroundColor:
|
|
654
|
-
padding: spacing * 2,
|
|
724
|
+
css: ({ spacing }) => ({
|
|
725
|
+
backgroundColor: UsersSolid.getTransparentColor("neutralColor-5", 70),
|
|
655
726
|
borderRadius: spacing * 2,
|
|
656
727
|
borderWidth: 1,
|
|
657
728
|
borderStyle: "solid",
|
|
658
729
|
borderColor: "transparent",
|
|
659
|
-
"&.expanded, &.bordered": {
|
|
660
|
-
borderColor: colors.focus
|
|
661
|
-
},
|
|
662
730
|
"& .subtitle": {
|
|
663
731
|
opacity: 0,
|
|
664
732
|
height: 0,
|
|
@@ -688,10 +756,10 @@ function AccordionTable({
|
|
|
688
756
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
689
757
|
core.Box,
|
|
690
758
|
{
|
|
691
|
-
css: ({ spacing, radius
|
|
759
|
+
css: ({ spacing, radius }) => ({
|
|
692
760
|
height: 54,
|
|
693
761
|
padding: spacing,
|
|
694
|
-
backgroundColor:
|
|
762
|
+
backgroundColor: "transparent",
|
|
695
763
|
borderRadius: radius.small,
|
|
696
764
|
width: "100%",
|
|
697
765
|
display: "flex",
|
|
@@ -731,13 +799,13 @@ function AccordionTable({
|
|
|
731
799
|
}
|
|
732
800
|
),
|
|
733
801
|
/* @__PURE__ */ jsxRuntime.jsxs(Spacer, { vertical: true, distance: 0, alignItems: "start", children: [
|
|
734
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
735
|
-
item.subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
802
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { children: item.title }),
|
|
803
|
+
item.subtitle && /* @__PURE__ */ jsxRuntime.jsx(core.Text, { size: "xs", className: "subtitle", children: item.subtitle })
|
|
736
804
|
] })
|
|
737
805
|
] }),
|
|
738
806
|
/* @__PURE__ */ jsxRuntime.jsxs(Spacer, { vertical: true, alignItems: "end", children: [
|
|
739
|
-
item.rightTitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
740
|
-
item.rightSubtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
807
|
+
item.rightTitle && /* @__PURE__ */ jsxRuntime.jsx(core.Text, { className: "textValue", children: item.rightTitle }),
|
|
808
|
+
item.rightSubtitle && /* @__PURE__ */ jsxRuntime.jsx(core.Text, { className: "textValue subtitle", size: "xs", children: item.rightSubtitle })
|
|
741
809
|
] })
|
|
742
810
|
]
|
|
743
811
|
}
|
|
@@ -745,26 +813,15 @@ function AccordionTable({
|
|
|
745
813
|
}
|
|
746
814
|
),
|
|
747
815
|
/* @__PURE__ */ jsxRuntime.jsxs(core.Accordion.Panel, { children: [
|
|
748
|
-
item.subitems.data.length < 1 ? /* @__PURE__ */ jsxRuntime.jsx(core.Box, { css: ({ spacing }) => ({ padding: spacing * 2 }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
816
|
+
item.subitems.data.length < 1 ? /* @__PURE__ */ jsxRuntime.jsx(core.Box, { css: ({ spacing }) => ({ padding: spacing * 2 }), children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { ta: "center", children: "No data" }) }) : /* @__PURE__ */ jsxRuntime.jsxs(Table, { noSpacing: true, children: [
|
|
749
817
|
/* @__PURE__ */ jsxRuntime.jsx(Table.THead, { children: /* @__PURE__ */ jsxRuntime.jsxs(Table.Tr, { children: [
|
|
750
818
|
item.subitems.columns.map((column, index) => /* @__PURE__ */ jsxRuntime.jsx(Table.Th, { align: index === 0 ? "left" : "right", expand: column.expand, shrink: column.shrink, children: column.title }, column.title)),
|
|
751
|
-
showSelectColumn && /* @__PURE__ */ jsxRuntime.jsx(Table.Th, { align: "right", shrink: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
752
|
-
"
|
|
753
|
-
{
|
|
754
|
-
|
|
755
|
-
display: "flex",
|
|
756
|
-
justifyContent: "start",
|
|
757
|
-
alignItems: "center",
|
|
758
|
-
gap: 8
|
|
759
|
-
},
|
|
760
|
-
children: [
|
|
761
|
-
selectedAll && selectAll ? "Deselect" : "Select",
|
|
762
|
-
selectAll && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: selectedAll, onChange: (checked) => selectAll(checked) })
|
|
763
|
-
]
|
|
764
|
-
}
|
|
765
|
-
) })
|
|
819
|
+
showSelectColumn && /* @__PURE__ */ jsxRuntime.jsx(Table.Th, { align: "right", shrink: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "center", gap: 8, children: [
|
|
820
|
+
selectedAll && selectAll ? "Deselect" : "Select",
|
|
821
|
+
selectAll && /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: selectedAll, onChange: (checked) => selectAll(checked) })
|
|
822
|
+
] }) })
|
|
766
823
|
] }) }),
|
|
767
|
-
/* @__PURE__ */ jsxRuntime.jsx(Table.TBody, { children: item.subitems.data.map((row) => /* @__PURE__ */ jsxRuntime.jsxs(Table.Tr, { selected: selectedItems?.includes(row.id), onClick: onSelectItems ? () => handleSelectItems(row.id) : void 0, children: [
|
|
824
|
+
/* @__PURE__ */ jsxRuntime.jsx(Table.TBody, { children: item.subitems.data.map((row) => /* @__PURE__ */ jsxRuntime.jsxs(Table.Tr, { noBg: true, selected: selectedItems?.includes(row.id), onClick: onSelectItems ? () => handleSelectItems(row.id) : void 0, children: [
|
|
768
825
|
item.subitems.columns.map((column, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
769
826
|
Table.Td,
|
|
770
827
|
{
|
|
@@ -776,17 +833,7 @@ function AccordionTable({
|
|
|
776
833
|
},
|
|
777
834
|
column.title
|
|
778
835
|
)),
|
|
779
|
-
showSelectColumn && /* @__PURE__ */ jsxRuntime.jsx(Table.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
780
|
-
"div",
|
|
781
|
-
{
|
|
782
|
-
css: {
|
|
783
|
-
display: "flex",
|
|
784
|
-
justifyContent: "center",
|
|
785
|
-
alignItems: "center"
|
|
786
|
-
},
|
|
787
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: selectedItems?.includes(row.id), onChange: () => handleSelectItems(row.id) })
|
|
788
|
-
}
|
|
789
|
-
) })
|
|
836
|
+
showSelectColumn && /* @__PURE__ */ jsxRuntime.jsx(Table.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(Flex, { align: "center", justify: "center", children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, { checked: selectedItems?.includes(row.id), onChange: () => handleSelectItems(row.id) }) }) })
|
|
790
837
|
] }, row.id)) })
|
|
791
838
|
] }),
|
|
792
839
|
item.footer
|
|
@@ -798,8 +845,8 @@ function AccordionTable({
|
|
|
798
845
|
}
|
|
799
846
|
);
|
|
800
847
|
}
|
|
801
|
-
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
802
|
-
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
848
|
+
const Header$3 = react$1.lazy(() => Promise.resolve().then(() => require("./index-BOPdrL0z.cjs")));
|
|
849
|
+
const Footer = react$1.lazy(() => Promise.resolve().then(() => require("./index-Dn7Yp1ku.cjs")));
|
|
803
850
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
804
851
|
const hasContent = !!content || !!footer;
|
|
805
852
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -883,7 +930,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
883
930
|
}
|
|
884
931
|
const CARD_WIDTH$1 = 350;
|
|
885
932
|
const CARD_HEADER_HEIGHT = 158;
|
|
886
|
-
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
933
|
+
const Header$2 = react$1.lazy(() => Promise.resolve().then(() => require("./index-BNv7Wt6j.cjs")));
|
|
887
934
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
888
935
|
const wrapperRef = react$1.useRef(null);
|
|
889
936
|
const handleOnClick = react$1.useCallback(
|
|
@@ -1318,7 +1365,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1318
1365
|
document.body
|
|
1319
1366
|
);
|
|
1320
1367
|
}
|
|
1321
|
-
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
1368
|
+
const Badge = react$1.lazy(() => Promise.resolve().then(() => require("./index-Bzvm895X.cjs")));
|
|
1322
1369
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1323
1370
|
const shadowScrollRef = react$1.useRef(null);
|
|
1324
1371
|
const wrapperContentAreaRef = react$1.useRef(null);
|
|
@@ -1897,63 +1944,6 @@ function HtmlRender({ content, className }) {
|
|
|
1897
1944
|
const safeHTML = DOMPurify.sanitize(content, { FORBID_ATTR: ["style"] });
|
|
1898
1945
|
return /* @__PURE__ */ jsxRuntime.jsx(StyleDOMApplier, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className, dangerouslySetInnerHTML: { __html: safeHTML } }) });
|
|
1899
1946
|
}
|
|
1900
|
-
const Flex = react$1.forwardRef(
|
|
1901
|
-
({
|
|
1902
|
-
direction = "row",
|
|
1903
|
-
align = "stretch",
|
|
1904
|
-
justify = "flex-start",
|
|
1905
|
-
gap = 0,
|
|
1906
|
-
m = 0,
|
|
1907
|
-
mt = 0,
|
|
1908
|
-
mb = 0,
|
|
1909
|
-
ml = 0,
|
|
1910
|
-
mr = 0,
|
|
1911
|
-
mx = 0,
|
|
1912
|
-
my = 0,
|
|
1913
|
-
p = 0,
|
|
1914
|
-
pt = 0,
|
|
1915
|
-
pb = 0,
|
|
1916
|
-
pl = 0,
|
|
1917
|
-
pr = 0,
|
|
1918
|
-
px = 0,
|
|
1919
|
-
py = 0,
|
|
1920
|
-
bg,
|
|
1921
|
-
radius = 0,
|
|
1922
|
-
children,
|
|
1923
|
-
...props
|
|
1924
|
-
}, ref) => {
|
|
1925
|
-
const hasIndividualPadding = pt !== 0 || pb !== 0 || pl !== 0 || pr !== 0 || px !== 0 || py !== 0;
|
|
1926
|
-
const hasIndividualMargin = mt !== 0 || mb !== 0 || ml !== 0 || mr !== 0 || mx !== 0 || my !== 0;
|
|
1927
|
-
const style = {
|
|
1928
|
-
display: "flex",
|
|
1929
|
-
flexDirection: direction,
|
|
1930
|
-
alignItems: align,
|
|
1931
|
-
justifyContent: justify,
|
|
1932
|
-
gap,
|
|
1933
|
-
backgroundColor: bg,
|
|
1934
|
-
borderRadius: radius,
|
|
1935
|
-
...props.style
|
|
1936
|
-
};
|
|
1937
|
-
if (hasIndividualMargin) {
|
|
1938
|
-
if (mt !== 0 || my !== 0) style.marginTop = mt || my;
|
|
1939
|
-
if (mb !== 0 || my !== 0) style.marginBottom = mb || my;
|
|
1940
|
-
if (ml !== 0 || mx !== 0) style.marginLeft = ml || mx;
|
|
1941
|
-
if (mr !== 0 || mx !== 0) style.marginRight = mr || mx;
|
|
1942
|
-
} else if (m !== 0) {
|
|
1943
|
-
style.margin = m;
|
|
1944
|
-
}
|
|
1945
|
-
if (hasIndividualPadding) {
|
|
1946
|
-
if (pt !== 0 || py !== 0) style.paddingTop = pt || py;
|
|
1947
|
-
if (pb !== 0 || py !== 0) style.paddingBottom = pb || py;
|
|
1948
|
-
if (pl !== 0 || px !== 0) style.paddingLeft = pl || px;
|
|
1949
|
-
if (pr !== 0 || px !== 0) style.paddingRight = pr || px;
|
|
1950
|
-
} else if (p !== 0) {
|
|
1951
|
-
style.padding = p;
|
|
1952
|
-
}
|
|
1953
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props, style, children });
|
|
1954
|
-
}
|
|
1955
|
-
);
|
|
1956
|
-
Flex.displayName = "Flex";
|
|
1957
1947
|
function Item({ icon, label, disabled, active, onClick }) {
|
|
1958
1948
|
const IconComponent = icon;
|
|
1959
1949
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4250,20 +4240,20 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4250
4240
|
{
|
|
4251
4241
|
className: css.cx({ open: isOpen }),
|
|
4252
4242
|
style: { width },
|
|
4253
|
-
css: (
|
|
4243
|
+
css: () => ({
|
|
4254
4244
|
position: "relative",
|
|
4255
4245
|
display: "inline-flex",
|
|
4256
4246
|
flexDirection: "column",
|
|
4257
4247
|
"&.open > div": {
|
|
4258
|
-
backgroundColor:
|
|
4259
|
-
borderColor:
|
|
4248
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)",
|
|
4249
|
+
borderColor: "var(--mantine-color-neutralColor-6)",
|
|
4260
4250
|
borderBottomLeftRadius: 0,
|
|
4261
4251
|
borderBottomRightRadius: 0,
|
|
4262
|
-
borderBottomColor:
|
|
4252
|
+
borderBottomColor: "none",
|
|
4263
4253
|
boxSizing: "border-box"
|
|
4264
4254
|
},
|
|
4265
4255
|
"&.open > ul": {
|
|
4266
|
-
backgroundColor:
|
|
4256
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)",
|
|
4267
4257
|
display: "inline-flex"
|
|
4268
4258
|
}
|
|
4269
4259
|
}),
|
|
@@ -4314,7 +4304,7 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4314
4304
|
"ul",
|
|
4315
4305
|
{
|
|
4316
4306
|
...getMenuProps(),
|
|
4317
|
-
css: ({
|
|
4307
|
+
css: ({ colors, radius, spacing }) => ({
|
|
4318
4308
|
backgroundColor: colors.focusTransparent10,
|
|
4319
4309
|
listStyle: "none",
|
|
4320
4310
|
padding: 0,
|
|
@@ -4322,10 +4312,10 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4322
4312
|
borderRadius: radius.medium,
|
|
4323
4313
|
borderWidth: 1,
|
|
4324
4314
|
borderStyle: "solid",
|
|
4325
|
-
borderColor:
|
|
4315
|
+
borderColor: "var(--mantine-color-neutralColor-6)",
|
|
4326
4316
|
borderTopRightRadius: 0,
|
|
4327
4317
|
borderTopLeftRadius: 0,
|
|
4328
|
-
borderTopColor:
|
|
4318
|
+
borderTopColor: "var(--mantine-color-neutralColor-5)",
|
|
4329
4319
|
display: "none",
|
|
4330
4320
|
flexDirection: "column",
|
|
4331
4321
|
gap: spacing,
|
|
@@ -4366,7 +4356,7 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4366
4356
|
}
|
|
4367
4357
|
}),
|
|
4368
4358
|
...itemProps,
|
|
4369
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4359
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { children: item.label })
|
|
4370
4360
|
},
|
|
4371
4361
|
item.value
|
|
4372
4362
|
);
|
|
@@ -6034,13 +6024,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6034
6024
|
}
|
|
6035
6025
|
);
|
|
6036
6026
|
}
|
|
6037
|
-
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6038
|
-
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6039
|
-
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6027
|
+
const MainAction = react$1.lazy(() => Promise.resolve().then(() => require("./index-DGVkbm1G.cjs")));
|
|
6028
|
+
const Header$1 = react$1.lazy(() => Promise.resolve().then(() => require("./index-Bp3jax94.cjs")));
|
|
6029
|
+
const Content = react$1.lazy(() => Promise.resolve().then(() => require("./index-D5-ydt83.cjs")));
|
|
6040
6030
|
const Map = react$1.lazy(() => Promise.resolve().then(() => require("./index-D4PsPquZ.cjs")));
|
|
6041
6031
|
const CustomContent = react$1.lazy(() => Promise.resolve().then(() => require("./index-ByrCNpS2.cjs")));
|
|
6042
|
-
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6043
|
-
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-
|
|
6032
|
+
const Assets = react$1.lazy(() => Promise.resolve().then(() => require("./index-C81_pkCa.cjs")));
|
|
6033
|
+
const Actions = react$1.lazy(() => Promise.resolve().then(() => require("./index-znoKlTv8.cjs")));
|
|
6044
6034
|
const HOVER_BORDER_WIDTH = 1;
|
|
6045
6035
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6046
6036
|
const wrapperRef = react$1.useRef(null);
|
|
@@ -8142,12 +8132,12 @@ function Cell({ children, withImage, withDualImage, isFirstColumn, isLastColumn,
|
|
|
8142
8132
|
compact,
|
|
8143
8133
|
shrink
|
|
8144
8134
|
}),
|
|
8145
|
-
css: ({ spacing
|
|
8146
|
-
background: bg.card,
|
|
8135
|
+
css: ({ spacing }) => ({
|
|
8147
8136
|
paddingLeft: 0,
|
|
8148
8137
|
paddingRight: 0,
|
|
8149
|
-
borderTop:
|
|
8150
|
-
borderBottom:
|
|
8138
|
+
borderTop: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8139
|
+
borderBottom: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8140
|
+
border: "none",
|
|
8151
8141
|
paddingTop: spacing * 1.5,
|
|
8152
8142
|
paddingBottom: spacing * 1.5,
|
|
8153
8143
|
"&.compact": {
|
|
@@ -8155,7 +8145,6 @@ function Cell({ children, withImage, withDualImage, isFirstColumn, isLastColumn,
|
|
|
8155
8145
|
paddingBottom: 0
|
|
8156
8146
|
},
|
|
8157
8147
|
"&:last-child": {
|
|
8158
|
-
borderRight: `1px solid ${colors.focusTransparent20}`,
|
|
8159
8148
|
paddingRight: spacing * 2,
|
|
8160
8149
|
"&.compact": {
|
|
8161
8150
|
paddingRight: 0
|
|
@@ -8216,8 +8205,8 @@ function CellContent({
|
|
|
8216
8205
|
"emulate-checkbox-area": emulateCheckboxArea,
|
|
8217
8206
|
"vertical-align": verticalAlign
|
|
8218
8207
|
}),
|
|
8219
|
-
css: ({
|
|
8220
|
-
background:
|
|
8208
|
+
css: ({ spacing }) => ({
|
|
8209
|
+
background: "var(--mantine-color-neutralColor-6)",
|
|
8221
8210
|
height: 54,
|
|
8222
8211
|
padding: spacing,
|
|
8223
8212
|
display: "flex",
|
|
@@ -8262,8 +8251,7 @@ function IconRowCmp({ icon: Icon }) {
|
|
|
8262
8251
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8263
8252
|
"div",
|
|
8264
8253
|
{
|
|
8265
|
-
css: ({
|
|
8266
|
-
background: bg.cell,
|
|
8254
|
+
css: ({ spacing }) => ({
|
|
8267
8255
|
borderTopLeftRadius: spacing * 2,
|
|
8268
8256
|
borderBottomLeftRadius: spacing * 2,
|
|
8269
8257
|
display: "flex",
|
|
@@ -8460,6 +8448,7 @@ function TableList({
|
|
|
8460
8448
|
padding: spacing,
|
|
8461
8449
|
height: 38,
|
|
8462
8450
|
textAlign: "left",
|
|
8451
|
+
border: "none",
|
|
8463
8452
|
"&.first": {
|
|
8464
8453
|
paddingLeft: rowImageColumn ? spacing : spacing * 3,
|
|
8465
8454
|
"&.compact": {
|
|
@@ -8482,7 +8471,7 @@ function TableList({
|
|
|
8482
8471
|
}),
|
|
8483
8472
|
children: column.sortable ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: (() => {
|
|
8484
8473
|
const isSorted = sort?.field === column.field;
|
|
8485
|
-
const color = isSorted ? "
|
|
8474
|
+
const color = isSorted ? "accent.5" : "accent.3";
|
|
8486
8475
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8487
8476
|
"button",
|
|
8488
8477
|
{
|
|
@@ -8506,7 +8495,7 @@ function TableList({
|
|
|
8506
8495
|
direction: sort?.direction === "ASC" ? "DESC" : "ASC"
|
|
8507
8496
|
}),
|
|
8508
8497
|
children: [
|
|
8509
|
-
column.title !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8498
|
+
column.title !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(core.Text, { c: color, size: "sm", children: column.title }),
|
|
8510
8499
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8511
8500
|
"div",
|
|
8512
8501
|
{
|
|
@@ -8515,15 +8504,15 @@ function TableList({
|
|
|
8515
8504
|
height: spacing * 2
|
|
8516
8505
|
}),
|
|
8517
8506
|
children: [
|
|
8518
|
-
isSorted && sort?.direction === "ASC" && /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.ArrowUpSolid, {
|
|
8519
|
-
isSorted && sort?.direction === "DESC" && /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.ArrowDownSolid, {
|
|
8507
|
+
isSorted && sort?.direction === "ASC" && /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.ArrowUpSolid, { size: 16 }),
|
|
8508
|
+
isSorted && sort?.direction === "DESC" && /* @__PURE__ */ jsxRuntime.jsx(UsersSolid.ArrowDownSolid, { size: 16 })
|
|
8520
8509
|
]
|
|
8521
8510
|
}
|
|
8522
8511
|
)
|
|
8523
8512
|
]
|
|
8524
8513
|
}
|
|
8525
8514
|
);
|
|
8526
|
-
})() }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
8515
|
+
})() }) : /* @__PURE__ */ jsxRuntime.jsx(core.Text, { size: "sm", children: column.title })
|
|
8527
8516
|
},
|
|
8528
8517
|
column.field
|
|
8529
8518
|
);
|
|
@@ -8564,21 +8553,19 @@ function TableList({
|
|
|
8564
8553
|
selected: isRowSelected,
|
|
8565
8554
|
clickable: !!onRowClick
|
|
8566
8555
|
}),
|
|
8567
|
-
css: (
|
|
8556
|
+
css: () => ({
|
|
8568
8557
|
"& > td": {
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
"
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
"
|
|
8575
|
-
borderRight: "solid 1px transparent"
|
|
8576
|
-
}
|
|
8558
|
+
borderStyle: "solid",
|
|
8559
|
+
borderWidth: 1,
|
|
8560
|
+
borderColor: "transparent",
|
|
8561
|
+
border: "none",
|
|
8562
|
+
backgroundColor: isRowSelected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
8563
|
+
color: "var(--mantine-color-neutralColor-8)"
|
|
8577
8564
|
},
|
|
8578
8565
|
"& .subtitle": {
|
|
8579
8566
|
opacity: 0,
|
|
8580
8567
|
height: 0,
|
|
8581
|
-
transition:
|
|
8568
|
+
transition: "opacity 0.2s ease, height 0.2s ease"
|
|
8582
8569
|
},
|
|
8583
8570
|
"&:hover .subtitle": {
|
|
8584
8571
|
opacity: 1,
|
|
@@ -8589,29 +8576,16 @@ function TableList({
|
|
|
8589
8576
|
},
|
|
8590
8577
|
"&.selected": {
|
|
8591
8578
|
td: {
|
|
8592
|
-
borderTopColor:
|
|
8593
|
-
borderBottomColor:
|
|
8594
|
-
"&:first-of-type": {
|
|
8595
|
-
borderLeftColor: colors.focus
|
|
8596
|
-
},
|
|
8597
|
-
"&:last-of-type": {
|
|
8598
|
-
borderRightColor: colors.focus
|
|
8599
|
-
}
|
|
8579
|
+
borderTopColor: "var(--mantine-color-accent-5)",
|
|
8580
|
+
borderBottomColor: "var(--mantine-color-accent-5)"
|
|
8600
8581
|
}
|
|
8601
8582
|
},
|
|
8602
8583
|
"&.clickable": {
|
|
8603
|
-
cursor: "
|
|
8604
|
-
transition:
|
|
8584
|
+
cursor: "pointer",
|
|
8585
|
+
transition: "background-color 0.2s ease",
|
|
8605
8586
|
"&:hover": {
|
|
8606
8587
|
td: {
|
|
8607
|
-
|
|
8608
|
-
borderBottom: `solid 1px ${colors.focusTransparent50}`,
|
|
8609
|
-
"&:first-of-type": {
|
|
8610
|
-
borderLeft: `solid 1px ${colors.focusTransparent50}`
|
|
8611
|
-
},
|
|
8612
|
-
"&:last-of-type": {
|
|
8613
|
-
borderRight: `solid 1px ${colors.focusTransparent50}`
|
|
8614
|
-
}
|
|
8588
|
+
backgroundColor: "var(--mantine-color-neutralColor-1)"
|
|
8615
8589
|
}
|
|
8616
8590
|
}
|
|
8617
8591
|
}
|
|
@@ -8620,13 +8594,13 @@ function TableList({
|
|
|
8620
8594
|
IconRow !== false && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8621
8595
|
"td",
|
|
8622
8596
|
{
|
|
8623
|
-
css: ({ spacing
|
|
8624
|
-
background:
|
|
8597
|
+
css: ({ spacing }) => ({
|
|
8598
|
+
background: isRowSelected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
8625
8599
|
borderTopLeftRadius: spacing * 2,
|
|
8626
8600
|
borderBottomLeftRadius: spacing * 2,
|
|
8627
|
-
borderTop:
|
|
8628
|
-
borderBottom:
|
|
8629
|
-
borderLeft:
|
|
8601
|
+
borderTop: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8602
|
+
borderBottom: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8603
|
+
borderLeft: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8630
8604
|
position: "relative",
|
|
8631
8605
|
width: spacing * 5.75 + spacing * 2
|
|
8632
8606
|
}),
|
|
@@ -8685,8 +8659,8 @@ function TableList({
|
|
|
8685
8659
|
justifyContent: "center"
|
|
8686
8660
|
},
|
|
8687
8661
|
children: [
|
|
8688
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8689
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8662
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.Text, { children: row[column.field] }),
|
|
8663
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx(core.Text, { size: "xs", c: "accent", className: "subtitle", children: subtitle })
|
|
8690
8664
|
]
|
|
8691
8665
|
}
|
|
8692
8666
|
),
|
|
@@ -11331,4 +11305,4 @@ exports.UserMessage = UserMessage;
|
|
|
11331
11305
|
exports.WorkspaceModal = WorkspaceModal;
|
|
11332
11306
|
exports.cutText = cutText;
|
|
11333
11307
|
exports.isValidClick = isValidClick;
|
|
11334
|
-
//# sourceMappingURL=components-
|
|
11308
|
+
//# sourceMappingURL=components-D-S05IGO.cjs.map
|