edvoyui-component-library-test-flight 0.0.183 → 0.0.184
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/dist/edvoy-ui.cjs.js +28 -28
- package/dist/edvoy-ui.es.js +1255 -1263
- package/dist/edvoy-ui.umd.js +28 -28
- package/dist/tabs/EUITabs.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/HelloWorld.vue +1 -3
- package/src/components/tabs/EUITabs.vue +1 -1
- package/src/components/telephone/EUITelephone.vue +18 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/tabs/EUITabs.vue?vue&type=style&index=0&scoped=eda5f59b&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUITabs.vue.d.ts.map
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<!-- Development code here -->
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
<!-- <template>
|
|
16
16
|
<div class="h-[clac(100svh-64px)] w-full px-10 py-8 max-w-screen-xl mx-auto">
|
|
17
17
|
<h1 class="mb-2 font-semibold text-gray-900 tetx-lg">Edvoy UI Componnet</h1>
|
|
18
18
|
<div
|
|
@@ -808,7 +808,6 @@
|
|
|
808
808
|
:custom-offset="[-20, 10]"
|
|
809
809
|
inputFilled
|
|
810
810
|
/>
|
|
811
|
-
<EUISelectSearch />
|
|
812
811
|
</div>
|
|
813
812
|
</div>
|
|
814
813
|
|
|
@@ -1512,7 +1511,6 @@ import EUIModal from "./modal/EUIModal.vue";
|
|
|
1512
1511
|
import EUISelect from "./select/EUISelect.vue";
|
|
1513
1512
|
import EUITabs from "./tabs/EUITabs.vue";
|
|
1514
1513
|
import EUITextarea from "./textArea/EUITextArea.vue";
|
|
1515
|
-
import EUISelectSearch from "./selectSearch/EUISelectSearch.vue";
|
|
1516
1514
|
import EUITimeLine from "./timeLine/EUITimeLine.vue";
|
|
1517
1515
|
import {
|
|
1518
1516
|
ArrowDownCircleIcon,
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
'px-3 py-1 leading-5 transition-all duration-150 ease-in-out hover:text-gray-800',
|
|
105
105
|
tabSize === 'sm'
|
|
106
106
|
? 'text-sm font-semibold border-b-2'
|
|
107
|
-
: 'text-base font-
|
|
107
|
+
: 'text-base font-semibold border-b-[3px]',
|
|
108
108
|
activeTabIndex === tabindex
|
|
109
109
|
? 'border-gray-900 text-gray-900'
|
|
110
110
|
: 'border-transparent text-gray-500',
|
|
@@ -69,13 +69,15 @@
|
|
|
69
69
|
{{ tag }}
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
72
|
-
|
|
73
72
|
</template>
|
|
73
|
+
|
|
74
74
|
<script lang="ts" setup>
|
|
75
75
|
import { computed, onUpdated, PropType, ref, toRefs, watch } from "vue";
|
|
76
76
|
import { VueTelInput, VueTelInputCountryOption } from "vue-tel-input";
|
|
77
77
|
import "vue-tel-input/vue-tel-input.css";
|
|
78
|
+
|
|
78
79
|
const emit = defineEmits(["update:modelValue", "blur", "update:isValid"]);
|
|
80
|
+
|
|
79
81
|
const props = defineProps({
|
|
80
82
|
modelValue: {
|
|
81
83
|
type: [String, Number],
|
|
@@ -134,10 +136,11 @@ const props = defineProps({
|
|
|
134
136
|
default: "",
|
|
135
137
|
},
|
|
136
138
|
inputFilled: {
|
|
137
|
-
type:Boolean,
|
|
139
|
+
type: Boolean,
|
|
138
140
|
default: false
|
|
139
141
|
}
|
|
140
142
|
});
|
|
143
|
+
|
|
141
144
|
const { isValid } = toRefs(props);
|
|
142
145
|
|
|
143
146
|
const generateUID = () => {
|
|
@@ -163,19 +166,8 @@ watch(listener, (value) => {
|
|
|
163
166
|
mobile.value = value;
|
|
164
167
|
});
|
|
165
168
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
focus: props.autoFocus,
|
|
169
|
-
place: props.placeholder,
|
|
170
|
-
disabled: props.disabled,
|
|
171
|
-
required: props.required,
|
|
172
|
-
name: props.name,
|
|
173
|
-
length: props.length,
|
|
174
|
-
readonly: props.readonly
|
|
175
|
-
};
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
const bindProps = {
|
|
169
|
+
// Make bindProps a reactive computed property
|
|
170
|
+
const bindProps = computed(() => ({
|
|
179
171
|
mode: "international",
|
|
180
172
|
autoFormat: false,
|
|
181
173
|
autoDefaultCountry: true,
|
|
@@ -183,28 +175,28 @@ const bindProps = {
|
|
|
183
175
|
invalidMsg: "Required mobile number",
|
|
184
176
|
validCharactersOnly: true,
|
|
185
177
|
preferredCountries: [],
|
|
186
|
-
disabled:
|
|
178
|
+
disabled: props.disabled,
|
|
187
179
|
inputOptions: {
|
|
188
180
|
autocomplete: "off",
|
|
189
|
-
autofocus:
|
|
190
|
-
name:
|
|
181
|
+
autofocus: props.autoFocus,
|
|
182
|
+
name: props.name,
|
|
191
183
|
id: id,
|
|
192
|
-
placeholder:
|
|
193
|
-
maxlength:
|
|
184
|
+
placeholder: props.placeholder,
|
|
185
|
+
maxlength: props.length,
|
|
194
186
|
showDialCode: true,
|
|
195
187
|
tabindex: 0,
|
|
196
|
-
readonly:
|
|
197
|
-
required:
|
|
188
|
+
readonly: props.readonly,
|
|
189
|
+
required: props.required,
|
|
198
190
|
styleClasses: "eui-tel_input",
|
|
199
191
|
},
|
|
200
192
|
dropdownOptions: {
|
|
201
|
-
disabled:
|
|
193
|
+
disabled: props.readonly || props.disabled,
|
|
202
194
|
showFlags: true,
|
|
203
195
|
showDialCodeInList: true,
|
|
204
196
|
showSearchBox: true,
|
|
205
197
|
searchBoxPlaceholder: "Search country...",
|
|
206
198
|
},
|
|
207
|
-
};
|
|
199
|
+
}));
|
|
208
200
|
|
|
209
201
|
const onInputChanged = (_formattedNumber: string, phoneObject: any) => {
|
|
210
202
|
hasError.value = phoneObject.valid ? true : false;
|
|
@@ -245,7 +237,7 @@ const getIconClass = () => {
|
|
|
245
237
|
case "startIcon":
|
|
246
238
|
return props.inputFilled ? "pl-12 pr-4" : "normal pl-10 pr-4";
|
|
247
239
|
case "endIcon":
|
|
248
|
-
|
|
240
|
+
return props.inputFilled ? "pr-12 pl-4" : "normal pr-10 pl-4";
|
|
249
241
|
default:
|
|
250
242
|
return props.inputFilled ? "px-4" : "normal px-4";
|
|
251
243
|
}
|
|
@@ -296,4 +288,4 @@ const focusInput = () => {
|
|
|
296
288
|
@apply rounded-md py-2;
|
|
297
289
|
}
|
|
298
290
|
}
|
|
299
|
-
</style>
|
|
291
|
+
</style>
|