@streamoid/ui 0.6.11 → 0.6.13
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/index.css +362 -0
- package/dist/index.d.mts +78 -3
- package/dist/index.d.ts +78 -3
- package/dist/index.js +876 -346
- package/dist/index.mjs +867 -337
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
ScArtifaxInvite: () => ScArtifaxInvite,
|
|
38
38
|
ScArtifaxSidebar: () => ScArtifaxSidebar,
|
|
39
39
|
ScBadges: () => ScBadges,
|
|
40
|
+
ScBeacon: () => ScBeacon,
|
|
40
41
|
ScBillingHistoryHeader: () => ScBillingHistoryHeader,
|
|
41
42
|
ScBillingHistoryTableList: () => ScBillingHistoryTableList,
|
|
42
43
|
ScBillingLogsTableHeader: () => ScBillingLogsTableHeader,
|
|
@@ -47,6 +48,8 @@ __export(index_exports, {
|
|
|
47
48
|
ScCalendarDateComps: () => ScCalendarDateComps,
|
|
48
49
|
ScCatalogixInvite: () => ScCatalogixInvite,
|
|
49
50
|
ScCatalogixSidebar: () => ScCatalogixSidebar,
|
|
51
|
+
ScCatalogixStoreHeader: () => ScCatalogixStoreHeader,
|
|
52
|
+
ScCatalogixStoreTableList: () => ScCatalogixStoreTableList,
|
|
50
53
|
ScCheckField: () => ScCheckField,
|
|
51
54
|
ScCheckbox: () => ScCheckbox,
|
|
52
55
|
ScCreditsUsageCard: () => ScCreditsUsageCard,
|
|
@@ -62,6 +65,7 @@ __export(index_exports, {
|
|
|
62
65
|
ScImageField: () => ScImageField,
|
|
63
66
|
ScInChatList: () => ScInChatList,
|
|
64
67
|
ScInChatMessage: () => ScInChatMessage,
|
|
68
|
+
ScInfoPopup: () => ScInfoPopup,
|
|
65
69
|
ScIntialProfileCover: () => ScIntialProfileCover,
|
|
66
70
|
ScLogoUnit: () => ScLogoUnit,
|
|
67
71
|
ScMediaApproval: () => ScMediaApproval,
|
|
@@ -69,8 +73,10 @@ __export(index_exports, {
|
|
|
69
73
|
ScMenuOptions: () => ScMenuOptions,
|
|
70
74
|
ScMobileBottomAction: () => ScMobileBottomAction,
|
|
71
75
|
ScMobileTopNav: () => ScMobileTopNav,
|
|
76
|
+
ScModal: () => ScModal,
|
|
72
77
|
ScOnlyField: () => ScOnlyField,
|
|
73
78
|
ScOnlyIcon: () => ScOnlyIcon,
|
|
79
|
+
ScPagination: () => ScPagination,
|
|
74
80
|
ScPairtext: () => ScPairtext,
|
|
75
81
|
ScPendingAction: () => ScPendingAction,
|
|
76
82
|
ScPhtogenixInvite: () => ScPhtogenixInvite,
|
|
@@ -104,6 +110,7 @@ __export(index_exports, {
|
|
|
104
110
|
ScSidebarProfile: () => ScSidebarProfile,
|
|
105
111
|
ScSidebarSwitchMenu: () => ScSidebarSwitchMenu,
|
|
106
112
|
ScSlider: () => ScSlider,
|
|
113
|
+
ScStoreCard: () => ScStoreCard,
|
|
107
114
|
ScStrLogo: () => ScStrLogo,
|
|
108
115
|
ScStreamoidMascot: () => ScStreamoidMascot,
|
|
109
116
|
ScStreamoidWordmark: () => ScStreamoidWordmark,
|
|
@@ -850,8 +857,11 @@ var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
|
850
857
|
var ScCheckbox = ({
|
|
851
858
|
state = "default",
|
|
852
859
|
checked,
|
|
860
|
+
disabled = false,
|
|
853
861
|
onChange,
|
|
854
862
|
className,
|
|
863
|
+
style,
|
|
864
|
+
onClick,
|
|
855
865
|
...props
|
|
856
866
|
}) => {
|
|
857
867
|
const effectiveState = checked !== void 0 ? checked ? "selected" : "default" : state;
|
|
@@ -860,18 +870,100 @@ var ScCheckbox = ({
|
|
|
860
870
|
"div",
|
|
861
871
|
{
|
|
862
872
|
className: ScCheckbox_default.scCheckbox + " " + className + " " + variantsClassName,
|
|
863
|
-
style: {
|
|
864
|
-
|
|
873
|
+
style: {
|
|
874
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
875
|
+
...disabled ? { opacity: 0.5 } : {},
|
|
876
|
+
...style
|
|
877
|
+
},
|
|
865
878
|
onClick: (e) => {
|
|
879
|
+
if (disabled) return;
|
|
866
880
|
onChange?.(
|
|
867
881
|
checked !== void 0 ? !checked : effectiveState !== "selected"
|
|
868
882
|
);
|
|
869
|
-
|
|
883
|
+
onClick?.(e);
|
|
870
884
|
},
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
885
|
+
...props,
|
|
886
|
+
children: effectiveState === "selected" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
887
|
+
"svg",
|
|
888
|
+
{
|
|
889
|
+
width: "24",
|
|
890
|
+
height: "24",
|
|
891
|
+
viewBox: "0 0 24 24",
|
|
892
|
+
fill: "none",
|
|
893
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
894
|
+
children: [
|
|
895
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
896
|
+
"rect",
|
|
897
|
+
{
|
|
898
|
+
width: "24",
|
|
899
|
+
height: "24",
|
|
900
|
+
rx: "6",
|
|
901
|
+
fill: "var(--alias-fill-base-base, #f5f5f5)"
|
|
902
|
+
}
|
|
903
|
+
),
|
|
904
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
905
|
+
"path",
|
|
906
|
+
{
|
|
907
|
+
d: "M7.5 12L10.5 15L16.5 9",
|
|
908
|
+
stroke: "var(--alias-text---icons-inverse, #101010)",
|
|
909
|
+
strokeWidth: "2",
|
|
910
|
+
strokeLinecap: "round",
|
|
911
|
+
strokeLinejoin: "round"
|
|
912
|
+
}
|
|
913
|
+
)
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
) : effectiveState === "partial" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
917
|
+
"svg",
|
|
918
|
+
{
|
|
919
|
+
width: "24",
|
|
920
|
+
height: "24",
|
|
921
|
+
viewBox: "0 0 24 24",
|
|
922
|
+
fill: "none",
|
|
923
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
924
|
+
children: [
|
|
925
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
926
|
+
"rect",
|
|
927
|
+
{
|
|
928
|
+
width: "24",
|
|
929
|
+
height: "24",
|
|
930
|
+
rx: "6",
|
|
931
|
+
fill: "var(--alias-fill-base-base, #f5f5f5)"
|
|
932
|
+
}
|
|
933
|
+
),
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
935
|
+
"path",
|
|
936
|
+
{
|
|
937
|
+
d: "M7.5 12H16.5",
|
|
938
|
+
stroke: "var(--alias-text---icons-inverse, #101010)",
|
|
939
|
+
strokeWidth: "2",
|
|
940
|
+
strokeLinecap: "round"
|
|
941
|
+
}
|
|
942
|
+
)
|
|
943
|
+
]
|
|
944
|
+
}
|
|
945
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
946
|
+
"svg",
|
|
947
|
+
{
|
|
948
|
+
width: "24",
|
|
949
|
+
height: "24",
|
|
950
|
+
viewBox: "0 0 24 24",
|
|
951
|
+
fill: "none",
|
|
952
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
953
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
954
|
+
"rect",
|
|
955
|
+
{
|
|
956
|
+
x: "0.75",
|
|
957
|
+
y: "0.75",
|
|
958
|
+
width: "22.5",
|
|
959
|
+
height: "22.5",
|
|
960
|
+
rx: "5.25",
|
|
961
|
+
stroke: "var(--alias-border-default, #3e3e3e)",
|
|
962
|
+
strokeWidth: "1.5"
|
|
963
|
+
}
|
|
964
|
+
)
|
|
965
|
+
}
|
|
966
|
+
)
|
|
875
967
|
}
|
|
876
968
|
);
|
|
877
969
|
};
|
|
@@ -5998,6 +6090,7 @@ var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
|
5998
6090
|
var ScToggleSwitch = ({
|
|
5999
6091
|
active = "false",
|
|
6000
6092
|
checked,
|
|
6093
|
+
disabled = false,
|
|
6001
6094
|
onToggle,
|
|
6002
6095
|
className,
|
|
6003
6096
|
...props
|
|
@@ -6010,10 +6103,15 @@ var ScToggleSwitch = ({
|
|
|
6010
6103
|
className: ScToggleSwitch_default.scToggleSwitch + " " + className + " " + variantsClassName,
|
|
6011
6104
|
...props,
|
|
6012
6105
|
onClick: (e) => {
|
|
6106
|
+
if (disabled) return;
|
|
6013
6107
|
onToggle?.(!isActive);
|
|
6014
6108
|
props.onClick?.(e);
|
|
6015
6109
|
},
|
|
6016
|
-
style: {
|
|
6110
|
+
style: {
|
|
6111
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
6112
|
+
...disabled ? { opacity: 0.5 } : {},
|
|
6113
|
+
...props.style
|
|
6114
|
+
},
|
|
6017
6115
|
children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("svg", { width: "40", height: "24", viewBox: "0 0 40 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6018
6116
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("rect", { width: "40", height: "24", rx: "12", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
6019
6117
|
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("circle", { cx: "28", cy: "12", r: "10", fill: "var(--alias-text---icons-inverse, #101010)" })
|
|
@@ -7234,6 +7332,438 @@ function ScWorkspaceSwitchCard({
|
|
|
7234
7332
|
}
|
|
7235
7333
|
var NscWorkspaceSwitch = ScWorkspaceSwitchCard;
|
|
7236
7334
|
|
|
7335
|
+
// src/SC-Modal/ScModal.tsx
|
|
7336
|
+
var import_react15 = require("react");
|
|
7337
|
+
var import_react_dom = require("react-dom");
|
|
7338
|
+
|
|
7339
|
+
// src/SC-Modal/ScModal.module.css
|
|
7340
|
+
var ScModal_default = {
|
|
7341
|
+
backdrop: "ScModal_backdrop",
|
|
7342
|
+
content: "ScModal_content"
|
|
7343
|
+
};
|
|
7344
|
+
|
|
7345
|
+
// src/SC-Modal/ScModal.tsx
|
|
7346
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7347
|
+
var ScModal = ({
|
|
7348
|
+
children,
|
|
7349
|
+
onClose,
|
|
7350
|
+
open = true,
|
|
7351
|
+
className,
|
|
7352
|
+
style,
|
|
7353
|
+
contentClassName,
|
|
7354
|
+
contentStyle,
|
|
7355
|
+
closeOnBackdrop = true,
|
|
7356
|
+
closeOnEsc = true
|
|
7357
|
+
}) => {
|
|
7358
|
+
(0, import_react15.useEffect)(() => {
|
|
7359
|
+
if (!open || !closeOnEsc) return;
|
|
7360
|
+
const onKey = (e) => {
|
|
7361
|
+
if (e.key === "Escape") onClose?.();
|
|
7362
|
+
};
|
|
7363
|
+
document.addEventListener("keydown", onKey);
|
|
7364
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
7365
|
+
}, [open, closeOnEsc, onClose]);
|
|
7366
|
+
if (!open || typeof document === "undefined") return null;
|
|
7367
|
+
return (0, import_react_dom.createPortal)(
|
|
7368
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
7369
|
+
"div",
|
|
7370
|
+
{
|
|
7371
|
+
className: [ScModal_default.backdrop, className].filter(Boolean).join(" "),
|
|
7372
|
+
style,
|
|
7373
|
+
onMouseDown: (e) => {
|
|
7374
|
+
if (closeOnBackdrop && e.target === e.currentTarget) onClose?.();
|
|
7375
|
+
},
|
|
7376
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
7377
|
+
"div",
|
|
7378
|
+
{
|
|
7379
|
+
className: [ScModal_default.content, contentClassName].filter(Boolean).join(" "),
|
|
7380
|
+
style: contentStyle,
|
|
7381
|
+
children
|
|
7382
|
+
}
|
|
7383
|
+
)
|
|
7384
|
+
}
|
|
7385
|
+
),
|
|
7386
|
+
document.body
|
|
7387
|
+
);
|
|
7388
|
+
};
|
|
7389
|
+
|
|
7390
|
+
// src/SC-InfoPopup/ScInfoPopup.tsx
|
|
7391
|
+
var import_react16 = require("react");
|
|
7392
|
+
var import_icons61 = require("@streamoid/icons");
|
|
7393
|
+
|
|
7394
|
+
// src/SC-InfoPopup/ScInfoPopup.module.css
|
|
7395
|
+
var ScInfoPopup_default = {
|
|
7396
|
+
scInfoPopup: "ScInfoPopup_scInfoPopup",
|
|
7397
|
+
infoIcon: "ScInfoPopup_infoIcon",
|
|
7398
|
+
content: "ScInfoPopup_content",
|
|
7399
|
+
closeIconContainer: "ScInfoPopup_closeIconContainer",
|
|
7400
|
+
closeIcon: "ScInfoPopup_closeIcon",
|
|
7401
|
+
contentText: "ScInfoPopup_contentText"
|
|
7402
|
+
};
|
|
7403
|
+
|
|
7404
|
+
// src/SC-InfoPopup/ScInfoPopup.tsx
|
|
7405
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7406
|
+
var ScInfoPopup = ({
|
|
7407
|
+
content,
|
|
7408
|
+
className
|
|
7409
|
+
}) => {
|
|
7410
|
+
const [open, setOpen] = (0, import_react16.useState)(false);
|
|
7411
|
+
const ref = (0, import_react16.useRef)(null);
|
|
7412
|
+
(0, import_react16.useEffect)(() => {
|
|
7413
|
+
if (!open) return;
|
|
7414
|
+
const onDown = (e) => {
|
|
7415
|
+
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
7416
|
+
};
|
|
7417
|
+
document.addEventListener("mousedown", onDown);
|
|
7418
|
+
return () => document.removeEventListener("mousedown", onDown);
|
|
7419
|
+
}, [open]);
|
|
7420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
7421
|
+
"div",
|
|
7422
|
+
{
|
|
7423
|
+
className: ScInfoPopup_default.scInfoPopup + (className ? " " + className : ""),
|
|
7424
|
+
ref,
|
|
7425
|
+
children: [
|
|
7426
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
7427
|
+
"span",
|
|
7428
|
+
{
|
|
7429
|
+
className: ScInfoPopup_default.infoIcon,
|
|
7430
|
+
role: "button",
|
|
7431
|
+
tabIndex: 0,
|
|
7432
|
+
"aria-label": "More info",
|
|
7433
|
+
onClick: (e) => {
|
|
7434
|
+
e.stopPropagation();
|
|
7435
|
+
setOpen(true);
|
|
7436
|
+
},
|
|
7437
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
7438
|
+
"svg",
|
|
7439
|
+
{
|
|
7440
|
+
width: "18",
|
|
7441
|
+
height: "18",
|
|
7442
|
+
viewBox: "0 0 18 18",
|
|
7443
|
+
fill: "none",
|
|
7444
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7445
|
+
children: [
|
|
7446
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
7447
|
+
"circle",
|
|
7448
|
+
{
|
|
7449
|
+
cx: "9",
|
|
7450
|
+
cy: "9",
|
|
7451
|
+
r: "8",
|
|
7452
|
+
stroke: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
7453
|
+
strokeWidth: "1.25"
|
|
7454
|
+
}
|
|
7455
|
+
),
|
|
7456
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
7457
|
+
"path",
|
|
7458
|
+
{
|
|
7459
|
+
d: "M9 8.25V12.75",
|
|
7460
|
+
stroke: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
7461
|
+
strokeWidth: "1.5",
|
|
7462
|
+
strokeLinecap: "round"
|
|
7463
|
+
}
|
|
7464
|
+
),
|
|
7465
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
7466
|
+
"circle",
|
|
7467
|
+
{
|
|
7468
|
+
cx: "9",
|
|
7469
|
+
cy: "5.25",
|
|
7470
|
+
r: "0.9",
|
|
7471
|
+
fill: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
7472
|
+
}
|
|
7473
|
+
)
|
|
7474
|
+
]
|
|
7475
|
+
}
|
|
7476
|
+
)
|
|
7477
|
+
}
|
|
7478
|
+
),
|
|
7479
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: ScInfoPopup_default.content, children: [
|
|
7480
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
7481
|
+
"div",
|
|
7482
|
+
{
|
|
7483
|
+
className: ScInfoPopup_default.closeIconContainer,
|
|
7484
|
+
onClick: (e) => {
|
|
7485
|
+
e.stopPropagation();
|
|
7486
|
+
setOpen(false);
|
|
7487
|
+
},
|
|
7488
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
7489
|
+
import_icons61.SiconClose,
|
|
7490
|
+
{
|
|
7491
|
+
size: 18,
|
|
7492
|
+
color: "var(--alias-text-and-icons-tertiary)",
|
|
7493
|
+
className: ScInfoPopup_default.closeIcon
|
|
7494
|
+
}
|
|
7495
|
+
)
|
|
7496
|
+
}
|
|
7497
|
+
),
|
|
7498
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: ScInfoPopup_default.contentText, children: content })
|
|
7499
|
+
] })
|
|
7500
|
+
]
|
|
7501
|
+
}
|
|
7502
|
+
);
|
|
7503
|
+
};
|
|
7504
|
+
|
|
7505
|
+
// src/SC-Pagination/ScPagination.tsx
|
|
7506
|
+
var import_icons62 = require("@streamoid/icons");
|
|
7507
|
+
|
|
7508
|
+
// src/SC-Pagination/ScPagination.module.css
|
|
7509
|
+
var ScPagination_default = {
|
|
7510
|
+
scPagination: "ScPagination_scPagination",
|
|
7511
|
+
section: "ScPagination_section",
|
|
7512
|
+
leftArrow: "ScPagination_leftArrow",
|
|
7513
|
+
page: "ScPagination_page",
|
|
7514
|
+
pageCount: "ScPagination_pageCount"
|
|
7515
|
+
};
|
|
7516
|
+
|
|
7517
|
+
// src/SC-Pagination/ScPagination.tsx
|
|
7518
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7519
|
+
var ScPagination = ({
|
|
7520
|
+
itemsCount,
|
|
7521
|
+
itemsPerPage,
|
|
7522
|
+
page,
|
|
7523
|
+
setPage,
|
|
7524
|
+
setOffsetValue,
|
|
7525
|
+
onPageChangeAction,
|
|
7526
|
+
className
|
|
7527
|
+
}) => {
|
|
7528
|
+
const perPage = parseInt(String(itemsPerPage), 10) || 1;
|
|
7529
|
+
const maxPage = itemsCount % perPage ? Math.floor(itemsCount / perPage) + 1 : itemsCount / perPage;
|
|
7530
|
+
const handlePageValue = (e) => {
|
|
7531
|
+
const raw = e.target.value;
|
|
7532
|
+
if (raw.length) {
|
|
7533
|
+
const n = parseInt(raw, 10);
|
|
7534
|
+
if (n < 1) setPage(1);
|
|
7535
|
+
else if (n > maxPage) setPage(maxPage);
|
|
7536
|
+
else setPage(raw);
|
|
7537
|
+
} else {
|
|
7538
|
+
setPage(raw);
|
|
7539
|
+
}
|
|
7540
|
+
};
|
|
7541
|
+
const commit = (e) => {
|
|
7542
|
+
setOffsetValue((Number(e.target.value) - 1) * perPage);
|
|
7543
|
+
onPageChangeAction();
|
|
7544
|
+
};
|
|
7545
|
+
const step = (type) => {
|
|
7546
|
+
const p = Number(page);
|
|
7547
|
+
if (type === "dec" && p > 1) {
|
|
7548
|
+
setPage(p - 1);
|
|
7549
|
+
setOffsetValue((p - 2) * perPage);
|
|
7550
|
+
onPageChangeAction();
|
|
7551
|
+
} else if (type === "inc" && p < maxPage) {
|
|
7552
|
+
setPage(p + 1);
|
|
7553
|
+
setOffsetValue(p * perPage);
|
|
7554
|
+
onPageChangeAction();
|
|
7555
|
+
}
|
|
7556
|
+
};
|
|
7557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: ScPagination_default.scPagination + (className ? " " + className : ""), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: ScPagination_default.section, children: [
|
|
7558
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7559
|
+
import_icons62.SiconRight,
|
|
7560
|
+
{
|
|
7561
|
+
size: 24,
|
|
7562
|
+
color: "var(--alias-text-and-icons-primary)",
|
|
7563
|
+
className: ScPagination_default.leftArrow,
|
|
7564
|
+
onClick: () => step("dec")
|
|
7565
|
+
}
|
|
7566
|
+
),
|
|
7567
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScPagination_default.page, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7568
|
+
"input",
|
|
7569
|
+
{
|
|
7570
|
+
type: "number",
|
|
7571
|
+
pattern: "\\d*",
|
|
7572
|
+
value: page,
|
|
7573
|
+
onChange: handlePageValue,
|
|
7574
|
+
onBlur: commit
|
|
7575
|
+
}
|
|
7576
|
+
) }),
|
|
7577
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7578
|
+
import_icons62.SiconRight,
|
|
7579
|
+
{
|
|
7580
|
+
size: 24,
|
|
7581
|
+
color: "var(--alias-text-and-icons-primary)",
|
|
7582
|
+
onClick: () => step("inc")
|
|
7583
|
+
}
|
|
7584
|
+
),
|
|
7585
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: ScPagination_default.pageCount, children: [
|
|
7586
|
+
"of ",
|
|
7587
|
+
maxPage
|
|
7588
|
+
] })
|
|
7589
|
+
] }) });
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7592
|
+
// src/SC-Beacon/ScBeacon.module.css
|
|
7593
|
+
var ScBeacon_default = {
|
|
7594
|
+
scBeacon: "ScBeacon_scBeacon",
|
|
7595
|
+
success: "ScBeacon_success",
|
|
7596
|
+
warning: "ScBeacon_warning",
|
|
7597
|
+
error: "ScBeacon_error",
|
|
7598
|
+
neutral: "ScBeacon_neutral"
|
|
7599
|
+
};
|
|
7600
|
+
|
|
7601
|
+
// src/SC-Beacon/ScBeacon.tsx
|
|
7602
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7603
|
+
var ScBeacon = ({
|
|
7604
|
+
tone = "neutral",
|
|
7605
|
+
className,
|
|
7606
|
+
...props
|
|
7607
|
+
}) => {
|
|
7608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
7609
|
+
"span",
|
|
7610
|
+
{
|
|
7611
|
+
className: ScBeacon_default.scBeacon + " " + ScBeacon_default[tone] + (className ? " " + className : ""),
|
|
7612
|
+
"aria-hidden": "true",
|
|
7613
|
+
...props,
|
|
7614
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7615
|
+
"svg",
|
|
7616
|
+
{
|
|
7617
|
+
viewBox: "0 0 20 20",
|
|
7618
|
+
width: "100%",
|
|
7619
|
+
height: "100%",
|
|
7620
|
+
fill: "none",
|
|
7621
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7622
|
+
children: [
|
|
7623
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor", fillOpacity: "0.24" }),
|
|
7624
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: "10", cy: "10", r: "4", fill: "currentColor" })
|
|
7625
|
+
]
|
|
7626
|
+
}
|
|
7627
|
+
)
|
|
7628
|
+
}
|
|
7629
|
+
);
|
|
7630
|
+
};
|
|
7631
|
+
|
|
7632
|
+
// src/SC-StoreCard/ScStoreCard.module.css
|
|
7633
|
+
var ScStoreCard_default = {
|
|
7634
|
+
scStoreCard: "ScStoreCard_scStoreCard",
|
|
7635
|
+
nameSection: "ScStoreCard_nameSection",
|
|
7636
|
+
storeName: "ScStoreCard_storeName",
|
|
7637
|
+
divider: "ScStoreCard_divider",
|
|
7638
|
+
footer: "ScStoreCard_footer",
|
|
7639
|
+
products: "ScStoreCard_products",
|
|
7640
|
+
date: "ScStoreCard_date"
|
|
7641
|
+
};
|
|
7642
|
+
|
|
7643
|
+
// src/SC-StoreCard/ScStoreCard.tsx
|
|
7644
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7645
|
+
var ScStoreCard = ({
|
|
7646
|
+
storeName = "Store Name",
|
|
7647
|
+
noOfProducts = "1490 Products",
|
|
7648
|
+
dateCreated = "24th Jan 2026",
|
|
7649
|
+
tone = "neutral",
|
|
7650
|
+
className,
|
|
7651
|
+
...props
|
|
7652
|
+
}) => {
|
|
7653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7654
|
+
"div",
|
|
7655
|
+
{
|
|
7656
|
+
className: ScStoreCard_default.scStoreCard + (className ? " " + className : ""),
|
|
7657
|
+
...props,
|
|
7658
|
+
children: [
|
|
7659
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: ScStoreCard_default.nameSection, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: ScStoreCard_default.storeName, title: storeName, children: storeName }) }),
|
|
7660
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ScHDivider, { className: ScStoreCard_default.divider }),
|
|
7661
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: ScStoreCard_default.footer, children: [
|
|
7662
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ScBeacon, { tone }),
|
|
7663
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: ScStoreCard_default.products, children: noOfProducts }),
|
|
7664
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: ScStoreCard_default.date, children: dateCreated })
|
|
7665
|
+
] })
|
|
7666
|
+
]
|
|
7667
|
+
}
|
|
7668
|
+
);
|
|
7669
|
+
};
|
|
7670
|
+
|
|
7671
|
+
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.module.css
|
|
7672
|
+
var ScCatalogixStoreHeader_default = {
|
|
7673
|
+
scCatalogixStoreHeader: "ScCatalogixStoreHeader_scCatalogixStoreHeader",
|
|
7674
|
+
label: "ScCatalogixStoreHeader_label",
|
|
7675
|
+
colName: "ScCatalogixStoreHeader_colName",
|
|
7676
|
+
colStatus: "ScCatalogixStoreHeader_colStatus",
|
|
7677
|
+
colNum: "ScCatalogixStoreHeader_colNum",
|
|
7678
|
+
colDate: "ScCatalogixStoreHeader_colDate",
|
|
7679
|
+
colBy: "ScCatalogixStoreHeader_colBy"
|
|
7680
|
+
};
|
|
7681
|
+
|
|
7682
|
+
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.tsx
|
|
7683
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7684
|
+
var ScCatalogixStoreHeader = ({
|
|
7685
|
+
storeNameLabel = "Store name",
|
|
7686
|
+
statusLabel = "Status",
|
|
7687
|
+
productsLabel = "Products",
|
|
7688
|
+
assetsLabel = "Assets",
|
|
7689
|
+
createdOnLabel = "Created on",
|
|
7690
|
+
createdByLabel = "Created by",
|
|
7691
|
+
showAssets = true,
|
|
7692
|
+
showCreatedBy = true,
|
|
7693
|
+
className,
|
|
7694
|
+
...props
|
|
7695
|
+
}) => {
|
|
7696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
7697
|
+
"div",
|
|
7698
|
+
{
|
|
7699
|
+
className: ScCatalogixStoreHeader_default.scCatalogixStoreHeader + (className ? " " + className : ""),
|
|
7700
|
+
...props,
|
|
7701
|
+
children: [
|
|
7702
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colName, children: storeNameLabel }),
|
|
7703
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colStatus, children: statusLabel }),
|
|
7704
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colNum, children: productsLabel }),
|
|
7705
|
+
showAssets && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colNum, children: assetsLabel }),
|
|
7706
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colDate, children: createdOnLabel }),
|
|
7707
|
+
showCreatedBy && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colBy, children: createdByLabel })
|
|
7708
|
+
]
|
|
7709
|
+
}
|
|
7710
|
+
);
|
|
7711
|
+
};
|
|
7712
|
+
|
|
7713
|
+
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.module.css
|
|
7714
|
+
var ScCatalogixStoreTableList_default = {
|
|
7715
|
+
scCatalogixStoreTableList: "ScCatalogixStoreTableList_scCatalogixStoreTableList",
|
|
7716
|
+
name: "ScCatalogixStoreTableList_name",
|
|
7717
|
+
status: "ScCatalogixStoreTableList_status",
|
|
7718
|
+
statusSuccess: "ScCatalogixStoreTableList_statusSuccess",
|
|
7719
|
+
statusWarning: "ScCatalogixStoreTableList_statusWarning",
|
|
7720
|
+
statusError: "ScCatalogixStoreTableList_statusError",
|
|
7721
|
+
statusNeutral: "ScCatalogixStoreTableList_statusNeutral",
|
|
7722
|
+
cell: "ScCatalogixStoreTableList_cell",
|
|
7723
|
+
colNum: "ScCatalogixStoreTableList_colNum",
|
|
7724
|
+
colDate: "ScCatalogixStoreTableList_colDate",
|
|
7725
|
+
colBy: "ScCatalogixStoreTableList_colBy"
|
|
7726
|
+
};
|
|
7727
|
+
|
|
7728
|
+
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.tsx
|
|
7729
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7730
|
+
var STATUS_TONE_CLASS = {
|
|
7731
|
+
success: "statusSuccess",
|
|
7732
|
+
warning: "statusWarning",
|
|
7733
|
+
error: "statusError",
|
|
7734
|
+
neutral: "statusNeutral"
|
|
7735
|
+
};
|
|
7736
|
+
var ScCatalogixStoreTableList = ({
|
|
7737
|
+
storeName = "Farfetch - Spring Season 2026 - Topwear",
|
|
7738
|
+
status = "Need Attention",
|
|
7739
|
+
statusTone = "error",
|
|
7740
|
+
products = "1240",
|
|
7741
|
+
assets = "27830",
|
|
7742
|
+
createdOn = "Nov 9th, 2025",
|
|
7743
|
+
createdBy = "Chris Hemsworth",
|
|
7744
|
+
showAssets = true,
|
|
7745
|
+
showCreatedBy = true,
|
|
7746
|
+
className,
|
|
7747
|
+
...props
|
|
7748
|
+
}) => {
|
|
7749
|
+
const toneClass = ScCatalogixStoreTableList_default[STATUS_TONE_CLASS[statusTone] || "statusNeutral"];
|
|
7750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
7751
|
+
"div",
|
|
7752
|
+
{
|
|
7753
|
+
className: ScCatalogixStoreTableList_default.scCatalogixStoreTableList + (className ? " " + className : ""),
|
|
7754
|
+
...props,
|
|
7755
|
+
children: [
|
|
7756
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: ScCatalogixStoreTableList_default.name, title: storeName, children: storeName }),
|
|
7757
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: ScCatalogixStoreTableList_default.status + " " + toneClass, children: status }),
|
|
7758
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colNum, children: products }),
|
|
7759
|
+
showAssets && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colNum, children: assets }),
|
|
7760
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colDate, children: createdOn }),
|
|
7761
|
+
showCreatedBy && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colBy, children: createdBy })
|
|
7762
|
+
]
|
|
7763
|
+
}
|
|
7764
|
+
);
|
|
7765
|
+
};
|
|
7766
|
+
|
|
7237
7767
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.module.css
|
|
7238
7768
|
var ScThinkingStepIcon_default = {
|
|
7239
7769
|
scThinkingStepIcon: "ScThinkingStepIcon_scThinkingStepIcon",
|
|
@@ -7248,7 +7778,7 @@ var ScThinkingStepIcon_default = {
|
|
|
7248
7778
|
};
|
|
7249
7779
|
|
|
7250
7780
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.tsx
|
|
7251
|
-
var
|
|
7781
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7252
7782
|
var ScThinkingStepIcon = ({
|
|
7253
7783
|
state = "default",
|
|
7254
7784
|
size = 12,
|
|
@@ -7257,13 +7787,13 @@ var ScThinkingStepIcon = ({
|
|
|
7257
7787
|
...props
|
|
7258
7788
|
}) => {
|
|
7259
7789
|
const variantsClassName = ScThinkingStepIcon_default["state-" + state];
|
|
7260
|
-
return /* @__PURE__ */ (0,
|
|
7790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7261
7791
|
"span",
|
|
7262
7792
|
{
|
|
7263
7793
|
className: ScThinkingStepIcon_default.scThinkingStepIcon + " " + (className ?? "") + " " + variantsClassName,
|
|
7264
7794
|
style: { width: size, height: size, ...style },
|
|
7265
7795
|
...props,
|
|
7266
|
-
children: /* @__PURE__ */ (0,
|
|
7796
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
7267
7797
|
"svg",
|
|
7268
7798
|
{
|
|
7269
7799
|
className: ScThinkingStepIcon_default.glyph,
|
|
@@ -7274,7 +7804,7 @@ var ScThinkingStepIcon = ({
|
|
|
7274
7804
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7275
7805
|
"aria-hidden": "true",
|
|
7276
7806
|
children: [
|
|
7277
|
-
state === "default" && /* @__PURE__ */ (0,
|
|
7807
|
+
state === "default" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7278
7808
|
"circle",
|
|
7279
7809
|
{
|
|
7280
7810
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7285,7 +7815,7 @@ var ScThinkingStepIcon = ({
|
|
|
7285
7815
|
strokeLinecap: "round"
|
|
7286
7816
|
}
|
|
7287
7817
|
),
|
|
7288
|
-
state === "working" && /* @__PURE__ */ (0,
|
|
7818
|
+
state === "working" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7289
7819
|
"path",
|
|
7290
7820
|
{
|
|
7291
7821
|
className: ScThinkingStepIcon_default.stroke + " " + ScThinkingStepIcon_default.spinner,
|
|
@@ -7295,7 +7825,7 @@ var ScThinkingStepIcon = ({
|
|
|
7295
7825
|
strokeLinejoin: "round"
|
|
7296
7826
|
}
|
|
7297
7827
|
),
|
|
7298
|
-
state === "completed" && /* @__PURE__ */ (0,
|
|
7828
|
+
state === "completed" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7299
7829
|
"path",
|
|
7300
7830
|
{
|
|
7301
7831
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7305,7 +7835,7 @@ var ScThinkingStepIcon = ({
|
|
|
7305
7835
|
strokeLinejoin: "round"
|
|
7306
7836
|
}
|
|
7307
7837
|
),
|
|
7308
|
-
state === "error" && /* @__PURE__ */ (0,
|
|
7838
|
+
state === "error" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7309
7839
|
"path",
|
|
7310
7840
|
{
|
|
7311
7841
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7344,8 +7874,8 @@ var ScInChatList_default = {
|
|
|
7344
7874
|
};
|
|
7345
7875
|
|
|
7346
7876
|
// src/SC-InChatList/ScInChatList.tsx
|
|
7347
|
-
var
|
|
7348
|
-
var
|
|
7877
|
+
var import_icons63 = require("@streamoid/icons");
|
|
7878
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7349
7879
|
var ScInChatList = ({
|
|
7350
7880
|
title = "Infrastructure that helps modern brands scale",
|
|
7351
7881
|
description = "Description",
|
|
@@ -7362,33 +7892,33 @@ var ScInChatList = ({
|
|
|
7362
7892
|
}) => {
|
|
7363
7893
|
const isExpandable = descriptionVisibility === "hidden" || descriptionVisibility === "visible";
|
|
7364
7894
|
const isExpanded = descriptionVisibility === "visible";
|
|
7365
|
-
return /* @__PURE__ */ (0,
|
|
7895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
7366
7896
|
"div",
|
|
7367
7897
|
{
|
|
7368
7898
|
className: ScInChatList_default.scInChatList + (className ? " " + className : ""),
|
|
7369
7899
|
style,
|
|
7370
7900
|
children: [
|
|
7371
|
-
leadingIndicator && /* @__PURE__ */ (0,
|
|
7372
|
-
/* @__PURE__ */ (0,
|
|
7373
|
-
/* @__PURE__ */ (0,
|
|
7374
|
-
showSteps && /* @__PURE__ */ (0,
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7901
|
+
leadingIndicator && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: ScInChatList_default.indicatorWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ScThinkingStepIcon, { state: iconState }) }),
|
|
7902
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: ScInChatList_default.content, children: [
|
|
7903
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: ScInChatList_default.headerArea, children: [
|
|
7904
|
+
showSteps && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: ScInChatList_default.stepCount, children: stepCount }),
|
|
7905
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
7376
7906
|
"div",
|
|
7377
7907
|
{
|
|
7378
7908
|
className: ScInChatList_default.titleRow + " " + (isExpandable ? ScInChatList_default.titleRowClickable : ScInChatList_default.titleRowStatic),
|
|
7379
7909
|
onClick: isExpandable ? onToggle : void 0,
|
|
7380
7910
|
children: [
|
|
7381
|
-
/* @__PURE__ */ (0,
|
|
7382
|
-
isExpandable && /* @__PURE__ */ (0,
|
|
7911
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: ScInChatList_default.title, children: title }),
|
|
7912
|
+
isExpandable && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: ScInChatList_default.chevronWrapper, children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_icons63.SiconUp, { size: 12, className: ScInChatList_default.chevronIcon }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_icons63.SiconDown, { size: 12, className: ScInChatList_default.chevronIcon }) })
|
|
7383
7913
|
]
|
|
7384
7914
|
}
|
|
7385
7915
|
),
|
|
7386
|
-
isExpanded && /* @__PURE__ */ (0,
|
|
7387
|
-
/* @__PURE__ */ (0,
|
|
7388
|
-
/* @__PURE__ */ (0,
|
|
7916
|
+
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: ScInChatList_default.descriptionRow, children: [
|
|
7917
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: ScInChatList_default.descriptionIcon, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_icons63.SiconDot, { size: 20, className: ScInChatList_default.descriptionDot }) }),
|
|
7918
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: ScInChatList_default.descriptionText, children: description })
|
|
7389
7919
|
] })
|
|
7390
7920
|
] }),
|
|
7391
|
-
showTool && /* @__PURE__ */ (0,
|
|
7921
|
+
showTool && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: ScInChatList_default.toolPill, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: ScInChatList_default.toolText, children: toolUsing }) })
|
|
7392
7922
|
] })
|
|
7393
7923
|
]
|
|
7394
7924
|
}
|
|
@@ -7402,7 +7932,7 @@ var ScSubAgent_default = {
|
|
|
7402
7932
|
};
|
|
7403
7933
|
|
|
7404
7934
|
// src/SC-SubAgent/ScSubAgent.tsx
|
|
7405
|
-
var
|
|
7935
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7406
7936
|
function formatSubAgentLabel(agentName) {
|
|
7407
7937
|
const normalized = (agentName ?? "").trim();
|
|
7408
7938
|
if (!normalized) return "Using sub-agent...";
|
|
@@ -7415,12 +7945,12 @@ var ScSubAgent = ({
|
|
|
7415
7945
|
...props
|
|
7416
7946
|
}) => {
|
|
7417
7947
|
const label = text ?? formatSubAgentLabel(agentName);
|
|
7418
|
-
return /* @__PURE__ */ (0,
|
|
7948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7419
7949
|
"div",
|
|
7420
7950
|
{
|
|
7421
7951
|
className: [ScSubAgent_default.scSubAgent, className].filter(Boolean).join(" "),
|
|
7422
7952
|
...props,
|
|
7423
|
-
children: /* @__PURE__ */ (0,
|
|
7953
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: ScSubAgent_default.label, children: label })
|
|
7424
7954
|
}
|
|
7425
7955
|
);
|
|
7426
7956
|
};
|
|
@@ -7434,7 +7964,7 @@ var ScInChatMessage_default = {
|
|
|
7434
7964
|
};
|
|
7435
7965
|
|
|
7436
7966
|
// src/SC-InChatMessage/ScInChatMessage.tsx
|
|
7437
|
-
var
|
|
7967
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7438
7968
|
var ScInChatMessage = ({
|
|
7439
7969
|
type = "input",
|
|
7440
7970
|
text,
|
|
@@ -7444,13 +7974,13 @@ var ScInChatMessage = ({
|
|
|
7444
7974
|
...props
|
|
7445
7975
|
}) => {
|
|
7446
7976
|
const variantsClassName = ScInChatMessage_default["type-" + type];
|
|
7447
|
-
return /* @__PURE__ */ (0,
|
|
7977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7448
7978
|
"div",
|
|
7449
7979
|
{
|
|
7450
7980
|
className: [ScInChatMessage_default.scInChatMessage, variantsClassName, className].filter(Boolean).join(" "),
|
|
7451
7981
|
id,
|
|
7452
7982
|
...props,
|
|
7453
|
-
children: /* @__PURE__ */ (0,
|
|
7983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: ScInChatMessage_default.text, children: children ?? text })
|
|
7454
7984
|
}
|
|
7455
7985
|
);
|
|
7456
7986
|
};
|
|
@@ -7467,7 +7997,7 @@ var ScSelection_default = {
|
|
|
7467
7997
|
};
|
|
7468
7998
|
|
|
7469
7999
|
// src/SC-Selection/ScSelection.tsx
|
|
7470
|
-
var
|
|
8000
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7471
8001
|
var ScSelection = ({
|
|
7472
8002
|
title = "Title",
|
|
7473
8003
|
description = "Description",
|
|
@@ -7483,23 +8013,23 @@ var ScSelection = ({
|
|
|
7483
8013
|
onClick?.(event);
|
|
7484
8014
|
onSelect?.(value);
|
|
7485
8015
|
};
|
|
7486
|
-
return /* @__PURE__ */ (0,
|
|
8016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
7487
8017
|
"div",
|
|
7488
8018
|
{
|
|
7489
8019
|
className: [ScSelection_default.scSelection, variantsClassName, className].filter(Boolean).join(" "),
|
|
7490
8020
|
onClick: handleClick,
|
|
7491
8021
|
...props,
|
|
7492
8022
|
children: [
|
|
7493
|
-
/* @__PURE__ */ (0,
|
|
8023
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7494
8024
|
ScRadio,
|
|
7495
8025
|
{
|
|
7496
8026
|
state: active ? "selected" : "default",
|
|
7497
8027
|
className: ScSelection_default.scRadioInstance
|
|
7498
8028
|
}
|
|
7499
8029
|
),
|
|
7500
|
-
/* @__PURE__ */ (0,
|
|
7501
|
-
/* @__PURE__ */ (0,
|
|
7502
|
-
description && /* @__PURE__ */ (0,
|
|
8030
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: ScSelection_default.wrapper, children: [
|
|
8031
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: ScSelection_default.title, children: title }),
|
|
8032
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: ScSelection_default.description, children: description })
|
|
7503
8033
|
] })
|
|
7504
8034
|
]
|
|
7505
8035
|
}
|
|
@@ -7526,7 +8056,7 @@ var ScSelectionList_default = {
|
|
|
7526
8056
|
};
|
|
7527
8057
|
|
|
7528
8058
|
// src/SC-SelectionList/ScSelectionList.tsx
|
|
7529
|
-
var
|
|
8059
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7530
8060
|
var ScSelectionList = ({
|
|
7531
8061
|
state = "default",
|
|
7532
8062
|
label = "Suggested Colours: ",
|
|
@@ -7549,14 +8079,14 @@ var ScSelectionList = ({
|
|
|
7549
8079
|
onChange?.(next);
|
|
7550
8080
|
if (next === "rejected") onReject?.();
|
|
7551
8081
|
};
|
|
7552
|
-
return /* @__PURE__ */ (0,
|
|
8082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
7553
8083
|
"div",
|
|
7554
8084
|
{
|
|
7555
8085
|
className: ScSelectionList_default.scSelectionList + (disabled ? " " + ScSelectionList_default.disabled : "") + (className ? " " + className : "") + " " + variantsClassName,
|
|
7556
8086
|
...props,
|
|
7557
8087
|
children: [
|
|
7558
|
-
/* @__PURE__ */ (0,
|
|
7559
|
-
/* @__PURE__ */ (0,
|
|
8088
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScSelectionList_default.toggles, children: [
|
|
8089
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7560
8090
|
"button",
|
|
7561
8091
|
{
|
|
7562
8092
|
type: "button",
|
|
@@ -7565,7 +8095,7 @@ var ScSelectionList = ({
|
|
|
7565
8095
|
disabled,
|
|
7566
8096
|
"aria-pressed": state === "approved",
|
|
7567
8097
|
"aria-label": state === "approved" ? "Revoke approval" : "Approve",
|
|
7568
|
-
children: /* @__PURE__ */ (0,
|
|
8098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7569
8099
|
"svg",
|
|
7570
8100
|
{
|
|
7571
8101
|
className: ScSelectionList_default.checkIcon,
|
|
@@ -7574,7 +8104,7 @@ var ScSelectionList = ({
|
|
|
7574
8104
|
viewBox: "0 0 8 6",
|
|
7575
8105
|
fill: "none",
|
|
7576
8106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7577
|
-
children: /* @__PURE__ */ (0,
|
|
8107
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7578
8108
|
"path",
|
|
7579
8109
|
{
|
|
7580
8110
|
d: "M0.5 3.5L2.5 5.5L7.5 0.5",
|
|
@@ -7587,7 +8117,7 @@ var ScSelectionList = ({
|
|
|
7587
8117
|
)
|
|
7588
8118
|
}
|
|
7589
8119
|
),
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
8120
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7591
8121
|
"button",
|
|
7592
8122
|
{
|
|
7593
8123
|
type: "button",
|
|
@@ -7596,7 +8126,7 @@ var ScSelectionList = ({
|
|
|
7596
8126
|
disabled,
|
|
7597
8127
|
"aria-pressed": state === "rejected",
|
|
7598
8128
|
"aria-label": state === "rejected" ? "Revoke rejection" : "Reject",
|
|
7599
|
-
children: /* @__PURE__ */ (0,
|
|
8129
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7600
8130
|
"svg",
|
|
7601
8131
|
{
|
|
7602
8132
|
className: ScSelectionList_default.closeIcon,
|
|
@@ -7605,7 +8135,7 @@ var ScSelectionList = ({
|
|
|
7605
8135
|
viewBox: "0 0 6.24261 6.24262",
|
|
7606
8136
|
fill: "none",
|
|
7607
8137
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7608
|
-
children: /* @__PURE__ */ (0,
|
|
8138
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7609
8139
|
"path",
|
|
7610
8140
|
{
|
|
7611
8141
|
d: "M0.5 5.74262L3.12132 3.12132M3.12132 3.12132L5.74261 0.5M3.12132 3.12132L0.5 0.5M3.12132 3.12132L5.74261 5.74262",
|
|
@@ -7619,9 +8149,9 @@ var ScSelectionList = ({
|
|
|
7619
8149
|
}
|
|
7620
8150
|
)
|
|
7621
8151
|
] }),
|
|
7622
|
-
/* @__PURE__ */ (0,
|
|
7623
|
-
/* @__PURE__ */ (0,
|
|
7624
|
-
/* @__PURE__ */ (0,
|
|
8152
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: ScSelectionList_default.content, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScSelectionList_default.row, children: [
|
|
8153
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScSelectionList_default.label, children: label }),
|
|
8154
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScSelectionList_default.valuesPill, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScSelectionList_default.valuesText, children: optionValues }) })
|
|
7625
8155
|
] }) })
|
|
7626
8156
|
]
|
|
7627
8157
|
}
|
|
@@ -7629,7 +8159,7 @@ var ScSelectionList = ({
|
|
|
7629
8159
|
};
|
|
7630
8160
|
|
|
7631
8161
|
// src/SC-textArea/ScTextArea.tsx
|
|
7632
|
-
var
|
|
8162
|
+
var import_react17 = require("react");
|
|
7633
8163
|
|
|
7634
8164
|
// src/SC-textArea/ScTextArea.module.css
|
|
7635
8165
|
var ScTextArea_default = {
|
|
@@ -7648,7 +8178,7 @@ var ScTextArea_default = {
|
|
|
7648
8178
|
};
|
|
7649
8179
|
|
|
7650
8180
|
// src/SC-textArea/ScTextArea.tsx
|
|
7651
|
-
var
|
|
8181
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
7652
8182
|
var ScTextArea = ({
|
|
7653
8183
|
state,
|
|
7654
8184
|
labelGroup = "",
|
|
@@ -7659,27 +8189,27 @@ var ScTextArea = ({
|
|
|
7659
8189
|
style,
|
|
7660
8190
|
...props
|
|
7661
8191
|
}) => {
|
|
7662
|
-
const [focused, setFocused] = (0,
|
|
8192
|
+
const [focused, setFocused] = (0, import_react17.useState)(false);
|
|
7663
8193
|
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
7664
8194
|
const stateClass = ScTextArea_default["state-" + derivedState];
|
|
7665
8195
|
const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
|
|
7666
|
-
return /* @__PURE__ */ (0,
|
|
8196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
7667
8197
|
"div",
|
|
7668
8198
|
{
|
|
7669
8199
|
className: [ScTextArea_default.scTextArea, stateClass, labelGroupClass, className].filter(Boolean).join(" "),
|
|
7670
8200
|
style,
|
|
7671
8201
|
children: [
|
|
7672
|
-
labelGroup && /* @__PURE__ */ (0,
|
|
7673
|
-
/* @__PURE__ */ (0,
|
|
8202
|
+
labelGroup && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: ScTextArea_default.labelContainer, children: [
|
|
8203
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: ScTextArea_default.label, children: [
|
|
7674
8204
|
label,
|
|
7675
8205
|
" "
|
|
7676
8206
|
] }),
|
|
7677
|
-
labelGroup === "text" && /* @__PURE__ */ (0,
|
|
8207
|
+
labelGroup === "text" && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: ScTextArea_default.info, children: [
|
|
7678
8208
|
info,
|
|
7679
8209
|
" "
|
|
7680
8210
|
] })
|
|
7681
8211
|
] }),
|
|
7682
|
-
/* @__PURE__ */ (0,
|
|
8212
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: ScTextArea_default.inputContainer, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
7683
8213
|
"textarea",
|
|
7684
8214
|
{
|
|
7685
8215
|
className: ScTextArea_default.inputText,
|
|
@@ -7701,7 +8231,7 @@ var ScTextArea = ({
|
|
|
7701
8231
|
};
|
|
7702
8232
|
|
|
7703
8233
|
// src/SC-select/ScSelect.tsx
|
|
7704
|
-
var
|
|
8234
|
+
var import_react18 = require("react");
|
|
7705
8235
|
|
|
7706
8236
|
// src/SC-select/ScSelect.module.css
|
|
7707
8237
|
var ScSelect_default = {
|
|
@@ -7726,7 +8256,7 @@ var ScSelect_default = {
|
|
|
7726
8256
|
};
|
|
7727
8257
|
|
|
7728
8258
|
// src/SC-select/ScSelect.tsx
|
|
7729
|
-
var
|
|
8259
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
7730
8260
|
var ScSelect = (props) => {
|
|
7731
8261
|
const {
|
|
7732
8262
|
value,
|
|
@@ -7738,9 +8268,9 @@ var ScSelect = (props) => {
|
|
|
7738
8268
|
disabled = false,
|
|
7739
8269
|
className
|
|
7740
8270
|
} = props;
|
|
7741
|
-
const [open, setOpen] = (0,
|
|
7742
|
-
const rootRef = (0,
|
|
7743
|
-
(0,
|
|
8271
|
+
const [open, setOpen] = (0, import_react18.useState)(false);
|
|
8272
|
+
const rootRef = (0, import_react18.useRef)(null);
|
|
8273
|
+
(0, import_react18.useEffect)(() => {
|
|
7744
8274
|
if (!open) return;
|
|
7745
8275
|
const handleClick = (e) => {
|
|
7746
8276
|
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
@@ -7766,10 +8296,10 @@ var ScSelect = (props) => {
|
|
|
7766
8296
|
labelGroup ? ScSelect_default["label-group-" + labelGroup] : void 0,
|
|
7767
8297
|
className
|
|
7768
8298
|
].filter(Boolean).join(" ");
|
|
7769
|
-
return /* @__PURE__ */ (0,
|
|
7770
|
-
labelGroup === "label" && label ? /* @__PURE__ */ (0,
|
|
7771
|
-
/* @__PURE__ */ (0,
|
|
7772
|
-
/* @__PURE__ */ (0,
|
|
8299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: rootClass, ref: rootRef, children: [
|
|
8300
|
+
labelGroup === "label" && label ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: ScSelect_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: ScSelect_default.label, children: label }) }) : null,
|
|
8301
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: ScSelect_default.selectArea, children: [
|
|
8302
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
7773
8303
|
"button",
|
|
7774
8304
|
{
|
|
7775
8305
|
type: "button",
|
|
@@ -7779,18 +8309,18 @@ var ScSelect = (props) => {
|
|
|
7779
8309
|
"aria-haspopup": "listbox",
|
|
7780
8310
|
"aria-expanded": open,
|
|
7781
8311
|
children: [
|
|
7782
|
-
/* @__PURE__ */ (0,
|
|
8312
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7783
8313
|
"span",
|
|
7784
8314
|
{
|
|
7785
8315
|
className: [ScSelect_default.triggerText, selected ? void 0 : ScSelect_default.placeholder].filter(Boolean).join(" "),
|
|
7786
8316
|
children: selected ? selected.label : placeholder
|
|
7787
8317
|
}
|
|
7788
8318
|
),
|
|
7789
|
-
/* @__PURE__ */ (0,
|
|
8319
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7790
8320
|
"span",
|
|
7791
8321
|
{
|
|
7792
8322
|
className: [ScSelect_default.chevron, open ? ScSelect_default.chevronOpen : void 0].filter(Boolean).join(" "),
|
|
7793
|
-
children: /* @__PURE__ */ (0,
|
|
8323
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
7794
8324
|
"path",
|
|
7795
8325
|
{
|
|
7796
8326
|
d: "M5 7.5L10 12.5L15 7.5",
|
|
@@ -7805,13 +8335,13 @@ var ScSelect = (props) => {
|
|
|
7805
8335
|
]
|
|
7806
8336
|
}
|
|
7807
8337
|
),
|
|
7808
|
-
open ? /* @__PURE__ */ (0,
|
|
8338
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: ScSelect_default.menu, role: "listbox", children: options.map((option) => {
|
|
7809
8339
|
const isSelected = option.id === value;
|
|
7810
8340
|
const optionClass = [
|
|
7811
8341
|
ScSelect_default.option,
|
|
7812
8342
|
isSelected ? ScSelect_default["option-selected"] : void 0
|
|
7813
8343
|
].filter(Boolean).join(" ");
|
|
7814
|
-
return /* @__PURE__ */ (0,
|
|
8344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
7815
8345
|
"div",
|
|
7816
8346
|
{
|
|
7817
8347
|
className: optionClass,
|
|
@@ -7819,8 +8349,8 @@ var ScSelect = (props) => {
|
|
|
7819
8349
|
"aria-selected": isSelected,
|
|
7820
8350
|
onClick: () => handleSelect(option.id),
|
|
7821
8351
|
children: [
|
|
7822
|
-
/* @__PURE__ */ (0,
|
|
7823
|
-
option.description ? /* @__PURE__ */ (0,
|
|
8352
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: ScSelect_default.optionLabel, children: option.label }),
|
|
8353
|
+
option.description ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: ScSelect_default.optionDescription, children: option.description }) : null
|
|
7824
8354
|
]
|
|
7825
8355
|
},
|
|
7826
8356
|
option.id
|
|
@@ -7831,7 +8361,7 @@ var ScSelect = (props) => {
|
|
|
7831
8361
|
};
|
|
7832
8362
|
|
|
7833
8363
|
// src/SC-fileField/ScFileField.tsx
|
|
7834
|
-
var
|
|
8364
|
+
var import_react19 = require("react");
|
|
7835
8365
|
|
|
7836
8366
|
// src/SC-fileField/ScFileField.module.css
|
|
7837
8367
|
var ScFileField_default = {
|
|
@@ -7855,7 +8385,7 @@ var ScFileField_default = {
|
|
|
7855
8385
|
};
|
|
7856
8386
|
|
|
7857
8387
|
// src/SC-fileField/ScFileField.tsx
|
|
7858
|
-
var
|
|
8388
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7859
8389
|
var ScFileField = (props) => {
|
|
7860
8390
|
const {
|
|
7861
8391
|
onFileSelect,
|
|
@@ -7869,7 +8399,7 @@ var ScFileField = (props) => {
|
|
|
7869
8399
|
label,
|
|
7870
8400
|
className
|
|
7871
8401
|
} = props;
|
|
7872
|
-
const inputRef = (0,
|
|
8402
|
+
const inputRef = (0, import_react19.useRef)(null);
|
|
7873
8403
|
const hasFile = Boolean(fileName);
|
|
7874
8404
|
const isUploading = Boolean(uploading);
|
|
7875
8405
|
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
@@ -7878,7 +8408,7 @@ var ScFileField = (props) => {
|
|
|
7878
8408
|
onFileSelect(e.target.files);
|
|
7879
8409
|
}
|
|
7880
8410
|
};
|
|
7881
|
-
const uploadIcon = /* @__PURE__ */ (0,
|
|
8411
|
+
const uploadIcon = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7882
8412
|
"svg",
|
|
7883
8413
|
{
|
|
7884
8414
|
className: ScFileField_default.uploadIcon,
|
|
@@ -7892,13 +8422,13 @@ var ScFileField = (props) => {
|
|
|
7892
8422
|
strokeLinejoin: "round",
|
|
7893
8423
|
"aria-hidden": "true",
|
|
7894
8424
|
children: [
|
|
7895
|
-
/* @__PURE__ */ (0,
|
|
7896
|
-
/* @__PURE__ */ (0,
|
|
7897
|
-
/* @__PURE__ */ (0,
|
|
8425
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
8426
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M12 16V4" }),
|
|
8427
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M7 9l5-5 5 5" })
|
|
7898
8428
|
]
|
|
7899
8429
|
}
|
|
7900
8430
|
);
|
|
7901
|
-
const fileIcon = /* @__PURE__ */ (0,
|
|
8431
|
+
const fileIcon = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7902
8432
|
"svg",
|
|
7903
8433
|
{
|
|
7904
8434
|
className: ScFileField_default.fileIcon,
|
|
@@ -7912,12 +8442,12 @@ var ScFileField = (props) => {
|
|
|
7912
8442
|
strokeLinejoin: "round",
|
|
7913
8443
|
"aria-hidden": "true",
|
|
7914
8444
|
children: [
|
|
7915
|
-
/* @__PURE__ */ (0,
|
|
7916
|
-
/* @__PURE__ */ (0,
|
|
8445
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
8446
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M14 2v6h6" })
|
|
7917
8447
|
]
|
|
7918
8448
|
}
|
|
7919
8449
|
);
|
|
7920
|
-
const clearIcon = /* @__PURE__ */ (0,
|
|
8450
|
+
const clearIcon = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
7921
8451
|
"svg",
|
|
7922
8452
|
{
|
|
7923
8453
|
width: "20",
|
|
@@ -7930,20 +8460,20 @@ var ScFileField = (props) => {
|
|
|
7930
8460
|
strokeLinejoin: "round",
|
|
7931
8461
|
"aria-hidden": "true",
|
|
7932
8462
|
children: [
|
|
7933
|
-
/* @__PURE__ */ (0,
|
|
7934
|
-
/* @__PURE__ */ (0,
|
|
8463
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M18 6L6 18" }),
|
|
8464
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { d: "M6 6l12 12" })
|
|
7935
8465
|
]
|
|
7936
8466
|
}
|
|
7937
8467
|
);
|
|
7938
8468
|
const rootClass = [ScFileField_default.scFileField, className].filter(Boolean).join(" ");
|
|
7939
8469
|
const showRow = hasFile || isUploading;
|
|
7940
|
-
return /* @__PURE__ */ (0,
|
|
7941
|
-
label ? /* @__PURE__ */ (0,
|
|
7942
|
-
showRow ? /* @__PURE__ */ (0,
|
|
8470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: rootClass, children: [
|
|
8471
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScFileField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScFileField_default.label, children: label }) }) : null,
|
|
8472
|
+
showRow ? /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScFileField_default.inputContainer, children: [
|
|
7943
8473
|
fileIcon,
|
|
7944
|
-
/* @__PURE__ */ (0,
|
|
7945
|
-
/* @__PURE__ */ (0,
|
|
7946
|
-
isUploading ? /* @__PURE__ */ (0,
|
|
8474
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScFileField_default.fileInfo, children: [
|
|
8475
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScFileField_default.fileName, children: fileName }),
|
|
8476
|
+
isUploading ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScFileField_default.progressTrack, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7947
8477
|
"div",
|
|
7948
8478
|
{
|
|
7949
8479
|
className: ScFileField_default.progressFill,
|
|
@@ -7951,7 +8481,7 @@ var ScFileField = (props) => {
|
|
|
7951
8481
|
}
|
|
7952
8482
|
) }) : null
|
|
7953
8483
|
] }),
|
|
7954
|
-
!isUploading ? /* @__PURE__ */ (0,
|
|
8484
|
+
!isUploading ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7955
8485
|
"button",
|
|
7956
8486
|
{
|
|
7957
8487
|
type: "button",
|
|
@@ -7961,8 +8491,8 @@ var ScFileField = (props) => {
|
|
|
7961
8491
|
children: clearIcon
|
|
7962
8492
|
}
|
|
7963
8493
|
) : null
|
|
7964
|
-
] }) : /* @__PURE__ */ (0,
|
|
7965
|
-
/* @__PURE__ */ (0,
|
|
8494
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("label", { className: ScFileField_default.dropzone, children: [
|
|
8495
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7966
8496
|
"input",
|
|
7967
8497
|
{
|
|
7968
8498
|
ref: inputRef,
|
|
@@ -7974,21 +8504,21 @@ var ScFileField = (props) => {
|
|
|
7974
8504
|
}
|
|
7975
8505
|
),
|
|
7976
8506
|
uploadIcon,
|
|
7977
|
-
/* @__PURE__ */ (0,
|
|
7978
|
-
/* @__PURE__ */ (0,
|
|
8507
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScFileField_default.dropzoneText, children: [
|
|
8508
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScFileField_default.dropzoneAction, children: "Click to upload" }),
|
|
7979
8509
|
" or drag and drop"
|
|
7980
8510
|
] }),
|
|
7981
|
-
accept ? /* @__PURE__ */ (0,
|
|
8511
|
+
accept ? /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScFileField_default.acceptedText, children: [
|
|
7982
8512
|
"Accepted: ",
|
|
7983
8513
|
accept
|
|
7984
8514
|
] }) : null
|
|
7985
8515
|
] }),
|
|
7986
|
-
error ? /* @__PURE__ */ (0,
|
|
8516
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScFileField_default.errorText, children: error }) : null
|
|
7987
8517
|
] });
|
|
7988
8518
|
};
|
|
7989
8519
|
|
|
7990
8520
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
7991
|
-
var
|
|
8521
|
+
var import_react20 = require("react");
|
|
7992
8522
|
|
|
7993
8523
|
// src/SC-mediaApproval/ScMediaApproval.module.css
|
|
7994
8524
|
var ScMediaApproval_default = {
|
|
@@ -8013,7 +8543,7 @@ var ScMediaApproval_default = {
|
|
|
8013
8543
|
};
|
|
8014
8544
|
|
|
8015
8545
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
8016
|
-
var
|
|
8546
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
8017
8547
|
var VIDEO_EXT = /\.(mp4|webm|ogg|mov|m4v)(\?.*)?$/i;
|
|
8018
8548
|
var isVideoUrl = (url, mediaType) => {
|
|
8019
8549
|
if (mediaType === "video") return true;
|
|
@@ -8035,9 +8565,9 @@ var ScMediaApproval = (props) => {
|
|
|
8035
8565
|
className
|
|
8036
8566
|
} = props;
|
|
8037
8567
|
const total = mediaUrls.length;
|
|
8038
|
-
const [index, setIndex] = (0,
|
|
8039
|
-
const [mediaLoading, setMediaLoading] = (0,
|
|
8040
|
-
(0,
|
|
8568
|
+
const [index, setIndex] = (0, import_react20.useState)(activeIndex ?? 0);
|
|
8569
|
+
const [mediaLoading, setMediaLoading] = (0, import_react20.useState)(false);
|
|
8570
|
+
(0, import_react20.useEffect)(() => {
|
|
8041
8571
|
if (typeof activeIndex === "number") {
|
|
8042
8572
|
setIndex(activeIndex);
|
|
8043
8573
|
}
|
|
@@ -8055,9 +8585,9 @@ var ScMediaApproval = (props) => {
|
|
|
8055
8585
|
const handlePreview = () => {
|
|
8056
8586
|
if (currentUrl && onPreview) onPreview(currentUrl);
|
|
8057
8587
|
};
|
|
8058
|
-
return /* @__PURE__ */ (0,
|
|
8059
|
-
/* @__PURE__ */ (0,
|
|
8060
|
-
currentUrl ? currentIsVideo ? /* @__PURE__ */ (0,
|
|
8588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: [ScMediaApproval_default.scMediaApproval, className].filter(Boolean).join(" "), children: [
|
|
8589
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: ScMediaApproval_default.mediaFrame, children: [
|
|
8590
|
+
currentUrl ? currentIsVideo ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8061
8591
|
"video",
|
|
8062
8592
|
{
|
|
8063
8593
|
className: ScMediaApproval_default.media,
|
|
@@ -8066,7 +8596,7 @@ var ScMediaApproval = (props) => {
|
|
|
8066
8596
|
onClick: handlePreview,
|
|
8067
8597
|
onLoadedData: () => setMediaLoading(false)
|
|
8068
8598
|
}
|
|
8069
|
-
) : /* @__PURE__ */ (0,
|
|
8599
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8070
8600
|
"img",
|
|
8071
8601
|
{
|
|
8072
8602
|
className: ScMediaApproval_default.media,
|
|
@@ -8075,8 +8605,8 @@ var ScMediaApproval = (props) => {
|
|
|
8075
8605
|
onClick: handlePreview,
|
|
8076
8606
|
onLoad: () => setMediaLoading(false)
|
|
8077
8607
|
}
|
|
8078
|
-
) : /* @__PURE__ */ (0,
|
|
8079
|
-
(loading || mediaLoading) && /* @__PURE__ */ (0,
|
|
8608
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: ScMediaApproval_default.mediaEmpty }),
|
|
8609
|
+
(loading || mediaLoading) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: ScMediaApproval_default.spinnerOverlay, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8080
8610
|
"svg",
|
|
8081
8611
|
{
|
|
8082
8612
|
className: ScMediaApproval_default.spinner,
|
|
@@ -8084,7 +8614,7 @@ var ScMediaApproval = (props) => {
|
|
|
8084
8614
|
height: "32",
|
|
8085
8615
|
viewBox: "0 0 24 24",
|
|
8086
8616
|
fill: "none",
|
|
8087
|
-
children: /* @__PURE__ */ (0,
|
|
8617
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8088
8618
|
"path",
|
|
8089
8619
|
{
|
|
8090
8620
|
d: "M12 3a9 9 0 1 0 9 9",
|
|
@@ -8095,15 +8625,15 @@ var ScMediaApproval = (props) => {
|
|
|
8095
8625
|
)
|
|
8096
8626
|
}
|
|
8097
8627
|
) }),
|
|
8098
|
-
total > 1 && /* @__PURE__ */ (0,
|
|
8099
|
-
/* @__PURE__ */ (0,
|
|
8628
|
+
total > 1 && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
8629
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8100
8630
|
"button",
|
|
8101
8631
|
{
|
|
8102
8632
|
type: "button",
|
|
8103
8633
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navPrev].join(" "),
|
|
8104
8634
|
"aria-label": "Previous",
|
|
8105
8635
|
onClick: () => goTo(safeIndex - 1),
|
|
8106
|
-
children: /* @__PURE__ */ (0,
|
|
8636
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8107
8637
|
"path",
|
|
8108
8638
|
{
|
|
8109
8639
|
d: "M15 6L9 12L15 18",
|
|
@@ -8115,14 +8645,14 @@ var ScMediaApproval = (props) => {
|
|
|
8115
8645
|
) })
|
|
8116
8646
|
}
|
|
8117
8647
|
),
|
|
8118
|
-
/* @__PURE__ */ (0,
|
|
8648
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8119
8649
|
"button",
|
|
8120
8650
|
{
|
|
8121
8651
|
type: "button",
|
|
8122
8652
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navNext].join(" "),
|
|
8123
8653
|
"aria-label": "Next",
|
|
8124
8654
|
onClick: () => goTo(safeIndex + 1),
|
|
8125
|
-
children: /* @__PURE__ */ (0,
|
|
8655
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8126
8656
|
"path",
|
|
8127
8657
|
{
|
|
8128
8658
|
d: "M9 6L15 12L9 18",
|
|
@@ -8134,12 +8664,12 @@ var ScMediaApproval = (props) => {
|
|
|
8134
8664
|
) })
|
|
8135
8665
|
}
|
|
8136
8666
|
),
|
|
8137
|
-
/* @__PURE__ */ (0,
|
|
8667
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: ScMediaApproval_default.counterBadge, children: [
|
|
8138
8668
|
safeIndex + 1,
|
|
8139
8669
|
" / ",
|
|
8140
8670
|
total
|
|
8141
8671
|
] }),
|
|
8142
|
-
/* @__PURE__ */ (0,
|
|
8672
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: ScMediaApproval_default.dots, children: mediaUrls.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8143
8673
|
"button",
|
|
8144
8674
|
{
|
|
8145
8675
|
type: "button",
|
|
@@ -8154,9 +8684,9 @@ var ScMediaApproval = (props) => {
|
|
|
8154
8684
|
)) })
|
|
8155
8685
|
] })
|
|
8156
8686
|
] }),
|
|
8157
|
-
/* @__PURE__ */ (0,
|
|
8158
|
-
/* @__PURE__ */ (0,
|
|
8159
|
-
/* @__PURE__ */ (0,
|
|
8687
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: ScMediaApproval_default.feedbackBlock, children: [
|
|
8688
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: ScMediaApproval_default.label, children: feedbackLabel }),
|
|
8689
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: ScMediaApproval_default.inputContainer, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8160
8690
|
"textarea",
|
|
8161
8691
|
{
|
|
8162
8692
|
className: ScMediaApproval_default.textArea,
|
|
@@ -8172,7 +8702,7 @@ var ScMediaApproval = (props) => {
|
|
|
8172
8702
|
};
|
|
8173
8703
|
|
|
8174
8704
|
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8175
|
-
var
|
|
8705
|
+
var import_react21 = require("react");
|
|
8176
8706
|
|
|
8177
8707
|
// src/SC-mediaSelect/ScMediaSelect.module.css
|
|
8178
8708
|
var ScMediaSelect_default = {
|
|
@@ -8192,8 +8722,8 @@ var ScMediaSelect_default = {
|
|
|
8192
8722
|
};
|
|
8193
8723
|
|
|
8194
8724
|
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8195
|
-
var
|
|
8196
|
-
var CheckBadge = () => /* @__PURE__ */ (0,
|
|
8725
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
8726
|
+
var CheckBadge = () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: ScMediaSelect_default.checkBadge, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8197
8727
|
"path",
|
|
8198
8728
|
{
|
|
8199
8729
|
d: "M3.5 7.25L6 9.75L10.5 4.75",
|
|
@@ -8203,7 +8733,7 @@ var CheckBadge = () => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { c
|
|
|
8203
8733
|
strokeLinejoin: "round"
|
|
8204
8734
|
}
|
|
8205
8735
|
) }) });
|
|
8206
|
-
var MaximizeIcon = () => /* @__PURE__ */ (0,
|
|
8736
|
+
var MaximizeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8207
8737
|
"path",
|
|
8208
8738
|
{
|
|
8209
8739
|
d: "M15 3H21V9M9 21H3V15M21 3L14 10M3 21L10 14",
|
|
@@ -8228,16 +8758,16 @@ var ScMediaSelect = (props) => {
|
|
|
8228
8758
|
} = props;
|
|
8229
8759
|
const total = items.length;
|
|
8230
8760
|
const resolvedMax = typeof max === "number" ? max : total;
|
|
8231
|
-
const selectedSet = (0,
|
|
8761
|
+
const selectedSet = (0, import_react21.useMemo)(() => new Set(selected), [selected]);
|
|
8232
8762
|
const selectedCount = selectedSet.size;
|
|
8233
8763
|
let countLabel = selectedCount + " of " + total + " selected";
|
|
8234
8764
|
if (min > 0) countLabel += " (min " + min + ")";
|
|
8235
8765
|
if (resolvedMax < total) countLabel += " (max " + resolvedMax + ")";
|
|
8236
|
-
return /* @__PURE__ */ (0,
|
|
8237
|
-
/* @__PURE__ */ (0,
|
|
8238
|
-
/* @__PURE__ */ (0,
|
|
8239
|
-
/* @__PURE__ */ (0,
|
|
8240
|
-
/* @__PURE__ */ (0,
|
|
8766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: [ScMediaSelect_default.scMediaSelect, className].filter(Boolean).join(" "), children: [
|
|
8767
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: ScMediaSelect_default.header, children: [
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: ScMediaSelect_default.countLabel, children: countLabel }),
|
|
8769
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: ScMediaSelect_default.actions, children: [
|
|
8770
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8241
8771
|
"button",
|
|
8242
8772
|
{
|
|
8243
8773
|
type: "button",
|
|
@@ -8246,8 +8776,8 @@ var ScMediaSelect = (props) => {
|
|
|
8246
8776
|
children: "Select all"
|
|
8247
8777
|
}
|
|
8248
8778
|
),
|
|
8249
|
-
/* @__PURE__ */ (0,
|
|
8250
|
-
/* @__PURE__ */ (0,
|
|
8779
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: ScMediaSelect_default.divider, children: "|" }),
|
|
8780
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8251
8781
|
"button",
|
|
8252
8782
|
{
|
|
8253
8783
|
type: "button",
|
|
@@ -8258,13 +8788,13 @@ var ScMediaSelect = (props) => {
|
|
|
8258
8788
|
)
|
|
8259
8789
|
] })
|
|
8260
8790
|
] }),
|
|
8261
|
-
/* @__PURE__ */ (0,
|
|
8791
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScMediaSelect_default.grid, children: items.map((url, index) => {
|
|
8262
8792
|
const isSelected = selectedSet.has(url);
|
|
8263
8793
|
const itemClass = [
|
|
8264
8794
|
ScMediaSelect_default.item,
|
|
8265
8795
|
isSelected ? ScMediaSelect_default["state-selected"] : ScMediaSelect_default["state-default"]
|
|
8266
8796
|
].filter(Boolean).join(" ");
|
|
8267
|
-
return /* @__PURE__ */ (0,
|
|
8797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
8268
8798
|
"div",
|
|
8269
8799
|
{
|
|
8270
8800
|
className: itemClass,
|
|
@@ -8273,9 +8803,9 @@ var ScMediaSelect = (props) => {
|
|
|
8273
8803
|
tabIndex: 0,
|
|
8274
8804
|
"aria-pressed": isSelected,
|
|
8275
8805
|
children: [
|
|
8276
|
-
mediaType === "video" ? /* @__PURE__ */ (0,
|
|
8277
|
-
isSelected && /* @__PURE__ */ (0,
|
|
8278
|
-
onPreview && /* @__PURE__ */ (0,
|
|
8806
|
+
mediaType === "video" ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("video", { className: ScMediaSelect_default.media, src: url, muted: true, playsInline: true }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("img", { className: ScMediaSelect_default.media, src: url, alt: "" }),
|
|
8807
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(CheckBadge, {}),
|
|
8808
|
+
onPreview && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8279
8809
|
"button",
|
|
8280
8810
|
{
|
|
8281
8811
|
type: "button",
|
|
@@ -8285,7 +8815,7 @@ var ScMediaSelect = (props) => {
|
|
|
8285
8815
|
onPreview(url);
|
|
8286
8816
|
},
|
|
8287
8817
|
"aria-label": "Preview",
|
|
8288
|
-
children: /* @__PURE__ */ (0,
|
|
8818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(MaximizeIcon, {})
|
|
8289
8819
|
}
|
|
8290
8820
|
)
|
|
8291
8821
|
]
|
|
@@ -8297,7 +8827,7 @@ var ScMediaSelect = (props) => {
|
|
|
8297
8827
|
};
|
|
8298
8828
|
|
|
8299
8829
|
// src/SC-todoList/ScTodoList.tsx
|
|
8300
|
-
var
|
|
8830
|
+
var import_react22 = require("react");
|
|
8301
8831
|
|
|
8302
8832
|
// src/SC-todoList/ScTodoList.module.css
|
|
8303
8833
|
var ScTodoList_default = {
|
|
@@ -8320,7 +8850,7 @@ var ScTodoList_default = {
|
|
|
8320
8850
|
};
|
|
8321
8851
|
|
|
8322
8852
|
// src/SC-todoList/ScTodoList.tsx
|
|
8323
|
-
var
|
|
8853
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
8324
8854
|
var ScTodoList = ({
|
|
8325
8855
|
items = [],
|
|
8326
8856
|
onToggle,
|
|
@@ -8330,9 +8860,9 @@ var ScTodoList = ({
|
|
|
8330
8860
|
addPlaceholder = "Add an item",
|
|
8331
8861
|
className
|
|
8332
8862
|
}) => {
|
|
8333
|
-
const [editingId, setEditingId] = (0,
|
|
8334
|
-
const [editValue, setEditValue] = (0,
|
|
8335
|
-
const [newValue, setNewValue] = (0,
|
|
8863
|
+
const [editingId, setEditingId] = (0, import_react22.useState)(null);
|
|
8864
|
+
const [editValue, setEditValue] = (0, import_react22.useState)("");
|
|
8865
|
+
const [newValue, setNewValue] = (0, import_react22.useState)("");
|
|
8336
8866
|
const total = items.length;
|
|
8337
8867
|
const completed = items.filter((i) => i.status === "completed").length;
|
|
8338
8868
|
const startEditing = (item) => {
|
|
@@ -8354,9 +8884,9 @@ var ScTodoList = ({
|
|
|
8354
8884
|
onAdd?.(newValue);
|
|
8355
8885
|
setNewValue("");
|
|
8356
8886
|
};
|
|
8357
|
-
return /* @__PURE__ */ (0,
|
|
8358
|
-
total > 0 && /* @__PURE__ */ (0,
|
|
8359
|
-
/* @__PURE__ */ (0,
|
|
8887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: [ScTodoList_default.scTodoList, className].filter(Boolean).join(" "), children: [
|
|
8888
|
+
total > 0 && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTodoList_default.progress, children: [
|
|
8889
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8360
8890
|
"svg",
|
|
8361
8891
|
{
|
|
8362
8892
|
className: ScTodoList_default.progressIcon,
|
|
@@ -8365,7 +8895,7 @@ var ScTodoList = ({
|
|
|
8365
8895
|
viewBox: "0 0 14 14",
|
|
8366
8896
|
fill: "none",
|
|
8367
8897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8368
|
-
children: /* @__PURE__ */ (0,
|
|
8898
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8369
8899
|
"path",
|
|
8370
8900
|
{
|
|
8371
8901
|
d: "M3 7L6 10L11 4",
|
|
@@ -8377,25 +8907,25 @@ var ScTodoList = ({
|
|
|
8377
8907
|
)
|
|
8378
8908
|
}
|
|
8379
8909
|
),
|
|
8380
|
-
/* @__PURE__ */ (0,
|
|
8910
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("span", { className: ScTodoList_default.progressText, children: [
|
|
8381
8911
|
completed,
|
|
8382
8912
|
" of ",
|
|
8383
8913
|
total,
|
|
8384
8914
|
" completed"
|
|
8385
8915
|
] })
|
|
8386
8916
|
] }),
|
|
8387
|
-
/* @__PURE__ */ (0,
|
|
8917
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: ScTodoList_default.rows, children: items.map((item) => {
|
|
8388
8918
|
const isEditing = editingId === item.id;
|
|
8389
8919
|
const isCompleted = item.status === "completed";
|
|
8390
|
-
return /* @__PURE__ */ (0,
|
|
8391
|
-
/* @__PURE__ */ (0,
|
|
8920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTodoList_default.row, children: [
|
|
8921
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8392
8922
|
"button",
|
|
8393
8923
|
{
|
|
8394
8924
|
type: "button",
|
|
8395
8925
|
className: ScTodoList_default.checkbox,
|
|
8396
8926
|
"aria-label": isCompleted ? "Mark as pending" : "Mark as completed",
|
|
8397
8927
|
onClick: () => onToggle?.(item.id),
|
|
8398
|
-
children: isCompleted ? /* @__PURE__ */ (0,
|
|
8928
|
+
children: isCompleted ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
8399
8929
|
"svg",
|
|
8400
8930
|
{
|
|
8401
8931
|
width: "18",
|
|
@@ -8404,8 +8934,8 @@ var ScTodoList = ({
|
|
|
8404
8934
|
fill: "none",
|
|
8405
8935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8406
8936
|
children: [
|
|
8407
|
-
/* @__PURE__ */ (0,
|
|
8408
|
-
/* @__PURE__ */ (0,
|
|
8937
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("circle", { cx: "9", cy: "9", r: "9", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
8938
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8409
8939
|
"path",
|
|
8410
8940
|
{
|
|
8411
8941
|
d: "M5.25 9L7.75 11.5L12.75 6.5",
|
|
@@ -8417,7 +8947,7 @@ var ScTodoList = ({
|
|
|
8417
8947
|
)
|
|
8418
8948
|
]
|
|
8419
8949
|
}
|
|
8420
|
-
) : /* @__PURE__ */ (0,
|
|
8950
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8421
8951
|
"svg",
|
|
8422
8952
|
{
|
|
8423
8953
|
width: "18",
|
|
@@ -8425,7 +8955,7 @@ var ScTodoList = ({
|
|
|
8425
8955
|
viewBox: "0 0 18 18",
|
|
8426
8956
|
fill: "none",
|
|
8427
8957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8428
|
-
children: /* @__PURE__ */ (0,
|
|
8958
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8429
8959
|
"circle",
|
|
8430
8960
|
{
|
|
8431
8961
|
cx: "9",
|
|
@@ -8439,7 +8969,7 @@ var ScTodoList = ({
|
|
|
8439
8969
|
)
|
|
8440
8970
|
}
|
|
8441
8971
|
),
|
|
8442
|
-
isEditing ? /* @__PURE__ */ (0,
|
|
8972
|
+
isEditing ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8443
8973
|
"input",
|
|
8444
8974
|
{
|
|
8445
8975
|
className: ScTodoList_default.editInput,
|
|
@@ -8457,7 +8987,7 @@ var ScTodoList = ({
|
|
|
8457
8987
|
}
|
|
8458
8988
|
}
|
|
8459
8989
|
}
|
|
8460
|
-
) : /* @__PURE__ */ (0,
|
|
8990
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8461
8991
|
"span",
|
|
8462
8992
|
{
|
|
8463
8993
|
className: [
|
|
@@ -8467,15 +8997,15 @@ var ScTodoList = ({
|
|
|
8467
8997
|
children: item.content
|
|
8468
8998
|
}
|
|
8469
8999
|
),
|
|
8470
|
-
!isEditing && /* @__PURE__ */ (0,
|
|
8471
|
-
/* @__PURE__ */ (0,
|
|
9000
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTodoList_default.actions, children: [
|
|
9001
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8472
9002
|
"button",
|
|
8473
9003
|
{
|
|
8474
9004
|
type: "button",
|
|
8475
9005
|
className: ScTodoList_default.actionButton,
|
|
8476
9006
|
"aria-label": "Edit item",
|
|
8477
9007
|
onClick: () => startEditing(item),
|
|
8478
|
-
children: /* @__PURE__ */ (0,
|
|
9008
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8479
9009
|
"svg",
|
|
8480
9010
|
{
|
|
8481
9011
|
width: "16",
|
|
@@ -8483,7 +9013,7 @@ var ScTodoList = ({
|
|
|
8483
9013
|
viewBox: "0 0 16 16",
|
|
8484
9014
|
fill: "none",
|
|
8485
9015
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8486
|
-
children: /* @__PURE__ */ (0,
|
|
9016
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8487
9017
|
"path",
|
|
8488
9018
|
{
|
|
8489
9019
|
d: "M11.333 2.667a1.414 1.414 0 0 1 2 2L5.333 12.667l-2.667.667.667-2.667 8-8Z",
|
|
@@ -8497,14 +9027,14 @@ var ScTodoList = ({
|
|
|
8497
9027
|
)
|
|
8498
9028
|
}
|
|
8499
9029
|
),
|
|
8500
|
-
/* @__PURE__ */ (0,
|
|
9030
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8501
9031
|
"button",
|
|
8502
9032
|
{
|
|
8503
9033
|
type: "button",
|
|
8504
9034
|
className: [ScTodoList_default.actionButton, ScTodoList_default.actionButtonDanger].filter(Boolean).join(" "),
|
|
8505
9035
|
"aria-label": "Delete item",
|
|
8506
9036
|
onClick: () => onDelete?.(item.id),
|
|
8507
|
-
children: /* @__PURE__ */ (0,
|
|
9037
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8508
9038
|
"svg",
|
|
8509
9039
|
{
|
|
8510
9040
|
width: "16",
|
|
@@ -8512,7 +9042,7 @@ var ScTodoList = ({
|
|
|
8512
9042
|
viewBox: "0 0 16 16",
|
|
8513
9043
|
fill: "none",
|
|
8514
9044
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8515
|
-
children: /* @__PURE__ */ (0,
|
|
9045
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8516
9046
|
"path",
|
|
8517
9047
|
{
|
|
8518
9048
|
d: "M2.667 4h10.666M6.667 7.333v3.334M9.333 7.333v3.334M3.333 4l.667 8a1.333 1.333 0 0 0 1.333 1.333h5.334A1.333 1.333 0 0 0 12 12l.667-8M6 4V2.667a.667.667 0 0 1 .667-.667h2.666a.667.667 0 0 1 .667.667V4",
|
|
@@ -8529,8 +9059,8 @@ var ScTodoList = ({
|
|
|
8529
9059
|
] })
|
|
8530
9060
|
] }, item.id);
|
|
8531
9061
|
}) }),
|
|
8532
|
-
/* @__PURE__ */ (0,
|
|
8533
|
-
/* @__PURE__ */ (0,
|
|
9062
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTodoList_default.addRow, children: [
|
|
9063
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8534
9064
|
"input",
|
|
8535
9065
|
{
|
|
8536
9066
|
className: ScTodoList_default.addInput,
|
|
@@ -8545,7 +9075,7 @@ var ScTodoList = ({
|
|
|
8545
9075
|
}
|
|
8546
9076
|
}
|
|
8547
9077
|
),
|
|
8548
|
-
/* @__PURE__ */ (0,
|
|
9078
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8549
9079
|
"button",
|
|
8550
9080
|
{
|
|
8551
9081
|
type: "button",
|
|
@@ -8553,7 +9083,7 @@ var ScTodoList = ({
|
|
|
8553
9083
|
"aria-label": "Add item",
|
|
8554
9084
|
disabled: newValue.trim().length === 0,
|
|
8555
9085
|
onClick: commitAdd,
|
|
8556
|
-
children: /* @__PURE__ */ (0,
|
|
9086
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8557
9087
|
"svg",
|
|
8558
9088
|
{
|
|
8559
9089
|
width: "18",
|
|
@@ -8561,7 +9091,7 @@ var ScTodoList = ({
|
|
|
8561
9091
|
viewBox: "0 0 18 18",
|
|
8562
9092
|
fill: "none",
|
|
8563
9093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8564
|
-
children: /* @__PURE__ */ (0,
|
|
9094
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8565
9095
|
"path",
|
|
8566
9096
|
{
|
|
8567
9097
|
d: "M9 4v10M4 9h10",
|
|
@@ -8588,18 +9118,18 @@ var ScRoleMobile_default = {
|
|
|
8588
9118
|
};
|
|
8589
9119
|
|
|
8590
9120
|
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
8591
|
-
var
|
|
9121
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8592
9122
|
var ScRoleMobile = ({
|
|
8593
9123
|
role = "admin",
|
|
8594
9124
|
className,
|
|
8595
9125
|
...props
|
|
8596
9126
|
}) => {
|
|
8597
|
-
return /* @__PURE__ */ (0,
|
|
9127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8598
9128
|
"div",
|
|
8599
9129
|
{
|
|
8600
9130
|
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
8601
9131
|
...props,
|
|
8602
|
-
children: /* @__PURE__ */ (0,
|
|
9132
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
8603
9133
|
}
|
|
8604
9134
|
);
|
|
8605
9135
|
};
|
|
@@ -8616,7 +9146,7 @@ var ScProfileV2Mobile_default = {
|
|
|
8616
9146
|
};
|
|
8617
9147
|
|
|
8618
9148
|
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
8619
|
-
var
|
|
9149
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
8620
9150
|
var ScProfileV2Mobile = ({
|
|
8621
9151
|
name = "Chris Hemsworth",
|
|
8622
9152
|
email = "chris@kepler.com",
|
|
@@ -8626,17 +9156,17 @@ var ScProfileV2Mobile = ({
|
|
|
8626
9156
|
...props
|
|
8627
9157
|
}) => {
|
|
8628
9158
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8629
|
-
const profileImage = /* @__PURE__ */ (0,
|
|
8630
|
-
return /* @__PURE__ */ (0,
|
|
9159
|
+
const profileImage = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScProfileV2Mobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("img", { src: imageUrl, alt: name, className: ScProfileV2Mobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScProfileV2Mobile_default.initials, children: initials }) });
|
|
9160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
8631
9161
|
"div",
|
|
8632
9162
|
{
|
|
8633
9163
|
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
8634
9164
|
...props,
|
|
8635
9165
|
children: [
|
|
8636
9166
|
dpPosition === "left" && profileImage,
|
|
8637
|
-
/* @__PURE__ */ (0,
|
|
8638
|
-
/* @__PURE__ */ (0,
|
|
8639
|
-
/* @__PURE__ */ (0,
|
|
9167
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: ScProfileV2Mobile_default.userInfo, children: [
|
|
9168
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScProfileV2Mobile_default.userName, children: name }),
|
|
9169
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScProfileV2Mobile_default.userEmail, children: email })
|
|
8640
9170
|
] }),
|
|
8641
9171
|
dpPosition === "right" && profileImage
|
|
8642
9172
|
]
|
|
@@ -8663,7 +9193,7 @@ var ScTableListMobile_default = {
|
|
|
8663
9193
|
};
|
|
8664
9194
|
|
|
8665
9195
|
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
8666
|
-
var
|
|
9196
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8667
9197
|
var ScTableListMobile = ({
|
|
8668
9198
|
name = "Chris Hemsworth",
|
|
8669
9199
|
email = "chris@kepler.com",
|
|
@@ -8676,25 +9206,25 @@ var ScTableListMobile = ({
|
|
|
8676
9206
|
...props
|
|
8677
9207
|
}) => {
|
|
8678
9208
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8679
|
-
return /* @__PURE__ */ (0,
|
|
9209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
8680
9210
|
"div",
|
|
8681
9211
|
{
|
|
8682
9212
|
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
8683
9213
|
onClick: onRowClick,
|
|
8684
9214
|
...props,
|
|
8685
9215
|
children: [
|
|
8686
|
-
/* @__PURE__ */ (0,
|
|
8687
|
-
/* @__PURE__ */ (0,
|
|
8688
|
-
/* @__PURE__ */ (0,
|
|
8689
|
-
/* @__PURE__ */ (0,
|
|
9216
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScTableListMobile_default.profileRow, children: [
|
|
9217
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScTableListMobile_default.userInfo, children: [
|
|
9218
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: ScTableListMobile_default.userName, children: name }),
|
|
9219
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: ScTableListMobile_default.userEmail, children: email })
|
|
8690
9220
|
] }),
|
|
8691
|
-
/* @__PURE__ */ (0,
|
|
9221
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScTableListMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("img", { src: imageUrl, alt: name, className: ScTableListMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScTableListMobile_default.initials, children: initials }) })
|
|
8692
9222
|
] }),
|
|
8693
|
-
/* @__PURE__ */ (0,
|
|
8694
|
-
/* @__PURE__ */ (0,
|
|
8695
|
-
/* @__PURE__ */ (0,
|
|
8696
|
-
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0,
|
|
8697
|
-
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0,
|
|
9223
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScTableListMobile_default.detailsRow, children: [
|
|
9224
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScTableListMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: ScTableListMobile_default.roleText, children: role }) }),
|
|
9225
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScTableListMobile_default.accessInfo, children: [
|
|
9226
|
+
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: accessIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) }),
|
|
9227
|
+
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: permissionIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) })
|
|
8698
9228
|
] })
|
|
8699
9229
|
] })
|
|
8700
9230
|
]
|
|
@@ -8722,7 +9252,7 @@ var ScWorkspaceSwitchMobile_default = {
|
|
|
8722
9252
|
};
|
|
8723
9253
|
|
|
8724
9254
|
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
8725
|
-
var
|
|
9255
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
8726
9256
|
var ScWorkspaceSwitchMobile = ({
|
|
8727
9257
|
storeName = "Stores",
|
|
8728
9258
|
initials = "WS",
|
|
@@ -8735,24 +9265,24 @@ var ScWorkspaceSwitchMobile = ({
|
|
|
8735
9265
|
...props
|
|
8736
9266
|
}) => {
|
|
8737
9267
|
const variant = currentWs ? "current" : "other";
|
|
8738
|
-
return /* @__PURE__ */ (0,
|
|
9268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
8739
9269
|
"div",
|
|
8740
9270
|
{
|
|
8741
9271
|
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
8742
9272
|
onClick,
|
|
8743
9273
|
...props,
|
|
8744
9274
|
children: [
|
|
8745
|
-
/* @__PURE__ */ (0,
|
|
8746
|
-
/* @__PURE__ */ (0,
|
|
8747
|
-
/* @__PURE__ */ (0,
|
|
8748
|
-
/* @__PURE__ */ (0,
|
|
9275
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.workspaceInfo, children: [
|
|
9276
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.wsNameRow, children: [
|
|
9277
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: ScWorkspaceSwitchMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: ScWorkspaceSwitchMobile_default.initialsText, children: initials }) }),
|
|
9278
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: ScWorkspaceSwitchMobile_default.storeName, children: storeName })
|
|
8749
9279
|
] }),
|
|
8750
|
-
/* @__PURE__ */ (0,
|
|
9280
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
8751
9281
|
] }),
|
|
8752
|
-
/* @__PURE__ */ (0,
|
|
8753
|
-
/* @__PURE__ */ (0,
|
|
8754
|
-
/* @__PURE__ */ (0,
|
|
8755
|
-
/* @__PURE__ */ (0,
|
|
9282
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: ScWorkspaceSwitchMobile_default.divider }),
|
|
9283
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.ownerRow, children: [
|
|
9284
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: ScWorkspaceSwitchMobile_default.ownerIconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: ScWorkspaceSwitchMobile_default.ownerIcon, children: ownerIcon }) }),
|
|
9285
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: ScWorkspaceSwitchMobile_default.ownerText, children: ownerId })
|
|
8756
9286
|
] })
|
|
8757
9287
|
]
|
|
8758
9288
|
}
|
|
@@ -8779,7 +9309,7 @@ var ScWorkspaceSettingsMobile_default = {
|
|
|
8779
9309
|
};
|
|
8780
9310
|
|
|
8781
9311
|
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
8782
|
-
var
|
|
9312
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
8783
9313
|
var ScWorkspaceSettingsMobile = ({
|
|
8784
9314
|
storeName = "Stores",
|
|
8785
9315
|
initials = "WS",
|
|
@@ -8794,28 +9324,28 @@ var ScWorkspaceSettingsMobile = ({
|
|
|
8794
9324
|
...props
|
|
8795
9325
|
}) => {
|
|
8796
9326
|
const variant = currentWs ? "current" : "other";
|
|
8797
|
-
return /* @__PURE__ */ (0,
|
|
9327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
8798
9328
|
"div",
|
|
8799
9329
|
{
|
|
8800
9330
|
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
8801
9331
|
onClick,
|
|
8802
9332
|
...props,
|
|
8803
9333
|
children: [
|
|
8804
|
-
/* @__PURE__ */ (0,
|
|
8805
|
-
/* @__PURE__ */ (0,
|
|
8806
|
-
/* @__PURE__ */ (0,
|
|
8807
|
-
/* @__PURE__ */ (0,
|
|
9334
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.workspaceInfo, children: [
|
|
9335
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.wsNameRow, children: [
|
|
9336
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScWorkspaceSettingsMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: ScWorkspaceSettingsMobile_default.initialsText, children: initials }) }),
|
|
9337
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: ScWorkspaceSettingsMobile_default.storeName, children: storeName })
|
|
8808
9338
|
] }),
|
|
8809
|
-
/* @__PURE__ */ (0,
|
|
9339
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
8810
9340
|
] }),
|
|
8811
|
-
/* @__PURE__ */ (0,
|
|
8812
|
-
/* @__PURE__ */ (0,
|
|
8813
|
-
/* @__PURE__ */ (0,
|
|
8814
|
-
/* @__PURE__ */ (0,
|
|
9341
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScWorkspaceSettingsMobile_default.divider }),
|
|
9342
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
9343
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: ownerIcon }) }),
|
|
9344
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: ownerId })
|
|
8815
9345
|
] }),
|
|
8816
|
-
/* @__PURE__ */ (0,
|
|
8817
|
-
/* @__PURE__ */ (0,
|
|
8818
|
-
/* @__PURE__ */ (0,
|
|
9346
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
9347
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: teamIcon && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: teamIcon }) }),
|
|
9348
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: teamCount })
|
|
8819
9349
|
] })
|
|
8820
9350
|
]
|
|
8821
9351
|
}
|
|
@@ -8838,7 +9368,7 @@ var ScMobileTopNav_default = {
|
|
|
8838
9368
|
};
|
|
8839
9369
|
|
|
8840
9370
|
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
8841
|
-
var
|
|
9371
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
8842
9372
|
var ScMobileTopNav = ({
|
|
8843
9373
|
type = "home",
|
|
8844
9374
|
searchIcon = false,
|
|
@@ -8861,22 +9391,22 @@ var ScMobileTopNav = ({
|
|
|
8861
9391
|
}) => {
|
|
8862
9392
|
const hasBorder = type === "chat" || type === "inApp";
|
|
8863
9393
|
const showSearch = type === "inApp" && searchIcon && search;
|
|
8864
|
-
return /* @__PURE__ */ (0,
|
|
9394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8865
9395
|
"div",
|
|
8866
9396
|
{
|
|
8867
9397
|
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
8868
9398
|
...props,
|
|
8869
9399
|
children: [
|
|
8870
|
-
type === "home" && /* @__PURE__ */ (0,
|
|
8871
|
-
type === "chat" && /* @__PURE__ */ (0,
|
|
8872
|
-
/* @__PURE__ */ (0,
|
|
8873
|
-
/* @__PURE__ */ (0,
|
|
8874
|
-
/* @__PURE__ */ (0,
|
|
9400
|
+
type === "home" && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9401
|
+
type === "chat" && /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
|
|
9402
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9403
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScMobileTopNav_default.chatTitle, children: chatTitle }),
|
|
9404
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMoreClick, children: moreIcon || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
8875
9405
|
] }),
|
|
8876
|
-
showSearch && /* @__PURE__ */ (0,
|
|
8877
|
-
/* @__PURE__ */ (0,
|
|
8878
|
-
/* @__PURE__ */ (0,
|
|
8879
|
-
/* @__PURE__ */ (0,
|
|
9406
|
+
showSearch && /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
|
|
9407
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.searchRow, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScMobileTopNav_default.searchInputContainer, children: [
|
|
9408
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onSearchClick, children: searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9409
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.searchInput, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8880
9410
|
"input",
|
|
8881
9411
|
{
|
|
8882
9412
|
type: "text",
|
|
@@ -8887,17 +9417,17 @@ var ScMobileTopNav = ({
|
|
|
8887
9417
|
}
|
|
8888
9418
|
) })
|
|
8889
9419
|
] }) }),
|
|
8890
|
-
/* @__PURE__ */ (0,
|
|
9420
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
8891
9421
|
] }),
|
|
8892
|
-
type === "inApp" && !search && /* @__PURE__ */ (0,
|
|
8893
|
-
/* @__PURE__ */ (0,
|
|
8894
|
-
/* @__PURE__ */ (0,
|
|
8895
|
-
/* @__PURE__ */ (0,
|
|
9422
|
+
type === "inApp" && !search && /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
|
|
9423
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9424
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScMobileTopNav_default.heading, children: heading }),
|
|
9425
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8896
9426
|
"div",
|
|
8897
9427
|
{
|
|
8898
9428
|
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
8899
9429
|
onClick: onSearchClick,
|
|
8900
|
-
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0,
|
|
9430
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
8901
9431
|
}
|
|
8902
9432
|
)
|
|
8903
9433
|
] })
|
|
@@ -8918,7 +9448,7 @@ var ScMobileBottomAction_default = {
|
|
|
8918
9448
|
};
|
|
8919
9449
|
|
|
8920
9450
|
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
8921
|
-
var
|
|
9451
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
8922
9452
|
var ScMobileBottomAction = ({
|
|
8923
9453
|
text = "Save Changes",
|
|
8924
9454
|
disabled = false,
|
|
@@ -8930,28 +9460,28 @@ var ScMobileBottomAction = ({
|
|
|
8930
9460
|
...props
|
|
8931
9461
|
}) => {
|
|
8932
9462
|
const isTwoButton = !!secondaryText;
|
|
8933
|
-
return /* @__PURE__ */ (0,
|
|
9463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
8934
9464
|
"div",
|
|
8935
9465
|
{
|
|
8936
9466
|
className: ScMobileBottomAction_default.scMobileBottomAction + (isTwoButton ? " " + ScMobileBottomAction_default.twoButton : "") + " " + className,
|
|
8937
9467
|
...props,
|
|
8938
9468
|
children: [
|
|
8939
|
-
isTwoButton && /* @__PURE__ */ (0,
|
|
9469
|
+
isTwoButton && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8940
9470
|
"button",
|
|
8941
9471
|
{
|
|
8942
9472
|
className: ScMobileBottomAction_default.outlineButton + " " + (secondaryDisabled ? ScMobileBottomAction_default.disabled : ""),
|
|
8943
9473
|
onClick: onSecondaryClick,
|
|
8944
9474
|
disabled: secondaryDisabled,
|
|
8945
|
-
children: /* @__PURE__ */ (0,
|
|
9475
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: ScMobileBottomAction_default.outlineButtonText, children: secondaryText })
|
|
8946
9476
|
}
|
|
8947
9477
|
),
|
|
8948
|
-
/* @__PURE__ */ (0,
|
|
9478
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8949
9479
|
"button",
|
|
8950
9480
|
{
|
|
8951
9481
|
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
8952
9482
|
onClick,
|
|
8953
9483
|
disabled,
|
|
8954
|
-
children: /* @__PURE__ */ (0,
|
|
9484
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
8955
9485
|
}
|
|
8956
9486
|
)
|
|
8957
9487
|
]
|
|
@@ -8969,7 +9499,7 @@ var ScPopUpMenu_default = {
|
|
|
8969
9499
|
};
|
|
8970
9500
|
|
|
8971
9501
|
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
8972
|
-
var
|
|
9502
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
8973
9503
|
var ScPopUpMenu = ({
|
|
8974
9504
|
menu = "Options",
|
|
8975
9505
|
state = "default",
|
|
@@ -8978,15 +9508,15 @@ var ScPopUpMenu = ({
|
|
|
8978
9508
|
className,
|
|
8979
9509
|
...props
|
|
8980
9510
|
}) => {
|
|
8981
|
-
return /* @__PURE__ */ (0,
|
|
9511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
8982
9512
|
"div",
|
|
8983
9513
|
{
|
|
8984
9514
|
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
8985
9515
|
onClick,
|
|
8986
9516
|
...props,
|
|
8987
9517
|
children: [
|
|
8988
|
-
icon && /* @__PURE__ */ (0,
|
|
8989
|
-
/* @__PURE__ */ (0,
|
|
9518
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
9519
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
8990
9520
|
]
|
|
8991
9521
|
}
|
|
8992
9522
|
);
|
|
@@ -9012,7 +9542,7 @@ var ScReferralCardMobile_default = {
|
|
|
9012
9542
|
};
|
|
9013
9543
|
|
|
9014
9544
|
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
9015
|
-
var
|
|
9545
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
9016
9546
|
var ScReferralCardMobile = ({
|
|
9017
9547
|
name = "Chris Hemsworth",
|
|
9018
9548
|
email = "chris@kepler.com",
|
|
@@ -9025,27 +9555,27 @@ var ScReferralCardMobile = ({
|
|
|
9025
9555
|
...props
|
|
9026
9556
|
}) => {
|
|
9027
9557
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
9028
|
-
return /* @__PURE__ */ (0,
|
|
9558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
9029
9559
|
"div",
|
|
9030
9560
|
{
|
|
9031
9561
|
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
9032
9562
|
onClick,
|
|
9033
9563
|
...props,
|
|
9034
9564
|
children: [
|
|
9035
|
-
/* @__PURE__ */ (0,
|
|
9036
|
-
/* @__PURE__ */ (0,
|
|
9037
|
-
/* @__PURE__ */ (0,
|
|
9038
|
-
/* @__PURE__ */ (0,
|
|
9039
|
-
/* @__PURE__ */ (0,
|
|
9040
|
-
/* @__PURE__ */ (0,
|
|
9565
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScReferralCardMobile_default.userRow, children: [
|
|
9566
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScReferralCardMobile_default.profileSection, children: [
|
|
9567
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScReferralCardMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("img", { src: imageUrl, alt: name, className: ScReferralCardMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScReferralCardMobile_default.initials, children: initials }) }),
|
|
9568
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScReferralCardMobile_default.userInfo, children: [
|
|
9569
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: ScReferralCardMobile_default.userName, children: name }),
|
|
9570
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: ScReferralCardMobile_default.userEmail, children: email })
|
|
9041
9571
|
] })
|
|
9042
9572
|
] }),
|
|
9043
|
-
/* @__PURE__ */ (0,
|
|
9573
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
9044
9574
|
] }),
|
|
9045
|
-
/* @__PURE__ */ (0,
|
|
9046
|
-
/* @__PURE__ */ (0,
|
|
9047
|
-
/* @__PURE__ */ (0,
|
|
9048
|
-
/* @__PURE__ */ (0,
|
|
9575
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScReferralCardMobile_default.divider }),
|
|
9576
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScReferralCardMobile_default.detailsRow, children: [
|
|
9577
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: ScReferralCardMobile_default.dateText, children: date }),
|
|
9578
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: ScReferralCardMobile_default.creditsText, children: credits })
|
|
9049
9579
|
] })
|
|
9050
9580
|
]
|
|
9051
9581
|
}
|
|
@@ -9062,19 +9592,19 @@ var InvoiceHistoryMobile_default = {
|
|
|
9062
9592
|
};
|
|
9063
9593
|
|
|
9064
9594
|
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
9065
|
-
var
|
|
9595
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
9066
9596
|
var InvoiceHistoryMobile = ({
|
|
9067
9597
|
invoiceId = "# INV-2800-2026",
|
|
9068
9598
|
date = "Nov 9th, 2025",
|
|
9069
9599
|
amount = "\u20B9320.89",
|
|
9070
9600
|
className
|
|
9071
9601
|
}) => {
|
|
9072
|
-
return /* @__PURE__ */ (0,
|
|
9073
|
-
/* @__PURE__ */ (0,
|
|
9074
|
-
/* @__PURE__ */ (0,
|
|
9075
|
-
/* @__PURE__ */ (0,
|
|
9602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
9603
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: InvoiceHistoryMobile_default.info, children: [
|
|
9604
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: InvoiceHistoryMobile_default.invoiceId, children: invoiceId }),
|
|
9605
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: InvoiceHistoryMobile_default.date, children: date })
|
|
9076
9606
|
] }),
|
|
9077
|
-
/* @__PURE__ */ (0,
|
|
9607
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
9078
9608
|
] });
|
|
9079
9609
|
};
|
|
9080
9610
|
|
|
@@ -9092,7 +9622,7 @@ var UsageHistoryMobile_default = {
|
|
|
9092
9622
|
};
|
|
9093
9623
|
|
|
9094
9624
|
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
9095
|
-
var
|
|
9625
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
9096
9626
|
var UsageHistoryMobile = ({
|
|
9097
9627
|
serviceName = "Artifax Generation",
|
|
9098
9628
|
credits = "50",
|
|
@@ -9101,18 +9631,18 @@ var UsageHistoryMobile = ({
|
|
|
9101
9631
|
balance = "84,902",
|
|
9102
9632
|
className
|
|
9103
9633
|
}) => {
|
|
9104
|
-
return /* @__PURE__ */ (0,
|
|
9105
|
-
/* @__PURE__ */ (0,
|
|
9106
|
-
/* @__PURE__ */ (0,
|
|
9107
|
-
/* @__PURE__ */ (0,
|
|
9634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: UsageHistoryMobile_default.usageHistoryMobile + " " + (className ?? ""), children: [
|
|
9635
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: UsageHistoryMobile_default.row1, children: [
|
|
9636
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { className: UsageHistoryMobile_default.serviceName, children: serviceName }),
|
|
9637
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { className: UsageHistoryMobile_default.credits, children: credits })
|
|
9108
9638
|
] }),
|
|
9109
|
-
/* @__PURE__ */ (0,
|
|
9110
|
-
/* @__PURE__ */ (0,
|
|
9111
|
-
/* @__PURE__ */ (0,
|
|
9112
|
-
/* @__PURE__ */ (0,
|
|
9113
|
-
/* @__PURE__ */ (0,
|
|
9639
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: UsageHistoryMobile_default.row2, children: [
|
|
9640
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: UsageHistoryMobile_default.metaLeft, children: [
|
|
9641
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: userName }),
|
|
9642
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: UsageHistoryMobile_default.divider }),
|
|
9643
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: date })
|
|
9114
9644
|
] }),
|
|
9115
|
-
/* @__PURE__ */ (0,
|
|
9645
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
9116
9646
|
] })
|
|
9117
9647
|
] });
|
|
9118
9648
|
};
|
|
@@ -9136,7 +9666,7 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
9136
9666
|
};
|
|
9137
9667
|
|
|
9138
9668
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
9139
|
-
var
|
|
9669
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
9140
9670
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
9141
9671
|
wsName = "Workspace name is kepler",
|
|
9142
9672
|
initials = "WS",
|
|
@@ -9149,14 +9679,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9149
9679
|
className,
|
|
9150
9680
|
...props
|
|
9151
9681
|
}) => {
|
|
9152
|
-
return /* @__PURE__ */ (0,
|
|
9682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
9153
9683
|
"div",
|
|
9154
9684
|
{
|
|
9155
9685
|
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
9156
9686
|
onClick,
|
|
9157
9687
|
...props,
|
|
9158
|
-
children: /* @__PURE__ */ (0,
|
|
9159
|
-
/* @__PURE__ */ (0,
|
|
9688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
9689
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
9160
9690
|
ScDp,
|
|
9161
9691
|
{
|
|
9162
9692
|
type: imageUrl ? "image" : "initial",
|
|
@@ -9170,14 +9700,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9170
9700
|
}
|
|
9171
9701
|
}
|
|
9172
9702
|
) }),
|
|
9173
|
-
/* @__PURE__ */ (0,
|
|
9174
|
-
/* @__PURE__ */ (0,
|
|
9175
|
-
/* @__PURE__ */ (0,
|
|
9176
|
-
/* @__PURE__ */ (0,
|
|
9177
|
-
/* @__PURE__ */ (0,
|
|
9178
|
-
/* @__PURE__ */ (0,
|
|
9179
|
-
/* @__PURE__ */ (0,
|
|
9180
|
-
/* @__PURE__ */ (0,
|
|
9703
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
9704
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
9705
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
9706
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
9707
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9708
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
9709
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9710
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.ownerText, children: ownerId })
|
|
9181
9711
|
] })
|
|
9182
9712
|
] })
|
|
9183
9713
|
] })
|
|
@@ -9186,7 +9716,7 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9186
9716
|
};
|
|
9187
9717
|
|
|
9188
9718
|
// src/SC-imageField/ScImageField.tsx
|
|
9189
|
-
var
|
|
9719
|
+
var import_react23 = require("react");
|
|
9190
9720
|
|
|
9191
9721
|
// src/SC-imageField/ScImageField.module.css
|
|
9192
9722
|
var ScImageField_default = {
|
|
@@ -9203,8 +9733,8 @@ var ScImageField_default = {
|
|
|
9203
9733
|
};
|
|
9204
9734
|
|
|
9205
9735
|
// src/SC-imageField/ScImageField.tsx
|
|
9206
|
-
var
|
|
9207
|
-
var
|
|
9736
|
+
var import_icons64 = require("@streamoid/icons");
|
|
9737
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
9208
9738
|
var ScImageField = ({
|
|
9209
9739
|
label = "Label",
|
|
9210
9740
|
imagePreview,
|
|
@@ -9213,7 +9743,7 @@ var ScImageField = ({
|
|
|
9213
9743
|
onRemove,
|
|
9214
9744
|
className
|
|
9215
9745
|
}) => {
|
|
9216
|
-
const inputRef = (0,
|
|
9746
|
+
const inputRef = (0, import_react23.useRef)(null);
|
|
9217
9747
|
const hasImage = !!imagePreview;
|
|
9218
9748
|
function handleClick() {
|
|
9219
9749
|
if (!hasImage) {
|
|
@@ -9227,8 +9757,8 @@ var ScImageField = ({
|
|
|
9227
9757
|
}
|
|
9228
9758
|
e.target.value = "";
|
|
9229
9759
|
}
|
|
9230
|
-
return /* @__PURE__ */ (0,
|
|
9231
|
-
/* @__PURE__ */ (0,
|
|
9760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
9761
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
9232
9762
|
"input",
|
|
9233
9763
|
{
|
|
9234
9764
|
ref: inputRef,
|
|
@@ -9238,9 +9768,9 @@ var ScImageField = ({
|
|
|
9238
9768
|
onChange: handleChange
|
|
9239
9769
|
}
|
|
9240
9770
|
),
|
|
9241
|
-
/* @__PURE__ */ (0,
|
|
9242
|
-
hasImage ? /* @__PURE__ */ (0,
|
|
9243
|
-
/* @__PURE__ */ (0,
|
|
9771
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScImageField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScImageField_default.label, children: label }) }),
|
|
9772
|
+
hasImage ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScImageField_default.previewArea, children: [
|
|
9773
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
9244
9774
|
"img",
|
|
9245
9775
|
{
|
|
9246
9776
|
className: ScImageField_default.previewImage,
|
|
@@ -9248,9 +9778,9 @@ var ScImageField = ({
|
|
|
9248
9778
|
alt: "preview"
|
|
9249
9779
|
}
|
|
9250
9780
|
),
|
|
9251
|
-
/* @__PURE__ */ (0,
|
|
9252
|
-
/* @__PURE__ */ (0,
|
|
9253
|
-
|
|
9781
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
9782
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
9783
|
+
import_icons64.SiconDelete,
|
|
9254
9784
|
{
|
|
9255
9785
|
className: ScImageField_default.removeIcon,
|
|
9256
9786
|
color: "var(--alias-text-and-icons-error, #d11a1a)",
|
|
@@ -9260,9 +9790,9 @@ var ScImageField = ({
|
|
|
9260
9790
|
}
|
|
9261
9791
|
}
|
|
9262
9792
|
)
|
|
9263
|
-
] }) : /* @__PURE__ */ (0,
|
|
9264
|
-
/* @__PURE__ */ (0,
|
|
9265
|
-
/* @__PURE__ */ (0,
|
|
9793
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScImageField_default.uploadArea, onClick: handleClick, children: [
|
|
9794
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_icons64.SiconUpload, { className: ScImageField_default.uploadIcon, color: "var(--alias-text-and-icons-secondary, #dadada)" }),
|
|
9795
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScImageField_default.uploadText, children: "Click to upload" })
|
|
9266
9796
|
] })
|
|
9267
9797
|
] });
|
|
9268
9798
|
};
|
|
@@ -9276,7 +9806,7 @@ var ScSettingsTabComp_default = {
|
|
|
9276
9806
|
};
|
|
9277
9807
|
|
|
9278
9808
|
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
9279
|
-
var
|
|
9809
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
9280
9810
|
var ScSettingsTabComp = ({
|
|
9281
9811
|
tabName = "Tab",
|
|
9282
9812
|
active = false,
|
|
@@ -9284,12 +9814,12 @@ var ScSettingsTabComp = ({
|
|
|
9284
9814
|
className
|
|
9285
9815
|
}) => {
|
|
9286
9816
|
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
9287
|
-
return /* @__PURE__ */ (0,
|
|
9817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
9288
9818
|
"div",
|
|
9289
9819
|
{
|
|
9290
9820
|
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
9291
9821
|
onClick,
|
|
9292
|
-
children: /* @__PURE__ */ (0,
|
|
9822
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
9293
9823
|
}
|
|
9294
9824
|
);
|
|
9295
9825
|
};
|
|
@@ -9308,8 +9838,8 @@ var ScCreditsUsageCardMobile_default = {
|
|
|
9308
9838
|
};
|
|
9309
9839
|
|
|
9310
9840
|
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
9311
|
-
var
|
|
9312
|
-
var
|
|
9841
|
+
var import_icons65 = require("@streamoid/icons");
|
|
9842
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
9313
9843
|
var ScCreditsUsageCardMobile = ({
|
|
9314
9844
|
usageLabel = "Credits usage",
|
|
9315
9845
|
usageText = "8,450 / 30,000",
|
|
@@ -9319,23 +9849,23 @@ var ScCreditsUsageCardMobile = ({
|
|
|
9319
9849
|
className,
|
|
9320
9850
|
...props
|
|
9321
9851
|
}) => {
|
|
9322
|
-
return /* @__PURE__ */ (0,
|
|
9323
|
-
/* @__PURE__ */ (0,
|
|
9324
|
-
/* @__PURE__ */ (0,
|
|
9325
|
-
|
|
9852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: ScCreditsUsageCardMobile_default.scCreditsUsageCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9853
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: ScCreditsUsageCardMobile_default.header, children: [
|
|
9854
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
9855
|
+
import_icons65.SiconCredits,
|
|
9326
9856
|
{
|
|
9327
9857
|
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
9328
9858
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
9329
9859
|
}
|
|
9330
9860
|
),
|
|
9331
|
-
/* @__PURE__ */ (0,
|
|
9861
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
9332
9862
|
] }),
|
|
9333
|
-
/* @__PURE__ */ (0,
|
|
9334
|
-
/* @__PURE__ */ (0,
|
|
9335
|
-
/* @__PURE__ */ (0,
|
|
9336
|
-
/* @__PURE__ */ (0,
|
|
9863
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScCreditsUsageCardMobile_default.divider }),
|
|
9864
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: ScCreditsUsageCardMobile_default.usageInfo, children: [
|
|
9865
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScCreditsUsageCardMobile_default.usageText, children: usageText }),
|
|
9866
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScCreditsUsageCardMobile_default.remainingText, children: remainingText })
|
|
9337
9867
|
] }),
|
|
9338
|
-
/* @__PURE__ */ (0,
|
|
9868
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
9339
9869
|
ScButton,
|
|
9340
9870
|
{
|
|
9341
9871
|
text: buyButtonText,
|
|
@@ -9376,8 +9906,8 @@ var ScPlanDetailsCardMobile_default = {
|
|
|
9376
9906
|
};
|
|
9377
9907
|
|
|
9378
9908
|
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
9379
|
-
var
|
|
9380
|
-
var
|
|
9909
|
+
var import_icons66 = require("@streamoid/icons");
|
|
9910
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
9381
9911
|
var ScPlanDetailsCardMobile = ({
|
|
9382
9912
|
planName = "Pro",
|
|
9383
9913
|
planCredits = "30,000 credits",
|
|
@@ -9391,20 +9921,20 @@ var ScPlanDetailsCardMobile = ({
|
|
|
9391
9921
|
className,
|
|
9392
9922
|
...props
|
|
9393
9923
|
}) => {
|
|
9394
|
-
return /* @__PURE__ */ (0,
|
|
9395
|
-
/* @__PURE__ */ (0,
|
|
9396
|
-
/* @__PURE__ */ (0,
|
|
9397
|
-
/* @__PURE__ */ (0,
|
|
9398
|
-
|
|
9924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: ScPlanDetailsCardMobile_default.scPlanDetailsCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9925
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planHeader, children: [
|
|
9926
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: ScPlanDetailsCardMobile_default.headerLeft, children: [
|
|
9927
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
9928
|
+
import_icons66.SiconBilling,
|
|
9399
9929
|
{
|
|
9400
9930
|
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
9401
9931
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
9402
9932
|
}
|
|
9403
9933
|
),
|
|
9404
|
-
/* @__PURE__ */ (0,
|
|
9934
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
9405
9935
|
] }),
|
|
9406
|
-
/* @__PURE__ */ (0,
|
|
9407
|
-
/* @__PURE__ */ (0,
|
|
9936
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: ScPlanDetailsCardMobile_default.badgeGroup, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.badgeSkeleton}` }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
9937
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
9408
9938
|
ScBadges,
|
|
9409
9939
|
{
|
|
9410
9940
|
text: badgeText,
|
|
@@ -9413,28 +9943,28 @@ var ScPlanDetailsCardMobile = ({
|
|
|
9413
9943
|
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
9414
9944
|
}
|
|
9415
9945
|
),
|
|
9416
|
-
badgeSubText && /* @__PURE__ */ (0,
|
|
9417
|
-
/* @__PURE__ */ (0,
|
|
9418
|
-
/* @__PURE__ */ (0,
|
|
9946
|
+
badgeSubText && /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
9947
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScPlanDetailsCardMobile_default.badgeDot }),
|
|
9948
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScPlanDetailsCardMobile_default.badgeSubText, children: badgeSubText })
|
|
9419
9949
|
] })
|
|
9420
9950
|
] }) })
|
|
9421
9951
|
] }),
|
|
9422
|
-
/* @__PURE__ */ (0,
|
|
9423
|
-
/* @__PURE__ */ (0,
|
|
9424
|
-
/* @__PURE__ */ (0,
|
|
9425
|
-
/* @__PURE__ */ (0,
|
|
9426
|
-
/* @__PURE__ */ (0,
|
|
9952
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: ScPlanDetailsCardMobile_default.divider }),
|
|
9953
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: ScPlanDetailsCardMobile_default.planInfo, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
9954
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, "aria-label": "Loading plan details", children: [
|
|
9955
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.planNameSkeleton}` }),
|
|
9956
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.creditsSkeleton}` })
|
|
9427
9957
|
] }),
|
|
9428
|
-
/* @__PURE__ */ (0,
|
|
9429
|
-
] }) : /* @__PURE__ */ (0,
|
|
9430
|
-
/* @__PURE__ */ (0,
|
|
9431
|
-
/* @__PURE__ */ (0,
|
|
9432
|
-
/* @__PURE__ */ (0,
|
|
9433
|
-
/* @__PURE__ */ (0,
|
|
9958
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.priceSkeleton}` })
|
|
9959
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
9960
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, children: [
|
|
9961
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planName }),
|
|
9962
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: ScPlanDetailsCardMobile_default.dot }),
|
|
9963
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planCredits })
|
|
9434
9964
|
] }),
|
|
9435
|
-
/* @__PURE__ */ (0,
|
|
9965
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
9436
9966
|
] }) }),
|
|
9437
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
9967
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.buttonSkeleton}` }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
9438
9968
|
ScButton,
|
|
9439
9969
|
{
|
|
9440
9970
|
text: upgradeButtonText,
|