@a12e/accessmonitor-ds 1.0.1

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 (40) hide show
  1. package/.babelrc +13 -0
  2. package/CHANGELOG.md +15 -0
  3. package/LICENSE +21 -0
  4. package/README.md +37 -0
  5. package/copyfiles.js +79 -0
  6. package/dist/docs/WelcomePageCover.d134c983.png +0 -0
  7. package/dist/docs/components.png +0 -0
  8. package/dist/docs/foundation-background.png +0 -0
  9. package/dist/docs/foundations.png +0 -0
  10. package/dist/docs/getting-started.png +0 -0
  11. package/dist/favicon.ico +0 -0
  12. package/dist/fonts/AMA.eot +0 -0
  13. package/dist/fonts/AMA.svg +314 -0
  14. package/dist/fonts/AMA.ttf +0 -0
  15. package/dist/fonts/AMA.woff +0 -0
  16. package/dist/img/Logotipo_ARTE__Horizontal_branco_pt.png +0 -0
  17. package/dist/img/Logotipo_ARTE__Horizontal_cor_pt.png +0 -0
  18. package/dist/img/SVG_Declaracao_Conforme.svg +1 -0
  19. package/dist/img/SVG_Declaracao_Nao_Conforme.svg +1 -0
  20. package/dist/img/SVG_Declaracao_Parcial_Conforme.svg +1 -0
  21. package/dist/img/SVG_Selo_Bronze.svg +1 -0
  22. package/dist/img/SVG_Selo_Ouro.svg +1 -0
  23. package/dist/img/SVG_Selo_Prata.svg +1 -0
  24. package/dist/img/UE-uniao_europeia.png +0 -0
  25. package/dist/img/ama-modernizacao_administrativa.png +0 -0
  26. package/dist/img/chevron-right-dark.svg +1 -0
  27. package/dist/img/chevron-right-light.svg +5 -0
  28. package/dist/img/compete_2020.png +0 -0
  29. package/dist/img/portugal_2020.png +0 -0
  30. package/dist/img/republica_portuguesa.png +0 -0
  31. package/dist/img/selo.png +0 -0
  32. package/dist/img/selo_ouro_small.png +0 -0
  33. package/dist/img/verify.svg +42 -0
  34. package/dist/index.css +2 -0
  35. package/dist/index.es.js +5483 -0
  36. package/dist/index.html +43 -0
  37. package/dist/logo-dark.svg +1 -0
  38. package/dist/logo.svg +1 -0
  39. package/package.json +94 -0
  40. package/vite.config.js +33 -0
package/.babelrc ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "presets": [
3
+ [
4
+ "@babel/preset-env",
5
+ {
6
+ "targets": {
7
+ "node": "16.14"
8
+ }
9
+ }
10
+ ]
11
+ ]
12
+ }
13
+
package/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # @a12e/accessmonitor-ds
2
+
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 88fd299: update package json config to solve dependecy conflicts
8
+
9
+ ## 1.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 4569aaf: Set up change set
14
+ - 2a0121a: update workflow version
15
+ - 91f250a: Remove unecessary commentary and add script to release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ARTE | Agência para a Reforma Tecnológica do Estado, I.P.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # ARTE - Design-System 1.0.0
2
+
3
+ O Ama Design System é uma biblioteca de componentes para servir as seguintes aplicações:
4
+
5
+ - AccessMonitor
6
+ - MyMonitor
7
+ - Observatório
8
+ - AdminMonitorSuite - Backoffice do sistema
9
+
10
+ Para mais informações, visite o site, onde se encontra todos os componentes e os parâmetros que são possíveis passar.
11
+
12
+ ## Instalação
13
+ ```
14
+ npm install @a12e/accessmonitor-ds
15
+ ```
16
+
17
+ É necessário importar os estilos gerais
18
+ ```
19
+ import '@a12e/accessmonitor-ds/dist/index.css';
20
+ ```
21
+
22
+ Para que os Icons funcionem devidamente, foi criada uma pasta "styles" se não existia ainda, e foi copiado um ficheiro css
23
+ chamado fontStyle onde contém os importes dos Icons.
24
+
25
+ É necessário importar estes estilos no App.js ou App.jsx
26
+
27
+ ```
28
+ import "./styles/fontStyle.css";
29
+ ```
30
+
31
+
32
+ ## Utilização
33
+ ```
34
+ import { Icon } from '@a12e/accessmonitor-ds'
35
+
36
+ <Icon name={"AMA-SeloDark2-Line"} />
37
+ ```
package/copyfiles.js ADDED
@@ -0,0 +1,79 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ // Path to the source directory within your package
5
+ const sourceDir = path.join(__dirname, 'dist', 'public', 'fonts');
6
+
7
+ // Path to the source directory within your package
8
+ const sourceDir2 = path.join(__dirname, 'dist', 'public', 'img');
9
+
10
+ // Path to the source directory within your package
11
+ const sourceDir3 = path.join(__dirname, 'dist', 'public', 'fontStyle.css');
12
+
13
+ // Path to the target directory in the destination project
14
+ const targetDir = path.join(__dirname, '..', '..', 'public');
15
+
16
+ // Path to the target directory in the destination project
17
+ const targetDir2 = path.join(__dirname, '..', '..', 'src', 'styles');
18
+
19
+ // Function to copy a file from source to target
20
+ function copyFileSync(source, target) {
21
+ let targetFile = target;
22
+
23
+ // If target is a directory, a new file with the same name will be created
24
+ if (fs.existsSync(target)) {
25
+ if (fs.lstatSync(target).isDirectory()) {
26
+ targetFile = path.join(target, path.basename(source));
27
+ }
28
+ } else {
29
+ // Ensure the target directory exists
30
+ fs.mkdirSync(path.dirname(target), { recursive: true });
31
+ }
32
+
33
+ fs.writeFileSync(targetFile, fs.readFileSync(source));
34
+ }
35
+
36
+ // Function to copy a folder recursively from source to target
37
+ function copyFolderRecursiveSync(source, target) {
38
+ let files = [];
39
+
40
+ // Ensure the target directory exists
41
+ fs.mkdirSync(target, { recursive: true });
42
+
43
+ // Copy
44
+ if (fs.lstatSync(source).isDirectory()) {
45
+ files = fs.readdirSync(source);
46
+ files.forEach(function(file) {
47
+ const curSource = path.join(source, file);
48
+ if (fs.lstatSync(curSource).isDirectory()) {
49
+ copyFolderRecursiveSync(curSource, path.join(target, file));
50
+ } else {
51
+ copyFileSync(curSource, path.join(target, file));
52
+ }
53
+ });
54
+ }
55
+ }
56
+
57
+ // Check if the source directory exists before attempting to copy
58
+ if (fs.existsSync(sourceDir)) {
59
+ copyFolderRecursiveSync(sourceDir, targetDir);
60
+ console.log(`Copied files from "${sourceDir}" to "${targetDir}"`);
61
+ } else {
62
+ console.error(`Source directory "${sourceDir}" does not exist.`);
63
+ }
64
+
65
+ // Check if the source directory exists before attempting to copy
66
+ if (fs.existsSync(sourceDir2)) {
67
+ copyFolderRecursiveSync(sourceDir2, targetDir);
68
+ console.log(`Copied files from "${sourceDir2}" to "${targetDir}"`);
69
+ } else {
70
+ console.error(`Source directory "${sourceDir2}" does not exist.`);
71
+ }
72
+
73
+ // Check if the source directory exists before attempting to copy
74
+ if (fs.existsSync(sourceDir3)) {
75
+ copyFileSync(sourceDir3, path.join(targetDir2, path.basename(sourceDir3)));
76
+ console.log(`Copied files from "${sourceDir3}" to "${targetDir2}"`);
77
+ } else {
78
+ console.error(`Source directory "${sourceDir3}" does not exist.`);
79
+ }
Binary file
Binary file
Binary file
Binary file
Binary file