@dronico/droni-kit 1.0.1 → 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.
Files changed (130) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/droni-kit.css +1 -1
  3. package/dist/droni-kit.js +70 -71
  4. package/dist/droni-kit.umd.cjs +1 -1
  5. package/dist/index.d.ts +3 -0
  6. package/package.json +6 -1
  7. package/.github/workflows/release.yml +0 -28
  8. package/.storybook/main.ts +0 -19
  9. package/.storybook/preview.ts +0 -14
  10. package/.storybook/vitest.setup.ts +0 -9
  11. package/.vscode/extensions.json +0 -3
  12. package/index.html +0 -13
  13. package/public/vite.svg +0 -1
  14. package/release.config.ts +0 -23
  15. package/src/App.vue +0 -30
  16. package/src/assets/vue.svg +0 -1
  17. package/src/components/HelloWorld.vue +0 -41
  18. package/src/main.ts +0 -5
  19. package/src/stories/Button.stories.ts +0 -63
  20. package/src/stories/Button.vue +0 -48
  21. package/src/stories/Configure.mdx +0 -364
  22. package/src/stories/Header.stories.ts +0 -48
  23. package/src/stories/Header.vue +0 -37
  24. package/src/stories/Page.stories.ts +0 -38
  25. package/src/stories/Page.vue +0 -73
  26. package/src/stories/assets/accessibility.png +0 -0
  27. package/src/stories/assets/accessibility.svg +0 -1
  28. package/src/stories/assets/addon-library.png +0 -0
  29. package/src/stories/assets/assets.png +0 -0
  30. package/src/stories/assets/avif-test-image.avif +0 -0
  31. package/src/stories/assets/context.png +0 -0
  32. package/src/stories/assets/discord.svg +0 -1
  33. package/src/stories/assets/docs.png +0 -0
  34. package/src/stories/assets/figma-plugin.png +0 -0
  35. package/src/stories/assets/github.svg +0 -1
  36. package/src/stories/assets/share.png +0 -0
  37. package/src/stories/assets/styling.png +0 -0
  38. package/src/stories/assets/testing.png +0 -0
  39. package/src/stories/assets/theming.png +0 -0
  40. package/src/stories/assets/tutorials.svg +0 -1
  41. package/src/stories/assets/youtube.svg +0 -1
  42. package/src/stories/button.css +0 -30
  43. package/src/stories/header.css +0 -32
  44. package/src/stories/page.css +0 -68
  45. package/src/style.css +0 -79
  46. package/src/vite-env.d.ts +0 -1
  47. package/storybook-static/App.vue.d.ts +0 -2
  48. package/storybook-static/assets/Button-B2efaGtC.css +0 -1
  49. package/storybook-static/assets/Button-CoYrOF_8.js +0 -1
  50. package/storybook-static/assets/Button.stories-X_0VSq8O.js +0 -26
  51. package/storybook-static/assets/Color-YHDXOIA2-DLeC5Hg8.js +0 -1
  52. package/storybook-static/assets/Configure-bVvReBib.js +0 -165
  53. package/storybook-static/assets/DocsRenderer-CFRXHY34-DfQH6b5n.js +0 -26
  54. package/storybook-static/assets/Header-3jNfoSF5.js +0 -1
  55. package/storybook-static/assets/Header-Ck-SSN7O.css +0 -1
  56. package/storybook-static/assets/Header.stories-DKH58MAE.js +0 -11
  57. package/storybook-static/assets/Page-CeeQJVdd.css +0 -1
  58. package/storybook-static/assets/Page.stories-C8t25IEs.js +0 -17
  59. package/storybook-static/assets/accessibility-W_h2acOZ.png +0 -0
  60. package/storybook-static/assets/addon-library-BWUCAmyN.png +0 -0
  61. package/storybook-static/assets/context-C0qIqeS4.png +0 -0
  62. package/storybook-static/assets/docs---vsFbMi.png +0 -0
  63. package/storybook-static/assets/entry-preview-CZIIErml.js +0 -1
  64. package/storybook-static/assets/entry-preview-docs-VgQ3afV1.js +0 -16
  65. package/storybook-static/assets/figma-plugin-CH2hELiO.png +0 -0
  66. package/storybook-static/assets/iframe-Ck6AF3FG.js +0 -211
  67. package/storybook-static/assets/index-BDOojamX.js +0 -240
  68. package/storybook-static/assets/index-Bx-go_-4.js +0 -8
  69. package/storybook-static/assets/index-C8GcTUhO.js +0 -1
  70. package/storybook-static/assets/index-DCUO3UO8.js +0 -599
  71. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  72. package/storybook-static/assets/preview-B8lJiyuQ.js +0 -34
  73. package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
  74. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  75. package/storybook-static/assets/preview-Bej7FSAj.js +0 -1
  76. package/storybook-static/assets/preview-CIRcjyVj.js +0 -1
  77. package/storybook-static/assets/preview-CvbIS5ZJ.js +0 -1
  78. package/storybook-static/assets/preview-CyK-uEc4.js +0 -2
  79. package/storybook-static/assets/preview-DD_OYowb.js +0 -1
  80. package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
  81. package/storybook-static/assets/share-DGA-UcQf.png +0 -0
  82. package/storybook-static/assets/styling-Bk6zjRzU.png +0 -0
  83. package/storybook-static/assets/testing-cbzR9l9r.png +0 -0
  84. package/storybook-static/assets/theming-D6WJLNoW.png +0 -0
  85. package/storybook-static/assets/vue.esm-bundler-DJJpJwIm.js +0 -36
  86. package/storybook-static/components/HelloWorld.vue.d.ts +0 -5
  87. package/storybook-static/favicon.svg +0 -1
  88. package/storybook-static/iframe.html +0 -666
  89. package/storybook-static/index.html +0 -181
  90. package/storybook-static/index.json +0 -1
  91. package/storybook-static/main.d.ts +0 -0
  92. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  93. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  94. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  95. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  96. package/storybook-static/project.json +0 -1
  97. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -331
  98. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -51
  99. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  100. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
  101. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -402
  102. package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +0 -242
  103. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
  104. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
  105. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
  106. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
  107. package/storybook-static/sb-addons/onboarding-9/manager-bundle.js +0 -127
  108. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  109. package/storybook-static/sb-addons/storybook-experimental-addon-test-11/manager-bundle.js +0 -223
  110. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  111. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  112. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  113. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  114. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  115. package/storybook-static/sb-manager/globals-module-info.js +0 -1051
  116. package/storybook-static/sb-manager/globals-runtime.js +0 -41591
  117. package/storybook-static/sb-manager/globals.js +0 -48
  118. package/storybook-static/sb-manager/runtime.js +0 -12048
  119. package/storybook-static/stories/Button.stories.d.ts +0 -42
  120. package/storybook-static/stories/Button.vue.d.ts +0 -26
  121. package/storybook-static/stories/Header.stories.d.ts +0 -59
  122. package/storybook-static/stories/Header.vue.d.ts +0 -15
  123. package/storybook-static/stories/Page.stories.d.ts +0 -19
  124. package/storybook-static/stories/Page.vue.d.ts +0 -2
  125. package/storybook-static/vite.svg +0 -1
  126. package/tsconfig.app.json +0 -14
  127. package/tsconfig.json +0 -7
  128. package/tsconfig.node.json +0 -24
  129. package/vite.config.ts +0 -28
  130. package/vitest.workspace.ts +0 -32
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ ## [1.0.2](https://github.com/Droni-app/droni-kit/compare/v1.0.1...v1.0.2) (2025-04-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * uploaded files ([6212ae4](https://github.com/Droni-app/droni-kit/commit/6212ae48837846f7619b5669bc51f5edab2944db))
14
+
1
15
  ## [1.0.1](https://github.com/Droni-app/droni-kit/compare/v1.0.0...v1.0.1) (2025-04-15)
2
16
 
3
17
 
@@ -1 +1 @@
1
- :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.read-the-docs[data-v-cc337d8c]{color:#888}.logo[data-v-48d00746]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-48d00746]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-48d00746]:hover{filter:drop-shadow(0 0 2em #42b883aa)}
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 i, ref as g, createElementBlock as p, openBlock as u, Fragment as c, createElementVNode as t, toDisplayString as a, createTextVNode as l, createVNode as m, createApp as v } from "vue";
2
- const h = "/vite.svg", _ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e", f = { class: "card" }, k = /* @__PURE__ */ i({
3
- __name: "HelloWorld",
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
- msg: {}
5
+ label: {},
6
+ primary: { type: Boolean, default: !1 },
7
+ size: {},
8
+ backgroundColor: {}
6
9
  },
7
- setup(n) {
8
- const s = g(0);
9
- return (o, e) => (u(), p(c, null, [
10
- t("h1", null, a(o.msg), 1),
11
- t("div", f, [
12
- t("button", {
13
- type: "button",
14
- onClick: e[0] || (e[0] = (r) => s.value++)
15
- }, "count is " + a(s.value), 1),
16
- e[1] || (e[1] = t("p", null, [
17
- l(" Edit "),
18
- t("code", null, "components/HelloWorld.vue"),
19
- l(" to test HMR ")
20
- ], -1))
21
- ]),
22
- e[2] || (e[2] = t("p", null, [
23
- l(" Check out "),
24
- t("a", {
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
- }), d = (n, s) => {
42
- const o = n.__vccOpts || n;
43
- for (const [e, r] of s)
44
- o[e] = r;
45
- return o;
46
- }, V = /* @__PURE__ */ d(k, [["__scopeId", "data-v-cc337d8c"]]), L = /* @__PURE__ */ i({
47
- __name: "App",
48
- setup(n) {
49
- return (s, o) => (u(), p(c, null, [
50
- o[0] || (o[0] = t("div", null, [
51
- t("a", {
52
- href: "https://vite.dev",
53
- target: "_blank"
54
- }, [
55
- t("img", {
56
- src: h,
57
- class: "logo",
58
- alt: "Vite logo"
59
- })
60
- ]),
61
- t("a", {
62
- href: "https://vuejs.org/",
63
- target: "_blank"
64
- }, [
65
- t("img", {
66
- src: _,
67
- class: "logo vue",
68
- alt: "Vue logo"
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
- ], -1)),
72
- m(V, { msg: "Vite + Vue" })
73
- ], 64));
68
+ ])
69
+ ]));
74
70
  }
75
- }), w = /* @__PURE__ */ d(L, [["__scopeId", "data-v-48d00746"]]);
76
- v(w).mount("#app");
71
+ });
72
+ export {
73
+ i as ButtonEspecial,
74
+ w as HeaderEspecial
75
+ };
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.Vue))})(this,function(e){"use strict";const n="/vite.svg",i="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e",c={class:"card"},d=e.defineComponent({__name:"HelloWorld",props:{msg:{}},setup(r){const l=e.ref(0);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",null,e.toDisplayString(o.msg),1),e.createElementVNode("div",c,[e.createElementVNode("button",{type:"button",onClick:t[0]||(t[0]=s=>l.value++)},"count is "+e.toDisplayString(l.value),1),t[1]||(t[1]=e.createElementVNode("p",null,[e.createTextVNode(" Edit "),e.createElementVNode("code",null,"components/HelloWorld.vue"),e.createTextVNode(" to test HMR ")],-1))]),t[2]||(t[2]=e.createElementVNode("p",null,[e.createTextVNode(" Check out "),e.createElementVNode("a",{href:"https://vuejs.org/guide/quick-start.html#local",target:"_blank"},"create-vue"),e.createTextVNode(", the official Vue + Vite starter ")],-1)),t[3]||(t[3]=e.createElementVNode("p",null,[e.createTextVNode(" Learn more about IDE Support for Vue in the "),e.createElementVNode("a",{href:"https://vuejs.org/guide/scaling-up/tooling.html#ide-support",target:"_blank"},"Vue Docs Scaling up Guide"),e.createTextVNode(". ")],-1)),t[4]||(t[4]=e.createElementVNode("p",{class:"read-the-docs"},"Click on the Vite and Vue logos to learn more",-1))],64))}}),a=(r,l)=>{const o=r.__vccOpts||r;for(const[t,s]of l)o[t]=s;return o},p=a(d,[["__scopeId","data-v-cc337d8c"]]),m=a(e.defineComponent({__name:"App",setup(r){return(l,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o[0]||(o[0]=e.createElementVNode("div",null,[e.createElementVNode("a",{href:"https://vite.dev",target:"_blank"},[e.createElementVNode("img",{src:n,class:"logo",alt:"Vite logo"})]),e.createElementVNode("a",{href:"https://vuejs.org/",target:"_blank"},[e.createElementVNode("img",{src:i,class:"logo vue",alt:"Vue logo"})])],-1)),e.createVNode(p,{msg:"Vite + Vue"})],64))}}),[["__scopeId","data-v-48d00746"]]);e.createApp(m).mount("#app")});
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"})});
@@ -0,0 +1,3 @@
1
+ import { default as ButtonEspecial } from './stories/Button.vue';
2
+ import { default as HeaderEspecial } from './stories/Header.vue';
3
+ export { ButtonEspecial, HeaderEspecial };
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@dronico/droni-kit",
3
3
  "author": "Gustavo Barragan <dev@droni.co>",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "CHANGELOG.md"
14
+ ],
10
15
  "type": "module",
11
16
  "main": "dist/droni-kit.umd.js",
12
17
  "module": "dist/droni-kit.js",
@@ -1,28 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - beta
8
-
9
- permissions:
10
- contents: write
11
- issues: write
12
- pull-requests: write
13
-
14
- jobs:
15
- release:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: actions/setup-node@v4
20
- with:
21
- node-version: '22'
22
- - run: npm i
23
- - run: npm run build
24
- - name: Release
25
- env:
26
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28
- run: npm run release
@@ -1,19 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/vue3-vite';
2
-
3
- const config: StorybookConfig = {
4
- "stories": [
5
- "../src/**/*.mdx",
6
- "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
7
- ],
8
- "addons": [
9
- "@storybook/addon-essentials",
10
- "@storybook/addon-onboarding",
11
- "@chromatic-com/storybook",
12
- "@storybook/experimental-addon-test"
13
- ],
14
- "framework": {
15
- "name": "@storybook/vue3-vite",
16
- "options": {}
17
- }
18
- };
19
- export default config;
@@ -1,14 +0,0 @@
1
- import type { Preview } from '@storybook/vue3'
2
-
3
- const preview: Preview = {
4
- parameters: {
5
- controls: {
6
- matchers: {
7
- color: /(background|color)$/i,
8
- date: /Date$/i,
9
- },
10
- },
11
- },
12
- };
13
-
14
- export default preview;
@@ -1,9 +0,0 @@
1
- import { beforeAll } from 'vitest';
2
- import { setProjectAnnotations } from '@storybook/vue3';
3
- import * as projectAnnotations from './preview';
4
-
5
- // This is an important step to apply the right configuration when testing your stories.
6
- // More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
7
- const project = setProjectAnnotations([projectAnnotations]);
8
-
9
- beforeAll(project.beforeAll);
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar"]
3
- }
package/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + Vue + TS</title>
8
- </head>
9
- <body>
10
- <div id="app"></div>
11
- <script type="module" src="/src/main.ts"></script>
12
- </body>
13
- </html>
package/public/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/release.config.ts DELETED
@@ -1,23 +0,0 @@
1
- // release.config.ts
2
- export default {
3
- branches: ['main', { name: 'beta', prerelease: true }],
4
- plugins: [
5
- "@semantic-release/commit-analyzer",
6
- "@semantic-release/release-notes-generator",
7
- [
8
- "@semantic-release/changelog",
9
- {
10
- changelogFile: "CHANGELOG.md",
11
- },
12
- ],
13
- "@semantic-release/npm",
14
- [
15
- "@semantic-release/git",
16
- {
17
- assets: ["package.json", "CHANGELOG.md"],
18
- message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
19
- },
20
- ],
21
- "@semantic-release/github",
22
- ],
23
- };
package/src/App.vue DELETED
@@ -1,30 +0,0 @@
1
- <script setup lang="ts">
2
- import HelloWorld from './components/HelloWorld.vue'
3
- </script>
4
-
5
- <template>
6
- <div>
7
- <a href="https://vite.dev" target="_blank">
8
- <img src="/vite.svg" class="logo" alt="Vite logo" />
9
- </a>
10
- <a href="https://vuejs.org/" target="_blank">
11
- <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
12
- </a>
13
- </div>
14
- <HelloWorld msg="Vite + Vue" />
15
- </template>
16
-
17
- <style scoped>
18
- .logo {
19
- height: 6em;
20
- padding: 1.5em;
21
- will-change: filter;
22
- transition: filter 300ms;
23
- }
24
- .logo:hover {
25
- filter: drop-shadow(0 0 2em #646cffaa);
26
- }
27
- .logo.vue:hover {
28
- filter: drop-shadow(0 0 2em #42b883aa);
29
- }
30
- </style>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
@@ -1,41 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from 'vue'
3
-
4
- defineProps<{ msg: string }>()
5
-
6
- const count = ref(0)
7
- </script>
8
-
9
- <template>
10
- <h1>{{ msg }}</h1>
11
-
12
- <div class="card">
13
- <button type="button" @click="count++">count is {{ count }}</button>
14
- <p>
15
- Edit
16
- <code>components/HelloWorld.vue</code> to test HMR
17
- </p>
18
- </div>
19
-
20
- <p>
21
- Check out
22
- <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
23
- >create-vue</a
24
- >, the official Vue + Vite starter
25
- </p>
26
- <p>
27
- Learn more about IDE Support for Vue in the
28
- <a
29
- href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
30
- target="_blank"
31
- >Vue Docs Scaling up Guide</a
32
- >.
33
- </p>
34
- <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
35
- </template>
36
-
37
- <style scoped>
38
- .read-the-docs {
39
- color: #888;
40
- }
41
- </style>
package/src/main.ts DELETED
@@ -1,5 +0,0 @@
1
- import { createApp } from 'vue'
2
- import './style.css'
3
- import App from './App.vue'
4
-
5
- createApp(App).mount('#app')
@@ -1,63 +0,0 @@
1
- import { fn } from '@storybook/test';
2
- import type { Meta, StoryObj } from '@storybook/vue3';
3
-
4
- import Button from './Button.vue';
5
-
6
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
7
- const meta = {
8
- title: 'Example/Button',
9
- component: Button,
10
- // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
11
- tags: ['autodocs'],
12
- argTypes: {
13
- size: { control: 'select', options: ['small', 'medium', 'large'] },
14
- backgroundColor: { control: 'color' },
15
- },
16
- args: {
17
- primary: false,
18
- // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
19
- onClick: fn(),
20
- },
21
- } satisfies Meta<typeof Button>;
22
-
23
- export default meta;
24
- type Story = StoryObj<typeof meta>;
25
- /*
26
- *👇 Render functions are a framework specific feature to allow you control on how the component renders.
27
- * See https://storybook.js.org/docs/api/csf
28
- * to learn how to use render functions.
29
- */
30
- export const Primary: Story = {
31
- args: {
32
- primary: false,
33
- label: 'Button',
34
- },
35
- };
36
-
37
- export const Secondary: Story = {
38
- args: {
39
- primary: false,
40
- label: 'Button',
41
- },
42
- };
43
-
44
- export const Large: Story = {
45
- args: {
46
- label: 'Button',
47
- size: 'large',
48
- },
49
- };
50
-
51
- export const Small: Story = {
52
- args: {
53
- label: 'Button',
54
- size: 'small',
55
- },
56
- };
57
-
58
- export const Select: Story = {
59
- args: {
60
- primary: true,
61
- label: "Button"
62
- }
63
- };
@@ -1,48 +0,0 @@
1
- <template>
2
- <button type="button" :class="classes" @click="onClick" :style="style">{{ label }} </button>
3
- </template>
4
-
5
- <script lang="ts" setup>
6
- import './button.css';
7
- import { computed } from 'vue';
8
-
9
- const props = withDefaults(defineProps<{
10
- /**
11
- * The label of the button
12
- */
13
- label: string,
14
- /**
15
- * primary or secondary button
16
- */
17
- primary?: boolean,
18
- /**
19
- * size of the button
20
- */
21
- size?: 'small' | 'medium' | 'large',
22
- /**
23
- * background color of the button
24
- */
25
- backgroundColor?: string,
26
-
27
- }>(), { primary: false });
28
-
29
- const emit = defineEmits<{
30
- (e: 'click', id: number): void;
31
- }>();
32
-
33
- const classes = computed(() => ({
34
- 'storybook-button': true,
35
- 'storybook-button--primary': props.primary,
36
- 'storybook-button--secondary': !props.primary,
37
- [`storybook-button--${props.size || 'medium'}`]: true,
38
- }));
39
-
40
- const style = computed(() => ({
41
- backgroundColor: props.backgroundColor
42
- }));
43
-
44
- const onClick = () => {
45
- emit("click", 1)
46
- };
47
-
48
- </script>