@producteca/producteca-ui-kit 0.0.1
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 +25 -0
- package/dist/components/button/Button.d.ts +10 -0
- package/dist/components/button/Button.test.d.ts +1 -0
- package/dist/components/emptyState/emptyState.d.ts +9 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/searchPublication/searchPublication.d.ts +6 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/spinner/spinner.d.ts +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/locales/es.d.ts +5 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/translator.d.ts +2 -0
- package/dist/manager.d.ts +1 -0
- package/dist/producteca-ui-kit.es.js +1726 -0
- package/dist/producteca-ui-kit.umd.js +1 -0
- package/dist/storybook-utils.d.ts +4 -0
- package/dist/style.css +1 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ⚛️⚡ Vite + React + Typescript Component Library Template
|
|
2
|
+
|
|
3
|
+
## Features
|
|
4
|
+
|
|
5
|
+
- ⚛️ [React 18](https://reactjs.org/)
|
|
6
|
+
- 📚 [Storybook 8](https://storybook.js.org/) - Components preview
|
|
7
|
+
- ⏩ [Vite](https://vitejs.dev/) - Run and build the project blazingly fast!
|
|
8
|
+
- ⚡ [Vitest](https://vitest.dev/) - Components Unit Testing
|
|
9
|
+
- 📐 [ESLint](https://eslint.org/) & [Prettier](https://prettier.io/) - Formatting and Linting
|
|
10
|
+
- 🌟 [Typescript](https://www.typescriptlang.org/)
|
|
11
|
+
- 🐶 [Husky](https://typicode.github.io/husky) & [Lint Staged](https://www.npmjs.com/package/lint-staged) - Pre-commit Hooks
|
|
12
|
+
- ⏰ [Release Please](https://github.com/googleapis/release-please) — Generate the changelog with the release-please workflow
|
|
13
|
+
- 👷 [Github Actions](https://github.com/features/actions) — Releasing versions to NPM
|
|
14
|
+
|
|
15
|
+
## Main Scripts
|
|
16
|
+
|
|
17
|
+
Always prepending pnpm:
|
|
18
|
+
|
|
19
|
+
- `dev`: Bootstrap the Storybook preview with Hot Reload.
|
|
20
|
+
- `build`: Builds the static storybook project.
|
|
21
|
+
- `build:lib`: Builds the component library into the **dist** folder.
|
|
22
|
+
- `lint:fix`: Applies linting based on the rules defined in **.eslintrc.js**.
|
|
23
|
+
- `format:prettier`: Formats files using the prettier rules defined in **.prettierrc**.
|
|
24
|
+
- `test`: Runs testing using watch mode.
|
|
25
|
+
- `test:cov`: Runs testing displaying a coverage report.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
label: string;
|
|
3
|
+
variant?: 'primary' | 'secondary' | 'success' | 'error';
|
|
4
|
+
outline?: boolean;
|
|
5
|
+
size?: 'sm' | 'lg';
|
|
6
|
+
type?: 'submit' | 'button' | 'reset';
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Button: ({ type, variant, size, label, outline, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
onActionClick?: () => void;
|
|
4
|
+
actionTex?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const EmptyState: ({ onActionClick, icon, actionTex, text, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchPublication } from './searchPublication/searchPublication.tsx';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|