travel-ui 1.0.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/favicon.ico ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "travel-ui",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "travel-ui.umd.js",
6
+ "module": "travel-ui.es.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./travel-ui.es.js",
10
+ "require": "./travel-ui.umd.js"
11
+ }
12
+ },
13
+ "scripts": {
14
+ "test": "echo \"Error: no test specified\" && exit 1"
15
+ },
16
+ "keywords": [],
17
+ "author": "",
18
+ "license": "ISC",
19
+ "type": "commonjs"
20
+ }
@@ -0,0 +1,44 @@
1
+ import { createElementBlock as t, openBlock as o } from "vue";
2
+ function s(e) {
3
+ return /^(?:\d{15}|\d{17}[\dXx])$/.test(e);
4
+ }
5
+ function c(e) {
6
+ return /^1\d{10}$/.test(e);
7
+ }
8
+ function a(e) {
9
+ return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);
10
+ }
11
+ const r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ __proto__: null,
13
+ isValidEmail: a,
14
+ isValidIdCard: s,
15
+ isValidPhoneNumber: c
16
+ }, Symbol.toStringTag, { value: "Module" })), _ = {
17
+ class: "tw-airline-info"
18
+ }, l = /* @__PURE__ */ Object.assign({
19
+ name: "TWAirlineInfo"
20
+ }, {
21
+ __name: "index",
22
+ setup(e) {
23
+ return (n, i) => (o(), t("div", _));
24
+ }
25
+ }), d = {
26
+ class: "tw-hotel-info"
27
+ }, u = /* @__PURE__ */ Object.assign({
28
+ name: "TWHotelInfo"
29
+ }, {
30
+ __name: "index",
31
+ setup(e) {
32
+ return (n, i) => (o(), t("div", d));
33
+ }
34
+ }), m = [l, u], p = function(e) {
35
+ m.forEach((n) => {
36
+ e.component(n.name, n);
37
+ });
38
+ }, x = { install: p, publicJs: r };
39
+ export {
40
+ x as default,
41
+ a as isValidEmail,
42
+ s as isValidIdCard,
43
+ c as isValidPhoneNumber
44
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["travel-ui"]={},e.Vue))})(this,(function(e,t){"use strict";function o(n){return/^(?:\d{15}|\d{17}[\dXx])$/.test(n)}function s(n){return/^1\d{10}$/.test(n)}function a(n){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(n)}const c=Object.freeze(Object.defineProperty({__proto__:null,isValidEmail:a,isValidIdCard:o,isValidPhoneNumber:s},Symbol.toStringTag,{value:"Module"})),d={class:"tw-airline-info"},l=Object.assign({name:"TWAirlineInfo"},{__name:"index",setup(n){return(i,f)=>(t.openBlock(),t.createElementBlock("div",d))}}),r={class:"tw-hotel-info"},u=[l,Object.assign({name:"TWHotelInfo"},{__name:"index",setup(n){return(i,f)=>(t.openBlock(),t.createElementBlock("div",r))}})],_={install:function(n){u.forEach(i=>{n.component(i.name,i)})},publicJs:c};e.default=_,e.isValidEmail=a,e.isValidIdCard=o,e.isValidPhoneNumber=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));