@muraldevkit/ui-toolkit 2.23.1 → 2.25.0

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.
@@ -5,28 +5,29 @@
5
5
  box-shadow: var(--mrl-shadows-raised);
6
6
  flex-direction: column;
7
7
  opacity: 0;
8
- overflow-y: hidden;
8
+ overflow: visible;
9
9
  z-index: $mrl-zIndex-menus;
10
10
  ul[role='menu'] {
11
11
  min-height: var(--mrl-spacing-10);
12
+ overflow-x: visible;
12
13
  padding: var(--mrl-spacing-04);
13
14
  }
14
15
  &--scrolling {
15
16
  padding-bottom: var(--mrl-spacing-04);
16
17
  padding-top: var(--mrl-spacing-03);
17
18
  ul[role='menu'] {
19
+ overflow-x: hidden;
18
20
  overflow-y: auto;
19
21
  padding: var(--mrl-spacing-02) var(--mrl-spacing-04) var(--mrl-spacing-02)
20
22
  var(--mrl-spacing-04);
21
23
  }
22
24
  }
25
+ &--submenu {
26
+ left: 97%;
27
+ position: absolute;
28
+ }
23
29
  &.compact {
24
- ul[role='menu'] {
25
- padding: var(--mrl-spacing-03);
26
- }
27
- :global(.mrl-divider) {
28
- margin: var(--mrl-spacing-03) 0;
29
- }
30
+ padding: var(--mrl-space-stack-related);
30
31
  }
31
32
  &.open {
32
33
  display: flex;
@@ -9,8 +9,7 @@ $space-inset-small: calc(var(--mrl-spacing-03) - var(--mrl-spacing-01));
9
9
  border-radius: var(--mrl-border-radius-content-large);
10
10
  list-style-type: none;
11
11
  margin: 0;
12
- margin-bottom: var(--mrl-spacing-01);
13
- position: relative;
12
+ margin-bottom: var(--mrl-space-stack-related-small);
14
13
  text-align: left;
15
14
  text-indent: 0;
16
15
  white-space: nowrap;
@@ -34,6 +33,9 @@ $space-inset-small: calc(var(--mrl-spacing-03) - var(--mrl-spacing-01));
34
33
  [aria-expanded='true'] + .subMenu {
35
34
  display: flex;
36
35
  }
36
+ a {
37
+ text-decoration: none;
38
+ }
37
39
  &:last-child {
38
40
  margin-bottom: 0;
39
41
  }
@@ -50,39 +52,52 @@ $space-inset-small: calc(var(--mrl-spacing-03) - var(--mrl-spacing-01));
50
52
  height: 100%;
51
53
  justify-content: space-between;
52
54
  padding: var(--mrl-space-inline-related) var(--mrl-space-inline-sibling);
55
+ position: relative;
53
56
  white-space: nowrap;
54
57
  width: 100%;
58
+ &--selected {
59
+ background: var(--mrl-color-background-inverse-hover);
60
+ color: var(--mrl-color-text-inverse);
61
+ }
62
+ &--content {
63
+ position: relative;
64
+ z-index: 1;
65
+ }
66
+ &--hoverArea {
67
+ height: 100%;
68
+ left: -30px;
69
+ position: absolute;
70
+ width: 215px;
71
+ }
55
72
  .mrl-svg {
56
73
  min-width: $menu-icon-min-width;
57
74
  }
58
75
  &.isLink {
59
76
  justify-content: flex-start;
60
77
  }
61
- &.withSubmenu {
62
- padding: calc(var(--mrl-space-stack-siblings) / 2)
63
- calc(var(--mrl-spacing-02) + var(--mrl-spacing-03)) calc(var(--mrl-space-stack-siblings) / 2)
64
- var(--mrl-space-inset);
65
- }
66
78
  &:focus-visible {
67
79
  outline: var(--mrl-line-width-focus) solid var(--mrl-color-focus);
68
80
  outline-offset: var(--mrl-spacing-01);
69
81
  }
70
- &.selected {
71
- background: var(--mrl-color-background-inverse-hover);
72
- color: var(--mrl-color-text-inverse);
73
- }
74
- &:hover:not(.selected, [aria-disabled='true']) {
75
- background: var(--mrl-color-background-highlight-hover);
76
- color: var(--mrl-color-text-hover);
77
- .rightLabel {
78
- display: inline;
79
- visibility: visible;
80
- }
82
+ &--submenuItem {
83
+ padding-right: 25px;
81
84
  }
82
85
  &:active:not(.selected, [aria-disabled='true']) {
83
86
  background: var(--mrl-color-background-highlight-emph-active);
84
87
  color: var(--mrl-color-text-active);
85
88
  }
89
+ &:hover:not(.selected, [aria-disabled='true']),
90
+ &--submenuOpen {
91
+ background: var(--mrl-color-background-highlight-hover);
92
+ color: var(--mrl-color-text-hover);
93
+ }
94
+ &--submenuIcon {
95
+ height: 14px;
96
+ position: absolute;
97
+ right: 10px;
98
+ top: 3px;
99
+ width: 14px;
100
+ }
86
101
  &[aria-disabled='true'] {
87
102
  background: transparent;
88
103
  color: var(--mrl-color-text-disabled);
@@ -0,0 +1,11 @@
1
+ .trigger {
2
+ &-left {
3
+ text-align: left;
4
+ }
5
+ &-right {
6
+ text-align: right;
7
+ }
8
+ &-center {
9
+ text-align: center;
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muraldevkit/ui-toolkit",
3
- "version": "2.23.1",
3
+ "version": "2.25.0",
4
4
  "description": "Mural's UI Toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",