@veritree/ui 0.61.1 → 0.63.0

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.
@@ -32,7 +32,7 @@ export const floatingUiItemMixin = {
32
32
  // default styles
33
33
  this.headless
34
34
  ? `${this.componentName}`
35
- : 'relative z-10 flex items-center gap-2 px-3 py-2 text-inherit no-underline cursor-pointer',
35
+ : 'relative z-10 text-sm flex items-center gap-2 px-3 py-2 text-inherit no-underline cursor-pointer',
36
36
  // disabled state styles
37
37
  this.headless
38
38
  ? this.disabled
@@ -21,6 +21,18 @@ export const formControlMixin = {
21
21
  type: [String, Object, Function],
22
22
  default: '',
23
23
  },
24
+
25
+ /**
26
+ * Specifies the size of the button
27
+ *
28
+ * @values
29
+ * - 'small': A smaller size for the button
30
+ * - 'large': A larger size for the button
31
+ */
32
+ size: {
33
+ type: String,
34
+ default: 'large',
35
+ },
24
36
  },
25
37
 
26
38
  computed: {
@@ -61,7 +73,7 @@ export const formControlStyleMixin = {
61
73
  return [
62
74
  this.headless
63
75
  ? `${this.name}`
64
- : 'leading-0 flex w-full max-w-full relative appearance-none placeholder:font-light placeholder:text-gray-500 items-center justify-between rounded border border-solid px-3 py-2 font-inherit text-base text-inherit file:hidden focus:border-gray-600 focus:placeholder:text-gray-400',
76
+ : 'leading-0 flex w-full max-w-full relative appearance-none placeholder:font-light placeholder:text-gray-500 items-center justify-between rounded border border-solid px-3 py-2 font-inherit text-sm text-inherit file:hidden focus:border-gray-600 focus:placeholder:text-gray-400',
65
77
  // variant styles
66
78
  this.headless
67
79
  ? `${this.name}--${this.variant}`
@@ -75,7 +87,7 @@ export const formControlStyleMixin = {
75
87
  ? null
76
88
  : this.name === 'textarea'
77
89
  ? 'min-h-10' // limit it because input type number height can be different from other input types
78
- : 'h-10',
90
+ : this.size === 'small' ? 'h-8' : 'h-10',
79
91
  // disabled styles
80
92
  this.disabled
81
93
  ? this.headless
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.61.1",
3
+ "version": "0.63.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -3,7 +3,11 @@
3
3
  <div
4
4
  v-if="visible"
5
5
  :id="id"
6
- :class="[headless ? 'dialog-overlay' : 'bg-primary-200/80 fixed inset-0']"
6
+ :class="[
7
+ headless
8
+ ? 'dialog-overlay'
9
+ : 'bg-primary-200/80 fixed inset-0 backdrop-blur-[3px]',
10
+ ]"
7
11
  />
8
12
  </FadeInOut>
9
13
  </template>
@@ -27,12 +27,12 @@
27
27
  </span>
28
28
  <span
29
29
  :class="[
30
- headless ? 'listbox-button__icon' : 'ml-2 shrink-0 text-gray-500',
30
+ headless ? 'listbox-button__icon' : '-mr-1 ml-2 shrink-0 text-gray-500',
31
31
  ]"
32
32
  >
33
33
  <IconChevronDown
34
- class="transition-transform"
35
- :class="{ 'rotate-180': expanded }"
34
+ class="w-5 transition-transform"
35
+ :class="{ 'rotate-18': expanded }"
36
36
  />
37
37
  </span>
38
38
  </button>