@streamoid/ui 0.6.10 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1117 -0
- package/dist/index.d.mts +130 -1
- package/dist/index.d.ts +130 -1
- package/dist/index.js +1357 -210
- package/dist/index.mjs +1357 -210
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
ScArtifaxInvite: () => ScArtifaxInvite,
|
|
38
38
|
ScArtifaxSidebar: () => ScArtifaxSidebar,
|
|
39
39
|
ScBadges: () => ScBadges,
|
|
40
|
+
ScBeacon: () => ScBeacon,
|
|
40
41
|
ScBillingHistoryHeader: () => ScBillingHistoryHeader,
|
|
41
42
|
ScBillingHistoryTableList: () => ScBillingHistoryTableList,
|
|
42
43
|
ScBillingLogsTableHeader: () => ScBillingLogsTableHeader,
|
|
@@ -47,6 +48,8 @@ __export(index_exports, {
|
|
|
47
48
|
ScCalendarDateComps: () => ScCalendarDateComps,
|
|
48
49
|
ScCatalogixInvite: () => ScCatalogixInvite,
|
|
49
50
|
ScCatalogixSidebar: () => ScCatalogixSidebar,
|
|
51
|
+
ScCatalogixStoreHeader: () => ScCatalogixStoreHeader,
|
|
52
|
+
ScCatalogixStoreTableList: () => ScCatalogixStoreTableList,
|
|
50
53
|
ScCheckField: () => ScCheckField,
|
|
51
54
|
ScCheckbox: () => ScCheckbox,
|
|
52
55
|
ScCreditsUsageCard: () => ScCreditsUsageCard,
|
|
@@ -54,6 +57,7 @@ __export(index_exports, {
|
|
|
54
57
|
ScCxoCopilotLogo: () => ScCxoCopilotLogo,
|
|
55
58
|
ScDp: () => ScDp,
|
|
56
59
|
ScFieldButton: () => ScFieldButton,
|
|
60
|
+
ScFileField: () => ScFileField,
|
|
57
61
|
ScGoogleSignIn: () => ScGoogleSignIn,
|
|
58
62
|
ScGuide: () => ScGuide,
|
|
59
63
|
ScHDivider: () => ScHDivider,
|
|
@@ -63,6 +67,8 @@ __export(index_exports, {
|
|
|
63
67
|
ScInChatMessage: () => ScInChatMessage,
|
|
64
68
|
ScIntialProfileCover: () => ScIntialProfileCover,
|
|
65
69
|
ScLogoUnit: () => ScLogoUnit,
|
|
70
|
+
ScMediaApproval: () => ScMediaApproval,
|
|
71
|
+
ScMediaSelect: () => ScMediaSelect,
|
|
66
72
|
ScMenuOptions: () => ScMenuOptions,
|
|
67
73
|
ScMobileBottomAction: () => ScMobileBottomAction,
|
|
68
74
|
ScMobileTopNav: () => ScMobileTopNav,
|
|
@@ -89,6 +95,7 @@ __export(index_exports, {
|
|
|
89
95
|
ScReferralTableList: () => ScReferralTableList,
|
|
90
96
|
ScRole: () => ScRole,
|
|
91
97
|
ScRoleMobile: () => ScRoleMobile,
|
|
98
|
+
ScSelect: () => ScSelect,
|
|
92
99
|
ScSelection: () => ScSelection,
|
|
93
100
|
ScSelectionList: () => ScSelectionList,
|
|
94
101
|
ScSettingsNav: () => ScSettingsNav,
|
|
@@ -100,6 +107,7 @@ __export(index_exports, {
|
|
|
100
107
|
ScSidebarProfile: () => ScSidebarProfile,
|
|
101
108
|
ScSidebarSwitchMenu: () => ScSidebarSwitchMenu,
|
|
102
109
|
ScSlider: () => ScSlider,
|
|
110
|
+
ScStoreCard: () => ScStoreCard,
|
|
103
111
|
ScStrLogo: () => ScStrLogo,
|
|
104
112
|
ScStreamoidMascot: () => ScStreamoidMascot,
|
|
105
113
|
ScStreamoidWordmark: () => ScStreamoidWordmark,
|
|
@@ -110,8 +118,10 @@ __export(index_exports, {
|
|
|
110
118
|
ScTableHeader: () => ScTableHeader,
|
|
111
119
|
ScTableList: () => ScTableList,
|
|
112
120
|
ScTableListMobile: () => ScTableListMobile,
|
|
121
|
+
ScTextArea: () => ScTextArea,
|
|
113
122
|
ScTextField: () => ScTextField,
|
|
114
123
|
ScThinkingStepIcon: () => ScThinkingStepIcon,
|
|
124
|
+
ScTodoList: () => ScTodoList,
|
|
115
125
|
ScToggleSwitch: () => ScToggleSwitch,
|
|
116
126
|
ScVDivider: () => ScVDivider,
|
|
117
127
|
ScVersion: () => ScVersion,
|
|
@@ -1084,8 +1094,19 @@ var ScButton = ({
|
|
|
1084
1094
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1085
1095
|
"div",
|
|
1086
1096
|
{
|
|
1087
|
-
className: ScButton_default.scButton
|
|
1097
|
+
className: [ScButton_default.scButton, variantsClassName, className].filter(Boolean).join(" "),
|
|
1098
|
+
role: "button",
|
|
1099
|
+
tabIndex: state === "disabled" ? -1 : 0,
|
|
1100
|
+
"aria-disabled": state === "disabled" || void 0,
|
|
1088
1101
|
...props,
|
|
1102
|
+
onKeyDown: (e) => {
|
|
1103
|
+
props.onKeyDown?.(e);
|
|
1104
|
+
if (state === "disabled") return;
|
|
1105
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
1106
|
+
e.preventDefault();
|
|
1107
|
+
props.onClick?.(e);
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1089
1110
|
children: [
|
|
1090
1111
|
noiseUrl && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1091
1112
|
"div",
|
|
@@ -7217,6 +7238,181 @@ function ScWorkspaceSwitchCard({
|
|
|
7217
7238
|
}
|
|
7218
7239
|
var NscWorkspaceSwitch = ScWorkspaceSwitchCard;
|
|
7219
7240
|
|
|
7241
|
+
// src/SC-Beacon/ScBeacon.module.css
|
|
7242
|
+
var ScBeacon_default = {
|
|
7243
|
+
scBeacon: "ScBeacon_scBeacon",
|
|
7244
|
+
success: "ScBeacon_success",
|
|
7245
|
+
warning: "ScBeacon_warning",
|
|
7246
|
+
error: "ScBeacon_error",
|
|
7247
|
+
neutral: "ScBeacon_neutral"
|
|
7248
|
+
};
|
|
7249
|
+
|
|
7250
|
+
// src/SC-Beacon/ScBeacon.tsx
|
|
7251
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7252
|
+
var ScBeacon = ({
|
|
7253
|
+
tone = "neutral",
|
|
7254
|
+
className,
|
|
7255
|
+
...props
|
|
7256
|
+
}) => {
|
|
7257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
7258
|
+
"span",
|
|
7259
|
+
{
|
|
7260
|
+
className: ScBeacon_default.scBeacon + " " + ScBeacon_default[tone] + (className ? " " + className : ""),
|
|
7261
|
+
"aria-hidden": "true",
|
|
7262
|
+
...props,
|
|
7263
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
7264
|
+
"svg",
|
|
7265
|
+
{
|
|
7266
|
+
viewBox: "0 0 20 20",
|
|
7267
|
+
width: "100%",
|
|
7268
|
+
height: "100%",
|
|
7269
|
+
fill: "none",
|
|
7270
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7271
|
+
children: [
|
|
7272
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor", fillOpacity: "0.24" }),
|
|
7273
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("circle", { cx: "10", cy: "10", r: "4", fill: "currentColor" })
|
|
7274
|
+
]
|
|
7275
|
+
}
|
|
7276
|
+
)
|
|
7277
|
+
}
|
|
7278
|
+
);
|
|
7279
|
+
};
|
|
7280
|
+
|
|
7281
|
+
// src/SC-StoreCard/ScStoreCard.module.css
|
|
7282
|
+
var ScStoreCard_default = {
|
|
7283
|
+
scStoreCard: "ScStoreCard_scStoreCard",
|
|
7284
|
+
nameSection: "ScStoreCard_nameSection",
|
|
7285
|
+
storeName: "ScStoreCard_storeName",
|
|
7286
|
+
divider: "ScStoreCard_divider",
|
|
7287
|
+
footer: "ScStoreCard_footer",
|
|
7288
|
+
products: "ScStoreCard_products",
|
|
7289
|
+
date: "ScStoreCard_date"
|
|
7290
|
+
};
|
|
7291
|
+
|
|
7292
|
+
// src/SC-StoreCard/ScStoreCard.tsx
|
|
7293
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
7294
|
+
var ScStoreCard = ({
|
|
7295
|
+
storeName = "Store Name",
|
|
7296
|
+
noOfProducts = "1490 Products",
|
|
7297
|
+
dateCreated = "24th Jan 2026",
|
|
7298
|
+
tone = "neutral",
|
|
7299
|
+
className,
|
|
7300
|
+
...props
|
|
7301
|
+
}) => {
|
|
7302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
7303
|
+
"div",
|
|
7304
|
+
{
|
|
7305
|
+
className: ScStoreCard_default.scStoreCard + (className ? " " + className : ""),
|
|
7306
|
+
...props,
|
|
7307
|
+
children: [
|
|
7308
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: ScStoreCard_default.nameSection, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: ScStoreCard_default.storeName, title: storeName, children: storeName }) }),
|
|
7309
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ScHDivider, { className: ScStoreCard_default.divider }),
|
|
7310
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: ScStoreCard_default.footer, children: [
|
|
7311
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ScBeacon, { tone }),
|
|
7312
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: ScStoreCard_default.products, children: noOfProducts }),
|
|
7313
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: ScStoreCard_default.date, children: dateCreated })
|
|
7314
|
+
] })
|
|
7315
|
+
]
|
|
7316
|
+
}
|
|
7317
|
+
);
|
|
7318
|
+
};
|
|
7319
|
+
|
|
7320
|
+
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.module.css
|
|
7321
|
+
var ScCatalogixStoreHeader_default = {
|
|
7322
|
+
scCatalogixStoreHeader: "ScCatalogixStoreHeader_scCatalogixStoreHeader",
|
|
7323
|
+
label: "ScCatalogixStoreHeader_label",
|
|
7324
|
+
colName: "ScCatalogixStoreHeader_colName",
|
|
7325
|
+
colStatus: "ScCatalogixStoreHeader_colStatus",
|
|
7326
|
+
colNum: "ScCatalogixStoreHeader_colNum",
|
|
7327
|
+
colDate: "ScCatalogixStoreHeader_colDate",
|
|
7328
|
+
colBy: "ScCatalogixStoreHeader_colBy"
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7331
|
+
// src/SC-Catalogix-Store-Header/ScCatalogixStoreHeader.tsx
|
|
7332
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
7333
|
+
var ScCatalogixStoreHeader = ({
|
|
7334
|
+
storeNameLabel = "Store name",
|
|
7335
|
+
statusLabel = "Status",
|
|
7336
|
+
productsLabel = "Products",
|
|
7337
|
+
assetsLabel = "Assets",
|
|
7338
|
+
createdOnLabel = "Created on",
|
|
7339
|
+
createdByLabel = "Created by",
|
|
7340
|
+
showAssets = true,
|
|
7341
|
+
showCreatedBy = true,
|
|
7342
|
+
className,
|
|
7343
|
+
...props
|
|
7344
|
+
}) => {
|
|
7345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
7346
|
+
"div",
|
|
7347
|
+
{
|
|
7348
|
+
className: ScCatalogixStoreHeader_default.scCatalogixStoreHeader + (className ? " " + className : ""),
|
|
7349
|
+
...props,
|
|
7350
|
+
children: [
|
|
7351
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colName, children: storeNameLabel }),
|
|
7352
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colStatus, children: statusLabel }),
|
|
7353
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colNum, children: productsLabel }),
|
|
7354
|
+
showAssets && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colNum, children: assetsLabel }),
|
|
7355
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colDate, children: createdOnLabel }),
|
|
7356
|
+
showCreatedBy && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: ScCatalogixStoreHeader_default.label + " " + ScCatalogixStoreHeader_default.colBy, children: createdByLabel })
|
|
7357
|
+
]
|
|
7358
|
+
}
|
|
7359
|
+
);
|
|
7360
|
+
};
|
|
7361
|
+
|
|
7362
|
+
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.module.css
|
|
7363
|
+
var ScCatalogixStoreTableList_default = {
|
|
7364
|
+
scCatalogixStoreTableList: "ScCatalogixStoreTableList_scCatalogixStoreTableList",
|
|
7365
|
+
name: "ScCatalogixStoreTableList_name",
|
|
7366
|
+
status: "ScCatalogixStoreTableList_status",
|
|
7367
|
+
statusSuccess: "ScCatalogixStoreTableList_statusSuccess",
|
|
7368
|
+
statusWarning: "ScCatalogixStoreTableList_statusWarning",
|
|
7369
|
+
statusError: "ScCatalogixStoreTableList_statusError",
|
|
7370
|
+
statusNeutral: "ScCatalogixStoreTableList_statusNeutral",
|
|
7371
|
+
cell: "ScCatalogixStoreTableList_cell",
|
|
7372
|
+
colNum: "ScCatalogixStoreTableList_colNum",
|
|
7373
|
+
colDate: "ScCatalogixStoreTableList_colDate",
|
|
7374
|
+
colBy: "ScCatalogixStoreTableList_colBy"
|
|
7375
|
+
};
|
|
7376
|
+
|
|
7377
|
+
// src/SC-CatalogixStoreTableList/ScCatalogixStoreTableList.tsx
|
|
7378
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
7379
|
+
var STATUS_TONE_CLASS = {
|
|
7380
|
+
success: "statusSuccess",
|
|
7381
|
+
warning: "statusWarning",
|
|
7382
|
+
error: "statusError",
|
|
7383
|
+
neutral: "statusNeutral"
|
|
7384
|
+
};
|
|
7385
|
+
var ScCatalogixStoreTableList = ({
|
|
7386
|
+
storeName = "Farfetch - Spring Season 2026 - Topwear",
|
|
7387
|
+
status = "Need Attention",
|
|
7388
|
+
statusTone = "error",
|
|
7389
|
+
products = "1240",
|
|
7390
|
+
assets = "27830",
|
|
7391
|
+
createdOn = "Nov 9th, 2025",
|
|
7392
|
+
createdBy = "Chris Hemsworth",
|
|
7393
|
+
showAssets = true,
|
|
7394
|
+
showCreatedBy = true,
|
|
7395
|
+
className,
|
|
7396
|
+
...props
|
|
7397
|
+
}) => {
|
|
7398
|
+
const toneClass = ScCatalogixStoreTableList_default[STATUS_TONE_CLASS[statusTone] || "statusNeutral"];
|
|
7399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
7400
|
+
"div",
|
|
7401
|
+
{
|
|
7402
|
+
className: ScCatalogixStoreTableList_default.scCatalogixStoreTableList + (className ? " " + className : ""),
|
|
7403
|
+
...props,
|
|
7404
|
+
children: [
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: ScCatalogixStoreTableList_default.name, title: storeName, children: storeName }),
|
|
7406
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: ScCatalogixStoreTableList_default.status + " " + toneClass, children: status }),
|
|
7407
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colNum, children: products }),
|
|
7408
|
+
showAssets && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colNum, children: assets }),
|
|
7409
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colDate, children: createdOn }),
|
|
7410
|
+
showCreatedBy && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: ScCatalogixStoreTableList_default.cell + " " + ScCatalogixStoreTableList_default.colBy, children: createdBy })
|
|
7411
|
+
]
|
|
7412
|
+
}
|
|
7413
|
+
);
|
|
7414
|
+
};
|
|
7415
|
+
|
|
7220
7416
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.module.css
|
|
7221
7417
|
var ScThinkingStepIcon_default = {
|
|
7222
7418
|
scThinkingStepIcon: "ScThinkingStepIcon_scThinkingStepIcon",
|
|
@@ -7231,7 +7427,7 @@ var ScThinkingStepIcon_default = {
|
|
|
7231
7427
|
};
|
|
7232
7428
|
|
|
7233
7429
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.tsx
|
|
7234
|
-
var
|
|
7430
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
7235
7431
|
var ScThinkingStepIcon = ({
|
|
7236
7432
|
state = "default",
|
|
7237
7433
|
size = 12,
|
|
@@ -7240,13 +7436,13 @@ var ScThinkingStepIcon = ({
|
|
|
7240
7436
|
...props
|
|
7241
7437
|
}) => {
|
|
7242
7438
|
const variantsClassName = ScThinkingStepIcon_default["state-" + state];
|
|
7243
|
-
return /* @__PURE__ */ (0,
|
|
7439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7244
7440
|
"span",
|
|
7245
7441
|
{
|
|
7246
7442
|
className: ScThinkingStepIcon_default.scThinkingStepIcon + " " + (className ?? "") + " " + variantsClassName,
|
|
7247
7443
|
style: { width: size, height: size, ...style },
|
|
7248
7444
|
...props,
|
|
7249
|
-
children: /* @__PURE__ */ (0,
|
|
7445
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
7250
7446
|
"svg",
|
|
7251
7447
|
{
|
|
7252
7448
|
className: ScThinkingStepIcon_default.glyph,
|
|
@@ -7257,7 +7453,7 @@ var ScThinkingStepIcon = ({
|
|
|
7257
7453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7258
7454
|
"aria-hidden": "true",
|
|
7259
7455
|
children: [
|
|
7260
|
-
state === "default" && /* @__PURE__ */ (0,
|
|
7456
|
+
state === "default" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7261
7457
|
"circle",
|
|
7262
7458
|
{
|
|
7263
7459
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7268,7 +7464,7 @@ var ScThinkingStepIcon = ({
|
|
|
7268
7464
|
strokeLinecap: "round"
|
|
7269
7465
|
}
|
|
7270
7466
|
),
|
|
7271
|
-
state === "working" && /* @__PURE__ */ (0,
|
|
7467
|
+
state === "working" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7272
7468
|
"path",
|
|
7273
7469
|
{
|
|
7274
7470
|
className: ScThinkingStepIcon_default.stroke + " " + ScThinkingStepIcon_default.spinner,
|
|
@@ -7278,7 +7474,7 @@ var ScThinkingStepIcon = ({
|
|
|
7278
7474
|
strokeLinejoin: "round"
|
|
7279
7475
|
}
|
|
7280
7476
|
),
|
|
7281
|
-
state === "completed" && /* @__PURE__ */ (0,
|
|
7477
|
+
state === "completed" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7282
7478
|
"path",
|
|
7283
7479
|
{
|
|
7284
7480
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7288,7 +7484,7 @@ var ScThinkingStepIcon = ({
|
|
|
7288
7484
|
strokeLinejoin: "round"
|
|
7289
7485
|
}
|
|
7290
7486
|
),
|
|
7291
|
-
state === "error" && /* @__PURE__ */ (0,
|
|
7487
|
+
state === "error" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
7292
7488
|
"path",
|
|
7293
7489
|
{
|
|
7294
7490
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -7328,7 +7524,7 @@ var ScInChatList_default = {
|
|
|
7328
7524
|
|
|
7329
7525
|
// src/SC-InChatList/ScInChatList.tsx
|
|
7330
7526
|
var import_icons61 = require("@streamoid/icons");
|
|
7331
|
-
var
|
|
7527
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7332
7528
|
var ScInChatList = ({
|
|
7333
7529
|
title = "Infrastructure that helps modern brands scale",
|
|
7334
7530
|
description = "Description",
|
|
@@ -7345,33 +7541,33 @@ var ScInChatList = ({
|
|
|
7345
7541
|
}) => {
|
|
7346
7542
|
const isExpandable = descriptionVisibility === "hidden" || descriptionVisibility === "visible";
|
|
7347
7543
|
const isExpanded = descriptionVisibility === "visible";
|
|
7348
|
-
return /* @__PURE__ */ (0,
|
|
7544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
7349
7545
|
"div",
|
|
7350
7546
|
{
|
|
7351
7547
|
className: ScInChatList_default.scInChatList + (className ? " " + className : ""),
|
|
7352
7548
|
style,
|
|
7353
7549
|
children: [
|
|
7354
|
-
leadingIndicator && /* @__PURE__ */ (0,
|
|
7355
|
-
/* @__PURE__ */ (0,
|
|
7356
|
-
/* @__PURE__ */ (0,
|
|
7357
|
-
showSteps && /* @__PURE__ */ (0,
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7550
|
+
leadingIndicator && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: ScInChatList_default.indicatorWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ScThinkingStepIcon, { state: iconState }) }),
|
|
7551
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: ScInChatList_default.content, children: [
|
|
7552
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: ScInChatList_default.headerArea, children: [
|
|
7553
|
+
showSteps && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: ScInChatList_default.stepCount, children: stepCount }),
|
|
7554
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
7359
7555
|
"div",
|
|
7360
7556
|
{
|
|
7361
7557
|
className: ScInChatList_default.titleRow + " " + (isExpandable ? ScInChatList_default.titleRowClickable : ScInChatList_default.titleRowStatic),
|
|
7362
7558
|
onClick: isExpandable ? onToggle : void 0,
|
|
7363
7559
|
children: [
|
|
7364
|
-
/* @__PURE__ */ (0,
|
|
7365
|
-
isExpandable && /* @__PURE__ */ (0,
|
|
7560
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: ScInChatList_default.title, children: title }),
|
|
7561
|
+
isExpandable && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: ScInChatList_default.chevronWrapper, children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons61.SiconUp, { size: 12, className: ScInChatList_default.chevronIcon }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons61.SiconDown, { size: 12, className: ScInChatList_default.chevronIcon }) })
|
|
7366
7562
|
]
|
|
7367
7563
|
}
|
|
7368
7564
|
),
|
|
7369
|
-
isExpanded && /* @__PURE__ */ (0,
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7371
|
-
/* @__PURE__ */ (0,
|
|
7565
|
+
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: ScInChatList_default.descriptionRow, children: [
|
|
7566
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: ScInChatList_default.descriptionIcon, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons61.SiconDot, { size: 20, className: ScInChatList_default.descriptionDot }) }),
|
|
7567
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: ScInChatList_default.descriptionText, children: description })
|
|
7372
7568
|
] })
|
|
7373
7569
|
] }),
|
|
7374
|
-
showTool && /* @__PURE__ */ (0,
|
|
7570
|
+
showTool && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: ScInChatList_default.toolPill, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: ScInChatList_default.toolText, children: toolUsing }) })
|
|
7375
7571
|
] })
|
|
7376
7572
|
]
|
|
7377
7573
|
}
|
|
@@ -7385,7 +7581,7 @@ var ScSubAgent_default = {
|
|
|
7385
7581
|
};
|
|
7386
7582
|
|
|
7387
7583
|
// src/SC-SubAgent/ScSubAgent.tsx
|
|
7388
|
-
var
|
|
7584
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
7389
7585
|
function formatSubAgentLabel(agentName) {
|
|
7390
7586
|
const normalized = (agentName ?? "").trim();
|
|
7391
7587
|
if (!normalized) return "Using sub-agent...";
|
|
@@ -7398,12 +7594,12 @@ var ScSubAgent = ({
|
|
|
7398
7594
|
...props
|
|
7399
7595
|
}) => {
|
|
7400
7596
|
const label = text ?? formatSubAgentLabel(agentName);
|
|
7401
|
-
return /* @__PURE__ */ (0,
|
|
7597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
7402
7598
|
"div",
|
|
7403
7599
|
{
|
|
7404
7600
|
className: [ScSubAgent_default.scSubAgent, className].filter(Boolean).join(" "),
|
|
7405
7601
|
...props,
|
|
7406
|
-
children: /* @__PURE__ */ (0,
|
|
7602
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: ScSubAgent_default.label, children: label })
|
|
7407
7603
|
}
|
|
7408
7604
|
);
|
|
7409
7605
|
};
|
|
@@ -7417,7 +7613,7 @@ var ScInChatMessage_default = {
|
|
|
7417
7613
|
};
|
|
7418
7614
|
|
|
7419
7615
|
// src/SC-InChatMessage/ScInChatMessage.tsx
|
|
7420
|
-
var
|
|
7616
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
7421
7617
|
var ScInChatMessage = ({
|
|
7422
7618
|
type = "input",
|
|
7423
7619
|
text,
|
|
@@ -7427,13 +7623,13 @@ var ScInChatMessage = ({
|
|
|
7427
7623
|
...props
|
|
7428
7624
|
}) => {
|
|
7429
7625
|
const variantsClassName = ScInChatMessage_default["type-" + type];
|
|
7430
|
-
return /* @__PURE__ */ (0,
|
|
7626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
7431
7627
|
"div",
|
|
7432
7628
|
{
|
|
7433
7629
|
className: [ScInChatMessage_default.scInChatMessage, variantsClassName, className].filter(Boolean).join(" "),
|
|
7434
7630
|
id,
|
|
7435
7631
|
...props,
|
|
7436
|
-
children: /* @__PURE__ */ (0,
|
|
7632
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: ScInChatMessage_default.text, children: children ?? text })
|
|
7437
7633
|
}
|
|
7438
7634
|
);
|
|
7439
7635
|
};
|
|
@@ -7450,7 +7646,7 @@ var ScSelection_default = {
|
|
|
7450
7646
|
};
|
|
7451
7647
|
|
|
7452
7648
|
// src/SC-Selection/ScSelection.tsx
|
|
7453
|
-
var
|
|
7649
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7454
7650
|
var ScSelection = ({
|
|
7455
7651
|
title = "Title",
|
|
7456
7652
|
description = "Description",
|
|
@@ -7466,23 +7662,23 @@ var ScSelection = ({
|
|
|
7466
7662
|
onClick?.(event);
|
|
7467
7663
|
onSelect?.(value);
|
|
7468
7664
|
};
|
|
7469
|
-
return /* @__PURE__ */ (0,
|
|
7665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
7470
7666
|
"div",
|
|
7471
7667
|
{
|
|
7472
7668
|
className: [ScSelection_default.scSelection, variantsClassName, className].filter(Boolean).join(" "),
|
|
7473
7669
|
onClick: handleClick,
|
|
7474
7670
|
...props,
|
|
7475
7671
|
children: [
|
|
7476
|
-
/* @__PURE__ */ (0,
|
|
7672
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
7477
7673
|
ScRadio,
|
|
7478
7674
|
{
|
|
7479
7675
|
state: active ? "selected" : "default",
|
|
7480
7676
|
className: ScSelection_default.scRadioInstance
|
|
7481
7677
|
}
|
|
7482
7678
|
),
|
|
7483
|
-
/* @__PURE__ */ (0,
|
|
7484
|
-
/* @__PURE__ */ (0,
|
|
7485
|
-
/* @__PURE__ */ (0,
|
|
7679
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: ScSelection_default.wrapper, children: [
|
|
7680
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: ScSelection_default.title, children: title }),
|
|
7681
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: ScSelection_default.description, children: description })
|
|
7486
7682
|
] })
|
|
7487
7683
|
]
|
|
7488
7684
|
}
|
|
@@ -7509,7 +7705,7 @@ var ScSelectionList_default = {
|
|
|
7509
7705
|
};
|
|
7510
7706
|
|
|
7511
7707
|
// src/SC-SelectionList/ScSelectionList.tsx
|
|
7512
|
-
var
|
|
7708
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7513
7709
|
var ScSelectionList = ({
|
|
7514
7710
|
state = "default",
|
|
7515
7711
|
label = "Suggested Colours: ",
|
|
@@ -7532,14 +7728,14 @@ var ScSelectionList = ({
|
|
|
7532
7728
|
onChange?.(next);
|
|
7533
7729
|
if (next === "rejected") onReject?.();
|
|
7534
7730
|
};
|
|
7535
|
-
return /* @__PURE__ */ (0,
|
|
7731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
7536
7732
|
"div",
|
|
7537
7733
|
{
|
|
7538
7734
|
className: ScSelectionList_default.scSelectionList + (disabled ? " " + ScSelectionList_default.disabled : "") + (className ? " " + className : "") + " " + variantsClassName,
|
|
7539
7735
|
...props,
|
|
7540
7736
|
children: [
|
|
7541
|
-
/* @__PURE__ */ (0,
|
|
7542
|
-
/* @__PURE__ */ (0,
|
|
7737
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: ScSelectionList_default.toggles, children: [
|
|
7738
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7543
7739
|
"button",
|
|
7544
7740
|
{
|
|
7545
7741
|
type: "button",
|
|
@@ -7548,7 +7744,7 @@ var ScSelectionList = ({
|
|
|
7548
7744
|
disabled,
|
|
7549
7745
|
"aria-pressed": state === "approved",
|
|
7550
7746
|
"aria-label": state === "approved" ? "Revoke approval" : "Approve",
|
|
7551
|
-
children: /* @__PURE__ */ (0,
|
|
7747
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7552
7748
|
"svg",
|
|
7553
7749
|
{
|
|
7554
7750
|
className: ScSelectionList_default.checkIcon,
|
|
@@ -7557,7 +7753,7 @@ var ScSelectionList = ({
|
|
|
7557
7753
|
viewBox: "0 0 8 6",
|
|
7558
7754
|
fill: "none",
|
|
7559
7755
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7560
|
-
children: /* @__PURE__ */ (0,
|
|
7756
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7561
7757
|
"path",
|
|
7562
7758
|
{
|
|
7563
7759
|
d: "M0.5 3.5L2.5 5.5L7.5 0.5",
|
|
@@ -7570,7 +7766,7 @@ var ScSelectionList = ({
|
|
|
7570
7766
|
)
|
|
7571
7767
|
}
|
|
7572
7768
|
),
|
|
7573
|
-
/* @__PURE__ */ (0,
|
|
7769
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7574
7770
|
"button",
|
|
7575
7771
|
{
|
|
7576
7772
|
type: "button",
|
|
@@ -7579,7 +7775,7 @@ var ScSelectionList = ({
|
|
|
7579
7775
|
disabled,
|
|
7580
7776
|
"aria-pressed": state === "rejected",
|
|
7581
7777
|
"aria-label": state === "rejected" ? "Revoke rejection" : "Reject",
|
|
7582
|
-
children: /* @__PURE__ */ (0,
|
|
7778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7583
7779
|
"svg",
|
|
7584
7780
|
{
|
|
7585
7781
|
className: ScSelectionList_default.closeIcon,
|
|
@@ -7588,7 +7784,7 @@ var ScSelectionList = ({
|
|
|
7588
7784
|
viewBox: "0 0 6.24261 6.24262",
|
|
7589
7785
|
fill: "none",
|
|
7590
7786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7591
|
-
children: /* @__PURE__ */ (0,
|
|
7787
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7592
7788
|
"path",
|
|
7593
7789
|
{
|
|
7594
7790
|
d: "M0.5 5.74262L3.12132 3.12132M3.12132 3.12132L5.74261 0.5M3.12132 3.12132L0.5 0.5M3.12132 3.12132L5.74261 5.74262",
|
|
@@ -7602,15 +7798,966 @@ var ScSelectionList = ({
|
|
|
7602
7798
|
}
|
|
7603
7799
|
)
|
|
7604
7800
|
] }),
|
|
7605
|
-
/* @__PURE__ */ (0,
|
|
7606
|
-
/* @__PURE__ */ (0,
|
|
7607
|
-
/* @__PURE__ */ (0,
|
|
7801
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: ScSelectionList_default.content, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: ScSelectionList_default.row, children: [
|
|
7802
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: ScSelectionList_default.label, children: label }),
|
|
7803
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: ScSelectionList_default.valuesPill, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: ScSelectionList_default.valuesText, children: optionValues }) })
|
|
7608
7804
|
] }) })
|
|
7609
7805
|
]
|
|
7610
7806
|
}
|
|
7611
7807
|
);
|
|
7612
7808
|
};
|
|
7613
7809
|
|
|
7810
|
+
// src/SC-textArea/ScTextArea.tsx
|
|
7811
|
+
var import_react15 = require("react");
|
|
7812
|
+
|
|
7813
|
+
// src/SC-textArea/ScTextArea.module.css
|
|
7814
|
+
var ScTextArea_default = {
|
|
7815
|
+
scTextArea: "ScTextArea_scTextArea",
|
|
7816
|
+
"label-group-none": "ScTextArea_label-group-none",
|
|
7817
|
+
labelContainer: "ScTextArea_labelContainer",
|
|
7818
|
+
label: "ScTextArea_label",
|
|
7819
|
+
info: "ScTextArea_info",
|
|
7820
|
+
inputContainer: "ScTextArea_inputContainer",
|
|
7821
|
+
inputText: "ScTextArea_inputText",
|
|
7822
|
+
"state-hover": "ScTextArea_state-hover",
|
|
7823
|
+
"state-filled": "ScTextArea_state-filled",
|
|
7824
|
+
"state-active": "ScTextArea_state-active",
|
|
7825
|
+
"state-error": "ScTextArea_state-error",
|
|
7826
|
+
"state-disabled": "ScTextArea_state-disabled"
|
|
7827
|
+
};
|
|
7828
|
+
|
|
7829
|
+
// src/SC-textArea/ScTextArea.tsx
|
|
7830
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7831
|
+
var ScTextArea = ({
|
|
7832
|
+
state,
|
|
7833
|
+
labelGroup = "",
|
|
7834
|
+
label = "",
|
|
7835
|
+
info = "info",
|
|
7836
|
+
placeholderFilled = "Placeholder",
|
|
7837
|
+
className,
|
|
7838
|
+
style,
|
|
7839
|
+
...props
|
|
7840
|
+
}) => {
|
|
7841
|
+
const [focused, setFocused] = (0, import_react15.useState)(false);
|
|
7842
|
+
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
7843
|
+
const stateClass = ScTextArea_default["state-" + derivedState];
|
|
7844
|
+
const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
|
|
7845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
7846
|
+
"div",
|
|
7847
|
+
{
|
|
7848
|
+
className: [ScTextArea_default.scTextArea, stateClass, labelGroupClass, className].filter(Boolean).join(" "),
|
|
7849
|
+
style,
|
|
7850
|
+
children: [
|
|
7851
|
+
labelGroup && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: ScTextArea_default.labelContainer, children: [
|
|
7852
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: ScTextArea_default.label, children: [
|
|
7853
|
+
label,
|
|
7854
|
+
" "
|
|
7855
|
+
] }),
|
|
7856
|
+
labelGroup === "text" && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: ScTextArea_default.info, children: [
|
|
7857
|
+
info,
|
|
7858
|
+
" "
|
|
7859
|
+
] })
|
|
7860
|
+
] }),
|
|
7861
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: ScTextArea_default.inputContainer, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7862
|
+
"textarea",
|
|
7863
|
+
{
|
|
7864
|
+
className: ScTextArea_default.inputText,
|
|
7865
|
+
placeholder: placeholderFilled,
|
|
7866
|
+
...props,
|
|
7867
|
+
onFocus: (e) => {
|
|
7868
|
+
setFocused(true);
|
|
7869
|
+
props.onFocus?.(e);
|
|
7870
|
+
},
|
|
7871
|
+
onBlur: (e) => {
|
|
7872
|
+
setFocused(false);
|
|
7873
|
+
props.onBlur?.(e);
|
|
7874
|
+
}
|
|
7875
|
+
}
|
|
7876
|
+
) })
|
|
7877
|
+
]
|
|
7878
|
+
}
|
|
7879
|
+
);
|
|
7880
|
+
};
|
|
7881
|
+
|
|
7882
|
+
// src/SC-select/ScSelect.tsx
|
|
7883
|
+
var import_react16 = require("react");
|
|
7884
|
+
|
|
7885
|
+
// src/SC-select/ScSelect.module.css
|
|
7886
|
+
var ScSelect_default = {
|
|
7887
|
+
scSelect: "ScSelect_scSelect",
|
|
7888
|
+
"label-group-": "ScSelect_label-group-",
|
|
7889
|
+
labelContainer: "ScSelect_labelContainer",
|
|
7890
|
+
label: "ScSelect_label",
|
|
7891
|
+
selectArea: "ScSelect_selectArea",
|
|
7892
|
+
trigger: "ScSelect_trigger",
|
|
7893
|
+
triggerText: "ScSelect_triggerText",
|
|
7894
|
+
placeholder: "ScSelect_placeholder",
|
|
7895
|
+
chevron: "ScSelect_chevron",
|
|
7896
|
+
chevronOpen: "ScSelect_chevronOpen",
|
|
7897
|
+
"state-filled": "ScSelect_state-filled",
|
|
7898
|
+
"state-active": "ScSelect_state-active",
|
|
7899
|
+
"state-disabled": "ScSelect_state-disabled",
|
|
7900
|
+
menu: "ScSelect_menu",
|
|
7901
|
+
option: "ScSelect_option",
|
|
7902
|
+
"option-selected": "ScSelect_option-selected",
|
|
7903
|
+
optionLabel: "ScSelect_optionLabel",
|
|
7904
|
+
optionDescription: "ScSelect_optionDescription"
|
|
7905
|
+
};
|
|
7906
|
+
|
|
7907
|
+
// src/SC-select/ScSelect.tsx
|
|
7908
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7909
|
+
var ScSelect = (props) => {
|
|
7910
|
+
const {
|
|
7911
|
+
value,
|
|
7912
|
+
onChange,
|
|
7913
|
+
options = [],
|
|
7914
|
+
placeholder = "Select an option...",
|
|
7915
|
+
label,
|
|
7916
|
+
labelGroup = "",
|
|
7917
|
+
disabled = false,
|
|
7918
|
+
className
|
|
7919
|
+
} = props;
|
|
7920
|
+
const [open, setOpen] = (0, import_react16.useState)(false);
|
|
7921
|
+
const rootRef = (0, import_react16.useRef)(null);
|
|
7922
|
+
(0, import_react16.useEffect)(() => {
|
|
7923
|
+
if (!open) return;
|
|
7924
|
+
const handleClick = (e) => {
|
|
7925
|
+
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
7926
|
+
setOpen(false);
|
|
7927
|
+
}
|
|
7928
|
+
};
|
|
7929
|
+
document.addEventListener("mousedown", handleClick);
|
|
7930
|
+
return () => document.removeEventListener("mousedown", handleClick);
|
|
7931
|
+
}, [open]);
|
|
7932
|
+
const selected = options.find((o) => o.id === value);
|
|
7933
|
+
const state = disabled ? "disabled" : open ? "active" : selected ? "filled" : "default";
|
|
7934
|
+
const handleToggle = () => {
|
|
7935
|
+
if (disabled) return;
|
|
7936
|
+
setOpen((prev) => !prev);
|
|
7937
|
+
};
|
|
7938
|
+
const handleSelect = (id) => {
|
|
7939
|
+
if (onChange) onChange(id);
|
|
7940
|
+
setOpen(false);
|
|
7941
|
+
};
|
|
7942
|
+
const rootClass = [
|
|
7943
|
+
ScSelect_default.scSelect,
|
|
7944
|
+
ScSelect_default["state-" + state],
|
|
7945
|
+
labelGroup ? ScSelect_default["label-group-" + labelGroup] : void 0,
|
|
7946
|
+
className
|
|
7947
|
+
].filter(Boolean).join(" ");
|
|
7948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: rootClass, ref: rootRef, children: [
|
|
7949
|
+
labelGroup === "label" && label ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: ScSelect_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: ScSelect_default.label, children: label }) }) : null,
|
|
7950
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: ScSelect_default.selectArea, children: [
|
|
7951
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
7952
|
+
"button",
|
|
7953
|
+
{
|
|
7954
|
+
type: "button",
|
|
7955
|
+
className: ScSelect_default.trigger,
|
|
7956
|
+
onClick: handleToggle,
|
|
7957
|
+
disabled,
|
|
7958
|
+
"aria-haspopup": "listbox",
|
|
7959
|
+
"aria-expanded": open,
|
|
7960
|
+
children: [
|
|
7961
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7962
|
+
"span",
|
|
7963
|
+
{
|
|
7964
|
+
className: [ScSelect_default.triggerText, selected ? void 0 : ScSelect_default.placeholder].filter(Boolean).join(" "),
|
|
7965
|
+
children: selected ? selected.label : placeholder
|
|
7966
|
+
}
|
|
7967
|
+
),
|
|
7968
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7969
|
+
"span",
|
|
7970
|
+
{
|
|
7971
|
+
className: [ScSelect_default.chevron, open ? ScSelect_default.chevronOpen : void 0].filter(Boolean).join(" "),
|
|
7972
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7973
|
+
"path",
|
|
7974
|
+
{
|
|
7975
|
+
d: "M5 7.5L10 12.5L15 7.5",
|
|
7976
|
+
stroke: "currentColor",
|
|
7977
|
+
strokeWidth: "1.5",
|
|
7978
|
+
strokeLinecap: "round",
|
|
7979
|
+
strokeLinejoin: "round"
|
|
7980
|
+
}
|
|
7981
|
+
) })
|
|
7982
|
+
}
|
|
7983
|
+
)
|
|
7984
|
+
]
|
|
7985
|
+
}
|
|
7986
|
+
),
|
|
7987
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: ScSelect_default.menu, role: "listbox", children: options.map((option) => {
|
|
7988
|
+
const isSelected = option.id === value;
|
|
7989
|
+
const optionClass = [
|
|
7990
|
+
ScSelect_default.option,
|
|
7991
|
+
isSelected ? ScSelect_default["option-selected"] : void 0
|
|
7992
|
+
].filter(Boolean).join(" ");
|
|
7993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
7994
|
+
"div",
|
|
7995
|
+
{
|
|
7996
|
+
className: optionClass,
|
|
7997
|
+
role: "option",
|
|
7998
|
+
"aria-selected": isSelected,
|
|
7999
|
+
onClick: () => handleSelect(option.id),
|
|
8000
|
+
children: [
|
|
8001
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: ScSelect_default.optionLabel, children: option.label }),
|
|
8002
|
+
option.description ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: ScSelect_default.optionDescription, children: option.description }) : null
|
|
8003
|
+
]
|
|
8004
|
+
},
|
|
8005
|
+
option.id
|
|
8006
|
+
);
|
|
8007
|
+
}) }) : null
|
|
8008
|
+
] })
|
|
8009
|
+
] });
|
|
8010
|
+
};
|
|
8011
|
+
|
|
8012
|
+
// src/SC-fileField/ScFileField.tsx
|
|
8013
|
+
var import_react17 = require("react");
|
|
8014
|
+
|
|
8015
|
+
// src/SC-fileField/ScFileField.module.css
|
|
8016
|
+
var ScFileField_default = {
|
|
8017
|
+
scFileField: "ScFileField_scFileField",
|
|
8018
|
+
labelContainer: "ScFileField_labelContainer",
|
|
8019
|
+
label: "ScFileField_label",
|
|
8020
|
+
dropzone: "ScFileField_dropzone",
|
|
8021
|
+
hiddenInput: "ScFileField_hiddenInput",
|
|
8022
|
+
uploadIcon: "ScFileField_uploadIcon",
|
|
8023
|
+
dropzoneText: "ScFileField_dropzoneText",
|
|
8024
|
+
dropzoneAction: "ScFileField_dropzoneAction",
|
|
8025
|
+
acceptedText: "ScFileField_acceptedText",
|
|
8026
|
+
inputContainer: "ScFileField_inputContainer",
|
|
8027
|
+
fileIcon: "ScFileField_fileIcon",
|
|
8028
|
+
fileInfo: "ScFileField_fileInfo",
|
|
8029
|
+
fileName: "ScFileField_fileName",
|
|
8030
|
+
progressTrack: "ScFileField_progressTrack",
|
|
8031
|
+
progressFill: "ScFileField_progressFill",
|
|
8032
|
+
clearButton: "ScFileField_clearButton",
|
|
8033
|
+
errorText: "ScFileField_errorText"
|
|
8034
|
+
};
|
|
8035
|
+
|
|
8036
|
+
// src/SC-fileField/ScFileField.tsx
|
|
8037
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
8038
|
+
var ScFileField = (props) => {
|
|
8039
|
+
const {
|
|
8040
|
+
onFileSelect,
|
|
8041
|
+
accept,
|
|
8042
|
+
multiple,
|
|
8043
|
+
fileName,
|
|
8044
|
+
uploading,
|
|
8045
|
+
progress = 0,
|
|
8046
|
+
error,
|
|
8047
|
+
onClear,
|
|
8048
|
+
label,
|
|
8049
|
+
className
|
|
8050
|
+
} = props;
|
|
8051
|
+
const inputRef = (0, import_react17.useRef)(null);
|
|
8052
|
+
const hasFile = Boolean(fileName);
|
|
8053
|
+
const isUploading = Boolean(uploading);
|
|
8054
|
+
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
8055
|
+
const handleChange = (e) => {
|
|
8056
|
+
if (onFileSelect) {
|
|
8057
|
+
onFileSelect(e.target.files);
|
|
8058
|
+
}
|
|
8059
|
+
};
|
|
8060
|
+
const uploadIcon = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
8061
|
+
"svg",
|
|
8062
|
+
{
|
|
8063
|
+
className: ScFileField_default.uploadIcon,
|
|
8064
|
+
width: "28",
|
|
8065
|
+
height: "28",
|
|
8066
|
+
viewBox: "0 0 24 24",
|
|
8067
|
+
fill: "none",
|
|
8068
|
+
stroke: "currentColor",
|
|
8069
|
+
strokeWidth: "1.5",
|
|
8070
|
+
strokeLinecap: "round",
|
|
8071
|
+
strokeLinejoin: "round",
|
|
8072
|
+
"aria-hidden": "true",
|
|
8073
|
+
children: [
|
|
8074
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
8075
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M12 16V4" }),
|
|
8076
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M7 9l5-5 5 5" })
|
|
8077
|
+
]
|
|
8078
|
+
}
|
|
8079
|
+
);
|
|
8080
|
+
const fileIcon = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
8081
|
+
"svg",
|
|
8082
|
+
{
|
|
8083
|
+
className: ScFileField_default.fileIcon,
|
|
8084
|
+
width: "20",
|
|
8085
|
+
height: "20",
|
|
8086
|
+
viewBox: "0 0 24 24",
|
|
8087
|
+
fill: "none",
|
|
8088
|
+
stroke: "currentColor",
|
|
8089
|
+
strokeWidth: "1.5",
|
|
8090
|
+
strokeLinecap: "round",
|
|
8091
|
+
strokeLinejoin: "round",
|
|
8092
|
+
"aria-hidden": "true",
|
|
8093
|
+
children: [
|
|
8094
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
8095
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M14 2v6h6" })
|
|
8096
|
+
]
|
|
8097
|
+
}
|
|
8098
|
+
);
|
|
8099
|
+
const clearIcon = /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
8100
|
+
"svg",
|
|
8101
|
+
{
|
|
8102
|
+
width: "20",
|
|
8103
|
+
height: "20",
|
|
8104
|
+
viewBox: "0 0 24 24",
|
|
8105
|
+
fill: "none",
|
|
8106
|
+
stroke: "currentColor",
|
|
8107
|
+
strokeWidth: "1.5",
|
|
8108
|
+
strokeLinecap: "round",
|
|
8109
|
+
strokeLinejoin: "round",
|
|
8110
|
+
"aria-hidden": "true",
|
|
8111
|
+
children: [
|
|
8112
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M18 6L6 18" }),
|
|
8113
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6 6l12 12" })
|
|
8114
|
+
]
|
|
8115
|
+
}
|
|
8116
|
+
);
|
|
8117
|
+
const rootClass = [ScFileField_default.scFileField, className].filter(Boolean).join(" ");
|
|
8118
|
+
const showRow = hasFile || isUploading;
|
|
8119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: rootClass, children: [
|
|
8120
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: ScFileField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: ScFileField_default.label, children: label }) }) : null,
|
|
8121
|
+
showRow ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScFileField_default.inputContainer, children: [
|
|
8122
|
+
fileIcon,
|
|
8123
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScFileField_default.fileInfo, children: [
|
|
8124
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScFileField_default.fileName, children: fileName }),
|
|
8125
|
+
isUploading ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: ScFileField_default.progressTrack, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
8126
|
+
"div",
|
|
8127
|
+
{
|
|
8128
|
+
className: ScFileField_default.progressFill,
|
|
8129
|
+
style: { width: clampedProgress + "%" }
|
|
8130
|
+
}
|
|
8131
|
+
) }) : null
|
|
8132
|
+
] }),
|
|
8133
|
+
!isUploading ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
8134
|
+
"button",
|
|
8135
|
+
{
|
|
8136
|
+
type: "button",
|
|
8137
|
+
className: ScFileField_default.clearButton,
|
|
8138
|
+
onClick: onClear,
|
|
8139
|
+
"aria-label": "Clear file",
|
|
8140
|
+
children: clearIcon
|
|
8141
|
+
}
|
|
8142
|
+
) : null
|
|
8143
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("label", { className: ScFileField_default.dropzone, children: [
|
|
8144
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
8145
|
+
"input",
|
|
8146
|
+
{
|
|
8147
|
+
ref: inputRef,
|
|
8148
|
+
type: "file",
|
|
8149
|
+
className: ScFileField_default.hiddenInput,
|
|
8150
|
+
accept,
|
|
8151
|
+
multiple,
|
|
8152
|
+
onChange: handleChange
|
|
8153
|
+
}
|
|
8154
|
+
),
|
|
8155
|
+
uploadIcon,
|
|
8156
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScFileField_default.dropzoneText, children: [
|
|
8157
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScFileField_default.dropzoneAction, children: "Click to upload" }),
|
|
8158
|
+
" or drag and drop"
|
|
8159
|
+
] }),
|
|
8160
|
+
accept ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScFileField_default.acceptedText, children: [
|
|
8161
|
+
"Accepted: ",
|
|
8162
|
+
accept
|
|
8163
|
+
] }) : null
|
|
8164
|
+
] }),
|
|
8165
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: ScFileField_default.errorText, children: error }) : null
|
|
8166
|
+
] });
|
|
8167
|
+
};
|
|
8168
|
+
|
|
8169
|
+
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
8170
|
+
var import_react18 = require("react");
|
|
8171
|
+
|
|
8172
|
+
// src/SC-mediaApproval/ScMediaApproval.module.css
|
|
8173
|
+
var ScMediaApproval_default = {
|
|
8174
|
+
scMediaApproval: "ScMediaApproval_scMediaApproval",
|
|
8175
|
+
mediaFrame: "ScMediaApproval_mediaFrame",
|
|
8176
|
+
media: "ScMediaApproval_media",
|
|
8177
|
+
mediaEmpty: "ScMediaApproval_mediaEmpty",
|
|
8178
|
+
spinnerOverlay: "ScMediaApproval_spinnerOverlay",
|
|
8179
|
+
spinner: "ScMediaApproval_spinner",
|
|
8180
|
+
spin: "ScMediaApproval_spin",
|
|
8181
|
+
navButton: "ScMediaApproval_navButton",
|
|
8182
|
+
navPrev: "ScMediaApproval_navPrev",
|
|
8183
|
+
navNext: "ScMediaApproval_navNext",
|
|
8184
|
+
counterBadge: "ScMediaApproval_counterBadge",
|
|
8185
|
+
dots: "ScMediaApproval_dots",
|
|
8186
|
+
dot: "ScMediaApproval_dot",
|
|
8187
|
+
"state-active": "ScMediaApproval_state-active",
|
|
8188
|
+
feedbackBlock: "ScMediaApproval_feedbackBlock",
|
|
8189
|
+
label: "ScMediaApproval_label",
|
|
8190
|
+
inputContainer: "ScMediaApproval_inputContainer",
|
|
8191
|
+
textArea: "ScMediaApproval_textArea"
|
|
8192
|
+
};
|
|
8193
|
+
|
|
8194
|
+
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
8195
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
8196
|
+
var VIDEO_EXT = /\.(mp4|webm|ogg|mov|m4v)(\?.*)?$/i;
|
|
8197
|
+
var isVideoUrl = (url, mediaType) => {
|
|
8198
|
+
if (mediaType === "video") return true;
|
|
8199
|
+
if (mediaType === "image") return false;
|
|
8200
|
+
return VIDEO_EXT.test(url);
|
|
8201
|
+
};
|
|
8202
|
+
var ScMediaApproval = (props) => {
|
|
8203
|
+
const {
|
|
8204
|
+
mediaUrls = [],
|
|
8205
|
+
mediaType,
|
|
8206
|
+
activeIndex,
|
|
8207
|
+
onIndexChange,
|
|
8208
|
+
onPreview,
|
|
8209
|
+
loading,
|
|
8210
|
+
feedbackLabel = "What should be changed?",
|
|
8211
|
+
feedbackValue,
|
|
8212
|
+
onFeedbackChange,
|
|
8213
|
+
feedbackPlaceholder,
|
|
8214
|
+
className
|
|
8215
|
+
} = props;
|
|
8216
|
+
const total = mediaUrls.length;
|
|
8217
|
+
const [index, setIndex] = (0, import_react18.useState)(activeIndex ?? 0);
|
|
8218
|
+
const [mediaLoading, setMediaLoading] = (0, import_react18.useState)(false);
|
|
8219
|
+
(0, import_react18.useEffect)(() => {
|
|
8220
|
+
if (typeof activeIndex === "number") {
|
|
8221
|
+
setIndex(activeIndex);
|
|
8222
|
+
}
|
|
8223
|
+
}, [activeIndex]);
|
|
8224
|
+
const goTo = (next) => {
|
|
8225
|
+
if (total === 0) return;
|
|
8226
|
+
const clamped = (next % total + total) % total;
|
|
8227
|
+
if (clamped !== index) setMediaLoading(true);
|
|
8228
|
+
setIndex(clamped);
|
|
8229
|
+
if (onIndexChange) onIndexChange(clamped);
|
|
8230
|
+
};
|
|
8231
|
+
const safeIndex = total > 0 ? Math.min(index, total - 1) : 0;
|
|
8232
|
+
const currentUrl = total > 0 ? mediaUrls[safeIndex] : void 0;
|
|
8233
|
+
const currentIsVideo = currentUrl ? isVideoUrl(currentUrl, mediaType) : false;
|
|
8234
|
+
const handlePreview = () => {
|
|
8235
|
+
if (currentUrl && onPreview) onPreview(currentUrl);
|
|
8236
|
+
};
|
|
8237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: [ScMediaApproval_default.scMediaApproval, className].filter(Boolean).join(" "), children: [
|
|
8238
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: ScMediaApproval_default.mediaFrame, children: [
|
|
8239
|
+
currentUrl ? currentIsVideo ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8240
|
+
"video",
|
|
8241
|
+
{
|
|
8242
|
+
className: ScMediaApproval_default.media,
|
|
8243
|
+
src: currentUrl,
|
|
8244
|
+
controls: true,
|
|
8245
|
+
onClick: handlePreview,
|
|
8246
|
+
onLoadedData: () => setMediaLoading(false)
|
|
8247
|
+
}
|
|
8248
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8249
|
+
"img",
|
|
8250
|
+
{
|
|
8251
|
+
className: ScMediaApproval_default.media,
|
|
8252
|
+
src: currentUrl,
|
|
8253
|
+
alt: "",
|
|
8254
|
+
onClick: handlePreview,
|
|
8255
|
+
onLoad: () => setMediaLoading(false)
|
|
8256
|
+
}
|
|
8257
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: ScMediaApproval_default.mediaEmpty }),
|
|
8258
|
+
(loading || mediaLoading) && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: ScMediaApproval_default.spinnerOverlay, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8259
|
+
"svg",
|
|
8260
|
+
{
|
|
8261
|
+
className: ScMediaApproval_default.spinner,
|
|
8262
|
+
width: "32",
|
|
8263
|
+
height: "32",
|
|
8264
|
+
viewBox: "0 0 24 24",
|
|
8265
|
+
fill: "none",
|
|
8266
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8267
|
+
"path",
|
|
8268
|
+
{
|
|
8269
|
+
d: "M12 3a9 9 0 1 0 9 9",
|
|
8270
|
+
stroke: "var(--alias-text-and-icons-fullwhite, #ffffff)",
|
|
8271
|
+
strokeWidth: "2",
|
|
8272
|
+
strokeLinecap: "round"
|
|
8273
|
+
}
|
|
8274
|
+
)
|
|
8275
|
+
}
|
|
8276
|
+
) }),
|
|
8277
|
+
total > 1 && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
8278
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8279
|
+
"button",
|
|
8280
|
+
{
|
|
8281
|
+
type: "button",
|
|
8282
|
+
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navPrev].join(" "),
|
|
8283
|
+
"aria-label": "Previous",
|
|
8284
|
+
onClick: () => goTo(safeIndex - 1),
|
|
8285
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8286
|
+
"path",
|
|
8287
|
+
{
|
|
8288
|
+
d: "M15 6L9 12L15 18",
|
|
8289
|
+
stroke: "var(--alias-text-and-icons-fullwhite, #ffffff)",
|
|
8290
|
+
strokeWidth: "2",
|
|
8291
|
+
strokeLinecap: "round",
|
|
8292
|
+
strokeLinejoin: "round"
|
|
8293
|
+
}
|
|
8294
|
+
) })
|
|
8295
|
+
}
|
|
8296
|
+
),
|
|
8297
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8298
|
+
"button",
|
|
8299
|
+
{
|
|
8300
|
+
type: "button",
|
|
8301
|
+
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navNext].join(" "),
|
|
8302
|
+
"aria-label": "Next",
|
|
8303
|
+
onClick: () => goTo(safeIndex + 1),
|
|
8304
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8305
|
+
"path",
|
|
8306
|
+
{
|
|
8307
|
+
d: "M9 6L15 12L9 18",
|
|
8308
|
+
stroke: "var(--alias-text-and-icons-fullwhite, #ffffff)",
|
|
8309
|
+
strokeWidth: "2",
|
|
8310
|
+
strokeLinecap: "round",
|
|
8311
|
+
strokeLinejoin: "round"
|
|
8312
|
+
}
|
|
8313
|
+
) })
|
|
8314
|
+
}
|
|
8315
|
+
),
|
|
8316
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: ScMediaApproval_default.counterBadge, children: [
|
|
8317
|
+
safeIndex + 1,
|
|
8318
|
+
" / ",
|
|
8319
|
+
total
|
|
8320
|
+
] }),
|
|
8321
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: ScMediaApproval_default.dots, children: mediaUrls.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8322
|
+
"button",
|
|
8323
|
+
{
|
|
8324
|
+
type: "button",
|
|
8325
|
+
"aria-label": "Go to item " + (i + 1),
|
|
8326
|
+
className: [
|
|
8327
|
+
ScMediaApproval_default.dot,
|
|
8328
|
+
i === safeIndex ? ScMediaApproval_default["state-active"] : ""
|
|
8329
|
+
].filter(Boolean).join(" "),
|
|
8330
|
+
onClick: () => goTo(i)
|
|
8331
|
+
},
|
|
8332
|
+
i
|
|
8333
|
+
)) })
|
|
8334
|
+
] })
|
|
8335
|
+
] }),
|
|
8336
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: ScMediaApproval_default.feedbackBlock, children: [
|
|
8337
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: ScMediaApproval_default.label, children: feedbackLabel }),
|
|
8338
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: ScMediaApproval_default.inputContainer, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8339
|
+
"textarea",
|
|
8340
|
+
{
|
|
8341
|
+
className: ScMediaApproval_default.textArea,
|
|
8342
|
+
value: feedbackValue ?? "",
|
|
8343
|
+
placeholder: feedbackPlaceholder,
|
|
8344
|
+
onChange: (e) => {
|
|
8345
|
+
if (onFeedbackChange) onFeedbackChange(e.target.value);
|
|
8346
|
+
}
|
|
8347
|
+
}
|
|
8348
|
+
) })
|
|
8349
|
+
] })
|
|
8350
|
+
] });
|
|
8351
|
+
};
|
|
8352
|
+
|
|
8353
|
+
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8354
|
+
var import_react19 = require("react");
|
|
8355
|
+
|
|
8356
|
+
// src/SC-mediaSelect/ScMediaSelect.module.css
|
|
8357
|
+
var ScMediaSelect_default = {
|
|
8358
|
+
scMediaSelect: "ScMediaSelect_scMediaSelect",
|
|
8359
|
+
header: "ScMediaSelect_header",
|
|
8360
|
+
countLabel: "ScMediaSelect_countLabel",
|
|
8361
|
+
actions: "ScMediaSelect_actions",
|
|
8362
|
+
linkButton: "ScMediaSelect_linkButton",
|
|
8363
|
+
divider: "ScMediaSelect_divider",
|
|
8364
|
+
grid: "ScMediaSelect_grid",
|
|
8365
|
+
item: "ScMediaSelect_item",
|
|
8366
|
+
"state-default": "ScMediaSelect_state-default",
|
|
8367
|
+
"state-selected": "ScMediaSelect_state-selected",
|
|
8368
|
+
media: "ScMediaSelect_media",
|
|
8369
|
+
checkBadge: "ScMediaSelect_checkBadge",
|
|
8370
|
+
previewButton: "ScMediaSelect_previewButton"
|
|
8371
|
+
};
|
|
8372
|
+
|
|
8373
|
+
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8374
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
8375
|
+
var CheckBadge = () => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: ScMediaSelect_default.checkBadge, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8376
|
+
"path",
|
|
8377
|
+
{
|
|
8378
|
+
d: "M3.5 7.25L6 9.75L10.5 4.75",
|
|
8379
|
+
stroke: "var(--alias-text-and-icons-inverse, #101010)",
|
|
8380
|
+
strokeWidth: "1.75",
|
|
8381
|
+
strokeLinecap: "round",
|
|
8382
|
+
strokeLinejoin: "round"
|
|
8383
|
+
}
|
|
8384
|
+
) }) });
|
|
8385
|
+
var MaximizeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8386
|
+
"path",
|
|
8387
|
+
{
|
|
8388
|
+
d: "M15 3H21V9M9 21H3V15M21 3L14 10M3 21L10 14",
|
|
8389
|
+
stroke: "currentColor",
|
|
8390
|
+
strokeWidth: "2",
|
|
8391
|
+
strokeLinecap: "round",
|
|
8392
|
+
strokeLinejoin: "round"
|
|
8393
|
+
}
|
|
8394
|
+
) });
|
|
8395
|
+
var ScMediaSelect = (props) => {
|
|
8396
|
+
const {
|
|
8397
|
+
items = [],
|
|
8398
|
+
selected = [],
|
|
8399
|
+
onToggle,
|
|
8400
|
+
onSelectAll,
|
|
8401
|
+
onDeselectAll,
|
|
8402
|
+
min = 0,
|
|
8403
|
+
max,
|
|
8404
|
+
mediaType = "image",
|
|
8405
|
+
onPreview,
|
|
8406
|
+
className
|
|
8407
|
+
} = props;
|
|
8408
|
+
const total = items.length;
|
|
8409
|
+
const resolvedMax = typeof max === "number" ? max : total;
|
|
8410
|
+
const selectedSet = (0, import_react19.useMemo)(() => new Set(selected), [selected]);
|
|
8411
|
+
const selectedCount = selectedSet.size;
|
|
8412
|
+
let countLabel = selectedCount + " of " + total + " selected";
|
|
8413
|
+
if (min > 0) countLabel += " (min " + min + ")";
|
|
8414
|
+
if (resolvedMax < total) countLabel += " (max " + resolvedMax + ")";
|
|
8415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: [ScMediaSelect_default.scMediaSelect, className].filter(Boolean).join(" "), children: [
|
|
8416
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: ScMediaSelect_default.header, children: [
|
|
8417
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: ScMediaSelect_default.countLabel, children: countLabel }),
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: ScMediaSelect_default.actions, children: [
|
|
8419
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8420
|
+
"button",
|
|
8421
|
+
{
|
|
8422
|
+
type: "button",
|
|
8423
|
+
className: ScMediaSelect_default.linkButton,
|
|
8424
|
+
onClick: () => onSelectAll && onSelectAll(),
|
|
8425
|
+
children: "Select all"
|
|
8426
|
+
}
|
|
8427
|
+
),
|
|
8428
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: ScMediaSelect_default.divider, children: "|" }),
|
|
8429
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8430
|
+
"button",
|
|
8431
|
+
{
|
|
8432
|
+
type: "button",
|
|
8433
|
+
className: ScMediaSelect_default.linkButton,
|
|
8434
|
+
onClick: () => onDeselectAll && onDeselectAll(),
|
|
8435
|
+
children: "Deselect all"
|
|
8436
|
+
}
|
|
8437
|
+
)
|
|
8438
|
+
] })
|
|
8439
|
+
] }),
|
|
8440
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: ScMediaSelect_default.grid, children: items.map((url, index) => {
|
|
8441
|
+
const isSelected = selectedSet.has(url);
|
|
8442
|
+
const itemClass = [
|
|
8443
|
+
ScMediaSelect_default.item,
|
|
8444
|
+
isSelected ? ScMediaSelect_default["state-selected"] : ScMediaSelect_default["state-default"]
|
|
8445
|
+
].filter(Boolean).join(" ");
|
|
8446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
8447
|
+
"div",
|
|
8448
|
+
{
|
|
8449
|
+
className: itemClass,
|
|
8450
|
+
onClick: () => onToggle && onToggle(url),
|
|
8451
|
+
role: "button",
|
|
8452
|
+
tabIndex: 0,
|
|
8453
|
+
"aria-pressed": isSelected,
|
|
8454
|
+
children: [
|
|
8455
|
+
mediaType === "video" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("video", { className: ScMediaSelect_default.media, src: url, muted: true, playsInline: true }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("img", { className: ScMediaSelect_default.media, src: url, alt: "" }),
|
|
8456
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(CheckBadge, {}),
|
|
8457
|
+
onPreview && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8458
|
+
"button",
|
|
8459
|
+
{
|
|
8460
|
+
type: "button",
|
|
8461
|
+
className: ScMediaSelect_default.previewButton,
|
|
8462
|
+
onClick: (e) => {
|
|
8463
|
+
e.stopPropagation();
|
|
8464
|
+
onPreview(url);
|
|
8465
|
+
},
|
|
8466
|
+
"aria-label": "Preview",
|
|
8467
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(MaximizeIcon, {})
|
|
8468
|
+
}
|
|
8469
|
+
)
|
|
8470
|
+
]
|
|
8471
|
+
},
|
|
8472
|
+
url + "-" + index
|
|
8473
|
+
);
|
|
8474
|
+
}) })
|
|
8475
|
+
] });
|
|
8476
|
+
};
|
|
8477
|
+
|
|
8478
|
+
// src/SC-todoList/ScTodoList.tsx
|
|
8479
|
+
var import_react20 = require("react");
|
|
8480
|
+
|
|
8481
|
+
// src/SC-todoList/ScTodoList.module.css
|
|
8482
|
+
var ScTodoList_default = {
|
|
8483
|
+
scTodoList: "ScTodoList_scTodoList",
|
|
8484
|
+
progress: "ScTodoList_progress",
|
|
8485
|
+
progressIcon: "ScTodoList_progressIcon",
|
|
8486
|
+
progressText: "ScTodoList_progressText",
|
|
8487
|
+
rows: "ScTodoList_rows",
|
|
8488
|
+
row: "ScTodoList_row",
|
|
8489
|
+
checkbox: "ScTodoList_checkbox",
|
|
8490
|
+
content: "ScTodoList_content",
|
|
8491
|
+
"status-completed": "ScTodoList_status-completed",
|
|
8492
|
+
editInput: "ScTodoList_editInput",
|
|
8493
|
+
actions: "ScTodoList_actions",
|
|
8494
|
+
actionButton: "ScTodoList_actionButton",
|
|
8495
|
+
actionButtonDanger: "ScTodoList_actionButtonDanger",
|
|
8496
|
+
addRow: "ScTodoList_addRow",
|
|
8497
|
+
addInput: "ScTodoList_addInput",
|
|
8498
|
+
addButton: "ScTodoList_addButton"
|
|
8499
|
+
};
|
|
8500
|
+
|
|
8501
|
+
// src/SC-todoList/ScTodoList.tsx
|
|
8502
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
8503
|
+
var ScTodoList = ({
|
|
8504
|
+
items = [],
|
|
8505
|
+
onToggle,
|
|
8506
|
+
onEdit,
|
|
8507
|
+
onDelete,
|
|
8508
|
+
onAdd,
|
|
8509
|
+
addPlaceholder = "Add an item",
|
|
8510
|
+
className
|
|
8511
|
+
}) => {
|
|
8512
|
+
const [editingId, setEditingId] = (0, import_react20.useState)(null);
|
|
8513
|
+
const [editValue, setEditValue] = (0, import_react20.useState)("");
|
|
8514
|
+
const [newValue, setNewValue] = (0, import_react20.useState)("");
|
|
8515
|
+
const total = items.length;
|
|
8516
|
+
const completed = items.filter((i) => i.status === "completed").length;
|
|
8517
|
+
const startEditing = (item) => {
|
|
8518
|
+
setEditingId(item.id);
|
|
8519
|
+
setEditValue(item.content);
|
|
8520
|
+
};
|
|
8521
|
+
const commitEdit = (id) => {
|
|
8522
|
+
onEdit?.(id, editValue);
|
|
8523
|
+
setEditingId(null);
|
|
8524
|
+
setEditValue("");
|
|
8525
|
+
};
|
|
8526
|
+
const cancelEdit = () => {
|
|
8527
|
+
setEditingId(null);
|
|
8528
|
+
setEditValue("");
|
|
8529
|
+
};
|
|
8530
|
+
const commitAdd = () => {
|
|
8531
|
+
const trimmed = newValue.trim();
|
|
8532
|
+
if (trimmed.length === 0) return;
|
|
8533
|
+
onAdd?.(newValue);
|
|
8534
|
+
setNewValue("");
|
|
8535
|
+
};
|
|
8536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: [ScTodoList_default.scTodoList, className].filter(Boolean).join(" "), children: [
|
|
8537
|
+
total > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScTodoList_default.progress, children: [
|
|
8538
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8539
|
+
"svg",
|
|
8540
|
+
{
|
|
8541
|
+
className: ScTodoList_default.progressIcon,
|
|
8542
|
+
width: "14",
|
|
8543
|
+
height: "14",
|
|
8544
|
+
viewBox: "0 0 14 14",
|
|
8545
|
+
fill: "none",
|
|
8546
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8547
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8548
|
+
"path",
|
|
8549
|
+
{
|
|
8550
|
+
d: "M3 7L6 10L11 4",
|
|
8551
|
+
stroke: "currentColor",
|
|
8552
|
+
strokeWidth: "1.5",
|
|
8553
|
+
strokeLinecap: "round",
|
|
8554
|
+
strokeLinejoin: "round"
|
|
8555
|
+
}
|
|
8556
|
+
)
|
|
8557
|
+
}
|
|
8558
|
+
),
|
|
8559
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: ScTodoList_default.progressText, children: [
|
|
8560
|
+
completed,
|
|
8561
|
+
" of ",
|
|
8562
|
+
total,
|
|
8563
|
+
" completed"
|
|
8564
|
+
] })
|
|
8565
|
+
] }),
|
|
8566
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScTodoList_default.rows, children: items.map((item) => {
|
|
8567
|
+
const isEditing = editingId === item.id;
|
|
8568
|
+
const isCompleted = item.status === "completed";
|
|
8569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScTodoList_default.row, children: [
|
|
8570
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8571
|
+
"button",
|
|
8572
|
+
{
|
|
8573
|
+
type: "button",
|
|
8574
|
+
className: ScTodoList_default.checkbox,
|
|
8575
|
+
"aria-label": isCompleted ? "Mark as pending" : "Mark as completed",
|
|
8576
|
+
onClick: () => onToggle?.(item.id),
|
|
8577
|
+
children: isCompleted ? /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
8578
|
+
"svg",
|
|
8579
|
+
{
|
|
8580
|
+
width: "18",
|
|
8581
|
+
height: "18",
|
|
8582
|
+
viewBox: "0 0 18 18",
|
|
8583
|
+
fill: "none",
|
|
8584
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8585
|
+
children: [
|
|
8586
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("circle", { cx: "9", cy: "9", r: "9", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
8587
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8588
|
+
"path",
|
|
8589
|
+
{
|
|
8590
|
+
d: "M5.25 9L7.75 11.5L12.75 6.5",
|
|
8591
|
+
stroke: "var(--alias-text-and-icons-inverse, #101010)",
|
|
8592
|
+
strokeWidth: "1.5",
|
|
8593
|
+
strokeLinecap: "round",
|
|
8594
|
+
strokeLinejoin: "round"
|
|
8595
|
+
}
|
|
8596
|
+
)
|
|
8597
|
+
]
|
|
8598
|
+
}
|
|
8599
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8600
|
+
"svg",
|
|
8601
|
+
{
|
|
8602
|
+
width: "18",
|
|
8603
|
+
height: "18",
|
|
8604
|
+
viewBox: "0 0 18 18",
|
|
8605
|
+
fill: "none",
|
|
8606
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8607
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8608
|
+
"circle",
|
|
8609
|
+
{
|
|
8610
|
+
cx: "9",
|
|
8611
|
+
cy: "9",
|
|
8612
|
+
r: "8.25",
|
|
8613
|
+
stroke: "var(--alias-border-default, #3e3e3e)",
|
|
8614
|
+
strokeWidth: "1.5"
|
|
8615
|
+
}
|
|
8616
|
+
)
|
|
8617
|
+
}
|
|
8618
|
+
)
|
|
8619
|
+
}
|
|
8620
|
+
),
|
|
8621
|
+
isEditing ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8622
|
+
"input",
|
|
8623
|
+
{
|
|
8624
|
+
className: ScTodoList_default.editInput,
|
|
8625
|
+
autoFocus: true,
|
|
8626
|
+
value: editValue,
|
|
8627
|
+
onChange: (e) => setEditValue(e.target.value),
|
|
8628
|
+
onBlur: () => commitEdit(item.id),
|
|
8629
|
+
onKeyDown: (e) => {
|
|
8630
|
+
if (e.key === "Enter") {
|
|
8631
|
+
e.preventDefault();
|
|
8632
|
+
commitEdit(item.id);
|
|
8633
|
+
} else if (e.key === "Escape") {
|
|
8634
|
+
e.preventDefault();
|
|
8635
|
+
cancelEdit();
|
|
8636
|
+
}
|
|
8637
|
+
}
|
|
8638
|
+
}
|
|
8639
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8640
|
+
"span",
|
|
8641
|
+
{
|
|
8642
|
+
className: [
|
|
8643
|
+
ScTodoList_default.content,
|
|
8644
|
+
isCompleted ? ScTodoList_default["status-completed"] : ""
|
|
8645
|
+
].filter(Boolean).join(" "),
|
|
8646
|
+
children: item.content
|
|
8647
|
+
}
|
|
8648
|
+
),
|
|
8649
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScTodoList_default.actions, children: [
|
|
8650
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8651
|
+
"button",
|
|
8652
|
+
{
|
|
8653
|
+
type: "button",
|
|
8654
|
+
className: ScTodoList_default.actionButton,
|
|
8655
|
+
"aria-label": "Edit item",
|
|
8656
|
+
onClick: () => startEditing(item),
|
|
8657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8658
|
+
"svg",
|
|
8659
|
+
{
|
|
8660
|
+
width: "16",
|
|
8661
|
+
height: "16",
|
|
8662
|
+
viewBox: "0 0 16 16",
|
|
8663
|
+
fill: "none",
|
|
8664
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8666
|
+
"path",
|
|
8667
|
+
{
|
|
8668
|
+
d: "M11.333 2.667a1.414 1.414 0 0 1 2 2L5.333 12.667l-2.667.667.667-2.667 8-8Z",
|
|
8669
|
+
stroke: "currentColor",
|
|
8670
|
+
strokeWidth: "1.3",
|
|
8671
|
+
strokeLinecap: "round",
|
|
8672
|
+
strokeLinejoin: "round"
|
|
8673
|
+
}
|
|
8674
|
+
)
|
|
8675
|
+
}
|
|
8676
|
+
)
|
|
8677
|
+
}
|
|
8678
|
+
),
|
|
8679
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8680
|
+
"button",
|
|
8681
|
+
{
|
|
8682
|
+
type: "button",
|
|
8683
|
+
className: [ScTodoList_default.actionButton, ScTodoList_default.actionButtonDanger].filter(Boolean).join(" "),
|
|
8684
|
+
"aria-label": "Delete item",
|
|
8685
|
+
onClick: () => onDelete?.(item.id),
|
|
8686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8687
|
+
"svg",
|
|
8688
|
+
{
|
|
8689
|
+
width: "16",
|
|
8690
|
+
height: "16",
|
|
8691
|
+
viewBox: "0 0 16 16",
|
|
8692
|
+
fill: "none",
|
|
8693
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8694
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8695
|
+
"path",
|
|
8696
|
+
{
|
|
8697
|
+
d: "M2.667 4h10.666M6.667 7.333v3.334M9.333 7.333v3.334M3.333 4l.667 8a1.333 1.333 0 0 0 1.333 1.333h5.334A1.333 1.333 0 0 0 12 12l.667-8M6 4V2.667a.667.667 0 0 1 .667-.667h2.666a.667.667 0 0 1 .667.667V4",
|
|
8698
|
+
stroke: "currentColor",
|
|
8699
|
+
strokeWidth: "1.3",
|
|
8700
|
+
strokeLinecap: "round",
|
|
8701
|
+
strokeLinejoin: "round"
|
|
8702
|
+
}
|
|
8703
|
+
)
|
|
8704
|
+
}
|
|
8705
|
+
)
|
|
8706
|
+
}
|
|
8707
|
+
)
|
|
8708
|
+
] })
|
|
8709
|
+
] }, item.id);
|
|
8710
|
+
}) }),
|
|
8711
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScTodoList_default.addRow, children: [
|
|
8712
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8713
|
+
"input",
|
|
8714
|
+
{
|
|
8715
|
+
className: ScTodoList_default.addInput,
|
|
8716
|
+
value: newValue,
|
|
8717
|
+
placeholder: addPlaceholder,
|
|
8718
|
+
onChange: (e) => setNewValue(e.target.value),
|
|
8719
|
+
onKeyDown: (e) => {
|
|
8720
|
+
if (e.key === "Enter") {
|
|
8721
|
+
e.preventDefault();
|
|
8722
|
+
commitAdd();
|
|
8723
|
+
}
|
|
8724
|
+
}
|
|
8725
|
+
}
|
|
8726
|
+
),
|
|
8727
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8728
|
+
"button",
|
|
8729
|
+
{
|
|
8730
|
+
type: "button",
|
|
8731
|
+
className: ScTodoList_default.addButton,
|
|
8732
|
+
"aria-label": "Add item",
|
|
8733
|
+
disabled: newValue.trim().length === 0,
|
|
8734
|
+
onClick: commitAdd,
|
|
8735
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8736
|
+
"svg",
|
|
8737
|
+
{
|
|
8738
|
+
width: "18",
|
|
8739
|
+
height: "18",
|
|
8740
|
+
viewBox: "0 0 18 18",
|
|
8741
|
+
fill: "none",
|
|
8742
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8743
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8744
|
+
"path",
|
|
8745
|
+
{
|
|
8746
|
+
d: "M9 4v10M4 9h10",
|
|
8747
|
+
stroke: "currentColor",
|
|
8748
|
+
strokeWidth: "1.5",
|
|
8749
|
+
strokeLinecap: "round",
|
|
8750
|
+
strokeLinejoin: "round"
|
|
8751
|
+
}
|
|
8752
|
+
)
|
|
8753
|
+
}
|
|
8754
|
+
)
|
|
8755
|
+
}
|
|
8756
|
+
)
|
|
8757
|
+
] })
|
|
8758
|
+
] });
|
|
8759
|
+
};
|
|
8760
|
+
|
|
7614
8761
|
// src/SC-Role-Mobile/ScRoleMobile.module.css
|
|
7615
8762
|
var ScRoleMobile_default = {
|
|
7616
8763
|
scRoleMobile: "ScRoleMobile_scRoleMobile",
|
|
@@ -7620,18 +8767,18 @@ var ScRoleMobile_default = {
|
|
|
7620
8767
|
};
|
|
7621
8768
|
|
|
7622
8769
|
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
7623
|
-
var
|
|
8770
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
7624
8771
|
var ScRoleMobile = ({
|
|
7625
8772
|
role = "admin",
|
|
7626
8773
|
className,
|
|
7627
8774
|
...props
|
|
7628
8775
|
}) => {
|
|
7629
|
-
return /* @__PURE__ */ (0,
|
|
8776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
7630
8777
|
"div",
|
|
7631
8778
|
{
|
|
7632
8779
|
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
7633
8780
|
...props,
|
|
7634
|
-
children: /* @__PURE__ */ (0,
|
|
8781
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
7635
8782
|
}
|
|
7636
8783
|
);
|
|
7637
8784
|
};
|
|
@@ -7648,7 +8795,7 @@ var ScProfileV2Mobile_default = {
|
|
|
7648
8795
|
};
|
|
7649
8796
|
|
|
7650
8797
|
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
7651
|
-
var
|
|
8798
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
7652
8799
|
var ScProfileV2Mobile = ({
|
|
7653
8800
|
name = "Chris Hemsworth",
|
|
7654
8801
|
email = "chris@kepler.com",
|
|
@@ -7658,17 +8805,17 @@ var ScProfileV2Mobile = ({
|
|
|
7658
8805
|
...props
|
|
7659
8806
|
}) => {
|
|
7660
8807
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
7661
|
-
const profileImage = /* @__PURE__ */ (0,
|
|
7662
|
-
return /* @__PURE__ */ (0,
|
|
8808
|
+
const profileImage = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScProfileV2Mobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("img", { src: imageUrl, alt: name, className: ScProfileV2Mobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScProfileV2Mobile_default.initials, children: initials }) });
|
|
8809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
7663
8810
|
"div",
|
|
7664
8811
|
{
|
|
7665
8812
|
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
7666
8813
|
...props,
|
|
7667
8814
|
children: [
|
|
7668
8815
|
dpPosition === "left" && profileImage,
|
|
7669
|
-
/* @__PURE__ */ (0,
|
|
7670
|
-
/* @__PURE__ */ (0,
|
|
7671
|
-
/* @__PURE__ */ (0,
|
|
8816
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: ScProfileV2Mobile_default.userInfo, children: [
|
|
8817
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: ScProfileV2Mobile_default.userName, children: name }),
|
|
8818
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: ScProfileV2Mobile_default.userEmail, children: email })
|
|
7672
8819
|
] }),
|
|
7673
8820
|
dpPosition === "right" && profileImage
|
|
7674
8821
|
]
|
|
@@ -7695,7 +8842,7 @@ var ScTableListMobile_default = {
|
|
|
7695
8842
|
};
|
|
7696
8843
|
|
|
7697
8844
|
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
7698
|
-
var
|
|
8845
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7699
8846
|
var ScTableListMobile = ({
|
|
7700
8847
|
name = "Chris Hemsworth",
|
|
7701
8848
|
email = "chris@kepler.com",
|
|
@@ -7708,25 +8855,25 @@ var ScTableListMobile = ({
|
|
|
7708
8855
|
...props
|
|
7709
8856
|
}) => {
|
|
7710
8857
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
7711
|
-
return /* @__PURE__ */ (0,
|
|
8858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7712
8859
|
"div",
|
|
7713
8860
|
{
|
|
7714
8861
|
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
7715
8862
|
onClick: onRowClick,
|
|
7716
8863
|
...props,
|
|
7717
8864
|
children: [
|
|
7718
|
-
/* @__PURE__ */ (0,
|
|
7719
|
-
/* @__PURE__ */ (0,
|
|
7720
|
-
/* @__PURE__ */ (0,
|
|
7721
|
-
/* @__PURE__ */ (0,
|
|
8865
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTableListMobile_default.profileRow, children: [
|
|
8866
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTableListMobile_default.userInfo, children: [
|
|
8867
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: ScTableListMobile_default.userName, children: name }),
|
|
8868
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: ScTableListMobile_default.userEmail, children: email })
|
|
7722
8869
|
] }),
|
|
7723
|
-
/* @__PURE__ */ (0,
|
|
8870
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: ScTableListMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("img", { src: imageUrl, alt: name, className: ScTableListMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: ScTableListMobile_default.initials, children: initials }) })
|
|
7724
8871
|
] }),
|
|
7725
|
-
/* @__PURE__ */ (0,
|
|
7726
|
-
/* @__PURE__ */ (0,
|
|
7727
|
-
/* @__PURE__ */ (0,
|
|
7728
|
-
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0,
|
|
7729
|
-
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0,
|
|
8872
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTableListMobile_default.detailsRow, children: [
|
|
8873
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: ScTableListMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: ScTableListMobile_default.roleText, children: role }) }),
|
|
8874
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: ScTableListMobile_default.accessInfo, children: [
|
|
8875
|
+
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: accessIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) }),
|
|
8876
|
+
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: permissionIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) })
|
|
7730
8877
|
] })
|
|
7731
8878
|
] })
|
|
7732
8879
|
]
|
|
@@ -7754,7 +8901,7 @@ var ScWorkspaceSwitchMobile_default = {
|
|
|
7754
8901
|
};
|
|
7755
8902
|
|
|
7756
8903
|
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
7757
|
-
var
|
|
8904
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7758
8905
|
var ScWorkspaceSwitchMobile = ({
|
|
7759
8906
|
storeName = "Stores",
|
|
7760
8907
|
initials = "WS",
|
|
@@ -7767,24 +8914,24 @@ var ScWorkspaceSwitchMobile = ({
|
|
|
7767
8914
|
...props
|
|
7768
8915
|
}) => {
|
|
7769
8916
|
const variant = currentWs ? "current" : "other";
|
|
7770
|
-
return /* @__PURE__ */ (0,
|
|
8917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
7771
8918
|
"div",
|
|
7772
8919
|
{
|
|
7773
8920
|
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
7774
8921
|
onClick,
|
|
7775
8922
|
...props,
|
|
7776
8923
|
children: [
|
|
7777
|
-
/* @__PURE__ */ (0,
|
|
7778
|
-
/* @__PURE__ */ (0,
|
|
7779
|
-
/* @__PURE__ */ (0,
|
|
7780
|
-
/* @__PURE__ */ (0,
|
|
8924
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.workspaceInfo, children: [
|
|
8925
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.wsNameRow, children: [
|
|
8926
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: ScWorkspaceSwitchMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: ScWorkspaceSwitchMobile_default.initialsText, children: initials }) }),
|
|
8927
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: ScWorkspaceSwitchMobile_default.storeName, children: storeName })
|
|
7781
8928
|
] }),
|
|
7782
|
-
/* @__PURE__ */ (0,
|
|
8929
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
7783
8930
|
] }),
|
|
7784
|
-
/* @__PURE__ */ (0,
|
|
7785
|
-
/* @__PURE__ */ (0,
|
|
7786
|
-
/* @__PURE__ */ (0,
|
|
7787
|
-
/* @__PURE__ */ (0,
|
|
8931
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: ScWorkspaceSwitchMobile_default.divider }),
|
|
8932
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.ownerRow, children: [
|
|
8933
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: ScWorkspaceSwitchMobile_default.ownerIconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: ScWorkspaceSwitchMobile_default.ownerIcon, children: ownerIcon }) }),
|
|
8934
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: ScWorkspaceSwitchMobile_default.ownerText, children: ownerId })
|
|
7788
8935
|
] })
|
|
7789
8936
|
]
|
|
7790
8937
|
}
|
|
@@ -7811,7 +8958,7 @@ var ScWorkspaceSettingsMobile_default = {
|
|
|
7811
8958
|
};
|
|
7812
8959
|
|
|
7813
8960
|
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
7814
|
-
var
|
|
8961
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7815
8962
|
var ScWorkspaceSettingsMobile = ({
|
|
7816
8963
|
storeName = "Stores",
|
|
7817
8964
|
initials = "WS",
|
|
@@ -7826,28 +8973,28 @@ var ScWorkspaceSettingsMobile = ({
|
|
|
7826
8973
|
...props
|
|
7827
8974
|
}) => {
|
|
7828
8975
|
const variant = currentWs ? "current" : "other";
|
|
7829
|
-
return /* @__PURE__ */ (0,
|
|
8976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
7830
8977
|
"div",
|
|
7831
8978
|
{
|
|
7832
8979
|
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
7833
8980
|
onClick,
|
|
7834
8981
|
...props,
|
|
7835
8982
|
children: [
|
|
7836
|
-
/* @__PURE__ */ (0,
|
|
7837
|
-
/* @__PURE__ */ (0,
|
|
7838
|
-
/* @__PURE__ */ (0,
|
|
7839
|
-
/* @__PURE__ */ (0,
|
|
8983
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.workspaceInfo, children: [
|
|
8984
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.wsNameRow, children: [
|
|
8985
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScWorkspaceSettingsMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: ScWorkspaceSettingsMobile_default.initialsText, children: initials }) }),
|
|
8986
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScWorkspaceSettingsMobile_default.storeName, children: storeName })
|
|
7840
8987
|
] }),
|
|
7841
|
-
/* @__PURE__ */ (0,
|
|
8988
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
7842
8989
|
] }),
|
|
7843
|
-
/* @__PURE__ */ (0,
|
|
7844
|
-
/* @__PURE__ */ (0,
|
|
7845
|
-
/* @__PURE__ */ (0,
|
|
7846
|
-
/* @__PURE__ */ (0,
|
|
8990
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScWorkspaceSettingsMobile_default.divider }),
|
|
8991
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
8992
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: ownerIcon }) }),
|
|
8993
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: ownerId })
|
|
7847
8994
|
] }),
|
|
7848
|
-
/* @__PURE__ */ (0,
|
|
7849
|
-
/* @__PURE__ */ (0,
|
|
7850
|
-
/* @__PURE__ */ (0,
|
|
8995
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
8996
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: teamIcon && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: teamIcon }) }),
|
|
8997
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: teamCount })
|
|
7851
8998
|
] })
|
|
7852
8999
|
]
|
|
7853
9000
|
}
|
|
@@ -7870,7 +9017,7 @@ var ScMobileTopNav_default = {
|
|
|
7870
9017
|
};
|
|
7871
9018
|
|
|
7872
9019
|
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
7873
|
-
var
|
|
9020
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
7874
9021
|
var ScMobileTopNav = ({
|
|
7875
9022
|
type = "home",
|
|
7876
9023
|
searchIcon = false,
|
|
@@ -7893,22 +9040,22 @@ var ScMobileTopNav = ({
|
|
|
7893
9040
|
}) => {
|
|
7894
9041
|
const hasBorder = type === "chat" || type === "inApp";
|
|
7895
9042
|
const showSearch = type === "inApp" && searchIcon && search;
|
|
7896
|
-
return /* @__PURE__ */ (0,
|
|
9043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
7897
9044
|
"div",
|
|
7898
9045
|
{
|
|
7899
9046
|
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
7900
9047
|
...props,
|
|
7901
9048
|
children: [
|
|
7902
|
-
type === "home" && /* @__PURE__ */ (0,
|
|
7903
|
-
type === "chat" && /* @__PURE__ */ (0,
|
|
7904
|
-
/* @__PURE__ */ (0,
|
|
7905
|
-
/* @__PURE__ */ (0,
|
|
7906
|
-
/* @__PURE__ */ (0,
|
|
9049
|
+
type === "home" && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9050
|
+
type === "chat" && /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
9051
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9052
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: ScMobileTopNav_default.chatTitle, children: chatTitle }),
|
|
9053
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMoreClick, children: moreIcon || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
7907
9054
|
] }),
|
|
7908
|
-
showSearch && /* @__PURE__ */ (0,
|
|
7909
|
-
/* @__PURE__ */ (0,
|
|
7910
|
-
/* @__PURE__ */ (0,
|
|
7911
|
-
/* @__PURE__ */ (0,
|
|
9055
|
+
showSearch && /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
9056
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.searchRow, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScMobileTopNav_default.searchInputContainer, children: [
|
|
9057
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onSearchClick, children: searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9058
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.searchInput, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7912
9059
|
"input",
|
|
7913
9060
|
{
|
|
7914
9061
|
type: "text",
|
|
@@ -7919,17 +9066,17 @@ var ScMobileTopNav = ({
|
|
|
7919
9066
|
}
|
|
7920
9067
|
) })
|
|
7921
9068
|
] }) }),
|
|
7922
|
-
/* @__PURE__ */ (0,
|
|
9069
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
7923
9070
|
] }),
|
|
7924
|
-
type === "inApp" && !search && /* @__PURE__ */ (0,
|
|
7925
|
-
/* @__PURE__ */ (0,
|
|
7926
|
-
/* @__PURE__ */ (0,
|
|
7927
|
-
/* @__PURE__ */ (0,
|
|
9071
|
+
type === "inApp" && !search && /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
9072
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
9073
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: ScMobileTopNav_default.heading, children: heading }),
|
|
9074
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
7928
9075
|
"div",
|
|
7929
9076
|
{
|
|
7930
9077
|
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
7931
9078
|
onClick: onSearchClick,
|
|
7932
|
-
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0,
|
|
9079
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
7933
9080
|
}
|
|
7934
9081
|
)
|
|
7935
9082
|
] })
|
|
@@ -7950,7 +9097,7 @@ var ScMobileBottomAction_default = {
|
|
|
7950
9097
|
};
|
|
7951
9098
|
|
|
7952
9099
|
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
7953
|
-
var
|
|
9100
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
7954
9101
|
var ScMobileBottomAction = ({
|
|
7955
9102
|
text = "Save Changes",
|
|
7956
9103
|
disabled = false,
|
|
@@ -7962,28 +9109,28 @@ var ScMobileBottomAction = ({
|
|
|
7962
9109
|
...props
|
|
7963
9110
|
}) => {
|
|
7964
9111
|
const isTwoButton = !!secondaryText;
|
|
7965
|
-
return /* @__PURE__ */ (0,
|
|
9112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
7966
9113
|
"div",
|
|
7967
9114
|
{
|
|
7968
9115
|
className: ScMobileBottomAction_default.scMobileBottomAction + (isTwoButton ? " " + ScMobileBottomAction_default.twoButton : "") + " " + className,
|
|
7969
9116
|
...props,
|
|
7970
9117
|
children: [
|
|
7971
|
-
isTwoButton && /* @__PURE__ */ (0,
|
|
9118
|
+
isTwoButton && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7972
9119
|
"button",
|
|
7973
9120
|
{
|
|
7974
9121
|
className: ScMobileBottomAction_default.outlineButton + " " + (secondaryDisabled ? ScMobileBottomAction_default.disabled : ""),
|
|
7975
9122
|
onClick: onSecondaryClick,
|
|
7976
9123
|
disabled: secondaryDisabled,
|
|
7977
|
-
children: /* @__PURE__ */ (0,
|
|
9124
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: ScMobileBottomAction_default.outlineButtonText, children: secondaryText })
|
|
7978
9125
|
}
|
|
7979
9126
|
),
|
|
7980
|
-
/* @__PURE__ */ (0,
|
|
9127
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
7981
9128
|
"button",
|
|
7982
9129
|
{
|
|
7983
9130
|
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
7984
9131
|
onClick,
|
|
7985
9132
|
disabled,
|
|
7986
|
-
children: /* @__PURE__ */ (0,
|
|
9133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
7987
9134
|
}
|
|
7988
9135
|
)
|
|
7989
9136
|
]
|
|
@@ -8001,7 +9148,7 @@ var ScPopUpMenu_default = {
|
|
|
8001
9148
|
};
|
|
8002
9149
|
|
|
8003
9150
|
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
8004
|
-
var
|
|
9151
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
8005
9152
|
var ScPopUpMenu = ({
|
|
8006
9153
|
menu = "Options",
|
|
8007
9154
|
state = "default",
|
|
@@ -8010,15 +9157,15 @@ var ScPopUpMenu = ({
|
|
|
8010
9157
|
className,
|
|
8011
9158
|
...props
|
|
8012
9159
|
}) => {
|
|
8013
|
-
return /* @__PURE__ */ (0,
|
|
9160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
8014
9161
|
"div",
|
|
8015
9162
|
{
|
|
8016
9163
|
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
8017
9164
|
onClick,
|
|
8018
9165
|
...props,
|
|
8019
9166
|
children: [
|
|
8020
|
-
icon && /* @__PURE__ */ (0,
|
|
8021
|
-
/* @__PURE__ */ (0,
|
|
9167
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
9168
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
8022
9169
|
]
|
|
8023
9170
|
}
|
|
8024
9171
|
);
|
|
@@ -8044,7 +9191,7 @@ var ScReferralCardMobile_default = {
|
|
|
8044
9191
|
};
|
|
8045
9192
|
|
|
8046
9193
|
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
8047
|
-
var
|
|
9194
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
8048
9195
|
var ScReferralCardMobile = ({
|
|
8049
9196
|
name = "Chris Hemsworth",
|
|
8050
9197
|
email = "chris@kepler.com",
|
|
@@ -8057,27 +9204,27 @@ var ScReferralCardMobile = ({
|
|
|
8057
9204
|
...props
|
|
8058
9205
|
}) => {
|
|
8059
9206
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
8060
|
-
return /* @__PURE__ */ (0,
|
|
9207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8061
9208
|
"div",
|
|
8062
9209
|
{
|
|
8063
9210
|
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
8064
9211
|
onClick,
|
|
8065
9212
|
...props,
|
|
8066
9213
|
children: [
|
|
8067
|
-
/* @__PURE__ */ (0,
|
|
8068
|
-
/* @__PURE__ */ (0,
|
|
8069
|
-
/* @__PURE__ */ (0,
|
|
8070
|
-
/* @__PURE__ */ (0,
|
|
8071
|
-
/* @__PURE__ */ (0,
|
|
8072
|
-
/* @__PURE__ */ (0,
|
|
9214
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScReferralCardMobile_default.userRow, children: [
|
|
9215
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScReferralCardMobile_default.profileSection, children: [
|
|
9216
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScReferralCardMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("img", { src: imageUrl, alt: name, className: ScReferralCardMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScReferralCardMobile_default.initials, children: initials }) }),
|
|
9217
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScReferralCardMobile_default.userInfo, children: [
|
|
9218
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScReferralCardMobile_default.userName, children: name }),
|
|
9219
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScReferralCardMobile_default.userEmail, children: email })
|
|
8073
9220
|
] })
|
|
8074
9221
|
] }),
|
|
8075
|
-
/* @__PURE__ */ (0,
|
|
9222
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
8076
9223
|
] }),
|
|
8077
|
-
/* @__PURE__ */ (0,
|
|
8078
|
-
/* @__PURE__ */ (0,
|
|
8079
|
-
/* @__PURE__ */ (0,
|
|
8080
|
-
/* @__PURE__ */ (0,
|
|
9224
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScReferralCardMobile_default.divider }),
|
|
9225
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScReferralCardMobile_default.detailsRow, children: [
|
|
9226
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScReferralCardMobile_default.dateText, children: date }),
|
|
9227
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: ScReferralCardMobile_default.creditsText, children: credits })
|
|
8081
9228
|
] })
|
|
8082
9229
|
]
|
|
8083
9230
|
}
|
|
@@ -8094,19 +9241,19 @@ var InvoiceHistoryMobile_default = {
|
|
|
8094
9241
|
};
|
|
8095
9242
|
|
|
8096
9243
|
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
8097
|
-
var
|
|
9244
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
8098
9245
|
var InvoiceHistoryMobile = ({
|
|
8099
9246
|
invoiceId = "# INV-2800-2026",
|
|
8100
9247
|
date = "Nov 9th, 2025",
|
|
8101
9248
|
amount = "\u20B9320.89",
|
|
8102
9249
|
className
|
|
8103
9250
|
}) => {
|
|
8104
|
-
return /* @__PURE__ */ (0,
|
|
8105
|
-
/* @__PURE__ */ (0,
|
|
8106
|
-
/* @__PURE__ */ (0,
|
|
8107
|
-
/* @__PURE__ */ (0,
|
|
9251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
9252
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: InvoiceHistoryMobile_default.info, children: [
|
|
9253
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: InvoiceHistoryMobile_default.invoiceId, children: invoiceId }),
|
|
9254
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: InvoiceHistoryMobile_default.date, children: date })
|
|
8108
9255
|
] }),
|
|
8109
|
-
/* @__PURE__ */ (0,
|
|
9256
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
8110
9257
|
] });
|
|
8111
9258
|
};
|
|
8112
9259
|
|
|
@@ -8124,7 +9271,7 @@ var UsageHistoryMobile_default = {
|
|
|
8124
9271
|
};
|
|
8125
9272
|
|
|
8126
9273
|
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
8127
|
-
var
|
|
9274
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
8128
9275
|
var UsageHistoryMobile = ({
|
|
8129
9276
|
serviceName = "Artifax Generation",
|
|
8130
9277
|
credits = "50",
|
|
@@ -8133,18 +9280,18 @@ var UsageHistoryMobile = ({
|
|
|
8133
9280
|
balance = "84,902",
|
|
8134
9281
|
className
|
|
8135
9282
|
}) => {
|
|
8136
|
-
return /* @__PURE__ */ (0,
|
|
8137
|
-
/* @__PURE__ */ (0,
|
|
8138
|
-
/* @__PURE__ */ (0,
|
|
8139
|
-
/* @__PURE__ */ (0,
|
|
9283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: UsageHistoryMobile_default.usageHistoryMobile + " " + (className ?? ""), children: [
|
|
9284
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: UsageHistoryMobile_default.row1, children: [
|
|
9285
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: UsageHistoryMobile_default.serviceName, children: serviceName }),
|
|
9286
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: UsageHistoryMobile_default.credits, children: credits })
|
|
8140
9287
|
] }),
|
|
8141
|
-
/* @__PURE__ */ (0,
|
|
8142
|
-
/* @__PURE__ */ (0,
|
|
8143
|
-
/* @__PURE__ */ (0,
|
|
8144
|
-
/* @__PURE__ */ (0,
|
|
8145
|
-
/* @__PURE__ */ (0,
|
|
9288
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: UsageHistoryMobile_default.row2, children: [
|
|
9289
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: UsageHistoryMobile_default.metaLeft, children: [
|
|
9290
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: userName }),
|
|
9291
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: UsageHistoryMobile_default.divider }),
|
|
9292
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: date })
|
|
8146
9293
|
] }),
|
|
8147
|
-
/* @__PURE__ */ (0,
|
|
9294
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
8148
9295
|
] })
|
|
8149
9296
|
] });
|
|
8150
9297
|
};
|
|
@@ -8168,7 +9315,7 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
8168
9315
|
};
|
|
8169
9316
|
|
|
8170
9317
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
8171
|
-
var
|
|
9318
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
8172
9319
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
8173
9320
|
wsName = "Workspace name is kepler",
|
|
8174
9321
|
initials = "WS",
|
|
@@ -8181,14 +9328,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
8181
9328
|
className,
|
|
8182
9329
|
...props
|
|
8183
9330
|
}) => {
|
|
8184
|
-
return /* @__PURE__ */ (0,
|
|
9331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
8185
9332
|
"div",
|
|
8186
9333
|
{
|
|
8187
9334
|
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
8188
9335
|
onClick,
|
|
8189
9336
|
...props,
|
|
8190
|
-
children: /* @__PURE__ */ (0,
|
|
8191
|
-
/* @__PURE__ */ (0,
|
|
9337
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
9338
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
8192
9339
|
ScDp,
|
|
8193
9340
|
{
|
|
8194
9341
|
type: imageUrl ? "image" : "initial",
|
|
@@ -8202,14 +9349,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
8202
9349
|
}
|
|
8203
9350
|
}
|
|
8204
9351
|
) }),
|
|
8205
|
-
/* @__PURE__ */ (0,
|
|
8206
|
-
/* @__PURE__ */ (0,
|
|
8207
|
-
/* @__PURE__ */ (0,
|
|
8208
|
-
/* @__PURE__ */ (0,
|
|
8209
|
-
/* @__PURE__ */ (0,
|
|
8210
|
-
/* @__PURE__ */ (0,
|
|
8211
|
-
/* @__PURE__ */ (0,
|
|
8212
|
-
/* @__PURE__ */ (0,
|
|
9352
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
9353
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
9354
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
9355
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
9356
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9357
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
9358
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9359
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.ownerText, children: ownerId })
|
|
8213
9360
|
] })
|
|
8214
9361
|
] })
|
|
8215
9362
|
] })
|
|
@@ -8218,7 +9365,7 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
8218
9365
|
};
|
|
8219
9366
|
|
|
8220
9367
|
// src/SC-imageField/ScImageField.tsx
|
|
8221
|
-
var
|
|
9368
|
+
var import_react21 = require("react");
|
|
8222
9369
|
|
|
8223
9370
|
// src/SC-imageField/ScImageField.module.css
|
|
8224
9371
|
var ScImageField_default = {
|
|
@@ -8236,7 +9383,7 @@ var ScImageField_default = {
|
|
|
8236
9383
|
|
|
8237
9384
|
// src/SC-imageField/ScImageField.tsx
|
|
8238
9385
|
var import_icons62 = require("@streamoid/icons");
|
|
8239
|
-
var
|
|
9386
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
8240
9387
|
var ScImageField = ({
|
|
8241
9388
|
label = "Label",
|
|
8242
9389
|
imagePreview,
|
|
@@ -8245,7 +9392,7 @@ var ScImageField = ({
|
|
|
8245
9392
|
onRemove,
|
|
8246
9393
|
className
|
|
8247
9394
|
}) => {
|
|
8248
|
-
const inputRef = (0,
|
|
9395
|
+
const inputRef = (0, import_react21.useRef)(null);
|
|
8249
9396
|
const hasImage = !!imagePreview;
|
|
8250
9397
|
function handleClick() {
|
|
8251
9398
|
if (!hasImage) {
|
|
@@ -8259,8 +9406,8 @@ var ScImageField = ({
|
|
|
8259
9406
|
}
|
|
8260
9407
|
e.target.value = "";
|
|
8261
9408
|
}
|
|
8262
|
-
return /* @__PURE__ */ (0,
|
|
8263
|
-
/* @__PURE__ */ (0,
|
|
9409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
9410
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
8264
9411
|
"input",
|
|
8265
9412
|
{
|
|
8266
9413
|
ref: inputRef,
|
|
@@ -8270,9 +9417,9 @@ var ScImageField = ({
|
|
|
8270
9417
|
onChange: handleChange
|
|
8271
9418
|
}
|
|
8272
9419
|
),
|
|
8273
|
-
/* @__PURE__ */ (0,
|
|
8274
|
-
hasImage ? /* @__PURE__ */ (0,
|
|
8275
|
-
/* @__PURE__ */ (0,
|
|
9420
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: ScImageField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: ScImageField_default.label, children: label }) }),
|
|
9421
|
+
hasImage ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: ScImageField_default.previewArea, children: [
|
|
9422
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
8276
9423
|
"img",
|
|
8277
9424
|
{
|
|
8278
9425
|
className: ScImageField_default.previewImage,
|
|
@@ -8280,8 +9427,8 @@ var ScImageField = ({
|
|
|
8280
9427
|
alt: "preview"
|
|
8281
9428
|
}
|
|
8282
9429
|
),
|
|
8283
|
-
/* @__PURE__ */ (0,
|
|
8284
|
-
/* @__PURE__ */ (0,
|
|
9430
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
9431
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
8285
9432
|
import_icons62.SiconDelete,
|
|
8286
9433
|
{
|
|
8287
9434
|
className: ScImageField_default.removeIcon,
|
|
@@ -8292,9 +9439,9 @@ var ScImageField = ({
|
|
|
8292
9439
|
}
|
|
8293
9440
|
}
|
|
8294
9441
|
)
|
|
8295
|
-
] }) : /* @__PURE__ */ (0,
|
|
8296
|
-
/* @__PURE__ */ (0,
|
|
8297
|
-
/* @__PURE__ */ (0,
|
|
9442
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: ScImageField_default.uploadArea, onClick: handleClick, children: [
|
|
9443
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_icons62.SiconUpload, { className: ScImageField_default.uploadIcon, color: "var(--alias-text-and-icons-secondary, #dadada)" }),
|
|
9444
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: ScImageField_default.uploadText, children: "Click to upload" })
|
|
8298
9445
|
] })
|
|
8299
9446
|
] });
|
|
8300
9447
|
};
|
|
@@ -8308,7 +9455,7 @@ var ScSettingsTabComp_default = {
|
|
|
8308
9455
|
};
|
|
8309
9456
|
|
|
8310
9457
|
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
8311
|
-
var
|
|
9458
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
8312
9459
|
var ScSettingsTabComp = ({
|
|
8313
9460
|
tabName = "Tab",
|
|
8314
9461
|
active = false,
|
|
@@ -8316,12 +9463,12 @@ var ScSettingsTabComp = ({
|
|
|
8316
9463
|
className
|
|
8317
9464
|
}) => {
|
|
8318
9465
|
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
8319
|
-
return /* @__PURE__ */ (0,
|
|
9466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
8320
9467
|
"div",
|
|
8321
9468
|
{
|
|
8322
9469
|
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
8323
9470
|
onClick,
|
|
8324
|
-
children: /* @__PURE__ */ (0,
|
|
9471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
8325
9472
|
}
|
|
8326
9473
|
);
|
|
8327
9474
|
};
|
|
@@ -8341,7 +9488,7 @@ var ScCreditsUsageCardMobile_default = {
|
|
|
8341
9488
|
|
|
8342
9489
|
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
8343
9490
|
var import_icons63 = require("@streamoid/icons");
|
|
8344
|
-
var
|
|
9491
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
8345
9492
|
var ScCreditsUsageCardMobile = ({
|
|
8346
9493
|
usageLabel = "Credits usage",
|
|
8347
9494
|
usageText = "8,450 / 30,000",
|
|
@@ -8351,23 +9498,23 @@ var ScCreditsUsageCardMobile = ({
|
|
|
8351
9498
|
className,
|
|
8352
9499
|
...props
|
|
8353
9500
|
}) => {
|
|
8354
|
-
return /* @__PURE__ */ (0,
|
|
8355
|
-
/* @__PURE__ */ (0,
|
|
8356
|
-
/* @__PURE__ */ (0,
|
|
9501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScCreditsUsageCardMobile_default.scCreditsUsageCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9502
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScCreditsUsageCardMobile_default.header, children: [
|
|
9503
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
8357
9504
|
import_icons63.SiconCredits,
|
|
8358
9505
|
{
|
|
8359
9506
|
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
8360
9507
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
8361
9508
|
}
|
|
8362
9509
|
),
|
|
8363
|
-
/* @__PURE__ */ (0,
|
|
9510
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
8364
9511
|
] }),
|
|
8365
|
-
/* @__PURE__ */ (0,
|
|
8366
|
-
/* @__PURE__ */ (0,
|
|
8367
|
-
/* @__PURE__ */ (0,
|
|
8368
|
-
/* @__PURE__ */ (0,
|
|
9512
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScCreditsUsageCardMobile_default.divider }),
|
|
9513
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScCreditsUsageCardMobile_default.usageInfo, children: [
|
|
9514
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScCreditsUsageCardMobile_default.usageText, children: usageText }),
|
|
9515
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScCreditsUsageCardMobile_default.remainingText, children: remainingText })
|
|
8369
9516
|
] }),
|
|
8370
|
-
/* @__PURE__ */ (0,
|
|
9517
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
8371
9518
|
ScButton,
|
|
8372
9519
|
{
|
|
8373
9520
|
text: buyButtonText,
|
|
@@ -8409,7 +9556,7 @@ var ScPlanDetailsCardMobile_default = {
|
|
|
8409
9556
|
|
|
8410
9557
|
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
8411
9558
|
var import_icons64 = require("@streamoid/icons");
|
|
8412
|
-
var
|
|
9559
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
8413
9560
|
var ScPlanDetailsCardMobile = ({
|
|
8414
9561
|
planName = "Pro",
|
|
8415
9562
|
planCredits = "30,000 credits",
|
|
@@ -8423,20 +9570,20 @@ var ScPlanDetailsCardMobile = ({
|
|
|
8423
9570
|
className,
|
|
8424
9571
|
...props
|
|
8425
9572
|
}) => {
|
|
8426
|
-
return /* @__PURE__ */ (0,
|
|
8427
|
-
/* @__PURE__ */ (0,
|
|
8428
|
-
/* @__PURE__ */ (0,
|
|
8429
|
-
/* @__PURE__ */ (0,
|
|
9573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScPlanDetailsCardMobile_default.scPlanDetailsCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9574
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planHeader, children: [
|
|
9575
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScPlanDetailsCardMobile_default.headerLeft, children: [
|
|
9576
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
8430
9577
|
import_icons64.SiconBilling,
|
|
8431
9578
|
{
|
|
8432
9579
|
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
8433
9580
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
8434
9581
|
}
|
|
8435
9582
|
),
|
|
8436
|
-
/* @__PURE__ */ (0,
|
|
9583
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
8437
9584
|
] }),
|
|
8438
|
-
/* @__PURE__ */ (0,
|
|
8439
|
-
/* @__PURE__ */ (0,
|
|
9585
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScPlanDetailsCardMobile_default.badgeGroup, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.badgeSkeleton}` }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
9586
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
8440
9587
|
ScBadges,
|
|
8441
9588
|
{
|
|
8442
9589
|
text: badgeText,
|
|
@@ -8445,28 +9592,28 @@ var ScPlanDetailsCardMobile = ({
|
|
|
8445
9592
|
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
8446
9593
|
}
|
|
8447
9594
|
),
|
|
8448
|
-
badgeSubText && /* @__PURE__ */ (0,
|
|
8449
|
-
/* @__PURE__ */ (0,
|
|
8450
|
-
/* @__PURE__ */ (0,
|
|
9595
|
+
badgeSubText && /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
9596
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScPlanDetailsCardMobile_default.badgeDot }),
|
|
9597
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScPlanDetailsCardMobile_default.badgeSubText, children: badgeSubText })
|
|
8451
9598
|
] })
|
|
8452
9599
|
] }) })
|
|
8453
9600
|
] }),
|
|
8454
|
-
/* @__PURE__ */ (0,
|
|
8455
|
-
/* @__PURE__ */ (0,
|
|
8456
|
-
/* @__PURE__ */ (0,
|
|
8457
|
-
/* @__PURE__ */ (0,
|
|
8458
|
-
/* @__PURE__ */ (0,
|
|
9601
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScPlanDetailsCardMobile_default.divider }),
|
|
9602
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScPlanDetailsCardMobile_default.planInfo, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
9603
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, "aria-label": "Loading plan details", children: [
|
|
9604
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.planNameSkeleton}` }),
|
|
9605
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.creditsSkeleton}` })
|
|
8459
9606
|
] }),
|
|
8460
|
-
/* @__PURE__ */ (0,
|
|
8461
|
-
] }) : /* @__PURE__ */ (0,
|
|
8462
|
-
/* @__PURE__ */ (0,
|
|
8463
|
-
/* @__PURE__ */ (0,
|
|
8464
|
-
/* @__PURE__ */ (0,
|
|
8465
|
-
/* @__PURE__ */ (0,
|
|
9607
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.priceSkeleton}` })
|
|
9608
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
9609
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, children: [
|
|
9610
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planName }),
|
|
9611
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScPlanDetailsCardMobile_default.dot }),
|
|
9612
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planCredits })
|
|
8466
9613
|
] }),
|
|
8467
|
-
/* @__PURE__ */ (0,
|
|
9614
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
8468
9615
|
] }) }),
|
|
8469
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
9616
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.buttonSkeleton}` }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
8470
9617
|
ScButton,
|
|
8471
9618
|
{
|
|
8472
9619
|
text: upgradeButtonText,
|