@mptw/skylens-ui 1.4.15 → 1.4.17
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/assets/css/layout.styl +9 -9
- package/components/SLAlertModal.vue +4 -4
- package/components/SLButton.vue +33 -33
- package/components/SLCalendarButton.vue +1 -1
- package/components/SLCalendarPopup.vue +4 -4
- package/components/SLCard.vue +5 -5
- package/components/SLCircleButton.vue +5 -5
- package/components/SLCollapsableBlock.vue +1 -1
- package/components/SLCollapsableMulitPillSelect.vue +2 -2
- package/components/SLConfirmModal.vue +1 -1
- package/components/SLDateInput.vue +6 -6
- package/components/SLDownloadButton.vue +3 -3
- package/components/SLDropdown.vue +2 -2
- package/components/SLDropdownItem.vue +2 -2
- package/components/SLElementWithTitle.vue +1 -1
- package/components/SLFileInput.vue +2 -2
- package/components/SLGenderAgeSelect.vue +3 -3
- package/components/SLHourRangeInput.vue +2 -2
- package/components/SLIOSSwitch.vue +2 -2
- package/components/SLIconButton.vue +4 -4
- package/components/SLInfoTip.vue +1 -1
- package/components/SLInsightSitePage.vue +1 -1
- package/components/SLLegend.vue +1 -1
- package/components/SLLoading.vue +5 -5
- package/components/SLModal.vue +1 -1
- package/components/SLMonthCalendarButton.vue +3 -3
- package/components/SLMonthPicker.vue +2 -2
- package/components/SLMultiEmailInput.vue +7 -7
- package/components/SLMultiSelect.vue +3 -3
- package/components/SLNoData.vue +1 -1
- package/components/SLPillCheckbox.vue +16 -21
- package/components/SLPillLabel.vue +17 -17
- package/components/SLPopupMenuButton.vue +2 -2
- package/components/SLProfileButton.vue +3 -3
- package/components/SLProjectShareItem.vue +3 -3
- package/components/SLRadioGroup.vue +17 -17
- package/components/SLRangeInput.vue +2 -2
- package/components/SLRightSider.vue +5 -5
- package/components/SLSearchInput.vue +2 -2
- package/components/SLSelect.vue +6 -6
- package/components/SLSelectAllToggle.vue +11 -11
- package/components/SLSiderbarNav.vue +14 -14
- package/components/SLSkyInsightSitePage.vue +1 -1
- package/components/SLSortByDropdown.vue +3 -3
- package/components/SLStayRangeInput.vue +2 -2
- package/components/SLTable.vue +10 -10
- package/components/SLTableTooltip.vue +2 -2
- package/components/SLTabs.vue +10 -10
- package/components/SLTextInput.vue +9 -9
- package/components/SLTextarea.vue +3 -3
- package/components/SLToast.vue +1 -1
- package/components/SLToggleButton.vue +2 -2
- package/components/SLTwoLayerMultiSelect.vue +5 -5
- package/components/SLTwoLayerSelect.vue +3 -3
- package/components/SLTwoLayerSingleSelect.vue +1 -1
- package/package.json +1 -1
- package/tailwind.config.js +59 -103
package/assets/css/layout.styl
CHANGED
|
@@ -10,11 +10,11 @@ label
|
|
|
10
10
|
@apply inline-block
|
|
11
11
|
|
|
12
12
|
.vc-skylens-purple
|
|
13
|
-
--vc-accent-200 theme('colors.
|
|
13
|
+
--vc-accent-200 theme('colors.primary.100')
|
|
14
14
|
--vc-accent-600 theme('colors.primary.DEFAULT')
|
|
15
|
-
--vc-accent-500 theme('colors.primary.
|
|
16
|
-
--vc-accent-700 theme('colors.primary.
|
|
17
|
-
--vc-accent-900 theme('colors.primary.
|
|
15
|
+
--vc-accent-500 theme('colors.primary.300')
|
|
16
|
+
--vc-accent-700 theme('colors.primary.600')
|
|
17
|
+
--vc-accent-900 theme('colors.primary.800')
|
|
18
18
|
|
|
19
19
|
.vc-skylens-gray
|
|
20
20
|
--vc-accent-200 theme('colors.gray.5')
|
|
@@ -31,7 +31,7 @@ label
|
|
|
31
31
|
@apply absolute top-0 right-0 bottom-0 w-1 rounded-full
|
|
32
32
|
|
|
33
33
|
.indicator
|
|
34
|
-
@apply w-full h-12 bg-primary-
|
|
34
|
+
@apply w-full h-12 bg-primary-300 rounded-full
|
|
35
35
|
|
|
36
36
|
.markdown-content
|
|
37
37
|
@apply text-base leading-relaxed
|
|
@@ -65,11 +65,11 @@ label
|
|
|
65
65
|
|
|
66
66
|
/* Handle */
|
|
67
67
|
&::-webkit-scrollbar-thumb
|
|
68
|
-
@apply bg-primary-
|
|
68
|
+
@apply bg-primary-300 rounded
|
|
69
69
|
|
|
70
70
|
/* Handle on hover */
|
|
71
71
|
&::-webkit-scrollbar-thumb:hover
|
|
72
|
-
@apply bg-primary-
|
|
72
|
+
@apply bg-primary-500
|
|
73
73
|
|
|
74
74
|
.custom-scrollbar-x
|
|
75
75
|
@apply overflow-x-auto overflow-y-hidden
|
|
@@ -85,11 +85,11 @@ label
|
|
|
85
85
|
|
|
86
86
|
/* Handle */
|
|
87
87
|
&::-webkit-scrollbar-thumb
|
|
88
|
-
@apply bg-secondary
|
|
88
|
+
@apply bg-secondary rounded
|
|
89
89
|
|
|
90
90
|
/* Handle on hover */
|
|
91
91
|
&::-webkit-scrollbar-thumb:hover
|
|
92
|
-
@apply bg-secondary
|
|
92
|
+
@apply bg-secondary
|
|
93
93
|
|
|
94
94
|
.fade-enter-active, .fade-leave-active
|
|
95
95
|
@apply transition-opacity
|
|
@@ -12,11 +12,11 @@ SLModal(
|
|
|
12
12
|
SLIcon(
|
|
13
13
|
v-if="color === 'primary'"
|
|
14
14
|
icon="check-circle"
|
|
15
|
-
).text-
|
|
15
|
+
).text-highlight-500
|
|
16
16
|
SLIcon(
|
|
17
17
|
v-else
|
|
18
18
|
icon="exclamation-triangle"
|
|
19
|
-
:class="
|
|
19
|
+
:class="{ 'text-primary-600': text === 'primary-600', 'text-highlight-500': text === 'highlight-500', 'text-danger-light': text === 'danger-light' }"
|
|
20
20
|
)
|
|
21
21
|
p(v-html='message')
|
|
22
22
|
template(#footer)
|
|
@@ -47,9 +47,9 @@ export default defineComponent({
|
|
|
47
47
|
},
|
|
48
48
|
color: {
|
|
49
49
|
type: String,
|
|
50
|
-
default: "
|
|
50
|
+
default: "highlight-500",
|
|
51
51
|
validator: (value: string) =>
|
|
52
|
-
["", "primary", "
|
|
52
|
+
["", "primary-600", "highlight-500", "danger-light"].includes(value),
|
|
53
53
|
},
|
|
54
54
|
message: {
|
|
55
55
|
type: String,
|
package/components/SLButton.vue
CHANGED
|
@@ -33,13 +33,13 @@ export default defineComponent({
|
|
|
33
33
|
"",
|
|
34
34
|
"white",
|
|
35
35
|
"primary",
|
|
36
|
-
"primary-
|
|
37
|
-
"
|
|
36
|
+
"primary-600",
|
|
37
|
+
"highlight-500",
|
|
38
38
|
"third",
|
|
39
39
|
"danger",
|
|
40
|
-
"
|
|
40
|
+
"gray-5",
|
|
41
41
|
"gray-2",
|
|
42
|
-
"secondary
|
|
42
|
+
"secondary",
|
|
43
43
|
"blue-1",
|
|
44
44
|
"insight-title-line",
|
|
45
45
|
].includes(val),
|
|
@@ -140,70 +140,70 @@ export default defineComponent({
|
|
|
140
140
|
border-color white transparent transparent transparent
|
|
141
141
|
|
|
142
142
|
&-primary
|
|
143
|
-
@apply bg-primary border-primary text-
|
|
143
|
+
@apply bg-primary border-primary text-white s("hover:bg-primary-600") s("hover:border-primary-600")
|
|
144
144
|
|
|
145
145
|
&.btn-outline
|
|
146
|
-
@apply text-primary s("hover:text-primary-
|
|
146
|
+
@apply text-primary s("hover:text-primary-600")
|
|
147
147
|
|
|
148
148
|
.btn-loading
|
|
149
149
|
.loading
|
|
150
150
|
div
|
|
151
151
|
border-color theme('colors.primary.DEFAULT') transparent transparent transparent
|
|
152
152
|
|
|
153
|
-
&-primary-
|
|
154
|
-
@apply bg-primary-
|
|
153
|
+
&-primary-600
|
|
154
|
+
@apply bg-primary-600 border-primary-600 text-white s("hover:bg-primary-300") s("hover:border-primary-300")
|
|
155
155
|
|
|
156
156
|
&.btn-outline
|
|
157
|
-
@apply text-primary-
|
|
157
|
+
@apply text-primary-600 s("hover:text-primary-300")
|
|
158
158
|
|
|
159
159
|
.btn-loading
|
|
160
160
|
.loading
|
|
161
161
|
div
|
|
162
|
-
border-color theme('colors.primary.
|
|
162
|
+
border-color theme('colors.primary.600') transparent transparent transparent
|
|
163
163
|
|
|
164
|
-
&-
|
|
165
|
-
@apply bg-
|
|
164
|
+
&-highlight-500
|
|
165
|
+
@apply bg-highlight-500 border-highlight-500 text-white s("hover:bg-highlight-400") s("hover:text-white") s("hover:border-highlight-400")
|
|
166
166
|
|
|
167
167
|
&.btn-outline
|
|
168
|
-
@apply text-
|
|
168
|
+
@apply text-highlight-500 s("hover:text-highlight-400")
|
|
169
169
|
|
|
170
170
|
.btn-loading
|
|
171
171
|
.loading
|
|
172
172
|
div
|
|
173
|
-
border-color theme('colors.
|
|
173
|
+
border-color theme('colors.highlight.400') transparent transparent transparent
|
|
174
174
|
|
|
175
175
|
&-third
|
|
176
|
-
@apply bg-third
|
|
176
|
+
@apply bg-third border-third text-white s("hover:bg-third-600") s("hover:text-white") s("hover:border-third-600")
|
|
177
177
|
|
|
178
178
|
&.btn-outline
|
|
179
|
-
@apply text-third
|
|
179
|
+
@apply text-third s("hover:text-third-600")
|
|
180
180
|
|
|
181
181
|
.btn-loading
|
|
182
182
|
.loading
|
|
183
183
|
div
|
|
184
|
-
border-color theme('colors.third.
|
|
184
|
+
border-color theme('colors.third.600') transparent transparent transparent
|
|
185
185
|
|
|
186
186
|
&-danger
|
|
187
|
-
@apply bg-danger border-danger text-white s("hover:bg-danger-
|
|
187
|
+
@apply bg-danger border-danger text-white s("hover:bg-danger-light") s("hover:border-danger-light")
|
|
188
188
|
|
|
189
189
|
&.btn-outline
|
|
190
|
-
@apply text-danger s("hover:text-danger-
|
|
190
|
+
@apply text-danger s("hover:text-danger-light")
|
|
191
191
|
|
|
192
192
|
.btn-loading
|
|
193
193
|
.loading
|
|
194
194
|
div
|
|
195
|
-
border-color theme('colors.danger.
|
|
195
|
+
border-color theme('colors.danger.light') transparent transparent transparent
|
|
196
196
|
|
|
197
|
-
&-
|
|
198
|
-
@apply bg-
|
|
197
|
+
&-gray-5
|
|
198
|
+
@apply bg-gray-5 border-gray-5 text-gray-2 s("hover:bg-gray-4.5") s("hover:border-gray-4.5")
|
|
199
199
|
|
|
200
200
|
&.btn-outline
|
|
201
|
-
@apply text-
|
|
201
|
+
@apply text-gray-5 s("hover:text-gray-4.5")
|
|
202
202
|
|
|
203
203
|
.btn-loading
|
|
204
204
|
.loading
|
|
205
205
|
div
|
|
206
|
-
border-color theme('colors.cancel.
|
|
206
|
+
border-color theme('colors.cancel["4.5"]') transparent transparent transparent
|
|
207
207
|
|
|
208
208
|
&-gray-2
|
|
209
209
|
@apply bg-gray-2 border-gray-2 text-white s("hover:bg-gray-3") s("hover:border-gray-3")
|
|
@@ -216,19 +216,19 @@ export default defineComponent({
|
|
|
216
216
|
div
|
|
217
217
|
border-color theme('colors.gray.3') transparent transparent transparent
|
|
218
218
|
|
|
219
|
-
&-secondary
|
|
220
|
-
@apply bg-secondary
|
|
219
|
+
&-secondary
|
|
220
|
+
@apply bg-secondary border-secondary text-white s("hover:bg-secondary") s("hover:border-secondary")
|
|
221
221
|
|
|
222
222
|
&.btn-outline
|
|
223
|
-
@apply text-secondary
|
|
223
|
+
@apply text-secondary s("hover:text-secondary")
|
|
224
224
|
|
|
225
225
|
.btn-loading
|
|
226
226
|
.loading
|
|
227
227
|
div
|
|
228
|
-
border-color theme('colors.secondary.
|
|
228
|
+
border-color theme('colors.secondary.500') transparent transparent transparent
|
|
229
229
|
|
|
230
230
|
&-blue-1
|
|
231
|
-
@apply bg-secondary
|
|
231
|
+
@apply bg-secondary border-secondary text-white s("hover:bg-blue-1") s("hover:border-blue-1")
|
|
232
232
|
|
|
233
233
|
&.btn-outline
|
|
234
234
|
@apply text-blue-1 s("hover:text-blue-1")
|
|
@@ -253,16 +253,16 @@ export default defineComponent({
|
|
|
253
253
|
@apply bg-transparent border s("hover:bg-white")
|
|
254
254
|
|
|
255
255
|
&-disabled
|
|
256
|
-
@apply bg-
|
|
256
|
+
@apply bg-gray-5 border-gray-5 text-white cursor-default s("hover:bg-gray-5") s("hover:border-gray-5") s("hover:text-white")
|
|
257
257
|
|
|
258
258
|
&.btn-outline
|
|
259
|
-
@apply bg-
|
|
259
|
+
@apply bg-gray-5 border-gray-5 text-white s("hover:bg-gray-5") s("hover:border-gray-5") s("hover:text-white")
|
|
260
260
|
|
|
261
261
|
&.btn-icon
|
|
262
|
-
@apply bg-transparent border-transparent text-
|
|
262
|
+
@apply bg-transparent border-transparent text-gray-5 s("hover:bg-transparent") s("hover:border-transparent") s("hover:text-gray-5")
|
|
263
263
|
|
|
264
264
|
&.loading
|
|
265
|
-
@apply bg-
|
|
265
|
+
@apply bg-primary-200 border-primary-200 cursor-default
|
|
266
266
|
|
|
267
267
|
.btn-content
|
|
268
268
|
@apply opacity-0
|
|
@@ -256,7 +256,7 @@ export default defineComponent({
|
|
|
256
256
|
@apply flex-grow-0 flex-shrink-0 block w-px s('h-4.75') ml-2 s('mr-1.75') bg-primary
|
|
257
257
|
|
|
258
258
|
.range-days
|
|
259
|
-
@apply block s('ml-0.5') px-1 s('py-0.5') bg-
|
|
259
|
+
@apply block s('ml-0.5') px-1 s('py-0.5') bg-primary-50 rounded text-xs text-primary
|
|
260
260
|
|
|
261
261
|
.compare-date-range
|
|
262
262
|
@apply pl-1 space-x-2 text-sm text-gray-3
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.actions
|
|
92
92
|
SLButton(
|
|
93
93
|
size="lg"
|
|
94
|
-
color="
|
|
94
|
+
color="gray-5"
|
|
95
95
|
title="取消"
|
|
96
96
|
@click="onClickedCancel"
|
|
97
97
|
)
|
|
@@ -759,7 +759,7 @@ export default defineComponent({
|
|
|
759
759
|
|
|
760
760
|
<style lang="stylus">
|
|
761
761
|
.calendar-popup
|
|
762
|
-
@apply w-auto py-4 border border-
|
|
762
|
+
@apply w-auto py-4 border border-primary-100 rounded-lg bg-white shadow-md overflow-hidden
|
|
763
763
|
|
|
764
764
|
.popup-body
|
|
765
765
|
@apply flex s('mb-2.5') divide-x divide-gray-4
|
|
@@ -783,10 +783,10 @@ export default defineComponent({
|
|
|
783
783
|
@apply relative
|
|
784
784
|
|
|
785
785
|
.quick-button
|
|
786
|
-
@apply relative block s('w-[7.4375rem]') s('pl-6.5') s('py-2') space-y-1 bg-white text-gray-3 s('hover:bg-
|
|
786
|
+
@apply relative block s('w-[7.4375rem]') s('pl-6.5') s('py-2') space-y-1 bg-white text-gray-3 s('hover:bg-primary-100') s('hover:text-gray-2')
|
|
787
787
|
|
|
788
788
|
&.selected
|
|
789
|
-
@apply bg-
|
|
789
|
+
@apply bg-primary-100 text-primary s('hover:text-primary')
|
|
790
790
|
|
|
791
791
|
&:before
|
|
792
792
|
content ''
|
package/components/SLCard.vue
CHANGED
|
@@ -67,13 +67,13 @@ export default defineComponent({
|
|
|
67
67
|
@apply border-0 rounded-none shadow-none
|
|
68
68
|
|
|
69
69
|
.card
|
|
70
|
-
@apply rounded-lg border-primary-
|
|
70
|
+
@apply rounded-lg border-primary-300 shadow-md
|
|
71
71
|
|
|
72
72
|
.card
|
|
73
73
|
@apply border-0 rounded-none shadow-none
|
|
74
74
|
|
|
75
75
|
.card
|
|
76
|
-
@apply p-4 border border-
|
|
76
|
+
@apply p-4 border border-primary-600 rounded bg-white shadow
|
|
77
77
|
|
|
78
78
|
.card-header
|
|
79
79
|
@apply flex justify-between mb-4
|
|
@@ -88,7 +88,7 @@ export default defineComponent({
|
|
|
88
88
|
@apply ml-2
|
|
89
89
|
|
|
90
90
|
&-border
|
|
91
|
-
@apply s('h-0.5') rounded-full bg-
|
|
91
|
+
@apply s('h-0.5') rounded-full bg-highlight-500
|
|
92
92
|
|
|
93
93
|
.card-desc
|
|
94
94
|
@apply text-base text-gray-2
|
|
@@ -103,10 +103,10 @@ export default defineComponent({
|
|
|
103
103
|
@apply relative
|
|
104
104
|
|
|
105
105
|
.card-footer
|
|
106
|
-
@apply mt-4 pb-2 border-b s('border-primary-
|
|
106
|
+
@apply mt-4 pb-2 border-b s('border-primary-300/30')
|
|
107
107
|
|
|
108
108
|
.card
|
|
109
|
-
@apply border-primary-
|
|
109
|
+
@apply border-primary-300 rounded-lg shadow-md
|
|
110
110
|
|
|
111
111
|
.card-header
|
|
112
112
|
.card-title
|
|
@@ -19,7 +19,7 @@ export default defineComponent({
|
|
|
19
19
|
},
|
|
20
20
|
color: {
|
|
21
21
|
type: String,
|
|
22
|
-
default: "
|
|
22
|
+
default: "highlight-400",
|
|
23
23
|
},
|
|
24
24
|
icon: {
|
|
25
25
|
type: String,
|
|
@@ -81,15 +81,15 @@ export default defineComponent({
|
|
|
81
81
|
.badge
|
|
82
82
|
@apply s('top-1.75') right-3 w-1 h-1
|
|
83
83
|
|
|
84
|
-
&&-
|
|
85
|
-
@apply bg-
|
|
84
|
+
&&-highlight-400
|
|
85
|
+
@apply bg-highlight-400
|
|
86
86
|
|
|
87
87
|
&.shadow
|
|
88
88
|
@apply shadow-md
|
|
89
89
|
|
|
90
90
|
&.active
|
|
91
|
-
@apply border border-
|
|
91
|
+
@apply border border-highlight text-highlight
|
|
92
92
|
|
|
93
93
|
.badge
|
|
94
|
-
@apply absolute s('top-1.5') right-2 block s('w-0.75') s('h-0.75') rounded-full bg-
|
|
94
|
+
@apply absolute s('top-1.5') right-2 block s('w-0.75') s('h-0.75') rounded-full bg-highlight
|
|
95
95
|
</style>
|
|
@@ -97,7 +97,7 @@ export default defineComponent({
|
|
|
97
97
|
|
|
98
98
|
<style lang="stylus">
|
|
99
99
|
.sl-collapsable-block
|
|
100
|
-
@apply s('p-3.75') border border-secondary-
|
|
100
|
+
@apply s('p-3.75') border border-secondary-400 rounded-lg
|
|
101
101
|
|
|
102
102
|
&.collapsed
|
|
103
103
|
.sl-collapsable-block-header
|
|
@@ -75,7 +75,7 @@ export default defineComponent({
|
|
|
75
75
|
<style lang="stylus">
|
|
76
76
|
.collapsable-multi-pill-select
|
|
77
77
|
.toggle-button
|
|
78
|
-
@apply inline-flex items-center justify-between w-80 p-2 mb-2 border border-primary-
|
|
78
|
+
@apply inline-flex items-center justify-between w-80 p-2 mb-2 border border-primary-500 rounded text-base text-gray-2
|
|
79
79
|
|
|
80
80
|
&.active
|
|
81
81
|
.toggle-icon
|
|
@@ -85,7 +85,7 @@ export default defineComponent({
|
|
|
85
85
|
@apply transform origin-center
|
|
86
86
|
|
|
87
87
|
.pills
|
|
88
|
-
@apply s('-mx-1') mb-4 border-b border-primary-
|
|
88
|
+
@apply s('-mx-1') mb-4 border-b border-primary-300
|
|
89
89
|
|
|
90
90
|
.pill-checkbox
|
|
91
91
|
@apply mx-1 mb-2
|
|
@@ -399,7 +399,7 @@ export default defineComponent({
|
|
|
399
399
|
&.disabled, &.readonly
|
|
400
400
|
.input-group
|
|
401
401
|
.input-group-prepend, .inputs
|
|
402
|
-
@apply border-primary-
|
|
402
|
+
@apply border-primary-500 bg-primary-100
|
|
403
403
|
|
|
404
404
|
|
|
405
405
|
& > label
|
|
@@ -408,10 +408,10 @@ export default defineComponent({
|
|
|
408
408
|
.is-invalid
|
|
409
409
|
.input-group, .input-group.is-focus
|
|
410
410
|
.input-group-prepend
|
|
411
|
-
@apply border-danger-
|
|
411
|
+
@apply border-danger-light
|
|
412
412
|
|
|
413
413
|
.inputs
|
|
414
|
-
@apply border-danger-
|
|
414
|
+
@apply border-danger-light
|
|
415
415
|
|
|
416
416
|
.icon
|
|
417
417
|
@apply inline-block
|
|
@@ -433,14 +433,14 @@ export default defineComponent({
|
|
|
433
433
|
@apply s('ml-1.5') s('-mt-2.25') py-0 s('px-0.5') bg-white text-primary text-xs transition-input-focus
|
|
434
434
|
|
|
435
435
|
&-prepend
|
|
436
|
-
@apply flex-grow-0 flex-shrink-0 flex items-center relative pl-4 pr-6 rounded-l border border-r-0 border-primary-
|
|
436
|
+
@apply flex-grow-0 flex-shrink-0 flex items-center relative pl-4 pr-6 rounded-l border border-r-0 border-primary-500 bg-white text-base leading-none
|
|
437
437
|
|
|
438
438
|
&:after
|
|
439
439
|
content ''
|
|
440
440
|
@apply block absolute top-2 s('right-1.75') bottom-2 w-px bg-primary
|
|
441
441
|
|
|
442
442
|
.inputs
|
|
443
|
-
@apply relative flex-grow flex items-center p-2 bg-white rounded-r border border-l-0 border-primary-
|
|
443
|
+
@apply relative flex-grow flex items-center p-2 bg-white rounded-r border border-l-0 border-primary-500 text-base text-gray-2
|
|
444
444
|
|
|
445
445
|
input
|
|
446
446
|
@apply flex-grow bg-transparent text-base text-gray-2 text-left placeholder-gray-4 s('focus:outline-none')
|
|
@@ -450,7 +450,7 @@ export default defineComponent({
|
|
|
450
450
|
@apply flex-grow-0 flex-shrink-0 s('mx-0.5')
|
|
451
451
|
|
|
452
452
|
.icon
|
|
453
|
-
@apply absolute right-0 mr-2 text-danger-
|
|
453
|
+
@apply absolute right-0 mr-2 text-danger-light hidden
|
|
454
454
|
|
|
455
455
|
.input-info
|
|
456
456
|
@apply mt-1 text-xs text-gray-3
|
|
@@ -390,7 +390,7 @@ export default defineComponent({
|
|
|
390
390
|
|
|
391
391
|
&.disabled
|
|
392
392
|
.download-button-toggle
|
|
393
|
-
@apply border-
|
|
393
|
+
@apply border-gray-5 text-gray-5 cursor-default
|
|
394
394
|
|
|
395
395
|
&-toggle
|
|
396
396
|
@apply inline-flex justify-center items-center s('w-[28px]') s('h-[28px]') bg-white border border-primary-hover rounded text-lg text-primary-hover
|
|
@@ -399,12 +399,12 @@ export default defineComponent({
|
|
|
399
399
|
@apply bg-primary-hover text-white
|
|
400
400
|
|
|
401
401
|
.download-button-popup
|
|
402
|
-
@apply z-60 absolute flex flex-col bg-white border border-primary-
|
|
402
|
+
@apply z-60 absolute flex flex-col bg-white border border-primary-500 rounded overflow-hidden shadow invisible pointer-events-none
|
|
403
403
|
|
|
404
404
|
&[data-show]
|
|
405
405
|
@apply visible pointer-events-auto
|
|
406
406
|
|
|
407
407
|
.download-option
|
|
408
408
|
@apply block p-2 bg-white text-sm text-gray-3
|
|
409
|
-
@apply s('hover:bg-
|
|
409
|
+
@apply s('hover:bg-primary-100') s('hover:text-primary')
|
|
410
410
|
</style>
|
|
@@ -251,13 +251,13 @@ export default defineComponent({
|
|
|
251
251
|
@apply text-primary-hover rotate-180
|
|
252
252
|
|
|
253
253
|
&-toggle
|
|
254
|
-
@apply flex items-center s('p-1.75') border border-primary-
|
|
254
|
+
@apply flex items-center s('p-1.75') border border-primary-500 rounded bg-white space-x-2 text-base text-gray-2 whitespace-nowrap
|
|
255
255
|
|
|
256
256
|
.toggle-icon
|
|
257
257
|
@apply text-xs leading-none text-gray-2 transition-transform transform
|
|
258
258
|
|
|
259
259
|
&-menu
|
|
260
|
-
@apply z-50 flex flex-col max-h-48 border border-primary-
|
|
260
|
+
@apply z-50 flex flex-col max-h-48 border border-primary-500 rounded bg-white shadow-md overflow-hidden invisible pointer-events-none
|
|
261
261
|
|
|
262
262
|
&[data-show]
|
|
263
263
|
@apply visible pointer-events-auto
|
|
@@ -24,8 +24,8 @@ export default defineComponent({
|
|
|
24
24
|
|
|
25
25
|
<style lang="stylus">
|
|
26
26
|
.dropdown-item
|
|
27
|
-
@apply block p-2 bg-white text-sm text-primary whitespace-nowrap s('hover:text-primary') s('hover:bg-
|
|
27
|
+
@apply block p-2 bg-white text-sm text-primary whitespace-nowrap s('hover:text-primary') s('hover:bg-primary-50') s('focus:text-primary') s('focus:bg-primary-50') s('active:text-primary') s('active:bg-primary-50')
|
|
28
28
|
|
|
29
29
|
&.active
|
|
30
|
-
@apply text-primary bg-
|
|
30
|
+
@apply text-primary bg-primary-50
|
|
31
31
|
</style>
|
|
@@ -174,7 +174,7 @@ export default defineComponent({
|
|
|
174
174
|
@apply inline-flex
|
|
175
175
|
|
|
176
176
|
&-tooltip
|
|
177
|
-
@apply s('z-[10]') p-2 s('bg-
|
|
177
|
+
@apply s('z-[10]') p-2 s('bg-mask/70') rounded text-xs text-white whitespace-pre shadow invisible pointer-events-none
|
|
178
178
|
|
|
179
179
|
&[data-show]
|
|
180
180
|
@apply visible
|
|
@@ -91,11 +91,11 @@ export default defineComponent({
|
|
|
91
91
|
|
|
92
92
|
label
|
|
93
93
|
@apply relative inline-block s("py-1.75") s("px-3.75") border border-transparent rounded bg-transparent text-base leading-normal space-x-2 cursor-pointer s("focus:outline-none")
|
|
94
|
-
@apply bg-primary border-primary text-
|
|
94
|
+
@apply bg-primary border-primary text-white s("hover:bg-primary-hover") s("hover:border-primary-hover")
|
|
95
95
|
|
|
96
96
|
input[type="file"]
|
|
97
97
|
@apply absolute top-0 left-0
|
|
98
98
|
|
|
99
99
|
.filename
|
|
100
|
-
@apply s("p-1.75") border border-primary-
|
|
100
|
+
@apply s("p-1.75") border border-primary-300 rounded bg-primary-50 text-base text-gray-2
|
|
101
101
|
</style>
|
|
@@ -235,7 +235,7 @@ export default defineComponent({
|
|
|
235
235
|
@apply relative inline-flex
|
|
236
236
|
|
|
237
237
|
.toggle-button
|
|
238
|
-
@apply inline-flex items-center justify-between w-full s('p-1.75') border border-primary-
|
|
238
|
+
@apply inline-flex items-center justify-between w-full s('p-1.75') border border-primary-500 rounded space-x-4 text-sm text-gray-2
|
|
239
239
|
|
|
240
240
|
.toggle-title
|
|
241
241
|
@apply flex-grow truncate
|
|
@@ -244,7 +244,7 @@ export default defineComponent({
|
|
|
244
244
|
@apply flex-grow-0 flex-shrink-0 text-xs leading-none
|
|
245
245
|
|
|
246
246
|
.options-popup
|
|
247
|
-
@apply z-60 absolute flex s('max-h-[196px]') s('p-2.75') bg-white border border-primary-
|
|
247
|
+
@apply z-60 absolute flex s('max-h-[196px]') s('p-2.75') bg-white border border-primary-500 rounded shadow pointer-events-none invisible
|
|
248
248
|
|
|
249
249
|
&[data-show]
|
|
250
250
|
@apply pointer-events-auto visible
|
|
@@ -269,7 +269,7 @@ export default defineComponent({
|
|
|
269
269
|
.checkbox
|
|
270
270
|
label
|
|
271
271
|
@apply w-full s('py-1.5') px-2 text-sm
|
|
272
|
-
@apply s('hover:bg-
|
|
272
|
+
@apply s('hover:bg-primary-100')
|
|
273
273
|
|
|
274
274
|
span
|
|
275
275
|
@apply ml-1
|
|
@@ -179,7 +179,7 @@ export default defineComponent({
|
|
|
179
179
|
|
|
180
180
|
&.disabled, &.readonly
|
|
181
181
|
.input-group
|
|
182
|
-
@apply border-primary-
|
|
182
|
+
@apply border-primary-500 bg-primary-100
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
& > label
|
|
@@ -192,7 +192,7 @@ export default defineComponent({
|
|
|
192
192
|
@apply flex items-center space-x-2
|
|
193
193
|
|
|
194
194
|
.input-group
|
|
195
|
-
@apply flex items-center flex-nowrap p-2 bg-white border border-primary-
|
|
195
|
+
@apply flex items-center flex-nowrap p-2 bg-white border border-primary-500 rounded text-base space-x-1
|
|
196
196
|
|
|
197
197
|
&.invalid
|
|
198
198
|
@apply border-danger
|
|
@@ -206,7 +206,7 @@ export default defineComponent({
|
|
|
206
206
|
@apply absolute s('left-1/2') s('top-1/2') transform s('-translate-x-1/2') s('-translate-y-1/2')
|
|
207
207
|
|
|
208
208
|
label
|
|
209
|
-
@apply relative min-w-full s('h-[2.3125rem]') bg-
|
|
209
|
+
@apply relative min-w-full s('h-[2.3125rem]') bg-primary-100 border border-primary-200 rounded-full text-base leading-normal align-top cursor-pointer transition-colors
|
|
210
210
|
|
|
211
211
|
&:before
|
|
212
212
|
content ''
|
|
@@ -222,7 +222,7 @@ export default defineComponent({
|
|
|
222
222
|
@apply s('pl-[35px]') pr-2 text-primary-hover opacity-100
|
|
223
223
|
|
|
224
224
|
input:checked + label
|
|
225
|
-
@apply bg-primary border-primary-
|
|
225
|
+
@apply bg-primary border-primary-800
|
|
226
226
|
|
|
227
227
|
&:before
|
|
228
228
|
@apply left-auto s('right-0.75')
|
|
@@ -25,7 +25,7 @@ export default defineComponent({
|
|
|
25
25
|
type: String,
|
|
26
26
|
default: "",
|
|
27
27
|
validator: (val: string) =>
|
|
28
|
-
["", "primary", "secondary
|
|
28
|
+
["", "primary", "secondary"].includes(val),
|
|
29
29
|
},
|
|
30
30
|
variant: {
|
|
31
31
|
type: String,
|
|
@@ -113,11 +113,11 @@ export default defineComponent({
|
|
|
113
113
|
&.icon-btn--outline
|
|
114
114
|
@apply text-primary
|
|
115
115
|
|
|
116
|
-
&.icon-btn--secondary
|
|
117
|
-
@apply bg-secondary
|
|
116
|
+
&.icon-btn--secondary
|
|
117
|
+
@apply bg-secondary border-secondary
|
|
118
118
|
|
|
119
119
|
&.icon-btn--outline
|
|
120
|
-
@apply text-secondary
|
|
120
|
+
@apply text-secondary
|
|
121
121
|
|
|
122
122
|
&.icon-btn--outline
|
|
123
123
|
@apply bg-transparent
|
package/components/SLInfoTip.vue
CHANGED
|
@@ -205,7 +205,7 @@ export default defineComponent({
|
|
|
205
205
|
content '\e943'
|
|
206
206
|
|
|
207
207
|
&-content
|
|
208
|
-
@apply relative flex py-5 pl-4 pr-6 border s('border-
|
|
208
|
+
@apply relative flex py-5 pl-4 pr-6 border s('border-primary-600/50') rounded-lg bg-white text-sm text-gray-2 font-normal shadow-popup-sm
|
|
209
209
|
|
|
210
210
|
.pin-toggle
|
|
211
211
|
@apply absolute top-0 right-0 mt-2 mr-2 text-base text-primary-hover
|