@streamoid/ui 0.6.15 → 0.6.17

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
@@ -1274,6 +1274,11 @@
1274
1274
  overflow: visible;
1275
1275
  aspect-ratio: 1;
1276
1276
  }
1277
+ .ScCheckbox_scCheckbox > svg {
1278
+ display: block;
1279
+ width: 100%;
1280
+ height: 100%;
1281
+ }
1277
1282
  .ScCheckbox_scCheckbox.ScCheckbox_state-default .ScCheckbox_vector,
1278
1283
  .ScCheckbox_scCheckbox.ScCheckbox_state-selected .ScCheckbox_vector,
1279
1284
  .ScCheckbox_scCheckbox.ScCheckbox_state-partial .ScCheckbox_vector {
@@ -2397,7 +2402,7 @@
2397
2402
  .ScMenuOptions_scMenuOptions.ScMenuOptions_hover-true.ScMenuOptions_variant-default,
2398
2403
  .ScMenuOptions_scMenuOptions.ScMenuOptions_variant-with-v:hover,
2399
2404
  .ScMenuOptions_scMenuOptions.ScMenuOptions_hover-true.ScMenuOptions_variant-with-v {
2400
- background: var(--alias-fill-neutral-neutraltohover, #1f1f1f);
2405
+ background: var(--alias-fill-neutral-neutralhover, #242424);
2401
2406
  }
2402
2407
  .ScMenuOptions_scMenuOptions.ScMenuOptions_variant-error:hover,
2403
2408
  .ScMenuOptions_scMenuOptions.ScMenuOptions_hover-true.ScMenuOptions_variant-error {
@@ -3681,6 +3686,77 @@
3681
3686
  flex: unset;
3682
3687
  }
3683
3688
 
3689
+ /* src/SC-AskAgentButton/ScAskAgentButton.module.css */
3690
+ .ScAskAgentButton_askAgent,
3691
+ .ScAskAgentButton_askAgentCollapsed {
3692
+ display: flex;
3693
+ align-items: center;
3694
+ justify-content: center;
3695
+ gap: var(--spacing-md, 0.5rem);
3696
+ cursor: pointer;
3697
+ color: #f5f5f5;
3698
+ background:
3699
+ linear-gradient(
3700
+ 135deg,
3701
+ rgba(217, 21, 54, 1) 0%,
3702
+ rgba(238, 94, 58, 1) 100%);
3703
+ border: 0.5px solid rgba(255, 0, 0, 0.32);
3704
+ border-radius: var(--radius-2xl, 0.75rem);
3705
+ }
3706
+ .ScAskAgentButton_askAgent {
3707
+ width: 100%;
3708
+ padding: var(--spacing-xl, 0.75rem);
3709
+ }
3710
+ .ScAskAgentButton_askAgentCollapsed {
3711
+ width: 2.5rem;
3712
+ height: 2.5rem;
3713
+ padding: var(--spacing-md, 0.5rem);
3714
+ flex-shrink: 0;
3715
+ }
3716
+ .ScAskAgentButton_askAgent:hover,
3717
+ .ScAskAgentButton_askAgentCollapsed:hover {
3718
+ filter: brightness(1.08);
3719
+ }
3720
+ .ScAskAgentButton_askAgentActive {
3721
+ box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
3722
+ }
3723
+ .ScAskAgentButton_askAgent:focus-visible,
3724
+ .ScAskAgentButton_askAgentCollapsed:focus-visible {
3725
+ outline: 2px solid rgba(255, 255, 255, 0.9);
3726
+ outline-offset: 2px;
3727
+ }
3728
+ .ScAskAgentButton_askAgentLabel {
3729
+ font-family: var(--font-family-font-family-body, "Inter", sans-serif);
3730
+ font-size: 0.75rem;
3731
+ font-weight: 600;
3732
+ line-height: 1.125rem;
3733
+ color: #f5f5f5;
3734
+ white-space: nowrap;
3735
+ }
3736
+ .ScAskAgentButton_askAgentIcon {
3737
+ display: inline-flex;
3738
+ align-items: center;
3739
+ justify-content: center;
3740
+ flex-shrink: 0;
3741
+ color: #f5f5f5;
3742
+ }
3743
+ .ScAskAgentButton_askAgentIcon :where(svg) {
3744
+ width: 1.25rem;
3745
+ height: 1.25rem;
3746
+ }
3747
+ .ScAskAgentButton_askAgentSlot {
3748
+ width: 100%;
3749
+ flex-shrink: 0;
3750
+ padding: 0 var(--spacing-md, 0.5rem) var(--spacing-3xl, 1rem);
3751
+ }
3752
+ .ScAskAgentButton_askAgentSlotCollapsed {
3753
+ display: flex;
3754
+ justify-content: center;
3755
+ width: 100%;
3756
+ flex-shrink: 0;
3757
+ padding: var(--spacing-md, 0.5rem) 0;
3758
+ }
3759
+
3684
3760
  /* src/SC-Artifax-Sidebar/ScArtifaxSidebar.module.css */
3685
3761
  .ScArtifaxSidebar_scArtifaxSidebar,
3686
3762
  .ScArtifaxSidebar_scArtifaxSidebar * {
@@ -3895,75 +3971,6 @@
3895
3971
  align-items: center;
3896
3972
  justify-content: center;
3897
3973
  }
3898
- .ScArtifaxSidebar_askAgentSlot {
3899
- width: 100%;
3900
- flex-shrink: 0;
3901
- padding: 0 var(--spacing-md, 0.5rem) var(--spacing-3xl, 1rem);
3902
- }
3903
- .ScArtifaxSidebar_askAgentSlotCollapsed {
3904
- display: flex;
3905
- justify-content: center;
3906
- width: 100%;
3907
- flex-shrink: 0;
3908
- padding: var(--spacing-md, 0.5rem) 0;
3909
- }
3910
- .ScArtifaxSidebar_askAgent,
3911
- .ScArtifaxSidebar_askAgentCollapsed {
3912
- display: flex;
3913
- align-items: center;
3914
- justify-content: center;
3915
- gap: var(--spacing-md, 0.5rem);
3916
- cursor: pointer;
3917
- color: #f5f5f5;
3918
- background:
3919
- linear-gradient(
3920
- 135deg,
3921
- rgba(217, 21, 54, 1) 0%,
3922
- rgba(238, 94, 58, 1) 100%);
3923
- border: 0.5px solid rgba(255, 0, 0, 0.32);
3924
- border-radius: var(--radius-2xl, 0.75rem);
3925
- }
3926
- .ScArtifaxSidebar_askAgent {
3927
- width: 100%;
3928
- padding: var(--spacing-xl, 0.75rem);
3929
- }
3930
- .ScArtifaxSidebar_askAgentCollapsed {
3931
- width: 2.5rem;
3932
- height: 2.5rem;
3933
- padding: var(--spacing-md, 0.5rem);
3934
- flex-shrink: 0;
3935
- }
3936
- .ScArtifaxSidebar_askAgent:hover,
3937
- .ScArtifaxSidebar_askAgentCollapsed:hover {
3938
- filter: brightness(1.08);
3939
- }
3940
- .ScArtifaxSidebar_askAgentActive {
3941
- box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
3942
- }
3943
- .ScArtifaxSidebar_askAgent:focus-visible,
3944
- .ScArtifaxSidebar_askAgentCollapsed:focus-visible {
3945
- outline: 2px solid rgba(255, 255, 255, 0.9);
3946
- outline-offset: 2px;
3947
- }
3948
- .ScArtifaxSidebar_askAgentLabel {
3949
- font-family: var(--font-family-font-family-body, "Inter", sans-serif);
3950
- font-size: 0.75rem;
3951
- font-weight: 600;
3952
- line-height: 1.125rem;
3953
- color: #f5f5f5;
3954
- white-space: nowrap;
3955
- }
3956
- .ScArtifaxSidebar_askAgentIcon {
3957
- display: inline-flex;
3958
- align-items: center;
3959
- justify-content: center;
3960
- flex-shrink: 0;
3961
- color: #f5f5f5;
3962
- }
3963
- .ScArtifaxSidebar_askAgentIcon :where(svg) {
3964
- width: 1.25rem;
3965
- height: 1.25rem;
3966
- }
3967
3974
  .ScArtifaxSidebar_footerToggle {
3968
3975
  display: flex;
3969
3976
  align-items: center;
@@ -5947,7 +5954,7 @@
5947
5954
  display: flex;
5948
5955
  align-items: center;
5949
5956
  justify-content: center;
5950
- background: rgba(11, 8, 30, 0.5);
5957
+ background: rgba(16, 16, 16, 0.7);
5951
5958
  }
5952
5959
  .ScModal_content {
5953
5960
  padding: 24px;
@@ -9674,3 +9681,219 @@
9674
9681
  background-position: -100% 0;
9675
9682
  }
9676
9683
  }
9684
+
9685
+ /* src/SC-ProfilePopup/ScProfilePopup.module.css */
9686
+ .ScProfilePopup_scProfilePopup,
9687
+ .ScProfilePopup_scProfilePopup * {
9688
+ box-sizing: border-box;
9689
+ }
9690
+ .ScProfilePopup_scProfilePopup {
9691
+ background: var(--alias-surface-subtle, #1a1a1a);
9692
+ border-radius: var(--radius-4xl, 1.125rem);
9693
+ box-shadow: inset 0 0 0 var(--stroke-st0p5, 0.5px) var(--alias-border-subtle, #242424);
9694
+ padding: var(--spacing-md, 0.5rem);
9695
+ display: flex;
9696
+ flex-direction: column;
9697
+ gap: var(--spacing-xl, 0.75rem);
9698
+ align-items: flex-start;
9699
+ justify-content: flex-start;
9700
+ width: var(--sc-profile-popup-width, 20rem);
9701
+ position: relative;
9702
+ backdrop-filter: blur(2.625rem);
9703
+ }
9704
+ .ScProfilePopup_scProfilePopup > *,
9705
+ .ScProfilePopup_settingsOptions > *,
9706
+ .ScProfilePopup_profileDetails > *,
9707
+ .ScProfilePopup_switchWorkspaceRow > * {
9708
+ align-self: stretch !important;
9709
+ flex-shrink: 0 !important;
9710
+ width: unset !important;
9711
+ }
9712
+ .ScProfilePopup_profileHeader {
9713
+ display: flex;
9714
+ flex-direction: row;
9715
+ align-items: center;
9716
+ justify-content: flex-start;
9717
+ align-self: stretch;
9718
+ flex-shrink: 0;
9719
+ position: relative;
9720
+ }
9721
+ .ScProfilePopup_headerActions {
9722
+ display: flex;
9723
+ flex-direction: row;
9724
+ gap: var(--spacing-xs, 0.25rem);
9725
+ align-items: center;
9726
+ justify-content: flex-end;
9727
+ align-self: stretch;
9728
+ flex-shrink: 0;
9729
+ position: relative;
9730
+ }
9731
+ .ScProfilePopup_scProfileInstance {
9732
+ flex: 1 !important;
9733
+ width: unset !important;
9734
+ min-width: 0 !important;
9735
+ }
9736
+ .ScProfilePopup_scProfileInstance img {
9737
+ width: 2rem !important;
9738
+ height: 2rem !important;
9739
+ }
9740
+ .ScProfilePopup_scProfileInstance > div {
9741
+ min-width: 0;
9742
+ }
9743
+ .ScProfilePopup_profileBlock {
9744
+ background: none;
9745
+ border: none;
9746
+ margin: 0;
9747
+ font: inherit;
9748
+ color: inherit;
9749
+ text-align: left;
9750
+ flex: 1;
9751
+ min-width: 0;
9752
+ display: flex;
9753
+ align-items: center;
9754
+ padding: var(--spacing-md, 0.5rem);
9755
+ border-radius: var(--radius-3xl, 1rem);
9756
+ position: relative;
9757
+ }
9758
+ .ScProfilePopup_profileBlockInteractive {
9759
+ cursor: pointer;
9760
+ }
9761
+ .ScProfilePopup_profileBlockInteractive:hover {
9762
+ background: var(--alias-fill-neutral-neutralhover, #242424);
9763
+ }
9764
+ .ScProfilePopup_profileBlockInteractive:focus-visible {
9765
+ outline: var(--stroke-st2, 2px) solid var(--alias-border-default, #3e3e3e);
9766
+ outline-offset: calc(-1 * var(--spacing-xxs, 2px));
9767
+ }
9768
+ .ScProfilePopup_logoutButton {
9769
+ align-self: stretch;
9770
+ aspect-ratio: 1;
9771
+ padding: var(--spacing-md, 0.5rem);
9772
+ display: flex;
9773
+ align-items: center;
9774
+ justify-content: center;
9775
+ border-radius: var(--radius-3xl, 1rem);
9776
+ flex-shrink: 0;
9777
+ position: relative;
9778
+ background: none;
9779
+ border: none;
9780
+ cursor: pointer;
9781
+ color: var(--alias-text-and-icons-errorcont, #eb6b6b);
9782
+ }
9783
+ .ScProfilePopup_logoutButton:hover {
9784
+ background: var(--alias-fill-error-secondaryhover, #2a0606);
9785
+ box-shadow: inset 0 0 0 var(--stroke-st1, 1px) var(--alias-border-error, #8f1414);
9786
+ }
9787
+ .ScProfilePopup_logoutButton:focus-visible {
9788
+ outline: var(--stroke-st2, 2px) solid var(--alias-border-error, #8f1414);
9789
+ outline-offset: var(--spacing-xxs, 2px);
9790
+ }
9791
+ .ScProfilePopup_profileDetails {
9792
+ display: flex;
9793
+ flex-direction: column;
9794
+ gap: var(--spacing-xs, 0.25rem);
9795
+ align-items: flex-start;
9796
+ justify-content: flex-start;
9797
+ align-self: stretch;
9798
+ flex-shrink: 0;
9799
+ padding-bottom: var(--spacing-md, 0.5rem);
9800
+ position: relative;
9801
+ }
9802
+ .ScProfilePopup_workspaceInfo {
9803
+ padding: var(--spacing-md, 0.5rem);
9804
+ display: flex;
9805
+ flex-direction: row;
9806
+ gap: var(--spacing-3xl, 1rem);
9807
+ align-items: center;
9808
+ justify-content: flex-start;
9809
+ align-self: stretch;
9810
+ flex-shrink: 0;
9811
+ position: relative;
9812
+ }
9813
+ .ScProfilePopup_scWorkspaceInstance {
9814
+ flex: 1 !important;
9815
+ width: unset !important;
9816
+ min-width: 0 !important;
9817
+ }
9818
+ .ScProfilePopup_scWorkspaceInstance img {
9819
+ width: 2rem !important;
9820
+ height: 2rem !important;
9821
+ }
9822
+ .ScProfilePopup_scWorkspaceInstance > div {
9823
+ min-width: 0;
9824
+ }
9825
+ .ScProfilePopup_creditsPill {
9826
+ background: var(--alias-surface-canvas, #0b0b0b);
9827
+ box-shadow: inset 0 0 0 var(--stroke-st1, 1px) var(--alias-border-divider, #242424);
9828
+ border-radius: var(--radius-md, 0.5rem);
9829
+ padding: var(--spacing-md, 0.5rem) var(--spacing-xl, 0.75rem);
9830
+ display: flex;
9831
+ flex-direction: row;
9832
+ gap: var(--spacing-sm, 0.375rem);
9833
+ align-items: center;
9834
+ justify-content: center;
9835
+ flex-shrink: 0;
9836
+ position: relative;
9837
+ color: var(--alias-text-and-icons-primary, #f5f5f5);
9838
+ }
9839
+ .ScProfilePopup_creditsValue {
9840
+ color: var(--alias-text-and-icons-primary, #f5f5f5);
9841
+ text-align: left;
9842
+ font-family: var(--font-family-font-family-body, Inter), sans-serif;
9843
+ font-size: var(--font-size-font-size-xs, 0.75rem);
9844
+ line-height: var(--line-height-line-height-xs, 1.125rem);
9845
+ letter-spacing: var(--letter-spacing-letter-spacing-normal, 0);
9846
+ font-weight: 500;
9847
+ white-space: nowrap;
9848
+ position: relative;
9849
+ }
9850
+ .ScProfilePopup_switchWorkspaceRow {
9851
+ display: flex;
9852
+ flex-direction: column;
9853
+ gap: var(--spacing-xs, 0.25rem);
9854
+ align-items: flex-start;
9855
+ justify-content: flex-start;
9856
+ padding: 0 var(--spacing-md, 0.5rem);
9857
+ align-self: stretch;
9858
+ flex-shrink: 0;
9859
+ position: relative;
9860
+ }
9861
+ .ScProfilePopup_switchWorkspaceButton {
9862
+ background: var(--alias-fill-neutral-neutralactive, #313131) !important;
9863
+ cursor: pointer;
9864
+ }
9865
+ .ScProfilePopup_switchWorkspaceButton:hover {
9866
+ background: var(--alias-fill-neutral-neutralselected, #242424) !important;
9867
+ }
9868
+ .ScProfilePopup_settingsOptions {
9869
+ display: flex;
9870
+ flex-direction: column;
9871
+ gap: var(--spacing-md, 0.5rem);
9872
+ align-items: flex-start;
9873
+ justify-content: flex-start;
9874
+ align-self: stretch;
9875
+ flex-shrink: 0;
9876
+ position: relative;
9877
+ }
9878
+ .ScProfilePopup_menuOptionInstance {
9879
+ cursor: pointer;
9880
+ color: var(--alias-text-and-icons-primary, #f5f5f5);
9881
+ }
9882
+ .ScProfilePopup_menuOptionInstance:focus-visible {
9883
+ outline: var(--stroke-st2, 2px) solid var(--alias-border-default, #3e3e3e);
9884
+ outline-offset: calc(-1 * var(--spacing-xxs, 2px));
9885
+ }
9886
+ .ScProfilePopup_themeTab {
9887
+ flex: 1 !important;
9888
+ align-self: unset !important;
9889
+ flex-shrink: unset !important;
9890
+ color: var(--alias-text-and-icons-muted, #7a7a7a);
9891
+ cursor: pointer;
9892
+ }
9893
+ .ScProfilePopup_themeTabActive {
9894
+ color: var(--alias-text-and-icons-inverse, #101010);
9895
+ }
9896
+ .ScProfilePopup_themeTab:focus-visible {
9897
+ outline: var(--stroke-st2, 2px) solid var(--alias-border-default, #3e3e3e);
9898
+ outline-offset: calc(-1 * var(--spacing-xxs, 2px));
9899
+ }
package/dist/index.d.mts CHANGED
@@ -416,6 +416,45 @@ interface IScSidebarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "on
416
416
  }
417
417
  declare const ScSidebar: ({ state, className, onToggle, ...props }: IScSidebarProps) => JSX.Element;
418
418
 
419
+ /**
420
+ * Gradient assistant call-to-action shown just above a sidebar's profile row
421
+ * (e.g. "Ask CXO", which opens an embedded copilot panel).
422
+ *
423
+ * Shared by ScArtifaxSidebar and StreamoidSidebar so the gradient, the
424
+ * collapsed square and the a11y contract exist in exactly one place.
425
+ */
426
+ interface AssistantCta {
427
+ /** CTA label, e.g. "Ask CXO". Shown in the expanded rail; hidden when
428
+ * collapsed (the icon becomes the only visible content). */
429
+ label: string;
430
+ /** Leading icon. Rendered in both states; it is the sole content of the
431
+ * collapsed square, so always supply one for collapsed use. */
432
+ icon?: ReactNode;
433
+ /** Pressed/active styling — e.g. while the panel this opens is visible.
434
+ * Surfaced as `aria-pressed`. */
435
+ active?: boolean;
436
+ /** Accessible name; falls back to `label`. */
437
+ ariaLabel?: string;
438
+ onClick: () => void;
439
+ }
440
+ interface IScAskAgentButtonProps {
441
+ cta: AssistantCta;
442
+ /** Collapsed rail: renders the 40x40 icon-only square and drops the label. */
443
+ collapsed?: boolean;
444
+ }
445
+ declare const ScAskAgentButton: {
446
+ ({ cta, collapsed, }: IScAskAgentButtonProps): JSX.Element;
447
+ displayName: string;
448
+ };
449
+ /**
450
+ * Rail wrapper for the CTA — owns the inset/spacing before the divider so a
451
+ * host sidebar only has to decide *whether* to show it.
452
+ */
453
+ declare const ScAskAgentSlot: {
454
+ ({ cta, collapsed, }: IScAskAgentButtonProps): JSX.Element;
455
+ displayName: string;
456
+ };
457
+
419
458
  interface SidebarMenuItemConfig {
420
459
  id: string;
421
460
  label?: string;
@@ -464,6 +503,12 @@ interface StreamoidSidebarProps {
464
503
  * only; collapsed is unaffected. */
465
504
  toggleInProfile?: boolean;
466
505
  hideFooter?: boolean;
506
+ /** Gradient call-to-action above the profile row (e.g. "Ask CXO"). Omit to
507
+ * hide it. Rendered in both expanded (icon + label pill) and collapsed
508
+ * (icon-only square) rails, in the same slot as `preFooterContent` and
509
+ * immediately before it. Shares SC-AskAgentButton with ScArtifaxSidebar,
510
+ * so the gradient and a11y contract are identical across products. */
511
+ assistantCta?: AssistantCta | null;
467
512
  preFooterContent?: ReactNode;
468
513
  bodyContent?: ReactNode;
469
514
  showBody?: boolean;
@@ -483,7 +528,7 @@ interface StreamoidSidebarProps {
483
528
  /** Explicit state override per top item id — takes priority over activeItemId/highlightedItemIds for top items */
484
529
  topItemStates?: Record<string, "default" | "active" | "hover" | "default-highlight" | "default-active">;
485
530
  }
486
- 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;
531
+ declare function StreamoidSidebar({ expanded, onToggle, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, toggleInProfile, hideFooter, assistantCta, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): react_jsx_runtime.JSX.Element;
487
532
 
488
533
  interface ArtifaxMenuItem {
489
534
  id: string;
@@ -516,20 +561,12 @@ interface ArtifaxSidebarCreditWarning {
516
561
  level?: "warning" | "danger";
517
562
  onBuyCredits: () => void;
518
563
  }
519
- interface ArtifaxSidebarAssistantCta {
520
- /** CTA label, e.g. "Ask CXO". Shown in the expanded rail; hidden when
521
- * collapsed (the icon becomes the only visible content). */
522
- label: string;
523
- /** Leading icon. Rendered in both states; it is the sole content of the
524
- * collapsed square, so always supply one for collapsed use. */
525
- icon?: ReactNode;
526
- /** Pressed/active styling — e.g. while the panel this opens is visible.
527
- * Surfaced as `aria-pressed`. */
528
- active?: boolean;
529
- /** Accessible name; falls back to `label`. */
530
- ariaLabel?: string;
531
- onClick: () => void;
532
- }
564
+ /**
565
+ * The CTA contract now lives with the shared button (SC-AskAgentButton) so the
566
+ * Artifax and Streamoid sidebars cannot drift. Kept as a named alias because
567
+ * this type is public API — consumers import it by this name.
568
+ */
569
+ type ArtifaxSidebarAssistantCta = AssistantCta;
533
570
  interface IScArtifaxSidebarProps {
534
571
  expanded: boolean;
535
572
  onToggle: () => void;
@@ -878,8 +915,12 @@ interface IScCheckboxProps {
878
915
  className?: string;
879
916
  style?: React.CSSProperties;
880
917
  onClick?: React.MouseEventHandler<HTMLDivElement>;
918
+ /** Box size in px (or any CSS length). Defaults to 24. The inner artwork
919
+ * scales with the box, so a smaller value gives a proportionally smaller
920
+ * checkbox — used for dense contexts like a data-grid header. */
921
+ size?: number | string;
881
922
  }
882
- declare const ScCheckbox: ({ state, checked, disabled, onChange, className, style, onClick, ...props }: IScCheckboxProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">) => JSX.Element;
923
+ declare const ScCheckbox: ({ state, checked, disabled, onChange, className, style, onClick, size, ...props }: IScCheckboxProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">) => JSX.Element;
883
924
 
884
925
  interface IScFieldButtonProps extends React.HTMLAttributes<HTMLDivElement> {
885
926
  icon?: JSX.Element;
@@ -1724,4 +1765,95 @@ interface IScPlanDetailsCardMobileProps extends React.HTMLAttributes<HTMLDivElem
1724
1765
  }
1725
1766
  declare const ScPlanDetailsCardMobile: ({ planName, planCredits, planPrice, badgeText, badgeSubText, currentPlanLabel, upgradeButtonText, isLoading, onUpgrade, className, ...props }: IScPlanDetailsCardMobileProps) => JSX.Element;
1726
1767
 
1727
- export { type AppcardProduct, 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 DescriptionVisibility, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardForCopilotProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSwitchPanelProps, type IScAppcardLogosProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScBadgesProps, type IScBeaconProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCatalogixSidebarProps, type IScCatalogixStoreHeaderProps, type IScCatalogixStoreTableListProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCounterProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScCxoCopilotLogoProps, type IScDefaultCardProps, type IScDrawerProps, type IScFieldButtonProps, type IScFileFieldProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScInChatListProps, type IScInChatMessageProps, type IScInfoPopupProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMappingCardProps, type IScMediaApprovalProps, type IScMediaSelectProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScModalProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPaginationProps, 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 IScSelectOption, type IScSelectProps, type IScSelectionListProps, type IScSelectionPillGroupProps, type IScSelectionPillOption, type IScSelectionPillProps, type IScSelectionProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSidebarSwitchMenuProps, type IScSliderProps, type IScStoreCardProps, type IScStrLogoProps, type IScStreamoidMascotProps, type IScStreamoidWordmarkProps, type IScSubAgentProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTabsProps, type IScTaxonomyPillProps, type IScTextAreaProps, type IScTextFieldProps, type IScThinkingStepIconProps, type IScTodoItem, type IScTodoListProps, type IScToggleSwitchProps, type IScVDividerProps, type IScValueMappingL1Props, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, type IcListIconState, InvoiceHistoryMobile, NscWorkspaceSwitch, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, ScAppcardLogos, ScArtifaxInvite, ScArtifaxSidebar, ScBadges, ScBeacon, type ScBeaconTone, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCatalogixStoreHeader, ScCatalogixStoreTableList, ScCheckField, ScCheckbox, ScCounter, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScCxoCopilotLogo, ScDefaultCard, ScDp, type ScDpProps, ScDrawer, ScFieldButton, ScFileField, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScInChatList, ScInChatMessage, ScInfoPopup, ScIntialProfileCover, ScLogoUnit, ScMappingCard, ScMediaApproval, ScMediaSelect, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScModal, ScOnlyField, ScOnlyIcon, ScPagination, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSelect, ScSelection, ScSelectionList, ScSelectionPill, ScSelectionPillGroup, ScSettingsNav, ScSettingsTabComp, ScSideBarLogoUnit, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarSwitchMenu, ScSlider, ScStoreCard, ScStrLogo, ScStreamoidMascot, ScStreamoidWordmark, ScSubAgent, type ScTab, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTabs, ScTaxonomyPill, ScTextArea, ScTextField, ScThinkingStepIcon, ScTodoList, ScToggleSwitch, ScVDivider, ScValueMappingL1, ScVersion, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SelectionListState, 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, formatSubAgentLabel, hasCollapsedMark };
1768
+ type ScProfilePopupThemeMode = "system" | "light" | "dark";
1769
+ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
1770
+ /** Display name shown on the first line of the header. */
1771
+ name?: string;
1772
+ /** Second header line — the design shows the signed-in email. */
1773
+ email?: string;
1774
+ /** Avatar image src. */
1775
+ avatar?: string;
1776
+ /** Makes the header identity block activatable (e.g. open account settings). */
1777
+ onProfileClick?: () => void;
1778
+ /** Wires the error-coloured logout icon in the header's top-right. */
1779
+ onLogout?: () => void;
1780
+ /** Accessible label for the icon-only logout button. */
1781
+ logoutLabel?: string;
1782
+ showLogout?: boolean;
1783
+ workspaceName?: string;
1784
+ /** Role line under the workspace name, e.g. "Admin". */
1785
+ userRole?: string;
1786
+ workspaceImage?: string;
1787
+ /** Credits pill value. Omit to hide the pill entirely. */
1788
+ credits?: ReactNode;
1789
+ onSwitchWorkspace?: () => void;
1790
+ switchWorkspaceLabel?: string;
1791
+ showWorkspace?: boolean;
1792
+ showSwitchWorkspace?: boolean;
1793
+ onTeams?: () => void;
1794
+ onBilling?: () => void;
1795
+ onSettings?: () => void;
1796
+ onWhatsNew?: () => void;
1797
+ teamsLabel?: string;
1798
+ billingLabel?: string;
1799
+ settingsLabel?: string;
1800
+ whatsNewLabel?: string;
1801
+ /** Version tag shown at the trailing edge of the "What's new" row. */
1802
+ version?: string;
1803
+ showTeams?: boolean;
1804
+ showBilling?: boolean;
1805
+ showSettings?: boolean;
1806
+ showWhatsNew?: boolean;
1807
+ /** Controlled: which theme tab reads as active. */
1808
+ themeMode?: ScProfilePopupThemeMode;
1809
+ onThemeModeChange?: (mode: ScProfilePopupThemeMode) => void;
1810
+ showThemeSwitcher?: boolean;
1811
+ /** Extra trailing header controls; sits in a row beside the logout button. */
1812
+ headerActions?: ReactNode;
1813
+ /** Appended inside the workspace block, below "Switch workspace". */
1814
+ workspaceContent?: ReactNode;
1815
+ /** Appended to the menu group, below the built-in rows. */
1816
+ menuContent?: ReactNode;
1817
+ /** Sits between the menu group and the theme switcher. */
1818
+ preFooterContent?: ReactNode;
1819
+ /** Appended at the end of the panel, below the theme switcher. */
1820
+ children?: ReactNode;
1821
+ className?: string;
1822
+ }
1823
+ /**
1824
+ * Profile popup panel — Figma `SC-Profile options` (node 6666:25516).
1825
+ *
1826
+ * This is the panel **body only**: it renders no overlay and owns no open
1827
+ * state. The host positions it and handles dismissal, matching the
1828
+ * `switchPanel`/`switchPanelOpen` split already used by `StreamoidSidebar`.
1829
+ * The forwarded ref is the panel root, for placement and outside-click checks.
1830
+ *
1831
+ * Composed from existing DS parts (`ScProfile`, `ScWorkspace`, `ScHDivider`,
1832
+ * `ScMenuOptions`, `ScButton`, `ScTabSwitcher`/`ScTabComp`). To nest further
1833
+ * components, use the slots — each stack stretches whatever is placed in it:
1834
+ *
1835
+ * ```tsx
1836
+ * <ScProfilePopup
1837
+ * ref={panelRef}
1838
+ * name={user.name}
1839
+ * email={user.email}
1840
+ * avatar={user.avatarUrl}
1841
+ * workspaceName={ws.name}
1842
+ * userRole={ws.role}
1843
+ * credits={credits}
1844
+ * version={APP_VERSION}
1845
+ * themeMode={theme}
1846
+ * onThemeModeChange={setTheme}
1847
+ * onLogout={logout}
1848
+ * onSwitchWorkspace={() => setSwitcherOpen(true)}
1849
+ * onBilling={() => navigate("/billing")}
1850
+ * menuContent={
1851
+ * <ScMenuOptions icon={<SiconCatalog size={24} />} text="Catalogs" />
1852
+ * }
1853
+ * preFooterContent={<ScCreditWarningBanner … />}
1854
+ * />
1855
+ * ```
1856
+ */
1857
+ declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
1858
+
1859
+ export { type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type AssistantCta, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type DescriptionVisibility, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardForCopilotProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSwitchPanelProps, type IScAppcardLogosProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScAskAgentButtonProps, type IScBadgesProps, type IScBeaconProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCatalogixSidebarProps, type IScCatalogixStoreHeaderProps, type IScCatalogixStoreTableListProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCounterProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScCxoCopilotLogoProps, type IScDefaultCardProps, type IScDrawerProps, type IScFieldButtonProps, type IScFileFieldProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScInChatListProps, type IScInChatMessageProps, type IScInfoPopupProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMappingCardProps, type IScMediaApprovalProps, type IScMediaSelectProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScModalProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPaginationProps, type IScPairtextProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfilePopupProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSelectOption, type IScSelectProps, type IScSelectionListProps, type IScSelectionPillGroupProps, type IScSelectionPillOption, type IScSelectionPillProps, type IScSelectionProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSidebarSwitchMenuProps, type IScSliderProps, type IScStoreCardProps, type IScStrLogoProps, type IScStreamoidMascotProps, type IScStreamoidWordmarkProps, type IScSubAgentProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTabsProps, type IScTaxonomyPillProps, type IScTextAreaProps, type IScTextFieldProps, type IScThinkingStepIconProps, type IScTodoItem, type IScTodoListProps, type IScToggleSwitchProps, type IScVDividerProps, type IScValueMappingL1Props, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, type IcListIconState, InvoiceHistoryMobile, NscWorkspaceSwitch, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, ScAppcardLogos, ScArtifaxInvite, ScArtifaxSidebar, ScAskAgentButton, ScAskAgentSlot, ScBadges, ScBeacon, type ScBeaconTone, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCatalogixStoreHeader, ScCatalogixStoreTableList, ScCheckField, ScCheckbox, ScCounter, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScCxoCopilotLogo, ScDefaultCard, ScDp, type ScDpProps, ScDrawer, ScFieldButton, ScFileField, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScInChatList, ScInChatMessage, ScInfoPopup, ScIntialProfileCover, ScLogoUnit, ScMappingCard, ScMediaApproval, ScMediaSelect, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScModal, ScOnlyField, ScOnlyIcon, ScPagination, ScPairtext, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfilePopup, type ScProfilePopupThemeMode, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSelect, ScSelection, ScSelectionList, ScSelectionPill, ScSelectionPillGroup, ScSettingsNav, ScSettingsTabComp, ScSideBarLogoUnit, ScSidebar, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarSwitchMenu, ScSlider, ScStoreCard, ScStrLogo, ScStreamoidMascot, ScStreamoidWordmark, ScSubAgent, type ScTab, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTabs, ScTaxonomyPill, ScTextArea, ScTextField, ScThinkingStepIcon, ScTodoList, ScToggleSwitch, ScVDivider, ScValueMappingL1, ScVersion, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SelectionListState, 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, formatSubAgentLabel, hasCollapsedMark };