@mptw/skylens-ui 1.5.16 → 1.5.18

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 (62) hide show
  1. package/app/components/SLAlertModal.vue +18 -18
  2. package/app/components/SLButton.vue +108 -148
  3. package/app/components/SLCalendarButton.vue +24 -24
  4. package/app/components/SLCard.vue +44 -44
  5. package/app/components/SLCheckbox.vue +45 -46
  6. package/app/components/SLCircleButton.vue +13 -13
  7. package/app/components/SLCollapsableBlock.vue +15 -15
  8. package/app/components/SLCollapsableMulitPillSelect.vue +9 -9
  9. package/app/components/SLContextMenu.vue +9 -9
  10. package/app/components/SLDateInput.vue +41 -48
  11. package/app/components/SLDownloadButton.vue +12 -12
  12. package/app/components/SLDropdown.vue +21 -21
  13. package/app/components/SLDropdownItem.vue +3 -3
  14. package/app/components/SLElementWithTitle.vue +3 -3
  15. package/app/components/SLEyeCheckbox.vue +36 -36
  16. package/app/components/SLFileInput.vue +16 -16
  17. package/app/components/SLGenderAgeSelect.vue +39 -39
  18. package/app/components/SLHourRangeInput.vue +19 -20
  19. package/app/components/SLIOSSwitch.vue +72 -73
  20. package/app/components/SLIconButton.vue +29 -21
  21. package/app/components/SLInfoTip.vue +35 -36
  22. package/app/components/SLLegend.vue +9 -9
  23. package/app/components/SLLink.vue +3 -3
  24. package/app/components/SLLoading.vue +25 -25
  25. package/app/components/SLModal.vue +79 -79
  26. package/app/components/SLMonthCalendarButton.vue +46 -46
  27. package/app/components/SLMonthPicker.vue +28 -30
  28. package/app/components/SLMultiEmailInput.vue +72 -72
  29. package/app/components/SLMultiSelect.vue +27 -29
  30. package/app/components/SLPageModal.vue +5 -5
  31. package/app/components/SLPagination.vue +31 -31
  32. package/app/components/SLPillCheckbox.vue +42 -42
  33. package/app/components/SLPillLabel.vue +36 -36
  34. package/app/components/SLPopupMenuButton.vue +16 -16
  35. package/app/components/SLProfileButton.vue +17 -17
  36. package/app/components/SLProjectShareItem.vue +18 -17
  37. package/app/components/SLRadioButton.vue +33 -33
  38. package/app/components/SLRadioButtonGroup.vue +6 -6
  39. package/app/components/SLRadioGroup.vue +93 -93
  40. package/app/components/SLRangeInput.vue +17 -19
  41. package/app/components/SLRightSider.vue +19 -20
  42. package/app/components/SLSearchInput.vue +7 -7
  43. package/app/components/SLSelect.vue +90 -92
  44. package/app/components/SLSelectAllToggle.vue +45 -45
  45. package/app/components/SLSidebarNav.vue +148 -151
  46. package/app/components/SLSidebarNavGroupItemSection.vue +70 -78
  47. package/app/components/SLSidebarNavLinkItem.vue +51 -53
  48. package/app/components/SLSitePage.vue +6 -6
  49. package/app/components/SLSortByDropdown.vue +18 -18
  50. package/app/components/SLStayRangeInput.vue +40 -40
  51. package/app/components/SLTable.vue +56 -59
  52. package/app/components/SLTableTooltip.vue +31 -33
  53. package/app/components/SLTabs.vue +220 -220
  54. package/app/components/SLTextInput.vue +64 -74
  55. package/app/components/SLTextarea.vue +9 -9
  56. package/app/components/SLToast.vue +1 -2
  57. package/app/components/SLToggleButton.vue +12 -12
  58. package/app/components/SLTwoLayerMultiSelect.vue +56 -56
  59. package/app/components/SLTwoLayerSelect.vue +39 -39
  60. package/app/components/SLTwoLayerSingleSelect.vue +21 -21
  61. package/app/components/SLWarnModal.vue +3 -3
  62. package/package.json +1 -1
@@ -293,110 +293,110 @@ export default defineComponent({
293
293
 
294
294
  .modal {
295
295
  @apply z-50 fixed top-0 left-0 w-full h-full overflow-hidden;
296
- }
297
296
 
298
- .modal.modal-centered {
299
- @apply flex items-center;
300
- }
297
+ .modal-dialog-centered {
298
+ @apply flex;
299
+ max-height: calc(100% - (var(--spacing) * 7 * 2));
300
+ }
301
301
 
302
- .modal .modal-backdrop {
303
- @apply absolute top-0 left-0 w-full h-full;
304
- }
302
+ .modal-dialog-free {
303
+ @apply w-auto;
304
+ }
305
305
 
306
- .modal .modal-backdrop.show {
307
- @apply bg-mask/80;
308
- }
306
+ .modal-dialog-2xl {
307
+ @apply max-w-[41rem] lg:max-w-[55.125rem];
308
+ }
309
309
 
310
- .modal .modal-dialog {
311
- @apply relative w-full my-7 mx-auto;
312
- }
310
+ .modal-dialog-3xl {
311
+ @apply max-w-[748px] lg:max-w-[900px];
312
+ }
313
313
 
314
- .modal .modal-dialog-xs {
315
- @apply max-w-[30rem];
316
- }
314
+ .modal-dialog-4xl {
315
+ @apply max-w-[697px] lg:max-w-[924px];
316
+ }
317
317
 
318
- .modal .modal-dialog-sm {
319
- @apply max-w-149.5;
320
- }
318
+ .modal-dialog-5xl {
319
+ @apply max-w-[748px] lg:max-w-[980px];
320
+ }
321
321
 
322
- .modal .modal-dialog-lg {
323
- @apply max-w-[39.75rem];
324
- }
322
+ .modal-dialog-xs {
323
+ @apply max-w-[30rem];
324
+ }
325
325
 
326
- .modal .modal-dialog-xl {
327
- @apply max-w-[39rem] lg:max-w-208;
328
- }
326
+ .modal-dialog-sm {
327
+ @apply max-w-149.5;
328
+ }
329
329
 
330
- .modal .modal-dialog-2xl {
331
- @apply max-w-[41rem] lg:max-w-[55.125rem];
332
- }
330
+ .modal-dialog-lg {
331
+ @apply max-w-[39.75rem];
332
+ }
333
333
 
334
- .modal .modal-dialog-3xl {
335
- @apply max-w-[748px] lg:max-w-[900px];
336
- }
334
+ .modal-dialog-xl {
335
+ @apply max-w-[39rem] lg:max-w-208;
336
+ }
337
337
 
338
- .modal .modal-dialog-4xl {
339
- @apply max-w-[697px] lg:max-w-[924px];
340
- }
338
+ .modal-backdrop {
339
+ @apply absolute top-0 left-0 w-full h-full;
341
340
 
342
- .modal .modal-dialog-5xl {
343
- @apply max-w-[748px] lg:max-w-[980px];
344
- }
341
+ &.show {
342
+ @apply bg-mask/80;
343
+ }
344
+ }
345
345
 
346
- .modal .modal-dialog-free {
347
- @apply w-auto;
348
- }
346
+ &.modal-centered {
347
+ @apply flex items-center;
348
+ }
349
349
 
350
- .modal .modal-dialog-centered {
351
- @apply flex;
352
- max-height: calc(100% - (var(--spacing) * 7 * 2));
353
- }
350
+ .modal-content {
351
+ @apply flex flex-col w-full max-h-full rounded-lg bg-white shadow-popup-lg;
354
352
 
355
- .modal .modal-content {
356
- @apply flex flex-col w-full max-h-full rounded-lg bg-white shadow-popup-lg;
357
- }
353
+ .modal-header-right {
354
+ @apply flex items-baseline ml-6;
355
+ }
358
356
 
359
- .modal .modal-content .modal-header + .modal-body {
360
- @apply rounded-t-none;
361
- }
357
+ .modal-title-notice {
358
+ @apply text-xs font-normal;
359
+ }
362
360
 
363
- .modal .modal-content .modal-header {
364
- @apply grow-0 shrink-0 flex items-center justify-between py-2 px-4 bg-primary rounded-t-lg text-xl leading-6.75 text-white;
365
- }
361
+ .modal-header-left {
362
+ @apply flex items-center;
363
+ }
366
364
 
367
- .modal .modal-content .modal-header-left {
368
- @apply flex items-center;
369
- }
365
+ .modal-header {
366
+ @apply grow-0 shrink-0 flex items-center justify-between py-2 px-4 bg-primary rounded-t-lg text-xl leading-6.75 text-white;
370
367
 
371
- .modal .modal-content .modal-header-right {
372
- @apply flex items-baseline ml-6;
373
- }
368
+ + .modal-body {
369
+ @apply rounded-t-none;
370
+ }
371
+ }
374
372
 
375
- .modal .modal-content .modal-title {
376
- @apply inline-flex items-baseline space-x-2 font-normal;
377
- }
373
+ .close-button {
374
+ @apply inline-flex text-base text-white;
378
375
 
379
- .modal .modal-content .modal-title-notice {
380
- @apply text-xs font-normal;
381
- }
376
+ .icon {
377
+ @apply inline-flex;
378
+ }
379
+ }
382
380
 
383
- .modal .modal-content .close-button {
384
- @apply inline-flex text-base text-white;
385
- }
381
+ .modal-title {
382
+ @apply inline-flex items-baseline space-x-2 font-normal;
383
+ }
384
+ }
386
385
 
387
- .modal .modal-content .close-button .icon {
388
- @apply inline-flex;
389
- }
386
+ .modal-dialog {
387
+ @apply relative w-full my-7 mx-auto;
388
+ }
390
389
 
391
- .modal .modal-body {
392
- @apply grow relative w-full pt-4 pr-4 pl-4 bg-white rounded-lg;
393
- }
390
+ .modal-footer {
391
+ @apply grow-0 shrink-0 p-6 rounded-b-lg;
392
+ }
394
393
 
395
- .modal .modal-body:last-child {
396
- @apply pb-4;
397
- }
394
+ .modal-body {
395
+ @apply grow relative w-full pt-4 pr-4 pl-4 bg-white rounded-lg;
398
396
 
399
- .modal .modal-footer {
400
- @apply grow-0 shrink-0 p-6 rounded-b-lg;
397
+ &:last-child {
398
+ @apply pb-4;
399
+ }
400
+ }
401
401
  }
402
402
  </style>
@@ -339,50 +339,66 @@ export default defineComponent({
339
339
 
340
340
  .month-calendar-button-toggle {
341
341
  @apply inline-flex items-center justify-center min-w-[163px] min-h-[58px] py-1 px-4 bg-white border border-primary-500 rounded shadow-default;
342
- }
343
342
 
344
- .month-calendar-button-toggle .toggle-wrapper {
345
- @apply inline-flex items-center;
346
- }
343
+ .toggle-wrapper {
344
+ @apply inline-flex items-center;
347
345
 
348
- .month-calendar-button-toggle .toggle-wrapper .icon {
349
- @apply text-base leading-none text-primary;
350
- }
346
+ .toggle-divide {
347
+ @apply self-stretch w-px ml-4 mr-3.75 bg-primary rounded-full;
348
+ }
351
349
 
352
- .month-calendar-button-toggle .toggle-wrapper .toggle-divide {
353
- @apply self-stretch w-px ml-4 mr-3.75 bg-primary rounded-full;
354
- }
350
+ .button-title {
351
+ @apply space-y-1 text-end;
355
352
 
356
- .month-calendar-button-toggle .toggle-wrapper .button-title {
357
- @apply space-y-1 text-end;
358
- }
353
+ .current-month {
354
+ @apply text-lg text-pgray-2;
355
+ }
359
356
 
360
- .month-calendar-button-toggle .toggle-wrapper .button-title .current-month {
361
- @apply text-lg text-pgray-2;
362
- }
357
+ .compare-month {
358
+ @apply text-xs text-pgray-3;
359
+ }
360
+ }
363
361
 
364
- .month-calendar-button-toggle .toggle-wrapper .button-title .compare-month {
365
- @apply text-xs text-pgray-3;
362
+ .icon {
363
+ @apply text-base leading-none text-primary;
364
+ }
365
+ }
366
366
  }
367
367
 
368
368
  .month-calendar-popup {
369
369
  @apply z-50 p-3.75 space-y-4 bg-white border border-primary-100 rounded-lg shadow-md hidden;
370
- }
371
370
 
372
- .month-calendar-popup[data-show] {
373
- @apply block;
374
- }
371
+ .popup-header {
372
+ @apply text-center;
375
373
 
376
- .month-calendar-popup .popup-header {
377
- @apply text-center;
378
- }
374
+ .compare-switch {
375
+ @apply inline-flex items-center space-x-px;
379
376
 
380
- .month-calendar-popup .popup-header .compare-switch {
381
- @apply inline-flex items-center space-x-px;
382
- }
377
+ .compare-switch-button {
378
+ @apply block py-0.75 px-3.75 bg-white border border-primary-300 text-sm text-insight-title;
379
+ }
380
+ }
381
+ }
382
+
383
+ .popup-footer {
384
+ @apply pt-4 space-x-6 border-t border-pgray-4 text-center;
385
+
386
+ .cancel-button {
387
+ @apply text-base text-pgray-3;
388
+ }
389
+ }
383
390
 
384
- .month-calendar-popup .popup-header .compare-switch .compare-switch-button {
385
- @apply block py-0.75 px-3.75 bg-white border border-primary-300 text-sm text-insight-title;
391
+ .popup-body {
392
+ @apply flex;
393
+
394
+ .calendar-divide {
395
+ @apply w-px ml-4 mr-3.75 bg-pgray-4;
396
+ }
397
+ }
398
+
399
+ &[data-show] {
400
+ @apply block;
401
+ }
386
402
  }
387
403
 
388
404
  .month-calendar-popup
@@ -405,20 +421,4 @@ export default defineComponent({
405
421
  .compare-switch-button.selected {
406
422
  @apply bg-insight-title border-insight-title text-white;
407
423
  }
408
-
409
- .month-calendar-popup .popup-body {
410
- @apply flex;
411
- }
412
-
413
- .month-calendar-popup .popup-body .calendar-divide {
414
- @apply w-px ml-4 mr-3.75 bg-pgray-4;
415
- }
416
-
417
- .month-calendar-popup .popup-footer {
418
- @apply pt-4 space-x-6 border-t border-pgray-4 text-center;
419
- }
420
-
421
- .month-calendar-popup .popup-footer .cancel-button {
422
- @apply text-base text-pgray-3;
423
- }
424
424
  </style>
@@ -110,47 +110,45 @@ export default defineComponent({
110
110
 
111
111
  .month-picker {
112
112
  @apply w-47.5 space-y-4;
113
- }
114
113
 
115
- .month-picker--insight-title .month-select-wrapper .month-button.selected {
116
- @apply bg-insight-title;
117
- }
114
+ .month-select-wrapper {
115
+ @apply flex flex-wrap -my-2 -mx-4;
118
116
 
119
- .month-picker--primary-600 .month-select-wrapper .month-button.selected {
120
- @apply bg-primary-600;
121
- }
117
+ .month-button {
118
+ @apply flex items-center justify-center w-10.5 h-6.75 my-2 mx-4 bg-white rounded text-sm text-pgray-3 hover:bg-primary-300 hover:text-white;
122
119
 
123
- .month-picker .year-select {
124
- @apply flex items-center justify-center space-x-10;
125
- }
120
+ &.selected {
121
+ @apply text-white;
122
+ }
126
123
 
127
- .month-picker .year-select .prev-button,
128
- .month-picker .year-select .next-button {
129
- @apply inline-flex items-center text-xs text-pgray-3;
130
- }
124
+ &.disabled {
125
+ @apply bg-white text-pgray-5;
126
+ }
127
+ }
128
+ }
131
129
 
132
- .month-picker .year-select .prev-button.disabled,
133
- .month-picker .year-select .next-button.disabled {
134
- @apply text-pgray-5 cursor-default;
135
- }
130
+ .year-select {
131
+ @apply flex items-center justify-center space-x-10;
136
132
 
137
- .month-picker .year-select .year {
138
- @apply text-sm text-pgray-2;
139
- }
133
+ .prev-button, .next-button {
134
+ @apply inline-flex items-center text-xs text-pgray-3;
140
135
 
141
- .month-picker .month-select-wrapper {
142
- @apply flex flex-wrap -my-2 -mx-4;
143
- }
136
+ &.disabled, &.disabled {
137
+ @apply text-pgray-5 cursor-default;
138
+ }
139
+ }
144
140
 
145
- .month-picker .month-select-wrapper .month-button {
146
- @apply flex items-center justify-center w-10.5 h-6.75 my-2 mx-4 bg-white rounded text-sm text-pgray-3 hover:bg-primary-300 hover:text-white;
141
+ .year {
142
+ @apply text-sm text-pgray-2;
143
+ }
144
+ }
147
145
  }
148
146
 
149
- .month-picker .month-select-wrapper .month-button.selected {
150
- @apply text-white;
147
+ .month-picker--insight-title .month-select-wrapper .month-button.selected {
148
+ @apply bg-insight-title;
151
149
  }
152
150
 
153
- .month-picker .month-select-wrapper .month-button.disabled {
154
- @apply bg-white text-pgray-5;
151
+ .month-picker--primary-600 .month-select-wrapper .month-button.selected {
152
+ @apply bg-primary-600;
155
153
  }
156
154
  </style>
@@ -610,34 +610,42 @@ export default defineComponent({
610
610
 
611
611
  .multi-email-input {
612
612
  @apply flex flex-col;
613
- }
614
613
 
615
- .multi-email-input.collapsable .multi-email-input-header {
616
- @apply cursor-pointer;
617
- }
614
+ &.collapsed .multi-email-input-header .right-block .icon {
615
+ @apply rotate-0;
616
+ }
618
617
 
619
- .multi-email-input.collapsable .multi-email-input-header .right-block {
620
- @apply flex;
621
- }
618
+ &.collapsable .multi-email-input-header {
619
+ @apply cursor-pointer;
620
+
621
+ .right-block {
622
+ @apply flex;
623
+ }
624
+ }
622
625
 
623
- .multi-email-input.collapsed .multi-email-input-header .right-block .icon {
624
- @apply rotate-0;
626
+ .multi-email-input-actions {
627
+ @apply grow-0 shrink-0;
628
+
629
+ .btn {
630
+ @apply text-sm;
631
+ }
632
+ }
625
633
  }
626
634
 
627
635
  .multi-email-input-header {
628
636
  @apply flex items-center justify-between mb-2 cursor-default;
629
- }
630
637
 
631
- .multi-email-input-header .left-block {
632
- @apply grow-0 shrink-0 flex items-center text-base text-pgray-2;
633
- }
638
+ .right-block {
639
+ @apply grow-0 shrink-0 text-xs hidden;
634
640
 
635
- .multi-email-input-header .right-block {
636
- @apply grow-0 shrink-0 text-xs hidden;
637
- }
641
+ .icon {
642
+ @apply transition-transform rotate-180;
643
+ }
644
+ }
638
645
 
639
- .multi-email-input-header .right-block .icon {
640
- @apply transition-transform rotate-180;
646
+ .left-block {
647
+ @apply grow-0 shrink-0 flex items-center text-base text-pgray-2;
648
+ }
641
649
  }
642
650
 
643
651
  .multi-email-input-body-wrapper {
@@ -646,30 +654,34 @@ export default defineComponent({
646
654
 
647
655
  .multi-email-input-body .emails-input {
648
656
  @apply grow flex items-center p-1.75 space-x-4 bg-white border border-primary-500 rounded overflow-hidden;
649
- }
650
657
 
651
- .multi-email-input-body .emails-input-wrapper {
652
- @apply grow space-y-2 overflow-hidden;
653
- }
658
+ .emails-list-wrapper {
659
+ @apply flex flex-col items-start space-y-2 overflow-hidden;
654
660
 
655
- .multi-email-input-body .emails-input .emails-list {
656
- @apply max-h-[97px];
657
- }
661
+ .email-item-status {
662
+ @apply grow-0 shrink-0;
663
+ }
658
664
 
659
- .multi-email-input-body .emails-input .emails-list-wrapper {
660
- @apply flex flex-col items-start space-y-2 overflow-hidden;
661
- }
665
+ .email-item-email {
666
+ @apply grow truncate;
667
+ }
662
668
 
663
- .multi-email-input-body .emails-input .emails-list-wrapper .email-item {
664
- @apply inline-flex items-center justify-start max-w-full px-1.75 py-0.5 space-x-2 bg-white border border-primary-300 rounded-full text-base text-pgray-2;
665
- }
669
+ .email-item {
670
+ @apply inline-flex items-center justify-start max-w-full px-1.75 py-0.5 space-x-2 bg-white border border-primary-300 rounded-full text-base text-pgray-2;
671
+ }
672
+ }
673
+
674
+ .emails-list {
675
+ @apply max-h-[97px];
676
+ }
666
677
 
667
- .multi-email-input-body .emails-input .emails-list-wrapper .email-item-email {
668
- @apply grow truncate;
678
+ textarea {
679
+ @apply grow-0 shrink-0 block w-full p-0 border-0 bg-white text-sm text-pgray-2 resize-none focus:outline-none;
680
+ }
669
681
  }
670
682
 
671
- .multi-email-input-body .emails-input .emails-list-wrapper .email-item-status {
672
- @apply grow-0 shrink-0;
683
+ .multi-email-input-body .emails-input-wrapper {
684
+ @apply grow space-y-2 overflow-hidden;
673
685
  }
674
686
 
675
687
  .multi-email-input-body
@@ -703,57 +715,45 @@ export default defineComponent({
703
715
  @apply text-xs;
704
716
  }
705
717
 
706
- .multi-email-input-body .emails-input textarea {
707
- @apply grow-0 shrink-0 block w-full p-0 border-0 bg-white text-sm text-pgray-2 resize-none focus:outline-none;
708
- }
709
-
710
718
  .multi-email-input-body .multi-email-input-role {
711
719
  @apply grow-0 shrink-0 flex;
712
- }
713
720
 
714
- .multi-email-input-body .multi-email-input-role :deep(.dropdown-toggle) {
715
- @apply text-sm;
716
- }
717
-
718
- .multi-email-input .multi-email-input-actions {
719
- @apply grow-0 shrink-0;
720
- }
721
-
722
- .multi-email-input .multi-email-input-actions .btn {
723
- @apply text-sm;
721
+ & :deep(.dropdown-toggle) {
722
+ @apply text-sm;
723
+ }
724
724
  }
725
725
 
726
726
  .multi-email-input-autocomplete {
727
727
  @apply z-50 max-h-[116px] p-1 bg-white rounded shadow-default hidden;
728
- }
729
728
 
730
- .multi-email-input-autocomplete[data-show] {
731
- @apply flex;
732
- }
729
+ & :deep(.swiper-scrollbar-drag) {
730
+ @apply bg-primary-300;
731
+ }
733
732
 
734
- .multi-email-input-autocomplete .swiper {
735
- @apply w-full;
736
- }
733
+ .autotcomplete-item {
734
+ @apply block w-full py-1 px-2 bg-white text-sm text-pgray-2;
737
735
 
738
- .multi-email-input-autocomplete .swiper-slide {
739
- @apply h-auto;
740
- }
736
+ &:hover,
737
+ &.focused {
738
+ @apply bg-primary-100;
739
+ }
740
+ }
741
741
 
742
- .multi-email-input-autocomplete .swiper-scrollbar {
743
- @apply top-0 right-0 h-full bg-transparent;
744
- }
742
+ .swiper-scrollbar {
743
+ @apply top-0 right-0 h-full bg-transparent;
744
+ }
745
745
 
746
- .multi-email-input-autocomplete :deep(.swiper-scrollbar-drag) {
747
- @apply bg-primary-300;
748
- }
746
+ .swiper-slide {
747
+ @apply h-auto;
748
+ }
749
749
 
750
- .multi-email-input-autocomplete .autotcomplete-item {
751
- @apply block w-full py-1 px-2 bg-white text-sm text-pgray-2;
752
- }
750
+ &[data-show] {
751
+ @apply flex;
752
+ }
753
753
 
754
- .multi-email-input-autocomplete .autotcomplete-item:hover,
755
- .multi-email-input-autocomplete .autotcomplete-item.focused {
756
- @apply bg-primary-100;
754
+ .swiper {
755
+ @apply w-full;
756
+ }
757
757
  }
758
758
 
759
759
  .dropdown-menu.multi-email-input-role-dropdown-menu {
@@ -90,43 +90,41 @@ export default defineComponent({
90
90
 
91
91
  .custom-multi-select {
92
92
  @apply px-3 py-1 border border-primary-500 rounded;
93
- }
94
93
 
95
- .custom-multi-select .options-wrapper {
96
- @apply relative overflow-auto;
97
- }
94
+ .options-wrapper {
95
+ @apply relative overflow-auto;
96
+ }
98
97
 
99
- .custom-multi-select .options {
100
- @apply flex flex-col;
101
- }
98
+ .options {
99
+ @apply flex flex-col;
102
100
 
103
- .custom-multi-select .options .option-button {
104
- @apply flex justify-between items-center px-2 py-1 bg-white shadow-inline hover:bg-primary-25;
105
- }
101
+ .option-button {
102
+ @apply flex justify-between items-center px-2 py-1 bg-white shadow-inline hover:bg-primary-25;
106
103
 
107
- .custom-multi-select .options .option-button:hover .btn {
108
- @apply opacity-100;
109
- }
104
+ &.selected:hover .btn, &.selected:active .btn, &.selected:focus .btn {
105
+ @apply bg-primary;
106
+ }
110
107
 
111
- .custom-multi-select .options .option-button.selected .option-label {
112
- @apply text-primary font-bold;
113
- }
108
+ &.selected .option-label {
109
+ @apply text-primary font-bold;
110
+ }
114
111
 
115
- .custom-multi-select .options .option-button.selected .btn {
116
- @apply bg-primary-600 opacity-100;
117
- }
112
+ &.selected .btn {
113
+ @apply bg-primary-600 opacity-100;
114
+ }
118
115
 
119
- .custom-multi-select .options .option-button.selected:hover .btn,
120
- .custom-multi-select .options .option-button.selected:active .btn,
121
- .custom-multi-select .options .option-button.selected:focus .btn {
122
- @apply bg-primary;
123
- }
116
+ .option-label {
117
+ @apply grow inline-block text-base leading-[1.3125] text-pgray-2 truncate;
118
+ }
124
119
 
125
- .custom-multi-select .options .option-button .option-label {
126
- @apply grow inline-block text-base leading-[1.3125] text-pgray-2 truncate;
127
- }
120
+ &:hover .btn {
121
+ @apply opacity-100;
122
+ }
128
123
 
129
- .custom-multi-select .options .option-button .btn {
130
- @apply grow-0 shrink-0 inline-block px-2 py-1 bg-primary rounded text-base leading-[1.3125] text-white opacity-0;
124
+ .btn {
125
+ @apply grow-0 shrink-0 inline-block px-2 py-1 bg-primary rounded text-base leading-[1.3125] text-white opacity-0;
126
+ }
127
+ }
128
+ }
131
129
  }
132
130
  </style>
@@ -59,11 +59,11 @@ export default defineComponent({
59
59
 
60
60
  .page-modal {
61
61
  @apply fixed top-0 left-0 w-full h-full overflow-auto;
62
- }
63
62
 
64
- .page-modal .modal-dialog {
65
- @apply flex items-center justify-center relative m-8 rounded-lg bg-white shadow-popup-lg overflow-hidden;
66
- width: calc(100% - var(--spacing) * 8 * 2);
67
- height: calc(100% - var(--spacing) * 8 * 2);
63
+ .modal-dialog {
64
+ @apply flex items-center justify-center relative m-8 rounded-lg bg-white shadow-popup-lg overflow-hidden;
65
+ width: calc(100% - var(--spacing) * 8 * 2);
66
+ height: calc(100% - var(--spacing) * 8 * 2);
67
+ }
68
68
  }
69
69
  </style>