@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
@@ -69,65 +69,65 @@ export default defineComponent({
69
69
 
70
70
  .select-all-toggle {
71
71
  @apply inline-flex items-stretch border rounded-sm bg-white overflow-hidden;
72
- }
73
72
 
74
- .select-all-toggle.select-all-toggle-xs .select-all-option {
75
- @apply text-xs;
76
- }
73
+ &.select-all-toggle-xs .select-all-option {
74
+ @apply text-xs;
75
+ }
77
76
 
78
- .select-all-toggle.select-all-toggle-sm .select-all-option {
79
- @apply py-1.25 text-xs;
80
- }
77
+ &.select-all-toggle-sm .select-all-option {
78
+ @apply py-1.25 text-xs;
79
+ }
81
80
 
82
- .select-all-toggle.select-all-toggle-primary-600 {
83
- @apply border-primary-600;
84
- }
81
+ &.select-all-toggle-primary-600 {
82
+ @apply border-primary-600;
85
83
 
86
- .select-all-toggle.select-all-toggle-primary-600 .select-all-option {
87
- @apply text-primary-600;
88
- }
84
+ .select-all-divider {
85
+ @apply bg-primary-600;
86
+ }
89
87
 
90
- .select-all-toggle.select-all-toggle-primary-600 .select-all-option.active {
91
- @apply bg-primary;
92
- }
88
+ .select-all-option {
89
+ @apply text-primary-600;
93
90
 
94
- .select-all-toggle.select-all-toggle-primary-600 .select-all-divider {
95
- @apply bg-primary-600;
96
- }
91
+ &.active {
92
+ @apply bg-primary;
93
+ }
94
+ }
95
+ }
97
96
 
98
- .select-all-toggle.select-all-toggle-secondary {
99
- @apply border-secondary-400;
100
- }
97
+ &.select-all-toggle-secondary {
98
+ @apply border-secondary-400;
101
99
 
102
- .select-all-toggle.select-all-toggle-secondary .select-all-option {
103
- @apply text-secondary-400;
104
- }
100
+ .select-all-divider {
101
+ @apply bg-primary-600;
102
+ }
105
103
 
106
- .select-all-toggle.select-all-toggle-secondary .select-all-option.active {
107
- @apply bg-secondary;
108
- }
104
+ .select-all-option {
105
+ @apply text-secondary-400;
109
106
 
110
- .select-all-toggle.select-all-toggle-secondary .select-all-divider {
111
- @apply bg-primary-600;
112
- }
107
+ &.active {
108
+ @apply bg-secondary;
109
+ }
110
+ }
111
+ }
113
112
 
114
- .select-all-toggle .select-all-option {
115
- @apply block py-1 bg-white text-sm;
116
- }
113
+ .select-all-option-none {
114
+ @apply pr-2 pl-1.75;
115
+ }
117
116
 
118
- .select-all-toggle .select-all-option.active {
119
- @apply text-white;
120
- }
117
+ .select-all-option-all {
118
+ @apply px-2;
119
+ }
121
120
 
122
- .select-all-toggle .select-all-option-all {
123
- @apply px-2;
124
- }
121
+ .select-all-divider {
122
+ @apply mt-0.5 mb-0.5 w-px;
123
+ }
125
124
 
126
- .select-all-toggle .select-all-option-none {
127
- @apply pr-2 pl-1.75;
128
- }
125
+ .select-all-option {
126
+ @apply block py-1 bg-white text-sm;
129
127
 
130
- .select-all-toggle .select-all-divider {
131
- @apply mt-0.5 mb-0.5 w-px;
128
+ &.active {
129
+ @apply text-white;
130
+ }
131
+ }
132
132
  }
133
133
  </style>
@@ -251,210 +251,208 @@ export default defineComponent({
251
251
 
252
252
  .sidebar {
253
253
  @apply relative h-full;
254
- }
255
254
 
256
- .sidebar.dark .sidebar-wrapper {
257
- @apply bg-primary-800;
258
- }
255
+ &.dark
256
+ nav
257
+ .nav-wrapper.custom-scrollbar-y::-webkit-scrollbar-thumb:hover {
258
+ @apply bg-primary-600;
259
+ }
259
260
 
260
- .sidebar.dark.closure .sidebar-logo .logo img.color-small {
261
- @apply lg:hidden;
262
- }
261
+ &.dark nav .nav-wrapper.custom-scrollbar-y::-webkit-scrollbar-thumb {
262
+ @apply bg-primary-600;
263
+ }
263
264
 
264
- .sidebar.dark.closure .sidebar-logo .logo img.white-big {
265
- @apply lg:hidden;
266
- }
265
+ &.dark.closure .sidebar-logo .logo img.color-small {
266
+ @apply lg:hidden;
267
+ }
267
268
 
268
- .sidebar.dark.closure .sidebar-logo .logo img.white-small {
269
- @apply lg:block;
270
- }
269
+ &.dark.closure .sidebar-logo .logo img.white-small {
270
+ @apply lg:block;
271
+ }
271
272
 
272
- .sidebar.dark.closure .sidebar-toggle {
273
- @apply bg-primary-900;
274
- }
273
+ &.dark.closure .sidebar-logo .logo img.white-big {
274
+ @apply lg:hidden;
275
+ }
275
276
 
276
- .sidebar.dark.closure .sidebar-toggle:hover {
277
- @apply bg-primary-600;
278
- }
277
+ &.dark .sidebar-logo .logo img.color-big {
278
+ @apply hidden;
279
+ }
279
280
 
280
- .sidebar.dark .sidebar-logo .logo img.color-big {
281
- @apply hidden;
282
- }
281
+ &.dark .sidebar-logo .logo img.white-big {
282
+ @apply block;
283
+ }
283
284
 
284
- .sidebar.dark .sidebar-logo .logo img.white-big {
285
- @apply block;
286
- }
285
+ &.closure .sidebar-mode-setting-title {
286
+ @apply hidden;
287
+ }
287
288
 
288
- .sidebar.dark nav .nav-wrapper.custom-scrollbar-y::-webkit-scrollbar-thumb {
289
- @apply bg-primary-600;
290
- }
289
+ &.closure nav.site-nav .nav-wrapper {
290
+ @apply lg:items-center;
291
+ }
291
292
 
292
- .sidebar.dark
293
- nav
294
- .nav-wrapper.custom-scrollbar-y::-webkit-scrollbar-thumb:hover {
295
- @apply bg-primary-600;
296
- }
293
+ &.closure .sidebar-mode-setting {
294
+ @apply p-0 justify-center space-x-0;
297
295
 
298
- .sidebar.dark .sidebar-mode-setting {
299
- @apply text-white;
300
- }
296
+ .ios-switch {
297
+ @apply grow-0 shrink-0;
298
+ }
299
+ }
301
300
 
302
- .sidebar.dark .sidebar-mode-setting .ios-switch label {
303
- @apply bg-nav-color-switch-bg border-primary-600;
304
- }
301
+ &.introing .sidebar-intro-modal {
302
+ @apply block;
303
+ }
305
304
 
306
- .sidebar.dark .sidebar-mode-setting .ios-switch label::before {
307
- @apply border-primary-600 bg-primary-300;
308
- }
305
+ &.dark.closure .sidebar-toggle {
306
+ @apply bg-primary-900;
309
307
 
310
- .sidebar.dark .sidebar-toggle {
311
- @apply bg-primary-900 text-white;
312
- }
308
+ &:hover {
309
+ @apply bg-primary-600;
310
+ }
311
+ }
313
312
 
314
- .sidebar.dark .sidebar-toggle:hover {
315
- @apply bg-primary-600;
316
- }
313
+ .sidebar-mode-setting-title {
314
+ @apply grow-0 shrink-0;
315
+ }
317
316
 
318
- .sidebar.closure .sidebar-modal {
319
- @apply hidden;
320
- }
317
+ &.dark .sidebar-mode-setting {
318
+ @apply text-white;
321
319
 
322
- .sidebar.closure .sidebar-wrapper {
323
- @apply -ml-[188px] lg:ml-0 lg:w-[84px];
324
- }
320
+ .ios-switch label {
321
+ @apply bg-nav-color-switch-bg border-primary-600;
325
322
 
326
- .sidebar.closure .sidebar-logo {
327
- @apply lg:py-3 lg:px-0;
328
- }
323
+ &::before {
324
+ @apply border-primary-600 bg-primary-300;
325
+ }
326
+ }
327
+ }
329
328
 
330
- .sidebar.closure .sidebar-logo .logo img.color-big {
331
- @apply lg:hidden;
332
- }
329
+ &.introing .sidebar-wrapper {
330
+ @apply pointer-events-none;
331
+ }
333
332
 
334
- .sidebar.closure .sidebar-logo .logo img.color-small {
335
- @apply lg:block;
336
- }
333
+ &.closure .sidebar-wrapper {
334
+ @apply -ml-[188px] lg:ml-0 lg:w-[84px];
335
+ }
337
336
 
338
- .sidebar.closure .sidebar-toggle {
339
- @apply -mr-5 bg-primary-300 rounded-l-none rounded-r-xl text-white;
340
- }
337
+ &.closure .sidebar-toggle {
338
+ @apply -mr-5 bg-primary-300 rounded-l-none rounded-r-xl text-white;
341
339
 
342
- .sidebar.closure .sidebar-toggle:hover {
343
- @apply bg-primary-400 text-white;
344
- }
340
+ .icon-chevron-right {
341
+ @apply inline-block;
342
+ }
345
343
 
346
- .sidebar.closure .sidebar-toggle .icon-chevron-left {
347
- @apply hidden;
348
- }
344
+ .icon-chevron-left {
345
+ @apply hidden;
346
+ }
349
347
 
350
- .sidebar.closure .sidebar-toggle .icon-chevron-right {
351
- @apply inline-block;
352
- }
348
+ &:hover {
349
+ @apply bg-primary-400 text-white;
350
+ }
351
+ }
353
352
 
354
- .sidebar.closure nav.site-nav .nav-wrapper {
355
- @apply lg:items-center;
356
- }
353
+ &.closure .sidebar-modal {
354
+ @apply hidden;
355
+ }
357
356
 
358
- .sidebar.closure .sidebar-mode-setting {
359
- @apply p-0 justify-center space-x-0;
360
- }
357
+ &.dark .sidebar-wrapper {
358
+ @apply bg-primary-800;
359
+ }
361
360
 
362
- .sidebar.closure .sidebar-mode-setting-title {
363
- @apply hidden;
364
- }
361
+ &.closure .sidebar-logo {
362
+ @apply lg:py-3 lg:px-0;
365
363
 
366
- .sidebar.closure .sidebar-mode-setting .ios-switch {
367
- @apply grow-0 shrink-0;
368
- }
364
+ .logo img.color-small {
365
+ @apply lg:block;
366
+ }
369
367
 
370
- .sidebar.introing .sidebar-intro-modal {
371
- @apply block;
372
- }
368
+ .logo img.color-big {
369
+ @apply lg:hidden;
370
+ }
371
+ }
373
372
 
374
- .sidebar.introing .sidebar-wrapper {
375
- @apply pointer-events-none;
376
- }
373
+ .sidebar-mode-setting {
374
+ @apply grow-0 shrink-0 flex items-center justify-start my-4 pl-4 space-x-2 text-xs text-primary;
377
375
 
378
- .sidebar-modal {
379
- @apply fixed top-0 left-0 w-full h-full bg-white opacity-0 lg:hidden;
380
- }
376
+ .ios-switch {
377
+ @apply grow-0 shrink-0;
381
378
 
382
- .sidebar-intro-modal {
383
- @apply fixed top-0 left-0 w-full h-full bg-mask/80 hidden;
384
- }
379
+ label {
380
+ @apply border-primary-100 bg-primary-25;
385
381
 
386
- .sidebar-wrapper {
387
- @apply relative flex flex-col w-[188px] h-full bg-white rounded-r-lg shadow-default transition-all;
388
- }
382
+ &::before {
383
+ @apply border-primary-100;
384
+ }
385
+ }
386
+ }
387
+ }
389
388
 
390
- .sidebar-logo {
391
- @apply grow-0 shrink-0 relative flex justify-center py-4 pr-11 pl-6 transition-all;
392
- }
389
+ &.dark .sidebar-toggle {
390
+ @apply bg-primary-900 text-white;
393
391
 
394
- .sidebar-logo .logo {
395
- @apply block;
396
- }
392
+ &:hover {
393
+ @apply bg-primary-600;
394
+ }
395
+ }
397
396
 
398
- .sidebar-logo .logo img.white-big,
399
- .sidebar-logo .logo img.white-small,
400
- .sidebar-logo .logo img.color-small {
401
- @apply hidden;
402
- }
397
+ nav.site-nav {
398
+ @apply grow px-1 overflow-hidden;
403
399
 
404
- .sidebar nav.site-nav {
405
- @apply grow px-1 overflow-hidden;
406
- }
400
+ .nav-wrapper {
401
+ @apply flex flex-col h-full px-3;
407
402
 
408
- .sidebar nav.site-nav .nav-wrapper {
409
- @apply flex flex-col h-full px-3;
403
+ .sidebar-nav-divide-item {
404
+ @apply w-full h-px my-2 bg-primary-200;
405
+ }
406
+ }
407
+ }
410
408
  }
411
409
 
412
- .sidebar nav.site-nav .nav-wrapper .sidebar-nav-divide-item {
413
- @apply w-full h-px my-2 bg-primary-200;
410
+ .sidebar-modal {
411
+ @apply fixed top-0 left-0 w-full h-full bg-white opacity-0 lg:hidden;
414
412
  }
415
413
 
416
- .sidebar .sidebar-mode-setting {
417
- @apply grow-0 shrink-0 flex items-center justify-start my-4 pl-4 space-x-2 text-xs text-primary;
414
+ .sidebar-intro-modal {
415
+ @apply fixed top-0 left-0 w-full h-full bg-mask/80 hidden;
418
416
  }
419
417
 
420
- .sidebar .sidebar-mode-setting-title {
421
- @apply grow-0 shrink-0;
418
+ .sidebar-wrapper {
419
+ @apply relative flex flex-col w-[188px] h-full bg-white rounded-r-lg shadow-default transition-all;
422
420
  }
423
421
 
424
- .sidebar .sidebar-mode-setting .ios-switch {
425
- @apply grow-0 shrink-0;
426
- }
422
+ .sidebar-logo {
423
+ @apply grow-0 shrink-0 relative flex justify-center py-4 pr-11 pl-6 transition-all;
427
424
 
428
- .sidebar .sidebar-mode-setting .ios-switch label {
429
- @apply border-primary-100 bg-primary-25;
430
- }
425
+ .logo {
426
+ @apply block;
431
427
 
432
- .sidebar .sidebar-mode-setting .ios-switch label::before {
433
- @apply border-primary-100;
428
+ img.white-big, img.white-small, img.color-small {
429
+ @apply hidden;
430
+ }
431
+ }
434
432
  }
435
433
 
436
434
  .sidebar-toggle {
437
435
  @apply absolute top-0 right-0 flex justify-center items-center w-5 h-10 mt-2.5 bg-primary-50 rounded-l-xl text-sm text-primary-500 leading-none transition-all;
438
- }
439
436
 
440
- .sidebar-toggle:hover {
441
- @apply bg-primary-300 text-white;
442
- }
437
+ .icon-chevron-right {
438
+ @apply hidden;
439
+ }
443
440
 
444
- .sidebar-toggle .icon-chevron-right {
445
- @apply hidden;
441
+ &:hover {
442
+ @apply bg-primary-300 text-white;
443
+ }
446
444
  }
447
445
 
448
446
  .sidebar-nav-intro {
449
447
  @apply w-[288px] p-4 bg-white rounded-lg hidden;
450
- }
451
448
 
452
- .sidebar-nav-intro[data-show] {
453
- @apply block;
454
- }
449
+ &[data-popper-placement^="right"] > .sidebar-nav-intro-arrow {
450
+ @apply -left-3.75 top-4;
451
+ }
455
452
 
456
- .sidebar-nav-intro[data-popper-placement^="right"] > .sidebar-nav-intro-arrow {
457
- @apply -left-3.75 top-4;
453
+ &[data-show] {
454
+ @apply block;
455
+ }
458
456
  }
459
457
 
460
458
  .sidebar-nav-intro-header {
@@ -469,18 +467,17 @@ export default defineComponent({
469
467
  @apply text-right;
470
468
  }
471
469
 
472
- .sidebar-nav-intro-arrow,
473
- .sidebar-nav-intro-arrow::before {
470
+ .sidebar-nav-intro-arrow, .sidebar-nav-intro-arrow::before {
474
471
  @apply absolute w-[17px] h-[20px] bg-contain;
475
472
  background: url("@@uiAppImage/commons/nav-intro-arrow.svg") top left no-repeat;
473
+
474
+ &::before {
475
+ content: "";
476
+ @apply visible;
477
+ }
476
478
  }
477
479
 
478
480
  .sidebar-nav-intro-arrow {
479
481
  @apply invisible;
480
482
  }
481
-
482
- .sidebar-nav-intro-arrow::before {
483
- content: "";
484
- @apply visible;
485
- }
486
483
  </style>