vueless 0.0.712 → 0.0.714

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.712",
3
+ "version": "0.0.714",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -295,6 +295,7 @@ const {
295
295
  <span v-if="!isValue" v-bind="placeholderAttrs" v-text="currentLocale.noFile" />
296
296
 
297
297
  <UFiles
298
+ v-else
298
299
  :size="size"
299
300
  v-bind="fileListAttrs"
300
301
  :file-list="fileList"
@@ -314,6 +315,7 @@ const {
314
315
  :for="elementId"
315
316
  tag="label"
316
317
  variant="thirdary"
318
+ :color="error ? 'red' : 'brand'"
317
319
  :right-icon="config.defaults.chooseFileIcon"
318
320
  :label="currentLocale.uploadFile"
319
321
  :disabled="disabled"
@@ -340,6 +342,7 @@ const {
340
342
  filled
341
343
  variant="thirdary"
342
344
  :disabled="disabled"
345
+ :color="error ? 'red' : 'brand'"
343
346
  :left-icon="config.defaults.clearIcon"
344
347
  v-bind="clearButtonAttrs"
345
348
  :data-test="`${dataTest}-clear`"
@@ -9,7 +9,7 @@ export default /*tw*/ {
9
9
  `,
10
10
  variants: {
11
11
  error: {
12
- true: "!border-red-600",
12
+ true: "!border-red-600 focus-within:ring-red-600",
13
13
  },
14
14
  disabled: {
15
15
  true: "pointer-events-none bg-gray-100",
@@ -22,15 +22,17 @@ export default /*tw*/ {
22
22
  ],
23
23
  },
24
24
  dropzoneHover: "border-gray-400 border-dashed",
25
- dropzoneError: "!border-red-600 border-dashed",
26
25
  descriptionTop: "{UText} text-gray-700 mb-2",
27
26
  descriptionBottom: "{UText} text-gray-700 mt-2",
28
27
  content: {
29
- base: "p-3 gap-6 flex justify-between items-start relative w-full rounded-dynamic bg-brand-50",
28
+ base: "p-3 gap-3 flex justify-between items-start relative w-full rounded-dynamic bg-brand-50",
30
29
  variants: {
31
30
  multiple: {
32
31
  false: "items-center",
33
32
  },
33
+ error: {
34
+ true: "bg-red-50",
35
+ },
34
36
  disabled: {
35
37
  true: "bg-gray-200",
36
38
  },
@@ -564,20 +564,6 @@ const {
564
564
  </div>
565
565
 
566
566
  <div ref="innerWrapperRef" v-bind="innerWrapperAttrs">
567
- <span
568
- v-if="hasSlotContent($slots['left']) || leftIcon"
569
- ref="leftSlotWrapperRef"
570
- v-bind="leftSlotAttrs"
571
- >
572
- <!--
573
- @slot Use it to add something to the left of input.
574
- @binding {string} icon-name
575
- -->
576
- <slot name="left" :icon-name="leftIcon">
577
- <UIcon v-if="leftIcon" :name="leftIcon" internal v-bind="leftIconAttrs" />
578
- </slot>
579
- </span>
580
-
581
567
  <div v-if="multiple && localValue?.length" v-bind="selectedLabelsAttrs">
582
568
  <div
583
569
  v-for="item in localValue as Option[]"
@@ -745,6 +731,20 @@ const {
745
731
  </template>
746
732
  </template>
747
733
  </UDropdownList>
734
+
735
+ <div
736
+ v-if="hasSlotContent($slots['left']) || leftIcon"
737
+ ref="leftSlotWrapperRef"
738
+ v-bind="leftSlotAttrs"
739
+ >
740
+ <!--
741
+ @slot Use it to add something to the left of input.
742
+ @binding {string} icon-name
743
+ -->
744
+ <slot name="left" :icon-name="leftIcon">
745
+ <UIcon v-if="leftIcon" :name="leftIcon" internal v-bind="leftIconAttrs" />
746
+ </slot>
747
+ </div>
748
748
  </div>
749
749
  </ULabel>
750
750
  </template>
@@ -82,7 +82,7 @@ export default /*tw*/ {
82
82
  },
83
83
  leftIcon: "{UIcon} {>selectIcon}",
84
84
  rightIcon: "{UIcon} {>selectIcon}",
85
- leftSlot: "pr-1.5",
85
+ leftSlot: "{>toggle} pl-3",
86
86
  rightSlot: "{>toggle} pr-3",
87
87
  beforeToggle: "{>toggle} cursor-auto",
88
88
  afterToggle: "{>toggle} mr-3 items-start pt-3 cursor-auto",