@licklist/design 0.78.5-dev.58 → 0.78.5-dev.59
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.
- package/dist/Maintenance/MaintenancePage.js +1 -0
- package/dist/index.js +3 -1
- package/dist/v2/components/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/v2/components/ActionMenu/ActionMenu.js +60 -8
- package/dist/v2/components/ActionMenu/ActionMenu.scss.js +1 -1
- package/dist/v2/components/Badge/Badge.d.ts.map +1 -1
- package/dist/v2/components/Badge/Badge.js +1 -1
- package/dist/v2/components/Badge/Badge.scss.js +1 -1
- package/dist/v2/components/Button/Button.d.ts +1 -1
- package/dist/v2/components/Button/Button.d.ts.map +1 -1
- package/dist/v2/components/Button/Button.js +1 -0
- package/dist/v2/components/Button/GhostButton.scss.js +1 -1
- package/dist/v2/components/Button/index.d.ts +2 -0
- package/dist/v2/components/Button/index.d.ts.map +1 -1
- package/dist/v2/components/FormField/FormField.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.js +4 -0
- package/dist/v2/components/NPSScore/NPSScore.js +1 -0
- package/dist/v2/components/NewInput/NewInput.d.ts.map +1 -1
- package/dist/v2/components/NewInput/NewInput.js +8 -0
- package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts +2 -1
- package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts.map +1 -1
- package/dist/v2/components/NewPageHeader/NewPageHeader.js +3 -2
- package/dist/v2/components/NewPageHeader/NewPageHeader.scss.js +1 -1
- package/dist/v2/components/NewTable/NewTable.d.ts.map +1 -1
- package/dist/v2/components/NewTable/NewTable.js +1 -0
- package/dist/v2/components/NewTable/NewTable.scss.js +1 -1
- package/dist/v2/components/Pagination/Pagination.js +1 -4
- package/dist/v2/components/Pagination/Pagination.scss.js +1 -1
- package/dist/v2/components/QuickFilter/QuickFilter.d.ts.map +1 -1
- package/dist/v2/components/QuickFilter/QuickFilter.js +5 -2
- package/dist/v2/components/QuickFilter/QuickFilter.scss.js +1 -1
- package/dist/v2/components/SectionHeader/SectionHeader.d.ts.map +1 -1
- package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts +9 -0
- package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts.map +1 -0
- package/dist/v2/components/TableSortIcon/TableSortIcon.js +14 -0
- package/dist/v2/components/TableSortIcon/index.d.ts +2 -0
- package/dist/v2/components/TableSortIcon/index.d.ts.map +1 -0
- package/dist/v2/components/WYSIWYGEditor/Icons.js +2 -2
- package/dist/v2/components/index.d.ts +5 -3
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/icons/index.d.ts +10 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +61 -1
- package/dist/v2/pages/Settings/components/SidebarCustomisation.js +2 -3
- package/dist/v2/pages/Settings/components/SidebarNavItem.js +2 -2
- package/package.json +1 -1
- package/src/v2/components/ActionMenu/ActionMenu.scss +22 -5
- package/src/v2/components/ActionMenu/ActionMenu.tsx +53 -5
- package/src/v2/components/Badge/Badge.scss +13 -0
- package/src/v2/components/Badge/Badge.tsx +10 -8
- package/src/v2/components/Button/Button.tsx +13 -2
- package/src/v2/components/Button/GhostButton.scss +11 -1
- package/src/v2/components/Button/index.ts +2 -0
- package/src/v2/components/Customer/CustomersList.scss +72 -115
- package/src/v2/components/FormField/FormField.tsx +19 -21
- package/src/v2/components/Modal/DeleteModal.tsx +4 -2
- package/src/v2/components/NewInput/NewInput.tsx +13 -1
- package/src/v2/components/NewPageHeader/NewPageHeader.scss +8 -5
- package/src/v2/components/NewPageHeader/NewPageHeader.tsx +21 -21
- package/src/v2/components/NewTable/NewTable.scss +17 -1
- package/src/v2/components/NewTable/NewTable.tsx +1 -0
- package/src/v2/components/Pagination/Pagination.scss +18 -18
- package/src/v2/components/Pagination/Pagination.tsx +1 -1
- package/src/v2/components/QuickFilter/QuickFilter.scss +17 -34
- package/src/v2/components/QuickFilter/QuickFilter.tsx +7 -5
- package/src/v2/components/SectionHeader/SectionHeader.tsx +5 -7
- package/src/v2/components/TableSortIcon/TableSortIcon.tsx +20 -0
- package/src/v2/components/TableSortIcon/index.ts +1 -0
- package/src/v2/components/WYSIWYGEditor/Icons.tsx +2 -2
- package/src/v2/components/index.ts +8 -3
- package/src/v2/icons/index.tsx +14 -0
- package/src/v2/pages/Settings/components/SidebarCustomisation.tsx +1 -1
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
.waivers-page {
|
|
2
|
-
padding:
|
|
2
|
+
padding: 0;
|
|
3
3
|
background-color: #FFFFFF;
|
|
4
4
|
min-height: 100vh;
|
|
5
5
|
font-family: var(--font-family-sans, 'Geist', sans-serif);
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
&__header {
|
|
9
|
-
display:
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
align-items: center;
|
|
12
|
-
margin: 20px 0 20px;
|
|
9
|
+
display: none !important;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
&__tabs-container {
|
|
@@ -17,7 +14,10 @@
|
|
|
17
14
|
justify-content: space-between;
|
|
18
15
|
align-items: center;
|
|
19
16
|
border-bottom: 1px solid #E8E9EF;
|
|
20
|
-
|
|
17
|
+
margin-bottom: 32px;
|
|
18
|
+
margin-left: 32px;
|
|
19
|
+
margin-right: 32px;
|
|
20
|
+
padding: 0;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&__title-row {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
text-decoration: none;
|
|
45
45
|
visibility: visible !important;
|
|
46
46
|
opacity: 1 !important;
|
|
47
|
+
padding-right: 0;
|
|
47
48
|
|
|
48
49
|
&:hover {
|
|
49
50
|
text-decoration: none;
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
&__tabs {
|
|
60
61
|
display: flex;
|
|
61
62
|
gap: 24px;
|
|
63
|
+
padding: 0;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
&__tab {
|
|
@@ -95,6 +97,7 @@
|
|
|
95
97
|
display: flex;
|
|
96
98
|
flex-direction: column;
|
|
97
99
|
gap: 32px;
|
|
100
|
+
padding: 0 32px 32px;
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
.filter-section {
|
|
@@ -134,47 +137,10 @@
|
|
|
134
137
|
|
|
135
138
|
.action-buttons {
|
|
136
139
|
display: flex;
|
|
137
|
-
gap:
|
|
140
|
+
gap: 12px;
|
|
138
141
|
align-items: center;
|
|
139
142
|
}
|
|
140
143
|
|
|
141
|
-
.action-btn {
|
|
142
|
-
padding: 0 16px;
|
|
143
|
-
border: 1px solid var(--border-primary, #E8E9EF);
|
|
144
|
-
background: #FFFFFF;
|
|
145
|
-
transition: all 0.2s ease;
|
|
146
|
-
height: 44px;
|
|
147
|
-
border-radius: 8px;
|
|
148
|
-
|
|
149
|
-
&--secondary-soft {
|
|
150
|
-
background: var(--surface-action-soft, #EFE6FD);
|
|
151
|
-
border: none;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&--tertiary-soft {
|
|
155
|
-
background: #FFFFFF;
|
|
156
|
-
border: 1px solid var(--border-primary, #E8E9EF);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&:hover {
|
|
160
|
-
background-color: var(--surface-tertiary, #F0F0F5);
|
|
161
|
-
border-color: var(--border-primary, #E8E9EF);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.new-button__text {
|
|
165
|
-
font-family: var(--font-family-sans, 'Geist', sans-serif);
|
|
166
|
-
font-size: 14px;
|
|
167
|
-
font-weight: 500;
|
|
168
|
-
color: #121E52;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
svg {
|
|
172
|
-
width: 32px;
|
|
173
|
-
height: 32px;
|
|
174
|
-
flex-shrink: 0;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
144
|
&__row {
|
|
179
145
|
display: flex;
|
|
180
146
|
gap: 24px;
|
|
@@ -191,12 +157,12 @@
|
|
|
191
157
|
}
|
|
192
158
|
|
|
193
159
|
// Cells styling (usually specific to the table in this page)
|
|
194
|
-
.
|
|
160
|
+
.entity-cell {
|
|
195
161
|
&__name {
|
|
196
162
|
font-weight: 600;
|
|
197
163
|
color: #121E52;
|
|
198
164
|
}
|
|
199
|
-
&
|
|
165
|
+
&__sub {
|
|
200
166
|
font-size: 13px;
|
|
201
167
|
color: #9399B3;
|
|
202
168
|
}
|
|
@@ -207,10 +173,10 @@
|
|
|
207
173
|
}
|
|
208
174
|
|
|
209
175
|
&:hover {
|
|
210
|
-
.
|
|
176
|
+
.entity-cell__id {
|
|
211
177
|
display: block;
|
|
212
178
|
}
|
|
213
|
-
.
|
|
179
|
+
.entity-cell__sub {
|
|
214
180
|
display: none;
|
|
215
181
|
}
|
|
216
182
|
}
|
|
@@ -325,7 +291,7 @@
|
|
|
325
291
|
.table-section {
|
|
326
292
|
background-color: #FFFFFF;
|
|
327
293
|
border-radius: 8px;
|
|
328
|
-
overflow:
|
|
294
|
+
overflow: visible;
|
|
329
295
|
position: relative;
|
|
330
296
|
|
|
331
297
|
&--loading {
|
|
@@ -408,7 +374,7 @@
|
|
|
408
374
|
// Mobile styles
|
|
409
375
|
@media (max-width: 768px) {
|
|
410
376
|
.waivers-page {
|
|
411
|
-
padding:
|
|
377
|
+
padding: 0;
|
|
412
378
|
|
|
413
379
|
&__header {
|
|
414
380
|
margin: 12px 0 16px;
|
|
@@ -418,6 +384,9 @@
|
|
|
418
384
|
flex-direction: column;
|
|
419
385
|
gap: 16px;
|
|
420
386
|
align-items: flex-start;
|
|
387
|
+
margin-left: 16px;
|
|
388
|
+
margin-right: 16px;
|
|
389
|
+
padding: 0;
|
|
421
390
|
}
|
|
422
391
|
|
|
423
392
|
&__tabs {
|
|
@@ -425,6 +394,7 @@
|
|
|
425
394
|
gap: 16px;
|
|
426
395
|
overflow-x: auto;
|
|
427
396
|
-webkit-overflow-scrolling: touch;
|
|
397
|
+
padding: 0;
|
|
428
398
|
|
|
429
399
|
&::-webkit-scrollbar {
|
|
430
400
|
display: none;
|
|
@@ -446,6 +416,8 @@
|
|
|
446
416
|
padding: 12px;
|
|
447
417
|
background-color: #F8F8FA;
|
|
448
418
|
border-radius: 8px;
|
|
419
|
+
margin: 0 0 16px 0;
|
|
420
|
+
width: 100%;
|
|
449
421
|
|
|
450
422
|
svg {
|
|
451
423
|
width: 24px;
|
|
@@ -466,6 +438,7 @@
|
|
|
466
438
|
|
|
467
439
|
&__content {
|
|
468
440
|
gap: 20px;
|
|
441
|
+
padding: 0 16px 16px;
|
|
469
442
|
}
|
|
470
443
|
|
|
471
444
|
.filter-section {
|
|
@@ -498,75 +471,26 @@
|
|
|
498
471
|
|
|
499
472
|
.quick-filters-wrapper {
|
|
500
473
|
width: 100%;
|
|
501
|
-
|
|
502
|
-
.quick-filter {
|
|
503
|
-
flex-direction: row;
|
|
504
|
-
align-items: center;
|
|
505
|
-
gap: 8px;
|
|
506
|
-
|
|
507
|
-
&__label {
|
|
508
|
-
font-size: 11px;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
&__options {
|
|
512
|
-
display: flex;
|
|
513
|
-
flex-wrap: wrap;
|
|
514
|
-
gap: 6px;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
&__option {
|
|
518
|
-
padding: 2px 8px;
|
|
519
|
-
font-size: 11px;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
474
|
}
|
|
523
475
|
|
|
524
476
|
.action-buttons {
|
|
525
477
|
display: flex;
|
|
526
|
-
|
|
478
|
+
flex-wrap: wrap;
|
|
527
479
|
gap: 8px;
|
|
528
480
|
width: 100%;
|
|
529
|
-
flex-wrap: wrap;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.action-btn {
|
|
533
|
-
flex: 1 0 calc(50% - 4px);
|
|
534
|
-
min-width: 0;
|
|
535
|
-
justify-content: center;
|
|
536
|
-
border: 1px solid #E8E9EF;
|
|
537
|
-
background: #FFFFFF;
|
|
538
|
-
height: 44px;
|
|
539
|
-
padding: 0 4px;
|
|
540
|
-
border-radius: 8px;
|
|
541
|
-
gap: 4px;
|
|
542
481
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
&--tertiary-soft {
|
|
549
|
-
background: #FFFFFF;
|
|
550
|
-
border: 1px solid #E8E9EF;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
&:hover {
|
|
554
|
-
background-color: var(--surface-tertiary, #F0F0F5);
|
|
555
|
-
}
|
|
482
|
+
.ghost-button {
|
|
483
|
+
flex: 1 0 calc(50% - 4px);
|
|
484
|
+
justify-content: center;
|
|
556
485
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
white-space: nowrap;
|
|
562
|
-
overflow: hidden;
|
|
563
|
-
text-overflow: ellipsis;
|
|
564
|
-
}
|
|
486
|
+
&:nth-child(2) {
|
|
487
|
+
order: -1;
|
|
488
|
+
flex: 1 0 100%;
|
|
489
|
+
}
|
|
565
490
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
flex-shrink: 0;
|
|
491
|
+
&__text {
|
|
492
|
+
font-size: 11px;
|
|
493
|
+
}
|
|
570
494
|
}
|
|
571
495
|
}
|
|
572
496
|
}
|
|
@@ -615,7 +539,7 @@
|
|
|
615
539
|
&__row {
|
|
616
540
|
display: grid;
|
|
617
541
|
grid-template-areas:
|
|
618
|
-
"customer
|
|
542
|
+
"customer bookings"
|
|
619
543
|
"divider divider"
|
|
620
544
|
"next last"
|
|
621
545
|
"actions actions";
|
|
@@ -660,8 +584,7 @@
|
|
|
660
584
|
}
|
|
661
585
|
|
|
662
586
|
&.age-col {
|
|
663
|
-
|
|
664
|
-
text-align: right;
|
|
587
|
+
display: none;
|
|
665
588
|
}
|
|
666
589
|
|
|
667
590
|
&.next-booking-col {
|
|
@@ -673,7 +596,8 @@
|
|
|
673
596
|
}
|
|
674
597
|
|
|
675
598
|
&.no-of-bookings-col {
|
|
676
|
-
|
|
599
|
+
grid-area: bookings;
|
|
600
|
+
text-align: right;
|
|
677
601
|
}
|
|
678
602
|
|
|
679
603
|
&.waiver-col {
|
|
@@ -707,6 +631,29 @@
|
|
|
707
631
|
}
|
|
708
632
|
}
|
|
709
633
|
|
|
634
|
+
.bookings-cell {
|
|
635
|
+
text-align: right;
|
|
636
|
+
min-width: 0;
|
|
637
|
+
overflow: hidden;
|
|
638
|
+
&__label {
|
|
639
|
+
font-size: 13px;
|
|
640
|
+
color: #626A90;
|
|
641
|
+
font-weight: 500;
|
|
642
|
+
margin-bottom: 2px;
|
|
643
|
+
white-space: nowrap;
|
|
644
|
+
overflow: hidden;
|
|
645
|
+
text-overflow: ellipsis;
|
|
646
|
+
}
|
|
647
|
+
&__value {
|
|
648
|
+
font-size: 14px;
|
|
649
|
+
color: #121E52;
|
|
650
|
+
font-weight: 600;
|
|
651
|
+
white-space: nowrap;
|
|
652
|
+
overflow: hidden;
|
|
653
|
+
text-overflow: ellipsis;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
|
|
710
657
|
.booking-cell {
|
|
711
658
|
min-width: 0;
|
|
712
659
|
overflow: hidden;
|
|
@@ -812,7 +759,7 @@
|
|
|
812
759
|
// Extra small mobile devices
|
|
813
760
|
@media (max-width: 480px) {
|
|
814
761
|
.waivers-page {
|
|
815
|
-
padding:
|
|
762
|
+
padding: 0;
|
|
816
763
|
|
|
817
764
|
&__header {
|
|
818
765
|
margin: 8px 0 12px;
|
|
@@ -820,6 +767,7 @@
|
|
|
820
767
|
|
|
821
768
|
&__tabs {
|
|
822
769
|
gap: 12px;
|
|
770
|
+
padding: 0;
|
|
823
771
|
}
|
|
824
772
|
|
|
825
773
|
&__tab {
|
|
@@ -853,6 +801,15 @@
|
|
|
853
801
|
font-size: 13px;
|
|
854
802
|
}
|
|
855
803
|
}
|
|
804
|
+
|
|
805
|
+
&__content {
|
|
806
|
+
padding: 0 12px 12px;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
&__tabs-container {
|
|
810
|
+
margin-left: 12px;
|
|
811
|
+
margin-right: 12px;
|
|
812
|
+
}
|
|
856
813
|
}
|
|
857
814
|
}
|
|
858
815
|
|
|
@@ -9,27 +9,25 @@ export interface FormFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const FormField = forwardRef<HTMLInputElement, FormFieldProps>(
|
|
12
|
-
({ label, error, helpText, required, className = '', ...props }, ref) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{helpText
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
)
|
|
32
|
-
}
|
|
12
|
+
({ label, error, helpText, required, className = '', ...props }, ref) => (
|
|
13
|
+
<div className={`form-field ${className}`}>
|
|
14
|
+
{label && (
|
|
15
|
+
<label className="form-field__label">
|
|
16
|
+
{label}
|
|
17
|
+
{required && <span className="form-field__required">*</span>}
|
|
18
|
+
</label>
|
|
19
|
+
)}
|
|
20
|
+
<input
|
|
21
|
+
ref={ref}
|
|
22
|
+
className={`form-field__input ${error ? 'form-field__input--error' : ''}`}
|
|
23
|
+
{...props}
|
|
24
|
+
/>
|
|
25
|
+
{helpText && !error && (
|
|
26
|
+
<span className="form-field__help-text">{helpText}</span>
|
|
27
|
+
)}
|
|
28
|
+
{error && <span className="form-field__error-text">{error}</span>}
|
|
29
|
+
</div>
|
|
30
|
+
)
|
|
33
31
|
)
|
|
34
32
|
|
|
35
33
|
FormField.displayName = 'FormField'
|
|
@@ -48,8 +48,8 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
48
48
|
if (!isOpen) return null
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
|
-
<div className="delete-modal-overlay" onClick={handleClose}>
|
|
52
|
-
<div className="delete-modal" onClick={(e) => e.stopPropagation()}>
|
|
51
|
+
<div className="delete-modal-overlay" role="presentation" onClick={handleClose}>
|
|
52
|
+
<div className="delete-modal" role="presentation" onClick={(e) => e.stopPropagation()}>
|
|
53
53
|
<div className="delete-modal__content">
|
|
54
54
|
<h2 className="delete-modal__title">{title}</h2>
|
|
55
55
|
|
|
@@ -78,6 +78,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
78
78
|
|
|
79
79
|
<div className="delete-modal__actions">
|
|
80
80
|
<button
|
|
81
|
+
type="button"
|
|
81
82
|
className="delete-modal__button delete-modal__button--delete"
|
|
82
83
|
onClick={handleConfirm}
|
|
83
84
|
disabled={isConfirmDisabled}
|
|
@@ -85,6 +86,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
85
86
|
{isDeleting ? 'Deleting...' : 'Delete'}
|
|
86
87
|
</button>
|
|
87
88
|
<button
|
|
89
|
+
type="button"
|
|
88
90
|
className="delete-modal__button delete-modal__button--cancel"
|
|
89
91
|
onClick={handleClose}
|
|
90
92
|
disabled={isDeleting}
|
|
@@ -62,7 +62,19 @@ export const NewInput = forwardRef<HTMLInputElement | HTMLTextAreaElement, NewIn
|
|
|
62
62
|
ref={inputRef}
|
|
63
63
|
{...(props as React.InputHTMLAttributes<HTMLInputElement>)}
|
|
64
64
|
/>
|
|
65
|
-
<div
|
|
65
|
+
<div
|
|
66
|
+
className="icon"
|
|
67
|
+
role="button"
|
|
68
|
+
tabIndex={0}
|
|
69
|
+
onClick={handleIconClick}
|
|
70
|
+
onKeyDown={(e) => {
|
|
71
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
handleIconClick();
|
|
74
|
+
}
|
|
75
|
+
}}
|
|
76
|
+
style={{ cursor: (onIconClick || (props as any).type === 'date') ? 'pointer' : 'default' }}
|
|
77
|
+
>
|
|
66
78
|
{icon}
|
|
67
79
|
</div>
|
|
68
80
|
</div>
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
5
|
-
gap:
|
|
5
|
+
gap: 0;
|
|
6
6
|
align-self: stretch;
|
|
7
|
-
padding: 32px 32px
|
|
7
|
+
padding: 32px 32px 0px 32px;
|
|
8
8
|
|
|
9
9
|
@media (max-width: 768px) {
|
|
10
|
-
padding: 16px 16px
|
|
11
|
-
gap:
|
|
10
|
+
padding: 16px 16px 0px 16px;
|
|
11
|
+
gap: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (max-width: 480px) {
|
|
15
|
+
padding: 16px 12px 0px 12px;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
|
|
@@ -49,5 +53,4 @@
|
|
|
49
53
|
height: 1px;
|
|
50
54
|
border: none;
|
|
51
55
|
background-color: var(--border-primary, #e8e9ef);
|
|
52
|
-
margin: 0;
|
|
53
56
|
}
|
|
@@ -9,6 +9,7 @@ export interface NewPageHeaderProps {
|
|
|
9
9
|
renderRight?: () => React.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
11
|
showDivider?: boolean;
|
|
12
|
+
dividerClassName?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const NewPageHeader = ({
|
|
@@ -17,26 +18,25 @@ export const NewPageHeader = ({
|
|
|
17
18
|
onCancel,
|
|
18
19
|
renderRight,
|
|
19
20
|
className = '',
|
|
20
|
-
showDivider = true
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</div>
|
|
21
|
+
showDivider = true,
|
|
22
|
+
dividerClassName = ''
|
|
23
|
+
}: NewPageHeaderProps) => (
|
|
24
|
+
<div className={`new-page-header-container ${className}`}>
|
|
25
|
+
<div className="new-page-header">
|
|
26
|
+
<h1 className="new-page-header__title">{title}</h1>
|
|
27
|
+
<div className="new-page-header__actions">
|
|
28
|
+
{renderRight && renderRight()}
|
|
29
|
+
{onCancel && (
|
|
30
|
+
<Button
|
|
31
|
+
type="button"
|
|
32
|
+
variant="destructive-soft"
|
|
33
|
+
onClick={onCancel}
|
|
34
|
+
>
|
|
35
|
+
<ButtonText color="danger">{cancelLabel}</ButtonText>
|
|
36
|
+
</Button>
|
|
37
|
+
)}
|
|
38
38
|
</div>
|
|
39
|
-
{showDivider && <hr className="new-page-header__divider" />}
|
|
40
39
|
</div>
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
{showDivider && <hr className={`new-page-header__divider ${dividerClassName}`} />}
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
.new-table-wrapper {
|
|
2
2
|
width: 100%;
|
|
3
3
|
overflow-x: auto;
|
|
4
|
+
overflow-y: visible;
|
|
5
|
+
|
|
6
|
+
&.action-menu-open {
|
|
7
|
+
overflow: visible !important;
|
|
8
|
+
}
|
|
4
9
|
}
|
|
5
10
|
|
|
6
11
|
.new-table {
|
|
@@ -28,6 +33,17 @@
|
|
|
28
33
|
&__row {
|
|
29
34
|
border-bottom: 1px solid var(--border-primary, #E8E9EF);
|
|
30
35
|
transition: background-color 0.2s ease;
|
|
36
|
+
overflow: visible;
|
|
37
|
+
|
|
38
|
+
&.action-menu-open {
|
|
39
|
+
overflow: visible !important;
|
|
40
|
+
z-index: 20;
|
|
41
|
+
position: relative;
|
|
42
|
+
|
|
43
|
+
.new-table__cell {
|
|
44
|
+
overflow: visible !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
31
47
|
|
|
32
48
|
&:last-child {
|
|
33
49
|
border-bottom: none;
|
|
@@ -46,6 +62,7 @@
|
|
|
46
62
|
font-size: var(--text-base-size, 14px);
|
|
47
63
|
color: var(--label-primary, #121E52);
|
|
48
64
|
vertical-align: middle;
|
|
65
|
+
overflow: visible;
|
|
49
66
|
}
|
|
50
67
|
|
|
51
68
|
&__no-data-cell {
|
|
@@ -60,7 +77,6 @@
|
|
|
60
77
|
// Mobile styles
|
|
61
78
|
@media (max-width: 768px) {
|
|
62
79
|
.new-table-wrapper {
|
|
63
|
-
overflow-x: auto;
|
|
64
80
|
-webkit-overflow-scrolling: touch;
|
|
65
81
|
}
|
|
66
82
|
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
16
|
+
width: 44px;
|
|
17
|
+
height: 44px;
|
|
18
18
|
border-radius: 50%;
|
|
19
19
|
border: none;
|
|
20
20
|
cursor: pointer;
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
svg {
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
46
|
+
width: 24px;
|
|
47
|
+
height: 24px;
|
|
48
48
|
flex-shrink: 0; // Prevent SVG from shrinking
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&__page-number {
|
|
59
|
-
font-size:
|
|
59
|
+
font-size: 15px;
|
|
60
60
|
font-weight: 600;
|
|
61
61
|
color: #14215a; // Main fill primary
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&__showing {
|
|
65
|
-
font-size:
|
|
65
|
+
font-size: 13px;
|
|
66
66
|
font-weight: 500;
|
|
67
67
|
color: #626a90; // Secondary text color
|
|
68
68
|
}
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&__button {
|
|
81
|
-
width:
|
|
82
|
-
height:
|
|
81
|
+
width: 40px;
|
|
82
|
+
height: 40px;
|
|
83
83
|
|
|
84
84
|
svg {
|
|
85
|
-
width:
|
|
86
|
-
height:
|
|
85
|
+
width: 20px;
|
|
86
|
+
height: 20px;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
&__page-number {
|
|
95
|
-
font-size:
|
|
95
|
+
font-size: 14px;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&__showing {
|
|
99
|
-
font-size:
|
|
99
|
+
font-size: 12px;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&__button {
|
|
117
|
-
width:
|
|
118
|
-
height:
|
|
117
|
+
width: 36px;
|
|
118
|
+
height: 36px;
|
|
119
119
|
|
|
120
120
|
svg {
|
|
121
|
-
width:
|
|
122
|
-
height:
|
|
121
|
+
width: 18px;
|
|
122
|
+
height: 18px;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&__page-number {
|
|
134
|
-
font-size:
|
|
134
|
+
font-size: 13px;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
&__showing {
|
|
138
|
-
font-size:
|
|
138
|
+
font-size: 11px;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -59,7 +59,7 @@ export const Pagination: React.FC<PaginationProps> = ({
|
|
|
59
59
|
disabled={isLastPage}
|
|
60
60
|
aria-label={t('App:next', { defaultValue: 'Next' })}
|
|
61
61
|
>
|
|
62
|
-
<ArrowRightIcon
|
|
62
|
+
<ArrowRightIcon />
|
|
63
63
|
</button>
|
|
64
64
|
</div>
|
|
65
65
|
<div className="v2-pagination__info">
|