@streamoid/ui 0.4.2 → 0.4.4
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 +539 -0
- package/dist/index.d.mts +110 -5
- package/dist/index.d.ts +110 -5
- package/dist/index.js +908 -448
- package/dist/index.mjs +883 -415
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -260,7 +260,7 @@ interface IScRoleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
260
260
|
}
|
|
261
261
|
declare const ScRole: ({ type, label, className, ...props }: IScRoleProps) => JSX.Element;
|
|
262
262
|
|
|
263
|
-
interface IScSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
263
|
+
interface IScSidebarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
264
264
|
state?: "expanded" | "collapsed";
|
|
265
265
|
className?: string;
|
|
266
266
|
onToggle?: (state: "expanded" | "collapsed") => void;
|
|
@@ -324,6 +324,111 @@ interface StreamoidSidebarProps {
|
|
|
324
324
|
}
|
|
325
325
|
declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, hideFooter, preFooterContent, bodyContent, showBody, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
|
|
326
326
|
|
|
327
|
+
interface ArtifaxMenuItem {
|
|
328
|
+
id: string;
|
|
329
|
+
label: string;
|
|
330
|
+
iconKey: string;
|
|
331
|
+
}
|
|
332
|
+
interface ArtifaxSection {
|
|
333
|
+
id: string;
|
|
334
|
+
label?: string;
|
|
335
|
+
collapsible?: boolean;
|
|
336
|
+
defaultOpen?: boolean;
|
|
337
|
+
items: ArtifaxMenuItem[];
|
|
338
|
+
}
|
|
339
|
+
interface ArtifaxSidebarIconContext {
|
|
340
|
+
item: ArtifaxMenuItem;
|
|
341
|
+
active: boolean;
|
|
342
|
+
expanded: boolean;
|
|
343
|
+
}
|
|
344
|
+
type ArtifaxSidebarIconRenderer = (context: ArtifaxSidebarIconContext) => ReactNode;
|
|
345
|
+
type ArtifaxSidebarIconMap = Record<string, ReactNode | ArtifaxSidebarIconRenderer>;
|
|
346
|
+
interface ArtifaxSidebarProfile {
|
|
347
|
+
name: string;
|
|
348
|
+
subtitle?: string;
|
|
349
|
+
avatar?: ReactNode;
|
|
350
|
+
onClick?: () => void;
|
|
351
|
+
}
|
|
352
|
+
interface ArtifaxSidebarCreditWarning {
|
|
353
|
+
availableCredits: number;
|
|
354
|
+
remainingPct: number;
|
|
355
|
+
level?: "warning" | "danger";
|
|
356
|
+
onBuyCredits: () => void;
|
|
357
|
+
}
|
|
358
|
+
interface ArtifaxSidebarSwitchApp {
|
|
359
|
+
label?: string;
|
|
360
|
+
icon?: ReactNode;
|
|
361
|
+
onClick?: () => void;
|
|
362
|
+
}
|
|
363
|
+
interface IScArtifaxSidebarProps {
|
|
364
|
+
expanded: boolean;
|
|
365
|
+
onToggle: () => void;
|
|
366
|
+
sections: ArtifaxSection[];
|
|
367
|
+
iconMap?: ArtifaxSidebarIconMap;
|
|
368
|
+
activeItemId?: string;
|
|
369
|
+
onItemSelect?: (item: ArtifaxMenuItem, sectionId: string) => void;
|
|
370
|
+
expandedLogo?: ReactNode;
|
|
371
|
+
collapsedLogo?: ReactNode;
|
|
372
|
+
creditWarning?: ArtifaxSidebarCreditWarning | null;
|
|
373
|
+
switchApp?: ArtifaxSidebarSwitchApp;
|
|
374
|
+
profile?: ArtifaxSidebarProfile;
|
|
375
|
+
versionText?: string;
|
|
376
|
+
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
377
|
+
openSections?: Record<string, boolean>;
|
|
378
|
+
onSectionToggle?: (sectionId: string, open: boolean) => void;
|
|
379
|
+
className?: string;
|
|
380
|
+
style?: CSSProperties;
|
|
381
|
+
}
|
|
382
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, switchApp, profile, versionText, toggleIcon, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
383
|
+
|
|
384
|
+
interface IScGuideProps {
|
|
385
|
+
/** Heading text. */
|
|
386
|
+
title?: ReactNode;
|
|
387
|
+
/** Supporting copy below the title. */
|
|
388
|
+
description?: ReactNode;
|
|
389
|
+
/** Label for the left-hand action. Defaults to "Skip". */
|
|
390
|
+
skipLabel?: ReactNode;
|
|
391
|
+
/** Label for the right-hand primary action. Defaults to "Next". */
|
|
392
|
+
nextLabel?: ReactNode;
|
|
393
|
+
/** Click handler for the Skip action. */
|
|
394
|
+
onSkip?: () => void;
|
|
395
|
+
/** Click handler for the Next action. */
|
|
396
|
+
onNext?: () => void;
|
|
397
|
+
/** Hide the Skip action (e.g. for the final step). */
|
|
398
|
+
hideSkip?: boolean;
|
|
399
|
+
/** Hide the Next action (e.g. for terminal screens). */
|
|
400
|
+
hideNext?: boolean;
|
|
401
|
+
/** Disable both actions while a parent operation is in-flight. */
|
|
402
|
+
disabled?: boolean;
|
|
403
|
+
className?: string;
|
|
404
|
+
style?: CSSProperties;
|
|
405
|
+
}
|
|
406
|
+
declare const ScGuide: ({ title, description, skipLabel, nextLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
407
|
+
|
|
408
|
+
interface IScSideBarLogoUnitProps {
|
|
409
|
+
/** "expanded" renders the wordmark chip + switcher. "collapsed" renders a
|
|
410
|
+
* bare clickable product icon (no chip, no switcher). */
|
|
411
|
+
state?: "expanded" | "collapsed";
|
|
412
|
+
/** In expanded state: the stacked "Product / Streamoid" wordmark `<img>`.
|
|
413
|
+
* In collapsed state: the square product icon `<img>`. */
|
|
414
|
+
wordmark?: ReactNode;
|
|
415
|
+
/** Click handler for the wordmark chip / collapsed icon (e.g. navigate home). */
|
|
416
|
+
onClick?: () => void;
|
|
417
|
+
/** Click handler for the double-arrow product / workspace switcher.
|
|
418
|
+
* Ignored when state="collapsed". */
|
|
419
|
+
onSwitchClick?: () => void;
|
|
420
|
+
/** Accessible label for the switch button. Defaults to "Switch product". */
|
|
421
|
+
switchAriaLabel?: string;
|
|
422
|
+
/** Hide the switch button (useful when there's nothing to switch to).
|
|
423
|
+
* Only applies in expanded state — collapsed has no switch button. */
|
|
424
|
+
hideSwitch?: boolean;
|
|
425
|
+
/** Disable interactions. */
|
|
426
|
+
disabled?: boolean;
|
|
427
|
+
className?: string;
|
|
428
|
+
style?: CSSProperties;
|
|
429
|
+
}
|
|
430
|
+
declare const ScSideBarLogoUnit: ({ state, wordmark, onClick, onSwitchClick, switchAriaLabel, hideSwitch, disabled, className, style, }: IScSideBarLogoUnitProps) => JSX.Element;
|
|
431
|
+
|
|
327
432
|
interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
328
433
|
icon?: JSX.Element;
|
|
329
434
|
state?: "default" | "active" | "hover" | "default-highlight" | "default-active";
|
|
@@ -424,7 +529,7 @@ interface IScAppFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
424
529
|
}
|
|
425
530
|
declare const ScAppField: ({ appFieldTitle, className, artifaxEnabled, onArtifaxToggle, photogenixEnabled, onPhotogenixToggle, catalogixEnabled, onCatalogixToggle, catalogixStores, catalogixSelectedStores, onCatalogixStoreToggle, catalogixSearchValue, onCatalogixSearchChange, ...props }: IScAppFieldProps) => JSX.Element;
|
|
426
531
|
|
|
427
|
-
interface IScArtifaxInviteProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
532
|
+
interface IScArtifaxInviteProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
428
533
|
active?: "false" | "true";
|
|
429
534
|
appName?: string;
|
|
430
535
|
appDescription?: string;
|
|
@@ -440,7 +545,7 @@ interface IScBillingHistoryHeaderProps {
|
|
|
440
545
|
}
|
|
441
546
|
declare const ScBillingHistoryHeader: ({ className, ...props }: IScBillingHistoryHeaderProps) => JSX.Element;
|
|
442
547
|
|
|
443
|
-
interface IScCatalogixInviteProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
548
|
+
interface IScCatalogixInviteProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
444
549
|
active?: "false" | "true";
|
|
445
550
|
appName?: string;
|
|
446
551
|
appDescription?: string;
|
|
@@ -634,7 +739,7 @@ interface IScTextFieldProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
634
739
|
}
|
|
635
740
|
declare const ScTextField: ({ tfRightIcon, tfLeftIcon, state, tfGroup, labelGroup, className, placeholderFilled, label, style, ...props }: IScTextFieldProps) => JSX.Element;
|
|
636
741
|
|
|
637
|
-
interface IScToggleSwitchProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
742
|
+
interface IScToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
638
743
|
active?: "true" | "false";
|
|
639
744
|
checked?: boolean;
|
|
640
745
|
onToggle?: (active: boolean) => void;
|
|
@@ -939,4 +1044,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
939
1044
|
}
|
|
940
1045
|
declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, currentPlanLabel, upgradeButtonText, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
|
|
941
1046
|
|
|
942
|
-
export { CreditWarningBanner, type CreditWarningBannerProps, 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 };
|
|
1047
|
+
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type ArtifaxSidebarSwitchApp, 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 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, 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
|
@@ -260,7 +260,7 @@ interface IScRoleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
260
260
|
}
|
|
261
261
|
declare const ScRole: ({ type, label, className, ...props }: IScRoleProps) => JSX.Element;
|
|
262
262
|
|
|
263
|
-
interface IScSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
263
|
+
interface IScSidebarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
264
264
|
state?: "expanded" | "collapsed";
|
|
265
265
|
className?: string;
|
|
266
266
|
onToggle?: (state: "expanded" | "collapsed") => void;
|
|
@@ -324,6 +324,111 @@ interface StreamoidSidebarProps {
|
|
|
324
324
|
}
|
|
325
325
|
declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, hideFooter, preFooterContent, bodyContent, showBody, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
|
|
326
326
|
|
|
327
|
+
interface ArtifaxMenuItem {
|
|
328
|
+
id: string;
|
|
329
|
+
label: string;
|
|
330
|
+
iconKey: string;
|
|
331
|
+
}
|
|
332
|
+
interface ArtifaxSection {
|
|
333
|
+
id: string;
|
|
334
|
+
label?: string;
|
|
335
|
+
collapsible?: boolean;
|
|
336
|
+
defaultOpen?: boolean;
|
|
337
|
+
items: ArtifaxMenuItem[];
|
|
338
|
+
}
|
|
339
|
+
interface ArtifaxSidebarIconContext {
|
|
340
|
+
item: ArtifaxMenuItem;
|
|
341
|
+
active: boolean;
|
|
342
|
+
expanded: boolean;
|
|
343
|
+
}
|
|
344
|
+
type ArtifaxSidebarIconRenderer = (context: ArtifaxSidebarIconContext) => ReactNode;
|
|
345
|
+
type ArtifaxSidebarIconMap = Record<string, ReactNode | ArtifaxSidebarIconRenderer>;
|
|
346
|
+
interface ArtifaxSidebarProfile {
|
|
347
|
+
name: string;
|
|
348
|
+
subtitle?: string;
|
|
349
|
+
avatar?: ReactNode;
|
|
350
|
+
onClick?: () => void;
|
|
351
|
+
}
|
|
352
|
+
interface ArtifaxSidebarCreditWarning {
|
|
353
|
+
availableCredits: number;
|
|
354
|
+
remainingPct: number;
|
|
355
|
+
level?: "warning" | "danger";
|
|
356
|
+
onBuyCredits: () => void;
|
|
357
|
+
}
|
|
358
|
+
interface ArtifaxSidebarSwitchApp {
|
|
359
|
+
label?: string;
|
|
360
|
+
icon?: ReactNode;
|
|
361
|
+
onClick?: () => void;
|
|
362
|
+
}
|
|
363
|
+
interface IScArtifaxSidebarProps {
|
|
364
|
+
expanded: boolean;
|
|
365
|
+
onToggle: () => void;
|
|
366
|
+
sections: ArtifaxSection[];
|
|
367
|
+
iconMap?: ArtifaxSidebarIconMap;
|
|
368
|
+
activeItemId?: string;
|
|
369
|
+
onItemSelect?: (item: ArtifaxMenuItem, sectionId: string) => void;
|
|
370
|
+
expandedLogo?: ReactNode;
|
|
371
|
+
collapsedLogo?: ReactNode;
|
|
372
|
+
creditWarning?: ArtifaxSidebarCreditWarning | null;
|
|
373
|
+
switchApp?: ArtifaxSidebarSwitchApp;
|
|
374
|
+
profile?: ArtifaxSidebarProfile;
|
|
375
|
+
versionText?: string;
|
|
376
|
+
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
377
|
+
openSections?: Record<string, boolean>;
|
|
378
|
+
onSectionToggle?: (sectionId: string, open: boolean) => void;
|
|
379
|
+
className?: string;
|
|
380
|
+
style?: CSSProperties;
|
|
381
|
+
}
|
|
382
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, switchApp, profile, versionText, toggleIcon, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
383
|
+
|
|
384
|
+
interface IScGuideProps {
|
|
385
|
+
/** Heading text. */
|
|
386
|
+
title?: ReactNode;
|
|
387
|
+
/** Supporting copy below the title. */
|
|
388
|
+
description?: ReactNode;
|
|
389
|
+
/** Label for the left-hand action. Defaults to "Skip". */
|
|
390
|
+
skipLabel?: ReactNode;
|
|
391
|
+
/** Label for the right-hand primary action. Defaults to "Next". */
|
|
392
|
+
nextLabel?: ReactNode;
|
|
393
|
+
/** Click handler for the Skip action. */
|
|
394
|
+
onSkip?: () => void;
|
|
395
|
+
/** Click handler for the Next action. */
|
|
396
|
+
onNext?: () => void;
|
|
397
|
+
/** Hide the Skip action (e.g. for the final step). */
|
|
398
|
+
hideSkip?: boolean;
|
|
399
|
+
/** Hide the Next action (e.g. for terminal screens). */
|
|
400
|
+
hideNext?: boolean;
|
|
401
|
+
/** Disable both actions while a parent operation is in-flight. */
|
|
402
|
+
disabled?: boolean;
|
|
403
|
+
className?: string;
|
|
404
|
+
style?: CSSProperties;
|
|
405
|
+
}
|
|
406
|
+
declare const ScGuide: ({ title, description, skipLabel, nextLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
407
|
+
|
|
408
|
+
interface IScSideBarLogoUnitProps {
|
|
409
|
+
/** "expanded" renders the wordmark chip + switcher. "collapsed" renders a
|
|
410
|
+
* bare clickable product icon (no chip, no switcher). */
|
|
411
|
+
state?: "expanded" | "collapsed";
|
|
412
|
+
/** In expanded state: the stacked "Product / Streamoid" wordmark `<img>`.
|
|
413
|
+
* In collapsed state: the square product icon `<img>`. */
|
|
414
|
+
wordmark?: ReactNode;
|
|
415
|
+
/** Click handler for the wordmark chip / collapsed icon (e.g. navigate home). */
|
|
416
|
+
onClick?: () => void;
|
|
417
|
+
/** Click handler for the double-arrow product / workspace switcher.
|
|
418
|
+
* Ignored when state="collapsed". */
|
|
419
|
+
onSwitchClick?: () => void;
|
|
420
|
+
/** Accessible label for the switch button. Defaults to "Switch product". */
|
|
421
|
+
switchAriaLabel?: string;
|
|
422
|
+
/** Hide the switch button (useful when there's nothing to switch to).
|
|
423
|
+
* Only applies in expanded state — collapsed has no switch button. */
|
|
424
|
+
hideSwitch?: boolean;
|
|
425
|
+
/** Disable interactions. */
|
|
426
|
+
disabled?: boolean;
|
|
427
|
+
className?: string;
|
|
428
|
+
style?: CSSProperties;
|
|
429
|
+
}
|
|
430
|
+
declare const ScSideBarLogoUnit: ({ state, wordmark, onClick, onSwitchClick, switchAriaLabel, hideSwitch, disabled, className, style, }: IScSideBarLogoUnitProps) => JSX.Element;
|
|
431
|
+
|
|
327
432
|
interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
328
433
|
icon?: JSX.Element;
|
|
329
434
|
state?: "default" | "active" | "hover" | "default-highlight" | "default-active";
|
|
@@ -424,7 +529,7 @@ interface IScAppFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
424
529
|
}
|
|
425
530
|
declare const ScAppField: ({ appFieldTitle, className, artifaxEnabled, onArtifaxToggle, photogenixEnabled, onPhotogenixToggle, catalogixEnabled, onCatalogixToggle, catalogixStores, catalogixSelectedStores, onCatalogixStoreToggle, catalogixSearchValue, onCatalogixSearchChange, ...props }: IScAppFieldProps) => JSX.Element;
|
|
426
531
|
|
|
427
|
-
interface IScArtifaxInviteProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
532
|
+
interface IScArtifaxInviteProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
428
533
|
active?: "false" | "true";
|
|
429
534
|
appName?: string;
|
|
430
535
|
appDescription?: string;
|
|
@@ -440,7 +545,7 @@ interface IScBillingHistoryHeaderProps {
|
|
|
440
545
|
}
|
|
441
546
|
declare const ScBillingHistoryHeader: ({ className, ...props }: IScBillingHistoryHeaderProps) => JSX.Element;
|
|
442
547
|
|
|
443
|
-
interface IScCatalogixInviteProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
548
|
+
interface IScCatalogixInviteProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
444
549
|
active?: "false" | "true";
|
|
445
550
|
appName?: string;
|
|
446
551
|
appDescription?: string;
|
|
@@ -634,7 +739,7 @@ interface IScTextFieldProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
634
739
|
}
|
|
635
740
|
declare const ScTextField: ({ tfRightIcon, tfLeftIcon, state, tfGroup, labelGroup, className, placeholderFilled, label, style, ...props }: IScTextFieldProps) => JSX.Element;
|
|
636
741
|
|
|
637
|
-
interface IScToggleSwitchProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
742
|
+
interface IScToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onToggle"> {
|
|
638
743
|
active?: "true" | "false";
|
|
639
744
|
checked?: boolean;
|
|
640
745
|
onToggle?: (active: boolean) => void;
|
|
@@ -939,4 +1044,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
939
1044
|
}
|
|
940
1045
|
declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, currentPlanLabel, upgradeButtonText, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
|
|
941
1046
|
|
|
942
|
-
export { CreditWarningBanner, type CreditWarningBannerProps, 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 };
|
|
1047
|
+
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type ArtifaxSidebarSwitchApp, 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 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, 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 };
|