@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 +2 -0
- package/nuxt.js +1 -0
- package/package.json +1 -1
- package/src/components/ProgressBar/VTProgressBar.vue +42 -0
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
package/package.json
CHANGED
|
@@ -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>
|