@kingsimba/nc-ui 0.1.13 → 0.1.15

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
@@ -925,6 +925,13 @@ export declare interface SliderProps {
925
925
  width?: number | string;
926
926
  }
927
927
 
928
+ export declare interface TabItem {
929
+ /** The stable key used for matching active state */
930
+ id: string;
931
+ /** The localized or formatted display label */
932
+ label: default_2.ReactNode;
933
+ }
934
+
928
935
  /**
929
936
  * Individual tab panel - use as children of TabPanels
930
937
  */
@@ -981,9 +988,9 @@ export declare interface TabPanelsProps {
981
988
  export declare function Tabs({ tabs, active, onChange, onClose, permanentTabs, className, toolbar, multiline, orientation, style }: TabsProps): JSX_2.Element;
982
989
 
983
990
  export declare interface TabsProps {
984
- /** Array of tab labels */
985
- tabs: string[];
986
- /** Currently active tab label */
991
+ /** Array of tab labels as strings, or tab objects with id and localized label */
992
+ tabs: (string | TabItem)[];
993
+ /** Currently active tab label or TabItem.id */
987
994
  active: string;
988
995
  /** Callback when a tab is selected */
989
996
  onChange: (tab: string) => void;