@streamoid/ui 0.2.5 → 0.2.7
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 +424 -107
- package/dist/index.d.mts +130 -39
- package/dist/index.d.ts +130 -39
- package/dist/index.js +581 -181
- package/dist/index.mjs +830 -430
- 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,13 +39,14 @@ __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
|
-
ScInvoiceHistoryMobile: () => ScInvoiceHistoryMobile,
|
|
48
50
|
ScLogoUnit: () => ScLogoUnit,
|
|
49
51
|
ScMenuOptions: () => ScMenuOptions,
|
|
50
52
|
ScMobileBottomAction: () => ScMobileBottomAction,
|
|
@@ -56,6 +58,7 @@ __export(index_exports, {
|
|
|
56
58
|
ScPhtogenixInvite: () => ScPhtogenixInvite,
|
|
57
59
|
ScPlanCard: () => ScPlanCard,
|
|
58
60
|
ScPlanDetailsCard: () => ScPlanDetailsCard,
|
|
61
|
+
ScPlanDetailsCardMobile: () => ScPlanDetailsCardMobile,
|
|
59
62
|
ScPopUpMenu: () => ScPopUpMenu,
|
|
60
63
|
ScProfile: () => ScProfile,
|
|
61
64
|
ScProfileImageUpdate: () => ScProfileImageUpdate,
|
|
@@ -71,6 +74,7 @@ __export(index_exports, {
|
|
|
71
74
|
ScRole: () => ScRole,
|
|
72
75
|
ScRoleMobile: () => ScRoleMobile,
|
|
73
76
|
ScSettingsNav: () => ScSettingsNav,
|
|
77
|
+
ScSettingsTabComp: () => ScSettingsTabComp,
|
|
74
78
|
ScSidebar: () => ScSidebar,
|
|
75
79
|
ScSidebarIcons: () => ScSidebarIcons,
|
|
76
80
|
ScSidebarMenu: () => ScSidebarMenu,
|
|
@@ -85,7 +89,6 @@ __export(index_exports, {
|
|
|
85
89
|
ScTableListMobile: () => ScTableListMobile,
|
|
86
90
|
ScTextField: () => ScTextField,
|
|
87
91
|
ScToggleSwitch: () => ScToggleSwitch,
|
|
88
|
-
ScUsageHistoryMobile: () => ScUsageHistoryMobile,
|
|
89
92
|
ScVDivider: () => ScVDivider,
|
|
90
93
|
ScVersion: () => ScVersion,
|
|
91
94
|
ScWorkspaceCard: () => ScWorkspaceCard,
|
|
@@ -94,7 +97,8 @@ __export(index_exports, {
|
|
|
94
97
|
ScWorkspaceSwitchMobile: () => ScWorkspaceSwitchMobile,
|
|
95
98
|
ScWorkspaceSwitchMobileV2: () => ScWorkspaceSwitchMobileV2,
|
|
96
99
|
StreamoidSidebar: () => StreamoidSidebar,
|
|
97
|
-
StreamoidWorkspaceSwitcher: () => StreamoidWorkspaceSwitcher
|
|
100
|
+
StreamoidWorkspaceSwitcher: () => StreamoidWorkspaceSwitcher,
|
|
101
|
+
UsageHistoryMobile: () => UsageHistoryMobile
|
|
98
102
|
});
|
|
99
103
|
module.exports = __toCommonJS(index_exports);
|
|
100
104
|
|
|
@@ -414,32 +418,29 @@ var ScCheckbox_default = {
|
|
|
414
418
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
415
419
|
var ScCheckbox = ({
|
|
416
420
|
state = "default",
|
|
421
|
+
checked,
|
|
422
|
+
onChange,
|
|
417
423
|
className,
|
|
418
424
|
...props
|
|
419
425
|
}) => {
|
|
420
|
-
const
|
|
426
|
+
const effectiveState = checked !== void 0 ? checked ? "selected" : "default" : state;
|
|
427
|
+
const variantsClassName = ScCheckbox_default["state-" + effectiveState];
|
|
421
428
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
422
429
|
"div",
|
|
423
430
|
{
|
|
424
431
|
className: ScCheckbox_default.scCheckbox + " " + className + " " + variantsClassName,
|
|
432
|
+
style: { cursor: "pointer", ...props.style },
|
|
425
433
|
...props,
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
{
|
|
437
|
-
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",
|
|
438
|
-
fill: "var(--alias-text-and-icons-muted, #7a7a7a)"
|
|
439
|
-
}
|
|
440
|
-
)
|
|
441
|
-
}
|
|
442
|
-
)
|
|
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" }) })
|
|
443
444
|
}
|
|
444
445
|
);
|
|
445
446
|
};
|
|
@@ -451,14 +452,21 @@ var ScPairtext = ({
|
|
|
451
452
|
icon = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons3.SiconHome, { className: ScPairtext_default.siconHomeInstance }),
|
|
452
453
|
iconPosition = "left",
|
|
453
454
|
type = "icon",
|
|
455
|
+
checked,
|
|
456
|
+
onChange,
|
|
454
457
|
className,
|
|
455
458
|
...props
|
|
456
459
|
}) => {
|
|
457
460
|
const variantsClassName = ScPairtext_default["icon-position-" + iconPosition] + " " + ScPairtext_default["type-" + type];
|
|
461
|
+
const derivedState = checked !== void 0 ? checked ? "selected" : "default" : "default";
|
|
458
462
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
459
463
|
"div",
|
|
460
464
|
{
|
|
461
465
|
className: ScPairtext_default.scPairtext + " " + className + " " + variantsClassName,
|
|
466
|
+
style: { cursor: "pointer" },
|
|
467
|
+
onClick: (e) => {
|
|
468
|
+
onChange?.(!checked);
|
|
469
|
+
},
|
|
462
470
|
children: [
|
|
463
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: [
|
|
464
472
|
content,
|
|
@@ -467,11 +475,18 @@ var ScPairtext = ({
|
|
|
467
475
|
type === "checkbox" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
468
476
|
ScCheckbox,
|
|
469
477
|
{
|
|
470
|
-
state:
|
|
478
|
+
state: derivedState,
|
|
479
|
+
checked,
|
|
471
480
|
className: ScPairtext_default.scCheckboxInstance
|
|
472
481
|
}
|
|
473
482
|
) }),
|
|
474
|
-
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
|
+
) }),
|
|
475
490
|
type === "icon" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, { children: icon }),
|
|
476
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: [
|
|
477
492
|
content,
|
|
@@ -1609,6 +1624,9 @@ var ScProfile = ({
|
|
|
1609
1624
|
);
|
|
1610
1625
|
};
|
|
1611
1626
|
|
|
1627
|
+
// src/SC-Profile Image update/ScProfileImageUpdate.tsx
|
|
1628
|
+
var import_react5 = require("react");
|
|
1629
|
+
|
|
1612
1630
|
// src/SC-Profile Image update/ScProfileImageUpdate.module.css
|
|
1613
1631
|
var ScProfileImageUpdate_default = {
|
|
1614
1632
|
scProfileImageUpdate: "ScProfileImageUpdate_scProfileImageUpdate",
|
|
@@ -1616,6 +1634,7 @@ var ScProfileImageUpdate_default = {
|
|
|
1616
1634
|
buttonContainer: "ScProfileImageUpdate_buttonContainer",
|
|
1617
1635
|
scButtonInstance: "ScProfileImageUpdate_scButtonInstance",
|
|
1618
1636
|
scVDividerInstance: "ScProfileImageUpdate_scVDividerInstance",
|
|
1637
|
+
profileInitials: "ScProfileImageUpdate_profileInitials",
|
|
1619
1638
|
siconUploadInstance: "ScProfileImageUpdate_siconUploadInstance",
|
|
1620
1639
|
siconDeleteInstance: "ScProfileImageUpdate_siconDeleteInstance"
|
|
1621
1640
|
};
|
|
@@ -1657,32 +1676,62 @@ var ScVDivider = ({
|
|
|
1657
1676
|
// src/SC-Profile Image update/ScProfileImageUpdate.tsx
|
|
1658
1677
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1659
1678
|
var ScProfileImageUpdate = ({
|
|
1679
|
+
imageUrl,
|
|
1680
|
+
initials = "",
|
|
1681
|
+
onUpload,
|
|
1682
|
+
onDelete,
|
|
1660
1683
|
className,
|
|
1661
1684
|
...props
|
|
1662
1685
|
}) => {
|
|
1663
|
-
|
|
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: [
|
|
1664
1698
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1665
|
-
|
|
1699
|
+
"input",
|
|
1666
1700
|
{
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1701
|
+
ref: inputRef,
|
|
1702
|
+
type: "file",
|
|
1703
|
+
accept: "image/*",
|
|
1704
|
+
style: { display: "none" },
|
|
1705
|
+
onChange: handleFileChange
|
|
1672
1706
|
}
|
|
1673
1707
|
),
|
|
1674
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1675
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
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
|
+
] });
|
|
1686
1735
|
};
|
|
1687
1736
|
|
|
1688
1737
|
// src/SC-Profile options/ScProfileOptions.module.css
|
|
@@ -1994,6 +2043,9 @@ var ScProfileSettingsComp_default = {
|
|
|
1994
2043
|
// src/SC-ProfileSettingsComp/ScProfileSettingsComp.tsx
|
|
1995
2044
|
var import_icons24 = require("@streamoid/icons");
|
|
1996
2045
|
|
|
2046
|
+
// src/SC-textField/ScTextField.tsx
|
|
2047
|
+
var import_react6 = require("react");
|
|
2048
|
+
|
|
1997
2049
|
// src/SC-textField/ScTextField.module.css
|
|
1998
2050
|
var ScTextField_default = {
|
|
1999
2051
|
scTextField: "ScTextField_scTextField",
|
|
@@ -2008,7 +2060,7 @@ var ScTextField_default = {
|
|
|
2008
2060
|
"tf-group-icon-left-right": "ScTextField_tf-group-icon-left-right",
|
|
2009
2061
|
"state-hover": "ScTextField_state-hover",
|
|
2010
2062
|
"state-filled": "ScTextField_state-filled",
|
|
2011
|
-
"state-
|
|
2063
|
+
"state-active": "ScTextField_state-active",
|
|
2012
2064
|
ScTextField_labelContainer: "ScTextField_ScTextField_labelContainer"
|
|
2013
2065
|
};
|
|
2014
2066
|
|
|
@@ -2018,7 +2070,7 @@ var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
|
2018
2070
|
var ScTextField = ({
|
|
2019
2071
|
tfRightIcon = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons23.SiconBolt, { className: ScTextField_default.siconBoltInstance }),
|
|
2020
2072
|
tfLeftIcon = /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons23.SiconBolt, { className: ScTextField_default.siconBoltInstance }),
|
|
2021
|
-
state
|
|
2073
|
+
state,
|
|
2022
2074
|
tfGroup = "icon-right",
|
|
2023
2075
|
labelGroup = "",
|
|
2024
2076
|
className,
|
|
@@ -2026,7 +2078,9 @@ var ScTextField = ({
|
|
|
2026
2078
|
label = "",
|
|
2027
2079
|
...props
|
|
2028
2080
|
}) => {
|
|
2029
|
-
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];
|
|
2030
2084
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
2031
2085
|
"div",
|
|
2032
2086
|
{
|
|
@@ -2047,7 +2101,15 @@ var ScTextField = ({
|
|
|
2047
2101
|
{
|
|
2048
2102
|
className: ScTextField_default.inputText,
|
|
2049
2103
|
placeholder: placeholderFilled,
|
|
2050
|
-
...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
|
+
}
|
|
2051
2113
|
}
|
|
2052
2114
|
),
|
|
2053
2115
|
(tfGroup === "icon-right" || tfGroup === "icon-left-right") && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: tfRightIcon })
|
|
@@ -2690,6 +2752,7 @@ function StreamoidSidebar({
|
|
|
2690
2752
|
profile,
|
|
2691
2753
|
versionText = "v1.0.0",
|
|
2692
2754
|
toggleIcon,
|
|
2755
|
+
hideFooter = false,
|
|
2693
2756
|
className,
|
|
2694
2757
|
style
|
|
2695
2758
|
}) {
|
|
@@ -2707,6 +2770,7 @@ function StreamoidSidebar({
|
|
|
2707
2770
|
backgroundColor: "var(--alias-surface-base)",
|
|
2708
2771
|
borderRadius: "var(--radius-3xl)",
|
|
2709
2772
|
padding: "var(--spacing-md)",
|
|
2773
|
+
paddingBottom: hideFooter ? "var(--spacing-md)" : void 0,
|
|
2710
2774
|
width: 256,
|
|
2711
2775
|
gap: "var(--spacing-xxs)"
|
|
2712
2776
|
},
|
|
@@ -2796,6 +2860,7 @@ function StreamoidSidebar({
|
|
|
2796
2860
|
className: "flex items-center shrink-0 w-full cursor-pointer",
|
|
2797
2861
|
style: {
|
|
2798
2862
|
padding: "var(--spacing-md)",
|
|
2863
|
+
marginTop: "var(--spacing-md)",
|
|
2799
2864
|
gap: "var(--spacing-md)",
|
|
2800
2865
|
borderRadius: "var(--radius-xl)"
|
|
2801
2866
|
},
|
|
@@ -2829,9 +2894,12 @@ function StreamoidSidebar({
|
|
|
2829
2894
|
]
|
|
2830
2895
|
}
|
|
2831
2896
|
),
|
|
2832
|
-
/* @__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
|
+
] })
|
|
2833
2901
|
] }) : null,
|
|
2834
|
-
/* @__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)(
|
|
2835
2903
|
"div",
|
|
2836
2904
|
{
|
|
2837
2905
|
className: "flex items-center w-full",
|
|
@@ -2984,7 +3052,7 @@ function StreamoidSidebar({
|
|
|
2984
3052
|
),
|
|
2985
3053
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(HDivider, {})
|
|
2986
3054
|
] }) : null,
|
|
2987
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3055
|
+
!hideFooter && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2988
3056
|
"div",
|
|
2989
3057
|
{
|
|
2990
3058
|
className: "shrink-0 flex flex-col items-center",
|
|
@@ -3055,7 +3123,7 @@ var ScSlider = ({
|
|
|
3055
3123
|
};
|
|
3056
3124
|
|
|
3057
3125
|
// src/SC-WorkspaceSwitcher/streamoid-workspace-switcher.tsx
|
|
3058
|
-
var
|
|
3126
|
+
var import_react7 = require("react");
|
|
3059
3127
|
var import_icons34 = require("@streamoid/icons");
|
|
3060
3128
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3061
3129
|
var PRIMARY_ICON = "var(--alias-text---icons-primary)";
|
|
@@ -3246,12 +3314,12 @@ function StreamoidWorkspaceSwitcher({
|
|
|
3246
3314
|
onSwitchWorkspace,
|
|
3247
3315
|
config
|
|
3248
3316
|
}) {
|
|
3249
|
-
const modalRef = (0,
|
|
3317
|
+
const modalRef = (0, import_react7.useRef)(null);
|
|
3250
3318
|
const title = config?.title || "Switch workspace";
|
|
3251
3319
|
const loadingText = config?.loadingText || "Loading workspaces\u2026";
|
|
3252
3320
|
const currentWorkspaceText = config?.currentWorkspaceText || "Current workspace";
|
|
3253
3321
|
const switchWorkspaceText = config?.switchWorkspaceText || "Switch workspace";
|
|
3254
|
-
(0,
|
|
3322
|
+
(0, import_react7.useEffect)(() => {
|
|
3255
3323
|
if (!open) return;
|
|
3256
3324
|
function handleKeyDown(e) {
|
|
3257
3325
|
if (e.key === "Escape") onClose();
|
|
@@ -3474,48 +3542,31 @@ var ScToggleSwitch_default = {
|
|
|
3474
3542
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3475
3543
|
var ScToggleSwitch = ({
|
|
3476
3544
|
active = "false",
|
|
3545
|
+
checked,
|
|
3546
|
+
onToggle,
|
|
3477
3547
|
className,
|
|
3478
3548
|
...props
|
|
3479
3549
|
}) => {
|
|
3480
|
-
const
|
|
3550
|
+
const isActive = checked !== void 0 ? checked : active === "true";
|
|
3551
|
+
const variantsClassName = ScToggleSwitch_default["active-" + (isActive ? "true" : "false")];
|
|
3481
3552
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3482
3553
|
"div",
|
|
3483
3554
|
{
|
|
3484
3555
|
className: ScToggleSwitch_default.scToggleSwitch + " " + className + " " + variantsClassName,
|
|
3485
3556
|
...props,
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
fill: "var(--alias-fill-neutral-neutral, #1a1a1a)"
|
|
3500
|
-
}
|
|
3501
|
-
),
|
|
3502
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3503
|
-
"path",
|
|
3504
|
-
{
|
|
3505
|
-
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",
|
|
3506
|
-
fill: "var(--alias-border-divider, #242424)"
|
|
3507
|
-
}
|
|
3508
|
-
),
|
|
3509
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3510
|
-
"path",
|
|
3511
|
-
{
|
|
3512
|
-
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",
|
|
3513
|
-
fill: "var(--alias-fill-neutral-neutralactive, #313131)"
|
|
3514
|
-
}
|
|
3515
|
-
)
|
|
3516
|
-
]
|
|
3517
|
-
}
|
|
3518
|
-
)
|
|
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
|
+
] })
|
|
3519
3570
|
}
|
|
3520
3571
|
);
|
|
3521
3572
|
};
|
|
@@ -3528,9 +3579,12 @@ var ScArtifaxInvite = ({
|
|
|
3528
3579
|
appDescription = "Info about artifax",
|
|
3529
3580
|
appIcon,
|
|
3530
3581
|
className,
|
|
3582
|
+
enabled,
|
|
3583
|
+
onToggle,
|
|
3531
3584
|
...props
|
|
3532
3585
|
}) => {
|
|
3533
|
-
const
|
|
3586
|
+
const isEnabled = enabled !== void 0 ? enabled : active === "true";
|
|
3587
|
+
const variantsClassName = ScArtifaxInvite_default["active-" + (isEnabled ? "true" : "false")];
|
|
3534
3588
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3535
3589
|
"div",
|
|
3536
3590
|
{
|
|
@@ -3549,7 +3603,8 @@ var ScArtifaxInvite = ({
|
|
|
3549
3603
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3550
3604
|
ScToggleSwitch,
|
|
3551
3605
|
{
|
|
3552
|
-
|
|
3606
|
+
checked: isEnabled,
|
|
3607
|
+
onToggle,
|
|
3553
3608
|
className: ScArtifaxInvite_default.scToggleSwitchInstance
|
|
3554
3609
|
}
|
|
3555
3610
|
)
|
|
@@ -3578,9 +3633,12 @@ var ScPhtogenixInvite = ({
|
|
|
3578
3633
|
scAppCardappName = "Photogenix",
|
|
3579
3634
|
scAppCardappIcon = /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons38.SiconArtifacts, { className: ScPhtogenixInvite_default.siconArtifactsInstance }),
|
|
3580
3635
|
className,
|
|
3636
|
+
enabled,
|
|
3637
|
+
onToggle,
|
|
3581
3638
|
...props
|
|
3582
3639
|
}) => {
|
|
3583
|
-
const
|
|
3640
|
+
const isEnabled = enabled !== void 0 ? enabled : active === "true";
|
|
3641
|
+
const variantsClassName = ScPhtogenixInvite_default["active-" + (isEnabled ? "true" : "false")];
|
|
3584
3642
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3585
3643
|
"div",
|
|
3586
3644
|
{
|
|
@@ -3598,7 +3656,8 @@ var ScPhtogenixInvite = ({
|
|
|
3598
3656
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3599
3657
|
ScToggleSwitch,
|
|
3600
3658
|
{
|
|
3601
|
-
|
|
3659
|
+
checked: isEnabled,
|
|
3660
|
+
onToggle,
|
|
3602
3661
|
className: ScPhtogenixInvite_default.scToggleSwitchInstance
|
|
3603
3662
|
}
|
|
3604
3663
|
)
|
|
@@ -3650,6 +3709,9 @@ var ScOnlyField = ({
|
|
|
3650
3709
|
labelGroup = "none",
|
|
3651
3710
|
className,
|
|
3652
3711
|
placeholderFilled = "Placeholder",
|
|
3712
|
+
value,
|
|
3713
|
+
onInputChange,
|
|
3714
|
+
inputProps,
|
|
3653
3715
|
...props
|
|
3654
3716
|
}) => {
|
|
3655
3717
|
const variantsClassName = ScOnlyField_default["state-" + state] + " " + ScOnlyField_default["tf-group-" + tfGroup] + " " + ScOnlyField_default["label-group-" + labelGroup];
|
|
@@ -3660,10 +3722,26 @@ var ScOnlyField = ({
|
|
|
3660
3722
|
...props,
|
|
3661
3723
|
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: ScOnlyField_default.inputContainer, children: [
|
|
3662
3724
|
(tfGroup === "icon-left" || tfGroup === "icon-left-right") && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: tfLeftIcon }),
|
|
3663
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
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
|
+
),
|
|
3667
3745
|
(tfGroup === "icon-right" || tfGroup === "icon-left-right") && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: tfRightIcon })
|
|
3668
3746
|
] })
|
|
3669
3747
|
}
|
|
@@ -3682,9 +3760,18 @@ var ScCatalogixInvite = ({
|
|
|
3682
3760
|
searchPlaceholder = "Search stores...",
|
|
3683
3761
|
appIcon,
|
|
3684
3762
|
className,
|
|
3763
|
+
enabled,
|
|
3764
|
+
onToggle,
|
|
3765
|
+
stores,
|
|
3766
|
+
selectedStores,
|
|
3767
|
+
onStoreToggle,
|
|
3768
|
+
searchValue,
|
|
3769
|
+
onSearchChange,
|
|
3685
3770
|
...props
|
|
3686
3771
|
}) => {
|
|
3687
|
-
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;
|
|
3688
3775
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3689
3776
|
"div",
|
|
3690
3777
|
{
|
|
@@ -3704,19 +3791,20 @@ var ScCatalogixInvite = ({
|
|
|
3704
3791
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3705
3792
|
ScToggleSwitch,
|
|
3706
3793
|
{
|
|
3707
|
-
|
|
3794
|
+
checked: isEnabled,
|
|
3795
|
+
onToggle,
|
|
3708
3796
|
className: ScCatalogixInvite_default.scToggleSwitchInstance
|
|
3709
3797
|
}
|
|
3710
3798
|
)
|
|
3711
3799
|
] }),
|
|
3712
|
-
|
|
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: [
|
|
3713
3801
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.storeAccessHeader, children: [
|
|
3714
3802
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.storeAccessTitle, children: [
|
|
3715
3803
|
storeAccessTitle,
|
|
3716
3804
|
" "
|
|
3717
3805
|
] }),
|
|
3718
3806
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: ScCatalogixInvite_default.selectedCount, children: [
|
|
3719
|
-
|
|
3807
|
+
displayCount,
|
|
3720
3808
|
" "
|
|
3721
3809
|
] })
|
|
3722
3810
|
] }),
|
|
@@ -3726,10 +3814,29 @@ var ScCatalogixInvite = ({
|
|
|
3726
3814
|
tfLeftIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons41.SiconSearch, { className: ScCatalogixInvite_default.siconSearchInstance }),
|
|
3727
3815
|
tfRightIcon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons41.SiconSearch, { className: ScCatalogixInvite_default.siconSearchInstance }),
|
|
3728
3816
|
placeholderFilled: searchPlaceholder,
|
|
3817
|
+
value: searchValue,
|
|
3818
|
+
onInputChange: onSearchChange,
|
|
3729
3819
|
className: ScCatalogixInvite_default.scOnlyFieldInstance
|
|
3730
3820
|
}
|
|
3731
3821
|
),
|
|
3732
|
-
/* @__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: [
|
|
3733
3840
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3734
3841
|
ScPairtext,
|
|
3735
3842
|
{
|
|
@@ -3775,7 +3882,7 @@ var ScCatalogixInvite = ({
|
|
|
3775
3882
|
className: ScCatalogixInvite_default.scPairtextInstance
|
|
3776
3883
|
}
|
|
3777
3884
|
)
|
|
3778
|
-
] })
|
|
3885
|
+
] }) })
|
|
3779
3886
|
] }) })
|
|
3780
3887
|
]
|
|
3781
3888
|
}
|
|
@@ -3787,6 +3894,17 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
|
3787
3894
|
var ScAppField = ({
|
|
3788
3895
|
appFieldTitle = "App permission",
|
|
3789
3896
|
className,
|
|
3897
|
+
artifaxEnabled,
|
|
3898
|
+
onArtifaxToggle,
|
|
3899
|
+
photogenixEnabled,
|
|
3900
|
+
onPhotogenixToggle,
|
|
3901
|
+
catalogixEnabled,
|
|
3902
|
+
onCatalogixToggle,
|
|
3903
|
+
catalogixStores,
|
|
3904
|
+
catalogixSelectedStores,
|
|
3905
|
+
onCatalogixStoreToggle,
|
|
3906
|
+
catalogixSearchValue,
|
|
3907
|
+
onCatalogixSearchChange,
|
|
3790
3908
|
...props
|
|
3791
3909
|
}) => {
|
|
3792
3910
|
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: ScAppField_default.scAppField + " " + className, ...props, children: [
|
|
@@ -3798,12 +3916,16 @@ var ScAppField = ({
|
|
|
3798
3916
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3799
3917
|
ScArtifaxInvite,
|
|
3800
3918
|
{
|
|
3919
|
+
enabled: artifaxEnabled,
|
|
3920
|
+
onToggle: onArtifaxToggle,
|
|
3801
3921
|
className: ScAppField_default.scArtifaxInviteInstance
|
|
3802
3922
|
}
|
|
3803
3923
|
),
|
|
3804
3924
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3805
3925
|
ScPhtogenixInvite,
|
|
3806
3926
|
{
|
|
3927
|
+
enabled: photogenixEnabled,
|
|
3928
|
+
onToggle: onPhotogenixToggle,
|
|
3807
3929
|
scAppCardappDescription: "Info about photogenix",
|
|
3808
3930
|
scAppCardappName: "Photogenix",
|
|
3809
3931
|
scAppCardappIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons43.SiconPhotogenix, { className: ScAppField_default.siconPhotogenixInstance }),
|
|
@@ -3813,6 +3935,13 @@ var ScAppField = ({
|
|
|
3813
3935
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3814
3936
|
ScCatalogixInvite,
|
|
3815
3937
|
{
|
|
3938
|
+
enabled: catalogixEnabled,
|
|
3939
|
+
onToggle: onCatalogixToggle,
|
|
3940
|
+
stores: catalogixStores,
|
|
3941
|
+
selectedStores: catalogixSelectedStores,
|
|
3942
|
+
onStoreToggle: onCatalogixStoreToggle,
|
|
3943
|
+
searchValue: catalogixSearchValue,
|
|
3944
|
+
onSearchChange: onCatalogixSearchChange,
|
|
3816
3945
|
active: "true",
|
|
3817
3946
|
className: ScAppField_default.scCatalogixInviteInstance
|
|
3818
3947
|
}
|
|
@@ -3886,6 +4015,7 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
3886
4015
|
var ScCheckField = ({
|
|
3887
4016
|
label = "Label",
|
|
3888
4017
|
className,
|
|
4018
|
+
checkboxes,
|
|
3889
4019
|
...props
|
|
3890
4020
|
}) => {
|
|
3891
4021
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: ScCheckField_default.scCheckField + " " + className, ...props, children: [
|
|
@@ -3893,7 +4023,17 @@ var ScCheckField = ({
|
|
|
3893
4023
|
label,
|
|
3894
4024
|
" "
|
|
3895
4025
|
] }) }),
|
|
3896
|
-
/* @__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: [
|
|
3897
4037
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3898
4038
|
ScPairtext,
|
|
3899
4039
|
{
|
|
@@ -3910,7 +4050,7 @@ var ScCheckField = ({
|
|
|
3910
4050
|
className: ScCheckField_default.scPairtextInstance
|
|
3911
4051
|
}
|
|
3912
4052
|
)
|
|
3913
|
-
] })
|
|
4053
|
+
] }) })
|
|
3914
4054
|
] });
|
|
3915
4055
|
};
|
|
3916
4056
|
|
|
@@ -4182,6 +4322,9 @@ var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
|
4182
4322
|
var ScTabField = ({
|
|
4183
4323
|
label = "Label",
|
|
4184
4324
|
className,
|
|
4325
|
+
tabs,
|
|
4326
|
+
activeTab,
|
|
4327
|
+
onTabChange,
|
|
4185
4328
|
...props
|
|
4186
4329
|
}) => {
|
|
4187
4330
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: ScTabField_default.scTabField + " " + className, children: [
|
|
@@ -4189,7 +4332,33 @@ var ScTabField = ({
|
|
|
4189
4332
|
label,
|
|
4190
4333
|
" "
|
|
4191
4334
|
] }) }),
|
|
4192
|
-
/* @__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 })
|
|
4193
4362
|
] });
|
|
4194
4363
|
};
|
|
4195
4364
|
|
|
@@ -4454,7 +4623,7 @@ var ScWorkspaceCard = ({
|
|
|
4454
4623
|
};
|
|
4455
4624
|
|
|
4456
4625
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.tsx
|
|
4457
|
-
var
|
|
4626
|
+
var import_react8 = require("react");
|
|
4458
4627
|
var import_icons53 = require("@streamoid/icons");
|
|
4459
4628
|
|
|
4460
4629
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.module.css
|
|
@@ -4495,7 +4664,7 @@ function ScWorkspaceSwitchCard({
|
|
|
4495
4664
|
onSettings,
|
|
4496
4665
|
onLeave
|
|
4497
4666
|
}) {
|
|
4498
|
-
const [internalHover, setInternalHover] = (0,
|
|
4667
|
+
const [internalHover, setInternalHover] = (0, import_react8.useState)(false);
|
|
4499
4668
|
const isHover = hover !== void 0 ? hover : internalHover;
|
|
4500
4669
|
const isCurrent = type === "currentWS";
|
|
4501
4670
|
const isOther = type === "otherWS";
|
|
@@ -4589,7 +4758,7 @@ function ScWorkspaceSwitchCard({
|
|
|
4589
4758
|
)
|
|
4590
4759
|
}
|
|
4591
4760
|
),
|
|
4592
|
-
isHover &&
|
|
4761
|
+
isHover && !isAdmin && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4593
4762
|
"div",
|
|
4594
4763
|
{
|
|
4595
4764
|
className: ScWorkspaceSwitchCard_default.leaveBtn,
|
|
@@ -5061,89 +5230,69 @@ var ScReferralCardMobile = ({
|
|
|
5061
5230
|
);
|
|
5062
5231
|
};
|
|
5063
5232
|
|
|
5064
|
-
// src/SC-
|
|
5065
|
-
var
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
date: "
|
|
5070
|
-
amount: "
|
|
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"
|
|
5071
5240
|
};
|
|
5072
5241
|
|
|
5073
|
-
// src/SC-
|
|
5242
|
+
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
5074
5243
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5075
|
-
var
|
|
5076
|
-
|
|
5244
|
+
var InvoiceHistoryMobile = ({
|
|
5245
|
+
invoiceId = "# INV-2800-2026",
|
|
5077
5246
|
date = "Nov 9th, 2025",
|
|
5078
5247
|
amount = "$320.89",
|
|
5079
|
-
|
|
5080
|
-
className,
|
|
5081
|
-
...props
|
|
5248
|
+
className
|
|
5082
5249
|
}) => {
|
|
5083
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
5084
|
-
"div",
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: ScInvoiceHistoryMobile_default.invoiceInfo, children: [
|
|
5091
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: ScInvoiceHistoryMobile_default.invoiceNumber, children: invoiceNumber }),
|
|
5092
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: ScInvoiceHistoryMobile_default.date, children: date })
|
|
5093
|
-
] }),
|
|
5094
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: ScInvoiceHistoryMobile_default.amount, children: amount })
|
|
5095
|
-
]
|
|
5096
|
-
}
|
|
5097
|
-
);
|
|
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
|
+
] });
|
|
5098
5257
|
};
|
|
5099
5258
|
|
|
5100
|
-
// src/SC-
|
|
5101
|
-
var
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
metaText: "
|
|
5109
|
-
|
|
5110
|
-
|
|
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"
|
|
5111
5270
|
};
|
|
5112
5271
|
|
|
5113
|
-
// src/SC-
|
|
5272
|
+
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
5114
5273
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
5115
|
-
var
|
|
5116
|
-
|
|
5117
|
-
|
|
5274
|
+
var UsageHistoryMobile = ({
|
|
5275
|
+
serviceName = "Artifax Generation",
|
|
5276
|
+
credits = "50",
|
|
5118
5277
|
userName = "Rohan",
|
|
5119
5278
|
date = "Nov 9th, 2025",
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
className,
|
|
5123
|
-
...props
|
|
5279
|
+
balance = "84,902",
|
|
5280
|
+
className
|
|
5124
5281
|
}) => {
|
|
5125
|
-
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
5126
|
-
"div",
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
children: [
|
|
5132
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: ScUsageHistoryMobile_default.vDivider }),
|
|
5140
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: ScUsageHistoryMobile_default.metaText, children: date })
|
|
5141
|
-
] }),
|
|
5142
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: ScUsageHistoryMobile_default.totalCount, children: totalCount })
|
|
5143
|
-
] })
|
|
5144
|
-
]
|
|
5145
|
-
}
|
|
5146
|
-
);
|
|
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
|
+
] });
|
|
5147
5296
|
};
|
|
5148
5297
|
|
|
5149
5298
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.module.css
|
|
@@ -5151,16 +5300,14 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
5151
5300
|
scWorkspaceSwitchMobileV2: "ScWorkspaceSwitchMobileV2_scWorkspaceSwitchMobileV2",
|
|
5152
5301
|
"type-currentWS": "ScWorkspaceSwitchMobileV2_type-currentWS",
|
|
5153
5302
|
"type-otherWS": "ScWorkspaceSwitchMobileV2_type-otherWS",
|
|
5303
|
+
"type-display": "ScWorkspaceSwitchMobileV2_type-display",
|
|
5154
5304
|
workspaceInfo: "ScWorkspaceSwitchMobileV2_workspaceInfo",
|
|
5155
5305
|
dpContainer: "ScWorkspaceSwitchMobileV2_dpContainer",
|
|
5156
|
-
dp: "ScWorkspaceSwitchMobileV2_dp",
|
|
5157
|
-
"dp-currentWS": "ScWorkspaceSwitchMobileV2_dp-currentWS",
|
|
5158
|
-
"dp-otherWS": "ScWorkspaceSwitchMobileV2_dp-otherWS",
|
|
5159
|
-
dpText: "ScWorkspaceSwitchMobileV2_dpText",
|
|
5160
5306
|
textContainer: "ScWorkspaceSwitchMobileV2_textContainer",
|
|
5161
5307
|
wsName: "ScWorkspaceSwitchMobileV2_wsName",
|
|
5162
5308
|
userDetails: "ScWorkspaceSwitchMobileV2_userDetails",
|
|
5163
5309
|
roleText: "ScWorkspaceSwitchMobileV2_roleText",
|
|
5310
|
+
roleMember: "ScWorkspaceSwitchMobileV2_roleMember",
|
|
5164
5311
|
dot: "ScWorkspaceSwitchMobileV2_dot",
|
|
5165
5312
|
planText: "ScWorkspaceSwitchMobileV2_planText",
|
|
5166
5313
|
ownerText: "ScWorkspaceSwitchMobileV2_ownerText"
|
|
@@ -5171,6 +5318,7 @@ var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
|
5171
5318
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
5172
5319
|
wsName = "Workspace name is kepler",
|
|
5173
5320
|
initials = "WS",
|
|
5321
|
+
imageUrl,
|
|
5174
5322
|
role = "Admin",
|
|
5175
5323
|
plan = "Free",
|
|
5176
5324
|
ownerId = "rohan@streamoid.com",
|
|
@@ -5186,11 +5334,24 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
5186
5334
|
onClick,
|
|
5187
5335
|
...props,
|
|
5188
5336
|
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
5189
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
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
|
+
) }),
|
|
5190
5351
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
5191
5352
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
5192
5353
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
5193
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.roleText, children: role }),
|
|
5354
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
5194
5355
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
5195
5356
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
5196
5357
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
@@ -5201,3 +5362,242 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
5201
5362
|
}
|
|
5202
5363
|
);
|
|
5203
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
|
+
};
|