@flux-ui/components 3.0.0-next.21 → 3.0.0-next.22
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/dist/component/FluxMenuItem.vue.d.ts +1 -0
- package/dist/component/FluxMenuItem.vue.d.ts.map +1 -1
- package/dist/component/primitive/SelectBase.vue.d.ts +2 -0
- package/dist/component/primitive/SelectBase.vue.d.ts.map +1 -1
- package/dist/index.js +38 -31
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/component/FluxMenuItem.vue +2 -1
- package/src/component/primitive/SelectBase.vue +6 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flux-ui/components",
|
|
3
3
|
"description": "A set of opiniated UI components.",
|
|
4
|
-
"version": "3.0.0-next.
|
|
4
|
+
"version": "3.0.0-next.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@basmilius/utils": "^2.13.0",
|
|
55
|
-
"@flux-ui/internals": "3.0.0-next.
|
|
56
|
-
"@flux-ui/types": "3.0.0-next.
|
|
55
|
+
"@flux-ui/internals": "3.0.0-next.22",
|
|
56
|
+
"@flux-ui/types": "3.0.0-next.22",
|
|
57
57
|
"@fortawesome/fontawesome-common-types": "^7.1.0",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
59
59
|
"imask": "^7.6.1",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<img
|
|
31
31
|
:class="$style.menuItemImage"
|
|
32
32
|
:src="imageSrc"
|
|
33
|
-
alt=""/>
|
|
33
|
+
:alt="imageAlt ?? ''"/>
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<template
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
readonly command?: string;
|
|
75
75
|
readonly commandIcon?: FluxIconName;
|
|
76
76
|
readonly commandLoading?: boolean;
|
|
77
|
+
readonly imageAlt?: string;
|
|
77
78
|
readonly imageSrc?: string;
|
|
78
79
|
readonly isActive?: boolean;
|
|
79
80
|
readonly isDestructive?: boolean;
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
:command="selected[0].command"
|
|
22
22
|
:command-icon="selected[0].commandIcon"
|
|
23
23
|
:icon-leading="selected[0].icon"
|
|
24
|
+
:image-alt="selected[0].imageAlt"
|
|
25
|
+
:image-src="selected[0].imageSrc"
|
|
24
26
|
:label="selected[0].label"
|
|
25
27
|
tabindex="-1"/>
|
|
26
28
|
</template>
|
|
@@ -97,6 +99,8 @@
|
|
|
97
99
|
:command="subItem.command"
|
|
98
100
|
:command-icon="subItem.commandIcon"
|
|
99
101
|
:icon-leading="subItem.icon"
|
|
102
|
+
:image-alt="subItem.imageAlt"
|
|
103
|
+
:image-src="subItem.imageSrc"
|
|
100
104
|
:is-active="!!selected.find(so => so.value === subItem.value)"
|
|
101
105
|
:is-highlighted="highlightedId === subItem.value"
|
|
102
106
|
:label="subItem.label"
|
|
@@ -112,6 +116,8 @@
|
|
|
112
116
|
:command="item.command"
|
|
113
117
|
:command-icon="item.commandIcon"
|
|
114
118
|
:icon-leading="item.icon"
|
|
119
|
+
:image-alt="item.imageAlt"
|
|
120
|
+
:image-src="item.imageSrc"
|
|
115
121
|
:is-active="!!selected.find(so => so.value === item.value)"
|
|
116
122
|
:is-highlighted="highlightedId === item.value"
|
|
117
123
|
:label="item.label"
|