@streamoid/ui 0.6.9 → 0.6.11
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 +880 -0
- package/dist/index.d.mts +87 -1
- package/dist/index.d.ts +87 -1
- package/dist/index.js +1138 -170
- package/dist/index.mjs +1138 -170
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -954,8 +954,19 @@ var ScButton = ({
|
|
|
954
954
|
return /* @__PURE__ */ jsxs14(
|
|
955
955
|
"div",
|
|
956
956
|
{
|
|
957
|
-
className: ScButton_default.scButton
|
|
957
|
+
className: [ScButton_default.scButton, variantsClassName, className].filter(Boolean).join(" "),
|
|
958
|
+
role: "button",
|
|
959
|
+
tabIndex: state === "disabled" ? -1 : 0,
|
|
960
|
+
"aria-disabled": state === "disabled" || void 0,
|
|
958
961
|
...props,
|
|
962
|
+
onKeyDown: (e) => {
|
|
963
|
+
props.onKeyDown?.(e);
|
|
964
|
+
if (state === "disabled") return;
|
|
965
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
966
|
+
e.preventDefault();
|
|
967
|
+
props.onClick?.(e);
|
|
968
|
+
}
|
|
969
|
+
},
|
|
959
970
|
children: [
|
|
960
971
|
noiseUrl && /* @__PURE__ */ jsx14(
|
|
961
972
|
"div",
|
|
@@ -7290,7 +7301,7 @@ var ScSubAgent = ({
|
|
|
7290
7301
|
return /* @__PURE__ */ jsx80(
|
|
7291
7302
|
"div",
|
|
7292
7303
|
{
|
|
7293
|
-
className: ScSubAgent_default.scSubAgent
|
|
7304
|
+
className: [ScSubAgent_default.scSubAgent, className].filter(Boolean).join(" "),
|
|
7294
7305
|
...props,
|
|
7295
7306
|
children: /* @__PURE__ */ jsx80("p", { className: ScSubAgent_default.label, children: label })
|
|
7296
7307
|
}
|
|
@@ -7319,7 +7330,7 @@ var ScInChatMessage = ({
|
|
|
7319
7330
|
return /* @__PURE__ */ jsx81(
|
|
7320
7331
|
"div",
|
|
7321
7332
|
{
|
|
7322
|
-
className: ScInChatMessage_default.scInChatMessage
|
|
7333
|
+
className: [ScInChatMessage_default.scInChatMessage, variantsClassName, className].filter(Boolean).join(" "),
|
|
7323
7334
|
id,
|
|
7324
7335
|
...props,
|
|
7325
7336
|
children: /* @__PURE__ */ jsx81("p", { className: ScInChatMessage_default.text, children: children ?? text })
|
|
@@ -7358,7 +7369,7 @@ var ScSelection = ({
|
|
|
7358
7369
|
return /* @__PURE__ */ jsxs71(
|
|
7359
7370
|
"div",
|
|
7360
7371
|
{
|
|
7361
|
-
className: ScSelection_default.scSelection
|
|
7372
|
+
className: [ScSelection_default.scSelection, variantsClassName, className].filter(Boolean).join(" "),
|
|
7362
7373
|
onClick: handleClick,
|
|
7363
7374
|
...props,
|
|
7364
7375
|
children: [
|
|
@@ -7371,7 +7382,7 @@ var ScSelection = ({
|
|
|
7371
7382
|
),
|
|
7372
7383
|
/* @__PURE__ */ jsxs71("div", { className: ScSelection_default.wrapper, children: [
|
|
7373
7384
|
/* @__PURE__ */ jsx82("p", { className: ScSelection_default.title, children: title }),
|
|
7374
|
-
/* @__PURE__ */ jsx82("p", { className: ScSelection_default.description, children: description })
|
|
7385
|
+
description && /* @__PURE__ */ jsx82("p", { className: ScSelection_default.description, children: description })
|
|
7375
7386
|
] })
|
|
7376
7387
|
]
|
|
7377
7388
|
}
|
|
@@ -7500,6 +7511,957 @@ var ScSelectionList = ({
|
|
|
7500
7511
|
);
|
|
7501
7512
|
};
|
|
7502
7513
|
|
|
7514
|
+
// src/SC-textArea/ScTextArea.tsx
|
|
7515
|
+
import { useState as useState11 } from "react";
|
|
7516
|
+
|
|
7517
|
+
// src/SC-textArea/ScTextArea.module.css
|
|
7518
|
+
var ScTextArea_default = {
|
|
7519
|
+
scTextArea: "ScTextArea_scTextArea",
|
|
7520
|
+
"label-group-none": "ScTextArea_label-group-none",
|
|
7521
|
+
labelContainer: "ScTextArea_labelContainer",
|
|
7522
|
+
label: "ScTextArea_label",
|
|
7523
|
+
info: "ScTextArea_info",
|
|
7524
|
+
inputContainer: "ScTextArea_inputContainer",
|
|
7525
|
+
inputText: "ScTextArea_inputText",
|
|
7526
|
+
"state-hover": "ScTextArea_state-hover",
|
|
7527
|
+
"state-filled": "ScTextArea_state-filled",
|
|
7528
|
+
"state-active": "ScTextArea_state-active",
|
|
7529
|
+
"state-error": "ScTextArea_state-error",
|
|
7530
|
+
"state-disabled": "ScTextArea_state-disabled"
|
|
7531
|
+
};
|
|
7532
|
+
|
|
7533
|
+
// src/SC-textArea/ScTextArea.tsx
|
|
7534
|
+
import { jsx as jsx84, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
7535
|
+
var ScTextArea = ({
|
|
7536
|
+
state,
|
|
7537
|
+
labelGroup = "",
|
|
7538
|
+
label = "",
|
|
7539
|
+
info = "info",
|
|
7540
|
+
placeholderFilled = "Placeholder",
|
|
7541
|
+
className,
|
|
7542
|
+
style,
|
|
7543
|
+
...props
|
|
7544
|
+
}) => {
|
|
7545
|
+
const [focused, setFocused] = useState11(false);
|
|
7546
|
+
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
7547
|
+
const stateClass = ScTextArea_default["state-" + derivedState];
|
|
7548
|
+
const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
|
|
7549
|
+
return /* @__PURE__ */ jsxs73(
|
|
7550
|
+
"div",
|
|
7551
|
+
{
|
|
7552
|
+
className: [ScTextArea_default.scTextArea, stateClass, labelGroupClass, className].filter(Boolean).join(" "),
|
|
7553
|
+
style,
|
|
7554
|
+
children: [
|
|
7555
|
+
labelGroup && /* @__PURE__ */ jsxs73("div", { className: ScTextArea_default.labelContainer, children: [
|
|
7556
|
+
/* @__PURE__ */ jsxs73("div", { className: ScTextArea_default.label, children: [
|
|
7557
|
+
label,
|
|
7558
|
+
" "
|
|
7559
|
+
] }),
|
|
7560
|
+
labelGroup === "text" && /* @__PURE__ */ jsxs73("div", { className: ScTextArea_default.info, children: [
|
|
7561
|
+
info,
|
|
7562
|
+
" "
|
|
7563
|
+
] })
|
|
7564
|
+
] }),
|
|
7565
|
+
/* @__PURE__ */ jsx84("div", { className: ScTextArea_default.inputContainer, children: /* @__PURE__ */ jsx84(
|
|
7566
|
+
"textarea",
|
|
7567
|
+
{
|
|
7568
|
+
className: ScTextArea_default.inputText,
|
|
7569
|
+
placeholder: placeholderFilled,
|
|
7570
|
+
...props,
|
|
7571
|
+
onFocus: (e) => {
|
|
7572
|
+
setFocused(true);
|
|
7573
|
+
props.onFocus?.(e);
|
|
7574
|
+
},
|
|
7575
|
+
onBlur: (e) => {
|
|
7576
|
+
setFocused(false);
|
|
7577
|
+
props.onBlur?.(e);
|
|
7578
|
+
}
|
|
7579
|
+
}
|
|
7580
|
+
) })
|
|
7581
|
+
]
|
|
7582
|
+
}
|
|
7583
|
+
);
|
|
7584
|
+
};
|
|
7585
|
+
|
|
7586
|
+
// src/SC-select/ScSelect.tsx
|
|
7587
|
+
import { useState as useState12, useRef as useRef3, useEffect as useEffect3 } from "react";
|
|
7588
|
+
|
|
7589
|
+
// src/SC-select/ScSelect.module.css
|
|
7590
|
+
var ScSelect_default = {
|
|
7591
|
+
scSelect: "ScSelect_scSelect",
|
|
7592
|
+
"label-group-": "ScSelect_label-group-",
|
|
7593
|
+
labelContainer: "ScSelect_labelContainer",
|
|
7594
|
+
label: "ScSelect_label",
|
|
7595
|
+
selectArea: "ScSelect_selectArea",
|
|
7596
|
+
trigger: "ScSelect_trigger",
|
|
7597
|
+
triggerText: "ScSelect_triggerText",
|
|
7598
|
+
placeholder: "ScSelect_placeholder",
|
|
7599
|
+
chevron: "ScSelect_chevron",
|
|
7600
|
+
chevronOpen: "ScSelect_chevronOpen",
|
|
7601
|
+
"state-filled": "ScSelect_state-filled",
|
|
7602
|
+
"state-active": "ScSelect_state-active",
|
|
7603
|
+
"state-disabled": "ScSelect_state-disabled",
|
|
7604
|
+
menu: "ScSelect_menu",
|
|
7605
|
+
option: "ScSelect_option",
|
|
7606
|
+
"option-selected": "ScSelect_option-selected",
|
|
7607
|
+
optionLabel: "ScSelect_optionLabel",
|
|
7608
|
+
optionDescription: "ScSelect_optionDescription"
|
|
7609
|
+
};
|
|
7610
|
+
|
|
7611
|
+
// src/SC-select/ScSelect.tsx
|
|
7612
|
+
import { jsx as jsx85, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
7613
|
+
var ScSelect = (props) => {
|
|
7614
|
+
const {
|
|
7615
|
+
value,
|
|
7616
|
+
onChange,
|
|
7617
|
+
options = [],
|
|
7618
|
+
placeholder = "Select an option...",
|
|
7619
|
+
label,
|
|
7620
|
+
labelGroup = "",
|
|
7621
|
+
disabled = false,
|
|
7622
|
+
className
|
|
7623
|
+
} = props;
|
|
7624
|
+
const [open, setOpen] = useState12(false);
|
|
7625
|
+
const rootRef = useRef3(null);
|
|
7626
|
+
useEffect3(() => {
|
|
7627
|
+
if (!open) return;
|
|
7628
|
+
const handleClick = (e) => {
|
|
7629
|
+
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
7630
|
+
setOpen(false);
|
|
7631
|
+
}
|
|
7632
|
+
};
|
|
7633
|
+
document.addEventListener("mousedown", handleClick);
|
|
7634
|
+
return () => document.removeEventListener("mousedown", handleClick);
|
|
7635
|
+
}, [open]);
|
|
7636
|
+
const selected = options.find((o) => o.id === value);
|
|
7637
|
+
const state = disabled ? "disabled" : open ? "active" : selected ? "filled" : "default";
|
|
7638
|
+
const handleToggle = () => {
|
|
7639
|
+
if (disabled) return;
|
|
7640
|
+
setOpen((prev) => !prev);
|
|
7641
|
+
};
|
|
7642
|
+
const handleSelect = (id) => {
|
|
7643
|
+
if (onChange) onChange(id);
|
|
7644
|
+
setOpen(false);
|
|
7645
|
+
};
|
|
7646
|
+
const rootClass = [
|
|
7647
|
+
ScSelect_default.scSelect,
|
|
7648
|
+
ScSelect_default["state-" + state],
|
|
7649
|
+
labelGroup ? ScSelect_default["label-group-" + labelGroup] : void 0,
|
|
7650
|
+
className
|
|
7651
|
+
].filter(Boolean).join(" ");
|
|
7652
|
+
return /* @__PURE__ */ jsxs74("div", { className: rootClass, ref: rootRef, children: [
|
|
7653
|
+
labelGroup === "label" && label ? /* @__PURE__ */ jsx85("div", { className: ScSelect_default.labelContainer, children: /* @__PURE__ */ jsx85("div", { className: ScSelect_default.label, children: label }) }) : null,
|
|
7654
|
+
/* @__PURE__ */ jsxs74("div", { className: ScSelect_default.selectArea, children: [
|
|
7655
|
+
/* @__PURE__ */ jsxs74(
|
|
7656
|
+
"button",
|
|
7657
|
+
{
|
|
7658
|
+
type: "button",
|
|
7659
|
+
className: ScSelect_default.trigger,
|
|
7660
|
+
onClick: handleToggle,
|
|
7661
|
+
disabled,
|
|
7662
|
+
"aria-haspopup": "listbox",
|
|
7663
|
+
"aria-expanded": open,
|
|
7664
|
+
children: [
|
|
7665
|
+
/* @__PURE__ */ jsx85(
|
|
7666
|
+
"span",
|
|
7667
|
+
{
|
|
7668
|
+
className: [ScSelect_default.triggerText, selected ? void 0 : ScSelect_default.placeholder].filter(Boolean).join(" "),
|
|
7669
|
+
children: selected ? selected.label : placeholder
|
|
7670
|
+
}
|
|
7671
|
+
),
|
|
7672
|
+
/* @__PURE__ */ jsx85(
|
|
7673
|
+
"span",
|
|
7674
|
+
{
|
|
7675
|
+
className: [ScSelect_default.chevron, open ? ScSelect_default.chevronOpen : void 0].filter(Boolean).join(" "),
|
|
7676
|
+
children: /* @__PURE__ */ jsx85("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsx85(
|
|
7677
|
+
"path",
|
|
7678
|
+
{
|
|
7679
|
+
d: "M5 7.5L10 12.5L15 7.5",
|
|
7680
|
+
stroke: "currentColor",
|
|
7681
|
+
strokeWidth: "1.5",
|
|
7682
|
+
strokeLinecap: "round",
|
|
7683
|
+
strokeLinejoin: "round"
|
|
7684
|
+
}
|
|
7685
|
+
) })
|
|
7686
|
+
}
|
|
7687
|
+
)
|
|
7688
|
+
]
|
|
7689
|
+
}
|
|
7690
|
+
),
|
|
7691
|
+
open ? /* @__PURE__ */ jsx85("div", { className: ScSelect_default.menu, role: "listbox", children: options.map((option) => {
|
|
7692
|
+
const isSelected = option.id === value;
|
|
7693
|
+
const optionClass = [
|
|
7694
|
+
ScSelect_default.option,
|
|
7695
|
+
isSelected ? ScSelect_default["option-selected"] : void 0
|
|
7696
|
+
].filter(Boolean).join(" ");
|
|
7697
|
+
return /* @__PURE__ */ jsxs74(
|
|
7698
|
+
"div",
|
|
7699
|
+
{
|
|
7700
|
+
className: optionClass,
|
|
7701
|
+
role: "option",
|
|
7702
|
+
"aria-selected": isSelected,
|
|
7703
|
+
onClick: () => handleSelect(option.id),
|
|
7704
|
+
children: [
|
|
7705
|
+
/* @__PURE__ */ jsx85("span", { className: ScSelect_default.optionLabel, children: option.label }),
|
|
7706
|
+
option.description ? /* @__PURE__ */ jsx85("span", { className: ScSelect_default.optionDescription, children: option.description }) : null
|
|
7707
|
+
]
|
|
7708
|
+
},
|
|
7709
|
+
option.id
|
|
7710
|
+
);
|
|
7711
|
+
}) }) : null
|
|
7712
|
+
] })
|
|
7713
|
+
] });
|
|
7714
|
+
};
|
|
7715
|
+
|
|
7716
|
+
// src/SC-fileField/ScFileField.tsx
|
|
7717
|
+
import { useRef as useRef4 } from "react";
|
|
7718
|
+
|
|
7719
|
+
// src/SC-fileField/ScFileField.module.css
|
|
7720
|
+
var ScFileField_default = {
|
|
7721
|
+
scFileField: "ScFileField_scFileField",
|
|
7722
|
+
labelContainer: "ScFileField_labelContainer",
|
|
7723
|
+
label: "ScFileField_label",
|
|
7724
|
+
dropzone: "ScFileField_dropzone",
|
|
7725
|
+
hiddenInput: "ScFileField_hiddenInput",
|
|
7726
|
+
uploadIcon: "ScFileField_uploadIcon",
|
|
7727
|
+
dropzoneText: "ScFileField_dropzoneText",
|
|
7728
|
+
dropzoneAction: "ScFileField_dropzoneAction",
|
|
7729
|
+
acceptedText: "ScFileField_acceptedText",
|
|
7730
|
+
inputContainer: "ScFileField_inputContainer",
|
|
7731
|
+
fileIcon: "ScFileField_fileIcon",
|
|
7732
|
+
fileInfo: "ScFileField_fileInfo",
|
|
7733
|
+
fileName: "ScFileField_fileName",
|
|
7734
|
+
progressTrack: "ScFileField_progressTrack",
|
|
7735
|
+
progressFill: "ScFileField_progressFill",
|
|
7736
|
+
clearButton: "ScFileField_clearButton",
|
|
7737
|
+
errorText: "ScFileField_errorText"
|
|
7738
|
+
};
|
|
7739
|
+
|
|
7740
|
+
// src/SC-fileField/ScFileField.tsx
|
|
7741
|
+
import { jsx as jsx86, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7742
|
+
var ScFileField = (props) => {
|
|
7743
|
+
const {
|
|
7744
|
+
onFileSelect,
|
|
7745
|
+
accept,
|
|
7746
|
+
multiple,
|
|
7747
|
+
fileName,
|
|
7748
|
+
uploading,
|
|
7749
|
+
progress = 0,
|
|
7750
|
+
error,
|
|
7751
|
+
onClear,
|
|
7752
|
+
label,
|
|
7753
|
+
className
|
|
7754
|
+
} = props;
|
|
7755
|
+
const inputRef = useRef4(null);
|
|
7756
|
+
const hasFile = Boolean(fileName);
|
|
7757
|
+
const isUploading = Boolean(uploading);
|
|
7758
|
+
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
7759
|
+
const handleChange = (e) => {
|
|
7760
|
+
if (onFileSelect) {
|
|
7761
|
+
onFileSelect(e.target.files);
|
|
7762
|
+
}
|
|
7763
|
+
};
|
|
7764
|
+
const uploadIcon = /* @__PURE__ */ jsxs75(
|
|
7765
|
+
"svg",
|
|
7766
|
+
{
|
|
7767
|
+
className: ScFileField_default.uploadIcon,
|
|
7768
|
+
width: "28",
|
|
7769
|
+
height: "28",
|
|
7770
|
+
viewBox: "0 0 24 24",
|
|
7771
|
+
fill: "none",
|
|
7772
|
+
stroke: "currentColor",
|
|
7773
|
+
strokeWidth: "1.5",
|
|
7774
|
+
strokeLinecap: "round",
|
|
7775
|
+
strokeLinejoin: "round",
|
|
7776
|
+
"aria-hidden": "true",
|
|
7777
|
+
children: [
|
|
7778
|
+
/* @__PURE__ */ jsx86("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
7779
|
+
/* @__PURE__ */ jsx86("path", { d: "M12 16V4" }),
|
|
7780
|
+
/* @__PURE__ */ jsx86("path", { d: "M7 9l5-5 5 5" })
|
|
7781
|
+
]
|
|
7782
|
+
}
|
|
7783
|
+
);
|
|
7784
|
+
const fileIcon = /* @__PURE__ */ jsxs75(
|
|
7785
|
+
"svg",
|
|
7786
|
+
{
|
|
7787
|
+
className: ScFileField_default.fileIcon,
|
|
7788
|
+
width: "20",
|
|
7789
|
+
height: "20",
|
|
7790
|
+
viewBox: "0 0 24 24",
|
|
7791
|
+
fill: "none",
|
|
7792
|
+
stroke: "currentColor",
|
|
7793
|
+
strokeWidth: "1.5",
|
|
7794
|
+
strokeLinecap: "round",
|
|
7795
|
+
strokeLinejoin: "round",
|
|
7796
|
+
"aria-hidden": "true",
|
|
7797
|
+
children: [
|
|
7798
|
+
/* @__PURE__ */ jsx86("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
|
|
7799
|
+
/* @__PURE__ */ jsx86("path", { d: "M14 2v6h6" })
|
|
7800
|
+
]
|
|
7801
|
+
}
|
|
7802
|
+
);
|
|
7803
|
+
const clearIcon = /* @__PURE__ */ jsxs75(
|
|
7804
|
+
"svg",
|
|
7805
|
+
{
|
|
7806
|
+
width: "20",
|
|
7807
|
+
height: "20",
|
|
7808
|
+
viewBox: "0 0 24 24",
|
|
7809
|
+
fill: "none",
|
|
7810
|
+
stroke: "currentColor",
|
|
7811
|
+
strokeWidth: "1.5",
|
|
7812
|
+
strokeLinecap: "round",
|
|
7813
|
+
strokeLinejoin: "round",
|
|
7814
|
+
"aria-hidden": "true",
|
|
7815
|
+
children: [
|
|
7816
|
+
/* @__PURE__ */ jsx86("path", { d: "M18 6L6 18" }),
|
|
7817
|
+
/* @__PURE__ */ jsx86("path", { d: "M6 6l12 12" })
|
|
7818
|
+
]
|
|
7819
|
+
}
|
|
7820
|
+
);
|
|
7821
|
+
const rootClass = [ScFileField_default.scFileField, className].filter(Boolean).join(" ");
|
|
7822
|
+
const showRow = hasFile || isUploading;
|
|
7823
|
+
return /* @__PURE__ */ jsxs75("div", { className: rootClass, children: [
|
|
7824
|
+
label ? /* @__PURE__ */ jsx86("div", { className: ScFileField_default.labelContainer, children: /* @__PURE__ */ jsx86("div", { className: ScFileField_default.label, children: label }) }) : null,
|
|
7825
|
+
showRow ? /* @__PURE__ */ jsxs75("div", { className: ScFileField_default.inputContainer, children: [
|
|
7826
|
+
fileIcon,
|
|
7827
|
+
/* @__PURE__ */ jsxs75("div", { className: ScFileField_default.fileInfo, children: [
|
|
7828
|
+
/* @__PURE__ */ jsx86("span", { className: ScFileField_default.fileName, children: fileName }),
|
|
7829
|
+
isUploading ? /* @__PURE__ */ jsx86("div", { className: ScFileField_default.progressTrack, children: /* @__PURE__ */ jsx86(
|
|
7830
|
+
"div",
|
|
7831
|
+
{
|
|
7832
|
+
className: ScFileField_default.progressFill,
|
|
7833
|
+
style: { width: clampedProgress + "%" }
|
|
7834
|
+
}
|
|
7835
|
+
) }) : null
|
|
7836
|
+
] }),
|
|
7837
|
+
!isUploading ? /* @__PURE__ */ jsx86(
|
|
7838
|
+
"button",
|
|
7839
|
+
{
|
|
7840
|
+
type: "button",
|
|
7841
|
+
className: ScFileField_default.clearButton,
|
|
7842
|
+
onClick: onClear,
|
|
7843
|
+
"aria-label": "Clear file",
|
|
7844
|
+
children: clearIcon
|
|
7845
|
+
}
|
|
7846
|
+
) : null
|
|
7847
|
+
] }) : /* @__PURE__ */ jsxs75("label", { className: ScFileField_default.dropzone, children: [
|
|
7848
|
+
/* @__PURE__ */ jsx86(
|
|
7849
|
+
"input",
|
|
7850
|
+
{
|
|
7851
|
+
ref: inputRef,
|
|
7852
|
+
type: "file",
|
|
7853
|
+
className: ScFileField_default.hiddenInput,
|
|
7854
|
+
accept,
|
|
7855
|
+
multiple,
|
|
7856
|
+
onChange: handleChange
|
|
7857
|
+
}
|
|
7858
|
+
),
|
|
7859
|
+
uploadIcon,
|
|
7860
|
+
/* @__PURE__ */ jsxs75("div", { className: ScFileField_default.dropzoneText, children: [
|
|
7861
|
+
/* @__PURE__ */ jsx86("span", { className: ScFileField_default.dropzoneAction, children: "Click to upload" }),
|
|
7862
|
+
" or drag and drop"
|
|
7863
|
+
] }),
|
|
7864
|
+
accept ? /* @__PURE__ */ jsxs75("div", { className: ScFileField_default.acceptedText, children: [
|
|
7865
|
+
"Accepted: ",
|
|
7866
|
+
accept
|
|
7867
|
+
] }) : null
|
|
7868
|
+
] }),
|
|
7869
|
+
error ? /* @__PURE__ */ jsx86("div", { className: ScFileField_default.errorText, children: error }) : null
|
|
7870
|
+
] });
|
|
7871
|
+
};
|
|
7872
|
+
|
|
7873
|
+
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
7874
|
+
import { useState as useState13, useEffect as useEffect4 } from "react";
|
|
7875
|
+
|
|
7876
|
+
// src/SC-mediaApproval/ScMediaApproval.module.css
|
|
7877
|
+
var ScMediaApproval_default = {
|
|
7878
|
+
scMediaApproval: "ScMediaApproval_scMediaApproval",
|
|
7879
|
+
mediaFrame: "ScMediaApproval_mediaFrame",
|
|
7880
|
+
media: "ScMediaApproval_media",
|
|
7881
|
+
mediaEmpty: "ScMediaApproval_mediaEmpty",
|
|
7882
|
+
spinnerOverlay: "ScMediaApproval_spinnerOverlay",
|
|
7883
|
+
spinner: "ScMediaApproval_spinner",
|
|
7884
|
+
spin: "ScMediaApproval_spin",
|
|
7885
|
+
navButton: "ScMediaApproval_navButton",
|
|
7886
|
+
navPrev: "ScMediaApproval_navPrev",
|
|
7887
|
+
navNext: "ScMediaApproval_navNext",
|
|
7888
|
+
counterBadge: "ScMediaApproval_counterBadge",
|
|
7889
|
+
dots: "ScMediaApproval_dots",
|
|
7890
|
+
dot: "ScMediaApproval_dot",
|
|
7891
|
+
"state-active": "ScMediaApproval_state-active",
|
|
7892
|
+
feedbackBlock: "ScMediaApproval_feedbackBlock",
|
|
7893
|
+
label: "ScMediaApproval_label",
|
|
7894
|
+
inputContainer: "ScMediaApproval_inputContainer",
|
|
7895
|
+
textArea: "ScMediaApproval_textArea"
|
|
7896
|
+
};
|
|
7897
|
+
|
|
7898
|
+
// src/SC-mediaApproval/ScMediaApproval.tsx
|
|
7899
|
+
import { Fragment as Fragment22, jsx as jsx87, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7900
|
+
var VIDEO_EXT = /\.(mp4|webm|ogg|mov|m4v)(\?.*)?$/i;
|
|
7901
|
+
var isVideoUrl = (url, mediaType) => {
|
|
7902
|
+
if (mediaType === "video") return true;
|
|
7903
|
+
if (mediaType === "image") return false;
|
|
7904
|
+
return VIDEO_EXT.test(url);
|
|
7905
|
+
};
|
|
7906
|
+
var ScMediaApproval = (props) => {
|
|
7907
|
+
const {
|
|
7908
|
+
mediaUrls = [],
|
|
7909
|
+
mediaType,
|
|
7910
|
+
activeIndex,
|
|
7911
|
+
onIndexChange,
|
|
7912
|
+
onPreview,
|
|
7913
|
+
loading,
|
|
7914
|
+
feedbackLabel = "What should be changed?",
|
|
7915
|
+
feedbackValue,
|
|
7916
|
+
onFeedbackChange,
|
|
7917
|
+
feedbackPlaceholder,
|
|
7918
|
+
className
|
|
7919
|
+
} = props;
|
|
7920
|
+
const total = mediaUrls.length;
|
|
7921
|
+
const [index, setIndex] = useState13(activeIndex ?? 0);
|
|
7922
|
+
const [mediaLoading, setMediaLoading] = useState13(false);
|
|
7923
|
+
useEffect4(() => {
|
|
7924
|
+
if (typeof activeIndex === "number") {
|
|
7925
|
+
setIndex(activeIndex);
|
|
7926
|
+
}
|
|
7927
|
+
}, [activeIndex]);
|
|
7928
|
+
const goTo = (next) => {
|
|
7929
|
+
if (total === 0) return;
|
|
7930
|
+
const clamped = (next % total + total) % total;
|
|
7931
|
+
if (clamped !== index) setMediaLoading(true);
|
|
7932
|
+
setIndex(clamped);
|
|
7933
|
+
if (onIndexChange) onIndexChange(clamped);
|
|
7934
|
+
};
|
|
7935
|
+
const safeIndex = total > 0 ? Math.min(index, total - 1) : 0;
|
|
7936
|
+
const currentUrl = total > 0 ? mediaUrls[safeIndex] : void 0;
|
|
7937
|
+
const currentIsVideo = currentUrl ? isVideoUrl(currentUrl, mediaType) : false;
|
|
7938
|
+
const handlePreview = () => {
|
|
7939
|
+
if (currentUrl && onPreview) onPreview(currentUrl);
|
|
7940
|
+
};
|
|
7941
|
+
return /* @__PURE__ */ jsxs76("div", { className: [ScMediaApproval_default.scMediaApproval, className].filter(Boolean).join(" "), children: [
|
|
7942
|
+
/* @__PURE__ */ jsxs76("div", { className: ScMediaApproval_default.mediaFrame, children: [
|
|
7943
|
+
currentUrl ? currentIsVideo ? /* @__PURE__ */ jsx87(
|
|
7944
|
+
"video",
|
|
7945
|
+
{
|
|
7946
|
+
className: ScMediaApproval_default.media,
|
|
7947
|
+
src: currentUrl,
|
|
7948
|
+
controls: true,
|
|
7949
|
+
onClick: handlePreview,
|
|
7950
|
+
onLoadedData: () => setMediaLoading(false)
|
|
7951
|
+
}
|
|
7952
|
+
) : /* @__PURE__ */ jsx87(
|
|
7953
|
+
"img",
|
|
7954
|
+
{
|
|
7955
|
+
className: ScMediaApproval_default.media,
|
|
7956
|
+
src: currentUrl,
|
|
7957
|
+
alt: "",
|
|
7958
|
+
onClick: handlePreview,
|
|
7959
|
+
onLoad: () => setMediaLoading(false)
|
|
7960
|
+
}
|
|
7961
|
+
) : /* @__PURE__ */ jsx87("div", { className: ScMediaApproval_default.mediaEmpty }),
|
|
7962
|
+
(loading || mediaLoading) && /* @__PURE__ */ jsx87("div", { className: ScMediaApproval_default.spinnerOverlay, children: /* @__PURE__ */ jsx87(
|
|
7963
|
+
"svg",
|
|
7964
|
+
{
|
|
7965
|
+
className: ScMediaApproval_default.spinner,
|
|
7966
|
+
width: "32",
|
|
7967
|
+
height: "32",
|
|
7968
|
+
viewBox: "0 0 24 24",
|
|
7969
|
+
fill: "none",
|
|
7970
|
+
children: /* @__PURE__ */ jsx87(
|
|
7971
|
+
"path",
|
|
7972
|
+
{
|
|
7973
|
+
d: "M12 3a9 9 0 1 0 9 9",
|
|
7974
|
+
stroke: "var(--alias-text-and-icons-fullwhite, #ffffff)",
|
|
7975
|
+
strokeWidth: "2",
|
|
7976
|
+
strokeLinecap: "round"
|
|
7977
|
+
}
|
|
7978
|
+
)
|
|
7979
|
+
}
|
|
7980
|
+
) }),
|
|
7981
|
+
total > 1 && /* @__PURE__ */ jsxs76(Fragment22, { children: [
|
|
7982
|
+
/* @__PURE__ */ jsx87(
|
|
7983
|
+
"button",
|
|
7984
|
+
{
|
|
7985
|
+
type: "button",
|
|
7986
|
+
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navPrev].join(" "),
|
|
7987
|
+
"aria-label": "Previous",
|
|
7988
|
+
onClick: () => goTo(safeIndex - 1),
|
|
7989
|
+
children: /* @__PURE__ */ jsx87("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx87(
|
|
7990
|
+
"path",
|
|
7991
|
+
{
|
|
7992
|
+
d: "M15 6L9 12L15 18",
|
|
7993
|
+
stroke: "var(--alias-text-and-icons-fullwhite, #ffffff)",
|
|
7994
|
+
strokeWidth: "2",
|
|
7995
|
+
strokeLinecap: "round",
|
|
7996
|
+
strokeLinejoin: "round"
|
|
7997
|
+
}
|
|
7998
|
+
) })
|
|
7999
|
+
}
|
|
8000
|
+
),
|
|
8001
|
+
/* @__PURE__ */ jsx87(
|
|
8002
|
+
"button",
|
|
8003
|
+
{
|
|
8004
|
+
type: "button",
|
|
8005
|
+
className: [ScMediaApproval_default.navButton, ScMediaApproval_default.navNext].join(" "),
|
|
8006
|
+
"aria-label": "Next",
|
|
8007
|
+
onClick: () => goTo(safeIndex + 1),
|
|
8008
|
+
children: /* @__PURE__ */ jsx87("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx87(
|
|
8009
|
+
"path",
|
|
8010
|
+
{
|
|
8011
|
+
d: "M9 6L15 12L9 18",
|
|
8012
|
+
stroke: "var(--alias-text-and-icons-fullwhite, #ffffff)",
|
|
8013
|
+
strokeWidth: "2",
|
|
8014
|
+
strokeLinecap: "round",
|
|
8015
|
+
strokeLinejoin: "round"
|
|
8016
|
+
}
|
|
8017
|
+
) })
|
|
8018
|
+
}
|
|
8019
|
+
),
|
|
8020
|
+
/* @__PURE__ */ jsxs76("div", { className: ScMediaApproval_default.counterBadge, children: [
|
|
8021
|
+
safeIndex + 1,
|
|
8022
|
+
" / ",
|
|
8023
|
+
total
|
|
8024
|
+
] }),
|
|
8025
|
+
/* @__PURE__ */ jsx87("div", { className: ScMediaApproval_default.dots, children: mediaUrls.map((_, i) => /* @__PURE__ */ jsx87(
|
|
8026
|
+
"button",
|
|
8027
|
+
{
|
|
8028
|
+
type: "button",
|
|
8029
|
+
"aria-label": "Go to item " + (i + 1),
|
|
8030
|
+
className: [
|
|
8031
|
+
ScMediaApproval_default.dot,
|
|
8032
|
+
i === safeIndex ? ScMediaApproval_default["state-active"] : ""
|
|
8033
|
+
].filter(Boolean).join(" "),
|
|
8034
|
+
onClick: () => goTo(i)
|
|
8035
|
+
},
|
|
8036
|
+
i
|
|
8037
|
+
)) })
|
|
8038
|
+
] })
|
|
8039
|
+
] }),
|
|
8040
|
+
/* @__PURE__ */ jsxs76("div", { className: ScMediaApproval_default.feedbackBlock, children: [
|
|
8041
|
+
/* @__PURE__ */ jsx87("div", { className: ScMediaApproval_default.label, children: feedbackLabel }),
|
|
8042
|
+
/* @__PURE__ */ jsx87("div", { className: ScMediaApproval_default.inputContainer, children: /* @__PURE__ */ jsx87(
|
|
8043
|
+
"textarea",
|
|
8044
|
+
{
|
|
8045
|
+
className: ScMediaApproval_default.textArea,
|
|
8046
|
+
value: feedbackValue ?? "",
|
|
8047
|
+
placeholder: feedbackPlaceholder,
|
|
8048
|
+
onChange: (e) => {
|
|
8049
|
+
if (onFeedbackChange) onFeedbackChange(e.target.value);
|
|
8050
|
+
}
|
|
8051
|
+
}
|
|
8052
|
+
) })
|
|
8053
|
+
] })
|
|
8054
|
+
] });
|
|
8055
|
+
};
|
|
8056
|
+
|
|
8057
|
+
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8058
|
+
import { useMemo } from "react";
|
|
8059
|
+
|
|
8060
|
+
// src/SC-mediaSelect/ScMediaSelect.module.css
|
|
8061
|
+
var ScMediaSelect_default = {
|
|
8062
|
+
scMediaSelect: "ScMediaSelect_scMediaSelect",
|
|
8063
|
+
header: "ScMediaSelect_header",
|
|
8064
|
+
countLabel: "ScMediaSelect_countLabel",
|
|
8065
|
+
actions: "ScMediaSelect_actions",
|
|
8066
|
+
linkButton: "ScMediaSelect_linkButton",
|
|
8067
|
+
divider: "ScMediaSelect_divider",
|
|
8068
|
+
grid: "ScMediaSelect_grid",
|
|
8069
|
+
item: "ScMediaSelect_item",
|
|
8070
|
+
"state-default": "ScMediaSelect_state-default",
|
|
8071
|
+
"state-selected": "ScMediaSelect_state-selected",
|
|
8072
|
+
media: "ScMediaSelect_media",
|
|
8073
|
+
checkBadge: "ScMediaSelect_checkBadge",
|
|
8074
|
+
previewButton: "ScMediaSelect_previewButton"
|
|
8075
|
+
};
|
|
8076
|
+
|
|
8077
|
+
// src/SC-mediaSelect/ScMediaSelect.tsx
|
|
8078
|
+
import { jsx as jsx88, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
8079
|
+
var CheckBadge = () => /* @__PURE__ */ jsx88("span", { className: ScMediaSelect_default.checkBadge, children: /* @__PURE__ */ jsx88("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx88(
|
|
8080
|
+
"path",
|
|
8081
|
+
{
|
|
8082
|
+
d: "M3.5 7.25L6 9.75L10.5 4.75",
|
|
8083
|
+
stroke: "var(--alias-text-and-icons-inverse, #101010)",
|
|
8084
|
+
strokeWidth: "1.75",
|
|
8085
|
+
strokeLinecap: "round",
|
|
8086
|
+
strokeLinejoin: "round"
|
|
8087
|
+
}
|
|
8088
|
+
) }) });
|
|
8089
|
+
var MaximizeIcon = () => /* @__PURE__ */ jsx88("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx88(
|
|
8090
|
+
"path",
|
|
8091
|
+
{
|
|
8092
|
+
d: "M15 3H21V9M9 21H3V15M21 3L14 10M3 21L10 14",
|
|
8093
|
+
stroke: "currentColor",
|
|
8094
|
+
strokeWidth: "2",
|
|
8095
|
+
strokeLinecap: "round",
|
|
8096
|
+
strokeLinejoin: "round"
|
|
8097
|
+
}
|
|
8098
|
+
) });
|
|
8099
|
+
var ScMediaSelect = (props) => {
|
|
8100
|
+
const {
|
|
8101
|
+
items = [],
|
|
8102
|
+
selected = [],
|
|
8103
|
+
onToggle,
|
|
8104
|
+
onSelectAll,
|
|
8105
|
+
onDeselectAll,
|
|
8106
|
+
min = 0,
|
|
8107
|
+
max,
|
|
8108
|
+
mediaType = "image",
|
|
8109
|
+
onPreview,
|
|
8110
|
+
className
|
|
8111
|
+
} = props;
|
|
8112
|
+
const total = items.length;
|
|
8113
|
+
const resolvedMax = typeof max === "number" ? max : total;
|
|
8114
|
+
const selectedSet = useMemo(() => new Set(selected), [selected]);
|
|
8115
|
+
const selectedCount = selectedSet.size;
|
|
8116
|
+
let countLabel = selectedCount + " of " + total + " selected";
|
|
8117
|
+
if (min > 0) countLabel += " (min " + min + ")";
|
|
8118
|
+
if (resolvedMax < total) countLabel += " (max " + resolvedMax + ")";
|
|
8119
|
+
return /* @__PURE__ */ jsxs77("div", { className: [ScMediaSelect_default.scMediaSelect, className].filter(Boolean).join(" "), children: [
|
|
8120
|
+
/* @__PURE__ */ jsxs77("div", { className: ScMediaSelect_default.header, children: [
|
|
8121
|
+
/* @__PURE__ */ jsx88("span", { className: ScMediaSelect_default.countLabel, children: countLabel }),
|
|
8122
|
+
/* @__PURE__ */ jsxs77("div", { className: ScMediaSelect_default.actions, children: [
|
|
8123
|
+
/* @__PURE__ */ jsx88(
|
|
8124
|
+
"button",
|
|
8125
|
+
{
|
|
8126
|
+
type: "button",
|
|
8127
|
+
className: ScMediaSelect_default.linkButton,
|
|
8128
|
+
onClick: () => onSelectAll && onSelectAll(),
|
|
8129
|
+
children: "Select all"
|
|
8130
|
+
}
|
|
8131
|
+
),
|
|
8132
|
+
/* @__PURE__ */ jsx88("span", { className: ScMediaSelect_default.divider, children: "|" }),
|
|
8133
|
+
/* @__PURE__ */ jsx88(
|
|
8134
|
+
"button",
|
|
8135
|
+
{
|
|
8136
|
+
type: "button",
|
|
8137
|
+
className: ScMediaSelect_default.linkButton,
|
|
8138
|
+
onClick: () => onDeselectAll && onDeselectAll(),
|
|
8139
|
+
children: "Deselect all"
|
|
8140
|
+
}
|
|
8141
|
+
)
|
|
8142
|
+
] })
|
|
8143
|
+
] }),
|
|
8144
|
+
/* @__PURE__ */ jsx88("div", { className: ScMediaSelect_default.grid, children: items.map((url, index) => {
|
|
8145
|
+
const isSelected = selectedSet.has(url);
|
|
8146
|
+
const itemClass = [
|
|
8147
|
+
ScMediaSelect_default.item,
|
|
8148
|
+
isSelected ? ScMediaSelect_default["state-selected"] : ScMediaSelect_default["state-default"]
|
|
8149
|
+
].filter(Boolean).join(" ");
|
|
8150
|
+
return /* @__PURE__ */ jsxs77(
|
|
8151
|
+
"div",
|
|
8152
|
+
{
|
|
8153
|
+
className: itemClass,
|
|
8154
|
+
onClick: () => onToggle && onToggle(url),
|
|
8155
|
+
role: "button",
|
|
8156
|
+
tabIndex: 0,
|
|
8157
|
+
"aria-pressed": isSelected,
|
|
8158
|
+
children: [
|
|
8159
|
+
mediaType === "video" ? /* @__PURE__ */ jsx88("video", { className: ScMediaSelect_default.media, src: url, muted: true, playsInline: true }) : /* @__PURE__ */ jsx88("img", { className: ScMediaSelect_default.media, src: url, alt: "" }),
|
|
8160
|
+
isSelected && /* @__PURE__ */ jsx88(CheckBadge, {}),
|
|
8161
|
+
onPreview && /* @__PURE__ */ jsx88(
|
|
8162
|
+
"button",
|
|
8163
|
+
{
|
|
8164
|
+
type: "button",
|
|
8165
|
+
className: ScMediaSelect_default.previewButton,
|
|
8166
|
+
onClick: (e) => {
|
|
8167
|
+
e.stopPropagation();
|
|
8168
|
+
onPreview(url);
|
|
8169
|
+
},
|
|
8170
|
+
"aria-label": "Preview",
|
|
8171
|
+
children: /* @__PURE__ */ jsx88(MaximizeIcon, {})
|
|
8172
|
+
}
|
|
8173
|
+
)
|
|
8174
|
+
]
|
|
8175
|
+
},
|
|
8176
|
+
url + "-" + index
|
|
8177
|
+
);
|
|
8178
|
+
}) })
|
|
8179
|
+
] });
|
|
8180
|
+
};
|
|
8181
|
+
|
|
8182
|
+
// src/SC-todoList/ScTodoList.tsx
|
|
8183
|
+
import { useState as useState14 } from "react";
|
|
8184
|
+
|
|
8185
|
+
// src/SC-todoList/ScTodoList.module.css
|
|
8186
|
+
var ScTodoList_default = {
|
|
8187
|
+
scTodoList: "ScTodoList_scTodoList",
|
|
8188
|
+
progress: "ScTodoList_progress",
|
|
8189
|
+
progressIcon: "ScTodoList_progressIcon",
|
|
8190
|
+
progressText: "ScTodoList_progressText",
|
|
8191
|
+
rows: "ScTodoList_rows",
|
|
8192
|
+
row: "ScTodoList_row",
|
|
8193
|
+
checkbox: "ScTodoList_checkbox",
|
|
8194
|
+
content: "ScTodoList_content",
|
|
8195
|
+
"status-completed": "ScTodoList_status-completed",
|
|
8196
|
+
editInput: "ScTodoList_editInput",
|
|
8197
|
+
actions: "ScTodoList_actions",
|
|
8198
|
+
actionButton: "ScTodoList_actionButton",
|
|
8199
|
+
actionButtonDanger: "ScTodoList_actionButtonDanger",
|
|
8200
|
+
addRow: "ScTodoList_addRow",
|
|
8201
|
+
addInput: "ScTodoList_addInput",
|
|
8202
|
+
addButton: "ScTodoList_addButton"
|
|
8203
|
+
};
|
|
8204
|
+
|
|
8205
|
+
// src/SC-todoList/ScTodoList.tsx
|
|
8206
|
+
import { jsx as jsx89, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
8207
|
+
var ScTodoList = ({
|
|
8208
|
+
items = [],
|
|
8209
|
+
onToggle,
|
|
8210
|
+
onEdit,
|
|
8211
|
+
onDelete,
|
|
8212
|
+
onAdd,
|
|
8213
|
+
addPlaceholder = "Add an item",
|
|
8214
|
+
className
|
|
8215
|
+
}) => {
|
|
8216
|
+
const [editingId, setEditingId] = useState14(null);
|
|
8217
|
+
const [editValue, setEditValue] = useState14("");
|
|
8218
|
+
const [newValue, setNewValue] = useState14("");
|
|
8219
|
+
const total = items.length;
|
|
8220
|
+
const completed = items.filter((i) => i.status === "completed").length;
|
|
8221
|
+
const startEditing = (item) => {
|
|
8222
|
+
setEditingId(item.id);
|
|
8223
|
+
setEditValue(item.content);
|
|
8224
|
+
};
|
|
8225
|
+
const commitEdit = (id) => {
|
|
8226
|
+
onEdit?.(id, editValue);
|
|
8227
|
+
setEditingId(null);
|
|
8228
|
+
setEditValue("");
|
|
8229
|
+
};
|
|
8230
|
+
const cancelEdit = () => {
|
|
8231
|
+
setEditingId(null);
|
|
8232
|
+
setEditValue("");
|
|
8233
|
+
};
|
|
8234
|
+
const commitAdd = () => {
|
|
8235
|
+
const trimmed = newValue.trim();
|
|
8236
|
+
if (trimmed.length === 0) return;
|
|
8237
|
+
onAdd?.(newValue);
|
|
8238
|
+
setNewValue("");
|
|
8239
|
+
};
|
|
8240
|
+
return /* @__PURE__ */ jsxs78("div", { className: [ScTodoList_default.scTodoList, className].filter(Boolean).join(" "), children: [
|
|
8241
|
+
total > 0 && /* @__PURE__ */ jsxs78("div", { className: ScTodoList_default.progress, children: [
|
|
8242
|
+
/* @__PURE__ */ jsx89(
|
|
8243
|
+
"svg",
|
|
8244
|
+
{
|
|
8245
|
+
className: ScTodoList_default.progressIcon,
|
|
8246
|
+
width: "14",
|
|
8247
|
+
height: "14",
|
|
8248
|
+
viewBox: "0 0 14 14",
|
|
8249
|
+
fill: "none",
|
|
8250
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8251
|
+
children: /* @__PURE__ */ jsx89(
|
|
8252
|
+
"path",
|
|
8253
|
+
{
|
|
8254
|
+
d: "M3 7L6 10L11 4",
|
|
8255
|
+
stroke: "currentColor",
|
|
8256
|
+
strokeWidth: "1.5",
|
|
8257
|
+
strokeLinecap: "round",
|
|
8258
|
+
strokeLinejoin: "round"
|
|
8259
|
+
}
|
|
8260
|
+
)
|
|
8261
|
+
}
|
|
8262
|
+
),
|
|
8263
|
+
/* @__PURE__ */ jsxs78("span", { className: ScTodoList_default.progressText, children: [
|
|
8264
|
+
completed,
|
|
8265
|
+
" of ",
|
|
8266
|
+
total,
|
|
8267
|
+
" completed"
|
|
8268
|
+
] })
|
|
8269
|
+
] }),
|
|
8270
|
+
/* @__PURE__ */ jsx89("div", { className: ScTodoList_default.rows, children: items.map((item) => {
|
|
8271
|
+
const isEditing = editingId === item.id;
|
|
8272
|
+
const isCompleted = item.status === "completed";
|
|
8273
|
+
return /* @__PURE__ */ jsxs78("div", { className: ScTodoList_default.row, children: [
|
|
8274
|
+
/* @__PURE__ */ jsx89(
|
|
8275
|
+
"button",
|
|
8276
|
+
{
|
|
8277
|
+
type: "button",
|
|
8278
|
+
className: ScTodoList_default.checkbox,
|
|
8279
|
+
"aria-label": isCompleted ? "Mark as pending" : "Mark as completed",
|
|
8280
|
+
onClick: () => onToggle?.(item.id),
|
|
8281
|
+
children: isCompleted ? /* @__PURE__ */ jsxs78(
|
|
8282
|
+
"svg",
|
|
8283
|
+
{
|
|
8284
|
+
width: "18",
|
|
8285
|
+
height: "18",
|
|
8286
|
+
viewBox: "0 0 18 18",
|
|
8287
|
+
fill: "none",
|
|
8288
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8289
|
+
children: [
|
|
8290
|
+
/* @__PURE__ */ jsx89("circle", { cx: "9", cy: "9", r: "9", fill: "var(--alias-fill-base-base, #f5f5f5)" }),
|
|
8291
|
+
/* @__PURE__ */ jsx89(
|
|
8292
|
+
"path",
|
|
8293
|
+
{
|
|
8294
|
+
d: "M5.25 9L7.75 11.5L12.75 6.5",
|
|
8295
|
+
stroke: "var(--alias-text-and-icons-inverse, #101010)",
|
|
8296
|
+
strokeWidth: "1.5",
|
|
8297
|
+
strokeLinecap: "round",
|
|
8298
|
+
strokeLinejoin: "round"
|
|
8299
|
+
}
|
|
8300
|
+
)
|
|
8301
|
+
]
|
|
8302
|
+
}
|
|
8303
|
+
) : /* @__PURE__ */ jsx89(
|
|
8304
|
+
"svg",
|
|
8305
|
+
{
|
|
8306
|
+
width: "18",
|
|
8307
|
+
height: "18",
|
|
8308
|
+
viewBox: "0 0 18 18",
|
|
8309
|
+
fill: "none",
|
|
8310
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8311
|
+
children: /* @__PURE__ */ jsx89(
|
|
8312
|
+
"circle",
|
|
8313
|
+
{
|
|
8314
|
+
cx: "9",
|
|
8315
|
+
cy: "9",
|
|
8316
|
+
r: "8.25",
|
|
8317
|
+
stroke: "var(--alias-border-default, #3e3e3e)",
|
|
8318
|
+
strokeWidth: "1.5"
|
|
8319
|
+
}
|
|
8320
|
+
)
|
|
8321
|
+
}
|
|
8322
|
+
)
|
|
8323
|
+
}
|
|
8324
|
+
),
|
|
8325
|
+
isEditing ? /* @__PURE__ */ jsx89(
|
|
8326
|
+
"input",
|
|
8327
|
+
{
|
|
8328
|
+
className: ScTodoList_default.editInput,
|
|
8329
|
+
autoFocus: true,
|
|
8330
|
+
value: editValue,
|
|
8331
|
+
onChange: (e) => setEditValue(e.target.value),
|
|
8332
|
+
onBlur: () => commitEdit(item.id),
|
|
8333
|
+
onKeyDown: (e) => {
|
|
8334
|
+
if (e.key === "Enter") {
|
|
8335
|
+
e.preventDefault();
|
|
8336
|
+
commitEdit(item.id);
|
|
8337
|
+
} else if (e.key === "Escape") {
|
|
8338
|
+
e.preventDefault();
|
|
8339
|
+
cancelEdit();
|
|
8340
|
+
}
|
|
8341
|
+
}
|
|
8342
|
+
}
|
|
8343
|
+
) : /* @__PURE__ */ jsx89(
|
|
8344
|
+
"span",
|
|
8345
|
+
{
|
|
8346
|
+
className: [
|
|
8347
|
+
ScTodoList_default.content,
|
|
8348
|
+
isCompleted ? ScTodoList_default["status-completed"] : ""
|
|
8349
|
+
].filter(Boolean).join(" "),
|
|
8350
|
+
children: item.content
|
|
8351
|
+
}
|
|
8352
|
+
),
|
|
8353
|
+
!isEditing && /* @__PURE__ */ jsxs78("div", { className: ScTodoList_default.actions, children: [
|
|
8354
|
+
/* @__PURE__ */ jsx89(
|
|
8355
|
+
"button",
|
|
8356
|
+
{
|
|
8357
|
+
type: "button",
|
|
8358
|
+
className: ScTodoList_default.actionButton,
|
|
8359
|
+
"aria-label": "Edit item",
|
|
8360
|
+
onClick: () => startEditing(item),
|
|
8361
|
+
children: /* @__PURE__ */ jsx89(
|
|
8362
|
+
"svg",
|
|
8363
|
+
{
|
|
8364
|
+
width: "16",
|
|
8365
|
+
height: "16",
|
|
8366
|
+
viewBox: "0 0 16 16",
|
|
8367
|
+
fill: "none",
|
|
8368
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8369
|
+
children: /* @__PURE__ */ jsx89(
|
|
8370
|
+
"path",
|
|
8371
|
+
{
|
|
8372
|
+
d: "M11.333 2.667a1.414 1.414 0 0 1 2 2L5.333 12.667l-2.667.667.667-2.667 8-8Z",
|
|
8373
|
+
stroke: "currentColor",
|
|
8374
|
+
strokeWidth: "1.3",
|
|
8375
|
+
strokeLinecap: "round",
|
|
8376
|
+
strokeLinejoin: "round"
|
|
8377
|
+
}
|
|
8378
|
+
)
|
|
8379
|
+
}
|
|
8380
|
+
)
|
|
8381
|
+
}
|
|
8382
|
+
),
|
|
8383
|
+
/* @__PURE__ */ jsx89(
|
|
8384
|
+
"button",
|
|
8385
|
+
{
|
|
8386
|
+
type: "button",
|
|
8387
|
+
className: [ScTodoList_default.actionButton, ScTodoList_default.actionButtonDanger].filter(Boolean).join(" "),
|
|
8388
|
+
"aria-label": "Delete item",
|
|
8389
|
+
onClick: () => onDelete?.(item.id),
|
|
8390
|
+
children: /* @__PURE__ */ jsx89(
|
|
8391
|
+
"svg",
|
|
8392
|
+
{
|
|
8393
|
+
width: "16",
|
|
8394
|
+
height: "16",
|
|
8395
|
+
viewBox: "0 0 16 16",
|
|
8396
|
+
fill: "none",
|
|
8397
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8398
|
+
children: /* @__PURE__ */ jsx89(
|
|
8399
|
+
"path",
|
|
8400
|
+
{
|
|
8401
|
+
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",
|
|
8402
|
+
stroke: "currentColor",
|
|
8403
|
+
strokeWidth: "1.3",
|
|
8404
|
+
strokeLinecap: "round",
|
|
8405
|
+
strokeLinejoin: "round"
|
|
8406
|
+
}
|
|
8407
|
+
)
|
|
8408
|
+
}
|
|
8409
|
+
)
|
|
8410
|
+
}
|
|
8411
|
+
)
|
|
8412
|
+
] })
|
|
8413
|
+
] }, item.id);
|
|
8414
|
+
}) }),
|
|
8415
|
+
/* @__PURE__ */ jsxs78("div", { className: ScTodoList_default.addRow, children: [
|
|
8416
|
+
/* @__PURE__ */ jsx89(
|
|
8417
|
+
"input",
|
|
8418
|
+
{
|
|
8419
|
+
className: ScTodoList_default.addInput,
|
|
8420
|
+
value: newValue,
|
|
8421
|
+
placeholder: addPlaceholder,
|
|
8422
|
+
onChange: (e) => setNewValue(e.target.value),
|
|
8423
|
+
onKeyDown: (e) => {
|
|
8424
|
+
if (e.key === "Enter") {
|
|
8425
|
+
e.preventDefault();
|
|
8426
|
+
commitAdd();
|
|
8427
|
+
}
|
|
8428
|
+
}
|
|
8429
|
+
}
|
|
8430
|
+
),
|
|
8431
|
+
/* @__PURE__ */ jsx89(
|
|
8432
|
+
"button",
|
|
8433
|
+
{
|
|
8434
|
+
type: "button",
|
|
8435
|
+
className: ScTodoList_default.addButton,
|
|
8436
|
+
"aria-label": "Add item",
|
|
8437
|
+
disabled: newValue.trim().length === 0,
|
|
8438
|
+
onClick: commitAdd,
|
|
8439
|
+
children: /* @__PURE__ */ jsx89(
|
|
8440
|
+
"svg",
|
|
8441
|
+
{
|
|
8442
|
+
width: "18",
|
|
8443
|
+
height: "18",
|
|
8444
|
+
viewBox: "0 0 18 18",
|
|
8445
|
+
fill: "none",
|
|
8446
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8447
|
+
children: /* @__PURE__ */ jsx89(
|
|
8448
|
+
"path",
|
|
8449
|
+
{
|
|
8450
|
+
d: "M9 4v10M4 9h10",
|
|
8451
|
+
stroke: "currentColor",
|
|
8452
|
+
strokeWidth: "1.5",
|
|
8453
|
+
strokeLinecap: "round",
|
|
8454
|
+
strokeLinejoin: "round"
|
|
8455
|
+
}
|
|
8456
|
+
)
|
|
8457
|
+
}
|
|
8458
|
+
)
|
|
8459
|
+
}
|
|
8460
|
+
)
|
|
8461
|
+
] })
|
|
8462
|
+
] });
|
|
8463
|
+
};
|
|
8464
|
+
|
|
7503
8465
|
// src/SC-Role-Mobile/ScRoleMobile.module.css
|
|
7504
8466
|
var ScRoleMobile_default = {
|
|
7505
8467
|
scRoleMobile: "ScRoleMobile_scRoleMobile",
|
|
@@ -7509,18 +8471,18 @@ var ScRoleMobile_default = {
|
|
|
7509
8471
|
};
|
|
7510
8472
|
|
|
7511
8473
|
// src/SC-Role-Mobile/ScRoleMobile.tsx
|
|
7512
|
-
import { jsx as
|
|
8474
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
7513
8475
|
var ScRoleMobile = ({
|
|
7514
8476
|
role = "admin",
|
|
7515
8477
|
className,
|
|
7516
8478
|
...props
|
|
7517
8479
|
}) => {
|
|
7518
|
-
return /* @__PURE__ */
|
|
8480
|
+
return /* @__PURE__ */ jsx90(
|
|
7519
8481
|
"div",
|
|
7520
8482
|
{
|
|
7521
8483
|
className: ScRoleMobile_default.scRoleMobile + " " + ScRoleMobile_default["role-" + role] + " " + className,
|
|
7522
8484
|
...props,
|
|
7523
|
-
children: /* @__PURE__ */
|
|
8485
|
+
children: /* @__PURE__ */ jsx90("p", { className: ScRoleMobile_default.text, children: role === "admin" ? "Admin" : "Member" })
|
|
7524
8486
|
}
|
|
7525
8487
|
);
|
|
7526
8488
|
};
|
|
@@ -7537,7 +8499,7 @@ var ScProfileV2Mobile_default = {
|
|
|
7537
8499
|
};
|
|
7538
8500
|
|
|
7539
8501
|
// src/SC-Profile-V2-Mobile/ScProfileV2Mobile.tsx
|
|
7540
|
-
import { jsx as
|
|
8502
|
+
import { jsx as jsx91, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7541
8503
|
var ScProfileV2Mobile = ({
|
|
7542
8504
|
name = "Chris Hemsworth",
|
|
7543
8505
|
email = "chris@kepler.com",
|
|
@@ -7547,17 +8509,17 @@ var ScProfileV2Mobile = ({
|
|
|
7547
8509
|
...props
|
|
7548
8510
|
}) => {
|
|
7549
8511
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
7550
|
-
const profileImage = /* @__PURE__ */
|
|
7551
|
-
return /* @__PURE__ */
|
|
8512
|
+
const profileImage = /* @__PURE__ */ jsx91("div", { className: ScProfileV2Mobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ jsx91("img", { src: imageUrl, alt: name, className: ScProfileV2Mobile_default.image }) : /* @__PURE__ */ jsx91("div", { className: ScProfileV2Mobile_default.initials, children: initials }) });
|
|
8513
|
+
return /* @__PURE__ */ jsxs79(
|
|
7552
8514
|
"div",
|
|
7553
8515
|
{
|
|
7554
8516
|
className: ScProfileV2Mobile_default.scProfileV2Mobile + " " + className,
|
|
7555
8517
|
...props,
|
|
7556
8518
|
children: [
|
|
7557
8519
|
dpPosition === "left" && profileImage,
|
|
7558
|
-
/* @__PURE__ */
|
|
7559
|
-
/* @__PURE__ */
|
|
7560
|
-
/* @__PURE__ */
|
|
8520
|
+
/* @__PURE__ */ jsxs79("div", { className: ScProfileV2Mobile_default.userInfo, children: [
|
|
8521
|
+
/* @__PURE__ */ jsx91("p", { className: ScProfileV2Mobile_default.userName, children: name }),
|
|
8522
|
+
/* @__PURE__ */ jsx91("p", { className: ScProfileV2Mobile_default.userEmail, children: email })
|
|
7561
8523
|
] }),
|
|
7562
8524
|
dpPosition === "right" && profileImage
|
|
7563
8525
|
]
|
|
@@ -7584,7 +8546,7 @@ var ScTableListMobile_default = {
|
|
|
7584
8546
|
};
|
|
7585
8547
|
|
|
7586
8548
|
// src/SC-tableList-mobile/ScTableListMobile.tsx
|
|
7587
|
-
import { jsx as
|
|
8549
|
+
import { jsx as jsx92, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
7588
8550
|
var ScTableListMobile = ({
|
|
7589
8551
|
name = "Chris Hemsworth",
|
|
7590
8552
|
email = "chris@kepler.com",
|
|
@@ -7597,25 +8559,25 @@ var ScTableListMobile = ({
|
|
|
7597
8559
|
...props
|
|
7598
8560
|
}) => {
|
|
7599
8561
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
7600
|
-
return /* @__PURE__ */
|
|
8562
|
+
return /* @__PURE__ */ jsxs80(
|
|
7601
8563
|
"div",
|
|
7602
8564
|
{
|
|
7603
8565
|
className: ScTableListMobile_default.scTableListMobile + " " + className,
|
|
7604
8566
|
onClick: onRowClick,
|
|
7605
8567
|
...props,
|
|
7606
8568
|
children: [
|
|
7607
|
-
/* @__PURE__ */
|
|
7608
|
-
/* @__PURE__ */
|
|
7609
|
-
/* @__PURE__ */
|
|
7610
|
-
/* @__PURE__ */
|
|
8569
|
+
/* @__PURE__ */ jsxs80("div", { className: ScTableListMobile_default.profileRow, children: [
|
|
8570
|
+
/* @__PURE__ */ jsxs80("div", { className: ScTableListMobile_default.userInfo, children: [
|
|
8571
|
+
/* @__PURE__ */ jsx92("p", { className: ScTableListMobile_default.userName, children: name }),
|
|
8572
|
+
/* @__PURE__ */ jsx92("p", { className: ScTableListMobile_default.userEmail, children: email })
|
|
7611
8573
|
] }),
|
|
7612
|
-
/* @__PURE__ */
|
|
8574
|
+
/* @__PURE__ */ jsx92("div", { className: ScTableListMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ jsx92("img", { src: imageUrl, alt: name, className: ScTableListMobile_default.image }) : /* @__PURE__ */ jsx92("div", { className: ScTableListMobile_default.initials, children: initials }) })
|
|
7613
8575
|
] }),
|
|
7614
|
-
/* @__PURE__ */
|
|
7615
|
-
/* @__PURE__ */
|
|
7616
|
-
/* @__PURE__ */
|
|
7617
|
-
accessIcons && accessIcons.length > 0 && /* @__PURE__ */
|
|
7618
|
-
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */
|
|
8576
|
+
/* @__PURE__ */ jsxs80("div", { className: ScTableListMobile_default.detailsRow, children: [
|
|
8577
|
+
/* @__PURE__ */ jsx92("div", { className: ScTableListMobile_default.roleBadge, children: /* @__PURE__ */ jsx92("p", { className: ScTableListMobile_default.roleText, children: role }) }),
|
|
8578
|
+
/* @__PURE__ */ jsxs80("div", { className: ScTableListMobile_default.accessInfo, children: [
|
|
8579
|
+
accessIcons && accessIcons.length > 0 && /* @__PURE__ */ jsx92("div", { className: ScTableListMobile_default.accessGroup, children: accessIcons.map((icon, i) => /* @__PURE__ */ jsx92("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) }),
|
|
8580
|
+
permissionIcons && permissionIcons.length > 0 && /* @__PURE__ */ jsx92("div", { className: ScTableListMobile_default.accessGroup, children: permissionIcons.map((icon, i) => /* @__PURE__ */ jsx92("span", { className: ScTableListMobile_default.accessIcon, children: icon }, i)) })
|
|
7619
8581
|
] })
|
|
7620
8582
|
] })
|
|
7621
8583
|
]
|
|
@@ -7643,7 +8605,7 @@ var ScWorkspaceSwitchMobile_default = {
|
|
|
7643
8605
|
};
|
|
7644
8606
|
|
|
7645
8607
|
// src/SC-workspaceSwitch-Mobile/ScWorkspaceSwitchMobile.tsx
|
|
7646
|
-
import { jsx as
|
|
8608
|
+
import { jsx as jsx93, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7647
8609
|
var ScWorkspaceSwitchMobile = ({
|
|
7648
8610
|
storeName = "Stores",
|
|
7649
8611
|
initials = "WS",
|
|
@@ -7656,24 +8618,24 @@ var ScWorkspaceSwitchMobile = ({
|
|
|
7656
8618
|
...props
|
|
7657
8619
|
}) => {
|
|
7658
8620
|
const variant = currentWs ? "current" : "other";
|
|
7659
|
-
return /* @__PURE__ */
|
|
8621
|
+
return /* @__PURE__ */ jsxs81(
|
|
7660
8622
|
"div",
|
|
7661
8623
|
{
|
|
7662
8624
|
className: ScWorkspaceSwitchMobile_default.scWorkspaceSwitchMobile + " " + ScWorkspaceSwitchMobile_default["variant-" + variant] + " " + className,
|
|
7663
8625
|
onClick,
|
|
7664
8626
|
...props,
|
|
7665
8627
|
children: [
|
|
7666
|
-
/* @__PURE__ */
|
|
7667
|
-
/* @__PURE__ */
|
|
7668
|
-
/* @__PURE__ */
|
|
7669
|
-
/* @__PURE__ */
|
|
8628
|
+
/* @__PURE__ */ jsxs81("div", { className: ScWorkspaceSwitchMobile_default.workspaceInfo, children: [
|
|
8629
|
+
/* @__PURE__ */ jsxs81("div", { className: ScWorkspaceSwitchMobile_default.wsNameRow, children: [
|
|
8630
|
+
/* @__PURE__ */ jsx93("div", { className: ScWorkspaceSwitchMobile_default.initialsBox, children: /* @__PURE__ */ jsx93("span", { className: ScWorkspaceSwitchMobile_default.initialsText, children: initials }) }),
|
|
8631
|
+
/* @__PURE__ */ jsx93("p", { className: ScWorkspaceSwitchMobile_default.storeName, children: storeName })
|
|
7670
8632
|
] }),
|
|
7671
|
-
/* @__PURE__ */
|
|
8633
|
+
/* @__PURE__ */ jsx93("div", { className: ScWorkspaceSwitchMobile_default.roleBadge, children: /* @__PURE__ */ jsx93("p", { className: ScWorkspaceSwitchMobile_default.roleText, children: role }) })
|
|
7672
8634
|
] }),
|
|
7673
|
-
/* @__PURE__ */
|
|
7674
|
-
/* @__PURE__ */
|
|
7675
|
-
/* @__PURE__ */
|
|
7676
|
-
/* @__PURE__ */
|
|
8635
|
+
/* @__PURE__ */ jsx93("div", { className: ScWorkspaceSwitchMobile_default.divider }),
|
|
8636
|
+
/* @__PURE__ */ jsxs81("div", { className: ScWorkspaceSwitchMobile_default.ownerRow, children: [
|
|
8637
|
+
/* @__PURE__ */ jsx93("div", { className: ScWorkspaceSwitchMobile_default.ownerIconContainer, children: ownerIcon && /* @__PURE__ */ jsx93("span", { className: ScWorkspaceSwitchMobile_default.ownerIcon, children: ownerIcon }) }),
|
|
8638
|
+
/* @__PURE__ */ jsx93("p", { className: ScWorkspaceSwitchMobile_default.ownerText, children: ownerId })
|
|
7677
8639
|
] })
|
|
7678
8640
|
]
|
|
7679
8641
|
}
|
|
@@ -7700,7 +8662,7 @@ var ScWorkspaceSettingsMobile_default = {
|
|
|
7700
8662
|
};
|
|
7701
8663
|
|
|
7702
8664
|
// src/SC-workspaceSettings-Mobile/ScWorkspaceSettingsMobile.tsx
|
|
7703
|
-
import { jsx as
|
|
8665
|
+
import { jsx as jsx94, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
7704
8666
|
var ScWorkspaceSettingsMobile = ({
|
|
7705
8667
|
storeName = "Stores",
|
|
7706
8668
|
initials = "WS",
|
|
@@ -7715,28 +8677,28 @@ var ScWorkspaceSettingsMobile = ({
|
|
|
7715
8677
|
...props
|
|
7716
8678
|
}) => {
|
|
7717
8679
|
const variant = currentWs ? "current" : "other";
|
|
7718
|
-
return /* @__PURE__ */
|
|
8680
|
+
return /* @__PURE__ */ jsxs82(
|
|
7719
8681
|
"div",
|
|
7720
8682
|
{
|
|
7721
8683
|
className: ScWorkspaceSettingsMobile_default.scWorkspaceSettingsMobile + " " + ScWorkspaceSettingsMobile_default["variant-" + variant] + " " + className,
|
|
7722
8684
|
onClick,
|
|
7723
8685
|
...props,
|
|
7724
8686
|
children: [
|
|
7725
|
-
/* @__PURE__ */
|
|
7726
|
-
/* @__PURE__ */
|
|
7727
|
-
/* @__PURE__ */
|
|
7728
|
-
/* @__PURE__ */
|
|
8687
|
+
/* @__PURE__ */ jsxs82("div", { className: ScWorkspaceSettingsMobile_default.workspaceInfo, children: [
|
|
8688
|
+
/* @__PURE__ */ jsxs82("div", { className: ScWorkspaceSettingsMobile_default.wsNameRow, children: [
|
|
8689
|
+
/* @__PURE__ */ jsx94("div", { className: ScWorkspaceSettingsMobile_default.initialsBox, children: /* @__PURE__ */ jsx94("span", { className: ScWorkspaceSettingsMobile_default.initialsText, children: initials }) }),
|
|
8690
|
+
/* @__PURE__ */ jsx94("p", { className: ScWorkspaceSettingsMobile_default.storeName, children: storeName })
|
|
7729
8691
|
] }),
|
|
7730
|
-
/* @__PURE__ */
|
|
8692
|
+
/* @__PURE__ */ jsx94("div", { className: ScWorkspaceSettingsMobile_default.roleBadge, children: /* @__PURE__ */ jsx94("p", { className: ScWorkspaceSettingsMobile_default.roleText, children: role }) })
|
|
7731
8693
|
] }),
|
|
7732
|
-
/* @__PURE__ */
|
|
7733
|
-
/* @__PURE__ */
|
|
7734
|
-
/* @__PURE__ */
|
|
7735
|
-
/* @__PURE__ */
|
|
8694
|
+
/* @__PURE__ */ jsx94("div", { className: ScWorkspaceSettingsMobile_default.divider }),
|
|
8695
|
+
/* @__PURE__ */ jsxs82("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
8696
|
+
/* @__PURE__ */ jsx94("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: ownerIcon && /* @__PURE__ */ jsx94("span", { className: ScWorkspaceSettingsMobile_default.icon, children: ownerIcon }) }),
|
|
8697
|
+
/* @__PURE__ */ jsx94("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: ownerId })
|
|
7736
8698
|
] }),
|
|
7737
|
-
/* @__PURE__ */
|
|
7738
|
-
/* @__PURE__ */
|
|
7739
|
-
/* @__PURE__ */
|
|
8699
|
+
/* @__PURE__ */ jsxs82("div", { className: ScWorkspaceSettingsMobile_default.infoRow, children: [
|
|
8700
|
+
/* @__PURE__ */ jsx94("div", { className: ScWorkspaceSettingsMobile_default.iconContainer, children: teamIcon && /* @__PURE__ */ jsx94("span", { className: ScWorkspaceSettingsMobile_default.icon, children: teamIcon }) }),
|
|
8701
|
+
/* @__PURE__ */ jsx94("p", { className: ScWorkspaceSettingsMobile_default.infoText, children: teamCount })
|
|
7740
8702
|
] })
|
|
7741
8703
|
]
|
|
7742
8704
|
}
|
|
@@ -7759,7 +8721,7 @@ var ScMobileTopNav_default = {
|
|
|
7759
8721
|
};
|
|
7760
8722
|
|
|
7761
8723
|
// src/SC-MobileTopNav/ScMobileTopNav.tsx
|
|
7762
|
-
import { Fragment as
|
|
8724
|
+
import { Fragment as Fragment23, jsx as jsx95, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
7763
8725
|
var ScMobileTopNav = ({
|
|
7764
8726
|
type = "home",
|
|
7765
8727
|
searchIcon = false,
|
|
@@ -7782,22 +8744,22 @@ var ScMobileTopNav = ({
|
|
|
7782
8744
|
}) => {
|
|
7783
8745
|
const hasBorder = type === "chat" || type === "inApp";
|
|
7784
8746
|
const showSearch = type === "inApp" && searchIcon && search;
|
|
7785
|
-
return /* @__PURE__ */
|
|
8747
|
+
return /* @__PURE__ */ jsxs83(
|
|
7786
8748
|
"div",
|
|
7787
8749
|
{
|
|
7788
8750
|
className: ScMobileTopNav_default.scMobileTopNav + " " + (hasBorder ? ScMobileTopNav_default.withBorder : "") + " " + className,
|
|
7789
8751
|
...props,
|
|
7790
8752
|
children: [
|
|
7791
|
-
type === "home" && /* @__PURE__ */
|
|
7792
|
-
type === "chat" && /* @__PURE__ */
|
|
7793
|
-
/* @__PURE__ */
|
|
7794
|
-
/* @__PURE__ */
|
|
7795
|
-
/* @__PURE__ */
|
|
8753
|
+
type === "home" && /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
8754
|
+
type === "chat" && /* @__PURE__ */ jsxs83(Fragment23, { children: [
|
|
8755
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
8756
|
+
/* @__PURE__ */ jsx95("p", { className: ScMobileTopNav_default.chatTitle, children: chatTitle }),
|
|
8757
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMoreClick, children: moreIcon || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
7796
8758
|
] }),
|
|
7797
|
-
showSearch && /* @__PURE__ */
|
|
7798
|
-
/* @__PURE__ */
|
|
7799
|
-
/* @__PURE__ */
|
|
7800
|
-
/* @__PURE__ */
|
|
8759
|
+
showSearch && /* @__PURE__ */ jsxs83(Fragment23, { children: [
|
|
8760
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.searchRow, children: /* @__PURE__ */ jsxs83("div", { className: ScMobileTopNav_default.searchInputContainer, children: [
|
|
8761
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconContainer, onClick: onSearchClick, children: searchIconElement || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
8762
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.searchInput, children: /* @__PURE__ */ jsx95(
|
|
7801
8763
|
"input",
|
|
7802
8764
|
{
|
|
7803
8765
|
type: "text",
|
|
@@ -7808,17 +8770,17 @@ var ScMobileTopNav = ({
|
|
|
7808
8770
|
}
|
|
7809
8771
|
) })
|
|
7810
8772
|
] }) }),
|
|
7811
|
-
/* @__PURE__ */
|
|
8773
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconContainer, onClick: onCloseClick, children: closeIcon || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) })
|
|
7812
8774
|
] }),
|
|
7813
|
-
type === "inApp" && !search && /* @__PURE__ */
|
|
7814
|
-
/* @__PURE__ */
|
|
7815
|
-
/* @__PURE__ */
|
|
7816
|
-
/* @__PURE__ */
|
|
8775
|
+
type === "inApp" && !search && /* @__PURE__ */ jsxs83(Fragment23, { children: [
|
|
8776
|
+
/* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconContainer, onClick: onMenuClick, children: menuIcon || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) }),
|
|
8777
|
+
/* @__PURE__ */ jsx95("p", { className: ScMobileTopNav_default.heading, children: heading }),
|
|
8778
|
+
/* @__PURE__ */ jsx95(
|
|
7817
8779
|
"div",
|
|
7818
8780
|
{
|
|
7819
8781
|
className: ScMobileTopNav_default.iconContainer + " " + (!searchIcon ? ScMobileTopNav_default.hidden : ""),
|
|
7820
8782
|
onClick: onSearchClick,
|
|
7821
|
-
children: searchIcon ? searchIconElement || /* @__PURE__ */
|
|
8783
|
+
children: searchIcon ? searchIconElement || /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder }) : /* @__PURE__ */ jsx95("div", { className: ScMobileTopNav_default.iconPlaceholder })
|
|
7822
8784
|
}
|
|
7823
8785
|
)
|
|
7824
8786
|
] })
|
|
@@ -7839,7 +8801,7 @@ var ScMobileBottomAction_default = {
|
|
|
7839
8801
|
};
|
|
7840
8802
|
|
|
7841
8803
|
// src/SC-MobileBottomAction/ScMobileBottomAction.tsx
|
|
7842
|
-
import { jsx as
|
|
8804
|
+
import { jsx as jsx96, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
7843
8805
|
var ScMobileBottomAction = ({
|
|
7844
8806
|
text = "Save Changes",
|
|
7845
8807
|
disabled = false,
|
|
@@ -7851,28 +8813,28 @@ var ScMobileBottomAction = ({
|
|
|
7851
8813
|
...props
|
|
7852
8814
|
}) => {
|
|
7853
8815
|
const isTwoButton = !!secondaryText;
|
|
7854
|
-
return /* @__PURE__ */
|
|
8816
|
+
return /* @__PURE__ */ jsxs84(
|
|
7855
8817
|
"div",
|
|
7856
8818
|
{
|
|
7857
8819
|
className: ScMobileBottomAction_default.scMobileBottomAction + (isTwoButton ? " " + ScMobileBottomAction_default.twoButton : "") + " " + className,
|
|
7858
8820
|
...props,
|
|
7859
8821
|
children: [
|
|
7860
|
-
isTwoButton && /* @__PURE__ */
|
|
8822
|
+
isTwoButton && /* @__PURE__ */ jsx96(
|
|
7861
8823
|
"button",
|
|
7862
8824
|
{
|
|
7863
8825
|
className: ScMobileBottomAction_default.outlineButton + " " + (secondaryDisabled ? ScMobileBottomAction_default.disabled : ""),
|
|
7864
8826
|
onClick: onSecondaryClick,
|
|
7865
8827
|
disabled: secondaryDisabled,
|
|
7866
|
-
children: /* @__PURE__ */
|
|
8828
|
+
children: /* @__PURE__ */ jsx96("span", { className: ScMobileBottomAction_default.outlineButtonText, children: secondaryText })
|
|
7867
8829
|
}
|
|
7868
8830
|
),
|
|
7869
|
-
/* @__PURE__ */
|
|
8831
|
+
/* @__PURE__ */ jsx96(
|
|
7870
8832
|
"button",
|
|
7871
8833
|
{
|
|
7872
8834
|
className: ScMobileBottomAction_default.button + " " + (disabled ? ScMobileBottomAction_default.disabled : ""),
|
|
7873
8835
|
onClick,
|
|
7874
8836
|
disabled,
|
|
7875
|
-
children: /* @__PURE__ */
|
|
8837
|
+
children: /* @__PURE__ */ jsx96("span", { className: ScMobileBottomAction_default.buttonText, children: text })
|
|
7876
8838
|
}
|
|
7877
8839
|
)
|
|
7878
8840
|
]
|
|
@@ -7890,7 +8852,7 @@ var ScPopUpMenu_default = {
|
|
|
7890
8852
|
};
|
|
7891
8853
|
|
|
7892
8854
|
// src/SC-PopUpMenu/ScPopUpMenu.tsx
|
|
7893
|
-
import { jsx as
|
|
8855
|
+
import { jsx as jsx97, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
7894
8856
|
var ScPopUpMenu = ({
|
|
7895
8857
|
menu = "Options",
|
|
7896
8858
|
state = "default",
|
|
@@ -7899,15 +8861,15 @@ var ScPopUpMenu = ({
|
|
|
7899
8861
|
className,
|
|
7900
8862
|
...props
|
|
7901
8863
|
}) => {
|
|
7902
|
-
return /* @__PURE__ */
|
|
8864
|
+
return /* @__PURE__ */ jsxs85(
|
|
7903
8865
|
"div",
|
|
7904
8866
|
{
|
|
7905
8867
|
className: ScPopUpMenu_default.scPopUpMenu + " " + ScPopUpMenu_default["state-" + state] + " " + className,
|
|
7906
8868
|
onClick,
|
|
7907
8869
|
...props,
|
|
7908
8870
|
children: [
|
|
7909
|
-
icon && /* @__PURE__ */
|
|
7910
|
-
/* @__PURE__ */
|
|
8871
|
+
icon && /* @__PURE__ */ jsx97("span", { className: ScPopUpMenu_default.icon, children: icon }),
|
|
8872
|
+
/* @__PURE__ */ jsx97("p", { className: ScPopUpMenu_default.menuText, children: menu })
|
|
7911
8873
|
]
|
|
7912
8874
|
}
|
|
7913
8875
|
);
|
|
@@ -7933,7 +8895,7 @@ var ScReferralCardMobile_default = {
|
|
|
7933
8895
|
};
|
|
7934
8896
|
|
|
7935
8897
|
// src/SC-referralCard-Mobile/ScReferralCardMobile.tsx
|
|
7936
|
-
import { jsx as
|
|
8898
|
+
import { jsx as jsx98, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
7937
8899
|
var ScReferralCardMobile = ({
|
|
7938
8900
|
name = "Chris Hemsworth",
|
|
7939
8901
|
email = "chris@kepler.com",
|
|
@@ -7946,27 +8908,27 @@ var ScReferralCardMobile = ({
|
|
|
7946
8908
|
...props
|
|
7947
8909
|
}) => {
|
|
7948
8910
|
const initials = name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
7949
|
-
return /* @__PURE__ */
|
|
8911
|
+
return /* @__PURE__ */ jsxs86(
|
|
7950
8912
|
"div",
|
|
7951
8913
|
{
|
|
7952
8914
|
className: ScReferralCardMobile_default.scReferralCardMobile + " " + className,
|
|
7953
8915
|
onClick,
|
|
7954
8916
|
...props,
|
|
7955
8917
|
children: [
|
|
7956
|
-
/* @__PURE__ */
|
|
7957
|
-
/* @__PURE__ */
|
|
7958
|
-
/* @__PURE__ */
|
|
7959
|
-
/* @__PURE__ */
|
|
7960
|
-
/* @__PURE__ */
|
|
7961
|
-
/* @__PURE__ */
|
|
8918
|
+
/* @__PURE__ */ jsxs86("div", { className: ScReferralCardMobile_default.userRow, children: [
|
|
8919
|
+
/* @__PURE__ */ jsxs86("div", { className: ScReferralCardMobile_default.profileSection, children: [
|
|
8920
|
+
/* @__PURE__ */ jsx98("div", { className: ScReferralCardMobile_default.profileImage, children: imageUrl ? /* @__PURE__ */ jsx98("img", { src: imageUrl, alt: name, className: ScReferralCardMobile_default.image }) : /* @__PURE__ */ jsx98("div", { className: ScReferralCardMobile_default.initials, children: initials }) }),
|
|
8921
|
+
/* @__PURE__ */ jsxs86("div", { className: ScReferralCardMobile_default.userInfo, children: [
|
|
8922
|
+
/* @__PURE__ */ jsx98("p", { className: ScReferralCardMobile_default.userName, children: name }),
|
|
8923
|
+
/* @__PURE__ */ jsx98("p", { className: ScReferralCardMobile_default.userEmail, children: email })
|
|
7962
8924
|
] })
|
|
7963
8925
|
] }),
|
|
7964
|
-
/* @__PURE__ */
|
|
8926
|
+
/* @__PURE__ */ jsx98("div", { className: ScReferralCardMobile_default.badge, children: /* @__PURE__ */ jsx98("p", { className: ScReferralCardMobile_default.badgeText, children: badge }) })
|
|
7965
8927
|
] }),
|
|
7966
|
-
/* @__PURE__ */
|
|
7967
|
-
/* @__PURE__ */
|
|
7968
|
-
/* @__PURE__ */
|
|
7969
|
-
/* @__PURE__ */
|
|
8928
|
+
/* @__PURE__ */ jsx98("div", { className: ScReferralCardMobile_default.divider }),
|
|
8929
|
+
/* @__PURE__ */ jsxs86("div", { className: ScReferralCardMobile_default.detailsRow, children: [
|
|
8930
|
+
/* @__PURE__ */ jsx98("p", { className: ScReferralCardMobile_default.dateText, children: date }),
|
|
8931
|
+
/* @__PURE__ */ jsx98("p", { className: ScReferralCardMobile_default.creditsText, children: credits })
|
|
7970
8932
|
] })
|
|
7971
8933
|
]
|
|
7972
8934
|
}
|
|
@@ -7983,19 +8945,19 @@ var InvoiceHistoryMobile_default = {
|
|
|
7983
8945
|
};
|
|
7984
8946
|
|
|
7985
8947
|
// src/SC-InvoiceHistoryMobile/InvoiceHistoryMobile.tsx
|
|
7986
|
-
import { jsx as
|
|
8948
|
+
import { jsx as jsx99, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
7987
8949
|
var InvoiceHistoryMobile = ({
|
|
7988
8950
|
invoiceId = "# INV-2800-2026",
|
|
7989
8951
|
date = "Nov 9th, 2025",
|
|
7990
8952
|
amount = "\u20B9320.89",
|
|
7991
8953
|
className
|
|
7992
8954
|
}) => {
|
|
7993
|
-
return /* @__PURE__ */
|
|
7994
|
-
/* @__PURE__ */
|
|
7995
|
-
/* @__PURE__ */
|
|
7996
|
-
/* @__PURE__ */
|
|
8955
|
+
return /* @__PURE__ */ jsxs87("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
8956
|
+
/* @__PURE__ */ jsxs87("div", { className: InvoiceHistoryMobile_default.info, children: [
|
|
8957
|
+
/* @__PURE__ */ jsx99("div", { className: InvoiceHistoryMobile_default.invoiceId, children: invoiceId }),
|
|
8958
|
+
/* @__PURE__ */ jsx99("div", { className: InvoiceHistoryMobile_default.date, children: date })
|
|
7997
8959
|
] }),
|
|
7998
|
-
/* @__PURE__ */
|
|
8960
|
+
/* @__PURE__ */ jsx99("div", { className: InvoiceHistoryMobile_default.amount, children: amount })
|
|
7999
8961
|
] });
|
|
8000
8962
|
};
|
|
8001
8963
|
|
|
@@ -8013,7 +8975,7 @@ var UsageHistoryMobile_default = {
|
|
|
8013
8975
|
};
|
|
8014
8976
|
|
|
8015
8977
|
// src/SC-UsageHistoryMobile/UsageHistoryMobile.tsx
|
|
8016
|
-
import { jsx as
|
|
8978
|
+
import { jsx as jsx100, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
8017
8979
|
var UsageHistoryMobile = ({
|
|
8018
8980
|
serviceName = "Artifax Generation",
|
|
8019
8981
|
credits = "50",
|
|
@@ -8022,18 +8984,18 @@ var UsageHistoryMobile = ({
|
|
|
8022
8984
|
balance = "84,902",
|
|
8023
8985
|
className
|
|
8024
8986
|
}) => {
|
|
8025
|
-
return /* @__PURE__ */
|
|
8026
|
-
/* @__PURE__ */
|
|
8027
|
-
/* @__PURE__ */
|
|
8028
|
-
/* @__PURE__ */
|
|
8987
|
+
return /* @__PURE__ */ jsxs88("div", { className: UsageHistoryMobile_default.usageHistoryMobile + " " + (className ?? ""), children: [
|
|
8988
|
+
/* @__PURE__ */ jsxs88("div", { className: UsageHistoryMobile_default.row1, children: [
|
|
8989
|
+
/* @__PURE__ */ jsx100("span", { className: UsageHistoryMobile_default.serviceName, children: serviceName }),
|
|
8990
|
+
/* @__PURE__ */ jsx100("span", { className: UsageHistoryMobile_default.credits, children: credits })
|
|
8029
8991
|
] }),
|
|
8030
|
-
/* @__PURE__ */
|
|
8031
|
-
/* @__PURE__ */
|
|
8032
|
-
/* @__PURE__ */
|
|
8033
|
-
/* @__PURE__ */
|
|
8034
|
-
/* @__PURE__ */
|
|
8992
|
+
/* @__PURE__ */ jsxs88("div", { className: UsageHistoryMobile_default.row2, children: [
|
|
8993
|
+
/* @__PURE__ */ jsxs88("div", { className: UsageHistoryMobile_default.metaLeft, children: [
|
|
8994
|
+
/* @__PURE__ */ jsx100("span", { className: UsageHistoryMobile_default.metaText, children: userName }),
|
|
8995
|
+
/* @__PURE__ */ jsx100("div", { className: UsageHistoryMobile_default.divider }),
|
|
8996
|
+
/* @__PURE__ */ jsx100("span", { className: UsageHistoryMobile_default.metaText, children: date })
|
|
8035
8997
|
] }),
|
|
8036
|
-
/* @__PURE__ */
|
|
8998
|
+
/* @__PURE__ */ jsx100("span", { className: UsageHistoryMobile_default.balance, children: balance })
|
|
8037
8999
|
] })
|
|
8038
9000
|
] });
|
|
8039
9001
|
};
|
|
@@ -8057,7 +9019,7 @@ var ScWorkspaceSwitchMobileV2_default = {
|
|
|
8057
9019
|
};
|
|
8058
9020
|
|
|
8059
9021
|
// src/SC-WorkspaceSwitchMobile-V2/ScWorkspaceSwitchMobileV2.tsx
|
|
8060
|
-
import { jsx as
|
|
9022
|
+
import { jsx as jsx101, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
8061
9023
|
var ScWorkspaceSwitchMobileV2 = ({
|
|
8062
9024
|
wsName = "Workspace name is kepler",
|
|
8063
9025
|
initials = "WS",
|
|
@@ -8070,14 +9032,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
8070
9032
|
className,
|
|
8071
9033
|
...props
|
|
8072
9034
|
}) => {
|
|
8073
|
-
return /* @__PURE__ */
|
|
9035
|
+
return /* @__PURE__ */ jsx101(
|
|
8074
9036
|
"div",
|
|
8075
9037
|
{
|
|
8076
9038
|
className: ScWorkspaceSwitchMobileV2_default.scWorkspaceSwitchMobileV2 + " " + ScWorkspaceSwitchMobileV2_default["type-" + type] + " " + className,
|
|
8077
9039
|
onClick,
|
|
8078
9040
|
...props,
|
|
8079
|
-
children: /* @__PURE__ */
|
|
8080
|
-
/* @__PURE__ */
|
|
9041
|
+
children: /* @__PURE__ */ jsxs89("div", { className: ScWorkspaceSwitchMobileV2_default.workspaceInfo, children: [
|
|
9042
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSwitchMobileV2_default.dpContainer, children: /* @__PURE__ */ jsx101(
|
|
8081
9043
|
ScDp,
|
|
8082
9044
|
{
|
|
8083
9045
|
type: imageUrl ? "image" : "initial",
|
|
@@ -8091,14 +9053,14 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
8091
9053
|
}
|
|
8092
9054
|
}
|
|
8093
9055
|
) }),
|
|
8094
|
-
/* @__PURE__ */
|
|
8095
|
-
/* @__PURE__ */
|
|
8096
|
-
/* @__PURE__ */
|
|
8097
|
-
/* @__PURE__ */
|
|
8098
|
-
/* @__PURE__ */
|
|
8099
|
-
/* @__PURE__ */
|
|
8100
|
-
/* @__PURE__ */
|
|
8101
|
-
/* @__PURE__ */
|
|
9056
|
+
/* @__PURE__ */ jsxs89("div", { className: ScWorkspaceSwitchMobileV2_default.textContainer, children: [
|
|
9057
|
+
/* @__PURE__ */ jsx101("p", { className: ScWorkspaceSwitchMobileV2_default.wsName, children: wsName }),
|
|
9058
|
+
/* @__PURE__ */ jsxs89("div", { className: ScWorkspaceSwitchMobileV2_default.userDetails, children: [
|
|
9059
|
+
/* @__PURE__ */ jsx101("span", { className: ScWorkspaceSwitchMobileV2_default.roleText + (role === "Member" ? " " + ScWorkspaceSwitchMobileV2_default.roleMember : ""), children: role }),
|
|
9060
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9061
|
+
/* @__PURE__ */ jsx101("span", { className: ScWorkspaceSwitchMobileV2_default.planText, children: plan }),
|
|
9062
|
+
/* @__PURE__ */ jsx101("div", { className: ScWorkspaceSwitchMobileV2_default.dot }),
|
|
9063
|
+
/* @__PURE__ */ jsx101("span", { className: ScWorkspaceSwitchMobileV2_default.ownerText, children: ownerId })
|
|
8102
9064
|
] })
|
|
8103
9065
|
] })
|
|
8104
9066
|
] })
|
|
@@ -8107,7 +9069,7 @@ var ScWorkspaceSwitchMobileV2 = ({
|
|
|
8107
9069
|
};
|
|
8108
9070
|
|
|
8109
9071
|
// src/SC-imageField/ScImageField.tsx
|
|
8110
|
-
import { useRef as
|
|
9072
|
+
import { useRef as useRef5 } from "react";
|
|
8111
9073
|
|
|
8112
9074
|
// src/SC-imageField/ScImageField.module.css
|
|
8113
9075
|
var ScImageField_default = {
|
|
@@ -8125,7 +9087,7 @@ var ScImageField_default = {
|
|
|
8125
9087
|
|
|
8126
9088
|
// src/SC-imageField/ScImageField.tsx
|
|
8127
9089
|
import { SiconUpload as SiconUpload2, SiconDelete as SiconDelete2 } from "@streamoid/icons";
|
|
8128
|
-
import { jsx as
|
|
9090
|
+
import { jsx as jsx102, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
8129
9091
|
var ScImageField = ({
|
|
8130
9092
|
label = "Label",
|
|
8131
9093
|
imagePreview,
|
|
@@ -8134,7 +9096,7 @@ var ScImageField = ({
|
|
|
8134
9096
|
onRemove,
|
|
8135
9097
|
className
|
|
8136
9098
|
}) => {
|
|
8137
|
-
const inputRef =
|
|
9099
|
+
const inputRef = useRef5(null);
|
|
8138
9100
|
const hasImage = !!imagePreview;
|
|
8139
9101
|
function handleClick() {
|
|
8140
9102
|
if (!hasImage) {
|
|
@@ -8148,8 +9110,8 @@ var ScImageField = ({
|
|
|
8148
9110
|
}
|
|
8149
9111
|
e.target.value = "";
|
|
8150
9112
|
}
|
|
8151
|
-
return /* @__PURE__ */
|
|
8152
|
-
/* @__PURE__ */
|
|
9113
|
+
return /* @__PURE__ */ jsxs90("div", { className: ScImageField_default.scImageField + " " + (className ?? ""), children: [
|
|
9114
|
+
/* @__PURE__ */ jsx102(
|
|
8153
9115
|
"input",
|
|
8154
9116
|
{
|
|
8155
9117
|
ref: inputRef,
|
|
@@ -8159,9 +9121,9 @@ var ScImageField = ({
|
|
|
8159
9121
|
onChange: handleChange
|
|
8160
9122
|
}
|
|
8161
9123
|
),
|
|
8162
|
-
/* @__PURE__ */
|
|
8163
|
-
hasImage ? /* @__PURE__ */
|
|
8164
|
-
/* @__PURE__ */
|
|
9124
|
+
/* @__PURE__ */ jsx102("div", { className: ScImageField_default.labelContainer, children: /* @__PURE__ */ jsx102("div", { className: ScImageField_default.label, children: label }) }),
|
|
9125
|
+
hasImage ? /* @__PURE__ */ jsxs90("div", { className: ScImageField_default.previewArea, children: [
|
|
9126
|
+
/* @__PURE__ */ jsx102(
|
|
8165
9127
|
"img",
|
|
8166
9128
|
{
|
|
8167
9129
|
className: ScImageField_default.previewImage,
|
|
@@ -8169,8 +9131,8 @@ var ScImageField = ({
|
|
|
8169
9131
|
alt: "preview"
|
|
8170
9132
|
}
|
|
8171
9133
|
),
|
|
8172
|
-
/* @__PURE__ */
|
|
8173
|
-
/* @__PURE__ */
|
|
9134
|
+
/* @__PURE__ */ jsx102("span", { className: ScImageField_default.fileName, children: imageName || "image" }),
|
|
9135
|
+
/* @__PURE__ */ jsx102(
|
|
8174
9136
|
SiconDelete2,
|
|
8175
9137
|
{
|
|
8176
9138
|
className: ScImageField_default.removeIcon,
|
|
@@ -8181,9 +9143,9 @@ var ScImageField = ({
|
|
|
8181
9143
|
}
|
|
8182
9144
|
}
|
|
8183
9145
|
)
|
|
8184
|
-
] }) : /* @__PURE__ */
|
|
8185
|
-
/* @__PURE__ */
|
|
8186
|
-
/* @__PURE__ */
|
|
9146
|
+
] }) : /* @__PURE__ */ jsxs90("div", { className: ScImageField_default.uploadArea, onClick: handleClick, children: [
|
|
9147
|
+
/* @__PURE__ */ jsx102(SiconUpload2, { className: ScImageField_default.uploadIcon, color: "var(--alias-text-and-icons-secondary, #dadada)" }),
|
|
9148
|
+
/* @__PURE__ */ jsx102("span", { className: ScImageField_default.uploadText, children: "Click to upload" })
|
|
8187
9149
|
] })
|
|
8188
9150
|
] });
|
|
8189
9151
|
};
|
|
@@ -8197,7 +9159,7 @@ var ScSettingsTabComp_default = {
|
|
|
8197
9159
|
};
|
|
8198
9160
|
|
|
8199
9161
|
// src/SC-settingsTabComp/ScSettingsTabComp.tsx
|
|
8200
|
-
import { jsx as
|
|
9162
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
8201
9163
|
var ScSettingsTabComp = ({
|
|
8202
9164
|
tabName = "Tab",
|
|
8203
9165
|
active = false,
|
|
@@ -8205,12 +9167,12 @@ var ScSettingsTabComp = ({
|
|
|
8205
9167
|
className
|
|
8206
9168
|
}) => {
|
|
8207
9169
|
const variantsClassName = ScSettingsTabComp_default["active-" + active];
|
|
8208
|
-
return /* @__PURE__ */
|
|
9170
|
+
return /* @__PURE__ */ jsx103(
|
|
8209
9171
|
"div",
|
|
8210
9172
|
{
|
|
8211
9173
|
className: ScSettingsTabComp_default.scSettingsTabComp + " " + variantsClassName + " " + (className ?? ""),
|
|
8212
9174
|
onClick,
|
|
8213
|
-
children: /* @__PURE__ */
|
|
9175
|
+
children: /* @__PURE__ */ jsx103("span", { className: ScSettingsTabComp_default.tabText, children: tabName })
|
|
8214
9176
|
}
|
|
8215
9177
|
);
|
|
8216
9178
|
};
|
|
@@ -8230,7 +9192,7 @@ var ScCreditsUsageCardMobile_default = {
|
|
|
8230
9192
|
|
|
8231
9193
|
// src/SC-Credits usage card-Mobile/ScCreditsUsageCardMobile.tsx
|
|
8232
9194
|
import { SiconCredits as SiconCredits2 } from "@streamoid/icons";
|
|
8233
|
-
import { jsx as
|
|
9195
|
+
import { jsx as jsx104, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
8234
9196
|
var ScCreditsUsageCardMobile = ({
|
|
8235
9197
|
usageLabel = "Credits usage",
|
|
8236
9198
|
usageText = "8,450 / 30,000",
|
|
@@ -8240,23 +9202,23 @@ var ScCreditsUsageCardMobile = ({
|
|
|
8240
9202
|
className,
|
|
8241
9203
|
...props
|
|
8242
9204
|
}) => {
|
|
8243
|
-
return /* @__PURE__ */
|
|
8244
|
-
/* @__PURE__ */
|
|
8245
|
-
/* @__PURE__ */
|
|
9205
|
+
return /* @__PURE__ */ jsxs91("div", { className: ScCreditsUsageCardMobile_default.scCreditsUsageCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9206
|
+
/* @__PURE__ */ jsxs91("div", { className: ScCreditsUsageCardMobile_default.header, children: [
|
|
9207
|
+
/* @__PURE__ */ jsx104(
|
|
8246
9208
|
SiconCredits2,
|
|
8247
9209
|
{
|
|
8248
9210
|
className: ScCreditsUsageCardMobile_default.headerIcon,
|
|
8249
9211
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
8250
9212
|
}
|
|
8251
9213
|
),
|
|
8252
|
-
/* @__PURE__ */
|
|
9214
|
+
/* @__PURE__ */ jsx104("span", { className: ScCreditsUsageCardMobile_default.headerLabel, children: usageLabel })
|
|
8253
9215
|
] }),
|
|
8254
|
-
/* @__PURE__ */
|
|
8255
|
-
/* @__PURE__ */
|
|
8256
|
-
/* @__PURE__ */
|
|
8257
|
-
/* @__PURE__ */
|
|
9216
|
+
/* @__PURE__ */ jsx104("div", { className: ScCreditsUsageCardMobile_default.divider }),
|
|
9217
|
+
/* @__PURE__ */ jsxs91("div", { className: ScCreditsUsageCardMobile_default.usageInfo, children: [
|
|
9218
|
+
/* @__PURE__ */ jsx104("div", { className: ScCreditsUsageCardMobile_default.usageText, children: usageText }),
|
|
9219
|
+
/* @__PURE__ */ jsx104("div", { className: ScCreditsUsageCardMobile_default.remainingText, children: remainingText })
|
|
8258
9220
|
] }),
|
|
8259
|
-
/* @__PURE__ */
|
|
9221
|
+
/* @__PURE__ */ jsx104(
|
|
8260
9222
|
ScButton,
|
|
8261
9223
|
{
|
|
8262
9224
|
text: buyButtonText,
|
|
@@ -8298,7 +9260,7 @@ var ScPlanDetailsCardMobile_default = {
|
|
|
8298
9260
|
|
|
8299
9261
|
// src/SC-Plan details card-Mobile/ScPlanDetailsCardMobile.tsx
|
|
8300
9262
|
import { SiconBilling as SiconBilling4 } from "@streamoid/icons";
|
|
8301
|
-
import { Fragment as
|
|
9263
|
+
import { Fragment as Fragment24, jsx as jsx105, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
8302
9264
|
var ScPlanDetailsCardMobile = ({
|
|
8303
9265
|
planName = "Pro",
|
|
8304
9266
|
planCredits = "30,000 credits",
|
|
@@ -8312,20 +9274,20 @@ var ScPlanDetailsCardMobile = ({
|
|
|
8312
9274
|
className,
|
|
8313
9275
|
...props
|
|
8314
9276
|
}) => {
|
|
8315
|
-
return /* @__PURE__ */
|
|
8316
|
-
/* @__PURE__ */
|
|
8317
|
-
/* @__PURE__ */
|
|
8318
|
-
/* @__PURE__ */
|
|
9277
|
+
return /* @__PURE__ */ jsxs92("div", { className: ScPlanDetailsCardMobile_default.scPlanDetailsCardMobile + " " + (className ?? ""), ...props, children: [
|
|
9278
|
+
/* @__PURE__ */ jsxs92("div", { className: ScPlanDetailsCardMobile_default.planHeader, children: [
|
|
9279
|
+
/* @__PURE__ */ jsxs92("div", { className: ScPlanDetailsCardMobile_default.headerLeft, children: [
|
|
9280
|
+
/* @__PURE__ */ jsx105(
|
|
8319
9281
|
SiconBilling4,
|
|
8320
9282
|
{
|
|
8321
9283
|
className: ScPlanDetailsCardMobile_default.headerIcon,
|
|
8322
9284
|
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)"
|
|
8323
9285
|
}
|
|
8324
9286
|
),
|
|
8325
|
-
/* @__PURE__ */
|
|
9287
|
+
/* @__PURE__ */ jsx105("span", { className: ScPlanDetailsCardMobile_default.headerLabel, children: currentPlanLabel })
|
|
8326
9288
|
] }),
|
|
8327
|
-
/* @__PURE__ */
|
|
8328
|
-
/* @__PURE__ */
|
|
9289
|
+
/* @__PURE__ */ jsx105("div", { className: ScPlanDetailsCardMobile_default.badgeGroup, children: isLoading ? /* @__PURE__ */ jsx105("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.badgeSkeleton}` }) : /* @__PURE__ */ jsxs92(Fragment24, { children: [
|
|
9290
|
+
/* @__PURE__ */ jsx105(
|
|
8329
9291
|
ScBadges,
|
|
8330
9292
|
{
|
|
8331
9293
|
text: badgeText,
|
|
@@ -8334,28 +9296,28 @@ var ScPlanDetailsCardMobile = ({
|
|
|
8334
9296
|
className: ScPlanDetailsCardMobile_default.scBadgesInstance
|
|
8335
9297
|
}
|
|
8336
9298
|
),
|
|
8337
|
-
badgeSubText && /* @__PURE__ */
|
|
8338
|
-
/* @__PURE__ */
|
|
8339
|
-
/* @__PURE__ */
|
|
9299
|
+
badgeSubText && /* @__PURE__ */ jsxs92(Fragment24, { children: [
|
|
9300
|
+
/* @__PURE__ */ jsx105("span", { className: ScPlanDetailsCardMobile_default.badgeDot }),
|
|
9301
|
+
/* @__PURE__ */ jsx105("span", { className: ScPlanDetailsCardMobile_default.badgeSubText, children: badgeSubText })
|
|
8340
9302
|
] })
|
|
8341
9303
|
] }) })
|
|
8342
9304
|
] }),
|
|
8343
|
-
/* @__PURE__ */
|
|
8344
|
-
/* @__PURE__ */
|
|
8345
|
-
/* @__PURE__ */
|
|
8346
|
-
/* @__PURE__ */
|
|
8347
|
-
/* @__PURE__ */
|
|
9305
|
+
/* @__PURE__ */ jsx105("div", { className: ScPlanDetailsCardMobile_default.divider }),
|
|
9306
|
+
/* @__PURE__ */ jsx105("div", { className: ScPlanDetailsCardMobile_default.planInfo, children: isLoading ? /* @__PURE__ */ jsxs92(Fragment24, { children: [
|
|
9307
|
+
/* @__PURE__ */ jsxs92("div", { className: ScPlanDetailsCardMobile_default.planNameRow, "aria-label": "Loading plan details", children: [
|
|
9308
|
+
/* @__PURE__ */ jsx105("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.planNameSkeleton}` }),
|
|
9309
|
+
/* @__PURE__ */ jsx105("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.creditsSkeleton}` })
|
|
8348
9310
|
] }),
|
|
8349
|
-
/* @__PURE__ */
|
|
8350
|
-
] }) : /* @__PURE__ */
|
|
8351
|
-
/* @__PURE__ */
|
|
8352
|
-
/* @__PURE__ */
|
|
8353
|
-
/* @__PURE__ */
|
|
8354
|
-
/* @__PURE__ */
|
|
9311
|
+
/* @__PURE__ */ jsx105("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.priceSkeleton}` })
|
|
9312
|
+
] }) : /* @__PURE__ */ jsxs92(Fragment24, { children: [
|
|
9313
|
+
/* @__PURE__ */ jsxs92("div", { className: ScPlanDetailsCardMobile_default.planNameRow, children: [
|
|
9314
|
+
/* @__PURE__ */ jsx105("span", { className: ScPlanDetailsCardMobile_default.planName, children: planName }),
|
|
9315
|
+
/* @__PURE__ */ jsx105("div", { className: ScPlanDetailsCardMobile_default.dot }),
|
|
9316
|
+
/* @__PURE__ */ jsx105("span", { className: ScPlanDetailsCardMobile_default.planName, children: planCredits })
|
|
8355
9317
|
] }),
|
|
8356
|
-
/* @__PURE__ */
|
|
9318
|
+
/* @__PURE__ */ jsx105("div", { className: ScPlanDetailsCardMobile_default.planPrice, children: planPrice })
|
|
8357
9319
|
] }) }),
|
|
8358
|
-
isLoading ? /* @__PURE__ */
|
|
9320
|
+
isLoading ? /* @__PURE__ */ jsx105("span", { className: `${ScPlanDetailsCardMobile_default.skeletonPill} ${ScPlanDetailsCardMobile_default.buttonSkeleton}` }) : /* @__PURE__ */ jsx105(
|
|
8359
9321
|
ScButton,
|
|
8360
9322
|
{
|
|
8361
9323
|
text: upgradeButtonText,
|
|
@@ -8403,6 +9365,7 @@ export {
|
|
|
8403
9365
|
ScCxoCopilotLogo,
|
|
8404
9366
|
ScDp,
|
|
8405
9367
|
ScFieldButton,
|
|
9368
|
+
ScFileField,
|
|
8406
9369
|
ScGoogleSignIn,
|
|
8407
9370
|
ScGuide,
|
|
8408
9371
|
ScHDivider,
|
|
@@ -8412,6 +9375,8 @@ export {
|
|
|
8412
9375
|
ScInChatMessage,
|
|
8413
9376
|
ScIntialProfileCover,
|
|
8414
9377
|
ScLogoUnit,
|
|
9378
|
+
ScMediaApproval,
|
|
9379
|
+
ScMediaSelect,
|
|
8415
9380
|
ScMenuOptions,
|
|
8416
9381
|
ScMobileBottomAction,
|
|
8417
9382
|
ScMobileTopNav,
|
|
@@ -8438,6 +9403,7 @@ export {
|
|
|
8438
9403
|
ScReferralTableList,
|
|
8439
9404
|
ScRole,
|
|
8440
9405
|
ScRoleMobile,
|
|
9406
|
+
ScSelect,
|
|
8441
9407
|
ScSelection,
|
|
8442
9408
|
ScSelectionList,
|
|
8443
9409
|
ScSettingsNav,
|
|
@@ -8459,8 +9425,10 @@ export {
|
|
|
8459
9425
|
ScTableHeader,
|
|
8460
9426
|
ScTableList,
|
|
8461
9427
|
ScTableListMobile,
|
|
9428
|
+
ScTextArea,
|
|
8462
9429
|
ScTextField,
|
|
8463
9430
|
ScThinkingStepIcon,
|
|
9431
|
+
ScTodoList,
|
|
8464
9432
|
ScToggleSwitch,
|
|
8465
9433
|
ScVDivider,
|
|
8466
9434
|
ScVersion,
|