@streamoid/ui 0.4.7 → 0.4.8
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 +20 -89
- package/dist/index.d.mts +2 -9
- package/dist/index.d.ts +2 -9
- package/dist/index.js +45 -83
- package/dist/index.mjs +46 -89
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -3737,81 +3737,27 @@
|
|
|
3737
3737
|
flex-shrink: 0;
|
|
3738
3738
|
color: var(--alias-text-and-icons-tertiary, #9e9e9e);
|
|
3739
3739
|
}
|
|
3740
|
-
.
|
|
3740
|
+
.ScArtifaxSidebar_profileRow {
|
|
3741
3741
|
display: flex;
|
|
3742
|
-
align-items: center;
|
|
3743
|
-
padding: var(--spacing-md, 0.5rem) var(--spacing-xl, 0.75rem);
|
|
3744
|
-
border-radius: var(--radius-3xl, 1rem);
|
|
3745
|
-
cursor: pointer;
|
|
3746
|
-
height: 2.5rem;
|
|
3747
3742
|
width: 100%;
|
|
3748
|
-
flex-shrink: 0;
|
|
3749
|
-
background: transparent;
|
|
3750
|
-
border: none;
|
|
3751
|
-
text-align: left;
|
|
3752
|
-
}
|
|
3753
|
-
.ScArtifaxSidebar_switchAppRow:hover {
|
|
3754
|
-
background: var(--alias-fill-neutral-neutral, #1a1a1a);
|
|
3755
|
-
}
|
|
3756
|
-
.ScArtifaxSidebar_switchAppIconBox {
|
|
3757
|
-
width: 2rem;
|
|
3758
|
-
height: 2rem;
|
|
3759
|
-
display: flex;
|
|
3760
3743
|
align-items: center;
|
|
3761
|
-
|
|
3744
|
+
gap: var(--spacing-xs, 0.25rem);
|
|
3762
3745
|
flex-shrink: 0;
|
|
3763
3746
|
}
|
|
3764
|
-
.
|
|
3765
|
-
|
|
3766
|
-
height: 1.75rem;
|
|
3767
|
-
}
|
|
3768
|
-
.ScArtifaxSidebar_switchAppLabel {
|
|
3747
|
+
.ScArtifaxSidebar_profileMain {
|
|
3748
|
+
display: flex;
|
|
3769
3749
|
flex: 1 1 0;
|
|
3770
3750
|
min-width: 0;
|
|
3771
|
-
font-family: var(--font-family-font-family-body, "Inter", sans-serif);
|
|
3772
|
-
font-size: 0.875rem;
|
|
3773
|
-
font-weight: 400;
|
|
3774
|
-
line-height: 1.25rem;
|
|
3775
|
-
color: var(--alias-text-and-icons-primary, #f5f5f5);
|
|
3776
|
-
margin-left: var(--spacing-md, 0.5rem);
|
|
3777
|
-
overflow: hidden;
|
|
3778
|
-
text-overflow: ellipsis;
|
|
3779
|
-
white-space: nowrap;
|
|
3780
|
-
}
|
|
3781
|
-
.ScArtifaxSidebar_switchAppRowCollapsed {
|
|
3782
|
-
display: flex;
|
|
3783
|
-
align-items: center;
|
|
3784
|
-
justify-content: center;
|
|
3785
|
-
padding: var(--spacing-md, 0.5rem);
|
|
3786
|
-
border-radius: var(--radius-3xl, 1rem);
|
|
3787
|
-
background: transparent;
|
|
3788
|
-
border: none;
|
|
3789
|
-
cursor: pointer;
|
|
3790
|
-
width: 2.5rem;
|
|
3791
|
-
height: 2.5rem;
|
|
3792
|
-
flex-shrink: 0;
|
|
3793
|
-
}
|
|
3794
|
-
.ScArtifaxSidebar_switchAppRowCollapsed:hover {
|
|
3795
|
-
background: var(--alias-fill-neutral-neutral, #1a1a1a);
|
|
3796
|
-
}
|
|
3797
|
-
.ScArtifaxSidebar_switchAppRowCollapsed > * {
|
|
3798
|
-
width: 1.75rem;
|
|
3799
|
-
height: 1.75rem;
|
|
3800
|
-
}
|
|
3801
|
-
.ScArtifaxSidebar_profileRow {
|
|
3802
|
-
display: flex;
|
|
3803
|
-
width: 100%;
|
|
3804
3751
|
align-items: center;
|
|
3805
3752
|
gap: var(--spacing-md, 0.5rem);
|
|
3806
3753
|
padding: var(--spacing-md, 0.5rem) var(--spacing-xl, 0.75rem);
|
|
3807
3754
|
border-radius: var(--radius-3xl, 1rem);
|
|
3808
3755
|
cursor: pointer;
|
|
3809
|
-
flex-shrink: 0;
|
|
3810
3756
|
background: transparent;
|
|
3811
3757
|
border: none;
|
|
3812
3758
|
text-align: left;
|
|
3813
3759
|
}
|
|
3814
|
-
.
|
|
3760
|
+
.ScArtifaxSidebar_profileMain:hover {
|
|
3815
3761
|
background: var(--alias-fill-neutral-neutral, #1a1a1a);
|
|
3816
3762
|
}
|
|
3817
3763
|
.ScArtifaxSidebar_profileRowCollapsed {
|
|
@@ -3880,26 +3826,6 @@
|
|
|
3880
3826
|
align-items: center;
|
|
3881
3827
|
justify-content: center;
|
|
3882
3828
|
}
|
|
3883
|
-
.ScArtifaxSidebar_footerExpanded {
|
|
3884
|
-
display: flex;
|
|
3885
|
-
align-items: center;
|
|
3886
|
-
gap: var(--spacing-xs, 0.25rem);
|
|
3887
|
-
padding: var(--spacing-xs, 0.25rem) var(--spacing-xs, 0.25rem) var(--spacing-xs, 0.25rem) var(--spacing-xl, 0.75rem);
|
|
3888
|
-
width: 100%;
|
|
3889
|
-
flex-shrink: 0;
|
|
3890
|
-
}
|
|
3891
|
-
.ScArtifaxSidebar_footerVersion {
|
|
3892
|
-
flex: 1 1 0;
|
|
3893
|
-
min-width: 0;
|
|
3894
|
-
font-family: var(--font-family-font-family-body, "Inter", sans-serif);
|
|
3895
|
-
font-size: 0.75rem;
|
|
3896
|
-
font-weight: 400;
|
|
3897
|
-
line-height: 1.125rem;
|
|
3898
|
-
color: var(--alias-text-and-icons-muted, #7a7a7a);
|
|
3899
|
-
overflow: hidden;
|
|
3900
|
-
text-overflow: ellipsis;
|
|
3901
|
-
white-space: nowrap;
|
|
3902
|
-
}
|
|
3903
3829
|
.ScArtifaxSidebar_footerToggle {
|
|
3904
3830
|
display: flex;
|
|
3905
3831
|
align-items: center;
|
|
@@ -3927,14 +3853,6 @@
|
|
|
3927
3853
|
width: 100%;
|
|
3928
3854
|
flex-shrink: 0;
|
|
3929
3855
|
}
|
|
3930
|
-
.ScArtifaxSidebar_footerVersionCenter {
|
|
3931
|
-
font-family: var(--font-family-font-family-body, "Inter", sans-serif);
|
|
3932
|
-
font-size: 0.75rem;
|
|
3933
|
-
font-weight: 400;
|
|
3934
|
-
line-height: 1.125rem;
|
|
3935
|
-
color: var(--alias-text-and-icons-muted, #7a7a7a);
|
|
3936
|
-
text-align: center;
|
|
3937
|
-
}
|
|
3938
3856
|
.ScArtifaxSidebar_placeholderIcon {
|
|
3939
3857
|
width: 1.25rem;
|
|
3940
3858
|
height: 1.25rem;
|
|
@@ -4123,22 +4041,35 @@
|
|
|
4123
4041
|
}
|
|
4124
4042
|
.ScSideBarLogoUnit_collapsedTrigger {
|
|
4125
4043
|
display: inline-flex;
|
|
4044
|
+
flex-direction: column;
|
|
4126
4045
|
align-items: center;
|
|
4127
4046
|
justify-content: center;
|
|
4047
|
+
gap: var(--spacing-md, 0.5rem);
|
|
4128
4048
|
background: transparent;
|
|
4129
4049
|
border: none;
|
|
4130
|
-
padding: 0;
|
|
4050
|
+
padding: var(--spacing-md, 0.5rem);
|
|
4051
|
+
border-radius: var(--radius-xl, 0.75rem);
|
|
4131
4052
|
cursor: pointer;
|
|
4132
4053
|
flex-shrink: 0;
|
|
4054
|
+
transition: background-color 120ms ease-out;
|
|
4133
4055
|
}
|
|
4134
4056
|
.ScSideBarLogoUnit_collapsedTrigger:disabled,
|
|
4135
4057
|
.ScSideBarLogoUnit_collapsedTrigger.ScSideBarLogoUnit_nonInteractive {
|
|
4136
4058
|
cursor: default;
|
|
4137
4059
|
}
|
|
4138
|
-
.ScSideBarLogoUnit_collapsedTrigger
|
|
4060
|
+
.ScSideBarLogoUnit_collapsedTrigger:hover,
|
|
4061
|
+
.ScSideBarLogoUnit_collapsedTrigger.ScSideBarLogoUnit_forceHover {
|
|
4062
|
+
background-color: var(--alias-surface-subtle, #1a1a1a);
|
|
4063
|
+
}
|
|
4064
|
+
.ScSideBarLogoUnit_collapsedWordmarkSlot {
|
|
4139
4065
|
display: inline-flex;
|
|
4140
4066
|
align-items: center;
|
|
4141
4067
|
justify-content: center;
|
|
4068
|
+
flex-shrink: 0;
|
|
4069
|
+
}
|
|
4070
|
+
.ScSideBarLogoUnit_collapsedTrigger:hover .ScSideBarLogoUnit_switch,
|
|
4071
|
+
.ScSideBarLogoUnit_collapsedTrigger.ScSideBarLogoUnit_forceHover .ScSideBarLogoUnit_switch {
|
|
4072
|
+
background-color: var(--alias-fill-neutral-neutralplus, #151515);
|
|
4142
4073
|
}
|
|
4143
4074
|
|
|
4144
4075
|
/* src/SC-Slider/ScSlider.module.css */
|
package/dist/index.d.mts
CHANGED
|
@@ -355,11 +355,6 @@ interface ArtifaxSidebarCreditWarning {
|
|
|
355
355
|
level?: "warning" | "danger";
|
|
356
356
|
onBuyCredits: () => void;
|
|
357
357
|
}
|
|
358
|
-
interface ArtifaxSidebarSwitchApp {
|
|
359
|
-
label?: string;
|
|
360
|
-
icon?: ReactNode;
|
|
361
|
-
onClick?: () => void;
|
|
362
|
-
}
|
|
363
358
|
interface IScArtifaxSidebarProps {
|
|
364
359
|
expanded: boolean;
|
|
365
360
|
onToggle: () => void;
|
|
@@ -370,16 +365,14 @@ interface IScArtifaxSidebarProps {
|
|
|
370
365
|
expandedLogo?: ReactNode;
|
|
371
366
|
collapsedLogo?: ReactNode;
|
|
372
367
|
creditWarning?: ArtifaxSidebarCreditWarning | null;
|
|
373
|
-
switchApp?: ArtifaxSidebarSwitchApp;
|
|
374
368
|
profile?: ArtifaxSidebarProfile;
|
|
375
|
-
versionText?: string;
|
|
376
369
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
377
370
|
openSections?: Record<string, boolean>;
|
|
378
371
|
onSectionToggle?: (sectionId: string, open: boolean) => void;
|
|
379
372
|
className?: string;
|
|
380
373
|
style?: CSSProperties;
|
|
381
374
|
}
|
|
382
|
-
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning,
|
|
375
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, profile, toggleIcon, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
383
376
|
|
|
384
377
|
interface IScGuideProps {
|
|
385
378
|
/** Heading text. */
|
|
@@ -1062,4 +1055,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
1062
1055
|
}
|
|
1063
1056
|
declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, currentPlanLabel, upgradeButtonText, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
|
|
1064
1057
|
|
|
1065
|
-
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile,
|
|
1058
|
+
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, CreditWarningBanner, type CreditWarningBannerProps, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScBadgesProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSliderProps, type IScStrLogoProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTextFieldProps, type IScToggleSwitchProps, type IScVDividerProps, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, InvoiceHistoryMobile, NscWorkspaceSwitch, type PlanFeatureSection, ScAccess, ScAppCard, ScAppCardV3, ScAppField, ScAppListingCard, ScArtifaxInvite, ScArtifaxSidebar, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSettingsNav, ScSettingsTabComp, ScSideBarLogoUnit, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSlider, ScStrLogo, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTextField, ScToggleSwitch, ScVDivider, ScVersion, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -355,11 +355,6 @@ interface ArtifaxSidebarCreditWarning {
|
|
|
355
355
|
level?: "warning" | "danger";
|
|
356
356
|
onBuyCredits: () => void;
|
|
357
357
|
}
|
|
358
|
-
interface ArtifaxSidebarSwitchApp {
|
|
359
|
-
label?: string;
|
|
360
|
-
icon?: ReactNode;
|
|
361
|
-
onClick?: () => void;
|
|
362
|
-
}
|
|
363
358
|
interface IScArtifaxSidebarProps {
|
|
364
359
|
expanded: boolean;
|
|
365
360
|
onToggle: () => void;
|
|
@@ -370,16 +365,14 @@ interface IScArtifaxSidebarProps {
|
|
|
370
365
|
expandedLogo?: ReactNode;
|
|
371
366
|
collapsedLogo?: ReactNode;
|
|
372
367
|
creditWarning?: ArtifaxSidebarCreditWarning | null;
|
|
373
|
-
switchApp?: ArtifaxSidebarSwitchApp;
|
|
374
368
|
profile?: ArtifaxSidebarProfile;
|
|
375
|
-
versionText?: string;
|
|
376
369
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
377
370
|
openSections?: Record<string, boolean>;
|
|
378
371
|
onSectionToggle?: (sectionId: string, open: boolean) => void;
|
|
379
372
|
className?: string;
|
|
380
373
|
style?: CSSProperties;
|
|
381
374
|
}
|
|
382
|
-
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning,
|
|
375
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, profile, toggleIcon, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
383
376
|
|
|
384
377
|
interface IScGuideProps {
|
|
385
378
|
/** Heading text. */
|
|
@@ -1062,4 +1055,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
1062
1055
|
}
|
|
1063
1056
|
declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, currentPlanLabel, upgradeButtonText, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
|
|
1064
1057
|
|
|
1065
|
-
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile,
|
|
1058
|
+
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, CreditWarningBanner, type CreditWarningBannerProps, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScBadgesProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSliderProps, type IScStrLogoProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTextFieldProps, type IScToggleSwitchProps, type IScVDividerProps, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, InvoiceHistoryMobile, NscWorkspaceSwitch, type PlanFeatureSection, ScAccess, ScAppCard, ScAppCardV3, ScAppField, ScAppListingCard, ScArtifaxInvite, ScArtifaxSidebar, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSettingsNav, ScSettingsTabComp, ScSideBarLogoUnit, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSlider, ScStrLogo, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTextField, ScToggleSwitch, ScVDivider, ScVersion, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem };
|
package/dist/index.js
CHANGED
|
@@ -3367,22 +3367,16 @@ var ScArtifaxSidebar_default = {
|
|
|
3367
3367
|
sectionHeader: "ScArtifaxSidebar_sectionHeader",
|
|
3368
3368
|
sectionLabel: "ScArtifaxSidebar_sectionLabel",
|
|
3369
3369
|
sectionChevron: "ScArtifaxSidebar_sectionChevron",
|
|
3370
|
-
switchAppRow: "ScArtifaxSidebar_switchAppRow",
|
|
3371
|
-
switchAppIconBox: "ScArtifaxSidebar_switchAppIconBox",
|
|
3372
|
-
switchAppLabel: "ScArtifaxSidebar_switchAppLabel",
|
|
3373
|
-
switchAppRowCollapsed: "ScArtifaxSidebar_switchAppRowCollapsed",
|
|
3374
3370
|
profileRow: "ScArtifaxSidebar_profileRow",
|
|
3371
|
+
profileMain: "ScArtifaxSidebar_profileMain",
|
|
3375
3372
|
profileRowCollapsed: "ScArtifaxSidebar_profileRowCollapsed",
|
|
3376
3373
|
profileAvatar: "ScArtifaxSidebar_profileAvatar",
|
|
3377
3374
|
profileInfo: "ScArtifaxSidebar_profileInfo",
|
|
3378
3375
|
profileName: "ScArtifaxSidebar_profileName",
|
|
3379
3376
|
profileSubtitle: "ScArtifaxSidebar_profileSubtitle",
|
|
3380
3377
|
creditWarningSlot: "ScArtifaxSidebar_creditWarningSlot",
|
|
3381
|
-
footerExpanded: "ScArtifaxSidebar_footerExpanded",
|
|
3382
|
-
footerVersion: "ScArtifaxSidebar_footerVersion",
|
|
3383
3378
|
footerToggle: "ScArtifaxSidebar_footerToggle",
|
|
3384
3379
|
footerCollapsed: "ScArtifaxSidebar_footerCollapsed",
|
|
3385
|
-
footerVersionCenter: "ScArtifaxSidebar_footerVersionCenter",
|
|
3386
3380
|
placeholderIcon: "ScArtifaxSidebar_placeholderIcon"
|
|
3387
3381
|
};
|
|
3388
3382
|
|
|
@@ -3438,9 +3432,7 @@ var ScArtifaxSidebar = ({
|
|
|
3438
3432
|
expandedLogo,
|
|
3439
3433
|
collapsedLogo,
|
|
3440
3434
|
creditWarning,
|
|
3441
|
-
switchApp,
|
|
3442
3435
|
profile,
|
|
3443
|
-
versionText = "v2.1.2",
|
|
3444
3436
|
toggleIcon,
|
|
3445
3437
|
openSections,
|
|
3446
3438
|
onSectionToggle,
|
|
@@ -3518,40 +3510,23 @@ var ScArtifaxSidebar = ({
|
|
|
3518
3510
|
] }, section.id);
|
|
3519
3511
|
})
|
|
3520
3512
|
] }),
|
|
3521
|
-
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime42.
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
switchApp ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
3535
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
3536
|
-
"button",
|
|
3537
|
-
{
|
|
3538
|
-
type: "button",
|
|
3539
|
-
className: ScArtifaxSidebar_default.switchAppRow,
|
|
3540
|
-
onClick: switchApp.onClick,
|
|
3541
|
-
children: [
|
|
3542
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: ScArtifaxSidebar_default.switchAppIconBox, children: switchApp.icon ?? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons35.SiconAppSwitch, {}) }),
|
|
3543
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: ScArtifaxSidebar_default.switchAppLabel, children: switchApp.label ?? "Switch App" })
|
|
3544
|
-
]
|
|
3545
|
-
}
|
|
3546
|
-
),
|
|
3547
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScHDivider, {})
|
|
3548
|
-
] }) : null,
|
|
3549
|
-
profile ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
3550
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
3513
|
+
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3514
|
+
CreditWarningBanner,
|
|
3515
|
+
{
|
|
3516
|
+
availableCredits: creditWarning.availableCredits,
|
|
3517
|
+
remainingPct: creditWarning.remainingPct,
|
|
3518
|
+
level: creditWarning.level ?? "danger",
|
|
3519
|
+
onBuyCredits: creditWarning.onBuyCredits,
|
|
3520
|
+
expanded: true
|
|
3521
|
+
}
|
|
3522
|
+
) }) : null,
|
|
3523
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScHDivider, {}),
|
|
3524
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
3525
|
+
profile ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
3551
3526
|
"button",
|
|
3552
3527
|
{
|
|
3553
3528
|
type: "button",
|
|
3554
|
-
className: ScArtifaxSidebar_default.
|
|
3529
|
+
className: ScArtifaxSidebar_default.profileMain,
|
|
3555
3530
|
onClick: profile.onClick,
|
|
3556
3531
|
children: [
|
|
3557
3532
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar }),
|
|
@@ -3561,11 +3536,7 @@ var ScArtifaxSidebar = ({
|
|
|
3561
3536
|
] })
|
|
3562
3537
|
]
|
|
3563
3538
|
}
|
|
3564
|
-
),
|
|
3565
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScHDivider, {})
|
|
3566
|
-
] }) : null,
|
|
3567
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: ScArtifaxSidebar_default.footerExpanded, children: [
|
|
3568
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: ScArtifaxSidebar_default.footerVersion, children: versionText }),
|
|
3539
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: ScArtifaxSidebar_default.profileMain, "aria-hidden": "true" }),
|
|
3569
3540
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3570
3541
|
"button",
|
|
3571
3542
|
{
|
|
@@ -3595,34 +3566,19 @@ var ScArtifaxSidebar = ({
|
|
|
3595
3566
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
|
|
3596
3567
|
] }, section.id))
|
|
3597
3568
|
] }),
|
|
3598
|
-
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime42.
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
switchApp ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
3612
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3613
|
-
"button",
|
|
3614
|
-
{
|
|
3615
|
-
type: "button",
|
|
3616
|
-
className: ScArtifaxSidebar_default.switchAppRowCollapsed,
|
|
3617
|
-
onClick: switchApp.onClick,
|
|
3618
|
-
"aria-label": switchApp.label ?? "Switch App",
|
|
3619
|
-
children: switchApp.icon ?? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons35.SiconAppSwitch, {})
|
|
3620
|
-
}
|
|
3621
|
-
),
|
|
3622
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScHDivider, {})
|
|
3623
|
-
] }) : null,
|
|
3624
|
-
profile ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
3625
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3569
|
+
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3570
|
+
CreditWarningBanner,
|
|
3571
|
+
{
|
|
3572
|
+
availableCredits: creditWarning.availableCredits,
|
|
3573
|
+
remainingPct: creditWarning.remainingPct,
|
|
3574
|
+
level: creditWarning.level ?? "danger",
|
|
3575
|
+
onBuyCredits: creditWarning.onBuyCredits,
|
|
3576
|
+
expanded: false
|
|
3577
|
+
}
|
|
3578
|
+
) }) : null,
|
|
3579
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScHDivider, {}),
|
|
3580
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
3581
|
+
profile ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3626
3582
|
"button",
|
|
3627
3583
|
{
|
|
3628
3584
|
type: "button",
|
|
@@ -3631,10 +3587,7 @@ var ScArtifaxSidebar = ({
|
|
|
3631
3587
|
"aria-label": profile.name,
|
|
3632
3588
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar })
|
|
3633
3589
|
}
|
|
3634
|
-
),
|
|
3635
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ScHDivider, {})
|
|
3636
|
-
] }) : null,
|
|
3637
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
3590
|
+
) : null,
|
|
3638
3591
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3639
3592
|
"button",
|
|
3640
3593
|
{
|
|
@@ -3644,8 +3597,7 @@ var ScArtifaxSidebar = ({
|
|
|
3644
3597
|
"aria-label": "Expand sidebar",
|
|
3645
3598
|
children: resolveToggleIcon2(toggleIcon, false)
|
|
3646
3599
|
}
|
|
3647
|
-
)
|
|
3648
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: ScArtifaxSidebar_default.footerVersionCenter, children: versionText })
|
|
3600
|
+
)
|
|
3649
3601
|
] })
|
|
3650
3602
|
] })
|
|
3651
3603
|
}
|
|
@@ -3734,7 +3686,8 @@ var ScSideBarLogoUnit_default = {
|
|
|
3734
3686
|
switch: "ScSideBarLogoUnit_switch",
|
|
3735
3687
|
switchIcon: "ScSideBarLogoUnit_switchIcon",
|
|
3736
3688
|
collapsed: "ScSideBarLogoUnit_collapsed",
|
|
3737
|
-
collapsedTrigger: "ScSideBarLogoUnit_collapsedTrigger"
|
|
3689
|
+
collapsedTrigger: "ScSideBarLogoUnit_collapsedTrigger",
|
|
3690
|
+
collapsedWordmarkSlot: "ScSideBarLogoUnit_collapsedWordmarkSlot"
|
|
3738
3691
|
};
|
|
3739
3692
|
|
|
3740
3693
|
// src/SC-SideBarLogoUnit/ScSideBarLogoUnit.tsx
|
|
@@ -3759,21 +3712,30 @@ var ScSideBarLogoUnit = ({
|
|
|
3759
3712
|
onSwitchClick?.();
|
|
3760
3713
|
};
|
|
3761
3714
|
if (state === "collapsed") {
|
|
3715
|
+
const collapsedClasses = [
|
|
3716
|
+
ScSideBarLogoUnit_default.collapsedTrigger,
|
|
3717
|
+
interactive ? "" : ScSideBarLogoUnit_default.nonInteractive,
|
|
3718
|
+
hover === true ? ScSideBarLogoUnit_default.forceHover : ""
|
|
3719
|
+
].filter(Boolean).join(" ");
|
|
3762
3720
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3763
3721
|
"div",
|
|
3764
3722
|
{
|
|
3765
3723
|
className: ScSideBarLogoUnit_default.scSideBarLogoUnit + " " + ScSideBarLogoUnit_default.collapsed + (className ? " " + className : ""),
|
|
3766
3724
|
style,
|
|
3767
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime44.
|
|
3725
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3768
3726
|
"button",
|
|
3769
3727
|
{
|
|
3770
3728
|
type: "button",
|
|
3771
|
-
className:
|
|
3729
|
+
className: collapsedClasses,
|
|
3772
3730
|
onClick: interactive ? handleClick : void 0,
|
|
3773
3731
|
disabled,
|
|
3774
3732
|
"aria-label": interactive ? switchAriaLabel : void 0,
|
|
3775
3733
|
"aria-disabled": !interactive || disabled,
|
|
3776
|
-
|
|
3734
|
+
style: hover === false ? { backgroundColor: "transparent" } : void 0,
|
|
3735
|
+
children: [
|
|
3736
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: ScSideBarLogoUnit_default.collapsedWordmarkSlot, children: wordmark }),
|
|
3737
|
+
hideSwitch ? null : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: ScSideBarLogoUnit_default.switch, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: ScSideBarLogoUnit_default.switchIcon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons37.SiconDoubleArrow, { size: 16, strokeWidth: 1.5 }) }) })
|
|
3738
|
+
]
|
|
3777
3739
|
}
|
|
3778
3740
|
)
|
|
3779
3741
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3260,32 +3260,21 @@ var ScArtifaxSidebar_default = {
|
|
|
3260
3260
|
sectionHeader: "ScArtifaxSidebar_sectionHeader",
|
|
3261
3261
|
sectionLabel: "ScArtifaxSidebar_sectionLabel",
|
|
3262
3262
|
sectionChevron: "ScArtifaxSidebar_sectionChevron",
|
|
3263
|
-
switchAppRow: "ScArtifaxSidebar_switchAppRow",
|
|
3264
|
-
switchAppIconBox: "ScArtifaxSidebar_switchAppIconBox",
|
|
3265
|
-
switchAppLabel: "ScArtifaxSidebar_switchAppLabel",
|
|
3266
|
-
switchAppRowCollapsed: "ScArtifaxSidebar_switchAppRowCollapsed",
|
|
3267
3263
|
profileRow: "ScArtifaxSidebar_profileRow",
|
|
3264
|
+
profileMain: "ScArtifaxSidebar_profileMain",
|
|
3268
3265
|
profileRowCollapsed: "ScArtifaxSidebar_profileRowCollapsed",
|
|
3269
3266
|
profileAvatar: "ScArtifaxSidebar_profileAvatar",
|
|
3270
3267
|
profileInfo: "ScArtifaxSidebar_profileInfo",
|
|
3271
3268
|
profileName: "ScArtifaxSidebar_profileName",
|
|
3272
3269
|
profileSubtitle: "ScArtifaxSidebar_profileSubtitle",
|
|
3273
3270
|
creditWarningSlot: "ScArtifaxSidebar_creditWarningSlot",
|
|
3274
|
-
footerExpanded: "ScArtifaxSidebar_footerExpanded",
|
|
3275
|
-
footerVersion: "ScArtifaxSidebar_footerVersion",
|
|
3276
3271
|
footerToggle: "ScArtifaxSidebar_footerToggle",
|
|
3277
3272
|
footerCollapsed: "ScArtifaxSidebar_footerCollapsed",
|
|
3278
|
-
footerVersionCenter: "ScArtifaxSidebar_footerVersionCenter",
|
|
3279
3273
|
placeholderIcon: "ScArtifaxSidebar_placeholderIcon"
|
|
3280
3274
|
};
|
|
3281
3275
|
|
|
3282
3276
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
3283
|
-
import {
|
|
3284
|
-
SiconAppSwitch,
|
|
3285
|
-
SiconCollapse as SiconCollapse3,
|
|
3286
|
-
SiconDown,
|
|
3287
|
-
SiconUp
|
|
3288
|
-
} from "@streamoid/icons";
|
|
3277
|
+
import { SiconCollapse as SiconCollapse3, SiconDown, SiconUp } from "@streamoid/icons";
|
|
3289
3278
|
import { Fragment as Fragment15, jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3290
3279
|
function ArtifaxPlaceholderIcon() {
|
|
3291
3280
|
return /* @__PURE__ */ jsx41("span", { "aria-hidden": "true", className: ScArtifaxSidebar_default.placeholderIcon });
|
|
@@ -3336,9 +3325,7 @@ var ScArtifaxSidebar = ({
|
|
|
3336
3325
|
expandedLogo,
|
|
3337
3326
|
collapsedLogo,
|
|
3338
3327
|
creditWarning,
|
|
3339
|
-
switchApp,
|
|
3340
3328
|
profile,
|
|
3341
|
-
versionText = "v2.1.2",
|
|
3342
3329
|
toggleIcon,
|
|
3343
3330
|
openSections,
|
|
3344
3331
|
onSectionToggle,
|
|
@@ -3416,40 +3403,23 @@ var ScArtifaxSidebar = ({
|
|
|
3416
3403
|
] }, section.id);
|
|
3417
3404
|
})
|
|
3418
3405
|
] }),
|
|
3419
|
-
creditWarning ? /* @__PURE__ */
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
switchApp ? /* @__PURE__ */ jsxs33(Fragment15, { children: [
|
|
3433
|
-
/* @__PURE__ */ jsxs33(
|
|
3434
|
-
"button",
|
|
3435
|
-
{
|
|
3436
|
-
type: "button",
|
|
3437
|
-
className: ScArtifaxSidebar_default.switchAppRow,
|
|
3438
|
-
onClick: switchApp.onClick,
|
|
3439
|
-
children: [
|
|
3440
|
-
/* @__PURE__ */ jsx41("div", { className: ScArtifaxSidebar_default.switchAppIconBox, children: switchApp.icon ?? /* @__PURE__ */ jsx41(SiconAppSwitch, {}) }),
|
|
3441
|
-
/* @__PURE__ */ jsx41("span", { className: ScArtifaxSidebar_default.switchAppLabel, children: switchApp.label ?? "Switch App" })
|
|
3442
|
-
]
|
|
3443
|
-
}
|
|
3444
|
-
),
|
|
3445
|
-
/* @__PURE__ */ jsx41(ScHDivider, {})
|
|
3446
|
-
] }) : null,
|
|
3447
|
-
profile ? /* @__PURE__ */ jsxs33(Fragment15, { children: [
|
|
3448
|
-
/* @__PURE__ */ jsxs33(
|
|
3406
|
+
creditWarning ? /* @__PURE__ */ jsx41("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx41(
|
|
3407
|
+
CreditWarningBanner,
|
|
3408
|
+
{
|
|
3409
|
+
availableCredits: creditWarning.availableCredits,
|
|
3410
|
+
remainingPct: creditWarning.remainingPct,
|
|
3411
|
+
level: creditWarning.level ?? "danger",
|
|
3412
|
+
onBuyCredits: creditWarning.onBuyCredits,
|
|
3413
|
+
expanded: true
|
|
3414
|
+
}
|
|
3415
|
+
) }) : null,
|
|
3416
|
+
/* @__PURE__ */ jsx41(ScHDivider, {}),
|
|
3417
|
+
/* @__PURE__ */ jsxs33("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
3418
|
+
profile ? /* @__PURE__ */ jsxs33(
|
|
3449
3419
|
"button",
|
|
3450
3420
|
{
|
|
3451
3421
|
type: "button",
|
|
3452
|
-
className: ScArtifaxSidebar_default.
|
|
3422
|
+
className: ScArtifaxSidebar_default.profileMain,
|
|
3453
3423
|
onClick: profile.onClick,
|
|
3454
3424
|
children: [
|
|
3455
3425
|
/* @__PURE__ */ jsx41("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar }),
|
|
@@ -3459,11 +3429,7 @@ var ScArtifaxSidebar = ({
|
|
|
3459
3429
|
] })
|
|
3460
3430
|
]
|
|
3461
3431
|
}
|
|
3462
|
-
),
|
|
3463
|
-
/* @__PURE__ */ jsx41(ScHDivider, {})
|
|
3464
|
-
] }) : null,
|
|
3465
|
-
/* @__PURE__ */ jsxs33("div", { className: ScArtifaxSidebar_default.footerExpanded, children: [
|
|
3466
|
-
/* @__PURE__ */ jsx41("span", { className: ScArtifaxSidebar_default.footerVersion, children: versionText }),
|
|
3432
|
+
) : /* @__PURE__ */ jsx41("span", { className: ScArtifaxSidebar_default.profileMain, "aria-hidden": "true" }),
|
|
3467
3433
|
/* @__PURE__ */ jsx41(
|
|
3468
3434
|
"button",
|
|
3469
3435
|
{
|
|
@@ -3493,34 +3459,19 @@ var ScArtifaxSidebar = ({
|
|
|
3493
3459
|
/* @__PURE__ */ jsx41("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
|
|
3494
3460
|
] }, section.id))
|
|
3495
3461
|
] }),
|
|
3496
|
-
creditWarning ? /* @__PURE__ */
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
switchApp ? /* @__PURE__ */ jsxs33(Fragment15, { children: [
|
|
3510
|
-
/* @__PURE__ */ jsx41(
|
|
3511
|
-
"button",
|
|
3512
|
-
{
|
|
3513
|
-
type: "button",
|
|
3514
|
-
className: ScArtifaxSidebar_default.switchAppRowCollapsed,
|
|
3515
|
-
onClick: switchApp.onClick,
|
|
3516
|
-
"aria-label": switchApp.label ?? "Switch App",
|
|
3517
|
-
children: switchApp.icon ?? /* @__PURE__ */ jsx41(SiconAppSwitch, {})
|
|
3518
|
-
}
|
|
3519
|
-
),
|
|
3520
|
-
/* @__PURE__ */ jsx41(ScHDivider, {})
|
|
3521
|
-
] }) : null,
|
|
3522
|
-
profile ? /* @__PURE__ */ jsxs33(Fragment15, { children: [
|
|
3523
|
-
/* @__PURE__ */ jsx41(
|
|
3462
|
+
creditWarning ? /* @__PURE__ */ jsx41("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx41(
|
|
3463
|
+
CreditWarningBanner,
|
|
3464
|
+
{
|
|
3465
|
+
availableCredits: creditWarning.availableCredits,
|
|
3466
|
+
remainingPct: creditWarning.remainingPct,
|
|
3467
|
+
level: creditWarning.level ?? "danger",
|
|
3468
|
+
onBuyCredits: creditWarning.onBuyCredits,
|
|
3469
|
+
expanded: false
|
|
3470
|
+
}
|
|
3471
|
+
) }) : null,
|
|
3472
|
+
/* @__PURE__ */ jsx41(ScHDivider, {}),
|
|
3473
|
+
/* @__PURE__ */ jsxs33("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
3474
|
+
profile ? /* @__PURE__ */ jsx41(
|
|
3524
3475
|
"button",
|
|
3525
3476
|
{
|
|
3526
3477
|
type: "button",
|
|
@@ -3529,10 +3480,7 @@ var ScArtifaxSidebar = ({
|
|
|
3529
3480
|
"aria-label": profile.name,
|
|
3530
3481
|
children: /* @__PURE__ */ jsx41("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar })
|
|
3531
3482
|
}
|
|
3532
|
-
),
|
|
3533
|
-
/* @__PURE__ */ jsx41(ScHDivider, {})
|
|
3534
|
-
] }) : null,
|
|
3535
|
-
/* @__PURE__ */ jsxs33("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
3483
|
+
) : null,
|
|
3536
3484
|
/* @__PURE__ */ jsx41(
|
|
3537
3485
|
"button",
|
|
3538
3486
|
{
|
|
@@ -3542,8 +3490,7 @@ var ScArtifaxSidebar = ({
|
|
|
3542
3490
|
"aria-label": "Expand sidebar",
|
|
3543
3491
|
children: resolveToggleIcon2(toggleIcon, false)
|
|
3544
3492
|
}
|
|
3545
|
-
)
|
|
3546
|
-
/* @__PURE__ */ jsx41("span", { className: ScArtifaxSidebar_default.footerVersionCenter, children: versionText })
|
|
3493
|
+
)
|
|
3547
3494
|
] })
|
|
3548
3495
|
] })
|
|
3549
3496
|
}
|
|
@@ -3632,7 +3579,8 @@ var ScSideBarLogoUnit_default = {
|
|
|
3632
3579
|
switch: "ScSideBarLogoUnit_switch",
|
|
3633
3580
|
switchIcon: "ScSideBarLogoUnit_switchIcon",
|
|
3634
3581
|
collapsed: "ScSideBarLogoUnit_collapsed",
|
|
3635
|
-
collapsedTrigger: "ScSideBarLogoUnit_collapsedTrigger"
|
|
3582
|
+
collapsedTrigger: "ScSideBarLogoUnit_collapsedTrigger",
|
|
3583
|
+
collapsedWordmarkSlot: "ScSideBarLogoUnit_collapsedWordmarkSlot"
|
|
3636
3584
|
};
|
|
3637
3585
|
|
|
3638
3586
|
// src/SC-SideBarLogoUnit/ScSideBarLogoUnit.tsx
|
|
@@ -3657,21 +3605,30 @@ var ScSideBarLogoUnit = ({
|
|
|
3657
3605
|
onSwitchClick?.();
|
|
3658
3606
|
};
|
|
3659
3607
|
if (state === "collapsed") {
|
|
3608
|
+
const collapsedClasses = [
|
|
3609
|
+
ScSideBarLogoUnit_default.collapsedTrigger,
|
|
3610
|
+
interactive ? "" : ScSideBarLogoUnit_default.nonInteractive,
|
|
3611
|
+
hover === true ? ScSideBarLogoUnit_default.forceHover : ""
|
|
3612
|
+
].filter(Boolean).join(" ");
|
|
3660
3613
|
return /* @__PURE__ */ jsx43(
|
|
3661
3614
|
"div",
|
|
3662
3615
|
{
|
|
3663
3616
|
className: ScSideBarLogoUnit_default.scSideBarLogoUnit + " " + ScSideBarLogoUnit_default.collapsed + (className ? " " + className : ""),
|
|
3664
3617
|
style,
|
|
3665
|
-
children: /* @__PURE__ */
|
|
3618
|
+
children: /* @__PURE__ */ jsxs35(
|
|
3666
3619
|
"button",
|
|
3667
3620
|
{
|
|
3668
3621
|
type: "button",
|
|
3669
|
-
className:
|
|
3622
|
+
className: collapsedClasses,
|
|
3670
3623
|
onClick: interactive ? handleClick : void 0,
|
|
3671
3624
|
disabled,
|
|
3672
3625
|
"aria-label": interactive ? switchAriaLabel : void 0,
|
|
3673
3626
|
"aria-disabled": !interactive || disabled,
|
|
3674
|
-
|
|
3627
|
+
style: hover === false ? { backgroundColor: "transparent" } : void 0,
|
|
3628
|
+
children: [
|
|
3629
|
+
/* @__PURE__ */ jsx43("span", { className: ScSideBarLogoUnit_default.collapsedWordmarkSlot, children: wordmark }),
|
|
3630
|
+
hideSwitch ? null : /* @__PURE__ */ jsx43("span", { className: ScSideBarLogoUnit_default.switch, children: /* @__PURE__ */ jsx43("span", { className: ScSideBarLogoUnit_default.switchIcon, children: /* @__PURE__ */ jsx43(SiconDoubleArrow, { size: 16, strokeWidth: 1.5 }) }) })
|
|
3631
|
+
]
|
|
3675
3632
|
}
|
|
3676
3633
|
)
|
|
3677
3634
|
}
|