imbric-theme 0.5.9 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ {
2
+ "editor.formatOnSave": true
3
+ }
package/Dockerfile CHANGED
@@ -8,7 +8,6 @@ COPY . /app/
8
8
 
9
9
  ## build app stage
10
10
  RUN yarn install --network-timeout 200000 \
11
- && yarn add next@11 react@18 react-dom@18 --network-timeout 200000 \
12
11
  && yarn build
13
12
 
14
13
  ## final image stage
@@ -20,8 +20,8 @@ export const getListTemplate = (Component, styles) => ({ items, ...args }) =>
20
20
  )
21
21
  })
22
22
 
23
- export const getOptionsArgTypes = (options) => ({
24
- description: '**options:**',
23
+ export const getOptionsArgTypes = (options, description = '**Options:**') => ({
24
+ description: description,
25
25
  table: {
26
26
  type: { summary: options.map((option) => `'${option}'`).join('|') },
27
27
  },
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  .logotext {
71
- padding: 13px 20px;
71
+ padding: 15px 20px;
72
72
  }
73
73
 
74
74
  .closemenu {
@@ -157,7 +157,7 @@
157
157
  display: none;
158
158
  }
159
159
 
160
- .header.collapsed>.pro-sidebar>.pro-sidebar-inner>.pro-sidebar-layout >.pro-sidebar-header {
160
+ .header.collapsed>.pro-sidebar>.pro-sidebar-inner>.pro-sidebar-layout>.pro-sidebar-header {
161
161
  width: 80px;
162
162
  min-width: 80px;
163
163
  }
@@ -33,7 +33,18 @@ export const CardServiceDetail = ({
33
33
  txtSmsDriverService,
34
34
  onClickCross,
35
35
  txtTootipCross,
36
- selectCard,
36
+ labelUserService,
37
+ labelZoneService,
38
+ labelTimeTotalService,
39
+ labelDistanceService,
40
+ labelServiceService,
41
+ labelPayService,
42
+ labelPriceService,
43
+ labelRefService,
44
+ labelModelCarService,
45
+ labelCarNumberService,
46
+ labelNumberDriverService,
47
+ labelSmsDriverService,
37
48
  }) => {
38
49
 
39
50
  // STATE TOOLTIP
@@ -81,7 +92,7 @@ export const CardServiceDetail = ({
81
92
  color="highlight"
82
93
  />
83
94
   
84
- Creado por:
95
+ {labelUserService}
85
96
  </Label>
86
97
 
87
98
  <p className={getStyles('card-content-p')}>&nbsp; {txtUserService}</p>
@@ -101,7 +112,7 @@ export const CardServiceDetail = ({
101
112
  color="highlight"
102
113
  />
103
114
  &nbsp;
104
- Recogida
115
+ {labelZoneService}
105
116
  </Label>
106
117
 
107
118
  <p className={getStyles('card-content-p')}>{txtZoneService}</p>
@@ -117,7 +128,7 @@ export const CardServiceDetail = ({
117
128
  color="highlight"
118
129
  />
119
130
  &nbsp;
120
- Tiempo estimado
131
+ {labelTimeTotalService}
121
132
  </Label>
122
133
 
123
134
  <p className={getStyles('card-content-p')}>{txtTimeTotalService}</p>
@@ -133,7 +144,7 @@ export const CardServiceDetail = ({
133
144
  color="highlight"
134
145
  />
135
146
  &nbsp;
136
- Distancia
147
+ {labelDistanceService}
137
148
  </Label>
138
149
 
139
150
  <p className={getStyles('card-content-p')}>{txtDistanceService}</p>
@@ -142,7 +153,6 @@ export const CardServiceDetail = ({
142
153
 
143
154
  </div>
144
155
 
145
-
146
156
  <div className={getStyles('card-content')}>
147
157
 
148
158
  <div className={getStyles('card-subcontent')}>
@@ -154,7 +164,7 @@ export const CardServiceDetail = ({
154
164
  color="highlight"
155
165
  />
156
166
  &nbsp;
157
- Servicio
167
+ {labelServiceService}
158
168
  </Label>
159
169
 
160
170
  <p className={getStyles('card-content-p')}>{txtServiceService}</p>
@@ -170,7 +180,7 @@ export const CardServiceDetail = ({
170
180
  color="highlight"
171
181
  />
172
182
  &nbsp;
173
- Método de pago
183
+ {labelPayService}
174
184
  </Label>
175
185
 
176
186
  <p className={getStyles('card-content-p')}>{txtPayService}</p>
@@ -186,7 +196,7 @@ export const CardServiceDetail = ({
186
196
  color="highlight"
187
197
  />
188
198
  &nbsp;
189
- Precio estimado
199
+ {labelPriceService}
190
200
  </Label>
191
201
 
192
202
  <p className={getStyles('card-content-p')}>{txtPriceService}</p>
@@ -195,7 +205,6 @@ export const CardServiceDetail = ({
195
205
 
196
206
  </div>
197
207
 
198
-
199
208
  <div className={getStyles('card-content')}>
200
209
 
201
210
  <div className={getStyles('card-subcontent')}>
@@ -207,7 +216,7 @@ export const CardServiceDetail = ({
207
216
  color="highlight"
208
217
  />
209
218
  &nbsp;
210
- Proveedor
219
+ {labelRefService}
211
220
  </Label>
212
221
 
213
222
  <p className={getStyles('card-content-p')}>{txtRefService}</p>
@@ -223,7 +232,7 @@ export const CardServiceDetail = ({
223
232
  color="highlight"
224
233
  />
225
234
  &nbsp;
226
- Modelo
235
+ {labelModelCarService}
227
236
  </Label>
228
237
 
229
238
  <p className={getStyles('card-content-p')}>{txtModelCarService}</p>
@@ -239,7 +248,7 @@ export const CardServiceDetail = ({
239
248
  color="highlight"
240
249
  />
241
250
  &nbsp;
242
- Matrícula
251
+ {labelCarNumberService}
243
252
  </Label>
244
253
 
245
254
  <p className={getStyles('card-content-p')}>{txtCarNumberService}</p>
@@ -259,7 +268,7 @@ export const CardServiceDetail = ({
259
268
  color="highlight"
260
269
  />
261
270
  &nbsp;
262
- Telefono conductor
271
+ {labelNumberDriverService}
263
272
  </Label>
264
273
 
265
274
  <p className={getStyles('card-content-p')}>{txtNumberDriverService}</p>
@@ -275,7 +284,7 @@ export const CardServiceDetail = ({
275
284
  color="highlight"
276
285
  />
277
286
  &nbsp;
278
- Mensaje al conductor
287
+ {labelSmsDriverService}
279
288
  </Label>
280
289
 
281
290
  <p className={getStyles('card-content-p')}>{txtSmsDriverService}</p>
@@ -341,6 +350,18 @@ CardServiceDetail.propTypes = {
341
350
  onClickCross: PropTypes.func,
342
351
  txtTootipCross: PropTypes.string,
343
352
  selectCard: PropTypes.bool,
353
+ labelUserService: PropTypes.string,
354
+ labelZoneService: PropTypes.string,
355
+ labelTimeTotalService: PropTypes.string,
356
+ labelDistanceService: PropTypes.string,
357
+ labelServiceService: PropTypes.string,
358
+ labelPayService: PropTypes.string,
359
+ labelPriceService: PropTypes.string,
360
+ labelRefService: PropTypes.string,
361
+ labelModelCarService: PropTypes.string,
362
+ labelCarNumberService: PropTypes.string,
363
+ labelNumberDriverService: PropTypes.string,
364
+ labelSmsDriverService: PropTypes.string,
344
365
  }
345
366
 
346
367
  CardServiceDetail.defaultProps = {
@@ -362,6 +383,18 @@ CardServiceDetail.defaultProps = {
362
383
  onClickCross: () => { },
363
384
  txtTootipCross: 'Cerrar',
364
385
  selectCard: false,
386
+ labelUserService: 'Creado por:',
387
+ labelZoneService: 'Recogida',
388
+ labelTimeTotalService: 'Tiempo estimado',
389
+ labelDistanceService: 'Distancia',
390
+ labelServiceService: 'Servicio',
391
+ labelPayService: 'Método de pago',
392
+ labelPriceService: 'Precio estimado',
393
+ labelRefService: 'Proveedor',
394
+ labelModelCarService: ' Modelo',
395
+ labelCarNumberService: ' Matrícula',
396
+ labelNumberDriverService: ' Telefono conductor',
397
+ labelSmsDriverService: 'Mensaje al conductor',
365
398
  }
366
399
 
367
400
  export default withStyles(styles)(CardServiceDetail)
@@ -34,8 +34,15 @@ export const CardServices = ({
34
34
  txtTootipEdit,
35
35
  onClickTrash,
36
36
  txtTootipTrash,
37
+ txtTootipCircleStatus,
37
38
  selectCard,
38
39
  statusService,
40
+ labelOriginService,
41
+ labelDestinationService,
42
+ labelServiceService,
43
+ labelUserService,
44
+ labelRefService,
45
+ labelUserNumberService,
39
46
  }) => {
40
47
 
41
48
  // STATE TOOLTIP
@@ -85,7 +92,7 @@ export const CardServices = ({
85
92
  color="highlight"
86
93
  />
87
94
  &nbsp;
88
- Origen
95
+ {labelOriginService}
89
96
  </Label>
90
97
 
91
98
  <p className={getStyles('card-content-p')}>{txtOriginService}</p>
@@ -105,7 +112,7 @@ export const CardServices = ({
105
112
  color="highlight"
106
113
  />
107
114
  &nbsp;
108
- Destino
115
+ {labelDestinationService}
109
116
  </Label>
110
117
 
111
118
  <p className={getStyles('card-content-p')}>{txtDestinationService}</p>
@@ -129,7 +136,7 @@ export const CardServices = ({
129
136
  color="highlight"
130
137
  />
131
138
  &nbsp;
132
- Servicio
139
+ {labelServiceService}
133
140
  </Label>
134
141
 
135
142
  <p className={getStyles('card-content-p')}>{txtServiceService}</p>
@@ -149,7 +156,7 @@ export const CardServices = ({
149
156
  color="highlight"
150
157
  />
151
158
  &nbsp;
152
- Pasajero
159
+ {labelUserService}
153
160
  </Label>
154
161
 
155
162
  <p className={getStyles('card-content-p')}>{txtUserService}</p>
@@ -173,7 +180,7 @@ export const CardServices = ({
173
180
  color="highlight"
174
181
  />
175
182
  &nbsp;
176
- REF
183
+ {labelRefService}
177
184
  </Label>
178
185
 
179
186
  <p className={getStyles('card-content-p')}>{txtRefService}</p>
@@ -193,7 +200,7 @@ export const CardServices = ({
193
200
  color="highlight"
194
201
  />
195
202
  &nbsp;
196
- Usuario
203
+ {labelUserNumberService}
197
204
  </Label>
198
205
 
199
206
  <p className={getStyles('card-content-p')}>{txtUserNumberService}</p>
@@ -215,7 +222,7 @@ export const CardServices = ({
215
222
  onMouseLeave={handleMouseLeave}
216
223
  >
217
224
  <Icon
218
- color="highlight"
225
+ color="highlight"
219
226
  id='userViewIcon'
220
227
  isClickable
221
228
  name="userView"
@@ -243,7 +250,7 @@ export const CardServices = ({
243
250
  onMouseLeave={handleMouseLeave}
244
251
  >
245
252
  <Icon
246
- color="highlight"
253
+ color="highlight"
247
254
  id='returnOrderIcon'
248
255
  isClickable
249
256
  name="returnOrder"
@@ -271,7 +278,7 @@ export const CardServices = ({
271
278
  onMouseLeave={handleMouseLeave}
272
279
  >
273
280
  <Icon
274
- color="highlight"
281
+ color="highlight"
275
282
  id='repeatOrderIcon'
276
283
  isClickable
277
284
  name="repeatOrder"
@@ -300,7 +307,7 @@ export const CardServices = ({
300
307
  onMouseLeave={handleMouseLeave}
301
308
  >
302
309
  <Icon
303
- color="highlight"
310
+ color="highlight"
304
311
  id='editIcon'
305
312
  isClickable
306
313
  name="edit"
@@ -329,7 +336,7 @@ export const CardServices = ({
329
336
  onMouseLeave={handleMouseLeave}
330
337
  >
331
338
  <Icon
332
- color="highlight"
339
+ color="highlight"
333
340
  id='trashIcon'
334
341
  isClickable
335
342
  name="trash"
@@ -350,15 +357,30 @@ export const CardServices = ({
350
357
 
351
358
  <div className={getStyles('card-subcontent-action')}>
352
359
 
353
- <Icon
354
- className={getStyles(
355
- { 'icon-view-status10': statusService === 10 || -30 },
356
- { 'icon-view-status20': statusService === 20 },
357
- // { 'icon-view-status30': statusService === 30 || -20 || -40 },
358
- )}
359
- name="circleStatus"
360
- size="sm"
361
- />
360
+ <span
361
+ data-tip
362
+ data-for='circleStatus'
363
+ onMouseEnter={handleMouseEnter}
364
+ onMouseLeave={handleMouseLeave}
365
+ >
366
+
367
+ <Icon
368
+ className={getStyles(
369
+ { 'icon-view-status10': statusService === 10 || -30 },
370
+ { 'icon-view-status20': statusService === 20 },
371
+ // { 'icon-view-status30': statusService === 30 || -20 || -40 },
372
+ )}
373
+ name="circleStatus"
374
+ size="sm"
375
+ />
376
+
377
+ </span>
378
+
379
+ {isToolTipMounted ? (
380
+ <ReactTooltip id='circleStatus' type='error'>
381
+ <span>{txtTootipCircleStatus}</span>
382
+ </ReactTooltip>
383
+ ) : null}
362
384
 
363
385
  </div>
364
386
 
@@ -390,8 +412,15 @@ CardServices.propTypes = {
390
412
  txtTootipEdit: PropTypes.string,
391
413
  onClickTrash: PropTypes.func,
392
414
  txtTootipTrash: PropTypes.string,
415
+ txtTootipCircleStatus: PropTypes.string,
393
416
  selectCard: PropTypes.bool,
394
417
  statusService: PropTypes.number,
418
+ labelOriginService: PropTypes.string,
419
+ labelDestinationService: PropTypes.string,
420
+ labelServiceService: PropTypes.string,
421
+ labelUserService: PropTypes.string,
422
+ labelRefService: PropTypes.string,
423
+ labelUserNumberService: PropTypes.string,
395
424
  }
396
425
 
397
426
  CardServices.defaultProps = {
@@ -413,8 +442,15 @@ CardServices.defaultProps = {
413
442
  txtTootipEdit: 'Editar servicio (solo se puede editar 60min. antes)',
414
443
  onClickTrash: () => { },
415
444
  txtTootipTrash: 'Cancelar servicio',
445
+ txtTootipCircleStatus: '',
416
446
  selectCard: false,
417
447
  statusService: 10,
448
+ labelOriginService: 'Origen',
449
+ labelDestinationService: 'Destino',
450
+ labelServiceService: 'Servicio',
451
+ labelUserService: 'Pasajero',
452
+ labelRefService: 'REF',
453
+ labelUserNumberService: 'Usuario',
418
454
  }
419
455
 
420
456
  export default withStyles(styles)(CardServices)
@@ -30,6 +30,7 @@ export const CardServicesFinalized = ({
30
30
  txtTootipReturnOrder,
31
31
  onClickRepeatOrder,
32
32
  txtTootipRepeatOrder,
33
+ txtTootipCircleStatus,
33
34
  onClickEdit,
34
35
  txtTootipEdit,
35
36
  onClickTrash,
@@ -215,7 +216,7 @@ export const CardServicesFinalized = ({
215
216
  onMouseLeave={handleMouseLeave}
216
217
  >
217
218
  <Icon
218
- color="highlight"
219
+ color="highlight"
219
220
  id='userViewIcon'
220
221
  isClickable
221
222
  name="userView"
@@ -243,7 +244,7 @@ export const CardServicesFinalized = ({
243
244
  onMouseLeave={handleMouseLeave}
244
245
  >
245
246
  <Icon
246
- color="highlight"
247
+ color="highlight"
247
248
  id='returnOrderIcon'
248
249
  isClickable
249
250
  name="returnOrder"
@@ -271,7 +272,7 @@ export const CardServicesFinalized = ({
271
272
  onMouseLeave={handleMouseLeave}
272
273
  >
273
274
  <Icon
274
- color="highlight"
275
+ color="highlight"
275
276
  id='repeatOrderIcon'
276
277
  isClickable
277
278
  name="repeatOrder"
@@ -293,22 +294,37 @@ export const CardServicesFinalized = ({
293
294
 
294
295
  <div className={getStyles('card-subcontent-action')}>
295
296
 
296
- <Icon
297
- className={getStyles(
298
- // { 'icon-view-status10': statusService === 10 || -30 },
299
- // { 'icon-view-status20': statusService === 20 },
300
- { 'icon-view-status30': statusService === 30 || -20 || -40 },
301
- )}
302
- name="circleStatus"
303
- size="sm"
304
- />
297
+ <span
298
+ data-tip
299
+ data-for='circleStatus'
300
+ onMouseEnter={handleMouseEnter}
301
+ onMouseLeave={handleMouseLeave}
302
+ >
303
+
304
+ <Icon
305
+ className={getStyles(
306
+ // { 'icon-view-status10': statusService === 10 || -30 },
307
+ // { 'icon-view-status20': statusService === 20 },
308
+ { 'icon-view-status30': statusService === 30 || -20 || -40 },
309
+ )}
310
+ name="circleStatus"
311
+ size="sm"
312
+ />
313
+
314
+ </span>
315
+
316
+ {isToolTipMounted ? (
317
+ <ReactTooltip id='circleStatus' type='error'>
318
+ <span>{txtTootipCircleStatus}</span>
319
+ </ReactTooltip>
320
+ ) : null}
305
321
 
306
322
  </div>
307
323
 
308
324
  </div>
309
325
 
310
326
  {/* {children} */}
311
- </div>
327
+ </div >
312
328
  )
313
329
  }
314
330
 
@@ -335,6 +351,7 @@ CardServicesFinalized.propTypes = {
335
351
  txtTootipTrash: PropTypes.string,
336
352
  selectCard: PropTypes.bool,
337
353
  statusService: PropTypes.number,
354
+ txtTootipCircleStatus: PropTypes.string
338
355
  }
339
356
 
340
357
  CardServicesFinalized.defaultProps = {
@@ -358,6 +375,7 @@ CardServicesFinalized.defaultProps = {
358
375
  txtTootipTrash: 'Cancelar servicio',
359
376
  selectCard: false,
360
377
  statusService: 10,
378
+ txtTootipCircleStatus: '',
361
379
  }
362
380
 
363
381
  export default withStyles(styles)(CardServicesFinalized)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imbric-theme",
3
- "version": "0.5.9",
3
+ "version": "0.6.1",
4
4
  "description": "Components library IMBRIC",
5
5
  "private": false,
6
6
  "main": "index.js",
@@ -97,6 +97,7 @@
97
97
  "jest": "26.4.2",
98
98
  "lint-staged": "10.3.0",
99
99
  "minireset.css": "0.0.6",
100
+ "next": "11",
100
101
  "npm-run-all": "4.1.5",
101
102
  "prettier": "2.1.1",
102
103
  "react": "18",