@streamoid/ui 0.3.0 → 0.3.2

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 CHANGED
@@ -2730,15 +2730,12 @@
2730
2730
  }
2731
2731
 
2732
2732
  /* src/SC-VDivider/ScVDivider.module.css */
2733
- .ScVDivider_scVDivider,
2734
- .ScVDivider_scVDivider * {
2735
- box-sizing: border-box;
2736
- }
2737
2733
  .ScVDivider_scVDivider {
2738
- width: 0rem;
2739
- height: 1.71875rem;
2740
- position: relative;
2741
- overflow: visible;
2734
+ box-sizing: border-box;
2735
+ width: 0;
2736
+ align-self: stretch;
2737
+ border-left: 0.5px solid var(--alias-border-divider, #242424);
2738
+ flex-shrink: 0;
2742
2739
  }
2743
2740
 
2744
2741
  /* src/SC-Profile options/ScProfileOptions.module.css */
@@ -3119,6 +3116,7 @@
3119
3116
  flex-shrink: 0;
3120
3117
  height: 3rem;
3121
3118
  position: relative;
3119
+ overflow: hidden;
3122
3120
  color: var(--alias-text-and-icons-muted, #7a7a7a);
3123
3121
  }
3124
3122
  .ScTextField_inputText {
@@ -3130,12 +3128,16 @@
3130
3128
  font-weight: var(--text-text-sm-regular-font-weight, 400);
3131
3129
  position: relative;
3132
3130
  flex: 1;
3131
+ min-width: 0;
3133
3132
  display: flex;
3134
3133
  align-items: center;
3135
3134
  justify-content: flex-start;
3136
3135
  background: transparent;
3137
3136
  outline: none;
3138
3137
  border: none;
3138
+ overflow: hidden;
3139
+ text-overflow: ellipsis;
3140
+ white-space: nowrap;
3139
3141
  }
3140
3142
  .ScTextField_scTextField.ScTextField_label-group-text .ScTextField_info {
3141
3143
  color: var(--alias-text-and-icons-muted, #7a7a7a);
@@ -3445,10 +3447,20 @@
3445
3447
  line-height: var(--text-text-sm-regular-line-height, 1.25rem);
3446
3448
  font-weight: var(--text-text-sm-regular-font-weight, 400);
3447
3449
  position: relative;
3448
- width: 9.9375rem;
3450
+ flex: 1 0 0;
3451
+ min-width: 0;
3449
3452
  height: 1.25rem;
3450
3453
  text-overflow: ellipsis;
3451
3454
  overflow: hidden;
3455
+ white-space: nowrap;
3456
+ }
3457
+ .ScSidebarMenu_moreIconWrapper {
3458
+ display: none;
3459
+ align-items: center;
3460
+ padding: 0.125rem;
3461
+ border-radius: var(--radius-md, 0.5rem);
3462
+ flex-shrink: 0;
3463
+ cursor: pointer;
3452
3464
  }
3453
3465
  .ScSidebarMenu_scSidebarMenu.ScSidebarMenu_state-active {
3454
3466
  background: var(--alias-fill-neutral-neutralselected, #242424);
@@ -3456,10 +3468,17 @@
3456
3468
  .ScSidebarMenu_scSidebarMenu.ScSidebarMenu_state-active .ScSidebarMenu_content {
3457
3469
  color: var(--alias-text-and-icons-primary, #f5f5f5);
3458
3470
  }
3471
+ .ScSidebarMenu_scSidebarMenu.ScSidebarMenu_state-default-highlight .ScSidebarMenu_content {
3472
+ color: var(--alias-text-and-icons-primary, #f5f5f5);
3473
+ }
3459
3474
  .ScSidebarMenu_scSidebarMenu:hover,
3460
3475
  .ScSidebarMenu_scSidebarMenu.ScSidebarMenu_state-hover {
3461
3476
  background: var(--alias-fill-neutral-neutral, #1a1a1a);
3462
3477
  }
3478
+ .ScSidebarMenu_scSidebarMenu:hover .ScSidebarMenu_moreIconWrapper,
3479
+ .ScSidebarMenu_scSidebarMenu.ScSidebarMenu_state-hover .ScSidebarMenu_moreIconWrapper {
3480
+ display: flex;
3481
+ }
3463
3482
  .ScSidebarMenu_scSidebarMenu.ScSidebarMenu_variant-collapsed {
3464
3483
  padding: var(--spacing-md, 0.5rem);
3465
3484
  align-self: unset;
@@ -3772,6 +3791,151 @@
3772
3791
  white-space: nowrap;
3773
3792
  }
3774
3793
 
3794
+ /* src/SC-AppCardV3/ScAppCardV3.module.css */
3795
+ .ScAppCardV3_scAppCardV3,
3796
+ .ScAppCardV3_scAppCardV3 * {
3797
+ box-sizing: border-box;
3798
+ }
3799
+ .ScAppCardV3_cardBorder {
3800
+ padding: 1px;
3801
+ border-radius: var(--radius-3xl, 1rem);
3802
+ background: var(--alias-border-subtle, #242424);
3803
+ transition: background 0.6s ease;
3804
+ }
3805
+ .ScAppCardV3_cardBorder:hover {
3806
+ background:
3807
+ linear-gradient(
3808
+ 135deg,
3809
+ var(--alias-border-subtle, #242424) 0%,
3810
+ var(--alias-border-subtle, #242424) 50%,
3811
+ #EE5E3A 100%);
3812
+ }
3813
+ .ScAppCardV3_scAppCardV3 {
3814
+ background: var(--alias-surface-base, #101010);
3815
+ border-radius: calc(var(--radius-3xl, 1rem) - 1px);
3816
+ padding: var(--spacing-3xl, 1rem);
3817
+ display: flex;
3818
+ flex-direction: column;
3819
+ gap: var(--spacing-xl, 0.75rem);
3820
+ align-items: flex-start;
3821
+ position: relative;
3822
+ overflow: clip;
3823
+ backdrop-filter: blur(4px);
3824
+ cursor: pointer;
3825
+ height: 100%;
3826
+ }
3827
+ .ScAppCardV3_scAppCardV3Active {
3828
+ background: var(--alias-surface-raised, #242424);
3829
+ }
3830
+ .ScAppCardV3_glow {
3831
+ position: absolute;
3832
+ bottom: -1px;
3833
+ right: -1px;
3834
+ width: 99px;
3835
+ height: 50px;
3836
+ pointer-events: none;
3837
+ border-radius: 50%;
3838
+ background: none;
3839
+ transition: opacity 0.2s ease;
3840
+ }
3841
+ .ScAppCardV3_cardBorder:hover .ScAppCardV3_glow {
3842
+ opacity: 0;
3843
+ }
3844
+ .ScAppCardV3_glowHover {
3845
+ position: absolute;
3846
+ inset: 0;
3847
+ pointer-events: none;
3848
+ opacity: 0;
3849
+ transition: opacity 0.6s ease;
3850
+ border-radius: inherit;
3851
+ background:
3852
+ radial-gradient(
3853
+ ellipse at 85% 90%,
3854
+ rgba(200, 60, 20, 0.50) 0%,
3855
+ rgba(200, 60, 20, 0.28) 20%,
3856
+ rgba(180, 50, 15, 0.14) 40%,
3857
+ rgba(140, 40, 10, 0.06) 60%,
3858
+ rgba(100, 30, 10, 0.02) 80%,
3859
+ transparent 100%);
3860
+ }
3861
+ .ScAppCardV3_cardBorder:hover .ScAppCardV3_glowHover {
3862
+ opacity: 1;
3863
+ }
3864
+ .ScAppCardV3_header {
3865
+ display: flex;
3866
+ flex-direction: column;
3867
+ gap: var(--spacing-xs, 0.25rem);
3868
+ align-items: center;
3869
+ justify-content: center;
3870
+ width: 100%;
3871
+ position: relative;
3872
+ flex-shrink: 0;
3873
+ }
3874
+ .ScAppCardV3_iconRow {
3875
+ display: flex;
3876
+ gap: 8px;
3877
+ align-items: center;
3878
+ border-radius: var(--radius-md, 0.5rem);
3879
+ width: 100%;
3880
+ flex-shrink: 0;
3881
+ }
3882
+ .ScAppCardV3_appName {
3883
+ flex: 1 0 0;
3884
+ color: var(--alias-text-and-icons-primary, #f5f5f5);
3885
+ font-family: var( --text-text-md-medium-font-family, "Inter-Medium", sans-serif );
3886
+ font-size: var(--text-text-md-medium-font-size, 1rem);
3887
+ line-height: var(--text-text-md-medium-line-height, 1.5rem);
3888
+ font-weight: var(--text-text-md-medium-font-weight, 500);
3889
+ min-width: 1px;
3890
+ min-height: 1px;
3891
+ overflow: hidden;
3892
+ text-overflow: ellipsis;
3893
+ }
3894
+ .ScAppCardV3_iconPill {
3895
+ display: flex;
3896
+ align-items: center;
3897
+ padding: 6px;
3898
+ border-radius: var(--radius-xs, 4px);
3899
+ position: relative;
3900
+ flex-shrink: 0;
3901
+ }
3902
+ .ScAppCardV3_iconPillBg {
3903
+ position: absolute;
3904
+ inset: 0;
3905
+ background: rgba(0, 0, 0, 0.24);
3906
+ backdrop-filter: blur(40px);
3907
+ border-radius: var(--radius-xs, 4px);
3908
+ pointer-events: none;
3909
+ }
3910
+ .ScAppCardV3_iconPillShadow {
3911
+ position: absolute;
3912
+ inset: 0;
3913
+ border-radius: inherit;
3914
+ box-shadow: inset 0px 4px 8px 0px rgba(0, 0, 0, 0.32);
3915
+ pointer-events: none;
3916
+ }
3917
+ .ScAppCardV3_iconPillIcon {
3918
+ position: relative;
3919
+ width: 20px;
3920
+ height: 20px;
3921
+ flex-shrink: 0;
3922
+ color: var(--alias-text-and-icons-primary, #f5f5f5);
3923
+ }
3924
+ .ScAppCardV3_iconPillIcon > * {
3925
+ width: 100%;
3926
+ height: 100%;
3927
+ }
3928
+ .ScAppCardV3_description {
3929
+ color: var(--alias-text-and-icons-tertiary, #9e9e9e);
3930
+ font-family: var( --text-text-xs-regular-font-family, "Inter-Regular", sans-serif );
3931
+ font-size: var(--text-text-xs-regular-font-size, 0.75rem);
3932
+ line-height: var(--text-text-xs-regular-line-height, 1.125rem);
3933
+ font-weight: var(--text-text-xs-regular-font-weight, 400);
3934
+ width: 100%;
3935
+ position: relative;
3936
+ flex-shrink: 0;
3937
+ }
3938
+
3775
3939
  /* src/SC-appField/ScAppField.module.css */
3776
3940
  .ScAppField_scAppField,
3777
3941
  .ScAppField_scAppField * {
@@ -4075,6 +4239,36 @@
4075
4239
  .ScOnlyField_inputText::placeholder {
4076
4240
  color: var(--alias-text-and-icons-muted, #7a7a7a);
4077
4241
  }
4242
+ .ScOnlyField_iconWrapper {
4243
+ display: flex;
4244
+ align-items: center;
4245
+ justify-content: center;
4246
+ flex-shrink: 0;
4247
+ width: 24px;
4248
+ height: 24px;
4249
+ }
4250
+ .ScOnlyField_iconWrapper > * {
4251
+ width: 100%;
4252
+ height: 100%;
4253
+ }
4254
+ .ScOnlyField_size-medium .ScOnlyField_inputContainer {
4255
+ height: 2.5rem;
4256
+ padding: var(--spacing-md, 0.5rem) var(--spacing-xl, 0.75rem);
4257
+ border-radius: var(--radius-xl, 0.75rem);
4258
+ }
4259
+ .ScOnlyField_size-medium .ScOnlyField_iconWrapper {
4260
+ width: 20px;
4261
+ height: 20px;
4262
+ }
4263
+ .ScOnlyField_size-small .ScOnlyField_inputContainer {
4264
+ height: 2rem;
4265
+ padding: var(--spacing-md, 0.5rem) var(--spacing-xl, 0.75rem);
4266
+ border-radius: var(--radius-lg, 0.625rem);
4267
+ }
4268
+ .ScOnlyField_size-small .ScOnlyField_iconWrapper {
4269
+ width: 16px;
4270
+ height: 16px;
4271
+ }
4078
4272
  .ScOnlyField_scOnlyField.ScOnlyField_tf-group-icon-left .ScOnlyField_inputContainer,
4079
4273
  .ScOnlyField_scOnlyField.ScOnlyField_tf-group-icon-left-right .ScOnlyField_inputContainer {
4080
4274
  gap: var(--spacing-md, 0.5rem);
package/dist/index.d.mts CHANGED
@@ -290,26 +290,35 @@ interface StreamoidSidebarProps {
290
290
  config: SidebarConfig;
291
291
  iconMap: SidebarIconMap;
292
292
  activeItemId?: string;
293
+ highlightedItemIds?: Set<string>;
293
294
  onItemSelect?: (item: SidebarMenuItemConfig, sectionId?: string) => void;
295
+ moreIcon?: ReactNode;
296
+ onMoreClick?: (item: SidebarMenuItemConfig, sectionId?: string) => void;
294
297
  expandedLogo?: ReactNode;
295
298
  collapsedLogo?: ReactNode;
296
299
  profile?: SidebarProfileConfig;
297
300
  versionText?: string;
298
301
  toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
299
302
  hideFooter?: boolean;
303
+ preFooterContent?: ReactNode;
304
+ bodyContent?: ReactNode;
305
+ showBody?: boolean;
306
+ isMobile?: boolean;
300
307
  className?: string;
301
308
  style?: CSSProperties;
302
309
  }
303
- declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, hideFooter, className, style, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
310
+ declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, hideFooter, preFooterContent, bodyContent, showBody, isMobile, className, style, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
304
311
 
305
312
  interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
306
313
  icon?: JSX.Element;
307
- state?: "default" | "active";
314
+ state?: "default" | "active" | "hover" | "default-highlight";
308
315
  variant?: "expanded" | "collapsed";
309
316
  className?: string;
310
317
  text?: string;
318
+ moreIcon?: ReactNode;
319
+ onMoreClick?: (e: React.MouseEvent) => void;
311
320
  }
312
- declare const ScSidebarMenu: ({ icon, state, variant, className, text, ...props }: IScSidebarMenuProps) => JSX.Element;
321
+ declare const ScSidebarMenu: ({ icon, state, variant, className, text, moreIcon, onMoreClick, ...props }: IScSidebarMenuProps) => JSX.Element;
313
322
 
314
323
  interface IScSidebarProfileProps extends React.HTMLAttributes<HTMLDivElement> {
315
324
  state?: "default" | "hover";
@@ -324,10 +333,11 @@ interface IScSliderProps extends React.HTMLAttributes<HTMLDivElement> {
324
333
  }
325
334
  declare const ScSlider: ({ className, onValueChange, ...props }: IScSliderProps) => JSX.Element;
326
335
 
327
- interface IScVDividerProps {
336
+ interface IScVDividerProps extends React.HTMLAttributes<HTMLDivElement> {
337
+ color?: string;
328
338
  className?: string;
329
339
  }
330
- declare const ScVDivider: ({ className, ...props }: IScVDividerProps) => JSX.Element;
340
+ declare const ScVDivider: ({ color, className, style, ...props }: IScVDividerProps) => JSX.Element;
331
341
 
332
342
  interface WorkspaceSwitcherItem {
333
343
  id: string;
@@ -370,6 +380,15 @@ interface IScAppCardProps extends React.HTMLAttributes<HTMLDivElement> {
370
380
  }
371
381
  declare const ScAppCard: ({ appIcon, appName, appDescription, className, ...props }: IScAppCardProps) => JSX.Element;
372
382
 
383
+ interface IScAppCardV3Props extends React.HTMLAttributes<HTMLDivElement> {
384
+ appIcon?: ReactNode;
385
+ appName?: string;
386
+ description?: string;
387
+ active?: boolean;
388
+ className?: string;
389
+ }
390
+ declare const ScAppCardV3: ({ appIcon, appName, description, active, className, style, ...props }: IScAppCardV3Props) => JSX.Element;
391
+
373
392
  interface IScAppFieldProps extends React.HTMLAttributes<HTMLDivElement> {
374
393
  appFieldTitle?: string;
375
394
  className?: string;
@@ -464,13 +483,14 @@ interface IScOnlyFieldProps extends React.HTMLAttributes<HTMLDivElement> {
464
483
  state?: "default" | "active" | "error" | "disabled" | "filled";
465
484
  tfGroup?: "icon-right" | "icon-left" | "icon-left-right" | "none";
466
485
  labelGroup?: "none" | "label" | "text" | "icon";
486
+ size?: "default" | "medium" | "small";
467
487
  className?: string;
468
488
  placeholderFilled?: string;
469
489
  value?: string;
470
490
  onInputChange?: (value: string) => void;
471
491
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
472
492
  }
473
- declare const ScOnlyField: ({ tfRightIcon, tfLeftIcon, state, tfGroup, labelGroup, className, placeholderFilled, value, onInputChange, inputProps, ...props }: IScOnlyFieldProps) => JSX.Element;
493
+ declare const ScOnlyField: ({ tfRightIcon, tfLeftIcon, state, tfGroup, labelGroup, size, className, placeholderFilled, value, onInputChange, inputProps, ...props }: IScOnlyFieldProps) => JSX.Element;
474
494
 
475
495
  interface IScPendingActionProps extends React.HTMLAttributes<HTMLDivElement> {
476
496
  className?: string;
@@ -904,4 +924,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
904
924
  }
905
925
  declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, currentPlanLabel, upgradeButtonText, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
906
926
 
907
- export { type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppFieldProps, type IScAppListingCardProps, type IScArtifaxInviteProps, type IScBadgesProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, 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 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, ScAppField, ScAppListingCard, ScArtifaxInvite, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, 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, 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 };
927
+ export { type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScArtifaxInviteProps, type IScBadgesProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, 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 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, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, 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, 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
@@ -290,26 +290,35 @@ interface StreamoidSidebarProps {
290
290
  config: SidebarConfig;
291
291
  iconMap: SidebarIconMap;
292
292
  activeItemId?: string;
293
+ highlightedItemIds?: Set<string>;
293
294
  onItemSelect?: (item: SidebarMenuItemConfig, sectionId?: string) => void;
295
+ moreIcon?: ReactNode;
296
+ onMoreClick?: (item: SidebarMenuItemConfig, sectionId?: string) => void;
294
297
  expandedLogo?: ReactNode;
295
298
  collapsedLogo?: ReactNode;
296
299
  profile?: SidebarProfileConfig;
297
300
  versionText?: string;
298
301
  toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
299
302
  hideFooter?: boolean;
303
+ preFooterContent?: ReactNode;
304
+ bodyContent?: ReactNode;
305
+ showBody?: boolean;
306
+ isMobile?: boolean;
300
307
  className?: string;
301
308
  style?: CSSProperties;
302
309
  }
303
- declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, hideFooter, className, style, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
310
+ declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, hideFooter, preFooterContent, bodyContent, showBody, isMobile, className, style, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
304
311
 
305
312
  interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
306
313
  icon?: JSX.Element;
307
- state?: "default" | "active";
314
+ state?: "default" | "active" | "hover" | "default-highlight";
308
315
  variant?: "expanded" | "collapsed";
309
316
  className?: string;
310
317
  text?: string;
318
+ moreIcon?: ReactNode;
319
+ onMoreClick?: (e: React.MouseEvent) => void;
311
320
  }
312
- declare const ScSidebarMenu: ({ icon, state, variant, className, text, ...props }: IScSidebarMenuProps) => JSX.Element;
321
+ declare const ScSidebarMenu: ({ icon, state, variant, className, text, moreIcon, onMoreClick, ...props }: IScSidebarMenuProps) => JSX.Element;
313
322
 
314
323
  interface IScSidebarProfileProps extends React.HTMLAttributes<HTMLDivElement> {
315
324
  state?: "default" | "hover";
@@ -324,10 +333,11 @@ interface IScSliderProps extends React.HTMLAttributes<HTMLDivElement> {
324
333
  }
325
334
  declare const ScSlider: ({ className, onValueChange, ...props }: IScSliderProps) => JSX.Element;
326
335
 
327
- interface IScVDividerProps {
336
+ interface IScVDividerProps extends React.HTMLAttributes<HTMLDivElement> {
337
+ color?: string;
328
338
  className?: string;
329
339
  }
330
- declare const ScVDivider: ({ className, ...props }: IScVDividerProps) => JSX.Element;
340
+ declare const ScVDivider: ({ color, className, style, ...props }: IScVDividerProps) => JSX.Element;
331
341
 
332
342
  interface WorkspaceSwitcherItem {
333
343
  id: string;
@@ -370,6 +380,15 @@ interface IScAppCardProps extends React.HTMLAttributes<HTMLDivElement> {
370
380
  }
371
381
  declare const ScAppCard: ({ appIcon, appName, appDescription, className, ...props }: IScAppCardProps) => JSX.Element;
372
382
 
383
+ interface IScAppCardV3Props extends React.HTMLAttributes<HTMLDivElement> {
384
+ appIcon?: ReactNode;
385
+ appName?: string;
386
+ description?: string;
387
+ active?: boolean;
388
+ className?: string;
389
+ }
390
+ declare const ScAppCardV3: ({ appIcon, appName, description, active, className, style, ...props }: IScAppCardV3Props) => JSX.Element;
391
+
373
392
  interface IScAppFieldProps extends React.HTMLAttributes<HTMLDivElement> {
374
393
  appFieldTitle?: string;
375
394
  className?: string;
@@ -464,13 +483,14 @@ interface IScOnlyFieldProps extends React.HTMLAttributes<HTMLDivElement> {
464
483
  state?: "default" | "active" | "error" | "disabled" | "filled";
465
484
  tfGroup?: "icon-right" | "icon-left" | "icon-left-right" | "none";
466
485
  labelGroup?: "none" | "label" | "text" | "icon";
486
+ size?: "default" | "medium" | "small";
467
487
  className?: string;
468
488
  placeholderFilled?: string;
469
489
  value?: string;
470
490
  onInputChange?: (value: string) => void;
471
491
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
472
492
  }
473
- declare const ScOnlyField: ({ tfRightIcon, tfLeftIcon, state, tfGroup, labelGroup, className, placeholderFilled, value, onInputChange, inputProps, ...props }: IScOnlyFieldProps) => JSX.Element;
493
+ declare const ScOnlyField: ({ tfRightIcon, tfLeftIcon, state, tfGroup, labelGroup, size, className, placeholderFilled, value, onInputChange, inputProps, ...props }: IScOnlyFieldProps) => JSX.Element;
474
494
 
475
495
  interface IScPendingActionProps extends React.HTMLAttributes<HTMLDivElement> {
476
496
  className?: string;
@@ -904,4 +924,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
904
924
  }
905
925
  declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, currentPlanLabel, upgradeButtonText, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
906
926
 
907
- export { type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppFieldProps, type IScAppListingCardProps, type IScArtifaxInviteProps, type IScBadgesProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, 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 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, ScAppField, ScAppListingCard, ScArtifaxInvite, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, 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, 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 };
927
+ export { type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScArtifaxInviteProps, type IScBadgesProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, 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 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, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, 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, 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 };