norma-library 0.4.0 → 0.4.2
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/dist/index.js +8 -0
- package/package.json +55 -86
- package/dist/components/Button/Button.d.ts +0 -4
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/types.d.ts +0 -18
- package/dist/components/Card/Card.d.ts +0 -4
- package/dist/components/Card/CardHeader.d.ts +0 -4
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Card/styles.d.ts +0 -818
- package/dist/components/Card/types.d.ts +0 -12
- package/dist/components/Checkbox/Checkbox.d.ts +0 -4
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Checkbox/types.d.ts +0 -23
- package/dist/components/Icon/DefaultIcon.d.ts +0 -5
- package/dist/components/Icon/NormaIcon.d.ts +0 -13
- package/dist/components/Icon/default.d.ts +0 -209
- package/dist/components/Icon/index.d.ts +0 -233
- package/dist/components/Icon/norma.d.ts +0 -29
- package/dist/components/Icon/styles.d.ts +0 -485
- package/dist/components/Icon/svg.d.ts +0 -6
- package/dist/components/Icon/types.d.ts +0 -12
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/Modal/ModalFooter.d.ts +0 -4
- package/dist/components/Modal/ModalHeader.d.ts +0 -4
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/Modal/styles.d.ts +0 -274
- package/dist/components/Modal/types.d.ts +0 -24
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -8
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressBar/styles.d.ts +0 -276
- package/dist/components/ProgressBar/types.d.ts +0 -22
- package/dist/components/Radio/Radio.d.ts +0 -4
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/types.d.ts +0 -16
- package/dist/components/Tag/Tag.d.ts +0 -4
- package/dist/components/Tag/index.d.ts +0 -2
- package/dist/components/Tag/types.d.ts +0 -25
- package/dist/components/TextField/TextField.d.ts +0 -4
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/components/TextField/types.d.ts +0 -42
- package/dist/components/index.d.ts +0 -19
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +0 -15023
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -419
- package/dist/index.umd.js.map +0 -1
- package/dist/vite.svg +0 -1
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"version": "0.4.0",
|
|
5
|
-
"type": "module",
|
|
2
|
+
"version": "0.4.2",
|
|
3
|
+
"license": "MIT",
|
|
6
4
|
"description": "Norma Library. A React UI kit.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"private": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=10"
|
|
14
|
+
},
|
|
7
15
|
"scripts": {
|
|
8
|
-
"
|
|
9
|
-
"build": "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
16
|
+
"start": "tsdx watch",
|
|
17
|
+
"build": "tsdx build",
|
|
18
|
+
"test": "tsdx test --passWithNoTests",
|
|
19
|
+
"lint": "tsdx lint",
|
|
20
|
+
"size": "size-limit",
|
|
21
|
+
"analyze": "size-limit --why",
|
|
14
22
|
"format": "prettier --write src//**/**/*.{ts,tsx,css} --config ./.prettierrc",
|
|
15
23
|
"prepare": "husky install",
|
|
16
|
-
"deploy": "npm run build && npm publish"
|
|
17
|
-
|
|
24
|
+
"deploy": "npm run build && npm publish"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": ">=16"
|
|
18
28
|
},
|
|
19
29
|
"husky": {
|
|
20
30
|
"hooks": {
|
|
@@ -23,99 +33,58 @@
|
|
|
23
33
|
},
|
|
24
34
|
"lint-staged": {
|
|
25
35
|
"src/**/**/*.{js,jsx,ts,tsx}": [
|
|
26
|
-
"yarn
|
|
36
|
+
"yarn lint",
|
|
27
37
|
"yarn format"
|
|
28
38
|
]
|
|
29
39
|
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"types": "./dist/index.d.ts",
|
|
36
|
-
"exports": {
|
|
37
|
-
".": {
|
|
38
|
-
"import": "./dist/index.js",
|
|
39
|
-
"require": "./dist/index.umd.cjs"
|
|
40
|
-
}
|
|
40
|
+
"prettier": {
|
|
41
|
+
"printWidth": 80,
|
|
42
|
+
"semi": true,
|
|
43
|
+
"singleQuote": true,
|
|
44
|
+
"trailingComma": "es5"
|
|
41
45
|
},
|
|
46
|
+
"name": "norma-library",
|
|
47
|
+
"author": "José Roberto Miguel Filho",
|
|
48
|
+
"module": "dist/norma.esm.js",
|
|
49
|
+
"size-limit": [
|
|
50
|
+
{
|
|
51
|
+
"path": "dist/norma.cjs.production.min.js",
|
|
52
|
+
"limit": "100 KB"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "dist/norma.esm.js",
|
|
56
|
+
"limit": "100 KB"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
42
59
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
|
46
|
-
"@types/debug": "^4.1.8",
|
|
47
|
-
"@types/minimist": "^1.2.2",
|
|
48
|
-
"@types/node": "^18.7.6",
|
|
49
|
-
"@types/prompts": "^2.4.4",
|
|
50
|
-
"@types/react": "^18.2.20",
|
|
60
|
+
"@size-limit/preset-small-lib": "^8.2.6",
|
|
61
|
+
"@types/react": "^18.2.21",
|
|
51
62
|
"@types/react-dom": "^18.2.7",
|
|
52
|
-
"@types/semver": "^7.5.0",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^5.34.0",
|
|
54
|
-
"@typescript-eslint/parser": "^5.34.0",
|
|
55
|
-
"@vitejs/plugin-react": "^2.1.0",
|
|
56
|
-
"debug": "^4.3.4",
|
|
57
|
-
"eslint": "^8.2.0",
|
|
58
|
-
"eslint-config-prettier": "^8.5.0",
|
|
59
|
-
"eslint-plugin-import": "^2.25.3",
|
|
60
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
61
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
62
|
-
"eslint-plugin-react": "^7.30.1",
|
|
63
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
64
|
-
"eslint-plugin-react-refresh": "^0.4.3",
|
|
65
|
-
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
66
63
|
"husky": "^8.0.3",
|
|
67
|
-
"immer": "^10.0.2",
|
|
68
|
-
"kolorist": "^1.8.0",
|
|
69
|
-
"lint-staged": "^13.0.3",
|
|
70
|
-
"minimist": "^1.2.8",
|
|
71
|
-
"node": "^20.5.0",
|
|
72
|
-
"prettier": "^2.7.1",
|
|
73
|
-
"prompts": "^2.4.2",
|
|
74
64
|
"react": "^18.2.0",
|
|
75
65
|
"react-dom": "^18.2.0",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"semver": "^7.5.4",
|
|
81
|
-
"tsx": "^3.12.7",
|
|
82
|
-
"typescript": "^4.9.5",
|
|
83
|
-
"url": "^0.11.1",
|
|
84
|
-
"vite": "^3.1.0",
|
|
85
|
-
"vite-plugin-babel-macros": "^1.0.6",
|
|
86
|
-
"vite-plugin-dts": "^1.4.1",
|
|
87
|
-
"vite-plugin-linter": "^1.2.0",
|
|
88
|
-
"vite-tsconfig-paths": "^3.5.0",
|
|
89
|
-
"vitest": "^0.34.1"
|
|
66
|
+
"size-limit": "^8.2.6",
|
|
67
|
+
"tsdx": "^0.14.1",
|
|
68
|
+
"tslib": "^2.6.2",
|
|
69
|
+
"typescript": "^5.2.2"
|
|
90
70
|
},
|
|
91
|
-
"
|
|
92
|
-
"react": "^
|
|
93
|
-
"
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@emotion/react": "^11.11.1",
|
|
73
|
+
"@emotion/styled": "^11.11.0",
|
|
74
|
+
"@ladle/react": "^2.17.2",
|
|
75
|
+
"@mui/material": "^5.14.6",
|
|
76
|
+
"lint-staged": "^14.0.1",
|
|
77
|
+
"styled-components": "^6.0.7"
|
|
94
78
|
},
|
|
95
79
|
"repository": {
|
|
96
80
|
"type": "git",
|
|
97
81
|
"url": "https://github.com/OlosLive/norma-library"
|
|
98
82
|
},
|
|
99
|
-
"keywords": [],
|
|
100
|
-
"author": "José Roberto Miguel Filho",
|
|
101
83
|
"bugs": {
|
|
102
84
|
"url": "https://github.com/OlosLive/norma-library/issues"
|
|
103
85
|
},
|
|
104
86
|
"publishConfig": {
|
|
105
87
|
"access": "public"
|
|
106
88
|
},
|
|
107
|
-
"homepage": "https://github.com/OlosLive/norma-library"
|
|
108
|
-
"license": "MIT",
|
|
109
|
-
"dependencies": {
|
|
110
|
-
"@emotion/react": "^11.11.1",
|
|
111
|
-
"@emotion/styled": "^11.11.0",
|
|
112
|
-
"@ladle/react": "^2.17.2",
|
|
113
|
-
"@mui/icons-material": "^5.14.3",
|
|
114
|
-
"@mui/lab": "^5.0.0-alpha.140",
|
|
115
|
-
"@mui/material": "^5.14.4",
|
|
116
|
-
"@types/i18next": "^13.0.0",
|
|
117
|
-
"i18next": "^23.4.4",
|
|
118
|
-
"npm-version": "^1.1.0",
|
|
119
|
-
"styled-components": "^6.0.7"
|
|
120
|
-
}
|
|
89
|
+
"homepage": "https://github.com/OlosLive/norma-library"
|
|
121
90
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Theme } from '@emotion/react';
|
|
3
|
-
import Button from './Button';
|
|
4
|
-
import { ButtonPropsColorOverrides, ButtonPropsSizeOverrides, ButtonPropsVariantOverrides, ButtonProps as MuiButtonProps, SxProps } from '@mui/material';
|
|
5
|
-
import { OverridableStringUnion } from '@mui/types';
|
|
6
|
-
type MuiButtonBaseProps = Pick<MuiButtonProps, 'sx' | 'color' | 'size' | 'variant'>;
|
|
7
|
-
export interface ButtonBaseProps extends MuiButtonBaseProps {
|
|
8
|
-
label: string;
|
|
9
|
-
sx?: SxProps<Theme>;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
onClick?: (event: React.MouseEvent | React.KeyboardEvent | React.TouchEvent) => void;
|
|
12
|
-
color?: OverridableStringUnion<'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning', ButtonPropsColorOverrides>;
|
|
13
|
-
size?: OverridableStringUnion<'small' | 'medium' | 'large', ButtonPropsSizeOverrides>;
|
|
14
|
-
variant?: OverridableStringUnion<'text' | 'outlined' | 'contained', ButtonPropsVariantOverrides>;
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
}
|
|
17
|
-
export type ButtonType = keyof typeof Button;
|
|
18
|
-
export {};
|