vueless 0.0.632 → 0.0.633
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
|
@@ -204,17 +204,17 @@ const { textareaAttrs, textareaLabelAttrs, textareaWrapperAttrs, leftSlotAttrs,
|
|
|
204
204
|
v-bind="textareaLabelAttrs"
|
|
205
205
|
:data-test="dataTest"
|
|
206
206
|
>
|
|
207
|
-
<label
|
|
208
|
-
v-if="hasSlotContent($slots['left'])"
|
|
209
|
-
ref="leftSlotWrapperRef"
|
|
210
|
-
:for="elementId"
|
|
211
|
-
v-bind="leftSlotAttrs"
|
|
212
|
-
>
|
|
213
|
-
<!-- @slot Use it to add something before the text. -->
|
|
214
|
-
<slot name="left" />
|
|
215
|
-
</label>
|
|
216
|
-
|
|
217
207
|
<label ref="textareaWrapperRef" :for="elementId" v-bind="textareaWrapperAttrs">
|
|
208
|
+
<div
|
|
209
|
+
v-if="hasSlotContent($slots['left'])"
|
|
210
|
+
ref="leftSlotWrapperRef"
|
|
211
|
+
:for="elementId"
|
|
212
|
+
v-bind="leftSlotAttrs"
|
|
213
|
+
>
|
|
214
|
+
<!-- @slot Use it to add something before the text. -->
|
|
215
|
+
<slot name="left" />
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
218
|
<textarea
|
|
219
219
|
:id="elementId"
|
|
220
220
|
ref="textareaRef"
|
|
@@ -235,11 +235,11 @@ const { textareaAttrs, textareaLabelAttrs, textareaWrapperAttrs, leftSlotAttrs,
|
|
|
235
235
|
@keydown.enter="onEnter"
|
|
236
236
|
@keydown.delete="onBackspace"
|
|
237
237
|
/>
|
|
238
|
-
</label>
|
|
239
238
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
<div v-if="hasSlotContent($slots['right'])" :for="elementId" v-bind="rightSlotAttrs">
|
|
240
|
+
<!-- @slot Use it to add something after the text. -->
|
|
241
|
+
<slot name="right" />
|
|
242
|
+
</div>
|
|
243
243
|
</label>
|
|
244
244
|
</ULabel>
|
|
245
245
|
</template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
textareaLabel: "{ULabel}",
|
|
3
|
-
leftSlot: "flex items-center justify-center whitespace-nowrap
|
|
4
|
-
rightSlot: "flex items-center justify-center whitespace-nowrap
|
|
3
|
+
leftSlot: "flex items-center justify-center whitespace-nowrap pr-2.5 gap-1 rounded-dynamic rounded-r-none",
|
|
4
|
+
rightSlot: "flex items-center justify-center whitespace-nowrap pl-2.5 gap-1 rounded-dynamic rounded-l-none",
|
|
5
5
|
textareaWrapper: {
|
|
6
6
|
base: `
|
|
7
|
-
px-3 py-2 bg-white transition w-full
|
|
7
|
+
flex px-3 py-2 bg-white transition w-full
|
|
8
8
|
rounded-dynamic border border-gray-300 hover:border-gray-400 hover:focus-within:border-brand-500
|
|
9
9
|
focus-within:border-brand-500 focus-within:ring-dynamic focus-within:ring-offset-dynamic
|
|
10
10
|
focus-within:ring-brand-700/15 focus-within:outline-none
|
|
@@ -24,11 +24,6 @@ export default /*tw*/ {
|
|
|
24
24
|
`,
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
|
-
compoundVariants: [
|
|
28
|
-
{ labelAlign: "topInside", label: true, size: "sm", class: "pt-5" },
|
|
29
|
-
{ labelAlign: "topInside", label: true, size: "md", class: "pt-6" },
|
|
30
|
-
{ labelAlign: "topInside", label: true, size: "lg", class: "pt-7" },
|
|
31
|
-
],
|
|
32
27
|
},
|
|
33
28
|
textarea: {
|
|
34
29
|
base: `
|
|
@@ -49,6 +44,11 @@ export default /*tw*/ {
|
|
|
49
44
|
true: "placeholder:text-red-300",
|
|
50
45
|
},
|
|
51
46
|
},
|
|
47
|
+
compoundVariants: [
|
|
48
|
+
{ labelAlign: "topInside", label: true, size: "sm", class: "pt-5" },
|
|
49
|
+
{ labelAlign: "topInside", label: true, size: "md", class: "pt-6" },
|
|
50
|
+
{ labelAlign: "topInside", label: true, size: "lg", class: "pt-7" },
|
|
51
|
+
],
|
|
52
52
|
},
|
|
53
53
|
defaults: {
|
|
54
54
|
rows: "3",
|