@streamoid/ui 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +196 -281
- package/dist/index.d.mts +193 -10
- package/dist/index.d.ts +193 -10
- package/dist/index.js +2485 -1248
- package/dist/index.mjs +2417 -1174
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { HTMLAttributes, ReactNode
|
|
1
|
+
import React$1, { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
interface IScAccessProps {
|
|
@@ -10,6 +10,31 @@ interface IScAccessProps {
|
|
|
10
10
|
}
|
|
11
11
|
declare const ScAccess: ({ component, component2, component3, visibleSiconCatalogix, className, }: IScAccessProps) => JSX.Element;
|
|
12
12
|
|
|
13
|
+
/** One switchable product, supplied by the host app (built from its service
|
|
14
|
+
* catalog). The current app is expected to be excluded by the host. */
|
|
15
|
+
interface ScAppSwitchItem {
|
|
16
|
+
key: string;
|
|
17
|
+
/** Product name — used to match the embedded wordmark (and as fallback text). */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Tagline shown only for products without an embedded wordmark. */
|
|
20
|
+
description?: string;
|
|
21
|
+
onSelect: () => void;
|
|
22
|
+
}
|
|
23
|
+
interface IScAppSwitchPanelProps {
|
|
24
|
+
apps: ScAppSwitchItem[];
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
}
|
|
28
|
+
/** One switch row: product wordmark (gray → brightens on hover) + a `>` chevron
|
|
29
|
+
* that fades in on hover. Products without a wordmark fall back to name/desc. */
|
|
30
|
+
declare const ScAppSwitchRow: ({ item }: {
|
|
31
|
+
item: ScAppSwitchItem;
|
|
32
|
+
}) => JSX.Element;
|
|
33
|
+
/** Shared product-switch list — the same across every Streamoid app. The host
|
|
34
|
+
* passes its product list (current app excluded) and its own logo lives in the
|
|
35
|
+
* surrounding sidebar; only this content is identical everywhere. */
|
|
36
|
+
declare const ScAppSwitchPanel: ({ apps, className, style }: IScAppSwitchPanelProps) => JSX.Element;
|
|
37
|
+
|
|
13
38
|
interface IScBadgesProps {
|
|
14
39
|
text?: string;
|
|
15
40
|
variant?: "default" | "success" | "warning" | "error" | "info";
|
|
@@ -185,20 +210,67 @@ interface PlanFeatureSection {
|
|
|
185
210
|
}
|
|
186
211
|
interface IScPlanCardProps {
|
|
187
212
|
planName?: string;
|
|
213
|
+
/** Formatted price from the billing API, incl. currency symbol (e.g.
|
|
214
|
+
* "$49.99", "₹49.99", "$0"). The leading symbol renders small, the amount
|
|
215
|
+
* large, per the design. */
|
|
188
216
|
price?: string;
|
|
217
|
+
/** Period suffix shown muted (default "/ month"). */
|
|
218
|
+
pricePeriod?: string;
|
|
219
|
+
/** Short one-line tagline under the price. */
|
|
220
|
+
tagline?: ReactNode;
|
|
221
|
+
/** Back-compat alias for `tagline`. */
|
|
222
|
+
description?: ReactNode;
|
|
223
|
+
/** Credits text, fed from the billing API (e.g. "1000 Credits"). */
|
|
189
224
|
credits?: string;
|
|
190
225
|
type?: "free" | "popular" | "custom";
|
|
191
|
-
|
|
192
|
-
|
|
226
|
+
/** Label on the credit-tier pill (popular only). Default "Increase". */
|
|
227
|
+
increaseLabel?: string;
|
|
228
|
+
onIncreaseCredits?: () => void;
|
|
229
|
+
/** Dropdown panel rendered under the credits chip (popular only). */
|
|
230
|
+
creditsDropdown?: ReactNode;
|
|
193
231
|
buttonText?: string;
|
|
194
232
|
buttonState?: "default" | "disabled";
|
|
233
|
+
/** "primary" → red→orange gradient (Upgrade); "secondary" → white fill. */
|
|
195
234
|
buttonVariant?: "primary" | "secondary" | "tertiary" | "outline" | "error";
|
|
196
235
|
onUpgrade?: () => void;
|
|
197
|
-
|
|
198
|
-
|
|
236
|
+
/** @deprecated no longer rendered — features live in ScPlanComparison. */
|
|
237
|
+
features?: PlanFeatureSection[];
|
|
238
|
+
className?: string;
|
|
239
|
+
style?: CSSProperties;
|
|
240
|
+
}
|
|
241
|
+
declare const ScPlanCard: ({ planName, price, pricePeriod, tagline, description, credits, type, increaseLabel, onIncreaseCredits, creditsDropdown, buttonText, buttonState, buttonVariant, onUpgrade, className, style, }: IScPlanCardProps) => JSX.Element;
|
|
242
|
+
|
|
243
|
+
interface PlanComparisonRow {
|
|
244
|
+
/** Left-column feature label (may be blank for sub-rows, per the design). */
|
|
245
|
+
label?: ReactNode;
|
|
246
|
+
/** One value per plan column, in column order (Free, Pro, Enterprise). */
|
|
247
|
+
values: ReactNode[];
|
|
248
|
+
}
|
|
249
|
+
interface PlanComparisonSection {
|
|
250
|
+
/** Full-width section header (e.g. "Artifax (Design & Insights)"). Omit for
|
|
251
|
+
* un-grouped rows (e.g. the leading "Usage volume" row). */
|
|
252
|
+
header?: string;
|
|
253
|
+
rows: PlanComparisonRow[];
|
|
254
|
+
}
|
|
255
|
+
interface IScPlanComparisonProps {
|
|
256
|
+
/** Collapsible section title (e.g. "Compare Plans"). */
|
|
257
|
+
title?: string;
|
|
258
|
+
/** Top-left header cell label (e.g. "Compare plans"). */
|
|
259
|
+
firstColumnLabel?: string;
|
|
260
|
+
/** Plan column headers, e.g. ["Free", "Pro", "Enterprise"]. */
|
|
261
|
+
columns: string[];
|
|
262
|
+
/** Caption shown directly under the column header row. */
|
|
263
|
+
note?: ReactNode;
|
|
264
|
+
sections: PlanComparisonSection[];
|
|
265
|
+
/** Which value column gets the highlighted (Pro) styling. Default 1. */
|
|
266
|
+
highlightColumnIndex?: number;
|
|
267
|
+
defaultOpen?: boolean;
|
|
268
|
+
/** "table" = full grid (desktop); "tabbed" = tab switcher + 2 columns (mobile). */
|
|
269
|
+
layout?: "table" | "tabbed";
|
|
199
270
|
className?: string;
|
|
271
|
+
style?: CSSProperties;
|
|
200
272
|
}
|
|
201
|
-
declare const
|
|
273
|
+
declare const ScPlanComparison: ({ title, firstColumnLabel, columns, note, sections, highlightColumnIndex, defaultOpen, layout, className, style, }: IScPlanComparisonProps) => JSX.Element;
|
|
202
274
|
|
|
203
275
|
interface IScPlanDetailsCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
204
276
|
planName?: string;
|
|
@@ -312,10 +384,22 @@ interface StreamoidSidebarProps {
|
|
|
312
384
|
profile?: SidebarProfileConfig;
|
|
313
385
|
versionText?: string;
|
|
314
386
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
387
|
+
/** Footer = profile (flex-1) + a SEPARATE collapse-toggle button beside it,
|
|
388
|
+
* with no version footer. Each is its own interactive unit. Expanded layout
|
|
389
|
+
* only; collapsed is unaffected. */
|
|
390
|
+
toggleInProfile?: boolean;
|
|
315
391
|
hideFooter?: boolean;
|
|
316
392
|
preFooterContent?: ReactNode;
|
|
317
393
|
bodyContent?: ReactNode;
|
|
318
394
|
showBody?: boolean;
|
|
395
|
+
/** App‑switch panel (e.g. the list of other products). When `switchPanelOpen`
|
|
396
|
+
* is true, the expanded logo and this panel render together inside one
|
|
397
|
+
* bordered card and the rest of the sidebar dims behind a backdrop.
|
|
398
|
+
* Expanded, non‑mobile layout only. */
|
|
399
|
+
switchPanel?: ReactNode;
|
|
400
|
+
switchPanelOpen?: boolean;
|
|
401
|
+
/** Called when the dimmed backdrop behind the open switch panel is clicked. */
|
|
402
|
+
onSwitchPanelClose?: () => void;
|
|
319
403
|
isMobile?: boolean;
|
|
320
404
|
className?: string;
|
|
321
405
|
style?: CSSProperties;
|
|
@@ -324,7 +408,7 @@ interface StreamoidSidebarProps {
|
|
|
324
408
|
/** Explicit state override per top item id — takes priority over activeItemId/highlightedItemIds for top items */
|
|
325
409
|
topItemStates?: Record<string, "default" | "active" | "hover" | "default-highlight" | "default-active">;
|
|
326
410
|
}
|
|
327
|
-
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;
|
|
411
|
+
declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, toggleInProfile, hideFooter, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
|
|
328
412
|
|
|
329
413
|
interface ArtifaxMenuItem {
|
|
330
414
|
id: string;
|
|
@@ -394,6 +478,64 @@ interface IScArtifaxSidebarProps {
|
|
|
394
478
|
}
|
|
395
479
|
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, toggleIcon, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
396
480
|
|
|
481
|
+
interface CatalogixNavItem {
|
|
482
|
+
id: string;
|
|
483
|
+
label: string;
|
|
484
|
+
iconKey: string;
|
|
485
|
+
}
|
|
486
|
+
interface CatalogixSidebarIconContext {
|
|
487
|
+
active: boolean;
|
|
488
|
+
expanded: boolean;
|
|
489
|
+
}
|
|
490
|
+
type CatalogixSidebarIconRenderer = (context: CatalogixSidebarIconContext) => ReactNode;
|
|
491
|
+
type CatalogixSidebarIconMap = Record<string, ReactNode | CatalogixSidebarIconRenderer>;
|
|
492
|
+
interface CatalogixSidebarProfile {
|
|
493
|
+
name: string;
|
|
494
|
+
subtitle?: string;
|
|
495
|
+
avatar?: ReactNode;
|
|
496
|
+
onClick?: () => void;
|
|
497
|
+
}
|
|
498
|
+
interface CatalogixSidebarCreditWarning {
|
|
499
|
+
availableCredits: number;
|
|
500
|
+
remainingPct: number;
|
|
501
|
+
level?: "warning" | "danger";
|
|
502
|
+
onBuyCredits: () => void;
|
|
503
|
+
onCollapsedClick?: () => void;
|
|
504
|
+
}
|
|
505
|
+
interface CatalogixSwitchApp {
|
|
506
|
+
id: string;
|
|
507
|
+
name: string;
|
|
508
|
+
description?: string;
|
|
509
|
+
icon?: ReactNode;
|
|
510
|
+
onClick?: () => void;
|
|
511
|
+
}
|
|
512
|
+
interface IScCatalogixSidebarProps {
|
|
513
|
+
expanded: boolean;
|
|
514
|
+
onToggle: () => void;
|
|
515
|
+
/** Nav items below the logo. Defaults to Stores / AI Training / Insights. */
|
|
516
|
+
items?: CatalogixNavItem[];
|
|
517
|
+
/** Maps each item's iconKey to an icon (node or render fn). Defaults supply
|
|
518
|
+
* Stores/AI Training/Insights icons; override per the product's set. */
|
|
519
|
+
iconMap?: CatalogixSidebarIconMap;
|
|
520
|
+
activeItemId?: string;
|
|
521
|
+
onItemSelect?: (item: CatalogixNavItem) => void;
|
|
522
|
+
/** Other products shown inline below the logo when the switch chip is
|
|
523
|
+
* clicked (the same "switch apps" list used across the sidebars). */
|
|
524
|
+
switchApps?: CatalogixSwitchApp[];
|
|
525
|
+
/** Fires (in addition to toggling the inline list) when the switch chip is
|
|
526
|
+
* clicked — e.g. to lazy-load the product list. */
|
|
527
|
+
onLogoClick?: () => void;
|
|
528
|
+
/** Logo nodes. Default to the built-in Catalogix wordmark logo unit. */
|
|
529
|
+
expandedLogo?: ReactNode;
|
|
530
|
+
collapsedLogo?: ReactNode;
|
|
531
|
+
profile?: CatalogixSidebarProfile;
|
|
532
|
+
creditWarning?: CatalogixSidebarCreditWarning | null;
|
|
533
|
+
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
534
|
+
className?: string;
|
|
535
|
+
style?: CSSProperties;
|
|
536
|
+
}
|
|
537
|
+
declare const ScCatalogixSidebar: ({ expanded, onToggle, items, iconMap, activeItemId, onItemSelect, switchApps, onLogoClick, expandedLogo, collapsedLogo, profile, creditWarning, toggleIcon, className, style, }: IScCatalogixSidebarProps) => JSX.Element;
|
|
538
|
+
|
|
397
539
|
interface IScGuideProps {
|
|
398
540
|
/** Heading text. */
|
|
399
541
|
title?: ReactNode;
|
|
@@ -424,13 +566,42 @@ interface IScGuideProps {
|
|
|
424
566
|
}
|
|
425
567
|
declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, stepLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
426
568
|
|
|
569
|
+
interface MarkPath {
|
|
570
|
+
d: string;
|
|
571
|
+
fillRule?: "evenodd" | "nonzero";
|
|
572
|
+
clipRule?: "evenodd" | "nonzero";
|
|
573
|
+
}
|
|
574
|
+
interface Wordmark {
|
|
575
|
+
viewBox: string;
|
|
576
|
+
width: number;
|
|
577
|
+
paths: MarkPath[];
|
|
578
|
+
}
|
|
579
|
+
declare const WORDMARKS: Record<string, Wordmark>;
|
|
580
|
+
type SidebarProduct = keyof typeof WORDMARKS;
|
|
581
|
+
/** Full product wordmark (expanded sidebar). */
|
|
582
|
+
declare function ProductWordmark({ product, style, }: {
|
|
583
|
+
product: SidebarProduct;
|
|
584
|
+
style?: CSSProperties;
|
|
585
|
+
}): JSX.Element | null;
|
|
586
|
+
/** Square product icon (collapsed sidebar). Returns null if the product has no
|
|
587
|
+
* collapsed mark defined yet. */
|
|
588
|
+
declare function ProductCollapsedMark({ product, style, }: {
|
|
589
|
+
product: SidebarProduct;
|
|
590
|
+
style?: CSSProperties;
|
|
591
|
+
}): JSX.Element | null;
|
|
592
|
+
/** True when the product has a dedicated collapsed icon. */
|
|
593
|
+
declare function hasCollapsedMark(product: SidebarProduct): boolean;
|
|
594
|
+
|
|
427
595
|
interface IScSideBarLogoUnitProps {
|
|
428
596
|
/** "expanded" renders the merged wordmark + switcher row.
|
|
429
597
|
* "collapsed" renders a bare clickable product icon. */
|
|
430
598
|
state?: "expanded" | "collapsed";
|
|
431
599
|
/** In expanded state: the stacked "Product / Streamoid" wordmark `<img>`.
|
|
432
|
-
* In collapsed state: the square product icon `<img>`. */
|
|
600
|
+
* In collapsed state: the square product icon `<img>`. Overrides `product`. */
|
|
433
601
|
wordmark?: ReactNode;
|
|
602
|
+
/** Built-in branded wordmark to render when `wordmark` is not supplied
|
|
603
|
+
* (e.g. "CXO", "Catalogix"). The mark follows the surrounding text color. */
|
|
604
|
+
product?: SidebarProduct;
|
|
434
605
|
/** Click handler for the whole row (wordmark + switcher are one click
|
|
435
606
|
* target now — matches the design intent). */
|
|
436
607
|
onClick?: () => void;
|
|
@@ -454,7 +625,7 @@ interface IScSideBarLogoUnitProps {
|
|
|
454
625
|
className?: string;
|
|
455
626
|
style?: CSSProperties;
|
|
456
627
|
}
|
|
457
|
-
declare const ScSideBarLogoUnit: ({ state, wordmark, onClick, onSwitchClick, switchAriaLabel, hideSwitch, hover, disabled, className, style, }: IScSideBarLogoUnitProps) => JSX.Element;
|
|
628
|
+
declare const ScSideBarLogoUnit: ({ state, wordmark, product, onClick, onSwitchClick, switchAriaLabel, hideSwitch, hover, disabled, className, style, }: IScSideBarLogoUnitProps) => JSX.Element;
|
|
458
629
|
|
|
459
630
|
interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
460
631
|
icon?: JSX.Element;
|
|
@@ -467,6 +638,18 @@ interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
467
638
|
}
|
|
468
639
|
declare const ScSidebarMenu: ({ icon, state, variant, className, text, moreIcon, onMoreClick, ...props }: IScSidebarMenuProps) => JSX.Element;
|
|
469
640
|
|
|
641
|
+
interface IScSidebarSwitchMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
642
|
+
icon?: ReactNode;
|
|
643
|
+
state?: "default" | "active" | "hover" | "default-highlight" | "default-active";
|
|
644
|
+
variant?: "expanded" | "collapsed";
|
|
645
|
+
className?: string;
|
|
646
|
+
text?: string;
|
|
647
|
+
description?: string;
|
|
648
|
+
moreIcon?: ReactNode;
|
|
649
|
+
onMoreClick?: (e: React.MouseEvent) => void;
|
|
650
|
+
}
|
|
651
|
+
declare const ScSidebarSwitchMenu: ({ icon, state, variant, className, text, description, moreIcon, onMoreClick, ...props }: IScSidebarSwitchMenuProps) => JSX.Element;
|
|
652
|
+
|
|
470
653
|
interface IScSidebarProfileProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
471
654
|
state?: "default" | "hover";
|
|
472
655
|
variant?: "expanded" | "collapsed";
|
|
@@ -1080,4 +1263,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
1080
1263
|
}
|
|
1081
1264
|
declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, badgeSubText, currentPlanLabel, upgradeButtonText, isLoading, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
|
|
1082
1265
|
|
|
1083
|
-
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAssistantCta, 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 };
|
|
1266
|
+
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSwitchPanelProps, 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 IScCatalogixSidebarProps, 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 IScPlanComparisonProps, 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 IScSidebarSwitchMenuProps, 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 PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, ScAccess, ScAppCard, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, ScArtifaxInvite, ScArtifaxSidebar, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSettingsNav, ScSettingsTabComp, ScSideBarLogoUnit, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarSwitchMenu, 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 SidebarProduct, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, hasCollapsedMark };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { HTMLAttributes, ReactNode
|
|
1
|
+
import React$1, { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
interface IScAccessProps {
|
|
@@ -10,6 +10,31 @@ interface IScAccessProps {
|
|
|
10
10
|
}
|
|
11
11
|
declare const ScAccess: ({ component, component2, component3, visibleSiconCatalogix, className, }: IScAccessProps) => JSX.Element;
|
|
12
12
|
|
|
13
|
+
/** One switchable product, supplied by the host app (built from its service
|
|
14
|
+
* catalog). The current app is expected to be excluded by the host. */
|
|
15
|
+
interface ScAppSwitchItem {
|
|
16
|
+
key: string;
|
|
17
|
+
/** Product name — used to match the embedded wordmark (and as fallback text). */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Tagline shown only for products without an embedded wordmark. */
|
|
20
|
+
description?: string;
|
|
21
|
+
onSelect: () => void;
|
|
22
|
+
}
|
|
23
|
+
interface IScAppSwitchPanelProps {
|
|
24
|
+
apps: ScAppSwitchItem[];
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
}
|
|
28
|
+
/** One switch row: product wordmark (gray → brightens on hover) + a `>` chevron
|
|
29
|
+
* that fades in on hover. Products without a wordmark fall back to name/desc. */
|
|
30
|
+
declare const ScAppSwitchRow: ({ item }: {
|
|
31
|
+
item: ScAppSwitchItem;
|
|
32
|
+
}) => JSX.Element;
|
|
33
|
+
/** Shared product-switch list — the same across every Streamoid app. The host
|
|
34
|
+
* passes its product list (current app excluded) and its own logo lives in the
|
|
35
|
+
* surrounding sidebar; only this content is identical everywhere. */
|
|
36
|
+
declare const ScAppSwitchPanel: ({ apps, className, style }: IScAppSwitchPanelProps) => JSX.Element;
|
|
37
|
+
|
|
13
38
|
interface IScBadgesProps {
|
|
14
39
|
text?: string;
|
|
15
40
|
variant?: "default" | "success" | "warning" | "error" | "info";
|
|
@@ -185,20 +210,67 @@ interface PlanFeatureSection {
|
|
|
185
210
|
}
|
|
186
211
|
interface IScPlanCardProps {
|
|
187
212
|
planName?: string;
|
|
213
|
+
/** Formatted price from the billing API, incl. currency symbol (e.g.
|
|
214
|
+
* "$49.99", "₹49.99", "$0"). The leading symbol renders small, the amount
|
|
215
|
+
* large, per the design. */
|
|
188
216
|
price?: string;
|
|
217
|
+
/** Period suffix shown muted (default "/ month"). */
|
|
218
|
+
pricePeriod?: string;
|
|
219
|
+
/** Short one-line tagline under the price. */
|
|
220
|
+
tagline?: ReactNode;
|
|
221
|
+
/** Back-compat alias for `tagline`. */
|
|
222
|
+
description?: ReactNode;
|
|
223
|
+
/** Credits text, fed from the billing API (e.g. "1000 Credits"). */
|
|
189
224
|
credits?: string;
|
|
190
225
|
type?: "free" | "popular" | "custom";
|
|
191
|
-
|
|
192
|
-
|
|
226
|
+
/** Label on the credit-tier pill (popular only). Default "Increase". */
|
|
227
|
+
increaseLabel?: string;
|
|
228
|
+
onIncreaseCredits?: () => void;
|
|
229
|
+
/** Dropdown panel rendered under the credits chip (popular only). */
|
|
230
|
+
creditsDropdown?: ReactNode;
|
|
193
231
|
buttonText?: string;
|
|
194
232
|
buttonState?: "default" | "disabled";
|
|
233
|
+
/** "primary" → red→orange gradient (Upgrade); "secondary" → white fill. */
|
|
195
234
|
buttonVariant?: "primary" | "secondary" | "tertiary" | "outline" | "error";
|
|
196
235
|
onUpgrade?: () => void;
|
|
197
|
-
|
|
198
|
-
|
|
236
|
+
/** @deprecated no longer rendered — features live in ScPlanComparison. */
|
|
237
|
+
features?: PlanFeatureSection[];
|
|
238
|
+
className?: string;
|
|
239
|
+
style?: CSSProperties;
|
|
240
|
+
}
|
|
241
|
+
declare const ScPlanCard: ({ planName, price, pricePeriod, tagline, description, credits, type, increaseLabel, onIncreaseCredits, creditsDropdown, buttonText, buttonState, buttonVariant, onUpgrade, className, style, }: IScPlanCardProps) => JSX.Element;
|
|
242
|
+
|
|
243
|
+
interface PlanComparisonRow {
|
|
244
|
+
/** Left-column feature label (may be blank for sub-rows, per the design). */
|
|
245
|
+
label?: ReactNode;
|
|
246
|
+
/** One value per plan column, in column order (Free, Pro, Enterprise). */
|
|
247
|
+
values: ReactNode[];
|
|
248
|
+
}
|
|
249
|
+
interface PlanComparisonSection {
|
|
250
|
+
/** Full-width section header (e.g. "Artifax (Design & Insights)"). Omit for
|
|
251
|
+
* un-grouped rows (e.g. the leading "Usage volume" row). */
|
|
252
|
+
header?: string;
|
|
253
|
+
rows: PlanComparisonRow[];
|
|
254
|
+
}
|
|
255
|
+
interface IScPlanComparisonProps {
|
|
256
|
+
/** Collapsible section title (e.g. "Compare Plans"). */
|
|
257
|
+
title?: string;
|
|
258
|
+
/** Top-left header cell label (e.g. "Compare plans"). */
|
|
259
|
+
firstColumnLabel?: string;
|
|
260
|
+
/** Plan column headers, e.g. ["Free", "Pro", "Enterprise"]. */
|
|
261
|
+
columns: string[];
|
|
262
|
+
/** Caption shown directly under the column header row. */
|
|
263
|
+
note?: ReactNode;
|
|
264
|
+
sections: PlanComparisonSection[];
|
|
265
|
+
/** Which value column gets the highlighted (Pro) styling. Default 1. */
|
|
266
|
+
highlightColumnIndex?: number;
|
|
267
|
+
defaultOpen?: boolean;
|
|
268
|
+
/** "table" = full grid (desktop); "tabbed" = tab switcher + 2 columns (mobile). */
|
|
269
|
+
layout?: "table" | "tabbed";
|
|
199
270
|
className?: string;
|
|
271
|
+
style?: CSSProperties;
|
|
200
272
|
}
|
|
201
|
-
declare const
|
|
273
|
+
declare const ScPlanComparison: ({ title, firstColumnLabel, columns, note, sections, highlightColumnIndex, defaultOpen, layout, className, style, }: IScPlanComparisonProps) => JSX.Element;
|
|
202
274
|
|
|
203
275
|
interface IScPlanDetailsCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
204
276
|
planName?: string;
|
|
@@ -312,10 +384,22 @@ interface StreamoidSidebarProps {
|
|
|
312
384
|
profile?: SidebarProfileConfig;
|
|
313
385
|
versionText?: string;
|
|
314
386
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
387
|
+
/** Footer = profile (flex-1) + a SEPARATE collapse-toggle button beside it,
|
|
388
|
+
* with no version footer. Each is its own interactive unit. Expanded layout
|
|
389
|
+
* only; collapsed is unaffected. */
|
|
390
|
+
toggleInProfile?: boolean;
|
|
315
391
|
hideFooter?: boolean;
|
|
316
392
|
preFooterContent?: ReactNode;
|
|
317
393
|
bodyContent?: ReactNode;
|
|
318
394
|
showBody?: boolean;
|
|
395
|
+
/** App‑switch panel (e.g. the list of other products). When `switchPanelOpen`
|
|
396
|
+
* is true, the expanded logo and this panel render together inside one
|
|
397
|
+
* bordered card and the rest of the sidebar dims behind a backdrop.
|
|
398
|
+
* Expanded, non‑mobile layout only. */
|
|
399
|
+
switchPanel?: ReactNode;
|
|
400
|
+
switchPanelOpen?: boolean;
|
|
401
|
+
/** Called when the dimmed backdrop behind the open switch panel is clicked. */
|
|
402
|
+
onSwitchPanelClose?: () => void;
|
|
319
403
|
isMobile?: boolean;
|
|
320
404
|
className?: string;
|
|
321
405
|
style?: CSSProperties;
|
|
@@ -324,7 +408,7 @@ interface StreamoidSidebarProps {
|
|
|
324
408
|
/** Explicit state override per top item id — takes priority over activeItemId/highlightedItemIds for top items */
|
|
325
409
|
topItemStates?: Record<string, "default" | "active" | "hover" | "default-highlight" | "default-active">;
|
|
326
410
|
}
|
|
327
|
-
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;
|
|
411
|
+
declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, toggleInProfile, hideFooter, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
|
|
328
412
|
|
|
329
413
|
interface ArtifaxMenuItem {
|
|
330
414
|
id: string;
|
|
@@ -394,6 +478,64 @@ interface IScArtifaxSidebarProps {
|
|
|
394
478
|
}
|
|
395
479
|
declare const ScArtifaxSidebar: ({ expanded, onToggle, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, toggleIcon, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
396
480
|
|
|
481
|
+
interface CatalogixNavItem {
|
|
482
|
+
id: string;
|
|
483
|
+
label: string;
|
|
484
|
+
iconKey: string;
|
|
485
|
+
}
|
|
486
|
+
interface CatalogixSidebarIconContext {
|
|
487
|
+
active: boolean;
|
|
488
|
+
expanded: boolean;
|
|
489
|
+
}
|
|
490
|
+
type CatalogixSidebarIconRenderer = (context: CatalogixSidebarIconContext) => ReactNode;
|
|
491
|
+
type CatalogixSidebarIconMap = Record<string, ReactNode | CatalogixSidebarIconRenderer>;
|
|
492
|
+
interface CatalogixSidebarProfile {
|
|
493
|
+
name: string;
|
|
494
|
+
subtitle?: string;
|
|
495
|
+
avatar?: ReactNode;
|
|
496
|
+
onClick?: () => void;
|
|
497
|
+
}
|
|
498
|
+
interface CatalogixSidebarCreditWarning {
|
|
499
|
+
availableCredits: number;
|
|
500
|
+
remainingPct: number;
|
|
501
|
+
level?: "warning" | "danger";
|
|
502
|
+
onBuyCredits: () => void;
|
|
503
|
+
onCollapsedClick?: () => void;
|
|
504
|
+
}
|
|
505
|
+
interface CatalogixSwitchApp {
|
|
506
|
+
id: string;
|
|
507
|
+
name: string;
|
|
508
|
+
description?: string;
|
|
509
|
+
icon?: ReactNode;
|
|
510
|
+
onClick?: () => void;
|
|
511
|
+
}
|
|
512
|
+
interface IScCatalogixSidebarProps {
|
|
513
|
+
expanded: boolean;
|
|
514
|
+
onToggle: () => void;
|
|
515
|
+
/** Nav items below the logo. Defaults to Stores / AI Training / Insights. */
|
|
516
|
+
items?: CatalogixNavItem[];
|
|
517
|
+
/** Maps each item's iconKey to an icon (node or render fn). Defaults supply
|
|
518
|
+
* Stores/AI Training/Insights icons; override per the product's set. */
|
|
519
|
+
iconMap?: CatalogixSidebarIconMap;
|
|
520
|
+
activeItemId?: string;
|
|
521
|
+
onItemSelect?: (item: CatalogixNavItem) => void;
|
|
522
|
+
/** Other products shown inline below the logo when the switch chip is
|
|
523
|
+
* clicked (the same "switch apps" list used across the sidebars). */
|
|
524
|
+
switchApps?: CatalogixSwitchApp[];
|
|
525
|
+
/** Fires (in addition to toggling the inline list) when the switch chip is
|
|
526
|
+
* clicked — e.g. to lazy-load the product list. */
|
|
527
|
+
onLogoClick?: () => void;
|
|
528
|
+
/** Logo nodes. Default to the built-in Catalogix wordmark logo unit. */
|
|
529
|
+
expandedLogo?: ReactNode;
|
|
530
|
+
collapsedLogo?: ReactNode;
|
|
531
|
+
profile?: CatalogixSidebarProfile;
|
|
532
|
+
creditWarning?: CatalogixSidebarCreditWarning | null;
|
|
533
|
+
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
534
|
+
className?: string;
|
|
535
|
+
style?: CSSProperties;
|
|
536
|
+
}
|
|
537
|
+
declare const ScCatalogixSidebar: ({ expanded, onToggle, items, iconMap, activeItemId, onItemSelect, switchApps, onLogoClick, expandedLogo, collapsedLogo, profile, creditWarning, toggleIcon, className, style, }: IScCatalogixSidebarProps) => JSX.Element;
|
|
538
|
+
|
|
397
539
|
interface IScGuideProps {
|
|
398
540
|
/** Heading text. */
|
|
399
541
|
title?: ReactNode;
|
|
@@ -424,13 +566,42 @@ interface IScGuideProps {
|
|
|
424
566
|
}
|
|
425
567
|
declare const ScGuide: ({ title, description, skipLabel, nextLabel, nextIcon, stepLabel, onSkip, onNext, hideSkip, hideNext, disabled, className, style, }: IScGuideProps) => JSX.Element;
|
|
426
568
|
|
|
569
|
+
interface MarkPath {
|
|
570
|
+
d: string;
|
|
571
|
+
fillRule?: "evenodd" | "nonzero";
|
|
572
|
+
clipRule?: "evenodd" | "nonzero";
|
|
573
|
+
}
|
|
574
|
+
interface Wordmark {
|
|
575
|
+
viewBox: string;
|
|
576
|
+
width: number;
|
|
577
|
+
paths: MarkPath[];
|
|
578
|
+
}
|
|
579
|
+
declare const WORDMARKS: Record<string, Wordmark>;
|
|
580
|
+
type SidebarProduct = keyof typeof WORDMARKS;
|
|
581
|
+
/** Full product wordmark (expanded sidebar). */
|
|
582
|
+
declare function ProductWordmark({ product, style, }: {
|
|
583
|
+
product: SidebarProduct;
|
|
584
|
+
style?: CSSProperties;
|
|
585
|
+
}): JSX.Element | null;
|
|
586
|
+
/** Square product icon (collapsed sidebar). Returns null if the product has no
|
|
587
|
+
* collapsed mark defined yet. */
|
|
588
|
+
declare function ProductCollapsedMark({ product, style, }: {
|
|
589
|
+
product: SidebarProduct;
|
|
590
|
+
style?: CSSProperties;
|
|
591
|
+
}): JSX.Element | null;
|
|
592
|
+
/** True when the product has a dedicated collapsed icon. */
|
|
593
|
+
declare function hasCollapsedMark(product: SidebarProduct): boolean;
|
|
594
|
+
|
|
427
595
|
interface IScSideBarLogoUnitProps {
|
|
428
596
|
/** "expanded" renders the merged wordmark + switcher row.
|
|
429
597
|
* "collapsed" renders a bare clickable product icon. */
|
|
430
598
|
state?: "expanded" | "collapsed";
|
|
431
599
|
/** In expanded state: the stacked "Product / Streamoid" wordmark `<img>`.
|
|
432
|
-
* In collapsed state: the square product icon `<img>`. */
|
|
600
|
+
* In collapsed state: the square product icon `<img>`. Overrides `product`. */
|
|
433
601
|
wordmark?: ReactNode;
|
|
602
|
+
/** Built-in branded wordmark to render when `wordmark` is not supplied
|
|
603
|
+
* (e.g. "CXO", "Catalogix"). The mark follows the surrounding text color. */
|
|
604
|
+
product?: SidebarProduct;
|
|
434
605
|
/** Click handler for the whole row (wordmark + switcher are one click
|
|
435
606
|
* target now — matches the design intent). */
|
|
436
607
|
onClick?: () => void;
|
|
@@ -454,7 +625,7 @@ interface IScSideBarLogoUnitProps {
|
|
|
454
625
|
className?: string;
|
|
455
626
|
style?: CSSProperties;
|
|
456
627
|
}
|
|
457
|
-
declare const ScSideBarLogoUnit: ({ state, wordmark, onClick, onSwitchClick, switchAriaLabel, hideSwitch, hover, disabled, className, style, }: IScSideBarLogoUnitProps) => JSX.Element;
|
|
628
|
+
declare const ScSideBarLogoUnit: ({ state, wordmark, product, onClick, onSwitchClick, switchAriaLabel, hideSwitch, hover, disabled, className, style, }: IScSideBarLogoUnitProps) => JSX.Element;
|
|
458
629
|
|
|
459
630
|
interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
460
631
|
icon?: JSX.Element;
|
|
@@ -467,6 +638,18 @@ interface IScSidebarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
467
638
|
}
|
|
468
639
|
declare const ScSidebarMenu: ({ icon, state, variant, className, text, moreIcon, onMoreClick, ...props }: IScSidebarMenuProps) => JSX.Element;
|
|
469
640
|
|
|
641
|
+
interface IScSidebarSwitchMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
642
|
+
icon?: ReactNode;
|
|
643
|
+
state?: "default" | "active" | "hover" | "default-highlight" | "default-active";
|
|
644
|
+
variant?: "expanded" | "collapsed";
|
|
645
|
+
className?: string;
|
|
646
|
+
text?: string;
|
|
647
|
+
description?: string;
|
|
648
|
+
moreIcon?: ReactNode;
|
|
649
|
+
onMoreClick?: (e: React.MouseEvent) => void;
|
|
650
|
+
}
|
|
651
|
+
declare const ScSidebarSwitchMenu: ({ icon, state, variant, className, text, description, moreIcon, onMoreClick, ...props }: IScSidebarSwitchMenuProps) => JSX.Element;
|
|
652
|
+
|
|
470
653
|
interface IScSidebarProfileProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
471
654
|
state?: "default" | "hover";
|
|
472
655
|
variant?: "expanded" | "collapsed";
|
|
@@ -1080,4 +1263,4 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
1080
1263
|
}
|
|
1081
1264
|
declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, badgeSubText, currentPlanLabel, upgradeButtonText, isLoading, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
|
|
1082
1265
|
|
|
1083
|
-
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAssistantCta, 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 };
|
|
1266
|
+
export { type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSwitchPanelProps, 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 IScCatalogixSidebarProps, 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 IScPlanComparisonProps, 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 IScSidebarSwitchMenuProps, 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 PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, ScAccess, ScAppCard, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, ScArtifaxInvite, ScArtifaxSidebar, ScBadges, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCheckField, ScCheckbox, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScDp, type ScDpProps, ScFieldButton, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScIntialProfileCover, ScLogoUnit, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScOnlyField, ScOnlyIcon, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSettingsNav, ScSettingsTabComp, ScSideBarLogoUnit, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarSwitchMenu, 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 SidebarProduct, type SidebarProfileConfig, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarProps, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, hasCollapsedMark };
|