sti-antd-package 0.0.22 → 0.0.23

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.
@@ -11,4 +11,6 @@ export interface TabsComponentProps {
11
11
  icon?: React.ReactNode;
12
12
  content: React.ReactNode;
13
13
  }[];
14
+ onChange?: (activeKey: string) => void;
15
+ defaultActiveKey?: string;
14
16
  }
package/dist/index.d.ts CHANGED
@@ -1020,6 +1020,8 @@ interface TabsComponentProps {
1020
1020
  icon?: React.ReactNode;
1021
1021
  content: React.ReactNode;
1022
1022
  }[];
1023
+ onChange?: (activeKey: string) => void;
1024
+ defaultActiveKey?: string;
1023
1025
  }
1024
1026
 
1025
1027
  declare const TabsComponent: React$1.FC<TabsComponentProps>;
package/dist/index.esm.js CHANGED
@@ -8648,15 +8648,15 @@ const TableCellEditableComponent = (_a) => {
8648
8648
  return jsxRuntimeExports.jsx("td", Object.assign({}, props, { children: childNode }));
8649
8649
  };
8650
8650
 
8651
- const TabsComponent = ({ centered, type, tabPosition, tabBarExtraContent, tabBarGutter, tabs, }) => {
8651
+ const TabsComponent = ({ centered, type, tabPosition, tabBarExtraContent, tabBarGutter, tabs, onChange, defaultActiveKey, }) => {
8652
8652
  var _a;
8653
8653
  return (jsxRuntimeExports.jsx(Tabs, { centered: centered, type: type, tabPosition: tabPosition, tabBarExtraContent: tabBarExtraContent, tabBarGutter: tabBarGutter, items: (_a = tabs === null || tabs === void 0 ? void 0 : tabs.map) === null || _a === void 0 ? void 0 : _a.call(tabs, tab => ({
8654
8654
  key: tab.key,
8655
8655
  label: tab.name,
8656
8656
  children: tab.content,
8657
8657
  icon: tab.icon,
8658
- })), indicator: {
8659
- size: (origin) => origin - 20,
8658
+ })), onChange: onChange, defaultActiveKey: defaultActiveKey, indicator: {
8659
+ size: origin => origin - 20,
8660
8660
  // align: ,
8661
8661
  }, animated: {
8662
8662
  inkBar: true,
package/dist/index.js CHANGED
@@ -8667,15 +8667,15 @@ const TableCellEditableComponent = (_a) => {
8667
8667
  return jsxRuntimeExports.jsx("td", Object.assign({}, props, { children: childNode }));
8668
8668
  };
8669
8669
 
8670
- const TabsComponent = ({ centered, type, tabPosition, tabBarExtraContent, tabBarGutter, tabs, }) => {
8670
+ const TabsComponent = ({ centered, type, tabPosition, tabBarExtraContent, tabBarGutter, tabs, onChange, defaultActiveKey, }) => {
8671
8671
  var _a;
8672
8672
  return (jsxRuntimeExports.jsx(antd.Tabs, { centered: centered, type: type, tabPosition: tabPosition, tabBarExtraContent: tabBarExtraContent, tabBarGutter: tabBarGutter, items: (_a = tabs === null || tabs === void 0 ? void 0 : tabs.map) === null || _a === void 0 ? void 0 : _a.call(tabs, tab => ({
8673
8673
  key: tab.key,
8674
8674
  label: tab.name,
8675
8675
  children: tab.content,
8676
8676
  icon: tab.icon,
8677
- })), indicator: {
8678
- size: (origin) => origin - 20,
8677
+ })), onChange: onChange, defaultActiveKey: defaultActiveKey, indicator: {
8678
+ size: origin => origin - 20,
8679
8679
  // align: ,
8680
8680
  }, animated: {
8681
8681
  inkBar: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sti-antd-package",
3
3
  "description": "STI ANT Design",
4
- "version": "0.0.22",
4
+ "version": "0.0.23",
5
5
  "type": "module",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",