@alternative-campus/uikit
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,1 +0,5 @@ | ||
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.CampusUiKit={},n.Vue))})(this,function(n,e){"use strict";const s=((t,o)=>{const c=t.__vccOpts||t;for(const[l,a]of o)c[l]=a;return c})(e.defineComponent({__name:"label-component",props:{color:{type:String,required:!1,default:"blue"},bg:{type:String,required:!1,default:"rgba(7, 56, 244, 0.1)"}},setup(t){e.useCssVars(l=>({"1b40b56e":t.bg,"1e2979ac":c.value}));const o=t,c=e.computed(()=>`${o.color}`);return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.$style.label)},[e.renderSlot(l.$slots,"default")],2))}}),[["__cssModules",{$style:{label:"_label_1bwv6_1"}}]]);s.install=t=>{t.component(s.__name,s)};const r=[s],i={install:t=>{r.forEach(o=>{t.component(o.__name,o)})}};n.Label=s,n.default=i,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(s,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(s=typeof globalThis<"u"?globalThis:s||self,t(s.CampusUiKit={},s.Vue))})(this,function(s,t){"use strict";const M=t.defineComponent({__name:"label-component",props:{color:{type:String,required:!1,default:"blue"},bg:{type:String,required:!1,default:"rgba(7, 56, 244, 0.1)"}},setup(e){t.useCssVars(n=>({"1b40b56e":e.bg,"1e2979ac":l.value}));const o=e,l=t.computed(()=>`${o.color}`);return(n,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.label)},[t.renderSlot(n.$slots,"default")],2))}}),N={label:"_label_1bwv6_1"},h=(e,o)=>{const l=e.__vccOpts||e;for(const[n,r]of o)l[n]=r;return l},u=h(M,[["__cssModules",{$style:N}]]);u.install=e=>{e.component(u.__name,u)};/*! | ||
* vue-router v4.2.5 | ||
* (c) 2023 Eduardo San Martin Morote | ||
* @license MIT | ||
*/const j=typeof window<"u",z=()=>{},_=Array.isArray;function C(e,o){return(e.aliasOf||e)===(o.aliasOf||o)}function L(e,o){if(Object.keys(e).length!==Object.keys(o).length)return!1;for(const l in e)if(!R(e[l],o[l]))return!1;return!0}function R(e,o){return _(e)?k(e,o):_(o)?k(o,e):e===o}function k(e,o){return _(o)?e.length===o.length&&e.every((l,n)=>l===o[n]):e.length===1&&e[0]===o}var v;(function(e){e.pop="pop",e.push="push"})(v||(v={}));var E;(function(e){e.back="back",e.forward="forward",e.unknown=""})(E||(E={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var $;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})($||($={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const O=Symbol(process.env.NODE_ENV!=="production"?"router":""),D=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function V(e){const o=t.inject(O),l=t.inject(D),n=t.computed(()=>o.resolve(t.unref(e.to))),r=t.computed(()=>{const{matched:a}=n.value,{length:i}=a,g=a[i-1],p=l.matched;if(!g||!p.length)return-1;const y=p.findIndex(C.bind(null,g));if(y>-1)return y;const A=B(a[i-2]);return i>1&&B(g)===A&&p[p.length-1].path!==A?p.findIndex(C.bind(null,a[i-2])):y}),c=t.computed(()=>r.value>-1&&I(l.params,n.value.params)),m=t.computed(()=>r.value>-1&&r.value===l.matched.length-1&&L(l.params,n.value.params));function W(a={}){return x(a)?o[t.unref(e.replace)?"replace":"push"](t.unref(e.to)).catch(z):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&j){const a=t.getCurrentInstance();if(a){const i={route:n.value,isActive:c.value,isExactActive:m.value};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(i),t.watchEffect(()=>{i.route=n.value,i.isActive=c.value,i.isExactActive=m.value},{flush:"post"})}}return{route:n,href:t.computed(()=>n.value.href),isActive:c,isExactActive:m,navigate:W}}const P=t.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:V,setup(e,{slots:o}){const l=t.reactive(V(e)),{options:n}=t.inject(O),r=t.computed(()=>({[S(e.activeClass,n.linkActiveClass,"router-link-active")]:l.isActive,[S(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:l.isExactActive}));return()=>{const c=o.default&&o.default(l);return e.custom?c:t.h("a",{"aria-current":l.isExactActive?e.ariaCurrentValue:null,href:l.href,onClick:l.navigate,class:r.value},c)}}});function x(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const o=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(o))return}return e.preventDefault&&e.preventDefault(),!0}}function I(e,o){for(const l in o){const n=o[l],r=e[l];if(typeof n=="string"){if(n!==r)return!1}else if(!_(r)||r.length!==n.length||n.some((c,m)=>c!==r[m]))return!1}return!0}function B(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const S=(e,o,l)=>e??o??l,d=h(t.defineComponent({__name:"Button",props:{type:{default:"primary"},href:{}},setup(e){const o=e;return(l,n)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.href?t.unref(P):"button"),{class:t.normalizeClass([l.$style.button,l.$style[o.type]]),to:l.href},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default")]),_:3},8,["class","to"]))}}),[["__cssModules",{$style:{button:"_button_1ha62_2",primary:"_primary_1ha62_25",blue:"_blue_1ha62_41",highOpacity:"_highOpacity_1ha62_57",gradient:"_gradient_1ha62_77",reject:"_reject_1ha62_97",outline:"_outline_1ha62_113",textBlue:"_textBlue_1ha62_123"}}]]);var w=(e=>(e.Primary="primary",e.Secondary="secondary",e.Blue="blue",e.HighOpacity="highOpacity",e.Gradient="gradient",e.Reject="reject",e.Outline="outline",e.TextBlue="textBlue",e.TextWhite="textWhite",e))(w||{});d.install=e=>{e.component(d.__name,d)};var b=(e=>(e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e))(b||{});const K=[t.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",{id:"check"},[t.createElementVNode("path",{id:"Union",d:"M8.11058 14C8.00623 14 7.90531 13.9819 7.80783 13.9458C7.71035 13.9102 7.61599 13.8505 7.52476 13.7667L4.22445 10.7353C4.06823 10.5918 3.99356 10.4095 4.00043 10.1885C4.00668 9.967 4.08792 9.78447 4.24414 9.64098C4.40036 9.49749 4.59563 9.42574 4.82996 9.42574C5.06429 9.42574 5.25957 9.49749 5.41579 9.64098L8.14995 12.1524L14.6137 6.21524C14.7699 6.07175 14.9618 6 15.1892 6C15.4173 6 15.6095 6.07175 15.7657 6.21524C15.9219 6.35873 16 6.53523 16 6.74473C16 6.95365 15.9219 7.12986 15.7657 7.27335L8.69641 13.7667C8.60517 13.8505 8.51082 13.9102 8.41334 13.9458C8.31585 13.9819 8.21494 14 8.11058 14Z",fill:"white"})])],-1)],q={key:0},T=["value","checked"],G=t.defineComponent({__name:"CheckBox",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isSmall:{type:Boolean,default:!1},labelPosition:{default:b.RIGHT},rounded:{type:Boolean,default:!1}},setup(e){const o=e,l=t.computed(()=>!!o.modelValue);return(n,r)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass([n.$style.label,n.$style[n.labelPosition]])},[t.createElementVNode("span",{class:t.normalizeClass([n.$style.container,n.isSmall?n.$style.small:n.$style.big,l.value&&n.$style.activeContainer,n.rounded&&n.$style.rounded])},K,2),n.label?(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(n.label),1)):t.createCommentVNode("",!0),t.createElementVNode("input",t.mergeProps({type:"checkbox",onChange:r[0]||(r[0]=c=>n.$emit("update:modelValue",c.target.checked))},n.$attrs,{value:n.modelValue,checked:n.modelValue}),null,16,T)],2))}}),f=h(G,[["__cssModules",{$style:{label:"_label_1bocz_1",container:"_container_1bocz_24",activeContainer:"_activeContainer_1bocz_37",big:"_big_1bocz_41",small:"_small_1bocz_46",rounded:"_rounded_1bocz_51",top:"_top_1bocz_55",right:"_right_1bocz_59",bottom:"_bottom_1bocz_63",left:"_left_1bocz_67"}}]]);f.install=e=>{e.component(f.__name,f)};const H=[u,d,f],U={install:e=>{H.forEach(o=>{e.component(o.__name,o)})}};s.Button=d,s.ButtonType=w,s.CheckBox=f,s.Label=u,s.LabelPosition=b,s.default=U,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
import Label from "./Label"; | ||
import { ButtonType } from "./Button"; | ||
import Button from "./Button"; | ||
import { LabelPosition } from "./CheckBox"; | ||
import CheckBox from "./CheckBox"; | ||
import { App } from 'vue'; | ||
export { Label }; | ||
export { Label, Button, ButtonType, CheckBox, LabelPosition }; | ||
declare const _default: { | ||
@@ -5,0 +9,0 @@ install: (App: App<any>) => void; |
{ | ||
"name": "@alternative-campus/uikit", | ||
"private": false, | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"keywords": [ | ||
@@ -12,3 +12,4 @@ "campus-uikit" | ||
"preview": "vite preview", | ||
"generate:types": "vue-tsc --outdir ./lib" | ||
"generate:types": "vue-tsc --outdir ./lib", | ||
"publish": "npm publish --access=public" | ||
}, | ||
@@ -40,13 +41,15 @@ "files": [ | ||
"dependencies": { | ||
"vue": "^3.4.15" | ||
"vue": "^3.4.15", | ||
"vue-router": "^4.2.5" | ||
}, | ||
"devDependencies": { | ||
"@vitejs/plugin-vue": "^5.0.3", | ||
"path": "^0.12.7", | ||
"vite-plugin-dts": "^3.7.2", | ||
"@vitejs/plugin-vue": "^5.0.3", | ||
"sass": "^1.71.0", | ||
"typescript": "^5.2.2", | ||
"vite": "^5.1.0", | ||
"vite-plugin-dts": "^3.7.2", | ||
"vite-svg-loader": "^5.1.0", | ||
"vue-tsc": "^1.8.27" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
28056
15
513
2
8
14
1
+ Addedvue-router@^4.2.5
+ Added@vue/devtools-api@6.6.4(transitive)
+ Addedvue-router@4.5.0(transitive)