@nimbus-ds/patterns 1.35.0 → 1.35.1-rc.10

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.d.ts CHANGED
@@ -38,8 +38,17 @@ export interface AppShellChatProperties {
38
38
  * The overlay auto-detects the parent bounds (respecting menu and header).
39
39
  */
40
40
  expanded?: boolean;
41
+ /**
42
+ * Width of the chat panel in collapsed (non-expanded) mode.
43
+ * Accepts any valid CSS length value (e.g. "300px", "25vw") or a responsive
44
+ * object keyed by breakpoint (e.g. `{ xs: "300px", xxl: "378px" }`).
45
+ * Useful for consumer-controlled resize interactions such as a drag handle.
46
+ * When omitted, defaults to the responsive `{ xs: "300px", xxl: "378px" }`.
47
+ */
48
+ collapsedWidth?: NonNullable<BoxProps["maxWidth"]>;
41
49
  }
42
50
  export type AppShellChatProps = AppShellChatProperties & Omit<BoxProps, "position">;
51
+ export declare const APPSHELL_CHAT_DEFAULT_WIDTH = "360px";
43
52
  declare const AppShellChat: React.FC<AppShellChatProps>;
44
53
  export interface AppShellComponents {
45
54
  Header: typeof AppShellHeader;
@@ -725,12 +734,7 @@ export interface MenuProperties {
725
734
  }
726
735
  export type MenuProps = MenuProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
727
736
  export declare const Menu: React.FC<MenuProps> & MenuComponents;
728
- export interface NavTabsItemProperties {
729
- /**
730
- * Icon element to be rendered inside the button.
731
- * @TJS-type React.ReactNode
732
- */
733
- icon: ReactNode;
737
+ export interface NavTabsItemBaseProperties {
734
738
  /**
735
739
  * Controls whether the button is active or not.
736
740
  */
@@ -749,7 +753,30 @@ export interface NavTabsItemProperties {
749
753
  */
750
754
  ariaLabel: string;
751
755
  }
752
- export type NavTabsItemProps = NavTabsItemProperties & Omit<BoxProperties, "onClick"> & Omit<HTMLAttributes<HTMLElement>, "color">;
756
+ export interface NavTabsItemNeutralProperties extends NavTabsItemBaseProperties {
757
+ /**
758
+ * Visual variant of the button.
759
+ * "ai-generative" renders a fixed AI icon with a gradient border and does not accept a custom `icon`.
760
+ * @default "neutral"
761
+ */
762
+ appearance?: "neutral";
763
+ /**
764
+ * Icon element to be rendered inside the button.
765
+ * @TJS-type React.ReactNode
766
+ */
767
+ icon: ReactNode;
768
+ }
769
+ export interface NavTabsItemAIGenerativeProperties extends Omit<NavTabsItemBaseProperties, "active"> {
770
+ /**
771
+ * Visual variant of the button.
772
+ * "ai-generative" renders a fixed AI icon with a gradient border and does not accept a custom `icon`.
773
+ */
774
+ appearance: "ai-generative";
775
+ icon?: never;
776
+ active?: never;
777
+ }
778
+ export type NavTabsItemVariantProperties = NavTabsItemNeutralProperties | NavTabsItemAIGenerativeProperties;
779
+ export type NavTabsItemProps = NavTabsItemVariantProperties & Omit<BoxProperties, "onClick"> & Omit<HTMLAttributes<HTMLElement>, "color">;
753
780
  declare const NavTabsItem: React.FC<NavTabsItemProps>;
754
781
  export interface NavTabsComponents {
755
782
  Item: typeof NavTabsItem;