@dcrackel/meyersquaredui 1.0.36
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/README.md +5 -0
- package/dist/meyersquaredui.cjs.js +1 -0
- package/dist/meyersquaredui.es.js +471 -0
- package/dist/style.css +1 -0
- package/package.json +61 -0
- package/src/assets/fonts/Raleway-Bold.ttf +0 -0
- package/src/assets/fonts/Raleway-Light.ttf +0 -0
- package/src/assets/fonts/Raleway-Regular.ttf +0 -0
- package/src/assets/fonts/Raleway-SemiBold.ttf +0 -0
- package/src/assets/images/m2.png +0 -0
- package/src/components/HelloWorld.vue +43 -0
- package/src/index.js +10 -0
- package/src/main.js +1 -0
- package/src/stories/Atoms/BaseButton/BaseButton.stories.js +83 -0
- package/src/stories/Atoms/BaseButton/BaseButton.vue +110 -0
- package/src/stories/Atoms/BaseText/BaseText.stories.js +55 -0
- package/src/stories/Atoms/BaseText/BaseText.vue +56 -0
- package/src/stories/Atoms/Icon/Icon.stories.js +44 -0
- package/src/stories/Atoms/Icon/Icon.vue +47 -0
- package/src/stories/Atoms/InputField/InputField.stories.js +26 -0
- package/src/stories/Atoms/InputField/InputField.vue +29 -0
- package/src/stories/Configure.mdx +7 -0
- package/src/stories/Molecules/SearchBox/SearchBox.vue +29 -0
- package/src/stories/Molecules/SearchBox/Searchbox.stories.js +30 -0
- package/src/stories/Organisms/Headers/Header.stories.js +17 -0
- package/src/stories/Organisms/Headers/Header.vue +63 -0
- package/src/stories/Organisms/HeroBanners/HomePage/HeroBanner.stories.js +29 -0
- package/src/stories/Organisms/HeroBanners/HomePage/HeroBanner.vue +86 -0
- package/src/stories/Templates/HomePage/TestPage.stories.js +22 -0
- package/src/stories/Templates/HomePage/TestPage.vue +39 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=(t,r)=>{const o=t.__vccOpts||t;for(const[c,l]of r)o[c]=l;return o},y={name:"BaseButton",props:{label:{type:String,required:!0},altText:{type:String,default:null},color:{type:String,default:"primary",validator:t=>["primary","secondary","accent"].includes(t)},backgroundColor:{type:String,default:"primary",validator:t=>["primary","secondary","accent"].includes(t)},border:{type:String,default:"none",validator:t=>["none","primary","secondary","accent","gradient1","gradient2"].includes(t)}},computed:{textColorClass(){return{primary:"text-primary",secondary:"text-secondary",accent:"text-accent"}[this.color]||"text-primary"},backgroundClass(){return{primary:"bg-primary hover:bg-accent",secondary:"bg-secondary hover:bg-accent",accent:"bg-accent hover:bg-accent"}[this.backgroundColor]||"bg-primary"},borderClass(){return{none:"",primary:"border border-primary",secondary:"border border-secondary",accent:"border border-accent",gradient1:"border-gradient-rounded-1",gradient2:"border-gradient-rounded-2"}[this.border]||""}}},f=["title","aria-label"];function h(t,r,o,c,l,n){return e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["px-4 py-2 rounded-md transition duration-300 ease-in-out",n.textColorClass,n.backgroundClass,n.borderClass]),title:o.altText||o.label,"aria-label":o.altText||o.label,onClick:r[0]||(r[0]=a=>t.$emit("click"))},e.toDisplayString(o.label),11,f)}const m=d(y,[["render",h],["__scopeId","data-v-34e83e90"]]),V={name:"BaseText",props:{tag:{type:String,default:"p",validator:t=>["h1","h2","h3","h4","h5","h6","p","span","div"].includes(t)},size:{type:String,default:"md",validator:t=>["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"].includes(t)},color:{type:String,default:"primary"},weight:{type:String,default:"normal",validator:t=>["light","normal","semibold","bold"].includes(t)}},computed:{textClasses(){const t={xs:"text-xs",sm:"text-sm",md:"lg:text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl"},r={light:"font-light",normal:"font-normal",semibold:"font-semibold",bold:"font-bold"};return`${t[this.size]} ${r[this.weight]} text-${this.color}`}}};function C(t,r,o,c,l,n){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{class:e.normalizeClass(n.textClasses)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"])}const u=d(V,[["render",C]]),v={name:"Icon",props:{icon:{type:String,required:!0},color:{type:String,default:"primary",validator:t=>["primary","secondary","accent"].includes(t)},size:{type:String,default:"md",validator:t=>["xs","sm","md","lg","xl","2xl","3xl"].includes(t)}},computed:{colorClasses(){return{primary:"text-primary",secondary:"text-secondary",accent:"text-accent"}[this.color]||"text-primary"},sizeClasses(){return{xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl"}[this.size]||"text-base"}}};function N(t,r,o,c,l,n){return e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["fas",o.icon,n.colorClasses,n.sizeClasses]),onClick:r[0]||(r[0]=a=>t.$emit("click"))},null,2)}const p=d(v,[["render",N]]),w={name:"InputField",props:{type:{type:String,default:"text"},placeholder:{type:String,default:"Search"},modelValue:{type:String,default:""}}},B=["type","placeholder"];function A(t,r,o,c,l,n){return e.openBlock(),e.createElementBlock("input",e.mergeProps({type:o.type,placeholder:o.placeholder},t.$attrs,{class:"bg-black text-secondary border-b-2 border-secondary focus:outline-none focus:border-accent w-full placeholder-secondary px-2 hover:border-accent duration-300 ease-in-out",onInput:r[0]||(r[0]=a=>t.$emit("update:modelValue",a.target.value))}),null,16,B)}const b=d(w,[["render",A]]),k={name:"SearchBox",components:{InputField:b,Icon:p},data(){return{searchQuery:""}},methods:{onSearch(){console.log("Search Query:",this.searchQuery)}}},S={class:"relative flex items-center w-full max-w-md"};function E(t,r,o,c,l,n){const a=e.resolveComponent("InputField"),s=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",S,[e.createVNode(a,{modelValue:l.searchQuery,"onUpdate:modelValue":r[0]||(r[0]=i=>l.searchQuery=i),placeholder:"Search"},null,8,["modelValue"]),e.createVNode(s,{icon:"fa-search",color:"secondary",size:"sm",class:"absolute right-2",onClick:n.onSearch},null,8,["onClick"])])}const x=d(k,[["render",E]]),j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAABwCAIAAABHB982AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAtOSURBVHhe7Z3tedQ6EEbpIB2QCkIFSQWkglBBqIBUABUEKoAKkgo2FSQVQAdUcM+DBl9fWx7Nh7zrzd3zgye7a0mWZuadkbwJb04cnMfHx9+/fz89PfHDly9f7u7uPnz4cHV1JR+f2Ahv377FTlVeXl4wm1x34uB8/PhRLLPAbrc7OzuTq08ckKJ+OqiiXH3iUCjqN+EUWAeG8gEzPDw83NzcYDa4uLjg569fvxYLDaCT0ubEQcAq9/f38uK/YDOx0h9OGrhpvn//LoY6mWrjjIvDkwBumpLJCpeXl/LuiQ0yRNXz87O8dWKbDLmK6kPeOrFNfv36hZ12u528PrFNhkTFZkveOrFBMM/Lywt2+vTpk7x1YpuU04qHhwd5vX3Ozs7QAXZ/j4+PxcsKiDgvefPHjx93d3dXV1ev6YisFH5Ufcchfaw+Zih51QiWw67S/mjBPGU6FxcX8tZmIT7GBypeyuO4I03FQ4q6vb2Vt3rBsr57944IAH7IqxCuNBa6MHTSPcLOz8+HycIaklueXXUrJbhFVuHbt2/VNUWyGI/scn197Z3MUJ72In/EyRTIHEtSzAqQ/zGbXJ0DMaDPPnbivukukD8sNiP2XT0bCT/t5n6wtPGWsFkytZRSAuWX1xnoK7yUNMT7lPwxaPQa0LMy9JyAR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{SearchBox:x,BaseText:u,BaseButton:m,Icon:p},data(){return{logo:j}}},z={class:"border-b border-lineGrey w-full bg-primary m-0"},T={class:"w-full hidden md:flex"},G={class:"flex items-center justify-center w-36 h-36"},I=["src"],X={class:"flex w-full items-center border-r border-l border-lineGrey"},Z={class:"hidden lg:flex w-1/3 pl-20"},q={class:"ml-8 w-2/3 flex justify-around"},W={class:"flex items-center justify-center w-36 h-36"},M={class:"w-full flex md:hidden"},Y={class:"m-4 flex justify-between"},F=["src"];function J(t,r,o,c,l,n){const a=e.resolveComponent("SearchBox"),s=e.resolveComponent("BaseText"),i=e.resolveComponent("BaseButton"),g=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("header",z,[e.createElementVNode("section",T,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:l.logo,alt:"Logo",class:"h-14 w-18 bg-accent"},null,8,I)]),e.createElementVNode("section",X,[e.createElementVNode("div",Z,[e.createVNode(a,{class:"w-24 md:w-32 lg:w-52 xl:w-64 bg-primary"})]),e.createElementVNode("nav",q,[e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"},{default:e.withCtx(()=>r[0]||(r[0]=[e.createTextVNode("Tournaments")])),_:1}),e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"},{default:e.withCtx(()=>r[1]||(r[1]=[e.createTextVNode("Clubs")])),_:1}),e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"},{default:e.withCtx(()=>r[2]||(r[2]=[e.createTextVNode("Leaderboard")])),_:1}),e.createVNode(s,{color:"secondary",size:"md",tag:"p",weight:"normal",class:"border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"},{default:e.withCtx(()=>r[3]||(r[3]=[e.createTextVNode("Contact")])),_:1})])]),e.createElementVNode("div",W,[e.createVNode(i,{backgroundColor:"primary",border:"secondary",color:"secondary",label:"Login",size:"xs"})])]),e.createElementVNode("section",M,[e.createElementVNode("div",Y,[e.createElementVNode("img",{src:l.logo,alt:"Logo",class:"h-10 w-14"},null,8,F),e.createVNode(g,{icon:"fa-bars",color:"secondary",size:"xl",class:"absolute right-2",onClick:t.onSearch},null,8,["onClick"])])])])}const O=d(_,[["render",J]]),D={name:"HeroBanner",components:{BaseText:u,BaseButton:m},props:{imageSrc:{type:String,required:!0},title:{type:String,required:!0},description:{type:String,required:!0},buttonLabel:{type:String,required:!0}},methods:{onClick(){this.$emit("button-click")}}},H={class:"relative w-full h-3/4 flex justify-center bg-primary m-0"},K={class:"relative w-full border-b border-l border-r border-lineGrey"},L=["src"],U={class:"hidden md:flex absolute inset-0 items-center justify-start px-8"},R={class:"text-left text-white max-w-lg"},Q={class:"flex justify-center md:hidden text-left bg-primary w-full"},P={class:"w-full px-6 py-8 text-center"};function $(t,r,o,c,l,n){const a=e.resolveComponent("BaseText"),s=e.resolveComponent("BaseButton");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",H,[r[0]||(r[0]=e.createElementVNode("div",{class:"hidden md:block w-36 bg-primary"},null,-1)),e.createElementVNode("div",K,[e.createElementVNode("img",{src:o.imageSrc,alt:"Hero Image",class:"w-full h-full object-cover"},null,8,L),e.createElementVNode("section",U,[e.createElementVNode("div",R,[e.createVNode(a,{color:"secondary",tag:"h1",size:"4xl",weight:"bold",class:"mb-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(a,{color:"secondary",tag:"p",size:"lg",weight:"normal",class:"mb-6"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(s,{label:o.buttonLabel,color:"secondary",border:"gradient1",onClick:n.onClick},null,8,["label","onClick"])])])]),r[1]||(r[1]=e.createElementVNode("div",{class:"hidden md:block w-36 bg-primary"},null,-1))]),r[2]||(r[2]=e.createElementVNode("section",{class:"hidden md:flex border-t border-lineGrey w-full bg-primary"},[e.createElementVNode("div",{class:"hidden md:block w-36 bg-primary"}),e.createElementVNode("div",{class:"relative w-full border-b border-l border-r border-lineGrey h-36"}),e.createElementVNode("div",{class:"hidden md:block w-36 bg-primary"})],-1)),e.createElementVNode("section",Q,[e.createElementVNode("div",P,[e.createVNode(a,{color:"secondary",tag:"h1",size:"2xl",weight:"bold",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createVNode(a,{color:"secondary",tag:"p",size:"sm",weight:"normal",class:"mb-6"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1}),e.createVNode(s,{label:o.buttonLabel,color:"secondary",border:"gradient1",class:"w-1/2 m-auto",onClick:n.onClick},null,8,["label","onClick"])])])],64)}const ee=d(D,[["render",$]]);exports.BaseIcon=m;exports.BaseText=u;exports.Header=O;exports.HeroBanner=ee;exports.Icon=p;exports.InputField=b;exports.Searchbox=x;
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { openBlock as b, createElementBlock as x, normalizeClass as f, toDisplayString as g, createBlock as C, resolveDynamicComponent as B, withCtx as i, renderSlot as S, mergeProps as k, resolveComponent as u, createVNode as l, createElementVNode as o, createTextVNode as m, Fragment as _ } from "vue";
|
|
2
|
+
const p = (e, t) => {
|
|
3
|
+
const r = e.__vccOpts || e;
|
|
4
|
+
for (const [d, n] of t)
|
|
5
|
+
r[d] = n;
|
|
6
|
+
return r;
|
|
7
|
+
}, j = {
|
|
8
|
+
name: "BaseButton",
|
|
9
|
+
props: {
|
|
10
|
+
label: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !0
|
|
13
|
+
},
|
|
14
|
+
altText: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
color: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "primary",
|
|
21
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
22
|
+
},
|
|
23
|
+
backgroundColor: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "primary",
|
|
26
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
27
|
+
},
|
|
28
|
+
border: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "none",
|
|
31
|
+
validator: (e) => ["none", "primary", "secondary", "accent", "gradient1", "gradient2"].includes(e)
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
computed: {
|
|
35
|
+
textColorClass() {
|
|
36
|
+
return {
|
|
37
|
+
primary: "text-primary",
|
|
38
|
+
secondary: "text-secondary",
|
|
39
|
+
accent: "text-accent"
|
|
40
|
+
}[this.color] || "text-primary";
|
|
41
|
+
},
|
|
42
|
+
backgroundClass() {
|
|
43
|
+
return {
|
|
44
|
+
primary: "bg-primary hover:bg-accent",
|
|
45
|
+
secondary: "bg-secondary hover:bg-accent",
|
|
46
|
+
accent: "bg-accent hover:bg-accent"
|
|
47
|
+
}[this.backgroundColor] || "bg-primary";
|
|
48
|
+
},
|
|
49
|
+
borderClass() {
|
|
50
|
+
return {
|
|
51
|
+
none: "",
|
|
52
|
+
primary: "border border-primary",
|
|
53
|
+
secondary: "border border-secondary",
|
|
54
|
+
accent: "border border-accent",
|
|
55
|
+
gradient1: "border-gradient-rounded-1",
|
|
56
|
+
gradient2: "border-gradient-rounded-2"
|
|
57
|
+
}[this.border] || "";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, z = ["title", "aria-label"];
|
|
61
|
+
function G(e, t, r, d, n, s) {
|
|
62
|
+
return b(), x("button", {
|
|
63
|
+
class: f([
|
|
64
|
+
"px-4 py-2 rounded-md transition duration-300 ease-in-out",
|
|
65
|
+
s.textColorClass,
|
|
66
|
+
s.backgroundClass,
|
|
67
|
+
s.borderClass
|
|
68
|
+
]),
|
|
69
|
+
title: r.altText || r.label,
|
|
70
|
+
"aria-label": r.altText || r.label,
|
|
71
|
+
onClick: t[0] || (t[0] = (a) => e.$emit("click"))
|
|
72
|
+
}, g(r.label), 11, z);
|
|
73
|
+
}
|
|
74
|
+
const h = /* @__PURE__ */ p(j, [["render", G], ["__scopeId", "data-v-34e83e90"]]), V = {
|
|
75
|
+
name: "BaseText",
|
|
76
|
+
props: {
|
|
77
|
+
tag: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "p",
|
|
80
|
+
validator: (e) => ["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "div"].includes(e)
|
|
81
|
+
},
|
|
82
|
+
size: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: "md",
|
|
85
|
+
validator: (e) => ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl"].includes(e)
|
|
86
|
+
},
|
|
87
|
+
color: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "primary"
|
|
90
|
+
},
|
|
91
|
+
weight: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: "normal",
|
|
94
|
+
validator: (e) => ["light", "normal", "semibold", "bold"].includes(e)
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
computed: {
|
|
98
|
+
textClasses() {
|
|
99
|
+
const e = {
|
|
100
|
+
xs: "text-xs",
|
|
101
|
+
sm: "text-sm",
|
|
102
|
+
md: "lg:text-base",
|
|
103
|
+
lg: "text-lg",
|
|
104
|
+
xl: "text-xl",
|
|
105
|
+
"2xl": "text-2xl",
|
|
106
|
+
"3xl": "text-3xl",
|
|
107
|
+
"4xl": "text-4xl",
|
|
108
|
+
"5xl": "text-5xl"
|
|
109
|
+
}, t = {
|
|
110
|
+
light: "font-light",
|
|
111
|
+
normal: "font-normal",
|
|
112
|
+
semibold: "font-semibold",
|
|
113
|
+
bold: "font-bold"
|
|
114
|
+
};
|
|
115
|
+
return `${e[this.size]} ${t[this.weight]} text-${this.color}`;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
function X(e, t, r, d, n, s) {
|
|
120
|
+
return b(), C(B(r.tag), {
|
|
121
|
+
class: f(s.textClasses)
|
|
122
|
+
}, {
|
|
123
|
+
default: i(() => [
|
|
124
|
+
S(e.$slots, "default")
|
|
125
|
+
]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 8, ["class"]);
|
|
128
|
+
}
|
|
129
|
+
const v = /* @__PURE__ */ p(V, [["render", X]]), Z = {
|
|
130
|
+
name: "Icon",
|
|
131
|
+
props: {
|
|
132
|
+
icon: {
|
|
133
|
+
type: String,
|
|
134
|
+
required: !0
|
|
135
|
+
},
|
|
136
|
+
color: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: "primary",
|
|
139
|
+
validator: (e) => ["primary", "secondary", "accent"].includes(e)
|
|
140
|
+
},
|
|
141
|
+
size: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: "md",
|
|
144
|
+
validator: (e) => ["xs", "sm", "md", "lg", "xl", "2xl", "3xl"].includes(e)
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
computed: {
|
|
148
|
+
colorClasses() {
|
|
149
|
+
return {
|
|
150
|
+
primary: "text-primary",
|
|
151
|
+
secondary: "text-secondary",
|
|
152
|
+
accent: "text-accent"
|
|
153
|
+
}[this.color] || "text-primary";
|
|
154
|
+
},
|
|
155
|
+
sizeClasses() {
|
|
156
|
+
return {
|
|
157
|
+
xs: "text-xs",
|
|
158
|
+
sm: "text-sm",
|
|
159
|
+
md: "text-base",
|
|
160
|
+
lg: "text-lg",
|
|
161
|
+
xl: "text-xl",
|
|
162
|
+
"2xl": "text-2xl",
|
|
163
|
+
"3xl": "text-3xl"
|
|
164
|
+
}[this.size] || "text-base";
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
function I(e, t, r, d, n, s) {
|
|
169
|
+
return b(), x("i", {
|
|
170
|
+
class: f(["fas", r.icon, s.colorClasses, s.sizeClasses]),
|
|
171
|
+
onClick: t[0] || (t[0] = (a) => e.$emit("click"))
|
|
172
|
+
}, null, 2);
|
|
173
|
+
}
|
|
174
|
+
const w = /* @__PURE__ */ p(Z, [["render", I]]), N = {
|
|
175
|
+
name: "InputField",
|
|
176
|
+
props: {
|
|
177
|
+
type: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: "text"
|
|
180
|
+
},
|
|
181
|
+
placeholder: {
|
|
182
|
+
type: String,
|
|
183
|
+
default: "Search"
|
|
184
|
+
},
|
|
185
|
+
modelValue: {
|
|
186
|
+
type: String,
|
|
187
|
+
default: ""
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}, q = ["type", "placeholder"];
|
|
191
|
+
function T(e, t, r, d, n, s) {
|
|
192
|
+
return b(), x("input", k({
|
|
193
|
+
type: r.type,
|
|
194
|
+
placeholder: r.placeholder
|
|
195
|
+
}, e.$attrs, {
|
|
196
|
+
class: "bg-black text-secondary border-b-2 border-secondary focus:outline-none focus:border-accent w-full placeholder-secondary px-2 hover:border-accent duration-300 ease-in-out",
|
|
197
|
+
onInput: t[0] || (t[0] = (a) => e.$emit("update:modelValue", a.target.value))
|
|
198
|
+
}), null, 16, q);
|
|
199
|
+
}
|
|
200
|
+
const W = /* @__PURE__ */ p(N, [["render", T]]), E = {
|
|
201
|
+
name: "SearchBox",
|
|
202
|
+
components: {
|
|
203
|
+
InputField: W,
|
|
204
|
+
Icon: w
|
|
205
|
+
},
|
|
206
|
+
data() {
|
|
207
|
+
return {
|
|
208
|
+
searchQuery: ""
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
methods: {
|
|
212
|
+
onSearch() {
|
|
213
|
+
console.log("Search Query:", this.searchQuery);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}, Y = { class: "relative flex items-center w-full max-w-md" };
|
|
217
|
+
function M(e, t, r, d, n, s) {
|
|
218
|
+
const a = u("InputField"), c = u("Icon");
|
|
219
|
+
return b(), x("div", Y, [
|
|
220
|
+
l(a, {
|
|
221
|
+
modelValue: n.searchQuery,
|
|
222
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => n.searchQuery = y),
|
|
223
|
+
placeholder: "Search"
|
|
224
|
+
}, null, 8, ["modelValue"]),
|
|
225
|
+
l(c, {
|
|
226
|
+
icon: "fa-search",
|
|
227
|
+
color: "secondary",
|
|
228
|
+
size: "sm",
|
|
229
|
+
class: "absolute right-2",
|
|
230
|
+
onClick: s.onSearch
|
|
231
|
+
}, null, 8, ["onClick"])
|
|
232
|
+
]);
|
|
233
|
+
}
|
|
234
|
+
const F = /* @__PURE__ */ p(E, [["render", M]]), J = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAABwCAIAAABHB982AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAtOSURBVHhe7Z3tedQ6EEbpIB2QCkIFSQWkglBBqIBUABUEKoAKkgo2FSQVQAdUcM+DBl9fWx7Nh7zrzd3zgye7a0mWZuadkbwJb04cnMfHx9+/fz89PfHDly9f7u7uPnz4cHV1JR+f2Ahv377FTlVeXl4wm1x34uB8/PhRLLPAbrc7OzuTq08ckKJ+OqiiXH3iUCjqN+EUWAeG8gEzPDw83NzcYDa4uLjg569fvxYLDaCT0ubEQcAq9/f38uK/YDOx0h9OGrhpvn//LoY6mWrjjIvDkwBumpLJCpeXl/LuiQ0yRNXz87O8dWKbDLmK6kPeOrFNfv36hZ12u528PrFNhkTFZkveOrFBMM/Lywt2+vTpk7x1YpuU04qHhwd5vX3Ozs7QAXZ/j4+PxcsKiDgvefPHjx93d3dXV1ev6YisFH5Ufcchfaw+Zih51QiWw67S/mjBPGU6FxcX8tZmIT7GBypeyuO4I03FQ4q6vb2Vt3rBsr57944IAH7IqxCuNBa6MHTSPcLOz8+HycIaklueXXUrJbhFVuHbt2/VNUWyGI/scn197Z3MUJ72In/EyRTIHEtSzAqQ/zGbXJ0DMaDPPnbivukukD8sNiP2XT0bCT/t5n6wtPGWsFkytZRSAuWX1xnoK7yUNMT7l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Jggg==", O = {
|
|
235
|
+
name: "Header",
|
|
236
|
+
components: {
|
|
237
|
+
SearchBox: F,
|
|
238
|
+
BaseText: v,
|
|
239
|
+
BaseButton: h,
|
|
240
|
+
Icon: w
|
|
241
|
+
},
|
|
242
|
+
data() {
|
|
243
|
+
return {
|
|
244
|
+
logo: J
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
}, K = { class: "border-b border-lineGrey w-full bg-primary m-0" }, L = { class: "w-full hidden md:flex" }, D = { class: "flex items-center justify-center w-36 h-36" }, H = ["src"], U = { class: "flex w-full items-center border-r border-l border-lineGrey" }, R = { class: "hidden lg:flex w-1/3 pl-20" }, Q = { class: "ml-8 w-2/3 flex justify-around" }, P = { class: "flex items-center justify-center w-36 h-36" }, $ = { class: "w-full flex md:hidden" }, ee = { class: "m-4 flex justify-between" }, te = ["src"];
|
|
248
|
+
function re(e, t, r, d, n, s) {
|
|
249
|
+
const a = u("SearchBox"), c = u("BaseText"), y = u("BaseButton"), A = u("Icon");
|
|
250
|
+
return b(), x("header", K, [
|
|
251
|
+
o("section", L, [
|
|
252
|
+
o("div", D, [
|
|
253
|
+
o("img", {
|
|
254
|
+
src: n.logo,
|
|
255
|
+
alt: "Logo",
|
|
256
|
+
class: "h-14 w-18 bg-accent"
|
|
257
|
+
}, null, 8, H)
|
|
258
|
+
]),
|
|
259
|
+
o("section", U, [
|
|
260
|
+
o("div", R, [
|
|
261
|
+
l(a, { class: "w-24 md:w-32 lg:w-52 xl:w-64 bg-primary" })
|
|
262
|
+
]),
|
|
263
|
+
o("nav", Q, [
|
|
264
|
+
l(c, {
|
|
265
|
+
color: "secondary",
|
|
266
|
+
size: "md",
|
|
267
|
+
tag: "p",
|
|
268
|
+
weight: "normal",
|
|
269
|
+
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
270
|
+
}, {
|
|
271
|
+
default: i(() => t[0] || (t[0] = [
|
|
272
|
+
m("Tournaments")
|
|
273
|
+
])),
|
|
274
|
+
_: 1
|
|
275
|
+
}),
|
|
276
|
+
l(c, {
|
|
277
|
+
color: "secondary",
|
|
278
|
+
size: "md",
|
|
279
|
+
tag: "p",
|
|
280
|
+
weight: "normal",
|
|
281
|
+
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
282
|
+
}, {
|
|
283
|
+
default: i(() => t[1] || (t[1] = [
|
|
284
|
+
m("Clubs")
|
|
285
|
+
])),
|
|
286
|
+
_: 1
|
|
287
|
+
}),
|
|
288
|
+
l(c, {
|
|
289
|
+
color: "secondary",
|
|
290
|
+
size: "md",
|
|
291
|
+
tag: "p",
|
|
292
|
+
weight: "normal",
|
|
293
|
+
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
294
|
+
}, {
|
|
295
|
+
default: i(() => t[2] || (t[2] = [
|
|
296
|
+
m("Leaderboard")
|
|
297
|
+
])),
|
|
298
|
+
_: 1
|
|
299
|
+
}),
|
|
300
|
+
l(c, {
|
|
301
|
+
color: "secondary",
|
|
302
|
+
size: "md",
|
|
303
|
+
tag: "p",
|
|
304
|
+
weight: "normal",
|
|
305
|
+
class: "border-b-2 border-primary hover:border-accent pb-2 duration-300 ease-in-out"
|
|
306
|
+
}, {
|
|
307
|
+
default: i(() => t[3] || (t[3] = [
|
|
308
|
+
m("Contact")
|
|
309
|
+
])),
|
|
310
|
+
_: 1
|
|
311
|
+
})
|
|
312
|
+
])
|
|
313
|
+
]),
|
|
314
|
+
o("div", P, [
|
|
315
|
+
l(y, {
|
|
316
|
+
backgroundColor: "primary",
|
|
317
|
+
border: "secondary",
|
|
318
|
+
color: "secondary",
|
|
319
|
+
label: "Login",
|
|
320
|
+
size: "xs"
|
|
321
|
+
})
|
|
322
|
+
])
|
|
323
|
+
]),
|
|
324
|
+
o("section", $, [
|
|
325
|
+
o("div", ee, [
|
|
326
|
+
o("img", {
|
|
327
|
+
src: n.logo,
|
|
328
|
+
alt: "Logo",
|
|
329
|
+
class: "h-10 w-14"
|
|
330
|
+
}, null, 8, te),
|
|
331
|
+
l(A, {
|
|
332
|
+
icon: "fa-bars",
|
|
333
|
+
color: "secondary",
|
|
334
|
+
size: "xl",
|
|
335
|
+
class: "absolute right-2",
|
|
336
|
+
onClick: e.onSearch
|
|
337
|
+
}, null, 8, ["onClick"])
|
|
338
|
+
])
|
|
339
|
+
])
|
|
340
|
+
]);
|
|
341
|
+
}
|
|
342
|
+
const be = /* @__PURE__ */ p(O, [["render", re]]), oe = {
|
|
343
|
+
name: "HeroBanner",
|
|
344
|
+
components: {
|
|
345
|
+
BaseText: v,
|
|
346
|
+
BaseButton: h
|
|
347
|
+
},
|
|
348
|
+
props: {
|
|
349
|
+
imageSrc: {
|
|
350
|
+
type: String,
|
|
351
|
+
required: !0
|
|
352
|
+
},
|
|
353
|
+
title: {
|
|
354
|
+
type: String,
|
|
355
|
+
required: !0
|
|
356
|
+
},
|
|
357
|
+
description: {
|
|
358
|
+
type: String,
|
|
359
|
+
required: !0
|
|
360
|
+
},
|
|
361
|
+
buttonLabel: {
|
|
362
|
+
type: String,
|
|
363
|
+
required: !0
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
methods: {
|
|
367
|
+
onClick() {
|
|
368
|
+
this.$emit("button-click");
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}, se = { class: "relative w-full h-3/4 flex justify-center bg-primary m-0" }, le = { class: "relative w-full border-b border-l border-r border-lineGrey" }, ne = ["src"], ae = { class: "hidden md:flex absolute inset-0 items-center justify-start px-8" }, ce = { class: "text-left text-white max-w-lg" }, ie = { class: "flex justify-center md:hidden text-left bg-primary w-full" }, de = { class: "w-full px-6 py-8 text-center" };
|
|
372
|
+
function ue(e, t, r, d, n, s) {
|
|
373
|
+
const a = u("BaseText"), c = u("BaseButton");
|
|
374
|
+
return b(), x(_, null, [
|
|
375
|
+
o("section", se, [
|
|
376
|
+
t[0] || (t[0] = o("div", { class: "hidden md:block w-36 bg-primary" }, null, -1)),
|
|
377
|
+
o("div", le, [
|
|
378
|
+
o("img", {
|
|
379
|
+
src: r.imageSrc,
|
|
380
|
+
alt: "Hero Image",
|
|
381
|
+
class: "w-full h-full object-cover"
|
|
382
|
+
}, null, 8, ne),
|
|
383
|
+
o("section", ae, [
|
|
384
|
+
o("div", ce, [
|
|
385
|
+
l(a, {
|
|
386
|
+
color: "secondary",
|
|
387
|
+
tag: "h1",
|
|
388
|
+
size: "4xl",
|
|
389
|
+
weight: "bold",
|
|
390
|
+
class: "mb-4"
|
|
391
|
+
}, {
|
|
392
|
+
default: i(() => [
|
|
393
|
+
m(g(r.title), 1)
|
|
394
|
+
]),
|
|
395
|
+
_: 1
|
|
396
|
+
}),
|
|
397
|
+
l(a, {
|
|
398
|
+
color: "secondary",
|
|
399
|
+
tag: "p",
|
|
400
|
+
size: "lg",
|
|
401
|
+
weight: "normal",
|
|
402
|
+
class: "mb-6"
|
|
403
|
+
}, {
|
|
404
|
+
default: i(() => [
|
|
405
|
+
m(g(r.description), 1)
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
}),
|
|
409
|
+
l(c, {
|
|
410
|
+
label: r.buttonLabel,
|
|
411
|
+
color: "secondary",
|
|
412
|
+
border: "gradient1",
|
|
413
|
+
onClick: s.onClick
|
|
414
|
+
}, null, 8, ["label", "onClick"])
|
|
415
|
+
])
|
|
416
|
+
])
|
|
417
|
+
]),
|
|
418
|
+
t[1] || (t[1] = o("div", { class: "hidden md:block w-36 bg-primary" }, null, -1))
|
|
419
|
+
]),
|
|
420
|
+
t[2] || (t[2] = o("section", { class: "hidden md:flex border-t border-lineGrey w-full bg-primary" }, [
|
|
421
|
+
o("div", { class: "hidden md:block w-36 bg-primary" }),
|
|
422
|
+
o("div", { class: "relative w-full border-b border-l border-r border-lineGrey h-36" }),
|
|
423
|
+
o("div", { class: "hidden md:block w-36 bg-primary" })
|
|
424
|
+
], -1)),
|
|
425
|
+
o("section", ie, [
|
|
426
|
+
o("div", de, [
|
|
427
|
+
l(a, {
|
|
428
|
+
color: "secondary",
|
|
429
|
+
tag: "h1",
|
|
430
|
+
size: "2xl",
|
|
431
|
+
weight: "bold",
|
|
432
|
+
class: "mb-2"
|
|
433
|
+
}, {
|
|
434
|
+
default: i(() => [
|
|
435
|
+
m(g(r.title), 1)
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
}),
|
|
439
|
+
l(a, {
|
|
440
|
+
color: "secondary",
|
|
441
|
+
tag: "p",
|
|
442
|
+
size: "sm",
|
|
443
|
+
weight: "normal",
|
|
444
|
+
class: "mb-6"
|
|
445
|
+
}, {
|
|
446
|
+
default: i(() => [
|
|
447
|
+
m(g(r.description), 1)
|
|
448
|
+
]),
|
|
449
|
+
_: 1
|
|
450
|
+
}),
|
|
451
|
+
l(c, {
|
|
452
|
+
label: r.buttonLabel,
|
|
453
|
+
color: "secondary",
|
|
454
|
+
border: "gradient1",
|
|
455
|
+
class: "w-1/2 m-auto",
|
|
456
|
+
onClick: s.onClick
|
|
457
|
+
}, null, 8, ["label", "onClick"])
|
|
458
|
+
])
|
|
459
|
+
])
|
|
460
|
+
], 64);
|
|
461
|
+
}
|
|
462
|
+
const pe = /* @__PURE__ */ p(oe, [["render", ue]]);
|
|
463
|
+
export {
|
|
464
|
+
h as BaseIcon,
|
|
465
|
+
v as BaseText,
|
|
466
|
+
be as Header,
|
|
467
|
+
pe as HeroBanner,
|
|
468
|
+
w as Icon,
|
|
469
|
+
W as InputField,
|
|
470
|
+
F as Searchbox
|
|
471
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.border-gradient-rounded-1[data-v-34e83e90]{border:1px solid transparent;background:linear-gradient(to right,#000,#000),linear-gradient(to right,#ff7a00,#a3412a);background-clip:padding-box,border-box;background-origin:padding-box,border-box;transition:background-size .5s ease-in-out,color .5s ease-in-out}.border-gradient-rounded-1[data-v-34e83e90]:hover{background:linear-gradient(to right,#ff7a00,#ffa238);color:#fff}.border-gradient-rounded-2[data-v-34e83e90]{border:1px solid transparent;background:linear-gradient(to right,#000,#000),linear-gradient(to right,#009dff,#25e07c);background-clip:padding-box,border-box;background-origin:padding-box,border-box}.border-gradient-rounded-2[data-v-34e83e90]:hover{background:linear-gradient(to right,#009dff,#25e07c);color:#fff}
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dcrackel/meyersquaredui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.36",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/meyersquaredui.cjs.js",
|
|
7
|
+
"module": "dist/meyersquaredui.esm.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "vite",
|
|
14
|
+
"build": "npm version patch && vite build",
|
|
15
|
+
"publish:package": "npm publish",
|
|
16
|
+
"preview": "vite preview",
|
|
17
|
+
"build-storybook": "npm run build:tailwind && storybook build",
|
|
18
|
+
"build:tailwind": "tailwindcss build ./tailwind/tailwind.css -o ./dist/ui-tailwind.css",
|
|
19
|
+
"storybook": "concurrently \"npm run watch:tailwind\" \"npm run watch:storybook\"",
|
|
20
|
+
"watch:storybook": "storybook dev -p 6006",
|
|
21
|
+
"watch:tailwind": "tailwindcss build ./tailwind/tailwind.css -o ./tailwind/output.css --watch",
|
|
22
|
+
"copy:css": "copy .\\dist\\ui-tailwind.css ..\\HemaTournamentPublic\\public\\ui-tailwind.css",
|
|
23
|
+
"lint": "eslint --ext .ts,.vue .",
|
|
24
|
+
"test": "vitest",
|
|
25
|
+
"coverage": "vitest run --coverage"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"concurrently": "^9.0.1",
|
|
29
|
+
"font-awesome": "^4.7.0",
|
|
30
|
+
"version": "^0.1.2",
|
|
31
|
+
"vue": "^3.4.37"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@chromatic-com/storybook": "^2.0.2",
|
|
35
|
+
"@storybook/addon-controls": "^8.3.0",
|
|
36
|
+
"@storybook/addon-essentials": "^8.3.0",
|
|
37
|
+
"@storybook/addon-interactions": "^8.3.0",
|
|
38
|
+
"@storybook/addon-links": "^8.3.0",
|
|
39
|
+
"@storybook/addon-mdx-gfm": "^8.3.0",
|
|
40
|
+
"@storybook/addon-onboarding": "^8.3.0",
|
|
41
|
+
"@storybook/blocks": "^8.3.0",
|
|
42
|
+
"@storybook/test": "^8.3.0",
|
|
43
|
+
"@storybook/vue3": "^8.3.0",
|
|
44
|
+
"@storybook/vue3-vite": "^8.3.0",
|
|
45
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
46
|
+
"autoprefixer": "^10.4.20",
|
|
47
|
+
"postcss": "^8.4.45",
|
|
48
|
+
"storybook": "^8.3.0",
|
|
49
|
+
"tailwindcss": "^3.4.11",
|
|
50
|
+
"vite": "^5.4.1"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"story",
|
|
54
|
+
"hema",
|
|
55
|
+
"tournament",
|
|
56
|
+
"UI",
|
|
57
|
+
"vue3"
|
|
58
|
+
],
|
|
59
|
+
"author": "Meyer Squared",
|
|
60
|
+
"license": "MIT"
|
|
61
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
defineProps({
|
|
5
|
+
msg: String,
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
const count = ref(0)
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<h1>{{ msg }}</h1>
|
|
13
|
+
|
|
14
|
+
<div class="card">
|
|
15
|
+
<button type="button" @click="count++">count is {{ count }}</button>
|
|
16
|
+
<p>
|
|
17
|
+
Edit
|
|
18
|
+
<code>components/HelloWorld.vue</code> to test HMR
|
|
19
|
+
</p>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<p>
|
|
23
|
+
Check out
|
|
24
|
+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
|
25
|
+
>create-vue</a
|
|
26
|
+
>, the official Vue + Vite starter
|
|
27
|
+
</p>
|
|
28
|
+
<p>
|
|
29
|
+
Learn more about IDE Support for Vue in the
|
|
30
|
+
<a
|
|
31
|
+
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
|
|
32
|
+
target="_blank"
|
|
33
|
+
>Vue Docs Scaling up Guide</a
|
|
34
|
+
>.
|
|
35
|
+
</p>
|
|
36
|
+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<style scoped>
|
|
40
|
+
.read-the-docs {
|
|
41
|
+
color: #888;
|
|
42
|
+
}
|
|
43
|
+
</style>
|
package/src/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as BaseIcon } from './stories/Atoms/BaseButton/BaseButton.vue';
|
|
2
|
+
export { default as BaseText } from './stories/Atoms/BaseText/BaseText.vue';
|
|
3
|
+
export { default as Icon } from './stories/Atoms/Icon/Icon.vue';
|
|
4
|
+
export { default as InputField } from './stories/Atoms/InputField/InputField.vue';
|
|
5
|
+
|
|
6
|
+
export { default as Searchbox } from './stories/Molecules/Searchbox/Searchbox.vue';
|
|
7
|
+
|
|
8
|
+
export { default as Header } from './stories/Organisms/Headers/Header.vue'
|
|
9
|
+
export { default as HeroBanner } from './stories/Organisms/HeroBanners/HomePage/HeroBanner.vue'
|
|
10
|
+
|
package/src/main.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../tailwind/output.css'
|