adverich-kun-ui 0.1.5 → 0.1.7

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/kun-ui.es.js CHANGED
@@ -38,6 +38,6 @@ const d = ["aria-label", "disabled"], f = {
38
38
  }
39
39
  };
40
40
  export {
41
- f as Button,
41
+ f as KunBtn,
42
42
  p as default
43
43
  };
@@ -1 +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.KunUI={},t.Vue))})(this,function(t,e){"use strict";const o=["aria-label","disabled"],l={__name:"KunBtn",props:{text:{type:String,default:null},class:{type:String,default:"px-4 py-2 text-sm font-medium bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:ring-blue-300"},ariaLabel:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(n){const a=n,s=e.computed(()=>a.class);return(u,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(["flex justify-center items-center transition-all duration-200",[s.value,n.disabled?"opacity-50 cursor-not-allowed":"hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-offset-2"]]),"aria-label":n.ariaLabel,disabled:n.disabled},[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],10,o))}},i={install(n){n.component("KunBtn",l)}};t.Button=l,t.default=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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.KunUI={},t.Vue))})(this,function(t,e){"use strict";const o=["aria-label","disabled"],l={__name:"KunBtn",props:{text:{type:String,default:null},class:{type:String,default:"px-4 py-2 text-sm font-medium bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:ring-blue-300"},ariaLabel:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(n){const a=n,s=e.computed(()=>a.class);return(u,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(["flex justify-center items-center transition-all duration-200",[s.value,n.disabled?"opacity-50 cursor-not-allowed":"hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-offset-2"]]),"aria-label":n.ariaLabel,disabled:n.disabled},[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],10,o))}},i={install(n){n.component("KunBtn",l)}};t.KunBtn=l,t.default=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/kun-ui.umd.js",
@@ -8,22 +8,24 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
- "dependencies": {
12
- "vue": "^3.5.13"
11
+ "scripts": {
12
+ "dev": "vite",
13
+ "build": "vite build",
14
+ "preview": "vite preview"
13
15
  },
14
16
  "devDependencies": {
15
- "@tailwindcss/postcss": "^4.0.10",
17
+ "@tailwindcss/vite": "^4.1.6",
16
18
  "@vitejs/plugin-vue": "^5.2.1",
17
19
  "autoprefixer": "^10.4.20",
18
- "postcss": "^8.5.3",
19
20
  "prettier": "^3.5.3",
20
21
  "prettier-plugin-tailwindcss": "^0.6.11",
21
- "tailwindcss": "^4.0.10",
22
- "vite": "^6.2.0"
22
+ "vite": "^6.2.4"
23
23
  },
24
24
  "peerDependencies": {
25
- "vue": "^3.0.0",
26
- "tailwindcss": "^4.0.0"
25
+ "@iconify/json": "^2.2.337",
26
+ "@iconify/tailwind": "^1.2.0",
27
+ "tailwindcss": "^4.1.6",
28
+ "vue": "^3.5.13"
27
29
  },
28
30
  "keywords": [
29
31
  "vue",
@@ -36,9 +38,16 @@
36
38
  "type": "git",
37
39
  "url": "https://github.com/adverich/KunUi.git"
38
40
  },
39
- "scripts": {
40
- "dev": "vite",
41
- "build": "vite build",
42
- "preview": "vite preview"
43
- }
44
- }
41
+ "exports": {
42
+ ".": {
43
+ "import": "./dist/kun-ui.es.js",
44
+ "require": "./dist/kun-ui.umd.js"
45
+ }
46
+ },
47
+ "engines": {
48
+ "node": ">=18.0.0"
49
+ },
50
+ "sideEffects": [
51
+ "*.css"
52
+ ]
53
+ }