@nimbus-ds/components 5.9.0 → 5.10.0
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/CHANGELOG.md +6 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Tabs/index.d.ts +16 -2
- package/dist/Tabs/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3453,7 +3453,7 @@ export interface TabsComponents {
|
|
|
3453
3453
|
Button: typeof TabsButton;
|
|
3454
3454
|
Item: typeof TabsItem;
|
|
3455
3455
|
}
|
|
3456
|
-
export interface
|
|
3456
|
+
export interface BaseTabsProperties {
|
|
3457
3457
|
/**
|
|
3458
3458
|
* The content of the tabs.
|
|
3459
3459
|
* @TJS-type ReactElement<TabsButtonProps>[];
|
|
@@ -3469,7 +3469,21 @@ export interface TabsProperties {
|
|
|
3469
3469
|
*/
|
|
3470
3470
|
fullWidth?: boolean;
|
|
3471
3471
|
}
|
|
3472
|
-
export
|
|
3472
|
+
export interface ControlledTabsProperties extends BaseTabsProperties {
|
|
3473
|
+
/**
|
|
3474
|
+
* The currently selected tab index.
|
|
3475
|
+
*/
|
|
3476
|
+
selected: number;
|
|
3477
|
+
/**
|
|
3478
|
+
* Callback fired when the selected tab changes.
|
|
3479
|
+
*/
|
|
3480
|
+
onTabSelect: (index: number) => void;
|
|
3481
|
+
/**
|
|
3482
|
+
* preSelectedTab is not used in controlled mode
|
|
3483
|
+
*/
|
|
3484
|
+
preSelectedTab?: never;
|
|
3485
|
+
}
|
|
3486
|
+
export type TabsProps = (BaseTabsProperties | ControlledTabsProperties) & Omit<HTMLAttributes<HTMLDivElement>, "children" | "onSelect">;
|
|
3473
3487
|
export declare const Tabs: React.FC<TabsProps> & TabsComponents;
|
|
3474
3488
|
export interface TableBodyProperties {
|
|
3475
3489
|
/**
|