@nextelco/common-ui 2.1.90 → 2.1.92

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.
@@ -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 {};
@@ -7,8 +7,13 @@ export interface DataTableColumn<T> {
7
7
  /** Conteúdo apresentado. Sem isto mostra o value. */
8
8
  render?: (row: T) => React.ReactNode;
9
9
  sortType?: 'text' | 'number' | 'date';
10
- /** Fixa a coluna à esquerda no scroll horizontal (position: sticky). */
11
- sticky?: boolean;
10
+ /**
11
+ * Fixa a coluna no scroll horizontal (position: sticky).
12
+ * `true` ou `'left'` prende à esquerda; `'right'` prende à direita — útil para
13
+ * a coluna de ações, que de outro modo fica fora de vista (e com os botões
14
+ * cortados) assim que a tabela e mais larga do que o espaço disponível.
15
+ */
16
+ sticky?: boolean | 'left' | 'right';
12
17
  align?: 'left' | 'right' | 'center';
13
18
  /** minWidth em px. */
14
19
  width?: number;
@@ -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.90",
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
- "keywords": [],
19
- "author": "",
20
- "license": "ISC",
21
- "peerDependencies": {
22
- "@azure/msal-browser": ">=3",
23
- "@azure/msal-react": ">=2",
24
- "leaflet": "^1.9.0",
25
- "leaflet.markercluster": "^1.5.0",
26
- "react": ">=18",
27
- "react-dom": ">=18",
28
- "react-router-dom": ">=6"
29
- },
30
- "peerDependenciesMeta": {
31
- "@azure/msal-react": {
32
- "optional": true
33
- },
34
- "@azure/msal-browser": {
35
- "optional": true
36
- },
37
- "leaflet": {
38
- "optional": true
39
- },
40
- "leaflet.markercluster": {
41
- "optional": true
42
- }
43
- },
44
- "devDependencies": {
45
- "@azure/msal-browser": "^5.17.3",
46
- "@azure/msal-react": "^5.5.4",
47
- "@chromatic-com/storybook": "^4.0.0",
48
- "@storybook/addon-docs": "^9.0.0",
49
- "@storybook/addon-interactions": "^8.6.14",
50
- "@storybook/addon-links": "^9.0.0",
51
- "@storybook/addon-onboarding": "^9.0.0",
52
- "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
53
- "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
54
- "@storybook/react-webpack5": "^9.0.0",
55
- "@tailwindcss/cli": "^4.3.3",
56
- "@types/js-cookie": "^3.0.6",
57
- "@types/leaflet": "^1.9.22",
58
- "@types/leaflet.markercluster": "^1.5.6",
59
- "@types/react": "^19.0.8",
60
- "@types/react-dom": "^19.0.3",
61
- "@types/socket.io-client": "^3.0.0",
62
- "@types/storybook__react": "^5.2.1",
63
- "chart.js": "^4.5.1",
64
- "chartjs-plugin-datalabels": "^2.2.0",
65
- "css-loader": "^7.1.2",
66
- "leaflet": "^1.9.4",
67
- "leaflet.markercluster": "^1.5.3",
68
- "msw": "^2.7.3",
69
- "react-chartjs-2": "^5.3.1",
70
- "react-router-dom": "^6.30.4",
71
- "sass": "^1.84.0",
72
- "sass-loader": "^16.0.4",
73
- "storybook": "^9.0.0",
74
- "style-loader": "^4.0.0",
75
- "tailwindcss": "^4.3.3",
76
- "ts-loader": "^9.5.2",
77
- "typescript": "^5.7.3",
78
- "webpack": "^5.97.1",
79
- "webpack-cli": "^6.0.1"
80
- },
81
- "dependencies": {
82
- "@fortawesome/fontawesome-svg-core": "^6.7.2",
83
- "@fortawesome/free-brands-svg-icons": "^6.7.2",
84
- "@fortawesome/free-regular-svg-icons": "^6.7.2",
85
- "@fortawesome/free-solid-svg-icons": "^6.7.2",
86
- "@fortawesome/react-fontawesome": "^0.2.2",
87
- "axios": "^1.8.1",
88
- "iconoir-react": "^7.11.0",
89
- "js-cookie": "^3.0.5",
90
- "keycloak-js": "^25.0.0",
91
- "leaflet.heat": "^0.2.0",
92
- "react-focus-lock": "^2.13.6",
93
- "react-infinite-scroll-component": "^6.1.0",
94
- "react-remove-scroll": "^2.6.3",
95
- "react-switch": "^7.1.0",
96
- "react-tooltip": "^5.28.0",
97
- "socket.io-client": "^4.8.1",
98
- "tough-cookie": "^5.1.2"
99
- },
100
- "overrides": {
101
- "storybook": "$storybook"
102
- }
103
- }
1
+ {
2
+ "name": "@nextelco/common-ui",
3
+ "version": "2.1.92",
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
+ }