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.
Files changed (47) hide show
  1. package/dist/index.js +8 -0
  2. package/package.json +55 -86
  3. package/dist/components/Button/Button.d.ts +0 -4
  4. package/dist/components/Button/index.d.ts +0 -2
  5. package/dist/components/Button/types.d.ts +0 -18
  6. package/dist/components/Card/Card.d.ts +0 -4
  7. package/dist/components/Card/CardHeader.d.ts +0 -4
  8. package/dist/components/Card/index.d.ts +0 -4
  9. package/dist/components/Card/styles.d.ts +0 -818
  10. package/dist/components/Card/types.d.ts +0 -12
  11. package/dist/components/Checkbox/Checkbox.d.ts +0 -4
  12. package/dist/components/Checkbox/index.d.ts +0 -2
  13. package/dist/components/Checkbox/types.d.ts +0 -23
  14. package/dist/components/Icon/DefaultIcon.d.ts +0 -5
  15. package/dist/components/Icon/NormaIcon.d.ts +0 -13
  16. package/dist/components/Icon/default.d.ts +0 -209
  17. package/dist/components/Icon/index.d.ts +0 -233
  18. package/dist/components/Icon/norma.d.ts +0 -29
  19. package/dist/components/Icon/styles.d.ts +0 -485
  20. package/dist/components/Icon/svg.d.ts +0 -6
  21. package/dist/components/Icon/types.d.ts +0 -12
  22. package/dist/components/Modal/Modal.d.ts +0 -4
  23. package/dist/components/Modal/ModalFooter.d.ts +0 -4
  24. package/dist/components/Modal/ModalHeader.d.ts +0 -4
  25. package/dist/components/Modal/index.d.ts +0 -2
  26. package/dist/components/Modal/styles.d.ts +0 -274
  27. package/dist/components/Modal/types.d.ts +0 -24
  28. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -8
  29. package/dist/components/ProgressBar/index.d.ts +0 -2
  30. package/dist/components/ProgressBar/styles.d.ts +0 -276
  31. package/dist/components/ProgressBar/types.d.ts +0 -22
  32. package/dist/components/Radio/Radio.d.ts +0 -4
  33. package/dist/components/Radio/index.d.ts +0 -2
  34. package/dist/components/Radio/types.d.ts +0 -16
  35. package/dist/components/Tag/Tag.d.ts +0 -4
  36. package/dist/components/Tag/index.d.ts +0 -2
  37. package/dist/components/Tag/types.d.ts +0 -25
  38. package/dist/components/TextField/TextField.d.ts +0 -4
  39. package/dist/components/TextField/index.d.ts +0 -2
  40. package/dist/components/TextField/types.d.ts +0 -42
  41. package/dist/components/index.d.ts +0 -19
  42. package/dist/index.d.ts +0 -1
  43. package/dist/index.es.js +0 -15023
  44. package/dist/index.es.js.map +0 -1
  45. package/dist/index.umd.js +0 -419
  46. package/dist/index.umd.js.map +0 -1
  47. package/dist/vite.svg +0 -1
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./norma-library.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./norma-library.cjs.development.js')
8
+ }
package/package.json CHANGED
@@ -1,20 +1,30 @@
1
1
  {
2
- "name": "norma-library",
3
- "private": false,
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
- "dev": "vite",
9
- "build": "vite build",
10
- "release": "tsx scripts/release.ts",
11
- "preview": "vite preview",
12
- "lint": "eslint 'src/**/**/*.{js,jsx,ts,tsx}'",
13
- "lint:fix": "eslint --fix 'src/**/**/*.{jsx,ts,tsx}'",
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
- "tsc": "tsc"
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 eslint",
36
+ "yarn lint",
27
37
  "yarn format"
28
38
  ]
29
39
  },
30
- "files": [
31
- "dist"
32
- ],
33
- "main": "./dist/index.umd.cjs",
34
- "module": "./dist/index.js",
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
- "@rollup/plugin-commonjs": "^25.0.4",
44
- "@rollup/plugin-node-resolve": "^15.2.0",
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
- "react-i18next": "^13.0.3",
77
- "rollup-plugin-dts": "^6.0.0",
78
- "rollup-plugin-peer-deps-external": "^2.2.4",
79
- "rollup-plugin-terser": "^7.0.2",
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
- "peerDependencies": {
92
- "react": "^18.2.0",
93
- "react-dom": "^18.2.0"
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,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonBaseProps } from './types';
3
- declare const Button: React.FC<ButtonBaseProps>;
4
- export default Button;
@@ -1,2 +0,0 @@
1
- export * from './Button';
2
- export { default } from './Button';
@@ -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 {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { CardBaseProps } from './types';
3
- declare const Card: React.FC<CardBaseProps>;
4
- export default Card;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { CardHeaderProps } from './types';
3
- declare const CardHeader: React.FC<CardHeaderProps>;
4
- export default CardHeader;
@@ -1,4 +0,0 @@
1
- export * from './Card';
2
- export { default as Card } from './Card';
3
- export * from './CardHeader';
4
- export { default as CardHeader } from './CardHeader';