@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.
- package/README.md +18 -0
- package/dist/index.cjs.js +1 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +16 -12
- package/dist/index.esm.js +1 -19
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Button/Button.d.ts +12 -10
- package/dist/types/components/Button/Button.stories.d.ts +4 -0
- package/dist/types/components/Input/Input.d.ts +10 -0
- package/dist/types/components/Input/Input.stories.d.ts +6 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/lib/utils.d.ts +2 -0
- package/package.json +63 -61
- package/dist/types/components/Button/ButtonStyle.d.ts +0 -5
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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:
|
|
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;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,61 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@youngduck/yd-ui",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"rollup
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
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;
|