@nextelco/common-ui 2.1.90 → 2.1.91
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/bundle.js +1 -1
- package/dist/types/components/atoms/Button/variants/IconButton.d.ts +8 -1
- package/dist/types/components/atoms/Icone/Icone.test.d.ts +1 -0
- package/dist/types/components/molecules/BarraValor/BarraValor.test.d.ts +1 -0
- package/dist/types/components/molecules/SeletorPesquisa/SeletorPesquisa.test.d.ts +1 -0
- package/dist/types/components/organisms/Kanban/Kanban.test.d.ts +1 -0
- package/dist/types/components/organisms/RoleGuard/RoleGuard.test.d.ts +1 -0
- package/dist/types/test/setup.d.ts +1 -0
- package/package.json +114 -103
|
@@ -9,6 +9,13 @@ type Props = PropsWithChildren<{
|
|
|
9
9
|
onClick: () => void;
|
|
10
10
|
theme: IconButtonTheme;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Nome acessivel. Um botao so com icone nao tem texto, por isso sem isto fica
|
|
14
|
+
* anunciado como "botao" por um leitor de ecra — e invisivel para testes.
|
|
15
|
+
*/
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
/** Tooltip nativa; sem valor proprio assume o `ariaLabel`. */
|
|
18
|
+
title?: string;
|
|
12
19
|
}>;
|
|
13
|
-
declare const IconButton: ({ icon, onClick, theme, disabled }: Props) => React.JSX.Element;
|
|
20
|
+
declare const IconButton: ({ icon, onClick, theme, disabled, ariaLabel, title, }: Props) => React.JSX.Element;
|
|
14
21
|
export default IconButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
package/package.json
CHANGED
|
@@ -1,103 +1,114 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nextelco/common-ui",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/bundle.js",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "webpack --mode production && tailwindcss -i src/styles/tailwind.css -o dist/style.css --minify && tailwindcss -i src/styles/tailwind.layered.css -o dist/style.layered.css --minify",
|
|
12
|
-
"storybook": "storybook dev -p 6006",
|
|
13
|
-
"build-storybook": "storybook build",
|
|
14
|
-
"pub": "git add . && git commit -m \"update\" && git push && npm version patch && npm run build && npm publish",
|
|
15
|
-
"pubOnly": "npm version patch && npm run build && npm publish",
|
|
16
|
-
"pubOnlySameVersion": "npm run build && npm publish"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"react": ">=
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"@azure/msal-
|
|
35
|
-
"optional": true
|
|
36
|
-
},
|
|
37
|
-
"
|
|
38
|
-
"optional": true
|
|
39
|
-
},
|
|
40
|
-
"leaflet
|
|
41
|
-
"optional": true
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@storybook
|
|
51
|
-
"@storybook/addon-
|
|
52
|
-
"@storybook/addon-
|
|
53
|
-
"@storybook/addon-
|
|
54
|
-
"@storybook/
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"react
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@nextelco/common-ui",
|
|
3
|
+
"version": "2.1.91",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/bundle.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "webpack --mode production && tailwindcss -i src/styles/tailwind.css -o dist/style.css --minify && tailwindcss -i src/styles/tailwind.layered.css -o dist/style.layered.css --minify",
|
|
12
|
+
"storybook": "storybook dev -p 6006",
|
|
13
|
+
"build-storybook": "storybook build",
|
|
14
|
+
"pub": "git add . && git commit -m \"update\" && git push && npm test && npm version patch && npm run build && npm publish",
|
|
15
|
+
"pubOnly": "npm test && npm version patch && npm run build && npm publish",
|
|
16
|
+
"pubOnlySameVersion": "npm run build && npm publish",
|
|
17
|
+
"test": "vitest run",
|
|
18
|
+
"test:watch": "vitest",
|
|
19
|
+
"test:ci": "vitest run --coverage"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [],
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@azure/msal-browser": ">=3",
|
|
26
|
+
"@azure/msal-react": ">=2",
|
|
27
|
+
"leaflet": "^1.9.0",
|
|
28
|
+
"leaflet.markercluster": "^1.5.0",
|
|
29
|
+
"react": ">=18",
|
|
30
|
+
"react-dom": ">=18",
|
|
31
|
+
"react-router-dom": ">=6"
|
|
32
|
+
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"@azure/msal-react": {
|
|
35
|
+
"optional": true
|
|
36
|
+
},
|
|
37
|
+
"@azure/msal-browser": {
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
40
|
+
"leaflet": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"leaflet.markercluster": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@azure/msal-browser": "^5.17.3",
|
|
49
|
+
"@azure/msal-react": "^5.5.4",
|
|
50
|
+
"@chromatic-com/storybook": "^4.0.0",
|
|
51
|
+
"@storybook/addon-docs": "^9.0.0",
|
|
52
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
53
|
+
"@storybook/addon-links": "^9.0.0",
|
|
54
|
+
"@storybook/addon-onboarding": "^9.0.0",
|
|
55
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
56
|
+
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
57
|
+
"@storybook/react-webpack5": "^9.0.0",
|
|
58
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
59
|
+
"@testing-library/dom": "^10.4.2",
|
|
60
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
61
|
+
"@testing-library/react": "^16.3.3",
|
|
62
|
+
"@testing-library/user-event": "^14.6.8",
|
|
63
|
+
"@types/js-cookie": "^3.0.6",
|
|
64
|
+
"@types/leaflet": "^1.9.22",
|
|
65
|
+
"@types/leaflet.markercluster": "^1.5.6",
|
|
66
|
+
"@types/react": "^19.0.8",
|
|
67
|
+
"@types/react-dom": "^19.0.3",
|
|
68
|
+
"@types/socket.io-client": "^3.0.0",
|
|
69
|
+
"@types/storybook__react": "^5.2.1",
|
|
70
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
71
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
72
|
+
"chart.js": "^4.5.1",
|
|
73
|
+
"chartjs-plugin-datalabels": "^2.2.0",
|
|
74
|
+
"css-loader": "^7.1.2",
|
|
75
|
+
"jsdom": "^26.1.0",
|
|
76
|
+
"leaflet": "^1.9.4",
|
|
77
|
+
"leaflet.markercluster": "^1.5.3",
|
|
78
|
+
"msw": "^2.7.3",
|
|
79
|
+
"react-chartjs-2": "^5.3.1",
|
|
80
|
+
"react-router-dom": "^6.30.4",
|
|
81
|
+
"sass": "^1.84.0",
|
|
82
|
+
"sass-loader": "^16.0.4",
|
|
83
|
+
"storybook": "^9.0.0",
|
|
84
|
+
"style-loader": "^4.0.0",
|
|
85
|
+
"tailwindcss": "^4.3.3",
|
|
86
|
+
"ts-loader": "^9.5.2",
|
|
87
|
+
"typescript": "^5.7.3",
|
|
88
|
+
"vitest": "^3.2.7",
|
|
89
|
+
"webpack": "^5.97.1",
|
|
90
|
+
"webpack-cli": "^6.0.1"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
|
94
|
+
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
|
95
|
+
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
|
96
|
+
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
97
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
98
|
+
"axios": "^1.8.1",
|
|
99
|
+
"iconoir-react": "^7.11.0",
|
|
100
|
+
"js-cookie": "^3.0.5",
|
|
101
|
+
"keycloak-js": "^25.0.0",
|
|
102
|
+
"leaflet.heat": "^0.2.0",
|
|
103
|
+
"react-focus-lock": "^2.13.6",
|
|
104
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
105
|
+
"react-remove-scroll": "^2.6.3",
|
|
106
|
+
"react-switch": "^7.1.0",
|
|
107
|
+
"react-tooltip": "^5.28.0",
|
|
108
|
+
"socket.io-client": "^4.8.1",
|
|
109
|
+
"tough-cookie": "^5.1.2"
|
|
110
|
+
},
|
|
111
|
+
"overrides": {
|
|
112
|
+
"storybook": "$storybook"
|
|
113
|
+
}
|
|
114
|
+
}
|