readytech-ui-library-v2 0.0.3 → 0.0.5
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.
@@ -1,31 +1,114 @@
|
|
1
|
-
import { createElementBlock as s, openBlock as
|
2
|
-
const
|
1
|
+
import { createElementBlock as s, openBlock as o, renderSlot as p, toDisplayString as i, resolveComponent as f, createBlock as _, mergeProps as m } from "vue";
|
2
|
+
const d = (t, a) => {
|
3
3
|
const e = t.__vccOpts || t;
|
4
|
-
for (const [
|
5
|
-
e[
|
4
|
+
for (const [r, l] of a)
|
5
|
+
e[r] = l;
|
6
6
|
return e;
|
7
|
-
},
|
8
|
-
function
|
9
|
-
return
|
10
|
-
|
7
|
+
}, h = {}, g = { class: "lv-button" };
|
8
|
+
function b(t, a) {
|
9
|
+
return o(), s("button", g, [
|
10
|
+
p(t.$slots, "default", {}, void 0, !0)
|
11
11
|
]);
|
12
12
|
}
|
13
|
-
const
|
13
|
+
const y = /* @__PURE__ */ d(h, [["render", b], ["__scopeId", "data-v-ac3af47a"]]), V = {
|
14
14
|
name: "InputTaras",
|
15
15
|
props: {
|
16
16
|
prop: {
|
17
17
|
required: !0
|
18
18
|
}
|
19
19
|
}
|
20
|
-
},
|
21
|
-
function
|
22
|
-
return
|
20
|
+
}, x = { class: "class-input" };
|
21
|
+
function v(t, a, e, r, l, n) {
|
22
|
+
return o(), s("h1", x, i(e.prop) + " here", 1);
|
23
23
|
}
|
24
|
-
const
|
25
|
-
|
26
|
-
|
24
|
+
const I = /* @__PURE__ */ d(V, [["render", v], ["__scopeId", "data-v-5dfaad67"]]), S = {
|
25
|
+
name: "RtText",
|
26
|
+
props: {
|
27
|
+
label: {
|
28
|
+
type: String,
|
29
|
+
default: "Input Field"
|
30
|
+
},
|
31
|
+
hint: {
|
32
|
+
type: String,
|
33
|
+
default: ""
|
34
|
+
},
|
35
|
+
placeholder: {
|
36
|
+
type: String,
|
37
|
+
default: ""
|
38
|
+
},
|
39
|
+
modelValue: {
|
40
|
+
type: [String, Number],
|
41
|
+
default: ""
|
42
|
+
},
|
43
|
+
disabled: {
|
44
|
+
type: Boolean,
|
45
|
+
default: !1
|
46
|
+
},
|
47
|
+
error: {
|
48
|
+
type: Boolean,
|
49
|
+
default: !1
|
50
|
+
},
|
51
|
+
errorMessages: {
|
52
|
+
type: [String, Array],
|
53
|
+
default: () => []
|
54
|
+
},
|
55
|
+
prependIcon: {
|
56
|
+
type: String,
|
57
|
+
default: ""
|
58
|
+
// Default to no icon
|
59
|
+
},
|
60
|
+
clearable: {
|
61
|
+
type: Boolean,
|
62
|
+
default: !1
|
63
|
+
// Default is not clearable
|
64
|
+
},
|
65
|
+
autocomplete: {
|
66
|
+
type: String,
|
67
|
+
default: "off"
|
68
|
+
// Default is 'off'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
computed: {
|
72
|
+
inputValue: {
|
73
|
+
get() {
|
74
|
+
return this.modelValue;
|
75
|
+
},
|
76
|
+
set(t) {
|
77
|
+
this.$emit("update:modelValue", t);
|
78
|
+
}
|
79
|
+
},
|
80
|
+
inputProps() {
|
81
|
+
return { ...this.$props };
|
82
|
+
}
|
83
|
+
},
|
84
|
+
methods: {
|
85
|
+
handleClear() {
|
86
|
+
this.$emit("clear");
|
87
|
+
}
|
88
|
+
}
|
89
|
+
};
|
90
|
+
function B(t, a, e, r, l, n) {
|
91
|
+
const c = f("v-text-field");
|
92
|
+
return o(), _(c, m(n.inputProps, {
|
93
|
+
modelValue: n.inputValue,
|
94
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => n.inputValue = u),
|
95
|
+
label: e.label,
|
96
|
+
placeholder: e.placeholder,
|
97
|
+
disabled: e.disabled,
|
98
|
+
error: e.error,
|
99
|
+
"error-messages": e.errorMessages,
|
100
|
+
"prepend-icon": e.prependIcon,
|
101
|
+
clearable: "",
|
102
|
+
hint: e.hint,
|
103
|
+
autocomplete: e.autocomplete,
|
104
|
+
"onClick:clear": n.handleClear
|
105
|
+
}), null, 16, ["modelValue", "label", "placeholder", "disabled", "error", "error-messages", "prepend-icon", "hint", "autocomplete", "onClick:clear"]);
|
106
|
+
}
|
107
|
+
const k = /* @__PURE__ */ d(S, [["render", B], ["__scopeId", "data-v-33b97f38"]]), C = {
|
108
|
+
install: (t, a) => {
|
109
|
+
t.component("LearnVueButton", y), t.component("InputTaras", I), t.component("RtText", k);
|
27
110
|
}
|
28
111
|
};
|
29
112
|
export {
|
30
|
-
|
113
|
+
C as default
|
31
114
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(e,
|
1
|
+
(function(e,r){typeof exports=="object"&&typeof module<"u"?module.exports=r(require("vue")):typeof define=="function"&&define.amd?define(["vue"],r):(e=typeof globalThis<"u"?globalThis:e||self,e["readytech-ui-library-v2"]=r(e.Vue))})(this,function(e){"use strict";const r=(n,o)=>{const t=n.__vccOpts||n;for(const[l,d]of o)t[l]=d;return t},c={},s={class:"lv-button"};function u(n,o){return e.openBlock(),e.createElementBlock("button",s,[e.renderSlot(n.$slots,"default",{},void 0,!0)])}const i=r(c,[["render",u],["__scopeId","data-v-ac3af47a"]]),p={name:"InputTaras",props:{prop:{required:!0}}},f={class:"class-input"};function m(n,o,t,l,d,a){return e.openBlock(),e.createElementBlock("h1",f,e.toDisplayString(t.prop)+" here",1)}const _=r(p,[["render",m],["__scopeId","data-v-5dfaad67"]]),h={name:"RtText",props:{label:{type:String,default:"Input Field"},hint:{type:String,default:""},placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessages:{type:[String,Array],default:()=>[]},prependIcon:{type:String,default:""},clearable:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"}},computed:{inputValue:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},inputProps(){return{...this.$props}}},methods:{handleClear(){this.$emit("clear")}}};function y(n,o,t,l,d,a){const g=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(g,e.mergeProps(a.inputProps,{modelValue:a.inputValue,"onUpdate:modelValue":o[0]||(o[0]=x=>a.inputValue=x),label:t.label,placeholder:t.placeholder,disabled:t.disabled,error:t.error,"error-messages":t.errorMessages,"prepend-icon":t.prependIcon,clearable:"",hint:t.hint,autocomplete:t.autocomplete,"onClick:clear":a.handleClear}),null,16,["modelValue","label","placeholder","disabled","error","error-messages","prepend-icon","hint","autocomplete","onClick:clear"])}const b=r(h,[["render",y],["__scopeId","data-v-33b97f38"]]);return{install:(n,o)=>{n.component("LearnVueButton",i),n.component("InputTaras",_),n.component("RtText",b)}}});
|
package/package.json
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
"name": "readytech-ui-library-v2",
|
3
3
|
"description": "ui library",
|
4
4
|
"private": false,
|
5
|
-
"version": "0.0.
|
5
|
+
"version": "0.0.5",
|
6
6
|
"exports": {
|
7
7
|
".": {
|
8
8
|
"import": "./dist/readytech-ui-library-v2.es.js",
|
9
9
|
"require": "./dist/readytech-ui-library-v2.umd.js"
|
10
10
|
},
|
11
|
-
"./dist/
|
11
|
+
"./dist/readytech-ui-library-v2.css": "./dist/readytech-ui-library-v2.css"
|
12
12
|
},
|
13
13
|
"files": [
|
14
14
|
"dist"
|
@@ -20,7 +20,8 @@
|
|
20
20
|
"preview": "vite preview"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"vue": "^3.5.13"
|
23
|
+
"vue": "^3.5.13",
|
24
|
+
"vuetify": "^3.7.16"
|
24
25
|
},
|
25
26
|
"devDependencies": {
|
26
27
|
"@vitejs/plugin-vue": "^5.2.1",
|