@producteca/producteca-ui-kit 0.0.3 → 0.0.5
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 +0 -1
- package/dist/components/button/{Button.d.ts → button.d.ts} +2 -1
- package/dist/components/emptyState/emptyState.d.ts +3 -2
- package/dist/components/icons/index.d.ts +1 -1
- package/dist/components/icons/searchPublication/searchPublication.d.ts +2 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/components/spinner/spinner.d.ts +3 -2
- package/dist/index.d.ts +0 -1
- package/dist/locales/index.d.ts +1 -1
- package/dist/locales/translator.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +2 -6
- package/dist/components/button/Button.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
- 📐 [ESLint](https://eslint.org/) & [Prettier](https://prettier.io/) - Formatting and Linting
|
|
10
10
|
- 🌟 [Typescript](https://www.typescriptlang.org/)
|
|
11
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
12
|
- 👷 [Github Actions](https://github.com/features/actions) — Releasing versions to NPM
|
|
14
13
|
|
|
15
14
|
## Main Scripts
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
interface Props {
|
|
2
3
|
label: string;
|
|
3
4
|
variant?: 'primary' | 'secondary' | 'success' | 'error';
|
|
@@ -7,4 +8,4 @@ interface Props {
|
|
|
7
8
|
onClick?: () => void;
|
|
8
9
|
}
|
|
9
10
|
export declare const Button: ({ type, variant, size, label, outline, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export
|
|
11
|
+
export default Button;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
2
3
|
interface Props {
|
|
3
4
|
onActionClick?: () => void;
|
|
4
5
|
actionTex?: string;
|
|
@@ -6,4 +7,4 @@ interface Props {
|
|
|
6
7
|
icon?: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
export declare const EmptyState: ({ onActionClick, icon, actionTex, text, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
10
|
+
export default EmptyState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SearchPublication } from './searchPublication/searchPublication
|
|
1
|
+
export { SearchPublication } from './searchPublication/searchPublication';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './button/
|
|
2
|
-
export * from './emptyState/emptyState
|
|
1
|
+
export * from './button/button';
|
|
2
|
+
export * from './emptyState/emptyState';
|
|
3
3
|
export * from './icons';
|
|
4
|
-
export * from './spinner/spinner
|
|
4
|
+
export * from './spinner/spinner';
|
package/dist/index.d.ts
CHANGED
package/dist/locales/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('i18next').TFunction<["translation", ...string[]], undefined>;
|
|
2
2
|
export default _default;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.btn{border-radius:4px;white-space:nowrap;justify-content:center;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:8px;cursor:pointer}.btn:disabled,.btn.disabled{opacity:.5;pointer-events:none;cursor:default}.btn.lg{height:45px;max-width:134px;font-size:14px}.btn.sm{height:41px;max-width:114px;font-size:12px}.primary{color:#fff;background-color:#06f;border:1px solid #0066FF}.primary:hover{background-color:#0058db}.primary:focus{border:2px solid #0045AD}.primary.outline{background-color:#fff;color:#06f;border:1px solid #0066FF}.primary.outline:hover{background-color:#f5f5f5}.success{color:#fff;background-color:#1fb62a;border:1px solid #1FB62A}.success:hover{background-color:#21962a}.success:focus{border:2px solid #136A19}.success.outline{background-color:#fff;color:#1fb62a;border:1px solid #1FB62A}.success.outline:hover{background-color:#f5f5f5}.secondary{color:#fff;background-color:#f90;border:1px solid #FF9900}.secondary:hover{background-color:#dc8400}.secondary:focus{border:2px solid #A86501}.secondary.outline{background-color:#fff;color:#f90;border:1px solid #FF9900}.secondary.outline:hover{background-color:#f5f5f5}.error{color:#fff;background-color:#d90c0c;border:1px solid #D90C0C}.error:hover{background-color:#9a1414}.error:focus{border:2px solid #9A1414}.error.outline{background-color:#fff;color:#d90c0c;border:1px solid #D90C0C}.error.outline:hover{background-color:#f5f5f5}.empty-state-container{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:45vh;gap:16px}.empty-state-container .link-container{display:flex;flex-direction:column;gap:8px}.empty-state-container .link-container span{color:#252525;font-size:14px;font-weight:400;line-height:21px}.empty-state-container .link-container a{font-size:12px;cursor:pointer;line-height:18px}.empty-state-container svg{cursor:default;position:relative;left:12px}.loader{border-radius:50%;border:2px solid #0066FF;border-left:2px solid #EDEDED;width:17px;height:17px;transform-origin:center center;animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
1
|
+
.btn{border-radius:4px;white-space:nowrap;justify-content:center;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:8px;cursor:pointer}.btn:disabled,.btn.disabled{opacity:.5;pointer-events:none;cursor:default}.btn.lg{height:45px;max-width:134px;font-size:14px}.btn.sm{height:41px;max-width:114px;font-size:12px}.primary{color:#fff;background-color:#06f;border:1px solid #0066FF}.primary:hover{background-color:#0058db}.primary:focus{border:2px solid #0045AD}.primary.outline{background-color:#fff;color:#06f;border:1px solid #0066FF}.primary.outline:hover{background-color:#f5f5f5}.success{color:#fff;background-color:#1fb62a;border:1px solid #1FB62A}.success:hover{background-color:#21962a}.success:focus{border:2px solid #136A19}.success.outline{background-color:#fff;color:#1fb62a;border:1px solid #1FB62A}.success.outline:hover{background-color:#f5f5f5}.secondary{color:#fff;background-color:#f90;border:1px solid #FF9900}.secondary:hover{background-color:#dc8400}.secondary:focus{border:2px solid #A86501}.secondary.outline{background-color:#fff;color:#f90;border:1px solid #FF9900}.secondary.outline:hover{background-color:#f5f5f5}.error{color:#fff;background-color:#d90c0c;border:1px solid #D90C0C}.error:hover{background-color:#9a1414}.error:focus{border:2px solid #9A1414}.error.outline{background-color:#fff;color:#d90c0c;border:1px solid #D90C0C}.error.outline:hover{background-color:#f5f5f5}.empty-state-container{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:45vh;gap:16px}.empty-state-container .link-container{display:flex;flex-direction:column;gap:8px}.empty-state-container .link-container span{color:#252525;font-size:14px;font-weight:400;line-height:21px}.empty-state-container .link-container a{font-size:12px;cursor:pointer;line-height:18px}.empty-state-container svg{cursor:default;position:relative;left:12px}.loader{border-radius:50%;border:2px solid #0066FF;border-left:2px solid #EDEDED;width:17px;height:17px;transform-origin:center center;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
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.5",
|
|
4
4
|
"main": "./dist/producteca-ui-kit.umd.js",
|
|
5
5
|
"module": "./dist/producteca-ui-kit.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,14 +33,10 @@
|
|
|
33
33
|
"prettier": "prettier --write \"src/**/*.{ts,tsx,js,mdx}\"",
|
|
34
34
|
"test": "vitest",
|
|
35
35
|
"test:cov": "vitest run --coverage",
|
|
36
|
-
"prepare": "husky
|
|
36
|
+
"prepare": "husky",
|
|
37
37
|
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
|
|
38
38
|
"chromatic": "npx chromatic --project-token=chpt_296f9471a29e98c"
|
|
39
39
|
},
|
|
40
|
-
"peerDependencies": {
|
|
41
|
-
"react": "18.2.0",
|
|
42
|
-
"react-dom": "18.2.0"
|
|
43
|
-
},
|
|
44
40
|
"files": [
|
|
45
41
|
"dist"
|
|
46
42
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|