@awes-io/ui 2.89.1 → 2.90.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.
- package/CHANGELOG.md +16 -0
- package/assets/css/components/modal-buttons.css +5 -5
- package/assets/css/components/select.css +0 -8
- package/assets/css/components/switch-field.css +9 -1
- package/assets/js/icons/mono.js +9 -7
- package/components/2_molecules/AwSelect.vue +8 -7
- package/components/3_organisms/AwModalButtons.vue +14 -2
- package/components/4_pages/AwPage.vue +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.90.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.89.1...@awes-io/ui@2.90.0) (2024-01-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* release fixes ([30bc285](https://github.com/awes-io/client/commit/30bc2859d60c3b764a891ad08d91fa541faa5c74))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* change label in switcher padding top by size ([7f7191b](https://github.com/awes-io/client/commit/7f7191bf03c50a1a65c88677e45bb063d9b3fdac))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.89.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.89.0...@awes-io/ui@2.89.1) (2024-01-12)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.aw-switch-field {
|
|
2
2
|
@apply flex relative py-1;
|
|
3
|
+
align-items: flex-start;
|
|
3
4
|
|
|
4
5
|
&__element {
|
|
5
6
|
@apply bg-surface border border-mono-800;
|
|
@@ -94,7 +95,6 @@
|
|
|
94
95
|
|
|
95
96
|
&.is-switcher {
|
|
96
97
|
display: flex;
|
|
97
|
-
align-items: flex-start;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&.is-switcher &__label {
|
|
@@ -205,6 +205,10 @@
|
|
|
205
205
|
margin: 2px;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
|
|
209
|
+
.aw-switch-field__label {
|
|
210
|
+
padding-top: 0.125rem;
|
|
211
|
+
}
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
&--md {
|
|
@@ -259,6 +263,10 @@
|
|
|
259
263
|
right: 12px;
|
|
260
264
|
}
|
|
261
265
|
}
|
|
266
|
+
|
|
267
|
+
.aw-switch-field__label {
|
|
268
|
+
padding-top: 0.625rem;
|
|
269
|
+
}
|
|
262
270
|
}
|
|
263
271
|
|
|
264
272
|
/**
|
package/assets/js/icons/mono.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export const ICONS = {
|
|
2
2
|
angle:
|
|
3
3
|
'm14.3 18.7-6-6a1 1 0 0 1-.1-1.3l.1-.1 6-6a1 1 0 0 1 1.5 1.3v.1l-5.1 5.4 5 5.2a1 1 0 0 1 .1 1.3v.1a1 1 0 0 1-1.4.1h-.1Z',
|
|
4
|
-
'angle-
|
|
4
|
+
'angle-r':
|
|
5
5
|
'm9.7 18.7 6-6a1 1 0 0 0 .1-1.3v-.1l-6-6a1 1 0 0 0-1.6 1.3l.1.1 5 5.4-5 5.2a1 1 0 0 0-.1 1.3l.1.1a1 1 0 0 0 1.3.1h.1Z',
|
|
6
6
|
arrow:
|
|
7
7
|
'm1.3 12.5 6.2 6.2.1.1a1 1 0 0 0 1.3-.1l.1-.1a1 1 0 0 0 0-1.4l-4.5-4.4h17.6a1 1 0 0 0 .9-1v-.2a1 1 0 0 0-1-.8H4.5L9 6.3H9a1 1 0 0 0-1.5-1.4L1.3 11h-.1a1 1 0 0 0 .1 1.4Z',
|
|
8
|
-
'arrow-
|
|
8
|
+
'arrow-r':
|
|
9
9
|
'm22.7 12.5-6.2 6.2-.1.1a1 1 0 0 1-1.3-.1l-.1-.1a1 1 0 0 1 0-1.4l4.5-4.4H1.9a1 1 0 0 1-.9-1v-.2a1 1 0 0 1 1-.8h17.5L15 6.3H15a1 1 0 0 1 1.5-1.4l6.2 6.2h.1a1 1 0 0 1-.1 1.4Z',
|
|
10
10
|
ban:
|
|
11
11
|
'M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-4.96 7.18A9.37 9.37 0 0 1 4.83 5.97l13.2 13.2Zm1.15-1.15L5.98 4.82a9.37 9.37 0 0 1 13.2 13.2Z',
|
|
@@ -86,11 +86,7 @@ export const ICONS = {
|
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export const
|
|
90
|
-
|
|
91
|
-
export const VIEW_BOX = `0 0 ${SIZE} ${SIZE}`
|
|
92
|
-
|
|
93
|
-
export default ICONS /* {
|
|
89
|
+
/* export const ICONS = {
|
|
94
90
|
light:
|
|
95
91
|
'M10 .83c-.3 0-.57.27-.57.58v1.7c0 .3.26.57.57.57.3 0 .57-.27.57-.58V1.4c0-.3-.26-.57-.57-.57Z M16.87 9.13h-.01a2.31 2.31 0 0 1-1.95-2.6c.08-.47.28-.9.62-1.25a.56.56 0 0 0 .13-.58c-.07-.26-.33-.36-.54-.4a4.34 4.34 0 0 0-2.88.56A5.62 5.62 0 0 0 4.46 10a5.64 5.64 0 0 0 10.34 3.08A4.42 4.42 0 0 0 18.8 9.7v-.04c0-.18-.04-.43-.24-.56-.15-.1-.37-.16-.56-.1-.36.12-.75.2-1.12.12ZM11.5 5.58a5.07 5.07 0 0 0 0 0Zm2.2 7.21ZM10.1 7.98a4.4 4.4 0 0 0 3.32 4.92 4.34 4.34 0 0 1-3.33 1.56c-2.45 0-4.45-2.01-4.45-4.46a4.47 4.47 0 0 1 5.55-4.33 4.48 4.48 0 0 0-1.1 2.3Zm6.62 2.19Zm-5.67-2Zm5.64 2.16c.2.03.38.04.57.03A3.29 3.29 0 0 1 11.2 8.2 3.23 3.23 0 0 1 14 5.44a3.52 3.52 0 0 0 2.68 4.9Z M9.74 15.83c-.3 0-.57.27-.57.58v1.7c0 .3.26.57.57.57.3 0 .57-.27.57-.58v-1.7c0-.3-.26-.57-.57-.57ZM15.13 14.33l1.2 1.21c.23.23.23.58 0 .8a.56.56 0 0 1-.79 0l-1.2-1.21a.56.56 0 0 1 0-.8c.21-.22.59-.22.79 0ZM1.4 9.17h1.7c.31 0 .58.26.58.57 0 .3-.27.57-.58.57H1.4a.57.57 0 0 1-.57-.57c0-.3.27-.57.58-.57ZM5.5 14.33c-.2-.22-.57-.22-.79 0L3.5 15.54a.56.56 0 0 0 0 .8c.22.22.57.22.8 0l1.2-1.21a.56.56 0 0 0 0-.8ZM4.3 3.5 5.5 4.7c.23.22.23.57 0 .8a.56.56 0 0 1-.79 0L3.5 4.28a.56.56 0 0 1 0-.8.56.56 0 0 1 .8 0Z',
|
|
96
92
|
close:
|
|
@@ -174,3 +170,9 @@ export default ICONS /* {
|
|
|
174
170
|
undo:
|
|
175
171
|
'M2.2 2.2L4 4a8.5 8.5 0 0114.5 6 8.5 8.5 0 01-14.2 6.3.4.4 0 010-.6L5 15h.5a6.7 6.7 0 10-.3-9.8l1.9 1.9c.3.3 0 .7-.3.7H2a.4.4 0 01-.4-.4v-5c0-.3.4-.5.7-.2z'
|
|
176
172
|
} */
|
|
173
|
+
|
|
174
|
+
export const SIZE = 24
|
|
175
|
+
|
|
176
|
+
export const VIEW_BOX = `0 0 ${SIZE} ${SIZE}`
|
|
177
|
+
|
|
178
|
+
export default ICONS
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:class="{
|
|
4
|
-
'aw-select--invert': invert,
|
|
5
4
|
'aw-select--mobile-opened': isMobileOpened
|
|
6
5
|
}"
|
|
7
6
|
class="aw-select"
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
>
|
|
61
60
|
<template #icon>
|
|
62
61
|
<slot name="create-icon">
|
|
63
|
-
<AwIconSystemMono name="
|
|
62
|
+
<AwIconSystemMono name="plus-circle" size="20" />
|
|
64
63
|
</slot>
|
|
65
64
|
</template>
|
|
66
65
|
</AwButton>
|
|
@@ -77,6 +76,9 @@
|
|
|
77
76
|
</template>
|
|
78
77
|
</AwButton>
|
|
79
78
|
<AwButton
|
|
79
|
+
v-if="
|
|
80
|
+
isLoading || (optionsList.length && _isEditingOptions)
|
|
81
|
+
"
|
|
80
82
|
tabindex="-1"
|
|
81
83
|
type="button"
|
|
82
84
|
class="h-full"
|
|
@@ -163,6 +165,10 @@
|
|
|
163
165
|
</template>
|
|
164
166
|
</AwButton>
|
|
165
167
|
<AwButton
|
|
168
|
+
v-if="
|
|
169
|
+
isLoading ||
|
|
170
|
+
(optionsList.length && _isEditingOptions)
|
|
171
|
+
"
|
|
166
172
|
tabindex="-1"
|
|
167
173
|
theme="icon"
|
|
168
174
|
:size="$attrs.size || 'md'"
|
|
@@ -351,11 +357,6 @@ export default {
|
|
|
351
357
|
default: 400
|
|
352
358
|
},
|
|
353
359
|
|
|
354
|
-
invert: {
|
|
355
|
-
type: Boolean,
|
|
356
|
-
default: false
|
|
357
|
-
},
|
|
358
|
-
|
|
359
360
|
createConfirmText: {
|
|
360
361
|
type: String,
|
|
361
362
|
default() {
|
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script>
|
|
43
|
-
import { omit } from 'rambdax'
|
|
43
|
+
import { omit, path } from 'rambdax'
|
|
44
|
+
|
|
45
|
+
const DROPDOWN_BUTTON_COLORS = ['default', 'error']
|
|
44
46
|
|
|
45
47
|
export default {
|
|
46
48
|
name: 'AwModalButtons',
|
|
@@ -97,6 +99,12 @@ export default {
|
|
|
97
99
|
// add button if visible
|
|
98
100
|
if (show !== false) {
|
|
99
101
|
const group = this.isDesktop ? (dropdown ? 'dropdown' : 'buttons') : cta ? 'buttons' : 'dropdown'
|
|
102
|
+
|
|
103
|
+
// omit not available colors
|
|
104
|
+
if (group === 'dropdown' && itemProps.color && !DROPDOWN_BUTTON_COLORS.includes(itemProps.color)) {
|
|
105
|
+
itemProps.color = undefined
|
|
106
|
+
}
|
|
107
|
+
|
|
100
108
|
acc[group].push(itemProps)
|
|
101
109
|
}
|
|
102
110
|
|
|
@@ -106,8 +114,12 @@ export default {
|
|
|
106
114
|
)
|
|
107
115
|
},
|
|
108
116
|
|
|
117
|
+
togglerSize() {
|
|
118
|
+
return path([this.groupedButtons.buttons.length - 1, 'size'], this.groupedButtons.buttons)
|
|
119
|
+
},
|
|
120
|
+
|
|
109
121
|
togglerProps() {
|
|
110
|
-
return { ...omit(['cta'], this.options || {}), ...this.togglerOptions }
|
|
122
|
+
return { ...omit(['cta'], this.options || {}), size: this.togglerSize, ...this.togglerOptions }
|
|
111
123
|
}
|
|
112
124
|
},
|
|
113
125
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
}"
|
|
14
14
|
:title="_title"
|
|
15
15
|
:breadcrumb="breadcrumb"
|
|
16
|
+
:breadcrumb-menu="breadcrumbMenu"
|
|
16
17
|
:buttons-breakpoint="buttonsBreakpoint"
|
|
17
18
|
:container="headerContainer || container"
|
|
18
19
|
:title-centered="titleCentered || stickyHeader"
|
|
@@ -164,6 +165,11 @@ export default {
|
|
|
164
165
|
buttonsBreakpoint: {
|
|
165
166
|
type: String,
|
|
166
167
|
default: 'lg'
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
breadcrumbMenu: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: undefined
|
|
167
173
|
}
|
|
168
174
|
},
|
|
169
175
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.90.0",
|
|
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": "1b568eaaa2094a6d2324afcb218f403ed63be30a"
|
|
118
118
|
}
|