@streamoid/ui 0.6.12 → 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 +125 -0
- package/dist/index.d.mts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +726 -375
- package/dist/index.mjs +717 -366
- 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,263 @@ 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
|
+
|
|
7120
7468
|
// src/SC-Beacon/ScBeacon.module.css
|
|
7121
7469
|
var ScBeacon_default = {
|
|
7122
7470
|
scBeacon: "ScBeacon_scBeacon",
|
|
@@ -7127,19 +7475,19 @@ var ScBeacon_default = {
|
|
|
7127
7475
|
};
|
|
7128
7476
|
|
|
7129
7477
|
// src/SC-Beacon/ScBeacon.tsx
|
|
7130
|
-
import { jsx as
|
|
7478
|
+
import { jsx as jsx81, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7131
7479
|
var ScBeacon = ({
|
|
7132
7480
|
tone = "neutral",
|
|
7133
7481
|
className,
|
|
7134
7482
|
...props
|
|
7135
7483
|
}) => {
|
|
7136
|
-
return /* @__PURE__ */
|
|
7484
|
+
return /* @__PURE__ */ jsx81(
|
|
7137
7485
|
"span",
|
|
7138
7486
|
{
|
|
7139
7487
|
className: ScBeacon_default.scBeacon + " " + ScBeacon_default[tone] + (className ? " " + className : ""),
|
|
7140
7488
|
"aria-hidden": "true",
|
|
7141
7489
|
...props,
|
|
7142
|
-
children: /* @__PURE__ */
|
|
7490
|
+
children: /* @__PURE__ */ jsxs71(
|
|
7143
7491
|
"svg",
|
|
7144
7492
|
{
|
|
7145
7493
|
viewBox: "0 0 20 20",
|
|
@@ -7148,8 +7496,8 @@ var ScBeacon = ({
|
|
|
7148
7496
|
fill: "none",
|
|
7149
7497
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7150
7498
|
children: [
|
|
7151
|
-
/* @__PURE__ */
|
|
7152
|
-
/* @__PURE__ */
|
|
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" })
|
|
7153
7501
|
]
|
|
7154
7502
|
}
|
|
7155
7503
|
)
|
|
@@ -7169,7 +7517,7 @@ var ScStoreCard_default = {
|
|
|
7169
7517
|
};
|
|
7170
7518
|
|
|
7171
7519
|
// src/SC-StoreCard/ScStoreCard.tsx
|
|
7172
|
-
import { jsx as
|
|
7520
|
+
import { jsx as jsx82, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7173
7521
|
var ScStoreCard = ({
|
|
7174
7522
|
storeName = "Store Name",
|
|
7175
7523
|
noOfProducts = "1490 Products",
|
|
@@ -7178,18 +7526,18 @@ var ScStoreCard = ({
|
|
|
7178
7526
|
className,
|
|
7179
7527
|
...props
|
|
7180
7528
|
}) => {
|
|
7181
|
-
return /* @__PURE__ */
|
|
7529
|
+
return /* @__PURE__ */ jsxs72(
|
|
7182
7530
|
"div",
|
|
7183
7531
|
{
|
|
7184
7532
|
className: ScStoreCard_default.scStoreCard + (className ? " " + className : ""),
|
|
7185
7533
|
...props,
|
|
7186
7534
|
children: [
|
|
7187
|
-
/* @__PURE__ */
|
|
7188
|
-
/* @__PURE__ */
|
|
7189
|
-
/* @__PURE__ */
|
|
7190
|
-
/* @__PURE__ */
|
|
7191
|
-
/* @__PURE__ */
|
|
7192
|
-
/* @__PURE__ */
|
|
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 })
|
|
7193
7541
|
] })
|
|
7194
7542
|
]
|
|
7195
7543
|
}
|
|
@@ -7208,7 +7556,7 @@ var ScCatalogixStoreHeader_default = {
|
|
|
7208
7556
|
};
|
|
7209
7557
|
|
|
7210
7558
|
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.tsx
|
|
7211
|
-
import { jsx as
|
|
7559
|
+
import { jsx as jsx83, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
7212
7560
|
var ScCatalogixStoreHeader = ({
|
|
7213
7561
|
storeNameLabel = "Store name",
|
|
7214
7562
|
statusLabel = "Status",
|
|
@@ -7221,18 +7569,18 @@ var ScCatalogixStoreHeader = ({
|
|
|
7221
7569
|
className,
|
|
7222
7570
|
...props
|
|
7223
7571
|
}) => {
|
|
7224
|
-
return /* @__PURE__ */
|
|
7572
|
+
return /* @__PURE__ */ jsxs73(
|
|
7225
7573
|
"div",
|
|
7226
7574
|
{
|
|
7227
7575
|
className: ScCatalogixStoreHeader_default.scCatalogixStoreHeader + (className ? " " + className : ""),
|
|
7228
7576
|
...props,
|
|
7229
7577
|
children: [
|
|
7230
|
-
/* @__PURE__ */
|
|
7231
|
-
/* @__PURE__ */
|
|
7232
|
-
/* @__PURE__ */
|
|
7233
|
-
showAssets && /* @__PURE__ */
|
|
7234
|
-
/* @__PURE__ */
|
|
7235
|
-
showCreatedBy && /* @__PURE__ */
|
|
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 })
|
|
7236
7584
|
]
|
|
7237
7585
|
}
|
|
7238
7586
|
);
|
|
@@ -7254,7 +7602,7 @@ var ScCatalogixStoreTableList_default = {
|
|
|
7254
7602
|
};
|
|
7255
7603
|
|
|
7256
7604
|
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.tsx
|
|
7257
|
-
import { jsx as
|
|
7605
|
+
import { jsx as jsx84, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
7258
7606
|
var STATUS_TONE_CLASS = {
|
|
7259
7607
|
success: "statusSuccess",
|
|
7260
7608
|
warning: "statusWarning",
|
|
@@ -7275,18 +7623,18 @@ var ScCatalogixStoreTableList = ({
|
|
|
7275
7623
|
...props
|
|
7276
7624
|
}) => {
|
|
7277
7625
|
const toneClass = ScCatalogixStoreTableList_default[STATUS_TONE_CLASS[statusTone] || "statusNeutral"];
|
|
7278
|
-
return /* @__PURE__ */
|
|
7626
|
+
return /* @__PURE__ */ jsxs74(
|
|
7279
7627
|
"div",
|
|
7280
7628
|
{
|
|
7281
7629
|
className: ScCatalogixStoreTableList_default.scCatalogixStoreTableList + (className ? " " + className : ""),
|
|
7282
7630
|
...props,
|
|
7283
7631
|
children: [
|
|
7284
|
-
/* @__PURE__ */
|
|
7285
|
-
/* @__PURE__ */
|
|
7286
|
-
/* @__PURE__ */
|
|
7287
|
-
showAssets && /* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7289
|
-
showCreatedBy && /* @__PURE__ */
|
|
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 })
|
|
7290
7638
|
]
|
|
7291
7639
|
}
|
|
7292
7640
|
);
|
|
@@ -7306,7 +7654,7 @@ var ScThinkingStepIcon_default = {
|
|
|
7306
7654
|
};
|
|
7307
7655
|
|
|
7308
7656
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.tsx
|
|
7309
|
-
import { jsx as
|
|
7657
|
+
import { jsx as jsx85, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7310
7658
|
var ScThinkingStepIcon = ({
|
|
7311
7659
|
state = "default",
|
|
7312
7660
|
size = 12,
|
|
@@ -7315,13 +7663,13 @@ var ScThinkingStepIcon = ({
|
|
|
7315
7663
|
...props
|
|
7316
7664
|
}) => {
|
|
7317
7665
|
const variantsClassName = ScThinkingStepIcon_default["state-" + state];
|
|
7318
|
-
return /* @__PURE__ */
|
|
7666
|
+
return /* @__PURE__ */ jsx85(
|
|
7319
7667
|
"span",
|
|
7320
7668
|
{
|
|
7321
7669
|
className: ScThinkingStepIcon_default.scThinkingStepIcon + " " + (className ?? "") + " " + variantsClassName,
|
|
7322
7670
|
style: { width: size, height: size, ...style },
|
|
7323
7671
|
...props,
|
|
7324
|
-
children: /* @__PURE__ */
|
|
7672
|
+
children: /* @__PURE__ */ jsxs75(
|
|
7325
7673
|
"svg",
|
|
7326
7674
|
{
|
|
7327
7675
|
className: ScThinkingStepIcon_default.glyph,
|
|
@@ -7332,7 +7680,7 @@ var ScThinkingStepIcon = ({
|
|
|
7332
7680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7333
7681
|
"aria-hidden": "true",
|
|
7334
7682
|
children: [
|
|
7335
|
-
state === "default" && /* @__PURE__ */
|
|
7683
|
+
state === "default" && /* @__PURE__ */ jsx85(
|
|
7336
7684
|
"circle",
|
|
7337
7685
|
{
|
|
7338
7686
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7343,7 +7691,7 @@ var ScThinkingStepIcon = ({
|
|
|
7343
7691
|
strokeLinecap: "round"
|
|
7344
7692
|
}
|
|
7345
7693
|
),
|
|
7346
|
-
state === "working" && /* @__PURE__ */
|
|
7694
|
+
state === "working" && /* @__PURE__ */ jsx85(
|
|
7347
7695
|
"path",
|
|
7348
7696
|
{
|
|
7349
7697
|
className: ScThinkingStepIcon_default.stroke + " " + ScThinkingStepIcon_default.spinner,
|
|
@@ -7353,7 +7701,7 @@ var ScThinkingStepIcon = ({
|
|
|
7353
7701
|
strokeLinejoin: "round"
|
|
7354
7702
|
}
|
|
7355
7703
|
),
|
|
7356
|
-
state === "completed" && /* @__PURE__ */
|
|
7704
|
+
state === "completed" && /* @__PURE__ */ jsx85(
|
|
7357
7705
|
"path",
|
|
7358
7706
|
{
|
|
7359
7707
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7363,7 +7711,7 @@ var ScThinkingStepIcon = ({
|
|
|
7363
7711
|
strokeLinejoin: "round"
|
|
7364
7712
|
}
|
|
7365
7713
|
),
|
|
7366
|
-
state === "error" && /* @__PURE__ */
|
|
7714
|
+
state === "error" && /* @__PURE__ */ jsx85(
|
|
7367
7715
|
"path",
|
|
7368
7716
|
{
|
|
7369
7717
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7403,7 +7751,7 @@ var ScInChatList_default = {
|
|
|
7403
7751
|
|
|
7404
7752
|
// src/SC-InChatList/ScInChatList.tsx
|
|
7405
7753
|
import { SiconUp as SiconUp2, SiconDown as SiconDown2, SiconDot as SiconDot2 } from "@streamoid/icons";
|
|
7406
|
-
import { jsx as
|
|
7754
|
+
import { jsx as jsx86, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7407
7755
|
var ScInChatList = ({
|
|
7408
7756
|
title = "Infrastructure that helps modern brands scale",
|
|
7409
7757
|
description = "Description",
|
|
@@ -7420,33 +7768,33 @@ var ScInChatList = ({
|
|
|
7420
7768
|
}) => {
|
|
7421
7769
|
const isExpandable = descriptionVisibility === "hidden" || descriptionVisibility === "visible";
|
|
7422
7770
|
const isExpanded = descriptionVisibility === "visible";
|
|
7423
|
-
return /* @__PURE__ */
|
|
7771
|
+
return /* @__PURE__ */ jsxs76(
|
|
7424
7772
|
"div",
|
|
7425
7773
|
{
|
|
7426
7774
|
className: ScInChatList_default.scInChatList + (className ? " " + className : ""),
|
|
7427
7775
|
style,
|
|
7428
7776
|
children: [
|
|
7429
|
-
leadingIndicator && /* @__PURE__ */
|
|
7430
|
-
/* @__PURE__ */
|
|
7431
|
-
/* @__PURE__ */
|
|
7432
|
-
showSteps && /* @__PURE__ */
|
|
7433
|
-
/* @__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(
|
|
7434
7782
|
"div",
|
|
7435
7783
|
{
|
|
7436
7784
|
className: ScInChatList_default.titleRow + " " + (isExpandable ? ScInChatList_default.titleRowClickable : ScInChatList_default.titleRowStatic),
|
|
7437
7785
|
onClick: isExpandable ? onToggle : void 0,
|
|
7438
7786
|
children: [
|
|
7439
|
-
/* @__PURE__ */
|
|
7440
|
-
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 }) })
|
|
7441
7789
|
]
|
|
7442
7790
|
}
|
|
7443
7791
|
),
|
|
7444
|
-
isExpanded && /* @__PURE__ */
|
|
7445
|
-
/* @__PURE__ */
|
|
7446
|
-
/* @__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 })
|
|
7447
7795
|
] })
|
|
7448
7796
|
] }),
|
|
7449
|
-
showTool && /* @__PURE__ */
|
|
7797
|
+
showTool && /* @__PURE__ */ jsx86("div", { className: ScInChatList_default.toolPill, children: /* @__PURE__ */ jsx86("p", { className: ScInChatList_default.toolText, children: toolUsing }) })
|
|
7450
7798
|
] })
|
|
7451
7799
|
]
|
|
7452
7800
|
}
|
|
@@ -7460,7 +7808,7 @@ var ScSubAgent_default = {
|
|
|
7460
7808
|
};
|
|
7461
7809
|
|
|
7462
7810
|
// src/SC-SubAgent/ScSubAgent.tsx
|
|
7463
|
-
import { jsx as
|
|
7811
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
7464
7812
|
function formatSubAgentLabel(agentName) {
|
|
7465
7813
|
const normalized = (agentName ?? "").trim();
|
|
7466
7814
|
if (!normalized) return "Using sub-agent...";
|
|
@@ -7473,12 +7821,12 @@ var ScSubAgent = ({
|
|
|
7473
7821
|
...props
|
|
7474
7822
|
}) => {
|
|
7475
7823
|
const label = text ?? formatSubAgentLabel(agentName);
|
|
7476
|
-
return /* @__PURE__ */
|
|
7824
|
+
return /* @__PURE__ */ jsx87(
|
|
7477
7825
|
"div",
|
|
7478
7826
|
{
|
|
7479
7827
|
className: [ScSubAgent_default.scSubAgent, className].filter(Boolean).join(" "),
|
|
7480
7828
|
...props,
|
|
7481
|
-
children: /* @__PURE__ */
|
|
7829
|
+
children: /* @__PURE__ */ jsx87("p", { className: ScSubAgent_default.label, children: label })
|
|
7482
7830
|
}
|
|
7483
7831
|
);
|
|
7484
7832
|
};
|
|
@@ -7492,7 +7840,7 @@ var ScInChatMessage_default = {
|
|
|
7492
7840
|
};
|
|
7493
7841
|
|
|
7494
7842
|
// src/SC-InChatMessage/ScInChatMessage.tsx
|
|
7495
|
-
import { jsx as
|
|
7843
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
7496
7844
|
var ScInChatMessage = ({
|
|
7497
7845
|
type = "input",
|
|
7498
7846
|
text,
|
|
@@ -7502,13 +7850,13 @@ var ScInChatMessage = ({
|
|
|
7502
7850
|
...props
|
|
7503
7851
|
}) => {
|
|
7504
7852
|
const variantsClassName = ScInChatMessage_default["type-" + type];
|
|
7505
|
-
return /* @__PURE__ */
|
|
7853
|
+
return /* @__PURE__ */ jsx88(
|
|
7506
7854
|
"div",
|
|
7507
7855
|
{
|
|
7508
7856
|
className: [ScInChatMessage_default.scInChatMessage, variantsClassName, className].filter(Boolean).join(" "),
|
|
7509
7857
|
id,
|
|
7510
7858
|
...props,
|
|
7511
|
-
children: /* @__PURE__ */
|
|
7859
|
+
children: /* @__PURE__ */ jsx88("p", { className: ScInChatMessage_default.text, children: children ?? text })
|
|
7512
7860
|
}
|
|
7513
7861
|
);
|
|
7514
7862
|
};
|
|
@@ -7525,7 +7873,7 @@ var ScSelection_default = {
|
|
|
7525
7873
|
};
|
|
7526
7874
|
|
|
7527
7875
|
// src/SC-Selection/ScSelection.tsx
|
|
7528
|
-
import { jsx as
|
|
7876
|
+
import { jsx as jsx89, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7529
7877
|
var ScSelection = ({
|
|
7530
7878
|
title = "Title",
|
|
7531
7879
|
description = "Description",
|
|
@@ -7541,23 +7889,23 @@ var ScSelection = ({
|
|
|
7541
7889
|
onClick?.(event);
|
|
7542
7890
|
onSelect?.(value);
|
|
7543
7891
|
};
|
|
7544
|
-
return /* @__PURE__ */
|
|
7892
|
+
return /* @__PURE__ */ jsxs77(
|
|
7545
7893
|
"div",
|
|
7546
7894
|
{
|
|
7547
7895
|
className: [ScSelection_default.scSelection, variantsClassName, className].filter(Boolean).join(" "),
|
|
7548
7896
|
onClick: handleClick,
|
|
7549
7897
|
...props,
|
|
7550
7898
|
children: [
|
|
7551
|
-
/* @__PURE__ */
|
|
7899
|
+
/* @__PURE__ */ jsx89(
|
|
7552
7900
|
ScRadio,
|
|
7553
7901
|
{
|
|
7554
7902
|
state: active ? "selected" : "default",
|
|
7555
7903
|
className: ScSelection_default.scRadioInstance
|
|
7556
7904
|
}
|
|
7557
7905
|
),
|
|
7558
|
-
/* @__PURE__ */
|
|
7559
|
-
/* @__PURE__ */
|
|
7560
|
-
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 })
|
|
7561
7909
|
] })
|
|
7562
7910
|
]
|
|
7563
7911
|
}
|
|
@@ -7584,7 +7932,7 @@ var ScSelectionList_default = {
|
|
|
7584
7932
|
};
|
|
7585
7933
|
|
|
7586
7934
|
// src/SC-SelectionList/ScSelectionList.tsx
|
|
7587
|
-
import { jsx as
|
|
7935
|
+
import { jsx as jsx90, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7588
7936
|
var ScSelectionList = ({
|
|
7589
7937
|
state = "default",
|
|
7590
7938
|
label = "Suggested Colours: ",
|
|
@@ -7607,14 +7955,14 @@ var ScSelectionList = ({
|
|
|
7607
7955
|
onChange?.(next);
|
|
7608
7956
|
if (next === "rejected") onReject?.();
|
|
7609
7957
|
};
|
|
7610
|
-
return /* @__PURE__ */
|
|
7958
|
+
return /* @__PURE__ */ jsxs78(
|
|
7611
7959
|
"div",
|
|
7612
7960
|
{
|
|
7613
7961
|
className: ScSelectionList_default.scSelectionList + (disabled ? " " + ScSelectionList_default.disabled : "") + (className ? " " + className : "") + " " + variantsClassName,
|
|
7614
7962
|
...props,
|
|
7615
7963
|
children: [
|
|
7616
|
-
/* @__PURE__ */
|
|
7617
|
-
/* @__PURE__ */
|
|
7964
|
+
/* @__PURE__ */ jsxs78("div", { className: ScSelectionList_default.toggles, children: [
|
|
7965
|
+
/* @__PURE__ */ jsx90(
|
|
7618
7966
|
"button",
|
|
7619
7967
|
{
|
|
7620
7968
|
type: "button",
|
|
@@ -7623,7 +7971,7 @@ var ScSelectionList = ({
|
|
|
7623
7971
|
disabled,
|
|
7624
7972
|
"aria-pressed": state === "approved",
|
|
7625
7973
|
"aria-label": state === "approved" ? "Revoke approval" : "Approve",
|
|
7626
|
-
children: /* @__PURE__ */
|
|
7974
|
+
children: /* @__PURE__ */ jsx90(
|
|
7627
7975
|
"svg",
|
|
7628
7976
|
{
|
|
7629
7977
|
className: ScSelectionList_default.checkIcon,
|
|
@@ -7632,7 +7980,7 @@ var ScSelectionList = ({
|
|
|
7632
7980
|
viewBox: "0 0 8 6",
|
|
7633
7981
|
fill: "none",
|
|
7634
7982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7635
|
-
children: /* @__PURE__ */
|
|
7983
|
+
children: /* @__PURE__ */ jsx90(
|
|
7636
7984
|
"path",
|
|
7637
7985
|
{
|
|
7638
7986
|
d: "M0.5 3.5L2.5 5.5L7.5 0.5",
|
|
@@ -7645,7 +7993,7 @@ var ScSelectionList = ({
|
|
|
7645
7993
|
)
|
|
7646
7994
|
}
|
|
7647
7995
|
),
|
|
7648
|
-
/* @__PURE__ */
|
|
7996
|
+
/* @__PURE__ */ jsx90(
|
|
7649
7997
|
"button",
|
|
7650
7998
|
{
|
|
7651
7999
|
type: "button",
|
|
@@ -7654,7 +8002,7 @@ var ScSelectionList = ({
|
|
|
7654
8002
|
disabled,
|
|
7655
8003
|
"aria-pressed": state === "rejected",
|
|
7656
8004
|
"aria-label": state === "rejected" ? "Revoke rejection" : "Reject",
|
|
7657
|
-
children: /* @__PURE__ */
|
|
8005
|
+
children: /* @__PURE__ */ jsx90(
|
|
7658
8006
|
"svg",
|
|
7659
8007
|
{
|
|
7660
8008
|
className: ScSelectionList_default.closeIcon,
|
|
@@ -7663,7 +8011,7 @@ var ScSelectionList = ({
|
|
|
7663
8011
|
viewBox: "0 0 6.24261 6.24262",
|
|
7664
8012
|
fill: "none",
|
|
7665
8013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7666
|
-
children: /* @__PURE__ */
|
|
8014
|
+
children: /* @__PURE__ */ jsx90(
|
|
7667
8015
|
"path",
|
|
7668
8016
|
{
|
|
7669
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",
|
|
@@ -7677,9 +8025,9 @@ var ScSelectionList = ({
|
|
|
7677
8025
|
}
|
|
7678
8026
|
)
|
|
7679
8027
|
] }),
|
|
7680
|
-
/* @__PURE__ */
|
|
7681
|
-
/* @__PURE__ */
|
|
7682
|
-
/* @__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 }) })
|
|
7683
8031
|
] }) })
|
|
7684
8032
|
]
|
|
7685
8033
|
}
|
|
@@ -7687,7 +8035,7 @@ var ScSelectionList = ({
|
|
|
7687
8035
|
};
|
|
7688
8036
|
|
|
7689
8037
|
// src/SC-textArea/ScTextArea.tsx
|
|
7690
|
-
import { useState as
|
|
8038
|
+
import { useState as useState12 } from "react";
|
|
7691
8039
|
|
|
7692
8040
|
// src/SC-textArea/ScTextArea.module.css
|
|
7693
8041
|
var ScTextArea_default = {
|
|
@@ -7706,7 +8054,7 @@ var ScTextArea_default = {
|
|
|
7706
8054
|
};
|
|
7707
8055
|
|
|
7708
8056
|
// src/SC-textArea/ScTextArea.tsx
|
|
7709
|
-
import { jsx as
|
|
8057
|
+
import { jsx as jsx91, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7710
8058
|
var ScTextArea = ({
|
|
7711
8059
|
state,
|
|
7712
8060
|
labelGroup = "",
|
|
@@ -7717,27 +8065,27 @@ var ScTextArea = ({
|
|
|
7717
8065
|
style,
|
|
7718
8066
|
...props
|
|
7719
8067
|
}) => {
|
|
7720
|
-
const [focused, setFocused] =
|
|
8068
|
+
const [focused, setFocused] = useState12(false);
|
|
7721
8069
|
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
7722
8070
|
const stateClass = ScTextArea_default["state-" + derivedState];
|
|
7723
8071
|
const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
|
|
7724
|
-
return /* @__PURE__ */
|
|
8072
|
+
return /* @__PURE__ */ jsxs79(
|
|
7725
8073
|
"div",
|
|
7726
8074
|
{
|
|
7727
8075
|
className: [ScTextArea_default.scTextArea, stateClass, labelGroupClass, className].filter(Boolean).join(" "),
|
|
7728
8076
|
style,
|
|
7729
8077
|
children: [
|
|
7730
|
-
labelGroup && /* @__PURE__ */
|
|
7731
|
-
/* @__PURE__ */
|
|
8078
|
+
labelGroup && /* @__PURE__ */ jsxs79("div", { className: ScTextArea_default.labelContainer, children: [
|
|
8079
|
+
/* @__PURE__ */ jsxs79("div", { className: ScTextArea_default.label, children: [
|
|
7732
8080
|
label,
|
|
7733
8081
|
" "
|
|
7734
8082
|
] }),
|
|
7735
|
-
labelGroup === "text" && /* @__PURE__ */
|
|
8083
|
+
labelGroup === "text" && /* @__PURE__ */ jsxs79("div", { className: ScTextArea_default.info, children: [
|
|
7736
8084
|
info,
|
|
7737
8085
|
" "
|
|
7738
8086
|
] })
|
|
7739
8087
|
] }),
|
|
7740
|
-
/* @__PURE__ */
|
|
8088
|
+
/* @__PURE__ */ jsx91("div", { className: ScTextArea_default.inputContainer, children: /* @__PURE__ */ jsx91(
|
|
7741
8089
|
"textarea",
|
|
7742
8090
|
{
|
|
7743
8091
|
className: ScTextArea_default.inputText,
|
|
@@ -7759,7 +8107,7 @@ var ScTextArea = ({
|
|
|
7759
8107
|
};
|
|
7760
8108
|
|
|
7761
8109
|
// src/SC-select/ScSelect.tsx
|
|
7762
|
-
import { useState as
|
|
8110
|
+
import { useState as useState13, useRef as useRef4, useEffect as useEffect5 } from "react";
|
|
7763
8111
|
|
|
7764
8112
|
// src/SC-select/ScSelect.module.css
|
|
7765
8113
|
var ScSelect_default = {
|
|
@@ -7784,7 +8132,7 @@ var ScSelect_default = {
|
|
|
7784
8132
|
};
|
|
7785
8133
|
|
|
7786
8134
|
// src/SC-select/ScSelect.tsx
|
|
7787
|
-
import { jsx as
|
|
8135
|
+
import { jsx as jsx92, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7788
8136
|
var ScSelect = (props) => {
|
|
7789
8137
|
const {
|
|
7790
8138
|
value,
|
|
@@ -7796,9 +8144,9 @@ var ScSelect = (props) => {
|
|
|
7796
8144
|
disabled = false,
|
|
7797
8145
|
className
|
|
7798
8146
|
} = props;
|
|
7799
|
-
const [open, setOpen] =
|
|
7800
|
-
const rootRef =
|
|
7801
|
-
|
|
8147
|
+
const [open, setOpen] = useState13(false);
|
|
8148
|
+
const rootRef = useRef4(null);
|
|
8149
|
+
useEffect5(() => {
|
|
7802
8150
|
if (!open) return;
|
|
7803
8151
|
const handleClick = (e) => {
|
|
7804
8152
|
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
@@ -7824,10 +8172,10 @@ var ScSelect = (props) => {
|
|
|
7824
8172
|
labelGroup ? ScSelect_default["label-group-" + labelGroup] : void 0,
|
|
7825
8173
|
className
|
|
7826
8174
|
].filter(Boolean).join(" ");
|
|
7827
|
-
return /* @__PURE__ */
|
|
7828
|
-
labelGroup === "label" && label ? /* @__PURE__ */
|
|
7829
|
-
/* @__PURE__ */
|
|
7830
|
-
/* @__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(
|
|
7831
8179
|
"button",
|
|
7832
8180
|
{
|
|
7833
8181
|
type: "button",
|
|
@@ -7837,18 +8185,18 @@ var ScSelect = (props) => {
|
|
|
7837
8185
|
"aria-haspopup": "listbox",
|
|
7838
8186
|
"aria-expanded": open,
|
|
7839
8187
|
children: [
|
|
7840
|
-
/* @__PURE__ */
|
|
8188
|
+
/* @__PURE__ */ jsx92(
|
|
7841
8189
|
"span",
|
|
7842
8190
|
{
|
|
7843
8191
|
className: [ScSelect_default.triggerText, selected ? void 0 : ScSelect_default.placeholder].filter(Boolean).join(" "),
|
|
7844
8192
|
children: selected ? selected.label : placeholder
|
|
7845
8193
|
}
|
|
7846
8194
|
),
|
|
7847
|
-
/* @__PURE__ */
|
|
8195
|
+
/* @__PURE__ */ jsx92(
|
|
7848
8196
|
"span",
|
|
7849
8197
|
{
|
|
7850
8198
|
className: [ScSelect_default.chevron, open ? ScSelect_default.chevronOpen : void 0].filter(Boolean).join(" "),
|
|
7851
|
-
children: /* @__PURE__ */
|
|
8199
|
+
children: /* @__PURE__ */ jsx92("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx92(
|
|
7852
8200
|
"path",
|
|
7853
8201
|
{
|
|
7854
8202
|
d: "M5 7.5L10 12.5L15 7.5",
|
|
@@ -7863,13 +8211,13 @@ var ScSelect = (props) => {
|
|
|
7863
8211
|
]
|
|
7864
8212
|
}
|
|
7865
8213
|
),
|
|
7866
|
-
open ? /* @__PURE__ */
|
|
8214
|
+
open ? /* @__PURE__ */ jsx92("div", { className: ScSelect_default.menu, role: "listbox", children: options.map((option) => {
|
|
7867
8215
|
const isSelected = option.id === value;
|
|
7868
8216
|
const optionClass = [
|
|
7869
8217
|
ScSelect_default.option,
|
|
7870
8218
|
isSelected ? ScSelect_default["option-selected"] : void 0
|
|
7871
8219
|
].filter(Boolean).join(" ");
|
|
7872
|
-
return /* @__PURE__ */
|
|
8220
|
+
return /* @__PURE__ */ jsxs80(
|
|
7873
8221
|
"div",
|
|
7874
8222
|
{
|
|
7875
8223
|
className: optionClass,
|
|
@@ -7877,8 +8225,8 @@ var ScSelect = (props) => {
|
|
|
7877
8225
|
"aria-selected": isSelected,
|
|
7878
8226
|
onClick: () => handleSelect(option.id),
|
|
7879
8227
|
children: [
|
|
7880
|
-
/* @__PURE__ */
|
|
7881
|
-
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
|
|
7882
8230
|
]
|
|
7883
8231
|
},
|
|
7884
8232
|
option.id
|
|
@@ -7889,7 +8237,7 @@ var ScSelect = (props) => {
|
|
|
7889
8237
|
};
|
|
7890
8238
|
|
|
7891
8239
|
// src/SC-fileField/ScFileField.tsx
|
|
7892
|
-
import { useRef as
|
|
8240
|
+
import { useRef as useRef5 } from "react";
|
|
7893
8241
|
|
|
7894
8242
|
// src/SC-fileField/ScFileField.module.css
|
|
7895
8243
|
var ScFileField_default = {
|
|
@@ -7913,7 +8261,7 @@ var ScFileField_default = {
|
|
|
7913
8261
|
};
|
|
7914
8262
|
|
|
7915
8263
|
// src/SC-fileField/ScFileField.tsx
|
|
7916
|
-
import { jsx as
|
|
8264
|
+
import { jsx as jsx93, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7917
8265
|
var ScFileField = (props) => {
|
|
7918
8266
|
const {
|
|
7919
8267
|
onFileSelect,
|
|
@@ -7927,7 +8275,7 @@ var ScFileField = (props) => {
|
|
|
7927
8275
|
label,
|
|
7928
8276
|
className
|
|
7929
8277
|
} = props;
|
|
7930
|
-
const inputRef =
|
|
8278
|
+
const inputRef = useRef5(null);
|
|
7931
8279
|
const hasFile = Boolean(fileName);
|
|
7932
8280
|
const isUploading = Boolean(uploading);
|
|
7933
8281
|
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
@@ -7936,7 +8284,7 @@ var ScFileField = (props) => {
|
|
|
7936
8284
|
onFileSelect(e.target.files);
|
|
7937
8285
|
}
|
|
7938
8286
|
};
|
|
7939
|
-
const uploadIcon = /* @__PURE__ */
|
|
8287
|
+
const uploadIcon = /* @__PURE__ */ jsxs81(
|
|
7940
8288
|
"svg",
|
|
7941
8289
|
{
|
|
7942
8290
|
className: ScFileField_default.uploadIcon,
|
|
@@ -7950,13 +8298,13 @@ var ScFileField = (props) => {
|
|
|
7950
8298
|
strokeLinejoin: "round",
|
|
7951
8299
|
"aria-hidden": "true",
|
|
7952
8300
|
children: [
|
|
7953
|
-
/* @__PURE__ */
|
|
7954
|
-
/* @__PURE__ */
|
|
7955
|
-
/* @__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" })
|
|
7956
8304
|
]
|
|
7957
8305
|
}
|
|
7958
8306
|
);
|
|
7959
|
-
const fileIcon = /* @__PURE__ */
|
|
8307
|
+
const fileIcon = /* @__PURE__ */ jsxs81(
|
|
7960
8308
|
"svg",
|
|
7961
8309
|
{
|
|
7962
8310
|
className: ScFileField_default.fileIcon,
|
|
@@ -7970,12 +8318,12 @@ var ScFileField = (props) => {
|
|
|
7970
8318
|
strokeLinejoin: "round",
|
|
7971
8319
|
"aria-hidden": "true",
|
|
7972
8320
|
children: [
|
|
7973
|
-
/* @__PURE__ */
|
|
7974
|
-
/* @__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" })
|
|
7975
8323
|
]
|
|
7976
8324
|
}
|
|
7977
8325
|
);
|
|
7978
|
-
const clearIcon = /* @__PURE__ */
|
|
8326
|
+
const clearIcon = /* @__PURE__ */ jsxs81(
|
|
7979
8327
|
"svg",
|
|
7980
8328
|
{
|
|
7981
8329
|
width: "20",
|
|
@@ -7988,20 +8336,20 @@ var ScFileField = (props) => {
|
|
|
7988
8336
|
strokeLinejoin: "round",
|
|
7989
8337
|
"aria-hidden": "true",
|
|
7990
8338
|
children: [
|
|
7991
|
-
/* @__PURE__ */
|
|
7992
|
-
/* @__PURE__ */
|
|
8339
|
+
/* @__PURE__ */ jsx93("path", { d: "M18 6L6 18" }),
|
|
8340
|
+
/* @__PURE__ */ jsx93("path", { d: "M6 6l12 12" })
|
|
7993
8341
|
]
|
|
7994
8342
|
}
|
|
7995
8343
|
);
|
|
7996
8344
|
const rootClass = [ScFileField_default.scFileField, className].filter(Boolean).join(" ");
|
|
7997
8345
|
const showRow = hasFile || isUploading;
|
|
7998
|
-
return /* @__PURE__ */
|
|
7999
|
-
label ? /* @__PURE__ */
|
|
8000
|
-
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: [
|
|
8001
8349
|
fileIcon,
|
|
8002
|
-
/* @__PURE__ */
|
|
8003
|
-
/* @__PURE__ */
|
|
8004
|
-
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(
|
|
8005
8353
|
"div",
|
|
8006
8354
|
{
|
|
8007
8355
|
className: ScFileField_default.progressFill,
|
|
@@ -8009,7 +8357,7 @@ var ScFileField = (props) => {
|
|
|
8009
8357
|
}
|
|
8010
8358
|
) }) : null
|
|
8011
8359
|
] }),
|
|
8012
|
-
!isUploading ? /* @__PURE__ */
|
|
8360
|
+
!isUploading ? /* @__PURE__ */ jsx93(
|
|
8013
8361
|
"button",
|
|
8014
8362
|
{
|
|
8015
8363
|
type: "button",
|
|
@@ -8019,8 +8367,8 @@ var ScFileField = (props) => {
|
|
|
8019
8367
|
children: clearIcon
|
|
8020
8368
|
}
|
|
8021
8369
|
) : null
|
|
8022
|
-
] }) : /* @__PURE__ */
|
|
8023
|
-
/* @__PURE__ */
|
|
8370
|
+
] }) : /* @__PURE__ */ jsxs81("label", { className: ScFileField_default.dropzone, children: [
|
|
8371
|
+
/* @__PURE__ */ jsx93(
|
|
8024
8372
|
"input",
|
|
8025
8373
|
{
|
|
8026
8374
|
ref: inputRef,
|
|
@@ -8032,21 +8380,21 @@ var ScFileField = (props) => {
|
|
|
8032
8380
|
}
|
|
8033
8381
|
),
|
|
8034
8382
|
uploadIcon,
|
|
8035
|
-
/* @__PURE__ */
|
|
8036
|
-
/* @__PURE__ */
|
|
8383
|
+
/* @__PURE__ */ jsxs81("div", { className: ScFileField_default.dropzoneText, children: [
|
|
8384
|
+
/* @__PURE__ */ jsx93("span", { className: ScFileField_default.dropzoneAction, children: "Click to upload" }),
|
|
8037
8385
|
" or drag and drop"
|
|
8038
8386
|
] }),
|
|
8039
|
-
accept ? /* @__PURE__ */
|
|
8387
|
+
accept ? /* @__PURE__ */ jsxs81("div", { className: ScFileField_default.acceptedText, children: [
|
|
8040
8388
|
"Accepted: ",
|
|
8041
8389
|
accept
|
|
8042
8390
|
] }) : null
|
|
8043
8391
|
] }),
|
|
8044
|
-
error ? /* @__PURE__ */
|
|
8392
|
+
error ? /* @__PURE__ */ jsx93("div", { className: ScFileField_default.errorText, children: error }) : null
|
|
8045
8393
|
] });
|
|
8046
8394
|
};
|
|
8047
8395
|
|
|
8048
8396
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
8049
|
-
import { useState as
|
|
8397
|
+
import { useState as useState14, useEffect as useEffect6 } from "react";
|
|
8050
8398
|
|
|
8051
8399
|
// src/SC-mediaApproval/ScMediaApproval.module.css
|
|
8052
8400
|
var ScMediaApproval_default = {
|
|
@@ -8071,7 +8419,7 @@ var ScMediaApproval_default = {
|
|
|
8071
8419
|
};
|
|
8072
8420
|
|
|
8073
8421
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
8074
|
-
import { Fragment as Fragment22, jsx as
|
|
8422
|
+
import { Fragment as Fragment22, jsx as jsx94, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8075
8423
|
var VIDEO_EXT = /\.(mp4|webm|ogg|mov|m4v)(\?.*)?$/i;
|
|
8076
8424
|
var isVideoUrl = (url, mediaType) => {
|
|
8077
8425
|
if (mediaType === "video") return true;
|
|
@@ -8093,9 +8441,9 @@ var ScMediaApproval = (props) => {
|
|
|
8093
8441
|
className
|
|
8094
8442
|
} = props;
|
|
8095
8443
|
const total = mediaUrls.length;
|
|
8096
|
-
const [index, setIndex] =
|
|
8097
|
-
const [mediaLoading, setMediaLoading] =
|
|
8098
|
-
|
|
8444
|
+
const [index, setIndex] = useState14(activeIndex ?? 0);
|
|
8445
|
+
const [mediaLoading, setMediaLoading] = useState14(false);
|
|
8446
|
+
useEffect6(() => {
|
|
8099
8447
|
if (typeof activeIndex === "number") {
|
|
8100
8448
|
setIndex(activeIndex);
|
|
8101
8449
|
}
|
|
@@ -8113,9 +8461,9 @@ var ScMediaApproval = (props) => {
|
|
|
8113
8461
|
const handlePreview = () => {
|
|
8114
8462
|
if (currentUrl && onPreview) onPreview(currentUrl);
|
|
8115
8463
|
};
|
|
8116
|
-
return /* @__PURE__ */
|
|
8117
|
-
/* @__PURE__ */
|
|
8118
|
-
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(
|
|
8119
8467
|
"video",
|
|
8120
8468
|
{
|
|
8121
8469
|
className: ScMediaApproval_default.media,
|
|
@@ -8124,7 +8472,7 @@ var ScMediaApproval = (props) => {
|
|
|
8124
8472
|
onClick: handlePreview,
|
|
8125
8473
|
onLoadedData: () => setMediaLoading(false)
|
|
8126
8474
|
}
|
|
8127
|
-
) : /* @__PURE__ */
|
|
8475
|
+
) : /* @__PURE__ */ jsx94(
|
|
8128
8476
|
"img",
|
|
8129
8477
|
{
|
|
8130
8478
|
className: ScMediaApproval_default.media,
|
|
@@ -8133,8 +8481,8 @@ var ScMediaApproval = (props) => {
|
|
|
8133
8481
|
onClick: handlePreview,
|
|
8134
8482
|
onLoad: () => setMediaLoading(false)
|
|
8135
8483
|
}
|
|
8136
|
-
) : /* @__PURE__ */
|
|
8137
|
-
(loading || mediaLoading) && /* @__PURE__ */
|
|
8484
|
+
) : /* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.mediaEmpty }),
|
|
8485
|
+
(loading || mediaLoading) && /* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.spinnerOverlay, children: /* @__PURE__ */ jsx94(
|
|
8138
8486
|
"svg",
|
|
8139
8487
|
{
|
|
8140
8488
|
className: ScMediaApproval_default.spinner,
|
|
@@ -8142,7 +8490,7 @@ var ScMediaApproval = (props) => {
|
|
|
8142
8490
|
height: "32",
|
|
8143
8491
|
viewBox: "0 0 24 24",
|
|
8144
8492
|
fill: "none",
|
|
8145
|
-
children: /* @__PURE__ */
|
|
8493
|
+
children: /* @__PURE__ */ jsx94(
|
|
8146
8494
|
"path",
|
|
8147
8495
|
{
|
|
8148
8496
|
d: "M12 3a9 9 0 1 0 9 9",
|
|
@@ -8153,15 +8501,15 @@ var ScMediaApproval = (props) => {
|
|
|
8153
8501
|
)
|
|
8154
8502
|
}
|
|
8155
8503
|
) }),
|
|
8156
|
-
total > 1 && /* @__PURE__ */
|
|
8157
|
-
/* @__PURE__ */
|
|
8504
|
+
total > 1 && /* @__PURE__ */ jsxs82(Fragment22, { children: [
|
|
8505
|
+
/* @__PURE__ */ jsx94(
|
|
8158
8506
|
"button",
|
|
8159
8507
|
{
|
|
8160
8508
|
type: "button",
|
|
8161
8509
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navPrev].join(" "),
|
|
8162
8510
|
"aria-label": "Previous",
|
|
8163
8511
|
onClick: () => goTo(safeIndex - 1),
|
|
8164
|
-
children: /* @__PURE__ */
|
|
8512
|
+
children: /* @__PURE__ */ jsx94("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx94(
|
|
8165
8513
|
"path",
|
|
8166
8514
|
{
|
|
8167
8515
|
d: "M15 6L9 12L15 18",
|
|
@@ -8173,14 +8521,14 @@ var ScMediaApproval = (props) => {
|
|
|
8173
8521
|
) })
|
|
8174
8522
|
}
|
|
8175
8523
|
),
|
|
8176
|
-
/* @__PURE__ */
|
|
8524
|
+
/* @__PURE__ */ jsx94(
|
|
8177
8525
|
"button",
|
|
8178
8526
|
{
|
|
8179
8527
|
type: "button",
|
|
8180
8528
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navNext].join(" "),
|
|
8181
8529
|
"aria-label": "Next",
|
|
8182
8530
|
onClick: () => goTo(safeIndex + 1),
|
|
8183
|
-
children: /* @__PURE__ */
|
|
8531
|
+
children: /* @__PURE__ */ jsx94("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx94(
|
|
8184
8532
|
"path",
|
|
8185
8533
|
{
|
|
8186
8534
|
d: "M9 6L15 12L9 18",
|
|
@@ -8192,12 +8540,12 @@ var ScMediaApproval = (props) => {
|
|
|
8192
8540
|
) })
|
|
8193
8541
|
}
|
|
8194
8542
|
),
|
|
8195
|
-
/* @__PURE__ */
|
|
8543
|
+
/* @__PURE__ */ jsxs82("div", { className: ScMediaApproval_default.counterBadge, children: [
|
|
8196
8544
|
safeIndex + 1,
|
|
8197
8545
|
" / ",
|
|
8198
8546
|
total
|
|
8199
8547
|
] }),
|
|
8200
|
-
/* @__PURE__ */
|
|
8548
|
+
/* @__PURE__ */ jsx94("div", { className: ScMediaApproval_default.dots, children: mediaUrls.map((_, i) => /* @__PURE__ */ jsx94(
|
|
8201
8549
|
"button",
|
|
8202
8550
|
{
|
|
8203
8551
|
type: "button",
|
|
@@ -8212,9 +8560,9 @@ var ScMediaApproval = (props) => {
|
|
|
8212
8560
|
)) })
|
|
8213
8561
|
] })
|
|
8214
8562
|
] }),
|
|
8215
|
-
/* @__PURE__ */
|
|
8216
|
-
/* @__PURE__ */
|
|
8217
|
-
/* @__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(
|
|
8218
8566
|
"textarea",
|
|
8219
8567
|
{
|
|
8220
8568
|
className: ScMediaApproval_default.textArea,
|
|
@@ -8250,8 +8598,8 @@ var ScMediaSelect_default = {
|
|
|
8250
8598
|
};
|
|
8251
8599
|
|
|
8252
8600
|
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8253
|
-
import { jsx as
|
|
8254
|
-
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(
|
|
8255
8603
|
"path",
|
|
8256
8604
|
{
|
|
8257
8605
|
d: "M3.5 7.25L6 9.75L10.5 4.75",
|
|
@@ -8261,7 +8609,7 @@ var CheckBadge = () => /* @__PURE__ */ jsx92("span", { className: ScMediaSelect_
|
|
|
8261
8609
|
strokeLinejoin: "round"
|
|
8262
8610
|
}
|
|
8263
8611
|
) }) });
|
|
8264
|
-
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(
|
|
8265
8613
|
"path",
|
|
8266
8614
|
{
|
|
8267
8615
|
d: "M15 3H21V9M9 21H3V15M21 3L14 10M3 21L10 14",
|
|
@@ -8291,11 +8639,11 @@ var ScMediaSelect = (props) => {
|
|
|
8291
8639
|
let countLabel = selectedCount + " of " + total + " selected";
|
|
8292
8640
|
if (min > 0) countLabel += " (min " + min + ")";
|
|
8293
8641
|
if (resolvedMax < total) countLabel += " (max " + resolvedMax + ")";
|
|
8294
|
-
return /* @__PURE__ */
|
|
8295
|
-
/* @__PURE__ */
|
|
8296
|
-
/* @__PURE__ */
|
|
8297
|
-
/* @__PURE__ */
|
|
8298
|
-
/* @__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(
|
|
8299
8647
|
"button",
|
|
8300
8648
|
{
|
|
8301
8649
|
type: "button",
|
|
@@ -8304,8 +8652,8 @@ var ScMediaSelect = (props) => {
|
|
|
8304
8652
|
children: "Select all"
|
|
8305
8653
|
}
|
|
8306
8654
|
),
|
|
8307
|
-
/* @__PURE__ */
|
|
8308
|
-
/* @__PURE__ */
|
|
8655
|
+
/* @__PURE__ */ jsx95("span", { className: ScMediaSelect_default.divider, children: "|" }),
|
|
8656
|
+
/* @__PURE__ */ jsx95(
|
|
8309
8657
|
"button",
|
|
8310
8658
|
{
|
|
8311
8659
|
type: "button",
|
|
@@ -8316,13 +8664,13 @@ var ScMediaSelect = (props) => {
|
|
|
8316
8664
|
)
|
|
8317
8665
|
] })
|
|
8318
8666
|
] }),
|
|
8319
|
-
/* @__PURE__ */
|
|
8667
|
+
/* @__PURE__ */ jsx95("div", { className: ScMediaSelect_default.grid, children: items.map((url, index) => {
|
|
8320
8668
|
const isSelected = selectedSet.has(url);
|
|
8321
8669
|
const itemClass = [
|
|
8322
8670
|
ScMediaSelect_default.item,
|
|
8323
8671
|
isSelected ? ScMediaSelect_default["state-selected"] : ScMediaSelect_default["state-default"]
|
|
8324
8672
|
].filter(Boolean).join(" ");
|
|
8325
|
-
return /* @__PURE__ */
|
|
8673
|
+
return /* @__PURE__ */ jsxs83(
|
|
8326
8674
|
"div",
|
|
8327
8675
|
{
|
|
8328
8676
|
className: itemClass,
|
|
@@ -8331,9 +8679,9 @@ var ScMediaSelect = (props) => {
|
|
|
8331
8679
|
tabIndex: 0,
|
|
8332
8680
|
"aria-pressed": isSelected,
|
|
8333
8681
|
children: [
|
|
8334
|
-
mediaType === "video" ? /* @__PURE__ */
|
|
8335
|
-
isSelected && /* @__PURE__ */
|
|
8336
|
-
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(
|
|
8337
8685
|
"button",
|
|
8338
8686
|
{
|
|
8339
8687
|
type: "button",
|
|
@@ -8343,7 +8691,7 @@ var ScMediaSelect = (props) => {
|
|
|
8343
8691
|
onPreview(url);
|
|
8344
8692
|
},
|
|
8345
8693
|
"aria-label": "Preview",
|
|
8346
|
-
children: /* @__PURE__ */
|
|
8694
|
+
children: /* @__PURE__ */ jsx95(MaximizeIcon, {})
|
|
8347
8695
|
}
|
|
8348
8696
|
)
|
|
8349
8697
|
]
|
|
@@ -8355,7 +8703,7 @@ var ScMediaSelect = (props) => {
|
|
|
8355
8703
|
};
|
|
8356
8704
|
|
|
8357
8705
|
// src/SC-todoList/ScTodoList.tsx
|
|
8358
|
-
import { useState as
|
|
8706
|
+
import { useState as useState15 } from "react";
|
|
8359
8707
|
|
|
8360
8708
|
// src/SC-todoList/ScTodoList.module.css
|
|
8361
8709
|
var ScTodoList_default = {
|
|
@@ -8378,7 +8726,7 @@ var ScTodoList_default = {
|
|
|
8378
8726
|
};
|
|
8379
8727
|
|
|
8380
8728
|
// src/SC-todoList/ScTodoList.tsx
|
|
8381
|
-
import { jsx as
|
|
8729
|
+
import { jsx as jsx96, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8382
8730
|
var ScTodoList = ({
|
|
8383
8731
|
items = [],
|
|
8384
8732
|
onToggle,
|
|
@@ -8388,9 +8736,9 @@ var ScTodoList = ({
|
|
|
8388
8736
|
addPlaceholder = "Add an item",
|
|
8389
8737
|
className
|
|
8390
8738
|
}) => {
|
|
8391
|
-
const [editingId, setEditingId] =
|
|
8392
|
-
const [editValue, setEditValue] =
|
|
8393
|
-
const [newValue, setNewValue] =
|
|
8739
|
+
const [editingId, setEditingId] = useState15(null);
|
|
8740
|
+
const [editValue, setEditValue] = useState15("");
|
|
8741
|
+
const [newValue, setNewValue] = useState15("");
|
|
8394
8742
|
const total = items.length;
|
|
8395
8743
|
const completed = items.filter((i) => i.status === "completed").length;
|
|
8396
8744
|
const startEditing = (item) => {
|
|
@@ -8412,9 +8760,9 @@ var ScTodoList = ({
|
|
|
8412
8760
|
onAdd?.(newValue);
|
|
8413
8761
|
setNewValue("");
|
|
8414
8762
|
};
|
|
8415
|
-
return /* @__PURE__ */
|
|
8416
|
-
total > 0 && /* @__PURE__ */
|
|
8417
|
-
/* @__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(
|
|
8418
8766
|
"svg",
|
|
8419
8767
|
{
|
|
8420
8768
|
className: ScTodoList_default.progressIcon,
|
|
@@ -8423,7 +8771,7 @@ var ScTodoList = ({
|
|
|
8423
8771
|
viewBox: "0 0 14 14",
|
|
8424
8772
|
fill: "none",
|
|
8425
8773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8426
|
-
children: /* @__PURE__ */
|
|
8774
|
+
children: /* @__PURE__ */ jsx96(
|
|
8427
8775
|
"path",
|
|
8428
8776
|
{
|
|
8429
8777
|
d: "M3 7L6 10L11 4",
|
|
@@ -8435,25 +8783,25 @@ var ScTodoList = ({
|
|
|
8435
8783
|
)
|
|
8436
8784
|
}
|
|
8437
8785
|
),
|
|
8438
|
-
/* @__PURE__ */
|
|
8786
|
+
/* @__PURE__ */ jsxs84("span", { className: ScTodoList_default.progressText, children: [
|
|
8439
8787
|
completed,
|
|
8440
8788
|
" of ",
|
|
8441
8789
|
total,
|
|
8442
8790
|
" completed"
|
|
8443
8791
|
] })
|
|
8444
8792
|
] }),
|
|
8445
|
-
/* @__PURE__ */
|
|
8793
|
+
/* @__PURE__ */ jsx96("div", { className: ScTodoList_default.rows, children: items.map((item) => {
|
|
8446
8794
|
const isEditing = editingId === item.id;
|
|
8447
8795
|
const isCompleted = item.status === "completed";
|
|
8448
|
-
return /* @__PURE__ */
|
|
8449
|
-
/* @__PURE__ */
|
|
8796
|
+
return /* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.row, children: [
|
|
8797
|
+
/* @__PURE__ */ jsx96(
|
|
8450
8798
|
"button",
|
|
8451
8799
|
{
|
|
8452
8800
|
type: "button",
|
|
8453
8801
|
className: ScTodoList_default.checkbox,
|
|
8454
8802
|
"aria-label": isCompleted ? "Mark as pending" : "Mark as completed",
|
|
8455
8803
|
onClick: () => onToggle?.(item.id),
|
|
8456
|
-
children: isCompleted ? /* @__PURE__ */
|
|
8804
|
+
children: isCompleted ? /* @__PURE__ */ jsxs84(
|
|
8457
8805
|
"svg",
|
|
8458
8806
|
{
|
|
8459
8807
|
width: "18",
|
|
@@ -8462,8 +8810,8 @@ var ScTodoList = ({
|
|
|
8462
8810
|
fill: "none",
|
|
8463
8811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8464
8812
|
children: [
|
|
8465
|
-
/* @__PURE__ */
|
|
8466
|
-
/* @__PURE__ */
|
|
8813
|
+
/* @__PURE__ */ jsx96("circle", { cx: "9", cy: "9", r: "9", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
8814
|
+
/* @__PURE__ */ jsx96(
|
|
8467
8815
|
"path",
|
|
8468
8816
|
{
|
|
8469
8817
|
d: "M5.25 9L7.75 11.5L12.75 6.5",
|
|
@@ -8475,7 +8823,7 @@ var ScTodoList = ({
|
|
|
8475
8823
|
)
|
|
8476
8824
|
]
|
|
8477
8825
|
}
|
|
8478
|
-
) : /* @__PURE__ */
|
|
8826
|
+
) : /* @__PURE__ */ jsx96(
|
|
8479
8827
|
"svg",
|
|
8480
8828
|
{
|
|
8481
8829
|
width: "18",
|
|
@@ -8483,7 +8831,7 @@ var ScTodoList = ({
|
|
|
8483
8831
|
viewBox: "0 0 18 18",
|
|
8484
8832
|
fill: "none",
|
|
8485
8833
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8486
|
-
children: /* @__PURE__ */
|
|
8834
|
+
children: /* @__PURE__ */ jsx96(
|
|
8487
8835
|
"circle",
|
|
8488
8836
|
{
|
|
8489
8837
|
cx: "9",
|
|
@@ -8497,7 +8845,7 @@ var ScTodoList = ({
|
|
|
8497
8845
|
)
|
|
8498
8846
|
}
|
|
8499
8847
|
),
|
|
8500
|
-
isEditing ? /* @__PURE__ */
|
|
8848
|
+
isEditing ? /* @__PURE__ */ jsx96(
|
|
8501
8849
|
"input",
|
|
8502
8850
|
{
|
|
8503
8851
|
className: ScTodoList_default.editInput,
|
|
@@ -8515,7 +8863,7 @@ var ScTodoList = ({
|
|
|
8515
8863
|
}
|
|
8516
8864
|
}
|
|
8517
8865
|
}
|
|
8518
|
-
) : /* @__PURE__ */
|
|
8866
|
+
) : /* @__PURE__ */ jsx96(
|
|
8519
8867
|
"span",
|
|
8520
8868
|
{
|
|
8521
8869
|
className: [
|
|
@@ -8525,15 +8873,15 @@ var ScTodoList = ({
|
|
|
8525
8873
|
children: item.content
|
|
8526
8874
|
}
|
|
8527
8875
|
),
|
|
8528
|
-
!isEditing && /* @__PURE__ */
|
|
8529
|
-
/* @__PURE__ */
|
|
8876
|
+
!isEditing && /* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.actions, children: [
|
|
8877
|
+
/* @__PURE__ */ jsx96(
|
|
8530
8878
|
"button",
|
|
8531
8879
|
{
|
|
8532
8880
|
type: "button",
|
|
8533
8881
|
className: ScTodoList_default.actionButton,
|
|
8534
8882
|
"aria-label": "Edit item",
|
|
8535
8883
|
onClick: () => startEditing(item),
|
|
8536
|
-
children: /* @__PURE__ */
|
|
8884
|
+
children: /* @__PURE__ */ jsx96(
|
|
8537
8885
|
"svg",
|
|
8538
8886
|
{
|
|
8539
8887
|
width: "16",
|
|
@@ -8541,7 +8889,7 @@ var ScTodoList = ({
|
|
|
8541
8889
|
viewBox: "0 0 16 16",
|
|
8542
8890
|
fill: "none",
|
|
8543
8891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8544
|
-
children: /* @__PURE__ */
|
|
8892
|
+
children: /* @__PURE__ */ jsx96(
|
|
8545
8893
|
"path",
|
|
8546
8894
|
{
|
|
8547
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",
|
|
@@ -8555,14 +8903,14 @@ var ScTodoList = ({
|
|
|
8555
8903
|
)
|
|
8556
8904
|
}
|
|
8557
8905
|
),
|
|
8558
|
-
/* @__PURE__ */
|
|
8906
|
+
/* @__PURE__ */ jsx96(
|
|
8559
8907
|
"button",
|
|
8560
8908
|
{
|
|
8561
8909
|
type: "button",
|
|
8562
8910
|
className: [ScTodoList_default.actionButton, ScTodoList_default.actionButtonDanger].filter(Boolean).join(" "),
|
|
8563
8911
|
"aria-label": "Delete item",
|
|
8564
8912
|
onClick: () => onDelete?.(item.id),
|
|
8565
|
-
children: /* @__PURE__ */
|
|
8913
|
+
children: /* @__PURE__ */ jsx96(
|
|
8566
8914
|
"svg",
|
|
8567
8915
|
{
|
|
8568
8916
|
width: "16",
|
|
@@ -8570,7 +8918,7 @@ var ScTodoList = ({
|
|
|
8570
8918
|
viewBox: "0 0 16 16",
|
|
8571
8919
|
fill: "none",
|
|
8572
8920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8573
|
-
children: /* @__PURE__ */
|
|
8921
|
+
children: /* @__PURE__ */ jsx96(
|
|
8574
8922
|
"path",
|
|
8575
8923
|
{
|
|
8576
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",
|
|
@@ -8587,8 +8935,8 @@ var ScTodoList = ({
|
|
|
8587
8935
|
] })
|
|
8588
8936
|
] }, item.id);
|
|
8589
8937
|
}) }),
|
|
8590
|
-
/* @__PURE__ */
|
|
8591
|
-
/* @__PURE__ */
|
|
8938
|
+
/* @__PURE__ */ jsxs84("div", { className: ScTodoList_default.addRow, children: [
|
|
8939
|
+
/* @__PURE__ */ jsx96(
|
|
8592
8940
|
"input",
|
|
8593
8941
|
{
|
|
8594
8942
|
className: ScTodoList_default.addInput,
|
|
@@ -8603,7 +8951,7 @@ var ScTodoList = ({
|
|
|
8603
8951
|
}
|
|
8604
8952
|
}
|
|
8605
8953
|
),
|
|
8606
|
-
/* @__PURE__ */
|
|
8954
|
+
/* @__PURE__ */ jsx96(
|
|
8607
8955
|
"button",
|
|
8608
8956
|
{
|
|
8609
8957
|
type: "button",
|
|
@@ -8611,7 +8959,7 @@ var ScTodoList = ({
|
|
|
8611
8959
|
"aria-label": "Add item",
|
|
8612
8960
|
disabled: newValue.trim().length === 0,
|
|
8613
8961
|
onClick: commitAdd,
|
|
8614
|
-
children: /* @__PURE__ */
|
|
8962
|
+
children: /* @__PURE__ */ jsx96(
|
|
8615
8963
|
"svg",
|
|
8616
8964
|
{
|
|
8617
8965
|
width: "18",
|
|
@@ -8619,7 +8967,7 @@ var ScTodoList = ({
|
|
|
8619
8967
|
viewBox: "0 0 18 18",
|
|
8620
8968
|
fill: "none",
|
|
8621
8969
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8622
|
-
children: /* @__PURE__ */
|
|
8970
|
+
children: /* @__PURE__ */ jsx96(
|
|
8623
8971
|
"path",
|
|
8624
8972
|
{
|
|
8625
8973
|
d: "M9 4v10M4 9h10",
|
|
@@ -8646,18 +8994,18 @@ var ScRoleMobile_default = {
|
|
|
8646
8994
|
};
|
|
8647
8995
|
|
|
8648
8996
|
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
8649
|
-
import { jsx as
|
|
8997
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
8650
8998
|
var ScRoleMobile = ({
|
|
8651
8999
|
role = "admin",
|
|
8652
9000
|
className,
|
|
8653
9001
|
...props
|
|
8654
9002
|
}) => {
|
|
8655
|
-
return /* @__PURE__ */
|
|
9003
|
+
return /* @__PURE__ */ jsx97(
|
|
8656
9004
|
"div",
|
|
8657
9005
|
{
|
|
8658
9006
|
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
8659
9007
|
...props,
|
|
8660
|
-
children: /* @__PURE__ */
|
|
9008
|
+
children: /* @__PURE__ */ jsx97("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
8661
9009
|
}
|
|
8662
9010
|
);
|
|
8663
9011
|
};
|
|
@@ -8674,7 +9022,7 @@ var ScProfileV2Mobile_default = {
|
|
|
8674
9022
|
};
|
|
8675
9023
|
|
|
8676
9024
|
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
8677
|
-
import { jsx as
|
|
9025
|
+
import { jsx as jsx98, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8678
9026
|
var ScProfileV2Mobile = ({
|
|
8679
9027
|
name = "Chris Hemsworth",
|
|
8680
9028
|
email = "chris@kepler.com",
|
|
@@ -8684,17 +9032,17 @@ var ScProfileV2Mobile = ({
|
|
|
8684
9032
|
...props
|
|
8685
9033
|
}) => {
|
|
8686
9034
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8687
|
-
const profileImage = /* @__PURE__ */
|
|
8688
|
-
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(
|
|
8689
9037
|
"div",
|
|
8690
9038
|
{
|
|
8691
9039
|
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
8692
9040
|
...props,
|
|
8693
9041
|
children: [
|
|
8694
9042
|
dpPosition === "left" && profileImage,
|
|
8695
|
-
/* @__PURE__ */
|
|
8696
|
-
/* @__PURE__ */
|
|
8697
|
-
/* @__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 })
|
|
8698
9046
|
] }),
|
|
8699
9047
|
dpPosition === "right" && profileImage
|
|
8700
9048
|
]
|
|
@@ -8721,7 +9069,7 @@ var ScTableListMobile_default = {
|
|
|
8721
9069
|
};
|
|
8722
9070
|
|
|
8723
9071
|
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
8724
|
-
import { jsx as
|
|
9072
|
+
import { jsx as jsx99, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8725
9073
|
var ScTableListMobile = ({
|
|
8726
9074
|
name = "Chris Hemsworth",
|
|
8727
9075
|
email = "chris@kepler.com",
|
|
@@ -8734,25 +9082,25 @@ var ScTableListMobile = ({
|
|
|
8734
9082
|
...props
|
|
8735
9083
|
}) => {
|
|
8736
9084
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8737
|
-
return /* @__PURE__ */
|
|
9085
|
+
return /* @__PURE__ */ jsxs86(
|
|
8738
9086
|
"div",
|
|
8739
9087
|
{
|
|
8740
9088
|
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
8741
9089
|
onClick: onRowClick,
|
|
8742
9090
|
...props,
|
|
8743
9091
|
children: [
|
|
8744
|
-
/* @__PURE__ */
|
|
8745
|
-
/* @__PURE__ */
|
|
8746
|
-
/* @__PURE__ */
|
|
8747
|
-
/* @__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 })
|
|
8748
9096
|
] }),
|
|
8749
|
-
/* @__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 }) })
|
|
8750
9098
|
] }),
|
|
8751
|
-
/* @__PURE__ */
|
|
8752
|
-
/* @__PURE__ */
|
|
8753
|
-
/* @__PURE__ */
|
|
8754
|
-
accessIcons && accessIcons.length > 0 && /* @__PURE__ */
|
|
8755
|
-
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)) })
|
|
8756
9104
|
] })
|
|
8757
9105
|
] })
|
|
8758
9106
|
]
|
|
@@ -8780,7 +9128,7 @@ var ScWorkspaceSwitchMobile_default = {
|
|
|
8780
9128
|
};
|
|
8781
9129
|
|
|
8782
9130
|
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
8783
|
-
import { jsx as
|
|
9131
|
+
import { jsx as jsx100, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8784
9132
|
var ScWorkspaceSwitchMobile = ({
|
|
8785
9133
|
storeName = "Stores",
|
|
8786
9134
|
initials = "WS",
|
|
@@ -8793,24 +9141,24 @@ var ScWorkspaceSwitchMobile = ({
|
|
|
8793
9141
|
...props
|
|
8794
9142
|
}) => {
|
|
8795
9143
|
const variant = currentWs ? "current" : "other";
|
|
8796
|
-
return /* @__PURE__ */
|
|
9144
|
+
return /* @__PURE__ */ jsxs87(
|
|
8797
9145
|
"div",
|
|
8798
9146
|
{
|
|
8799
9147
|
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
8800
9148
|
onClick,
|
|
8801
9149
|
...props,
|
|
8802
9150
|
children: [
|
|
8803
|
-
/* @__PURE__ */
|
|
8804
|
-
/* @__PURE__ */
|
|
8805
|
-
/* @__PURE__ */
|
|
8806
|
-
/* @__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 })
|
|
8807
9155
|
] }),
|
|
8808
|
-
/* @__PURE__ */
|
|
9156
|
+
/* @__PURE__ */ jsx100("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ jsx100("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
8809
9157
|
] }),
|
|
8810
|
-
/* @__PURE__ */
|
|
8811
|
-
/* @__PURE__ */
|
|
8812
|
-
/* @__PURE__ */
|
|
8813
|
-
/* @__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 })
|
|
8814
9162
|
] })
|
|
8815
9163
|
]
|
|
8816
9164
|
}
|
|
@@ -8837,7 +9185,7 @@ var ScWorkspaceSettingsMobile_default = {
|
|
|
8837
9185
|
};
|
|
8838
9186
|
|
|
8839
9187
|
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
8840
|
-
import { jsx as
|
|
9188
|
+
import { jsx as jsx101, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
8841
9189
|
var ScWorkspaceSettingsMobile = ({
|
|
8842
9190
|
storeName = "Stores",
|
|
8843
9191
|
initials = "WS",
|
|
@@ -8852,28 +9200,28 @@ var ScWorkspaceSettingsMobile = ({
|
|
|
8852
9200
|
...props
|
|
8853
9201
|
}) => {
|
|
8854
9202
|
const variant = currentWs ? "current" : "other";
|
|
8855
|
-
return /* @__PURE__ */
|
|
9203
|
+
return /* @__PURE__ */ jsxs88(
|
|
8856
9204
|
"div",
|
|
8857
9205
|
{
|
|
8858
9206
|
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
8859
9207
|
onClick,
|
|
8860
9208
|
...props,
|
|
8861
9209
|
children: [
|
|
8862
|
-
/* @__PURE__ */
|
|
8863
|
-
/* @__PURE__ */
|
|
8864
|
-
/* @__PURE__ */
|
|
8865
|
-
/* @__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 })
|
|
8866
9214
|
] }),
|
|
8867
|
-
/* @__PURE__ */
|
|
9215
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ jsx101("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
8868
9216
|
] }),
|
|
8869
|
-
/* @__PURE__ */
|
|
8870
|
-
/* @__PURE__ */
|
|
8871
|
-
/* @__PURE__ */
|
|
8872
|
-
/* @__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 })
|
|
8873
9221
|
] }),
|
|
8874
|
-
/* @__PURE__ */
|
|
8875
|
-
/* @__PURE__ */
|
|
8876
|
-
/* @__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 })
|
|
8877
9225
|
] })
|
|
8878
9226
|
]
|
|
8879
9227
|
}
|
|
@@ -8896,7 +9244,7 @@ var ScMobileTopNav_default = {
|
|
|
8896
9244
|
};
|
|
8897
9245
|
|
|
8898
9246
|
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
8899
|
-
import { Fragment as Fragment23, jsx as
|
|
9247
|
+
import { Fragment as Fragment23, jsx as jsx102, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
8900
9248
|
var ScMobileTopNav = ({
|
|
8901
9249
|
type = "home",
|
|
8902
9250
|
searchIcon = false,
|
|
@@ -8919,22 +9267,22 @@ var ScMobileTopNav = ({
|
|
|
8919
9267
|
}) => {
|
|
8920
9268
|
const hasBorder = type === "chat" || type === "inApp";
|
|
8921
9269
|
const showSearch = type === "inApp" && searchIcon && search;
|
|
8922
|
-
return /* @__PURE__ */
|
|
9270
|
+
return /* @__PURE__ */ jsxs89(
|
|
8923
9271
|
"div",
|
|
8924
9272
|
{
|
|
8925
9273
|
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
8926
9274
|
...props,
|
|
8927
9275
|
children: [
|
|
8928
|
-
type === "home" && /* @__PURE__ */
|
|
8929
|
-
type === "chat" && /* @__PURE__ */
|
|
8930
|
-
/* @__PURE__ */
|
|
8931
|
-
/* @__PURE__ */
|
|
8932
|
-
/* @__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 }) })
|
|
8933
9281
|
] }),
|
|
8934
|
-
showSearch && /* @__PURE__ */
|
|
8935
|
-
/* @__PURE__ */
|
|
8936
|
-
/* @__PURE__ */
|
|
8937
|
-
/* @__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(
|
|
8938
9286
|
"input",
|
|
8939
9287
|
{
|
|
8940
9288
|
type: "text",
|
|
@@ -8945,17 +9293,17 @@ var ScMobileTopNav = ({
|
|
|
8945
9293
|
}
|
|
8946
9294
|
) })
|
|
8947
9295
|
] }) }),
|
|
8948
|
-
/* @__PURE__ */
|
|
9296
|
+
/* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
8949
9297
|
] }),
|
|
8950
|
-
type === "inApp" && !search && /* @__PURE__ */
|
|
8951
|
-
/* @__PURE__ */
|
|
8952
|
-
/* @__PURE__ */
|
|
8953
|
-
/* @__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(
|
|
8954
9302
|
"div",
|
|
8955
9303
|
{
|
|
8956
9304
|
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
8957
9305
|
onClick: onSearchClick,
|
|
8958
|
-
children: searchIcon ? searchIconElement || /* @__PURE__ */
|
|
9306
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ jsx102("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
8959
9307
|
}
|
|
8960
9308
|
)
|
|
8961
9309
|
] })
|
|
@@ -8976,7 +9324,7 @@ var ScMobileBottomAction_default = {
|
|
|
8976
9324
|
};
|
|
8977
9325
|
|
|
8978
9326
|
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
8979
|
-
import { jsx as
|
|
9327
|
+
import { jsx as jsx103, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
8980
9328
|
var ScMobileBottomAction = ({
|
|
8981
9329
|
text = "Save Changes",
|
|
8982
9330
|
disabled = false,
|
|
@@ -8988,28 +9336,28 @@ var ScMobileBottomAction = ({
|
|
|
8988
9336
|
...props
|
|
8989
9337
|
}) => {
|
|
8990
9338
|
const isTwoButton = !!secondaryText;
|
|
8991
|
-
return /* @__PURE__ */
|
|
9339
|
+
return /* @__PURE__ */ jsxs90(
|
|
8992
9340
|
"div",
|
|
8993
9341
|
{
|
|
8994
9342
|
className: ScMobileBottomAction_default.scMobileBottomAction + (isTwoButton ? " " + ScMobileBottomAction_default.twoButton : "") + " " + className,
|
|
8995
9343
|
...props,
|
|
8996
9344
|
children: [
|
|
8997
|
-
isTwoButton && /* @__PURE__ */
|
|
9345
|
+
isTwoButton && /* @__PURE__ */ jsx103(
|
|
8998
9346
|
"button",
|
|
8999
9347
|
{
|
|
9000
9348
|
className: ScMobileBottomAction_default.outlineButton + " " + (secondaryDisabled ? ScMobileBottomAction_default.disabled : ""),
|
|
9001
9349
|
onClick: onSecondaryClick,
|
|
9002
9350
|
disabled: secondaryDisabled,
|
|
9003
|
-
children: /* @__PURE__ */
|
|
9351
|
+
children: /* @__PURE__ */ jsx103("span", { className: ScMobileBottomAction_default.outlineButtonText, children: secondaryText })
|
|
9004
9352
|
}
|
|
9005
9353
|
),
|
|
9006
|
-
/* @__PURE__ */
|
|
9354
|
+
/* @__PURE__ */ jsx103(
|
|
9007
9355
|
"button",
|
|
9008
9356
|
{
|
|
9009
9357
|
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
9010
9358
|
onClick,
|
|
9011
9359
|
disabled,
|
|
9012
|
-
children: /* @__PURE__ */
|
|
9360
|
+
children: /* @__PURE__ */ jsx103("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
9013
9361
|
}
|
|
9014
9362
|
)
|
|
9015
9363
|
]
|
|
@@ -9027,7 +9375,7 @@ var ScPopUpMenu_default = {
|
|
|
9027
9375
|
};
|
|
9028
9376
|
|
|
9029
9377
|
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
9030
|
-
import { jsx as
|
|
9378
|
+
import { jsx as jsx104, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
9031
9379
|
var ScPopUpMenu = ({
|
|
9032
9380
|
menu = "Options",
|
|
9033
9381
|
state = "default",
|
|
@@ -9036,15 +9384,15 @@ var ScPopUpMenu = ({
|
|
|
9036
9384
|
className,
|
|
9037
9385
|
...props
|
|
9038
9386
|
}) => {
|
|
9039
|
-
return /* @__PURE__ */
|
|
9387
|
+
return /* @__PURE__ */ jsxs91(
|
|
9040
9388
|
"div",
|
|
9041
9389
|
{
|
|
9042
9390
|
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
9043
9391
|
onClick,
|
|
9044
9392
|
...props,
|
|
9045
9393
|
children: [
|
|
9046
|
-
icon && /* @__PURE__ */
|
|
9047
|
-
/* @__PURE__ */
|
|
9394
|
+
icon && /* @__PURE__ */ jsx104("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
9395
|
+
/* @__PURE__ */ jsx104("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
9048
9396
|
]
|
|
9049
9397
|
}
|
|
9050
9398
|
);
|
|
@@ -9070,7 +9418,7 @@ var ScReferralCardMobile_default = {
|
|
|
9070
9418
|
};
|
|
9071
9419
|
|
|
9072
9420
|
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
9073
|
-
import { jsx as
|
|
9421
|
+
import { jsx as jsx105, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9074
9422
|
var ScReferralCardMobile = ({
|
|
9075
9423
|
name = "Chris Hemsworth",
|
|
9076
9424
|
email = "chris@kepler.com",
|
|
@@ -9083,27 +9431,27 @@ var ScReferralCardMobile = ({
|
|
|
9083
9431
|
...props
|
|
9084
9432
|
}) => {
|
|
9085
9433
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
9086
|
-
return /* @__PURE__ */
|
|
9434
|
+
return /* @__PURE__ */ jsxs92(
|
|
9087
9435
|
"div",
|
|
9088
9436
|
{
|
|
9089
9437
|
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
9090
9438
|
onClick,
|
|
9091
9439
|
...props,
|
|
9092
9440
|
children: [
|
|
9093
|
-
/* @__PURE__ */
|
|
9094
|
-
/* @__PURE__ */
|
|
9095
|
-
/* @__PURE__ */
|
|
9096
|
-
/* @__PURE__ */
|
|
9097
|
-
/* @__PURE__ */
|
|
9098
|
-
/* @__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 })
|
|
9099
9447
|
] })
|
|
9100
9448
|
] }),
|
|
9101
|
-
/* @__PURE__ */
|
|
9449
|
+
/* @__PURE__ */ jsx105("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ jsx105("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
9102
9450
|
] }),
|
|
9103
|
-
/* @__PURE__ */
|
|
9104
|
-
/* @__PURE__ */
|
|
9105
|
-
/* @__PURE__ */
|
|
9106
|
-
/* @__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 })
|
|
9107
9455
|
] })
|
|
9108
9456
|
]
|
|
9109
9457
|
}
|
|
@@ -9120,19 +9468,19 @@ var InvoiceHistoryMobile_default = {
|
|
|
9120
9468
|
};
|
|
9121
9469
|
|
|
9122
9470
|
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
9123
|
-
import { jsx as
|
|
9471
|
+
import { jsx as jsx106, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
9124
9472
|
var InvoiceHistoryMobile = ({
|
|
9125
9473
|
invoiceId = "# INV-2800-2026",
|
|
9126
9474
|
date = "Nov 9th, 2025",
|
|
9127
9475
|
amount = "\u20B9320.89",
|
|
9128
9476
|
className
|
|
9129
9477
|
}) => {
|
|
9130
|
-
return /* @__PURE__ */
|
|
9131
|
-
/* @__PURE__ */
|
|
9132
|
-
/* @__PURE__ */
|
|
9133
|
-
/* @__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 })
|
|
9134
9482
|
] }),
|
|
9135
|
-
/* @__PURE__ */
|
|
9483
|
+
/* @__PURE__ */ jsx106("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
9136
9484
|
] });
|
|
9137
9485
|
};
|
|
9138
9486
|
|
|
@@ -9150,7 +9498,7 @@ var UsageHistoryMobile_default = {
|
|
|
9150
9498
|
};
|
|
9151
9499
|
|
|
9152
9500
|
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
9153
|
-
import { jsx as
|
|
9501
|
+
import { jsx as jsx107, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
9154
9502
|
var UsageHistoryMobile = ({
|
|
9155
9503
|
serviceName = "Artifax Generation",
|
|
9156
9504
|
credits = "50",
|
|
@@ -9159,18 +9507,18 @@ var UsageHistoryMobile = ({
|
|
|
9159
9507
|
balance = "84,902",
|
|
9160
9508
|
className
|
|
9161
9509
|
}) => {
|
|
9162
|
-
return /* @__PURE__ */
|
|
9163
|
-
/* @__PURE__ */
|
|
9164
|
-
/* @__PURE__ */
|
|
9165
|
-
/* @__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 })
|
|
9166
9514
|
] }),
|
|
9167
|
-
/* @__PURE__ */
|
|
9168
|
-
/* @__PURE__ */
|
|
9169
|
-
/* @__PURE__ */
|
|
9170
|
-
/* @__PURE__ */
|
|
9171
|
-
/* @__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 })
|
|
9172
9520
|
] }),
|
|
9173
|
-
/* @__PURE__ */
|
|
9521
|
+
/* @__PURE__ */ jsx107("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
9174
9522
|
] })
|
|
9175
9523
|
] });
|
|
9176
9524
|
};
|
|
@@ -9194,7 +9542,7 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
9194
9542
|
};
|
|
9195
9543
|
|
|
9196
9544
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
9197
|
-
import { jsx as
|
|
9545
|
+
import { jsx as jsx108, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
9198
9546
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
9199
9547
|
wsName = "Workspace name is kepler",
|
|
9200
9548
|
initials = "WS",
|
|
@@ -9207,14 +9555,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9207
9555
|
className,
|
|
9208
9556
|
...props
|
|
9209
9557
|
}) => {
|
|
9210
|
-
return /* @__PURE__ */
|
|
9558
|
+
return /* @__PURE__ */ jsx108(
|
|
9211
9559
|
"div",
|
|
9212
9560
|
{
|
|
9213
9561
|
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
9214
9562
|
onClick,
|
|
9215
9563
|
...props,
|
|
9216
|
-
children: /* @__PURE__ */
|
|
9217
|
-
/* @__PURE__ */
|
|
9564
|
+
children: /* @__PURE__ */ jsxs95("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
9565
|
+
/* @__PURE__ */ jsx108("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ jsx108(
|
|
9218
9566
|
ScDp,
|
|
9219
9567
|
{
|
|
9220
9568
|
type: imageUrl ? "image" : "initial",
|
|
@@ -9228,14 +9576,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9228
9576
|
}
|
|
9229
9577
|
}
|
|
9230
9578
|
) }),
|
|
9231
|
-
/* @__PURE__ */
|
|
9232
|
-
/* @__PURE__ */
|
|
9233
|
-
/* @__PURE__ */
|
|
9234
|
-
/* @__PURE__ */
|
|
9235
|
-
/* @__PURE__ */
|
|
9236
|
-
/* @__PURE__ */
|
|
9237
|
-
/* @__PURE__ */
|
|
9238
|
-
/* @__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 })
|
|
9239
9587
|
] })
|
|
9240
9588
|
] })
|
|
9241
9589
|
] })
|
|
@@ -9244,7 +9592,7 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9244
9592
|
};
|
|
9245
9593
|
|
|
9246
9594
|
// src/SC-imageField/ScImageField.tsx
|
|
9247
|
-
import { useRef as
|
|
9595
|
+
import { useRef as useRef6 } from "react";
|
|
9248
9596
|
|
|
9249
9597
|
// src/SC-imageField/ScImageField.module.css
|
|
9250
9598
|
var ScImageField_default = {
|
|
@@ -9262,7 +9610,7 @@ var ScImageField_default = {
|
|
|
9262
9610
|
|
|
9263
9611
|
// src/SC-imageField/ScImageField.tsx
|
|
9264
9612
|
import { SiconUpload as SiconUpload2, SiconDelete as SiconDelete2 } from "@streamoid/icons";
|
|
9265
|
-
import { jsx as
|
|
9613
|
+
import { jsx as jsx109, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
9266
9614
|
var ScImageField = ({
|
|
9267
9615
|
label = "Label",
|
|
9268
9616
|
imagePreview,
|
|
@@ -9271,7 +9619,7 @@ var ScImageField = ({
|
|
|
9271
9619
|
onRemove,
|
|
9272
9620
|
className
|
|
9273
9621
|
}) => {
|
|
9274
|
-
const inputRef =
|
|
9622
|
+
const inputRef = useRef6(null);
|
|
9275
9623
|
const hasImage = !!imagePreview;
|
|
9276
9624
|
function handleClick() {
|
|
9277
9625
|
if (!hasImage) {
|
|
@@ -9285,8 +9633,8 @@ var ScImageField = ({
|
|
|
9285
9633
|
}
|
|
9286
9634
|
e.target.value = "";
|
|
9287
9635
|
}
|
|
9288
|
-
return /* @__PURE__ */
|
|
9289
|
-
/* @__PURE__ */
|
|
9636
|
+
return /* @__PURE__ */ jsxs96("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
9637
|
+
/* @__PURE__ */ jsx109(
|
|
9290
9638
|
"input",
|
|
9291
9639
|
{
|
|
9292
9640
|
ref: inputRef,
|
|
@@ -9296,9 +9644,9 @@ var ScImageField = ({
|
|
|
9296
9644
|
onChange: handleChange
|
|
9297
9645
|
}
|
|
9298
9646
|
),
|
|
9299
|
-
/* @__PURE__ */
|
|
9300
|
-
hasImage ? /* @__PURE__ */
|
|
9301
|
-
/* @__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(
|
|
9302
9650
|
"img",
|
|
9303
9651
|
{
|
|
9304
9652
|
className: ScImageField_default.previewImage,
|
|
@@ -9306,8 +9654,8 @@ var ScImageField = ({
|
|
|
9306
9654
|
alt: "preview"
|
|
9307
9655
|
}
|
|
9308
9656
|
),
|
|
9309
|
-
/* @__PURE__ */
|
|
9310
|
-
/* @__PURE__ */
|
|
9657
|
+
/* @__PURE__ */ jsx109("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
9658
|
+
/* @__PURE__ */ jsx109(
|
|
9311
9659
|
SiconDelete2,
|
|
9312
9660
|
{
|
|
9313
9661
|
className: ScImageField_default.removeIcon,
|
|
@@ -9318,9 +9666,9 @@ var ScImageField = ({
|
|
|
9318
9666
|
}
|
|
9319
9667
|
}
|
|
9320
9668
|
)
|
|
9321
|
-
] }) : /* @__PURE__ */
|
|
9322
|
-
/* @__PURE__ */
|
|
9323
|
-
/* @__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" })
|
|
9324
9672
|
] })
|
|
9325
9673
|
] });
|
|
9326
9674
|
};
|
|
@@ -9334,7 +9682,7 @@ var ScSettingsTabComp_default = {
|
|
|
9334
9682
|
};
|
|
9335
9683
|
|
|
9336
9684
|
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
9337
|
-
import { jsx as
|
|
9685
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
9338
9686
|
var ScSettingsTabComp = ({
|
|
9339
9687
|
tabName = "Tab",
|
|
9340
9688
|
active = false,
|
|
@@ -9342,12 +9690,12 @@ var ScSettingsTabComp = ({
|
|
|
9342
9690
|
className
|
|
9343
9691
|
}) => {
|
|
9344
9692
|
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
9345
|
-
return /* @__PURE__ */
|
|
9693
|
+
return /* @__PURE__ */ jsx110(
|
|
9346
9694
|
"div",
|
|
9347
9695
|
{
|
|
9348
9696
|
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
9349
9697
|
onClick,
|
|
9350
|
-
children: /* @__PURE__ */
|
|
9698
|
+
children: /* @__PURE__ */ jsx110("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
9351
9699
|
}
|
|
9352
9700
|
);
|
|
9353
9701
|
};
|
|
@@ -9367,7 +9715,7 @@ var ScCreditsUsageCardMobile_default = {
|
|
|
9367
9715
|
|
|
9368
9716
|
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
9369
9717
|
import { SiconCredits as SiconCredits2 } from "@streamoid/icons";
|
|
9370
|
-
import { jsx as
|
|
9718
|
+
import { jsx as jsx111, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
9371
9719
|
var ScCreditsUsageCardMobile = ({
|
|
9372
9720
|
usageLabel = "Credits usage",
|
|
9373
9721
|
usageText = "8,450 / 30,000",
|
|
@@ -9377,23 +9725,23 @@ var ScCreditsUsageCardMobile = ({
|
|
|
9377
9725
|
className,
|
|
9378
9726
|
...props
|
|
9379
9727
|
}) => {
|
|
9380
|
-
return /* @__PURE__ */
|
|
9381
|
-
/* @__PURE__ */
|
|
9382
|
-
/* @__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(
|
|
9383
9731
|
SiconCredits2,
|
|
9384
9732
|
{
|
|
9385
9733
|
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
9386
9734
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
9387
9735
|
}
|
|
9388
9736
|
),
|
|
9389
|
-
/* @__PURE__ */
|
|
9737
|
+
/* @__PURE__ */ jsx111("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
9390
9738
|
] }),
|
|
9391
|
-
/* @__PURE__ */
|
|
9392
|
-
/* @__PURE__ */
|
|
9393
|
-
/* @__PURE__ */
|
|
9394
|
-
/* @__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 })
|
|
9395
9743
|
] }),
|
|
9396
|
-
/* @__PURE__ */
|
|
9744
|
+
/* @__PURE__ */ jsx111(
|
|
9397
9745
|
ScButton,
|
|
9398
9746
|
{
|
|
9399
9747
|
text: buyButtonText,
|
|
@@ -9435,7 +9783,7 @@ var ScPlanDetailsCardMobile_default = {
|
|
|
9435
9783
|
|
|
9436
9784
|
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
9437
9785
|
import { SiconBilling as SiconBilling4 } from "@streamoid/icons";
|
|
9438
|
-
import { Fragment as Fragment24, jsx as
|
|
9786
|
+
import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
9439
9787
|
var ScPlanDetailsCardMobile = ({
|
|
9440
9788
|
planName = "Pro",
|
|
9441
9789
|
planCredits = "30,000 credits",
|
|
@@ -9449,20 +9797,20 @@ var ScPlanDetailsCardMobile = ({
|
|
|
9449
9797
|
className,
|
|
9450
9798
|
...props
|
|
9451
9799
|
}) => {
|
|
9452
|
-
return /* @__PURE__ */
|
|
9453
|
-
/* @__PURE__ */
|
|
9454
|
-
/* @__PURE__ */
|
|
9455
|
-
/* @__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(
|
|
9456
9804
|
SiconBilling4,
|
|
9457
9805
|
{
|
|
9458
9806
|
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
9459
9807
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
9460
9808
|
}
|
|
9461
9809
|
),
|
|
9462
|
-
/* @__PURE__ */
|
|
9810
|
+
/* @__PURE__ */ jsx112("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
9463
9811
|
] }),
|
|
9464
|
-
/* @__PURE__ */
|
|
9465
|
-
/* @__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(
|
|
9466
9814
|
ScBadges,
|
|
9467
9815
|
{
|
|
9468
9816
|
text: badgeText,
|
|
@@ -9471,28 +9819,28 @@ var ScPlanDetailsCardMobile = ({
|
|
|
9471
9819
|
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
9472
9820
|
}
|
|
9473
9821
|
),
|
|
9474
|
-
badgeSubText && /* @__PURE__ */
|
|
9475
|
-
/* @__PURE__ */
|
|
9476
|
-
/* @__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 })
|
|
9477
9825
|
] })
|
|
9478
9826
|
] }) })
|
|
9479
9827
|
] }),
|
|
9480
|
-
/* @__PURE__ */
|
|
9481
|
-
/* @__PURE__ */
|
|
9482
|
-
/* @__PURE__ */
|
|
9483
|
-
/* @__PURE__ */
|
|
9484
|
-
/* @__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}` })
|
|
9485
9833
|
] }),
|
|
9486
|
-
/* @__PURE__ */
|
|
9487
|
-
] }) : /* @__PURE__ */
|
|
9488
|
-
/* @__PURE__ */
|
|
9489
|
-
/* @__PURE__ */
|
|
9490
|
-
/* @__PURE__ */
|
|
9491
|
-
/* @__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 })
|
|
9492
9840
|
] }),
|
|
9493
|
-
/* @__PURE__ */
|
|
9841
|
+
/* @__PURE__ */ jsx112("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
9494
9842
|
] }) }),
|
|
9495
|
-
isLoading ? /* @__PURE__ */
|
|
9843
|
+
isLoading ? /* @__PURE__ */ jsx112("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.buttonSkeleton}` }) : /* @__PURE__ */ jsx112(
|
|
9496
9844
|
ScButton,
|
|
9497
9845
|
{
|
|
9498
9846
|
text: upgradeButtonText,
|
|
@@ -9551,6 +9899,7 @@ export {
|
|
|
9551
9899
|
ScImageField,
|
|
9552
9900
|
ScInChatList,
|
|
9553
9901
|
ScInChatMessage,
|
|
9902
|
+
ScInfoPopup,
|
|
9554
9903
|
ScIntialProfileCover,
|
|
9555
9904
|
ScLogoUnit,
|
|
9556
9905
|
ScMediaApproval,
|
|
@@ -9558,8 +9907,10 @@ export {
|
|
|
9558
9907
|
ScMenuOptions,
|
|
9559
9908
|
ScMobileBottomAction,
|
|
9560
9909
|
ScMobileTopNav,
|
|
9910
|
+
ScModal,
|
|
9561
9911
|
ScOnlyField,
|
|
9562
9912
|
ScOnlyIcon,
|
|
9913
|
+
ScPagination,
|
|
9563
9914
|
ScPairtext,
|
|
9564
9915
|
ScPendingAction,
|
|
9565
9916
|
ScPhtogenixInvite,
|