@awes-io/ui 2.98.0 → 2.98.2
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.
- package/CHANGELOG.md +22 -0
- package/assets/css/components/mobile-menu-item.css +22 -40
- package/assets/css/components/mobile-menu-nav.css +46 -16
- package/components/5_layouts/_AwMobileMenu.vue +4 -0
- package/components/5_layouts/_AwMobileMenuItem.vue +2 -1
- package/components/5_layouts/_AwMobileMenuNav.vue +3 -2
- package/nuxt/pages/more.vue +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.98.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.98.1...@awes-io/ui@2.98.2) (2024-02-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* mobile menu item styles updated ([e8d7c53](https://github.com/awes-io/client/commit/e8d7c5317c6d7be8bd2b9d6a095060f33f07abc3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.98.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.98.0...@awes-io/ui@2.98.1) (2024-02-21)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* default subnav style added ([ec689f0](https://github.com/awes-io/client/commit/ec689f0b8520226d4c26ffc25fc582a61c1674ca))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [2.98.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.97.2...@awes-io/ui@2.98.0) (2024-02-20)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
&:hover,
|
|
9
9
|
&:focus {
|
|
10
|
-
|
|
10
|
+
outline: none;
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -21,12 +21,32 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&__icon-bg {
|
|
24
|
+
align-self: start;
|
|
25
|
+
display: block;
|
|
26
|
+
flex: none;
|
|
27
|
+
|
|
28
|
+
margin-right: 1rem;
|
|
29
|
+
line-height: 1;
|
|
24
30
|
color: var(--c-mono-300);
|
|
25
31
|
}
|
|
26
32
|
|
|
33
|
+
&__text {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
gap: 0.25rem;
|
|
38
|
+
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
line-height: 1.5;
|
|
41
|
+
|
|
42
|
+
padding-right: 1rem;
|
|
43
|
+
flex-grow: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
27
46
|
&__description {
|
|
28
47
|
color: var(--c-mono-400);
|
|
29
48
|
font-size: 0.875rem;
|
|
49
|
+
font-weight: 400;
|
|
30
50
|
line-height: 1rem;
|
|
31
51
|
}
|
|
32
52
|
|
|
@@ -34,51 +54,13 @@
|
|
|
34
54
|
flex: none;
|
|
35
55
|
}
|
|
36
56
|
|
|
57
|
+
&--default,
|
|
37
58
|
&--primary {
|
|
38
59
|
padding: 1rem 1.5rem;
|
|
39
|
-
|
|
40
|
-
.aw-mobile-menu-item {
|
|
41
|
-
&__icon-bg {
|
|
42
|
-
border-radius: 0.3125rem;
|
|
43
|
-
line-height: 1;
|
|
44
|
-
flex: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__text {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
padding: 0 1rem;
|
|
52
|
-
flex-grow: 1;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
&--island {
|
|
58
63
|
padding: 1.5rem;
|
|
59
64
|
border-radius: 0.9375rem;
|
|
60
|
-
|
|
61
|
-
.aw-mobile-menu-item {
|
|
62
|
-
&__icon-bg {
|
|
63
|
-
margin-right: 1rem;
|
|
64
|
-
align-self: start;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&__text {
|
|
68
|
-
font-size: 1rem;
|
|
69
|
-
line-height: 1.5rem;
|
|
70
|
-
margin-right: 1rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&__description {
|
|
74
|
-
display: block;
|
|
75
|
-
font-weight: 400;
|
|
76
|
-
margin-top: 0.25rem;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&__arrow {
|
|
80
|
-
margin-left: auto;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
65
|
}
|
|
84
66
|
}
|
|
@@ -18,20 +18,44 @@
|
|
|
18
18
|
border-radius: 0.9375rem;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
li + li
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
&--primary li + li {
|
|
22
|
+
margin-top: 1px;
|
|
23
|
+
|
|
24
|
+
.aw-mobile-menu-nav__item--divide {
|
|
25
|
+
position: relative;
|
|
26
|
+
padding-top: 2.5rem;
|
|
27
|
+
|
|
28
|
+
&:before {
|
|
29
|
+
@apply bg-mono-800;
|
|
30
|
+
content: '';
|
|
31
|
+
display: block;
|
|
32
|
+
height: 1px;
|
|
33
|
+
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: calc(0.75rem - 1px);
|
|
36
|
+
left: 1.5rem;
|
|
37
|
+
right: 1.5rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--default li + li {
|
|
43
|
+
margin-top: 1px;
|
|
44
|
+
|
|
45
|
+
.aw-mobile-menu-nav__item--divide {
|
|
46
|
+
position: relative;
|
|
47
|
+
|
|
48
|
+
&:before {
|
|
49
|
+
@apply bg-mono-800;
|
|
50
|
+
content: '';
|
|
51
|
+
display: block;
|
|
52
|
+
height: 1px;
|
|
53
|
+
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: -1px;
|
|
56
|
+
left: 1.5rem;
|
|
57
|
+
right: 1.5rem;
|
|
58
|
+
}
|
|
35
59
|
}
|
|
36
60
|
}
|
|
37
61
|
|
|
@@ -40,8 +64,14 @@
|
|
|
40
64
|
margin-top: 0.25rem;
|
|
41
65
|
}
|
|
42
66
|
|
|
43
|
-
&--
|
|
44
|
-
|
|
67
|
+
&--default :is(ol, ul) {
|
|
68
|
+
@apply bg-surface;
|
|
69
|
+
|
|
70
|
+
padding-top: 0.5rem;
|
|
71
|
+
padding-bottom: 0.5rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&--primary :is(ol, ul) {
|
|
45
75
|
@apply bg-surface;
|
|
46
76
|
|
|
47
77
|
padding-top: 0.75rem;
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
v-show="!submenuOpened"
|
|
66
66
|
:title="$t('Main menu')"
|
|
67
67
|
:items="mainMenu"
|
|
68
|
+
theme="island"
|
|
68
69
|
class="aw-mobile-menu__menu"
|
|
69
70
|
@click:submenu="showSubmenu"
|
|
70
71
|
>
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
v-show="!submenuOpened"
|
|
98
99
|
:title="$t('Secondary menu')"
|
|
99
100
|
:items="secondaryMenu"
|
|
101
|
+
theme="island"
|
|
100
102
|
class="aw-mobile-menu__menu"
|
|
101
103
|
@click:submenu="showSubmenu"
|
|
102
104
|
>
|
|
@@ -129,6 +131,7 @@
|
|
|
129
131
|
v-show="!submenuOpened"
|
|
130
132
|
:title="$t('User menu')"
|
|
131
133
|
:items="userMenu"
|
|
134
|
+
theme="primary"
|
|
132
135
|
class="aw-mobile-menu__menu"
|
|
133
136
|
@click:submenu="showSubmenu"
|
|
134
137
|
>
|
|
@@ -181,6 +184,7 @@
|
|
|
181
184
|
v-show="!submenuOpened"
|
|
182
185
|
:title="$t('Tertiary menu')"
|
|
183
186
|
:items="tertiaryMenu"
|
|
187
|
+
theme="primary"
|
|
184
188
|
class="aw-mobile-menu__menu"
|
|
185
189
|
@click:submenu="showSubmenu"
|
|
186
190
|
/>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
v-bind="_linkAttrs"
|
|
5
5
|
:class="{
|
|
6
6
|
'aw-mobile-menu-item--active': active,
|
|
7
|
+
'aw-mobile-menu-item--default': theme === 'default',
|
|
7
8
|
'aw-mobile-menu-item--primary': theme === 'primary',
|
|
8
9
|
'aw-mobile-menu-item--island': theme === 'island'
|
|
9
10
|
}"
|
|
@@ -81,7 +82,7 @@ export default {
|
|
|
81
82
|
|
|
82
83
|
theme: {
|
|
83
84
|
type: String,
|
|
84
|
-
default: '
|
|
85
|
+
default: 'default' // default, primary, island
|
|
85
86
|
},
|
|
86
87
|
|
|
87
88
|
href: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav v-if="items.length" class="aw-mobile-menu-nav" :class="{
|
|
3
|
+
'aw-mobile-menu-nav--default': theme === 'default',
|
|
3
4
|
'aw-mobile-menu-nav--primary': theme === 'primary',
|
|
4
5
|
'aw-mobile-menu-nav--island': theme === 'island'
|
|
5
6
|
}">
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
item.class,
|
|
24
25
|
{
|
|
25
26
|
'aw-mobile-menu-nav__item--divide':
|
|
26
|
-
theme
|
|
27
|
+
theme !== 'island' && (item.isDivide || allDivides) && i
|
|
27
28
|
}
|
|
28
29
|
]"
|
|
29
30
|
:theme="theme"
|
|
@@ -69,7 +70,7 @@ export default {
|
|
|
69
70
|
|
|
70
71
|
theme: {
|
|
71
72
|
type: String,
|
|
72
|
-
default: '
|
|
73
|
+
default: 'default' // default, primary, island
|
|
73
74
|
},
|
|
74
75
|
|
|
75
76
|
allDivides: Boolean
|
package/nuxt/pages/more.vue
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
<AwMobileMenuNav :items="secondaryMenu" theme="island" class="mt-6" />
|
|
42
42
|
|
|
43
|
-
<AwMobileMenuNav :items="userMenu" class="mt-6">
|
|
43
|
+
<AwMobileMenuNav :items="userMenu" theme="primary" class="mt-6">
|
|
44
44
|
<template #before>
|
|
45
45
|
<li class="aw-more__theme">
|
|
46
46
|
<AwIconSystemMono
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.98.
|
|
3
|
+
"version": "2.98.2",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
115
115
|
"rollup-plugin-vue": "^5.0.1"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "c6f6ca32aa9b80f794657bd59959a29cb93e8821"
|
|
118
118
|
}
|