@nimbus-ds/patterns 1.35.1-rc.21 → 1.35.1-rc.22

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
@@ -907,12 +907,7 @@ export interface MenuProperties {
907
907
  }
908
908
  export type MenuProps = MenuProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
909
909
  export declare const Menu: React.FC<MenuProps> & MenuComponents;
910
- export interface NavTabsItemProperties {
911
- /**
912
- * Icon element to be rendered inside the button.
913
- * @TJS-type React.ReactNode
914
- */
915
- icon: ReactNode;
910
+ export interface NavTabsItemBaseProperties {
916
911
  /**
917
912
  * Controls whether the button is active or not.
918
913
  */
@@ -931,7 +926,30 @@ export interface NavTabsItemProperties {
931
926
  */
932
927
  ariaLabel: string;
933
928
  }
934
- export type NavTabsItemProps = NavTabsItemProperties & Omit<BoxProperties, "onClick"> & Omit<HTMLAttributes<HTMLElement>, "color">;
929
+ export interface NavTabsItemNeutralProperties extends NavTabsItemBaseProperties {
930
+ /**
931
+ * Visual variant of the button.
932
+ * "ai-generative" renders a fixed AI icon with a gradient border and does not accept a custom `icon`.
933
+ * @default "neutral"
934
+ */
935
+ appearance?: "neutral";
936
+ /**
937
+ * Icon element to be rendered inside the button.
938
+ * @TJS-type React.ReactNode
939
+ */
940
+ icon: ReactNode;
941
+ }
942
+ export interface NavTabsItemAIGenerativeProperties extends Omit<NavTabsItemBaseProperties, "active"> {
943
+ /**
944
+ * Visual variant of the button.
945
+ * "ai-generative" renders a fixed AI icon with a gradient border and does not accept a custom `icon`.
946
+ */
947
+ appearance: "ai-generative";
948
+ icon?: never;
949
+ active?: never;
950
+ }
951
+ export type NavTabsItemVariantProperties = NavTabsItemNeutralProperties | NavTabsItemAIGenerativeProperties;
952
+ export type NavTabsItemProps = NavTabsItemVariantProperties & Omit<BoxProperties, "onClick"> & Omit<HTMLAttributes<HTMLElement>, "color">;
935
953
  declare const NavTabsItem: React.FC<NavTabsItemProps>;
936
954
  export interface NavTabsComponents {
937
955
  Item: typeof NavTabsItem;