@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
@@ -185,66 +185,65 @@ export default defineComponent({
185
185
 
186
186
  .checkbox {
187
187
  @apply inline-flex relative text-base align-top overflow-hidden;
188
- }
189
188
 
190
- .checkbox.inactive label {
191
- @apply pointer-events-none;
192
- }
189
+ input:checked + label, &.is-check-some {
190
+ @apply text-primary;
191
+ }
193
192
 
194
- .checkbox.checkbox-sm {
195
- @apply text-sm;
196
- }
193
+ &.inactive label {
194
+ @apply pointer-events-none;
195
+ }
197
196
 
198
- .checkbox.checkbox-sm label {
199
- @apply text-sm;
200
- }
197
+ &.checkbox-sm {
198
+ @apply text-sm;
201
199
 
202
- .checkbox input {
203
- @apply absolute -top-10 -left-10;
204
- }
200
+ label {
201
+ @apply text-sm;
202
+ }
203
+ }
205
204
 
206
- .checkbox label {
207
- @apply relative text-base text-pgray-3 cursor-pointer;
208
- }
205
+ input {
206
+ @apply absolute -top-10 -left-10;
209
207
 
210
- .checkbox label .icon {
211
- @apply hidden;
212
- }
208
+ &:not(:checked) + label:not(.is-check-some) .icon-square {
209
+ @apply inline-block;
210
+ }
213
211
 
214
- .checkbox label span {
215
- @apply ml-2;
216
- }
212
+ &:not(:checked) + label.is-check-some {
213
+ @apply text-primary;
217
214
 
218
- .checkbox input:not(:checked) + label:not(.is-check-some) .icon-square {
219
- @apply inline-block;
220
- }
215
+ .icon-minus-square {
216
+ @apply inline-block;
217
+ }
221
218
 
222
- .checkbox input:not(:checked) + label.is-check-some {
223
- @apply text-primary;
224
- }
219
+ .icon-square {
220
+ @apply hidden;
221
+ }
222
+ }
225
223
 
226
- .checkbox input:not(:checked) + label.is-check-some .icon-square {
227
- @apply hidden;
228
- }
224
+ &:checked + label .icon-check-square {
225
+ @apply inline-block;
226
+ }
229
227
 
230
- .checkbox input:not(:checked) + label.is-check-some .icon-minus-square {
231
- @apply inline-block;
232
- }
228
+ &:not(:checked):disabled + label {
229
+ @apply text-pgray-4 cursor-default pointer-events-none;
230
+ }
233
231
 
234
- .checkbox input:checked + label,
235
- .checkbox.is-check-some {
236
- @apply text-primary;
237
- }
232
+ &:checked:disabled + label {
233
+ @apply text-pgray-3 cursor-default pointer-events-none;
234
+ }
235
+ }
238
236
 
239
- .checkbox input:checked + label .icon-check-square {
240
- @apply inline-block;
241
- }
237
+ label {
238
+ @apply relative text-base text-pgray-3 cursor-pointer;
242
239
 
243
- .checkbox input:not(:checked):disabled + label {
244
- @apply text-pgray-4 cursor-default pointer-events-none;
245
- }
240
+ .icon {
241
+ @apply hidden;
242
+ }
246
243
 
247
- .checkbox input:checked:disabled + label {
248
- @apply text-pgray-3 cursor-default pointer-events-none;
244
+ span {
245
+ @apply ml-2;
246
+ }
247
+ }
249
248
  }
250
249
  </style>
@@ -76,29 +76,29 @@ export default defineComponent({
76
76
 
77
77
  .circle-button {
78
78
  @apply inline-flex items-center justify-center relative w-10 h-10 rounded-full bg-white text-xl leading-5.75 text-white;
79
+
80
+ .badge {
81
+ @apply absolute top-1.5 right-2 block w-0.75 h-0.75 rounded-full bg-highlight;
82
+ }
79
83
  }
80
84
 
81
85
  .circle-button-lg {
82
86
  @apply w-13.5 h-13.5 text-2p67xl;
83
- }
84
87
 
85
- .circle-button-lg .badge {
86
- @apply top-1.75 right-3 w-1 h-1;
88
+ .badge {
89
+ @apply top-1.75 right-3 w-1 h-1;
90
+ }
87
91
  }
88
92
 
89
93
  .circle-button-highlight-400 {
90
94
  @apply bg-highlight-400;
91
- }
92
95
 
93
- .circle-button-highlight-400.shadow {
94
- @apply shadow-md;
95
- }
96
-
97
- .circle-button-highlight-400.active {
98
- @apply border border-highlight text-highlight;
99
- }
96
+ &.shadow {
97
+ @apply shadow-md;
98
+ }
100
99
 
101
- .circle-button .badge {
102
- @apply absolute top-1.5 right-2 block w-0.75 h-0.75 rounded-full bg-highlight;
100
+ &.active {
101
+ @apply border border-highlight text-highlight;
102
+ }
103
103
  }
104
104
  </style>
@@ -100,17 +100,17 @@ export default defineComponent({
100
100
 
101
101
  .sl-collapsable-block {
102
102
  @apply p-3.75 border border-secondary-400 rounded-lg;
103
- }
104
103
 
105
- .sl-collapsable-block.collapsed
104
+ &.collapsed
106
105
  .sl-collapsable-block-header
107
106
  .toggle-collapse-button
108
107
  .icon {
109
- @apply rotate-0;
110
- }
108
+ @apply rotate-0;
109
+ }
111
110
 
112
- .sl-collapsable-block.collapsed .sl-collapsable-block-body {
113
- @apply pt-0;
111
+ &.collapsed .sl-collapsable-block-body {
112
+ @apply pt-0;
113
+ }
114
114
  }
115
115
 
116
116
  .sl-collapsable-block-header .collapse-block-title-icon {
@@ -123,21 +123,21 @@ export default defineComponent({
123
123
 
124
124
  .sl-collapsable-block-header .toggle-collapse-button {
125
125
  @apply inline-flex items-center space-x-2;
126
- }
127
126
 
128
- .sl-collapsable-block-header .toggle-collapse-button .button-title {
129
- @apply text-sm text-primary;
130
- }
127
+ .button-title {
128
+ @apply text-sm text-primary;
129
+ }
131
130
 
132
- .sl-collapsable-block-header .toggle-collapse-button .icon {
133
- @apply text-xs leading-none text-primary-600 rotate-180 transition-transform;
131
+ .icon {
132
+ @apply text-xs leading-none text-primary-600 rotate-180 transition-transform;
133
+ }
134
134
  }
135
135
 
136
136
  .sl-collapsable-block-body {
137
137
  @apply relative pt-4 overflow-hidden transition-all;
138
- }
139
138
 
140
- .sl-collapsable-block-body .collapsable-block-wrapper {
141
- @apply absolute top-4 left-0 w-full;
139
+ .collapsable-block-wrapper {
140
+ @apply absolute top-4 left-0 w-full;
141
+ }
142
142
  }
143
143
  </style>
@@ -77,21 +77,21 @@ export default defineComponent({
77
77
 
78
78
  .collapsable-multi-pill-select .toggle-button {
79
79
  @apply inline-flex items-center justify-between w-80 p-2 mb-2 border border-primary-500 rounded text-base text-pgray-2;
80
- }
81
80
 
82
- .collapsable-multi-pill-select .toggle-button.active .toggle-icon {
83
- @apply rotate-180;
84
- }
81
+ &.active .toggle-icon {
82
+ @apply rotate-180;
83
+ }
85
84
 
86
- .collapsable-multi-pill-select .toggle-button .toggle-icon {
87
- @apply transform origin-center;
85
+ .toggle-icon {
86
+ @apply transform origin-center;
87
+ }
88
88
  }
89
89
 
90
90
  .collapsable-multi-pill-select .pills {
91
91
  @apply -mx-1 mb-4 border-b border-primary-300;
92
- }
93
92
 
94
- .collapsable-multi-pill-select .pills .pill-checkbox {
95
- @apply mx-1 mb-2;
93
+ .pill-checkbox {
94
+ @apply mx-1 mb-2;
95
+ }
96
96
  }
97
97
  </style>
@@ -276,19 +276,19 @@ export default defineComponent({
276
276
 
277
277
  .sl-context-menu-container {
278
278
  @apply fixed top-0 left-0 w-full h-full;
279
- }
280
279
 
281
- .sl-context-menu-container-modal {
282
- @apply absolute top-0 left-0 w-full h-full;
283
- }
280
+ .sl-context-menu-item {
281
+ @apply block min-w-[160px] p-3 bg-white text-base text-gray-2;
282
+ @apply hover:bg-primary-100 hover:text-primary;
283
+ }
284
284
 
285
- .sl-context-menu-container .sl-context-menu {
286
- @apply absolute top-0 left-0 m-0 border border-primary-600 rounded overflow-hidden shadow-popup-sm;
285
+ .sl-context-menu {
286
+ @apply absolute top-0 left-0 m-0 border border-primary-600 rounded overflow-hidden shadow-popup-sm;
287
+ }
287
288
  }
288
289
 
289
- .sl-context-menu-container .sl-context-menu-item {
290
- @apply block min-w-[160px] p-3 bg-white text-base text-gray-2;
291
- @apply hover:bg-primary-100 hover:text-primary;
290
+ .sl-context-menu-container-modal {
291
+ @apply absolute top-0 left-0 w-full h-full;
292
292
  }
293
293
 
294
294
  .toast.copy-msg-toast :deep(.toast-wrapper) {
@@ -371,10 +371,10 @@ export default defineComponent({
371
371
 
372
372
  .date-input.date-input-xs .input-group .inputs {
373
373
  @apply pl-0 rounded-r-lg;
374
- }
375
374
 
376
- .date-input.date-input-xs .input-group .inputs div input {
377
- @apply w-[5.875rem] text-center;
375
+ div input {
376
+ @apply w-[5.875rem] text-center;
377
+ }
378
378
  }
379
379
 
380
380
  .date-input.date-input-range.date-input-dateTime
@@ -387,20 +387,17 @@ export default defineComponent({
387
387
 
388
388
  .date-input.inline {
389
389
  @apply flex;
390
- }
391
390
 
392
- .date-input.inline > label {
393
- @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
394
- }
391
+ .form-control {
392
+ @apply grow;
393
+ }
395
394
 
396
- .date-input.inline .form-control {
397
- @apply grow;
395
+ > label {
396
+ @apply grow-0 shrink-0 mb-0 mr-2 py-2 border-t border-b border-transparent;
397
+ }
398
398
  }
399
399
 
400
- .date-input.disabled .input-group .input-group-prepend,
401
- .date-input.disabled .input-group .inputs,
402
- .date-input.readonly .input-group .input-group-prepend,
403
- .date-input.readonly .input-group .inputs {
400
+ .date-input.disabled .input-group .input-group-prepend, .date-input.disabled .input-group .inputs, .date-input.readonly .input-group .input-group-prepend, .date-input.readonly .input-group .inputs {
404
401
  @apply border-primary-500 bg-primary-100;
405
402
  }
406
403
 
@@ -408,19 +405,16 @@ export default defineComponent({
408
405
  @apply mb-2 text-base leading-[1.3125] text-pgray-2;
409
406
  }
410
407
 
411
- .date-input .is-invalid .input-group .input-group-prepend,
412
- .date-input .is-invalid .input-group.is-focus .input-group-prepend {
408
+ .date-input .is-invalid .input-group .input-group-prepend, .date-input .is-invalid .input-group.is-focus .input-group-prepend {
413
409
  @apply border-danger-light;
414
410
  }
415
411
 
416
- .date-input .is-invalid .input-group .inputs,
417
- .date-input .is-invalid .input-group.is-focus .inputs {
412
+ .date-input .is-invalid .input-group .inputs, .date-input .is-invalid .input-group.is-focus .inputs {
418
413
  @apply border-danger-light;
419
- }
420
414
 
421
- .date-input .is-invalid .input-group .inputs .icon,
422
- .date-input .is-invalid .input-group.is-focus .inputs .icon {
423
- @apply inline-block;
415
+ .icon, .icon {
416
+ @apply inline-block;
417
+ }
424
418
  }
425
419
 
426
420
  .date-input .is-invalid .invalid-feedback {
@@ -429,41 +423,40 @@ export default defineComponent({
429
423
 
430
424
  .date-input .input-group {
431
425
  @apply flex flex-nowrap w-full text-base leading-[1.3125];
432
- }
433
426
 
434
- .date-input .input-group.is-focus .input {
435
- @apply border-primary;
436
- }
427
+ &.is-fill .input .float-label, &.is-focus .input .float-label {
428
+ @apply ml-1.5 -mt-2.25 py-0 px-0.5 bg-white text-primary text-xs transition-(--transition-input-focus);
429
+ }
437
430
 
438
- .date-input .input-group.is-fill .input .float-label,
439
- .date-input .input-group.is-focus .input .float-label {
440
- @apply ml-1.5 -mt-2.25 py-0 px-0.5 bg-white text-primary text-xs transition-(--transition-input-focus);
441
- }
431
+ .input-group-prepend {
432
+ @apply grow-0 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;
442
433
 
443
- .date-input .input-group .input-group-prepend {
444
- @apply grow-0 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;
445
- }
434
+ &::after {
435
+ content: "";
436
+ @apply block absolute top-2 right-1.75 bottom-2 w-px bg-primary;
437
+ }
438
+ }
446
439
 
447
- .date-input .input-group .input-group-prepend::after {
448
- content: "";
449
- @apply block absolute top-2 right-1.75 bottom-2 w-px bg-primary;
450
- }
440
+ &.is-focus .input {
441
+ @apply border-primary;
442
+ }
451
443
 
452
- .date-input .input-group .inputs {
453
- @apply relative grow flex items-center p-2 bg-white rounded-r border border-l-0 border-primary-500 text-base text-pgray-2;
454
- }
444
+ .inputs {
445
+ @apply relative grow flex items-center p-2 bg-white rounded-r border border-l-0 border-primary-500 text-base text-pgray-2;
455
446
 
456
- .date-input .input-group .inputs input {
457
- @apply grow bg-transparent text-base text-pgray-2 text-left placeholder-pgray-4 focus:outline-none;
458
- width: calc((100% - 25px) / 2);
459
- }
447
+ .date-range-split {
448
+ @apply grow-0 shrink-0 mx-0.5;
449
+ }
460
450
 
461
- .date-input .input-group .inputs .date-range-split {
462
- @apply grow-0 shrink-0 mx-0.5;
463
- }
451
+ input {
452
+ @apply grow bg-transparent text-base text-pgray-2 text-left placeholder-pgray-4 focus:outline-none;
453
+ width: calc((100% - 25px) / 2);
454
+ }
464
455
 
465
- .date-input .input-group .inputs .icon {
466
- @apply absolute right-0 mr-2 text-danger-light hidden;
456
+ .icon {
457
+ @apply absolute right-0 mr-2 text-danger-light hidden;
458
+ }
459
+ }
467
460
  }
468
461
 
469
462
  .date-input .input-info {
@@ -278,29 +278,29 @@ export default defineComponent({
278
278
 
279
279
  .download-button {
280
280
  @apply inline-block;
281
- }
282
281
 
283
- .download-button.disabled .download-button-toggle {
284
- @apply border-pgray-5 text-pgray-5 cursor-default;
282
+ &.disabled .download-button-toggle {
283
+ @apply border-pgray-5 text-pgray-5 cursor-default;
284
+ }
285
285
  }
286
286
 
287
287
  .download-button-toggle {
288
288
  @apply inline-flex justify-center items-center w-[28px] h-[28px] bg-white border border-primary-600 rounded text-lg text-primary-600;
289
- }
290
289
 
291
- .download-button-toggle.active {
292
- @apply bg-primary-600 text-white;
290
+ &.active {
291
+ @apply bg-primary-600 text-white;
292
+ }
293
293
  }
294
294
 
295
295
  .download-button-popup {
296
296
  @apply z-60 absolute flex flex-col bg-white border border-primary-500 rounded overflow-hidden shadow-default invisible pointer-events-none;
297
- }
298
297
 
299
- .download-button-popup[data-show] {
300
- @apply visible pointer-events-auto;
301
- }
298
+ .download-option {
299
+ @apply block p-2 bg-white text-sm text-pgray-3 hover:bg-primary-100 hover:text-primary;
300
+ }
302
301
 
303
- .download-button-popup .download-option {
304
- @apply block p-2 bg-white text-sm text-pgray-3 hover:bg-primary-100 hover:text-primary;
302
+ &[data-show] {
303
+ @apply visible pointer-events-auto;
304
+ }
305
305
  }
306
306
  </style>
@@ -245,41 +245,41 @@ export default defineComponent({
245
245
 
246
246
  .dropdown {
247
247
  @apply inline-block relative;
248
- }
249
248
 
250
- .dropdown.active .dropdown-toggle .toggle-icon {
251
- @apply text-primary-600 rotate-180;
249
+ &.active .dropdown-toggle .toggle-icon {
250
+ @apply text-primary-600 rotate-180;
251
+ }
252
252
  }
253
253
 
254
254
  .dropdown-toggle {
255
255
  @apply flex items-center p-1.75 border border-primary-500 rounded bg-white space-x-2 text-base text-pgray-2 whitespace-nowrap;
256
- }
257
256
 
258
- .dropdown-toggle .toggle-icon {
259
- @apply text-xs leading-none text-pgray-2 transition-transform transform;
257
+ .toggle-icon {
258
+ @apply text-xs leading-none text-pgray-2 transition-transform transform;
259
+ }
260
260
  }
261
261
 
262
262
  .dropdown-menu {
263
263
  @apply z-50 flex flex-col max-h-48 border border-primary-500 rounded bg-white shadow-md overflow-hidden invisible pointer-events-none;
264
- }
265
264
 
266
- .dropdown-menu[data-show] {
267
- @apply visible pointer-events-auto;
268
- }
265
+ .dropdown-list-wrapper {
266
+ @apply grow;
269
267
 
270
- .dropdown-menu[data-show] .dropdown-list-wrapper .dropdown-list {
271
- @apply relative;
272
- }
268
+ .dropdown-list {
269
+ @apply absolute;
270
+ }
271
+ }
273
272
 
274
- .dropdown-menu .dropdown-search {
275
- @apply grow-0 shrink-0 mb-1 p-1;
276
- }
273
+ .dropdown-search {
274
+ @apply grow-0 shrink-0 mb-1 p-1;
275
+ }
277
276
 
278
- .dropdown-menu .dropdown-list-wrapper {
279
- @apply grow;
280
- }
277
+ &[data-show] {
278
+ @apply visible pointer-events-auto;
281
279
 
282
- .dropdown-menu .dropdown-list-wrapper .dropdown-list {
283
- @apply absolute;
280
+ .dropdown-list-wrapper .dropdown-list {
281
+ @apply relative;
282
+ }
283
+ }
284
284
  }
285
285
  </style>
@@ -27,9 +27,9 @@ export default defineComponent({
27
27
 
28
28
  .dropdown-item {
29
29
  @apply block p-2 bg-white text-sm text-primary whitespace-nowrap hover:text-primary hover:bg-primary-50 focus:text-primary focus:bg-primary-50 active:text-primary active:bg-primary-50;
30
- }
31
30
 
32
- .dropdown-item.active {
33
- @apply text-primary bg-primary-50;
31
+ &.active {
32
+ @apply text-primary bg-primary-50;
33
+ }
34
34
  }
35
35
  </style>
@@ -178,9 +178,9 @@ export default defineComponent({
178
178
 
179
179
  .element-with-title-tooltip {
180
180
  @apply z-10 p-2 bg-mask/70 rounded text-xs text-white whitespace-pre shadow-default invisible pointer-events-none;
181
- }
182
181
 
183
- .element-with-title-tooltip[data-show] {
184
- @apply visible;
182
+ &[data-show] {
183
+ @apply visible;
184
+ }
185
185
  }
186
186
  </style>
@@ -123,53 +123,53 @@ export default defineComponent({
123
123
 
124
124
  .eye-checkbox {
125
125
  @apply inline-block relative text-base align-top overflow-hidden;
126
- }
127
126
 
128
- .eye-checkbox.checkbox-sm {
129
- @apply text-sm;
130
- }
127
+ &.checkbox-sm {
128
+ @apply text-sm;
131
129
 
132
- .eye-checkbox.checkbox-sm label {
133
- @apply text-sm;
134
- }
130
+ label {
131
+ @apply text-sm;
132
+ }
133
+ }
135
134
 
136
- .eye-checkbox input {
137
- @apply absolute -top-10 -left-10;
138
- }
135
+ input {
136
+ @apply absolute -top-10 -left-10;
139
137
 
140
- .eye-checkbox label {
141
- @apply relative inline-flex items-center text-base text-pgray-2 cursor-pointer;
142
- }
138
+ &:not(:checked) + label .icon-eye-slash {
139
+ @apply inline-block;
140
+ }
143
141
 
144
- .eye-checkbox label .icon {
145
- @apply hidden text-primary;
146
- }
142
+ &:not(:checked):disabled + label {
143
+ @apply text-pgray-4 cursor-default;
147
144
 
148
- .eye-checkbox label span {
149
- @apply ml-2;
150
- }
145
+ .icon-eye-slash {
146
+ @apply inline-block text-pgray-4;
147
+ }
148
+ }
151
149
 
152
- .eye-checkbox input:checked + label .icon-eye {
153
- @apply inline-block;
154
- }
150
+ &:checked + label .icon-eye {
151
+ @apply inline-block;
152
+ }
155
153
 
156
- .eye-checkbox input:not(:checked) + label .icon-eye-slash {
157
- @apply inline-block;
158
- }
154
+ &:checked:disabled + label {
155
+ @apply text-pgray-3 cursor-default;
159
156
 
160
- .eye-checkbox input:not(:checked):disabled + label {
161
- @apply text-pgray-4 cursor-default;
162
- }
157
+ .icon-eye {
158
+ @apply inline-block text-pgray-3;
159
+ }
160
+ }
161
+ }
163
162
 
164
- .eye-checkbox input:not(:checked):disabled + label .icon-eye-slash {
165
- @apply inline-block text-pgray-4;
166
- }
163
+ label {
164
+ @apply relative inline-flex items-center text-base text-pgray-2 cursor-pointer;
167
165
 
168
- .eye-checkbox input:checked:disabled + label {
169
- @apply text-pgray-3 cursor-default;
170
- }
166
+ .icon {
167
+ @apply hidden text-primary;
168
+ }
171
169
 
172
- .eye-checkbox input:checked:disabled + label .icon-eye {
173
- @apply inline-block text-pgray-3;
170
+ span {
171
+ @apply ml-2;
172
+ }
173
+ }
174
174
  }
175
175
  </style>