notionsoft-ui 1.0.7 → 1.0.9

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.
Files changed (25) hide show
  1. package/cli/index.cjs +3 -3
  2. package/package.json +1 -1
  3. package/src/{notion-ui → components/notion-ui}/boolean-status-button/BooleanStatusButton.tsx +1 -1
  4. package/src/{notion-ui → components/notion-ui}/button/button.tsx +1 -1
  5. package/src/{notion-ui → components/notion-ui}/button-spinner/button-spinner.tsx +1 -1
  6. package/src/{notion-ui → components/notion-ui}/circle-loader/CircleLoader.stories.tsx +1 -1
  7. package/src/{notion-ui → components/notion-ui}/circle-loader/circle-loader.tsx +1 -1
  8. package/src/{notion-ui → components/notion-ui}/input/input.tsx +2 -2
  9. package/src/{notion-ui → components/notion-ui}/sheet/AnimatedSheet.tsx +1 -1
  10. package/src/{notion-ui → components/notion-ui}/shining-text/shining-text.stories.tsx +1 -1
  11. package/src/{notion-ui → components/notion-ui}/shining-text/shining-text.tsx +1 -1
  12. /package/src/{notion-ui → components/notion-ui}/animated-item/animated-item.tsx +0 -0
  13. /package/src/{notion-ui → components/notion-ui}/animated-item/index.ts +0 -0
  14. /package/src/{notion-ui → components/notion-ui}/boolean-status-button/BooleanStatusButton.stories.tsx +0 -0
  15. /package/src/{notion-ui → components/notion-ui}/boolean-status-button/index.ts +0 -0
  16. /package/src/{notion-ui → components/notion-ui}/button/Button.stories.tsx +0 -0
  17. /package/src/{notion-ui → components/notion-ui}/button/index.ts +0 -0
  18. /package/src/{notion-ui → components/notion-ui}/button-spinner/ButtonSpinner.stories.tsx +0 -0
  19. /package/src/{notion-ui → components/notion-ui}/button-spinner/index.ts +0 -0
  20. /package/src/{notion-ui → components/notion-ui}/circle-loader/index.ts +0 -0
  21. /package/src/{notion-ui → components/notion-ui}/input/Input.stories.tsx +0 -0
  22. /package/src/{notion-ui → components/notion-ui}/input/index.ts +0 -0
  23. /package/src/{notion-ui → components/notion-ui}/sheet/AnimatedSheet.stories.tsx +0 -0
  24. /package/src/{notion-ui → components/notion-ui}/sheet/index.ts +0 -0
  25. /package/src/{notion-ui → components/notion-ui}/shining-text/index.ts +0 -0
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/notion-ui/button/button.tsx
13
+ // Library template: src/components/notion-ui/button/button.tsx
14
14
  return path.join(
15
15
  __dirname,
16
- "../src/notion-ui",
16
+ "../src/components/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/notion-ui");
156
+ const templatesDir = path.join(__dirname, "../src/components/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notionsoft-ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A React UI component installer (shadcn-style). Installs components directly into your project.",
5
5
  "bin": {
6
6
  "notionsoft-ui": "./cli/index.cjs"
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../../utils/cn";
2
2
  // import { cn } from "@/utils/cn";
3
3
 
4
4
  export interface BooleanStatusButtonProps {
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { cn } from "../../utils/cn";
2
+ import { cn } from "../../../utils/cn";
3
3
  // import { cn } from "@/utils/cn";
4
4
 
5
5
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../../utils/cn";
2
2
  // import { cn } from "@/utils/cn";
3
3
 
4
4
  export interface IButtonSpinnerProps {
@@ -1,4 +1,4 @@
1
- import { CircleLoader } from "../circle-loader/circle-loader"; // Adjust the import path as needed
1
+ import { CircleLoader } from "./circle-loader"; // Adjust the import path as needed
2
2
  import { CircleLoaderProps } from "./circle-loader";
3
3
 
4
4
  // Meta information for Storybook
@@ -1,5 +1,5 @@
1
1
  // import { cn } from "@/utils/cn";
2
- import { cn } from "../../utils/cn";
2
+ import { cn } from "../../../utils/cn";
3
3
 
4
4
  export interface CircleLoaderProps {
5
5
  className?: string;
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from "react";
2
2
  // import { cn } from "@/utils/cn";
3
- import { cn } from "../../utils/cn";
4
- import AnimatedItem from "@/notion-ui/animated-item";
3
+ import { cn } from "../../../utils/cn";
4
+ import AnimatedItem from "@/components/notion-ui/animated-item";
5
5
  // import AnimatedItem from "../animated-item";
6
6
 
7
7
  export type NastranInputSize = "sm" | "md" | "lg";
@@ -1,4 +1,4 @@
1
- import { cn } from "../../utils/cn";
1
+ import { cn } from "../../../utils/cn";
2
2
  // import { cn } from "@/utils/cn";
3
3
 
4
4
  import { useTransition, animated } from "@react-spring/web";
@@ -1,4 +1,4 @@
1
- import { ShiningText } from "../shining-text/shining-text";
1
+ import { ShiningText } from "./shining-text";
2
2
 
3
3
  import type { Meta, StoryObj } from "@storybook/react";
4
4
 
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { useSpring, animated } from "@react-spring/web";
3
- import { cn } from "../../utils/cn";
3
+ import { cn } from "../../../utils/cn";
4
4
  // import { cn } from "@/utils/cn";
5
5
 
6
6
  interface ShiningTextProps extends React.HTMLAttributes<HTMLSpanElement> {