@streamoid/ui 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/index.css +1431 -5
- package/dist/index.d.mts +333 -18
- package/dist/index.d.ts +333 -18
- package/dist/index.js +1128 -107
- package/dist/index.mjs +1336 -315
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
InvoiceHistoryMobile: () => InvoiceHistoryMobile,
|
|
23
24
|
NscWorkspaceSwitch: () => NscWorkspaceSwitch,
|
|
24
25
|
ScAccess: () => ScAccess,
|
|
25
26
|
ScAppCard: () => ScAppCard,
|
|
@@ -38,14 +39,18 @@ __export(index_exports, {
|
|
|
38
39
|
ScCheckField: () => ScCheckField,
|
|
39
40
|
ScCheckbox: () => ScCheckbox,
|
|
40
41
|
ScCreditsUsageCard: () => ScCreditsUsageCard,
|
|
42
|
+
ScCreditsUsageCardMobile: () => ScCreditsUsageCardMobile,
|
|
41
43
|
ScDp: () => ScDp,
|
|
42
44
|
ScFieldButton: () => ScFieldButton,
|
|
43
45
|
ScGoogleSignIn: () => ScGoogleSignIn,
|
|
44
46
|
ScHDivider: () => ScHDivider,
|
|
45
47
|
ScHeader: () => ScHeader,
|
|
48
|
+
ScImageField: () => ScImageField,
|
|
46
49
|
ScIntialProfileCover: () => ScIntialProfileCover,
|
|
47
50
|
ScLogoUnit: () => ScLogoUnit,
|
|
48
51
|
ScMenuOptions: () => ScMenuOptions,
|
|
52
|
+
ScMobileBottomAction: () => ScMobileBottomAction,
|
|
53
|
+
ScMobileTopNav: () => ScMobileTopNav,
|
|
49
54
|
ScOnlyField: () => ScOnlyField,
|
|
50
55
|
ScOnlyIcon: () => ScOnlyIcon,
|
|
51
56
|
ScPairtext: () => ScPairtext,
|
|
@@ -53,17 +58,23 @@ __export(index_exports, {
|
|
|
53
58
|
ScPhtogenixInvite: () => ScPhtogenixInvite,
|
|
54
59
|
ScPlanCard: () => ScPlanCard,
|
|
55
60
|
ScPlanDetailsCard: () => ScPlanDetailsCard,
|
|
61
|
+
ScPlanDetailsCardMobile: () => ScPlanDetailsCardMobile,
|
|
62
|
+
ScPopUpMenu: () => ScPopUpMenu,
|
|
56
63
|
ScProfile: () => ScProfile,
|
|
57
64
|
ScProfileImageUpdate: () => ScProfileImageUpdate,
|
|
58
65
|
ScProfileOptions: () => ScProfileOptions,
|
|
59
66
|
ScProfileSettingsComp: () => ScProfileSettingsComp,
|
|
67
|
+
ScProfileV2Mobile: () => ScProfileV2Mobile,
|
|
60
68
|
ScProgressBar: () => ScProgressBar,
|
|
61
69
|
ScQuickPrompt: () => ScQuickPrompt,
|
|
62
70
|
ScRadio: () => ScRadio,
|
|
71
|
+
ScReferralCardMobile: () => ScReferralCardMobile,
|
|
63
72
|
ScReferralTableHeader: () => ScReferralTableHeader,
|
|
64
73
|
ScReferralTableList: () => ScReferralTableList,
|
|
65
74
|
ScRole: () => ScRole,
|
|
75
|
+
ScRoleMobile: () => ScRoleMobile,
|
|
66
76
|
ScSettingsNav: () => ScSettingsNav,
|
|
77
|
+
ScSettingsTabComp: () => ScSettingsTabComp,
|
|
67
78
|
ScSidebar: () => ScSidebar,
|
|
68
79
|
ScSidebarIcons: () => ScSidebarIcons,
|
|
69
80
|
ScSidebarMenu: () => ScSidebarMenu,
|
|
@@ -75,14 +86,19 @@ __export(index_exports, {
|
|
|
75
86
|
ScTabSwitcher: () => ScTabSwitcher,
|
|
76
87
|
ScTableHeader: () => ScTableHeader,
|
|
77
88
|
ScTableList: () => ScTableList,
|
|
89
|
+
ScTableListMobile: () => ScTableListMobile,
|
|
78
90
|
ScTextField: () => ScTextField,
|
|
79
91
|
ScToggleSwitch: () => ScToggleSwitch,
|
|
80
92
|
ScVDivider: () => ScVDivider,
|
|
81
93
|
ScVersion: () => ScVersion,
|
|
82
94
|
ScWorkspaceCard: () => ScWorkspaceCard,
|
|
95
|
+
ScWorkspaceSettingsMobile: () => ScWorkspaceSettingsMobile,
|
|
83
96
|
ScWorkspaceSwitchCard: () => ScWorkspaceSwitchCard,
|
|
97
|
+
ScWorkspaceSwitchMobile: () => ScWorkspaceSwitchMobile,
|
|
98
|
+
ScWorkspaceSwitchMobileV2: () => ScWorkspaceSwitchMobileV2,
|
|
84
99
|
StreamoidSidebar: () => StreamoidSidebar,
|
|
85
|
-
StreamoidWorkspaceSwitcher: () => StreamoidWorkspaceSwitcher
|
|
100
|
+
StreamoidWorkspaceSwitcher: () => StreamoidWorkspaceSwitcher,
|
|
101
|
+
UsageHistoryMobile: () => UsageHistoryMobile
|
|
86
102
|
});
|
|
87
103
|
module.exports = __toCommonJS(index_exports);
|
|
88
104
|
|
|
@@ -402,32 +418,29 @@ var ScCheckbox_default = {
|
|
|
402
418
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
403
419
|
var ScCheckbox = ({
|
|
404
420
|
state = "default",
|
|
421
|
+
checked,
|
|
422
|
+
onChange,
|
|
405
423
|
className,
|
|
406
424
|
...props
|
|
407
425
|
}) => {
|
|
408
|
-
const
|
|
426
|
+
const effectiveState = checked !== void 0 ? checked ? "selected" : "default" : state;
|
|
427
|
+
const variantsClassName = ScCheckbox_default["state-" + effectiveState];
|
|
409
428
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
410
429
|
"div",
|
|
411
430
|
{
|
|
412
431
|
className: ScCheckbox_default.scCheckbox + " " + className + " " + variantsClassName,
|
|
432
|
+
style: { cursor: "pointer", ...props.style },
|
|
413
433
|
...props,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
{
|
|
425
|
-
d: "M17.5996 22.5V24H6.40039V22.5H17.5996ZM22.5 17.5996V6.40039C22.5 5.25553 22.4985 4.48629 22.4502 3.89453C22.4033 3.32077 22.3198 3.04631 22.2275 2.86523C21.9879 2.39483 21.6052 2.01214 21.1348 1.77246C20.9537 1.68023 20.6792 1.59671 20.1055 1.5498C19.5137 1.50146 18.7445 1.5 17.5996 1.5H6.40039C5.25553 1.5 4.48629 1.50146 3.89453 1.5498C3.32077 1.59671 3.04631 1.68023 2.86523 1.77246C2.39483 2.01214 2.01214 2.39483 1.77246 2.86523C1.68023 3.04631 1.59671 3.32077 1.5498 3.89453C1.50146 4.48629 1.5 5.25553 1.5 6.40039V17.5996C1.5 18.7445 1.50146 19.5137 1.5498 20.1055C1.59671 20.6792 1.68023 20.9537 1.77246 21.1348C2.01214 21.6052 2.39483 21.9879 2.86523 22.2275C3.04631 22.3198 3.32077 22.4033 3.89453 22.4502C4.48629 22.4985 5.25553 22.5 6.40039 22.5V24L4.91602 23.9932C3.72431 23.9744 2.96088 23.9041 2.34766 23.6406L2.18359 23.5645C1.52512 23.2289 0.974134 22.7183 0.589844 22.0918L0.435547 21.8164C-0.000427067 20.9608 1.63278e-09 19.8398 1.63278e-09 17.5996V6.40039C1.63278e-09 4.16018 -0.000427067 3.03924 0.435547 2.18359C0.819016 1.43109 1.43109 0.819016 2.18359 0.435547C2.82525 0.108606 3.61607 0.0272847 4.91602 0.00683594L6.40039 1.63278e-09H17.5996C19.8398 1.63278e-09 20.9608 -0.000427067 21.8164 0.435547C22.5689 0.819016 23.181 1.43109 23.5645 2.18359C24.0004 3.03924 24 4.16018 24 6.40039V17.5996C24 19.8398 24.0004 20.9608 23.5645 21.8164L23.4102 22.0918C23.0259 22.7183 22.4749 23.2289 21.8164 23.5645L21.6523 23.6406C20.816 23.9999 19.6999 24 17.5996 24V22.5C18.7445 22.5 19.5137 22.4985 20.1055 22.4502C20.6792 22.4033 20.9537 22.3198 21.1348 22.2275C21.6052 21.9879 21.9879 21.6052 22.2275 21.1348C22.3198 20.9537 22.4033 20.6792 22.4502 20.1055C22.4985 19.5137 22.5 18.7445 22.5 17.5996Z",
|
|
426
|
-
fill: "var(--alias-text-and-icons-muted, #7a7a7a)"
|
|
427
|
-
}
|
|
428
|
-
)
|
|
429
|
-
}
|
|
430
|
-
)
|
|
434
|
+
onClick: (e) => {
|
|
435
|
+
onChange?.(
|
|
436
|
+
checked !== void 0 ? !checked : effectiveState !== "selected"
|
|
437
|
+
);
|
|
438
|
+
props.onClick?.(e);
|
|
439
|
+
},
|
|
440
|
+
children: effectiveState === "selected" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
441
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { width: "24", height: "24", rx: "6", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M7.5 12L10.5 15L16.5 9", stroke: "var(--alias-text---icons-inverse, #101010)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
443
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { x: "0.75", y: "0.75", width: "22.5", height: "22.5", rx: "5.25", stroke: "var(--alias-border-default, #3e3e3e)", strokeWidth: "1.5" }) })
|
|
431
444
|
}
|
|
432
445
|
);
|
|
433
446
|
};
|
|
@@ -439,14 +452,21 @@ var ScPairtext = ({
|
|
|
439
452
|
icon = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons3.SiconHome, { className: ScPairtext_default.siconHomeInstance }),
|
|
440
453
|
iconPosition = "left",
|
|
441
454
|
type = "icon",
|
|
455
|
+
checked,
|
|
456
|
+
onChange,
|
|
442
457
|
className,
|
|
443
458
|
...props
|
|
444
459
|
}) => {
|
|
445
460
|
const variantsClassName = ScPairtext_default["icon-position-" + iconPosition] + " " + ScPairtext_default["type-" + type];
|
|
461
|
+
const derivedState = checked !== void 0 ? checked ? "selected" : "default" : "default";
|
|
446
462
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
447
463
|
"div",
|
|
448
464
|
{
|
|
449
465
|
className: ScPairtext_default.scPairtext + " " + className + " " + variantsClassName,
|
|
466
|
+
style: { cursor: "pointer" },
|
|
467
|
+
onClick: (e) => {
|
|
468
|
+
onChange?.(!checked);
|
|
469
|
+
},
|
|
450
470
|
children: [
|
|
451
471
|
iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: ScPairtext_default.content, children: [
|
|
452
472
|
content,
|
|
@@ -455,11 +475,18 @@ var ScPairtext = ({
|
|
|
455
475
|
type === "checkbox" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
456
476
|
ScCheckbox,
|
|
457
477
|
{
|
|
458
|
-
state:
|
|
478
|
+
state: derivedState,
|
|
479
|
+
checked,
|
|
459
480
|
className: ScPairtext_default.scCheckboxInstance
|
|
460
481
|
}
|
|
461
482
|
) }),
|
|
462
|
-
type === "radio" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
483
|
+
type === "radio" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
484
|
+
ScRadio,
|
|
485
|
+
{
|
|
486
|
+
state: derivedState,
|
|
487
|
+
className: ScPairtext_default.scRadioInstance
|
|
488
|
+
}
|
|
489
|
+
) }),
|
|
463
490
|
type === "icon" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: icon }),
|
|
464
491
|
iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: ScPairtext_default.content, children: [
|
|
465
492
|
content,
|
|
@@ -1597,6 +1624,9 @@ var ScProfile = ({
|
|
|
1597
1624
|
);
|
|
1598
1625
|
};
|
|
1599
1626
|
|
|
1627
|
+
// src/SC-Profile Image update/ScProfileImageUpdate.tsx
|
|
1628
|
+
var import_react5 = require("react");
|
|
1629
|
+
|
|
1600
1630
|
// src/SC-Profile Image update/ScProfileImageUpdate.module.css
|
|
1601
1631
|
var ScProfileImageUpdate_default = {
|
|
1602
1632
|
scProfileImageUpdate: "ScProfileImageUpdate_scProfileImageUpdate",
|
|
@@ -1604,6 +1634,7 @@ var ScProfileImageUpdate_default = {
|
|
|
1604
1634
|
buttonContainer: "ScProfileImageUpdate_buttonContainer",
|
|
1605
1635
|
scButtonInstance: "ScProfileImageUpdate_scButtonInstance",
|
|
1606
1636
|
scVDividerInstance: "ScProfileImageUpdate_scVDividerInstance",
|
|
1637
|
+
profileInitials: "ScProfileImageUpdate_profileInitials",
|
|
1607
1638
|
siconUploadInstance: "ScProfileImageUpdate_siconUploadInstance",
|
|
1608
1639
|
siconDeleteInstance: "ScProfileImageUpdate_siconDeleteInstance"
|
|
1609
1640
|
};
|
|
@@ -1645,32 +1676,62 @@ var ScVDivider = ({
|
|
|
1645
1676
|
// src/SC-Profile Image update/ScProfileImageUpdate.tsx
|
|
1646
1677
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1647
1678
|
var ScProfileImageUpdate = ({
|
|
1679
|
+
imageUrl,
|
|
1680
|
+
initials = "",
|
|
1681
|
+
onUpload,
|
|
1682
|
+
onDelete,
|
|
1648
1683
|
className,
|
|
1649
1684
|
...props
|
|
1650
1685
|
}) => {
|
|
1651
|
-
|
|
1686
|
+
const inputRef = (0, import_react5.useRef)(null);
|
|
1687
|
+
function handleUploadClick() {
|
|
1688
|
+
inputRef.current?.click();
|
|
1689
|
+
}
|
|
1690
|
+
function handleFileChange(e) {
|
|
1691
|
+
const file = e.target.files?.[0];
|
|
1692
|
+
if (file) {
|
|
1693
|
+
onUpload?.(file);
|
|
1694
|
+
}
|
|
1695
|
+
e.target.value = "";
|
|
1696
|
+
}
|
|
1697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: ScProfileImageUpdate_default.scProfileImageUpdate + " " + className, ...props, children: [
|
|
1652
1698
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1653
|
-
|
|
1699
|
+
"input",
|
|
1654
1700
|
{
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1701
|
+
ref: inputRef,
|
|
1702
|
+
type: "file",
|
|
1703
|
+
accept: "image/*",
|
|
1704
|
+
style: { display: "none" },
|
|
1705
|
+
onChange: handleFileChange
|
|
1660
1706
|
}
|
|
1661
1707
|
),
|
|
1662
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1663
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1708
|
+
imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("img", { className: ScProfileImageUpdate_default.profileImage, src: imageUrl, alt: "profile" }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: ScProfileImageUpdate_default.profileImage + " " + ScProfileImageUpdate_default.profileInitials, children: initials }),
|
|
1709
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: ScProfileImageUpdate_default.buttonContainer, children: [
|
|
1710
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1711
|
+
ScButton,
|
|
1712
|
+
{
|
|
1713
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_icons14.SiconUpload, { className: ScProfileImageUpdate_default.siconUploadInstance }),
|
|
1714
|
+
styleVariant: "icon-only",
|
|
1715
|
+
variant: "tertiary",
|
|
1716
|
+
size: "md",
|
|
1717
|
+
className: ScProfileImageUpdate_default.scButtonInstance,
|
|
1718
|
+
onClick: handleUploadClick
|
|
1719
|
+
}
|
|
1720
|
+
),
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ScVDivider, { className: ScProfileImageUpdate_default.scVDividerInstance }),
|
|
1722
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1723
|
+
ScButton,
|
|
1724
|
+
{
|
|
1725
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_icons14.SiconDelete, { className: ScProfileImageUpdate_default.siconDeleteInstance }),
|
|
1726
|
+
styleVariant: "icon-only",
|
|
1727
|
+
variant: "tertiary",
|
|
1728
|
+
size: "md",
|
|
1729
|
+
className: ScProfileImageUpdate_default.scButtonInstance,
|
|
1730
|
+
onClick: () => onDelete?.()
|
|
1731
|
+
}
|
|
1732
|
+
)
|
|
1733
|
+
] })
|
|
1734
|
+
] });
|
|
1674
1735
|
};
|
|
1675
1736
|
|
|
1676
1737
|
// src/SC-Profile options/ScProfileOptions.module.css
|
|
@@ -1982,6 +2043,9 @@ var ScProfileSettingsComp_default = {
|
|
|
1982
2043
|
// src/SC-ProfileSettingsComp/ScProfileSettingsComp.tsx
|
|
1983
2044
|
var import_icons24 = require("@streamoid/icons");
|
|
1984
2045
|
|
|
2046
|
+
// src/SC-textField/ScTextField.tsx
|
|
2047
|
+
var import_react6 = require("react");
|
|
2048
|
+
|
|
1985
2049
|
// src/SC-textField/ScTextField.module.css
|
|
1986
2050
|
var ScTextField_default = {
|
|
1987
2051
|
scTextField: "ScTextField_scTextField",
|
|
@@ -1996,7 +2060,7 @@ var ScTextField_default = {
|
|
|
1996
2060
|
"tf-group-icon-left-right": "ScTextField_tf-group-icon-left-right",
|
|
1997
2061
|
"state-hover": "ScTextField_state-hover",
|
|
1998
2062
|
"state-filled": "ScTextField_state-filled",
|
|
1999
|
-
"state-
|
|
2063
|
+
"state-active": "ScTextField_state-active",
|
|
2000
2064
|
ScTextField_labelContainer: "ScTextField_ScTextField_labelContainer"
|
|
2001
2065
|
};
|
|
2002
2066
|
|
|
@@ -2006,7 +2070,7 @@ var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
|
2006
2070
|
var ScTextField = ({
|
|
2007
2071
|
tfRightIcon = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons23.SiconBolt, { className: ScTextField_default.siconBoltInstance }),
|
|
2008
2072
|
tfLeftIcon = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons23.SiconBolt, { className: ScTextField_default.siconBoltInstance }),
|
|
2009
|
-
state
|
|
2073
|
+
state,
|
|
2010
2074
|
tfGroup = "icon-right",
|
|
2011
2075
|
labelGroup = "",
|
|
2012
2076
|
className,
|
|
@@ -2014,7 +2078,9 @@ var ScTextField = ({
|
|
|
2014
2078
|
label = "",
|
|
2015
2079
|
...props
|
|
2016
2080
|
}) => {
|
|
2017
|
-
const
|
|
2081
|
+
const [focused, setFocused] = (0, import_react6.useState)(false);
|
|
2082
|
+
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
2083
|
+
const variantsClassName = ScTextField_default["state-" + derivedState] + " " + ScTextField_default["tf-group-" + tfGroup] + " " + ScTextField_default["label-group-" + labelGroup];
|
|
2018
2084
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2019
2085
|
"div",
|
|
2020
2086
|
{
|
|
@@ -2035,7 +2101,15 @@ var ScTextField = ({
|
|
|
2035
2101
|
{
|
|
2036
2102
|
className: ScTextField_default.inputText,
|
|
2037
2103
|
placeholder: placeholderFilled,
|
|
2038
|
-
...props
|
|
2104
|
+
...props,
|
|
2105
|
+
onFocus: (e) => {
|
|
2106
|
+
setFocused(true);
|
|
2107
|
+
props.onFocus?.(e);
|
|
2108
|
+
},
|
|
2109
|
+
onBlur: (e) => {
|
|
2110
|
+
setFocused(false);
|
|
2111
|
+
props.onBlur?.(e);
|
|
2112
|
+
}
|
|
2039
2113
|
}
|
|
2040
2114
|
),
|
|
2041
2115
|
(tfGroup === "icon-right" || tfGroup === "icon-left-right") && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: tfRightIcon })
|
|
@@ -2678,6 +2752,7 @@ function StreamoidSidebar({
|
|
|
2678
2752
|
profile,
|
|
2679
2753
|
versionText = "v1.0.0",
|
|
2680
2754
|
toggleIcon,
|
|
2755
|
+
hideFooter = false,
|
|
2681
2756
|
className,
|
|
2682
2757
|
style
|
|
2683
2758
|
}) {
|
|
@@ -2695,6 +2770,7 @@ function StreamoidSidebar({
|
|
|
2695
2770
|
backgroundColor: "var(--alias-surface-base)",
|
|
2696
2771
|
borderRadius: "var(--radius-3xl)",
|
|
2697
2772
|
padding: "var(--spacing-md)",
|
|
2773
|
+
paddingBottom: hideFooter ? "var(--spacing-md)" : void 0,
|
|
2698
2774
|
width: 256,
|
|
2699
2775
|
gap: "var(--spacing-xxs)"
|
|
2700
2776
|
},
|
|
@@ -2784,6 +2860,7 @@ function StreamoidSidebar({
|
|
|
2784
2860
|
className: "flex items-center shrink-0 w-full cursor-pointer",
|
|
2785
2861
|
style: {
|
|
2786
2862
|
padding: "var(--spacing-md)",
|
|
2863
|
+
marginTop: "var(--spacing-md)",
|
|
2787
2864
|
gap: "var(--spacing-md)",
|
|
2788
2865
|
borderRadius: "var(--radius-xl)"
|
|
2789
2866
|
},
|
|
@@ -2817,9 +2894,12 @@ function StreamoidSidebar({
|
|
|
2817
2894
|
]
|
|
2818
2895
|
}
|
|
2819
2896
|
),
|
|
2820
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.
|
|
2897
|
+
!hideFooter && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
2898
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { style: { marginTop: "var(--spacing-md)" } }),
|
|
2899
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HDivider, {})
|
|
2900
|
+
] })
|
|
2821
2901
|
] }) : null,
|
|
2822
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "shrink-0 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-row items-center size-full", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2902
|
+
!hideFooter && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "shrink-0 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-row items-center size-full", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2823
2903
|
"div",
|
|
2824
2904
|
{
|
|
2825
2905
|
className: "flex items-center w-full",
|
|
@@ -2972,7 +3052,7 @@ function StreamoidSidebar({
|
|
|
2972
3052
|
),
|
|
2973
3053
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HDivider, {})
|
|
2974
3054
|
] }) : null,
|
|
2975
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3055
|
+
!hideFooter && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2976
3056
|
"div",
|
|
2977
3057
|
{
|
|
2978
3058
|
className: "shrink-0 flex flex-col items-center",
|
|
@@ -3043,7 +3123,7 @@ var ScSlider = ({
|
|
|
3043
3123
|
};
|
|
3044
3124
|
|
|
3045
3125
|
// src/SC-WorkspaceSwitcher/streamoid-workspace-switcher.tsx
|
|
3046
|
-
var
|
|
3126
|
+
var import_react7 = require("react");
|
|
3047
3127
|
var import_icons34 = require("@streamoid/icons");
|
|
3048
3128
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3049
3129
|
var PRIMARY_ICON = "var(--alias-text---icons-primary)";
|
|
@@ -3234,12 +3314,12 @@ function StreamoidWorkspaceSwitcher({
|
|
|
3234
3314
|
onSwitchWorkspace,
|
|
3235
3315
|
config
|
|
3236
3316
|
}) {
|
|
3237
|
-
const modalRef = (0,
|
|
3317
|
+
const modalRef = (0, import_react7.useRef)(null);
|
|
3238
3318
|
const title = config?.title || "Switch workspace";
|
|
3239
3319
|
const loadingText = config?.loadingText || "Loading workspaces\u2026";
|
|
3240
3320
|
const currentWorkspaceText = config?.currentWorkspaceText || "Current workspace";
|
|
3241
3321
|
const switchWorkspaceText = config?.switchWorkspaceText || "Switch workspace";
|
|
3242
|
-
(0,
|
|
3322
|
+
(0, import_react7.useEffect)(() => {
|
|
3243
3323
|
if (!open) return;
|
|
3244
3324
|
function handleKeyDown(e) {
|
|
3245
3325
|
if (e.key === "Escape") onClose();
|
|
@@ -3462,48 +3542,31 @@ var ScToggleSwitch_default = {
|
|
|
3462
3542
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3463
3543
|
var ScToggleSwitch = ({
|
|
3464
3544
|
active = "false",
|
|
3545
|
+
checked,
|
|
3546
|
+
onToggle,
|
|
3465
3547
|
className,
|
|
3466
3548
|
...props
|
|
3467
3549
|
}) => {
|
|
3468
|
-
const
|
|
3550
|
+
const isActive = checked !== void 0 ? checked : active === "true";
|
|
3551
|
+
const variantsClassName = ScToggleSwitch_default["active-" + (isActive ? "true" : "false")];
|
|
3469
3552
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3470
3553
|
"div",
|
|
3471
3554
|
{
|
|
3472
3555
|
className: ScToggleSwitch_default.scToggleSwitch + " " + className + " " + variantsClassName,
|
|
3473
3556
|
...props,
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
fill: "var(--alias-fill-neutral-neutral, #1a1a1a)"
|
|
3488
|
-
}
|
|
3489
|
-
),
|
|
3490
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3491
|
-
"path",
|
|
3492
|
-
{
|
|
3493
|
-
d: "M40 12.25C40 5.76065 34.7393 0.5 28.25 0.5H12.25C5.76065 0.5 0.5 5.76065 0.5 12.25C0.5 18.7393 5.76065 24 12.25 24H28.25C34.7393 24 40 18.7393 40 12.25ZM40.5 12.25C40.5 19.0155 35.0155 24.5 28.25 24.5H12.25C5.48451 24.5 0 19.0155 0 12.25C0 5.48451 5.48451 0 12.25 0H28.25C35.0155 0 40.5 5.48451 40.5 12.25Z",
|
|
3494
|
-
fill: "var(--alias-border-divider, #242424)"
|
|
3495
|
-
}
|
|
3496
|
-
),
|
|
3497
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3498
|
-
"path",
|
|
3499
|
-
{
|
|
3500
|
-
d: "M2.25 12.25C2.25 6.72715 6.72715 2.25 12.25 2.25C17.7728 2.25 22.25 6.72715 22.25 12.25C22.25 17.7728 17.7728 22.25 12.25 22.25C6.72715 22.25 2.25 17.7728 2.25 12.25Z",
|
|
3501
|
-
fill: "var(--alias-fill-neutral-neutralactive, #313131)"
|
|
3502
|
-
}
|
|
3503
|
-
)
|
|
3504
|
-
]
|
|
3505
|
-
}
|
|
3506
|
-
)
|
|
3557
|
+
onClick: (e) => {
|
|
3558
|
+
onToggle?.(!isActive);
|
|
3559
|
+
props.onClick?.(e);
|
|
3560
|
+
},
|
|
3561
|
+
style: { cursor: "pointer", ...props.style },
|
|
3562
|
+
children: isActive ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("svg", { width: "40", height: "24", viewBox: "0 0 40 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3563
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("rect", { width: "40", height: "24", rx: "12", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
3564
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "28", cy: "12", r: "10", fill: "var(--alias-text---icons-inverse, #101010)" })
|
|
3565
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("svg", { width: "41", height: "25", viewBox: "0 0 41 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3566
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "M0.25 12.25C0.25 5.62258 5.62258 0.25 12.25 0.25H28.25C34.8774 0.25 40.25 5.62258 40.25 12.25C40.25 18.8774 34.8774 24.25 28.25 24.25H12.25C5.62258 24.25 0.25 18.8774 0.25 12.25Z", fill: "var(--alias-fill-neutral-neutral, #1a1a1a)" }),
|
|
3567
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "M40 12.25C40 5.76065 34.7393 0.5 28.25 0.5H12.25C5.76065 0.5 0.5 5.76065 0.5 12.25C0.5 18.7393 5.76065 24 12.25 24H28.25C34.7393 24 40 18.7393 40 12.25ZM40.5 12.25C40.5 19.0155 35.0155 24.5 28.25 24.5H12.25C5.48451 24.5 0 19.0155 0 12.25C0 5.48451 5.48451 0 12.25 0H28.25C35.0155 0 40.5 5.48451 40.5 12.25Z", fill: "var(--alias-border-divider, #242424)" }),
|
|
3568
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "M2.25 12.25C2.25 6.72715 6.72715 2.25 12.25 2.25C17.7728 2.25 22.25 6.72715 22.25 12.25C22.25 17.7728 17.7728 22.25 12.25 22.25C6.72715 22.25 2.25 17.7728 2.25 12.25Z", fill: "var(--alias-fill-neutral-neutralactive, #313131)" })
|
|
3569
|
+
] })
|
|
3507
3570
|
}
|
|
3508
3571
|
);
|
|
3509
3572
|
};
|
|
@@ -3516,9 +3579,12 @@ var ScArtifaxInvite = ({
|
|
|
3516
3579
|
appDescription = "Info about artifax",
|
|
3517
3580
|
appIcon,
|
|
3518
3581
|
className,
|
|
3582
|
+
enabled,
|
|
3583
|
+
onToggle,
|
|
3519
3584
|
...props
|
|
3520
3585
|
}) => {
|
|
3521
|
-
const
|
|
3586
|
+
const isEnabled = enabled !== void 0 ? enabled : active === "true";
|
|
3587
|
+
const variantsClassName = ScArtifaxInvite_default["active-" + (isEnabled ? "true" : "false")];
|
|
3522
3588
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3523
3589
|
"div",
|
|
3524
3590
|
{
|
|
@@ -3537,7 +3603,8 @@ var ScArtifaxInvite = ({
|
|
|
3537
3603
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3538
3604
|
ScToggleSwitch,
|
|
3539
3605
|
{
|
|
3540
|
-
|
|
3606
|
+
checked: isEnabled,
|
|
3607
|
+
onToggle,
|
|
3541
3608
|
className: ScArtifaxInvite_default.scToggleSwitchInstance
|
|
3542
3609
|
}
|
|
3543
3610
|
)
|
|
@@ -3566,9 +3633,12 @@ var ScPhtogenixInvite = ({
|
|
|
3566
3633
|
scAppCardappName = "Photogenix",
|
|
3567
3634
|
scAppCardappIcon = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons38.SiconArtifacts, { className: ScPhtogenixInvite_default.siconArtifactsInstance }),
|
|
3568
3635
|
className,
|
|
3636
|
+
enabled,
|
|
3637
|
+
onToggle,
|
|
3569
3638
|
...props
|
|
3570
3639
|
}) => {
|
|
3571
|
-
const
|
|
3640
|
+
const isEnabled = enabled !== void 0 ? enabled : active === "true";
|
|
3641
|
+
const variantsClassName = ScPhtogenixInvite_default["active-" + (isEnabled ? "true" : "false")];
|
|
3572
3642
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3573
3643
|
"div",
|
|
3574
3644
|
{
|
|
@@ -3586,7 +3656,8 @@ var ScPhtogenixInvite = ({
|
|
|
3586
3656
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3587
3657
|
ScToggleSwitch,
|
|
3588
3658
|
{
|
|
3589
|
-
|
|
3659
|
+
checked: isEnabled,
|
|
3660
|
+
onToggle,
|
|
3590
3661
|
className: ScPhtogenixInvite_default.scToggleSwitchInstance
|
|
3591
3662
|
}
|
|
3592
3663
|
)
|
|
@@ -3638,6 +3709,9 @@ var ScOnlyField = ({
|
|
|
3638
3709
|
labelGroup = "none",
|
|
3639
3710
|
className,
|
|
3640
3711
|
placeholderFilled = "Placeholder",
|
|
3712
|
+
value,
|
|
3713
|
+
onInputChange,
|
|
3714
|
+
inputProps,
|
|
3641
3715
|
...props
|
|
3642
3716
|
}) => {
|
|
3643
3717
|
const variantsClassName = ScOnlyField_default["state-" + state] + " " + ScOnlyField_default["tf-group-" + tfGroup] + " " + ScOnlyField_default["label-group-" + labelGroup];
|
|
@@ -3648,10 +3722,26 @@ var ScOnlyField = ({
|
|
|
3648
3722
|
...props,
|
|
3649
3723
|
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: ScOnlyField_default.inputContainer, children: [
|
|
3650
3724
|
(tfGroup === "icon-left" || tfGroup === "icon-left-right") && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: tfLeftIcon }),
|
|
3651
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3725
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3726
|
+
"input",
|
|
3727
|
+
{
|
|
3728
|
+
className: ScOnlyField_default.inputText,
|
|
3729
|
+
placeholder: placeholderFilled,
|
|
3730
|
+
value,
|
|
3731
|
+
onChange: (e) => onInputChange?.(e.target.value),
|
|
3732
|
+
style: {
|
|
3733
|
+
background: "transparent",
|
|
3734
|
+
border: "none",
|
|
3735
|
+
outline: "none",
|
|
3736
|
+
font: "inherit",
|
|
3737
|
+
color: "inherit",
|
|
3738
|
+
width: "100%",
|
|
3739
|
+
padding: 0,
|
|
3740
|
+
margin: 0
|
|
3741
|
+
},
|
|
3742
|
+
...inputProps
|
|
3743
|
+
}
|
|
3744
|
+
),
|
|
3655
3745
|
(tfGroup === "icon-right" || tfGroup === "icon-left-right") && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: tfRightIcon })
|
|
3656
3746
|
] })
|
|
3657
3747
|
}
|
|
@@ -3670,9 +3760,18 @@ var ScCatalogixInvite = ({
|
|
|
3670
3760
|
searchPlaceholder = "Search stores...",
|
|
3671
3761
|
appIcon,
|
|
3672
3762
|
className,
|
|
3763
|
+
enabled,
|
|
3764
|
+
onToggle,
|
|
3765
|
+
stores,
|
|
3766
|
+
selectedStores,
|
|
3767
|
+
onStoreToggle,
|
|
3768
|
+
searchValue,
|
|
3769
|
+
onSearchChange,
|
|
3673
3770
|
...props
|
|
3674
3771
|
}) => {
|
|
3675
|
-
const
|
|
3772
|
+
const isEnabled = enabled !== void 0 ? enabled : active === "true";
|
|
3773
|
+
const variantsClassName = ScCatalogixInvite_default["active-" + (isEnabled ? "true" : "false")];
|
|
3774
|
+
const displayCount = selectedStores ? `${selectedStores.length} Selected` : selectedCount;
|
|
3676
3775
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3677
3776
|
"div",
|
|
3678
3777
|
{
|
|
@@ -3692,19 +3791,20 @@ var ScCatalogixInvite = ({
|
|
|
3692
3791
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3693
3792
|
ScToggleSwitch,
|
|
3694
3793
|
{
|
|
3695
|
-
|
|
3794
|
+
checked: isEnabled,
|
|
3795
|
+
onToggle,
|
|
3696
3796
|
className: ScCatalogixInvite_default.scToggleSwitchInstance
|
|
3697
3797
|
}
|
|
3698
3798
|
)
|
|
3699
3799
|
] }),
|
|
3700
|
-
|
|
3800
|
+
isEnabled && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.storeAccessContainer, children: [
|
|
3701
3801
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.storeAccessHeader, children: [
|
|
3702
3802
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.storeAccessTitle, children: [
|
|
3703
3803
|
storeAccessTitle,
|
|
3704
3804
|
" "
|
|
3705
3805
|
] }),
|
|
3706
3806
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.selectedCount, children: [
|
|
3707
|
-
|
|
3807
|
+
displayCount,
|
|
3708
3808
|
" "
|
|
3709
3809
|
] })
|
|
3710
3810
|
] }),
|
|
@@ -3714,10 +3814,29 @@ var ScCatalogixInvite = ({
|
|
|
3714
3814
|
tfLeftIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons41.SiconSearch, { className: ScCatalogixInvite_default.siconSearchInstance }),
|
|
3715
3815
|
tfRightIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons41.SiconSearch, { className: ScCatalogixInvite_default.siconSearchInstance }),
|
|
3716
3816
|
placeholderFilled: searchPlaceholder,
|
|
3817
|
+
value: searchValue,
|
|
3818
|
+
onInputChange: onSearchChange,
|
|
3717
3819
|
className: ScCatalogixInvite_default.scOnlyFieldInstance
|
|
3718
3820
|
}
|
|
3719
3821
|
),
|
|
3720
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.
|
|
3822
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: ScCatalogixInvite_default.storeListContainer, children: stores ? stores.length > 0 ? stores.map((store) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3823
|
+
ScPairtext,
|
|
3824
|
+
{
|
|
3825
|
+
content: store.name,
|
|
3826
|
+
iconPosition: "right",
|
|
3827
|
+
type: "checkbox",
|
|
3828
|
+
checked: selectedStores?.includes(store.id),
|
|
3829
|
+
onChange: () => onStoreToggle?.(store.id),
|
|
3830
|
+
className: ScCatalogixInvite_default.scPairtextInstance
|
|
3831
|
+
},
|
|
3832
|
+
store.id
|
|
3833
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { style: {
|
|
3834
|
+
padding: "var(--spacing-3xl, 16px)",
|
|
3835
|
+
color: "var(--alias-text-and-icons-muted, #7a7a7a)",
|
|
3836
|
+
fontFamily: "var(--font-family-font-family-body, Inter, sans-serif)",
|
|
3837
|
+
fontSize: "var(--font-size-font-size-sm, 14px)",
|
|
3838
|
+
lineHeight: "var(--line-height-line-height-sm, 20px)"
|
|
3839
|
+
}, children: "No stores found" }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
3721
3840
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3722
3841
|
ScPairtext,
|
|
3723
3842
|
{
|
|
@@ -3763,7 +3882,7 @@ var ScCatalogixInvite = ({
|
|
|
3763
3882
|
className: ScCatalogixInvite_default.scPairtextInstance
|
|
3764
3883
|
}
|
|
3765
3884
|
)
|
|
3766
|
-
] })
|
|
3885
|
+
] }) })
|
|
3767
3886
|
] }) })
|
|
3768
3887
|
]
|
|
3769
3888
|
}
|
|
@@ -3775,6 +3894,17 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
|
3775
3894
|
var ScAppField = ({
|
|
3776
3895
|
appFieldTitle = "App permission",
|
|
3777
3896
|
className,
|
|
3897
|
+
artifaxEnabled,
|
|
3898
|
+
onArtifaxToggle,
|
|
3899
|
+
photogenixEnabled,
|
|
3900
|
+
onPhotogenixToggle,
|
|
3901
|
+
catalogixEnabled,
|
|
3902
|
+
onCatalogixToggle,
|
|
3903
|
+
catalogixStores,
|
|
3904
|
+
catalogixSelectedStores,
|
|
3905
|
+
onCatalogixStoreToggle,
|
|
3906
|
+
catalogixSearchValue,
|
|
3907
|
+
onCatalogixSearchChange,
|
|
3778
3908
|
...props
|
|
3779
3909
|
}) => {
|
|
3780
3910
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: ScAppField_default.scAppField + " " + className, ...props, children: [
|
|
@@ -3786,12 +3916,16 @@ var ScAppField = ({
|
|
|
3786
3916
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3787
3917
|
ScArtifaxInvite,
|
|
3788
3918
|
{
|
|
3919
|
+
enabled: artifaxEnabled,
|
|
3920
|
+
onToggle: onArtifaxToggle,
|
|
3789
3921
|
className: ScAppField_default.scArtifaxInviteInstance
|
|
3790
3922
|
}
|
|
3791
3923
|
),
|
|
3792
3924
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3793
3925
|
ScPhtogenixInvite,
|
|
3794
3926
|
{
|
|
3927
|
+
enabled: photogenixEnabled,
|
|
3928
|
+
onToggle: onPhotogenixToggle,
|
|
3795
3929
|
scAppCardappDescription: "Info about photogenix",
|
|
3796
3930
|
scAppCardappName: "Photogenix",
|
|
3797
3931
|
scAppCardappIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons43.SiconPhotogenix, { className: ScAppField_default.siconPhotogenixInstance }),
|
|
@@ -3801,6 +3935,13 @@ var ScAppField = ({
|
|
|
3801
3935
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3802
3936
|
ScCatalogixInvite,
|
|
3803
3937
|
{
|
|
3938
|
+
enabled: catalogixEnabled,
|
|
3939
|
+
onToggle: onCatalogixToggle,
|
|
3940
|
+
stores: catalogixStores,
|
|
3941
|
+
selectedStores: catalogixSelectedStores,
|
|
3942
|
+
onStoreToggle: onCatalogixStoreToggle,
|
|
3943
|
+
searchValue: catalogixSearchValue,
|
|
3944
|
+
onSearchChange: onCatalogixSearchChange,
|
|
3804
3945
|
active: "true",
|
|
3805
3946
|
className: ScAppField_default.scCatalogixInviteInstance
|
|
3806
3947
|
}
|
|
@@ -3874,6 +4015,7 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
3874
4015
|
var ScCheckField = ({
|
|
3875
4016
|
label = "Label",
|
|
3876
4017
|
className,
|
|
4018
|
+
checkboxes,
|
|
3877
4019
|
...props
|
|
3878
4020
|
}) => {
|
|
3879
4021
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: ScCheckField_default.scCheckField + " " + className, ...props, children: [
|
|
@@ -3881,7 +4023,17 @@ var ScCheckField = ({
|
|
|
3881
4023
|
label,
|
|
3882
4024
|
" "
|
|
3883
4025
|
] }) }),
|
|
3884
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.
|
|
4026
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: ScCheckField_default.tabSwitcher, children: checkboxes ? checkboxes.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4027
|
+
ScPairtext,
|
|
4028
|
+
{
|
|
4029
|
+
content: item.label,
|
|
4030
|
+
type: "checkbox",
|
|
4031
|
+
checked: item.checked,
|
|
4032
|
+
onChange: item.onChange,
|
|
4033
|
+
className: ScCheckField_default.scPairtextInstance
|
|
4034
|
+
},
|
|
4035
|
+
i
|
|
4036
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
3885
4037
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3886
4038
|
ScPairtext,
|
|
3887
4039
|
{
|
|
@@ -3898,7 +4050,7 @@ var ScCheckField = ({
|
|
|
3898
4050
|
className: ScCheckField_default.scPairtextInstance
|
|
3899
4051
|
}
|
|
3900
4052
|
)
|
|
3901
|
-
] })
|
|
4053
|
+
] }) })
|
|
3902
4054
|
] });
|
|
3903
4055
|
};
|
|
3904
4056
|
|
|
@@ -4170,6 +4322,9 @@ var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
|
4170
4322
|
var ScTabField = ({
|
|
4171
4323
|
label = "Label",
|
|
4172
4324
|
className,
|
|
4325
|
+
tabs,
|
|
4326
|
+
activeTab,
|
|
4327
|
+
onTabChange,
|
|
4173
4328
|
...props
|
|
4174
4329
|
}) => {
|
|
4175
4330
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: ScTabField_default.scTabField + " " + className, children: [
|
|
@@ -4177,7 +4332,33 @@ var ScTabField = ({
|
|
|
4177
4332
|
label,
|
|
4178
4333
|
" "
|
|
4179
4334
|
] }) }),
|
|
4180
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4335
|
+
tabs ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4336
|
+
ScTabSwitcher,
|
|
4337
|
+
{
|
|
4338
|
+
tabCount: String(tabs.length),
|
|
4339
|
+
className: ScTabField_default.scTabSwitcherInstance,
|
|
4340
|
+
component: tabs[0] ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4341
|
+
ScTabComp,
|
|
4342
|
+
{
|
|
4343
|
+
text: tabs[0].label,
|
|
4344
|
+
type: "text-only",
|
|
4345
|
+
active: activeTab === tabs[0].value ? "true" : "false",
|
|
4346
|
+
onClick: () => onTabChange?.(tabs[0].value),
|
|
4347
|
+
style: { flex: 1 }
|
|
4348
|
+
}
|
|
4349
|
+
) : void 0,
|
|
4350
|
+
component2: tabs[1] ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4351
|
+
ScTabComp,
|
|
4352
|
+
{
|
|
4353
|
+
text: tabs[1].label,
|
|
4354
|
+
type: "text-only",
|
|
4355
|
+
active: activeTab === tabs[1].value ? "true" : "false",
|
|
4356
|
+
onClick: () => onTabChange?.(tabs[1].value),
|
|
4357
|
+
style: { flex: 1 }
|
|
4358
|
+
}
|
|
4359
|
+
) : void 0
|
|
4360
|
+
}
|
|
4361
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ScTabSwitcher, { className: ScTabField_default.scTabSwitcherInstance })
|
|
4181
4362
|
] });
|
|
4182
4363
|
};
|
|
4183
4364
|
|
|
@@ -4442,7 +4623,7 @@ var ScWorkspaceCard = ({
|
|
|
4442
4623
|
};
|
|
4443
4624
|
|
|
4444
4625
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.tsx
|
|
4445
|
-
var
|
|
4626
|
+
var import_react8 = require("react");
|
|
4446
4627
|
var import_icons53 = require("@streamoid/icons");
|
|
4447
4628
|
|
|
4448
4629
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.module.css
|
|
@@ -4463,12 +4644,13 @@ var ScWorkspaceSwitchCard_default = {
|
|
|
4463
4644
|
detailValueInfo: "ScWorkspaceSwitchCard_detailValueInfo",
|
|
4464
4645
|
detailValueSecondary: "ScWorkspaceSwitchCard_detailValueSecondary",
|
|
4465
4646
|
vDivider: "ScWorkspaceSwitchCard_vDivider",
|
|
4466
|
-
btnIcon: "ScWorkspaceSwitchCard_btnIcon"
|
|
4647
|
+
btnIcon: "ScWorkspaceSwitchCard_btnIcon",
|
|
4648
|
+
leaveBtn: "ScWorkspaceSwitchCard_leaveBtn"
|
|
4467
4649
|
};
|
|
4468
4650
|
|
|
4469
4651
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.tsx
|
|
4470
4652
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4471
|
-
function
|
|
4653
|
+
function ScWorkspaceSwitchCard({
|
|
4472
4654
|
wsName = "Workspace name is kepler",
|
|
4473
4655
|
role = "Admin",
|
|
4474
4656
|
plan = "Free",
|
|
@@ -4479,9 +4661,10 @@ function NscWorkspaceSwitch({
|
|
|
4479
4661
|
hover,
|
|
4480
4662
|
className,
|
|
4481
4663
|
onSwitch,
|
|
4482
|
-
onSettings
|
|
4664
|
+
onSettings,
|
|
4665
|
+
onLeave
|
|
4483
4666
|
}) {
|
|
4484
|
-
const [internalHover, setInternalHover] = (0,
|
|
4667
|
+
const [internalHover, setInternalHover] = (0, import_react8.useState)(false);
|
|
4485
4668
|
const isHover = hover !== void 0 ? hover : internalHover;
|
|
4486
4669
|
const isCurrent = type === "currentWS";
|
|
4487
4670
|
const isOther = type === "otherWS";
|
|
@@ -4574,9 +4757,847 @@ function NscWorkspaceSwitch({
|
|
|
4574
4757
|
}
|
|
4575
4758
|
)
|
|
4576
4759
|
}
|
|
4760
|
+
),
|
|
4761
|
+
isHover && !isAdmin && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4762
|
+
"div",
|
|
4763
|
+
{
|
|
4764
|
+
className: ScWorkspaceSwitchCard_default.leaveBtn,
|
|
4765
|
+
onClick: (e) => {
|
|
4766
|
+
e.stopPropagation();
|
|
4767
|
+
onLeave?.();
|
|
4768
|
+
},
|
|
4769
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_icons53.SiconLogout, { className: ScWorkspaceSwitchCard_default.btnIcon, color: "currentColor" })
|
|
4770
|
+
}
|
|
4577
4771
|
)
|
|
4578
4772
|
] })
|
|
4579
4773
|
}
|
|
4580
4774
|
);
|
|
4581
4775
|
}
|
|
4582
|
-
var
|
|
4776
|
+
var NscWorkspaceSwitch = ScWorkspaceSwitchCard;
|
|
4777
|
+
|
|
4778
|
+
// src/SC-Role-Mobile/ScRoleMobile.module.css
|
|
4779
|
+
var ScRoleMobile_default = {
|
|
4780
|
+
scRoleMobile: "ScRoleMobile_scRoleMobile",
|
|
4781
|
+
"role-admin": "ScRoleMobile_role-admin",
|
|
4782
|
+
"role-member": "ScRoleMobile_role-member",
|
|
4783
|
+
text: "ScRoleMobile_text"
|
|
4784
|
+
};
|
|
4785
|
+
|
|
4786
|
+
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
4787
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4788
|
+
var ScRoleMobile = ({
|
|
4789
|
+
role = "admin",
|
|
4790
|
+
className,
|
|
4791
|
+
...props
|
|
4792
|
+
}) => {
|
|
4793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4794
|
+
"div",
|
|
4795
|
+
{
|
|
4796
|
+
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
4797
|
+
...props,
|
|
4798
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
4799
|
+
}
|
|
4800
|
+
);
|
|
4801
|
+
};
|
|
4802
|
+
|
|
4803
|
+
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.module.css
|
|
4804
|
+
var ScProfileV2Mobile_default = {
|
|
4805
|
+
scProfileV2Mobile: "ScProfileV2Mobile_scProfileV2Mobile",
|
|
4806
|
+
profileImage: "ScProfileV2Mobile_profileImage",
|
|
4807
|
+
image: "ScProfileV2Mobile_image",
|
|
4808
|
+
initials: "ScProfileV2Mobile_initials",
|
|
4809
|
+
userInfo: "ScProfileV2Mobile_userInfo",
|
|
4810
|
+
userName: "ScProfileV2Mobile_userName",
|
|
4811
|
+
userEmail: "ScProfileV2Mobile_userEmail"
|
|
4812
|
+
};
|
|
4813
|
+
|
|
4814
|
+
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
4815
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4816
|
+
var ScProfileV2Mobile = ({
|
|
4817
|
+
name = "Chris Hemsworth",
|
|
4818
|
+
email = "chris@kepler.com",
|
|
4819
|
+
imageUrl,
|
|
4820
|
+
dpPosition = "left",
|
|
4821
|
+
className,
|
|
4822
|
+
...props
|
|
4823
|
+
}) => {
|
|
4824
|
+
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
4825
|
+
const profileImage = /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: ScProfileV2Mobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("img", { src: imageUrl, alt: name, className: ScProfileV2Mobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: ScProfileV2Mobile_default.initials, children: initials }) });
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4827
|
+
"div",
|
|
4828
|
+
{
|
|
4829
|
+
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
4830
|
+
...props,
|
|
4831
|
+
children: [
|
|
4832
|
+
dpPosition === "left" && profileImage,
|
|
4833
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: ScProfileV2Mobile_default.userInfo, children: [
|
|
4834
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: ScProfileV2Mobile_default.userName, children: name }),
|
|
4835
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: ScProfileV2Mobile_default.userEmail, children: email })
|
|
4836
|
+
] }),
|
|
4837
|
+
dpPosition === "right" && profileImage
|
|
4838
|
+
]
|
|
4839
|
+
}
|
|
4840
|
+
);
|
|
4841
|
+
};
|
|
4842
|
+
|
|
4843
|
+
// src/SC-tableList-mobile/ScTableListMobile.module.css
|
|
4844
|
+
var ScTableListMobile_default = {
|
|
4845
|
+
scTableListMobile: "ScTableListMobile_scTableListMobile",
|
|
4846
|
+
profileRow: "ScTableListMobile_profileRow",
|
|
4847
|
+
userInfo: "ScTableListMobile_userInfo",
|
|
4848
|
+
userName: "ScTableListMobile_userName",
|
|
4849
|
+
userEmail: "ScTableListMobile_userEmail",
|
|
4850
|
+
profileImage: "ScTableListMobile_profileImage",
|
|
4851
|
+
image: "ScTableListMobile_image",
|
|
4852
|
+
initials: "ScTableListMobile_initials",
|
|
4853
|
+
detailsRow: "ScTableListMobile_detailsRow",
|
|
4854
|
+
roleBadge: "ScTableListMobile_roleBadge",
|
|
4855
|
+
roleText: "ScTableListMobile_roleText",
|
|
4856
|
+
accessInfo: "ScTableListMobile_accessInfo",
|
|
4857
|
+
accessGroup: "ScTableListMobile_accessGroup",
|
|
4858
|
+
accessIcon: "ScTableListMobile_accessIcon"
|
|
4859
|
+
};
|
|
4860
|
+
|
|
4861
|
+
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
4862
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4863
|
+
var ScTableListMobile = ({
|
|
4864
|
+
name = "Chris Hemsworth",
|
|
4865
|
+
email = "chris@kepler.com",
|
|
4866
|
+
imageUrl,
|
|
4867
|
+
role = "Admin",
|
|
4868
|
+
accessIcons,
|
|
4869
|
+
permissionIcons,
|
|
4870
|
+
onRowClick,
|
|
4871
|
+
className,
|
|
4872
|
+
...props
|
|
4873
|
+
}) => {
|
|
4874
|
+
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
4875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4876
|
+
"div",
|
|
4877
|
+
{
|
|
4878
|
+
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
4879
|
+
onClick: onRowClick,
|
|
4880
|
+
...props,
|
|
4881
|
+
children: [
|
|
4882
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: ScTableListMobile_default.profileRow, children: [
|
|
4883
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: ScTableListMobile_default.userInfo, children: [
|
|
4884
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: ScTableListMobile_default.userName, children: name }),
|
|
4885
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: ScTableListMobile_default.userEmail, children: email })
|
|
4886
|
+
] }),
|
|
4887
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: ScTableListMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("img", { src: imageUrl, alt: name, className: ScTableListMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: ScTableListMobile_default.initials, children: initials }) })
|
|
4888
|
+
] }),
|
|
4889
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: ScTableListMobile_default.detailsRow, children: [
|
|
4890
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: ScTableListMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: ScTableListMobile_default.roleText, children: role }) }),
|
|
4891
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: ScTableListMobile_default.accessInfo, children: [
|
|
4892
|
+
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: accessIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) }),
|
|
4893
|
+
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: permissionIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) })
|
|
4894
|
+
] })
|
|
4895
|
+
] })
|
|
4896
|
+
]
|
|
4897
|
+
}
|
|
4898
|
+
);
|
|
4899
|
+
};
|
|
4900
|
+
|
|
4901
|
+
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.module.css
|
|
4902
|
+
var ScWorkspaceSwitchMobile_default = {
|
|
4903
|
+
scWorkspaceSwitchMobile: "ScWorkspaceSwitchMobile_scWorkspaceSwitchMobile",
|
|
4904
|
+
"variant-current": "ScWorkspaceSwitchMobile_variant-current",
|
|
4905
|
+
"variant-other": "ScWorkspaceSwitchMobile_variant-other",
|
|
4906
|
+
workspaceInfo: "ScWorkspaceSwitchMobile_workspaceInfo",
|
|
4907
|
+
wsNameRow: "ScWorkspaceSwitchMobile_wsNameRow",
|
|
4908
|
+
initialsBox: "ScWorkspaceSwitchMobile_initialsBox",
|
|
4909
|
+
initialsText: "ScWorkspaceSwitchMobile_initialsText",
|
|
4910
|
+
storeName: "ScWorkspaceSwitchMobile_storeName",
|
|
4911
|
+
roleBadge: "ScWorkspaceSwitchMobile_roleBadge",
|
|
4912
|
+
roleText: "ScWorkspaceSwitchMobile_roleText",
|
|
4913
|
+
divider: "ScWorkspaceSwitchMobile_divider",
|
|
4914
|
+
ownerRow: "ScWorkspaceSwitchMobile_ownerRow",
|
|
4915
|
+
ownerIconContainer: "ScWorkspaceSwitchMobile_ownerIconContainer",
|
|
4916
|
+
ownerIcon: "ScWorkspaceSwitchMobile_ownerIcon",
|
|
4917
|
+
ownerText: "ScWorkspaceSwitchMobile_ownerText"
|
|
4918
|
+
};
|
|
4919
|
+
|
|
4920
|
+
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
4921
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4922
|
+
var ScWorkspaceSwitchMobile = ({
|
|
4923
|
+
storeName = "Stores",
|
|
4924
|
+
initials = "WS",
|
|
4925
|
+
role = "Admin",
|
|
4926
|
+
ownerId = "rohan@streamoid.com",
|
|
4927
|
+
currentWs = true,
|
|
4928
|
+
ownerIcon,
|
|
4929
|
+
className,
|
|
4930
|
+
onClick,
|
|
4931
|
+
...props
|
|
4932
|
+
}) => {
|
|
4933
|
+
const variant = currentWs ? "current" : "other";
|
|
4934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4935
|
+
"div",
|
|
4936
|
+
{
|
|
4937
|
+
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
4938
|
+
onClick,
|
|
4939
|
+
...props,
|
|
4940
|
+
children: [
|
|
4941
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.workspaceInfo, children: [
|
|
4942
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.wsNameRow, children: [
|
|
4943
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: ScWorkspaceSwitchMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: ScWorkspaceSwitchMobile_default.initialsText, children: initials }) }),
|
|
4944
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: ScWorkspaceSwitchMobile_default.storeName, children: storeName })
|
|
4945
|
+
] }),
|
|
4946
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
4947
|
+
] }),
|
|
4948
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: ScWorkspaceSwitchMobile_default.divider }),
|
|
4949
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.ownerRow, children: [
|
|
4950
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: ScWorkspaceSwitchMobile_default.ownerIconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: ScWorkspaceSwitchMobile_default.ownerIcon, children: ownerIcon }) }),
|
|
4951
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: ScWorkspaceSwitchMobile_default.ownerText, children: ownerId })
|
|
4952
|
+
] })
|
|
4953
|
+
]
|
|
4954
|
+
}
|
|
4955
|
+
);
|
|
4956
|
+
};
|
|
4957
|
+
|
|
4958
|
+
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.module.css
|
|
4959
|
+
var ScWorkspaceSettingsMobile_default = {
|
|
4960
|
+
scWorkspaceSettingsMobile: "ScWorkspaceSettingsMobile_scWorkspaceSettingsMobile",
|
|
4961
|
+
"variant-current": "ScWorkspaceSettingsMobile_variant-current",
|
|
4962
|
+
"variant-other": "ScWorkspaceSettingsMobile_variant-other",
|
|
4963
|
+
workspaceInfo: "ScWorkspaceSettingsMobile_workspaceInfo",
|
|
4964
|
+
wsNameRow: "ScWorkspaceSettingsMobile_wsNameRow",
|
|
4965
|
+
initialsBox: "ScWorkspaceSettingsMobile_initialsBox",
|
|
4966
|
+
initialsText: "ScWorkspaceSettingsMobile_initialsText",
|
|
4967
|
+
storeName: "ScWorkspaceSettingsMobile_storeName",
|
|
4968
|
+
roleBadge: "ScWorkspaceSettingsMobile_roleBadge",
|
|
4969
|
+
roleText: "ScWorkspaceSettingsMobile_roleText",
|
|
4970
|
+
divider: "ScWorkspaceSettingsMobile_divider",
|
|
4971
|
+
infoRow: "ScWorkspaceSettingsMobile_infoRow",
|
|
4972
|
+
iconContainer: "ScWorkspaceSettingsMobile_iconContainer",
|
|
4973
|
+
icon: "ScWorkspaceSettingsMobile_icon",
|
|
4974
|
+
infoText: "ScWorkspaceSettingsMobile_infoText"
|
|
4975
|
+
};
|
|
4976
|
+
|
|
4977
|
+
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
4978
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4979
|
+
var ScWorkspaceSettingsMobile = ({
|
|
4980
|
+
storeName = "Stores",
|
|
4981
|
+
initials = "WS",
|
|
4982
|
+
role = "Admin",
|
|
4983
|
+
ownerId = "rohan@streamoid.com",
|
|
4984
|
+
teamCount = "12 Users",
|
|
4985
|
+
currentWs = true,
|
|
4986
|
+
ownerIcon,
|
|
4987
|
+
teamIcon,
|
|
4988
|
+
className,
|
|
4989
|
+
onClick,
|
|
4990
|
+
...props
|
|
4991
|
+
}) => {
|
|
4992
|
+
const variant = currentWs ? "current" : "other";
|
|
4993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
4994
|
+
"div",
|
|
4995
|
+
{
|
|
4996
|
+
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
4997
|
+
onClick,
|
|
4998
|
+
...props,
|
|
4999
|
+
children: [
|
|
5000
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.workspaceInfo, children: [
|
|
5001
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.wsNameRow, children: [
|
|
5002
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: ScWorkspaceSettingsMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: ScWorkspaceSettingsMobile_default.initialsText, children: initials }) }),
|
|
5003
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: ScWorkspaceSettingsMobile_default.storeName, children: storeName })
|
|
5004
|
+
] }),
|
|
5005
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
5006
|
+
] }),
|
|
5007
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: ScWorkspaceSettingsMobile_default.divider }),
|
|
5008
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
5009
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: ownerIcon }) }),
|
|
5010
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: ownerId })
|
|
5011
|
+
] }),
|
|
5012
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
5013
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: teamIcon && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: teamIcon }) }),
|
|
5014
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: teamCount })
|
|
5015
|
+
] })
|
|
5016
|
+
]
|
|
5017
|
+
}
|
|
5018
|
+
);
|
|
5019
|
+
};
|
|
5020
|
+
|
|
5021
|
+
// src/SC-MobileTopNav/ScMobileTopNav.module.css
|
|
5022
|
+
var ScMobileTopNav_default = {
|
|
5023
|
+
scMobileTopNav: "ScMobileTopNav_scMobileTopNav",
|
|
5024
|
+
withBorder: "ScMobileTopNav_withBorder",
|
|
5025
|
+
iconContainer: "ScMobileTopNav_iconContainer",
|
|
5026
|
+
iconPlaceholder: "ScMobileTopNav_iconPlaceholder",
|
|
5027
|
+
hidden: "ScMobileTopNav_hidden",
|
|
5028
|
+
chatTitle: "ScMobileTopNav_chatTitle",
|
|
5029
|
+
heading: "ScMobileTopNav_heading",
|
|
5030
|
+
searchRow: "ScMobileTopNav_searchRow",
|
|
5031
|
+
searchInputContainer: "ScMobileTopNav_searchInputContainer",
|
|
5032
|
+
searchInput: "ScMobileTopNav_searchInput",
|
|
5033
|
+
searchField: "ScMobileTopNav_searchField"
|
|
5034
|
+
};
|
|
5035
|
+
|
|
5036
|
+
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
5037
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5038
|
+
var ScMobileTopNav = ({
|
|
5039
|
+
type = "home",
|
|
5040
|
+
searchIcon = false,
|
|
5041
|
+
search = false,
|
|
5042
|
+
heading = "Heading",
|
|
5043
|
+
chatTitle = "Chat title comes here...",
|
|
5044
|
+
searchPlaceholder = "Search...",
|
|
5045
|
+
searchValue,
|
|
5046
|
+
menuIcon,
|
|
5047
|
+
searchIconElement,
|
|
5048
|
+
closeIcon,
|
|
5049
|
+
moreIcon,
|
|
5050
|
+
onMenuClick,
|
|
5051
|
+
onSearchClick,
|
|
5052
|
+
onCloseClick,
|
|
5053
|
+
onMoreClick,
|
|
5054
|
+
onSearchChange,
|
|
5055
|
+
className,
|
|
5056
|
+
...props
|
|
5057
|
+
}) => {
|
|
5058
|
+
const hasBorder = type === "chat" || type === "inApp";
|
|
5059
|
+
const showSearch = type === "inApp" && searchIcon && search;
|
|
5060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
5061
|
+
"div",
|
|
5062
|
+
{
|
|
5063
|
+
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
5064
|
+
...props,
|
|
5065
|
+
children: [
|
|
5066
|
+
type === "home" && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
5067
|
+
type === "chat" && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
5068
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
5069
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: ScMobileTopNav_default.chatTitle, children: chatTitle }),
|
|
5070
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMoreClick, children: moreIcon || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
5071
|
+
] }),
|
|
5072
|
+
showSearch && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
5073
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.searchRow, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: ScMobileTopNav_default.searchInputContainer, children: [
|
|
5074
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onSearchClick, children: searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
5075
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.searchInput, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5076
|
+
"input",
|
|
5077
|
+
{
|
|
5078
|
+
type: "text",
|
|
5079
|
+
className: ScMobileTopNav_default.searchField,
|
|
5080
|
+
placeholder: searchPlaceholder,
|
|
5081
|
+
value: searchValue,
|
|
5082
|
+
onChange: (e) => onSearchChange?.(e.target.value)
|
|
5083
|
+
}
|
|
5084
|
+
) })
|
|
5085
|
+
] }) }),
|
|
5086
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
5087
|
+
] }),
|
|
5088
|
+
type === "inApp" && !search && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
5089
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
5090
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: ScMobileTopNav_default.heading, children: heading }),
|
|
5091
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5092
|
+
"div",
|
|
5093
|
+
{
|
|
5094
|
+
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
5095
|
+
onClick: onSearchClick,
|
|
5096
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
5097
|
+
}
|
|
5098
|
+
)
|
|
5099
|
+
] })
|
|
5100
|
+
]
|
|
5101
|
+
}
|
|
5102
|
+
);
|
|
5103
|
+
};
|
|
5104
|
+
|
|
5105
|
+
// src/SC-MobileBottomAction/ScMobileBottomAction.module.css
|
|
5106
|
+
var ScMobileBottomAction_default = {
|
|
5107
|
+
scMobileBottomAction: "ScMobileBottomAction_scMobileBottomAction",
|
|
5108
|
+
button: "ScMobileBottomAction_button",
|
|
5109
|
+
disabled: "ScMobileBottomAction_disabled",
|
|
5110
|
+
buttonText: "ScMobileBottomAction_buttonText"
|
|
5111
|
+
};
|
|
5112
|
+
|
|
5113
|
+
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
5114
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5115
|
+
var ScMobileBottomAction = ({
|
|
5116
|
+
text = "Save Changes",
|
|
5117
|
+
disabled = false,
|
|
5118
|
+
onClick,
|
|
5119
|
+
className,
|
|
5120
|
+
...props
|
|
5121
|
+
}) => {
|
|
5122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5123
|
+
"div",
|
|
5124
|
+
{
|
|
5125
|
+
className: ScMobileBottomAction_default.scMobileBottomAction + " " + className,
|
|
5126
|
+
...props,
|
|
5127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5128
|
+
"button",
|
|
5129
|
+
{
|
|
5130
|
+
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
5131
|
+
onClick,
|
|
5132
|
+
disabled,
|
|
5133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
5134
|
+
}
|
|
5135
|
+
)
|
|
5136
|
+
}
|
|
5137
|
+
);
|
|
5138
|
+
};
|
|
5139
|
+
|
|
5140
|
+
// src/SC-PopUpMenu/ScPopUpMenu.module.css
|
|
5141
|
+
var ScPopUpMenu_default = {
|
|
5142
|
+
scPopUpMenu: "ScPopUpMenu_scPopUpMenu",
|
|
5143
|
+
"state-default": "ScPopUpMenu_state-default",
|
|
5144
|
+
"state-clicked": "ScPopUpMenu_state-clicked",
|
|
5145
|
+
icon: "ScPopUpMenu_icon",
|
|
5146
|
+
menuText: "ScPopUpMenu_menuText"
|
|
5147
|
+
};
|
|
5148
|
+
|
|
5149
|
+
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
5150
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5151
|
+
var ScPopUpMenu = ({
|
|
5152
|
+
menu = "Options",
|
|
5153
|
+
state = "default",
|
|
5154
|
+
icon,
|
|
5155
|
+
onClick,
|
|
5156
|
+
className,
|
|
5157
|
+
...props
|
|
5158
|
+
}) => {
|
|
5159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
5160
|
+
"div",
|
|
5161
|
+
{
|
|
5162
|
+
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
5163
|
+
onClick,
|
|
5164
|
+
...props,
|
|
5165
|
+
children: [
|
|
5166
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
5167
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
5168
|
+
]
|
|
5169
|
+
}
|
|
5170
|
+
);
|
|
5171
|
+
};
|
|
5172
|
+
|
|
5173
|
+
// src/SC-referralCard-Mobile/ScReferralCardMobile.module.css
|
|
5174
|
+
var ScReferralCardMobile_default = {
|
|
5175
|
+
scReferralCardMobile: "ScReferralCardMobile_scReferralCardMobile",
|
|
5176
|
+
userRow: "ScReferralCardMobile_userRow",
|
|
5177
|
+
profileSection: "ScReferralCardMobile_profileSection",
|
|
5178
|
+
profileImage: "ScReferralCardMobile_profileImage",
|
|
5179
|
+
image: "ScReferralCardMobile_image",
|
|
5180
|
+
initials: "ScReferralCardMobile_initials",
|
|
5181
|
+
userInfo: "ScReferralCardMobile_userInfo",
|
|
5182
|
+
userName: "ScReferralCardMobile_userName",
|
|
5183
|
+
userEmail: "ScReferralCardMobile_userEmail",
|
|
5184
|
+
badge: "ScReferralCardMobile_badge",
|
|
5185
|
+
badgeText: "ScReferralCardMobile_badgeText",
|
|
5186
|
+
divider: "ScReferralCardMobile_divider",
|
|
5187
|
+
detailsRow: "ScReferralCardMobile_detailsRow",
|
|
5188
|
+
dateText: "ScReferralCardMobile_dateText",
|
|
5189
|
+
creditsText: "ScReferralCardMobile_creditsText"
|
|
5190
|
+
};
|
|
5191
|
+
|
|
5192
|
+
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
5193
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
5194
|
+
var ScReferralCardMobile = ({
|
|
5195
|
+
name = "Chris Hemsworth",
|
|
5196
|
+
email = "chris@kepler.com",
|
|
5197
|
+
imageUrl,
|
|
5198
|
+
badge = "Confirmed",
|
|
5199
|
+
date = "Nov 9th, 2025",
|
|
5200
|
+
credits = "+ 500",
|
|
5201
|
+
onClick,
|
|
5202
|
+
className,
|
|
5203
|
+
...props
|
|
5204
|
+
}) => {
|
|
5205
|
+
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
5206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
5207
|
+
"div",
|
|
5208
|
+
{
|
|
5209
|
+
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
5210
|
+
onClick,
|
|
5211
|
+
...props,
|
|
5212
|
+
children: [
|
|
5213
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: ScReferralCardMobile_default.userRow, children: [
|
|
5214
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: ScReferralCardMobile_default.profileSection, children: [
|
|
5215
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: ScReferralCardMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("img", { src: imageUrl, alt: name, className: ScReferralCardMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: ScReferralCardMobile_default.initials, children: initials }) }),
|
|
5216
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: ScReferralCardMobile_default.userInfo, children: [
|
|
5217
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: ScReferralCardMobile_default.userName, children: name }),
|
|
5218
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: ScReferralCardMobile_default.userEmail, children: email })
|
|
5219
|
+
] })
|
|
5220
|
+
] }),
|
|
5221
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
5222
|
+
] }),
|
|
5223
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: ScReferralCardMobile_default.divider }),
|
|
5224
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: ScReferralCardMobile_default.detailsRow, children: [
|
|
5225
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: ScReferralCardMobile_default.dateText, children: date }),
|
|
5226
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: ScReferralCardMobile_default.creditsText, children: credits })
|
|
5227
|
+
] })
|
|
5228
|
+
]
|
|
5229
|
+
}
|
|
5230
|
+
);
|
|
5231
|
+
};
|
|
5232
|
+
|
|
5233
|
+
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.module.css
|
|
5234
|
+
var InvoiceHistoryMobile_default = {
|
|
5235
|
+
invoiceHistoryMobile: "InvoiceHistoryMobile_invoiceHistoryMobile",
|
|
5236
|
+
info: "InvoiceHistoryMobile_info",
|
|
5237
|
+
invoiceId: "InvoiceHistoryMobile_invoiceId",
|
|
5238
|
+
date: "InvoiceHistoryMobile_date",
|
|
5239
|
+
amount: "InvoiceHistoryMobile_amount"
|
|
5240
|
+
};
|
|
5241
|
+
|
|
5242
|
+
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
5243
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5244
|
+
var InvoiceHistoryMobile = ({
|
|
5245
|
+
invoiceId = "# INV-2800-2026",
|
|
5246
|
+
date = "Nov 9th, 2025",
|
|
5247
|
+
amount = "$320.89",
|
|
5248
|
+
className
|
|
5249
|
+
}) => {
|
|
5250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
5251
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: InvoiceHistoryMobile_default.info, children: [
|
|
5252
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: InvoiceHistoryMobile_default.invoiceId, children: invoiceId }),
|
|
5253
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: InvoiceHistoryMobile_default.date, children: date })
|
|
5254
|
+
] }),
|
|
5255
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
5256
|
+
] });
|
|
5257
|
+
};
|
|
5258
|
+
|
|
5259
|
+
// src/SC-UsageHistoryMobile/UsageHistoryMobile.module.css
|
|
5260
|
+
var UsageHistoryMobile_default = {
|
|
5261
|
+
usageHistoryMobile: "UsageHistoryMobile_usageHistoryMobile",
|
|
5262
|
+
row1: "UsageHistoryMobile_row1",
|
|
5263
|
+
serviceName: "UsageHistoryMobile_serviceName",
|
|
5264
|
+
credits: "UsageHistoryMobile_credits",
|
|
5265
|
+
row2: "UsageHistoryMobile_row2",
|
|
5266
|
+
metaLeft: "UsageHistoryMobile_metaLeft",
|
|
5267
|
+
metaText: "UsageHistoryMobile_metaText",
|
|
5268
|
+
divider: "UsageHistoryMobile_divider",
|
|
5269
|
+
balance: "UsageHistoryMobile_balance"
|
|
5270
|
+
};
|
|
5271
|
+
|
|
5272
|
+
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
5273
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
5274
|
+
var UsageHistoryMobile = ({
|
|
5275
|
+
serviceName = "Artifax Generation",
|
|
5276
|
+
credits = "50",
|
|
5277
|
+
userName = "Rohan",
|
|
5278
|
+
date = "Nov 9th, 2025",
|
|
5279
|
+
balance = "84,902",
|
|
5280
|
+
className
|
|
5281
|
+
}) => {
|
|
5282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: UsageHistoryMobile_default.usageHistoryMobile + " " + (className ?? ""), children: [
|
|
5283
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: UsageHistoryMobile_default.row1, children: [
|
|
5284
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: UsageHistoryMobile_default.serviceName, children: serviceName }),
|
|
5285
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: UsageHistoryMobile_default.credits, children: credits })
|
|
5286
|
+
] }),
|
|
5287
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: UsageHistoryMobile_default.row2, children: [
|
|
5288
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: UsageHistoryMobile_default.metaLeft, children: [
|
|
5289
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: userName }),
|
|
5290
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: UsageHistoryMobile_default.divider }),
|
|
5291
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: date })
|
|
5292
|
+
] }),
|
|
5293
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
5294
|
+
] })
|
|
5295
|
+
] });
|
|
5296
|
+
};
|
|
5297
|
+
|
|
5298
|
+
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.module.css
|
|
5299
|
+
var ScWorkspaceSwitchMobileV2_default = {
|
|
5300
|
+
scWorkspaceSwitchMobileV2: "ScWorkspaceSwitchMobileV2_scWorkspaceSwitchMobileV2",
|
|
5301
|
+
"type-currentWS": "ScWorkspaceSwitchMobileV2_type-currentWS",
|
|
5302
|
+
"type-otherWS": "ScWorkspaceSwitchMobileV2_type-otherWS",
|
|
5303
|
+
"type-display": "ScWorkspaceSwitchMobileV2_type-display",
|
|
5304
|
+
workspaceInfo: "ScWorkspaceSwitchMobileV2_workspaceInfo",
|
|
5305
|
+
dpContainer: "ScWorkspaceSwitchMobileV2_dpContainer",
|
|
5306
|
+
textContainer: "ScWorkspaceSwitchMobileV2_textContainer",
|
|
5307
|
+
wsName: "ScWorkspaceSwitchMobileV2_wsName",
|
|
5308
|
+
userDetails: "ScWorkspaceSwitchMobileV2_userDetails",
|
|
5309
|
+
roleText: "ScWorkspaceSwitchMobileV2_roleText",
|
|
5310
|
+
roleMember: "ScWorkspaceSwitchMobileV2_roleMember",
|
|
5311
|
+
dot: "ScWorkspaceSwitchMobileV2_dot",
|
|
5312
|
+
planText: "ScWorkspaceSwitchMobileV2_planText",
|
|
5313
|
+
ownerText: "ScWorkspaceSwitchMobileV2_ownerText"
|
|
5314
|
+
};
|
|
5315
|
+
|
|
5316
|
+
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
5317
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
5318
|
+
var ScWorkspaceSwitchMobileV2 = ({
|
|
5319
|
+
wsName = "Workspace name is kepler",
|
|
5320
|
+
initials = "WS",
|
|
5321
|
+
imageUrl,
|
|
5322
|
+
role = "Admin",
|
|
5323
|
+
plan = "Free",
|
|
5324
|
+
ownerId = "rohan@streamoid.com",
|
|
5325
|
+
type = "currentWS",
|
|
5326
|
+
onClick,
|
|
5327
|
+
className,
|
|
5328
|
+
...props
|
|
5329
|
+
}) => {
|
|
5330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
5331
|
+
"div",
|
|
5332
|
+
{
|
|
5333
|
+
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
5334
|
+
onClick,
|
|
5335
|
+
...props,
|
|
5336
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
5337
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
5338
|
+
ScDp,
|
|
5339
|
+
{
|
|
5340
|
+
type: imageUrl ? "image" : "initial",
|
|
5341
|
+
variant: "workspace",
|
|
5342
|
+
initial: initials,
|
|
5343
|
+
imageUrl,
|
|
5344
|
+
size: 60,
|
|
5345
|
+
style: {
|
|
5346
|
+
borderRadius: "var(--radius-xl, 12px)",
|
|
5347
|
+
...type === "currentWS" && !imageUrl ? { background: "var(--alias-fill-neutral-neutralactive, #313131)" } : {}
|
|
5348
|
+
}
|
|
5349
|
+
}
|
|
5350
|
+
) }),
|
|
5351
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
5352
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
5353
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
5354
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
5355
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
5356
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
5357
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
5358
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.ownerText, children: ownerId })
|
|
5359
|
+
] })
|
|
5360
|
+
] })
|
|
5361
|
+
] })
|
|
5362
|
+
}
|
|
5363
|
+
);
|
|
5364
|
+
};
|
|
5365
|
+
|
|
5366
|
+
// src/SC-imageField/ScImageField.tsx
|
|
5367
|
+
var import_react9 = require("react");
|
|
5368
|
+
|
|
5369
|
+
// src/SC-imageField/ScImageField.module.css
|
|
5370
|
+
var ScImageField_default = {
|
|
5371
|
+
scImageField: "ScImageField_scImageField",
|
|
5372
|
+
labelContainer: "ScImageField_labelContainer",
|
|
5373
|
+
label: "ScImageField_label",
|
|
5374
|
+
uploadArea: "ScImageField_uploadArea",
|
|
5375
|
+
uploadIcon: "ScImageField_uploadIcon",
|
|
5376
|
+
uploadText: "ScImageField_uploadText",
|
|
5377
|
+
previewArea: "ScImageField_previewArea",
|
|
5378
|
+
previewImage: "ScImageField_previewImage",
|
|
5379
|
+
fileName: "ScImageField_fileName",
|
|
5380
|
+
removeIcon: "ScImageField_removeIcon"
|
|
5381
|
+
};
|
|
5382
|
+
|
|
5383
|
+
// src/SC-imageField/ScImageField.tsx
|
|
5384
|
+
var import_icons54 = require("@streamoid/icons");
|
|
5385
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
5386
|
+
var ScImageField = ({
|
|
5387
|
+
label = "Label",
|
|
5388
|
+
imagePreview,
|
|
5389
|
+
imageName,
|
|
5390
|
+
onFileSelect,
|
|
5391
|
+
onRemove,
|
|
5392
|
+
className
|
|
5393
|
+
}) => {
|
|
5394
|
+
const inputRef = (0, import_react9.useRef)(null);
|
|
5395
|
+
const hasImage = !!imagePreview;
|
|
5396
|
+
function handleClick() {
|
|
5397
|
+
if (!hasImage) {
|
|
5398
|
+
inputRef.current?.click();
|
|
5399
|
+
}
|
|
5400
|
+
}
|
|
5401
|
+
function handleChange(e) {
|
|
5402
|
+
const file = e.target.files?.[0];
|
|
5403
|
+
if (file) {
|
|
5404
|
+
onFileSelect?.(file);
|
|
5405
|
+
}
|
|
5406
|
+
e.target.value = "";
|
|
5407
|
+
}
|
|
5408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
5409
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5410
|
+
"input",
|
|
5411
|
+
{
|
|
5412
|
+
ref: inputRef,
|
|
5413
|
+
type: "file",
|
|
5414
|
+
accept: "image/*",
|
|
5415
|
+
style: { display: "none" },
|
|
5416
|
+
onChange: handleChange
|
|
5417
|
+
}
|
|
5418
|
+
),
|
|
5419
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: ScImageField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: ScImageField_default.label, children: label }) }),
|
|
5420
|
+
hasImage ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: ScImageField_default.previewArea, children: [
|
|
5421
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5422
|
+
"img",
|
|
5423
|
+
{
|
|
5424
|
+
className: ScImageField_default.previewImage,
|
|
5425
|
+
src: imagePreview,
|
|
5426
|
+
alt: "preview"
|
|
5427
|
+
}
|
|
5428
|
+
),
|
|
5429
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
5430
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
5431
|
+
import_icons54.SiconDelete,
|
|
5432
|
+
{
|
|
5433
|
+
className: ScImageField_default.removeIcon,
|
|
5434
|
+
color: "var(--alias-text-and-icons-error, #d11a1a)",
|
|
5435
|
+
onClick: (e) => {
|
|
5436
|
+
e.stopPropagation();
|
|
5437
|
+
onRemove?.();
|
|
5438
|
+
}
|
|
5439
|
+
}
|
|
5440
|
+
)
|
|
5441
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: ScImageField_default.uploadArea, onClick: handleClick, children: [
|
|
5442
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons54.SiconUpload, { className: ScImageField_default.uploadIcon, color: "var(--alias-text-and-icons-secondary, #dadada)" }),
|
|
5443
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: ScImageField_default.uploadText, children: "Click to upload" })
|
|
5444
|
+
] })
|
|
5445
|
+
] });
|
|
5446
|
+
};
|
|
5447
|
+
|
|
5448
|
+
// src/SC-settingsTabComp/ScSettingsTabComp.module.css
|
|
5449
|
+
var ScSettingsTabComp_default = {
|
|
5450
|
+
scSettingsTabComp: "ScSettingsTabComp_scSettingsTabComp",
|
|
5451
|
+
tabText: "ScSettingsTabComp_tabText",
|
|
5452
|
+
"active-true": "ScSettingsTabComp_active-true",
|
|
5453
|
+
"active-false": "ScSettingsTabComp_active-false"
|
|
5454
|
+
};
|
|
5455
|
+
|
|
5456
|
+
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
5457
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
5458
|
+
var ScSettingsTabComp = ({
|
|
5459
|
+
tabName = "Tab",
|
|
5460
|
+
active = false,
|
|
5461
|
+
onClick,
|
|
5462
|
+
className
|
|
5463
|
+
}) => {
|
|
5464
|
+
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
5465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
5466
|
+
"div",
|
|
5467
|
+
{
|
|
5468
|
+
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
5469
|
+
onClick,
|
|
5470
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
5471
|
+
}
|
|
5472
|
+
);
|
|
5473
|
+
};
|
|
5474
|
+
|
|
5475
|
+
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.module.css
|
|
5476
|
+
var ScCreditsUsageCardMobile_default = {
|
|
5477
|
+
scCreditsUsageCardMobile: "ScCreditsUsageCardMobile_scCreditsUsageCardMobile",
|
|
5478
|
+
header: "ScCreditsUsageCardMobile_header",
|
|
5479
|
+
headerIcon: "ScCreditsUsageCardMobile_headerIcon",
|
|
5480
|
+
headerLabel: "ScCreditsUsageCardMobile_headerLabel",
|
|
5481
|
+
divider: "ScCreditsUsageCardMobile_divider",
|
|
5482
|
+
usageInfo: "ScCreditsUsageCardMobile_usageInfo",
|
|
5483
|
+
usageText: "ScCreditsUsageCardMobile_usageText",
|
|
5484
|
+
remainingText: "ScCreditsUsageCardMobile_remainingText",
|
|
5485
|
+
scButtonInstance: "ScCreditsUsageCardMobile_scButtonInstance"
|
|
5486
|
+
};
|
|
5487
|
+
|
|
5488
|
+
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
5489
|
+
var import_icons55 = require("@streamoid/icons");
|
|
5490
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5491
|
+
var ScCreditsUsageCardMobile = ({
|
|
5492
|
+
usageLabel = "Credits usage",
|
|
5493
|
+
usageText = "8,450 / 30,000",
|
|
5494
|
+
remainingText = "21,550 (60%) Remaining",
|
|
5495
|
+
buyButtonText = "Buy credits",
|
|
5496
|
+
onBuyClick,
|
|
5497
|
+
className,
|
|
5498
|
+
...props
|
|
5499
|
+
}) => {
|
|
5500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: ScCreditsUsageCardMobile_default.scCreditsUsageCardMobile + " " + (className ?? ""), ...props, children: [
|
|
5501
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: ScCreditsUsageCardMobile_default.header, children: [
|
|
5502
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5503
|
+
import_icons55.SiconCredits,
|
|
5504
|
+
{
|
|
5505
|
+
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
5506
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
5507
|
+
}
|
|
5508
|
+
),
|
|
5509
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
5510
|
+
] }),
|
|
5511
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: ScCreditsUsageCardMobile_default.divider }),
|
|
5512
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: ScCreditsUsageCardMobile_default.usageInfo, children: [
|
|
5513
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: ScCreditsUsageCardMobile_default.usageText, children: usageText }),
|
|
5514
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: ScCreditsUsageCardMobile_default.remainingText, children: remainingText })
|
|
5515
|
+
] }),
|
|
5516
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
5517
|
+
ScButton,
|
|
5518
|
+
{
|
|
5519
|
+
text: buyButtonText,
|
|
5520
|
+
variant: "secondary",
|
|
5521
|
+
size: "md",
|
|
5522
|
+
className: ScCreditsUsageCardMobile_default.scButtonInstance,
|
|
5523
|
+
onClick: onBuyClick
|
|
5524
|
+
}
|
|
5525
|
+
)
|
|
5526
|
+
] });
|
|
5527
|
+
};
|
|
5528
|
+
|
|
5529
|
+
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.module.css
|
|
5530
|
+
var ScPlanDetailsCardMobile_default = {
|
|
5531
|
+
scPlanDetailsCardMobile: "ScPlanDetailsCardMobile_scPlanDetailsCardMobile",
|
|
5532
|
+
planHeader: "ScPlanDetailsCardMobile_planHeader",
|
|
5533
|
+
headerLeft: "ScPlanDetailsCardMobile_headerLeft",
|
|
5534
|
+
headerIcon: "ScPlanDetailsCardMobile_headerIcon",
|
|
5535
|
+
headerLabel: "ScPlanDetailsCardMobile_headerLabel",
|
|
5536
|
+
divider: "ScPlanDetailsCardMobile_divider",
|
|
5537
|
+
planInfo: "ScPlanDetailsCardMobile_planInfo",
|
|
5538
|
+
planNameRow: "ScPlanDetailsCardMobile_planNameRow",
|
|
5539
|
+
planName: "ScPlanDetailsCardMobile_planName",
|
|
5540
|
+
dot: "ScPlanDetailsCardMobile_dot",
|
|
5541
|
+
planPrice: "ScPlanDetailsCardMobile_planPrice",
|
|
5542
|
+
scBadgesInstance: "ScPlanDetailsCardMobile_scBadgesInstance",
|
|
5543
|
+
scButtonInstance: "ScPlanDetailsCardMobile_scButtonInstance"
|
|
5544
|
+
};
|
|
5545
|
+
|
|
5546
|
+
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
5547
|
+
var import_icons56 = require("@streamoid/icons");
|
|
5548
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5549
|
+
var ScPlanDetailsCardMobile = ({
|
|
5550
|
+
planName = "Pro",
|
|
5551
|
+
planCredits = "30,000 credits",
|
|
5552
|
+
planPrice = "$0.00 / month",
|
|
5553
|
+
badgeText = "Active",
|
|
5554
|
+
currentPlanLabel = "Current plan",
|
|
5555
|
+
upgradeButtonText = "Upgrade",
|
|
5556
|
+
onUpgrade,
|
|
5557
|
+
className,
|
|
5558
|
+
...props
|
|
5559
|
+
}) => {
|
|
5560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: ScPlanDetailsCardMobile_default.scPlanDetailsCardMobile + " " + (className ?? ""), ...props, children: [
|
|
5561
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planHeader, children: [
|
|
5562
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: ScPlanDetailsCardMobile_default.headerLeft, children: [
|
|
5563
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5564
|
+
import_icons56.SiconBilling,
|
|
5565
|
+
{
|
|
5566
|
+
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
5567
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
5568
|
+
}
|
|
5569
|
+
),
|
|
5570
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
5571
|
+
] }),
|
|
5572
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5573
|
+
ScBadges,
|
|
5574
|
+
{
|
|
5575
|
+
text: badgeText,
|
|
5576
|
+
variant: "success",
|
|
5577
|
+
styleVariant: "opaque",
|
|
5578
|
+
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
5579
|
+
}
|
|
5580
|
+
)
|
|
5581
|
+
] }),
|
|
5582
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: ScPlanDetailsCardMobile_default.divider }),
|
|
5583
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planInfo, children: [
|
|
5584
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, children: [
|
|
5585
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planName }),
|
|
5586
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: ScPlanDetailsCardMobile_default.dot }),
|
|
5587
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planCredits })
|
|
5588
|
+
] }),
|
|
5589
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
5590
|
+
] }),
|
|
5591
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5592
|
+
ScButton,
|
|
5593
|
+
{
|
|
5594
|
+
text: upgradeButtonText,
|
|
5595
|
+
variant: "primary",
|
|
5596
|
+
size: "md",
|
|
5597
|
+
className: ScPlanDetailsCardMobile_default.scButtonInstance,
|
|
5598
|
+
style: { backgroundImage: "linear-gradient(154deg, rgb(18, 57, 255) 0%, rgb(73, 206, 255) 100%)" },
|
|
5599
|
+
onClick: onUpgrade
|
|
5600
|
+
}
|
|
5601
|
+
)
|
|
5602
|
+
] });
|
|
5603
|
+
};
|