@mptw/skylens-ui 1.4.18 → 1.4.20

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.
@@ -203,7 +203,7 @@ export default defineComponent({
203
203
  .btn-loading
204
204
  .loading
205
205
  div
206
- border-color theme('colors.gray["4.5"]') transparent transparent transparent
206
+ border-color theme('colors.gray[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")
@@ -122,7 +122,7 @@ export default defineComponent({
122
122
  @apply text-sm text-primary
123
123
 
124
124
  .icon
125
- @apply text-xs leading-none text-primary-hover rotate-180 transition-transform
125
+ @apply text-xs leading-none text-primary-600 rotate-180 transition-transform
126
126
 
127
127
  &-body
128
128
  @apply relative pt-4 overflow-hidden transition-all
@@ -393,10 +393,10 @@ export default defineComponent({
393
393
  @apply border-gray-5 text-gray-5 cursor-default
394
394
 
395
395
  &-toggle
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
396
+ @apply inline-flex justify-center items-center s('w-[28px]') s('h-[28px]') bg-white border border-primary-600 rounded text-lg text-primary-600
397
397
 
398
398
  &.active
399
- @apply bg-primary-hover text-white
399
+ @apply bg-primary-600 text-white
400
400
 
401
401
  .download-button-popup
402
402
  @apply z-60 absolute flex flex-col bg-white border border-primary-500 rounded overflow-hidden shadow invisible pointer-events-none
@@ -248,7 +248,7 @@ export default defineComponent({
248
248
  .dropdown-toggle
249
249
 
250
250
  .toggle-icon
251
- @apply text-primary-hover rotate-180
251
+ @apply text-primary-600 rotate-180
252
252
 
253
253
  &-toggle
254
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
@@ -87,11 +87,11 @@ export default defineComponent({
87
87
 
88
88
  &.uploaded
89
89
  label
90
- @apply bg-white border text-primary s("hover:text-primary-hover") s("hover:bg-white")
90
+ @apply bg-white border text-primary s("hover:text-primary-600") s("hover:bg-white")
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-white s("hover:bg-primary-hover") s("hover:border-primary-hover")
94
+ @apply bg-primary border-primary text-white s("hover:bg-primary-600") s("hover:border-primary-600")
95
95
 
96
96
  input[type="file"]
97
97
  @apply absolute top-0 left-0
@@ -57,7 +57,7 @@ export default defineComponent({
57
57
  color: {
58
58
  type: String,
59
59
  default: "",
60
- validator: (val: string) => ["", "primary-hover"].includes(val),
60
+ validator: (val: string) => ["", "primary-600"].includes(val),
61
61
  },
62
62
  },
63
63
  emits: ["update:modelValue"],
@@ -198,9 +198,9 @@ export default defineComponent({
198
198
  .false-label
199
199
  @apply s('pl-[31px]')
200
200
 
201
- &.ios-switch-primary-hover
201
+ &.ios-switch-primary-600
202
202
  input:checked + label
203
- @apply bg-primary-hover border-primary
203
+ @apply bg-primary-600 border-primary
204
204
 
205
205
  input
206
206
  @apply absolute s('left-1/2') s('top-1/2') transform s('-translate-x-1/2') s('-translate-y-1/2')
@@ -219,7 +219,7 @@ export default defineComponent({
219
219
  @apply pl-2 s('pr-[35px]') text-white opacity-0
220
220
 
221
221
  .false-label
222
- @apply s('pl-[35px]') pr-2 text-primary-hover opacity-100
222
+ @apply s('pl-[35px]') pr-2 text-primary-600 opacity-100
223
223
 
224
224
  input:checked + label
225
225
  @apply bg-primary border-primary-800
@@ -172,7 +172,7 @@ export default defineComponent({
172
172
 
173
173
  <style lang="stylus">
174
174
  .info-tip
175
- @apply inline-flex ml-2 text-base s('leading-4.5') text-primary s('hover:text-primary-hover') cursor-default
175
+ @apply inline-flex ml-2 text-base s('leading-4.5') text-primary s('hover:text-primary-600') cursor-default
176
176
 
177
177
  &--xs
178
178
  @apply ml-1 text-xs
@@ -208,7 +208,7 @@ export default defineComponent({
208
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
- @apply absolute top-0 right-0 mt-2 mr-2 text-base text-primary-hover
211
+ @apply absolute top-0 right-0 mt-2 mr-2 text-base text-primary-600
212
212
 
213
213
  &:hover
214
214
  .icon
@@ -26,7 +26,7 @@
26
26
  .popup-body
27
27
  SLMonthPicker(
28
28
  v-if='isCompare',
29
- color='primary-hover',
29
+ color='primary-600',
30
30
  :min-date='minDate',
31
31
  :max-date='maxCompareDate',
32
32
  v-model='compareDate',
@@ -1,5 +1,5 @@
1
1
  <template lang="pug">
2
- .month-picker(:class='{ "month-picker--insight-title": color === "insight-title", "month-picker--primary-hover": color === "primary-hover" }')
2
+ .month-picker(:class='{ "month-picker--insight-title": color === "insight-title", "month-picker--primary-600": color === "primary-600" }')
3
3
  .year-select
4
4
  a.prev-button(
5
5
  href='javascript:;'
@@ -32,9 +32,9 @@ export default defineComponent({
32
32
  components: {},
33
33
  props: {
34
34
  color: {
35
- type: String as PropType<"insight-title" | "primary-hover">,
35
+ type: String as PropType<"insight-title" | "primary-600">,
36
36
  validate: (value: string) =>
37
- ["insight-title", "primary-hover"].includes(value),
37
+ ["insight-title", "primary-600"].includes(value),
38
38
  },
39
39
  minDate: {
40
40
  type: Date as PropType<Date | null>,
@@ -116,12 +116,12 @@ export default defineComponent({
116
116
  &.selected
117
117
  @apply bg-insight-title
118
118
 
119
- &--primary-hover
119
+ &--primary-600
120
120
  .month-select
121
121
  &-wrapper
122
122
  .month-button
123
123
  &.selected
124
- @apply bg-primary-hover
124
+ @apply bg-primary-600
125
125
 
126
126
  .year-select
127
127
  @apply flex items-center justify-center space-x-10
@@ -107,7 +107,7 @@ export default defineComponent({
107
107
  @apply text-primary font-bold
108
108
 
109
109
  .btn
110
- @apply bg-primary-hover opacity-100
110
+ @apply bg-primary-600 opacity-100
111
111
 
112
112
  &:hover, &:active, &:focus
113
113
  .btn
@@ -173,7 +173,7 @@ export default defineComponent({
173
173
 
174
174
  &-item
175
175
  @apply inline-flex items-center justify-center s('min-w-[1.5rem]') s('min-h-[1.5rem]') p-1 border-t border-b border-primary bg-white text-xs text-primary
176
- @apply s('hover:text-primary-hover') s('focus:text-primary')
176
+ @apply s('hover:text-primary-600') s('focus:text-primary')
177
177
 
178
178
  &--icon
179
179
  @apply s('py-1.5')
@@ -188,5 +188,5 @@ export default defineComponent({
188
188
  @apply bg-primary text-white
189
189
 
190
190
  &.more
191
- @apply cursor-default s('hover:text-primary-hover')
191
+ @apply cursor-default s('hover:text-primary-600')
192
192
  </style>
@@ -167,7 +167,7 @@ export default defineComponent({
167
167
  <style lang="stylus">
168
168
  .profile-button
169
169
  .toggle-button
170
- @apply inline-flex items-center justify-center w-10 h-10 p-0 rounded-full s('bg-primary/80') s('text-2.67xl') s('leading-9.25') text-card-primary-600 font-bold
170
+ @apply inline-flex items-center justify-center w-10 h-10 p-0 rounded-full s('bg-primary/80') s('text-2.67xl') s('leading-9.25') text-primary-25 font-bold
171
171
 
172
172
  .profile-nav-popup
173
173
  @apply z-60 absolute s('min-w-[10.25rem]') p-4 border border-primary bg-primary-50 rounded shadow-popup-lg pointer-events-none invisible
@@ -179,7 +179,7 @@ export default defineComponent({
179
179
  @apply flex flex-col space-y-2
180
180
 
181
181
  .profile-nav-item
182
- @apply inline-flex items-center space-x-2 text-base text-primary-hover s('hover:text-primary')
182
+ @apply inline-flex items-center space-x-2 text-base text-primary-600 s('hover:text-primary')
183
183
 
184
184
  .profile-nav-divider
185
185
  @apply w-full h-px bg-primary-600
@@ -197,7 +197,7 @@ export default defineComponent({
197
197
  @apply absolute s('left-1/2') s('top-1/2') transform s('-translate-x-1/2') s('-translate-y-1/2')
198
198
 
199
199
  label
200
- @apply inline-flex justify-center items-center relative px-3 s('py-1.25') bg-primary-100 rounded text-base leading-normal text-primary-hover cursor-pointer transition
200
+ @apply inline-flex justify-center items-center relative px-3 s('py-1.25') bg-primary-100 rounded text-base leading-normal text-primary-600 cursor-pointer transition
201
201
 
202
202
  input:checked + .element-with-title
203
203
  label
@@ -116,11 +116,11 @@ export default defineComponent({
116
116
  nav
117
117
  .siderbar-nav-item
118
118
  &.included
119
- @apply text-primary-hover
119
+ @apply text-primary-600
120
120
 
121
121
  & > .nav-item-container
122
122
  .nav-item-wrapper
123
- @apply bg-card-primary-600
123
+ @apply bg-primary-25
124
124
 
125
125
  .siderbar-toggle
126
126
  &:hover
@@ -138,30 +138,30 @@ export default defineComponent({
138
138
  .nav-wrapper.custom-scrollbar-y
139
139
  /* Handle */
140
140
  &::-webkit-scrollbar-thumb
141
- @apply bg-primary-hover
141
+ @apply bg-primary-600
142
142
 
143
143
  /* Handle on hover */
144
144
  &::-webkit-scrollbar-thumb:hover
145
- @apply bg-primary-hover
145
+ @apply bg-primary-600
146
146
 
147
147
  .siderbar-nav-item
148
148
  @apply text-white
149
149
 
150
150
  &.highlighted
151
- @apply text-primary-hover
151
+ @apply text-primary-600
152
152
 
153
153
  & > .nav-item-container
154
154
  &:hover
155
155
  .nav-item-wrapper
156
- @apply bg-card-primary-600
156
+ @apply bg-primary-25
157
157
 
158
158
  .nav-item-wrapper
159
- @apply bg-card-primary-600
159
+ @apply bg-primary-25
160
160
 
161
161
  .nav-item-container
162
162
  &:hover
163
163
  .nav-item-wrapper
164
- @apply bg-primary-hover
164
+ @apply bg-primary-600
165
165
 
166
166
  .nav-item-wrapper
167
167
  .nav-item-highlight-border
@@ -172,11 +172,11 @@ export default defineComponent({
172
172
 
173
173
  .ios-switch
174
174
  label
175
- @apply border-primary-hover
175
+ @apply border-primary-600
176
176
  background #2D2F57
177
177
 
178
178
  &:before
179
- @apply border-2 border-primary-hover bg-primary-300
179
+ @apply border-2 border-primary-600 bg-primary-300
180
180
 
181
181
  .siderbar-toggle
182
182
  @apply bg-primary-300 text-white
@@ -195,7 +195,7 @@ export default defineComponent({
195
195
  @apply hidden
196
196
 
197
197
  .siderbar-toggle
198
- @apply bg-primary-hover text-white
198
+ @apply bg-primary-600 text-white
199
199
  margin-right -20px
200
200
  border-radius 0px 12px 12px 0px
201
201
 
@@ -215,7 +215,7 @@ export default defineComponent({
215
215
 
216
216
  & > .nav-item-container
217
217
  .nav-item-wrapper
218
- @apply bg-primary-hover
218
+ @apply bg-primary-600
219
219
 
220
220
  .nav-item-container
221
221
  @apply rounded-r-full
@@ -296,10 +296,10 @@ export default defineComponent({
296
296
  & > .nav-item-container
297
297
  &:hover
298
298
  .nav-item-wrapper
299
- @apply bg-primary-hover
299
+ @apply bg-primary-600
300
300
 
301
301
  .nav-item-wrapper
302
- @apply bg-primary-hover
302
+ @apply bg-primary-600
303
303
 
304
304
  .nav-item-button
305
305
  .button-title
@@ -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-primary-100 text-lg text-primary-hover text-center
274
+ @apply relative flex-grow s('py-6') rounded bg-primary-100 text-lg text-primary-600 text-center
275
275
  @apply s('lg:py-5.5')
276
276
 
277
277
  &:before
@@ -367,7 +367,7 @@ export default defineComponent({
367
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
- @apply bg-primary-hover text-white font-bold shadow-md
370
+ @apply bg-primary-600 text-white font-bold shadow-md
371
371
 
372
372
  &-link
373
373
  @apply block w-full
@@ -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-primary-100 rounded text-base text-primary-hover
65
+ @apply inline-flex items-center justify-center s('p-1.5') space-x-2 bg-primary-100 rounded text-base text-primary-600
66
66
 
67
67
  &.sl-toggle-button-sm
68
68
  @apply s('h-[29px]') px-1 py-0 text-sm
@@ -71,7 +71,7 @@ export default defineComponent({
71
71
  @apply text-lg leading-none
72
72
 
73
73
  &.active
74
- @apply bg-primary-hover text-white
74
+ @apply bg-primary-600 text-white
75
75
 
76
76
  &.disabled
77
77
  @apply bg-gray-5 text-white cursor-default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.18",
4
+ "version": "1.4.20",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -109,6 +109,8 @@ module.exports = {
109
109
  'hint-line': '#ADB4F5',
110
110
  'web-title-start': '#39BBE4',
111
111
  'web-title-end': 'rgb(144 128 241/0.74)',
112
+ 'poi-title-start': 'rgb(255 131 92/0.7)',
113
+ 'poi-title-end': 'rgb(120 91 207/0.74)',
112
114
  },
113
115
  mask: {
114
116
  DEFAULT: '#47485A',