@wandelbots/wandelbots-js-react-components 2.53.0 → 2.54.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/dist/components/TabBar.d.ts +11 -0
- package/dist/components/TabBar.d.ts.map +1 -1
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1374 -1280
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/TabBar.tsx +149 -35
|
@@ -8,6 +8,17 @@ export interface TabItem {
|
|
|
8
8
|
content: React.ReactNode;
|
|
9
9
|
/** Optional icon component to display with the tab */
|
|
10
10
|
icon?: React.ReactElement;
|
|
11
|
+
/** Optional badge configuration */
|
|
12
|
+
badge?: {
|
|
13
|
+
/** Badge content (number or string) */
|
|
14
|
+
content: React.ReactNode;
|
|
15
|
+
/** Badge color variant */
|
|
16
|
+
color?: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
17
|
+
/** Maximum number to display (e.g., 99+) */
|
|
18
|
+
max?: number;
|
|
19
|
+
/** Show badge even when content is zero */
|
|
20
|
+
showZero?: boolean;
|
|
21
|
+
};
|
|
11
22
|
}
|
|
12
23
|
export interface TabBarProps {
|
|
13
24
|
/** Array of tab items to display */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../src/components/TabBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAM5C,MAAM,WAAW,OAAO;IACtB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,sDAAsD;IACtD,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"TabBar.d.ts","sourceRoot":"","s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