@veritree/ui 0.42.4 → 0.43.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.
package/index.js CHANGED
@@ -36,6 +36,7 @@ import VTListboxLabel from './src/components/Listbox/VTListboxLabel.vue';
36
36
  import VTListboxList from './src/components/Listbox/VTListboxList.vue';
37
37
  import VTListboxSearch from './src/components/Listbox/VTListboxSearch.vue';
38
38
  import VTListboxTrigger from './src/components/Listbox/VTListboxTrigger.vue';
39
+ import VTListboxPlaceholder from './src/components/Listbox/VTListboxPlaceholder.vue';
39
40
  import VTSpinner from './src/components/Spinner/VTSpinner.vue';
40
41
  import VTInputDate from './src/components/Input/VTInputDate.vue';
41
42
  import VTInputFile from './src/components/Input/VTInputFile.vue';
@@ -108,6 +109,7 @@ export {
108
109
  VTListboxList,
109
110
  VTListboxSearch,
110
111
  VTListboxTrigger,
112
+ VTListboxPlaceholder,
111
113
  VTButton,
112
114
  VTInput,
113
115
  VTInputIcon,
@@ -57,7 +57,7 @@ export const formControlStyleMixin = {
57
57
  return [
58
58
  this.headless
59
59
  ? `${this.name}`
60
- : 'leading-0 flex w-full max-w-full appearance-none items-center justify-between rounded border border-solid px-3 py-2 font-inherit text-base text-inherit file:hidden focus:border-secondary-200',
60
+ : 'leading-0 flex w-full max-w-full 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-secondary-200 focus:placeholder:text-gray-400',
61
61
  // variant styles
62
62
  this.headless
63
63
  ? `${this.name}--${this.variant}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.42.4",
3
+ "version": "0.43.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -0,0 +1,25 @@
1
+ <template>
2
+ <component
3
+ :is="as"
4
+ :class="[headless ? 'listbox-placeholder' : 'font-light text-gray-500']"
5
+ >
6
+ <slot></slot>
7
+ </component>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: 'VTListboxPlaceholder',
13
+
14
+ props: {
15
+ as: {
16
+ type: String,
17
+ default: 'span',
18
+ },
19
+ headless: {
20
+ type: Boolean,
21
+ default: false,
22
+ },
23
+ },
24
+ };
25
+ </script>
@@ -14,7 +14,9 @@
14
14
  <span :class="[headless ? 'listbox-button__text' : 'truncate text-left']">
15
15
  <slot></slot>
16
16
  </span>
17
- <span :class="[headless ? 'listbox-button__icon' : 'shrink-0']">
17
+ <span
18
+ :class="[headless ? 'listbox-button__icon' : 'shrink-0 text-gray-500']"
19
+ >
18
20
  <IconChevronDown
19
21
  class="transition-transform"
20
22
  :class="{ 'rotate-180': expanded }"