@mptw/skylens-ui 1.4.51 → 1.4.52

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.
@@ -32,6 +32,15 @@
32
32
  @click='onClickedToggle'
33
33
  )
34
34
  SLIcon(icon='sort-down')
35
+ NuxtLink.sidebar-nav-group-item-section-add-btn(
36
+ v-else-if='itemConfig.status === "plus"'
37
+ :to='itemConfig.to ? itemConfig.to : "javascript:;"',
38
+ :external='!itemConfig.to',
39
+ @mousedown='onMouseDownLink',
40
+ @mouseup='onMouseUpLink',
41
+ @click='onClickedSectionItem'
42
+ )
43
+ SLIcon(icon='add')
35
44
  .sidebar-nav-group-item-section-body(ref='bodyEl')
36
45
  .sidebar-nav-group-item-section-body-wrapper
37
46
  NuxtLink.sidebar-nav-group-item-section-link(
@@ -405,9 +414,26 @@ export default defineComponent({
405
414
  @apply flex items-center flex-nowrap py-2 pr-1 pl-2 bg-primary-50 rounded-lg text-base text-primary
406
415
  @apply s('hover:bg-primary-200') s('hover:font-bold')
407
416
 
417
+ &:hover
418
+ .sidebar-nav-group-item-section-header-right
419
+ .sidebar-nav-group-item-section-status
420
+ .sidebar-nav-group-item-section-add-btn
421
+ @apply text-primary
422
+
408
423
  &.active, &.router-link-exact-active
409
424
  @apply bg-primary-600 text-white font-bold
410
425
  @apply s('hover:bg-primary-600') s('hover:text-white') s('hover:font-bold')
426
+
427
+ .sidebar-nav-group-item-section-header-right
428
+ .sidebar-nav-group-item-section-status
429
+ .sidebar-nav-group-item-section-add-btn
430
+ @apply text-white
431
+
432
+ &.router-link-exact-active
433
+ .sidebar-nav-group-item-section-header-right
434
+ .sidebar-nav-group-item-section-status
435
+ .sidebar-nav-group-item-section-add-btn
436
+ @apply hidden
411
437
 
412
438
  &-left
413
439
  @apply flex-grow-0 flex-shrink-0 inline-flex
@@ -424,6 +450,9 @@ export default defineComponent({
424
450
  .sidebar-nav-group-item-section-toggle-btn
425
451
  @apply flex items-center justify-center w-4 h-4 text-sm rotate-180 transition-transform origin-center
426
452
 
453
+ .sidebar-nav-group-item-section-add-btn
454
+ @apply flex items-center justify-center w-4 h-4 text-sm text-primary-400
455
+
427
456
  &-body
428
457
  @apply overflow-hidden transition-height
429
458
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.51",
4
+ "version": "1.4.52",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",