notionsoft-ui 1.0.13 → 1.0.15
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/animated-item/animated-item.tsx +1 -1
- package/src/notion-ui/animated-item/index.ts +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/boolean-status-button/index.ts +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/button-spinner/index.ts +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/circle-loader/index.ts +1 -1
- package/src/notion-ui/input/index.ts +1 -1
- package/src/notion-ui/input/input.tsx +2 -0
- package/src/notion-ui/sheet/AnimatedSheet.stories.tsx +1 -1
- package/src/notion-ui/sheet/AnimatedSheet.tsx +1 -1
- package/src/notion-ui/sheet/index.ts +1 -1
- package/src/notion-ui/shining-text/index.ts +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/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
|
|
|
@@ -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
|