cemtrik-dependencies 1.0.4

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 (92) hide show
  1. package/README copy.md +54 -0
  2. package/README.md +29 -0
  3. package/components.js +47 -0
  4. package/hooks.js +4 -0
  5. package/package.json +58 -0
  6. package/postcss.config.js +6 -0
  7. package/src/assets/cemtrik-icons-v1.0/Read Me.txt +7 -0
  8. package/src/assets/cemtrik-icons-v1.0/demo-files/demo.css +152 -0
  9. package/src/assets/cemtrik-icons-v1.0/demo-files/demo.js +30 -0
  10. package/src/assets/cemtrik-icons-v1.0/demo.html +318 -0
  11. package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.eot +0 -0
  12. package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.svg +31 -0
  13. package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.ttf +0 -0
  14. package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.woff +0 -0
  15. package/src/assets/cemtrik-icons-v1.0/selection.json +1 -0
  16. package/src/assets/cemtrik-icons-v1.0/style.css +96 -0
  17. package/src/assets/icons/actions.svg +4 -0
  18. package/src/assets/icons/attributes.svg +5 -0
  19. package/src/assets/icons/bars.svg +3 -0
  20. package/src/assets/icons/bell.svg +4 -0
  21. package/src/assets/icons/cemtrik.svg +9 -0
  22. package/src/assets/icons/clipboardCheck.svg +4 -0
  23. package/src/assets/icons/clipboardList.svg +5 -0
  24. package/src/assets/icons/clock.svg +3 -0
  25. package/src/assets/icons/flag.svg +3 -0
  26. package/src/assets/icons/folder.svg +3 -0
  27. package/src/assets/icons/graph_indicators.svg +3 -0
  28. package/src/assets/icons/group.svg +3 -0
  29. package/src/assets/icons/letter.svg +3 -0
  30. package/src/assets/icons/measuring_points.svg +3 -0
  31. package/src/assets/icons/reports.svg +4 -0
  32. package/src/assets/icons/roboot.svg +3 -0
  33. package/src/assets/icons/user.svg +4 -0
  34. package/src/assets/icons/user_point.svg +10 -0
  35. package/src/assets/icons/vector.svg +3 -0
  36. package/src/assets/icons/vector2.svg +3 -0
  37. package/src/components/atoms/Alert/index.js +104 -0
  38. package/src/components/atoms/Alert/index.test.js +36 -0
  39. package/src/components/atoms/Avatar/index.js +63 -0
  40. package/src/components/atoms/Avatar/index.test.js +30 -0
  41. package/src/components/atoms/Bullets/Bullets.test.js +22 -0
  42. package/src/components/atoms/Bullets/index.js +51 -0
  43. package/src/components/atoms/ButtonOutline/index.js +43 -0
  44. package/src/components/atoms/ButtonOutline/index.test.js +36 -0
  45. package/src/components/atoms/ButtonPagination/index.js +37 -0
  46. package/src/components/atoms/ButtonPagination/index.test.js +36 -0
  47. package/src/components/atoms/ButtonSolid/index.js +74 -0
  48. package/src/components/atoms/ButtonSolid/index.test.js +59 -0
  49. package/src/components/atoms/Checkbox/index.js +52 -0
  50. package/src/components/atoms/Checkbox/index.test.js +15 -0
  51. package/src/components/atoms/ConfirmationAbandoningCreation/index.js +70 -0
  52. package/src/components/atoms/ConfirmationAbandoningCreation/index.test.js +70 -0
  53. package/src/components/atoms/Divider/index.js +10 -0
  54. package/src/components/atoms/Divider/index.test.js +12 -0
  55. package/src/components/atoms/GoBack/index.js +30 -0
  56. package/src/components/atoms/GoBack/index.test.js +24 -0
  57. package/src/components/atoms/Input/index.js +107 -0
  58. package/src/components/atoms/Input/index.test.js +63 -0
  59. package/src/components/atoms/InputDropdown/index.js +111 -0
  60. package/src/components/atoms/InputDropdown/index.test.js +86 -0
  61. package/src/components/atoms/Select/index.js +199 -0
  62. package/src/components/atoms/Select/index.test.js +86 -0
  63. package/src/components/atoms/Spinner/index.js +49 -0
  64. package/src/components/atoms/Spinner/index.test.js +9 -0
  65. package/src/components/atoms/Switch/index.js +46 -0
  66. package/src/components/atoms/Switch/index.test.js +18 -0
  67. package/src/components/atoms/Textarea/index.js +136 -0
  68. package/src/components/atoms/Textarea/index.spec.js +51 -0
  69. package/src/components/atoms/Tooltip/index.js +64 -0
  70. package/src/components/atoms/Tooltip/index.test.js +31 -0
  71. package/src/components/atoms/UploadImage/index.js +55 -0
  72. package/src/components/atoms/UploadImage/index.test.js +36 -0
  73. package/src/components/molecules/Dropdown/index.js +315 -0
  74. package/src/components/molecules/Dropdown/index.test.js +190 -0
  75. package/src/components/molecules/Modal/index.js +103 -0
  76. package/src/components/molecules/Modal/index.test.js +42 -0
  77. package/src/components/molecules/Pagination/index.js +126 -0
  78. package/src/components/molecules/Pagination/index.test.js +57 -0
  79. package/src/components/templates/Accordion/index.js +174 -0
  80. package/src/components/templates/Accordion/index.test.js +130 -0
  81. package/src/hooks/useCloseModal/index.js +27 -0
  82. package/src/hooks/useCloseModal/index.test.js +26 -0
  83. package/src/hooks/useForm/index.js +70 -0
  84. package/src/hooks/useForm/useForm.test.js +104 -0
  85. package/src/hooks/useMediaQuery/index.js +53 -0
  86. package/src/hooks/useMediaQuery/useMediaQuery.test.js +46 -0
  87. package/src/hooks/useWindowDimensions/index.js +34 -0
  88. package/src/hooks/useWindowDimensions/useWindowDimensions.test.js +19 -0
  89. package/src/utils/index.js +32 -0
  90. package/src/utils/index.test.js +56 -0
  91. package/tailwind.config.js +117 -0
  92. package/utils.js +8 -0
@@ -0,0 +1,54 @@
1
+ # App Cemtrik
2
+
3
+ Aplicación creada para que sirva como baseline. Es una aplicación basada en Nextjs Js.
4
+
5
+ ## Pasos previos
6
+
7
+ Se debe tener instalados en el PC o Mac:
8
+
9
+ - **Node Js** http://nodejs.org/
10
+ - **Yarn** https://classic.yarnpkg.com/en/docs/install/#mac-stable
11
+ - **Git** https://gist.github.com/derhuerst/1b15ff4652a867391f03
12
+
13
+ ## Entornos
14
+
15
+ La aplicación App Cemtrik cuenta con 2 entornos:
16
+
17
+ - **Local** es usado para desarrollo. La url es http://localhost:3002/.
18
+ - **Test** es usado para probar el desarrollo antes de hacer el deploy en producción.
19
+
20
+ # Set Up
21
+
22
+ 1. Clonar la rama **master** del repositorio en la carpeta donde trabajes los proyectos (debes tener
23
+ accesos)
24
+
25
+ ```bash
26
+ git clone https://usuario@bitbucket.org/valor-percibido/app-cemtrik.git
27
+
28
+ git checkout -b nombre-rama
29
+ ```
30
+
31
+ 2. Ingresar a la carpeta host-app-cemtrik e instalar las herramientas de desarrollo
32
+
33
+ ```bash
34
+ npm install o yarn install
35
+ ```
36
+
37
+ 3. Ejecutar **yarn dev** o **npm run dev** para iniciar la aplicación
38
+
39
+ ```bash
40
+ npm run dev o yarn dev
41
+ ```
42
+
43
+ La url para acceder localmente a la aplicación es http://localhost:3000/
44
+
45
+ ## Comandos GIT para tener en cuenta
46
+
47
+ - **git clone -b <rama>** <link rama> para clonar una rama especifica.
48
+ - **git branch** para saber en que rama se está trabajando.
49
+ - **git fetch && git checkout <nombre rama>** para cambiar de rama.
50
+ - **git add .** para agregar todos los archivos al staging.
51
+ - **git commit -m "mensaje commit"** para hacer el commit.
52
+ - **git push origin <nombre rama>** para el push en una rama especifica.
53
+ - **git pull origin <nombre rama>** para el pull de una rama especifica.
54
+ - **git merge <rama>** para hacer merge de la rama actual con la rama especifica.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # README #
2
+
3
+ This README would normally document whatever steps are necessary to get your application up and running.
4
+
5
+ ### What is this repository for? ###
6
+
7
+ * Quick summary
8
+ * Version
9
+ * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10
+
11
+ ### How do I get set up? ###
12
+
13
+ * Summary of set up
14
+ * Configuration
15
+ * Dependencies
16
+ * Database configuration
17
+ * How to run tests
18
+ * Deployment instructions
19
+
20
+ ### Contribution guidelines ###
21
+
22
+ * Writing tests
23
+ * Code review
24
+ * Other guidelines
25
+
26
+ ### Who do I talk to? ###
27
+
28
+ * Repo owner or admin
29
+ * Other community or team contact
package/components.js ADDED
@@ -0,0 +1,47 @@
1
+ import Alert from "./src/components/atoms/Alert";
2
+ import Avatar from "./src/components/atoms/Avatar";
3
+ import Bullets from "./src/components/atoms/Bullets";
4
+ import ButtonOutline from "./src/components/atoms/ButtonOutline";
5
+ import ButtonPagination from "./src/components/atoms/ButtonPagination";
6
+ import ButtonSolid from "./src/components/atoms/ButtonSolid";
7
+ import Checkbox from "./src/components/atoms/Checkbox";
8
+ import ConfirmationAbandoningCreation from "./src/components/atoms/ConfirmationAbandoningCreation";
9
+ import Divider from "./src/components/atoms/Divider";
10
+ import GoBack from "./src/components/atoms/GoBack";
11
+ import Input from "./src/components/atoms/Input";
12
+ import InputDropdown from "./src/components/atoms/InputDropdown";
13
+ import Select from "./src/components/atoms/Select";
14
+ import Spinner from "./src/components/atoms/Spinner";
15
+ import Switch from "./src/components/atoms/Switch";
16
+ import Textarea from "./src/components/atoms/Textarea";
17
+ import Tooltip from "./src/components/atoms/Tooltip";
18
+ import UploadImage from "./src/components/atoms/UploadImage";
19
+ import Dropdown from "./src/components/molecules/Dropdown";
20
+ import Modal from "./src/components/molecules/Modal";
21
+ import Pagination from "./src/components/molecules/Pagination";
22
+ import Accordion from "./src/components/templates/Accordion";
23
+
24
+ export {
25
+ Alert,
26
+ Avatar,
27
+ Bullets,
28
+ ButtonOutline,
29
+ ButtonPagination,
30
+ ButtonSolid,
31
+ Checkbox,
32
+ ConfirmationAbandoningCreation,
33
+ Divider,
34
+ GoBack,
35
+ Input,
36
+ InputDropdown,
37
+ Select,
38
+ Spinner,
39
+ Switch,
40
+ Textarea,
41
+ Tooltip,
42
+ UploadImage,
43
+ Dropdown,
44
+ Modal,
45
+ Pagination,
46
+ Accordion,
47
+ };
package/hooks.js ADDED
@@ -0,0 +1,4 @@
1
+ export { useCloseModal } from "./src/hooks/useCloseModal";
2
+ export { useForm } from "./src/hooks/useForm";
3
+ export { useMediaQuery } from "./src/hooks/useMediaQuery";
4
+ export { useWindowDimensions } from "./src/hooks/useWindowDimensions";
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "cemtrik-dependencies",
3
+ "version": "1.0.4",
4
+ "scripts": {
5
+ "dev": "next dev -p 3000",
6
+ "build": "next build",
7
+ "start": "next start",
8
+ "lint": "eslint --fix . --ext .js,.jsx",
9
+ "format": "prettier --write .",
10
+ "test": "jest",
11
+ "coverage": "jest --coverage",
12
+ "export": "next export",
13
+ "prepare": "husky install"
14
+ },
15
+ "dependencies": {
16
+ "@headlessui/react": "^1.7.15",
17
+ "@heroicons/react": "^2.0.18",
18
+ "classnames": "^2.3.2",
19
+ "next": "13.4.4",
20
+ "react": "18.2.0",
21
+ "react-dom": "18.2.0"
22
+ },
23
+ "devDependencies": {
24
+ "@commitlint/cli": "^17.6.5",
25
+ "@commitlint/config-conventional": "^17.6.5",
26
+ "@tailwindcss/forms": "^0.3.4",
27
+ "@tailwindcss/typography": "^0.4.1",
28
+ "@testing-library/jest-dom": "^5.16.5",
29
+ "@testing-library/react": "^14.0.0",
30
+ "autoprefixer": "10.4.5",
31
+ "css-loader": "^6.8.1",
32
+ "eslint": "^8.42.0",
33
+ "eslint-config-google": "^0.14.0",
34
+ "eslint-config-next": "^13.4.4",
35
+ "eslint-config-prettier": "^8.8.0",
36
+ "eslint-plugin-import": "^2.27.5",
37
+ "eslint-plugin-prettier": "^4.2.1",
38
+ "eslint-plugin-react": "^7.32.2",
39
+ "husky": "^8.0.0",
40
+ "jest": "^29.5.0",
41
+ "jest-environment-jsdom": "^29.5.0",
42
+ "lint-staged": "^13.2.2",
43
+ "postcss": "^8.3.5",
44
+ "postcss-loader": "^6.1.1",
45
+ "prettier": "^2.8.8",
46
+ "style-loader": "^3.3.3",
47
+ "tailwindcss": "^2.2.19"
48
+ },
49
+ "lint-staged": {
50
+ "*.(js|ts)": "npm run lint"
51
+ },
52
+ "optionalDependencies": {
53
+ "typescript": ">=4.2.0"
54
+ },
55
+ "engines": {
56
+ "node": "20"
57
+ }
58
+ }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ };
@@ -0,0 +1,7 @@
1
+ Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
2
+
3
+ To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/docs/#local-fonts
4
+
5
+ You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
6
+
7
+ You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
@@ -0,0 +1,152 @@
1
+ body {
2
+ padding: 0;
3
+ margin: 0;
4
+ font-family: sans-serif;
5
+ font-size: 1em;
6
+ line-height: 1.5;
7
+ color: #555;
8
+ background: #fff;
9
+ }
10
+ h1 {
11
+ font-size: 1.5em;
12
+ font-weight: normal;
13
+ }
14
+ small {
15
+ font-size: .66666667em;
16
+ }
17
+ a {
18
+ color: #e74c3c;
19
+ text-decoration: none;
20
+ }
21
+ a:hover, a:focus {
22
+ box-shadow: 0 1px #e74c3c;
23
+ }
24
+ .bshadow0, input {
25
+ box-shadow: inset 0 -2px #e7e7e7;
26
+ }
27
+ input:hover {
28
+ box-shadow: inset 0 -2px #ccc;
29
+ }
30
+ input, fieldset {
31
+ font-family: sans-serif;
32
+ font-size: 1em;
33
+ margin: 0;
34
+ padding: 0;
35
+ border: 0;
36
+ }
37
+ input {
38
+ color: inherit;
39
+ line-height: 1.5;
40
+ height: 1.5em;
41
+ padding: .25em 0;
42
+ }
43
+ input:focus {
44
+ outline: none;
45
+ box-shadow: inset 0 -2px #449fdb;
46
+ }
47
+ .glyph {
48
+ font-size: 16px;
49
+ width: 15em;
50
+ padding-bottom: 1em;
51
+ margin-right: 4em;
52
+ margin-bottom: 1em;
53
+ float: left;
54
+ overflow: hidden;
55
+ }
56
+ .liga {
57
+ width: 80%;
58
+ width: calc(100% - 2.5em);
59
+ }
60
+ .talign-right {
61
+ text-align: right;
62
+ }
63
+ .talign-center {
64
+ text-align: center;
65
+ }
66
+ .bgc1 {
67
+ background: #f1f1f1;
68
+ }
69
+ .fgc1 {
70
+ color: #999;
71
+ }
72
+ .fgc0 {
73
+ color: #000;
74
+ }
75
+ p {
76
+ margin-top: 1em;
77
+ margin-bottom: 1em;
78
+ }
79
+ .mvm {
80
+ margin-top: .75em;
81
+ margin-bottom: .75em;
82
+ }
83
+ .mtn {
84
+ margin-top: 0;
85
+ }
86
+ .mtl, .mal {
87
+ margin-top: 1.5em;
88
+ }
89
+ .mbl, .mal {
90
+ margin-bottom: 1.5em;
91
+ }
92
+ .mal, .mhl {
93
+ margin-left: 1.5em;
94
+ margin-right: 1.5em;
95
+ }
96
+ .mhmm {
97
+ margin-left: 1em;
98
+ margin-right: 1em;
99
+ }
100
+ .mls {
101
+ margin-left: .25em;
102
+ }
103
+ .ptl {
104
+ padding-top: 1.5em;
105
+ }
106
+ .pbs, .pvs {
107
+ padding-bottom: .25em;
108
+ }
109
+ .pvs, .pts {
110
+ padding-top: .25em;
111
+ }
112
+ .unit {
113
+ float: left;
114
+ }
115
+ .unitRight {
116
+ float: right;
117
+ }
118
+ .size1of2 {
119
+ width: 50%;
120
+ }
121
+ .size1of1 {
122
+ width: 100%;
123
+ }
124
+ .clearfix:before, .clearfix:after {
125
+ content: " ";
126
+ display: table;
127
+ }
128
+ .clearfix:after {
129
+ clear: both;
130
+ }
131
+ .hidden-true {
132
+ display: none;
133
+ }
134
+ .textbox0 {
135
+ width: 3em;
136
+ background: #f1f1f1;
137
+ padding: .25em .5em;
138
+ line-height: 1.5;
139
+ height: 1.5em;
140
+ }
141
+ #testDrive {
142
+ display: block;
143
+ padding-top: 24px;
144
+ line-height: 1.5;
145
+ }
146
+ .fs0 {
147
+ font-size: 16px;
148
+ }
149
+ .fs1 {
150
+ font-size: 32px;
151
+ }
152
+
@@ -0,0 +1,30 @@
1
+ if (!('boxShadow' in document.body.style)) {
2
+ document.body.setAttribute('class', 'noBoxShadow');
3
+ }
4
+
5
+ document.body.addEventListener("click", function(e) {
6
+ const target = e.target;
7
+ if (target.tagName === "INPUT" &&
8
+ target.getAttribute('class').indexOf('liga') === -1) {
9
+ target.select();
10
+ }
11
+ });
12
+
13
+ (function() {
14
+ const fontSize = document.getElementById('fontSize');
15
+ const testDrive = document.getElementById('testDrive');
16
+ const testText = document.getElementById('testText');
17
+ function updateTest() {
18
+ testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
+ if (window.icomoonLiga) {
20
+ window.icomoonLiga(testDrive);
21
+ }
22
+ }
23
+ function updateSize() {
24
+ testDrive.style.fontSize = fontSize.value + 'px';
25
+ }
26
+ fontSize.addEventListener('change', updateSize, false);
27
+ testText.addEventListener('input', updateTest, false);
28
+ testText.addEventListener('change', updateTest, false);
29
+ updateSize();
30
+ }());