notionsoft-ui 1.0.12 → 1.0.14
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/cli/index.cjs +3 -3
- package/package.json +1 -1
- package/src/notion-ui/animated-item/animated-item.tsx +1 -1
- package/src/notion-ui/boolean-status-button/BooleanStatusButton.stories.tsx +1 -1
- package/src/notion-ui/boolean-status-button/BooleanStatusButton.tsx +1 -1
- package/src/notion-ui/button-spinner/ButtonSpinner.stories.tsx +1 -1
- package/src/notion-ui/button-spinner/button-spinner.tsx +1 -1
- package/src/notion-ui/circle-loader/CircleLoader.stories.tsx +1 -1
- package/src/notion-ui/circle-loader/circle-loader.tsx +1 -1
- package/src/notion-ui/input/input.tsx +3 -1
- package/src/notion-ui/sheet/AnimatedSheet.stories.tsx +1 -1
- package/src/notion-ui/sheet/AnimatedSheet.tsx +1 -1
- package/src/notion-ui/shining-text/shining-text.stories.tsx +1 -1
- package/src/notion-ui/shining-text/shining-text.tsx +5 -1
- package/src/notion-ui/animated-item/index.ts +0 -3
- package/src/notion-ui/boolean-status-button/index.ts +0 -3
- package/src/notion-ui/button/index.ts +0 -3
- package/src/notion-ui/circle-loader/index.ts +0 -3
- package/src/notion-ui/input/index.ts +0 -3
- package/src/notion-ui/sheet/index.ts +0 -3
- package/src/notion-ui/shining-text/index.ts +0 -3
package/cli/index.cjs
CHANGED
|
@@ -10,10 +10,10 @@ const { execSync } = require("child_process");
|
|
|
10
10
|
Helper: get template path
|
|
11
11
|
------------------------------- */
|
|
12
12
|
function getTemplateFile(component) {
|
|
13
|
-
// Library template: src/
|
|
13
|
+
// Library template: src/notion-ui/button/button.tsx
|
|
14
14
|
return path.join(
|
|
15
15
|
__dirname,
|
|
16
|
-
"../src/
|
|
16
|
+
"../src/notion-ui",
|
|
17
17
|
component,
|
|
18
18
|
component + ".tsx"
|
|
19
19
|
);
|
|
@@ -153,7 +153,7 @@ program
|
|
|
153
153
|
.command("list")
|
|
154
154
|
.description("List available components")
|
|
155
155
|
.action(() => {
|
|
156
|
-
const templatesDir = path.join(__dirname, "../src/
|
|
156
|
+
const templatesDir = path.join(__dirname, "../src/notion-ui");
|
|
157
157
|
const components = fs.readdirSync(templatesDir).filter((folder) => {
|
|
158
158
|
const file = path.join(templatesDir, folder, folder + ".tsx");
|
|
159
159
|
return fs.existsSync(file);
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export interface AnimatedItemProps {
|
|
|
32
32
|
children: React.ReactNode | ((inView: boolean) => React.ReactNode);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export function AnimatedItem(props: AnimatedItemProps) {
|
|
35
|
+
export default function AnimatedItem(props: AnimatedItemProps) {
|
|
36
36
|
const [inView, setInView] = useState(false);
|
|
37
37
|
const { springProps, intersectionArgs, children } = props;
|
|
38
38
|
const defaultOnStart = useCallback(
|
|
@@ -9,7 +9,7 @@ export interface BooleanStatusButtonProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export function BooleanStatusButton(props: BooleanStatusButtonProps) {
|
|
12
|
+
export default function BooleanStatusButton(props: BooleanStatusButtonProps) {
|
|
13
13
|
const { getColor, className } = props;
|
|
14
14
|
const data = getColor();
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@ export interface IButtonSpinnerProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export function ButtonSpinner(props: IButtonSpinnerProps) {
|
|
10
|
+
export default function ButtonSpinner(props: IButtonSpinnerProps) {
|
|
11
11
|
const { loading, children, className } = props;
|
|
12
12
|
return (
|
|
13
13
|
<>
|
|
@@ -8,7 +8,7 @@ export interface CircleLoaderProps {
|
|
|
8
8
|
parentClassName?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export function CircleLoader(props: CircleLoaderProps) {
|
|
11
|
+
export default function CircleLoader(props: CircleLoaderProps) {
|
|
12
12
|
const { label, className, labelclassname, parentClassName, ...restProps } =
|
|
13
13
|
props;
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
// import { cn } from "@/utils/cn";
|
|
3
3
|
import { cn } from "../../utils/cn";
|
|
4
|
-
import AnimatedItem from "@/components/notion-ui/animated-item";
|
|
4
|
+
import AnimatedItem from "@/components/notion-ui/animated-item/animated-item";
|
|
5
5
|
// import AnimatedItem from "../animated-item";
|
|
6
6
|
|
|
7
7
|
export type NastranInputSize = "sm" | "md" | "lg";
|
|
@@ -191,3 +191,5 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
|
+
|
|
195
|
+
export default Input;
|
|
@@ -7,7 +7,11 @@ interface ShiningTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
7
7
|
text: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export function ShiningText({
|
|
10
|
+
export default function ShiningText({
|
|
11
|
+
text,
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: ShiningTextProps) {
|
|
11
15
|
// Animate strictly left → right
|
|
12
16
|
const styles = useSpring({
|
|
13
17
|
from: { backgroundPosition: "-100% 0%" }, // start offscreen left
|