@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.
- package/app/components/SLAlertModal.vue +18 -18
- package/app/components/SLButton.vue +108 -148
- package/app/components/SLCalendarButton.vue +24 -24
- package/app/components/SLCard.vue +44 -44
- package/app/components/SLCheckbox.vue +45 -46
- package/app/components/SLCircleButton.vue +13 -13
- package/app/components/SLCollapsableBlock.vue +15 -15
- package/app/components/SLCollapsableMulitPillSelect.vue +9 -9
- package/app/components/SLContextMenu.vue +9 -9
- package/app/components/SLDateInput.vue +41 -48
- package/app/components/SLDownloadButton.vue +12 -12
- package/app/components/SLDropdown.vue +21 -21
- package/app/components/SLDropdownItem.vue +3 -3
- package/app/components/SLElementWithTitle.vue +3 -3
- package/app/components/SLEyeCheckbox.vue +36 -36
- package/app/components/SLFileInput.vue +16 -16
- package/app/components/SLGenderAgeSelect.vue +39 -39
- package/app/components/SLHourRangeInput.vue +19 -20
- package/app/components/SLIOSSwitch.vue +72 -73
- package/app/components/SLIconButton.vue +29 -21
- package/app/components/SLInfoTip.vue +35 -36
- package/app/components/SLLegend.vue +9 -9
- package/app/components/SLLink.vue +3 -3
- package/app/components/SLLoading.vue +25 -25
- package/app/components/SLModal.vue +79 -79
- package/app/components/SLMonthCalendarButton.vue +46 -46
- package/app/components/SLMonthPicker.vue +28 -30
- package/app/components/SLMultiEmailInput.vue +72 -72
- package/app/components/SLMultiSelect.vue +27 -29
- package/app/components/SLPageModal.vue +5 -5
- package/app/components/SLPagination.vue +31 -31
- package/app/components/SLPillCheckbox.vue +42 -42
- package/app/components/SLPillLabel.vue +36 -36
- package/app/components/SLPopupMenuButton.vue +16 -16
- package/app/components/SLProfileButton.vue +17 -17
- package/app/components/SLProjectShareItem.vue +18 -17
- package/app/components/SLRadioButton.vue +33 -33
- package/app/components/SLRadioButtonGroup.vue +6 -6
- package/app/components/SLRadioGroup.vue +93 -93
- package/app/components/SLRangeInput.vue +17 -19
- package/app/components/SLRightSider.vue +19 -20
- package/app/components/SLSearchInput.vue +7 -7
- package/app/components/SLSelect.vue +90 -92
- package/app/components/SLSelectAllToggle.vue +45 -45
- package/app/components/SLSidebarNav.vue +148 -151
- package/app/components/SLSidebarNavGroupItemSection.vue +70 -78
- package/app/components/SLSidebarNavLinkItem.vue +51 -53
- package/app/components/SLSitePage.vue +6 -6
- package/app/components/SLSortByDropdown.vue +18 -18
- package/app/components/SLStayRangeInput.vue +40 -40
- package/app/components/SLTable.vue +56 -59
- package/app/components/SLTableTooltip.vue +31 -33
- package/app/components/SLTabs.vue +220 -220
- package/app/components/SLTextInput.vue +64 -74
- package/app/components/SLTextarea.vue +9 -9
- package/app/components/SLToast.vue +1 -2
- package/app/components/SLToggleButton.vue +12 -12
- package/app/components/SLTwoLayerMultiSelect.vue +56 -56
- package/app/components/SLTwoLayerSelect.vue +39 -39
- package/app/components/SLTwoLayerSingleSelect.vue +21 -21
- package/app/components/SLWarnModal.vue +3 -3
- 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
|
-
.
|
|
158
|
-
|
|
159
|
-
}
|
|
156
|
+
.custom-select {
|
|
157
|
+
@apply min-w-[2.3125rem];
|
|
160
158
|
|
|
161
|
-
.
|
|
162
|
-
|
|
163
|
-
}
|
|
159
|
+
.select-options .option-list .option-button {
|
|
160
|
+
@apply min-w-0 text-center;
|
|
161
|
+
}
|
|
164
162
|
|
|
165
|
-
.
|
|
166
|
-
|
|
167
|
-
}
|
|
163
|
+
.form-control label {
|
|
164
|
+
@apply text-center;
|
|
168
165
|
|
|
169
|
-
.
|
|
170
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
180
|
+
&.pagination-item--icon {
|
|
181
|
+
@apply py-1.5;
|
|
182
|
+
}
|
|
188
183
|
|
|
189
|
-
.pagination-item
|
|
190
|
-
|
|
191
|
-
}
|
|
184
|
+
+ .pagination-item {
|
|
185
|
+
@apply border-l;
|
|
186
|
+
}
|
|
192
187
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
188
|
+
&:first-child {
|
|
189
|
+
@apply border-l rounded-l-sm;
|
|
190
|
+
}
|
|
196
191
|
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
|
|
202
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
148
|
+
&.pill-checkbox-secondary-400 input:checked + label {
|
|
149
|
+
@apply bg-secondary-400 border-secondary-400;
|
|
150
|
+
}
|
|
152
151
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
152
|
+
&.pill-checkbox-primary-600 input:checked + label {
|
|
153
|
+
@apply bg-primary-600 border-primary-600;
|
|
154
|
+
}
|
|
156
155
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
156
|
+
&.pill-checkbox-third-500 input:checked + label {
|
|
157
|
+
@apply bg-third-500 border-third-500;
|
|
158
|
+
}
|
|
160
159
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
160
|
+
&.pill-checkbox-highlight input:checked + label {
|
|
161
|
+
@apply bg-highlight border-highlight;
|
|
162
|
+
}
|
|
164
163
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
164
|
+
&.pill-checkbox-primary input:checked + label {
|
|
165
|
+
@apply bg-primary border-primary;
|
|
166
|
+
}
|
|
168
167
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
168
|
+
&.pill-checkbox-blue-1 input:checked + label {
|
|
169
|
+
@apply bg-blue-1 border-blue-1;
|
|
170
|
+
}
|
|
172
171
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
172
|
+
&.pill-checkbox-third input:checked + label {
|
|
173
|
+
@apply bg-third border-third;
|
|
174
|
+
}
|
|
176
175
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
176
|
+
&.pill-checkbox-xs label {
|
|
177
|
+
@apply py-px text-xs;
|
|
178
|
+
}
|
|
180
179
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
180
|
+
input {
|
|
181
|
+
@apply absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2;
|
|
184
182
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
183
|
+
&:disabled + label {
|
|
184
|
+
@apply bg-white border-pgray-5 text-pgray-4 font-normal cursor-default;
|
|
185
|
+
}
|
|
188
186
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
187
|
+
&:checked + label {
|
|
188
|
+
@apply bg-white border-white text-white font-bold;
|
|
192
189
|
|
|
193
|
-
.
|
|
194
|
-
|
|
195
|
-
}
|
|
190
|
+
.icon {
|
|
191
|
+
@apply inline-block;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
196
195
|
|
|
197
|
-
|
|
198
|
-
|
|
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
|
-
.
|
|
202
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
72
|
+
&.pill-label-primary-600 {
|
|
73
|
+
@apply bg-primary-600 border-primary-600;
|
|
74
|
+
}
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
76
|
+
&.pill-label-third-500 {
|
|
77
|
+
@apply bg-third-500 border-third-500;
|
|
78
|
+
}
|
|
80
79
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
80
|
+
&.pill-label-third-600 {
|
|
81
|
+
@apply bg-third-600 border-third-600;
|
|
82
|
+
}
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
84
|
+
&.pill-label-highlight {
|
|
85
|
+
@apply bg-highlight border-highlight;
|
|
86
|
+
}
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
88
|
+
&.pill-label-secondary {
|
|
89
|
+
@apply bg-secondary border-secondary;
|
|
90
|
+
}
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
92
|
+
&.pill-label-primary {
|
|
93
|
+
@apply bg-primary border-primary;
|
|
94
|
+
}
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
96
|
+
&.pill-label-blue-1 {
|
|
97
|
+
@apply bg-blue-1 border-blue-1;
|
|
98
|
+
}
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
100
|
+
&.pill-label-white {
|
|
101
|
+
@apply text-pgray-2;
|
|
102
|
+
}
|
|
104
103
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
104
|
+
&.pill-label-third {
|
|
105
|
+
@apply bg-third border-third;
|
|
106
|
+
}
|
|
108
107
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
108
|
+
&.pill-label-xs {
|
|
109
|
+
@apply py-px text-xs;
|
|
110
|
+
}
|
|
112
111
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
112
|
+
&.pill-label-sm {
|
|
113
|
+
@apply py-px text-sm;
|
|
114
|
+
}
|
|
116
115
|
|
|
117
|
-
.
|
|
118
|
-
|
|
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
|
-
.
|
|
148
|
-
|
|
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
|
-
.
|
|
152
|
-
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
154
|
+
&:first-child {
|
|
155
|
+
@apply pt-2;
|
|
156
|
+
}
|
|
158
157
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
158
|
+
&:last-child {
|
|
159
|
+
@apply pb-2;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
185
|
-
|
|
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-
|
|
193
|
-
|
|
194
|
-
}
|
|
191
|
+
.profile-nav-divider {
|
|
192
|
+
@apply w-full h-px bg-primary-600;
|
|
193
|
+
}
|
|
195
194
|
|
|
196
|
-
.profile-nav-
|
|
197
|
-
|
|
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
|
-
.
|
|
201
|
-
|
|
202
|
-
}
|
|
199
|
+
.app-version {
|
|
200
|
+
@apply text-xs text-primary-600 text-right;
|
|
201
|
+
}
|
|
203
202
|
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
&[data-show] {
|
|
204
|
+
@apply visible pointer-events-auto;
|
|
205
|
+
}
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.profile-nav-popup
|
|
209
|
-
@apply
|
|
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
|
-
.
|
|
81
|
-
|
|
82
|
-
}
|
|
79
|
+
.item-actions {
|
|
80
|
+
@apply grow-0 shrink-0;
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
.
|
|
89
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
76
|
+
input {
|
|
77
|
+
@apply absolute -top-10 -left-10;
|
|
80
78
|
|
|
81
|
-
.radio-button
|
|
82
|
-
|
|
83
|
-
}
|
|
79
|
+
&:not(:checked) + label .radio-button-wrapper .icon-circle {
|
|
80
|
+
@apply inline-block text-primary;
|
|
81
|
+
}
|
|
84
82
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
83
|
+
&:disabled + label .radio-button-wrapper .icon-dot-circle {
|
|
84
|
+
@apply text-pgray-3;
|
|
85
|
+
}
|
|
88
86
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
87
|
+
&:checked + label .radio-button-wrapper .icon-dot-circle {
|
|
88
|
+
@apply inline-block text-primary;
|
|
89
|
+
}
|
|
92
90
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
91
|
+
&:disabled + label .radio-button-wrapper .icon-circle {
|
|
92
|
+
@apply text-pgray-3;
|
|
93
|
+
}
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
95
|
+
&:disabled + label .radio-button-wrapper span {
|
|
96
|
+
@apply text-pgray-3;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
100
|
+
label {
|
|
101
|
+
@apply relative inline-flex flex-col items-start space-y-1 cursor-pointer;
|
|
104
102
|
|
|
105
|
-
.radio-button
|
|
106
|
-
|
|
107
|
-
}
|
|
103
|
+
.radio-button-wrapper {
|
|
104
|
+
@apply inline-flex items-center text-base text-pgray-3;
|
|
108
105
|
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
}
|
|
106
|
+
.icon {
|
|
107
|
+
@apply hidden;
|
|
108
|
+
}
|
|
112
109
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
110
|
+
span {
|
|
111
|
+
@apply ml-1 text-base text-pgray-2;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
116
114
|
|
|
117
|
-
.radio-button
|
|
118
|
-
|
|
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
|
-
|
|
101
|
-
|
|
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
|
-
|
|
117
|
-
|
|
115
|
+
span {
|
|
116
|
+
@apply ml-2 text-sm;
|
|
117
|
+
}
|
|
118
118
|
}
|
|
119
119
|
</style>
|