@imaginario27/air-ui-ds 1.13.5 → 1.13.7
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 +27 -0
- package/components/buttons/CopyButton.vue +2 -1
- package/components/buttons/options/OptionButton.vue +2 -0
- package/components/buttons/options/OptionButtonGroup.vue +1 -0
- package/components/buttons/toggle/ToggleButton.vue +2 -0
- package/components/buttons/toggle/ToggleButtonGroup.vue +2 -0
- package/components/forms/fields/InputField.vue +2 -0
- package/components/forms/fields/OptionButtonsGroupField.vue +1 -1
- package/components/navigation/nav-sidebar/NavSidebar.vue +4 -0
- package/models/types/buttons.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ All notable changes to this package are documented in this file.
|
|
|
5
5
|
Historical releases were reconstructed from git history (GitHub repository) and npm publish dates.
|
|
6
6
|
Future releases will include detailed entries generated with Changesets.
|
|
7
7
|
|
|
8
|
+
## 1.13.6 - 2026-06-03
|
|
9
|
+
|
|
10
|
+
Release type: patch.
|
|
11
|
+
Commits found in range: 1.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
1. fix missing buttons aria labels ([bc608ad](https://github.com/imaginario27/air-ui/commit/bc608ad6db69062f28a67eeeed6c00b50529c3bd))
|
|
16
|
+
|
|
17
|
+
- Package: @imaginario27/air-ui-ds.
|
|
18
|
+
|
|
19
|
+
## 1.13.5 - 2026-06-03
|
|
20
|
+
|
|
21
|
+
Release type: patch.
|
|
22
|
+
Commits found in range: 3.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
1. add accessibility attributes across components ([766675d](https://github.com/imaginario27/air-ui/commit/766675db2deaa85576ed5799e9de62a5ea112c89))
|
|
27
|
+
2. make MetricCard description optional and rewrite README (#113) ([fe0e88a](https://github.com/imaginario27/air-ui/commit/fe0e88a59be6171a15d1bf7cb894f12319c3fd23) (PR [#113](https://github.com/imaginario27/air-ui/pull/113)))
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
1. resolve typescript errors in DropdownMenuItem and ModalDialog ([02e229b](https://github.com/imaginario27/air-ui/commit/02e229b9d6ddfa945f2817c726e3f555e079c6d4))
|
|
32
|
+
|
|
33
|
+
- Package: @imaginario27/air-ui-ds.
|
|
34
|
+
|
|
8
35
|
## 1.13.4 - 2026-05-26
|
|
9
36
|
|
|
10
37
|
Release type: patch.
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
:icon="currentCopyButtonIcon"
|
|
7
7
|
:iconClass="currentIconClass"
|
|
8
8
|
:disabled
|
|
9
|
+
:ariaLabel="currentCopyButtonText"
|
|
9
10
|
@click="handleCopy"
|
|
10
11
|
/>
|
|
11
12
|
<ActionButton
|
|
@@ -98,7 +99,7 @@ const props = defineProps({
|
|
|
98
99
|
})
|
|
99
100
|
|
|
100
101
|
// States
|
|
101
|
-
const currentCopyButtonIcon = ref<
|
|
102
|
+
const currentCopyButtonIcon = ref<string>(props.icon)
|
|
102
103
|
const currentCopyButtonText = ref<string>(props.text)
|
|
103
104
|
const currentIconClass = ref<string | undefined>(undefined)
|
|
104
105
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ActionButton
|
|
3
3
|
:text
|
|
4
|
+
:aria-label="ariaLabel"
|
|
4
5
|
:size
|
|
5
6
|
:iconPosition
|
|
6
7
|
:icon
|
|
@@ -49,6 +50,7 @@ const props = defineProps({
|
|
|
49
50
|
type: Boolean as PropType<boolean>,
|
|
50
51
|
default: true,
|
|
51
52
|
},
|
|
53
|
+
ariaLabel: String as PropType<string>,
|
|
52
54
|
})
|
|
53
55
|
|
|
54
56
|
// Emits
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<button
|
|
3
3
|
type="button"
|
|
4
4
|
:aria-pressed="active"
|
|
5
|
+
:aria-label="ariaLabel"
|
|
5
6
|
:disabled
|
|
6
7
|
:class="[
|
|
7
8
|
'flex items-center justify-center',
|
|
@@ -61,6 +62,7 @@ const props = defineProps({
|
|
|
61
62
|
type: Boolean as PropType<boolean>,
|
|
62
63
|
default: false,
|
|
63
64
|
},
|
|
65
|
+
ariaLabel: String as PropType<string>,
|
|
64
66
|
})
|
|
65
67
|
|
|
66
68
|
// Emits
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
v-for="(button, index) in buttons"
|
|
15
15
|
:key="index"
|
|
16
16
|
:active="button.value === modelValue"
|
|
17
|
+
:ariaLabel="button.ariaLabel"
|
|
17
18
|
:text="!onlyIcon && 'text' in button ? button.text : undefined"
|
|
18
19
|
:size="button.size"
|
|
19
20
|
:icon="button.icon"
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
v-for="(button, index) in buttons"
|
|
33
34
|
:key="index"
|
|
34
35
|
:active="button.value === modelValue"
|
|
36
|
+
:ariaLabel="button.ariaLabel"
|
|
35
37
|
:size="button.size"
|
|
36
38
|
:icon="button.icon"
|
|
37
39
|
:disabled
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
<button
|
|
89
89
|
v-if="suffixIcon"
|
|
90
90
|
type="button"
|
|
91
|
+
aria-label="Suffix action"
|
|
91
92
|
:class="[
|
|
92
93
|
'text-icon-default',
|
|
93
94
|
'hover:text-icon-neutral-subtle',
|
|
@@ -108,6 +109,7 @@
|
|
|
108
109
|
<button
|
|
109
110
|
v-if="!suffixIcon && type === 'password' && hasShowPasswordButton"
|
|
110
111
|
type="button"
|
|
112
|
+
aria-label="Toggle password visibility"
|
|
111
113
|
:class="[
|
|
112
114
|
'text-icon-default',
|
|
113
115
|
'hover:text-icon-neutral-subtle',
|
|
@@ -56,7 +56,7 @@ const props = defineProps({
|
|
|
56
56
|
},
|
|
57
57
|
label: String as PropType<string>,
|
|
58
58
|
helpText: String as PropType<string>,
|
|
59
|
-
buttons: Array as PropType<
|
|
59
|
+
buttons: Array as PropType<OptionButton[]>,
|
|
60
60
|
modelValue: {
|
|
61
61
|
type: [String, Array] as PropType<string | string[]>,
|
|
62
62
|
required: true,
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
:icon="mobileSidebarCloseIcon"
|
|
34
34
|
class="flex"
|
|
35
35
|
:size="ButtonSize.SM"
|
|
36
|
+
aria-label="Close sidebar"
|
|
36
37
|
@click="toggleMobileSidebar()"
|
|
37
38
|
/>
|
|
38
39
|
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
v-if="showCollapseToggle && collapseTogglePosition === Position.TOP && !isCollapsed"
|
|
42
43
|
:icon="expandedStateIcon"
|
|
43
44
|
:size="ButtonSize.SM"
|
|
45
|
+
aria-label="Collapse sidebar"
|
|
44
46
|
@click="toggleSidebarState(sidebarId)"
|
|
45
47
|
/>
|
|
46
48
|
</div>
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
:icon="collapsedStateIcon"
|
|
67
69
|
:size="ButtonSize.SM"
|
|
68
70
|
class="mb-2"
|
|
71
|
+
aria-label="Expand sidebar"
|
|
69
72
|
@click="toggleSidebarState(sidebarId)"
|
|
70
73
|
/>
|
|
71
74
|
|
|
@@ -155,6 +158,7 @@
|
|
|
155
158
|
:class="[
|
|
156
159
|
isCollapsed ? '' : 'absolute right-3 bottom-3'
|
|
157
160
|
]"
|
|
161
|
+
:aria-label="isCollapsed ? 'Expand sidebar' : 'Collapse sidebar'"
|
|
158
162
|
@click="toggleSidebarState(sidebarId)"
|
|
159
163
|
/>
|
|
160
164
|
|
package/models/types/buttons.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface ActionButton {
|
|
2
2
|
text: string
|
|
3
3
|
value: string
|
|
4
|
+
ariaLabel?: string
|
|
4
5
|
active?: boolean
|
|
5
6
|
action?: () => void
|
|
6
7
|
size?: ButtonSize
|
|
@@ -11,6 +12,7 @@ export interface ActionButton {
|
|
|
11
12
|
|
|
12
13
|
export interface BaseToggleButton {
|
|
13
14
|
value: string
|
|
15
|
+
ariaLabel?: string
|
|
14
16
|
active?: boolean
|
|
15
17
|
action?: () => void
|
|
16
18
|
size?: ButtonSize
|