@dronico/droni-kit 1.0.3 → 1.1.0

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 CHANGED
@@ -1,3 +1,15 @@
1
+ # [1.1.0](https://github.com/Droni-app/droni-kit/compare/v1.0.3...v1.1.0) (2025-04-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove component call ([ba7c91b](https://github.com/Droni-app/droni-kit/commit/ba7c91b4fc7ac9121b8ef0f8a867666c95ed5403))
7
+
8
+
9
+ ### Features
10
+
11
+ * scaffold ([803354d](https://github.com/Droni-app/droni-kit/commit/803354d6c0b62338966ba7a6e61cd46e2a199afe))
12
+
1
13
  ## [1.0.3](https://github.com/Droni-app/droni-kit/compare/v1.0.2...v1.0.3) (2025-04-15)
2
14
 
3
15
 
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
2
  export default _default;
package/dist/droni-kit.js CHANGED
@@ -1,75 +1,17 @@
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",
1
+ import { defineComponent as n, createElementBlock as o, openBlock as p, toDisplayString as r } from "vue";
2
+ const a = { type: "button" }, s = /* @__PURE__ */ n({
3
+ __name: "DuiButton",
4
4
  props: {
5
- label: {},
6
- primary: { type: Boolean, default: !1 },
7
- size: {},
8
- backgroundColor: {}
5
+ label: {
6
+ type: String,
7
+ default: "Kalvin"
8
+ }
9
9
  },
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));
28
- }
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
- }))
67
- ])
68
- ])
69
- ]));
10
+ setup(t) {
11
+ const e = t;
12
+ return (c, i) => (p(), o("button", a, r(e.label), 1));
70
13
  }
71
14
  });
72
15
  export {
73
- i as ButtonEspecial,
74
- w as HeaderEspecial
16
+ s as DuiButton
75
17
  };
@@ -1 +1 @@
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"})});
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["droni-kit"]={},t.Vue))})(this,function(t,e){"use strict";const n={type:"button"},o=e.defineComponent({__name:"DuiButton",props:{label:{type:String,default:"Kalvin"}},setup(i){const u=i;return(p,s)=>(e.openBlock(),e.createElementBlock("button",n,e.toDisplayString(u.label),1))}});t.DuiButton=o,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import { default as ButtonEspecial } from './stories/Button.vue';
2
- import { default as HeaderEspecial } from './stories/Header.vue';
3
- export { ButtonEspecial, HeaderEspecial };
1
+ import { default as DuiButton } from './stories/Forms/DuiButton.vue';
2
+ export { DuiButton };
@@ -0,0 +1,22 @@
1
+ import { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ label: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ label: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>> & Readonly<{}>, {
15
+ label: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
17
+ tags: string[];
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+ export declare const Primary: Story;
22
+ export declare const Secondary: Story;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ label: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ label: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ label: string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
14
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dronico/droni-kit",
3
3
  "author": "Gustavo Barragan <dev@droni.co>",
4
- "version": "1.0.3",
4
+ "version": "1.1.0",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {
@@ -1,5 +0,0 @@
1
- type __VLS_Props = {
2
- msg: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
- export default _default;
@@ -1 +0,0 @@
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}
@@ -1,42 +0,0 @@
1
- import { StoryObj } from '@storybook/vue3';
2
- declare const meta: {
3
- title: string;
4
- component: import('vue').DefineComponent<{
5
- label: string;
6
- primary?: boolean;
7
- size?: "small" | "medium" | "large";
8
- backgroundColor?: string;
9
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
- click: (id: number) => any;
11
- }, string, import('vue').PublicProps, Readonly<{
12
- label: string;
13
- primary?: boolean;
14
- size?: "small" | "medium" | "large";
15
- backgroundColor?: string;
16
- }> & Readonly<{
17
- onClick?: ((id: number) => any) | undefined;
18
- }>, {
19
- primary: boolean;
20
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
21
- tags: string[];
22
- argTypes: {
23
- size: {
24
- control: "select";
25
- options: string[];
26
- };
27
- backgroundColor: {
28
- control: "color";
29
- };
30
- };
31
- args: {
32
- primary: false;
33
- onClick: import('@vitest/spy').Mock<(...args: any[]) => any>;
34
- };
35
- };
36
- export default meta;
37
- type Story = StoryObj<typeof meta>;
38
- export declare const Primary: Story;
39
- export declare const Secondary: Story;
40
- export declare const Large: Story;
41
- export declare const Small: Story;
42
- export declare const Select: Story;
@@ -1,26 +0,0 @@
1
- type __VLS_Props = {
2
- /**
3
- * The label of the button
4
- */
5
- label: string;
6
- /**
7
- * primary or secondary button
8
- */
9
- primary?: boolean;
10
- /**
11
- * size of the button
12
- */
13
- size?: 'small' | 'medium' | 'large';
14
- /**
15
- * background color of the button
16
- */
17
- backgroundColor?: string;
18
- };
19
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- click: (id: number) => any;
21
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- onClick?: ((id: number) => any) | undefined;
23
- }>, {
24
- primary: boolean;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
26
- export default _default;
@@ -1,19 +0,0 @@
1
- import { StoryObj } from '@storybook/vue3';
2
- declare const meta: {
3
- title: string;
4
- component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
5
- render: () => {
6
- components: {
7
- MyPage: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
8
- };
9
- template: string;
10
- };
11
- parameters: {
12
- layout: string;
13
- };
14
- tags: string[];
15
- };
16
- export default meta;
17
- type Story = StoryObj<typeof meta>;
18
- export declare const LoggedIn: Story;
19
- export declare const LoggedOut: Story;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
2
- export default _default;