@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.mjs
CHANGED
|
@@ -714,8 +714,11 @@ import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
|
714
714
|
var ScCheckbox = ({
|
|
715
715
|
state = "default",
|
|
716
716
|
checked,
|
|
717
|
+
disabled = false,
|
|
717
718
|
onChange,
|
|
718
719
|
className,
|
|
720
|
+
style,
|
|
721
|
+
onClick,
|
|
719
722
|
...props
|
|
720
723
|
}) => {
|
|
721
724
|
const effectiveState = checked !== void 0 ? checked ? "selected" : "default" : state;
|
|
@@ -724,18 +727,100 @@ var ScCheckbox = ({
|
|
|
724
727
|
"div",
|
|
725
728
|
{
|
|
726
729
|
className: ScCheckbox_default.scCheckbox + " " + className + " " + variantsClassName,
|
|
727
|
-
style: {
|
|
728
|
-
|
|
730
|
+
style: {
|
|
731
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
732
|
+
...disabled ? { opacity: 0.5 } : {},
|
|
733
|
+
...style
|
|
734
|
+
},
|
|
729
735
|
onClick: (e) => {
|
|
736
|
+
if (disabled) return;
|
|
730
737
|
onChange?.(
|
|
731
738
|
checked !== void 0 ? !checked : effectiveState !== "selected"
|
|
732
739
|
);
|
|
733
|
-
|
|
740
|
+
onClick?.(e);
|
|
734
741
|
},
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
742
|
+
...props,
|
|
743
|
+
children: effectiveState === "selected" ? /* @__PURE__ */ jsxs11(
|
|
744
|
+
"svg",
|
|
745
|
+
{
|
|
746
|
+
width: "24",
|
|
747
|
+
height: "24",
|
|
748
|
+
viewBox: "0 0 24 24",
|
|
749
|
+
fill: "none",
|
|
750
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
751
|
+
children: [
|
|
752
|
+
/* @__PURE__ */ jsx11(
|
|
753
|
+
"rect",
|
|
754
|
+
{
|
|
755
|
+
width: "24",
|
|
756
|
+
height: "24",
|
|
757
|
+
rx: "6",
|
|
758
|
+
fill: "var(--alias-fill-base-base, #f5f5f5)"
|
|
759
|
+
}
|
|
760
|
+
),
|
|
761
|
+
/* @__PURE__ */ jsx11(
|
|
762
|
+
"path",
|
|
763
|
+
{
|
|
764
|
+
d: "M7.5 12L10.5 15L16.5 9",
|
|
765
|
+
stroke: "var(--alias-text---icons-inverse, #101010)",
|
|
766
|
+
strokeWidth: "2",
|
|
767
|
+
strokeLinecap: "round",
|
|
768
|
+
strokeLinejoin: "round"
|
|
769
|
+
}
|
|
770
|
+
)
|
|
771
|
+
]
|
|
772
|
+
}
|
|
773
|
+
) : effectiveState === "partial" ? /* @__PURE__ */ jsxs11(
|
|
774
|
+
"svg",
|
|
775
|
+
{
|
|
776
|
+
width: "24",
|
|
777
|
+
height: "24",
|
|
778
|
+
viewBox: "0 0 24 24",
|
|
779
|
+
fill: "none",
|
|
780
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
781
|
+
children: [
|
|
782
|
+
/* @__PURE__ */ jsx11(
|
|
783
|
+
"rect",
|
|
784
|
+
{
|
|
785
|
+
width: "24",
|
|
786
|
+
height: "24",
|
|
787
|
+
rx: "6",
|
|
788
|
+
fill: "var(--alias-fill-base-base, #f5f5f5)"
|
|
789
|
+
}
|
|
790
|
+
),
|
|
791
|
+
/* @__PURE__ */ jsx11(
|
|
792
|
+
"path",
|
|
793
|
+
{
|
|
794
|
+
d: "M7.5 12H16.5",
|
|
795
|
+
stroke: "var(--alias-text---icons-inverse, #101010)",
|
|
796
|
+
strokeWidth: "2",
|
|
797
|
+
strokeLinecap: "round"
|
|
798
|
+
}
|
|
799
|
+
)
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
) : /* @__PURE__ */ jsx11(
|
|
803
|
+
"svg",
|
|
804
|
+
{
|
|
805
|
+
width: "24",
|
|
806
|
+
height: "24",
|
|
807
|
+
viewBox: "0 0 24 24",
|
|
808
|
+
fill: "none",
|
|
809
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
810
|
+
children: /* @__PURE__ */ jsx11(
|
|
811
|
+
"rect",
|
|
812
|
+
{
|
|
813
|
+
x: "0.75",
|
|
814
|
+
y: "0.75",
|
|
815
|
+
width: "22.5",
|
|
816
|
+
height: "22.5",
|
|
817
|
+
rx: "5.25",
|
|
818
|
+
stroke: "var(--alias-border-default, #3e3e3e)",
|
|
819
|
+
strokeWidth: "1.5"
|
|
820
|
+
}
|
|
821
|
+
)
|
|
822
|
+
}
|
|
823
|
+
)
|
|
739
824
|
}
|
|
740
825
|
);
|
|
741
826
|
};
|
|
@@ -5876,6 +5961,7 @@ import { jsx as jsx59, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
|
5876
5961
|
var ScToggleSwitch = ({
|
|
5877
5962
|
active = "false",
|
|
5878
5963
|
checked,
|
|
5964
|
+
disabled = false,
|
|
5879
5965
|
onToggle,
|
|
5880
5966
|
className,
|
|
5881
5967
|
...props
|
|
@@ -5888,10 +5974,15 @@ var ScToggleSwitch = ({
|
|
|
5888
5974
|
className: ScToggleSwitch_default.scToggleSwitch + " " + className + " " + variantsClassName,
|
|
5889
5975
|
...props,
|
|
5890
5976
|
onClick: (e) => {
|
|
5977
|
+
if (disabled) return;
|
|
5891
5978
|
onToggle?.(!isActive);
|
|
5892
5979
|
props.onClick?.(e);
|
|
5893
5980
|
},
|
|
5894
|
-
style: {
|
|
5981
|
+
style: {
|
|
5982
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
5983
|
+
...disabled ? { opacity: 0.5 } : {},
|
|
5984
|
+
...props.style
|
|
5985
|
+
},
|
|
5895
5986
|
children: isActive ? /* @__PURE__ */ jsxs50("svg", { width: "40", height: "24", viewBox: "0 0 40 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5896
5987
|
/* @__PURE__ */ jsx59("rect", { width: "40", height: "24", rx: "12", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
5897
5988
|
/* @__PURE__ */ jsx59("circle", { cx: "28", cy: "12", r: "10", fill: "var(--alias-text---icons-inverse, #101010)" })
|
|
@@ -7117,6 +7208,438 @@ function ScWorkspaceSwitchCard({
|
|
|
7117
7208
|
}
|
|
7118
7209
|
var NscWorkspaceSwitch = ScWorkspaceSwitchCard;
|
|
7119
7210
|
|
|
7211
|
+
// src/SC-Modal/ScModal.tsx
|
|
7212
|
+
import { useEffect as useEffect3 } from "react";
|
|
7213
|
+
import { createPortal } from "react-dom";
|
|
7214
|
+
|
|
7215
|
+
// src/SC-Modal/ScModal.module.css
|
|
7216
|
+
var ScModal_default = {
|
|
7217
|
+
backdrop: "ScModal_backdrop",
|
|
7218
|
+
content: "ScModal_content"
|
|
7219
|
+
};
|
|
7220
|
+
|
|
7221
|
+
// src/SC-Modal/ScModal.tsx
|
|
7222
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
7223
|
+
var ScModal = ({
|
|
7224
|
+
children,
|
|
7225
|
+
onClose,
|
|
7226
|
+
open = true,
|
|
7227
|
+
className,
|
|
7228
|
+
style,
|
|
7229
|
+
contentClassName,
|
|
7230
|
+
contentStyle,
|
|
7231
|
+
closeOnBackdrop = true,
|
|
7232
|
+
closeOnEsc = true
|
|
7233
|
+
}) => {
|
|
7234
|
+
useEffect3(() => {
|
|
7235
|
+
if (!open || !closeOnEsc) return;
|
|
7236
|
+
const onKey = (e) => {
|
|
7237
|
+
if (e.key === "Escape") onClose?.();
|
|
7238
|
+
};
|
|
7239
|
+
document.addEventListener("keydown", onKey);
|
|
7240
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
7241
|
+
}, [open, closeOnEsc, onClose]);
|
|
7242
|
+
if (!open || typeof document === "undefined") return null;
|
|
7243
|
+
return createPortal(
|
|
7244
|
+
/* @__PURE__ */ jsx78(
|
|
7245
|
+
"div",
|
|
7246
|
+
{
|
|
7247
|
+
className: [ScModal_default.backdrop, className].filter(Boolean).join(" "),
|
|
7248
|
+
style,
|
|
7249
|
+
onMouseDown: (e) => {
|
|
7250
|
+
if (closeOnBackdrop && e.target === e.currentTarget) onClose?.();
|
|
7251
|
+
},
|
|
7252
|
+
children: /* @__PURE__ */ jsx78(
|
|
7253
|
+
"div",
|
|
7254
|
+
{
|
|
7255
|
+
className: [ScModal_default.content, contentClassName].filter(Boolean).join(" "),
|
|
7256
|
+
style: contentStyle,
|
|
7257
|
+
children
|
|
7258
|
+
}
|
|
7259
|
+
)
|
|
7260
|
+
}
|
|
7261
|
+
),
|
|
7262
|
+
document.body
|
|
7263
|
+
);
|
|
7264
|
+
};
|
|
7265
|
+
|
|
7266
|
+
// src/SC-InfoPopup/ScInfoPopup.tsx
|
|
7267
|
+
import { useState as useState11, useRef as useRef3, useEffect as useEffect4 } from "react";
|
|
7268
|
+
import { SiconClose as SiconClose3 } from "@streamoid/icons";
|
|
7269
|
+
|
|
7270
|
+
// src/SC-InfoPopup/ScInfoPopup.module.css
|
|
7271
|
+
var ScInfoPopup_default = {
|
|
7272
|
+
scInfoPopup: "ScInfoPopup_scInfoPopup",
|
|
7273
|
+
infoIcon: "ScInfoPopup_infoIcon",
|
|
7274
|
+
content: "ScInfoPopup_content",
|
|
7275
|
+
closeIconContainer: "ScInfoPopup_closeIconContainer",
|
|
7276
|
+
closeIcon: "ScInfoPopup_closeIcon",
|
|
7277
|
+
contentText: "ScInfoPopup_contentText"
|
|
7278
|
+
};
|
|
7279
|
+
|
|
7280
|
+
// src/SC-InfoPopup/ScInfoPopup.tsx
|
|
7281
|
+
import { jsx as jsx79, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
7282
|
+
var ScInfoPopup = ({
|
|
7283
|
+
content,
|
|
7284
|
+
className
|
|
7285
|
+
}) => {
|
|
7286
|
+
const [open, setOpen] = useState11(false);
|
|
7287
|
+
const ref = useRef3(null);
|
|
7288
|
+
useEffect4(() => {
|
|
7289
|
+
if (!open) return;
|
|
7290
|
+
const onDown = (e) => {
|
|
7291
|
+
if (ref.current && !ref.current.contains(e.target)) setOpen(false);
|
|
7292
|
+
};
|
|
7293
|
+
document.addEventListener("mousedown", onDown);
|
|
7294
|
+
return () => document.removeEventListener("mousedown", onDown);
|
|
7295
|
+
}, [open]);
|
|
7296
|
+
return /* @__PURE__ */ jsxs69(
|
|
7297
|
+
"div",
|
|
7298
|
+
{
|
|
7299
|
+
className: ScInfoPopup_default.scInfoPopup + (className ? " " + className : ""),
|
|
7300
|
+
ref,
|
|
7301
|
+
children: [
|
|
7302
|
+
/* @__PURE__ */ jsx79(
|
|
7303
|
+
"span",
|
|
7304
|
+
{
|
|
7305
|
+
className: ScInfoPopup_default.infoIcon,
|
|
7306
|
+
role: "button",
|
|
7307
|
+
tabIndex: 0,
|
|
7308
|
+
"aria-label": "More info",
|
|
7309
|
+
onClick: (e) => {
|
|
7310
|
+
e.stopPropagation();
|
|
7311
|
+
setOpen(true);
|
|
7312
|
+
},
|
|
7313
|
+
children: /* @__PURE__ */ jsxs69(
|
|
7314
|
+
"svg",
|
|
7315
|
+
{
|
|
7316
|
+
width: "18",
|
|
7317
|
+
height: "18",
|
|
7318
|
+
viewBox: "0 0 18 18",
|
|
7319
|
+
fill: "none",
|
|
7320
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7321
|
+
children: [
|
|
7322
|
+
/* @__PURE__ */ jsx79(
|
|
7323
|
+
"circle",
|
|
7324
|
+
{
|
|
7325
|
+
cx: "9",
|
|
7326
|
+
cy: "9",
|
|
7327
|
+
r: "8",
|
|
7328
|
+
stroke: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
7329
|
+
strokeWidth: "1.25"
|
|
7330
|
+
}
|
|
7331
|
+
),
|
|
7332
|
+
/* @__PURE__ */ jsx79(
|
|
7333
|
+
"path",
|
|
7334
|
+
{
|
|
7335
|
+
d: "M9 8.25V12.75",
|
|
7336
|
+
stroke: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
7337
|
+
strokeWidth: "1.5",
|
|
7338
|
+
strokeLinecap: "round"
|
|
7339
|
+
}
|
|
7340
|
+
),
|
|
7341
|
+
/* @__PURE__ */ jsx79(
|
|
7342
|
+
"circle",
|
|
7343
|
+
{
|
|
7344
|
+
cx: "9",
|
|
7345
|
+
cy: "5.25",
|
|
7346
|
+
r: "0.9",
|
|
7347
|
+
fill: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
7348
|
+
}
|
|
7349
|
+
)
|
|
7350
|
+
]
|
|
7351
|
+
}
|
|
7352
|
+
)
|
|
7353
|
+
}
|
|
7354
|
+
),
|
|
7355
|
+
open && /* @__PURE__ */ jsxs69("div", { className: ScInfoPopup_default.content, children: [
|
|
7356
|
+
/* @__PURE__ */ jsx79(
|
|
7357
|
+
"div",
|
|
7358
|
+
{
|
|
7359
|
+
className: ScInfoPopup_default.closeIconContainer,
|
|
7360
|
+
onClick: (e) => {
|
|
7361
|
+
e.stopPropagation();
|
|
7362
|
+
setOpen(false);
|
|
7363
|
+
},
|
|
7364
|
+
children: /* @__PURE__ */ jsx79(
|
|
7365
|
+
SiconClose3,
|
|
7366
|
+
{
|
|
7367
|
+
size: 18,
|
|
7368
|
+
color: "var(--alias-text-and-icons-tertiary)",
|
|
7369
|
+
className: ScInfoPopup_default.closeIcon
|
|
7370
|
+
}
|
|
7371
|
+
)
|
|
7372
|
+
}
|
|
7373
|
+
),
|
|
7374
|
+
/* @__PURE__ */ jsx79("span", { className: ScInfoPopup_default.contentText, children: content })
|
|
7375
|
+
] })
|
|
7376
|
+
]
|
|
7377
|
+
}
|
|
7378
|
+
);
|
|
7379
|
+
};
|
|
7380
|
+
|
|
7381
|
+
// src/SC-Pagination/ScPagination.tsx
|
|
7382
|
+
import { SiconRight as SiconRight5 } from "@streamoid/icons";
|
|
7383
|
+
|
|
7384
|
+
// src/SC-Pagination/ScPagination.module.css
|
|
7385
|
+
var ScPagination_default = {
|
|
7386
|
+
scPagination: "ScPagination_scPagination",
|
|
7387
|
+
section: "ScPagination_section",
|
|
7388
|
+
leftArrow: "ScPagination_leftArrow",
|
|
7389
|
+
page: "ScPagination_page",
|
|
7390
|
+
pageCount: "ScPagination_pageCount"
|
|
7391
|
+
};
|
|
7392
|
+
|
|
7393
|
+
// src/SC-Pagination/ScPagination.tsx
|
|
7394
|
+
import { jsx as jsx80, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7395
|
+
var ScPagination = ({
|
|
7396
|
+
itemsCount,
|
|
7397
|
+
itemsPerPage,
|
|
7398
|
+
page,
|
|
7399
|
+
setPage,
|
|
7400
|
+
setOffsetValue,
|
|
7401
|
+
onPageChangeAction,
|
|
7402
|
+
className
|
|
7403
|
+
}) => {
|
|
7404
|
+
const perPage = parseInt(String(itemsPerPage), 10) || 1;
|
|
7405
|
+
const maxPage = itemsCount % perPage ? Math.floor(itemsCount / perPage) + 1 : itemsCount / perPage;
|
|
7406
|
+
const handlePageValue = (e) => {
|
|
7407
|
+
const raw = e.target.value;
|
|
7408
|
+
if (raw.length) {
|
|
7409
|
+
const n = parseInt(raw, 10);
|
|
7410
|
+
if (n < 1) setPage(1);
|
|
7411
|
+
else if (n > maxPage) setPage(maxPage);
|
|
7412
|
+
else setPage(raw);
|
|
7413
|
+
} else {
|
|
7414
|
+
setPage(raw);
|
|
7415
|
+
}
|
|
7416
|
+
};
|
|
7417
|
+
const commit = (e) => {
|
|
7418
|
+
setOffsetValue((Number(e.target.value) - 1) * perPage);
|
|
7419
|
+
onPageChangeAction();
|
|
7420
|
+
};
|
|
7421
|
+
const step = (type) => {
|
|
7422
|
+
const p = Number(page);
|
|
7423
|
+
if (type === "dec" && p > 1) {
|
|
7424
|
+
setPage(p - 1);
|
|
7425
|
+
setOffsetValue((p - 2) * perPage);
|
|
7426
|
+
onPageChangeAction();
|
|
7427
|
+
} else if (type === "inc" && p < maxPage) {
|
|
7428
|
+
setPage(p + 1);
|
|
7429
|
+
setOffsetValue(p * perPage);
|
|
7430
|
+
onPageChangeAction();
|
|
7431
|
+
}
|
|
7432
|
+
};
|
|
7433
|
+
return /* @__PURE__ */ jsx80("div", { className: ScPagination_default.scPagination + (className ? " " + className : ""), children: /* @__PURE__ */ jsxs70("div", { className: ScPagination_default.section, children: [
|
|
7434
|
+
/* @__PURE__ */ jsx80(
|
|
7435
|
+
SiconRight5,
|
|
7436
|
+
{
|
|
7437
|
+
size: 24,
|
|
7438
|
+
color: "var(--alias-text-and-icons-primary)",
|
|
7439
|
+
className: ScPagination_default.leftArrow,
|
|
7440
|
+
onClick: () => step("dec")
|
|
7441
|
+
}
|
|
7442
|
+
),
|
|
7443
|
+
/* @__PURE__ */ jsx80("span", { className: ScPagination_default.page, children: /* @__PURE__ */ jsx80(
|
|
7444
|
+
"input",
|
|
7445
|
+
{
|
|
7446
|
+
type: "number",
|
|
7447
|
+
pattern: "\\d*",
|
|
7448
|
+
value: page,
|
|
7449
|
+
onChange: handlePageValue,
|
|
7450
|
+
onBlur: commit
|
|
7451
|
+
}
|
|
7452
|
+
) }),
|
|
7453
|
+
/* @__PURE__ */ jsx80(
|
|
7454
|
+
SiconRight5,
|
|
7455
|
+
{
|
|
7456
|
+
size: 24,
|
|
7457
|
+
color: "var(--alias-text-and-icons-primary)",
|
|
7458
|
+
onClick: () => step("inc")
|
|
7459
|
+
}
|
|
7460
|
+
),
|
|
7461
|
+
/* @__PURE__ */ jsxs70("span", { className: ScPagination_default.pageCount, children: [
|
|
7462
|
+
"of ",
|
|
7463
|
+
maxPage
|
|
7464
|
+
] })
|
|
7465
|
+
] }) });
|
|
7466
|
+
};
|
|
7467
|
+
|
|
7468
|
+
// src/SC-Beacon/ScBeacon.module.css
|
|
7469
|
+
var ScBeacon_default = {
|
|
7470
|
+
scBeacon: "ScBeacon_scBeacon",
|
|
7471
|
+
success: "ScBeacon_success",
|
|
7472
|
+
warning: "ScBeacon_warning",
|
|
7473
|
+
error: "ScBeacon_error",
|
|
7474
|
+
neutral: "ScBeacon_neutral"
|
|
7475
|
+
};
|
|
7476
|
+
|
|
7477
|
+
// src/SC-Beacon/ScBeacon.tsx
|
|
7478
|
+
import { jsx as jsx81, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7479
|
+
var ScBeacon = ({
|
|
7480
|
+
tone = "neutral",
|
|
7481
|
+
className,
|
|
7482
|
+
...props
|
|
7483
|
+
}) => {
|
|
7484
|
+
return /* @__PURE__ */ jsx81(
|
|
7485
|
+
"span",
|
|
7486
|
+
{
|
|
7487
|
+
className: ScBeacon_default.scBeacon + " " + ScBeacon_default[tone] + (className ? " " + className : ""),
|
|
7488
|
+
"aria-hidden": "true",
|
|
7489
|
+
...props,
|
|
7490
|
+
children: /* @__PURE__ */ jsxs71(
|
|
7491
|
+
"svg",
|
|
7492
|
+
{
|
|
7493
|
+
viewBox: "0 0 20 20",
|
|
7494
|
+
width: "100%",
|
|
7495
|
+
height: "100%",
|
|
7496
|
+
fill: "none",
|
|
7497
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7498
|
+
children: [
|
|
7499
|
+
/* @__PURE__ */ jsx81("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor", fillOpacity: "0.24" }),
|
|
7500
|
+
/* @__PURE__ */ jsx81("circle", { cx: "10", cy: "10", r: "4", fill: "currentColor" })
|
|
7501
|
+
]
|
|
7502
|
+
}
|
|
7503
|
+
)
|
|
7504
|
+
}
|
|
7505
|
+
);
|
|
7506
|
+
};
|
|
7507
|
+
|
|
7508
|
+
// src/SC-StoreCard/ScStoreCard.module.css
|
|
7509
|
+
var ScStoreCard_default = {
|
|
7510
|
+
scStoreCard: "ScStoreCard_scStoreCard",
|
|
7511
|
+
nameSection: "ScStoreCard_nameSection",
|
|
7512
|
+
storeName: "ScStoreCard_storeName",
|
|
7513
|
+
divider: "ScStoreCard_divider",
|
|
7514
|
+
footer: "ScStoreCard_footer",
|
|
7515
|
+
products: "ScStoreCard_products",
|
|
7516
|
+
date: "ScStoreCard_date"
|
|
7517
|
+
};
|
|
7518
|
+
|
|
7519
|
+
// src/SC-StoreCard/ScStoreCard.tsx
|
|
7520
|
+
import { jsx as jsx82, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7521
|
+
var ScStoreCard = ({
|
|
7522
|
+
storeName = "Store Name",
|
|
7523
|
+
noOfProducts = "1490 Products",
|
|
7524
|
+
dateCreated = "24th Jan 2026",
|
|
7525
|
+
tone = "neutral",
|
|
7526
|
+
className,
|
|
7527
|
+
...props
|
|
7528
|
+
}) => {
|
|
7529
|
+
return /* @__PURE__ */ jsxs72(
|
|
7530
|
+
"div",
|
|
7531
|
+
{
|
|
7532
|
+
className: ScStoreCard_default.scStoreCard + (className ? " " + className : ""),
|
|
7533
|
+
...props,
|
|
7534
|
+
children: [
|
|
7535
|
+
/* @__PURE__ */ jsx82("div", { className: ScStoreCard_default.nameSection, children: /* @__PURE__ */ jsx82("p", { className: ScStoreCard_default.storeName, title: storeName, children: storeName }) }),
|
|
7536
|
+
/* @__PURE__ */ jsx82(ScHDivider, { className: ScStoreCard_default.divider }),
|
|
7537
|
+
/* @__PURE__ */ jsxs72("div", { className: ScStoreCard_default.footer, children: [
|
|
7538
|
+
/* @__PURE__ */ jsx82(ScBeacon, { tone }),
|
|
7539
|
+
/* @__PURE__ */ jsx82("span", { className: ScStoreCard_default.products, children: noOfProducts }),
|
|
7540
|
+
/* @__PURE__ */ jsx82("span", { className: ScStoreCard_default.date, children: dateCreated })
|
|
7541
|
+
] })
|
|
7542
|
+
]
|
|
7543
|
+
}
|
|
7544
|
+
);
|
|
7545
|
+
};
|
|
7546
|
+
|
|
7547
|
+
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.module.css
|
|
7548
|
+
var ScCatalogixStoreHeader_default = {
|
|
7549
|
+
scCatalogixStoreHeader: "ScCatalogixStoreHeader_scCatalogixStoreHeader",
|
|
7550
|
+
label: "ScCatalogixStoreHeader_label",
|
|
7551
|
+
colName: "ScCatalogixStoreHeader_colName",
|
|
7552
|
+
colStatus: "ScCatalogixStoreHeader_colStatus",
|
|
7553
|
+
colNum: "ScCatalogixStoreHeader_colNum",
|
|
7554
|
+
colDate: "ScCatalogixStoreHeader_colDate",
|
|
7555
|
+
colBy: "ScCatalogixStoreHeader_colBy"
|
|
7556
|
+
};
|
|
7557
|
+
|
|
7558
|
+
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.tsx
|
|
7559
|
+
import { jsx as jsx83, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
7560
|
+
var ScCatalogixStoreHeader = ({
|
|
7561
|
+
storeNameLabel = "Store name",
|
|
7562
|
+
statusLabel = "Status",
|
|
7563
|
+
productsLabel = "Products",
|
|
7564
|
+
assetsLabel = "Assets",
|
|
7565
|
+
createdOnLabel = "Created on",
|
|
7566
|
+
createdByLabel = "Created by",
|
|
7567
|
+
showAssets = true,
|
|
7568
|
+
showCreatedBy = true,
|
|
7569
|
+
className,
|
|
7570
|
+
...props
|
|
7571
|
+
}) => {
|
|
7572
|
+
return /* @__PURE__ */ jsxs73(
|
|
7573
|
+
"div",
|
|
7574
|
+
{
|
|
7575
|
+
className: ScCatalogixStoreHeader_default.scCatalogixStoreHeader + (className ? " " + className : ""),
|
|
7576
|
+
...props,
|
|
7577
|
+
children: [
|
|
7578
|
+
/* @__PURE__ */ jsx83("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colName, children: storeNameLabel }),
|
|
7579
|
+
/* @__PURE__ */ jsx83("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colStatus, children: statusLabel }),
|
|
7580
|
+
/* @__PURE__ */ jsx83("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colNum, children: productsLabel }),
|
|
7581
|
+
showAssets && /* @__PURE__ */ jsx83("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colNum, children: assetsLabel }),
|
|
7582
|
+
/* @__PURE__ */ jsx83("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colDate, children: createdOnLabel }),
|
|
7583
|
+
showCreatedBy && /* @__PURE__ */ jsx83("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colBy, children: createdByLabel })
|
|
7584
|
+
]
|
|
7585
|
+
}
|
|
7586
|
+
);
|
|
7587
|
+
};
|
|
7588
|
+
|
|
7589
|
+
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.module.css
|
|
7590
|
+
var ScCatalogixStoreTableList_default = {
|
|
7591
|
+
scCatalogixStoreTableList: "ScCatalogixStoreTableList_scCatalogixStoreTableList",
|
|
7592
|
+
name: "ScCatalogixStoreTableList_name",
|
|
7593
|
+
status: "ScCatalogixStoreTableList_status",
|
|
7594
|
+
statusSuccess: "ScCatalogixStoreTableList_statusSuccess",
|
|
7595
|
+
statusWarning: "ScCatalogixStoreTableList_statusWarning",
|
|
7596
|
+
statusError: "ScCatalogixStoreTableList_statusError",
|
|
7597
|
+
statusNeutral: "ScCatalogixStoreTableList_statusNeutral",
|
|
7598
|
+
cell: "ScCatalogixStoreTableList_cell",
|
|
7599
|
+
colNum: "ScCatalogixStoreTableList_colNum",
|
|
7600
|
+
colDate: "ScCatalogixStoreTableList_colDate",
|
|
7601
|
+
colBy: "ScCatalogixStoreTableList_colBy"
|
|
7602
|
+
};
|
|
7603
|
+
|
|
7604
|
+
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.tsx
|
|
7605
|
+
import { jsx as jsx84, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
7606
|
+
var STATUS_TONE_CLASS = {
|
|
7607
|
+
success: "statusSuccess",
|
|
7608
|
+
warning: "statusWarning",
|
|
7609
|
+
error: "statusError",
|
|
7610
|
+
neutral: "statusNeutral"
|
|
7611
|
+
};
|
|
7612
|
+
var ScCatalogixStoreTableList = ({
|
|
7613
|
+
storeName = "Farfetch - Spring Season 2026 - Topwear",
|
|
7614
|
+
status = "Need Attention",
|
|
7615
|
+
statusTone = "error",
|
|
7616
|
+
products = "1240",
|
|
7617
|
+
assets = "27830",
|
|
7618
|
+
createdOn = "Nov 9th, 2025",
|
|
7619
|
+
createdBy = "Chris Hemsworth",
|
|
7620
|
+
showAssets = true,
|
|
7621
|
+
showCreatedBy = true,
|
|
7622
|
+
className,
|
|
7623
|
+
...props
|
|
7624
|
+
}) => {
|
|
7625
|
+
const toneClass = ScCatalogixStoreTableList_default[STATUS_TONE_CLASS[statusTone] || "statusNeutral"];
|
|
7626
|
+
return /* @__PURE__ */ jsxs74(
|
|
7627
|
+
"div",
|
|
7628
|
+
{
|
|
7629
|
+
className: ScCatalogixStoreTableList_default.scCatalogixStoreTableList + (className ? " " + className : ""),
|
|
7630
|
+
...props,
|
|
7631
|
+
children: [
|
|
7632
|
+
/* @__PURE__ */ jsx84("span", { className: ScCatalogixStoreTableList_default.name, title: storeName, children: storeName }),
|
|
7633
|
+
/* @__PURE__ */ jsx84("span", { className: ScCatalogixStoreTableList_default.status + " " + toneClass, children: status }),
|
|
7634
|
+
/* @__PURE__ */ jsx84("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colNum, children: products }),
|
|
7635
|
+
showAssets && /* @__PURE__ */ jsx84("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colNum, children: assets }),
|
|
7636
|
+
/* @__PURE__ */ jsx84("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colDate, children: createdOn }),
|
|
7637
|
+
showCreatedBy && /* @__PURE__ */ jsx84("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colBy, children: createdBy })
|
|
7638
|
+
]
|
|
7639
|
+
}
|
|
7640
|
+
);
|
|
7641
|
+
};
|
|
7642
|
+
|
|
7120
7643
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.module.css
|
|
7121
7644
|
var ScThinkingStepIcon_default = {
|
|
7122
7645
|
scThinkingStepIcon: "ScThinkingStepIcon_scThinkingStepIcon",
|
|
@@ -7131,7 +7654,7 @@ var ScThinkingStepIcon_default = {
|
|
|
7131
7654
|
};
|
|
7132
7655
|
|
|
7133
7656
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.tsx
|
|
7134
|
-
import { jsx as
|
|
7657
|
+
import { jsx as jsx85, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7135
7658
|
var ScThinkingStepIcon = ({
|
|
7136
7659
|
state = "default",
|
|
7137
7660
|
size = 12,
|
|
@@ -7140,13 +7663,13 @@ var ScThinkingStepIcon = ({
|
|
|
7140
7663
|
...props
|
|
7141
7664
|
}) => {
|
|
7142
7665
|
const variantsClassName = ScThinkingStepIcon_default["state-" + state];
|
|
7143
|
-
return /* @__PURE__ */
|
|
7666
|
+
return /* @__PURE__ */ jsx85(
|
|
7144
7667
|
"span",
|
|
7145
7668
|
{
|
|
7146
7669
|
className: ScThinkingStepIcon_default.scThinkingStepIcon + " " + (className ?? "") + " " + variantsClassName,
|
|
7147
7670
|
style: { width: size, height: size, ...style },
|
|
7148
7671
|
...props,
|
|
7149
|
-
children: /* @__PURE__ */
|
|
7672
|
+
children: /* @__PURE__ */ jsxs75(
|
|
7150
7673
|
"svg",
|
|
7151
7674
|
{
|
|
7152
7675
|
className: ScThinkingStepIcon_default.glyph,
|
|
@@ -7157,7 +7680,7 @@ var ScThinkingStepIcon = ({
|
|
|
7157
7680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7158
7681
|
"aria-hidden": "true",
|
|
7159
7682
|
children: [
|
|
7160
|
-
state === "default" && /* @__PURE__ */
|
|
7683
|
+
state === "default" && /* @__PURE__ */ jsx85(
|
|
7161
7684
|
"circle",
|
|
7162
7685
|
{
|
|
7163
7686
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7168,7 +7691,7 @@ var ScThinkingStepIcon = ({
|
|
|
7168
7691
|
strokeLinecap: "round"
|
|
7169
7692
|
}
|
|
7170
7693
|
),
|
|
7171
|
-
state === "working" && /* @__PURE__ */
|
|
7694
|
+
state === "working" && /* @__PURE__ */ jsx85(
|
|
7172
7695
|
"path",
|
|
7173
7696
|
{
|
|
7174
7697
|
className: ScThinkingStepIcon_default.stroke + " " + ScThinkingStepIcon_default.spinner,
|
|
@@ -7178,7 +7701,7 @@ var ScThinkingStepIcon = ({
|
|
|
7178
7701
|
strokeLinejoin: "round"
|
|
7179
7702
|
}
|
|
7180
7703
|
),
|
|
7181
|
-
state === "completed" && /* @__PURE__ */
|
|
7704
|
+
state === "completed" && /* @__PURE__ */ jsx85(
|
|
7182
7705
|
"path",
|
|
7183
7706
|
{
|
|
7184
7707
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7188,7 +7711,7 @@ var ScThinkingStepIcon = ({
|
|
|
7188
7711
|
strokeLinejoin: "round"
|
|
7189
7712
|
}
|
|
7190
7713
|
),
|
|
7191
|
-
state === "error" && /* @__PURE__ */
|
|
7714
|
+
state === "error" && /* @__PURE__ */ jsx85(
|
|
7192
7715
|
"path",
|
|
7193
7716
|
{
|
|
7194
7717
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7228,7 +7751,7 @@ var ScInChatList_default = {
|
|
|
7228
7751
|
|
|
7229
7752
|
// src/SC-InChatList/ScInChatList.tsx
|
|
7230
7753
|
import { SiconUp as SiconUp2, SiconDown as SiconDown2, SiconDot as SiconDot2 } from "@streamoid/icons";
|
|
7231
|
-
import { jsx as
|
|
7754
|
+
import { jsx as jsx86, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7232
7755
|
var ScInChatList = ({
|
|
7233
7756
|
title = "Infrastructure that helps modern brands scale",
|
|
7234
7757
|
description = "Description",
|
|
@@ -7245,33 +7768,33 @@ var ScInChatList = ({
|
|
|
7245
7768
|
}) => {
|
|
7246
7769
|
const isExpandable = descriptionVisibility === "hidden" || descriptionVisibility === "visible";
|
|
7247
7770
|
const isExpanded = descriptionVisibility === "visible";
|
|
7248
|
-
return /* @__PURE__ */
|
|
7771
|
+
return /* @__PURE__ */ jsxs76(
|
|
7249
7772
|
"div",
|
|
7250
7773
|
{
|
|
7251
7774
|
className: ScInChatList_default.scInChatList + (className ? " " + className : ""),
|
|
7252
7775
|
style,
|
|
7253
7776
|
children: [
|
|
7254
|
-
leadingIndicator && /* @__PURE__ */
|
|
7255
|
-
/* @__PURE__ */
|
|
7256
|
-
/* @__PURE__ */
|
|
7257
|
-
showSteps && /* @__PURE__ */
|
|
7258
|
-
/* @__PURE__ */
|
|
7777
|
+
leadingIndicator && /* @__PURE__ */ jsx86("div", { className: ScInChatList_default.indicatorWrapper, children: /* @__PURE__ */ jsx86(ScThinkingStepIcon, { state: iconState }) }),
|
|
7778
|
+
/* @__PURE__ */ jsxs76("div", { className: ScInChatList_default.content, children: [
|
|
7779
|
+
/* @__PURE__ */ jsxs76("div", { className: ScInChatList_default.headerArea, children: [
|
|
7780
|
+
showSteps && /* @__PURE__ */ jsx86("p", { className: ScInChatList_default.stepCount, children: stepCount }),
|
|
7781
|
+
/* @__PURE__ */ jsxs76(
|
|
7259
7782
|
"div",
|
|
7260
7783
|
{
|
|
7261
7784
|
className: ScInChatList_default.titleRow + " " + (isExpandable ? ScInChatList_default.titleRowClickable : ScInChatList_default.titleRowStatic),
|
|
7262
7785
|
onClick: isExpandable ? onToggle : void 0,
|
|
7263
7786
|
children: [
|
|
7264
|
-
/* @__PURE__ */
|
|
7265
|
-
isExpandable && /* @__PURE__ */
|
|
7787
|
+
/* @__PURE__ */ jsx86("p", { className: ScInChatList_default.title, children: title }),
|
|
7788
|
+
isExpandable && /* @__PURE__ */ jsx86("div", { className: ScInChatList_default.chevronWrapper, children: isExpanded ? /* @__PURE__ */ jsx86(SiconUp2, { size: 12, className: ScInChatList_default.chevronIcon }) : /* @__PURE__ */ jsx86(SiconDown2, { size: 12, className: ScInChatList_default.chevronIcon }) })
|
|
7266
7789
|
]
|
|
7267
7790
|
}
|
|
7268
7791
|
),
|
|
7269
|
-
isExpanded && /* @__PURE__ */
|
|
7270
|
-
/* @__PURE__ */
|
|
7271
|
-
/* @__PURE__ */
|
|
7792
|
+
isExpanded && /* @__PURE__ */ jsxs76("div", { className: ScInChatList_default.descriptionRow, children: [
|
|
7793
|
+
/* @__PURE__ */ jsx86("div", { className: ScInChatList_default.descriptionIcon, children: /* @__PURE__ */ jsx86(SiconDot2, { size: 20, className: ScInChatList_default.descriptionDot }) }),
|
|
7794
|
+
/* @__PURE__ */ jsx86("p", { className: ScInChatList_default.descriptionText, children: description })
|
|
7272
7795
|
] })
|
|
7273
7796
|
] }),
|
|
7274
|
-
showTool && /* @__PURE__ */
|
|
7797
|
+
showTool && /* @__PURE__ */ jsx86("div", { className: ScInChatList_default.toolPill, children: /* @__PURE__ */ jsx86("p", { className: ScInChatList_default.toolText, children: toolUsing }) })
|
|
7275
7798
|
] })
|
|
7276
7799
|
]
|
|
7277
7800
|
}
|
|
@@ -7285,7 +7808,7 @@ var ScSubAgent_default = {
|
|
|
7285
7808
|
};
|
|
7286
7809
|
|
|
7287
7810
|
// src/SC-SubAgent/ScSubAgent.tsx
|
|
7288
|
-
import { jsx as
|
|
7811
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
7289
7812
|
function formatSubAgentLabel(agentName) {
|
|
7290
7813
|
const normalized = (agentName ?? "").trim();
|
|
7291
7814
|
if (!normalized) return "Using sub-agent...";
|
|
@@ -7298,12 +7821,12 @@ var ScSubAgent = ({
|
|
|
7298
7821
|
...props
|
|
7299
7822
|
}) => {
|
|
7300
7823
|
const label = text ?? formatSubAgentLabel(agentName);
|
|
7301
|
-
return /* @__PURE__ */
|
|
7824
|
+
return /* @__PURE__ */ jsx87(
|
|
7302
7825
|
"div",
|
|
7303
7826
|
{
|
|
7304
7827
|
className: [ScSubAgent_default.scSubAgent, className].filter(Boolean).join(" "),
|
|
7305
7828
|
...props,
|
|
7306
|
-
children: /* @__PURE__ */
|
|
7829
|
+
children: /* @__PURE__ */ jsx87("p", { className: ScSubAgent_default.label, children: label })
|
|
7307
7830
|
}
|
|
7308
7831
|
);
|
|
7309
7832
|
};
|
|
@@ -7317,7 +7840,7 @@ var ScInChatMessage_default = {
|
|
|
7317
7840
|
};
|
|
7318
7841
|
|
|
7319
7842
|
// src/SC-InChatMessage/ScInChatMessage.tsx
|
|
7320
|
-
import { jsx as
|
|
7843
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
7321
7844
|
var ScInChatMessage = ({
|
|
7322
7845
|
type = "input",
|
|
7323
7846
|
text,
|
|
@@ -7327,13 +7850,13 @@ var ScInChatMessage = ({
|
|
|
7327
7850
|
...props
|
|
7328
7851
|
}) => {
|
|
7329
7852
|
const variantsClassName = ScInChatMessage_default["type-" + type];
|
|
7330
|
-
return /* @__PURE__ */
|
|
7853
|
+
return /* @__PURE__ */ jsx88(
|
|
7331
7854
|
"div",
|
|
7332
7855
|
{
|
|
7333
7856
|
className: [ScInChatMessage_default.scInChatMessage, variantsClassName, className].filter(Boolean).join(" "),
|
|
7334
7857
|
id,
|
|
7335
7858
|
...props,
|
|
7336
|
-
children: /* @__PURE__ */
|
|
7859
|
+
children: /* @__PURE__ */ jsx88("p", { className: ScInChatMessage_default.text, children: children ?? text })
|
|
7337
7860
|
}
|
|
7338
7861
|
);
|
|
7339
7862
|
};
|
|
@@ -7350,7 +7873,7 @@ var ScSelection_default = {
|
|
|
7350
7873
|
};
|
|
7351
7874
|
|
|
7352
7875
|
// src/SC-Selection/ScSelection.tsx
|
|
7353
|
-
import { jsx as
|
|
7876
|
+
import { jsx as jsx89, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7354
7877
|
var ScSelection = ({
|
|
7355
7878
|
title = "Title",
|
|
7356
7879
|
description = "Description",
|
|
@@ -7366,23 +7889,23 @@ var ScSelection = ({
|
|
|
7366
7889
|
onClick?.(event);
|
|
7367
7890
|
onSelect?.(value);
|
|
7368
7891
|
};
|
|
7369
|
-
return /* @__PURE__ */
|
|
7892
|
+
return /* @__PURE__ */ jsxs77(
|
|
7370
7893
|
"div",
|
|
7371
7894
|
{
|
|
7372
7895
|
className: [ScSelection_default.scSelection, variantsClassName, className].filter(Boolean).join(" "),
|
|
7373
7896
|
onClick: handleClick,
|
|
7374
7897
|
...props,
|
|
7375
7898
|
children: [
|
|
7376
|
-
/* @__PURE__ */
|
|
7899
|
+
/* @__PURE__ */ jsx89(
|
|
7377
7900
|
ScRadio,
|
|
7378
7901
|
{
|
|
7379
7902
|
state: active ? "selected" : "default",
|
|
7380
7903
|
className: ScSelection_default.scRadioInstance
|
|
7381
7904
|
}
|
|
7382
7905
|
),
|
|
7383
|
-
/* @__PURE__ */
|
|
7384
|
-
/* @__PURE__ */
|
|
7385
|
-
description && /* @__PURE__ */
|
|
7906
|
+
/* @__PURE__ */ jsxs77("div", { className: ScSelection_default.wrapper, children: [
|
|
7907
|
+
/* @__PURE__ */ jsx89("p", { className: ScSelection_default.title, children: title }),
|
|
7908
|
+
description && /* @__PURE__ */ jsx89("p", { className: ScSelection_default.description, children: description })
|
|
7386
7909
|
] })
|
|
7387
7910
|
]
|
|
7388
7911
|
}
|
|
@@ -7409,7 +7932,7 @@ var ScSelectionList_default = {
|
|
|
7409
7932
|
};
|
|
7410
7933
|
|
|
7411
7934
|
// src/SC-SelectionList/ScSelectionList.tsx
|
|
7412
|
-
import { jsx as
|
|
7935
|
+
import { jsx as jsx90, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7413
7936
|
var ScSelectionList = ({
|
|
7414
7937
|
state = "default",
|
|
7415
7938
|
label = "Suggested Colours: ",
|
|
@@ -7432,14 +7955,14 @@ var ScSelectionList = ({
|
|
|
7432
7955
|
onChange?.(next);
|
|
7433
7956
|
if (next === "rejected") onReject?.();
|
|
7434
7957
|
};
|
|
7435
|
-
return /* @__PURE__ */
|
|
7958
|
+
return /* @__PURE__ */ jsxs78(
|
|
7436
7959
|
"div",
|
|
7437
7960
|
{
|
|
7438
7961
|
className: ScSelectionList_default.scSelectionList + (disabled ? " " + ScSelectionList_default.disabled : "") + (className ? " " + className : "") + " " + variantsClassName,
|
|
7439
7962
|
...props,
|
|
7440
7963
|
children: [
|
|
7441
|
-
/* @__PURE__ */
|
|
7442
|
-
/* @__PURE__ */
|
|
7964
|
+
/* @__PURE__ */ jsxs78("div", { className: ScSelectionList_default.toggles, children: [
|
|
7965
|
+
/* @__PURE__ */ jsx90(
|
|
7443
7966
|
"button",
|
|
7444
7967
|
{
|
|
7445
7968
|
type: "button",
|
|
@@ -7448,7 +7971,7 @@ var ScSelectionList = ({
|
|
|
7448
7971
|
disabled,
|
|
7449
7972
|
"aria-pressed": state === "approved",
|
|
7450
7973
|
"aria-label": state === "approved" ? "Revoke approval" : "Approve",
|
|
7451
|
-
children: /* @__PURE__ */
|
|
7974
|
+
children: /* @__PURE__ */ jsx90(
|
|
7452
7975
|
"svg",
|
|
7453
7976
|
{
|
|
7454
7977
|
className: ScSelectionList_default.checkIcon,
|
|
@@ -7457,7 +7980,7 @@ var ScSelectionList = ({
|
|
|
7457
7980
|
viewBox: "0 0 8 6",
|
|
7458
7981
|
fill: "none",
|
|
7459
7982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7460
|
-
children: /* @__PURE__ */
|
|
7983
|
+
children: /* @__PURE__ */ jsx90(
|
|
7461
7984
|
"path",
|
|
7462
7985
|
{
|
|
7463
7986
|
d: "M0.5 3.5L2.5 5.5L7.5 0.5",
|
|
@@ -7470,7 +7993,7 @@ var ScSelectionList = ({
|
|
|
7470
7993
|
)
|
|
7471
7994
|
}
|
|
7472
7995
|
),
|
|
7473
|
-
/* @__PURE__ */
|
|
7996
|
+
/* @__PURE__ */ jsx90(
|
|
7474
7997
|
"button",
|
|
7475
7998
|
{
|
|
7476
7999
|
type: "button",
|
|
@@ -7479,7 +8002,7 @@ var ScSelectionList = ({
|
|
|
7479
8002
|
disabled,
|
|
7480
8003
|
"aria-pressed": state === "rejected",
|
|
7481
8004
|
"aria-label": state === "rejected" ? "Revoke rejection" : "Reject",
|
|
7482
|
-
children: /* @__PURE__ */
|
|
8005
|
+
children: /* @__PURE__ */ jsx90(
|
|
7483
8006
|
"svg",
|
|
7484
8007
|
{
|
|
7485
8008
|
className: ScSelectionList_default.closeIcon,
|
|
@@ -7488,7 +8011,7 @@ var ScSelectionList = ({
|
|
|
7488
8011
|
viewBox: "0 0 6.24261 6.24262",
|
|
7489
8012
|
fill: "none",
|
|
7490
8013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7491
|
-
children: /* @__PURE__ */
|
|
8014
|
+
children: /* @__PURE__ */ jsx90(
|
|
7492
8015
|
"path",
|
|
7493
8016
|
{
|
|
7494
8017
|
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",
|
|
@@ -7502,9 +8025,9 @@ var ScSelectionList = ({
|
|
|
7502
8025
|
}
|
|
7503
8026
|
)
|
|
7504
8027
|
] }),
|
|
7505
|
-
/* @__PURE__ */
|
|
7506
|
-
/* @__PURE__ */
|
|
7507
|
-
/* @__PURE__ */
|
|
8028
|
+
/* @__PURE__ */ jsx90("div", { className: ScSelectionList_default.content, children: /* @__PURE__ */ jsxs78("div", { className: ScSelectionList_default.row, children: [
|
|
8029
|
+
/* @__PURE__ */ jsx90("span", { className: ScSelectionList_default.label, children: label }),
|
|
8030
|
+
/* @__PURE__ */ jsx90("span", { className: ScSelectionList_default.valuesPill, children: /* @__PURE__ */ jsx90("span", { className: ScSelectionList_default.valuesText, children: optionValues }) })
|
|
7508
8031
|
] }) })
|
|
7509
8032
|
]
|
|
7510
8033
|
}
|
|
@@ -7512,7 +8035,7 @@ var ScSelectionList = ({
|
|
|
7512
8035
|
};
|
|
7513
8036
|
|
|
7514
8037
|
// src/SC-textArea/ScTextArea.tsx
|
|
7515
|
-
import { useState as
|
|
8038
|
+
import { useState as useState12 } from "react";
|
|
7516
8039
|
|
|
7517
8040
|
// src/SC-textArea/ScTextArea.module.css
|
|
7518
8041
|
var ScTextArea_default = {
|
|
@@ -7531,7 +8054,7 @@ var ScTextArea_default = {
|
|
|
7531
8054
|
};
|
|
7532
8055
|
|
|
7533
8056
|
// src/SC-textArea/ScTextArea.tsx
|
|
7534
|
-
import { jsx as
|
|
8057
|
+
import { jsx as jsx91, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7535
8058
|
var ScTextArea = ({
|
|
7536
8059
|
state,
|
|
7537
8060
|
labelGroup = "",
|
|
@@ -7542,27 +8065,27 @@ var ScTextArea = ({
|
|
|
7542
8065
|
style,
|
|
7543
8066
|
...props
|
|
7544
8067
|
}) => {
|
|
7545
|
-
const [focused, setFocused] =
|
|
8068
|
+
const [focused, setFocused] = useState12(false);
|
|
7546
8069
|
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
7547
8070
|
const stateClass = ScTextArea_default["state-" + derivedState];
|
|
7548
8071
|
const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
|
|
7549
|
-
return /* @__PURE__ */
|
|
8072
|
+
return /* @__PURE__ */ jsxs79(
|
|
7550
8073
|
"div",
|
|
7551
8074
|
{
|
|
7552
8075
|
className: [ScTextArea_default.scTextArea, stateClass, labelGroupClass, className].filter(Boolean).join(" "),
|
|
7553
8076
|
style,
|
|
7554
8077
|
children: [
|
|
7555
|
-
labelGroup && /* @__PURE__ */
|
|
7556
|
-
/* @__PURE__ */
|
|
8078
|
+
labelGroup && /* @__PURE__ */ jsxs79("div", { className: ScTextArea_default.labelContainer, children: [
|
|
8079
|
+
/* @__PURE__ */ jsxs79("div", { className: ScTextArea_default.label, children: [
|
|
7557
8080
|
label,
|
|
7558
8081
|
" "
|
|
7559
8082
|
] }),
|
|
7560
|
-
labelGroup === "text" && /* @__PURE__ */
|
|
8083
|
+
labelGroup === "text" && /* @__PURE__ */ jsxs79("div", { className: ScTextArea_default.info, children: [
|
|
7561
8084
|
info,
|
|
7562
8085
|
" "
|
|
7563
8086
|
] })
|
|
7564
8087
|
] }),
|
|
7565
|
-
/* @__PURE__ */
|
|
8088
|
+
/* @__PURE__ */ jsx91("div", { className: ScTextArea_default.inputContainer, children: /* @__PURE__ */ jsx91(
|
|
7566
8089
|
"textarea",
|
|
7567
8090
|
{
|
|
7568
8091
|
className: ScTextArea_default.inputText,
|
|
@@ -7584,7 +8107,7 @@ var ScTextArea = ({
|
|
|
7584
8107
|
};
|
|
7585
8108
|
|
|
7586
8109
|
// src/SC-select/ScSelect.tsx
|
|
7587
|
-
import { useState as
|
|
8110
|
+
import { useState as useState13, useRef as useRef4, useEffect as useEffect5 } from "react";
|
|
7588
8111
|
|
|
7589
8112
|
// src/SC-select/ScSelect.module.css
|
|
7590
8113
|
var ScSelect_default = {
|
|
@@ -7609,7 +8132,7 @@ var ScSelect_default = {
|
|
|
7609
8132
|
};
|
|
7610
8133
|
|
|
7611
8134
|
// src/SC-select/ScSelect.tsx
|
|
7612
|
-
import { jsx as
|
|
8135
|
+
import { jsx as jsx92, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7613
8136
|
var ScSelect = (props) => {
|
|
7614
8137
|
const {
|
|
7615
8138
|
value,
|
|
@@ -7621,9 +8144,9 @@ var ScSelect = (props) => {
|
|
|
7621
8144
|
disabled = false,
|
|
7622
8145
|
className
|
|
7623
8146
|
} = props;
|
|
7624
|
-
const [open, setOpen] =
|
|
7625
|
-
const rootRef =
|
|
7626
|
-
|
|
8147
|
+
const [open, setOpen] = useState13(false);
|
|
8148
|
+
const rootRef = useRef4(null);
|
|
8149
|
+
useEffect5(() => {
|
|
7627
8150
|
if (!open) return;
|
|
7628
8151
|
const handleClick = (e) => {
|
|
7629
8152
|
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
@@ -7649,10 +8172,10 @@ var ScSelect = (props) => {
|
|
|
7649
8172
|
labelGroup ? ScSelect_default["label-group-" + labelGroup] : void 0,
|
|
7650
8173
|
className
|
|
7651
8174
|
].filter(Boolean).join(" ");
|
|
7652
|
-
return /* @__PURE__ */
|
|
7653
|
-
labelGroup === "label" && label ? /* @__PURE__ */
|
|
7654
|
-
/* @__PURE__ */
|
|
7655
|
-
/* @__PURE__ */
|
|
8175
|
+
return /* @__PURE__ */ jsxs80("div", { className: rootClass, ref: rootRef, children: [
|
|
8176
|
+
labelGroup === "label" && label ? /* @__PURE__ */ jsx92("div", { className: ScSelect_default.labelContainer, children: /* @__PURE__ */ jsx92("div", { className: ScSelect_default.label, children: label }) }) : null,
|
|
8177
|
+
/* @__PURE__ */ jsxs80("div", { className: ScSelect_default.selectArea, children: [
|
|
8178
|
+
/* @__PURE__ */ jsxs80(
|
|
7656
8179
|
"button",
|
|
7657
8180
|
{
|
|
7658
8181
|
type: "button",
|
|
@@ -7662,18 +8185,18 @@ var ScSelect = (props) => {
|
|
|
7662
8185
|
"aria-haspopup": "listbox",
|
|
7663
8186
|
"aria-expanded": open,
|
|
7664
8187
|
children: [
|
|
7665
|
-
/* @__PURE__ */
|
|
8188
|
+
/* @__PURE__ */ jsx92(
|
|
7666
8189
|
"span",
|
|
7667
8190
|
{
|
|
7668
8191
|
className: [ScSelect_default.triggerText, selected ? void 0 : ScSelect_default.placeholder].filter(Boolean).join(" "),
|
|
7669
8192
|
children: selected ? selected.label : placeholder
|
|
7670
8193
|
}
|
|
7671
8194
|
),
|
|
7672
|
-
/* @__PURE__ */
|
|
8195
|
+
/* @__PURE__ */ jsx92(
|
|
7673
8196
|
"span",
|
|
7674
8197
|
{
|
|
7675
8198
|
className: [ScSelect_default.chevron, open ? ScSelect_default.chevronOpen : void 0].filter(Boolean).join(" "),
|
|
7676
|
-
children: /* @__PURE__ */
|
|
8199
|
+
children: /* @__PURE__ */ jsx92("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx92(
|
|
7677
8200
|
"path",
|
|
7678
8201
|
{
|
|
7679
8202
|
d: "M5 7.5L10 12.5L15 7.5",
|
|
@@ -7688,13 +8211,13 @@ var ScSelect = (props) => {
|
|
|
7688
8211
|
]
|
|
7689
8212
|
}
|
|
7690
8213
|
),
|
|
7691
|
-
open ? /* @__PURE__ */
|
|
8214
|
+
open ? /* @__PURE__ */ jsx92("div", { className: ScSelect_default.menu, role: "listbox", children: options.map((option) => {
|
|
7692
8215
|
const isSelected = option.id === value;
|
|
7693
8216
|
const optionClass = [
|
|
7694
8217
|
ScSelect_default.option,
|
|
7695
8218
|
isSelected ? ScSelect_default["option-selected"] : void 0
|
|
7696
8219
|
].filter(Boolean).join(" ");
|
|
7697
|
-
return /* @__PURE__ */
|
|
8220
|
+
return /* @__PURE__ */ jsxs80(
|
|
7698
8221
|
"div",
|
|
7699
8222
|
{
|
|
7700
8223
|
className: optionClass,
|
|
@@ -7702,8 +8225,8 @@ var ScSelect = (props) => {
|
|
|
7702
8225
|
"aria-selected": isSelected,
|
|
7703
8226
|
onClick: () => handleSelect(option.id),
|
|
7704
8227
|
children: [
|
|
7705
|
-
/* @__PURE__ */
|
|
7706
|
-
option.description ? /* @__PURE__ */
|
|
8228
|
+
/* @__PURE__ */ jsx92("span", { className: ScSelect_default.optionLabel, children: option.label }),
|
|
8229
|
+
option.description ? /* @__PURE__ */ jsx92("span", { className: ScSelect_default.optionDescription, children: option.description }) : null
|
|
7707
8230
|
]
|
|
7708
8231
|
},
|
|
7709
8232
|
option.id
|
|
@@ -7714,7 +8237,7 @@ var ScSelect = (props) => {
|
|
|
7714
8237
|
};
|
|
7715
8238
|
|
|
7716
8239
|
// src/SC-fileField/ScFileField.tsx
|
|
7717
|
-
import { useRef as
|
|
8240
|
+
import { useRef as useRef5 } from "react";
|
|
7718
8241
|
|
|
7719
8242
|
// src/SC-fileField/ScFileField.module.css
|
|
7720
8243
|
var ScFileField_default = {
|
|
@@ -7738,7 +8261,7 @@ var ScFileField_default = {
|
|
|
7738
8261
|
};
|
|
7739
8262
|
|
|
7740
8263
|
// src/SC-fileField/ScFileField.tsx
|
|
7741
|
-
import { jsx as
|
|
8264
|
+
import { jsx as jsx93, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7742
8265
|
var ScFileField = (props) => {
|
|
7743
8266
|
const {
|
|
7744
8267
|
onFileSelect,
|
|
@@ -7752,7 +8275,7 @@ var ScFileField = (props) => {
|
|
|
7752
8275
|
label,
|
|
7753
8276
|
className
|
|
7754
8277
|
} = props;
|
|
7755
|
-
const inputRef =
|
|
8278
|
+
const inputRef = useRef5(null);
|
|
7756
8279
|
const hasFile = Boolean(fileName);
|
|
7757
8280
|
const isUploading = Boolean(uploading);
|
|
7758
8281
|
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
@@ -7761,7 +8284,7 @@ var ScFileField = (props) => {
|
|
|
7761
8284
|
onFileSelect(e.target.files);
|
|
7762
8285
|
}
|
|
7763
8286
|
};
|
|
7764
|
-
const uploadIcon = /* @__PURE__ */
|
|
8287
|
+
const uploadIcon = /* @__PURE__ */ jsxs81(
|
|
7765
8288
|
"svg",
|
|
7766
8289
|
{
|
|
7767
8290
|
className: ScFileField_default.uploadIcon,
|
|
@@ -7775,13 +8298,13 @@ var ScFileField = (props) => {
|
|
|
7775
8298
|
strokeLinejoin: "round",
|
|
7776
8299
|
"aria-hidden": "true",
|
|
7777
8300
|
children: [
|
|
7778
|
-
/* @__PURE__ */
|
|
7779
|
-
/* @__PURE__ */
|
|
7780
|
-
/* @__PURE__ */
|
|
8301
|
+
/* @__PURE__ */ jsx93("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
8302
|
+
/* @__PURE__ */ jsx93("path", { d: "M12 16V4" }),
|
|
8303
|
+
/* @__PURE__ */ jsx93("path", { d: "M7 9l5-5 5 5" })
|
|
7781
8304
|
]
|
|
7782
8305
|
}
|
|
7783
8306
|
);
|
|
7784
|
-
const fileIcon = /* @__PURE__ */
|
|
8307
|
+
const fileIcon = /* @__PURE__ */ jsxs81(
|
|
7785
8308
|
"svg",
|
|
7786
8309
|
{
|
|
7787
8310
|
className: ScFileField_default.fileIcon,
|
|
@@ -7795,12 +8318,12 @@ var ScFileField = (props) => {
|
|
|
7795
8318
|
strokeLinejoin: "round",
|
|
7796
8319
|
"aria-hidden": "true",
|
|
7797
8320
|
children: [
|
|
7798
|
-
/* @__PURE__ */
|
|
7799
|
-
/* @__PURE__ */
|
|
8321
|
+
/* @__PURE__ */ jsx93("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
8322
|
+
/* @__PURE__ */ jsx93("path", { d: "M14 2v6h6" })
|
|
7800
8323
|
]
|
|
7801
8324
|
}
|
|
7802
8325
|
);
|
|
7803
|
-
const clearIcon = /* @__PURE__ */
|
|
8326
|
+
const clearIcon = /* @__PURE__ */ jsxs81(
|
|
7804
8327
|
"svg",
|
|
7805
8328
|
{
|
|
7806
8329
|
width: "20",
|
|
@@ -7813,20 +8336,20 @@ var ScFileField = (props) => {
|
|
|
7813
8336
|
strokeLinejoin: "round",
|
|
7814
8337
|
"aria-hidden": "true",
|
|
7815
8338
|
children: [
|
|
7816
|
-
/* @__PURE__ */
|
|
7817
|
-
/* @__PURE__ */
|
|
8339
|
+
/* @__PURE__ */ jsx93("path", { d: "M18 6L6 18" }),
|
|
8340
|
+
/* @__PURE__ */ jsx93("path", { d: "M6 6l12 12" })
|
|
7818
8341
|
]
|
|
7819
8342
|
}
|
|
7820
8343
|
);
|
|
7821
8344
|
const rootClass = [ScFileField_default.scFileField, className].filter(Boolean).join(" ");
|
|
7822
8345
|
const showRow = hasFile || isUploading;
|
|
7823
|
-
return /* @__PURE__ */
|
|
7824
|
-
label ? /* @__PURE__ */
|
|
7825
|
-
showRow ? /* @__PURE__ */
|
|
8346
|
+
return /* @__PURE__ */ jsxs81("div", { className: rootClass, children: [
|
|
8347
|
+
label ? /* @__PURE__ */ jsx93("div", { className: ScFileField_default.labelContainer, children: /* @__PURE__ */ jsx93("div", { className: ScFileField_default.label, children: label }) }) : null,
|
|
8348
|
+
showRow ? /* @__PURE__ */ jsxs81("div", { className: ScFileField_default.inputContainer, children: [
|
|
7826
8349
|
fileIcon,
|
|
7827
|
-
/* @__PURE__ */
|
|
7828
|
-
/* @__PURE__ */
|
|
7829
|
-
isUploading ? /* @__PURE__ */
|
|
8350
|
+
/* @__PURE__ */ jsxs81("div", { className: ScFileField_default.fileInfo, children: [
|
|
8351
|
+
/* @__PURE__ */ jsx93("span", { className: ScFileField_default.fileName, children: fileName }),
|
|
8352
|
+
isUploading ? /* @__PURE__ */ jsx93("div", { className: ScFileField_default.progressTrack, children: /* @__PURE__ */ jsx93(
|
|
7830
8353
|
"div",
|
|
7831
8354
|
{
|
|
7832
8355
|
className: ScFileField_default.progressFill,
|
|
@@ -7834,7 +8357,7 @@ var ScFileField = (props) => {
|
|
|
7834
8357
|
}
|
|
7835
8358
|
) }) : null
|
|
7836
8359
|
] }),
|
|
7837
|
-
!isUploading ? /* @__PURE__ */
|
|
8360
|
+
!isUploading ? /* @__PURE__ */ jsx93(
|
|
7838
8361
|
"button",
|
|
7839
8362
|
{
|
|
7840
8363
|
type: "button",
|
|
@@ -7844,8 +8367,8 @@ var ScFileField = (props) => {
|
|
|
7844
8367
|
children: clearIcon
|
|
7845
8368
|
}
|
|
7846
8369
|
) : null
|
|
7847
|
-
] }) : /* @__PURE__ */
|
|
7848
|
-
/* @__PURE__ */
|
|
8370
|
+
] }) : /* @__PURE__ */ jsxs81("label", { className: ScFileField_default.dropzone, children: [
|
|
8371
|
+
/* @__PURE__ */ jsx93(
|
|
7849
8372
|
"input",
|
|
7850
8373
|
{
|
|
7851
8374
|
ref: inputRef,
|
|
@@ -7857,21 +8380,21 @@ var ScFileField = (props) => {
|
|
|
7857
8380
|
}
|
|
7858
8381
|
),
|
|
7859
8382
|
uploadIcon,
|
|
7860
|
-
/* @__PURE__ */
|
|
7861
|
-
/* @__PURE__ */
|
|
8383
|
+
/* @__PURE__ */ jsxs81("div", { className: ScFileField_default.dropzoneText, children: [
|
|
8384
|
+
/* @__PURE__ */ jsx93("span", { className: ScFileField_default.dropzoneAction, children: "Click to upload" }),
|
|
7862
8385
|
" or drag and drop"
|
|
7863
8386
|
] }),
|
|
7864
|
-
accept ? /* @__PURE__ */
|
|
8387
|
+
accept ? /* @__PURE__ */ jsxs81("div", { className: ScFileField_default.acceptedText, children: [
|
|
7865
8388
|
"Accepted: ",
|
|
7866
8389
|
accept
|
|
7867
8390
|
] }) : null
|
|
7868
8391
|
] }),
|
|
7869
|
-
error ? /* @__PURE__ */
|
|
8392
|
+
error ? /* @__PURE__ */ jsx93("div", { className: ScFileField_default.errorText, children: error }) : null
|
|
7870
8393
|
] });
|
|
7871
8394
|
};
|
|
7872
8395
|
|
|
7873
8396
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
7874
|
-
import { useState as
|
|
8397
|
+
import { useState as useState14, useEffect as useEffect6 } from "react";
|
|
7875
8398
|
|
|
7876
8399
|
// src/SC-mediaApproval/ScMediaApproval.module.css
|
|
7877
8400
|
var ScMediaApproval_default = {
|
|
@@ -7896,7 +8419,7 @@ var ScMediaApproval_default = {
|
|
|
7896
8419
|
};
|
|
7897
8420
|
|
|
7898
8421
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
7899
|
-
import { Fragment as Fragment22, jsx as
|
|
8422
|
+
import { Fragment as Fragment22, jsx as jsx94, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
7900
8423
|
var VIDEO_EXT = /\.(mp4|webm|ogg|mov|m4v)(\?.*)?$/i;
|
|
7901
8424
|
var isVideoUrl = (url, mediaType) => {
|
|
7902
8425
|
if (mediaType === "video") return true;
|
|
@@ -7918,9 +8441,9 @@ var ScMediaApproval = (props) => {
|
|
|
7918
8441
|
className
|
|
7919
8442
|
} = props;
|
|
7920
8443
|
const total = mediaUrls.length;
|
|
7921
|
-
const [index, setIndex] =
|
|
7922
|
-
const [mediaLoading, setMediaLoading] =
|
|
7923
|
-
|
|
8444
|
+
const [index, setIndex] = useState14(activeIndex ?? 0);
|
|
8445
|
+
const [mediaLoading, setMediaLoading] = useState14(false);
|
|
8446
|
+
useEffect6(() => {
|
|
7924
8447
|
if (typeof activeIndex === "number") {
|
|
7925
8448
|
setIndex(activeIndex);
|
|
7926
8449
|
}
|
|
@@ -7938,9 +8461,9 @@ var ScMediaApproval = (props) => {
|
|
|
7938
8461
|
const handlePreview = () => {
|
|
7939
8462
|
if (currentUrl && onPreview) onPreview(currentUrl);
|
|
7940
8463
|
};
|
|
7941
|
-
return /* @__PURE__ */
|
|
7942
|
-
/* @__PURE__ */
|
|
7943
|
-
currentUrl ? currentIsVideo ? /* @__PURE__ */
|
|
8464
|
+
return /* @__PURE__ */ jsxs82("div", { className: [ScMediaApproval_default.scMediaApproval, className].filter(Boolean).join(" "), children: [
|
|
8465
|
+
/* @__PURE__ */ jsxs82("div", { className: ScMediaApproval_default.mediaFrame, children: [
|
|
8466
|
+
currentUrl ? currentIsVideo ? /* @__PURE__ */ jsx94(
|
|
7944
8467
|
"video",
|
|
7945
8468
|
{
|
|
7946
8469
|
className: ScMediaApproval_default.media,
|
|
@@ -7949,7 +8472,7 @@ var ScMediaApproval = (props) => {
|
|
|
7949
8472
|
onClick: handlePreview,
|
|
7950
8473
|
onLoadedData: () => setMediaLoading(false)
|
|
7951
8474
|
}
|
|
7952
|
-
) : /* @__PURE__ */
|
|
8475
|
+
) : /* @__PURE__ */ jsx94(
|
|
7953
8476
|
"img",
|
|
7954
8477
|
{
|
|
7955
8478
|
className: ScMediaApproval_default.media,
|
|
@@ -7958,8 +8481,8 @@ var ScMediaApproval = (props) => {
|
|
|
7958
8481
|
onClick: handlePreview,
|
|
7959
8482
|
onLoad: () => setMediaLoading(false)
|
|
7960
8483
|
}
|
|
7961
|
-
) : /* @__PURE__ */
|
|
7962
|
-
(loading || mediaLoading) && /* @__PURE__ */
|
|
8484
|
+
) : /* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.mediaEmpty }),
|
|
8485
|
+
(loading || mediaLoading) && /* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.spinnerOverlay, children: /* @__PURE__ */ jsx94(
|
|
7963
8486
|
"svg",
|
|
7964
8487
|
{
|
|
7965
8488
|
className: ScMediaApproval_default.spinner,
|
|
@@ -7967,7 +8490,7 @@ var ScMediaApproval = (props) => {
|
|
|
7967
8490
|
height: "32",
|
|
7968
8491
|
viewBox: "0 0 24 24",
|
|
7969
8492
|
fill: "none",
|
|
7970
|
-
children: /* @__PURE__ */
|
|
8493
|
+
children: /* @__PURE__ */ jsx94(
|
|
7971
8494
|
"path",
|
|
7972
8495
|
{
|
|
7973
8496
|
d: "M12 3a9 9 0 1 0 9 9",
|
|
@@ -7978,15 +8501,15 @@ var ScMediaApproval = (props) => {
|
|
|
7978
8501
|
)
|
|
7979
8502
|
}
|
|
7980
8503
|
) }),
|
|
7981
|
-
total > 1 && /* @__PURE__ */
|
|
7982
|
-
/* @__PURE__ */
|
|
8504
|
+
total > 1 && /* @__PURE__ */ jsxs82(Fragment22, { children: [
|
|
8505
|
+
/* @__PURE__ */ jsx94(
|
|
7983
8506
|
"button",
|
|
7984
8507
|
{
|
|
7985
8508
|
type: "button",
|
|
7986
8509
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navPrev].join(" "),
|
|
7987
8510
|
"aria-label": "Previous",
|
|
7988
8511
|
onClick: () => goTo(safeIndex - 1),
|
|
7989
|
-
children: /* @__PURE__ */
|
|
8512
|
+
children: /* @__PURE__ */ jsx94("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx94(
|
|
7990
8513
|
"path",
|
|
7991
8514
|
{
|
|
7992
8515
|
d: "M15 6L9 12L15 18",
|
|
@@ -7998,14 +8521,14 @@ var ScMediaApproval = (props) => {
|
|
|
7998
8521
|
) })
|
|
7999
8522
|
}
|
|
8000
8523
|
),
|
|
8001
|
-
/* @__PURE__ */
|
|
8524
|
+
/* @__PURE__ */ jsx94(
|
|
8002
8525
|
"button",
|
|
8003
8526
|
{
|
|
8004
8527
|
type: "button",
|
|
8005
8528
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navNext].join(" "),
|
|
8006
8529
|
"aria-label": "Next",
|
|
8007
8530
|
onClick: () => goTo(safeIndex + 1),
|
|
8008
|
-
children: /* @__PURE__ */
|
|
8531
|
+
children: /* @__PURE__ */ jsx94("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx94(
|
|
8009
8532
|
"path",
|
|
8010
8533
|
{
|
|
8011
8534
|
d: "M9 6L15 12L9 18",
|
|
@@ -8017,12 +8540,12 @@ var ScMediaApproval = (props) => {
|
|
|
8017
8540
|
) })
|
|
8018
8541
|
}
|
|
8019
8542
|
),
|
|
8020
|
-
/* @__PURE__ */
|
|
8543
|
+
/* @__PURE__ */ jsxs82("div", { className: ScMediaApproval_default.counterBadge, children: [
|
|
8021
8544
|
safeIndex + 1,
|
|
8022
8545
|
" / ",
|
|
8023
8546
|
total
|
|
8024
8547
|
] }),
|
|
8025
|
-
/* @__PURE__ */
|
|
8548
|
+
/* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.dots, children: mediaUrls.map((_, i) => /* @__PURE__ */ jsx94(
|
|
8026
8549
|
"button",
|
|
8027
8550
|
{
|
|
8028
8551
|
type: "button",
|
|
@@ -8037,9 +8560,9 @@ var ScMediaApproval = (props) => {
|
|
|
8037
8560
|
)) })
|
|
8038
8561
|
] })
|
|
8039
8562
|
] }),
|
|
8040
|
-
/* @__PURE__ */
|
|
8041
|
-
/* @__PURE__ */
|
|
8042
|
-
/* @__PURE__ */
|
|
8563
|
+
/* @__PURE__ */ jsxs82("div", { className: ScMediaApproval_default.feedbackBlock, children: [
|
|
8564
|
+
/* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.label, children: feedbackLabel }),
|
|
8565
|
+
/* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.inputContainer, children: /* @__PURE__ */ jsx94(
|
|
8043
8566
|
"textarea",
|
|
8044
8567
|
{
|
|
8045
8568
|
className: ScMediaApproval_default.textArea,
|
|
@@ -8075,8 +8598,8 @@ var ScMediaSelect_default = {
|
|
|
8075
8598
|
};
|
|
8076
8599
|
|
|
8077
8600
|
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8078
|
-
import { jsx as
|
|
8079
|
-
var CheckBadge = () => /* @__PURE__ */
|
|
8601
|
+
import { jsx as jsx95, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8602
|
+
var CheckBadge = () => /* @__PURE__ */ jsx95("span", { className: ScMediaSelect_default.checkBadge, children: /* @__PURE__ */ jsx95("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx95(
|
|
8080
8603
|
"path",
|
|
8081
8604
|
{
|
|
8082
8605
|
d: "M3.5 7.25L6 9.75L10.5 4.75",
|
|
@@ -8086,7 +8609,7 @@ var CheckBadge = () => /* @__PURE__ */ jsx88("span", { className: ScMediaSelect_
|
|
|
8086
8609
|
strokeLinejoin: "round"
|
|
8087
8610
|
}
|
|
8088
8611
|
) }) });
|
|
8089
|
-
var MaximizeIcon = () => /* @__PURE__ */
|
|
8612
|
+
var MaximizeIcon = () => /* @__PURE__ */ jsx95("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx95(
|
|
8090
8613
|
"path",
|
|
8091
8614
|
{
|
|
8092
8615
|
d: "M15 3H21V9M9 21H3V15M21 3L14 10M3 21L10 14",
|
|
@@ -8116,11 +8639,11 @@ var ScMediaSelect = (props) => {
|
|
|
8116
8639
|
let countLabel = selectedCount + " of " + total + " selected";
|
|
8117
8640
|
if (min > 0) countLabel += " (min " + min + ")";
|
|
8118
8641
|
if (resolvedMax < total) countLabel += " (max " + resolvedMax + ")";
|
|
8119
|
-
return /* @__PURE__ */
|
|
8120
|
-
/* @__PURE__ */
|
|
8121
|
-
/* @__PURE__ */
|
|
8122
|
-
/* @__PURE__ */
|
|
8123
|
-
/* @__PURE__ */
|
|
8642
|
+
return /* @__PURE__ */ jsxs83("div", { className: [ScMediaSelect_default.scMediaSelect, className].filter(Boolean).join(" "), children: [
|
|
8643
|
+
/* @__PURE__ */ jsxs83("div", { className: ScMediaSelect_default.header, children: [
|
|
8644
|
+
/* @__PURE__ */ jsx95("span", { className: ScMediaSelect_default.countLabel, children: countLabel }),
|
|
8645
|
+
/* @__PURE__ */ jsxs83("div", { className: ScMediaSelect_default.actions, children: [
|
|
8646
|
+
/* @__PURE__ */ jsx95(
|
|
8124
8647
|
"button",
|
|
8125
8648
|
{
|
|
8126
8649
|
type: "button",
|
|
@@ -8129,8 +8652,8 @@ var ScMediaSelect = (props) => {
|
|
|
8129
8652
|
children: "Select all"
|
|
8130
8653
|
}
|
|
8131
8654
|
),
|
|
8132
|
-
/* @__PURE__ */
|
|
8133
|
-
/* @__PURE__ */
|
|
8655
|
+
/* @__PURE__ */ jsx95("span", { className: ScMediaSelect_default.divider, children: "|" }),
|
|
8656
|
+
/* @__PURE__ */ jsx95(
|
|
8134
8657
|
"button",
|
|
8135
8658
|
{
|
|
8136
8659
|
type: "button",
|
|
@@ -8141,13 +8664,13 @@ var ScMediaSelect = (props) => {
|
|
|
8141
8664
|
)
|
|
8142
8665
|
] })
|
|
8143
8666
|
] }),
|
|
8144
|
-
/* @__PURE__ */
|
|
8667
|
+
/* @__PURE__ */ jsx95("div", { className: ScMediaSelect_default.grid, children: items.map((url, index) => {
|
|
8145
8668
|
const isSelected = selectedSet.has(url);
|
|
8146
8669
|
const itemClass = [
|
|
8147
8670
|
ScMediaSelect_default.item,
|
|
8148
8671
|
isSelected ? ScMediaSelect_default["state-selected"] : ScMediaSelect_default["state-default"]
|
|
8149
8672
|
].filter(Boolean).join(" ");
|
|
8150
|
-
return /* @__PURE__ */
|
|
8673
|
+
return /* @__PURE__ */ jsxs83(
|
|
8151
8674
|
"div",
|
|
8152
8675
|
{
|
|
8153
8676
|
className: itemClass,
|
|
@@ -8156,9 +8679,9 @@ var ScMediaSelect = (props) => {
|
|
|
8156
8679
|
tabIndex: 0,
|
|
8157
8680
|
"aria-pressed": isSelected,
|
|
8158
8681
|
children: [
|
|
8159
|
-
mediaType === "video" ? /* @__PURE__ */
|
|
8160
|
-
isSelected && /* @__PURE__ */
|
|
8161
|
-
onPreview && /* @__PURE__ */
|
|
8682
|
+
mediaType === "video" ? /* @__PURE__ */ jsx95("video", { className: ScMediaSelect_default.media, src: url, muted: true, playsInline: true }) : /* @__PURE__ */ jsx95("img", { className: ScMediaSelect_default.media, src: url, alt: "" }),
|
|
8683
|
+
isSelected && /* @__PURE__ */ jsx95(CheckBadge, {}),
|
|
8684
|
+
onPreview && /* @__PURE__ */ jsx95(
|
|
8162
8685
|
"button",
|
|
8163
8686
|
{
|
|
8164
8687
|
type: "button",
|
|
@@ -8168,7 +8691,7 @@ var ScMediaSelect = (props) => {
|
|
|
8168
8691
|
onPreview(url);
|
|
8169
8692
|
},
|
|
8170
8693
|
"aria-label": "Preview",
|
|
8171
|
-
children: /* @__PURE__ */
|
|
8694
|
+
children: /* @__PURE__ */ jsx95(MaximizeIcon, {})
|
|
8172
8695
|
}
|
|
8173
8696
|
)
|
|
8174
8697
|
]
|
|
@@ -8180,7 +8703,7 @@ var ScMediaSelect = (props) => {
|
|
|
8180
8703
|
};
|
|
8181
8704
|
|
|
8182
8705
|
// src/SC-todoList/ScTodoList.tsx
|
|
8183
|
-
import { useState as
|
|
8706
|
+
import { useState as useState15 } from "react";
|
|
8184
8707
|
|
|
8185
8708
|
// src/SC-todoList/ScTodoList.module.css
|
|
8186
8709
|
var ScTodoList_default = {
|
|
@@ -8203,7 +8726,7 @@ var ScTodoList_default = {
|
|
|
8203
8726
|
};
|
|
8204
8727
|
|
|
8205
8728
|
// src/SC-todoList/ScTodoList.tsx
|
|
8206
|
-
import { jsx as
|
|
8729
|
+
import { jsx as jsx96, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8207
8730
|
var ScTodoList = ({
|
|
8208
8731
|
items = [],
|
|
8209
8732
|
onToggle,
|
|
@@ -8213,9 +8736,9 @@ var ScTodoList = ({
|
|
|
8213
8736
|
addPlaceholder = "Add an item",
|
|
8214
8737
|
className
|
|
8215
8738
|
}) => {
|
|
8216
|
-
const [editingId, setEditingId] =
|
|
8217
|
-
const [editValue, setEditValue] =
|
|
8218
|
-
const [newValue, setNewValue] =
|
|
8739
|
+
const [editingId, setEditingId] = useState15(null);
|
|
8740
|
+
const [editValue, setEditValue] = useState15("");
|
|
8741
|
+
const [newValue, setNewValue] = useState15("");
|
|
8219
8742
|
const total = items.length;
|
|
8220
8743
|
const completed = items.filter((i) => i.status === "completed").length;
|
|
8221
8744
|
const startEditing = (item) => {
|
|
@@ -8237,9 +8760,9 @@ var ScTodoList = ({
|
|
|
8237
8760
|
onAdd?.(newValue);
|
|
8238
8761
|
setNewValue("");
|
|
8239
8762
|
};
|
|
8240
|
-
return /* @__PURE__ */
|
|
8241
|
-
total > 0 && /* @__PURE__ */
|
|
8242
|
-
/* @__PURE__ */
|
|
8763
|
+
return /* @__PURE__ */ jsxs84("div", { className: [ScTodoList_default.scTodoList, className].filter(Boolean).join(" "), children: [
|
|
8764
|
+
total > 0 && /* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.progress, children: [
|
|
8765
|
+
/* @__PURE__ */ jsx96(
|
|
8243
8766
|
"svg",
|
|
8244
8767
|
{
|
|
8245
8768
|
className: ScTodoList_default.progressIcon,
|
|
@@ -8248,7 +8771,7 @@ var ScTodoList = ({
|
|
|
8248
8771
|
viewBox: "0 0 14 14",
|
|
8249
8772
|
fill: "none",
|
|
8250
8773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8251
|
-
children: /* @__PURE__ */
|
|
8774
|
+
children: /* @__PURE__ */ jsx96(
|
|
8252
8775
|
"path",
|
|
8253
8776
|
{
|
|
8254
8777
|
d: "M3 7L6 10L11 4",
|
|
@@ -8260,25 +8783,25 @@ var ScTodoList = ({
|
|
|
8260
8783
|
)
|
|
8261
8784
|
}
|
|
8262
8785
|
),
|
|
8263
|
-
/* @__PURE__ */
|
|
8786
|
+
/* @__PURE__ */ jsxs84("span", { className: ScTodoList_default.progressText, children: [
|
|
8264
8787
|
completed,
|
|
8265
8788
|
" of ",
|
|
8266
8789
|
total,
|
|
8267
8790
|
" completed"
|
|
8268
8791
|
] })
|
|
8269
8792
|
] }),
|
|
8270
|
-
/* @__PURE__ */
|
|
8793
|
+
/* @__PURE__ */ jsx96("div", { className: ScTodoList_default.rows, children: items.map((item) => {
|
|
8271
8794
|
const isEditing = editingId === item.id;
|
|
8272
8795
|
const isCompleted = item.status === "completed";
|
|
8273
|
-
return /* @__PURE__ */
|
|
8274
|
-
/* @__PURE__ */
|
|
8796
|
+
return /* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.row, children: [
|
|
8797
|
+
/* @__PURE__ */ jsx96(
|
|
8275
8798
|
"button",
|
|
8276
8799
|
{
|
|
8277
8800
|
type: "button",
|
|
8278
8801
|
className: ScTodoList_default.checkbox,
|
|
8279
8802
|
"aria-label": isCompleted ? "Mark as pending" : "Mark as completed",
|
|
8280
8803
|
onClick: () => onToggle?.(item.id),
|
|
8281
|
-
children: isCompleted ? /* @__PURE__ */
|
|
8804
|
+
children: isCompleted ? /* @__PURE__ */ jsxs84(
|
|
8282
8805
|
"svg",
|
|
8283
8806
|
{
|
|
8284
8807
|
width: "18",
|
|
@@ -8287,8 +8810,8 @@ var ScTodoList = ({
|
|
|
8287
8810
|
fill: "none",
|
|
8288
8811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8289
8812
|
children: [
|
|
8290
|
-
/* @__PURE__ */
|
|
8291
|
-
/* @__PURE__ */
|
|
8813
|
+
/* @__PURE__ */ jsx96("circle", { cx: "9", cy: "9", r: "9", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
8814
|
+
/* @__PURE__ */ jsx96(
|
|
8292
8815
|
"path",
|
|
8293
8816
|
{
|
|
8294
8817
|
d: "M5.25 9L7.75 11.5L12.75 6.5",
|
|
@@ -8300,7 +8823,7 @@ var ScTodoList = ({
|
|
|
8300
8823
|
)
|
|
8301
8824
|
]
|
|
8302
8825
|
}
|
|
8303
|
-
) : /* @__PURE__ */
|
|
8826
|
+
) : /* @__PURE__ */ jsx96(
|
|
8304
8827
|
"svg",
|
|
8305
8828
|
{
|
|
8306
8829
|
width: "18",
|
|
@@ -8308,7 +8831,7 @@ var ScTodoList = ({
|
|
|
8308
8831
|
viewBox: "0 0 18 18",
|
|
8309
8832
|
fill: "none",
|
|
8310
8833
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8311
|
-
children: /* @__PURE__ */
|
|
8834
|
+
children: /* @__PURE__ */ jsx96(
|
|
8312
8835
|
"circle",
|
|
8313
8836
|
{
|
|
8314
8837
|
cx: "9",
|
|
@@ -8322,7 +8845,7 @@ var ScTodoList = ({
|
|
|
8322
8845
|
)
|
|
8323
8846
|
}
|
|
8324
8847
|
),
|
|
8325
|
-
isEditing ? /* @__PURE__ */
|
|
8848
|
+
isEditing ? /* @__PURE__ */ jsx96(
|
|
8326
8849
|
"input",
|
|
8327
8850
|
{
|
|
8328
8851
|
className: ScTodoList_default.editInput,
|
|
@@ -8340,7 +8863,7 @@ var ScTodoList = ({
|
|
|
8340
8863
|
}
|
|
8341
8864
|
}
|
|
8342
8865
|
}
|
|
8343
|
-
) : /* @__PURE__ */
|
|
8866
|
+
) : /* @__PURE__ */ jsx96(
|
|
8344
8867
|
"span",
|
|
8345
8868
|
{
|
|
8346
8869
|
className: [
|
|
@@ -8350,15 +8873,15 @@ var ScTodoList = ({
|
|
|
8350
8873
|
children: item.content
|
|
8351
8874
|
}
|
|
8352
8875
|
),
|
|
8353
|
-
!isEditing && /* @__PURE__ */
|
|
8354
|
-
/* @__PURE__ */
|
|
8876
|
+
!isEditing && /* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.actions, children: [
|
|
8877
|
+
/* @__PURE__ */ jsx96(
|
|
8355
8878
|
"button",
|
|
8356
8879
|
{
|
|
8357
8880
|
type: "button",
|
|
8358
8881
|
className: ScTodoList_default.actionButton,
|
|
8359
8882
|
"aria-label": "Edit item",
|
|
8360
8883
|
onClick: () => startEditing(item),
|
|
8361
|
-
children: /* @__PURE__ */
|
|
8884
|
+
children: /* @__PURE__ */ jsx96(
|
|
8362
8885
|
"svg",
|
|
8363
8886
|
{
|
|
8364
8887
|
width: "16",
|
|
@@ -8366,7 +8889,7 @@ var ScTodoList = ({
|
|
|
8366
8889
|
viewBox: "0 0 16 16",
|
|
8367
8890
|
fill: "none",
|
|
8368
8891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8369
|
-
children: /* @__PURE__ */
|
|
8892
|
+
children: /* @__PURE__ */ jsx96(
|
|
8370
8893
|
"path",
|
|
8371
8894
|
{
|
|
8372
8895
|
d: "M11.333 2.667a1.414 1.414 0 0 1 2 2L5.333 12.667l-2.667.667.667-2.667 8-8Z",
|
|
@@ -8380,14 +8903,14 @@ var ScTodoList = ({
|
|
|
8380
8903
|
)
|
|
8381
8904
|
}
|
|
8382
8905
|
),
|
|
8383
|
-
/* @__PURE__ */
|
|
8906
|
+
/* @__PURE__ */ jsx96(
|
|
8384
8907
|
"button",
|
|
8385
8908
|
{
|
|
8386
8909
|
type: "button",
|
|
8387
8910
|
className: [ScTodoList_default.actionButton, ScTodoList_default.actionButtonDanger].filter(Boolean).join(" "),
|
|
8388
8911
|
"aria-label": "Delete item",
|
|
8389
8912
|
onClick: () => onDelete?.(item.id),
|
|
8390
|
-
children: /* @__PURE__ */
|
|
8913
|
+
children: /* @__PURE__ */ jsx96(
|
|
8391
8914
|
"svg",
|
|
8392
8915
|
{
|
|
8393
8916
|
width: "16",
|
|
@@ -8395,7 +8918,7 @@ var ScTodoList = ({
|
|
|
8395
8918
|
viewBox: "0 0 16 16",
|
|
8396
8919
|
fill: "none",
|
|
8397
8920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8398
|
-
children: /* @__PURE__ */
|
|
8921
|
+
children: /* @__PURE__ */ jsx96(
|
|
8399
8922
|
"path",
|
|
8400
8923
|
{
|
|
8401
8924
|
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",
|
|
@@ -8412,8 +8935,8 @@ var ScTodoList = ({
|
|
|
8412
8935
|
] })
|
|
8413
8936
|
] }, item.id);
|
|
8414
8937
|
}) }),
|
|
8415
|
-
/* @__PURE__ */
|
|
8416
|
-
/* @__PURE__ */
|
|
8938
|
+
/* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.addRow, children: [
|
|
8939
|
+
/* @__PURE__ */ jsx96(
|
|
8417
8940
|
"input",
|
|
8418
8941
|
{
|
|
8419
8942
|
className: ScTodoList_default.addInput,
|
|
@@ -8428,7 +8951,7 @@ var ScTodoList = ({
|
|
|
8428
8951
|
}
|
|
8429
8952
|
}
|
|
8430
8953
|
),
|
|
8431
|
-
/* @__PURE__ */
|
|
8954
|
+
/* @__PURE__ */ jsx96(
|
|
8432
8955
|
"button",
|
|
8433
8956
|
{
|
|
8434
8957
|
type: "button",
|
|
@@ -8436,7 +8959,7 @@ var ScTodoList = ({
|
|
|
8436
8959
|
"aria-label": "Add item",
|
|
8437
8960
|
disabled: newValue.trim().length === 0,
|
|
8438
8961
|
onClick: commitAdd,
|
|
8439
|
-
children: /* @__PURE__ */
|
|
8962
|
+
children: /* @__PURE__ */ jsx96(
|
|
8440
8963
|
"svg",
|
|
8441
8964
|
{
|
|
8442
8965
|
width: "18",
|
|
@@ -8444,7 +8967,7 @@ var ScTodoList = ({
|
|
|
8444
8967
|
viewBox: "0 0 18 18",
|
|
8445
8968
|
fill: "none",
|
|
8446
8969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8447
|
-
children: /* @__PURE__ */
|
|
8970
|
+
children: /* @__PURE__ */ jsx96(
|
|
8448
8971
|
"path",
|
|
8449
8972
|
{
|
|
8450
8973
|
d: "M9 4v10M4 9h10",
|
|
@@ -8471,18 +8994,18 @@ var ScRoleMobile_default = {
|
|
|
8471
8994
|
};
|
|
8472
8995
|
|
|
8473
8996
|
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
8474
|
-
import { jsx as
|
|
8997
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
8475
8998
|
var ScRoleMobile = ({
|
|
8476
8999
|
role = "admin",
|
|
8477
9000
|
className,
|
|
8478
9001
|
...props
|
|
8479
9002
|
}) => {
|
|
8480
|
-
return /* @__PURE__ */
|
|
9003
|
+
return /* @__PURE__ */ jsx97(
|
|
8481
9004
|
"div",
|
|
8482
9005
|
{
|
|
8483
9006
|
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
8484
9007
|
...props,
|
|
8485
|
-
children: /* @__PURE__ */
|
|
9008
|
+
children: /* @__PURE__ */ jsx97("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
8486
9009
|
}
|
|
8487
9010
|
);
|
|
8488
9011
|
};
|
|
@@ -8499,7 +9022,7 @@ var ScProfileV2Mobile_default = {
|
|
|
8499
9022
|
};
|
|
8500
9023
|
|
|
8501
9024
|
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
8502
|
-
import { jsx as
|
|
9025
|
+
import { jsx as jsx98, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8503
9026
|
var ScProfileV2Mobile = ({
|
|
8504
9027
|
name = "Chris Hemsworth",
|
|
8505
9028
|
email = "chris@kepler.com",
|
|
@@ -8509,17 +9032,17 @@ var ScProfileV2Mobile = ({
|
|
|
8509
9032
|
...props
|
|
8510
9033
|
}) => {
|
|
8511
9034
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8512
|
-
const profileImage = /* @__PURE__ */
|
|
8513
|
-
return /* @__PURE__ */
|
|
9035
|
+
const profileImage = /* @__PURE__ */ jsx98("div", { className: ScProfileV2Mobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ jsx98("img", { src: imageUrl, alt: name, className: ScProfileV2Mobile_default.image }) : /* @__PURE__ */ jsx98("div", { className: ScProfileV2Mobile_default.initials, children: initials }) });
|
|
9036
|
+
return /* @__PURE__ */ jsxs85(
|
|
8514
9037
|
"div",
|
|
8515
9038
|
{
|
|
8516
9039
|
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
8517
9040
|
...props,
|
|
8518
9041
|
children: [
|
|
8519
9042
|
dpPosition === "left" && profileImage,
|
|
8520
|
-
/* @__PURE__ */
|
|
8521
|
-
/* @__PURE__ */
|
|
8522
|
-
/* @__PURE__ */
|
|
9043
|
+
/* @__PURE__ */ jsxs85("div", { className: ScProfileV2Mobile_default.userInfo, children: [
|
|
9044
|
+
/* @__PURE__ */ jsx98("p", { className: ScProfileV2Mobile_default.userName, children: name }),
|
|
9045
|
+
/* @__PURE__ */ jsx98("p", { className: ScProfileV2Mobile_default.userEmail, children: email })
|
|
8523
9046
|
] }),
|
|
8524
9047
|
dpPosition === "right" && profileImage
|
|
8525
9048
|
]
|
|
@@ -8546,7 +9069,7 @@ var ScTableListMobile_default = {
|
|
|
8546
9069
|
};
|
|
8547
9070
|
|
|
8548
9071
|
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
8549
|
-
import { jsx as
|
|
9072
|
+
import { jsx as jsx99, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8550
9073
|
var ScTableListMobile = ({
|
|
8551
9074
|
name = "Chris Hemsworth",
|
|
8552
9075
|
email = "chris@kepler.com",
|
|
@@ -8559,25 +9082,25 @@ var ScTableListMobile = ({
|
|
|
8559
9082
|
...props
|
|
8560
9083
|
}) => {
|
|
8561
9084
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8562
|
-
return /* @__PURE__ */
|
|
9085
|
+
return /* @__PURE__ */ jsxs86(
|
|
8563
9086
|
"div",
|
|
8564
9087
|
{
|
|
8565
9088
|
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
8566
9089
|
onClick: onRowClick,
|
|
8567
9090
|
...props,
|
|
8568
9091
|
children: [
|
|
8569
|
-
/* @__PURE__ */
|
|
8570
|
-
/* @__PURE__ */
|
|
8571
|
-
/* @__PURE__ */
|
|
8572
|
-
/* @__PURE__ */
|
|
9092
|
+
/* @__PURE__ */ jsxs86("div", { className: ScTableListMobile_default.profileRow, children: [
|
|
9093
|
+
/* @__PURE__ */ jsxs86("div", { className: ScTableListMobile_default.userInfo, children: [
|
|
9094
|
+
/* @__PURE__ */ jsx99("p", { className: ScTableListMobile_default.userName, children: name }),
|
|
9095
|
+
/* @__PURE__ */ jsx99("p", { className: ScTableListMobile_default.userEmail, children: email })
|
|
8573
9096
|
] }),
|
|
8574
|
-
/* @__PURE__ */
|
|
9097
|
+
/* @__PURE__ */ jsx99("div", { className: ScTableListMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ jsx99("img", { src: imageUrl, alt: name, className: ScTableListMobile_default.image }) : /* @__PURE__ */ jsx99("div", { className: ScTableListMobile_default.initials, children: initials }) })
|
|
8575
9098
|
] }),
|
|
8576
|
-
/* @__PURE__ */
|
|
8577
|
-
/* @__PURE__ */
|
|
8578
|
-
/* @__PURE__ */
|
|
8579
|
-
accessIcons && accessIcons.length > 0 && /* @__PURE__ */
|
|
8580
|
-
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */
|
|
9099
|
+
/* @__PURE__ */ jsxs86("div", { className: ScTableListMobile_default.detailsRow, children: [
|
|
9100
|
+
/* @__PURE__ */ jsx99("div", { className: ScTableListMobile_default.roleBadge, children: /* @__PURE__ */ jsx99("p", { className: ScTableListMobile_default.roleText, children: role }) }),
|
|
9101
|
+
/* @__PURE__ */ jsxs86("div", { className: ScTableListMobile_default.accessInfo, children: [
|
|
9102
|
+
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ jsx99("div", { className: ScTableListMobile_default.accessGroup, children: accessIcons.map((icon, i) => /* @__PURE__ */ jsx99("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) }),
|
|
9103
|
+
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ jsx99("div", { className: ScTableListMobile_default.accessGroup, children: permissionIcons.map((icon, i) => /* @__PURE__ */ jsx99("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) })
|
|
8581
9104
|
] })
|
|
8582
9105
|
] })
|
|
8583
9106
|
]
|
|
@@ -8605,7 +9128,7 @@ var ScWorkspaceSwitchMobile_default = {
|
|
|
8605
9128
|
};
|
|
8606
9129
|
|
|
8607
9130
|
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
8608
|
-
import { jsx as
|
|
9131
|
+
import { jsx as jsx100, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8609
9132
|
var ScWorkspaceSwitchMobile = ({
|
|
8610
9133
|
storeName = "Stores",
|
|
8611
9134
|
initials = "WS",
|
|
@@ -8618,24 +9141,24 @@ var ScWorkspaceSwitchMobile = ({
|
|
|
8618
9141
|
...props
|
|
8619
9142
|
}) => {
|
|
8620
9143
|
const variant = currentWs ? "current" : "other";
|
|
8621
|
-
return /* @__PURE__ */
|
|
9144
|
+
return /* @__PURE__ */ jsxs87(
|
|
8622
9145
|
"div",
|
|
8623
9146
|
{
|
|
8624
9147
|
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
8625
9148
|
onClick,
|
|
8626
9149
|
...props,
|
|
8627
9150
|
children: [
|
|
8628
|
-
/* @__PURE__ */
|
|
8629
|
-
/* @__PURE__ */
|
|
8630
|
-
/* @__PURE__ */
|
|
8631
|
-
/* @__PURE__ */
|
|
9151
|
+
/* @__PURE__ */ jsxs87("div", { className: ScWorkspaceSwitchMobile_default.workspaceInfo, children: [
|
|
9152
|
+
/* @__PURE__ */ jsxs87("div", { className: ScWorkspaceSwitchMobile_default.wsNameRow, children: [
|
|
9153
|
+
/* @__PURE__ */ jsx100("div", { className: ScWorkspaceSwitchMobile_default.initialsBox, children: /* @__PURE__ */ jsx100("span", { className: ScWorkspaceSwitchMobile_default.initialsText, children: initials }) }),
|
|
9154
|
+
/* @__PURE__ */ jsx100("p", { className: ScWorkspaceSwitchMobile_default.storeName, children: storeName })
|
|
8632
9155
|
] }),
|
|
8633
|
-
/* @__PURE__ */
|
|
9156
|
+
/* @__PURE__ */ jsx100("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ jsx100("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
8634
9157
|
] }),
|
|
8635
|
-
/* @__PURE__ */
|
|
8636
|
-
/* @__PURE__ */
|
|
8637
|
-
/* @__PURE__ */
|
|
8638
|
-
/* @__PURE__ */
|
|
9158
|
+
/* @__PURE__ */ jsx100("div", { className: ScWorkspaceSwitchMobile_default.divider }),
|
|
9159
|
+
/* @__PURE__ */ jsxs87("div", { className: ScWorkspaceSwitchMobile_default.ownerRow, children: [
|
|
9160
|
+
/* @__PURE__ */ jsx100("div", { className: ScWorkspaceSwitchMobile_default.ownerIconContainer, children: ownerIcon && /* @__PURE__ */ jsx100("span", { className: ScWorkspaceSwitchMobile_default.ownerIcon, children: ownerIcon }) }),
|
|
9161
|
+
/* @__PURE__ */ jsx100("p", { className: ScWorkspaceSwitchMobile_default.ownerText, children: ownerId })
|
|
8639
9162
|
] })
|
|
8640
9163
|
]
|
|
8641
9164
|
}
|
|
@@ -8662,7 +9185,7 @@ var ScWorkspaceSettingsMobile_default = {
|
|
|
8662
9185
|
};
|
|
8663
9186
|
|
|
8664
9187
|
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
8665
|
-
import { jsx as
|
|
9188
|
+
import { jsx as jsx101, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
8666
9189
|
var ScWorkspaceSettingsMobile = ({
|
|
8667
9190
|
storeName = "Stores",
|
|
8668
9191
|
initials = "WS",
|
|
@@ -8677,28 +9200,28 @@ var ScWorkspaceSettingsMobile = ({
|
|
|
8677
9200
|
...props
|
|
8678
9201
|
}) => {
|
|
8679
9202
|
const variant = currentWs ? "current" : "other";
|
|
8680
|
-
return /* @__PURE__ */
|
|
9203
|
+
return /* @__PURE__ */ jsxs88(
|
|
8681
9204
|
"div",
|
|
8682
9205
|
{
|
|
8683
9206
|
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
8684
9207
|
onClick,
|
|
8685
9208
|
...props,
|
|
8686
9209
|
children: [
|
|
8687
|
-
/* @__PURE__ */
|
|
8688
|
-
/* @__PURE__ */
|
|
8689
|
-
/* @__PURE__ */
|
|
8690
|
-
/* @__PURE__ */
|
|
9210
|
+
/* @__PURE__ */ jsxs88("div", { className: ScWorkspaceSettingsMobile_default.workspaceInfo, children: [
|
|
9211
|
+
/* @__PURE__ */ jsxs88("div", { className: ScWorkspaceSettingsMobile_default.wsNameRow, children: [
|
|
9212
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSettingsMobile_default.initialsBox, children: /* @__PURE__ */ jsx101("span", { className: ScWorkspaceSettingsMobile_default.initialsText, children: initials }) }),
|
|
9213
|
+
/* @__PURE__ */ jsx101("p", { className: ScWorkspaceSettingsMobile_default.storeName, children: storeName })
|
|
8691
9214
|
] }),
|
|
8692
|
-
/* @__PURE__ */
|
|
9215
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ jsx101("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
8693
9216
|
] }),
|
|
8694
|
-
/* @__PURE__ */
|
|
8695
|
-
/* @__PURE__ */
|
|
8696
|
-
/* @__PURE__ */
|
|
8697
|
-
/* @__PURE__ */
|
|
9217
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSettingsMobile_default.divider }),
|
|
9218
|
+
/* @__PURE__ */ jsxs88("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
9219
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: ownerIcon && /* @__PURE__ */ jsx101("span", { className: ScWorkspaceSettingsMobile_default.icon, children: ownerIcon }) }),
|
|
9220
|
+
/* @__PURE__ */ jsx101("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: ownerId })
|
|
8698
9221
|
] }),
|
|
8699
|
-
/* @__PURE__ */
|
|
8700
|
-
/* @__PURE__ */
|
|
8701
|
-
/* @__PURE__ */
|
|
9222
|
+
/* @__PURE__ */ jsxs88("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
9223
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: teamIcon && /* @__PURE__ */ jsx101("span", { className: ScWorkspaceSettingsMobile_default.icon, children: teamIcon }) }),
|
|
9224
|
+
/* @__PURE__ */ jsx101("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: teamCount })
|
|
8702
9225
|
] })
|
|
8703
9226
|
]
|
|
8704
9227
|
}
|
|
@@ -8721,7 +9244,7 @@ var ScMobileTopNav_default = {
|
|
|
8721
9244
|
};
|
|
8722
9245
|
|
|
8723
9246
|
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
8724
|
-
import { Fragment as Fragment23, jsx as
|
|
9247
|
+
import { Fragment as Fragment23, jsx as jsx102, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
8725
9248
|
var ScMobileTopNav = ({
|
|
8726
9249
|
type = "home",
|
|
8727
9250
|
searchIcon = false,
|
|
@@ -8744,22 +9267,22 @@ var ScMobileTopNav = ({
|
|
|
8744
9267
|
}) => {
|
|
8745
9268
|
const hasBorder = type === "chat" || type === "inApp";
|
|
8746
9269
|
const showSearch = type === "inApp" && searchIcon && search;
|
|
8747
|
-
return /* @__PURE__ */
|
|
9270
|
+
return /* @__PURE__ */ jsxs89(
|
|
8748
9271
|
"div",
|
|
8749
9272
|
{
|
|
8750
9273
|
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
8751
9274
|
...props,
|
|
8752
9275
|
children: [
|
|
8753
|
-
type === "home" && /* @__PURE__ */
|
|
8754
|
-
type === "chat" && /* @__PURE__ */
|
|
8755
|
-
/* @__PURE__ */
|
|
8756
|
-
/* @__PURE__ */
|
|
8757
|
-
/* @__PURE__ */
|
|
9276
|
+
type === "home" && /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9277
|
+
type === "chat" && /* @__PURE__ */ jsxs89(Fragment23, { children: [
|
|
9278
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9279
|
+
/* @__PURE__ */ jsx102("p", { className: ScMobileTopNav_default.chatTitle, children: chatTitle }),
|
|
9280
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMoreClick, children: moreIcon || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
8758
9281
|
] }),
|
|
8759
|
-
showSearch && /* @__PURE__ */
|
|
8760
|
-
/* @__PURE__ */
|
|
8761
|
-
/* @__PURE__ */
|
|
8762
|
-
/* @__PURE__ */
|
|
9282
|
+
showSearch && /* @__PURE__ */ jsxs89(Fragment23, { children: [
|
|
9283
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.searchRow, children: /* @__PURE__ */ jsxs89("div", { className: ScMobileTopNav_default.searchInputContainer, children: [
|
|
9284
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onSearchClick, children: searchIconElement || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9285
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.searchInput, children: /* @__PURE__ */ jsx102(
|
|
8763
9286
|
"input",
|
|
8764
9287
|
{
|
|
8765
9288
|
type: "text",
|
|
@@ -8770,17 +9293,17 @@ var ScMobileTopNav = ({
|
|
|
8770
9293
|
}
|
|
8771
9294
|
) })
|
|
8772
9295
|
] }) }),
|
|
8773
|
-
/* @__PURE__ */
|
|
9296
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
8774
9297
|
] }),
|
|
8775
|
-
type === "inApp" && !search && /* @__PURE__ */
|
|
8776
|
-
/* @__PURE__ */
|
|
8777
|
-
/* @__PURE__ */
|
|
8778
|
-
/* @__PURE__ */
|
|
9298
|
+
type === "inApp" && !search && /* @__PURE__ */ jsxs89(Fragment23, { children: [
|
|
9299
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9300
|
+
/* @__PURE__ */ jsx102("p", { className: ScMobileTopNav_default.heading, children: heading }),
|
|
9301
|
+
/* @__PURE__ */ jsx102(
|
|
8779
9302
|
"div",
|
|
8780
9303
|
{
|
|
8781
9304
|
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
8782
9305
|
onClick: onSearchClick,
|
|
8783
|
-
children: searchIcon ? searchIconElement || /* @__PURE__ */
|
|
9306
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
8784
9307
|
}
|
|
8785
9308
|
)
|
|
8786
9309
|
] })
|
|
@@ -8801,7 +9324,7 @@ var ScMobileBottomAction_default = {
|
|
|
8801
9324
|
};
|
|
8802
9325
|
|
|
8803
9326
|
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
8804
|
-
import { jsx as
|
|
9327
|
+
import { jsx as jsx103, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
8805
9328
|
var ScMobileBottomAction = ({
|
|
8806
9329
|
text = "Save Changes",
|
|
8807
9330
|
disabled = false,
|
|
@@ -8813,28 +9336,28 @@ var ScMobileBottomAction = ({
|
|
|
8813
9336
|
...props
|
|
8814
9337
|
}) => {
|
|
8815
9338
|
const isTwoButton = !!secondaryText;
|
|
8816
|
-
return /* @__PURE__ */
|
|
9339
|
+
return /* @__PURE__ */ jsxs90(
|
|
8817
9340
|
"div",
|
|
8818
9341
|
{
|
|
8819
9342
|
className: ScMobileBottomAction_default.scMobileBottomAction + (isTwoButton ? " " + ScMobileBottomAction_default.twoButton : "") + " " + className,
|
|
8820
9343
|
...props,
|
|
8821
9344
|
children: [
|
|
8822
|
-
isTwoButton && /* @__PURE__ */
|
|
9345
|
+
isTwoButton && /* @__PURE__ */ jsx103(
|
|
8823
9346
|
"button",
|
|
8824
9347
|
{
|
|
8825
9348
|
className: ScMobileBottomAction_default.outlineButton + " " + (secondaryDisabled ? ScMobileBottomAction_default.disabled : ""),
|
|
8826
9349
|
onClick: onSecondaryClick,
|
|
8827
9350
|
disabled: secondaryDisabled,
|
|
8828
|
-
children: /* @__PURE__ */
|
|
9351
|
+
children: /* @__PURE__ */ jsx103("span", { className: ScMobileBottomAction_default.outlineButtonText, children: secondaryText })
|
|
8829
9352
|
}
|
|
8830
9353
|
),
|
|
8831
|
-
/* @__PURE__ */
|
|
9354
|
+
/* @__PURE__ */ jsx103(
|
|
8832
9355
|
"button",
|
|
8833
9356
|
{
|
|
8834
9357
|
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
8835
9358
|
onClick,
|
|
8836
9359
|
disabled,
|
|
8837
|
-
children: /* @__PURE__ */
|
|
9360
|
+
children: /* @__PURE__ */ jsx103("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
8838
9361
|
}
|
|
8839
9362
|
)
|
|
8840
9363
|
]
|
|
@@ -8852,7 +9375,7 @@ var ScPopUpMenu_default = {
|
|
|
8852
9375
|
};
|
|
8853
9376
|
|
|
8854
9377
|
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
8855
|
-
import { jsx as
|
|
9378
|
+
import { jsx as jsx104, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
8856
9379
|
var ScPopUpMenu = ({
|
|
8857
9380
|
menu = "Options",
|
|
8858
9381
|
state = "default",
|
|
@@ -8861,15 +9384,15 @@ var ScPopUpMenu = ({
|
|
|
8861
9384
|
className,
|
|
8862
9385
|
...props
|
|
8863
9386
|
}) => {
|
|
8864
|
-
return /* @__PURE__ */
|
|
9387
|
+
return /* @__PURE__ */ jsxs91(
|
|
8865
9388
|
"div",
|
|
8866
9389
|
{
|
|
8867
9390
|
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
8868
9391
|
onClick,
|
|
8869
9392
|
...props,
|
|
8870
9393
|
children: [
|
|
8871
|
-
icon && /* @__PURE__ */
|
|
8872
|
-
/* @__PURE__ */
|
|
9394
|
+
icon && /* @__PURE__ */ jsx104("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
9395
|
+
/* @__PURE__ */ jsx104("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
8873
9396
|
]
|
|
8874
9397
|
}
|
|
8875
9398
|
);
|
|
@@ -8895,7 +9418,7 @@ var ScReferralCardMobile_default = {
|
|
|
8895
9418
|
};
|
|
8896
9419
|
|
|
8897
9420
|
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
8898
|
-
import { jsx as
|
|
9421
|
+
import { jsx as jsx105, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
8899
9422
|
var ScReferralCardMobile = ({
|
|
8900
9423
|
name = "Chris Hemsworth",
|
|
8901
9424
|
email = "chris@kepler.com",
|
|
@@ -8908,27 +9431,27 @@ var ScReferralCardMobile = ({
|
|
|
8908
9431
|
...props
|
|
8909
9432
|
}) => {
|
|
8910
9433
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8911
|
-
return /* @__PURE__ */
|
|
9434
|
+
return /* @__PURE__ */ jsxs92(
|
|
8912
9435
|
"div",
|
|
8913
9436
|
{
|
|
8914
9437
|
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
8915
9438
|
onClick,
|
|
8916
9439
|
...props,
|
|
8917
9440
|
children: [
|
|
8918
|
-
/* @__PURE__ */
|
|
8919
|
-
/* @__PURE__ */
|
|
8920
|
-
/* @__PURE__ */
|
|
8921
|
-
/* @__PURE__ */
|
|
8922
|
-
/* @__PURE__ */
|
|
8923
|
-
/* @__PURE__ */
|
|
9441
|
+
/* @__PURE__ */ jsxs92("div", { className: ScReferralCardMobile_default.userRow, children: [
|
|
9442
|
+
/* @__PURE__ */ jsxs92("div", { className: ScReferralCardMobile_default.profileSection, children: [
|
|
9443
|
+
/* @__PURE__ */ jsx105("div", { className: ScReferralCardMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ jsx105("img", { src: imageUrl, alt: name, className: ScReferralCardMobile_default.image }) : /* @__PURE__ */ jsx105("div", { className: ScReferralCardMobile_default.initials, children: initials }) }),
|
|
9444
|
+
/* @__PURE__ */ jsxs92("div", { className: ScReferralCardMobile_default.userInfo, children: [
|
|
9445
|
+
/* @__PURE__ */ jsx105("p", { className: ScReferralCardMobile_default.userName, children: name }),
|
|
9446
|
+
/* @__PURE__ */ jsx105("p", { className: ScReferralCardMobile_default.userEmail, children: email })
|
|
8924
9447
|
] })
|
|
8925
9448
|
] }),
|
|
8926
|
-
/* @__PURE__ */
|
|
9449
|
+
/* @__PURE__ */ jsx105("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ jsx105("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
8927
9450
|
] }),
|
|
8928
|
-
/* @__PURE__ */
|
|
8929
|
-
/* @__PURE__ */
|
|
8930
|
-
/* @__PURE__ */
|
|
8931
|
-
/* @__PURE__ */
|
|
9451
|
+
/* @__PURE__ */ jsx105("div", { className: ScReferralCardMobile_default.divider }),
|
|
9452
|
+
/* @__PURE__ */ jsxs92("div", { className: ScReferralCardMobile_default.detailsRow, children: [
|
|
9453
|
+
/* @__PURE__ */ jsx105("p", { className: ScReferralCardMobile_default.dateText, children: date }),
|
|
9454
|
+
/* @__PURE__ */ jsx105("p", { className: ScReferralCardMobile_default.creditsText, children: credits })
|
|
8932
9455
|
] })
|
|
8933
9456
|
]
|
|
8934
9457
|
}
|
|
@@ -8945,19 +9468,19 @@ var InvoiceHistoryMobile_default = {
|
|
|
8945
9468
|
};
|
|
8946
9469
|
|
|
8947
9470
|
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
8948
|
-
import { jsx as
|
|
9471
|
+
import { jsx as jsx106, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
8949
9472
|
var InvoiceHistoryMobile = ({
|
|
8950
9473
|
invoiceId = "# INV-2800-2026",
|
|
8951
9474
|
date = "Nov 9th, 2025",
|
|
8952
9475
|
amount = "\u20B9320.89",
|
|
8953
9476
|
className
|
|
8954
9477
|
}) => {
|
|
8955
|
-
return /* @__PURE__ */
|
|
8956
|
-
/* @__PURE__ */
|
|
8957
|
-
/* @__PURE__ */
|
|
8958
|
-
/* @__PURE__ */
|
|
9478
|
+
return /* @__PURE__ */ jsxs93("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
9479
|
+
/* @__PURE__ */ jsxs93("div", { className: InvoiceHistoryMobile_default.info, children: [
|
|
9480
|
+
/* @__PURE__ */ jsx106("div", { className: InvoiceHistoryMobile_default.invoiceId, children: invoiceId }),
|
|
9481
|
+
/* @__PURE__ */ jsx106("div", { className: InvoiceHistoryMobile_default.date, children: date })
|
|
8959
9482
|
] }),
|
|
8960
|
-
/* @__PURE__ */
|
|
9483
|
+
/* @__PURE__ */ jsx106("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
8961
9484
|
] });
|
|
8962
9485
|
};
|
|
8963
9486
|
|
|
@@ -8975,7 +9498,7 @@ var UsageHistoryMobile_default = {
|
|
|
8975
9498
|
};
|
|
8976
9499
|
|
|
8977
9500
|
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
8978
|
-
import { jsx as
|
|
9501
|
+
import { jsx as jsx107, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
8979
9502
|
var UsageHistoryMobile = ({
|
|
8980
9503
|
serviceName = "Artifax Generation",
|
|
8981
9504
|
credits = "50",
|
|
@@ -8984,18 +9507,18 @@ var UsageHistoryMobile = ({
|
|
|
8984
9507
|
balance = "84,902",
|
|
8985
9508
|
className
|
|
8986
9509
|
}) => {
|
|
8987
|
-
return /* @__PURE__ */
|
|
8988
|
-
/* @__PURE__ */
|
|
8989
|
-
/* @__PURE__ */
|
|
8990
|
-
/* @__PURE__ */
|
|
9510
|
+
return /* @__PURE__ */ jsxs94("div", { className: UsageHistoryMobile_default.usageHistoryMobile + " " + (className ?? ""), children: [
|
|
9511
|
+
/* @__PURE__ */ jsxs94("div", { className: UsageHistoryMobile_default.row1, children: [
|
|
9512
|
+
/* @__PURE__ */ jsx107("span", { className: UsageHistoryMobile_default.serviceName, children: serviceName }),
|
|
9513
|
+
/* @__PURE__ */ jsx107("span", { className: UsageHistoryMobile_default.credits, children: credits })
|
|
8991
9514
|
] }),
|
|
8992
|
-
/* @__PURE__ */
|
|
8993
|
-
/* @__PURE__ */
|
|
8994
|
-
/* @__PURE__ */
|
|
8995
|
-
/* @__PURE__ */
|
|
8996
|
-
/* @__PURE__ */
|
|
9515
|
+
/* @__PURE__ */ jsxs94("div", { className: UsageHistoryMobile_default.row2, children: [
|
|
9516
|
+
/* @__PURE__ */ jsxs94("div", { className: UsageHistoryMobile_default.metaLeft, children: [
|
|
9517
|
+
/* @__PURE__ */ jsx107("span", { className: UsageHistoryMobile_default.metaText, children: userName }),
|
|
9518
|
+
/* @__PURE__ */ jsx107("div", { className: UsageHistoryMobile_default.divider }),
|
|
9519
|
+
/* @__PURE__ */ jsx107("span", { className: UsageHistoryMobile_default.metaText, children: date })
|
|
8997
9520
|
] }),
|
|
8998
|
-
/* @__PURE__ */
|
|
9521
|
+
/* @__PURE__ */ jsx107("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
8999
9522
|
] })
|
|
9000
9523
|
] });
|
|
9001
9524
|
};
|
|
@@ -9019,7 +9542,7 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
9019
9542
|
};
|
|
9020
9543
|
|
|
9021
9544
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
9022
|
-
import { jsx as
|
|
9545
|
+
import { jsx as jsx108, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
9023
9546
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
9024
9547
|
wsName = "Workspace name is kepler",
|
|
9025
9548
|
initials = "WS",
|
|
@@ -9032,14 +9555,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9032
9555
|
className,
|
|
9033
9556
|
...props
|
|
9034
9557
|
}) => {
|
|
9035
|
-
return /* @__PURE__ */
|
|
9558
|
+
return /* @__PURE__ */ jsx108(
|
|
9036
9559
|
"div",
|
|
9037
9560
|
{
|
|
9038
9561
|
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
9039
9562
|
onClick,
|
|
9040
9563
|
...props,
|
|
9041
|
-
children: /* @__PURE__ */
|
|
9042
|
-
/* @__PURE__ */
|
|
9564
|
+
children: /* @__PURE__ */ jsxs95("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
9565
|
+
/* @__PURE__ */ jsx108("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ jsx108(
|
|
9043
9566
|
ScDp,
|
|
9044
9567
|
{
|
|
9045
9568
|
type: imageUrl ? "image" : "initial",
|
|
@@ -9053,14 +9576,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9053
9576
|
}
|
|
9054
9577
|
}
|
|
9055
9578
|
) }),
|
|
9056
|
-
/* @__PURE__ */
|
|
9057
|
-
/* @__PURE__ */
|
|
9058
|
-
/* @__PURE__ */
|
|
9059
|
-
/* @__PURE__ */
|
|
9060
|
-
/* @__PURE__ */
|
|
9061
|
-
/* @__PURE__ */
|
|
9062
|
-
/* @__PURE__ */
|
|
9063
|
-
/* @__PURE__ */
|
|
9579
|
+
/* @__PURE__ */ jsxs95("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
9580
|
+
/* @__PURE__ */ jsx108("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
9581
|
+
/* @__PURE__ */ jsxs95("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
9582
|
+
/* @__PURE__ */ jsx108("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
9583
|
+
/* @__PURE__ */ jsx108("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9584
|
+
/* @__PURE__ */ jsx108("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
9585
|
+
/* @__PURE__ */ jsx108("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9586
|
+
/* @__PURE__ */ jsx108("span", { className: ScWorkspaceSwitchMobileV2_default.ownerText, children: ownerId })
|
|
9064
9587
|
] })
|
|
9065
9588
|
] })
|
|
9066
9589
|
] })
|
|
@@ -9069,7 +9592,7 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9069
9592
|
};
|
|
9070
9593
|
|
|
9071
9594
|
// src/SC-imageField/ScImageField.tsx
|
|
9072
|
-
import { useRef as
|
|
9595
|
+
import { useRef as useRef6 } from "react";
|
|
9073
9596
|
|
|
9074
9597
|
// src/SC-imageField/ScImageField.module.css
|
|
9075
9598
|
var ScImageField_default = {
|
|
@@ -9087,7 +9610,7 @@ var ScImageField_default = {
|
|
|
9087
9610
|
|
|
9088
9611
|
// src/SC-imageField/ScImageField.tsx
|
|
9089
9612
|
import { SiconUpload as SiconUpload2, SiconDelete as SiconDelete2 } from "@streamoid/icons";
|
|
9090
|
-
import { jsx as
|
|
9613
|
+
import { jsx as jsx109, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
9091
9614
|
var ScImageField = ({
|
|
9092
9615
|
label = "Label",
|
|
9093
9616
|
imagePreview,
|
|
@@ -9096,7 +9619,7 @@ var ScImageField = ({
|
|
|
9096
9619
|
onRemove,
|
|
9097
9620
|
className
|
|
9098
9621
|
}) => {
|
|
9099
|
-
const inputRef =
|
|
9622
|
+
const inputRef = useRef6(null);
|
|
9100
9623
|
const hasImage = !!imagePreview;
|
|
9101
9624
|
function handleClick() {
|
|
9102
9625
|
if (!hasImage) {
|
|
@@ -9110,8 +9633,8 @@ var ScImageField = ({
|
|
|
9110
9633
|
}
|
|
9111
9634
|
e.target.value = "";
|
|
9112
9635
|
}
|
|
9113
|
-
return /* @__PURE__ */
|
|
9114
|
-
/* @__PURE__ */
|
|
9636
|
+
return /* @__PURE__ */ jsxs96("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
9637
|
+
/* @__PURE__ */ jsx109(
|
|
9115
9638
|
"input",
|
|
9116
9639
|
{
|
|
9117
9640
|
ref: inputRef,
|
|
@@ -9121,9 +9644,9 @@ var ScImageField = ({
|
|
|
9121
9644
|
onChange: handleChange
|
|
9122
9645
|
}
|
|
9123
9646
|
),
|
|
9124
|
-
/* @__PURE__ */
|
|
9125
|
-
hasImage ? /* @__PURE__ */
|
|
9126
|
-
/* @__PURE__ */
|
|
9647
|
+
/* @__PURE__ */ jsx109("div", { className: ScImageField_default.labelContainer, children: /* @__PURE__ */ jsx109("div", { className: ScImageField_default.label, children: label }) }),
|
|
9648
|
+
hasImage ? /* @__PURE__ */ jsxs96("div", { className: ScImageField_default.previewArea, children: [
|
|
9649
|
+
/* @__PURE__ */ jsx109(
|
|
9127
9650
|
"img",
|
|
9128
9651
|
{
|
|
9129
9652
|
className: ScImageField_default.previewImage,
|
|
@@ -9131,8 +9654,8 @@ var ScImageField = ({
|
|
|
9131
9654
|
alt: "preview"
|
|
9132
9655
|
}
|
|
9133
9656
|
),
|
|
9134
|
-
/* @__PURE__ */
|
|
9135
|
-
/* @__PURE__ */
|
|
9657
|
+
/* @__PURE__ */ jsx109("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
9658
|
+
/* @__PURE__ */ jsx109(
|
|
9136
9659
|
SiconDelete2,
|
|
9137
9660
|
{
|
|
9138
9661
|
className: ScImageField_default.removeIcon,
|
|
@@ -9143,9 +9666,9 @@ var ScImageField = ({
|
|
|
9143
9666
|
}
|
|
9144
9667
|
}
|
|
9145
9668
|
)
|
|
9146
|
-
] }) : /* @__PURE__ */
|
|
9147
|
-
/* @__PURE__ */
|
|
9148
|
-
/* @__PURE__ */
|
|
9669
|
+
] }) : /* @__PURE__ */ jsxs96("div", { className: ScImageField_default.uploadArea, onClick: handleClick, children: [
|
|
9670
|
+
/* @__PURE__ */ jsx109(SiconUpload2, { className: ScImageField_default.uploadIcon, color: "var(--alias-text-and-icons-secondary, #dadada)" }),
|
|
9671
|
+
/* @__PURE__ */ jsx109("span", { className: ScImageField_default.uploadText, children: "Click to upload" })
|
|
9149
9672
|
] })
|
|
9150
9673
|
] });
|
|
9151
9674
|
};
|
|
@@ -9159,7 +9682,7 @@ var ScSettingsTabComp_default = {
|
|
|
9159
9682
|
};
|
|
9160
9683
|
|
|
9161
9684
|
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
9162
|
-
import { jsx as
|
|
9685
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9163
9686
|
var ScSettingsTabComp = ({
|
|
9164
9687
|
tabName = "Tab",
|
|
9165
9688
|
active = false,
|
|
@@ -9167,12 +9690,12 @@ var ScSettingsTabComp = ({
|
|
|
9167
9690
|
className
|
|
9168
9691
|
}) => {
|
|
9169
9692
|
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
9170
|
-
return /* @__PURE__ */
|
|
9693
|
+
return /* @__PURE__ */ jsx110(
|
|
9171
9694
|
"div",
|
|
9172
9695
|
{
|
|
9173
9696
|
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
9174
9697
|
onClick,
|
|
9175
|
-
children: /* @__PURE__ */
|
|
9698
|
+
children: /* @__PURE__ */ jsx110("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
9176
9699
|
}
|
|
9177
9700
|
);
|
|
9178
9701
|
};
|
|
@@ -9192,7 +9715,7 @@ var ScCreditsUsageCardMobile_default = {
|
|
|
9192
9715
|
|
|
9193
9716
|
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
9194
9717
|
import { SiconCredits as SiconCredits2 } from "@streamoid/icons";
|
|
9195
|
-
import { jsx as
|
|
9718
|
+
import { jsx as jsx111, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
9196
9719
|
var ScCreditsUsageCardMobile = ({
|
|
9197
9720
|
usageLabel = "Credits usage",
|
|
9198
9721
|
usageText = "8,450 / 30,000",
|
|
@@ -9202,23 +9725,23 @@ var ScCreditsUsageCardMobile = ({
|
|
|
9202
9725
|
className,
|
|
9203
9726
|
...props
|
|
9204
9727
|
}) => {
|
|
9205
|
-
return /* @__PURE__ */
|
|
9206
|
-
/* @__PURE__ */
|
|
9207
|
-
/* @__PURE__ */
|
|
9728
|
+
return /* @__PURE__ */ jsxs97("div", { className: ScCreditsUsageCardMobile_default.scCreditsUsageCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9729
|
+
/* @__PURE__ */ jsxs97("div", { className: ScCreditsUsageCardMobile_default.header, children: [
|
|
9730
|
+
/* @__PURE__ */ jsx111(
|
|
9208
9731
|
SiconCredits2,
|
|
9209
9732
|
{
|
|
9210
9733
|
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
9211
9734
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
9212
9735
|
}
|
|
9213
9736
|
),
|
|
9214
|
-
/* @__PURE__ */
|
|
9737
|
+
/* @__PURE__ */ jsx111("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
9215
9738
|
] }),
|
|
9216
|
-
/* @__PURE__ */
|
|
9217
|
-
/* @__PURE__ */
|
|
9218
|
-
/* @__PURE__ */
|
|
9219
|
-
/* @__PURE__ */
|
|
9739
|
+
/* @__PURE__ */ jsx111("div", { className: ScCreditsUsageCardMobile_default.divider }),
|
|
9740
|
+
/* @__PURE__ */ jsxs97("div", { className: ScCreditsUsageCardMobile_default.usageInfo, children: [
|
|
9741
|
+
/* @__PURE__ */ jsx111("div", { className: ScCreditsUsageCardMobile_default.usageText, children: usageText }),
|
|
9742
|
+
/* @__PURE__ */ jsx111("div", { className: ScCreditsUsageCardMobile_default.remainingText, children: remainingText })
|
|
9220
9743
|
] }),
|
|
9221
|
-
/* @__PURE__ */
|
|
9744
|
+
/* @__PURE__ */ jsx111(
|
|
9222
9745
|
ScButton,
|
|
9223
9746
|
{
|
|
9224
9747
|
text: buyButtonText,
|
|
@@ -9260,7 +9783,7 @@ var ScPlanDetailsCardMobile_default = {
|
|
|
9260
9783
|
|
|
9261
9784
|
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
9262
9785
|
import { SiconBilling as SiconBilling4 } from "@streamoid/icons";
|
|
9263
|
-
import { Fragment as Fragment24, jsx as
|
|
9786
|
+
import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
9264
9787
|
var ScPlanDetailsCardMobile = ({
|
|
9265
9788
|
planName = "Pro",
|
|
9266
9789
|
planCredits = "30,000 credits",
|
|
@@ -9274,20 +9797,20 @@ var ScPlanDetailsCardMobile = ({
|
|
|
9274
9797
|
className,
|
|
9275
9798
|
...props
|
|
9276
9799
|
}) => {
|
|
9277
|
-
return /* @__PURE__ */
|
|
9278
|
-
/* @__PURE__ */
|
|
9279
|
-
/* @__PURE__ */
|
|
9280
|
-
/* @__PURE__ */
|
|
9800
|
+
return /* @__PURE__ */ jsxs98("div", { className: ScPlanDetailsCardMobile_default.scPlanDetailsCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9801
|
+
/* @__PURE__ */ jsxs98("div", { className: ScPlanDetailsCardMobile_default.planHeader, children: [
|
|
9802
|
+
/* @__PURE__ */ jsxs98("div", { className: ScPlanDetailsCardMobile_default.headerLeft, children: [
|
|
9803
|
+
/* @__PURE__ */ jsx112(
|
|
9281
9804
|
SiconBilling4,
|
|
9282
9805
|
{
|
|
9283
9806
|
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
9284
9807
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
9285
9808
|
}
|
|
9286
9809
|
),
|
|
9287
|
-
/* @__PURE__ */
|
|
9810
|
+
/* @__PURE__ */ jsx112("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
9288
9811
|
] }),
|
|
9289
|
-
/* @__PURE__ */
|
|
9290
|
-
/* @__PURE__ */
|
|
9812
|
+
/* @__PURE__ */ jsx112("div", { className: ScPlanDetailsCardMobile_default.badgeGroup, children: isLoading ? /* @__PURE__ */ jsx112("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.badgeSkeleton}` }) : /* @__PURE__ */ jsxs98(Fragment24, { children: [
|
|
9813
|
+
/* @__PURE__ */ jsx112(
|
|
9291
9814
|
ScBadges,
|
|
9292
9815
|
{
|
|
9293
9816
|
text: badgeText,
|
|
@@ -9296,28 +9819,28 @@ var ScPlanDetailsCardMobile = ({
|
|
|
9296
9819
|
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
9297
9820
|
}
|
|
9298
9821
|
),
|
|
9299
|
-
badgeSubText && /* @__PURE__ */
|
|
9300
|
-
/* @__PURE__ */
|
|
9301
|
-
/* @__PURE__ */
|
|
9822
|
+
badgeSubText && /* @__PURE__ */ jsxs98(Fragment24, { children: [
|
|
9823
|
+
/* @__PURE__ */ jsx112("span", { className: ScPlanDetailsCardMobile_default.badgeDot }),
|
|
9824
|
+
/* @__PURE__ */ jsx112("span", { className: ScPlanDetailsCardMobile_default.badgeSubText, children: badgeSubText })
|
|
9302
9825
|
] })
|
|
9303
9826
|
] }) })
|
|
9304
9827
|
] }),
|
|
9305
|
-
/* @__PURE__ */
|
|
9306
|
-
/* @__PURE__ */
|
|
9307
|
-
/* @__PURE__ */
|
|
9308
|
-
/* @__PURE__ */
|
|
9309
|
-
/* @__PURE__ */
|
|
9828
|
+
/* @__PURE__ */ jsx112("div", { className: ScPlanDetailsCardMobile_default.divider }),
|
|
9829
|
+
/* @__PURE__ */ jsx112("div", { className: ScPlanDetailsCardMobile_default.planInfo, children: isLoading ? /* @__PURE__ */ jsxs98(Fragment24, { children: [
|
|
9830
|
+
/* @__PURE__ */ jsxs98("div", { className: ScPlanDetailsCardMobile_default.planNameRow, "aria-label": "Loading plan details", children: [
|
|
9831
|
+
/* @__PURE__ */ jsx112("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.planNameSkeleton}` }),
|
|
9832
|
+
/* @__PURE__ */ jsx112("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.creditsSkeleton}` })
|
|
9310
9833
|
] }),
|
|
9311
|
-
/* @__PURE__ */
|
|
9312
|
-
] }) : /* @__PURE__ */
|
|
9313
|
-
/* @__PURE__ */
|
|
9314
|
-
/* @__PURE__ */
|
|
9315
|
-
/* @__PURE__ */
|
|
9316
|
-
/* @__PURE__ */
|
|
9834
|
+
/* @__PURE__ */ jsx112("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.priceSkeleton}` })
|
|
9835
|
+
] }) : /* @__PURE__ */ jsxs98(Fragment24, { children: [
|
|
9836
|
+
/* @__PURE__ */ jsxs98("div", { className: ScPlanDetailsCardMobile_default.planNameRow, children: [
|
|
9837
|
+
/* @__PURE__ */ jsx112("span", { className: ScPlanDetailsCardMobile_default.planName, children: planName }),
|
|
9838
|
+
/* @__PURE__ */ jsx112("div", { className: ScPlanDetailsCardMobile_default.dot }),
|
|
9839
|
+
/* @__PURE__ */ jsx112("span", { className: ScPlanDetailsCardMobile_default.planName, children: planCredits })
|
|
9317
9840
|
] }),
|
|
9318
|
-
/* @__PURE__ */
|
|
9841
|
+
/* @__PURE__ */ jsx112("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
9319
9842
|
] }) }),
|
|
9320
|
-
isLoading ? /* @__PURE__ */
|
|
9843
|
+
isLoading ? /* @__PURE__ */ jsx112("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.buttonSkeleton}` }) : /* @__PURE__ */ jsx112(
|
|
9321
9844
|
ScButton,
|
|
9322
9845
|
{
|
|
9323
9846
|
text: upgradeButtonText,
|
|
@@ -9348,6 +9871,7 @@ export {
|
|
|
9348
9871
|
ScArtifaxInvite,
|
|
9349
9872
|
ScArtifaxSidebar,
|
|
9350
9873
|
ScBadges,
|
|
9874
|
+
ScBeacon,
|
|
9351
9875
|
ScBillingHistoryHeader,
|
|
9352
9876
|
ScBillingHistoryTableList,
|
|
9353
9877
|
ScBillingLogsTableHeader,
|
|
@@ -9358,6 +9882,8 @@ export {
|
|
|
9358
9882
|
ScCalendarDateComps,
|
|
9359
9883
|
ScCatalogixInvite,
|
|
9360
9884
|
ScCatalogixSidebar,
|
|
9885
|
+
ScCatalogixStoreHeader,
|
|
9886
|
+
ScCatalogixStoreTableList,
|
|
9361
9887
|
ScCheckField,
|
|
9362
9888
|
ScCheckbox,
|
|
9363
9889
|
ScCreditsUsageCard,
|
|
@@ -9373,6 +9899,7 @@ export {
|
|
|
9373
9899
|
ScImageField,
|
|
9374
9900
|
ScInChatList,
|
|
9375
9901
|
ScInChatMessage,
|
|
9902
|
+
ScInfoPopup,
|
|
9376
9903
|
ScIntialProfileCover,
|
|
9377
9904
|
ScLogoUnit,
|
|
9378
9905
|
ScMediaApproval,
|
|
@@ -9380,8 +9907,10 @@ export {
|
|
|
9380
9907
|
ScMenuOptions,
|
|
9381
9908
|
ScMobileBottomAction,
|
|
9382
9909
|
ScMobileTopNav,
|
|
9910
|
+
ScModal,
|
|
9383
9911
|
ScOnlyField,
|
|
9384
9912
|
ScOnlyIcon,
|
|
9913
|
+
ScPagination,
|
|
9385
9914
|
ScPairtext,
|
|
9386
9915
|
ScPendingAction,
|
|
9387
9916
|
ScPhtogenixInvite,
|
|
@@ -9415,6 +9944,7 @@ export {
|
|
|
9415
9944
|
ScSidebarProfile,
|
|
9416
9945
|
ScSidebarSwitchMenu,
|
|
9417
9946
|
ScSlider,
|
|
9947
|
+
ScStoreCard,
|
|
9418
9948
|
ScStrLogo,
|
|
9419
9949
|
ScStreamoidMascot,
|
|
9420
9950
|
ScStreamoidWordmark,
|