@rovula/ui 0.0.56 → 0.0.57
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/cjs/bundle.js +1 -1
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +1 -0
- package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +2 -0
- package/dist/cjs/types/components/Tree/type.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tree/Tree.js +1 -1
- package/dist/esm/bundle.js +2 -2
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Tabs/Tabs.d.ts +1 -0
- package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +2 -0
- package/dist/esm/types/components/Tree/type.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/Tabs/Tabs.tsx +4 -1
- package/src/components/Tree/Tree.tsx +1 -1
- package/src/components/Tree/type.ts +1 -1
|
@@ -3,6 +3,7 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: React.FC<{
|
|
5
5
|
tabs: {
|
|
6
|
+
id?: string | undefined;
|
|
6
7
|
label: string;
|
|
7
8
|
startTabContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
8
9
|
endTabContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
@@ -38,6 +39,7 @@ declare const meta: {
|
|
|
38
39
|
};
|
|
39
40
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
40
41
|
tabs: {
|
|
42
|
+
id?: string | undefined;
|
|
41
43
|
label: string;
|
|
42
44
|
startTabContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
43
45
|
endTabContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ type TextProps = {
|
|
|
106
106
|
declare const Text: React__default.ForwardRefExoticComponent<TextProps & React__default.RefAttributes<unknown>>;
|
|
107
107
|
|
|
108
108
|
type Tab = {
|
|
109
|
+
id?: string;
|
|
109
110
|
label: string;
|
|
110
111
|
startTabContent?: React__default.ReactElement;
|
|
111
112
|
endTabContent?: React__default.ReactElement;
|
|
@@ -706,7 +707,7 @@ interface TreeProps extends Pick<TreeItemProps, "renderIcon" | "renderRightSecti
|
|
|
706
707
|
hierarchicalCheck?: boolean;
|
|
707
708
|
checkable?: boolean;
|
|
708
709
|
maxLevel?: number;
|
|
709
|
-
mode
|
|
710
|
+
mode?: "checkbox" | "radio";
|
|
710
711
|
autoDisabled?: boolean;
|
|
711
712
|
}
|
|
712
713
|
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import Icon from "../Icon/Icon";
|
|
|
6
6
|
import { Loading } from "@/index";
|
|
7
7
|
|
|
8
8
|
type Tab = {
|
|
9
|
+
id?: string;
|
|
9
10
|
label: string;
|
|
10
11
|
startTabContent?: React.ReactElement;
|
|
11
12
|
endTabContent?: React.ReactElement;
|
|
@@ -232,7 +233,9 @@ const Tabs: React.FC<TabsProps> = ({
|
|
|
232
233
|
id={`tab-content-${activeTab}`}
|
|
233
234
|
aria-labelledby={`tab-${activeTab}`}
|
|
234
235
|
>
|
|
235
|
-
{tabs[activeTab]
|
|
236
|
+
<div key={tabs[activeTab].label + tabs[activeTab].id ?? Math.random()}>
|
|
237
|
+
{tabs[activeTab]?.content}
|
|
238
|
+
</div>
|
|
236
239
|
</div>
|
|
237
240
|
</div>
|
|
238
241
|
);
|