@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
@@ -230,14 +230,14 @@ export default defineComponent({
230
230
 
231
231
  .text-input.inline {
232
232
  @apply flex;
233
- }
234
233
 
235
- .text-input.inline > label {
236
- @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
237
- }
234
+ .form-control {
235
+ @apply grow;
236
+ }
238
237
 
239
- .text-input.inline .form-control {
240
- @apply grow;
238
+ > label {
239
+ @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
240
+ }
241
241
  }
242
242
 
243
243
  .text-input.is-float > label {
@@ -254,14 +254,13 @@ export default defineComponent({
254
254
 
255
255
  .text-input.is-float .input-group .input {
256
256
  @apply relative bg-primary-50 border-primary-50;
257
- }
258
257
 
259
- .text-input.is-float .input-group .input .float-label {
260
- @apply inline-block;
258
+ .float-label {
259
+ @apply inline-block;
260
+ }
261
261
  }
262
262
 
263
- .text-input.is-float .is-invalid .input-group .input,
264
- .text-input.is-float .is-invalid .input-group .input.is-focus {
263
+ .text-input.is-float .is-invalid .input-group .input, .text-input.is-float .is-invalid .input-group .input.is-focus {
265
264
  @apply border-danger-light;
266
265
  }
267
266
 
@@ -271,50 +270,42 @@ export default defineComponent({
271
270
 
272
271
  .text-input.is-fixed-float .input-group .input {
273
272
  @apply relative bg-white border-primary;
274
- }
275
273
 
276
- .text-input.is-fixed-float .input-group .input .float-label {
277
- @apply inline-block ml-1.5 -mt-2.25 py-0 px-0.5 bg-white text-primary text-xs transition-(--transition-input-focus);
274
+ .float-label {
275
+ @apply inline-block ml-1.5 -mt-2.25 py-0 px-0.5 bg-white text-primary text-xs transition-(--transition-input-focus);
276
+ }
278
277
  }
279
278
 
280
- .text-input.is-fixed-float .is-invalid .input-group .input,
281
- .text-input.is-fixed-float .is-invalid .input-group .input.is-focus {
279
+ .text-input.is-fixed-float .is-invalid .input-group .input, .text-input.is-fixed-float .is-invalid .input-group .input.is-focus {
282
280
  @apply border-danger-light;
283
281
  }
284
282
 
285
- .text-input.disabled .input-group.is-focus .input,
286
- .text-input.readonly .input-group.is-focus .input {
283
+ .text-input.disabled .input-group.is-focus .input, .text-input.readonly .input-group.is-focus .input {
287
284
  @apply border-primary-600;
288
285
  }
289
286
 
290
- .text-input.disabled .input-group .input,
291
- .text-input.readonly .input-group .input {
287
+ .text-input.disabled .input-group .input, .text-input.readonly .input-group .input {
292
288
  @apply border-primary-600 bg-primary-100;
293
289
  }
294
290
 
295
291
  .text-input > label {
296
292
  @apply w-full mb-2 text-base leading-[1.3125] text-pgray-2;
297
- }
298
293
 
299
- .text-input > label .required {
300
- @apply text-danger;
294
+ .required {
295
+ @apply text-danger;
296
+ }
301
297
  }
302
298
 
303
- .text-input .is-invalid .input-group .input,
304
- .text-input .is-invalid .input-group.is-focus .input {
299
+ .text-input .is-invalid .input-group .input, .text-input .is-invalid .input-group.is-focus .input {
305
300
  @apply border-danger-light;
306
- }
307
301
 
308
- .text-input .is-invalid .input-group .input.input-sm .icon,
309
- .text-input .is-invalid .input-group .input.input-xs .icon,
310
- .text-input .is-invalid .input-group.is-focus .input.input-sm .icon,
311
- .text-input .is-invalid .input-group.is-focus .input.input-xs .icon {
312
- @apply hidden;
313
- }
302
+ &.input-sm .icon, &.input-xs .icon, &.input-sm .icon, &.input-xs .icon {
303
+ @apply hidden;
304
+ }
314
305
 
315
- .text-input .is-invalid .input-group .input .icon,
316
- .text-input .is-invalid .input-group.is-focus .input .icon {
317
- @apply inline-block;
306
+ .icon, .icon {
307
+ @apply inline-block;
308
+ }
318
309
  }
319
310
 
320
311
  .text-input .is-invalid .invalid-feedback {
@@ -323,59 +314,58 @@ export default defineComponent({
323
314
 
324
315
  .text-input .input-group {
325
316
  @apply flex flex-nowrap text-base leading-[1.3125];
326
- }
327
317
 
328
- .text-input .input-group.is-focus .input {
329
- @apply border-primary;
330
- }
318
+ &.is-fill .input .float-label, &.is-focus .input .float-label {
319
+ @apply ml-1.5 -mt-2.25 py-0 px-0.5 bg-white text-primary text-xs transition-(--transition-input-focus);
320
+ }
331
321
 
332
- .text-input .input-group.is-fill .input .float-label,
333
- .text-input .input-group.is-focus .input .float-label {
334
- @apply ml-1.5 -mt-2.25 py-0 px-0.5 bg-white text-primary text-xs transition-(--transition-input-focus);
335
- }
322
+ &.is-focus .input {
323
+ @apply border-primary;
324
+ }
336
325
 
337
- .text-input .input-group-prepend {
338
- @apply grow-0 shrink-0;
339
- }
326
+ .input {
327
+ @apply grow flex items-center p-1.75 bg-white rounded border border-primary-600;
340
328
 
341
- .text-input .input-group .input {
342
- @apply grow flex items-center p-1.75 bg-white rounded border border-primary-600;
343
- }
329
+ &:not(:first-child) {
330
+ @apply rounded-l-none border-l-0;
331
+ }
344
332
 
345
- .text-input .input-group .input.input-sm {
346
- @apply py-0.75;
347
- }
333
+ &:not(:last-child) {
334
+ @apply rounded-r-none border-r-0;
335
+ }
348
336
 
349
- .text-input .input-group .input.input-sm input {
350
- @apply text-base;
351
- }
337
+ .float-label {
338
+ @apply hidden absolute top-0 left-0 p-1.75 border-t border-b border-transparent text-pgray-3 cursor-text;
339
+ }
352
340
 
353
- .text-input .input-group .input.input-xs {
354
- @apply py-px px-0.75;
355
- }
341
+ &.input-sm {
342
+ @apply py-0.75;
356
343
 
357
- .text-input .input-group .input.input-xs input {
358
- @apply text-base;
359
- }
344
+ input {
345
+ @apply text-base;
346
+ }
347
+ }
360
348
 
361
- .text-input .input-group .input:not(:first-child) {
362
- @apply rounded-l-none border-l-0;
363
- }
349
+ &.input-xs {
350
+ @apply py-px px-0.75;
364
351
 
365
- .text-input .input-group .input:not(:last-child) {
366
- @apply rounded-r-none border-r-0;
367
- }
352
+ input {
353
+ @apply text-base;
354
+ }
355
+ }
368
356
 
369
- .text-input .input-group .input input {
370
- @apply grow w-full bg-transparent text-pgray-2 placeholder-pgray-4 focus:outline-none;
371
- }
357
+ input {
358
+ @apply grow w-full bg-transparent text-pgray-2 placeholder-pgray-4 focus:outline-none;
359
+ }
372
360
 
373
- .text-input .input-group .input .icon {
374
- @apply grow-0 shrink-0 hidden text-danger-light;
361
+ .icon {
362
+ @apply grow-0 shrink-0 hidden text-danger-light;
363
+ }
364
+ }
375
365
  }
376
366
 
377
- .text-input .input-group .input .float-label {
378
- @apply hidden absolute top-0 left-0 p-1.75 border-t border-b border-transparent text-pgray-3 cursor-text;
367
+ .text-input .input-group-prepend {
368
+ @apply grow-0 shrink-0;
379
369
  }
380
370
 
381
371
  .text-input .input-group-append {
@@ -97,14 +97,14 @@ export default defineComponent({
97
97
 
98
98
  .textarea.inline {
99
99
  @apply flex;
100
- }
101
100
 
102
- .textarea.inline label {
103
- @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
104
- }
101
+ .form-control {
102
+ @apply grow;
103
+ }
105
104
 
106
- .textarea.inline .form-control {
107
- @apply grow;
105
+ label {
106
+ @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
107
+ }
108
108
  }
109
109
 
110
110
  .textarea.disabled textarea {
@@ -129,10 +129,10 @@ export default defineComponent({
129
129
 
130
130
  .textarea textarea {
131
131
  @apply block w-full p-2 border border-primary-600 rounded bg-white text-base text-pgray-2 resize-none focus:border-primary focus:outline-none;
132
- }
133
132
 
134
- .textarea textarea:focus + .textarea-placeholder {
135
- @apply invisible;
133
+ &:focus + .textarea-placeholder {
134
+ @apply invisible;
135
+ }
136
136
  }
137
137
 
138
138
  .textarea .form-control-notice {
@@ -73,8 +73,7 @@ export default defineComponent({
73
73
  @apply transition-opacity duration-200 ease-linear;
74
74
  }
75
75
 
76
- .toast-fade-enter-from,
77
- .toast-fade-leave-to {
76
+ .toast-fade-enter-from, .toast-fade-leave-to {
78
77
  @apply opacity-0;
79
78
  }
80
79
  </style>
@@ -65,21 +65,21 @@ export default defineComponent({
65
65
 
66
66
  .sl-toggle-button {
67
67
  @apply inline-flex items-center justify-center p-1.5 space-x-2 bg-primary-100 rounded text-base text-primary-600;
68
- }
69
68
 
70
- .sl-toggle-button.sl-toggle-button-sm {
71
- @apply h-7.25 px-1 py-0 text-sm;
72
- }
69
+ &.sl-toggle-button-sm {
70
+ @apply h-7.25 px-1 py-0 text-sm;
73
71
 
74
- .sl-toggle-button.sl-toggle-button-sm .icon {
75
- @apply text-lg leading-none;
76
- }
72
+ .icon {
73
+ @apply text-lg leading-none;
74
+ }
75
+ }
77
76
 
78
- .sl-toggle-button.active {
79
- @apply bg-primary-600 text-white;
80
- }
77
+ &.disabled {
78
+ @apply bg-pgray-5 text-white cursor-default;
79
+ }
81
80
 
82
- .sl-toggle-button.disabled {
83
- @apply bg-pgray-5 text-white cursor-default;
81
+ &.active {
82
+ @apply bg-primary-600 text-white;
83
+ }
84
84
  }
85
85
  </style>
@@ -348,42 +348,71 @@ export default defineComponent({
348
348
 
349
349
  .two-layer-multi-select {
350
350
  @apply relative w-full;
351
- }
352
351
 
353
- .two-layer-multi-select.two-layer-multi-select-sm .toggle-button {
354
- @apply text-sm;
355
- }
352
+ &.two-layer-multi-select-sm .toggle-button {
353
+ @apply text-sm;
354
+ }
356
355
 
357
- .two-layer-multi-select.bordered .select-menu-popup {
358
- @apply border-primary-600;
359
- }
356
+ &.bordered .select-menu-popup {
357
+ @apply border-primary-600;
358
+ }
360
359
 
361
- .two-layer-multi-select .toggle-button {
362
- @apply relative flex items-center w-full p-1.75 space-x-1.75 border border-primary-600 rounded text-base text-pgray-4;
363
- }
360
+ .select-menu-popup {
361
+ @apply z-10 flex flex-col h-67.75 min-w-[552px] w-full pt-2.75 px-2.75 bg-white border border-primary-100 rounded shadow-default invisible pointer-events-none;
364
362
 
365
- .two-layer-multi-select .toggle-button.selected {
366
- @apply text-pgray-2;
367
- }
363
+ .select-body-divider {
364
+ @apply grow-0 shrink-0 w-px h-auto mb-3 mr-2.75 ml-3 bg-pgray-4;
365
+ }
368
366
 
369
- .two-layer-multi-select .toggle-button .button-title {
370
- @apply grow;
371
- }
367
+ .select-header {
368
+ @apply grow-0 shrink-0 mb-3;
369
+ }
372
370
 
373
- .two-layer-multi-select .toggle-button .icon {
374
- @apply grow-0 shrink-0 inline-flex text-xs text-pgray-2 leading-none;
375
- }
371
+ .select-body {
372
+ @apply grow flex overflow-hidden;
376
373
 
377
- .two-layer-multi-select .select-menu-popup {
378
- @apply z-10 flex flex-col h-67.75 min-w-[552px] w-full pt-2.75 px-2.75 bg-white border border-primary-100 rounded shadow-default invisible pointer-events-none;
379
- }
374
+ .menu-header {
375
+ @apply grow-0 shrink-0 w-full pb-2 text-primary border-b border-primary;
376
+ }
380
377
 
381
- .two-layer-multi-select .select-menu-popup[data-show] {
382
- @apply visible pointer-events-auto;
383
- }
378
+ .menu-body {
379
+ @apply relative grow;
380
+
381
+ .list .item {
382
+ @apply relative flex items-center justify-start flex-nowrap py-1.5 px-2 space-x-2.5 text-sm text-pgray-3 hover:bg-primary-100;
383
+ }
384
+ }
385
+
386
+ .menu {
387
+ @apply grow flex flex-col text-base leading-[1.3125] overflow-hidden;
388
+ flex: 1;
389
+
390
+ &:hover {
391
+ flex: 1.5;
392
+ }
393
+ }
394
+ }
384
395
 
385
- .two-layer-multi-select .select-menu-popup .select-header {
386
- @apply grow-0 shrink-0 mb-3;
396
+ &[data-show] {
397
+ @apply visible pointer-events-auto;
398
+ }
399
+ }
400
+
401
+ .toggle-button {
402
+ @apply relative flex items-center w-full p-1.75 space-x-1.75 border border-primary-600 rounded text-base text-pgray-4;
403
+
404
+ .button-title {
405
+ @apply grow;
406
+ }
407
+
408
+ &.selected {
409
+ @apply text-pgray-2;
410
+ }
411
+
412
+ .icon {
413
+ @apply grow-0 shrink-0 inline-flex text-xs text-pgray-2 leading-none;
414
+ }
415
+ }
387
416
  }
388
417
 
389
418
  .two-layer-multi-select
@@ -413,19 +442,6 @@ export default defineComponent({
413
442
  @apply text-sm;
414
443
  }
415
444
 
416
- .two-layer-multi-select .select-menu-popup .select-body {
417
- @apply grow flex overflow-hidden;
418
- }
419
-
420
- .two-layer-multi-select .select-menu-popup .select-body .menu {
421
- @apply grow flex flex-col text-base leading-[1.3125] overflow-hidden;
422
- flex: 1;
423
- }
424
-
425
- .two-layer-multi-select .select-menu-popup .select-body .menu:hover {
426
- flex: 1.5;
427
- }
428
-
429
445
  .two-layer-multi-select
430
446
  .select-menu-popup
431
447
  .select-body
@@ -437,18 +453,6 @@ export default defineComponent({
437
453
  @apply grow;
438
454
  }
439
455
 
440
- .two-layer-multi-select .select-menu-popup .select-body .menu-header {
441
- @apply grow-0 shrink-0 w-full pb-2 text-primary border-b border-primary;
442
- }
443
-
444
- .two-layer-multi-select .select-menu-popup .select-body .menu-body {
445
- @apply relative grow;
446
- }
447
-
448
- .two-layer-multi-select .select-menu-popup .select-body .menu-body .list .item {
449
- @apply relative flex items-center justify-start flex-nowrap py-1.5 px-2 space-x-2.5 text-sm text-pgray-3 hover:bg-primary-100;
450
- }
451
-
452
456
  .two-layer-multi-select
453
457
  .select-menu-popup
454
458
  .select-body
@@ -533,8 +537,4 @@ export default defineComponent({
533
537
  .item-name {
534
538
  @apply grow block truncate;
535
539
  }
536
-
537
- .two-layer-multi-select .select-menu-popup .select-body-divider {
538
- @apply grow-0 shrink-0 w-px h-auto mb-3 mr-2.75 ml-3 bg-pgray-4;
539
- }
540
540
  </style>
@@ -219,57 +219,57 @@ export default defineComponent({
219
219
 
220
220
  .tw-layer-select {
221
221
  @apply flex flex-col w-138 h-67.75 pt-2.75 px-2.75 bg-white border border-primary-100 rounded shadow-default;
222
- }
223
222
 
224
- .tw-layer-select .select-header {
225
- @apply grow-0 shrink-0 mb-3;
226
- }
223
+ .select-body-divider {
224
+ @apply grow-0 shrink-0 w-px h-auto mb-3 mr-2.75 ml-3 bg-pgray-4;
225
+ }
227
226
 
228
- .tw-layer-select .select-header .search-input .button-group {
229
- @apply py-0.75;
230
- }
227
+ .select-header {
228
+ @apply grow-0 shrink-0 mb-3;
231
229
 
232
- .tw-layer-select .select-header .text-input .input-group .input {
233
- @apply py-1.25;
234
- }
230
+ .text-input .input-group .input {
231
+ @apply py-1.25;
235
232
 
236
- .tw-layer-select .select-header .text-input .input-group .input input {
237
- @apply text-sm;
238
- }
233
+ input {
234
+ @apply text-sm;
235
+ }
236
+ }
239
237
 
240
- .tw-layer-select .select-body {
241
- @apply grow flex overflow-hidden;
242
- }
238
+ .search-input .button-group {
239
+ @apply py-0.75;
240
+ }
241
+ }
243
242
 
244
- .tw-layer-select .select-body .menu {
245
- @apply grow flex flex-col text-base leading-[1.3125] overflow-hidden;
246
- }
243
+ .select-body {
244
+ @apply grow flex overflow-hidden;
247
245
 
248
- .tw-layer-select .select-body .menu:hover {
249
- @apply grow-[1.5];
250
- }
246
+ .menu-header {
247
+ @apply grow-0 shrink-0 w-full pb-2 text-primary border-b border-primary;
248
+ }
251
249
 
252
- .tw-layer-select .select-body .menu-header {
253
- @apply grow-0 shrink-0 w-full pb-2 text-primary border-b border-primary;
254
- }
250
+ .menu-body {
251
+ @apply relative grow;
255
252
 
256
- .tw-layer-select .select-body .menu-body {
257
- @apply relative grow;
258
- }
253
+ .list .item {
254
+ @apply relative block py-1.5 px-2 hover:bg-primary-50 text-sm text-pgray-3 truncate;
259
255
 
260
- .tw-layer-select .select-body .menu-body .list .item {
261
- @apply relative block py-1.5 px-2 hover:bg-primary-50 text-sm text-pgray-3 truncate;
262
- }
256
+ .highlight-dot {
257
+ @apply absolute top-0 left-0 w-1.5 h-1.5 mt-2 ml-1 bg-red rounded-full;
258
+ }
263
259
 
264
- .tw-layer-select .select-body .menu-body .list .item.selected {
265
- @apply bg-primary-100 text-primary;
266
- }
260
+ &.selected {
261
+ @apply bg-primary-100 text-primary;
262
+ }
263
+ }
264
+ }
267
265
 
268
- .tw-layer-select .select-body .menu-body .list .item .highlight-dot {
269
- @apply absolute top-0 left-0 w-1.5 h-1.5 mt-2 ml-1 bg-red rounded-full;
270
- }
266
+ .menu {
267
+ @apply grow flex flex-col text-base leading-[1.3125] overflow-hidden;
271
268
 
272
- .tw-layer-select .select-body-divider {
273
- @apply grow-0 shrink-0 w-px h-auto mb-3 mr-2.75 ml-3 bg-pgray-4;
269
+ &:hover {
270
+ @apply grow-[1.5];
271
+ }
272
+ }
273
+ }
274
274
  }
275
275
  </style>
@@ -301,33 +301,33 @@ export default defineComponent({
301
301
 
302
302
  .two-layer-single-select {
303
303
  @apply relative w-full;
304
- }
305
304
 
306
- .two-layer-single-select.two-layer-single-select-sm .toggle-button {
307
- @apply text-sm;
308
- }
305
+ &.two-layer-single-select-sm .toggle-button {
306
+ @apply text-sm;
307
+ }
309
308
 
310
- .two-layer-single-select .toggle-button {
311
- @apply relative flex items-center w-full p-1.75 space-x-1.75 border border-primary-600 rounded text-base text-pgray-4;
312
- }
309
+ .tw-layer-select {
310
+ @apply z-10 invisible pointer-events-none;
313
311
 
314
- .two-layer-single-select .toggle-button.selected {
315
- @apply text-pgray-2;
316
- }
312
+ &[data-show] {
313
+ @apply visible pointer-events-auto;
314
+ }
315
+ }
317
316
 
318
- .two-layer-single-select .toggle-button .button-title {
319
- @apply grow;
320
- }
317
+ .toggle-button {
318
+ @apply relative flex items-center w-full p-1.75 space-x-1.75 border border-primary-600 rounded text-base text-pgray-4;
321
319
 
322
- .two-layer-single-select .toggle-button .icon {
323
- @apply grow-0 shrink-0 inline-flex text-xs text-pgray-2 leading-none;
324
- }
320
+ .button-title {
321
+ @apply grow;
322
+ }
325
323
 
326
- .two-layer-single-select .tw-layer-select {
327
- @apply z-10 invisible pointer-events-none;
328
- }
324
+ &.selected {
325
+ @apply text-pgray-2;
326
+ }
329
327
 
330
- .two-layer-single-select .tw-layer-select[data-show] {
331
- @apply visible pointer-events-auto;
328
+ .icon {
329
+ @apply grow-0 shrink-0 inline-flex text-xs text-pgray-2 leading-none;
330
+ }
331
+ }
332
332
  }
333
333
  </style>
@@ -69,9 +69,9 @@ export default defineComponent({
69
69
 
70
70
  .warn-modal .modal-body-content {
71
71
  @apply flex flex-col items-center space-y-6 text-base text-pgray-2;
72
- }
73
72
 
74
- .warn-modal .modal-body-content .icon {
75
- @apply text-16xl;
73
+ .icon {
74
+ @apply text-16xl;
75
+ }
76
76
  }
77
77
  </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.5.16",
4
+ "version": "1.5.18",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",