@mptw/skylens-ui 1.4.14 → 1.4.16
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 +5 -5
- package/components/SLAlertModal.vue +4 -4
- package/components/SLButton.vue +29 -29
- 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/SLTab.vue +12 -3
- package/components/SLTable.vue +10 -10
- package/components/SLTableTooltip.vue +2 -2
- package/components/SLTabs.vue +14 -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
|
@@ -120,11 +120,11 @@ export default defineComponent({
|
|
|
120
120
|
|
|
121
121
|
& > .nav-item-container
|
|
122
122
|
.nav-item-wrapper
|
|
123
|
-
@apply bg-card-primary-
|
|
123
|
+
@apply bg-card-primary-600
|
|
124
124
|
|
|
125
125
|
.siderbar-toggle
|
|
126
126
|
&:hover
|
|
127
|
-
@apply bg-primary-
|
|
127
|
+
@apply bg-primary-300 text-white
|
|
128
128
|
|
|
129
129
|
.siderbar-logo
|
|
130
130
|
.logo
|
|
@@ -153,10 +153,10 @@ export default defineComponent({
|
|
|
153
153
|
& > .nav-item-container
|
|
154
154
|
&:hover
|
|
155
155
|
.nav-item-wrapper
|
|
156
|
-
@apply bg-card-primary-
|
|
156
|
+
@apply bg-card-primary-600
|
|
157
157
|
|
|
158
158
|
.nav-item-wrapper
|
|
159
|
-
@apply bg-card-primary-
|
|
159
|
+
@apply bg-card-primary-600
|
|
160
160
|
|
|
161
161
|
.nav-item-container
|
|
162
162
|
&:hover
|
|
@@ -176,13 +176,13 @@ export default defineComponent({
|
|
|
176
176
|
background #2D2F57
|
|
177
177
|
|
|
178
178
|
&:before
|
|
179
|
-
@apply border-2 border-primary-hover bg-primary-
|
|
179
|
+
@apply border-2 border-primary-hover bg-primary-300
|
|
180
180
|
|
|
181
181
|
.siderbar-toggle
|
|
182
|
-
@apply bg-primary-
|
|
182
|
+
@apply bg-primary-300 text-white
|
|
183
183
|
|
|
184
184
|
&:hover
|
|
185
|
-
@apply bg-
|
|
185
|
+
@apply bg-primary-25 text-primary
|
|
186
186
|
|
|
187
187
|
&.closure
|
|
188
188
|
margin-left -188px
|
|
@@ -200,7 +200,7 @@ export default defineComponent({
|
|
|
200
200
|
border-radius 0px 12px 12px 0px
|
|
201
201
|
|
|
202
202
|
&:hover
|
|
203
|
-
@apply bg-primary-
|
|
203
|
+
@apply bg-primary-300 text-white
|
|
204
204
|
|
|
205
205
|
.icon-chevron-left
|
|
206
206
|
@apply hidden
|
|
@@ -259,7 +259,7 @@ export default defineComponent({
|
|
|
259
259
|
@apply hidden
|
|
260
260
|
|
|
261
261
|
nav + nav
|
|
262
|
-
@apply border-t border-primary-
|
|
262
|
+
@apply border-t border-primary-300
|
|
263
263
|
|
|
264
264
|
nav
|
|
265
265
|
@apply flex-grow relative flex flex-col overflow-hidden
|
|
@@ -323,7 +323,7 @@ export default defineComponent({
|
|
|
323
323
|
|
|
324
324
|
&:hover
|
|
325
325
|
.nav-item-wrapper
|
|
326
|
-
@apply bg-
|
|
326
|
+
@apply bg-primary-100
|
|
327
327
|
|
|
328
328
|
.nav-item-button
|
|
329
329
|
@apply font-bold
|
|
@@ -374,20 +374,20 @@ export default defineComponent({
|
|
|
374
374
|
@apply flex-grow
|
|
375
375
|
|
|
376
376
|
label
|
|
377
|
-
@apply border-
|
|
377
|
+
@apply border-primary-100 bg-primary-25
|
|
378
378
|
|
|
379
379
|
&:before
|
|
380
|
-
@apply border-2 border-
|
|
380
|
+
@apply border-2 border-primary-100
|
|
381
381
|
|
|
382
382
|
&-toggle
|
|
383
|
-
@apply absolute top-0 right-0 flex justify-center items-center bg-
|
|
383
|
+
@apply absolute top-0 right-0 flex justify-center items-center bg-primary-50 text-sm text-primary-600 leading-none transition-all
|
|
384
384
|
width 20px
|
|
385
385
|
height 40px
|
|
386
386
|
margin-top 25px
|
|
387
387
|
border-radius 12px 0px 0px 12px
|
|
388
388
|
|
|
389
389
|
&:hover
|
|
390
|
-
@apply bg-primary-
|
|
390
|
+
@apply bg-primary-300 text-white
|
|
391
391
|
|
|
392
392
|
.icon-chevron-right
|
|
393
393
|
@apply hidden
|
|
@@ -172,12 +172,12 @@ export default defineComponent({
|
|
|
172
172
|
@apply hidden
|
|
173
173
|
|
|
174
174
|
&-toggle
|
|
175
|
-
@apply inline-flex items-center px-1 s('py-0.5') space-x-2 bg-
|
|
175
|
+
@apply inline-flex items-center px-1 s('py-0.5') space-x-2 bg-primary-50 rounded text-sm text-primary
|
|
176
176
|
.icon
|
|
177
177
|
@apply text-xs
|
|
178
178
|
|
|
179
179
|
&-menu
|
|
180
|
-
@apply s('z-[2]') flex-col s('min-w-[84px]') bg-white border border-primary-
|
|
180
|
+
@apply s('z-[2]') flex-col s('min-w-[84px]') bg-white border border-primary-600 rounded overflow-hidden hidden
|
|
181
181
|
|
|
182
182
|
&[data-show]
|
|
183
183
|
@apply inline-flex
|
|
@@ -185,5 +185,5 @@ export default defineComponent({
|
|
|
185
185
|
.sort-by-dropdown-item
|
|
186
186
|
@apply inline-flex p-2 bg-white text-sm text-gray-3
|
|
187
187
|
&.active
|
|
188
|
-
@apply bg-
|
|
188
|
+
@apply bg-primary-100 text-primary
|
|
189
189
|
</style>
|
|
@@ -271,7 +271,7 @@ export default defineComponent({
|
|
|
271
271
|
&.disabled, &.readonly
|
|
272
272
|
.input-group
|
|
273
273
|
input[type=text]
|
|
274
|
-
@apply border-primary-
|
|
274
|
+
@apply border-primary-600 bg-primary-100
|
|
275
275
|
|
|
276
276
|
|
|
277
277
|
& > label
|
|
@@ -293,7 +293,7 @@ export default defineComponent({
|
|
|
293
293
|
@apply flex-grow flex flex-nowrap space-x-2
|
|
294
294
|
|
|
295
295
|
input[type=text]
|
|
296
|
-
@apply flex-grow-0 flex-shrink-0 w-11 border border-primary-
|
|
296
|
+
@apply flex-grow-0 flex-shrink-0 w-11 border border-primary-600 rounded text-base text-center text-gray-2 outline-none
|
|
297
297
|
|
|
298
298
|
.custom-select
|
|
299
299
|
@apply w-full
|
package/components/SLTab.vue
CHANGED
|
@@ -7,7 +7,8 @@ li(
|
|
|
7
7
|
ref='tabPaneEl'
|
|
8
8
|
)
|
|
9
9
|
a(
|
|
10
|
-
href="javascript:;"
|
|
10
|
+
href="javascript:;",
|
|
11
|
+
:class='{ disabled: disabled }'
|
|
11
12
|
).tab-nav-item-link
|
|
12
13
|
.tab-nav-item-link-title
|
|
13
14
|
.inline-flex.items-center.justify-center.w-full.space-x-1
|
|
@@ -63,9 +64,13 @@ export default defineComponent({
|
|
|
63
64
|
type: Boolean,
|
|
64
65
|
default: false,
|
|
65
66
|
},
|
|
67
|
+
disabled: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false,
|
|
70
|
+
},
|
|
66
71
|
},
|
|
67
72
|
setup(props) {
|
|
68
|
-
const { order, activeTabBorderColor, single } = toRefs(props);
|
|
73
|
+
const { order, activeTabBorderColor, single, disabled } = toRefs(props);
|
|
69
74
|
|
|
70
75
|
const distributed = inject<{
|
|
71
76
|
header: boolean;
|
|
@@ -98,11 +103,15 @@ export default defineComponent({
|
|
|
98
103
|
classes.push("single");
|
|
99
104
|
}
|
|
100
105
|
|
|
106
|
+
if (disabled.value) {
|
|
107
|
+
classes.push("disabled");
|
|
108
|
+
}
|
|
109
|
+
|
|
101
110
|
return classes.join(" ");
|
|
102
111
|
});
|
|
103
112
|
|
|
104
113
|
function navClick() {
|
|
105
|
-
if (!isActive.value && distributed && distributed.changeTabTo) {
|
|
114
|
+
if (!isActive.value && distributed && distributed.changeTabTo && !disabled.value) {
|
|
106
115
|
distributed.changeTabTo(index.value || 0);
|
|
107
116
|
}
|
|
108
117
|
}
|
package/components/SLTable.vue
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
:name="field.key"
|
|
58
58
|
:item="item"
|
|
59
59
|
:index="itemIndex"
|
|
60
|
-
).border-
|
|
60
|
+
).border-primary-600
|
|
61
61
|
td(
|
|
62
62
|
v-else
|
|
63
63
|
:colspan="columnSpans[index]"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
:name="field.key"
|
|
79
79
|
:item="item"
|
|
80
80
|
:index="itemIndex"
|
|
81
|
-
).border-
|
|
81
|
+
).border-primary-600
|
|
82
82
|
td(
|
|
83
83
|
v-else
|
|
84
84
|
:colspan="columnSpans[index]"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
slot(v-else name='noItems')
|
|
92
92
|
.flex.flex-col.items-center.py-8.px-4.space-y-3
|
|
93
93
|
img(src="~/assets/images/commons/empty-box.png")
|
|
94
|
-
.text-lg.text-primary-
|
|
94
|
+
.text-lg.text-primary-600 {{ noItems }}
|
|
95
95
|
.text-sm.text-gray-3(v-if="reason") 可能的原因:{{ reason }}
|
|
96
96
|
SLLoading(
|
|
97
97
|
v-if="loading"
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
},
|
|
174
174
|
tdBorderColor: {
|
|
175
175
|
type: String,
|
|
176
|
-
default: 'border-
|
|
176
|
+
default: 'border-primary-600',
|
|
177
177
|
},
|
|
178
178
|
tdHoverColor: {
|
|
179
179
|
type: String,
|
|
180
|
-
default: 'bg-
|
|
180
|
+
default: 'bg-primary-100',
|
|
181
181
|
},
|
|
182
182
|
noItems: {
|
|
183
183
|
type: String,
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
|
|
397
397
|
thead
|
|
398
398
|
tr
|
|
399
|
-
@apply border-b border-primary-
|
|
399
|
+
@apply border-b border-primary-600 bg-white
|
|
400
400
|
|
|
401
401
|
th
|
|
402
402
|
@apply px-2 pb-2 text-base font-normal text-primary whitespace-nowrap
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
tr
|
|
423
423
|
&.body-header-row
|
|
424
424
|
td
|
|
425
|
-
@apply bg-
|
|
425
|
+
@apply bg-primary-50 text-lg font-bold shadow-inline
|
|
426
426
|
|
|
427
427
|
td
|
|
428
428
|
@apply p-2 border-b border-opacity-50 text-base text-gray-2
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
@apply pr-8
|
|
432
432
|
|
|
433
433
|
.table-header-filter-popup
|
|
434
|
-
@apply z-10 flex border border-primary-
|
|
434
|
+
@apply z-10 flex border border-primary-600 rounded overflow-hidden invisible pointer-events-none
|
|
435
435
|
|
|
436
436
|
&[data-show]
|
|
437
437
|
@apply visible pointer-events-auto
|
|
@@ -441,10 +441,10 @@
|
|
|
441
441
|
|
|
442
442
|
.table-header-filter-item
|
|
443
443
|
@apply inline-flex justify-center p-2 bg-white text-sm text-gray-3
|
|
444
|
-
@apply s('hover:bg-
|
|
444
|
+
@apply s('hover:bg-primary-50')
|
|
445
445
|
|
|
446
446
|
&.active
|
|
447
|
-
@apply bg-
|
|
447
|
+
@apply bg-primary-100 text-primary
|
|
448
448
|
|
|
449
449
|
.icon
|
|
450
450
|
@apply text-primary
|
|
@@ -51,7 +51,7 @@ export default defineComponent({
|
|
|
51
51
|
},
|
|
52
52
|
headerBorderColor: {
|
|
53
53
|
type: String,
|
|
54
|
-
default: "border-primary-
|
|
54
|
+
default: "border-primary-600",
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
setup(props) {
|
|
@@ -72,7 +72,7 @@ export default defineComponent({
|
|
|
72
72
|
|
|
73
73
|
<style lang="stylus">
|
|
74
74
|
.table-tooltip
|
|
75
|
-
@apply inline-block p-4 border border-
|
|
75
|
+
@apply inline-block p-4 border border-primary-600 rounded bg-white shadow-popup-sm pointer-events-none
|
|
76
76
|
|
|
77
77
|
&-title
|
|
78
78
|
@apply mb-4 text-base text-gray-2 font-bold
|
package/components/SLTabs.vue
CHANGED
|
@@ -235,20 +235,20 @@ export default defineComponent({
|
|
|
235
235
|
.tab-nav-item-link
|
|
236
236
|
&:after
|
|
237
237
|
content ""
|
|
238
|
-
@apply absolute bottom-0 left-0 w-px h-3 s("-mb-3") s("-ml-px") bg-
|
|
238
|
+
@apply absolute bottom-0 left-0 w-px h-3 s("-mb-3") s("-ml-px") bg-primary-600
|
|
239
239
|
|
|
240
240
|
&.active
|
|
241
241
|
@apply s("pb-1.75")
|
|
242
242
|
|
|
243
243
|
&:before
|
|
244
244
|
content ""
|
|
245
|
-
@apply block absolute s("top-0.5") s("right-0.75") s("left-0.75") h-1 bg-
|
|
245
|
+
@apply block absolute s("top-0.5") s("right-0.75") s("left-0.75") h-1 bg-highlight-400
|
|
246
246
|
|
|
247
247
|
.tab-nav-item-link
|
|
248
248
|
@apply text-primary cursor-default
|
|
249
249
|
|
|
250
250
|
&-link
|
|
251
|
-
@apply relative block s("py-1.75") s("px-3.75") border-t border-r border-l border-
|
|
251
|
+
@apply relative block s("py-1.75") s("px-3.75") border-t border-r border-l border-primary-600 rounded-t text-lg text-primary-600
|
|
252
252
|
|
|
253
253
|
&-title
|
|
254
254
|
@apply truncate
|
|
@@ -257,7 +257,7 @@ export default defineComponent({
|
|
|
257
257
|
@apply space-y-8
|
|
258
258
|
|
|
259
259
|
& > .tabs-content
|
|
260
|
-
@apply p-4 border border-
|
|
260
|
+
@apply p-4 border border-primary-600 rounded-lg bg-white overflow-hidden
|
|
261
261
|
|
|
262
262
|
.tabs-content-header
|
|
263
263
|
@apply flex items-start justify-between mb-4
|
|
@@ -271,7 +271,7 @@ export default defineComponent({
|
|
|
271
271
|
@apply s('lg:px-6') s('lg:space-x-14')
|
|
272
272
|
|
|
273
273
|
.tab-nav-item
|
|
274
|
-
@apply relative flex-grow s('py-6') rounded bg-
|
|
274
|
+
@apply relative flex-grow s('py-6') rounded bg-primary-100 text-lg text-primary-hover text-center
|
|
275
275
|
@apply s('lg:py-5.5')
|
|
276
276
|
|
|
277
277
|
&:before
|
|
@@ -282,7 +282,7 @@ export default defineComponent({
|
|
|
282
282
|
|
|
283
283
|
&:after
|
|
284
284
|
content ""
|
|
285
|
-
@apply absolute left-0 bottom-0 s('-ml-4') s('-mb-5') block w-full h-3 rounded-t bg-primary-
|
|
285
|
+
@apply absolute left-0 bottom-0 s('-ml-4') s('-mb-5') block w-full h-3 rounded-t bg-primary-300 opacity-0
|
|
286
286
|
width calc(100% + theme('spacing.4') * 2)
|
|
287
287
|
|
|
288
288
|
&.active
|
|
@@ -327,7 +327,7 @@ export default defineComponent({
|
|
|
327
327
|
@apply inline-flex items-start space-x-2
|
|
328
328
|
|
|
329
329
|
.tab-nav-item
|
|
330
|
-
@apply relative rounded-t bg-
|
|
330
|
+
@apply relative rounded-t bg-primary-100
|
|
331
331
|
|
|
332
332
|
&.active
|
|
333
333
|
@apply bg-primary
|
|
@@ -364,7 +364,7 @@ export default defineComponent({
|
|
|
364
364
|
@apply flex flex-col s('space-y-0.5')
|
|
365
365
|
|
|
366
366
|
.tab-nav-item
|
|
367
|
-
@apply flex justify-between s('w-[184px]') py-3 pl-3 pr-5 bg-
|
|
367
|
+
@apply flex justify-between s('w-[184px]') py-3 pl-3 pr-5 bg-primary-50 rounded-l-lg text-xs
|
|
368
368
|
|
|
369
369
|
&.active
|
|
370
370
|
@apply bg-primary-hover text-white font-bold shadow-md
|
|
@@ -373,7 +373,7 @@ export default defineComponent({
|
|
|
373
373
|
@apply block w-full
|
|
374
374
|
|
|
375
375
|
.tabs-content
|
|
376
|
-
@apply flex-grow s('-ml-2') p-4 bg-white border border-
|
|
376
|
+
@apply flex-grow s('-ml-2') p-4 bg-white border border-primary-600 rounded-lg shadow-md
|
|
377
377
|
|
|
378
378
|
& > div
|
|
379
379
|
@apply flex min-h-full
|
|
@@ -392,7 +392,7 @@ export default defineComponent({
|
|
|
392
392
|
.tabs-nav-left
|
|
393
393
|
&:before
|
|
394
394
|
content ""
|
|
395
|
-
@apply absolute right-0 bottom-0 left-0 h-px s('rounded-[1px]') bg-primary-
|
|
395
|
+
@apply absolute right-0 bottom-0 left-0 h-px s('rounded-[1px]') bg-primary-300
|
|
396
396
|
|
|
397
397
|
.tabs-nav-left
|
|
398
398
|
@apply relative flex-grow overflow-hidden
|
|
@@ -414,6 +414,10 @@ export default defineComponent({
|
|
|
414
414
|
.tab-nav-item-link
|
|
415
415
|
@apply cursor-default
|
|
416
416
|
|
|
417
|
+
&.disabled
|
|
418
|
+
.tab-nav-item-link
|
|
419
|
+
@apply s('text-[#BCBFCF]') cursor-default
|
|
420
|
+
|
|
417
421
|
&-link
|
|
418
422
|
@apply relative block px-4 pb-2 text-lg text-gray-2
|
|
419
423
|
|
|
@@ -243,14 +243,14 @@ export default defineComponent({
|
|
|
243
243
|
.input-group
|
|
244
244
|
&.is-fill
|
|
245
245
|
.input
|
|
246
|
-
@apply bg-white border-primary-
|
|
246
|
+
@apply bg-white border-primary-300
|
|
247
247
|
|
|
248
248
|
&.is-focus
|
|
249
249
|
.input
|
|
250
250
|
@apply bg-white border-primary
|
|
251
251
|
|
|
252
252
|
.input
|
|
253
|
-
@apply relative bg-
|
|
253
|
+
@apply relative bg-primary-50 border-primary-50
|
|
254
254
|
|
|
255
255
|
.float-label
|
|
256
256
|
@apply inline-block
|
|
@@ -258,7 +258,7 @@ export default defineComponent({
|
|
|
258
258
|
.is-invalid
|
|
259
259
|
.input-group
|
|
260
260
|
.input, .input.is-focus
|
|
261
|
-
@apply border-danger-
|
|
261
|
+
@apply border-danger-light
|
|
262
262
|
|
|
263
263
|
&.is-fixed-float
|
|
264
264
|
& > label
|
|
@@ -274,16 +274,16 @@ export default defineComponent({
|
|
|
274
274
|
.is-invalid
|
|
275
275
|
.input-group
|
|
276
276
|
.input, .input.is-focus
|
|
277
|
-
@apply border-danger-
|
|
277
|
+
@apply border-danger-light
|
|
278
278
|
|
|
279
279
|
&.disabled, &.readonly
|
|
280
280
|
.input-group
|
|
281
281
|
&.is-focus
|
|
282
282
|
.input
|
|
283
|
-
@apply border-primary-
|
|
283
|
+
@apply border-primary-600
|
|
284
284
|
|
|
285
285
|
.input
|
|
286
|
-
@apply border-primary-
|
|
286
|
+
@apply border-primary-600 bg-primary-100
|
|
287
287
|
|
|
288
288
|
& > label
|
|
289
289
|
@apply w-full mb-2 text-base leading-normal text-gray-2
|
|
@@ -294,7 +294,7 @@ export default defineComponent({
|
|
|
294
294
|
.is-invalid
|
|
295
295
|
.input-group, .input-group.is-focus
|
|
296
296
|
.input
|
|
297
|
-
@apply border-danger-
|
|
297
|
+
@apply border-danger-light
|
|
298
298
|
|
|
299
299
|
&.input-sm, &.input-xs
|
|
300
300
|
.icon
|
|
@@ -323,7 +323,7 @@ export default defineComponent({
|
|
|
323
323
|
@apply flex-grow-0 flex-shrink-0
|
|
324
324
|
|
|
325
325
|
.input
|
|
326
|
-
@apply flex-grow flex items-center s('p-1.75') bg-white rounded border border-primary-
|
|
326
|
+
@apply flex-grow flex items-center s('p-1.75') bg-white rounded border border-primary-600
|
|
327
327
|
|
|
328
328
|
&.input-sm
|
|
329
329
|
@apply s('py-0.75')
|
|
@@ -347,7 +347,7 @@ export default defineComponent({
|
|
|
347
347
|
@apply flex-grow w-full bg-transparent text-gray-2 placeholder-gray-4 s('focus:outline-none')
|
|
348
348
|
|
|
349
349
|
.icon
|
|
350
|
-
@apply flex-grow-0 flex-shrink-0 hidden text-danger-
|
|
350
|
+
@apply flex-grow-0 flex-shrink-0 hidden text-danger-light
|
|
351
351
|
|
|
352
352
|
.float-label
|
|
353
353
|
@apply hidden absolute top-0 left-0 s('p-1.75') border-t border-b border-transparent text-gray-3 cursor-text
|
|
@@ -105,14 +105,14 @@ export default defineComponent({
|
|
|
105
105
|
|
|
106
106
|
&.disabled
|
|
107
107
|
textarea
|
|
108
|
-
@apply border-primary-
|
|
108
|
+
@apply border-primary-600 bg-primary-100
|
|
109
109
|
|
|
110
110
|
label
|
|
111
111
|
@apply mb-2 text-base leading-normal text-gray-2
|
|
112
112
|
|
|
113
113
|
.is-invalid
|
|
114
114
|
textarea
|
|
115
|
-
@apply border-danger-
|
|
115
|
+
@apply border-danger-light
|
|
116
116
|
|
|
117
117
|
.invalid-feedback
|
|
118
118
|
@apply block
|
|
@@ -121,7 +121,7 @@ export default defineComponent({
|
|
|
121
121
|
@apply relative
|
|
122
122
|
|
|
123
123
|
textarea
|
|
124
|
-
@apply block w-full p-2 border border-primary-
|
|
124
|
+
@apply block w-full p-2 border border-primary-600 rounded bg-white text-base text-gray-2 resize-none s('focus:border-primary') s('focus:outline-none')
|
|
125
125
|
|
|
126
126
|
textarea:focus + .textarea-placeholder
|
|
127
127
|
@apply invisible
|
package/components/SLToast.vue
CHANGED
|
@@ -58,7 +58,7 @@ export default defineComponent({
|
|
|
58
58
|
@apply s('z-[100]') fixed top-0 left-0 w-full h-full pointer-events-none
|
|
59
59
|
|
|
60
60
|
&-wrapper
|
|
61
|
-
@apply absolute s('top-1/2') s('left-1/2') py-4 px-6 s('bg-
|
|
61
|
+
@apply absolute s('top-1/2') s('left-1/2') py-4 px-6 s('bg-mask/80') rounded text-base text-white s('-translate-x-1/2') s('-translate-y-1/2')
|
|
62
62
|
|
|
63
63
|
.toast-fade-enter-active
|
|
64
64
|
@apply transition-opacity duration-300 ease-linear
|
|
@@ -62,7 +62,7 @@ export default defineComponent({
|
|
|
62
62
|
|
|
63
63
|
<style lang="stylus">
|
|
64
64
|
.sl-toggle-button
|
|
65
|
-
@apply inline-flex items-center justify-center s('p-1.5') space-x-2 bg-
|
|
65
|
+
@apply inline-flex items-center justify-center s('p-1.5') space-x-2 bg-primary-100 rounded text-base text-primary-hover
|
|
66
66
|
|
|
67
67
|
&.sl-toggle-button-sm
|
|
68
68
|
@apply s('h-[29px]') px-1 py-0 text-sm
|
|
@@ -74,5 +74,5 @@ export default defineComponent({
|
|
|
74
74
|
@apply bg-primary-hover text-white
|
|
75
75
|
|
|
76
76
|
&.disabled
|
|
77
|
-
@apply bg-
|
|
77
|
+
@apply bg-gray-5 text-white cursor-default
|
|
78
78
|
</style>
|
|
@@ -351,10 +351,10 @@ export default defineComponent({
|
|
|
351
351
|
|
|
352
352
|
&.bordered
|
|
353
353
|
.select-menu-popup
|
|
354
|
-
@apply border-primary-
|
|
354
|
+
@apply border-primary-600
|
|
355
355
|
|
|
356
356
|
.toggle-button
|
|
357
|
-
@apply relative flex items-center w-full s('p-1.75') s('space-x-1.75') border border-primary-
|
|
357
|
+
@apply relative flex items-center w-full s('p-1.75') s('space-x-1.75') border border-primary-600 rounded text-base text-gray-4
|
|
358
358
|
|
|
359
359
|
&.selected
|
|
360
360
|
@apply text-gray-2
|
|
@@ -366,7 +366,7 @@ export default defineComponent({
|
|
|
366
366
|
@apply flex-grow-0 flex-shrink-0 inline-flex text-xs text-gray-2 leading-none
|
|
367
367
|
|
|
368
368
|
.select-menu-popup
|
|
369
|
-
@apply z-10 flex flex-col s("h-67.75") s('min-w-[552px]') w-full s("pt-2.75") s("px-2.75") bg-white border border-
|
|
369
|
+
@apply z-10 flex flex-col s("h-67.75") s('min-w-[552px]') w-full s("pt-2.75") s("px-2.75") bg-white border border-primary-100 rounded shadow invisible pointer-events-none
|
|
370
370
|
|
|
371
371
|
&[data-show]
|
|
372
372
|
@apply visible pointer-events-auto
|
|
@@ -412,7 +412,7 @@ export default defineComponent({
|
|
|
412
412
|
.list
|
|
413
413
|
.item
|
|
414
414
|
@apply relative flex items-center justify-start flex-nowrap s('py-1.5') px-2 s('space-x-2.5') text-sm text-gray-3
|
|
415
|
-
@apply s('hover:bg-
|
|
415
|
+
@apply s('hover:bg-primary-100')
|
|
416
416
|
|
|
417
417
|
&.checked
|
|
418
418
|
@apply text-primary
|
|
@@ -423,7 +423,7 @@ export default defineComponent({
|
|
|
423
423
|
@apply text-primary
|
|
424
424
|
|
|
425
425
|
&.selected
|
|
426
|
-
@apply bg-
|
|
426
|
+
@apply bg-primary-100
|
|
427
427
|
|
|
428
428
|
.checkbox
|
|
429
429
|
@apply flex-grow-0 flex-shrink-0 inline-flex
|
|
@@ -216,7 +216,7 @@ export default defineComponent({
|
|
|
216
216
|
|
|
217
217
|
<style lang="stylus">
|
|
218
218
|
.tw-layer-select
|
|
219
|
-
@apply flex flex-col s("h-67.75") s("pt-2.75") s("px-2.75") bg-white border border-
|
|
219
|
+
@apply flex flex-col s("h-67.75") s("pt-2.75") s("px-2.75") bg-white border border-primary-100 rounded shadow
|
|
220
220
|
width 552px
|
|
221
221
|
|
|
222
222
|
.select-header
|
|
@@ -252,10 +252,10 @@ export default defineComponent({
|
|
|
252
252
|
|
|
253
253
|
.list
|
|
254
254
|
.item
|
|
255
|
-
@apply relative block s('py-1.5') px-2 s("hover:bg-
|
|
255
|
+
@apply relative block s('py-1.5') px-2 s("hover:bg-primary-50") text-sm text-gray-3 truncate
|
|
256
256
|
|
|
257
257
|
&.selected
|
|
258
|
-
@apply bg-
|
|
258
|
+
@apply bg-primary-100 text-primary
|
|
259
259
|
|
|
260
260
|
.highlight-dot
|
|
261
261
|
@apply absolute top-0 left-0 s('w-1.5') s('h-1.5') mt-2 ml-1 bg-red rounded-full
|
|
@@ -294,7 +294,7 @@ export default defineComponent({
|
|
|
294
294
|
@apply text-sm
|
|
295
295
|
|
|
296
296
|
.toggle-button
|
|
297
|
-
@apply relative flex items-center w-full s('p-1.75') s('space-x-1.75') border border-primary-
|
|
297
|
+
@apply relative flex items-center w-full s('p-1.75') s('space-x-1.75') border border-primary-600 rounded text-base text-gray-4
|
|
298
298
|
|
|
299
299
|
&.selected
|
|
300
300
|
@apply text-gray-2
|