imbric-theme 0.3.2 → 0.3.5

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 (130) 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 +49 -0
  10. package/atoms/Checkbox/Checkbox.module.css +3 -0
  11. package/atoms/Checkbox/Checkbox.stories.js +28 -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 +21 -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/Paragraph/Paragraph.module.css +4 -0
  29. package/hook/useAddColumn.js +40 -0
  30. package/hook/useStateDate.js +25 -0
  31. package/hook/useTable.js +45 -0
  32. package/index.js +22 -1
  33. package/jest.config.js +1 -1
  34. package/layout/DynamicTable/DynamicTable.js +172 -0
  35. package/layout/DynamicTable/DynamicTable.module.css +63 -0
  36. package/layout/DynamicTable/DynamicTable.stories.js +77 -0
  37. package/layout/DynamicTable/constants.js +323 -0
  38. package/layout/DynamicTable/index.js +3 -0
  39. package/layout/Navbar/Navbar.js +19 -11
  40. package/layout/Navbar/Navbar.module.css +4 -2
  41. package/layout/Navbar/Navbar.stories.js +2 -1
  42. package/layout/Sidebar/Sidebar.js +6 -3
  43. package/layout/Sidebar/Sidebar.module.css +1 -10
  44. package/layout/Sidebar/Sidebar.stories.js +1 -1
  45. package/layout/Sidebar/constants.js +228 -205
  46. package/molecules/CheckList/CheckList.js +135 -0
  47. package/molecules/CheckList/CheckList.module.css +94 -0
  48. package/molecules/CheckList/CheckList.stories.js +25 -0
  49. package/molecules/CheckList/constants.js +23 -0
  50. package/molecules/CheckList/index.js +3 -0
  51. package/molecules/ColumnTable/ColumnTable.js +124 -0
  52. package/molecules/ColumnTable/ColumnTable.module.css +22 -0
  53. package/molecules/ColumnTable/ColumnTable.stories.js +26 -0
  54. package/molecules/ColumnTable/constants.js +111 -0
  55. package/molecules/ColumnTable/index.js +3 -0
  56. package/molecules/DatePicker/DatePicker.js +236 -0
  57. package/molecules/DatePicker/DatePicker.module.css +38 -0
  58. package/molecules/DatePicker/DatePicker.stories.js +23 -0
  59. package/molecules/DatePicker/constants.js +3 -0
  60. package/molecules/DatePicker/index.js +3 -0
  61. package/molecules/Dropdown/Dropdown.js +25 -22
  62. package/molecules/Dropdown/Dropdown.module.css +21 -3
  63. package/molecules/DynamicSelect/DynamicSelect.js +109 -0
  64. package/molecules/DynamicSelect/DynamicSelect.module.css +10 -0
  65. package/molecules/DynamicSelect/DynamicSelect.stories.js +32 -0
  66. package/molecules/DynamicSelect/constants.js +7 -0
  67. package/molecules/DynamicSelect/index.js +3 -0
  68. package/molecules/Error/Error.js +2 -2
  69. package/molecules/Error/Error.module.css +3 -2
  70. package/molecules/FooterTable/FooterTable.js +47 -0
  71. package/molecules/FooterTable/FooterTable.module.css +37 -0
  72. package/molecules/FooterTable/FooterTable.stories.js +23 -0
  73. package/molecules/FooterTable/constants.js +1 -0
  74. package/molecules/FooterTable/index.js +3 -0
  75. package/molecules/ItemMenu/ItemMenu.js +35 -24
  76. package/molecules/ItemMenu/ItemMenu.module.css +13 -4
  77. package/molecules/ItemMenu/ItemMenu.stories.js +2 -0
  78. package/molecules/ItemMenu/constants.js +3 -0
  79. package/molecules/RowTable/RowTable.js +68 -0
  80. package/molecules/RowTable/RowTable.module.css +22 -0
  81. package/molecules/RowTable/RowTable.stories.js +26 -0
  82. package/molecules/RowTable/constants.js +305 -0
  83. package/molecules/RowTable/index.js +3 -0
  84. package/package.json +11 -2
  85. package/pages/Login/Login.js +102 -0
  86. package/pages/Login/Login.module.css +5 -0
  87. package/pages/Login/Login.stories.js +23 -0
  88. package/pages/Login/constants.js +1 -0
  89. package/pages/Login/index.js +3 -0
  90. package/pages/Login/validation/loginSchema.js +5 -0
  91. package/public/static/logologin.svg +16 -0
  92. package/scripts/create-component.js +2 -1
  93. package/storybook-static/0.263f852f.iframe.bundle.js +1 -0
  94. package/storybook-static/0.91dbd3f3aa2099d25061.manager.bundle.js +1 -0
  95. package/storybook-static/1.17e9ac7e.iframe.bundle.js +3 -0
  96. package/storybook-static/1.17e9ac7e.iframe.bundle.js.LICENSE.txt +8 -0
  97. package/storybook-static/1.17e9ac7e.iframe.bundle.js.map +1 -0
  98. package/storybook-static/2.cc4000c2.iframe.bundle.js +1 -0
  99. package/storybook-static/3.e9f95d01.iframe.bundle.js +1 -0
  100. package/storybook-static/4.be0a752c9f5176d6eec1.manager.bundle.js +2 -0
  101. package/storybook-static/4.be0a752c9f5176d6eec1.manager.bundle.js.LICENSE.txt +8 -0
  102. package/storybook-static/5.8efdde123acaf8fbb100.manager.bundle.js +1 -0
  103. package/storybook-static/6.2f82294ae0b087aecb24.manager.bundle.js +2 -0
  104. package/storybook-static/6.2f82294ae0b087aecb24.manager.bundle.js.LICENSE.txt +12 -0
  105. package/storybook-static/7.97068037.iframe.bundle.js +1 -0
  106. package/storybook-static/7.fa9452d2609e8a00f314.manager.bundle.js +1 -0
  107. package/storybook-static/8.66f5ef1c66fc4628f127.manager.bundle.js +1 -0
  108. package/storybook-static/8.b545d602.iframe.bundle.js +3 -0
  109. package/storybook-static/8.b545d602.iframe.bundle.js.LICENSE.txt +12 -0
  110. package/storybook-static/8.b545d602.iframe.bundle.js.map +1 -0
  111. package/storybook-static/9.269ed917.iframe.bundle.js +1 -0
  112. package/storybook-static/favicon.ico +0 -0
  113. package/storybook-static/iframe.html +348 -0
  114. package/storybook-static/index.html +59 -0
  115. package/storybook-static/main.157061c9.iframe.bundle.js +1 -0
  116. package/storybook-static/main.5a07347846ccf2d7e5dc.manager.bundle.js +1 -0
  117. package/storybook-static/runtime~main.a14e6e62.iframe.bundle.js +1 -0
  118. package/storybook-static/runtime~main.f78c3fae275fc212c109.manager.bundle.js +1 -0
  119. package/storybook-static/static/logo.svg +19 -0
  120. package/storybook-static/static/logologin.svg +16 -0
  121. package/storybook-static/static/logotipo.svg +50 -0
  122. package/storybook-static/static/logotipoS.svg +26 -0
  123. package/storybook-static/vendors~main.720e76f4.iframe.bundle.js +3 -0
  124. package/storybook-static/vendors~main.720e76f4.iframe.bundle.js.LICENSE.txt +110 -0
  125. package/storybook-static/vendors~main.720e76f4.iframe.bundle.js.map +1 -0
  126. package/storybook-static/vendors~main.fcd0b2a3431ddf75f5f7.manager.bundle.js +2 -0
  127. package/storybook-static/vendors~main.fcd0b2a3431ddf75f5f7.manager.bundle.js.LICENSE.txt +101 -0
  128. package/styles/globals.css +592 -0
  129. package/styles/tokens.css +2 -1
  130. package/tokens/index.js +2 -1
@@ -0,0 +1,323 @@
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
+ opAddColumns: [
306
+ {
307
+ label: 'ID',
308
+ value: 'id',
309
+ activeView: false,
310
+ },
311
+ {
312
+ label: 'ID Reserva',
313
+ value: 'idService',
314
+ activeView: false,
315
+ },
316
+ {
317
+ label: 'ID Proveedor',
318
+ value: 'idSupplier',
319
+ activeView: false,
320
+ }
321
+ ]
322
+
323
+ }
@@ -0,0 +1,3 @@
1
+ export { default, DynamicTable } from './DynamicTable'
2
+ export { options } from './constants'
3
+ export { default as styles } from './DynamicTable.module.css'
@@ -6,16 +6,14 @@ import withStyles from '../../hocs/withStyles'
6
6
  import Heading from '../../atoms/Heading/Heading'
7
7
  import Tabs from '../../molecules/Tabs/Tabs'
8
8
 
9
- export const Navbar = ({ getStyles, isPlayground, children }) => {
9
+ export const Navbar = ({ getStyles, viewTabsNav, viewOptionsNav, children, linkLogout }) => {
10
10
  return (
11
11
  <>
12
- <header className={getStyles('navbar', {
13
- 'is-playground': isPlayground,
14
- })}>
12
+ <header className={getStyles('navbar')}>
15
13
 
16
14
  <Heading
17
- color="primary"
18
- size="sm"
15
+ color="base"
16
+ size="xs"
19
17
  weight="light"
20
18
  isInline
21
19
  >
@@ -50,14 +48,21 @@ export const Navbar = ({ getStyles, isPlayground, children }) => {
50
48
  view: true
51
49
  }
52
50
  ]}
53
- viewTabs
51
+ viewTabs={viewTabsNav}
54
52
  />
55
53
 
56
54
 
57
55
  {/* <div className={getStyles('navbar__title', 'navbar__item')}>Taksee</div> */}
58
56
  {/* <div className={getStyles('navbar__item')}>Legal</div>
59
57
  <div className={getStyles('navbar__item')}>User Guide</div> */}
60
- <div className={getStyles('navbar__item')}>Logout</div>
58
+
59
+ {viewOptionsNav ? (
60
+ <div onClick={linkLogout} className={getStyles('navbar__item', { 'is-playground': viewTabsNav })}>
61
+ Logout
62
+ </div>
63
+ ) : null}
64
+
65
+
61
66
  </header>
62
67
 
63
68
 
@@ -67,12 +72,15 @@ export const Navbar = ({ getStyles, isPlayground, children }) => {
67
72
 
68
73
  Navbar.propTypes = {
69
74
  getStyles: PropTypes.func.isRequired,
70
- children: PropTypes.string.isRequired,
71
- isPlayground: PropTypes.bool,
75
+ children: PropTypes.any.isRequired,
76
+ viewTabsNav: PropTypes.bool,
77
+ viewOptionsNav: PropTypes.bool,
78
+ linkLogout: PropTypes.func,
72
79
  }
73
80
 
74
81
  Navbar.defaultProps = {
75
- isPlayground: false,
82
+ viewTabsNav: false,
83
+ viewOptionsNav: true,
76
84
  getStyles: () => { },
77
85
  }
78
86
 
@@ -6,13 +6,15 @@
6
6
 
7
7
  .navbar {
8
8
  display: flex;
9
- flex-shrink: 0;
10
9
  align-items: center;
10
+ justify-content: space-between;
11
+ flex-shrink: 0;
11
12
  color: #000;
12
- background-color: #FFFFFF;
13
13
  box-shadow: 0px 1px 4px rgb(100 116 139 / 12%);
14
14
  width: calc(100%);
15
15
  padding-left: 18px;
16
+ min-height: 51px;
17
+ background-color: #f2fcfc;
16
18
  }
17
19
 
18
20
  .navbar__title {
@@ -8,7 +8,8 @@ export default {
8
8
  title: 'Layout/Navbar',
9
9
  component: Navbar,
10
10
  args: {
11
- isPlayground: true,
11
+ viewTabsNav: false,
12
+ viewOptionsNav: true,
12
13
  children: 'Taksee',
13
14
  },
14
15
  argTypes: {
@@ -2,7 +2,7 @@ import React, { ReactNode, useRef, useState, useEffect } from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import withStyles from '../../hocs/withStyles'
4
4
 
5
- import { options } from './constants'
5
+ // import { options } from './constants'
6
6
 
7
7
  import styles from './Sidebar.module.css'
8
8
 
@@ -11,7 +11,7 @@ import Icon from '../../atoms/Icon'
11
11
  import Divider from '../../atoms/Divider'
12
12
  import ItemMenu from '../../molecules/ItemMenu/ItemMenu'
13
13
 
14
- export const Sidebar = ({ getStyles, menuCollapseView }) => {
14
+ export const Sidebar = ({ getStyles, menuCollapseView, options }) => {
15
15
 
16
16
 
17
17
  return (
@@ -57,16 +57,19 @@ export const Sidebar = ({ getStyles, menuCollapseView }) => {
57
57
 
58
58
  <ul>
59
59
 
60
- {options.itemsMenu.map((item, index) => (
60
+ {options.map((item, index) => (
61
61
  item.view ?
62
62
  <ItemMenu
63
63
  key={index}
64
64
  icon={item.icon}
65
65
  subMenu={item.viewSubMenu}
66
66
  itemSubmenu={item.submenu}
67
+ itemHref={item.href}
68
+ itemActive={item.active}
67
69
  >
68
70
  {item.text}
69
71
  </ItemMenu>
72
+
70
73
  : null
71
74
 
72
75
  ))}
@@ -95,6 +95,7 @@
95
95
  .pro-sidebar-content {
96
96
  flex-grow: 1;
97
97
  margin-top: 38px;
98
+ background-color: #f2fcfc;
98
99
  }
99
100
 
100
101
  .pro-sidebar-inner .pro-sidebar-layout ul {
@@ -177,16 +178,6 @@
177
178
  color: #adadad;
178
179
  }
179
180
 
180
- .pro-menu a:before {
181
- content: '';
182
- position: absolute;
183
- top: 0;
184
- right: 0;
185
- bottom: 0;
186
- left: 0;
187
- background-color: transparent;
188
- }
189
-
190
181
  .pro-menu a:hover {
191
182
  color: #d8d8d8;
192
183
  }
@@ -9,7 +9,7 @@ export default {
9
9
  title: 'Layout/Sidebar',
10
10
  component: Sidebar,
11
11
  args: {
12
- options: options.itemsMenu,
12
+ options: options,
13
13
  menuCollapseView: false,
14
14
  },
15
15
  argTypes: {