imbric-theme 0.3.3 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. package/.storybook/main.js +1 -1
  2. package/atoms/AlertModal/AlertModal.js +77 -0
  3. package/atoms/AlertModal/AlertModal.module.css +3 -0
  4. package/atoms/AlertModal/AlertModal.stories.js +30 -0
  5. package/atoms/AlertModal/constants.js +4 -0
  6. package/atoms/AlertModal/index.js +3 -0
  7. package/atoms/Button/Button.js +5 -2
  8. package/atoms/Button/Button.module.css +6 -3
  9. package/atoms/Checkbox/Checkbox.js +66 -0
  10. package/atoms/Checkbox/Checkbox.module.css +54 -0
  11. package/atoms/Checkbox/Checkbox.stories.js +30 -0
  12. package/atoms/Checkbox/constants.js +1 -0
  13. package/atoms/Checkbox/index.js +3 -0
  14. package/atoms/Heading/Heading.js +1 -1
  15. package/atoms/Heading/Heading.module.css +4 -0
  16. package/atoms/Heading/constants.js +1 -1
  17. package/atoms/Icon/constants.js +30 -6
  18. package/atoms/Input/Input.js +22 -5
  19. package/atoms/Input/Input.module.css +26 -6
  20. package/atoms/Input/Input.stories.js +8 -2
  21. package/atoms/Input/__snapshots__/Input.stories.js.snap +5 -5
  22. package/atoms/Input/constants.js +1 -1
  23. package/atoms/Label/Label.js +31 -0
  24. package/atoms/Label/Label.module.css +38 -0
  25. package/atoms/Label/Label.stories.js +26 -0
  26. package/atoms/Label/constants.js +1 -0
  27. package/atoms/Label/index.js +3 -0
  28. package/atoms/LinkItem/LinkItem.js +36 -0
  29. package/atoms/{Link/Link.module.css → LinkItem/LinkItem.module.css} +6 -1
  30. package/atoms/{Link/Link.stories.js → LinkItem/LinkItem.stories.js} +5 -5
  31. package/atoms/{Link → LinkItem}/__snapshots__/Link.stories.js.snap +0 -0
  32. package/atoms/{Link → LinkItem}/constants.js +0 -0
  33. package/atoms/LinkItem/index.js +3 -0
  34. package/atoms/Paragraph/Paragraph.module.css +4 -0
  35. package/hook/useAddColumn.js +40 -0
  36. package/hook/useStateDate.js +25 -0
  37. package/hook/useTable.js +45 -0
  38. package/index.js +23 -2
  39. package/jest.config.js +1 -1
  40. package/layout/DynamicTable/DynamicTable.js +172 -0
  41. package/layout/DynamicTable/DynamicTable.module.css +63 -0
  42. package/layout/DynamicTable/DynamicTable.stories.js +77 -0
  43. package/layout/DynamicTable/constants.js +323 -0
  44. package/layout/DynamicTable/index.js +3 -0
  45. package/layout/Navbar/Navbar.js +19 -11
  46. package/layout/Navbar/Navbar.module.css +4 -2
  47. package/layout/Navbar/Navbar.stories.js +2 -1
  48. package/layout/Sidebar/Sidebar.module.css +1 -0
  49. package/molecules/CheckList/CheckList.js +135 -0
  50. package/molecules/CheckList/CheckList.module.css +94 -0
  51. package/molecules/CheckList/CheckList.stories.js +25 -0
  52. package/molecules/CheckList/constants.js +23 -0
  53. package/molecules/CheckList/index.js +3 -0
  54. package/molecules/ColumnTable/ColumnTable.js +126 -0
  55. package/molecules/ColumnTable/ColumnTable.module.css +22 -0
  56. package/molecules/ColumnTable/ColumnTable.stories.js +26 -0
  57. package/molecules/ColumnTable/constants.js +111 -0
  58. package/molecules/ColumnTable/index.js +3 -0
  59. package/molecules/DatePicker/DatePicker.js +236 -0
  60. package/molecules/DatePicker/DatePicker.module.css +38 -0
  61. package/molecules/DatePicker/DatePicker.stories.js +23 -0
  62. package/molecules/DatePicker/constants.js +3 -0
  63. package/molecules/DatePicker/index.js +3 -0
  64. package/molecules/Dropdown/Dropdown.js +25 -22
  65. package/molecules/Dropdown/Dropdown.module.css +21 -3
  66. package/molecules/DynamicSelect/DynamicSelect.js +118 -0
  67. package/molecules/DynamicSelect/DynamicSelect.module.css +10 -0
  68. package/molecules/DynamicSelect/DynamicSelect.stories.js +32 -0
  69. package/molecules/DynamicSelect/constants.js +7 -0
  70. package/molecules/DynamicSelect/index.js +3 -0
  71. package/molecules/Error/Error.js +2 -2
  72. package/molecules/Error/Error.module.css +3 -2
  73. package/molecules/FooterTable/FooterTable.js +47 -0
  74. package/molecules/FooterTable/FooterTable.module.css +37 -0
  75. package/molecules/FooterTable/FooterTable.stories.js +23 -0
  76. package/molecules/FooterTable/constants.js +1 -0
  77. package/molecules/FooterTable/index.js +3 -0
  78. package/molecules/RowTable/RowTable.js +68 -0
  79. package/molecules/RowTable/RowTable.module.css +22 -0
  80. package/molecules/RowTable/RowTable.stories.js +26 -0
  81. package/molecules/RowTable/constants.js +305 -0
  82. package/molecules/RowTable/index.js +3 -0
  83. package/package.json +8 -1
  84. package/pages/Login/Login.js +102 -0
  85. package/pages/Login/Login.module.css +5 -0
  86. package/pages/Login/Login.stories.js +23 -0
  87. package/pages/Login/constants.js +1 -0
  88. package/pages/Login/index.js +3 -0
  89. package/pages/Login/validation/loginSchema.js +5 -0
  90. package/public/static/logologin.svg +16 -0
  91. package/scripts/create-component.js +2 -1
  92. package/storybook-static/0.263f852f.iframe.bundle.js +1 -0
  93. package/storybook-static/0.91dbd3f3aa2099d25061.manager.bundle.js +1 -0
  94. package/storybook-static/1.17e9ac7e.iframe.bundle.js +3 -0
  95. package/storybook-static/1.17e9ac7e.iframe.bundle.js.LICENSE.txt +8 -0
  96. package/storybook-static/1.17e9ac7e.iframe.bundle.js.map +1 -0
  97. package/storybook-static/2.cc4000c2.iframe.bundle.js +1 -0
  98. package/storybook-static/3.e9f95d01.iframe.bundle.js +1 -0
  99. package/storybook-static/4.be0a752c9f5176d6eec1.manager.bundle.js +2 -0
  100. package/storybook-static/4.be0a752c9f5176d6eec1.manager.bundle.js.LICENSE.txt +8 -0
  101. package/storybook-static/5.8efdde123acaf8fbb100.manager.bundle.js +1 -0
  102. package/storybook-static/6.2f82294ae0b087aecb24.manager.bundle.js +2 -0
  103. package/storybook-static/6.2f82294ae0b087aecb24.manager.bundle.js.LICENSE.txt +12 -0
  104. package/storybook-static/7.97068037.iframe.bundle.js +1 -0
  105. package/storybook-static/7.fa9452d2609e8a00f314.manager.bundle.js +1 -0
  106. package/storybook-static/8.66f5ef1c66fc4628f127.manager.bundle.js +1 -0
  107. package/storybook-static/8.b545d602.iframe.bundle.js +3 -0
  108. package/storybook-static/8.b545d602.iframe.bundle.js.LICENSE.txt +12 -0
  109. package/storybook-static/8.b545d602.iframe.bundle.js.map +1 -0
  110. package/storybook-static/9.269ed917.iframe.bundle.js +1 -0
  111. package/storybook-static/favicon.ico +0 -0
  112. package/storybook-static/iframe.html +348 -0
  113. package/storybook-static/index.html +59 -0
  114. package/storybook-static/main.157061c9.iframe.bundle.js +1 -0
  115. package/storybook-static/main.5a07347846ccf2d7e5dc.manager.bundle.js +1 -0
  116. package/storybook-static/runtime~main.a14e6e62.iframe.bundle.js +1 -0
  117. package/storybook-static/runtime~main.f78c3fae275fc212c109.manager.bundle.js +1 -0
  118. package/storybook-static/static/logo.svg +19 -0
  119. package/storybook-static/static/logologin.svg +16 -0
  120. package/storybook-static/static/logotipo.svg +50 -0
  121. package/storybook-static/static/logotipoS.svg +26 -0
  122. package/storybook-static/vendors~main.720e76f4.iframe.bundle.js +3 -0
  123. package/storybook-static/vendors~main.720e76f4.iframe.bundle.js.LICENSE.txt +110 -0
  124. package/storybook-static/vendors~main.720e76f4.iframe.bundle.js.map +1 -0
  125. package/storybook-static/vendors~main.fcd0b2a3431ddf75f5f7.manager.bundle.js +2 -0
  126. package/storybook-static/vendors~main.fcd0b2a3431ddf75f5f7.manager.bundle.js.LICENSE.txt +101 -0
  127. package/styles/globals.css +592 -0
  128. package/styles/tokens.css +2 -1
  129. package/tokens/index.js +2 -1
  130. package/atoms/Link/Link.js +0 -33
  131. package/atoms/Link/index.js +0 -3
@@ -0,0 +1,305 @@
1
+ export const options = {
2
+
3
+ bookings: [
4
+ {
5
+ id: 346248956,
6
+ idUser: 146280,
7
+ idAuthorization: 817457,
8
+ status: 30,
9
+ origin: {
10
+ addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
11
+ lat: 40.40068,
12
+ lon: -3.698589
13
+ },
14
+ destination: {
15
+ addressField: "Estación de Chamartín, Madrid, España",
16
+ lat: 40.47237,
17
+ lon: -3.683141
18
+ },
19
+ timeBookingStartRealTimestamp: 1653559804000,
20
+ asap: true,
21
+ paymentMethod: 50,
22
+ entryChannel: 15,
23
+ idSupplierFleet: 57,
24
+ idSupplier: 57,
25
+ distanceMeters: 10501,
26
+ durationMinutes: 0,
27
+ location: "MADRID",
28
+ passengerName: "Alberto Alvarez Gonzalez",
29
+ phoneNumberPassenger: "453654654",
30
+ phoneNumberTaxiDriver: "600000000",
31
+ idSupplierTax: "11",
32
+ idSupplierServic: "15828",
33
+ cancelledWithCharg: false,
34
+ priceCustomer: "25.00000",
35
+ priceSupplier: "25.00000",
36
+ phoneNumberSupplier: "676800672",
37
+ idAuthorizationGroup: 335,
38
+ supplierTaxiDescription: "Seat León | 4",
39
+ subscriberCode: "6300",
40
+ userNumber: "93271095",
41
+ idService: 1946195318,
42
+ shared: false,
43
+ timeZone: "Europe/Madrid",
44
+ notes: "2022-05-26 10:10:03 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:10:03 | 33 | SYSTEM | 114 | El número de vuelo es a.\n2022-05-26 10:10:03 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:10:12 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:10:12 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15828\n2022-05-26 10:10:44 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 25 EUR establecido por SPARTAN (25.0 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:10:44 | 33 | SYSTEM | 145 | Recibo enviado KO - 25€ + 0€ (peaje)",
45
+ tollCustomer: 0.00000,
46
+ tollSupplier: 0.00000,
47
+ paymentMethodCustomer: 4,
48
+ createdBy: 146280,
49
+ bookingBreakTitle1: "Evento",
50
+ bookingBreakTitle2: "Descripción actuación",
51
+ bookingBreakTitle3: "Centro de coste",
52
+ bookingBreakTitle4: "CIF visita comercial",
53
+ bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
54
+ bookingBreakValue2: "a",
55
+ bookingBreakValue3: "",
56
+ bookingBreakValue4: "02661135N",
57
+ authorizationBreakTitle1: "Num.Empleado",
58
+ authorizationBreakTitle2: "Centro Empleado",
59
+ authorizationBreakTitle3: "ID Empresa",
60
+ authorizationBreakTitle7: "Nombre de la empresa",
61
+ authorizationBreakValue1: "U0193271",
62
+ authorizationBreakValue2: "5570",
63
+ authorizationBreakValue3: "95",
64
+ authorizationBreakValue5: "SC",
65
+ authorizationBreakValue6: "U0193271095",
66
+ authorizationBreakValue7: "FACILITIES"
67
+ },
68
+ {
69
+ id: 346248955,
70
+ idUser: 146280,
71
+ idAuthorization: 817457,
72
+ status: 30,
73
+ origin: {
74
+ addressField: "Estación de Chamartín, Madrid, España",
75
+ lat: 40.47237,
76
+ lon: -3.683141
77
+ },
78
+ destination: {
79
+ addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
80
+ lat: 40.40068,
81
+ lon: -3.698589
82
+ },
83
+ timeBookingStartRealTimestamp: 1653559749000,
84
+ asap: true,
85
+ paymentMethod: 50,
86
+ entryChannel: 15,
87
+ idSupplierFleet: 57,
88
+ idSupplier: 57,
89
+ distanceMeters: 10501,
90
+ durationMinutes: 0,
91
+ location: "MADRID",
92
+ passengerName: "Zombre Apellido1 Apellido2",
93
+ phoneNumberPassenger: "453654654",
94
+ phoneNumberTaxiDriver: "600000000",
95
+ idSupplierTaxi: "11",
96
+ idSupplierService: "15827",
97
+ cancelledWithCharge: false,
98
+ priceCustomer: "22.50000",
99
+ priceSupplier: "22.50000",
100
+ phoneNumberSupplier: "676800672",
101
+ idAuthorizationGroup: 335,
102
+ supplierTaxiDescription: "Seat León | 4",
103
+ subscriberCode: "6300",
104
+ userNumber: "93271095",
105
+ idService: 1946195317,
106
+ shared: false,
107
+ timeZone: "Europe/Madrid",
108
+ notes: "2022-05-26 10:09:09 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:09:09 | 33 | SYSTEM | 114 | El número de vuelo es 1.\n2022-05-26 10:09:09 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:09:18 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:09:18 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15827\n2022-05-26 10:09:51 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 22.5 EUR establecido por SPARTAN (22.5 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:09:52 | 33 | SYSTEM | 145 | Recibo enviado KO - 22.5€ + 0€ (peaje)",
109
+ tollCustomer: 0.00000,
110
+ tollSupplier: 0.00000,
111
+ paymentMethodCustomer: 4,
112
+ createdBy: 146280,
113
+ bookingBreakTitle1: "Evento",
114
+ bookingBreakTitle2: "Descripción actuación",
115
+ bookingBreakTitle3: "Centro de coste",
116
+ bookingBreakTitle4: "CIF visita comercial",
117
+ bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
118
+ bookingBreakValue2: "sasasa",
119
+ bookingBreakValue3: "",
120
+ bookingBreakValue4: "02661135N",
121
+ authorizationBreakTitle1: "Num.Empleado",
122
+ authorizationBreakTitle2: "Centro Empleado",
123
+ authorizationBreakTitle3: "ID Empresa",
124
+ authorizationBreakTitle7: "Nombre de la empresa",
125
+ authorizationBreakValue1: "U0193271",
126
+ authorizationBreakValue2: "5570",
127
+ authorizationBreakValue3: "95",
128
+ authorizationBreakValue5: "SC",
129
+ authorizationBreakValue6: "U0193271095",
130
+ authorizationBreakValue7: "FACILITIES"
131
+ },
132
+ {
133
+ id: 346248954,
134
+ idUser: 146280,
135
+ idAuthorization: 817457,
136
+ status: 30,
137
+ origin: {
138
+ addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
139
+ lat: 40.40068,
140
+ lon: -3.698589
141
+ },
142
+ destination: {
143
+ addressField: "Estación de Chamartín, Madrid, España",
144
+ lat: 40.47237,
145
+ lon: -3.683141
146
+ },
147
+ timeBookingStartRealTimestamp: 1653559603000,
148
+ asap: true,
149
+ paymentMethod: 50,
150
+ entryChannel: 15,
151
+ idSupplierFleet: 57,
152
+ idSupplier: 57,
153
+ distanceMeters: 10501,
154
+ durationMinutes: 0,
155
+ location: "MADRID",
156
+ passengerName: "Sandra Vicente Garcia",
157
+ phoneNumberPassenger: "453654654",
158
+ phoneNumberTaxiDriver: "600000000",
159
+ idSupplierTaxi: "11",
160
+ idSupplierService: "15826",
161
+ cancelledWithCharge: false,
162
+ priceCustomer: "23.00000",
163
+ priceSupplier: "23.00000",
164
+ phoneNumberSupplier: "676800672",
165
+ idAuthorizationGroup: 335,
166
+ supplierTaxiDescription: "Seat León | 4",
167
+ subscriberCode: "6300",
168
+ userNumber: "93271095",
169
+ idService: 1946195316,
170
+ shared: false,
171
+ timeZone: "Europe/Madrid",
172
+ notes: "2022-05-26 10:06:42 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:06:42 | 33 | SYSTEM | 114 | El número de vuelo es 1.\n2022-05-26 10:06:42 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:06:51 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:06:51 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15826\n2022-05-26 10:08:15 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 23 EUR establecido por SPARTAN (23.0 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:08:16 | 33 | SYSTEM | 145 | Recibo enviado KO - 23€ + 0€ (peaje)",
173
+ tollCustomer: 0.00000,
174
+ tollSupplier: 0.00000,
175
+ paymentMethodCustomer: 4,
176
+ createdBy: 146280,
177
+ bookingBreakTitle1: "Evento",
178
+ bookingBreakTitle2: "Descripción actuación",
179
+ bookingBreakTitle3: "Centro de coste",
180
+ bookingBreakTitle4: "CIF visita comercial",
181
+ bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
182
+ bookingBreakValue2: "sasasa",
183
+ bookingBreakValue3: "",
184
+ bookingBreakValue4: "02661135N",
185
+ authorizationBreakTitle1: "Num.Empleado",
186
+ authorizationBreakTitle2: "Centro Empleado",
187
+ authorizationBreakTitle3: "ID Empresa",
188
+ authorizationBreakTitle7: "Nombre de la empresa",
189
+ authorizationBreakValue1: "U0193271",
190
+ authorizationBreakValue2: "5570",
191
+ authorizationBreakValue3: "95",
192
+ authorizationBreakValue5: "SC",
193
+ authorizationBreakValue6: "U0193271095",
194
+ authorizationBreakValue7: "FACILITIES"
195
+ }
196
+ ],
197
+
198
+ columns: [
199
+ {
200
+ activeView: true,
201
+ sortable: true,
202
+ accessor: 'timeBookingStartRealTimestamp',
203
+ subAccessor: '',
204
+ title: 'Fecha',
205
+ viewIsFilter: true,
206
+ typeFilter: 'date',
207
+ subTypeFilter: false,
208
+ idInput: 'fecha',
209
+ nameInput: 'Fecha',
210
+ placeholder: 'Fecha'
211
+ },
212
+ {
213
+ activeView: true,
214
+ sortable: true,
215
+ accessor: 'passengerName',
216
+ subAccessor: '',
217
+ title: 'Pasajero',
218
+ viewIsFilter: true,
219
+ typeFilter: 'text',
220
+ subTypeFilter: false,
221
+ idInput: 'pasajero',
222
+ nameInput: 'Pasajero',
223
+ placeholder: 'Pasajero'
224
+ },
225
+ {
226
+ activeView: true,
227
+ sortable: true,
228
+ accessor: 'origin',
229
+ subAccessor: 'addressField',
230
+ title: 'Recogida',
231
+ viewIsFilter: true,
232
+ typeFilter: 'text',
233
+ subTypeFilter: false,
234
+ idInput: 'recogida',
235
+ nameInput: 'Recogida',
236
+ placeholder: 'Recogida'
237
+ },
238
+ {
239
+ activeView: true,
240
+ sortable: true,
241
+ accessor: 'destination',
242
+ subAccessor: 'addressField',
243
+ title: 'Destino',
244
+ viewIsFilter: true,
245
+ typeFilter: 'text',
246
+ subTypeFilter: false,
247
+ idInput: 'destino',
248
+ nameInput: 'Destino',
249
+ placeholder: 'Destino'
250
+ },
251
+ {
252
+ activeView: true,
253
+ sortable: true,
254
+ accessor: 'priceCustomer',
255
+ subAccessor: '',
256
+ title: 'Precio',
257
+ viewIsFilter: true,
258
+ typeFilter: 'text',
259
+ subTypeFilter: true,
260
+ idInput: 'precio',
261
+ nameInput: 'Precio',
262
+ placeholder: 'Precio'
263
+ },
264
+ {
265
+ activeView: false,
266
+ sortable: true,
267
+ accessor: 'id',
268
+ subAccessor: '',
269
+ title: 'ID',
270
+ viewIsFilter: true,
271
+ typeFilter: 'number',
272
+ subTypeFilter: false,
273
+ idInput: 'id',
274
+ nameInput: 'id',
275
+ placeholder: 'id'
276
+ },
277
+ {
278
+ activeView: false,
279
+ sortable: true,
280
+ accessor: 'idService',
281
+ subAccessor: '',
282
+ title: 'ID Reserva',
283
+ viewIsFilter: true,
284
+ typeFilter: 'number',
285
+ subTypeFilter: false,
286
+ idInput: 'IDReserva',
287
+ nameInput: 'ID Reserva',
288
+ placeholder: 'ID Reserva'
289
+ },
290
+ {
291
+ activeView: false,
292
+ sortable: true,
293
+ accessor: 'idSupplier',
294
+ subAccessor: '',
295
+ title: 'ID Proveedor',
296
+ viewIsFilter: true,
297
+ typeFilter: 'number',
298
+ subTypeFilter: false,
299
+ idInput: 'IDProveedor',
300
+ nameInput: 'ID Proveedor',
301
+ placeholder: 'ID Proveedor'
302
+ },
303
+ ],
304
+
305
+ }
@@ -0,0 +1,3 @@
1
+ export { default, RowTable } from './RowTable'
2
+ export { options } from './constants'
3
+ export { default as styles } from './RowTable.module.css'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "0.3.3",
3
+ "version": "0.3.6",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",
@@ -52,9 +52,16 @@
52
52
  "dependencies": {
53
53
  "classnames": "2.3.1",
54
54
  "formik": "2.2.9",
55
+ "moment": "2.29.3",
56
+ "moment-timezone": "0.5.34",
57
+ "react-date-range": "1.4.0",
55
58
  "react-icons": "4.3.1",
59
+ "react-moment": "1.1.2",
56
60
  "react-router": "6.3.0",
57
61
  "react-router-dom": "6.3.0",
62
+ "react-select": "5.3.2",
63
+ "sweetalert2": "11.4.14",
64
+ "sweetalert2-react-content": "5.0.0",
58
65
  "yup": "0.32.11"
59
66
  },
60
67
  "devDependencies": {
@@ -0,0 +1,102 @@
1
+ import React, { useState } from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import styles from './Login.module.css'
5
+ import { options } from './constants'
6
+ import withStyles from '../../hocs/withStyles'
7
+ import Picture from '../../atoms/Picture'
8
+ import Divider from '../../atoms/Divider'
9
+ import Button from '../../atoms/Button'
10
+ import Input from '../../atoms/Input'
11
+ import Label from '../../atoms/Label'
12
+ import Spacer from '../../layout/Spacer'
13
+ import CenteredContent from '../../layout/CenteredContent'
14
+ import { loginSchema } from './validation/loginSchema'
15
+
16
+
17
+ export const Login = ({ children, getStyles }) => {
18
+
19
+
20
+
21
+ // const [formValues, setFormValues] = useState({})
22
+
23
+ // const onChange = (key) => (event) => {
24
+ // const { value } = event.target
25
+ // setFormValues({ ...formValues, [key]: value })
26
+ // }
27
+
28
+
29
+
30
+ return (
31
+
32
+ <div className={getStyles('login')}>
33
+
34
+ <CenteredContent >
35
+
36
+ <Picture
37
+ src="./static/logologin.svg"
38
+ width={170}
39
+ />
40
+
41
+ <Spacer.Vertical size="md" />
42
+ <Divider color="highlight" />
43
+ <Spacer.Vertical size="md" />
44
+
45
+ <form id='loginform' onSubmit={handleSubmit}>
46
+
47
+ <Label >Email</Label>
48
+
49
+ <Input
50
+ id='email'
51
+ // value={formValues.email}
52
+ type="text"
53
+ name='email'
54
+ // onChange={formik.handleChange}
55
+ placeholder="Introduce tu email"
56
+ />
57
+
58
+ {/* <Label color="muted" isHint> {formik.errors.email}</Label> */}
59
+
60
+ <Spacer.Vertical size="md" />
61
+
62
+ <Label >Contraseña</Label>
63
+
64
+ <Input
65
+ id='password'
66
+ // value={formValues.password}
67
+ type="password"
68
+ name='password'
69
+ // onChange={formik.handleChange}
70
+ placeholder="Introduce tu contraseña"
71
+ />
72
+
73
+ {/* <Label color="muted" isHint> {formik.errors.password}</Label> */}
74
+
75
+ <Spacer.Vertical size="md" />
76
+
77
+ {/* <Button type='primary' isMuted={!(formik.isValid && formik.dirty)}> Acceder </Button> */}
78
+
79
+ </form>
80
+
81
+ {children}
82
+
83
+ </CenteredContent>
84
+
85
+ </div>
86
+ )
87
+
88
+
89
+
90
+ }
91
+
92
+ Login.propTypes = {
93
+ children: PropTypes.node,
94
+ getStyles: PropTypes.func.isRequired,
95
+ // type: PropTypes.oneOf(options.types),
96
+ }
97
+
98
+ Login.defaultProps = {
99
+ getStyles: () => { },
100
+ }
101
+
102
+ export default withStyles(styles)(Login)
@@ -0,0 +1,5 @@
1
+ .login {
2
+ display: flex;
3
+ max-width: 400px;
4
+ min-width: 300px;
5
+ }
@@ -0,0 +1,23 @@
1
+ import { Login, styles, options } from '.'
2
+
3
+ import {
4
+ getTemplate,
5
+ getListTemplate,
6
+ getOptionsArgTypes,
7
+ } from '../../helpers/storybook'
8
+
9
+ const Template = getTemplate(Login, styles)
10
+ const ListTemplate = getListTemplate(Login, styles)
11
+
12
+ export default {
13
+ title: 'Pages/Login',
14
+ component: Login,
15
+ args: {},
16
+ argTypes: {
17
+ // types: getOptionsArgTypes(options.types),
18
+ },
19
+ }
20
+
21
+ export const Default = Template.bind({})
22
+ // export const List = ListTemplate.bind({})
23
+ // List.args = { items: options.types.map((type) => ({ type })) }
@@ -0,0 +1 @@
1
+ export const options = { types: [] }
@@ -0,0 +1,3 @@
1
+ export { default, Login } from './Login'
2
+ export { options } from './constants'
3
+ export { default as styles } from './Login.module.css'
@@ -0,0 +1,5 @@
1
+ import * as Yup from 'yup'
2
+ export const loginSchema = Yup.object().shape({
3
+ email: Yup.string().email().required('Required'),
4
+ password: Yup.string().required('Required').min(3, 'Too Short!'),
5
+ })
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="170px" height="42px" viewBox="0 0 170 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>logotipo</title>
4
+ <defs>
5
+ <linearGradient x1="0%" y1="50.0030427%" x2="100%" y2="50.0030427%" id="linearGradient-1">
6
+ <stop stop-color="#ED495E" offset="0%"></stop>
7
+ <stop stop-color="#39B54A" offset="52.6050465%"></stop>
8
+ <stop stop-color="#00A3FF" offset="100%"></stop>
9
+ </linearGradient>
10
+ </defs>
11
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
12
+ <g id="fullcolor_positivo" transform="translate(-70.000000, -46.000000)" fill="url(#linearGradient-1)">
13
+ <path d="M175.713077,67.7540277 L175.713077,87.0631181 L182.139472,87.0631181 L182.139472,67.7540277 C182.139472,64.9417213 184.426502,62.6529572 187.239242,62.6529572 L206.049494,62.6529572 L206.049494,56.725834 L186.73997,56.725834 C180.650323,56.725834 175.713077,61.6630808 175.713077,67.7540277 L175.713077,67.7540277 Z M199.623532,87.0631181 L206.049494,87.0631181 L206.049494,65.4973349 L199.623532,65.4973349 L199.623532,87.0631181 Z M224.479224,62.6529572 L240,62.6529572 L240,56.725834 L223.979952,56.725834 C217.889872,56.725834 212.952191,61.6630808 212.952191,67.7540277 L212.952191,76.0349244 C212.952191,82.1258712 217.889872,87.0631181 223.979952,87.0631181 L240,87.0631181 L240,81.1355615 L224.479224,81.1355615 C221.666051,81.1355615 219.378587,78.8472308 219.378587,76.0349244 L219.378587,67.7540277 C219.378587,64.9417213 221.666051,62.6529572 224.479224,62.6529572 L224.479224,62.6529572 Z M158.104632,56.725834 L147.764238,56.725834 C144.951498,56.725834 142.663167,54.4379367 142.663167,51.6260637 L142.663167,46.5718 L136.237639,46.5718 L136.237639,51.6260637 C136.237639,57.7157104 141.175319,62.6529572 147.264966,62.6529572 L157.606227,62.6529572 C160.418966,62.6529572 162.705997,64.9417213 162.705997,67.7540277 L162.705997,76.0349244 C162.705997,78.8472308 160.418966,81.1355615 157.606227,81.1355615 L146.015052,81.1355615 L146.015052,87.0631181 L158.104632,87.0631181 C164.195579,87.0631181 169.132392,82.1258712 169.132392,76.0349244 L169.132392,67.7540277 C169.132392,61.6630808 164.195579,56.725834 158.104632,56.725834 L158.104632,56.725834 Z M199.623532,53.8823231 L206.049494,53.8823231 L206.049494,46.5718 L199.623532,46.5718 L199.623532,53.8823231 Z M84.2140874,87.0631181 L90.639616,87.0631181 L90.639616,65.4973349 L84.2140874,65.4973349 L84.2140874,87.0631181 Z M136.237639,60.0278779 L136.237639,87.0631181 L142.663167,87.0631181 L142.663167,64.7107213 C140.090962,63.8018899 137.86374,62.1575856 136.237639,60.0278779 L136.237639,60.0278779 Z M70,53.8823231 L76.4263953,53.8823231 L76.4263953,46.5718 L70,46.5718 L70,53.8823231 Z M70,87.0631181 L76.4263953,87.0631181 L76.4263953,56.725834 L70,56.725834 L70,87.0631181 Z M98.7714244,56.725834 L84.2140874,56.725834 L84.2140874,62.6529572 L98.2725857,62.6529572 C101.084459,62.6529572 103.371923,64.9417213 103.371923,67.7540277 L103.371923,87.0631181 L109.798318,87.0631181 L109.798318,67.7540277 C109.798318,61.6630808 104.861504,56.725834 98.7714244,56.725834 L98.7714244,56.725834 Z M117.930126,56.725834 L107.173672,56.725834 C109.163393,58.2457537 110.730119,60.291816 111.667555,62.6529572 L117.430854,62.6529572 C120.244027,62.6529572 122.531925,64.9417213 122.531925,67.7540277 L122.531925,87.0631181 L128.957453,87.0631181 L128.957453,67.7540277 C128.957453,61.6630808 124.02064,56.725834 117.930126,56.725834 L117.930126,56.725834 Z" id="logotipo"></path>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -10,6 +10,7 @@ const ATOMIC_DESIGN_TYPES = {
10
10
  atom: 'atoms',
11
11
  molecule: 'molecules',
12
12
  layout: 'layout',
13
+ pages: 'pages',
13
14
  }
14
15
  const COMPONENT_TEMPLATE_PATH = 'templates/component'
15
16
 
@@ -88,7 +89,7 @@ async function getPromptParams() {
88
89
  type: 'select',
89
90
  name: 'type',
90
91
  message: 'What kind of component would you like to create?',
91
- choices: ['atom', 'molecule', 'layout'],
92
+ choices: ['atom', 'molecule', 'layout', 'pages'],
92
93
  initial: 'atom',
93
94
  })
94
95