@streamoid/ui 0.1.7 → 0.1.9

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
@@ -2711,6 +2711,9 @@
2711
2711
  width: 20rem;
2712
2712
  position: relative;
2713
2713
  }
2714
+ .ScTextField_scTextField.ScTextField_label-group-none {
2715
+ gap: 0;
2716
+ }
2714
2717
  .ScTextField_labelContainer {
2715
2718
  display: flex;
2716
2719
  flex-direction: row;
@@ -2762,6 +2765,9 @@
2762
2765
  display: flex;
2763
2766
  align-items: center;
2764
2767
  justify-content: flex-start;
2768
+ background: transparent;
2769
+ outline: none;
2770
+ border: none;
2765
2771
  }
2766
2772
  .ScTextField_scTextField.ScTextField_label-group-text .ScTextField_info {
2767
2773
  color: var(--alias-text-and-icons-muted, #7a7a7a);
@@ -2792,6 +2798,10 @@
2792
2798
  border-color: var(--alias-border-strong, #5c5c5c);
2793
2799
  border-width: 0.0625rem;
2794
2800
  }
2801
+ .ScTextField_ScTextField_labelContainer,
2802
+ .ScTextField_scTextField.ScTextField_label-group-none .ScTextField_labelContainer {
2803
+ display: none;
2804
+ }
2795
2805
 
2796
2806
  /* src/SC-Role/ScRole.module.css */
2797
2807
  .ScRole_scRole,
package/dist/index.d.mts CHANGED
@@ -282,14 +282,30 @@ interface IScVDividerProps {
282
282
  }
283
283
  declare const ScVDivider: ({ className, ...props }: IScVDividerProps) => JSX.Element;
284
284
 
285
- interface IScWorkspaceProps extends React.HTMLAttributes<HTMLDivElement> {
286
- collapsed?: "false" | "true";
287
- workspaceName?: string;
288
- userRole?: string;
289
- profileImage?: string;
290
- className?: string;
285
+ interface WorkspaceSwitcherItem {
286
+ id: string;
287
+ name: string;
288
+ initials?: string;
289
+ role?: "admin" | "member" | string;
290
+ userCount?: string;
291
+ ownerEmail?: string;
292
+ isCurrent?: boolean;
293
+ }
294
+ interface WorkspaceSwitcherConfig {
295
+ title?: string;
296
+ loadingText?: string;
297
+ currentWorkspaceText?: string;
298
+ switchWorkspaceText?: string;
299
+ }
300
+ interface StreamoidWorkspaceSwitcherProps {
301
+ open: boolean;
302
+ onClose: () => void;
303
+ workspaces: WorkspaceSwitcherItem[];
304
+ loading?: boolean;
305
+ onSwitchWorkspace: (workspace: WorkspaceSwitcherItem) => void | Promise<void>;
306
+ config?: WorkspaceSwitcherConfig;
291
307
  }
292
- declare const ScWorkspace: ({ collapsed, workspaceName, userRole, profileImage, className, ...props }: IScWorkspaceProps) => JSX.Element;
308
+ declare function StreamoidWorkspaceSwitcher({ open, onClose, workspaces, loading, onSwitchWorkspace, config, }: StreamoidWorkspaceSwitcherProps): react_jsx_runtime.JSX.Element | null;
293
309
 
294
310
  interface IScAppListingCardProps extends React.HTMLAttributes<HTMLDivElement> {
295
311
  icon?: JSX.Element;
@@ -483,7 +499,7 @@ interface IScTextFieldProps extends React.InputHTMLAttributes<HTMLInputElement>
483
499
  tfLeftIcon?: JSX.Element;
484
500
  state?: "default" | "active" | "error" | "disabled" | "filled";
485
501
  tfGroup?: "icon-right" | "icon-left" | "icon-left-right" | "none";
486
- labelGroup?: "none" | "label" | "text" | "icon";
502
+ labelGroup?: "" | "label" | "text" | "icon";
487
503
  className?: string;
488
504
  placeholderFilled?: string;
489
505
  label?: string;
@@ -515,4 +531,4 @@ interface IScWorkspaceCardProps extends React.HTMLAttributes<HTMLDivElement> {
515
531
  }
516
532
  declare const ScWorkspaceCard: ({ workspaceName, role, userCount, ownerEmail, buttonText, className, ...props }: IScWorkspaceCardProps) => JSX.Element;
517
533
 
518
- export { 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 IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, type IScHDividerProps, type IScHeaderProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMenuOptionsProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanDetailsCardProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleProps, type IScSettingsNavProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSliderProps, type IScStrLogoProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListProps, type IScTextFieldProps, type IScToggleSwitchProps, type IScVDividerProps, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceProps, ScAccess, ScAppCard, ScAppField, ScAppListingCard, ScArtifaxInvite, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScFieldButton, ScGoogleSignIn, ScHDivider, ScHeader, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanDetailsCard, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralTableHeader, ScReferralTableList, ScRole, ScSettingsNav, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSlider, ScStrLogo, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTextField, ScToggleSwitch, ScVDivider, ScVersion, ScWorkspace, ScWorkspaceCard, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps };
534
+ export { 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 IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, type IScHDividerProps, type IScHeaderProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMenuOptionsProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanDetailsCardProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleProps, type IScSettingsNavProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSliderProps, type IScStrLogoProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListProps, type IScTextFieldProps, type IScToggleSwitchProps, type IScVDividerProps, type IScVersionProps, type IScWorkspaceCardProps, ScAccess, ScAppCard, ScAppField, ScAppListingCard, ScArtifaxInvite, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScFieldButton, ScGoogleSignIn, ScHDivider, ScHeader, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanDetailsCard, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralTableHeader, ScReferralTableList, ScRole, ScSettingsNav, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSlider, ScStrLogo, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTextField, ScToggleSwitch, ScVDivider, ScVersion, ScWorkspaceCard, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem };
package/dist/index.d.ts CHANGED
@@ -282,14 +282,30 @@ interface IScVDividerProps {
282
282
  }
283
283
  declare const ScVDivider: ({ className, ...props }: IScVDividerProps) => JSX.Element;
284
284
 
285
- interface IScWorkspaceProps extends React.HTMLAttributes<HTMLDivElement> {
286
- collapsed?: "false" | "true";
287
- workspaceName?: string;
288
- userRole?: string;
289
- profileImage?: string;
290
- className?: string;
285
+ interface WorkspaceSwitcherItem {
286
+ id: string;
287
+ name: string;
288
+ initials?: string;
289
+ role?: "admin" | "member" | string;
290
+ userCount?: string;
291
+ ownerEmail?: string;
292
+ isCurrent?: boolean;
293
+ }
294
+ interface WorkspaceSwitcherConfig {
295
+ title?: string;
296
+ loadingText?: string;
297
+ currentWorkspaceText?: string;
298
+ switchWorkspaceText?: string;
299
+ }
300
+ interface StreamoidWorkspaceSwitcherProps {
301
+ open: boolean;
302
+ onClose: () => void;
303
+ workspaces: WorkspaceSwitcherItem[];
304
+ loading?: boolean;
305
+ onSwitchWorkspace: (workspace: WorkspaceSwitcherItem) => void | Promise<void>;
306
+ config?: WorkspaceSwitcherConfig;
291
307
  }
292
- declare const ScWorkspace: ({ collapsed, workspaceName, userRole, profileImage, className, ...props }: IScWorkspaceProps) => JSX.Element;
308
+ declare function StreamoidWorkspaceSwitcher({ open, onClose, workspaces, loading, onSwitchWorkspace, config, }: StreamoidWorkspaceSwitcherProps): react_jsx_runtime.JSX.Element | null;
293
309
 
294
310
  interface IScAppListingCardProps extends React.HTMLAttributes<HTMLDivElement> {
295
311
  icon?: JSX.Element;
@@ -483,7 +499,7 @@ interface IScTextFieldProps extends React.InputHTMLAttributes<HTMLInputElement>
483
499
  tfLeftIcon?: JSX.Element;
484
500
  state?: "default" | "active" | "error" | "disabled" | "filled";
485
501
  tfGroup?: "icon-right" | "icon-left" | "icon-left-right" | "none";
486
- labelGroup?: "none" | "label" | "text" | "icon";
502
+ labelGroup?: "" | "label" | "text" | "icon";
487
503
  className?: string;
488
504
  placeholderFilled?: string;
489
505
  label?: string;
@@ -515,4 +531,4 @@ interface IScWorkspaceCardProps extends React.HTMLAttributes<HTMLDivElement> {
515
531
  }
516
532
  declare const ScWorkspaceCard: ({ workspaceName, role, userCount, ownerEmail, buttonText, className, ...props }: IScWorkspaceCardProps) => JSX.Element;
517
533
 
518
- export { 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 IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, type IScHDividerProps, type IScHeaderProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMenuOptionsProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanDetailsCardProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleProps, type IScSettingsNavProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSliderProps, type IScStrLogoProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListProps, type IScTextFieldProps, type IScToggleSwitchProps, type IScVDividerProps, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceProps, ScAccess, ScAppCard, ScAppField, ScAppListingCard, ScArtifaxInvite, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScFieldButton, ScGoogleSignIn, ScHDivider, ScHeader, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanDetailsCard, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralTableHeader, ScReferralTableList, ScRole, ScSettingsNav, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSlider, ScStrLogo, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTextField, ScToggleSwitch, ScVDivider, ScVersion, ScWorkspace, ScWorkspaceCard, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps };
534
+ export { 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 IScCreditsUsageCardProps, type IScFieldButtonProps, type IScGoogleSignInProps, type IScHDividerProps, type IScHeaderProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMenuOptionsProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanDetailsCardProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleProps, type IScSettingsNavProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSliderProps, type IScStrLogoProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListProps, type IScTextFieldProps, type IScToggleSwitchProps, type IScVDividerProps, type IScVersionProps, type IScWorkspaceCardProps, ScAccess, ScAppCard, ScAppField, ScAppListingCard, ScArtifaxInvite, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScFieldButton, ScGoogleSignIn, ScHDivider, ScHeader, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanDetailsCard, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralTableHeader, ScReferralTableList, ScRole, ScSettingsNav, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSlider, ScStrLogo, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTextField, ScToggleSwitch, ScVDivider, ScVersion, ScWorkspaceCard, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem };