vueless 0.0.313 → 0.0.315
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,5 +1,5 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
|
-
|
|
2
|
+
toggleLabel: {
|
|
3
3
|
component: "{ULabel}",
|
|
4
4
|
base: "flex flex-wrap",
|
|
5
5
|
variants: {
|
|
@@ -30,6 +30,9 @@ export default /*tw*/ {
|
|
|
30
30
|
focus-within:ring-dynamic focus-within:ring-offset-dynamic focus-within:ring-brand-700/15
|
|
31
31
|
`,
|
|
32
32
|
},
|
|
33
|
+
block: {
|
|
34
|
+
true: "w-full flex-nowrap",
|
|
35
|
+
},
|
|
33
36
|
},
|
|
34
37
|
compoundVariants: [
|
|
35
38
|
{ separated: false, variant: "thirdary", class: "space-x-px" },
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:align="labelAlign"
|
|
7
7
|
:disabled="disabled"
|
|
8
8
|
centred
|
|
9
|
-
v-bind="
|
|
9
|
+
v-bind="toggleLabelAttrs"
|
|
10
10
|
:data-test="dataTest"
|
|
11
11
|
>
|
|
12
12
|
<div v-bind="itemsAttrs">
|
|
@@ -183,7 +183,7 @@ const emit = defineEmits([
|
|
|
183
183
|
"update:modelValue",
|
|
184
184
|
]);
|
|
185
185
|
|
|
186
|
-
const {
|
|
186
|
+
const { toggleLabelAttrs, itemsAttrs, itemAttrs } = useAttrs(props);
|
|
187
187
|
|
|
188
188
|
const selectedValue = computed({
|
|
189
189
|
get: () => props.modelValue,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:disabled="item.disabled"
|
|
11
11
|
:size="size"
|
|
12
12
|
:data-test="`${dataTest}-item-${index}`"
|
|
13
|
-
v-bind="
|
|
13
|
+
v-bind="itemAttrs"
|
|
14
14
|
/>
|
|
15
15
|
</slot>
|
|
16
16
|
</div>
|
|
@@ -103,5 +103,5 @@ provide("setUTabsSelectedItem", (value) => (selectedItem.value = value));
|
|
|
103
103
|
provide("getUTabsSelectedItem", () => selectedItem.value);
|
|
104
104
|
provide("getUTabsSize", () => props.size);
|
|
105
105
|
|
|
106
|
-
const { tabsAttrs,
|
|
106
|
+
const { tabsAttrs, itemAttrs } = useAttrs(props);
|
|
107
107
|
</script>
|