@ixo/ui 0.1.4 → 0.1.6
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 +53 -53
- 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/index.d.ts.map +1 -1
- package/dist/{components-DXWFikYD.js → components-Bhg-kj6Z.js} +127 -141
- package/dist/components-Bhg-kj6Z.js.map +1 -0
- package/dist/{components-C2SQgRSz.cjs → components-YkshqT-o.cjs} +125 -139
- package/dist/components-YkshqT-o.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-BFBqYWEa.js → index-B5ijF3Tp.js} +3 -3
- package/dist/{index-BFBqYWEa.js.map → index-B5ijF3Tp.js.map} +1 -1
- package/dist/{index-Bs0LG269.js → index-BXOFC_0d.js} +2 -2
- package/dist/{index-Bs0LG269.js.map → index-BXOFC_0d.js.map} +1 -1
- package/dist/{index-Cj0ojt2H.cjs → index-Bgc3QI4b.cjs} +2 -2
- package/dist/{index-Cj0ojt2H.cjs.map → index-Bgc3QI4b.cjs.map} +1 -1
- package/dist/{index-BxL26n-_.cjs → index-Bgi4k5s-.cjs} +2 -2
- package/dist/{index-BxL26n-_.cjs.map → index-Bgi4k5s-.cjs.map} +1 -1
- package/dist/{index-DlkMWtvk.cjs → index-BrbjrA78.cjs} +3 -3
- package/dist/{index-DlkMWtvk.cjs.map → index-BrbjrA78.cjs.map} +1 -1
- package/dist/{index-C0_y2x26.cjs → index-BtjEYmib.cjs} +2 -2
- package/dist/{index-C0_y2x26.cjs.map → index-BtjEYmib.cjs.map} +1 -1
- package/dist/{index-NnvW31qR.js → index-Btt6Tm5Q.js} +2 -2
- package/dist/{index-NnvW31qR.js.map → index-Btt6Tm5Q.js.map} +1 -1
- package/dist/{index-DZyjcXlR.js → index-BtyXrnNq.js} +2 -2
- package/dist/{index-DZyjcXlR.js.map → index-BtyXrnNq.js.map} +1 -1
- package/dist/{index-CGE72zCr.cjs → index-C11vdiDH.cjs} +2 -2
- package/dist/{index-CGE72zCr.cjs.map → index-C11vdiDH.cjs.map} +1 -1
- package/dist/{index-Dk7hov8r.cjs → index-C6pNvdxk.cjs} +3 -3
- package/dist/{index-Dk7hov8r.cjs.map → index-C6pNvdxk.cjs.map} +1 -1
- package/dist/{index-BzlvAIua.cjs → index-CANUhwDW.cjs} +3 -3
- package/dist/{index-BzlvAIua.cjs.map → index-CANUhwDW.cjs.map} +1 -1
- package/dist/{index-C0M9EAJA.cjs → index-CHOB1QkU.cjs} +2 -2
- package/dist/{index-C0M9EAJA.cjs.map → index-CHOB1QkU.cjs.map} +1 -1
- package/dist/{index-CH_RGOrj.cjs → index-CR8fPC2b.cjs} +2 -2
- package/dist/{index-CH_RGOrj.cjs.map → index-CR8fPC2b.cjs.map} +1 -1
- package/dist/{index-CAdlSthO.js → index-C_IALXNA.js} +2 -2
- package/dist/{index-CAdlSthO.js.map → index-C_IALXNA.js.map} +1 -1
- package/dist/{index-CGRAANQ8.js → index-Chn5-4lW.js} +2 -2
- package/dist/{index-CGRAANQ8.js.map → index-Chn5-4lW.js.map} +1 -1
- package/dist/{index-DBQqIQa5.js → index-CskX6vn2.js} +2 -2
- package/dist/{index-DBQqIQa5.js.map → index-CskX6vn2.js.map} +1 -1
- package/dist/{index-DEJUkGPI.js → index-DCooV8oV.js} +3 -3
- package/dist/{index-DEJUkGPI.js.map → index-DCooV8oV.js.map} +1 -1
- package/dist/{index-DDO_4uZt.cjs → index-P3KEgBhv.cjs} +2 -2
- package/dist/{index-DDO_4uZt.cjs.map → index-P3KEgBhv.cjs.map} +1 -1
- package/dist/{index-7zomOTPG.js → index-lvV5wzhg.js} +2 -2
- package/dist/{index-7zomOTPG.js.map → index-lvV5wzhg.js.map} +1 -1
- package/dist/{index-D05G6loY.js → index-mrxwm6Xs.js} +3 -3
- package/dist/{index-D05G6loY.js.map → index-mrxwm6Xs.js.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-C2SQgRSz.cjs.map +0 -1
- package/dist/components-DXWFikYD.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { isString, toggle, get, isFunction, assign } from "radash";
|
|
3
3
|
import { useTheme, jsx as jsx$1, keyframes, ThemeProvider } from "@emotion/react";
|
|
4
|
-
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, L as Loading, P as PlusSolid, S as SearchSolid,
|
|
5
|
-
import { useState, useCallback, useRef, useEffect, Suspense, lazy,
|
|
4
|
+
import { g as getElementColor, A as AngleDownSolid, a as CheckSolid, C as Close, b as getTransparentColor, L as Loading, P as PlusSolid, S as SearchSolid, c as Assistant, d as ArrowUpSolid, E as EllipsisVSolid, e as ArrowLeftSolid, f as Canvas, H as HistorySolid, U as User, h as AngleLeftSolid, M as MinusCircleSolid, i as SettingsBarSolid, G as Globe, D as Dashboard, j as Groups, k as UserCircleSolid, l as Assets$1, m as Claims, n as Accounts, o as LinkedResources, p as Proposals, I as ImpactCredits, q as GoTo, r as Share, s as PiePiece, t as ImpactCertificates, u as CommentDotsSolid, v as CommentAltSolid, w as MicrophoneSolid, x as Command, y as ArrowCircleRightSolid, z as Protocols, B as Investments, O as Oracles, F as Projects, J as Daos, K as Star, N as AngleRightSolid, Q as Expand, R as LeafSolid, T as ArrowDownSolid, V as ArrowRightSolid, W as Play, X as CheckCircle, Y as Events, Z as ThumbsUpSolid, _ as CommentsSolid, $ as CopySolid, a0 as Hourglass, a1 as Act, a2 as Info$1, a3 as ClaimsW, a4 as TachometerAltSolid, a5 as UserCogSolid, a6 as UsersSolid, a7 as EllipsisHSolid } from "./UsersSolid-BAHkDzh8.js";
|
|
5
|
+
import { useState, useCallback, useRef, forwardRef, useEffect, Suspense, lazy, useMemo, useId, Fragment as Fragment$1, useLayoutEffect, useImperativeHandle, memo } from "react";
|
|
6
6
|
import { T as TAG_SMALL_HEIGHT, D as DEFAULT_ICON_SIZE } from "./constants-B7xlU8b8.js";
|
|
7
|
-
import { Accordion as Accordion$1, Box, Image,
|
|
7
|
+
import { Accordion as Accordion$1, Box, Image, Text as Text$1, Popover, Badge as Badge$1, Center, AppShell, Skeleton, Stack as Stack$1, Tooltip as Tooltip$4, CloseButton, Group, Burger, Divider, ScrollArea, Space, Overlay } from "@mantine/core";
|
|
8
8
|
import { cx, css } from "@emotion/css";
|
|
9
9
|
import { createPortal } from "react-dom";
|
|
10
10
|
import DOMPurify from "dompurify";
|
|
@@ -507,7 +507,7 @@ function isValidClick(e, target) {
|
|
|
507
507
|
}
|
|
508
508
|
return true;
|
|
509
509
|
}
|
|
510
|
-
function Tr({ children, selected, onClick }) {
|
|
510
|
+
function Tr({ children, selected, noBg, onClick }) {
|
|
511
511
|
const wrapperRef = useRef(null);
|
|
512
512
|
const handleClick = (e) => {
|
|
513
513
|
if (!onClick) {
|
|
@@ -530,11 +530,26 @@ function Tr({ children, selected, onClick }) {
|
|
|
530
530
|
borderStyle: "solid",
|
|
531
531
|
borderWidth: 1,
|
|
532
532
|
borderColor: "transparent",
|
|
533
|
-
backgroundColor: selected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
534
|
-
|
|
533
|
+
backgroundColor: selected ? "var(--mantine-color-neutralColor-5)" : noBg ? "transparent" : "var(--mantine-color-neutralColor-3)",
|
|
534
|
+
borderBottom: selected || !noBg ? "1px solid transparent" : "1px solid var(--mantine-color-neutralColor-6)",
|
|
535
|
+
color: "var(--mantine-color-neutralColor-8)",
|
|
536
|
+
...noBg && {
|
|
537
|
+
borderRadius: 0,
|
|
538
|
+
"&:first-of-type": {
|
|
539
|
+
borderTopLeftRadius: 0,
|
|
540
|
+
borderBottomLeftRadius: 0
|
|
541
|
+
},
|
|
542
|
+
"&:last-child": {
|
|
543
|
+
borderTopRightRadius: 0,
|
|
544
|
+
borderBottomRightRadius: 0
|
|
545
|
+
}
|
|
546
|
+
}
|
|
535
547
|
},
|
|
536
548
|
"&:hover > td": {
|
|
537
|
-
backgroundColor: onClick ? "var(--mantine-color-neutralColor-
|
|
549
|
+
backgroundColor: onClick ? "var(--mantine-color-neutralColor-4)" : void 0
|
|
550
|
+
},
|
|
551
|
+
"&:last-child > td": {
|
|
552
|
+
borderBottom: "1px solid transparent"
|
|
538
553
|
}
|
|
539
554
|
};
|
|
540
555
|
},
|
|
@@ -542,7 +557,7 @@ function Tr({ children, selected, onClick }) {
|
|
|
542
557
|
}
|
|
543
558
|
);
|
|
544
559
|
}
|
|
545
|
-
function Table({ children }) {
|
|
560
|
+
function Table({ children, noSpacing = false }) {
|
|
546
561
|
return /* @__PURE__ */ jsx(
|
|
547
562
|
"div",
|
|
548
563
|
{
|
|
@@ -556,7 +571,7 @@ function Table({ children }) {
|
|
|
556
571
|
css: (theme) => ({
|
|
557
572
|
width: "100%",
|
|
558
573
|
borderCollapse: "separate",
|
|
559
|
-
borderSpacing: `0 ${theme.spacing * 2}px
|
|
574
|
+
borderSpacing: noSpacing ? `0 ${theme.spacing * 2}px` : "0px",
|
|
560
575
|
background: "neutral.1"
|
|
561
576
|
}),
|
|
562
577
|
children
|
|
@@ -570,6 +585,63 @@ Table.Th = Th;
|
|
|
570
585
|
Table.TBody = TBody;
|
|
571
586
|
Table.Tr = Tr;
|
|
572
587
|
Table.Td = Td;
|
|
588
|
+
const Flex = forwardRef(
|
|
589
|
+
({
|
|
590
|
+
direction = "row",
|
|
591
|
+
align = "stretch",
|
|
592
|
+
justify = "flex-start",
|
|
593
|
+
gap = 0,
|
|
594
|
+
m = 0,
|
|
595
|
+
mt = 0,
|
|
596
|
+
mb = 0,
|
|
597
|
+
ml = 0,
|
|
598
|
+
mr = 0,
|
|
599
|
+
mx = 0,
|
|
600
|
+
my = 0,
|
|
601
|
+
p = 0,
|
|
602
|
+
pt = 0,
|
|
603
|
+
pb = 0,
|
|
604
|
+
pl = 0,
|
|
605
|
+
pr = 0,
|
|
606
|
+
px = 0,
|
|
607
|
+
py = 0,
|
|
608
|
+
bg,
|
|
609
|
+
radius = 0,
|
|
610
|
+
children,
|
|
611
|
+
...props
|
|
612
|
+
}, ref) => {
|
|
613
|
+
const hasIndividualPadding = pt !== 0 || pb !== 0 || pl !== 0 || pr !== 0 || px !== 0 || py !== 0;
|
|
614
|
+
const hasIndividualMargin = mt !== 0 || mb !== 0 || ml !== 0 || mr !== 0 || mx !== 0 || my !== 0;
|
|
615
|
+
const style = {
|
|
616
|
+
display: "flex",
|
|
617
|
+
flexDirection: direction,
|
|
618
|
+
alignItems: align,
|
|
619
|
+
justifyContent: justify,
|
|
620
|
+
gap,
|
|
621
|
+
backgroundColor: bg,
|
|
622
|
+
borderRadius: radius,
|
|
623
|
+
...props.style
|
|
624
|
+
};
|
|
625
|
+
if (hasIndividualMargin) {
|
|
626
|
+
if (mt !== 0 || my !== 0) style.marginTop = mt || my;
|
|
627
|
+
if (mb !== 0 || my !== 0) style.marginBottom = mb || my;
|
|
628
|
+
if (ml !== 0 || mx !== 0) style.marginLeft = ml || mx;
|
|
629
|
+
if (mr !== 0 || mx !== 0) style.marginRight = mr || mx;
|
|
630
|
+
} else if (m !== 0) {
|
|
631
|
+
style.margin = m;
|
|
632
|
+
}
|
|
633
|
+
if (hasIndividualPadding) {
|
|
634
|
+
if (pt !== 0 || py !== 0) style.paddingTop = pt || py;
|
|
635
|
+
if (pb !== 0 || py !== 0) style.paddingBottom = pb || py;
|
|
636
|
+
if (pl !== 0 || px !== 0) style.paddingLeft = pl || px;
|
|
637
|
+
if (pr !== 0 || px !== 0) style.paddingRight = pr || px;
|
|
638
|
+
} else if (p !== 0) {
|
|
639
|
+
style.padding = p;
|
|
640
|
+
}
|
|
641
|
+
return /* @__PURE__ */ jsx("div", { ref, ...props, style, children });
|
|
642
|
+
}
|
|
643
|
+
);
|
|
644
|
+
Flex.displayName = "Flex";
|
|
573
645
|
const TRANSITION_DURATION = 250;
|
|
574
646
|
function AccordionTable({
|
|
575
647
|
items,
|
|
@@ -626,16 +698,12 @@ function AccordionTable({
|
|
|
626
698
|
Accordion$1.Item,
|
|
627
699
|
{
|
|
628
700
|
value: item.id.toString(),
|
|
629
|
-
css: ({ spacing
|
|
630
|
-
backgroundColor:
|
|
631
|
-
padding: spacing * 2,
|
|
701
|
+
css: ({ spacing }) => ({
|
|
702
|
+
backgroundColor: getTransparentColor("neutralColor-5", 70),
|
|
632
703
|
borderRadius: spacing * 2,
|
|
633
704
|
borderWidth: 1,
|
|
634
705
|
borderStyle: "solid",
|
|
635
706
|
borderColor: "transparent",
|
|
636
|
-
"&.expanded, &.bordered": {
|
|
637
|
-
borderColor: colors.focus
|
|
638
|
-
},
|
|
639
707
|
"& .subtitle": {
|
|
640
708
|
opacity: 0,
|
|
641
709
|
height: 0,
|
|
@@ -665,10 +733,10 @@ function AccordionTable({
|
|
|
665
733
|
children: /* @__PURE__ */ jsxs(
|
|
666
734
|
Box,
|
|
667
735
|
{
|
|
668
|
-
css: ({ spacing, radius
|
|
736
|
+
css: ({ spacing, radius }) => ({
|
|
669
737
|
height: 54,
|
|
670
738
|
padding: spacing,
|
|
671
|
-
backgroundColor:
|
|
739
|
+
backgroundColor: "transparent",
|
|
672
740
|
borderRadius: radius.small,
|
|
673
741
|
width: "100%",
|
|
674
742
|
display: "flex",
|
|
@@ -708,13 +776,13 @@ function AccordionTable({
|
|
|
708
776
|
}
|
|
709
777
|
),
|
|
710
778
|
/* @__PURE__ */ jsxs(Spacer, { vertical: true, distance: 0, alignItems: "start", children: [
|
|
711
|
-
/* @__PURE__ */ jsx(
|
|
712
|
-
item.subtitle && /* @__PURE__ */ jsx(
|
|
779
|
+
/* @__PURE__ */ jsx(Text$1, { children: item.title }),
|
|
780
|
+
item.subtitle && /* @__PURE__ */ jsx(Text$1, { size: "xs", className: "subtitle", children: item.subtitle })
|
|
713
781
|
] })
|
|
714
782
|
] }),
|
|
715
783
|
/* @__PURE__ */ jsxs(Spacer, { vertical: true, alignItems: "end", children: [
|
|
716
|
-
item.rightTitle && /* @__PURE__ */ jsx(
|
|
717
|
-
item.rightSubtitle && /* @__PURE__ */ jsx(
|
|
784
|
+
item.rightTitle && /* @__PURE__ */ jsx(Text$1, { className: "textValue", children: item.rightTitle }),
|
|
785
|
+
item.rightSubtitle && /* @__PURE__ */ jsx(Text$1, { className: "textValue subtitle", size: "xs", children: item.rightSubtitle })
|
|
718
786
|
] })
|
|
719
787
|
]
|
|
720
788
|
}
|
|
@@ -722,26 +790,15 @@ function AccordionTable({
|
|
|
722
790
|
}
|
|
723
791
|
),
|
|
724
792
|
/* @__PURE__ */ jsxs(Accordion$1.Panel, { children: [
|
|
725
|
-
item.subitems.data.length < 1 ? /* @__PURE__ */ jsx(Box, { css: ({ spacing }) => ({ padding: spacing * 2 }), children: /* @__PURE__ */ jsx(
|
|
793
|
+
item.subitems.data.length < 1 ? /* @__PURE__ */ jsx(Box, { css: ({ spacing }) => ({ padding: spacing * 2 }), children: /* @__PURE__ */ jsx(Text$1, { ta: "center", children: "No data" }) }) : /* @__PURE__ */ jsxs(Table, { noSpacing: true, children: [
|
|
726
794
|
/* @__PURE__ */ jsx(Table.THead, { children: /* @__PURE__ */ jsxs(Table.Tr, { children: [
|
|
727
795
|
item.subitems.columns.map((column, index) => /* @__PURE__ */ jsx(Table.Th, { align: index === 0 ? "left" : "right", expand: column.expand, shrink: column.shrink, children: column.title }, column.title)),
|
|
728
|
-
showSelectColumn && /* @__PURE__ */ jsx(Table.Th, { align: "right", shrink: true, children: /* @__PURE__ */ jsxs(
|
|
729
|
-
"
|
|
730
|
-
{
|
|
731
|
-
|
|
732
|
-
display: "flex",
|
|
733
|
-
justifyContent: "start",
|
|
734
|
-
alignItems: "center",
|
|
735
|
-
gap: 8
|
|
736
|
-
},
|
|
737
|
-
children: [
|
|
738
|
-
selectedAll && selectAll ? "Deselect" : "Select",
|
|
739
|
-
selectAll && /* @__PURE__ */ jsx(Checkbox, { checked: selectedAll, onChange: (checked) => selectAll(checked) })
|
|
740
|
-
]
|
|
741
|
-
}
|
|
742
|
-
) })
|
|
796
|
+
showSelectColumn && /* @__PURE__ */ jsx(Table.Th, { align: "right", shrink: true, children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 8, children: [
|
|
797
|
+
selectedAll && selectAll ? "Deselect" : "Select",
|
|
798
|
+
selectAll && /* @__PURE__ */ jsx(Checkbox, { checked: selectedAll, onChange: (checked) => selectAll(checked) })
|
|
799
|
+
] }) })
|
|
743
800
|
] }) }),
|
|
744
|
-
/* @__PURE__ */ jsx(Table.TBody, { children: item.subitems.data.map((row) => /* @__PURE__ */ jsxs(Table.Tr, { selected: selectedItems?.includes(row.id), onClick: onSelectItems ? () => handleSelectItems(row.id) : void 0, children: [
|
|
801
|
+
/* @__PURE__ */ jsx(Table.TBody, { children: item.subitems.data.map((row) => /* @__PURE__ */ jsxs(Table.Tr, { noBg: true, selected: selectedItems?.includes(row.id), onClick: onSelectItems ? () => handleSelectItems(row.id) : void 0, children: [
|
|
745
802
|
item.subitems.columns.map((column, index) => /* @__PURE__ */ jsx(
|
|
746
803
|
Table.Td,
|
|
747
804
|
{
|
|
@@ -753,17 +810,7 @@ function AccordionTable({
|
|
|
753
810
|
},
|
|
754
811
|
column.title
|
|
755
812
|
)),
|
|
756
|
-
showSelectColumn && /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(
|
|
757
|
-
"div",
|
|
758
|
-
{
|
|
759
|
-
css: {
|
|
760
|
-
display: "flex",
|
|
761
|
-
justifyContent: "center",
|
|
762
|
-
alignItems: "center"
|
|
763
|
-
},
|
|
764
|
-
children: /* @__PURE__ */ jsx(Checkbox, { checked: selectedItems?.includes(row.id), onChange: () => handleSelectItems(row.id) })
|
|
765
|
-
}
|
|
766
|
-
) })
|
|
813
|
+
showSelectColumn && /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: /* @__PURE__ */ jsx(Checkbox, { checked: selectedItems?.includes(row.id), onChange: () => handleSelectItems(row.id) }) }) })
|
|
767
814
|
] }, row.id)) })
|
|
768
815
|
] }),
|
|
769
816
|
item.footer
|
|
@@ -775,8 +822,8 @@ function AccordionTable({
|
|
|
775
822
|
}
|
|
776
823
|
);
|
|
777
824
|
}
|
|
778
|
-
const Header$3 = lazy(() => import("./index-
|
|
779
|
-
const Footer = lazy(() => import("./index-
|
|
825
|
+
const Header$3 = lazy(() => import("./index-DCooV8oV.js"));
|
|
826
|
+
const Footer = lazy(() => import("./index-B5ijF3Tp.js"));
|
|
780
827
|
function ActionCard({ header, content, footer, useHoverMode = false }) {
|
|
781
828
|
const hasContent = !!content || !!footer;
|
|
782
829
|
const initialVisibility = footer?.startHidden !== true;
|
|
@@ -860,7 +907,7 @@ function Loader({ size, color = "primary" }) {
|
|
|
860
907
|
}
|
|
861
908
|
const CARD_WIDTH$1 = 350;
|
|
862
909
|
const CARD_HEADER_HEIGHT = 158;
|
|
863
|
-
const Header$2 = lazy(() => import("./index-
|
|
910
|
+
const Header$2 = lazy(() => import("./index-C_IALXNA.js"));
|
|
864
911
|
function Card({ children, className, contentClassName, roundedBottom, noPadding = false, fullWidth = false, header, wrapperSx, onClick }) {
|
|
865
912
|
const wrapperRef = useRef(null);
|
|
866
913
|
const handleOnClick = useCallback(
|
|
@@ -1295,7 +1342,7 @@ function ModalSheet({ isOpen, children, hideHandler, zIndex, onRequestHide, onRe
|
|
|
1295
1342
|
document.body
|
|
1296
1343
|
);
|
|
1297
1344
|
}
|
|
1298
|
-
const Badge = lazy(() => import("./index-
|
|
1345
|
+
const Badge = lazy(() => import("./index-BXOFC_0d.js"));
|
|
1299
1346
|
function ActionSheet({ children, isOpen, header, navMenu = void 0, onRequestHide, onRequestShow }) {
|
|
1300
1347
|
const shadowScrollRef = useRef(null);
|
|
1301
1348
|
const wrapperContentAreaRef = useRef(null);
|
|
@@ -1874,63 +1921,6 @@ function HtmlRender({ content, className }) {
|
|
|
1874
1921
|
const safeHTML = DOMPurify.sanitize(content, { FORBID_ATTR: ["style"] });
|
|
1875
1922
|
return /* @__PURE__ */ jsx(StyleDOMApplier, { children: /* @__PURE__ */ jsx("div", { className, dangerouslySetInnerHTML: { __html: safeHTML } }) });
|
|
1876
1923
|
}
|
|
1877
|
-
const Flex = forwardRef(
|
|
1878
|
-
({
|
|
1879
|
-
direction = "row",
|
|
1880
|
-
align = "stretch",
|
|
1881
|
-
justify = "flex-start",
|
|
1882
|
-
gap = 0,
|
|
1883
|
-
m = 0,
|
|
1884
|
-
mt = 0,
|
|
1885
|
-
mb = 0,
|
|
1886
|
-
ml = 0,
|
|
1887
|
-
mr = 0,
|
|
1888
|
-
mx = 0,
|
|
1889
|
-
my = 0,
|
|
1890
|
-
p = 0,
|
|
1891
|
-
pt = 0,
|
|
1892
|
-
pb = 0,
|
|
1893
|
-
pl = 0,
|
|
1894
|
-
pr = 0,
|
|
1895
|
-
px = 0,
|
|
1896
|
-
py = 0,
|
|
1897
|
-
bg,
|
|
1898
|
-
radius = 0,
|
|
1899
|
-
children,
|
|
1900
|
-
...props
|
|
1901
|
-
}, ref) => {
|
|
1902
|
-
const hasIndividualPadding = pt !== 0 || pb !== 0 || pl !== 0 || pr !== 0 || px !== 0 || py !== 0;
|
|
1903
|
-
const hasIndividualMargin = mt !== 0 || mb !== 0 || ml !== 0 || mr !== 0 || mx !== 0 || my !== 0;
|
|
1904
|
-
const style = {
|
|
1905
|
-
display: "flex",
|
|
1906
|
-
flexDirection: direction,
|
|
1907
|
-
alignItems: align,
|
|
1908
|
-
justifyContent: justify,
|
|
1909
|
-
gap,
|
|
1910
|
-
backgroundColor: bg,
|
|
1911
|
-
borderRadius: radius,
|
|
1912
|
-
...props.style
|
|
1913
|
-
};
|
|
1914
|
-
if (hasIndividualMargin) {
|
|
1915
|
-
if (mt !== 0 || my !== 0) style.marginTop = mt || my;
|
|
1916
|
-
if (mb !== 0 || my !== 0) style.marginBottom = mb || my;
|
|
1917
|
-
if (ml !== 0 || mx !== 0) style.marginLeft = ml || mx;
|
|
1918
|
-
if (mr !== 0 || mx !== 0) style.marginRight = mr || mx;
|
|
1919
|
-
} else if (m !== 0) {
|
|
1920
|
-
style.margin = m;
|
|
1921
|
-
}
|
|
1922
|
-
if (hasIndividualPadding) {
|
|
1923
|
-
if (pt !== 0 || py !== 0) style.paddingTop = pt || py;
|
|
1924
|
-
if (pb !== 0 || py !== 0) style.paddingBottom = pb || py;
|
|
1925
|
-
if (pl !== 0 || px !== 0) style.paddingLeft = pl || px;
|
|
1926
|
-
if (pr !== 0 || px !== 0) style.paddingRight = pr || px;
|
|
1927
|
-
} else if (p !== 0) {
|
|
1928
|
-
style.padding = p;
|
|
1929
|
-
}
|
|
1930
|
-
return /* @__PURE__ */ jsx("div", { ref, ...props, style, children });
|
|
1931
|
-
}
|
|
1932
|
-
);
|
|
1933
|
-
Flex.displayName = "Flex";
|
|
1934
1924
|
function Item({ icon, label, disabled, active, onClick }) {
|
|
1935
1925
|
const IconComponent = icon;
|
|
1936
1926
|
return /* @__PURE__ */ jsx(
|
|
@@ -2195,7 +2185,7 @@ function Avatar({ src, rounded = true, size = 62, did }) {
|
|
|
2195
2185
|
}
|
|
2196
2186
|
return /* @__PURE__ */ jsx(User, { css: ({ text }) => ({ ...css2, backgroundColor: text.secondary }) });
|
|
2197
2187
|
}
|
|
2198
|
-
const MIN_WIDTH =
|
|
2188
|
+
const MIN_WIDTH = 360;
|
|
2199
2189
|
const MAX_WIDTH = 700;
|
|
2200
2190
|
function AsideResizable({ children, navbarWidth, asideMaximized, asideCollapsed = false, onAsideToggle, width = 450, onWidthChange, onMaxExpand }) {
|
|
2201
2191
|
const [isResizing, setIsResizing] = useState(false);
|
|
@@ -4227,20 +4217,20 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4227
4217
|
{
|
|
4228
4218
|
className: cx({ open: isOpen }),
|
|
4229
4219
|
style: { width },
|
|
4230
|
-
css: (
|
|
4220
|
+
css: () => ({
|
|
4231
4221
|
position: "relative",
|
|
4232
4222
|
display: "inline-flex",
|
|
4233
4223
|
flexDirection: "column",
|
|
4234
4224
|
"&.open > div": {
|
|
4235
|
-
backgroundColor:
|
|
4236
|
-
borderColor:
|
|
4225
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)",
|
|
4226
|
+
borderColor: "var(--mantine-color-neutralColor-6)",
|
|
4237
4227
|
borderBottomLeftRadius: 0,
|
|
4238
4228
|
borderBottomRightRadius: 0,
|
|
4239
|
-
borderBottomColor:
|
|
4229
|
+
borderBottomColor: "none",
|
|
4240
4230
|
boxSizing: "border-box"
|
|
4241
4231
|
},
|
|
4242
4232
|
"&.open > ul": {
|
|
4243
|
-
backgroundColor:
|
|
4233
|
+
backgroundColor: "var(--mantine-color-neutralColor-5)",
|
|
4244
4234
|
display: "inline-flex"
|
|
4245
4235
|
}
|
|
4246
4236
|
}),
|
|
@@ -4291,7 +4281,7 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4291
4281
|
"ul",
|
|
4292
4282
|
{
|
|
4293
4283
|
...getMenuProps(),
|
|
4294
|
-
css: ({
|
|
4284
|
+
css: ({ colors, radius, spacing }) => ({
|
|
4295
4285
|
backgroundColor: colors.focusTransparent10,
|
|
4296
4286
|
listStyle: "none",
|
|
4297
4287
|
padding: 0,
|
|
@@ -4299,10 +4289,10 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4299
4289
|
borderRadius: radius.medium,
|
|
4300
4290
|
borderWidth: 1,
|
|
4301
4291
|
borderStyle: "solid",
|
|
4302
|
-
borderColor:
|
|
4292
|
+
borderColor: "var(--mantine-color-neutralColor-6)",
|
|
4303
4293
|
borderTopRightRadius: 0,
|
|
4304
4294
|
borderTopLeftRadius: 0,
|
|
4305
|
-
borderTopColor:
|
|
4295
|
+
borderTopColor: "var(--mantine-color-neutralColor-5)",
|
|
4306
4296
|
display: "none",
|
|
4307
4297
|
flexDirection: "column",
|
|
4308
4298
|
gap: spacing,
|
|
@@ -4343,7 +4333,7 @@ function DropDown({ items, width = 162, placeholder = "Select", icon: Icon, disa
|
|
|
4343
4333
|
}
|
|
4344
4334
|
}),
|
|
4345
4335
|
...itemProps,
|
|
4346
|
-
children: /* @__PURE__ */ jsx(
|
|
4336
|
+
children: /* @__PURE__ */ jsx(Text$1, { children: item.label })
|
|
4347
4337
|
},
|
|
4348
4338
|
item.value
|
|
4349
4339
|
);
|
|
@@ -6011,13 +6001,13 @@ function ActionButton({ onClick, left, right }) {
|
|
|
6011
6001
|
}
|
|
6012
6002
|
);
|
|
6013
6003
|
}
|
|
6014
|
-
const MainAction = lazy(() => import("./index-
|
|
6015
|
-
const Header$1 = lazy(() => import("./index-
|
|
6016
|
-
const Content = lazy(() => import("./index-
|
|
6004
|
+
const MainAction = lazy(() => import("./index-BtyXrnNq.js"));
|
|
6005
|
+
const Header$1 = lazy(() => import("./index-lvV5wzhg.js"));
|
|
6006
|
+
const Content = lazy(() => import("./index-Chn5-4lW.js"));
|
|
6017
6007
|
const Map = lazy(() => import("./index-D5Ufmf-s.js"));
|
|
6018
6008
|
const CustomContent = lazy(() => import("./index-DsYjW_4y.js"));
|
|
6019
|
-
const Assets = lazy(() => import("./index-
|
|
6020
|
-
const Actions = lazy(() => import("./index-
|
|
6009
|
+
const Assets = lazy(() => import("./index-CskX6vn2.js"));
|
|
6010
|
+
const Actions = lazy(() => import("./index-mrxwm6Xs.js"));
|
|
6021
6011
|
const HOVER_BORDER_WIDTH = 1;
|
|
6022
6012
|
function SodaCardCmp({ numSelected = 0, expanded = true, mainAction, header, content, map, customContent, customFooter, actions, assets, onClick }, ref) {
|
|
6023
6013
|
const wrapperRef = useRef(null);
|
|
@@ -8124,6 +8114,7 @@ function Cell({ children, withImage, withDualImage, isFirstColumn, isLastColumn,
|
|
|
8124
8114
|
paddingRight: 0,
|
|
8125
8115
|
borderTop: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8126
8116
|
borderBottom: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8117
|
+
border: "none",
|
|
8127
8118
|
paddingTop: spacing * 1.5,
|
|
8128
8119
|
paddingBottom: spacing * 1.5,
|
|
8129
8120
|
"&.compact": {
|
|
@@ -8131,7 +8122,6 @@ function Cell({ children, withImage, withDualImage, isFirstColumn, isLastColumn,
|
|
|
8131
8122
|
paddingBottom: 0
|
|
8132
8123
|
},
|
|
8133
8124
|
"&:last-child": {
|
|
8134
|
-
borderRight: "1px solid var(--mantine-color-neutralColor-6)",
|
|
8135
8125
|
paddingRight: spacing * 2,
|
|
8136
8126
|
"&.compact": {
|
|
8137
8127
|
paddingRight: 0
|
|
@@ -8435,6 +8425,7 @@ function TableList({
|
|
|
8435
8425
|
padding: spacing,
|
|
8436
8426
|
height: 38,
|
|
8437
8427
|
textAlign: "left",
|
|
8428
|
+
border: "none",
|
|
8438
8429
|
"&.first": {
|
|
8439
8430
|
paddingLeft: rowImageColumn ? spacing : spacing * 3,
|
|
8440
8431
|
"&.compact": {
|
|
@@ -8457,7 +8448,7 @@ function TableList({
|
|
|
8457
8448
|
}),
|
|
8458
8449
|
children: column.sortable ? /* @__PURE__ */ jsx(Fragment, { children: (() => {
|
|
8459
8450
|
const isSorted = sort?.field === column.field;
|
|
8460
|
-
const color = isSorted ? "
|
|
8451
|
+
const color = isSorted ? "accent.5" : "accent.3";
|
|
8461
8452
|
return /* @__PURE__ */ jsxs(
|
|
8462
8453
|
"button",
|
|
8463
8454
|
{
|
|
@@ -8481,7 +8472,7 @@ function TableList({
|
|
|
8481
8472
|
direction: sort?.direction === "ASC" ? "DESC" : "ASC"
|
|
8482
8473
|
}),
|
|
8483
8474
|
children: [
|
|
8484
|
-
column.title !== void 0 && /* @__PURE__ */ jsx(
|
|
8475
|
+
column.title !== void 0 && /* @__PURE__ */ jsx(Text$1, { c: color, size: "sm", children: column.title }),
|
|
8485
8476
|
/* @__PURE__ */ jsxs(
|
|
8486
8477
|
"div",
|
|
8487
8478
|
{
|
|
@@ -8490,15 +8481,15 @@ function TableList({
|
|
|
8490
8481
|
height: spacing * 2
|
|
8491
8482
|
}),
|
|
8492
8483
|
children: [
|
|
8493
|
-
isSorted && sort?.direction === "ASC" && /* @__PURE__ */ jsx(ArrowUpSolid, {
|
|
8494
|
-
isSorted && sort?.direction === "DESC" && /* @__PURE__ */ jsx(ArrowDownSolid, {
|
|
8484
|
+
isSorted && sort?.direction === "ASC" && /* @__PURE__ */ jsx(ArrowUpSolid, { size: 16 }),
|
|
8485
|
+
isSorted && sort?.direction === "DESC" && /* @__PURE__ */ jsx(ArrowDownSolid, { size: 16 })
|
|
8495
8486
|
]
|
|
8496
8487
|
}
|
|
8497
8488
|
)
|
|
8498
8489
|
]
|
|
8499
8490
|
}
|
|
8500
8491
|
);
|
|
8501
|
-
})() }) : /* @__PURE__ */ jsx(
|
|
8492
|
+
})() }) : /* @__PURE__ */ jsx(Text$1, { size: "sm", children: column.title })
|
|
8502
8493
|
},
|
|
8503
8494
|
column.field
|
|
8504
8495
|
);
|
|
@@ -8544,6 +8535,7 @@ function TableList({
|
|
|
8544
8535
|
borderStyle: "solid",
|
|
8545
8536
|
borderWidth: 1,
|
|
8546
8537
|
borderColor: "transparent",
|
|
8538
|
+
border: "none",
|
|
8547
8539
|
backgroundColor: isRowSelected ? "var(--mantine-color-neutralColor-5)" : "var(--mantine-color-neutralColor-3)",
|
|
8548
8540
|
color: "var(--mantine-color-neutralColor-8)"
|
|
8549
8541
|
},
|
|
@@ -8562,13 +8554,7 @@ function TableList({
|
|
|
8562
8554
|
"&.selected": {
|
|
8563
8555
|
td: {
|
|
8564
8556
|
borderTopColor: "var(--mantine-color-accent-5)",
|
|
8565
|
-
borderBottomColor: "var(--mantine-color-accent-5)"
|
|
8566
|
-
"&:first-of-type": {
|
|
8567
|
-
borderLeftColor: "var(--mantine-color-accent-5)"
|
|
8568
|
-
},
|
|
8569
|
-
"&:last-of-type": {
|
|
8570
|
-
borderRightColor: "var(--mantine-color-accent-5)"
|
|
8571
|
-
}
|
|
8557
|
+
borderBottomColor: "var(--mantine-color-accent-5)"
|
|
8572
8558
|
}
|
|
8573
8559
|
},
|
|
8574
8560
|
"&.clickable": {
|
|
@@ -8650,8 +8636,8 @@ function TableList({
|
|
|
8650
8636
|
justifyContent: "center"
|
|
8651
8637
|
},
|
|
8652
8638
|
children: [
|
|
8653
|
-
/* @__PURE__ */ jsx(
|
|
8654
|
-
subtitle && /* @__PURE__ */ jsx(
|
|
8639
|
+
/* @__PURE__ */ jsx(Text$1, { children: row[column.field] }),
|
|
8640
|
+
subtitle && /* @__PURE__ */ jsx(Text$1, { size: "xs", c: "accent", className: "subtitle", children: subtitle })
|
|
8655
8641
|
]
|
|
8656
8642
|
}
|
|
8657
8643
|
),
|
|
@@ -11298,4 +11284,4 @@ export {
|
|
|
11298
11284
|
CardHero as y,
|
|
11299
11285
|
CardSelector as z
|
|
11300
11286
|
};
|
|
11301
|
-
//# sourceMappingURL=components-
|
|
11287
|
+
//# sourceMappingURL=components-Bhg-kj6Z.js.map
|