vueless 0.0.704 → 0.0.705
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/package.json
CHANGED
|
@@ -73,7 +73,13 @@ const { config, getDataTest, wrapperAttrs, dropdownLinkAttrs, dropdownListAttrs,
|
|
|
73
73
|
</script>
|
|
74
74
|
|
|
75
75
|
<template>
|
|
76
|
-
<div
|
|
76
|
+
<div
|
|
77
|
+
v-click-outside="hideOptions"
|
|
78
|
+
tabindex="1"
|
|
79
|
+
v-bind="wrapperAttrs"
|
|
80
|
+
@keydown.enter="onClickLink"
|
|
81
|
+
@keydown.space.prevent="onClickLink"
|
|
82
|
+
>
|
|
77
83
|
<!--
|
|
78
84
|
@slot Use it to add something before the label.
|
|
79
85
|
@binding {boolean} opened
|
|
@@ -82,6 +88,7 @@ const { config, getDataTest, wrapperAttrs, dropdownLinkAttrs, dropdownListAttrs,
|
|
|
82
88
|
|
|
83
89
|
<ULink
|
|
84
90
|
:id="elementId"
|
|
91
|
+
tabindex="-1"
|
|
85
92
|
:size="size"
|
|
86
93
|
:label="label"
|
|
87
94
|
:color="color"
|
|
@@ -91,8 +98,6 @@ const { config, getDataTest, wrapperAttrs, dropdownLinkAttrs, dropdownListAttrs,
|
|
|
91
98
|
v-bind="dropdownLinkAttrs"
|
|
92
99
|
:data-test="getDataTest()"
|
|
93
100
|
@click="onClickLink"
|
|
94
|
-
@keydown.enter="onClickLink"
|
|
95
|
-
@keydown.space.prevent="onClickLink"
|
|
96
101
|
>
|
|
97
102
|
<template #default>
|
|
98
103
|
<!--
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: {
|
|
3
|
-
base:
|
|
3
|
+
base: `
|
|
4
|
+
relative inline-flex items-center outline-0 rounded
|
|
5
|
+
focus-visible:ring-dynamic focus-visible:ring-offset-4 focus-visible:ring-{color}-600
|
|
6
|
+
`,
|
|
4
7
|
variants: {
|
|
8
|
+
color: {
|
|
9
|
+
grayscale: "focus-visible:ring-gray-900",
|
|
10
|
+
white: "focus-visible:ring-white",
|
|
11
|
+
},
|
|
5
12
|
opened: {
|
|
6
13
|
true: "group",
|
|
7
14
|
},
|
|
8
15
|
},
|
|
9
16
|
},
|
|
10
|
-
dropdownLink: "{ULink}",
|
|
17
|
+
dropdownLink: "{ULink} focus-visible:ring-offset-0 focus-visible:ring-0",
|
|
11
18
|
toggleIcon: {
|
|
12
19
|
base: "{UIcon} block transition duration-300 group-[]:rotate-180",
|
|
13
20
|
variants: {
|