@veritree/ui 0.80.0-0 → 0.81.0-1

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": "@veritree/ui",
3
- "version": "0.80.0-0",
3
+ "version": "0.81.0-1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -12,7 +12,8 @@
12
12
  "scripts": {
13
13
  "test": "vitest",
14
14
  "coverage": "vitest run --coverage",
15
- "release": "np --no-tests --no-2fa"
15
+ "release": "np --no-tests --no-2fa",
16
+ "release-any-branch": "np --no-tests --no-2fa --any-branch"
16
17
  },
17
18
  "dependencies": {
18
19
  "@floating-ui/dom": "^1.6.5",
@@ -22,7 +22,7 @@
22
22
  :maximum-view="maximumView"
23
23
  :show-edge-dates="showEdgeDates"
24
24
  :disabled-dates="disabledDatesComputed"
25
- :use-utc="true"
25
+ :use-utc="useUtc"
26
26
  @input="onInput"
27
27
  >
28
28
  <template #prevIntervalBtn>
@@ -101,6 +101,10 @@ export default {
101
101
  type: Boolean,
102
102
  default: false,
103
103
  },
104
+ useUtc: {
105
+ type: Boolean,
106
+ default: true,
107
+ },
104
108
  },
105
109
 
106
110
  computed: {
@@ -2,7 +2,7 @@
2
2
  <button
3
3
  :id="id"
4
4
  :class="triggerClassComputed"
5
- :disabled="disabled"
5
+ :disabled="isDisabled"
6
6
  :aria-expanded="expanded"
7
7
  :aria-haspopup="hasPopup"
8
8
  :role="role"
@@ -15,7 +15,9 @@
15
15
  <span :class="[headless ? 'listbox-button__text' : 'truncate text-left']">
16
16
  <slot></slot>
17
17
  </span>
18
+ <VTSpinner v-if="loading" class="-mr-0.5 max-w-4 max-h-4" />
18
19
  <span
20
+ v-else
19
21
  :class="[
20
22
  headless ? 'listbox-button__icon' : '-mr-1 ml-2 shrink-0 text-gray-500',
21
23
  ]"
@@ -49,6 +51,10 @@ export default {
49
51
  type: String,
50
52
  default: 'combobox',
51
53
  },
54
+ loading: {
55
+ type: Boolean,
56
+ default: false,
57
+ },
52
58
  },
53
59
 
54
60
  data() {
@@ -94,6 +100,10 @@ export default {
94
100
 
95
101
  return `button-base button--${this.variant} button--${this.size}`;
96
102
  },
103
+
104
+ isDisabled() {
105
+ return this.disabled || this.loading;
106
+ },
97
107
  },
98
108
 
99
109
  mounted() {