@streamoid/ui 0.4.9 → 0.5.1
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 +14 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +26 -9
- package/dist/index.mjs +41 -24
- package/package.json +4 -2
package/dist/index.css
CHANGED
|
@@ -3986,6 +3986,20 @@
|
|
|
3986
3986
|
align-items: center;
|
|
3987
3987
|
justify-content: space-between;
|
|
3988
3988
|
width: 100%;
|
|
3989
|
+
position: relative;
|
|
3990
|
+
}
|
|
3991
|
+
.ScGuide_stepIndicator {
|
|
3992
|
+
position: absolute;
|
|
3993
|
+
left: 50%;
|
|
3994
|
+
top: 50%;
|
|
3995
|
+
transform: translate(-50%, -50%);
|
|
3996
|
+
pointer-events: none;
|
|
3997
|
+
font-family: var(--font-family-font-family-body, "Inter", sans-serif);
|
|
3998
|
+
font-size: var(--font-size-font-size-sm, 0.875rem);
|
|
3999
|
+
font-weight: 400;
|
|
4000
|
+
line-height: var(--line-height-line-height-sm, 1.25rem);
|
|
4001
|
+
color: var(--alias-text-and-icons-tertiary, #9e9e9e);
|
|
4002
|
+
white-space: nowrap;
|
|
3989
4003
|
}
|
|
3990
4004
|
.ScGuide_skipButton {
|
|
3991
4005
|
background: transparent;
|
package/dist/index.d.mts
CHANGED
|
@@ -404,6 +404,9 @@ interface IScGuideProps {
|
|
|
404
404
|
/** Icon rendered after the Next label. Defaults to a right-chevron.
|
|
405
405
|
* Use for terminal steps where the action is "Done" + checkmark, etc. */
|
|
406
406
|
nextIcon?: ReactNode;
|
|
407
|
+
/** Centered step indicator shown between Skip and Next (e.g. "1 of 3").
|
|
408
|
+
* Hidden when omitted. */
|
|
409
|
+
stepLabel?: ReactNode;
|
|
407
410
|
/** Click handler for the Skip action. */
|
|
408
411
|
onSkip?: () => void;
|
|
409
412
|
/** Click handler for the Next action. */
|
|
@@ -417,7 +420,7 @@ interface IScGuideProps {
|
|
|
417
420
|
className?: string;
|
|
418
421
|
style?: CSSProperties;
|
|
419
422
|
}
|
|
420
|
-
declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
423
|
+
declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, stepLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
421
424
|
|
|
422
425
|
interface IScSideBarLogoUnitProps {
|
|
423
426
|
/** "expanded" renders the merged wordmark + switcher row.
|
|
@@ -737,7 +740,7 @@ interface IScTabSwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
737
740
|
scTabComptype?: string;
|
|
738
741
|
className?: string;
|
|
739
742
|
}
|
|
740
|
-
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
743
|
+
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, scTabCompicon: _scTabCompicon, scTabCompactive: _scTabCompactive, scTabComptype: _scTabComptype, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
741
744
|
|
|
742
745
|
interface IScTableHeaderProps {
|
|
743
746
|
type?: "default" | "pending";
|
package/dist/index.d.ts
CHANGED
|
@@ -404,6 +404,9 @@ interface IScGuideProps {
|
|
|
404
404
|
/** Icon rendered after the Next label. Defaults to a right-chevron.
|
|
405
405
|
* Use for terminal steps where the action is "Done" + checkmark, etc. */
|
|
406
406
|
nextIcon?: ReactNode;
|
|
407
|
+
/** Centered step indicator shown between Skip and Next (e.g. "1 of 3").
|
|
408
|
+
* Hidden when omitted. */
|
|
409
|
+
stepLabel?: ReactNode;
|
|
407
410
|
/** Click handler for the Skip action. */
|
|
408
411
|
onSkip?: () => void;
|
|
409
412
|
/** Click handler for the Next action. */
|
|
@@ -417,7 +420,7 @@ interface IScGuideProps {
|
|
|
417
420
|
className?: string;
|
|
418
421
|
style?: CSSProperties;
|
|
419
422
|
}
|
|
420
|
-
declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
423
|
+
declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, stepLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
421
424
|
|
|
422
425
|
interface IScSideBarLogoUnitProps {
|
|
423
426
|
/** "expanded" renders the merged wordmark + switcher row.
|
|
@@ -737,7 +740,7 @@ interface IScTabSwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
737
740
|
scTabComptype?: string;
|
|
738
741
|
className?: string;
|
|
739
742
|
}
|
|
740
|
-
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
743
|
+
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, scTabCompicon: _scTabCompicon, scTabCompactive: _scTabCompactive, scTabComptype: _scTabComptype, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
741
744
|
|
|
742
745
|
interface IScTableHeaderProps {
|
|
743
746
|
type?: "default" | "pending";
|
package/dist/index.js
CHANGED
|
@@ -507,7 +507,7 @@ var ScPairtext = ({
|
|
|
507
507
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
508
508
|
var ScBillingHistoryTableList = ({
|
|
509
509
|
invoiceNumber = "# INV-2800-2026",
|
|
510
|
-
amount = "
|
|
510
|
+
amount = "\u20B9320.89",
|
|
511
511
|
date = "Nov 9th, 2025",
|
|
512
512
|
downloadLabel = "Download invoice",
|
|
513
513
|
className,
|
|
@@ -637,8 +637,12 @@ var ScButton = ({
|
|
|
637
637
|
className,
|
|
638
638
|
...props
|
|
639
639
|
}) => {
|
|
640
|
-
const noiseUrl = (0, import_react.
|
|
641
|
-
|
|
640
|
+
const [noiseUrl, setNoiseUrl] = (0, import_react.useState)("");
|
|
641
|
+
(0, import_react.useEffect)(() => {
|
|
642
|
+
if (variant !== "primary" || type !== "primary" || state !== "default" && state !== "disabled") {
|
|
643
|
+
setNoiseUrl("");
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
642
646
|
const size2 = 128;
|
|
643
647
|
const canvas = document.createElement("canvas");
|
|
644
648
|
canvas.width = size2;
|
|
@@ -653,7 +657,7 @@ var ScButton = ({
|
|
|
653
657
|
imageData.data[i + 3] = 255;
|
|
654
658
|
}
|
|
655
659
|
ctx.putImageData(imageData, 0, 0);
|
|
656
|
-
|
|
660
|
+
setNoiseUrl(canvas.toDataURL("image/png"));
|
|
657
661
|
}, [variant, type, state]);
|
|
658
662
|
const strokeWidth = size === "sm" ? 1.25 : 1.5;
|
|
659
663
|
const styledIcon = (0, import_react.isValidElement)(icon) ? (0, import_react.cloneElement)(icon, { color: "currentColor", strokeWidth }) : icon;
|
|
@@ -1579,7 +1583,7 @@ var import_icons12 = require("@streamoid/icons");
|
|
|
1579
1583
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1580
1584
|
var ScPlanCard = ({
|
|
1581
1585
|
planName = "Pro",
|
|
1582
|
-
price = "
|
|
1586
|
+
price = "\u20B949.99 / month",
|
|
1583
1587
|
credits = "30,000 Credits",
|
|
1584
1588
|
type = "free",
|
|
1585
1589
|
features = [],
|
|
@@ -1675,7 +1679,14 @@ var ScPlanCard = ({
|
|
|
1675
1679
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: ScPlanCard_default.featuresSection, children: [
|
|
1676
1680
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: ScPlanCard_default.sectionTitle, children: section.section }),
|
|
1677
1681
|
section.features.map((feature, fIdx) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: ScPlanCard_default.featureRow, children: [
|
|
1678
|
-
section.icon || /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1682
|
+
section.icon || /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1683
|
+
import_icons12.SiconHome,
|
|
1684
|
+
{
|
|
1685
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
1686
|
+
size: 24,
|
|
1687
|
+
strokeWidth: 1.5
|
|
1688
|
+
}
|
|
1689
|
+
),
|
|
1679
1690
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: ScPlanCard_default.featureText, children: feature })
|
|
1680
1691
|
] }, fIdx))
|
|
1681
1692
|
] })
|
|
@@ -1719,7 +1730,7 @@ var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
|
1719
1730
|
var ScPlanDetailsCard = ({
|
|
1720
1731
|
planName = "Free",
|
|
1721
1732
|
planCredits = "30,000 credits",
|
|
1722
|
-
planPrice = "
|
|
1733
|
+
planPrice = "\u20B90.00 / month",
|
|
1723
1734
|
badgeText = "Active",
|
|
1724
1735
|
currentPlanLabel = "Current plan",
|
|
1725
1736
|
upgradeButtonText = "Upgrade",
|
|
@@ -2046,6 +2057,9 @@ var ScTabSwitcher = ({
|
|
|
2046
2057
|
component4,
|
|
2047
2058
|
component5,
|
|
2048
2059
|
className,
|
|
2060
|
+
scTabCompicon: _scTabCompicon,
|
|
2061
|
+
scTabCompactive: _scTabCompactive,
|
|
2062
|
+
scTabComptype: _scTabComptype,
|
|
2049
2063
|
...props
|
|
2050
2064
|
}) => {
|
|
2051
2065
|
const variantsClassName = ScTabSwitcher_default["tab-count-" + tabCount];
|
|
@@ -3641,6 +3655,7 @@ var ScGuide_default = {
|
|
|
3641
3655
|
title: "ScGuide_title",
|
|
3642
3656
|
description: "ScGuide_description",
|
|
3643
3657
|
actions: "ScGuide_actions",
|
|
3658
|
+
stepIndicator: "ScGuide_stepIndicator",
|
|
3644
3659
|
skipButton: "ScGuide_skipButton",
|
|
3645
3660
|
skipSpacer: "ScGuide_skipSpacer",
|
|
3646
3661
|
nextButton: "ScGuide_nextButton",
|
|
@@ -3657,6 +3672,7 @@ var ScGuide = ({
|
|
|
3657
3672
|
skipLabel = "Skip",
|
|
3658
3673
|
nextLabel = "Next",
|
|
3659
3674
|
nextIcon,
|
|
3675
|
+
stepLabel,
|
|
3660
3676
|
onSkip,
|
|
3661
3677
|
onNext,
|
|
3662
3678
|
hideSkip = false,
|
|
@@ -3687,6 +3703,7 @@ var ScGuide = ({
|
|
|
3687
3703
|
children: skipLabel
|
|
3688
3704
|
}
|
|
3689
3705
|
),
|
|
3706
|
+
stepLabel != null && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: ScGuide_default.stepIndicator, children: stepLabel }),
|
|
3690
3707
|
!hideNext && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3691
3708
|
"button",
|
|
3692
3709
|
{
|
|
@@ -6078,7 +6095,7 @@ var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
|
6078
6095
|
var InvoiceHistoryMobile = ({
|
|
6079
6096
|
invoiceId = "# INV-2800-2026",
|
|
6080
6097
|
date = "Nov 9th, 2025",
|
|
6081
|
-
amount = "
|
|
6098
|
+
amount = "\u20B9320.89",
|
|
6082
6099
|
className
|
|
6083
6100
|
}) => {
|
|
6084
6101
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
@@ -6383,7 +6400,7 @@ var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
|
6383
6400
|
var ScPlanDetailsCardMobile = ({
|
|
6384
6401
|
planName = "Pro",
|
|
6385
6402
|
planCredits = "30,000 credits",
|
|
6386
|
-
planPrice = "
|
|
6403
|
+
planPrice = "\u20B90.00 / month",
|
|
6387
6404
|
badgeText = "Active",
|
|
6388
6405
|
currentPlanLabel = "Current plan",
|
|
6389
6406
|
upgradeButtonText = "Upgrade",
|
package/dist/index.mjs
CHANGED
|
@@ -397,7 +397,7 @@ var ScPairtext = ({
|
|
|
397
397
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
398
398
|
var ScBillingHistoryTableList = ({
|
|
399
399
|
invoiceNumber = "# INV-2800-2026",
|
|
400
|
-
amount = "
|
|
400
|
+
amount = "\u20B9320.89",
|
|
401
401
|
date = "Nov 9th, 2025",
|
|
402
402
|
downloadLabel = "Download invoice",
|
|
403
403
|
className,
|
|
@@ -466,7 +466,7 @@ var ScButton_default = {
|
|
|
466
466
|
|
|
467
467
|
// src/SC-Button/ScButton.tsx
|
|
468
468
|
import { SiconHome as SiconHome2 } from "@streamoid/icons";
|
|
469
|
-
import {
|
|
469
|
+
import { useState, useEffect, isValidElement, cloneElement } from "react";
|
|
470
470
|
import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
471
471
|
if (typeof window !== "undefined" && CSS.registerProperty) {
|
|
472
472
|
const props = [
|
|
@@ -527,8 +527,12 @@ var ScButton = ({
|
|
|
527
527
|
className,
|
|
528
528
|
...props
|
|
529
529
|
}) => {
|
|
530
|
-
const noiseUrl =
|
|
531
|
-
|
|
530
|
+
const [noiseUrl, setNoiseUrl] = useState("");
|
|
531
|
+
useEffect(() => {
|
|
532
|
+
if (variant !== "primary" || type !== "primary" || state !== "default" && state !== "disabled") {
|
|
533
|
+
setNoiseUrl("");
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
532
536
|
const size2 = 128;
|
|
533
537
|
const canvas = document.createElement("canvas");
|
|
534
538
|
canvas.width = size2;
|
|
@@ -543,7 +547,7 @@ var ScButton = ({
|
|
|
543
547
|
imageData.data[i + 3] = 255;
|
|
544
548
|
}
|
|
545
549
|
ctx.putImageData(imageData, 0, 0);
|
|
546
|
-
|
|
550
|
+
setNoiseUrl(canvas.toDataURL("image/png"));
|
|
547
551
|
}, [variant, type, state]);
|
|
548
552
|
const strokeWidth = size === "sm" ? 1.25 : 1.5;
|
|
549
553
|
const styledIcon = isValidElement(icon) ? cloneElement(icon, { color: "currentColor", strokeWidth }) : icon;
|
|
@@ -788,7 +792,7 @@ var ScCalendar = ({
|
|
|
788
792
|
};
|
|
789
793
|
|
|
790
794
|
// src/SC-Credits usage card/ScCreditsUsageCard.tsx
|
|
791
|
-
import { useState } from "react";
|
|
795
|
+
import { useState as useState2 } from "react";
|
|
792
796
|
|
|
793
797
|
// src/SC-Credits usage card/ScCreditsUsageCard.module.css
|
|
794
798
|
var ScCreditsUsageCard_default = {
|
|
@@ -846,7 +850,7 @@ var ScCreditsUsageCard = ({
|
|
|
846
850
|
className,
|
|
847
851
|
...props
|
|
848
852
|
}) => {
|
|
849
|
-
const [btnHovered, setBtnHovered] =
|
|
853
|
+
const [btnHovered, setBtnHovered] = useState2(false);
|
|
850
854
|
const displayText = btnHovered && buyButtonHoverText ? buyButtonHoverText : buyButtonText;
|
|
851
855
|
return /* @__PURE__ */ jsxs12("div", { className: ScCreditsUsageCard_default.scCreditsUsageCard + " " + className, ...props, children: [
|
|
852
856
|
/* @__PURE__ */ jsxs12("div", { className: ScCreditsUsageCard_default.header, children: [
|
|
@@ -901,7 +905,7 @@ var ScCreditsUsageCard = ({
|
|
|
901
905
|
};
|
|
902
906
|
|
|
903
907
|
// src/SC-CreditWarningBanner/CreditWarningBanner.tsx
|
|
904
|
-
import { useState as
|
|
908
|
+
import { useState as useState3 } from "react";
|
|
905
909
|
import { SiconClose } from "@streamoid/icons";
|
|
906
910
|
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
907
911
|
var STYLES = {
|
|
@@ -967,7 +971,7 @@ function CreditWarningBanner({
|
|
|
967
971
|
expanded = true,
|
|
968
972
|
onCollapsedClick
|
|
969
973
|
}) {
|
|
970
|
-
const [dismissed, setDismissed] =
|
|
974
|
+
const [dismissed, setDismissed] = useState3(false);
|
|
971
975
|
if (dismissed) return null;
|
|
972
976
|
const { bg, border, color } = STYLES[level];
|
|
973
977
|
if (!expanded) {
|
|
@@ -1085,7 +1089,7 @@ function CreditWarningBanner({
|
|
|
1085
1089
|
}
|
|
1086
1090
|
|
|
1087
1091
|
// src/SC-Dp/ScDp.tsx
|
|
1088
|
-
import { useState as
|
|
1092
|
+
import { useState as useState4 } from "react";
|
|
1089
1093
|
|
|
1090
1094
|
// src/SC-Dp/ScDp.module.css
|
|
1091
1095
|
var ScDp_default = {
|
|
@@ -1110,7 +1114,7 @@ function ScDp({
|
|
|
1110
1114
|
className,
|
|
1111
1115
|
style
|
|
1112
1116
|
}) {
|
|
1113
|
-
const [imageFailed, setImageFailed] =
|
|
1117
|
+
const [imageFailed, setImageFailed] = useState4(false);
|
|
1114
1118
|
const isProfile = variant === "profile";
|
|
1115
1119
|
const showImage = type === "image" && imageUrl && !imageFailed;
|
|
1116
1120
|
const containerClass = [
|
|
@@ -1469,7 +1473,7 @@ import { SiconCredits as SiconCredits2, SiconHome as SiconHome4 } from "@streamo
|
|
|
1469
1473
|
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1470
1474
|
var ScPlanCard = ({
|
|
1471
1475
|
planName = "Pro",
|
|
1472
|
-
price = "
|
|
1476
|
+
price = "\u20B949.99 / month",
|
|
1473
1477
|
credits = "30,000 Credits",
|
|
1474
1478
|
type = "free",
|
|
1475
1479
|
features = [],
|
|
@@ -1565,7 +1569,14 @@ var ScPlanCard = ({
|
|
|
1565
1569
|
/* @__PURE__ */ jsxs18("div", { className: ScPlanCard_default.featuresSection, children: [
|
|
1566
1570
|
/* @__PURE__ */ jsx23("div", { className: ScPlanCard_default.sectionTitle, children: section.section }),
|
|
1567
1571
|
section.features.map((feature, fIdx) => /* @__PURE__ */ jsxs18("div", { className: ScPlanCard_default.featureRow, children: [
|
|
1568
|
-
section.icon || /* @__PURE__ */ jsx23(
|
|
1572
|
+
section.icon || /* @__PURE__ */ jsx23(
|
|
1573
|
+
SiconHome4,
|
|
1574
|
+
{
|
|
1575
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
1576
|
+
size: 24,
|
|
1577
|
+
strokeWidth: 1.5
|
|
1578
|
+
}
|
|
1579
|
+
),
|
|
1569
1580
|
/* @__PURE__ */ jsx23("span", { className: ScPlanCard_default.featureText, children: feature })
|
|
1570
1581
|
] }, fIdx))
|
|
1571
1582
|
] })
|
|
@@ -1609,7 +1620,7 @@ import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
|
1609
1620
|
var ScPlanDetailsCard = ({
|
|
1610
1621
|
planName = "Free",
|
|
1611
1622
|
planCredits = "30,000 credits",
|
|
1612
|
-
planPrice = "
|
|
1623
|
+
planPrice = "\u20B90.00 / month",
|
|
1613
1624
|
badgeText = "Active",
|
|
1614
1625
|
currentPlanLabel = "Current plan",
|
|
1615
1626
|
upgradeButtonText = "Upgrade",
|
|
@@ -1936,6 +1947,9 @@ var ScTabSwitcher = ({
|
|
|
1936
1947
|
component4,
|
|
1937
1948
|
component5,
|
|
1938
1949
|
className,
|
|
1950
|
+
scTabCompicon: _scTabCompicon,
|
|
1951
|
+
scTabCompactive: _scTabCompactive,
|
|
1952
|
+
scTabComptype: _scTabComptype,
|
|
1939
1953
|
...props
|
|
1940
1954
|
}) => {
|
|
1941
1955
|
const variantsClassName = ScTabSwitcher_default["tab-count-" + tabCount];
|
|
@@ -2116,7 +2130,7 @@ var ScProfileSettingsComp_default = {
|
|
|
2116
2130
|
import { SiconBolt as SiconBolt3, SiconLock } from "@streamoid/icons";
|
|
2117
2131
|
|
|
2118
2132
|
// src/SC-textField/ScTextField.tsx
|
|
2119
|
-
import { useState as
|
|
2133
|
+
import { useState as useState5 } from "react";
|
|
2120
2134
|
|
|
2121
2135
|
// src/SC-textField/ScTextField.module.css
|
|
2122
2136
|
var ScTextField_default = {
|
|
@@ -2151,7 +2165,7 @@ var ScTextField = ({
|
|
|
2151
2165
|
style,
|
|
2152
2166
|
...props
|
|
2153
2167
|
}) => {
|
|
2154
|
-
const [focused, setFocused] =
|
|
2168
|
+
const [focused, setFocused] = useState5(false);
|
|
2155
2169
|
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
2156
2170
|
const variantsClassName = ScTextField_default["state-" + derivedState] + " " + ScTextField_default["tf-group-" + tfGroup] + " " + ScTextField_default["label-group-" + labelGroup];
|
|
2157
2171
|
return /* @__PURE__ */ jsxs26(
|
|
@@ -3239,7 +3253,7 @@ function StreamoidSidebar({
|
|
|
3239
3253
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
3240
3254
|
import {
|
|
3241
3255
|
useCallback,
|
|
3242
|
-
useState as
|
|
3256
|
+
useState as useState6
|
|
3243
3257
|
} from "react";
|
|
3244
3258
|
|
|
3245
3259
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.module.css
|
|
@@ -3361,7 +3375,7 @@ var ScArtifaxSidebar = ({
|
|
|
3361
3375
|
style
|
|
3362
3376
|
}) => {
|
|
3363
3377
|
const isControlled = !!openSections;
|
|
3364
|
-
const [internalOpen, setInternalOpen] =
|
|
3378
|
+
const [internalOpen, setInternalOpen] = useState6(
|
|
3365
3379
|
() => {
|
|
3366
3380
|
const init = {};
|
|
3367
3381
|
sections.forEach((s) => {
|
|
@@ -3534,6 +3548,7 @@ var ScGuide_default = {
|
|
|
3534
3548
|
title: "ScGuide_title",
|
|
3535
3549
|
description: "ScGuide_description",
|
|
3536
3550
|
actions: "ScGuide_actions",
|
|
3551
|
+
stepIndicator: "ScGuide_stepIndicator",
|
|
3537
3552
|
skipButton: "ScGuide_skipButton",
|
|
3538
3553
|
skipSpacer: "ScGuide_skipSpacer",
|
|
3539
3554
|
nextButton: "ScGuide_nextButton",
|
|
@@ -3550,6 +3565,7 @@ var ScGuide = ({
|
|
|
3550
3565
|
skipLabel = "Skip",
|
|
3551
3566
|
nextLabel = "Next",
|
|
3552
3567
|
nextIcon,
|
|
3568
|
+
stepLabel,
|
|
3553
3569
|
onSkip,
|
|
3554
3570
|
onNext,
|
|
3555
3571
|
hideSkip = false,
|
|
@@ -3580,6 +3596,7 @@ var ScGuide = ({
|
|
|
3580
3596
|
children: skipLabel
|
|
3581
3597
|
}
|
|
3582
3598
|
),
|
|
3599
|
+
stepLabel != null && /* @__PURE__ */ jsx42("span", { className: ScGuide_default.stepIndicator, children: stepLabel }),
|
|
3583
3600
|
!hideNext && /* @__PURE__ */ jsxs34(
|
|
3584
3601
|
"button",
|
|
3585
3602
|
{
|
|
@@ -3731,7 +3748,7 @@ var ScSlider = ({
|
|
|
3731
3748
|
};
|
|
3732
3749
|
|
|
3733
3750
|
// src/SC-WorkspaceSwitcher/streamoid-workspace-switcher.tsx
|
|
3734
|
-
import { useEffect, useRef as useRef2 } from "react";
|
|
3751
|
+
import { useEffect as useEffect2, useRef as useRef2 } from "react";
|
|
3735
3752
|
import {
|
|
3736
3753
|
SiconClose as SiconClose2,
|
|
3737
3754
|
SiconTeam as SiconTeam4,
|
|
@@ -3932,7 +3949,7 @@ function StreamoidWorkspaceSwitcher({
|
|
|
3932
3949
|
const loadingText = config?.loadingText || "Loading workspaces\u2026";
|
|
3933
3950
|
const currentWorkspaceText = config?.currentWorkspaceText || "Current workspace";
|
|
3934
3951
|
const switchWorkspaceText = config?.switchWorkspaceText || "Switch workspace";
|
|
3935
|
-
|
|
3952
|
+
useEffect2(() => {
|
|
3936
3953
|
if (!open) return;
|
|
3937
3954
|
function handleKeyDown(e) {
|
|
3938
3955
|
if (e.key === "Escape") onClose();
|
|
@@ -5342,7 +5359,7 @@ var ScWorkspaceCard = ({
|
|
|
5342
5359
|
};
|
|
5343
5360
|
|
|
5344
5361
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.tsx
|
|
5345
|
-
import { useState as
|
|
5362
|
+
import { useState as useState7 } from "react";
|
|
5346
5363
|
import { SiconSwitch as SiconSwitch3, SiconSettings as SiconSettings3, SiconLogout as SiconLogout3 } from "@streamoid/icons";
|
|
5347
5364
|
|
|
5348
5365
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.module.css
|
|
@@ -5383,7 +5400,7 @@ function ScWorkspaceSwitchCard({
|
|
|
5383
5400
|
onSettings,
|
|
5384
5401
|
onLeave
|
|
5385
5402
|
}) {
|
|
5386
|
-
const [internalHover, setInternalHover] =
|
|
5403
|
+
const [internalHover, setInternalHover] = useState7(false);
|
|
5387
5404
|
const isHover = hover !== void 0 ? hover : internalHover;
|
|
5388
5405
|
const isCurrent = type === "currentWS";
|
|
5389
5406
|
const isOther = type === "otherWS";
|
|
@@ -5981,7 +5998,7 @@ import { jsx as jsx78, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
|
5981
5998
|
var InvoiceHistoryMobile = ({
|
|
5982
5999
|
invoiceId = "# INV-2800-2026",
|
|
5983
6000
|
date = "Nov 9th, 2025",
|
|
5984
|
-
amount = "
|
|
6001
|
+
amount = "\u20B9320.89",
|
|
5985
6002
|
className
|
|
5986
6003
|
}) => {
|
|
5987
6004
|
return /* @__PURE__ */ jsxs69("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
@@ -6286,7 +6303,7 @@ import { jsx as jsx84, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
|
6286
6303
|
var ScPlanDetailsCardMobile = ({
|
|
6287
6304
|
planName = "Pro",
|
|
6288
6305
|
planCredits = "30,000 credits",
|
|
6289
|
-
planPrice = "
|
|
6306
|
+
planPrice = "\u20B90.00 / month",
|
|
6290
6307
|
badgeText = "Active",
|
|
6291
6308
|
currentPlanLabel = "Current plan",
|
|
6292
6309
|
upgradeButtonText = "Upgrade",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamoid/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"build": "npm run build:js && npm run build:dts",
|
|
16
16
|
"build:js": "esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.js --format=cjs && esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.mjs --format=esm",
|
|
17
17
|
"build:dts": "tsup src/index.ts --dts-only",
|
|
18
|
-
"
|
|
18
|
+
"watch:js": "esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.js --format=cjs --watch=forever & esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.mjs --format=esm --watch=forever & wait",
|
|
19
|
+
"watch:dts": "tsup src/index.ts --dts-only --watch",
|
|
20
|
+
"dev": "sh -c 'npm run watch:js & npm run watch:dts & wait'",
|
|
19
21
|
"lint": "eslint src/"
|
|
20
22
|
},
|
|
21
23
|
"peerDependencies": {
|