@omniaz/vue-component-library 0.0.1

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.
@@ -0,0 +1,40 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ path: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ w: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ h: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ size: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: number;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ path: {
20
+ type: StringConstructor;
21
+ required: true;
22
+ };
23
+ w: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ h: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: {
32
+ type: (StringConstructor | NumberConstructor)[];
33
+ default: number;
34
+ };
35
+ }>>, {
36
+ size: string | number;
37
+ w: string;
38
+ h: string;
39
+ }, {}>;
40
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import OmzIcon from './UI/OmzIcon.vue';
2
+ export { OmzIcon };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as o, computed as c, openBlock as n, createElementBlock as i, normalizeClass as l, createElementVNode as r } from "vue";
2
+ const a = ["width", "height"], h = ["d"], p = /* @__PURE__ */ o({
3
+ __name: "OmzIcon",
4
+ props: {
5
+ path: {
6
+ type: String,
7
+ required: !0
8
+ },
9
+ w: {
10
+ type: String,
11
+ default: "w-6"
12
+ },
13
+ h: {
14
+ type: String,
15
+ default: "h-6"
16
+ },
17
+ size: {
18
+ type: [String, Number],
19
+ default: 16
20
+ }
21
+ },
22
+ setup(e) {
23
+ const t = e, s = c(() => `inline-flex justify-center items-center ${t.w} ${t.h}`);
24
+ return (u, d) => (n(), i("span", {
25
+ class: l(s.value)
26
+ }, [
27
+ (n(), i("svg", {
28
+ viewBox: "0 0 24 24",
29
+ width: e.size,
30
+ height: e.size,
31
+ class: "inline-block"
32
+ }, [
33
+ r("path", {
34
+ fill: "currentColor",
35
+ d: e.path
36
+ }, null, 8, h)
37
+ ], 8, a))
38
+ ], 2));
39
+ }
40
+ });
41
+ export {
42
+ p as OmzIcon
43
+ };
@@ -0,0 +1 @@
1
+ (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["@omniaz/vue-component-library"]={},t.Vue))})(this,function(t,e){"use strict";const o=["width","height"],s=["d"],c=e.defineComponent({__name:"OmzIcon",props:{path:{type:String,required:!0},w:{type:String,default:"w-6"},h:{type:String,default:"h-6"},size:{type:[String,Number],default:16}},setup(n){const i=n,l=e.computed(()=>`inline-flex justify-center items-center ${i.w} ${i.h}`);return(r,d)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(l.value)},[(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 24 24",width:n.size,height:n.size,class:"inline-block"},[e.createElementVNode("path",{fill:"currentColor",d:n.path},null,8,s)],8,o))],2))}});t.OmzIcon=c,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@omniaz/vue-component-library",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "main": "dist/vue-component-library.umd.js",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build && npm run build:types",
9
+ "build:types": "vue-tsc --project tsconfig.types.json --declaration --emitDeclarationOnly --outDir dist/types ",
10
+ "typecheck": "vue-tsc --project tsconfig.types.json --noEmit"
11
+ },
12
+ "keywords": [],
13
+ "author": "pawel@omniaz.io",
14
+ "license": "ISC",
15
+ "peerDependencies": {
16
+ "vue": "^3.3.4"
17
+ },
18
+ "devDependencies": {
19
+ "@babel/types": "^7.22.5",
20
+ "@tsconfig/node18": "^2.0.1",
21
+ "@types/node": "^20.3.2",
22
+ "@vitejs/plugin-vue": "^4.2.3",
23
+ "@vue/tsconfig": "^0.4.0",
24
+ "sass": "^1.63.6",
25
+ "typescript": "^5.1.3",
26
+ "vite": "^4.3.9",
27
+ "vue": "^3.3.4",
28
+ "vue-tsc": "^1.8.2"
29
+ },
30
+ "files": ["dist"],
31
+ "module": "dist/vue-component-library.es.js",
32
+ "types": "dist/types/index.d.ts"
33
+ }