nemesischart 0.1.2 → 0.1.4
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/nemesischart.css +1 -0
- package/dist/nemesischart.es.js +36 -40
- package/dist/nemesischart.umd.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.bg-black{background:#000}.bg-transparent{background:none}.nc-btn-todos[data-v-c2fe5a43]{display:inline-flex;align-items:center;gap:.3rem;background:transparent;border:none;box-shadow:none;padding:0;cursor:pointer;font-weight:500;font-family:inherit;font-size:inherit}.nc-btn-todos[data-v-c2fe5a43]:focus{outline:none}
|
package/dist/nemesischart.es.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
1
|
+
import { computed as m, openBlock as d, createElementBlock as g, normalizeClass as o, createElementVNode as a, toDisplayString as c, createTextVNode as p, createCommentVNode as b } from "vue";
|
|
2
|
+
const x = (t, n) => {
|
|
3
|
+
const l = t.__vccOpts || t;
|
|
4
|
+
for (const [s, r] of n)
|
|
5
|
+
l[s] = r;
|
|
6
|
+
return l;
|
|
7
|
+
}, h = {
|
|
3
8
|
class: "m-0 text-sm min-w-max",
|
|
4
9
|
style: { color: "#7B7B7B" }
|
|
5
|
-
},
|
|
10
|
+
}, f = {
|
|
6
11
|
__name: "Cards",
|
|
7
12
|
props: {
|
|
8
13
|
cor: {
|
|
@@ -28,48 +33,39 @@ const h = {
|
|
|
28
33
|
}
|
|
29
34
|
},
|
|
30
35
|
emits: ["click"],
|
|
31
|
-
setup(t, { emit:
|
|
32
|
-
const
|
|
36
|
+
setup(t, { emit: n }) {
|
|
37
|
+
const l = t, s = {
|
|
33
38
|
light: "bg-white",
|
|
34
39
|
dark: "bg-black",
|
|
35
40
|
transparent: "bg-transparent"
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
return (f, y) => {
|
|
40
|
-
const m = p("Button");
|
|
41
|
-
return n(), u("div", {
|
|
42
|
-
class: a([e.value, "border-1 surface-border border-round-xl flex flex-column w-full transition-linear transition-all transition-duration-200 select-none", e.value === "bg-black" ? "hover:bg-black-alpha-90" : "hover:bg-white-alpha-70"]),
|
|
43
|
-
style: { padding: "1.25rem", gap: "1.438rem" }
|
|
44
|
-
}, [
|
|
45
|
-
o("p", {
|
|
46
|
-
class: a(["m-0 text-xs font-medium", e.value === "bg-black" ? "text-white" : "text-gray-900"])
|
|
47
|
-
}, l(t.titulo), 3),
|
|
48
|
-
o("div", null, [
|
|
49
|
-
o("h2", {
|
|
50
|
-
class: a(["m-0 text-3xl font-semibold", e.value === "bg-black" ? "text-white" : "text-gray-900"]),
|
|
51
|
-
style: { "line-height": "36px", "letter-spacing": "-1px" }
|
|
52
|
-
}, l(t.valor), 3),
|
|
53
|
-
o("p", h, l(t.descricao), 1)
|
|
54
|
-
]),
|
|
55
|
-
t.botao_todos ? (n(), b(m, {
|
|
56
|
-
key: 0,
|
|
57
|
-
text: "",
|
|
58
|
-
label: "Ver Todos",
|
|
59
|
-
onClick: d,
|
|
60
|
-
icon: "pi pi-angle-right text-xs",
|
|
61
|
-
iconPos: "right",
|
|
62
|
-
severity: "contrast",
|
|
63
|
-
class: a(["text-xs p-0 w-max", e.value === "bg-black" ? "text-white" : "text-gray-900"]),
|
|
64
|
-
pt: {
|
|
65
|
-
root: { style: "background: transparent !important; box-shadow: none !important; gap:0.3rem" },
|
|
66
|
-
label: { class: "font-medium" }
|
|
67
|
-
}
|
|
68
|
-
}, null, 8, ["class"])) : x("", !0)
|
|
69
|
-
], 2);
|
|
41
|
+
}, r = n, e = m(() => s[l.cor] ?? "bg-white"), u = () => {
|
|
42
|
+
r("click");
|
|
70
43
|
};
|
|
44
|
+
return (v, i) => (d(), g("div", {
|
|
45
|
+
class: o([e.value, "border-1 surface-border border-round-xl flex flex-column w-full transition-linear transition-all transition-duration-200 select-none", e.value === "bg-black" ? "hover:bg-black-alpha-90" : "hover:bg-white-alpha-70"]),
|
|
46
|
+
style: { padding: "1.25rem", gap: "1.438rem" }
|
|
47
|
+
}, [
|
|
48
|
+
a("p", {
|
|
49
|
+
class: o(["m-0 text-xs font-medium", e.value === "bg-black" ? "text-white" : "text-gray-900"])
|
|
50
|
+
}, c(t.titulo), 3),
|
|
51
|
+
a("div", null, [
|
|
52
|
+
a("h2", {
|
|
53
|
+
class: o(["m-0 text-3xl font-semibold", e.value === "bg-black" ? "text-white" : "text-gray-900"]),
|
|
54
|
+
style: { "line-height": "36px", "letter-spacing": "-1px" }
|
|
55
|
+
}, c(t.valor), 3),
|
|
56
|
+
a("p", h, c(t.descricao), 1)
|
|
57
|
+
]),
|
|
58
|
+
t.botao_todos ? (d(), g("button", {
|
|
59
|
+
key: 0,
|
|
60
|
+
onClick: u,
|
|
61
|
+
class: o(["nc-btn-todos text-xs", e.value === "bg-black" ? "text-white" : "text-gray-900"])
|
|
62
|
+
}, [...i[0] || (i[0] = [
|
|
63
|
+
p(" Ver Todos ", -1),
|
|
64
|
+
a("i", { class: "pi pi-angle-right text-xs" }, null, -1)
|
|
65
|
+
])], 2)) : b("", !0)
|
|
66
|
+
], 2));
|
|
71
67
|
}
|
|
72
|
-
}, C = {
|
|
68
|
+
}, k = /* @__PURE__ */ x(f, [["__scopeId", "data-v-c2fe5a43"]]), C = {
|
|
73
69
|
install(t) {
|
|
74
70
|
t.component("NemesisCards", k);
|
|
75
71
|
}
|
package/dist/nemesischart.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,
|
|
1
|
+
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.NemesisChart={},a.Vue))})(this,(function(a,e){"use strict";const d=(t,l)=>{const o=t.__vccOpts||t;for(const[s,i]of l)o[s]=i;return o},m={class:"m-0 text-sm min-w-max",style:{color:"#7B7B7B"}},r=d({__name:"Cards",props:{cor:{type:String,default:"light",validator:t=>["light","dark","transparent"].includes(t)},titulo:{type:String,default:"Card Title"},valor:{type:String,default:"0"},descricao:{type:String,default:"This is a card component. You can add any content here."},botao_todos:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:l}){const o=t,s={light:"bg-white",dark:"bg-black",transparent:"bg-transparent"},i=l,n=e.computed(()=>s[o.cor]??"bg-white"),g=()=>{i("click")};return(b,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.value,"border-1 surface-border border-round-xl flex flex-column w-full transition-linear transition-all transition-duration-200 select-none",n.value==="bg-black"?"hover:bg-black-alpha-90":"hover:bg-white-alpha-70"]),style:{padding:"1.25rem",gap:"1.438rem"}},[e.createElementVNode("p",{class:e.normalizeClass(["m-0 text-xs font-medium",n.value==="bg-black"?"text-white":"text-gray-900"])},e.toDisplayString(t.titulo),3),e.createElementVNode("div",null,[e.createElementVNode("h2",{class:e.normalizeClass(["m-0 text-3xl font-semibold",n.value==="bg-black"?"text-white":"text-gray-900"]),style:{"line-height":"36px","letter-spacing":"-1px"}},e.toDisplayString(t.valor),3),e.createElementVNode("p",m,e.toDisplayString(t.descricao),1)]),t.botao_todos?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:g,class:e.normalizeClass(["nc-btn-todos text-xs",n.value==="bg-black"?"text-white":"text-gray-900"])},[...c[0]||(c[0]=[e.createTextVNode(" Ver Todos ",-1),e.createElementVNode("i",{class:"pi pi-angle-right text-xs"},null,-1)])],2)):e.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-c2fe5a43"]]),p={install(t){t.component("NemesisCards",r)}};a.Cards=r,a.default=p,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nemesischart",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Vue 3 component library for dashboard cards and charts.",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
".": {
|
|
23
23
|
"import": "./dist/nemesischart.es.js",
|
|
24
24
|
"require": "./dist/nemesischart.umd.js"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./dist/nemesischart.css": "./dist/nemesischart.css"
|
|
26
27
|
},
|
|
27
28
|
"types": "./types/index.d.ts",
|
|
28
29
|
"scripts": {
|