imbric-theme 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/atoms/Icon/constants.js +228 -142
- package/index.js +2 -0
- package/layout/DynamicTable/DynamicTable.js +48 -42
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.js +57 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.module.css +71 -0
- package/molecules/CardProductTypesBooking/CardProductTypesBooking.stories.js +25 -0
- package/molecules/CardProductTypesBooking/constants.js +1 -0
- package/molecules/CardProductTypesBooking/index.js +3 -0
- package/molecules/CardServices/CardServices.js +287 -0
- package/molecules/CardServices/CardServices.module.css +93 -0
- package/molecules/CardServices/CardServices.stories.js +41 -0
- package/molecules/CardServices/constants.js +5 -0
- package/molecules/CardServices/index.js +3 -0
- package/molecules/ItemMenu/ItemMenu.js +2 -0
- package/molecules/RowTable/RowTable.js +68 -57
- package/molecules/RowTable/constants.js +33 -16
- package/package.json +1 -1
- package/public/static/images/user-svgrepo-com (1).svg +27 -0
- package/public/static/images/user-svgrepo-com (2).svg +24 -0
- package/public/static/images/user-svgrepo-com (3).svg +24 -0
- package/public/static/images/user-svgrepo-com.svg +31 -0
package/atoms/Icon/constants.js
CHANGED
@@ -270,148 +270,6 @@ export const iconsMap = {
|
|
270
270
|
</>
|
271
271
|
),
|
272
272
|
},
|
273
|
-
// home: {
|
274
|
-
// viewBox: '-1 0 20 20',
|
275
|
-
// svg: (
|
276
|
-
// <>
|
277
|
-
// <path
|
278
|
-
// fillRule="evenodd"
|
279
|
-
// clipRule="evenodd"
|
280
|
-
// d="M15.247 16.9411H1.69412C0.760093 16.9411 0 16.181 0 15.247V2.82351C0 1.88949 0.633599 1.12939 1.41176 1.12939H2.25882V2.25881H1.41176C1.31463 2.25881 1.12941 2.47904 1.12941 2.82351V15.247C1.12941 15.5582 1.38296 15.8117 1.69412 15.8117H15.247C15.5582 15.8117 15.8117 15.5582 15.8117 15.247V2.82351C15.8117 2.47904 15.6265 2.25881 15.5294 2.25881H14.6823V1.12939H15.5294C16.3076 1.12939 16.9412 1.88949 16.9412 2.82351V15.247C16.9412 16.181 16.1811 16.9411 15.247 16.9411Z"
|
281
|
-
// />
|
282
|
-
// <path
|
283
|
-
// fillRule="evenodd"
|
284
|
-
// clipRule="evenodd"
|
285
|
-
// d="M3.95289 3.38823C3.64117 3.38823 3.38818 3.13524 3.38818 2.82353V0.564705C3.38818 0.252988 3.64117 0 3.95289 0C4.26461 0 4.51759 0.252988 4.51759 0.564705V2.82353C4.51759 3.13524 4.26461 3.38823 3.95289 3.38823Z"
|
286
|
-
// />
|
287
|
-
// <path
|
288
|
-
// fillRule="evenodd"
|
289
|
-
// clipRule="evenodd"
|
290
|
-
// d="M12.9883 3.38823C12.6766 3.38823 12.4236 3.13524 12.4236 2.82353V0.564705C12.4236 0.252988 12.6766 0 12.9883 0C13.3 0 13.553 0.252988 13.553 0.564705V2.82353C13.553 3.13524 13.3 3.38823 12.9883 3.38823Z"
|
291
|
-
// />
|
292
|
-
// <path
|
293
|
-
// fillRule="evenodd"
|
294
|
-
// clipRule="evenodd"
|
295
|
-
// d="M5.64722 1.12939H11.2943V2.25881H5.64722V1.12939Z"
|
296
|
-
// />
|
297
|
-
// <path
|
298
|
-
// fillRule="evenodd"
|
299
|
-
// clipRule="evenodd"
|
300
|
-
// d="M1.12939 4.51758H15.8117V5.64699H1.12939V4.51758Z"
|
301
|
-
// />
|
302
|
-
// <path
|
303
|
-
// fillRule="evenodd"
|
304
|
-
// clipRule="evenodd"
|
305
|
-
// d="M13.553 6.77649H14.6824V7.9059H13.553V6.77649Z"
|
306
|
-
// />
|
307
|
-
// <path
|
308
|
-
// fillRule="evenodd"
|
309
|
-
// clipRule="evenodd"
|
310
|
-
// d="M11.2939 6.77649H12.4234V7.9059H11.2939V6.77649Z"
|
311
|
-
// />
|
312
|
-
// <path
|
313
|
-
// fillRule="evenodd"
|
314
|
-
// clipRule="evenodd"
|
315
|
-
// d="M9.0354 6.77649H10.1648V7.9059H9.0354V6.77649Z"
|
316
|
-
// />
|
317
|
-
// <path
|
318
|
-
// fillRule="evenodd"
|
319
|
-
// clipRule="evenodd"
|
320
|
-
// d="M6.77637 6.77649H7.90578V7.9059H6.77637V6.77649Z"
|
321
|
-
// />
|
322
|
-
// <path
|
323
|
-
// fillRule="evenodd"
|
324
|
-
// clipRule="evenodd"
|
325
|
-
// d="M4.51758 6.77649H5.64699V7.9059H4.51758V6.77649Z"
|
326
|
-
// />
|
327
|
-
// <path
|
328
|
-
// fillRule="evenodd"
|
329
|
-
// clipRule="evenodd"
|
330
|
-
// d="M13.553 9.0354H14.6824V10.1648H13.553V9.0354Z"
|
331
|
-
// />
|
332
|
-
// <path
|
333
|
-
// fillRule="evenodd"
|
334
|
-
// clipRule="evenodd"
|
335
|
-
// d="M11.2939 9.0354H12.4234V10.1648H11.2939V9.0354Z"
|
336
|
-
// />
|
337
|
-
// <path
|
338
|
-
// fillRule="evenodd"
|
339
|
-
// clipRule="evenodd"
|
340
|
-
// d="M9.0354 9.0354H10.1648V10.1648H9.0354V9.0354Z"
|
341
|
-
// />
|
342
|
-
// <path
|
343
|
-
// fillRule="evenodd"
|
344
|
-
// clipRule="evenodd"
|
345
|
-
// d="M6.77637 9.0354H7.90578V10.1648H6.77637V9.0354Z"
|
346
|
-
// />
|
347
|
-
// <path
|
348
|
-
// fillRule="evenodd"
|
349
|
-
// clipRule="evenodd"
|
350
|
-
// d="M4.51758 9.0354H5.64699V10.1648H4.51758V9.0354Z"
|
351
|
-
// />
|
352
|
-
// <path
|
353
|
-
// fillRule="evenodd"
|
354
|
-
// clipRule="evenodd"
|
355
|
-
// d="M2.25879 9.0354H3.3882V10.1648H2.25879V9.0354Z"
|
356
|
-
// />
|
357
|
-
// <path
|
358
|
-
// fillRule="evenodd"
|
359
|
-
// clipRule="evenodd"
|
360
|
-
// d="M13.553 11.2941H14.6824V12.4235H13.553V11.2941Z"
|
361
|
-
// />
|
362
|
-
// <path
|
363
|
-
// fillRule="evenodd"
|
364
|
-
// clipRule="evenodd"
|
365
|
-
// d="M11.2939 11.2941H12.4234V12.4235H11.2939V11.2941Z"
|
366
|
-
// />
|
367
|
-
// <path
|
368
|
-
// fillRule="evenodd"
|
369
|
-
// clipRule="evenodd"
|
370
|
-
// d="M9.0354 11.2941H10.1648V12.4235H9.0354V11.2941Z"
|
371
|
-
// />
|
372
|
-
// <path
|
373
|
-
// fillRule="evenodd"
|
374
|
-
// clipRule="evenodd"
|
375
|
-
// d="M6.77637 11.2941H7.90578V12.4235H6.77637V11.2941Z"
|
376
|
-
// />
|
377
|
-
// <path
|
378
|
-
// fillRule="evenodd"
|
379
|
-
// clipRule="evenodd"
|
380
|
-
// d="M4.51758 11.2941H5.64699V12.4235H4.51758V11.2941Z"
|
381
|
-
// />
|
382
|
-
// <path
|
383
|
-
// fillRule="evenodd"
|
384
|
-
// clipRule="evenodd"
|
385
|
-
// d="M2.25879 11.2941H3.3882V12.4235H2.25879V11.2941Z"
|
386
|
-
// />
|
387
|
-
// <path
|
388
|
-
// fillRule="evenodd"
|
389
|
-
// clipRule="evenodd"
|
390
|
-
// d="M11.2939 13.553H12.4234V14.6824H11.2939V13.553Z"
|
391
|
-
// />
|
392
|
-
// <path
|
393
|
-
// fillRule="evenodd"
|
394
|
-
// clipRule="evenodd"
|
395
|
-
// d="M9.0354 13.553H10.1648V14.6824H9.0354V13.553Z"
|
396
|
-
// />
|
397
|
-
// <path
|
398
|
-
// fillRule="evenodd"
|
399
|
-
// clipRule="evenodd"
|
400
|
-
// d="M6.77637 13.553H7.90578V14.6824H6.77637V13.553Z"
|
401
|
-
// />
|
402
|
-
// <path
|
403
|
-
// fillRule="evenodd"
|
404
|
-
// clipRule="evenodd"
|
405
|
-
// d="M4.51758 13.553H5.64699V14.6824H4.51758V13.553Z"
|
406
|
-
// />
|
407
|
-
// <path
|
408
|
-
// fillRule="evenodd"
|
409
|
-
// clipRule="evenodd"
|
410
|
-
// d="M2.25879 13.553H3.3882V14.6824H2.25879V13.553Z"
|
411
|
-
// />
|
412
|
-
// </>
|
413
|
-
// ),
|
414
|
-
// },
|
415
273
|
tasks: {
|
416
274
|
viewBox: '-1 -3 20 20',
|
417
275
|
svg: (
|
@@ -719,6 +577,234 @@ export const iconsMap = {
|
|
719
577
|
</>
|
720
578
|
),
|
721
579
|
},
|
580
|
+
editProperty: {
|
581
|
+
viewBox: '0 0 24 24',
|
582
|
+
svg: (
|
583
|
+
<>
|
584
|
+
<path d="M1.3,0C0.6,0,0,0.6,0,1.3v2.4c0,0.1,0,0.1,0,0.1v15.4c0,0.3,0.2,0.5,0.5,0.5h11.1c0.2,0,0.3-0.1,0.4-0.2
|
585
|
+
c0.1-0.2,0.1-0.3,0-0.5c-0.1-0.2-0.3-0.2-0.4-0.2H1V4.4h19.3v6.3c0,0.2,0.1,0.3,0.2,0.4c0.2,0.1,0.3,0.1,0.5,0
|
586
|
+
c0.2-0.1,0.2-0.3,0.2-0.4V3.9c0-0.1,0-0.1,0-0.1V1.3c0-0.7-0.6-1.3-1.3-1.3H1.3z M1.3,1h18.5c0.2,0,0.4,0.2,0.4,0.4v2H0.9v-2
|
587
|
+
C1,1.1,1.1,1,1.3,1z M3.4,7.2v1h1.9v-1H3.4z M6.7,7.2v1h11.1v-1H6.7z M3.4,9.6v1h1.9v-1H3.4z M6.7,9.6v1h11.1v-1H6.7z M22.1,12
|
588
|
+
c-0.5,0-1,0.2-1.4,0.6l-0.3,0.3l0,0L13,20.3c-0.1,0.1-0.1,0.1-0.2,0.2L12,23.4c-0.1,0.2,0,0.4,0.1,0.5s0.3,0.2,0.5,0.1l2.9-0.7
|
589
|
+
c0.1,0,0.2-0.1,0.2-0.2l7.6-7.5c0.1-0.1,0.1-0.1,0.2-0.2l0,0l0.1-0.1c0.7-0.7,0.7-2,0-2.8C23.1,12.2,22.6,12,22.1,12z M3.4,12v1h1.9
|
590
|
+
v-1H3.4z M6.7,12v1h11.1v-1H6.7z M21.1,13.6l1.4,1.4l-7.4,7.3L13.8,21v-0.1L21.1,13.6z M3.4,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-6.1h1.7v6.1C17.3,23,16.2,24.1,14.7,24.1z"/>
|
607
|
+
<path d="M16.5,18.9H4.3c-0.5,0-0.9-0.4-0.9-0.9s0.4-0.9,0.9-0.9h12.1c0.5,0,0.9,0.4,0.9,0.9S16.9,18.9,16.5,18.9z" />
|
608
|
+
</>
|
609
|
+
),
|
610
|
+
},
|
611
|
+
originOrder: {
|
612
|
+
viewBox: '0 0 24 24',
|
613
|
+
svg: (
|
614
|
+
<>
|
615
|
+
<path id="path-1_1_" d="M12,0c6.3,0,12,5.7,12,12c0,6.6-5.4,12-12,12S0,18.6,0,12C0,5.7,5.7,0,12,0z M12,1.2C6.9,1.2,1.2,5.8,1.2,12
|
616
|
+
C1.2,18,6,22.8,12,22.8S22.8,18,22.8,12C22.8,5.8,17.1,1.2,12,1.2z M17,6.4l-4.2,12.2l-1.9-6.1l-6.1-1.9L17,6.4z"/>
|
617
|
+
</>
|
618
|
+
),
|
619
|
+
},
|
620
|
+
destinationOrder: {
|
621
|
+
viewBox: '0 0 24 24',
|
622
|
+
svg: (
|
623
|
+
<>
|
624
|
+
<path id="path-1_1_" d="M1.5,0.8C1.2,0.8,1,1,1,1.2v21.6c0,0.3,0.2,0.5,0.5,0.5h1.8c0.3,0,0.5-0.2,0.5-0.5v-7.7h17.4
|
625
|
+
c0.3,0,0.5-0.2,0.5-0.5V1.2c0-0.3-0.2-0.5-0.5-0.5H1.5z M3.7,1.4h4v4.1H12V1.4h4.4v4.1h4v4.6h-4v4.1H12v-4.1H7.6v4.1h-4v-4.1h4V5.5
|
626
|
+
h-4V1.4z M12,10.4h4.5V5.9H12C12,5.9,12,10.4,12,10.4z"/>
|
627
|
+
</>
|
628
|
+
),
|
629
|
+
},
|
630
|
+
calendar: {
|
631
|
+
viewBox: '0 0 24 24',
|
632
|
+
svg: (
|
633
|
+
<>
|
634
|
+
<path id="path-1_1_" d="M4.9,0.6c0.6,0,1.1,0.5,1.1,1.1v0.1v0.8h10.7V1.7c0-0.6,0.5-1.1,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H13.4z M3.3,3.3H2.2
|
643
|
+
v2.6h18.4V3.3h-1.1c0,0.6-0.5,1-1,1.1h-0.1h-0.7c-0.6,0-1-0.5-1.1-1V3.3H6.3c0,0.6-0.5,1-1,1.1L5.2,4.4H4.4C3.9,4.4,3.3,4,3.3,3.3z
|
644
|
+
M18.7,1.4h-0.8c-0.2,0-0.3,0.2-0.4,0.3v0.1v1.5c0,0.2,0.2,0.3,0.3,0.4h0.1h0.8c0.2,0,0.3-0.2,0.4-0.3V3.3V1.7
|
645
|
+
C19.1,1.5,18.9,1.4,18.7,1.4z M4.9,1.4H4.2C4,1.4,3.8,1.5,3.8,1.7v0.1v1.5c0,0.2,0.2,0.3,0.3,0.4h0.1h0.8c0.2,0,0.3-0.2,0.4-0.3V3.3
|
646
|
+
V1.7C5.3,1.5,5.1,1.4,4.9,1.4z"/>
|
647
|
+
</>
|
648
|
+
),
|
649
|
+
},
|
650
|
+
reference: {
|
651
|
+
viewBox: '0 0 24 24',
|
652
|
+
svg: (
|
653
|
+
<>
|
654
|
+
<path d="M20.5,3.5C18.2,1.2,15.2,0,12,0C8.8,0,5.8,1.2,3.5,3.5C1.2,5.8,0,8.8,0,12c0,6.6,5.4,12,12,12c6.6,0,12-5.4,12-12
|
655
|
+
C24,8.8,22.8,5.8,20.5,3.5z M12,22.5C6.2,22.5,1.5,17.8,1.5,12c0-2.8,1.1-5.5,3.1-7.5c2-2,4.6-3.1,7.5-3.1c2.8,0,5.5,1.1,7.5,3.1
|
656
|
+
c2,2,3.1,4.6,3.1,7.5C22.5,17.8,17.8,22.5,12,22.5z"/>
|
657
|
+
<path d="M12,11.1c-0.2,0-0.5,0.1-0.6,0.3c-0.2,0.2-0.3,0.4-0.3,0.6c0,0.5,0.4,0.9,0.9,0.9s0.9-0.4,0.9-0.9c0-0.2-0.1-0.5-0.3-0.6
|
658
|
+
C12.5,11.2,12.2,11.1,12,11.1z"/>
|
659
|
+
<path d="M19.3,11h-1.5c-0.1-0.4-0.2-0.7-0.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c0.3,0,0.7-0.2,0.8-0.5c0.3-0.5,0.1-1.1-0.4-1.3l-1.3-0.7
|
668
|
+
c0.1-0.3,0.2-0.7,0.3-1.1h1.5c0.5,0,1-0.4,1-1C20.3,11.5,19.8,11,19.3,11z M12,16C12,16,12,16,12,16C12,16,12,16,12,16
|
669
|
+
c-2.2,0-4-1.8-4-4c0-1.1,0.4-2,1.2-2.8C10,8.5,10.9,8,12,8c1.1,0,2,0.4,2.8,1.2C15.5,10,16,10.9,16,12C16,14.2,14.2,16,12,16z"/>
|
670
|
+
</>
|
671
|
+
),
|
672
|
+
},
|
673
|
+
userNumber: {
|
674
|
+
viewBox: '0 0 24 24',
|
675
|
+
svg: (
|
676
|
+
<>
|
677
|
+
<path d="M11.9,4.9H9.9C9.8,4.9,9.8,5,9.8,5.1v10.4H9.6L2.4,5c0,0-0.1-0.1-0.1-0.1h-2C0.1,4.9,0,5,0,5.1v14.2c0,0.1,0.1,0.2,0.2,0.2
|
678
|
+
h1.9c0.1,0,0.2-0.1,0.2-0.2V8.7h0.2l7.3,10.7c0,0,0.1,0.1,0.2,0.1h2c0.1,0,0.2-0.1,0.2-0.2V5.1C12.1,5,12,4.9,11.9,4.9z M23.4,17.5
|
679
|
+
h-9.3c-0.1,0-0.2,0.1-0.2,0.2v1.5c0,0.1,0.1,0.2,0.2,0.2h9.3c0.1,0,0.2-0.1,0.2-0.2v-1.5C23.7,17.6,23.6,17.5,23.4,17.5z M18.8,15.6
|
680
|
+
c1.6,0,2.9-0.5,3.9-1.6c0.9-1,1.3-2.3,1.3-3.9c0-1.6-0.4-3-1.3-4c-0.9-1.1-2.2-1.6-3.9-1.6c-1.6,0-2.9,0.5-3.9,1.6
|
681
|
+
c-0.9,1-1.3,2.3-1.3,3.9c0,1.6,0.4,2.9,1.3,3.9C15.9,15.1,17.2,15.6,18.8,15.6z M16.6,7.5c0.5-0.6,1.2-0.9,2.2-0.9
|
682
|
+
c1,0,1.7,0.3,2.2,0.9c0.5,0.6,0.8,1.5,0.8,2.6s-0.3,2-0.8,2.6c-0.5,0.6-1.2,0.9-2.2,0.9c-1,0-1.7-0.3-2.2-0.9
|
683
|
+
c-0.5-0.6-0.8-1.4-0.8-2.5C15.9,9,16.1,8.1,16.6,7.5L16.6,7.5z"/>
|
684
|
+
</>
|
685
|
+
),
|
686
|
+
},
|
687
|
+
userView: {
|
688
|
+
viewBox: '0 0 24 24',
|
689
|
+
svg: (
|
690
|
+
<>
|
691
|
+
<path id="Shape" d="M12,4.4c-6.6,0-11.9,6.7-11.9,6.7c-0.2,0.2-0.2,0.5,0,0.7c0,0,5.2,6.7,11.9,6.7s11.9-6.7,11.9-6.7
|
692
|
+
c0.2-0.2,0.2-0.5,0-0.7C23.9,11.1,18.6,4.4,12,4.4z M12,6c1.2,0,2.3,0.3,3.3,0.7c0.7,0.8,1.1,2,1.1,3.2c0,2.7-2,4.8-4.4,4.8
|
693
|
+
s-4.4-2.1-4.4-4.8c0-1.3,0.4-2.4,1.1-3.2C9.7,6.3,10.8,6,12,6z M6.9,7.3C6.6,8.1,6.4,9.1,6.4,10c0,3.4,2.5,6.2,5.6,6.2
|
694
|
+
s5.6-2.8,5.6-6.2c0-0.9-0.2-1.8-0.6-2.7c2.7,1.5,4.6,3.6,5.1,4.2c-0.8,0.9-5,5.7-10.1,5.7s-9.4-4.8-10.1-5.7
|
695
|
+
C2.4,10.9,4.3,8.8,6.9,7.3z M12,7.1c-1.4,0-2.5,1.2-2.5,2.7s1.1,2.7,2.5,2.7s2.5-1.2,2.5-2.7S13.4,7.1,12,7.1z M12,8.2
|
696
|
+
c0.8,0,1.5,0.7,1.5,1.7s-0.7,1.6-1.5,1.6s-1.5-0.7-1.5-1.7S11.2,8.2,12,8.2z"/>
|
697
|
+
</>
|
698
|
+
),
|
699
|
+
},
|
700
|
+
returnOrder: {
|
701
|
+
viewBox: '0 0 24 24',
|
702
|
+
svg: (
|
703
|
+
<>
|
704
|
+
<path d="M17.8,8.1H3.6l2.9-2.9c0.4-0.4,0.4-1.1,0-1.5C6.1,3.3,5.4,3.3,5,3.7L0.3,8.4c-0.4,0.4-0.4,1.1,0,1.5L5,14.6
|
705
|
+
c0.2,0.2,0.5,0.3,0.7,0.3c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1.1,0-1.5l-2.9-2.9h14.2c2.3,0,4.1,1.8,4.1,4.1s-1.8,4.1-4.1,4.1H9.1
|
706
|
+
c-0.6,0-1,0.5-1,1c0,0.6,0.5,1,1,1h8.6c3.4,0,6.2-2.8,6.2-6.2S21.2,8.1,17.8,8.1z"/>
|
707
|
+
</>
|
708
|
+
),
|
709
|
+
},
|
710
|
+
repeatOrder: {
|
711
|
+
viewBox: '0 0 24 24',
|
712
|
+
svg: (
|
713
|
+
<>
|
714
|
+
<path d="M17.9,18.7H7.3c-2.8,0-6.9-1.8-6.9-6.9s4.1-6.9,6.9-6.9h9.4c2.8,0,6.9,1.8,6.9,6.9c0,1.8-0.5,3.4-1.6,4.6
|
715
|
+
c-0.4,0.4-1,0.5-1.4,0.1c-0.4-0.4-0.5-1-0.1-1.4c0.7-0.8,1.1-1.9,1.1-3.3c0-4.8-4.7-4.9-4.9-4.9H7.3c-0.2,0-4.9,0.1-4.9,4.9
|
716
|
+
s4.7,4.9,4.9,4.9h10.6c0.6,0,1,0.4,1,1S18.4,18.7,17.9,18.7z"/>
|
717
|
+
<path d="M14.9,21.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l2.2-2.2l-2.2-2.2c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l2.9,2.9
|
718
|
+
c0.4,0.4,0.4,1,0,1.4l-2.9,2.9C15.5,21.5,15.2,21.6,14.9,21.6z"/>
|
719
|
+
</>
|
720
|
+
),
|
721
|
+
},
|
722
|
+
edit: {
|
723
|
+
viewBox: '0 0 24 24',
|
724
|
+
svg: (
|
725
|
+
<>
|
726
|
+
<path d="M22.1,1.9c-2-2-5.2-2-7.2,0L1.6,15.2c-0.1,0.1-0.2,0.2-0.2,0.4l-1,7.3c0,0.2,0,0.4,0.2,0.6c0.1,0.1,0.3,0.2,0.5,0.2
|
727
|
+
c0,0,0.1,0,0.1,0L5.6,23c0.4,0,0.6-0.4,0.6-0.7c0-0.4-0.4-0.6-0.7-0.6l-3.5,0.5L2.6,17l5.3,5.3c0.1,0.1,0.3,0.2,0.5,0.2
|
728
|
+
s0.3-0.1,0.5-0.2L22.1,9.2c1-1,1.5-2.2,1.5-3.6S23,2.9,22.1,1.9z M15.1,3.6l2.2,2.2L5.3,17.9L3,15.6L15.1,3.6z M8.4,21l-2.2-2.2
|
729
|
+
L18.3,6.7l2.2,2.2L8.4,21z M21.4,7.9l-5.3-5.3c0.7-0.6,1.5-0.9,2.4-0.9c1,0,2,0.4,2.7,1.1s1.1,1.7,1.1,2.7
|
730
|
+
C22.2,6.4,21.9,7.3,21.4,7.9z"/>
|
731
|
+
</>
|
732
|
+
),
|
733
|
+
},
|
734
|
+
circleStatus: {
|
735
|
+
viewBox: '0 0 24 24',
|
736
|
+
svg: (
|
737
|
+
<>
|
738
|
+
<circle cx="12" cy="12" r="12" />
|
739
|
+
</>
|
740
|
+
),
|
741
|
+
},
|
742
|
+
anotherUser: {
|
743
|
+
viewBox: '0 0 24 24',
|
744
|
+
svg: (
|
745
|
+
<>
|
746
|
+
<path d="M10.2,11.7c1.3,0,2.6-0.8,3.7-2.3c0.9-1.3,1.4-2.9,1.4-4.3C15.3,2.3,13,0,10.2,0C7.4,0,5.1,2.3,5.1,5.1
|
747
|
+
c0,1.4,0.5,3,1.4,4.3C7.6,10.9,8.9,11.7,10.2,11.7z M10.2,0.8c2.4,0,4.3,1.9,4.3,4.3c0,1.2-0.5,2.7-1.3,3.8
|
748
|
+
c-0.9,1.2-1.9,1.9-3,1.9s-2.1-0.7-3-1.9C6.4,7.8,5.9,6.3,5.9,5.1C5.9,2.8,7.9,0.8,10.2,0.8z"/>
|
749
|
+
<path d="M12.2,21.6C12.2,21.6,12.2,21.6,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
774
|
+
<path d="M10.4,11.7c1.3,0,2.6-0.8,3.7-2.3c0.9-1.3,1.4-2.9,1.4-4.3c0-2.8-2.3-5.1-5.1-5.1C7.5,0,5.3,2.3,5.3,5.1
|
775
|
+
c0,1.4,0.5,3,1.4,4.3C7.7,10.9,9,11.7,10.4,11.7z M10.4,0.8c2.4,0,4.3,1.9,4.3,4.3c0,1.2-0.5,2.7-1.3,3.8c-0.9,1.2-1.9,1.9-3,1.9
|
776
|
+
s-2.1-0.7-3-1.9C6.6,7.8,6.1,6.3,6.1,5.1C6.1,2.8,8,0.8,10.4,0.8z"/>
|
777
|
+
<path d="M15.4,21C15.4,21,15.4,21,15.4,21L15.4,21z"/>
|
778
|
+
<path d="M15,20.7c-0.2,0-0.3,0.1-0.4,0.3c-0.1,0.4,0.3,0.7,0.6,0.5c0.2-0.1,0.2-0.3,0.1-0.5C15.4,20.8,15.2,20.7,15,20.7z"/>
|
779
|
+
</>
|
780
|
+
),
|
781
|
+
},
|
782
|
+
|
783
|
+
forAnother: {
|
784
|
+
viewBox: '0 0 24 24',
|
785
|
+
svg: (
|
786
|
+
<>
|
787
|
+
<path d="M5.6,5.2c0,1.4,0.5,3,1.5,4.3c1,1.5,2.4,2.3,3.7,2.3s2.7-0.8,3.7-2.3C15.4,8.2,16,6.6,16,5.2C16,2.3,13.6,0,10.8,0
|
788
|
+
C7.9,0,5.6,2.3,5.6,5.2z M10.8,0.8c2.4,0,4.3,1.9,4.3,4.3c0,1.2-0.5,2.7-1.3,3.8c-0.9,1.2-2,1.9-3,1.9s-2.1-0.7-3-1.9
|
789
|
+
C7,7.9,6.5,6.4,6.5,5.2C6.5,2.8,8.4,0.8,10.8,0.8z"/>
|
790
|
+
<path d="M13,22C13,22,13,22,13,22c0-0.1-0.1-0.1-0.1-0.1c-0.2-0.2-0.4-0.2-0.6,0c-0.2,0.2-0.2,0.4,0,0.6c0.2,0.2,0.4,0.2,0.6,0
|
791
|
+
C13,22.3,13.1,22.2,13,22C13,22,13,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z M18.5,18.8
|
801
|
+
c-0.1,0.1-0.1,0.2-0.1,0.4l0.2,1.3l-1.2-0.6c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1,0-0.2,0l-1.2,0.6l0.2-1.3c0-0.1,0-0.3-0.1-0.4
|
802
|
+
L15,17.9l1.3-0.2c0.1,0,0.3-0.1,0.3-0.2l0.6-1.2l0.6,1.2c0.1,0.1,0.2,0.2,0.3,0.2l1.3,0.2L18.5,18.8z"/>
|
803
|
+
</>
|
804
|
+
),
|
805
|
+
},
|
806
|
+
|
807
|
+
|
722
808
|
}
|
723
809
|
|
724
810
|
|
package/index.js
CHANGED
@@ -36,6 +36,8 @@ export { default as Tab } from './atoms/Tab'
|
|
36
36
|
export { default as Accordion } from './molecules/Accordion'
|
37
37
|
export { default as AddButton } from './molecules/AddButton'
|
38
38
|
export { default as ButtonIcon } from './molecules/ButtonIcon'
|
39
|
+
export { default as CardServices } from './molecules/CardServices'
|
40
|
+
export { default as CardProductTypesBooking } from './molecules/CardProductTypesBooking'
|
39
41
|
export { default as Dropdown } from './molecules/Dropdown'
|
40
42
|
export { default as LoadingError } from './molecules/LoadingError'
|
41
43
|
export { default as Score } from './molecules/Score'
|
@@ -16,7 +16,7 @@ import LoadingError from '../../molecules/LoadingError'
|
|
16
16
|
// import useStateDate from '../../hook/useStateDate';
|
17
17
|
|
18
18
|
|
19
|
-
export const DynamicTable = ({ getStyles, optionsData, opColumns, opAddColumns, isLayoutDate, isViewRange, isViewAddColumn, isViewDownloadDoc, handleAddColumn, handleSelectRange, handleDownloadExcel, labelDinamicSelect, placeholderDinamicSelect, labelSinceDateRange, labelTillDateRange }) => {
|
19
|
+
export const DynamicTable = ({ getStyles, optionsData, opColumns, opAddColumns, isLayoutDate, isViewRange, isViewAddColumn, isViewDownloadDoc, handleAddColumn, handleSelectRange, handleDownloadExcel, handleDefaultValue, labelDinamicSelect, placeholderDinamicSelect, isLoadingDinamicSelect, labelSinceDateRange, labelTillDateRange }) => {
|
20
20
|
|
21
21
|
const [tableData, setTableData] = useState(optionsData);
|
22
22
|
const [columnsData, setColumnsData] = useState(opColumns);
|
@@ -86,62 +86,68 @@ export const DynamicTable = ({ getStyles, optionsData, opColumns, opAddColumns,
|
|
86
86
|
|
87
87
|
return (
|
88
88
|
|
89
|
-
|
90
|
-
<div className={getStyles('opFunction')}>
|
91
89
|
|
92
|
-
|
93
|
-
<div className={getStyles('opFunctionBox1')}>
|
94
|
-
<DatePicker
|
95
|
-
isLayoutDate={isLayoutDate}
|
96
|
-
onChangeRange={handleSelectRange}
|
97
|
-
sinceDateRange={labelSinceDateRange}
|
98
|
-
tillDateRange={labelTillDateRange}
|
99
|
-
/>
|
100
|
-
</div>
|
101
|
-
) : null}
|
90
|
+
<div className={getStyles('opFunction')}>
|
102
91
|
|
103
|
-
|
92
|
+
{isViewRange ? (
|
93
|
+
<div className={getStyles('opFunctionBox1')}>
|
94
|
+
<DatePicker
|
95
|
+
isLayoutDate={isLayoutDate}
|
96
|
+
onChangeRange={handleSelectRange}
|
97
|
+
sinceDateRange={labelSinceDateRange}
|
98
|
+
tillDateRange={labelTillDateRange}
|
99
|
+
/>
|
100
|
+
</div>
|
101
|
+
) : null}
|
104
102
|
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
<div className={getStyles('opFunctionBox2')}>
|
104
|
+
|
105
|
+
{isViewAddColumn ? (
|
106
|
+
<div className={getStyles('opFunctionBox3')}>
|
107
|
+
<Label>{labelDinamicSelect}</Label>
|
108
|
+
|
109
|
+
{isLoadingDinamicSelect ?
|
108
110
|
<DynamicSelect
|
109
111
|
isMulti
|
110
112
|
isInline
|
111
113
|
onChange={handleAddColumn}
|
112
114
|
optionsSelect={addColumsData}
|
113
115
|
placeholder={placeholderDinamicSelect}
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
{isViewDownloadDoc ? (
|
119
|
-
<div className={getStyles('opFunctionBox3')}>
|
120
|
-
<Icon
|
121
|
-
key="fileDownload"
|
122
|
-
background="inverted"
|
123
|
-
name="fileDownload"
|
124
|
-
onClick={handleDownloadExcel}
|
125
|
-
/>
|
126
|
-
</div>
|
127
|
-
) : null}
|
116
|
+
defaultValue={handleDefaultValue}
|
117
|
+
// defaultValue= { [{value: 'id', label: 'ID'}, {value: 'idService', label: 'ID Reserva'}] }
|
118
|
+
/> : null
|
119
|
+
}
|
128
120
|
|
129
|
-
|
121
|
+
</div>
|
122
|
+
) : null}
|
123
|
+
<Horizontal size="md" />
|
124
|
+
{isViewDownloadDoc ? (
|
125
|
+
<div className={getStyles('opFunctionBox3')}>
|
126
|
+
<Icon
|
127
|
+
key="fileDownload"
|
128
|
+
background="inverted"
|
129
|
+
name="fileDownload"
|
130
|
+
onClick={handleDownloadExcel}
|
131
|
+
/>
|
132
|
+
</div>
|
133
|
+
) : null}
|
130
134
|
|
131
135
|
</div>
|
132
136
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
137
|
+
</div>
|
138
|
+
|
139
|
+
// <ColumnTable
|
140
|
+
// handleSorting={handleSorting}
|
141
|
+
// onChangeInput={onChangeInput}
|
142
|
+
// columnsData={columnsData}
|
143
|
+
// >
|
144
|
+
// {item.title}
|
145
|
+
// </ColumnTable>
|
146
|
+
|
147
|
+
// <RowTable slice={slice} columnsData={columnsData}></RowTable>
|
140
148
|
|
141
|
-
|
149
|
+
// <FooterTable range={range} slice={slice} setPage={setPage} page={page} />
|
142
150
|
|
143
|
-
// <FooterTable range={range} slice={slice} setPage={setPage} page={page} />
|
144
|
-
|
145
151
|
|
146
152
|
)
|
147
153
|
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import PropTypes from 'prop-types'
|
3
|
+
|
4
|
+
import styles from './CardProductTypesBooking.module.css'
|
5
|
+
import { options } from './constants'
|
6
|
+
import withStyles from '../../hocs/withStyles'
|
7
|
+
import Picture from '../../atoms/Picture'
|
8
|
+
import { Horizontal, Vertical } from '../../layout/Spacer/components'
|
9
|
+
|
10
|
+
export const CardProductTypesBooking = ({ srcImg, getStyles }) => {
|
11
|
+
return <div className={getStyles('card-product-types-booking')}>
|
12
|
+
|
13
|
+
<div className={getStyles('labelNotification')}>
|
14
|
+
Reserve 2 h antes de la salida de su vuelo si es nacional, 3 h antes si es internacional.
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div className={getStyles('card-product-content')}>
|
18
|
+
|
19
|
+
<div>
|
20
|
+
<Picture
|
21
|
+
src={srcImg}
|
22
|
+
width={110}
|
23
|
+
// height={100}
|
24
|
+
/>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<Horizontal size="sm" />
|
28
|
+
|
29
|
+
<div>
|
30
|
+
<div className={getStyles('titleCardProductTypes')}>ECO (Tarifa máxima)</div>
|
31
|
+
<div className={getStyles('etaCardProductTypesSub')}>4 - 8 min.</div>
|
32
|
+
<div className={getStyles('titleCardProductTypesSub')}>Envío urgente de sobres y paquetes pequeños con taxi.</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<Horizontal size="sm" />
|
36
|
+
|
37
|
+
<div class={getStyles('contentPrice')}>
|
38
|
+
<div class={getStyles('priceCardProductTypes')}>30€ - 30€</div>
|
39
|
+
<div class={getStyles('priceCardProductTypesSub')}> Máx.</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
}
|
46
|
+
|
47
|
+
CardProductTypesBooking.propTypes = {
|
48
|
+
srcImg: PropTypes.string.isRequired,
|
49
|
+
getStyles: PropTypes.func.isRequired,
|
50
|
+
type: PropTypes.oneOf(options.types),
|
51
|
+
}
|
52
|
+
|
53
|
+
CardProductTypesBooking.defaultProps = {
|
54
|
+
getStyles: () => { },
|
55
|
+
}
|
56
|
+
|
57
|
+
export default withStyles(styles)(CardProductTypesBooking)
|
@@ -0,0 +1,71 @@
|
|
1
|
+
.card-product-types-booking {
|
2
|
+
width: 100%;
|
3
|
+
align-items: center;
|
4
|
+
padding: 10px;
|
5
|
+
border: var(--border-width-thin) solid var(--color-base-transparent);
|
6
|
+
border-radius: var(--card-border-radius);
|
7
|
+
box-shadow: 0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%);
|
8
|
+
color: var(--color-font-base);
|
9
|
+
transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);
|
10
|
+
background-color: #fff;
|
11
|
+
margin: 0;
|
12
|
+
cursor: auto;
|
13
|
+
max-width: 330px;
|
14
|
+
min-width: 330px;
|
15
|
+
margin-right: 10px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.labelNotification {
|
19
|
+
font-size: 12px;
|
20
|
+
color: #fff;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
padding: 8px 8px 4px;
|
24
|
+
line-height: 13px;
|
25
|
+
border-radius: 10px;
|
26
|
+
margin-bottom: 6px;
|
27
|
+
background-color: rgb(245, 166, 35);
|
28
|
+
}
|
29
|
+
|
30
|
+
.card-product-content {
|
31
|
+
flex-direction: row;
|
32
|
+
box-sizing: border-box;
|
33
|
+
display: flex;
|
34
|
+
place-content: center start;
|
35
|
+
align-items: center;
|
36
|
+
}
|
37
|
+
|
38
|
+
.titleCardProductTypes {
|
39
|
+
color: rgba(0,0,0,.87);
|
40
|
+
font-size: 13px;
|
41
|
+
}
|
42
|
+
|
43
|
+
.etaCardProductTypesSub {
|
44
|
+
color: #777;
|
45
|
+
font-size: 12px;
|
46
|
+
line-height: 1rem;
|
47
|
+
}
|
48
|
+
|
49
|
+
.titleCardProductTypesSub {
|
50
|
+
color: #9f9f9f;
|
51
|
+
font-size: 12px;
|
52
|
+
line-height: 1rem;
|
53
|
+
}
|
54
|
+
|
55
|
+
.contentPrice {
|
56
|
+
min-width: 70px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.priceCardProductTypes {
|
60
|
+
color: #00205b;
|
61
|
+
font-size: 14px;
|
62
|
+
text-align: right;
|
63
|
+
line-height: .9rem;
|
64
|
+
}
|
65
|
+
|
66
|
+
.priceCardProductTypesSub {
|
67
|
+
color: #9f9f9f;
|
68
|
+
font-size: 11px;
|
69
|
+
text-align: right;
|
70
|
+
line-height: .9rem;
|
71
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { CardProductTypesBooking, styles, options } from '.'
|
2
|
+
|
3
|
+
import {
|
4
|
+
getTemplate,
|
5
|
+
getListTemplate,
|
6
|
+
getOptionsArgTypes,
|
7
|
+
} from '../../helpers/storybook'
|
8
|
+
|
9
|
+
const Template = getTemplate(CardProductTypesBooking, styles)
|
10
|
+
const ListTemplate = getListTemplate(CardProductTypesBooking, styles)
|
11
|
+
|
12
|
+
export default {
|
13
|
+
title: 'Molecules/CardProductTypesBooking',
|
14
|
+
component: CardProductTypesBooking,
|
15
|
+
args: {
|
16
|
+
srcImg: 'https://resources.callcenter.cab/img/products/imbric_Taxi_White Block.png',
|
17
|
+
},
|
18
|
+
argTypes: {
|
19
|
+
types: getOptionsArgTypes(options.types),
|
20
|
+
},
|
21
|
+
}
|
22
|
+
|
23
|
+
export const Default = Template.bind({})
|
24
|
+
export const List = ListTemplate.bind({})
|
25
|
+
List.args = { items: options.types.map((type) => ({ type })) }
|
@@ -0,0 +1 @@
|
|
1
|
+
export const options = { types: [] }
|