vueless 0.0.715 → 0.0.716

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.715",
3
+ "version": "0.0.716",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -16,8 +16,8 @@ export default /*tw*/ {
16
16
  `,
17
17
  variants: {
18
18
  color: {
19
- grayscale: "hover:bg-gray-100 active:bg-gray-200",
20
- white: "hover:bg-gray-100 active:bg-gray-200",
19
+ grayscale: "hover:bg-gray-900/5 active:bg-gray-900/10",
20
+ white: "hover:bg-gray-900/5 active:bg-gray-900/10",
21
21
  },
22
22
  size: {
23
23
  sm: "text-xs",
@@ -29,7 +29,15 @@ export default /*tw*/ {
29
29
  },
30
30
  },
31
31
  },
32
- optionActive: "{>option} bg-{color}-600/10 hover:bg-{color}-600/10 text-brand-600",
32
+ optionActive: {
33
+ base: "{>option} bg-{color}-600/10 hover:bg-{color}-600/10 text-{color}-600",
34
+ variants: {
35
+ color: {
36
+ grayscale: "bg-gray-900/10 hover:bg-gray-900/10 text-gray-900",
37
+ white: "bg-gray-900/10 hover:bg-gray-900/10 text-gray-900",
38
+ },
39
+ },
40
+ },
33
41
  optionHighlighted: "bg-{color}-50",
34
42
  optionContent: "overflow-visible text-ellipsis",
35
43
  groupBase: {
@@ -634,7 +634,7 @@ const {
634
634
  </div>
635
635
 
636
636
  <span
637
- v-if="!multiple && isLocalValue"
637
+ v-if="!multiple && isLocalValue && ((searchable && !isOpen) || !searchable)"
638
638
  v-bind="selectedLabelAttrs"
639
639
  @mousedown.prevent="toggle"
640
640
  >
@@ -109,7 +109,10 @@ export default /*tw*/ {
109
109
  },
110
110
  search: {
111
111
  base: "flex w-full",
112
- compoundVariants: [{ multiple: false, selected: true, class: "w-0" }],
112
+ compoundVariants: [
113
+ { multiple: false, selected: true, opened: false, class: "w-0" },
114
+ { multiple: false, selected: true, searchable: false, class: "w-0" },
115
+ ],
113
116
  },
114
117
  searchInput: {
115
118
  base: `