@dronico/droni-kit 1.0.2 → 1.0.3
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/CHANGELOG.md +7 -0
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.js +70 -71
- package/dist/droni-kit.umd.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.0.3](https://github.com/Droni-app/droni-kit/compare/v1.0.2...v1.0.3) (2025-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* index file ([eea1072](https://github.com/Droni-app/droni-kit/commit/eea1072638a19026818ff6d6d6a1a33334ab1d24))
|
|
7
|
+
|
|
1
8
|
## [1.0.2](https://github.com/Droni-app/droni-kit/compare/v1.0.1...v1.0.2) (2025-04-15)
|
|
2
9
|
|
|
3
10
|
|
package/dist/droni-kit.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.storybook-button{display:inline-block;cursor:pointer;border:0;border-radius:3em;font-weight:700;line-height:1;font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif}.storybook-button--primary{background-color:#555ab9;color:#fff}.storybook-button--secondary{box-shadow:#00000026 0 0 0 1px inset;background-color:transparent;color:#333}.storybook-button--small{padding:10px 16px;font-size:12px}.storybook-button--medium{padding:11px 20px;font-size:14px}.storybook-button--large{padding:12px 24px;font-size:16px}.storybook-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(0,0,0,.1);padding:15px 20px;font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif}.storybook-header svg{display:inline-block;vertical-align:top}.storybook-header h1{display:inline-block;vertical-align:top;margin:6px 0 6px 10px;font-weight:700;font-size:20px;line-height:1}.storybook-header button+button{margin-left:10px}.storybook-header .welcome{margin-right:10px;color:#333;font-size:14px}
|
package/dist/droni-kit.js
CHANGED
|
@@ -1,76 +1,75 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
__name: "
|
|
1
|
+
import { defineComponent as d, computed as m, createElementBlock as a, openBlock as t, normalizeStyle as g, normalizeClass as z, toDisplayString as c, createElementVNode as s, createStaticVNode as f, createCommentVNode as r, createBlock as n, createTextVNode as p } from "vue";
|
|
2
|
+
const i = /* @__PURE__ */ d({
|
|
3
|
+
__name: "Button",
|
|
4
4
|
props: {
|
|
5
|
-
|
|
5
|
+
label: {},
|
|
6
|
+
primary: { type: Boolean, default: !1 },
|
|
7
|
+
size: {},
|
|
8
|
+
backgroundColor: {}
|
|
6
9
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
href: "https://vuejs.org/guide/quick-start.html#local",
|
|
26
|
-
target: "_blank"
|
|
27
|
-
}, "create-vue"),
|
|
28
|
-
l(", the official Vue + Vite starter ")
|
|
29
|
-
], -1)),
|
|
30
|
-
e[3] || (e[3] = t("p", null, [
|
|
31
|
-
l(" Learn more about IDE Support for Vue in the "),
|
|
32
|
-
t("a", {
|
|
33
|
-
href: "https://vuejs.org/guide/scaling-up/tooling.html#ide-support",
|
|
34
|
-
target: "_blank"
|
|
35
|
-
}, "Vue Docs Scaling up Guide"),
|
|
36
|
-
l(". ")
|
|
37
|
-
], -1)),
|
|
38
|
-
e[4] || (e[4] = t("p", { class: "read-the-docs" }, "Click on the Vite and Vue logos to learn more", -1))
|
|
39
|
-
], 64));
|
|
10
|
+
emits: ["click"],
|
|
11
|
+
setup(u, { emit: o }) {
|
|
12
|
+
const e = u, l = o, k = m(() => ({
|
|
13
|
+
"storybook-button": !0,
|
|
14
|
+
"storybook-button--primary": e.primary,
|
|
15
|
+
"storybook-button--secondary": !e.primary,
|
|
16
|
+
[`storybook-button--${e.size || "medium"}`]: !0
|
|
17
|
+
})), y = m(() => ({
|
|
18
|
+
backgroundColor: e.backgroundColor
|
|
19
|
+
})), b = () => {
|
|
20
|
+
l("click", 1);
|
|
21
|
+
};
|
|
22
|
+
return (v, $) => (t(), a("button", {
|
|
23
|
+
type: "button",
|
|
24
|
+
class: z(k.value),
|
|
25
|
+
onClick: b,
|
|
26
|
+
style: g(y.value)
|
|
27
|
+
}, c(v.label), 7));
|
|
40
28
|
}
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
t("
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
29
|
+
}), C = { class: "storybook-header" }, B = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "welcome"
|
|
32
|
+
}, w = /* @__PURE__ */ d({
|
|
33
|
+
__name: "Header",
|
|
34
|
+
props: {
|
|
35
|
+
user: {}
|
|
36
|
+
},
|
|
37
|
+
emits: ["createAccount", "login", "logout"],
|
|
38
|
+
setup(u) {
|
|
39
|
+
return (o, e) => (t(), a("header", null, [
|
|
40
|
+
s("div", C, [
|
|
41
|
+
e[5] || (e[5] = f('<div><svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z" fill="#FFF"></path><path d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z" fill="#555AB9"></path><path d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z" fill="#91BAF8"></path></g></svg><h1>Acme</h1></div>', 1)),
|
|
42
|
+
s("div", null, [
|
|
43
|
+
o.user ? (t(), a("span", B, [
|
|
44
|
+
e[3] || (e[3] = p("Welcome, ")),
|
|
45
|
+
s("b", null, c(o.user.name), 1),
|
|
46
|
+
e[4] || (e[4] = p("!"))
|
|
47
|
+
])) : r("", !0),
|
|
48
|
+
o.user ? (t(), n(i, {
|
|
49
|
+
key: 1,
|
|
50
|
+
size: "small",
|
|
51
|
+
onClick: e[0] || (e[0] = (l) => o.$emit("logout")),
|
|
52
|
+
label: "Log out"
|
|
53
|
+
})) : r("", !0),
|
|
54
|
+
o.user ? r("", !0) : (t(), n(i, {
|
|
55
|
+
key: 2,
|
|
56
|
+
size: "small",
|
|
57
|
+
onClick: e[1] || (e[1] = (l) => o.$emit("login")),
|
|
58
|
+
label: "Log in"
|
|
59
|
+
})),
|
|
60
|
+
o.user ? r("", !0) : (t(), n(i, {
|
|
61
|
+
key: 3,
|
|
62
|
+
primary: "",
|
|
63
|
+
size: "small",
|
|
64
|
+
onClick: e[2] || (e[2] = (l) => o.$emit("createAccount")),
|
|
65
|
+
label: "Sign up"
|
|
66
|
+
}))
|
|
70
67
|
])
|
|
71
|
-
]
|
|
72
|
-
|
|
73
|
-
], 64));
|
|
68
|
+
])
|
|
69
|
+
]));
|
|
74
70
|
}
|
|
75
|
-
})
|
|
76
|
-
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
i as ButtonEspecial,
|
|
74
|
+
w as HeaderEspecial
|
|
75
|
+
};
|
package/dist/droni-kit.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e
|
|
1
|
+
(function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l["droni-kit"]={},l.Vue))})(this,function(l,e){"use strict";const n=e.defineComponent({__name:"Button",props:{label:{},primary:{type:Boolean,default:!1},size:{},backgroundColor:{}},emits:["click"],setup(i,{emit:t}){const o=i,r=t,d=e.computed(()=>({"storybook-button":!0,"storybook-button--primary":o.primary,"storybook-button--secondary":!o.primary,[`storybook-button--${o.size||"medium"}`]:!0})),c=e.computed(()=>({backgroundColor:o.backgroundColor})),p=()=>{r("click",1)};return(k,u)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(d.value),onClick:p,style:e.normalizeStyle(c.value)},e.toDisplayString(k.label),7))}}),s={class:"storybook-header"},a={key:0,class:"welcome"},m=e.defineComponent({__name:"Header",props:{user:{}},emits:["createAccount","login","logout"],setup(i){return(t,o)=>(e.openBlock(),e.createElementBlock("header",null,[e.createElementVNode("div",s,[o[5]||(o[5]=e.createStaticVNode('<div><svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z" fill="#FFF"></path><path d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z" fill="#555AB9"></path><path d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z" fill="#91BAF8"></path></g></svg><h1>Acme</h1></div>',1)),e.createElementVNode("div",null,[t.user?(e.openBlock(),e.createElementBlock("span",a,[o[3]||(o[3]=e.createTextVNode("Welcome, ")),e.createElementVNode("b",null,e.toDisplayString(t.user.name),1),o[4]||(o[4]=e.createTextVNode("!"))])):e.createCommentVNode("",!0),t.user?(e.openBlock(),e.createBlock(n,{key:1,size:"small",onClick:o[0]||(o[0]=r=>t.$emit("logout")),label:"Log out"})):e.createCommentVNode("",!0),t.user?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:2,size:"small",onClick:o[1]||(o[1]=r=>t.$emit("login")),label:"Log in"})),t.user?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:3,primary:"",size:"small",onClick:o[2]||(o[2]=r=>t.$emit("createAccount")),label:"Sign up"}))])])]))}});l.ButtonEspecial=n,l.HeaderEspecial=m,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.d.ts
ADDED