@streamoid/ui 0.6.14 → 0.6.15
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 +512 -0
- package/dist/index.d.mts +94 -2
- package/dist/index.d.ts +94 -2
- package/dist/index.js +775 -359
- package/dist/index.mjs +792 -370
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __export(index_exports, {
|
|
|
56
56
|
ScCreditsUsageCard: () => ScCreditsUsageCard,
|
|
57
57
|
ScCreditsUsageCardMobile: () => ScCreditsUsageCardMobile,
|
|
58
58
|
ScCxoCopilotLogo: () => ScCxoCopilotLogo,
|
|
59
|
+
ScDefaultCard: () => ScDefaultCard,
|
|
59
60
|
ScDp: () => ScDp,
|
|
60
61
|
ScDrawer: () => ScDrawer,
|
|
61
62
|
ScFieldButton: () => ScFieldButton,
|
|
@@ -70,6 +71,7 @@ __export(index_exports, {
|
|
|
70
71
|
ScInfoPopup: () => ScInfoPopup,
|
|
71
72
|
ScIntialProfileCover: () => ScIntialProfileCover,
|
|
72
73
|
ScLogoUnit: () => ScLogoUnit,
|
|
74
|
+
ScMappingCard: () => ScMappingCard,
|
|
73
75
|
ScMediaApproval: () => ScMediaApproval,
|
|
74
76
|
ScMediaSelect: () => ScMediaSelect,
|
|
75
77
|
ScMenuOptions: () => ScMenuOptions,
|
|
@@ -103,6 +105,8 @@ __export(index_exports, {
|
|
|
103
105
|
ScSelect: () => ScSelect,
|
|
104
106
|
ScSelection: () => ScSelection,
|
|
105
107
|
ScSelectionList: () => ScSelectionList,
|
|
108
|
+
ScSelectionPill: () => ScSelectionPill,
|
|
109
|
+
ScSelectionPillGroup: () => ScSelectionPillGroup,
|
|
106
110
|
ScSettingsNav: () => ScSettingsNav,
|
|
107
111
|
ScSettingsTabComp: () => ScSettingsTabComp,
|
|
108
112
|
ScSideBarLogoUnit: () => ScSideBarLogoUnit,
|
|
@@ -124,12 +128,14 @@ __export(index_exports, {
|
|
|
124
128
|
ScTableList: () => ScTableList,
|
|
125
129
|
ScTableListMobile: () => ScTableListMobile,
|
|
126
130
|
ScTabs: () => ScTabs,
|
|
131
|
+
ScTaxonomyPill: () => ScTaxonomyPill,
|
|
127
132
|
ScTextArea: () => ScTextArea,
|
|
128
133
|
ScTextField: () => ScTextField,
|
|
129
134
|
ScThinkingStepIcon: () => ScThinkingStepIcon,
|
|
130
135
|
ScTodoList: () => ScTodoList,
|
|
131
136
|
ScToggleSwitch: () => ScToggleSwitch,
|
|
132
137
|
ScVDivider: () => ScVDivider,
|
|
138
|
+
ScValueMappingL1: () => ScValueMappingL1,
|
|
133
139
|
ScVersion: () => ScVersion,
|
|
134
140
|
ScWorkspaceCard: () => ScWorkspaceCard,
|
|
135
141
|
ScWorkspaceSettingsMobile: () => ScWorkspaceSettingsMobile,
|
|
@@ -4166,30 +4172,33 @@ function StreamoidSidebar({
|
|
|
4166
4172
|
),
|
|
4167
4173
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(HDivider, {})
|
|
4168
4174
|
] }),
|
|
4169
|
-
showBody && bodyContent ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-col flex-1 min-h-0 w-full overflow-hidden", children: bodyContent }) : /* @__PURE__ */ (0, import_jsx_runtime48.
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4175
|
+
showBody && bodyContent ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-col flex-1 min-h-0 w-full overflow-hidden", children: bodyContent }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
4176
|
+
!(topItems?.length || config.topItem) && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(HDivider, {}),
|
|
4177
|
+
config.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4178
|
+
"div",
|
|
4179
|
+
{
|
|
4180
|
+
className: "flex flex-col items-start shrink-0 w-full",
|
|
4181
|
+
style: {
|
|
4182
|
+
padding: "var(--spacing-md) 0",
|
|
4183
|
+
gap: "var(--spacing-xxs)"
|
|
4184
|
+
},
|
|
4185
|
+
children: [
|
|
4186
|
+
section.label ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SectionHeader, { label: section.label }) : null,
|
|
4187
|
+
section.items.map(
|
|
4188
|
+
(item) => renderMenuItem({
|
|
4189
|
+
item,
|
|
4190
|
+
sectionId: section.id,
|
|
4191
|
+
expanded: true,
|
|
4192
|
+
activeItemId,
|
|
4193
|
+
iconMap,
|
|
4194
|
+
onItemSelect
|
|
4195
|
+
})
|
|
4196
|
+
)
|
|
4197
|
+
]
|
|
4176
4198
|
},
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
(item) => renderMenuItem({
|
|
4181
|
-
item,
|
|
4182
|
-
sectionId: section.id,
|
|
4183
|
-
expanded: true,
|
|
4184
|
-
activeItemId,
|
|
4185
|
-
iconMap,
|
|
4186
|
-
onItemSelect
|
|
4187
|
-
})
|
|
4188
|
-
)
|
|
4189
|
-
]
|
|
4190
|
-
},
|
|
4191
|
-
section.id
|
|
4192
|
-
)) })
|
|
4199
|
+
section.id
|
|
4200
|
+
))
|
|
4201
|
+
] })
|
|
4193
4202
|
]
|
|
4194
4203
|
}
|
|
4195
4204
|
),
|
|
@@ -7566,7 +7575,8 @@ var ScDrawer_default = {
|
|
|
7566
7575
|
drawer: "ScDrawer_drawer",
|
|
7567
7576
|
"side-right": "ScDrawer_side-right",
|
|
7568
7577
|
"side-left": "ScDrawer_side-left",
|
|
7569
|
-
content: "ScDrawer_content"
|
|
7578
|
+
content: "ScDrawer_content",
|
|
7579
|
+
backdrop: "ScDrawer_backdrop"
|
|
7570
7580
|
};
|
|
7571
7581
|
|
|
7572
7582
|
// src/SC-Drawer/ScDrawer.tsx
|
|
@@ -7581,7 +7591,9 @@ var ScDrawer = ({
|
|
|
7581
7591
|
contentClassName,
|
|
7582
7592
|
contentStyle,
|
|
7583
7593
|
closeOnOutside = true,
|
|
7584
|
-
closeOnEsc = true
|
|
7594
|
+
closeOnEsc = true,
|
|
7595
|
+
backdrop = false,
|
|
7596
|
+
zIndex
|
|
7585
7597
|
}) => {
|
|
7586
7598
|
const panelRef = (0, import_react17.useRef)(null);
|
|
7587
7599
|
(0, import_react17.useEffect)(() => {
|
|
@@ -7603,22 +7615,32 @@ var ScDrawer = ({
|
|
|
7603
7615
|
}, [open, closeOnEsc, closeOnOutside, onClose]);
|
|
7604
7616
|
if (!open || typeof document === "undefined") return null;
|
|
7605
7617
|
return (0, import_react_dom2.createPortal)(
|
|
7606
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7618
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
7619
|
+
backdrop && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7620
|
+
"div",
|
|
7621
|
+
{
|
|
7622
|
+
className: ScDrawer_default.backdrop,
|
|
7623
|
+
style: zIndex != null ? { zIndex: zIndex - 1 } : void 0,
|
|
7624
|
+
"aria-hidden": true
|
|
7625
|
+
}
|
|
7626
|
+
),
|
|
7627
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7628
|
+
"div",
|
|
7629
|
+
{
|
|
7630
|
+
ref: panelRef,
|
|
7631
|
+
className: [ScDrawer_default.drawer, ScDrawer_default["side-" + side], className].filter(Boolean).join(" "),
|
|
7632
|
+
style: zIndex != null ? { ...style, zIndex } : style,
|
|
7633
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
7634
|
+
"div",
|
|
7635
|
+
{
|
|
7636
|
+
className: [ScDrawer_default.content, contentClassName].filter(Boolean).join(" "),
|
|
7637
|
+
style: contentStyle,
|
|
7638
|
+
children
|
|
7639
|
+
}
|
|
7640
|
+
)
|
|
7641
|
+
}
|
|
7642
|
+
)
|
|
7643
|
+
] }),
|
|
7622
7644
|
document.body
|
|
7623
7645
|
);
|
|
7624
7646
|
};
|
|
@@ -7994,6 +8016,400 @@ var ScCatalogixStoreTableList = ({
|
|
|
7994
8016
|
);
|
|
7995
8017
|
};
|
|
7996
8018
|
|
|
8019
|
+
// src/SC-DefaultCard/ScDefaultCard.module.css
|
|
8020
|
+
var ScDefaultCard_default = {
|
|
8021
|
+
scDefaultCard: "ScDefaultCard_scDefaultCard",
|
|
8022
|
+
"state-hover": "ScDefaultCard_state-hover",
|
|
8023
|
+
content: "ScDefaultCard_content",
|
|
8024
|
+
title: "ScDefaultCard_title",
|
|
8025
|
+
description: "ScDefaultCard_description"
|
|
8026
|
+
};
|
|
8027
|
+
|
|
8028
|
+
// src/SC-DefaultCard/ScDefaultCard.tsx
|
|
8029
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
8030
|
+
var ScDefaultCard = ({
|
|
8031
|
+
title = "Title",
|
|
8032
|
+
description = "Description",
|
|
8033
|
+
showDescription = true,
|
|
8034
|
+
state = "default",
|
|
8035
|
+
className,
|
|
8036
|
+
...props
|
|
8037
|
+
}) => {
|
|
8038
|
+
const variantsClassName = ScDefaultCard_default["state-" + state];
|
|
8039
|
+
const hasDescription = showDescription && Boolean(description);
|
|
8040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8041
|
+
"div",
|
|
8042
|
+
{
|
|
8043
|
+
className: [ScDefaultCard_default.scDefaultCard, variantsClassName, className].filter(Boolean).join(" "),
|
|
8044
|
+
...props,
|
|
8045
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: ScDefaultCard_default.content, children: [
|
|
8046
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: ScDefaultCard_default.title, children: title }),
|
|
8047
|
+
hasDescription && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: ScDefaultCard_default.description, children: description })
|
|
8048
|
+
] })
|
|
8049
|
+
}
|
|
8050
|
+
);
|
|
8051
|
+
};
|
|
8052
|
+
|
|
8053
|
+
// src/SC-ValueMappingL1/ScValueMappingL1.module.css
|
|
8054
|
+
var ScValueMappingL1_default = {
|
|
8055
|
+
scValueMappingL1: "ScValueMappingL1_scValueMappingL1",
|
|
8056
|
+
"state-hover": "ScValueMappingL1_state-hover",
|
|
8057
|
+
"state-active": "ScValueMappingL1_state-active",
|
|
8058
|
+
updated: "ScValueMappingL1_updated",
|
|
8059
|
+
labelWrap: "ScValueMappingL1_labelWrap",
|
|
8060
|
+
label: "ScValueMappingL1_label",
|
|
8061
|
+
dot: "ScValueMappingL1_dot",
|
|
8062
|
+
dotInner: "ScValueMappingL1_dotInner"
|
|
8063
|
+
};
|
|
8064
|
+
|
|
8065
|
+
// src/SC-ValueMappingL1/ScValueMappingL1.tsx
|
|
8066
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
8067
|
+
var ScValueMappingL1 = ({
|
|
8068
|
+
label = "Title",
|
|
8069
|
+
state = "default",
|
|
8070
|
+
updated = false,
|
|
8071
|
+
className,
|
|
8072
|
+
...props
|
|
8073
|
+
}) => {
|
|
8074
|
+
const variantsClassName = ScValueMappingL1_default["state-" + state];
|
|
8075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
8076
|
+
"div",
|
|
8077
|
+
{
|
|
8078
|
+
className: [
|
|
8079
|
+
ScValueMappingL1_default.scValueMappingL1,
|
|
8080
|
+
variantsClassName,
|
|
8081
|
+
updated ? ScValueMappingL1_default.updated : "",
|
|
8082
|
+
className
|
|
8083
|
+
].filter(Boolean).join(" "),
|
|
8084
|
+
...props,
|
|
8085
|
+
children: [
|
|
8086
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: ScValueMappingL1_default.labelWrap, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: ScValueMappingL1_default.label, title: label, children: label }) }),
|
|
8087
|
+
updated && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: ScValueMappingL1_default.dot, "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: ScValueMappingL1_default.dotInner }) })
|
|
8088
|
+
]
|
|
8089
|
+
}
|
|
8090
|
+
);
|
|
8091
|
+
};
|
|
8092
|
+
|
|
8093
|
+
// src/SC-TaxonomyPill/ScTaxonomyPill.module.css
|
|
8094
|
+
var ScTaxonomyPill_default = {
|
|
8095
|
+
scTaxonomyPill: "ScTaxonomyPill_scTaxonomyPill",
|
|
8096
|
+
"state-hover": "ScTaxonomyPill_state-hover",
|
|
8097
|
+
inner: "ScTaxonomyPill_inner",
|
|
8098
|
+
"type-pill": "ScTaxonomyPill_type-pill",
|
|
8099
|
+
"type-expand": "ScTaxonomyPill_type-expand",
|
|
8100
|
+
"type-collapse": "ScTaxonomyPill_type-collapse",
|
|
8101
|
+
label: "ScTaxonomyPill_label",
|
|
8102
|
+
icon: "ScTaxonomyPill_icon"
|
|
8103
|
+
};
|
|
8104
|
+
|
|
8105
|
+
// src/SC-TaxonomyPill/ScTaxonomyPill.tsx
|
|
8106
|
+
var import_icons64 = require("@streamoid/icons");
|
|
8107
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
8108
|
+
var ScTaxonomyPill = ({
|
|
8109
|
+
type = "pill",
|
|
8110
|
+
state = "default",
|
|
8111
|
+
label = "All Products",
|
|
8112
|
+
count = 3,
|
|
8113
|
+
className,
|
|
8114
|
+
...props
|
|
8115
|
+
}) => {
|
|
8116
|
+
const cls = [
|
|
8117
|
+
ScTaxonomyPill_default.scTaxonomyPill,
|
|
8118
|
+
ScTaxonomyPill_default["type-" + type],
|
|
8119
|
+
ScTaxonomyPill_default["state-" + state],
|
|
8120
|
+
className
|
|
8121
|
+
].filter(Boolean).join(" ");
|
|
8122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: cls, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: ScTaxonomyPill_default.inner, children: [
|
|
8123
|
+
type === "pill" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScTaxonomyPill_default.label, children: label }),
|
|
8124
|
+
type === "expand" && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
|
|
8125
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: ScTaxonomyPill_default.label, children: count }),
|
|
8126
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_icons64.SiconDown, { className: ScTaxonomyPill_default.icon, color: "currentColor" })
|
|
8127
|
+
] }),
|
|
8128
|
+
type === "collapse" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_icons64.SiconUp, { className: ScTaxonomyPill_default.icon, color: "currentColor" })
|
|
8129
|
+
] }) });
|
|
8130
|
+
};
|
|
8131
|
+
|
|
8132
|
+
// src/SC-SelectionPill/ScSelectionPill.module.css
|
|
8133
|
+
var ScSelectionPill_default = {
|
|
8134
|
+
scSelectionPill: "ScSelectionPill_scSelectionPill",
|
|
8135
|
+
"state-hover": "ScSelectionPill_state-hover",
|
|
8136
|
+
"state-selected": "ScSelectionPill_state-selected",
|
|
8137
|
+
label: "ScSelectionPill_label"
|
|
8138
|
+
};
|
|
8139
|
+
|
|
8140
|
+
// src/SC-SelectionPill/ScSelectionPill.tsx
|
|
8141
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
8142
|
+
var ScSelectionPill = ({
|
|
8143
|
+
label = "All Products",
|
|
8144
|
+
selected = false,
|
|
8145
|
+
value,
|
|
8146
|
+
onSelect,
|
|
8147
|
+
onClick,
|
|
8148
|
+
className,
|
|
8149
|
+
...props
|
|
8150
|
+
}) => {
|
|
8151
|
+
const variantsClassName = ScSelectionPill_default["state-" + (selected ? "selected" : "default")];
|
|
8152
|
+
const handleClick = (event) => {
|
|
8153
|
+
onClick?.(event);
|
|
8154
|
+
onSelect?.(value);
|
|
8155
|
+
};
|
|
8156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8157
|
+
"button",
|
|
8158
|
+
{
|
|
8159
|
+
type: "button",
|
|
8160
|
+
className: [ScSelectionPill_default.scSelectionPill, variantsClassName, className].filter(Boolean).join(" "),
|
|
8161
|
+
"aria-pressed": selected,
|
|
8162
|
+
onClick: handleClick,
|
|
8163
|
+
...props,
|
|
8164
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: ScSelectionPill_default.label, children: label })
|
|
8165
|
+
}
|
|
8166
|
+
);
|
|
8167
|
+
};
|
|
8168
|
+
|
|
8169
|
+
// src/SC-SelectionPillGroup/ScSelectionPillGroup.module.css
|
|
8170
|
+
var ScSelectionPillGroup_default = {
|
|
8171
|
+
scSelectionPillGroup: "ScSelectionPillGroup_scSelectionPillGroup"
|
|
8172
|
+
};
|
|
8173
|
+
|
|
8174
|
+
// src/SC-SelectionPillGroup/ScSelectionPillGroup.tsx
|
|
8175
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
8176
|
+
var ScSelectionPillGroup = ({
|
|
8177
|
+
options = [],
|
|
8178
|
+
value,
|
|
8179
|
+
onChange,
|
|
8180
|
+
className,
|
|
8181
|
+
...props
|
|
8182
|
+
}) => {
|
|
8183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8184
|
+
"div",
|
|
8185
|
+
{
|
|
8186
|
+
className: [ScSelectionPillGroup_default.scSelectionPillGroup, className].filter(Boolean).join(" "),
|
|
8187
|
+
role: "tablist",
|
|
8188
|
+
...props,
|
|
8189
|
+
children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8190
|
+
ScSelectionPill,
|
|
8191
|
+
{
|
|
8192
|
+
label: opt.label,
|
|
8193
|
+
value: opt.value,
|
|
8194
|
+
selected: opt.value === value,
|
|
8195
|
+
role: "tab",
|
|
8196
|
+
"aria-selected": opt.value === value,
|
|
8197
|
+
onSelect: (v) => onChange?.(v ?? "")
|
|
8198
|
+
},
|
|
8199
|
+
opt.value
|
|
8200
|
+
))
|
|
8201
|
+
}
|
|
8202
|
+
);
|
|
8203
|
+
};
|
|
8204
|
+
|
|
8205
|
+
// src/SC-MappingCard/ScMappingCard.tsx
|
|
8206
|
+
var import_icons65 = require("@streamoid/icons");
|
|
8207
|
+
|
|
8208
|
+
// src/SC-MappingCard/ScMappingCard.module.css
|
|
8209
|
+
var ScMappingCard_default = {
|
|
8210
|
+
scMappingCard: "ScMappingCard_scMappingCard",
|
|
8211
|
+
"status-confirmed": "ScMappingCard_status-confirmed",
|
|
8212
|
+
"status-ignored": "ScMappingCard_status-ignored",
|
|
8213
|
+
badge: "ScMappingCard_badge",
|
|
8214
|
+
badgeLetter: "ScMappingCard_badgeLetter",
|
|
8215
|
+
content: "ScMappingCard_content",
|
|
8216
|
+
source: "ScMappingCard_source",
|
|
8217
|
+
sourceCard: "ScMappingCard_sourceCard",
|
|
8218
|
+
sourceHeader: "ScMappingCard_sourceHeader",
|
|
8219
|
+
sampleRows: "ScMappingCard_sampleRows",
|
|
8220
|
+
columnName: "ScMappingCard_columnName",
|
|
8221
|
+
addBtn: "ScMappingCard_addBtn",
|
|
8222
|
+
sampleRow: "ScMappingCard_sampleRow",
|
|
8223
|
+
sourceCollapsed: "ScMappingCard_sourceCollapsed",
|
|
8224
|
+
targetRegion: "ScMappingCard_targetRegion",
|
|
8225
|
+
targetRow: "ScMappingCard_targetRow",
|
|
8226
|
+
connector: "ScMappingCard_connector",
|
|
8227
|
+
targetBox: "ScMappingCard_targetBox",
|
|
8228
|
+
targetBoxDash: "ScMappingCard_targetBoxDash",
|
|
8229
|
+
warning: "ScMappingCard_warning",
|
|
8230
|
+
warningIcon: "ScMappingCard_warningIcon",
|
|
8231
|
+
warningText: "ScMappingCard_warningText",
|
|
8232
|
+
actions: "ScMappingCard_actions",
|
|
8233
|
+
actionRow: "ScMappingCard_actionRow",
|
|
8234
|
+
btn: "ScMappingCard_btn",
|
|
8235
|
+
ignoreBtn: "ScMappingCard_ignoreBtn",
|
|
8236
|
+
whiteBtn: "ScMappingCard_whiteBtn",
|
|
8237
|
+
confirmBtn: "ScMappingCard_confirmBtn",
|
|
8238
|
+
statusLabel: "ScMappingCard_statusLabel",
|
|
8239
|
+
statusIcon: "ScMappingCard_statusIcon",
|
|
8240
|
+
statusSuccess: "ScMappingCard_statusSuccess",
|
|
8241
|
+
statusError: "ScMappingCard_statusError",
|
|
8242
|
+
validityText: "ScMappingCard_validityText"
|
|
8243
|
+
};
|
|
8244
|
+
|
|
8245
|
+
// src/SC-MappingCard/ScMappingCard.tsx
|
|
8246
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
8247
|
+
var ScMappingCard = ({
|
|
8248
|
+
badge,
|
|
8249
|
+
columnName,
|
|
8250
|
+
sampleRows = [],
|
|
8251
|
+
onAddColumn,
|
|
8252
|
+
status = "default",
|
|
8253
|
+
targets,
|
|
8254
|
+
confirmedTargets = [],
|
|
8255
|
+
validityText,
|
|
8256
|
+
warning,
|
|
8257
|
+
canConfirm = false,
|
|
8258
|
+
onIgnore,
|
|
8259
|
+
onConfirm,
|
|
8260
|
+
onEdit,
|
|
8261
|
+
className,
|
|
8262
|
+
...props
|
|
8263
|
+
}) => {
|
|
8264
|
+
const isDefault = status === "default";
|
|
8265
|
+
const isConfirmed = status === "confirmed";
|
|
8266
|
+
const isIgnored = status === "ignored";
|
|
8267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
8268
|
+
"div",
|
|
8269
|
+
{
|
|
8270
|
+
className: [ScMappingCard_default.scMappingCard, ScMappingCard_default["status-" + status], className].filter(Boolean).join(" "),
|
|
8271
|
+
...props,
|
|
8272
|
+
children: [
|
|
8273
|
+
badge != null && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScMappingCard_default.badge, "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.badgeLetter, children: badge }) }),
|
|
8274
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.content, children: [
|
|
8275
|
+
isDefault ? /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: [ScMappingCard_default.source, ScMappingCard_default.sourceCard].join(" "), children: [
|
|
8276
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.sourceHeader, children: [
|
|
8277
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.columnName, title: columnName, children: columnName }),
|
|
8278
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8279
|
+
"button",
|
|
8280
|
+
{
|
|
8281
|
+
type: "button",
|
|
8282
|
+
className: ScMappingCard_default.addBtn,
|
|
8283
|
+
onClick: onAddColumn,
|
|
8284
|
+
"aria-label": "Add column",
|
|
8285
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8286
|
+
import_icons65.SiconPlus,
|
|
8287
|
+
{
|
|
8288
|
+
size: 24,
|
|
8289
|
+
color: "var(--alias-text-and-icons-primary, #f5f5f5)"
|
|
8290
|
+
}
|
|
8291
|
+
)
|
|
8292
|
+
}
|
|
8293
|
+
)
|
|
8294
|
+
] }),
|
|
8295
|
+
sampleRows.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: ScMappingCard_default.sampleRows, children: sampleRows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.sampleRow, title: row, children: row }, i)) })
|
|
8296
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: [ScMappingCard_default.source, ScMappingCard_default.sourceCollapsed].join(" "), children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.columnName, title: columnName, children: columnName }) }),
|
|
8297
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.targetRegion, children: [
|
|
8298
|
+
isDefault && targets,
|
|
8299
|
+
isConfirmed && confirmedTargets.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.targetRow, children: [
|
|
8300
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8301
|
+
import_icons65.SiconRight,
|
|
8302
|
+
{
|
|
8303
|
+
size: 20,
|
|
8304
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
8305
|
+
className: ScMappingCard_default.connector
|
|
8306
|
+
}
|
|
8307
|
+
),
|
|
8308
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.targetBox, title: t, children: t })
|
|
8309
|
+
] }, i)),
|
|
8310
|
+
isIgnored && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.targetRow, children: [
|
|
8311
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8312
|
+
import_icons65.SiconRight,
|
|
8313
|
+
{
|
|
8314
|
+
size: 24,
|
|
8315
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
8316
|
+
className: ScMappingCard_default.connector
|
|
8317
|
+
}
|
|
8318
|
+
),
|
|
8319
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: [ScMappingCard_default.targetBox, ScMappingCard_default.targetBoxDash].join(" "), children: "-" })
|
|
8320
|
+
] }),
|
|
8321
|
+
isDefault && warning != null && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.warning, children: [
|
|
8322
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.warningIcon, "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8323
|
+
import_icons65.SiconWarning,
|
|
8324
|
+
{
|
|
8325
|
+
size: 20,
|
|
8326
|
+
color: "var(--alias-text-and-icons-error, #d11a1a)"
|
|
8327
|
+
}
|
|
8328
|
+
) }),
|
|
8329
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.warningText, children: warning })
|
|
8330
|
+
] })
|
|
8331
|
+
] }),
|
|
8332
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.actions, children: [
|
|
8333
|
+
isDefault && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
8334
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.actionRow, children: [
|
|
8335
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8336
|
+
"button",
|
|
8337
|
+
{
|
|
8338
|
+
type: "button",
|
|
8339
|
+
className: [ScMappingCard_default.btn, ScMappingCard_default.ignoreBtn].join(" "),
|
|
8340
|
+
onClick: onIgnore,
|
|
8341
|
+
children: "Ignore Column"
|
|
8342
|
+
}
|
|
8343
|
+
),
|
|
8344
|
+
canConfirm && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8345
|
+
"button",
|
|
8346
|
+
{
|
|
8347
|
+
type: "button",
|
|
8348
|
+
className: [ScMappingCard_default.btn, ScMappingCard_default.whiteBtn, ScMappingCard_default.confirmBtn].join(
|
|
8349
|
+
" "
|
|
8350
|
+
),
|
|
8351
|
+
onClick: onConfirm,
|
|
8352
|
+
children: "Confirm Mapping"
|
|
8353
|
+
}
|
|
8354
|
+
)
|
|
8355
|
+
] }),
|
|
8356
|
+
validityText && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.validityText, children: validityText })
|
|
8357
|
+
] }),
|
|
8358
|
+
isConfirmed && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.actionRow, children: [
|
|
8359
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
8360
|
+
"span",
|
|
8361
|
+
{
|
|
8362
|
+
className: [ScMappingCard_default.statusLabel, ScMappingCard_default.statusSuccess].join(" "),
|
|
8363
|
+
children: [
|
|
8364
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.statusIcon, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8365
|
+
import_icons65.SiconCheck,
|
|
8366
|
+
{
|
|
8367
|
+
size: 24,
|
|
8368
|
+
color: "var(--alias-text-and-icons-success, #00b96b)"
|
|
8369
|
+
}
|
|
8370
|
+
) }),
|
|
8371
|
+
"Column Confirmed"
|
|
8372
|
+
]
|
|
8373
|
+
}
|
|
8374
|
+
),
|
|
8375
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8376
|
+
"button",
|
|
8377
|
+
{
|
|
8378
|
+
type: "button",
|
|
8379
|
+
className: [ScMappingCard_default.btn, ScMappingCard_default.whiteBtn].join(" "),
|
|
8380
|
+
onClick: onEdit,
|
|
8381
|
+
children: "Edit"
|
|
8382
|
+
}
|
|
8383
|
+
)
|
|
8384
|
+
] }),
|
|
8385
|
+
isIgnored && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: ScMappingCard_default.actionRow, children: [
|
|
8386
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("span", { className: [ScMappingCard_default.statusLabel, ScMappingCard_default.statusError].join(" "), children: [
|
|
8387
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: ScMappingCard_default.statusIcon, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8388
|
+
import_icons65.SiconClose,
|
|
8389
|
+
{
|
|
8390
|
+
size: 24,
|
|
8391
|
+
color: "var(--alias-text-and-icons-error, #d11a1a)"
|
|
8392
|
+
}
|
|
8393
|
+
) }),
|
|
8394
|
+
"Column Ignored"
|
|
8395
|
+
] }),
|
|
8396
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
8397
|
+
"button",
|
|
8398
|
+
{
|
|
8399
|
+
type: "button",
|
|
8400
|
+
className: [ScMappingCard_default.btn, ScMappingCard_default.whiteBtn].join(" "),
|
|
8401
|
+
onClick: onEdit,
|
|
8402
|
+
children: "Edit"
|
|
8403
|
+
}
|
|
8404
|
+
)
|
|
8405
|
+
] })
|
|
8406
|
+
] })
|
|
8407
|
+
] })
|
|
8408
|
+
]
|
|
8409
|
+
}
|
|
8410
|
+
);
|
|
8411
|
+
};
|
|
8412
|
+
|
|
7997
8413
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.module.css
|
|
7998
8414
|
var ScThinkingStepIcon_default = {
|
|
7999
8415
|
scThinkingStepIcon: "ScThinkingStepIcon_scThinkingStepIcon",
|
|
@@ -8008,7 +8424,7 @@ var ScThinkingStepIcon_default = {
|
|
|
8008
8424
|
};
|
|
8009
8425
|
|
|
8010
8426
|
// src/SC-ThinkingStepIcon/ScThinkingStepIcon.tsx
|
|
8011
|
-
var
|
|
8427
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
8012
8428
|
var ScThinkingStepIcon = ({
|
|
8013
8429
|
state = "default",
|
|
8014
8430
|
size = 12,
|
|
@@ -8017,13 +8433,13 @@ var ScThinkingStepIcon = ({
|
|
|
8017
8433
|
...props
|
|
8018
8434
|
}) => {
|
|
8019
8435
|
const variantsClassName = ScThinkingStepIcon_default["state-" + state];
|
|
8020
|
-
return /* @__PURE__ */ (0,
|
|
8436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8021
8437
|
"span",
|
|
8022
8438
|
{
|
|
8023
8439
|
className: ScThinkingStepIcon_default.scThinkingStepIcon + " " + (className ?? "") + " " + variantsClassName,
|
|
8024
8440
|
style: { width: size, height: size, ...style },
|
|
8025
8441
|
...props,
|
|
8026
|
-
children: /* @__PURE__ */ (0,
|
|
8442
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
8027
8443
|
"svg",
|
|
8028
8444
|
{
|
|
8029
8445
|
className: ScThinkingStepIcon_default.glyph,
|
|
@@ -8034,7 +8450,7 @@ var ScThinkingStepIcon = ({
|
|
|
8034
8450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8035
8451
|
"aria-hidden": "true",
|
|
8036
8452
|
children: [
|
|
8037
|
-
state === "default" && /* @__PURE__ */ (0,
|
|
8453
|
+
state === "default" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8038
8454
|
"circle",
|
|
8039
8455
|
{
|
|
8040
8456
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -8045,7 +8461,7 @@ var ScThinkingStepIcon = ({
|
|
|
8045
8461
|
strokeLinecap: "round"
|
|
8046
8462
|
}
|
|
8047
8463
|
),
|
|
8048
|
-
state === "working" && /* @__PURE__ */ (0,
|
|
8464
|
+
state === "working" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8049
8465
|
"path",
|
|
8050
8466
|
{
|
|
8051
8467
|
className: ScThinkingStepIcon_default.stroke + " " + ScThinkingStepIcon_default.spinner,
|
|
@@ -8055,7 +8471,7 @@ var ScThinkingStepIcon = ({
|
|
|
8055
8471
|
strokeLinejoin: "round"
|
|
8056
8472
|
}
|
|
8057
8473
|
),
|
|
8058
|
-
state === "completed" && /* @__PURE__ */ (0,
|
|
8474
|
+
state === "completed" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8059
8475
|
"path",
|
|
8060
8476
|
{
|
|
8061
8477
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -8065,7 +8481,7 @@ var ScThinkingStepIcon = ({
|
|
|
8065
8481
|
strokeLinejoin: "round"
|
|
8066
8482
|
}
|
|
8067
8483
|
),
|
|
8068
|
-
state === "error" && /* @__PURE__ */ (0,
|
|
8484
|
+
state === "error" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8069
8485
|
"path",
|
|
8070
8486
|
{
|
|
8071
8487
|
className: ScThinkingStepIcon_default.stroke,
|
|
@@ -8104,8 +8520,8 @@ var ScInChatList_default = {
|
|
|
8104
8520
|
};
|
|
8105
8521
|
|
|
8106
8522
|
// src/SC-InChatList/ScInChatList.tsx
|
|
8107
|
-
var
|
|
8108
|
-
var
|
|
8523
|
+
var import_icons66 = require("@streamoid/icons");
|
|
8524
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
8109
8525
|
var ScInChatList = ({
|
|
8110
8526
|
title = "Infrastructure that helps modern brands scale",
|
|
8111
8527
|
description = "Description",
|
|
@@ -8122,33 +8538,33 @@ var ScInChatList = ({
|
|
|
8122
8538
|
}) => {
|
|
8123
8539
|
const isExpandable = descriptionVisibility === "hidden" || descriptionVisibility === "visible";
|
|
8124
8540
|
const isExpanded = descriptionVisibility === "visible";
|
|
8125
|
-
return /* @__PURE__ */ (0,
|
|
8541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
8126
8542
|
"div",
|
|
8127
8543
|
{
|
|
8128
8544
|
className: ScInChatList_default.scInChatList + (className ? " " + className : ""),
|
|
8129
8545
|
style,
|
|
8130
8546
|
children: [
|
|
8131
|
-
leadingIndicator && /* @__PURE__ */ (0,
|
|
8132
|
-
/* @__PURE__ */ (0,
|
|
8133
|
-
/* @__PURE__ */ (0,
|
|
8134
|
-
showSteps && /* @__PURE__ */ (0,
|
|
8135
|
-
/* @__PURE__ */ (0,
|
|
8547
|
+
leadingIndicator && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScInChatList_default.indicatorWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ScThinkingStepIcon, { state: iconState }) }),
|
|
8548
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: ScInChatList_default.content, children: [
|
|
8549
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: ScInChatList_default.headerArea, children: [
|
|
8550
|
+
showSteps && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: ScInChatList_default.stepCount, children: stepCount }),
|
|
8551
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
8136
8552
|
"div",
|
|
8137
8553
|
{
|
|
8138
8554
|
className: ScInChatList_default.titleRow + " " + (isExpandable ? ScInChatList_default.titleRowClickable : ScInChatList_default.titleRowStatic),
|
|
8139
8555
|
onClick: isExpandable ? onToggle : void 0,
|
|
8140
8556
|
children: [
|
|
8141
|
-
/* @__PURE__ */ (0,
|
|
8142
|
-
isExpandable && /* @__PURE__ */ (0,
|
|
8557
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: ScInChatList_default.title, children: title }),
|
|
8558
|
+
isExpandable && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScInChatList_default.chevronWrapper, children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_icons66.SiconUp, { size: 12, className: ScInChatList_default.chevronIcon }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_icons66.SiconDown, { size: 12, className: ScInChatList_default.chevronIcon }) })
|
|
8143
8559
|
]
|
|
8144
8560
|
}
|
|
8145
8561
|
),
|
|
8146
|
-
isExpanded && /* @__PURE__ */ (0,
|
|
8147
|
-
/* @__PURE__ */ (0,
|
|
8148
|
-
/* @__PURE__ */ (0,
|
|
8562
|
+
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: ScInChatList_default.descriptionRow, children: [
|
|
8563
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScInChatList_default.descriptionIcon, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_icons66.SiconDot, { size: 20, className: ScInChatList_default.descriptionDot }) }),
|
|
8564
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: ScInChatList_default.descriptionText, children: description })
|
|
8149
8565
|
] })
|
|
8150
8566
|
] }),
|
|
8151
|
-
showTool && /* @__PURE__ */ (0,
|
|
8567
|
+
showTool && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: ScInChatList_default.toolPill, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: ScInChatList_default.toolText, children: toolUsing }) })
|
|
8152
8568
|
] })
|
|
8153
8569
|
]
|
|
8154
8570
|
}
|
|
@@ -8162,7 +8578,7 @@ var ScSubAgent_default = {
|
|
|
8162
8578
|
};
|
|
8163
8579
|
|
|
8164
8580
|
// src/SC-SubAgent/ScSubAgent.tsx
|
|
8165
|
-
var
|
|
8581
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
8166
8582
|
function formatSubAgentLabel(agentName) {
|
|
8167
8583
|
const normalized = (agentName ?? "").trim();
|
|
8168
8584
|
if (!normalized) return "Using sub-agent...";
|
|
@@ -8175,12 +8591,12 @@ var ScSubAgent = ({
|
|
|
8175
8591
|
...props
|
|
8176
8592
|
}) => {
|
|
8177
8593
|
const label = text ?? formatSubAgentLabel(agentName);
|
|
8178
|
-
return /* @__PURE__ */ (0,
|
|
8594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
8179
8595
|
"div",
|
|
8180
8596
|
{
|
|
8181
8597
|
className: [ScSubAgent_default.scSubAgent, className].filter(Boolean).join(" "),
|
|
8182
8598
|
...props,
|
|
8183
|
-
children: /* @__PURE__ */ (0,
|
|
8599
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: ScSubAgent_default.label, children: label })
|
|
8184
8600
|
}
|
|
8185
8601
|
);
|
|
8186
8602
|
};
|
|
@@ -8194,7 +8610,7 @@ var ScInChatMessage_default = {
|
|
|
8194
8610
|
};
|
|
8195
8611
|
|
|
8196
8612
|
// src/SC-InChatMessage/ScInChatMessage.tsx
|
|
8197
|
-
var
|
|
8613
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
8198
8614
|
var ScInChatMessage = ({
|
|
8199
8615
|
type = "input",
|
|
8200
8616
|
text,
|
|
@@ -8204,13 +8620,13 @@ var ScInChatMessage = ({
|
|
|
8204
8620
|
...props
|
|
8205
8621
|
}) => {
|
|
8206
8622
|
const variantsClassName = ScInChatMessage_default["type-" + type];
|
|
8207
|
-
return /* @__PURE__ */ (0,
|
|
8623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
8208
8624
|
"div",
|
|
8209
8625
|
{
|
|
8210
8626
|
className: [ScInChatMessage_default.scInChatMessage, variantsClassName, className].filter(Boolean).join(" "),
|
|
8211
8627
|
id,
|
|
8212
8628
|
...props,
|
|
8213
|
-
children: /* @__PURE__ */ (0,
|
|
8629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: ScInChatMessage_default.text, children: children ?? text })
|
|
8214
8630
|
}
|
|
8215
8631
|
);
|
|
8216
8632
|
};
|
|
@@ -8227,7 +8643,7 @@ var ScSelection_default = {
|
|
|
8227
8643
|
};
|
|
8228
8644
|
|
|
8229
8645
|
// src/SC-Selection/ScSelection.tsx
|
|
8230
|
-
var
|
|
8646
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
8231
8647
|
var ScSelection = ({
|
|
8232
8648
|
title = "Title",
|
|
8233
8649
|
description = "Description",
|
|
@@ -8243,23 +8659,23 @@ var ScSelection = ({
|
|
|
8243
8659
|
onClick?.(event);
|
|
8244
8660
|
onSelect?.(value);
|
|
8245
8661
|
};
|
|
8246
|
-
return /* @__PURE__ */ (0,
|
|
8662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
8247
8663
|
"div",
|
|
8248
8664
|
{
|
|
8249
8665
|
className: [ScSelection_default.scSelection, variantsClassName, className].filter(Boolean).join(" "),
|
|
8250
8666
|
onClick: handleClick,
|
|
8251
8667
|
...props,
|
|
8252
8668
|
children: [
|
|
8253
|
-
/* @__PURE__ */ (0,
|
|
8669
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
8254
8670
|
ScRadio,
|
|
8255
8671
|
{
|
|
8256
8672
|
state: active ? "selected" : "default",
|
|
8257
8673
|
className: ScSelection_default.scRadioInstance
|
|
8258
8674
|
}
|
|
8259
8675
|
),
|
|
8260
|
-
/* @__PURE__ */ (0,
|
|
8261
|
-
/* @__PURE__ */ (0,
|
|
8262
|
-
description && /* @__PURE__ */ (0,
|
|
8676
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: ScSelection_default.wrapper, children: [
|
|
8677
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScSelection_default.title, children: title }),
|
|
8678
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: ScSelection_default.description, children: description })
|
|
8263
8679
|
] })
|
|
8264
8680
|
]
|
|
8265
8681
|
}
|
|
@@ -8286,7 +8702,7 @@ var ScSelectionList_default = {
|
|
|
8286
8702
|
};
|
|
8287
8703
|
|
|
8288
8704
|
// src/SC-SelectionList/ScSelectionList.tsx
|
|
8289
|
-
var
|
|
8705
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8290
8706
|
var ScSelectionList = ({
|
|
8291
8707
|
state = "default",
|
|
8292
8708
|
label = "Suggested Colours: ",
|
|
@@ -8309,14 +8725,14 @@ var ScSelectionList = ({
|
|
|
8309
8725
|
onChange?.(next);
|
|
8310
8726
|
if (next === "rejected") onReject?.();
|
|
8311
8727
|
};
|
|
8312
|
-
return /* @__PURE__ */ (0,
|
|
8728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
8313
8729
|
"div",
|
|
8314
8730
|
{
|
|
8315
8731
|
className: ScSelectionList_default.scSelectionList + (disabled ? " " + ScSelectionList_default.disabled : "") + (className ? " " + className : "") + " " + variantsClassName,
|
|
8316
8732
|
...props,
|
|
8317
8733
|
children: [
|
|
8318
|
-
/* @__PURE__ */ (0,
|
|
8319
|
-
/* @__PURE__ */ (0,
|
|
8734
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScSelectionList_default.toggles, children: [
|
|
8735
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8320
8736
|
"button",
|
|
8321
8737
|
{
|
|
8322
8738
|
type: "button",
|
|
@@ -8325,7 +8741,7 @@ var ScSelectionList = ({
|
|
|
8325
8741
|
disabled,
|
|
8326
8742
|
"aria-pressed": state === "approved",
|
|
8327
8743
|
"aria-label": state === "approved" ? "Revoke approval" : "Approve",
|
|
8328
|
-
children: /* @__PURE__ */ (0,
|
|
8744
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8329
8745
|
"svg",
|
|
8330
8746
|
{
|
|
8331
8747
|
className: ScSelectionList_default.checkIcon,
|
|
@@ -8334,7 +8750,7 @@ var ScSelectionList = ({
|
|
|
8334
8750
|
viewBox: "0 0 8 6",
|
|
8335
8751
|
fill: "none",
|
|
8336
8752
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8337
|
-
children: /* @__PURE__ */ (0,
|
|
8753
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8338
8754
|
"path",
|
|
8339
8755
|
{
|
|
8340
8756
|
d: "M0.5 3.5L2.5 5.5L7.5 0.5",
|
|
@@ -8347,7 +8763,7 @@ var ScSelectionList = ({
|
|
|
8347
8763
|
)
|
|
8348
8764
|
}
|
|
8349
8765
|
),
|
|
8350
|
-
/* @__PURE__ */ (0,
|
|
8766
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8351
8767
|
"button",
|
|
8352
8768
|
{
|
|
8353
8769
|
type: "button",
|
|
@@ -8356,7 +8772,7 @@ var ScSelectionList = ({
|
|
|
8356
8772
|
disabled,
|
|
8357
8773
|
"aria-pressed": state === "rejected",
|
|
8358
8774
|
"aria-label": state === "rejected" ? "Revoke rejection" : "Reject",
|
|
8359
|
-
children: /* @__PURE__ */ (0,
|
|
8775
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8360
8776
|
"svg",
|
|
8361
8777
|
{
|
|
8362
8778
|
className: ScSelectionList_default.closeIcon,
|
|
@@ -8365,7 +8781,7 @@ var ScSelectionList = ({
|
|
|
8365
8781
|
viewBox: "0 0 6.24261 6.24262",
|
|
8366
8782
|
fill: "none",
|
|
8367
8783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8368
|
-
children: /* @__PURE__ */ (0,
|
|
8784
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8369
8785
|
"path",
|
|
8370
8786
|
{
|
|
8371
8787
|
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",
|
|
@@ -8379,9 +8795,9 @@ var ScSelectionList = ({
|
|
|
8379
8795
|
}
|
|
8380
8796
|
)
|
|
8381
8797
|
] }),
|
|
8382
|
-
/* @__PURE__ */ (0,
|
|
8383
|
-
/* @__PURE__ */ (0,
|
|
8384
|
-
/* @__PURE__ */ (0,
|
|
8798
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: ScSelectionList_default.content, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: ScSelectionList_default.row, children: [
|
|
8799
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: ScSelectionList_default.label, children: label }),
|
|
8800
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: ScSelectionList_default.valuesPill, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: ScSelectionList_default.valuesText, children: optionValues }) })
|
|
8385
8801
|
] }) })
|
|
8386
8802
|
]
|
|
8387
8803
|
}
|
|
@@ -8408,7 +8824,7 @@ var ScTextArea_default = {
|
|
|
8408
8824
|
};
|
|
8409
8825
|
|
|
8410
8826
|
// src/SC-textArea/ScTextArea.tsx
|
|
8411
|
-
var
|
|
8827
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
8412
8828
|
var ScTextArea = ({
|
|
8413
8829
|
state,
|
|
8414
8830
|
labelGroup = "",
|
|
@@ -8423,23 +8839,23 @@ var ScTextArea = ({
|
|
|
8423
8839
|
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
8424
8840
|
const stateClass = ScTextArea_default["state-" + derivedState];
|
|
8425
8841
|
const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
|
|
8426
|
-
return /* @__PURE__ */ (0,
|
|
8842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
8427
8843
|
"div",
|
|
8428
8844
|
{
|
|
8429
8845
|
className: [ScTextArea_default.scTextArea, stateClass, labelGroupClass, className].filter(Boolean).join(" "),
|
|
8430
8846
|
style,
|
|
8431
8847
|
children: [
|
|
8432
|
-
labelGroup && /* @__PURE__ */ (0,
|
|
8433
|
-
/* @__PURE__ */ (0,
|
|
8848
|
+
labelGroup && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: ScTextArea_default.labelContainer, children: [
|
|
8849
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: ScTextArea_default.label, children: [
|
|
8434
8850
|
label,
|
|
8435
8851
|
" "
|
|
8436
8852
|
] }),
|
|
8437
|
-
labelGroup === "text" && /* @__PURE__ */ (0,
|
|
8853
|
+
labelGroup === "text" && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: ScTextArea_default.info, children: [
|
|
8438
8854
|
info,
|
|
8439
8855
|
" "
|
|
8440
8856
|
] })
|
|
8441
8857
|
] }),
|
|
8442
|
-
/* @__PURE__ */ (0,
|
|
8858
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: ScTextArea_default.inputContainer, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
8443
8859
|
"textarea",
|
|
8444
8860
|
{
|
|
8445
8861
|
className: ScTextArea_default.inputText,
|
|
@@ -8486,7 +8902,7 @@ var ScSelect_default = {
|
|
|
8486
8902
|
};
|
|
8487
8903
|
|
|
8488
8904
|
// src/SC-select/ScSelect.tsx
|
|
8489
|
-
var
|
|
8905
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
8490
8906
|
var ScSelect = (props) => {
|
|
8491
8907
|
const {
|
|
8492
8908
|
value,
|
|
@@ -8526,10 +8942,10 @@ var ScSelect = (props) => {
|
|
|
8526
8942
|
labelGroup ? ScSelect_default["label-group-" + labelGroup] : void 0,
|
|
8527
8943
|
className
|
|
8528
8944
|
].filter(Boolean).join(" ");
|
|
8529
|
-
return /* @__PURE__ */ (0,
|
|
8530
|
-
labelGroup === "label" && label ? /* @__PURE__ */ (0,
|
|
8531
|
-
/* @__PURE__ */ (0,
|
|
8532
|
-
/* @__PURE__ */ (0,
|
|
8945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: rootClass, ref: rootRef, children: [
|
|
8946
|
+
labelGroup === "label" && label ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScSelect_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScSelect_default.label, children: label }) }) : null,
|
|
8947
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: ScSelect_default.selectArea, children: [
|
|
8948
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
8533
8949
|
"button",
|
|
8534
8950
|
{
|
|
8535
8951
|
type: "button",
|
|
@@ -8539,18 +8955,18 @@ var ScSelect = (props) => {
|
|
|
8539
8955
|
"aria-haspopup": "listbox",
|
|
8540
8956
|
"aria-expanded": open,
|
|
8541
8957
|
children: [
|
|
8542
|
-
/* @__PURE__ */ (0,
|
|
8958
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
8543
8959
|
"span",
|
|
8544
8960
|
{
|
|
8545
8961
|
className: [ScSelect_default.triggerText, selected ? void 0 : ScSelect_default.placeholder].filter(Boolean).join(" "),
|
|
8546
8962
|
children: selected ? selected.label : placeholder
|
|
8547
8963
|
}
|
|
8548
8964
|
),
|
|
8549
|
-
/* @__PURE__ */ (0,
|
|
8965
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
8550
8966
|
"span",
|
|
8551
8967
|
{
|
|
8552
8968
|
className: [ScSelect_default.chevron, open ? ScSelect_default.chevronOpen : void 0].filter(Boolean).join(" "),
|
|
8553
|
-
children: /* @__PURE__ */ (0,
|
|
8969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
8554
8970
|
"path",
|
|
8555
8971
|
{
|
|
8556
8972
|
d: "M5 7.5L10 12.5L15 7.5",
|
|
@@ -8565,13 +8981,13 @@ var ScSelect = (props) => {
|
|
|
8565
8981
|
]
|
|
8566
8982
|
}
|
|
8567
8983
|
),
|
|
8568
|
-
open ? /* @__PURE__ */ (0,
|
|
8984
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: ScSelect_default.menu, role: "listbox", children: options.map((option) => {
|
|
8569
8985
|
const isSelected = option.id === value;
|
|
8570
8986
|
const optionClass = [
|
|
8571
8987
|
ScSelect_default.option,
|
|
8572
8988
|
isSelected ? ScSelect_default["option-selected"] : void 0
|
|
8573
8989
|
].filter(Boolean).join(" ");
|
|
8574
|
-
return /* @__PURE__ */ (0,
|
|
8990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
8575
8991
|
"div",
|
|
8576
8992
|
{
|
|
8577
8993
|
className: optionClass,
|
|
@@ -8579,8 +8995,8 @@ var ScSelect = (props) => {
|
|
|
8579
8995
|
"aria-selected": isSelected,
|
|
8580
8996
|
onClick: () => handleSelect(option.id),
|
|
8581
8997
|
children: [
|
|
8582
|
-
/* @__PURE__ */ (0,
|
|
8583
|
-
option.description ? /* @__PURE__ */ (0,
|
|
8998
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: ScSelect_default.optionLabel, children: option.label }),
|
|
8999
|
+
option.description ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: ScSelect_default.optionDescription, children: option.description }) : null
|
|
8584
9000
|
]
|
|
8585
9001
|
},
|
|
8586
9002
|
option.id
|
|
@@ -8615,7 +9031,7 @@ var ScFileField_default = {
|
|
|
8615
9031
|
};
|
|
8616
9032
|
|
|
8617
9033
|
// src/SC-fileField/ScFileField.tsx
|
|
8618
|
-
var
|
|
9034
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
8619
9035
|
var ScFileField = (props) => {
|
|
8620
9036
|
const {
|
|
8621
9037
|
onFileSelect,
|
|
@@ -8638,7 +9054,7 @@ var ScFileField = (props) => {
|
|
|
8638
9054
|
onFileSelect(e.target.files);
|
|
8639
9055
|
}
|
|
8640
9056
|
};
|
|
8641
|
-
const uploadIcon = /* @__PURE__ */ (0,
|
|
9057
|
+
const uploadIcon = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8642
9058
|
"svg",
|
|
8643
9059
|
{
|
|
8644
9060
|
className: ScFileField_default.uploadIcon,
|
|
@@ -8652,13 +9068,13 @@ var ScFileField = (props) => {
|
|
|
8652
9068
|
strokeLinejoin: "round",
|
|
8653
9069
|
"aria-hidden": "true",
|
|
8654
9070
|
children: [
|
|
8655
|
-
/* @__PURE__ */ (0,
|
|
8656
|
-
/* @__PURE__ */ (0,
|
|
8657
|
-
/* @__PURE__ */ (0,
|
|
9071
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
9072
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M12 16V4" }),
|
|
9073
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M7 9l5-5 5 5" })
|
|
8658
9074
|
]
|
|
8659
9075
|
}
|
|
8660
9076
|
);
|
|
8661
|
-
const fileIcon = /* @__PURE__ */ (0,
|
|
9077
|
+
const fileIcon = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8662
9078
|
"svg",
|
|
8663
9079
|
{
|
|
8664
9080
|
className: ScFileField_default.fileIcon,
|
|
@@ -8672,12 +9088,12 @@ var ScFileField = (props) => {
|
|
|
8672
9088
|
strokeLinejoin: "round",
|
|
8673
9089
|
"aria-hidden": "true",
|
|
8674
9090
|
children: [
|
|
8675
|
-
/* @__PURE__ */ (0,
|
|
8676
|
-
/* @__PURE__ */ (0,
|
|
9091
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
9092
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M14 2v6h6" })
|
|
8677
9093
|
]
|
|
8678
9094
|
}
|
|
8679
9095
|
);
|
|
8680
|
-
const clearIcon = /* @__PURE__ */ (0,
|
|
9096
|
+
const clearIcon = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
8681
9097
|
"svg",
|
|
8682
9098
|
{
|
|
8683
9099
|
width: "20",
|
|
@@ -8690,20 +9106,20 @@ var ScFileField = (props) => {
|
|
|
8690
9106
|
strokeLinejoin: "round",
|
|
8691
9107
|
"aria-hidden": "true",
|
|
8692
9108
|
children: [
|
|
8693
|
-
/* @__PURE__ */ (0,
|
|
8694
|
-
/* @__PURE__ */ (0,
|
|
9109
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M18 6L6 18" }),
|
|
9110
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M6 6l12 12" })
|
|
8695
9111
|
]
|
|
8696
9112
|
}
|
|
8697
9113
|
);
|
|
8698
9114
|
const rootClass = [ScFileField_default.scFileField, className].filter(Boolean).join(" ");
|
|
8699
9115
|
const showRow = hasFile || isUploading;
|
|
8700
|
-
return /* @__PURE__ */ (0,
|
|
8701
|
-
label ? /* @__PURE__ */ (0,
|
|
8702
|
-
showRow ? /* @__PURE__ */ (0,
|
|
9116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: rootClass, children: [
|
|
9117
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScFileField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScFileField_default.label, children: label }) }) : null,
|
|
9118
|
+
showRow ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScFileField_default.inputContainer, children: [
|
|
8703
9119
|
fileIcon,
|
|
8704
|
-
/* @__PURE__ */ (0,
|
|
8705
|
-
/* @__PURE__ */ (0,
|
|
8706
|
-
isUploading ? /* @__PURE__ */ (0,
|
|
9120
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScFileField_default.fileInfo, children: [
|
|
9121
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: ScFileField_default.fileName, children: fileName }),
|
|
9122
|
+
isUploading ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScFileField_default.progressTrack, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8707
9123
|
"div",
|
|
8708
9124
|
{
|
|
8709
9125
|
className: ScFileField_default.progressFill,
|
|
@@ -8711,7 +9127,7 @@ var ScFileField = (props) => {
|
|
|
8711
9127
|
}
|
|
8712
9128
|
) }) : null
|
|
8713
9129
|
] }),
|
|
8714
|
-
!isUploading ? /* @__PURE__ */ (0,
|
|
9130
|
+
!isUploading ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8715
9131
|
"button",
|
|
8716
9132
|
{
|
|
8717
9133
|
type: "button",
|
|
@@ -8721,8 +9137,8 @@ var ScFileField = (props) => {
|
|
|
8721
9137
|
children: clearIcon
|
|
8722
9138
|
}
|
|
8723
9139
|
) : null
|
|
8724
|
-
] }) : /* @__PURE__ */ (0,
|
|
8725
|
-
/* @__PURE__ */ (0,
|
|
9140
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("label", { className: ScFileField_default.dropzone, children: [
|
|
9141
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8726
9142
|
"input",
|
|
8727
9143
|
{
|
|
8728
9144
|
ref: inputRef,
|
|
@@ -8734,16 +9150,16 @@ var ScFileField = (props) => {
|
|
|
8734
9150
|
}
|
|
8735
9151
|
),
|
|
8736
9152
|
uploadIcon,
|
|
8737
|
-
/* @__PURE__ */ (0,
|
|
8738
|
-
/* @__PURE__ */ (0,
|
|
9153
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScFileField_default.dropzoneText, children: [
|
|
9154
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: ScFileField_default.dropzoneAction, children: "Click to upload" }),
|
|
8739
9155
|
" or drag and drop"
|
|
8740
9156
|
] }),
|
|
8741
|
-
accept ? /* @__PURE__ */ (0,
|
|
9157
|
+
accept ? /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: ScFileField_default.acceptedText, children: [
|
|
8742
9158
|
"Accepted: ",
|
|
8743
9159
|
accept
|
|
8744
9160
|
] }) : null
|
|
8745
9161
|
] }),
|
|
8746
|
-
error ? /* @__PURE__ */ (0,
|
|
9162
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: ScFileField_default.errorText, children: error }) : null
|
|
8747
9163
|
] });
|
|
8748
9164
|
};
|
|
8749
9165
|
|
|
@@ -8773,7 +9189,7 @@ var ScMediaApproval_default = {
|
|
|
8773
9189
|
};
|
|
8774
9190
|
|
|
8775
9191
|
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
8776
|
-
var
|
|
9192
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
8777
9193
|
var VIDEO_EXT = /\.(mp4|webm|ogg|mov|m4v)(\?.*)?$/i;
|
|
8778
9194
|
var isVideoUrl = (url, mediaType) => {
|
|
8779
9195
|
if (mediaType === "video") return true;
|
|
@@ -8815,9 +9231,9 @@ var ScMediaApproval = (props) => {
|
|
|
8815
9231
|
const handlePreview = () => {
|
|
8816
9232
|
if (currentUrl && onPreview) onPreview(currentUrl);
|
|
8817
9233
|
};
|
|
8818
|
-
return /* @__PURE__ */ (0,
|
|
8819
|
-
/* @__PURE__ */ (0,
|
|
8820
|
-
currentUrl ? currentIsVideo ? /* @__PURE__ */ (0,
|
|
9234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: [ScMediaApproval_default.scMediaApproval, className].filter(Boolean).join(" "), children: [
|
|
9235
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: ScMediaApproval_default.mediaFrame, children: [
|
|
9236
|
+
currentUrl ? currentIsVideo ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8821
9237
|
"video",
|
|
8822
9238
|
{
|
|
8823
9239
|
className: ScMediaApproval_default.media,
|
|
@@ -8826,7 +9242,7 @@ var ScMediaApproval = (props) => {
|
|
|
8826
9242
|
onClick: handlePreview,
|
|
8827
9243
|
onLoadedData: () => setMediaLoading(false)
|
|
8828
9244
|
}
|
|
8829
|
-
) : /* @__PURE__ */ (0,
|
|
9245
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8830
9246
|
"img",
|
|
8831
9247
|
{
|
|
8832
9248
|
className: ScMediaApproval_default.media,
|
|
@@ -8835,8 +9251,8 @@ var ScMediaApproval = (props) => {
|
|
|
8835
9251
|
onClick: handlePreview,
|
|
8836
9252
|
onLoad: () => setMediaLoading(false)
|
|
8837
9253
|
}
|
|
8838
|
-
) : /* @__PURE__ */ (0,
|
|
8839
|
-
(loading || mediaLoading) && /* @__PURE__ */ (0,
|
|
9254
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: ScMediaApproval_default.mediaEmpty }),
|
|
9255
|
+
(loading || mediaLoading) && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: ScMediaApproval_default.spinnerOverlay, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8840
9256
|
"svg",
|
|
8841
9257
|
{
|
|
8842
9258
|
className: ScMediaApproval_default.spinner,
|
|
@@ -8844,7 +9260,7 @@ var ScMediaApproval = (props) => {
|
|
|
8844
9260
|
height: "32",
|
|
8845
9261
|
viewBox: "0 0 24 24",
|
|
8846
9262
|
fill: "none",
|
|
8847
|
-
children: /* @__PURE__ */ (0,
|
|
9263
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8848
9264
|
"path",
|
|
8849
9265
|
{
|
|
8850
9266
|
d: "M12 3a9 9 0 1 0 9 9",
|
|
@@ -8855,15 +9271,15 @@ var ScMediaApproval = (props) => {
|
|
|
8855
9271
|
)
|
|
8856
9272
|
}
|
|
8857
9273
|
) }),
|
|
8858
|
-
total > 1 && /* @__PURE__ */ (0,
|
|
8859
|
-
/* @__PURE__ */ (0,
|
|
9274
|
+
total > 1 && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
|
|
9275
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8860
9276
|
"button",
|
|
8861
9277
|
{
|
|
8862
9278
|
type: "button",
|
|
8863
9279
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navPrev].join(" "),
|
|
8864
9280
|
"aria-label": "Previous",
|
|
8865
9281
|
onClick: () => goTo(safeIndex - 1),
|
|
8866
|
-
children: /* @__PURE__ */ (0,
|
|
9282
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8867
9283
|
"path",
|
|
8868
9284
|
{
|
|
8869
9285
|
d: "M15 6L9 12L15 18",
|
|
@@ -8875,14 +9291,14 @@ var ScMediaApproval = (props) => {
|
|
|
8875
9291
|
) })
|
|
8876
9292
|
}
|
|
8877
9293
|
),
|
|
8878
|
-
/* @__PURE__ */ (0,
|
|
9294
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8879
9295
|
"button",
|
|
8880
9296
|
{
|
|
8881
9297
|
type: "button",
|
|
8882
9298
|
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navNext].join(" "),
|
|
8883
9299
|
"aria-label": "Next",
|
|
8884
9300
|
onClick: () => goTo(safeIndex + 1),
|
|
8885
|
-
children: /* @__PURE__ */ (0,
|
|
9301
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8886
9302
|
"path",
|
|
8887
9303
|
{
|
|
8888
9304
|
d: "M9 6L15 12L9 18",
|
|
@@ -8894,12 +9310,12 @@ var ScMediaApproval = (props) => {
|
|
|
8894
9310
|
) })
|
|
8895
9311
|
}
|
|
8896
9312
|
),
|
|
8897
|
-
/* @__PURE__ */ (0,
|
|
9313
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: ScMediaApproval_default.counterBadge, children: [
|
|
8898
9314
|
safeIndex + 1,
|
|
8899
9315
|
" / ",
|
|
8900
9316
|
total
|
|
8901
9317
|
] }),
|
|
8902
|
-
/* @__PURE__ */ (0,
|
|
9318
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: ScMediaApproval_default.dots, children: mediaUrls.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8903
9319
|
"button",
|
|
8904
9320
|
{
|
|
8905
9321
|
type: "button",
|
|
@@ -8914,9 +9330,9 @@ var ScMediaApproval = (props) => {
|
|
|
8914
9330
|
)) })
|
|
8915
9331
|
] })
|
|
8916
9332
|
] }),
|
|
8917
|
-
/* @__PURE__ */ (0,
|
|
8918
|
-
/* @__PURE__ */ (0,
|
|
8919
|
-
/* @__PURE__ */ (0,
|
|
9333
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: ScMediaApproval_default.feedbackBlock, children: [
|
|
9334
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: ScMediaApproval_default.label, children: feedbackLabel }),
|
|
9335
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: ScMediaApproval_default.inputContainer, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
8920
9336
|
"textarea",
|
|
8921
9337
|
{
|
|
8922
9338
|
className: ScMediaApproval_default.textArea,
|
|
@@ -8952,8 +9368,8 @@ var ScMediaSelect_default = {
|
|
|
8952
9368
|
};
|
|
8953
9369
|
|
|
8954
9370
|
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8955
|
-
var
|
|
8956
|
-
var CheckBadge = () => /* @__PURE__ */ (0,
|
|
9371
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
9372
|
+
var CheckBadge = () => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: ScMediaSelect_default.checkBadge, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8957
9373
|
"path",
|
|
8958
9374
|
{
|
|
8959
9375
|
d: "M3.5 7.25L6 9.75L10.5 4.75",
|
|
@@ -8963,7 +9379,7 @@ var CheckBadge = () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { c
|
|
|
8963
9379
|
strokeLinejoin: "round"
|
|
8964
9380
|
}
|
|
8965
9381
|
) }) });
|
|
8966
|
-
var MaximizeIcon = () => /* @__PURE__ */ (0,
|
|
9382
|
+
var MaximizeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
8967
9383
|
"path",
|
|
8968
9384
|
{
|
|
8969
9385
|
d: "M15 3H21V9M9 21H3V15M21 3L14 10M3 21L10 14",
|
|
@@ -8993,11 +9409,11 @@ var ScMediaSelect = (props) => {
|
|
|
8993
9409
|
let countLabel = selectedCount + " of " + total + " selected";
|
|
8994
9410
|
if (min > 0) countLabel += " (min " + min + ")";
|
|
8995
9411
|
if (resolvedMax < total) countLabel += " (max " + resolvedMax + ")";
|
|
8996
|
-
return /* @__PURE__ */ (0,
|
|
8997
|
-
/* @__PURE__ */ (0,
|
|
8998
|
-
/* @__PURE__ */ (0,
|
|
8999
|
-
/* @__PURE__ */ (0,
|
|
9000
|
-
/* @__PURE__ */ (0,
|
|
9412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: [ScMediaSelect_default.scMediaSelect, className].filter(Boolean).join(" "), children: [
|
|
9413
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: ScMediaSelect_default.header, children: [
|
|
9414
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: ScMediaSelect_default.countLabel, children: countLabel }),
|
|
9415
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: ScMediaSelect_default.actions, children: [
|
|
9416
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
9001
9417
|
"button",
|
|
9002
9418
|
{
|
|
9003
9419
|
type: "button",
|
|
@@ -9006,8 +9422,8 @@ var ScMediaSelect = (props) => {
|
|
|
9006
9422
|
children: "Select all"
|
|
9007
9423
|
}
|
|
9008
9424
|
),
|
|
9009
|
-
/* @__PURE__ */ (0,
|
|
9010
|
-
/* @__PURE__ */ (0,
|
|
9425
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: ScMediaSelect_default.divider, children: "|" }),
|
|
9426
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
9011
9427
|
"button",
|
|
9012
9428
|
{
|
|
9013
9429
|
type: "button",
|
|
@@ -9018,13 +9434,13 @@ var ScMediaSelect = (props) => {
|
|
|
9018
9434
|
)
|
|
9019
9435
|
] })
|
|
9020
9436
|
] }),
|
|
9021
|
-
/* @__PURE__ */ (0,
|
|
9437
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: ScMediaSelect_default.grid, children: items.map((url, index) => {
|
|
9022
9438
|
const isSelected = selectedSet.has(url);
|
|
9023
9439
|
const itemClass = [
|
|
9024
9440
|
ScMediaSelect_default.item,
|
|
9025
9441
|
isSelected ? ScMediaSelect_default["state-selected"] : ScMediaSelect_default["state-default"]
|
|
9026
9442
|
].filter(Boolean).join(" ");
|
|
9027
|
-
return /* @__PURE__ */ (0,
|
|
9443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
9028
9444
|
"div",
|
|
9029
9445
|
{
|
|
9030
9446
|
className: itemClass,
|
|
@@ -9033,9 +9449,9 @@ var ScMediaSelect = (props) => {
|
|
|
9033
9449
|
tabIndex: 0,
|
|
9034
9450
|
"aria-pressed": isSelected,
|
|
9035
9451
|
children: [
|
|
9036
|
-
mediaType === "video" ? /* @__PURE__ */ (0,
|
|
9037
|
-
isSelected && /* @__PURE__ */ (0,
|
|
9038
|
-
onPreview && /* @__PURE__ */ (0,
|
|
9452
|
+
mediaType === "video" ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("video", { className: ScMediaSelect_default.media, src: url, muted: true, playsInline: true }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("img", { className: ScMediaSelect_default.media, src: url, alt: "" }),
|
|
9453
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckBadge, {}),
|
|
9454
|
+
onPreview && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
9039
9455
|
"button",
|
|
9040
9456
|
{
|
|
9041
9457
|
type: "button",
|
|
@@ -9045,7 +9461,7 @@ var ScMediaSelect = (props) => {
|
|
|
9045
9461
|
onPreview(url);
|
|
9046
9462
|
},
|
|
9047
9463
|
"aria-label": "Preview",
|
|
9048
|
-
children: /* @__PURE__ */ (0,
|
|
9464
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(MaximizeIcon, {})
|
|
9049
9465
|
}
|
|
9050
9466
|
)
|
|
9051
9467
|
]
|
|
@@ -9080,7 +9496,7 @@ var ScTodoList_default = {
|
|
|
9080
9496
|
};
|
|
9081
9497
|
|
|
9082
9498
|
// src/SC-todoList/ScTodoList.tsx
|
|
9083
|
-
var
|
|
9499
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
9084
9500
|
var ScTodoList = ({
|
|
9085
9501
|
items = [],
|
|
9086
9502
|
onToggle,
|
|
@@ -9114,9 +9530,9 @@ var ScTodoList = ({
|
|
|
9114
9530
|
onAdd?.(newValue);
|
|
9115
9531
|
setNewValue("");
|
|
9116
9532
|
};
|
|
9117
|
-
return /* @__PURE__ */ (0,
|
|
9118
|
-
total > 0 && /* @__PURE__ */ (0,
|
|
9119
|
-
/* @__PURE__ */ (0,
|
|
9533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: [ScTodoList_default.scTodoList, className].filter(Boolean).join(" "), children: [
|
|
9534
|
+
total > 0 && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScTodoList_default.progress, children: [
|
|
9535
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9120
9536
|
"svg",
|
|
9121
9537
|
{
|
|
9122
9538
|
className: ScTodoList_default.progressIcon,
|
|
@@ -9125,7 +9541,7 @@ var ScTodoList = ({
|
|
|
9125
9541
|
viewBox: "0 0 14 14",
|
|
9126
9542
|
fill: "none",
|
|
9127
9543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9128
|
-
children: /* @__PURE__ */ (0,
|
|
9544
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9129
9545
|
"path",
|
|
9130
9546
|
{
|
|
9131
9547
|
d: "M3 7L6 10L11 4",
|
|
@@ -9137,25 +9553,25 @@ var ScTodoList = ({
|
|
|
9137
9553
|
)
|
|
9138
9554
|
}
|
|
9139
9555
|
),
|
|
9140
|
-
/* @__PURE__ */ (0,
|
|
9556
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("span", { className: ScTodoList_default.progressText, children: [
|
|
9141
9557
|
completed,
|
|
9142
9558
|
" of ",
|
|
9143
9559
|
total,
|
|
9144
9560
|
" completed"
|
|
9145
9561
|
] })
|
|
9146
9562
|
] }),
|
|
9147
|
-
/* @__PURE__ */ (0,
|
|
9563
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: ScTodoList_default.rows, children: items.map((item) => {
|
|
9148
9564
|
const isEditing = editingId === item.id;
|
|
9149
9565
|
const isCompleted = item.status === "completed";
|
|
9150
|
-
return /* @__PURE__ */ (0,
|
|
9151
|
-
/* @__PURE__ */ (0,
|
|
9566
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScTodoList_default.row, children: [
|
|
9567
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9152
9568
|
"button",
|
|
9153
9569
|
{
|
|
9154
9570
|
type: "button",
|
|
9155
9571
|
className: ScTodoList_default.checkbox,
|
|
9156
9572
|
"aria-label": isCompleted ? "Mark as pending" : "Mark as completed",
|
|
9157
9573
|
onClick: () => onToggle?.(item.id),
|
|
9158
|
-
children: isCompleted ? /* @__PURE__ */ (0,
|
|
9574
|
+
children: isCompleted ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
9159
9575
|
"svg",
|
|
9160
9576
|
{
|
|
9161
9577
|
width: "18",
|
|
@@ -9164,8 +9580,8 @@ var ScTodoList = ({
|
|
|
9164
9580
|
fill: "none",
|
|
9165
9581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9166
9582
|
children: [
|
|
9167
|
-
/* @__PURE__ */ (0,
|
|
9168
|
-
/* @__PURE__ */ (0,
|
|
9583
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("circle", { cx: "9", cy: "9", r: "9", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
9584
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9169
9585
|
"path",
|
|
9170
9586
|
{
|
|
9171
9587
|
d: "M5.25 9L7.75 11.5L12.75 6.5",
|
|
@@ -9177,7 +9593,7 @@ var ScTodoList = ({
|
|
|
9177
9593
|
)
|
|
9178
9594
|
]
|
|
9179
9595
|
}
|
|
9180
|
-
) : /* @__PURE__ */ (0,
|
|
9596
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9181
9597
|
"svg",
|
|
9182
9598
|
{
|
|
9183
9599
|
width: "18",
|
|
@@ -9185,7 +9601,7 @@ var ScTodoList = ({
|
|
|
9185
9601
|
viewBox: "0 0 18 18",
|
|
9186
9602
|
fill: "none",
|
|
9187
9603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9188
|
-
children: /* @__PURE__ */ (0,
|
|
9604
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9189
9605
|
"circle",
|
|
9190
9606
|
{
|
|
9191
9607
|
cx: "9",
|
|
@@ -9199,7 +9615,7 @@ var ScTodoList = ({
|
|
|
9199
9615
|
)
|
|
9200
9616
|
}
|
|
9201
9617
|
),
|
|
9202
|
-
isEditing ? /* @__PURE__ */ (0,
|
|
9618
|
+
isEditing ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9203
9619
|
"input",
|
|
9204
9620
|
{
|
|
9205
9621
|
className: ScTodoList_default.editInput,
|
|
@@ -9217,7 +9633,7 @@ var ScTodoList = ({
|
|
|
9217
9633
|
}
|
|
9218
9634
|
}
|
|
9219
9635
|
}
|
|
9220
|
-
) : /* @__PURE__ */ (0,
|
|
9636
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9221
9637
|
"span",
|
|
9222
9638
|
{
|
|
9223
9639
|
className: [
|
|
@@ -9227,15 +9643,15 @@ var ScTodoList = ({
|
|
|
9227
9643
|
children: item.content
|
|
9228
9644
|
}
|
|
9229
9645
|
),
|
|
9230
|
-
!isEditing && /* @__PURE__ */ (0,
|
|
9231
|
-
/* @__PURE__ */ (0,
|
|
9646
|
+
!isEditing && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScTodoList_default.actions, children: [
|
|
9647
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9232
9648
|
"button",
|
|
9233
9649
|
{
|
|
9234
9650
|
type: "button",
|
|
9235
9651
|
className: ScTodoList_default.actionButton,
|
|
9236
9652
|
"aria-label": "Edit item",
|
|
9237
9653
|
onClick: () => startEditing(item),
|
|
9238
|
-
children: /* @__PURE__ */ (0,
|
|
9654
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9239
9655
|
"svg",
|
|
9240
9656
|
{
|
|
9241
9657
|
width: "16",
|
|
@@ -9243,7 +9659,7 @@ var ScTodoList = ({
|
|
|
9243
9659
|
viewBox: "0 0 16 16",
|
|
9244
9660
|
fill: "none",
|
|
9245
9661
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9246
|
-
children: /* @__PURE__ */ (0,
|
|
9662
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9247
9663
|
"path",
|
|
9248
9664
|
{
|
|
9249
9665
|
d: "M11.333 2.667a1.414 1.414 0 0 1 2 2L5.333 12.667l-2.667.667.667-2.667 8-8Z",
|
|
@@ -9257,14 +9673,14 @@ var ScTodoList = ({
|
|
|
9257
9673
|
)
|
|
9258
9674
|
}
|
|
9259
9675
|
),
|
|
9260
|
-
/* @__PURE__ */ (0,
|
|
9676
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9261
9677
|
"button",
|
|
9262
9678
|
{
|
|
9263
9679
|
type: "button",
|
|
9264
9680
|
className: [ScTodoList_default.actionButton, ScTodoList_default.actionButtonDanger].filter(Boolean).join(" "),
|
|
9265
9681
|
"aria-label": "Delete item",
|
|
9266
9682
|
onClick: () => onDelete?.(item.id),
|
|
9267
|
-
children: /* @__PURE__ */ (0,
|
|
9683
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9268
9684
|
"svg",
|
|
9269
9685
|
{
|
|
9270
9686
|
width: "16",
|
|
@@ -9272,7 +9688,7 @@ var ScTodoList = ({
|
|
|
9272
9688
|
viewBox: "0 0 16 16",
|
|
9273
9689
|
fill: "none",
|
|
9274
9690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9275
|
-
children: /* @__PURE__ */ (0,
|
|
9691
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9276
9692
|
"path",
|
|
9277
9693
|
{
|
|
9278
9694
|
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",
|
|
@@ -9289,8 +9705,8 @@ var ScTodoList = ({
|
|
|
9289
9705
|
] })
|
|
9290
9706
|
] }, item.id);
|
|
9291
9707
|
}) }),
|
|
9292
|
-
/* @__PURE__ */ (0,
|
|
9293
|
-
/* @__PURE__ */ (0,
|
|
9708
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: ScTodoList_default.addRow, children: [
|
|
9709
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9294
9710
|
"input",
|
|
9295
9711
|
{
|
|
9296
9712
|
className: ScTodoList_default.addInput,
|
|
@@ -9305,7 +9721,7 @@ var ScTodoList = ({
|
|
|
9305
9721
|
}
|
|
9306
9722
|
}
|
|
9307
9723
|
),
|
|
9308
|
-
/* @__PURE__ */ (0,
|
|
9724
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9309
9725
|
"button",
|
|
9310
9726
|
{
|
|
9311
9727
|
type: "button",
|
|
@@ -9313,7 +9729,7 @@ var ScTodoList = ({
|
|
|
9313
9729
|
"aria-label": "Add item",
|
|
9314
9730
|
disabled: newValue.trim().length === 0,
|
|
9315
9731
|
onClick: commitAdd,
|
|
9316
|
-
children: /* @__PURE__ */ (0,
|
|
9732
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9317
9733
|
"svg",
|
|
9318
9734
|
{
|
|
9319
9735
|
width: "18",
|
|
@@ -9321,7 +9737,7 @@ var ScTodoList = ({
|
|
|
9321
9737
|
viewBox: "0 0 18 18",
|
|
9322
9738
|
fill: "none",
|
|
9323
9739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9324
|
-
children: /* @__PURE__ */ (0,
|
|
9740
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
9325
9741
|
"path",
|
|
9326
9742
|
{
|
|
9327
9743
|
d: "M9 4v10M4 9h10",
|
|
@@ -9348,18 +9764,18 @@ var ScRoleMobile_default = {
|
|
|
9348
9764
|
};
|
|
9349
9765
|
|
|
9350
9766
|
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
9351
|
-
var
|
|
9767
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
9352
9768
|
var ScRoleMobile = ({
|
|
9353
9769
|
role = "admin",
|
|
9354
9770
|
className,
|
|
9355
9771
|
...props
|
|
9356
9772
|
}) => {
|
|
9357
|
-
return /* @__PURE__ */ (0,
|
|
9773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
9358
9774
|
"div",
|
|
9359
9775
|
{
|
|
9360
9776
|
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
9361
9777
|
...props,
|
|
9362
|
-
children: /* @__PURE__ */ (0,
|
|
9778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
9363
9779
|
}
|
|
9364
9780
|
);
|
|
9365
9781
|
};
|
|
@@ -9376,7 +9792,7 @@ var ScProfileV2Mobile_default = {
|
|
|
9376
9792
|
};
|
|
9377
9793
|
|
|
9378
9794
|
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
9379
|
-
var
|
|
9795
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
9380
9796
|
var ScProfileV2Mobile = ({
|
|
9381
9797
|
name = "Chris Hemsworth",
|
|
9382
9798
|
email = "chris@kepler.com",
|
|
@@ -9386,17 +9802,17 @@ var ScProfileV2Mobile = ({
|
|
|
9386
9802
|
...props
|
|
9387
9803
|
}) => {
|
|
9388
9804
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
9389
|
-
const profileImage = /* @__PURE__ */ (0,
|
|
9390
|
-
return /* @__PURE__ */ (0,
|
|
9805
|
+
const profileImage = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: ScProfileV2Mobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("img", { src: imageUrl, alt: name, className: ScProfileV2Mobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: ScProfileV2Mobile_default.initials, children: initials }) });
|
|
9806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
9391
9807
|
"div",
|
|
9392
9808
|
{
|
|
9393
9809
|
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
9394
9810
|
...props,
|
|
9395
9811
|
children: [
|
|
9396
9812
|
dpPosition === "left" && profileImage,
|
|
9397
|
-
/* @__PURE__ */ (0,
|
|
9398
|
-
/* @__PURE__ */ (0,
|
|
9399
|
-
/* @__PURE__ */ (0,
|
|
9813
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: ScProfileV2Mobile_default.userInfo, children: [
|
|
9814
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: ScProfileV2Mobile_default.userName, children: name }),
|
|
9815
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: ScProfileV2Mobile_default.userEmail, children: email })
|
|
9400
9816
|
] }),
|
|
9401
9817
|
dpPosition === "right" && profileImage
|
|
9402
9818
|
]
|
|
@@ -9423,7 +9839,7 @@ var ScTableListMobile_default = {
|
|
|
9423
9839
|
};
|
|
9424
9840
|
|
|
9425
9841
|
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
9426
|
-
var
|
|
9842
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
9427
9843
|
var ScTableListMobile = ({
|
|
9428
9844
|
name = "Chris Hemsworth",
|
|
9429
9845
|
email = "chris@kepler.com",
|
|
@@ -9436,25 +9852,25 @@ var ScTableListMobile = ({
|
|
|
9436
9852
|
...props
|
|
9437
9853
|
}) => {
|
|
9438
9854
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
9439
|
-
return /* @__PURE__ */ (0,
|
|
9855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
9440
9856
|
"div",
|
|
9441
9857
|
{
|
|
9442
9858
|
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
9443
9859
|
onClick: onRowClick,
|
|
9444
9860
|
...props,
|
|
9445
9861
|
children: [
|
|
9446
|
-
/* @__PURE__ */ (0,
|
|
9447
|
-
/* @__PURE__ */ (0,
|
|
9448
|
-
/* @__PURE__ */ (0,
|
|
9449
|
-
/* @__PURE__ */ (0,
|
|
9862
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScTableListMobile_default.profileRow, children: [
|
|
9863
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScTableListMobile_default.userInfo, children: [
|
|
9864
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: ScTableListMobile_default.userName, children: name }),
|
|
9865
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: ScTableListMobile_default.userEmail, children: email })
|
|
9450
9866
|
] }),
|
|
9451
|
-
/* @__PURE__ */ (0,
|
|
9867
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScTableListMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("img", { src: imageUrl, alt: name, className: ScTableListMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScTableListMobile_default.initials, children: initials }) })
|
|
9452
9868
|
] }),
|
|
9453
|
-
/* @__PURE__ */ (0,
|
|
9454
|
-
/* @__PURE__ */ (0,
|
|
9455
|
-
/* @__PURE__ */ (0,
|
|
9456
|
-
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0,
|
|
9457
|
-
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0,
|
|
9869
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScTableListMobile_default.detailsRow, children: [
|
|
9870
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScTableListMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: ScTableListMobile_default.roleText, children: role }) }),
|
|
9871
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: ScTableListMobile_default.accessInfo, children: [
|
|
9872
|
+
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: accessIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) }),
|
|
9873
|
+
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: ScTableListMobile_default.accessGroup, children: permissionIcons.map((icon, i) => /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) })
|
|
9458
9874
|
] })
|
|
9459
9875
|
] })
|
|
9460
9876
|
]
|
|
@@ -9482,7 +9898,7 @@ var ScWorkspaceSwitchMobile_default = {
|
|
|
9482
9898
|
};
|
|
9483
9899
|
|
|
9484
9900
|
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
9485
|
-
var
|
|
9901
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
9486
9902
|
var ScWorkspaceSwitchMobile = ({
|
|
9487
9903
|
storeName = "Stores",
|
|
9488
9904
|
initials = "WS",
|
|
@@ -9495,24 +9911,24 @@ var ScWorkspaceSwitchMobile = ({
|
|
|
9495
9911
|
...props
|
|
9496
9912
|
}) => {
|
|
9497
9913
|
const variant = currentWs ? "current" : "other";
|
|
9498
|
-
return /* @__PURE__ */ (0,
|
|
9914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
9499
9915
|
"div",
|
|
9500
9916
|
{
|
|
9501
9917
|
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
9502
9918
|
onClick,
|
|
9503
9919
|
...props,
|
|
9504
9920
|
children: [
|
|
9505
|
-
/* @__PURE__ */ (0,
|
|
9506
|
-
/* @__PURE__ */ (0,
|
|
9507
|
-
/* @__PURE__ */ (0,
|
|
9508
|
-
/* @__PURE__ */ (0,
|
|
9921
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.workspaceInfo, children: [
|
|
9922
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.wsNameRow, children: [
|
|
9923
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScWorkspaceSwitchMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScWorkspaceSwitchMobile_default.initialsText, children: initials }) }),
|
|
9924
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: ScWorkspaceSwitchMobile_default.storeName, children: storeName })
|
|
9509
9925
|
] }),
|
|
9510
|
-
/* @__PURE__ */ (0,
|
|
9926
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
9511
9927
|
] }),
|
|
9512
|
-
/* @__PURE__ */ (0,
|
|
9513
|
-
/* @__PURE__ */ (0,
|
|
9514
|
-
/* @__PURE__ */ (0,
|
|
9515
|
-
/* @__PURE__ */ (0,
|
|
9928
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScWorkspaceSwitchMobile_default.divider }),
|
|
9929
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: ScWorkspaceSwitchMobile_default.ownerRow, children: [
|
|
9930
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: ScWorkspaceSwitchMobile_default.ownerIconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { className: ScWorkspaceSwitchMobile_default.ownerIcon, children: ownerIcon }) }),
|
|
9931
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: ScWorkspaceSwitchMobile_default.ownerText, children: ownerId })
|
|
9516
9932
|
] })
|
|
9517
9933
|
]
|
|
9518
9934
|
}
|
|
@@ -9539,7 +9955,7 @@ var ScWorkspaceSettingsMobile_default = {
|
|
|
9539
9955
|
};
|
|
9540
9956
|
|
|
9541
9957
|
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
9542
|
-
var
|
|
9958
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
9543
9959
|
var ScWorkspaceSettingsMobile = ({
|
|
9544
9960
|
storeName = "Stores",
|
|
9545
9961
|
initials = "WS",
|
|
@@ -9554,28 +9970,28 @@ var ScWorkspaceSettingsMobile = ({
|
|
|
9554
9970
|
...props
|
|
9555
9971
|
}) => {
|
|
9556
9972
|
const variant = currentWs ? "current" : "other";
|
|
9557
|
-
return /* @__PURE__ */ (0,
|
|
9973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
9558
9974
|
"div",
|
|
9559
9975
|
{
|
|
9560
9976
|
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
9561
9977
|
onClick,
|
|
9562
9978
|
...props,
|
|
9563
9979
|
children: [
|
|
9564
|
-
/* @__PURE__ */ (0,
|
|
9565
|
-
/* @__PURE__ */ (0,
|
|
9566
|
-
/* @__PURE__ */ (0,
|
|
9567
|
-
/* @__PURE__ */ (0,
|
|
9980
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.workspaceInfo, children: [
|
|
9981
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.wsNameRow, children: [
|
|
9982
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: ScWorkspaceSettingsMobile_default.initialsBox, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: ScWorkspaceSettingsMobile_default.initialsText, children: initials }) }),
|
|
9983
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: ScWorkspaceSettingsMobile_default.storeName, children: storeName })
|
|
9568
9984
|
] }),
|
|
9569
|
-
/* @__PURE__ */ (0,
|
|
9985
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
9570
9986
|
] }),
|
|
9571
|
-
/* @__PURE__ */ (0,
|
|
9572
|
-
/* @__PURE__ */ (0,
|
|
9573
|
-
/* @__PURE__ */ (0,
|
|
9574
|
-
/* @__PURE__ */ (0,
|
|
9987
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: ScWorkspaceSettingsMobile_default.divider }),
|
|
9988
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
9989
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: ownerIcon && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: ownerIcon }) }),
|
|
9990
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: ownerId })
|
|
9575
9991
|
] }),
|
|
9576
|
-
/* @__PURE__ */ (0,
|
|
9577
|
-
/* @__PURE__ */ (0,
|
|
9578
|
-
/* @__PURE__ */ (0,
|
|
9992
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
9993
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: teamIcon && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: ScWorkspaceSettingsMobile_default.icon, children: teamIcon }) }),
|
|
9994
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: teamCount })
|
|
9579
9995
|
] })
|
|
9580
9996
|
]
|
|
9581
9997
|
}
|
|
@@ -9598,7 +10014,7 @@ var ScMobileTopNav_default = {
|
|
|
9598
10014
|
};
|
|
9599
10015
|
|
|
9600
10016
|
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
9601
|
-
var
|
|
10017
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
9602
10018
|
var ScMobileTopNav = ({
|
|
9603
10019
|
type = "home",
|
|
9604
10020
|
searchIcon = false,
|
|
@@ -9621,22 +10037,22 @@ var ScMobileTopNav = ({
|
|
|
9621
10037
|
}) => {
|
|
9622
10038
|
const hasBorder = type === "chat" || type === "inApp";
|
|
9623
10039
|
const showSearch = type === "inApp" && searchIcon && search;
|
|
9624
|
-
return /* @__PURE__ */ (0,
|
|
10040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
9625
10041
|
"div",
|
|
9626
10042
|
{
|
|
9627
10043
|
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
9628
10044
|
...props,
|
|
9629
10045
|
children: [
|
|
9630
|
-
type === "home" && /* @__PURE__ */ (0,
|
|
9631
|
-
type === "chat" && /* @__PURE__ */ (0,
|
|
9632
|
-
/* @__PURE__ */ (0,
|
|
9633
|
-
/* @__PURE__ */ (0,
|
|
9634
|
-
/* @__PURE__ */ (0,
|
|
10046
|
+
type === "home" && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
10047
|
+
type === "chat" && /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
|
|
10048
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
10049
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: ScMobileTopNav_default.chatTitle, children: chatTitle }),
|
|
10050
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMoreClick, children: moreIcon || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
9635
10051
|
] }),
|
|
9636
|
-
showSearch && /* @__PURE__ */ (0,
|
|
9637
|
-
/* @__PURE__ */ (0,
|
|
9638
|
-
/* @__PURE__ */ (0,
|
|
9639
|
-
/* @__PURE__ */ (0,
|
|
10052
|
+
showSearch && /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
|
|
10053
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.searchRow, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: ScMobileTopNav_default.searchInputContainer, children: [
|
|
10054
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onSearchClick, children: searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
10055
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.searchInput, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
9640
10056
|
"input",
|
|
9641
10057
|
{
|
|
9642
10058
|
type: "text",
|
|
@@ -9647,17 +10063,17 @@ var ScMobileTopNav = ({
|
|
|
9647
10063
|
}
|
|
9648
10064
|
) })
|
|
9649
10065
|
] }) }),
|
|
9650
|
-
/* @__PURE__ */ (0,
|
|
10066
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
9651
10067
|
] }),
|
|
9652
|
-
type === "inApp" && !search && /* @__PURE__ */ (0,
|
|
9653
|
-
/* @__PURE__ */ (0,
|
|
9654
|
-
/* @__PURE__ */ (0,
|
|
9655
|
-
/* @__PURE__ */ (0,
|
|
10068
|
+
type === "inApp" && !search && /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
|
|
10069
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
10070
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: ScMobileTopNav_default.heading, children: heading }),
|
|
10071
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
9656
10072
|
"div",
|
|
9657
10073
|
{
|
|
9658
10074
|
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
9659
10075
|
onClick: onSearchClick,
|
|
9660
|
-
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0,
|
|
10076
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
9661
10077
|
}
|
|
9662
10078
|
)
|
|
9663
10079
|
] })
|
|
@@ -9678,7 +10094,7 @@ var ScMobileBottomAction_default = {
|
|
|
9678
10094
|
};
|
|
9679
10095
|
|
|
9680
10096
|
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
9681
|
-
var
|
|
10097
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
9682
10098
|
var ScMobileBottomAction = ({
|
|
9683
10099
|
text = "Save Changes",
|
|
9684
10100
|
disabled = false,
|
|
@@ -9690,28 +10106,28 @@ var ScMobileBottomAction = ({
|
|
|
9690
10106
|
...props
|
|
9691
10107
|
}) => {
|
|
9692
10108
|
const isTwoButton = !!secondaryText;
|
|
9693
|
-
return /* @__PURE__ */ (0,
|
|
10109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
9694
10110
|
"div",
|
|
9695
10111
|
{
|
|
9696
10112
|
className: ScMobileBottomAction_default.scMobileBottomAction + (isTwoButton ? " " + ScMobileBottomAction_default.twoButton : "") + " " + className,
|
|
9697
10113
|
...props,
|
|
9698
10114
|
children: [
|
|
9699
|
-
isTwoButton && /* @__PURE__ */ (0,
|
|
10115
|
+
isTwoButton && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
9700
10116
|
"button",
|
|
9701
10117
|
{
|
|
9702
10118
|
className: ScMobileBottomAction_default.outlineButton + " " + (secondaryDisabled ? ScMobileBottomAction_default.disabled : ""),
|
|
9703
10119
|
onClick: onSecondaryClick,
|
|
9704
10120
|
disabled: secondaryDisabled,
|
|
9705
|
-
children: /* @__PURE__ */ (0,
|
|
10121
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScMobileBottomAction_default.outlineButtonText, children: secondaryText })
|
|
9706
10122
|
}
|
|
9707
10123
|
),
|
|
9708
|
-
/* @__PURE__ */ (0,
|
|
10124
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
9709
10125
|
"button",
|
|
9710
10126
|
{
|
|
9711
10127
|
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
9712
10128
|
onClick,
|
|
9713
10129
|
disabled,
|
|
9714
|
-
children: /* @__PURE__ */ (0,
|
|
10130
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
9715
10131
|
}
|
|
9716
10132
|
)
|
|
9717
10133
|
]
|
|
@@ -9729,7 +10145,7 @@ var ScPopUpMenu_default = {
|
|
|
9729
10145
|
};
|
|
9730
10146
|
|
|
9731
10147
|
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
9732
|
-
var
|
|
10148
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
9733
10149
|
var ScPopUpMenu = ({
|
|
9734
10150
|
menu = "Options",
|
|
9735
10151
|
state = "default",
|
|
@@ -9738,15 +10154,15 @@ var ScPopUpMenu = ({
|
|
|
9738
10154
|
className,
|
|
9739
10155
|
...props
|
|
9740
10156
|
}) => {
|
|
9741
|
-
return /* @__PURE__ */ (0,
|
|
10157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
|
|
9742
10158
|
"div",
|
|
9743
10159
|
{
|
|
9744
10160
|
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
9745
10161
|
onClick,
|
|
9746
10162
|
...props,
|
|
9747
10163
|
children: [
|
|
9748
|
-
icon && /* @__PURE__ */ (0,
|
|
9749
|
-
/* @__PURE__ */ (0,
|
|
10164
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
10165
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
9750
10166
|
]
|
|
9751
10167
|
}
|
|
9752
10168
|
);
|
|
@@ -9772,7 +10188,7 @@ var ScReferralCardMobile_default = {
|
|
|
9772
10188
|
};
|
|
9773
10189
|
|
|
9774
10190
|
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
9775
|
-
var
|
|
10191
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
9776
10192
|
var ScReferralCardMobile = ({
|
|
9777
10193
|
name = "Chris Hemsworth",
|
|
9778
10194
|
email = "chris@kepler.com",
|
|
@@ -9785,27 +10201,27 @@ var ScReferralCardMobile = ({
|
|
|
9785
10201
|
...props
|
|
9786
10202
|
}) => {
|
|
9787
10203
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
9788
|
-
return /* @__PURE__ */ (0,
|
|
10204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
|
|
9789
10205
|
"div",
|
|
9790
10206
|
{
|
|
9791
10207
|
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
9792
10208
|
onClick,
|
|
9793
10209
|
...props,
|
|
9794
10210
|
children: [
|
|
9795
|
-
/* @__PURE__ */ (0,
|
|
9796
|
-
/* @__PURE__ */ (0,
|
|
9797
|
-
/* @__PURE__ */ (0,
|
|
9798
|
-
/* @__PURE__ */ (0,
|
|
9799
|
-
/* @__PURE__ */ (0,
|
|
9800
|
-
/* @__PURE__ */ (0,
|
|
10211
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: ScReferralCardMobile_default.userRow, children: [
|
|
10212
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: ScReferralCardMobile_default.profileSection, children: [
|
|
10213
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: ScReferralCardMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("img", { src: imageUrl, alt: name, className: ScReferralCardMobile_default.image }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: ScReferralCardMobile_default.initials, children: initials }) }),
|
|
10214
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: ScReferralCardMobile_default.userInfo, children: [
|
|
10215
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: ScReferralCardMobile_default.userName, children: name }),
|
|
10216
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: ScReferralCardMobile_default.userEmail, children: email })
|
|
9801
10217
|
] })
|
|
9802
10218
|
] }),
|
|
9803
|
-
/* @__PURE__ */ (0,
|
|
10219
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
9804
10220
|
] }),
|
|
9805
|
-
/* @__PURE__ */ (0,
|
|
9806
|
-
/* @__PURE__ */ (0,
|
|
9807
|
-
/* @__PURE__ */ (0,
|
|
9808
|
-
/* @__PURE__ */ (0,
|
|
10221
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: ScReferralCardMobile_default.divider }),
|
|
10222
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: ScReferralCardMobile_default.detailsRow, children: [
|
|
10223
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: ScReferralCardMobile_default.dateText, children: date }),
|
|
10224
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: ScReferralCardMobile_default.creditsText, children: credits })
|
|
9809
10225
|
] })
|
|
9810
10226
|
]
|
|
9811
10227
|
}
|
|
@@ -9822,19 +10238,19 @@ var InvoiceHistoryMobile_default = {
|
|
|
9822
10238
|
};
|
|
9823
10239
|
|
|
9824
10240
|
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
9825
|
-
var
|
|
10241
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
9826
10242
|
var InvoiceHistoryMobile = ({
|
|
9827
10243
|
invoiceId = "# INV-2800-2026",
|
|
9828
10244
|
date = "Nov 9th, 2025",
|
|
9829
10245
|
amount = "\u20B9320.89",
|
|
9830
10246
|
className
|
|
9831
10247
|
}) => {
|
|
9832
|
-
return /* @__PURE__ */ (0,
|
|
9833
|
-
/* @__PURE__ */ (0,
|
|
9834
|
-
/* @__PURE__ */ (0,
|
|
9835
|
-
/* @__PURE__ */ (0,
|
|
10248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
10249
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: InvoiceHistoryMobile_default.info, children: [
|
|
10250
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: InvoiceHistoryMobile_default.invoiceId, children: invoiceId }),
|
|
10251
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: InvoiceHistoryMobile_default.date, children: date })
|
|
9836
10252
|
] }),
|
|
9837
|
-
/* @__PURE__ */ (0,
|
|
10253
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
9838
10254
|
] });
|
|
9839
10255
|
};
|
|
9840
10256
|
|
|
@@ -9852,7 +10268,7 @@ var UsageHistoryMobile_default = {
|
|
|
9852
10268
|
};
|
|
9853
10269
|
|
|
9854
10270
|
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
9855
|
-
var
|
|
10271
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
9856
10272
|
var UsageHistoryMobile = ({
|
|
9857
10273
|
serviceName = "Artifax Generation",
|
|
9858
10274
|
credits = "50",
|
|
@@ -9861,18 +10277,18 @@ var UsageHistoryMobile = ({
|
|
|
9861
10277
|
balance = "84,902",
|
|
9862
10278
|
className
|
|
9863
10279
|
}) => {
|
|
9864
|
-
return /* @__PURE__ */ (0,
|
|
9865
|
-
/* @__PURE__ */ (0,
|
|
9866
|
-
/* @__PURE__ */ (0,
|
|
9867
|
-
/* @__PURE__ */ (0,
|
|
10280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: UsageHistoryMobile_default.usageHistoryMobile + " " + (className ?? ""), children: [
|
|
10281
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: UsageHistoryMobile_default.row1, children: [
|
|
10282
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { className: UsageHistoryMobile_default.serviceName, children: serviceName }),
|
|
10283
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { className: UsageHistoryMobile_default.credits, children: credits })
|
|
9868
10284
|
] }),
|
|
9869
|
-
/* @__PURE__ */ (0,
|
|
9870
|
-
/* @__PURE__ */ (0,
|
|
9871
|
-
/* @__PURE__ */ (0,
|
|
9872
|
-
/* @__PURE__ */ (0,
|
|
9873
|
-
/* @__PURE__ */ (0,
|
|
10285
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: UsageHistoryMobile_default.row2, children: [
|
|
10286
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: UsageHistoryMobile_default.metaLeft, children: [
|
|
10287
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: userName }),
|
|
10288
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: UsageHistoryMobile_default.divider }),
|
|
10289
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { className: UsageHistoryMobile_default.metaText, children: date })
|
|
9874
10290
|
] }),
|
|
9875
|
-
/* @__PURE__ */ (0,
|
|
10291
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
9876
10292
|
] })
|
|
9877
10293
|
] });
|
|
9878
10294
|
};
|
|
@@ -9896,7 +10312,7 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
9896
10312
|
};
|
|
9897
10313
|
|
|
9898
10314
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
9899
|
-
var
|
|
10315
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
9900
10316
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
9901
10317
|
wsName = "Workspace name is kepler",
|
|
9902
10318
|
initials = "WS",
|
|
@@ -9909,14 +10325,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9909
10325
|
className,
|
|
9910
10326
|
...props
|
|
9911
10327
|
}) => {
|
|
9912
|
-
return /* @__PURE__ */ (0,
|
|
10328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
9913
10329
|
"div",
|
|
9914
10330
|
{
|
|
9915
10331
|
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
9916
10332
|
onClick,
|
|
9917
10333
|
...props,
|
|
9918
|
-
children: /* @__PURE__ */ (0,
|
|
9919
|
-
/* @__PURE__ */ (0,
|
|
10334
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
10335
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
9920
10336
|
ScDp,
|
|
9921
10337
|
{
|
|
9922
10338
|
type: imageUrl ? "image" : "initial",
|
|
@@ -9930,14 +10346,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
9930
10346
|
}
|
|
9931
10347
|
}
|
|
9932
10348
|
) }),
|
|
9933
|
-
/* @__PURE__ */ (0,
|
|
9934
|
-
/* @__PURE__ */ (0,
|
|
9935
|
-
/* @__PURE__ */ (0,
|
|
9936
|
-
/* @__PURE__ */ (0,
|
|
9937
|
-
/* @__PURE__ */ (0,
|
|
9938
|
-
/* @__PURE__ */ (0,
|
|
9939
|
-
/* @__PURE__ */ (0,
|
|
9940
|
-
/* @__PURE__ */ (0,
|
|
10349
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
10350
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
10351
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
10352
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
10353
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
10354
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
10355
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
10356
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: ScWorkspaceSwitchMobileV2_default.ownerText, children: ownerId })
|
|
9941
10357
|
] })
|
|
9942
10358
|
] })
|
|
9943
10359
|
] })
|
|
@@ -9963,8 +10379,8 @@ var ScImageField_default = {
|
|
|
9963
10379
|
};
|
|
9964
10380
|
|
|
9965
10381
|
// src/SC-imageField/ScImageField.tsx
|
|
9966
|
-
var
|
|
9967
|
-
var
|
|
10382
|
+
var import_icons67 = require("@streamoid/icons");
|
|
10383
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
9968
10384
|
var ScImageField = ({
|
|
9969
10385
|
label = "Label",
|
|
9970
10386
|
imagePreview,
|
|
@@ -9987,8 +10403,8 @@ var ScImageField = ({
|
|
|
9987
10403
|
}
|
|
9988
10404
|
e.target.value = "";
|
|
9989
10405
|
}
|
|
9990
|
-
return /* @__PURE__ */ (0,
|
|
9991
|
-
/* @__PURE__ */ (0,
|
|
10406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
10407
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
9992
10408
|
"input",
|
|
9993
10409
|
{
|
|
9994
10410
|
ref: inputRef,
|
|
@@ -9998,9 +10414,9 @@ var ScImageField = ({
|
|
|
9998
10414
|
onChange: handleChange
|
|
9999
10415
|
}
|
|
10000
10416
|
),
|
|
10001
|
-
/* @__PURE__ */ (0,
|
|
10002
|
-
hasImage ? /* @__PURE__ */ (0,
|
|
10003
|
-
/* @__PURE__ */ (0,
|
|
10417
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: ScImageField_default.labelContainer, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: ScImageField_default.label, children: label }) }),
|
|
10418
|
+
hasImage ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: ScImageField_default.previewArea, children: [
|
|
10419
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
10004
10420
|
"img",
|
|
10005
10421
|
{
|
|
10006
10422
|
className: ScImageField_default.previewImage,
|
|
@@ -10008,9 +10424,9 @@ var ScImageField = ({
|
|
|
10008
10424
|
alt: "preview"
|
|
10009
10425
|
}
|
|
10010
10426
|
),
|
|
10011
|
-
/* @__PURE__ */ (0,
|
|
10012
|
-
/* @__PURE__ */ (0,
|
|
10013
|
-
|
|
10427
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
10428
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
10429
|
+
import_icons67.SiconDelete,
|
|
10014
10430
|
{
|
|
10015
10431
|
className: ScImageField_default.removeIcon,
|
|
10016
10432
|
color: "var(--alias-text-and-icons-error, #d11a1a)",
|
|
@@ -10020,9 +10436,9 @@ var ScImageField = ({
|
|
|
10020
10436
|
}
|
|
10021
10437
|
}
|
|
10022
10438
|
)
|
|
10023
|
-
] }) : /* @__PURE__ */ (0,
|
|
10024
|
-
/* @__PURE__ */ (0,
|
|
10025
|
-
/* @__PURE__ */ (0,
|
|
10439
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: ScImageField_default.uploadArea, onClick: handleClick, children: [
|
|
10440
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_icons67.SiconUpload, { className: ScImageField_default.uploadIcon, color: "var(--alias-text-and-icons-secondary, #dadada)" }),
|
|
10441
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: ScImageField_default.uploadText, children: "Click to upload" })
|
|
10026
10442
|
] })
|
|
10027
10443
|
] });
|
|
10028
10444
|
};
|
|
@@ -10036,7 +10452,7 @@ var ScSettingsTabComp_default = {
|
|
|
10036
10452
|
};
|
|
10037
10453
|
|
|
10038
10454
|
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
10039
|
-
var
|
|
10455
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
10040
10456
|
var ScSettingsTabComp = ({
|
|
10041
10457
|
tabName = "Tab",
|
|
10042
10458
|
active = false,
|
|
@@ -10044,12 +10460,12 @@ var ScSettingsTabComp = ({
|
|
|
10044
10460
|
className
|
|
10045
10461
|
}) => {
|
|
10046
10462
|
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
10047
|
-
return /* @__PURE__ */ (0,
|
|
10463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
10048
10464
|
"div",
|
|
10049
10465
|
{
|
|
10050
10466
|
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
10051
10467
|
onClick,
|
|
10052
|
-
children: /* @__PURE__ */ (0,
|
|
10468
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
10053
10469
|
}
|
|
10054
10470
|
);
|
|
10055
10471
|
};
|
|
@@ -10068,8 +10484,8 @@ var ScCreditsUsageCardMobile_default = {
|
|
|
10068
10484
|
};
|
|
10069
10485
|
|
|
10070
10486
|
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
10071
|
-
var
|
|
10072
|
-
var
|
|
10487
|
+
var import_icons68 = require("@streamoid/icons");
|
|
10488
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
10073
10489
|
var ScCreditsUsageCardMobile = ({
|
|
10074
10490
|
usageLabel = "Credits usage",
|
|
10075
10491
|
usageText = "8,450 / 30,000",
|
|
@@ -10079,23 +10495,23 @@ var ScCreditsUsageCardMobile = ({
|
|
|
10079
10495
|
className,
|
|
10080
10496
|
...props
|
|
10081
10497
|
}) => {
|
|
10082
|
-
return /* @__PURE__ */ (0,
|
|
10083
|
-
/* @__PURE__ */ (0,
|
|
10084
|
-
/* @__PURE__ */ (0,
|
|
10085
|
-
|
|
10498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: ScCreditsUsageCardMobile_default.scCreditsUsageCardMobile + " " + (className ?? ""), ...props, children: [
|
|
10499
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: ScCreditsUsageCardMobile_default.header, children: [
|
|
10500
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
10501
|
+
import_icons68.SiconCredits,
|
|
10086
10502
|
{
|
|
10087
10503
|
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
10088
10504
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
10089
10505
|
}
|
|
10090
10506
|
),
|
|
10091
|
-
/* @__PURE__ */ (0,
|
|
10507
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
10092
10508
|
] }),
|
|
10093
|
-
/* @__PURE__ */ (0,
|
|
10094
|
-
/* @__PURE__ */ (0,
|
|
10095
|
-
/* @__PURE__ */ (0,
|
|
10096
|
-
/* @__PURE__ */ (0,
|
|
10509
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: ScCreditsUsageCardMobile_default.divider }),
|
|
10510
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: ScCreditsUsageCardMobile_default.usageInfo, children: [
|
|
10511
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: ScCreditsUsageCardMobile_default.usageText, children: usageText }),
|
|
10512
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: ScCreditsUsageCardMobile_default.remainingText, children: remainingText })
|
|
10097
10513
|
] }),
|
|
10098
|
-
/* @__PURE__ */ (0,
|
|
10514
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
10099
10515
|
ScButton,
|
|
10100
10516
|
{
|
|
10101
10517
|
text: buyButtonText,
|
|
@@ -10136,8 +10552,8 @@ var ScPlanDetailsCardMobile_default = {
|
|
|
10136
10552
|
};
|
|
10137
10553
|
|
|
10138
10554
|
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
10139
|
-
var
|
|
10140
|
-
var
|
|
10555
|
+
var import_icons69 = require("@streamoid/icons");
|
|
10556
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
10141
10557
|
var ScPlanDetailsCardMobile = ({
|
|
10142
10558
|
planName = "Pro",
|
|
10143
10559
|
planCredits = "30,000 credits",
|
|
@@ -10151,20 +10567,20 @@ var ScPlanDetailsCardMobile = ({
|
|
|
10151
10567
|
className,
|
|
10152
10568
|
...props
|
|
10153
10569
|
}) => {
|
|
10154
|
-
return /* @__PURE__ */ (0,
|
|
10155
|
-
/* @__PURE__ */ (0,
|
|
10156
|
-
/* @__PURE__ */ (0,
|
|
10157
|
-
/* @__PURE__ */ (0,
|
|
10158
|
-
|
|
10570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: ScPlanDetailsCardMobile_default.scPlanDetailsCardMobile + " " + (className ?? ""), ...props, children: [
|
|
10571
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planHeader, children: [
|
|
10572
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: ScPlanDetailsCardMobile_default.headerLeft, children: [
|
|
10573
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10574
|
+
import_icons69.SiconBilling,
|
|
10159
10575
|
{
|
|
10160
10576
|
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
10161
10577
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
10162
10578
|
}
|
|
10163
10579
|
),
|
|
10164
|
-
/* @__PURE__ */ (0,
|
|
10580
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
10165
10581
|
] }),
|
|
10166
|
-
/* @__PURE__ */ (0,
|
|
10167
|
-
/* @__PURE__ */ (0,
|
|
10582
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: ScPlanDetailsCardMobile_default.badgeGroup, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.badgeSkeleton}` }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
10583
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10168
10584
|
ScBadges,
|
|
10169
10585
|
{
|
|
10170
10586
|
text: badgeText,
|
|
@@ -10173,28 +10589,28 @@ var ScPlanDetailsCardMobile = ({
|
|
|
10173
10589
|
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
10174
10590
|
}
|
|
10175
10591
|
),
|
|
10176
|
-
badgeSubText && /* @__PURE__ */ (0,
|
|
10177
|
-
/* @__PURE__ */ (0,
|
|
10178
|
-
/* @__PURE__ */ (0,
|
|
10592
|
+
badgeSubText && /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
10593
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: ScPlanDetailsCardMobile_default.badgeDot }),
|
|
10594
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: ScPlanDetailsCardMobile_default.badgeSubText, children: badgeSubText })
|
|
10179
10595
|
] })
|
|
10180
10596
|
] }) })
|
|
10181
10597
|
] }),
|
|
10182
|
-
/* @__PURE__ */ (0,
|
|
10183
|
-
/* @__PURE__ */ (0,
|
|
10184
|
-
/* @__PURE__ */ (0,
|
|
10185
|
-
/* @__PURE__ */ (0,
|
|
10186
|
-
/* @__PURE__ */ (0,
|
|
10598
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: ScPlanDetailsCardMobile_default.divider }),
|
|
10599
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: ScPlanDetailsCardMobile_default.planInfo, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
10600
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, "aria-label": "Loading plan details", children: [
|
|
10601
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.planNameSkeleton}` }),
|
|
10602
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.creditsSkeleton}` })
|
|
10187
10603
|
] }),
|
|
10188
|
-
/* @__PURE__ */ (0,
|
|
10189
|
-
] }) : /* @__PURE__ */ (0,
|
|
10190
|
-
/* @__PURE__ */ (0,
|
|
10191
|
-
/* @__PURE__ */ (0,
|
|
10192
|
-
/* @__PURE__ */ (0,
|
|
10193
|
-
/* @__PURE__ */ (0,
|
|
10604
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.priceSkeleton}` })
|
|
10605
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
10606
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: ScPlanDetailsCardMobile_default.planNameRow, children: [
|
|
10607
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planName }),
|
|
10608
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: ScPlanDetailsCardMobile_default.dot }),
|
|
10609
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: ScPlanDetailsCardMobile_default.planName, children: planCredits })
|
|
10194
10610
|
] }),
|
|
10195
|
-
/* @__PURE__ */ (0,
|
|
10611
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
10196
10612
|
] }) }),
|
|
10197
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
10613
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.buttonSkeleton}` }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10198
10614
|
ScButton,
|
|
10199
10615
|
{
|
|
10200
10616
|
text: upgradeButtonText,
|