vueless 0.0.309 → 0.0.310

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.309",
3
+ "version": "0.0.310",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -152,6 +152,7 @@ export default /*tw*/ {
152
152
  variant: "primary",
153
153
  tag: "button",
154
154
  size: "md",
155
+ tabindex: 0,
155
156
  round: false,
156
157
  block: false,
157
158
  square: false,
@@ -5,7 +5,7 @@
5
5
  ref="buttonRef"
6
6
  :disabled="disabled"
7
7
  v-bind="buttonAttrs"
8
- :tabindex="loading && '-1'"
8
+ :tabindex="!loading ? tabindex : -1"
9
9
  :data-test="dataTest"
10
10
  >
11
11
  <template v-if="loading">
@@ -161,6 +161,14 @@ const props = defineProps({
161
161
  default: "",
162
162
  },
163
163
 
164
+ /**
165
+ * Controls the keyboard “Tab” focus order of elements.
166
+ */
167
+ tabindex: {
168
+ type: String,
169
+ default: getDefault(defaultConfig, UButton).tabindex,
170
+ },
171
+
164
172
  /**
165
173
  * Fill the background for thirdary variant.
166
174
  */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.309",
4
+ "version": "0.0.310",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -942,6 +942,15 @@
942
942
  },
943
943
  "default": "\"\""
944
944
  },
945
+ {
946
+ "name": "tabindex",
947
+ "description": "Controls the keyboard “Tab” focus order of elements.",
948
+ "value": {
949
+ "kind": "expression",
950
+ "type": "string"
951
+ },
952
+ "default": "0"
953
+ },
945
954
  {
946
955
  "name": "filled",
947
956
  "description": "Fill the background for thirdary variant.",