@veritree/ui 0.13.0 → 0.14.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
@@ -33,6 +33,7 @@ import VTInput from "./src/components/Input/VTInput.vue";
33
33
  import VTInputDate from "./src/components/Input/VTInputDate.vue";
34
34
  import VTInputFile from "./src/components/Input/VTInputFile.vue";
35
35
  import VTInputUpload from "./src/components/Input/VTInputUpload.vue";
36
+ import VTProgressBar from "./src/components/ProgressBar/VTProgressBar.vue";
36
37
 
37
38
  import VTTextarea from "./src/components/Textarea/VTTextarea.vue";
38
39
 
@@ -103,6 +104,7 @@ export {
103
104
  VTInputDate,
104
105
  VTInputFile,
105
106
  VTInputUpload,
107
+ VTProgressBar,
106
108
  VTTextarea,
107
109
  VTModal,
108
110
  VTAccordion,
package/nuxt.js CHANGED
@@ -11,6 +11,7 @@ const components = [
11
11
  'src/components/Listbox',
12
12
  'src/components/Image',
13
13
  'src/components/Popover',
14
+ 'src/components/ProgressBar',
14
15
  'src/components/Tabs',
15
16
  ]
16
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <div
3
+ :class="[
4
+ headless
5
+ ? 'progress-bar'
6
+ : 'relative min-h-[10px] w-full overflow-hidden rounded-full bg-gray-200',
7
+ ]"
8
+ role="progressbar"
9
+ aria-valuemin="0"
10
+ aria-valuemax="100"
11
+ :aria-valuenow="value"
12
+ :aria-label="label"
13
+ >
14
+ <div
15
+ :class="[
16
+ headless
17
+ ? 'progress-bar__indicator'
18
+ : 'absolute left-0 h-full bg-secondary-300',
19
+ ]"
20
+ :style="{ width: `${value}%` }"
21
+ ></div>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ export default {
27
+ props: {
28
+ headless: {
29
+ type: Boolean,
30
+ default: false,
31
+ },
32
+ label: {
33
+ type: String,
34
+ default: null,
35
+ },
36
+ value: {
37
+ type: [String, Number],
38
+ default: 0,
39
+ },
40
+ },
41
+ };
42
+ </script>