notionsoft-ui 1.0.30 → 1.0.32
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/package.json +1 -1
- package/src/notion-ui/multi-tab-input/multi-tab-input.tsx +1 -7
- package/src/notion-ui/multi-tab-input/multi.tab.input.stories.tsx +2 -2
- package/src/notion-ui/multi-tab-textarea/multi-tab-textarea.tsx +1 -8
- package/src/notion-ui/multi-tab-textarea/multi.tab.textarea.stories.tsx +2 -2
- package/src/notion-ui/tab/tab.tsx +6 -1
package/package.json
CHANGED
|
@@ -3,13 +3,7 @@ import { cn } from "../../utils/cn";
|
|
|
3
3
|
import AnimatedItem from "../animated-item";
|
|
4
4
|
import type { TabState } from "../tab/tab";
|
|
5
5
|
import Input, { NastranInputSize } from "../input/input";
|
|
6
|
-
import Tab from "../tab/tab";
|
|
7
|
-
|
|
8
|
-
// OptionalTabs wrapper
|
|
9
|
-
export function OptionalTabs({ children }: { children: React.ReactNode }) {
|
|
10
|
-
return <>{children}</>;
|
|
11
|
-
}
|
|
12
|
-
OptionalTabs.displayName = "OptionalTabs";
|
|
6
|
+
import { OptionalTabs, Tab } from "../tab/tab";
|
|
13
7
|
|
|
14
8
|
export interface MultiTabInputProps
|
|
15
9
|
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { OptionalTabs, Tab } from "../tab/tab";
|
|
5
|
+
import MultiTabInput from "./multi-tab-input";
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof MultiTabInput> = {
|
|
8
8
|
title: "Form/MultiTabInput",
|
|
@@ -2,14 +2,7 @@ import React, { type ReactElement, useState, useMemo } from "react";
|
|
|
2
2
|
import { cn } from "../../utils/cn";
|
|
3
3
|
import Textarea from "../textarea";
|
|
4
4
|
import AnimatedItem from "../animated-item";
|
|
5
|
-
import type { TabState } from "../tab/tab";
|
|
6
|
-
import Tab from "../tab/tab";
|
|
7
|
-
|
|
8
|
-
// OptionalTabs wrapper
|
|
9
|
-
export function OptionalTabs({ children }: { children: React.ReactNode }) {
|
|
10
|
-
return <>{children}</>;
|
|
11
|
-
}
|
|
12
|
-
OptionalTabs.displayName = "OptionalTabs";
|
|
5
|
+
import type { OptionalTabs, Tab, TabState } from "../tab/tab";
|
|
13
6
|
|
|
14
7
|
export interface MultiTabTextareaProps
|
|
15
8
|
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { OptionalTabs, Tab } from "../tab/tab";
|
|
5
|
+
import MultiTabTextarea from "../multi-tab-textarea";
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof MultiTabTextarea> = {
|
|
8
8
|
title: "Form/MultiTabTextarea",
|
|
@@ -12,7 +12,7 @@ interface TabProps {
|
|
|
12
12
|
state?: TabState; // <-- now strongly typed
|
|
13
13
|
optional?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export function Tab({
|
|
16
16
|
children,
|
|
17
17
|
className,
|
|
18
18
|
onClick,
|
|
@@ -44,3 +44,8 @@ export default function Tab({
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
Tab.displayName = "Tab";
|
|
47
|
+
|
|
48
|
+
export function OptionalTabs({ children }: { children: React.ReactNode }) {
|
|
49
|
+
return <>{children}</>;
|
|
50
|
+
}
|
|
51
|
+
OptionalTabs.displayName = "OptionalTabs";
|