@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
@@ -152,53 +152,53 @@ export default defineComponent({
152
152
 
153
153
  .pagination-info {
154
154
  @apply inline-flex items-center mr-4 space-x-0.5 text-base text-pgray-2;
155
- }
156
155
 
157
- .pagination-info .custom-select {
158
- @apply min-w-[2.3125rem];
159
- }
156
+ .custom-select {
157
+ @apply min-w-[2.3125rem];
160
158
 
161
- .pagination-info .custom-select .form-control label {
162
- @apply text-center;
163
- }
159
+ .select-options .option-list .option-button {
160
+ @apply min-w-0 text-center;
161
+ }
164
162
 
165
- .pagination-info .custom-select .form-control label .icon {
166
- @apply hidden;
167
- }
163
+ .form-control label {
164
+ @apply text-center;
168
165
 
169
- .pagination-info .custom-select .select-options .option-list .option-button {
170
- @apply min-w-0 text-center;
166
+ .icon {
167
+ @apply hidden;
168
+ }
169
+ }
170
+ }
171
171
  }
172
172
 
173
173
  .pagination-items {
174
174
  @apply inline-flex items-center;
175
175
  }
176
176
 
177
- .pagination-item + .pagination-item {
178
- @apply border-l;
179
- }
180
-
181
177
  .pagination-item {
182
178
  @apply inline-flex items-center justify-center min-w-[1.5rem] min-h-[1.5rem] p-1 border-t border-b border-primary bg-white text-xs text-primary hover:text-primary-600 focus:text-primary;
183
- }
184
179
 
185
- .pagination-item.pagination-item--icon {
186
- @apply py-1.5;
187
- }
180
+ &.pagination-item--icon {
181
+ @apply py-1.5;
182
+ }
188
183
 
189
- .pagination-item:first-child {
190
- @apply border-l rounded-l-sm;
191
- }
184
+ + .pagination-item {
185
+ @apply border-l;
186
+ }
192
187
 
193
- .pagination-item:last-child {
194
- @apply border-r rounded-r-sm;
195
- }
188
+ &:first-child {
189
+ @apply border-l rounded-l-sm;
190
+ }
196
191
 
197
- .pagination-item.active {
198
- @apply bg-primary text-white;
199
- }
192
+ &:last-child {
193
+ @apply border-r rounded-r-sm;
194
+ }
195
+
196
+ &.active {
197
+ @apply bg-primary text-white;
198
+ }
200
199
 
201
- .pagination-item.more {
202
- @apply cursor-default hover:text-primary-600;
200
+ &.more {
201
+ @apply cursor-default hover:text-primary-600;
202
+ }
203
203
  }
204
204
  </style>
@@ -144,61 +144,61 @@ export default defineComponent({
144
144
 
145
145
  .pill-checkbox {
146
146
  @apply inline-block relative;
147
- }
148
147
 
149
- .pill-checkbox.pill-checkbox-xs label {
150
- @apply py-px text-xs;
151
- }
148
+ &.pill-checkbox-secondary-400 input:checked + label {
149
+ @apply bg-secondary-400 border-secondary-400;
150
+ }
152
151
 
153
- .pill-checkbox.pill-checkbox-third-500 input:checked + label {
154
- @apply bg-third-500 border-third-500;
155
- }
152
+ &.pill-checkbox-primary-600 input:checked + label {
153
+ @apply bg-primary-600 border-primary-600;
154
+ }
156
155
 
157
- .pill-checkbox.pill-checkbox-third input:checked + label {
158
- @apply bg-third border-third;
159
- }
156
+ &.pill-checkbox-third-500 input:checked + label {
157
+ @apply bg-third-500 border-third-500;
158
+ }
160
159
 
161
- .pill-checkbox.pill-checkbox-primary input:checked + label {
162
- @apply bg-primary border-primary;
163
- }
160
+ &.pill-checkbox-highlight input:checked + label {
161
+ @apply bg-highlight border-highlight;
162
+ }
164
163
 
165
- .pill-checkbox.pill-checkbox-primary-600 input:checked + label {
166
- @apply bg-primary-600 border-primary-600;
167
- }
164
+ &.pill-checkbox-primary input:checked + label {
165
+ @apply bg-primary border-primary;
166
+ }
168
167
 
169
- .pill-checkbox.pill-checkbox-highlight input:checked + label {
170
- @apply bg-highlight border-highlight;
171
- }
168
+ &.pill-checkbox-blue-1 input:checked + label {
169
+ @apply bg-blue-1 border-blue-1;
170
+ }
172
171
 
173
- .pill-checkbox.pill-checkbox-blue-1 input:checked + label {
174
- @apply bg-blue-1 border-blue-1;
175
- }
172
+ &.pill-checkbox-third input:checked + label {
173
+ @apply bg-third border-third;
174
+ }
176
175
 
177
- .pill-checkbox.pill-checkbox-secondary-400 input:checked + label {
178
- @apply bg-secondary-400 border-secondary-400;
179
- }
176
+ &.pill-checkbox-xs label {
177
+ @apply py-px text-xs;
178
+ }
180
179
 
181
- .pill-checkbox input {
182
- @apply absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2;
183
- }
180
+ input {
181
+ @apply absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2;
184
182
 
185
- .pill-checkbox label {
186
- @apply inline-flex justify-center items-center relative px-1.75 py-0.75 bg-white border border-primary-300 rounded-full text-sm leading-4.75 text-pgray-2 align-top cursor-pointer;
187
- }
183
+ &:disabled + label {
184
+ @apply bg-white border-pgray-5 text-pgray-4 font-normal cursor-default;
185
+ }
188
186
 
189
- .pill-checkbox label .icon {
190
- @apply hidden ml-2;
191
- }
187
+ &:checked + label {
188
+ @apply bg-white border-white text-white font-bold;
192
189
 
193
- .pill-checkbox input:checked + label {
194
- @apply bg-white border-white text-white font-bold;
195
- }
190
+ .icon {
191
+ @apply inline-block;
192
+ }
193
+ }
194
+ }
196
195
 
197
- .pill-checkbox input:checked + label .icon {
198
- @apply inline-block;
199
- }
196
+ label {
197
+ @apply inline-flex justify-center items-center relative px-1.75 py-0.75 bg-white border border-primary-300 rounded-full text-sm leading-4.75 text-pgray-2 align-top cursor-pointer;
200
198
 
201
- .pill-checkbox input:disabled + label {
202
- @apply bg-white border-pgray-5 text-pgray-4 font-normal cursor-default;
199
+ .icon {
200
+ @apply hidden ml-2;
201
+ }
202
+ }
203
203
  }
204
204
  </style>
@@ -68,53 +68,53 @@ export default defineComponent({
68
68
  .pill-label {
69
69
  @apply inline-flex justify-center items-center relative px-1.75 py-0.75;
70
70
  @apply bg-white border border-white rounded-full text-sm leading-4.75 text-white font-bold align-top whitespace-nowrap;
71
- }
72
71
 
73
- .pill-label.pill-label-xs {
74
- @apply py-px text-xs;
75
- }
72
+ &.pill-label-primary-600 {
73
+ @apply bg-primary-600 border-primary-600;
74
+ }
76
75
 
77
- .pill-label.pill-label-sm {
78
- @apply py-px text-sm;
79
- }
76
+ &.pill-label-third-500 {
77
+ @apply bg-third-500 border-third-500;
78
+ }
80
79
 
81
- .pill-label.pill-label-white {
82
- @apply text-pgray-2;
83
- }
80
+ &.pill-label-third-600 {
81
+ @apply bg-third-600 border-third-600;
82
+ }
84
83
 
85
- .pill-label.pill-label-third-500 {
86
- @apply bg-third-500 border-third-500;
87
- }
84
+ &.pill-label-highlight {
85
+ @apply bg-highlight border-highlight;
86
+ }
88
87
 
89
- .pill-label.pill-label-third-600 {
90
- @apply bg-third-600 border-third-600;
91
- }
88
+ &.pill-label-secondary {
89
+ @apply bg-secondary border-secondary;
90
+ }
92
91
 
93
- .pill-label.pill-label-third {
94
- @apply bg-third border-third;
95
- }
92
+ &.pill-label-primary {
93
+ @apply bg-primary border-primary;
94
+ }
96
95
 
97
- .pill-label.pill-label-primary {
98
- @apply bg-primary border-primary;
99
- }
96
+ &.pill-label-blue-1 {
97
+ @apply bg-blue-1 border-blue-1;
98
+ }
100
99
 
101
- .pill-label.pill-label-primary-600 {
102
- @apply bg-primary-600 border-primary-600;
103
- }
100
+ &.pill-label-white {
101
+ @apply text-pgray-2;
102
+ }
104
103
 
105
- .pill-label.pill-label-highlight {
106
- @apply bg-highlight border-highlight;
107
- }
104
+ &.pill-label-third {
105
+ @apply bg-third border-third;
106
+ }
108
107
 
109
- .pill-label.pill-label-blue-1 {
110
- @apply bg-blue-1 border-blue-1;
111
- }
108
+ &.pill-label-xs {
109
+ @apply py-px text-xs;
110
+ }
112
111
 
113
- .pill-label.pill-label-secondary {
114
- @apply bg-secondary border-secondary;
115
- }
112
+ &.pill-label-sm {
113
+ @apply py-px text-sm;
114
+ }
116
115
 
117
- .pill-label .icon {
118
- @apply inline-block ml-2;
116
+ .icon {
117
+ @apply inline-block ml-2;
118
+ }
119
119
  }
120
120
  </style>
@@ -142,26 +142,26 @@ export default defineComponent({
142
142
 
143
143
  .buttons-popup {
144
144
  @apply z-60 flex-col items-stretch border border-primary-300 rounded bg-white shadow-md hidden;
145
- }
146
145
 
147
- .buttons-popup[data-show] {
148
- @apply flex;
149
- }
146
+ .menu-button-splitter {
147
+ @apply h-px mx-auto my-1 bg-primary-100;
148
+ width: calc(100% - var(--spacing) * 4);
149
+ }
150
150
 
151
- .buttons-popup .menu-button {
152
- @apply inline-flex flex-row flex-nowrap items-center justify-center px-2 py-1 space-x-2 text-base text-primary whitespace-nowrap;
153
- }
151
+ .menu-button {
152
+ @apply inline-flex flex-row flex-nowrap items-center justify-center px-2 py-1 space-x-2 text-base text-primary whitespace-nowrap;
154
153
 
155
- .buttons-popup .menu-button:first-child {
156
- @apply pt-2;
157
- }
154
+ &:first-child {
155
+ @apply pt-2;
156
+ }
158
157
 
159
- .buttons-popup .menu-button:last-child {
160
- @apply pb-2;
161
- }
158
+ &:last-child {
159
+ @apply pb-2;
160
+ }
161
+ }
162
162
 
163
- .buttons-popup .menu-button-splitter {
164
- @apply h-px mx-auto my-1 bg-primary-100;
165
- width: calc(100% - var(--spacing) * 4);
163
+ &[data-show] {
164
+ @apply flex;
165
+ }
166
166
  }
167
167
  </style>
@@ -179,33 +179,33 @@ export default defineComponent({
179
179
 
180
180
  .profile-button .toggle-button {
181
181
  @apply inline-flex items-center justify-center w-7 h-7 p-0 rounded-full bg-primary-400 text-lg text-white font-bold hover:bg-primary-600 active:bg-primary;
182
- }
183
182
 
184
- .profile-button .toggle-button.active {
185
- @apply bg-primary;
183
+ &.active {
184
+ @apply bg-primary;
185
+ }
186
186
  }
187
187
 
188
188
  .profile-nav-popup {
189
189
  @apply z-60 absolute min-w-[10.25rem] p-4 border border-primary bg-primary-50 rounded shadow-popup-lg pointer-events-none invisible;
190
- }
191
190
 
192
- .profile-nav-popup[data-show] {
193
- @apply visible pointer-events-auto;
194
- }
191
+ .profile-nav-divider {
192
+ @apply w-full h-px bg-primary-600;
193
+ }
195
194
 
196
- .profile-nav-popup-body {
197
- @apply flex flex-col space-y-2;
198
- }
195
+ .profile-nav-item {
196
+ @apply inline-flex items-center space-x-2 text-base text-primary-600 hover:text-primary;
197
+ }
199
198
 
200
- .profile-nav-popup .profile-nav-item {
201
- @apply inline-flex items-center space-x-2 text-base text-primary-600 hover:text-primary;
202
- }
199
+ .app-version {
200
+ @apply text-xs text-primary-600 text-right;
201
+ }
203
202
 
204
- .profile-nav-popup .profile-nav-divider {
205
- @apply w-full h-px bg-primary-600;
203
+ &[data-show] {
204
+ @apply visible pointer-events-auto;
205
+ }
206
206
  }
207
207
 
208
- .profile-nav-popup .app-version {
209
- @apply text-xs text-primary-600 text-right;
208
+ .profile-nav-popup-body {
209
+ @apply flex flex-col space-y-2;
210
210
  }
211
211
  </style>
@@ -75,33 +75,34 @@ export default defineComponent({
75
75
 
76
76
  .project-share-item {
77
77
  @apply flex items-center justify-between space-x-4;
78
- }
79
78
 
80
- .project-share-item .item-info {
81
- @apply grow text-sm text-pgray-2 truncate;
82
- }
79
+ .item-actions {
80
+ @apply grow-0 shrink-0;
83
81
 
84
- .project-share-item .item-actions {
85
- @apply grow-0 shrink-0;
86
- }
82
+ & :deep(.dropdown-toggle) {
83
+ @apply py-0.75 border-primary-600 bg-white text-sm;
84
+ }
85
+
86
+ & :deep(.dropdown-menu) {
87
+ @apply border-primary-600;
88
+ }
87
89
 
88
- .project-share-item .item-actions :deep(.dropdown-menu) {
89
- @apply border-primary-600;
90
+ .dropdown-item {
91
+ @apply text-center;
92
+ }
93
+ }
94
+
95
+ .item-info {
96
+ @apply grow text-sm text-pgray-2 truncate;
97
+ }
90
98
  }
91
99
 
92
100
  .project-share-item
93
101
  .item-actions
102
+ &
94
103
  :deep(.dropdown-menu)
95
104
  .dropdown-list-wrapper
96
105
  .dropdown-list {
97
106
  @apply min-w-[74px] divide-y divide-primary-100;
98
107
  }
99
-
100
- .project-share-item .item-actions :deep(.dropdown-toggle) {
101
- @apply py-0.75 border-primary-600 bg-white text-sm;
102
- }
103
-
104
- .project-share-item .item-actions .dropdown-item {
105
- @apply text-center;
106
- }
107
108
  </style>
@@ -72,49 +72,49 @@ export default defineComponent({
72
72
 
73
73
  .radio-button {
74
74
  @apply inline-block relative text-base overflow-hidden;
75
- }
76
75
 
77
- .radio-button input {
78
- @apply absolute -top-10 -left-10;
79
- }
76
+ input {
77
+ @apply absolute -top-10 -left-10;
80
78
 
81
- .radio-button label {
82
- @apply relative inline-flex flex-col items-start space-y-1 cursor-pointer;
83
- }
79
+ &:not(:checked) + label .radio-button-wrapper .icon-circle {
80
+ @apply inline-block text-primary;
81
+ }
84
82
 
85
- .radio-button label .radio-button-wrapper {
86
- @apply inline-flex items-center text-base text-pgray-3;
87
- }
83
+ &:disabled + label .radio-button-wrapper .icon-dot-circle {
84
+ @apply text-pgray-3;
85
+ }
88
86
 
89
- .radio-button label .radio-button-wrapper .icon {
90
- @apply hidden;
91
- }
87
+ &:checked + label .radio-button-wrapper .icon-dot-circle {
88
+ @apply inline-block text-primary;
89
+ }
92
90
 
93
- .radio-button label .radio-button-wrapper span {
94
- @apply ml-1 text-base text-pgray-2;
95
- }
91
+ &:disabled + label .radio-button-wrapper .icon-circle {
92
+ @apply text-pgray-3;
93
+ }
96
94
 
97
- .radio-button label .radio-button-desc {
98
- @apply pl-5 text-xs text-pgray-2;
99
- }
95
+ &:disabled + label .radio-button-wrapper span {
96
+ @apply text-pgray-3;
97
+ }
98
+ }
100
99
 
101
- .radio-button input:not(:checked) + label .radio-button-wrapper .icon-circle {
102
- @apply inline-block text-primary;
103
- }
100
+ label {
101
+ @apply relative inline-flex flex-col items-start space-y-1 cursor-pointer;
104
102
 
105
- .radio-button input:checked + label .radio-button-wrapper .icon-dot-circle {
106
- @apply inline-block text-primary;
107
- }
103
+ .radio-button-wrapper {
104
+ @apply inline-flex items-center text-base text-pgray-3;
108
105
 
109
- .radio-button input:disabled + label .radio-button-wrapper span {
110
- @apply text-pgray-3;
111
- }
106
+ .icon {
107
+ @apply hidden;
108
+ }
112
109
 
113
- .radio-button input:disabled + label .radio-button-wrapper .icon-circle {
114
- @apply text-pgray-3;
115
- }
110
+ span {
111
+ @apply ml-1 text-base text-pgray-2;
112
+ }
113
+ }
116
114
 
117
- .radio-button input:disabled + label .radio-button-wrapper .icon-dot-circle {
118
- @apply text-pgray-3;
115
+ .radio-button-desc {
116
+ @apply pl-5 text-xs text-pgray-2;
117
+ }
118
+ }
119
119
  }
120
120
  </style>
@@ -95,10 +95,10 @@ export default defineComponent({
95
95
 
96
96
  .radio-button-group .form-control {
97
97
  @apply flex flex-col space-y-1;
98
- }
99
98
 
100
- .radio-button-group .form-control.inline {
101
- @apply flex flex-row flex-wrap space-x-6 space-y-0;
99
+ &.inline {
100
+ @apply flex flex-row flex-wrap space-x-6 space-y-0;
101
+ }
102
102
  }
103
103
 
104
104
  .radio-button-group .invalid-feedback {
@@ -111,9 +111,9 @@ export default defineComponent({
111
111
 
112
112
  .radio-button-group--lg .form-control .radio-button label {
113
113
  @apply text-sm;
114
- }
115
114
 
116
- .radio-button-group--lg .form-control .radio-button label span {
117
- @apply ml-2 text-sm;
115
+ span {
116
+ @apply ml-2 text-sm;
117
+ }
118
118
  }
119
119
  </style>