@youngduck/yd-ui 0.0.6 → 0.0.7

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.
@@ -1,12 +1,14 @@
1
1
  import React from "react";
2
- export interface ButtonProps {
3
- children: React.ReactNode;
4
- option: {
5
- onClick?: () => void;
6
- $isActive?: boolean;
7
- $mode: "delete" | "generate" | "save" | "elmark" | "excel" | "elfile";
8
- $width?: string;
9
- $height?: string;
10
- };
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "delete" | "generate" | "save" | "elmark" | "excel" | "elfile" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | null | undefined;
6
+ fullWidth?: boolean | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
+ asChild?: boolean;
10
+ fullWidth?: boolean;
11
+ isActive?: boolean;
11
12
  }
12
- export declare const Button: ({ children, option: { onClick, $isActive, $mode, $width, $height }, }: ButtonProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
14
+ export {};
@@ -6,3 +6,7 @@ type Story = StoryObj<typeof Button>;
6
6
  export declare const Default: Story;
7
7
  export declare const Delete: Story;
8
8
  export declare const Generate: Story;
9
+ export declare const Save: Story;
10
+ export declare const Elmark: Story;
11
+ export declare const Sizes: Story;
12
+ export declare const FullWidth: Story;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 작성자: KYD
3
+ * 기능:
4
+ * 프로세스 설명: 프로세스 복잡시 노션링크 첨부권장
5
+ */
6
+ import React from "react";
7
+ interface IInput {
8
+ }
9
+ declare const Input: React.FC<IInput>;
10
+ export default Input;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Input from "./Input";
3
+ declare const meta: Meta<typeof Input>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Input>;
6
+ export declare const Default: Story;
@@ -1 +1,3 @@
1
- export * from "./components/Button/Button";
1
+ export { Button } from "./components/Button/Button";
2
+ export { cn } from "./lib/utils";
3
+ import "./styles/globals.css";
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
package/package.json CHANGED
@@ -1,61 +1,63 @@
1
- {
2
- "name": "@youngduck/yd-ui",
3
- "version": "0.0.6",
4
- "type": "module",
5
- "main": "./dist/index.cjs.js",
6
- "module": "./dist/index.esm.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/index.esm.js",
11
- "require": "./dist/index.cjs.js",
12
- "types": "./dist/index.d.ts"
13
- }
14
- },
15
- "files": [
16
- "dist"
17
- ],
18
- "scripts": {
19
- "build": "rollup -c",
20
- "watch": "rollup -c -w",
21
- "storybook": "storybook dev -p 6006",
22
- "build-storybook": "storybook build"
23
- },
24
- "peerDependencies": {
25
- "react": "^18.2.0",
26
- "react-dom": "^18.2.0"
27
- },
28
- "devDependencies": {
29
- "@babel/core": "^7.26.0",
30
- "@babel/preset-env": "^7.26.0",
31
- "@babel/preset-react": "^7.26.3",
32
- "@chromatic-com/storybook": "^3.2.3",
33
- "@rollup/plugin-babel": "^6.0.4",
34
- "@rollup/plugin-commonjs": "^28.0.2",
35
- "@rollup/plugin-json": "^6.1.0",
36
- "@rollup/plugin-node-resolve": "^16.0.0",
37
- "@rollup/plugin-terser": "^0.4.4",
38
- "@rollup/plugin-typescript": "^12.1.2",
39
- "@storybook/addon-essentials": "^8.4.7",
40
- "@storybook/addon-interactions": "^8.4.7",
41
- "@storybook/addon-onboarding": "^8.4.7",
42
- "@storybook/blocks": "^8.4.7",
43
- "@storybook/react": "^8.4.7",
44
- "@storybook/react-vite": "^8.4.7",
45
- "@storybook/test": "^8.4.7",
46
- "@types/react": "^19.0.2",
47
- "@types/react-dom": "^19.0.2",
48
- "react": "^19.0.0",
49
- "react-dom": "^19.0.0",
50
- "rollup": "^4.29.1",
51
- "rollup-plugin-dts": "^6.1.1",
52
- "rollup-plugin-peer-deps-external": "^2.2.4",
53
- "rollup-plugin-postcss": "^4.0.2",
54
- "storybook": "^8.4.7",
55
- "tslib": "^2.8.1",
56
- "typescript": "^5.7.2"
57
- },
58
- "dependencies": {
59
- "styled-components": "^6.1.14"
60
- }
61
- }
1
+ {
2
+ "name": "@youngduck/yd-ui",
3
+ "version": "0.0.7",
4
+ "type": "module",
5
+ "main": "./dist/index.cjs.js",
6
+ "module": "./dist/index.esm.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.esm.js",
11
+ "require": "./dist/index.cjs.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "rollup -c",
20
+ "watch": "rollup -c -w",
21
+ "storybook": "storybook dev -p 6006",
22
+ "build-storybook": "storybook build"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^18.2.0",
26
+ "react-dom": "^18.2.0"
27
+ },
28
+ "devDependencies": {
29
+ "@babel/core": "^7.26.0",
30
+ "@babel/preset-env": "^7.26.0",
31
+ "@babel/preset-react": "^7.26.3",
32
+ "@chromatic-com/storybook": "^3.2.3",
33
+ "@rollup/plugin-babel": "^6.0.4",
34
+ "@rollup/plugin-commonjs": "^28.0.2",
35
+ "@rollup/plugin-json": "^6.1.0",
36
+ "@rollup/plugin-node-resolve": "^16.0.0",
37
+ "@rollup/plugin-terser": "^0.4.4",
38
+ "@rollup/plugin-typescript": "^12.1.2",
39
+ "@storybook/addon-essentials": "^8.4.7",
40
+ "@storybook/addon-interactions": "^8.4.7",
41
+ "@storybook/addon-onboarding": "^8.4.7",
42
+ "@storybook/blocks": "^8.4.7",
43
+ "@storybook/react": "^8.4.7",
44
+ "@storybook/react-vite": "^8.4.7",
45
+ "@storybook/test": "^8.4.7",
46
+ "@types/react": "^19.0.2",
47
+ "@types/react-dom": "^19.0.2",
48
+ "autoprefixer": "^10.4.19",
49
+ "class-variance-authority": "^0.7.0",
50
+ "clsx": "^2.1.0",
51
+ "react": "^19.0.0",
52
+ "react-dom": "^19.0.0",
53
+ "rollup": "^4.29.1",
54
+ "rollup-plugin-dts": "^6.1.1",
55
+ "rollup-plugin-peer-deps-external": "^2.2.4",
56
+ "rollup-plugin-postcss": "^4.0.2",
57
+ "storybook": "^8.4.7",
58
+ "tailwind-merge": "^2.2.1",
59
+ "tailwindcss": "^3.4.1",
60
+ "tslib": "^2.8.1",
61
+ "typescript": "^5.7.2"
62
+ }
63
+ }
@@ -1,5 +0,0 @@
1
- export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
- $mode: string;
3
- $width?: string;
4
- $height?: string;
5
- }>> & string;