@producteca/producteca-ui-kit 0.0.7 → 0.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.
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
# ⚛️⚡ Vite + React + Typescript
|
|
1
|
+
# ⚛️⚡ Node + Vite + React + Typescript
|
|
2
2
|
|
|
3
3
|
## Features
|
|
4
4
|
|
|
5
|
+
- 🔹 [Node 22](https://nodejs.org/)
|
|
5
6
|
- ⚛️ [React 18](https://reactjs.org/)
|
|
6
7
|
- 📚 [Storybook 8](https://storybook.js.org/) - Components preview
|
|
7
8
|
- ⏩ [Vite](https://vitejs.dev/) - Run and build the project blazingly fast!
|
|
@@ -9,12 +10,10 @@
|
|
|
9
10
|
- 📐 [ESLint](https://eslint.org/) & [Prettier](https://prettier.io/) - Formatting and Linting
|
|
10
11
|
- 🌟 [Typescript](https://www.typescriptlang.org/)
|
|
11
12
|
- 🐶 [Husky](https://typicode.github.io/husky) & [Lint Staged](https://www.npmjs.com/package/lint-staged) - Pre-commit Hooks
|
|
12
|
-
- 👷 [Github Actions](https://github.com/features/actions)
|
|
13
|
+
- 👷 [Github Actions](https://github.com/features/actions)
|
|
13
14
|
|
|
14
15
|
## Main Scripts
|
|
15
16
|
|
|
16
|
-
Always prepending pnpm:
|
|
17
|
-
|
|
18
17
|
- `dev`: Bootstrap the Storybook preview with Hot Reload.
|
|
19
18
|
- `build`: Builds the static storybook project.
|
|
20
19
|
- `build:lib`: Builds the component library into the **dist** folder.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './button.scss';
|
|
2
|
-
interface
|
|
2
|
+
interface ButtonProps {
|
|
3
3
|
label: string;
|
|
4
4
|
variant?: 'primary' | 'secondary' | 'success' | 'error';
|
|
5
5
|
outline?: boolean;
|
|
@@ -7,5 +7,6 @@ interface Props {
|
|
|
7
7
|
type?: 'submit' | 'button' | 'reset';
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const Button: ({ type, variant, size, label, outline, ...props }:
|
|
10
|
+
export declare const Button: ({ type, variant, size, label, outline, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type { ButtonProps };
|
|
11
12
|
export default Button;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './emptyState.scss';
|
|
3
|
-
interface
|
|
3
|
+
interface EmptyStateProps {
|
|
4
4
|
onActionClick?: () => void;
|
|
5
5
|
actionTex?: string;
|
|
6
6
|
text?: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const EmptyState: ({ onActionClick, icon, actionTex, text, }:
|
|
9
|
+
export declare const EmptyState: ({ onActionClick, icon, actionTex, text, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type { EmptyStateProps };
|
|
10
11
|
export default EmptyState;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import '../icons.scss';
|
|
2
|
-
interface
|
|
2
|
+
interface SearchPublicationProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
color?: string | undefined;
|
|
5
5
|
}
|
|
6
|
-
export declare const SearchPublication: ({ size, color }:
|
|
6
|
+
export declare const SearchPublication: ({ size, color }: SearchPublicationProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { SearchPublicationProps };
|
|
7
8
|
export default SearchPublication;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './spinner.scss';
|
|
2
|
-
interface
|
|
2
|
+
interface SpinnerProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare const Spinner: ({ size }:
|
|
5
|
+
export declare const Spinner: ({ size }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type { SpinnerProps };
|
|
6
7
|
export default Spinner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@producteca/producteca-ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"test": "vitest",
|
|
26
26
|
"test:cov": "vitest run --coverage",
|
|
27
27
|
"prepare": "husky",
|
|
28
|
-
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
|
|
29
28
|
"chromatic": "npx chromatic --project-token=chpt_296f9471a29e98c"
|
|
30
29
|
},
|
|
31
30
|
"files": [
|
|
@@ -35,5 +34,51 @@
|
|
|
35
34
|
"*.{ts,tsx,js,jsx,json,css,md}": [
|
|
36
35
|
"prettier -w"
|
|
37
36
|
]
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@testing-library/react": "^16.0.0",
|
|
40
|
+
"jsdom": "^24.1.0",
|
|
41
|
+
"react": "^18.2.0",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
|
+
"storybook": "^8.0.9",
|
|
44
|
+
"typescript": "^5.2.2",
|
|
45
|
+
"vite": "^5.2.0",
|
|
46
|
+
"vitest": "^1.6.0",
|
|
47
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
48
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
49
|
+
"vite-plugin-dts": "^3.9.1",
|
|
50
|
+
"husky": "^9.0.11",
|
|
51
|
+
"@vitejs/plugin-react-refresh": "^1.3.6",
|
|
52
|
+
"@storybook/addon-actions": "^8.1.6",
|
|
53
|
+
"@storybook/manager-api": "^8.1.6",
|
|
54
|
+
"chromatic": "^11.3.0",
|
|
55
|
+
"i18next": "^23.11.5",
|
|
56
|
+
"react-i18next": "^14.1.2",
|
|
57
|
+
"sass": "^1.77.4",
|
|
58
|
+
"storybook-i18n": "^3.0.1",
|
|
59
|
+
"storybook-react-i18next": "^3.1.1",
|
|
60
|
+
"@chromatic-com/storybook": "^1.3.3",
|
|
61
|
+
"@storybook/addon-designs": "^8.0.0",
|
|
62
|
+
"@storybook/addon-essentials": "^8.0.9",
|
|
63
|
+
"@storybook/addon-interactions": "^8.0.9",
|
|
64
|
+
"@storybook/addon-links": "^8.0.9",
|
|
65
|
+
"@storybook/addon-onboarding": "^8.0.9",
|
|
66
|
+
"@storybook/addon-themes": "^8.0.9",
|
|
67
|
+
"@storybook/blocks": "^8.0.9",
|
|
68
|
+
"@storybook/react": "^8.0.9",
|
|
69
|
+
"@storybook/react-vite": "^8.0.9",
|
|
70
|
+
"@storybook/test": "^8.0.9",
|
|
71
|
+
"@types/react": "^18.2.66",
|
|
72
|
+
"@types/react-dom": "^18.2.22",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
74
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
75
|
+
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
76
|
+
"eslint": "^8.57.0",
|
|
77
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
78
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
79
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
80
|
+
"prettier": "3.0.1",
|
|
81
|
+
"json": "11.0.0",
|
|
82
|
+
"prop-types": "15.8.1"
|
|
38
83
|
}
|
|
39
84
|
}
|