@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 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';
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ size?: number;
3
+ color?: string | undefined;
4
+ }
5
+ export declare const SearchPublication: ({ size, color }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './button/Button.tsx';
2
+ export * from './emptyState/emptyState.tsx';
3
+ export * from './icons';
4
+ export * from './spinner/spinner.tsx';
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ size: number;
3
+ }
4
+ export declare const Spinner: ({ size }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './components/icons';
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ noResultsFound: string;
3
+ reloadPage: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("i18next").TFunction<["translation", ...string[]], undefined>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import i18next from 'i18next';
2
+ export default i18next;
@@ -0,0 +1 @@
1
+ export {};