@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
@@ -385,90 +385,87 @@ export default defineComponent({
385
385
 
386
386
  .table {
387
387
  @apply block relative w-full overflow-hidden;
388
- }
389
388
 
390
- .table.table-responsive {
391
- @apply overflow-auto;
392
- }
389
+ &.table-responsive {
390
+ @apply overflow-auto;
393
391
 
394
- .table.table-responsive table {
395
- @apply table-auto;
396
- }
392
+ table {
393
+ @apply table-auto;
394
+ }
395
+ }
397
396
 
398
- .table table {
399
- @apply w-full table-fixed;
400
- }
397
+ table {
398
+ @apply w-full table-fixed;
401
399
 
402
- .table table thead tr {
403
- @apply border-b border-primary-600 bg-white;
404
- }
400
+ tbody tr.body-header-row td {
401
+ @apply bg-primary-50 text-lg font-bold shadow-inline;
402
+ }
405
403
 
406
- .table table thead tr th {
407
- @apply px-2 pb-2 text-base font-normal text-primary whitespace-nowrap;
408
- }
404
+ tbody.clickable tr {
405
+ @apply cursor-pointer;
406
+ }
409
407
 
410
- .table table thead tr th.sortable,
411
- .table table thead tr th.filterable {
412
- @apply cursor-pointer;
413
- }
408
+ tbody tr td {
409
+ @apply p-2 border-b text-base text-pgray-2;
414
410
 
415
- .table table thead tr th .sort-icon {
416
- @apply opacity-0;
417
- transition:
418
- transform 0.2s ease,
419
- opacity 0.1s ease;
420
- }
411
+ &.text-right.sortable {
412
+ @apply pr-8;
413
+ }
414
+ }
421
415
 
422
- .table table thead tr th:hover .sort-icon,
423
- .table table thead tr th.sorting .sort-icon {
424
- @apply opacity-100;
425
- }
416
+ thead tr {
417
+ @apply border-b border-primary-600 bg-white;
426
418
 
427
- .table table thead tr th.filterable .filter-icon {
428
- @apply opacity-100;
429
- }
419
+ th {
420
+ @apply px-2 pb-2 text-base font-normal text-primary whitespace-nowrap;
430
421
 
431
- .table table tbody.clickable tr {
432
- @apply cursor-pointer;
433
- }
422
+ &:hover .sort-icon, &.sorting .sort-icon {
423
+ @apply opacity-100;
424
+ }
434
425
 
435
- .table table tbody tr.body-header-row td {
436
- @apply bg-primary-50 text-lg font-bold shadow-inline;
437
- }
426
+ &.sortable, &.filterable {
427
+ @apply cursor-pointer;
428
+ }
438
429
 
439
- .table table tbody tr td {
440
- @apply p-2 border-b text-base text-pgray-2;
441
- }
430
+ &.filterable .filter-icon {
431
+ @apply opacity-100;
432
+ }
442
433
 
443
- .table table tbody tr td.text-right.sortable {
444
- @apply pr-8;
434
+ .sort-icon {
435
+ @apply opacity-0;
436
+ transition: transform 0.2s ease,
437
+ opacity 0.1s ease;
438
+ }
439
+ }
440
+ }
441
+ }
445
442
  }
446
443
 
447
444
  .table-header-filter-popup {
448
445
  @apply z-10 flex border border-primary-600 rounded overflow-hidden invisible pointer-events-none;
449
- }
450
446
 
451
- .table-header-filter-popup[data-show] {
452
- @apply visible pointer-events-auto;
447
+ &[data-show] {
448
+ @apply visible pointer-events-auto;
449
+ }
453
450
  }
454
451
 
455
452
  .table-header-filter-popup-content {
456
453
  @apply flex flex-col;
457
- }
458
454
 
459
- .table-header-filter-popup-content .table-header-filter-item {
460
- @apply inline-flex justify-center p-2 bg-white text-sm text-pgray-3 hover:bg-primary-50;
461
- }
455
+ .table-header-filter-item {
456
+ @apply inline-flex justify-center p-2 bg-white text-sm text-pgray-3 hover:bg-primary-50;
462
457
 
463
- .table-header-filter-popup-content .table-header-filter-item.active {
464
- @apply bg-primary-100 text-primary;
465
- }
458
+ &.active {
459
+ @apply bg-primary-100 text-primary;
466
460
 
467
- .table-header-filter-popup-content .table-header-filter-item.active .icon {
468
- @apply text-primary;
469
- }
461
+ .icon {
462
+ @apply text-primary;
463
+ }
464
+ }
470
465
 
471
- .table-header-filter-popup-content .table-header-filter-item .icon {
472
- @apply text-base leading-none;
466
+ .icon {
467
+ @apply text-base leading-none;
468
+ }
469
+ }
473
470
  }
474
471
  </style>
@@ -75,51 +75,49 @@ export default defineComponent({
75
75
 
76
76
  .table-tooltip {
77
77
  @apply inline-block p-4 border border-primary-600 rounded bg-white shadow-popup-sm pointer-events-none;
78
- }
79
78
 
80
- .table-tooltip-title {
81
- @apply mb-4 text-base text-pgray-2 font-bold;
82
- }
79
+ table {
80
+ @apply w-full text-base text-pgray-2;
83
81
 
84
- .table-tooltip-title:not(:last-child) {
85
- @apply mb-1;
86
- }
82
+ tbody tr td, tbody tr th {
83
+ @apply py-1 px-3 text-center;
84
+ }
87
85
 
88
- .table-tooltip-caption {
89
- @apply mb-2 text-sm text-pgray-2;
90
- }
86
+ tbody tr.header-row {
87
+ @apply border-b;
88
+ }
91
89
 
92
- .table-tooltip table {
93
- @apply w-full text-base text-pgray-2;
94
- }
90
+ tbody tr.date-row {
91
+ @apply text-pgray-3;
95
92
 
96
- .table-tooltip table tbody tr.date-row {
97
- @apply text-pgray-3;
98
- }
93
+ td, th {
94
+ @apply text-left;
95
+ }
99
96
 
100
- .table-tooltip table tbody tr.date-row td {
101
- @apply pt-4;
102
- }
97
+ &:first-child {
98
+ @apply text-primary;
103
99
 
104
- .table-tooltip table tbody tr.date-row:first-child {
105
- @apply text-primary;
106
- }
100
+ td {
101
+ @apply pt-0;
102
+ }
103
+ }
107
104
 
108
- .table-tooltip table tbody tr.date-row:first-child td {
109
- @apply pt-0;
105
+ td {
106
+ @apply pt-4;
107
+ }
108
+ }
109
+ }
110
110
  }
111
111
 
112
- .table-tooltip table tbody tr.date-row td,
113
- .table-tooltip table tbody tr.date-row th {
114
- @apply text-left;
115
- }
112
+ .table-tooltip-title {
113
+ @apply mb-4 text-base text-pgray-2 font-bold;
116
114
 
117
- .table-tooltip table tbody tr.header-row {
118
- @apply border-b;
115
+ &:not(:last-child) {
116
+ @apply mb-1;
117
+ }
119
118
  }
120
119
 
121
- .table-tooltip table tbody tr td,
122
- .table-tooltip table tbody tr th {
123
- @apply py-1 px-3 text-center;
120
+ .table-tooltip-caption {
121
+ @apply mb-2 text-sm text-pgray-2;
124
122
  }
125
123
  </style>