@dronico/droni-kit 1.1.0 → 1.1.2

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,19 @@
1
+ ## [1.1.2](https://github.com/Droni-app/droni-kit/compare/v1.1.1...v1.1.2) (2025-04-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * copilot help ([21ba3c2](https://github.com/Droni-app/droni-kit/commit/21ba3c22868ea19f12ff2f011c959980f23db102))
7
+ * options button ([6733ad6](https://github.com/Droni-app/droni-kit/commit/6733ad64a4e3d7df4793589290c11bb8fae4ba23))
8
+
9
+ ## [1.1.1](https://github.com/Droni-app/droni-kit/compare/v1.1.0...v1.1.1) (2025-04-16)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add taildwind ([3761618](https://github.com/Droni-app/droni-kit/commit/376161812924da91549b3d1eb7682194707c3a8e))
15
+ * button tailwind ([4b20ca7](https://github.com/Droni-app/droni-kit/commit/4b20ca7772dba2c05f30b2d61b5f340b528e9ee3))
16
+
1
17
  # [1.1.0](https://github.com/Droni-app/droni-kit/compare/v1.0.3...v1.1.0) (2025-04-16)
2
18
 
3
19
 
package/dist/droni-kit.js CHANGED
@@ -1,17 +1,107 @@
1
- import { defineComponent as n, createElementBlock as o, openBlock as p, toDisplayString as r } from "vue";
2
- const a = { type: "button" }, s = /* @__PURE__ */ n({
1
+ import { defineComponent as m, computed as h, createElementBlock as n, openBlock as o, normalizeClass as l, createCommentVNode as a, renderSlot as x } from "vue";
2
+ const p = ["type", "disabled"], v = {
3
+ key: 0,
4
+ class: "animate-spin mr-2 h-4 w-4 border-2 border-t-transparent rounded-full border-white"
5
+ }, k = "inline-flex items-center justify-center font-medium transition rounded-2xl focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed", S = /* @__PURE__ */ m({
3
6
  __name: "DuiButton",
4
7
  props: {
5
- label: {
8
+ variant: {
6
9
  type: String,
7
- default: "Kalvin"
10
+ default: "solid",
11
+ validator: (e) => ["solid", "outline", "ghost", "link"].includes(e)
12
+ },
13
+ color: {
14
+ type: String,
15
+ default: "primary",
16
+ validator: (e) => ["primary", "secondary", "danger", "success", "warning", "info"].includes(e)
17
+ },
18
+ size: {
19
+ type: String,
20
+ default: "md"
21
+ },
22
+ type: {
23
+ type: String,
24
+ default: "button"
25
+ },
26
+ disabled: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ loading: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ block: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ iconLeft: {
39
+ type: String,
40
+ // Puedes usar un nombre de ícono o un componente en otro enfoque
41
+ default: null
42
+ },
43
+ iconRight: {
44
+ type: String,
45
+ default: null
46
+ },
47
+ customClass: {
48
+ type: String,
49
+ default: ""
8
50
  }
9
51
  },
10
- setup(t) {
11
- const e = t;
12
- return (c, i) => (p(), o("button", a, r(e.label), 1));
52
+ emits: ["click"],
53
+ setup(e, { emit: d }) {
54
+ const t = e, u = d, c = {
55
+ sm: "text-sm px-3 py-1.5",
56
+ md: "text-base px-4 py-2",
57
+ lg: "text-lg px-5 py-3"
58
+ }, g = {
59
+ solid: {
60
+ primary: "bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500",
61
+ secondary: "bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500",
62
+ danger: "bg-red-600 text-white hover:bg-red-700 focus:ring-red-500"
63
+ },
64
+ outline: {
65
+ primary: "border border-blue-600 text-blue-600 hover:bg-blue-50 focus:ring-blue-500",
66
+ secondary: "border border-gray-600 text-gray-600 hover:bg-gray-50 focus:ring-gray-500",
67
+ danger: "border border-red-600 text-red-600 hover:bg-red-50 focus:ring-red-500"
68
+ },
69
+ ghost: {
70
+ primary: "text-blue-600 hover:bg-blue-50 focus:ring-blue-500",
71
+ secondary: "text-gray-600 hover:bg-gray-50 focus:ring-gray-500",
72
+ danger: "text-red-600 hover:bg-red-50 focus:ring-red-500"
73
+ },
74
+ link: {
75
+ primary: "text-blue-600 underline hover:text-blue-800",
76
+ secondary: "text-gray-600 underline hover:text-gray-800",
77
+ danger: "text-red-600 underline hover:text-red-800"
78
+ }
79
+ }, y = h(() => {
80
+ var s;
81
+ const r = ((s = g[t.variant]) == null ? void 0 : s[t.color]) || "", i = c[t.size] || "", f = t.block ? "w-full" : "";
82
+ return [k, r, i, f, t.customClass].join(" ");
83
+ }), b = (r) => {
84
+ !t.disabled && !t.loading && u("click", r);
85
+ };
86
+ return (r, i) => (o(), n("button", {
87
+ type: e.type,
88
+ class: l(y.value),
89
+ disabled: e.disabled || e.loading,
90
+ onClick: b
91
+ }, [
92
+ e.loading ? (o(), n("span", v)) : a("", !0),
93
+ e.iconLeft && !e.loading ? (o(), n("span", {
94
+ key: 1,
95
+ class: l(["mr-2", e.iconLeft])
96
+ }, null, 2)) : a("", !0),
97
+ x(r.$slots, "default"),
98
+ e.iconRight && !e.loading ? (o(), n("span", {
99
+ key: 2,
100
+ class: l(["ml-2", e.iconRight])
101
+ }, null, 2)) : a("", !0)
102
+ ], 10, p));
13
103
  }
14
104
  });
15
105
  export {
16
- s as DuiButton
106
+ S as DuiButton
17
107
  };
@@ -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["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"})});
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["droni-kit"]={},n.Vue))})(this,function(n,e){"use strict";const a=["type","disabled"],s={key:0,class:"animate-spin mr-2 h-4 w-4 border-2 border-t-transparent rounded-full border-white"},d="inline-flex items-center justify-center font-medium transition rounded-2xl focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",c=e.defineComponent({__name:"DuiButton",props:{variant:{type:String,default:"solid",validator:t=>["solid","outline","ghost","link"].includes(t)},color:{type:String,default:"primary",validator:t=>["primary","secondary","danger","success","warning","info"].includes(t)},size:{type:String,default:"md"},type:{type:String,default:"button"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},block:{type:Boolean,default:!1},iconLeft:{type:String,default:null},iconRight:{type:String,default:null},customClass:{type:String,default:""}},emits:["click"],setup(t,{emit:u}){const o=t,g=u,f={sm:"text-sm px-3 py-1.5",md:"text-base px-4 py-2",lg:"text-lg px-5 py-3"},y={solid:{primary:"bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500",danger:"bg-red-600 text-white hover:bg-red-700 focus:ring-red-500"},outline:{primary:"border border-blue-600 text-blue-600 hover:bg-blue-50 focus:ring-blue-500",secondary:"border border-gray-600 text-gray-600 hover:bg-gray-50 focus:ring-gray-500",danger:"border border-red-600 text-red-600 hover:bg-red-50 focus:ring-red-500"},ghost:{primary:"text-blue-600 hover:bg-blue-50 focus:ring-blue-500",secondary:"text-gray-600 hover:bg-gray-50 focus:ring-gray-500",danger:"text-red-600 hover:bg-red-50 focus:ring-red-500"},link:{primary:"text-blue-600 underline hover:text-blue-800",secondary:"text-gray-600 underline hover:text-gray-800",danger:"text-red-600 underline hover:text-red-800"}},b=e.computed(()=>{var i;const r=((i=y[o.variant])==null?void 0:i[o.color])||"",l=f[o.size]||"",p=o.block?"w-full":"";return[d,r,l,p,o.customClass].join(" ")}),m=r=>{!o.disabled&&!o.loading&&g("click",r)};return(r,l)=>(e.openBlock(),e.createElementBlock("button",{type:t.type,class:e.normalizeClass(b.value),disabled:t.disabled||t.loading,onClick:m},[t.loading?(e.openBlock(),e.createElementBlock("span",s)):e.createCommentVNode("",!0),t.iconLeft&&!t.loading?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["mr-2",t.iconLeft])},null,2)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default"),t.iconRight&&!t.loading?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["ml-2",t.iconRight])},null,2)):e.createCommentVNode("",!0)],10,a))}});n.DuiButton=c,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
@@ -1,20 +1,219 @@
1
1
  import { StoryObj } from '@storybook/vue3';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
- label: {
4
+ component: {
5
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
6
+ variant: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ validator: (value: string) => boolean;
10
+ };
11
+ color: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ validator: (value: string) => boolean;
15
+ };
16
+ size: {
17
+ type: () => "sm" | "md" | "lg";
18
+ default: string;
19
+ };
20
+ type: {
21
+ type: () => "button" | "submit" | "reset";
22
+ default: string;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ loading: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ block: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ iconLeft: {
37
+ type: StringConstructor;
38
+ default: null;
39
+ };
40
+ iconRight: {
41
+ type: StringConstructor;
42
+ default: null;
43
+ };
44
+ customClass: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ }>> & Readonly<{
49
+ onClick?: ((...args: any[]) => any) | undefined;
50
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ click: (...args: any[]) => void;
52
+ }, import('vue').PublicProps, {
53
+ variant: string;
54
+ color: string;
55
+ size: "sm" | "md" | "lg";
56
+ type: "button" | "submit" | "reset";
57
+ disabled: boolean;
58
+ loading: boolean;
59
+ block: boolean;
60
+ iconLeft: string;
61
+ iconRight: string;
62
+ customClass: string;
63
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
64
+ P: {};
65
+ B: {};
66
+ D: {};
67
+ C: {};
68
+ M: {};
69
+ Defaults: {};
70
+ }, Readonly<import('vue').ExtractPropTypes<{
71
+ variant: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ validator: (value: string) => boolean;
75
+ };
76
+ color: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ validator: (value: string) => boolean;
80
+ };
81
+ size: {
82
+ type: () => "sm" | "md" | "lg";
83
+ default: string;
84
+ };
85
+ type: {
86
+ type: () => "button" | "submit" | "reset";
87
+ default: string;
88
+ };
89
+ disabled: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ loading: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ block: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ iconLeft: {
102
+ type: StringConstructor;
103
+ default: null;
104
+ };
105
+ iconRight: {
106
+ type: StringConstructor;
107
+ default: null;
108
+ };
109
+ customClass: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ }>> & Readonly<{
114
+ onClick?: ((...args: any[]) => any) | undefined;
115
+ }>, {}, {}, {}, {}, {
116
+ variant: string;
117
+ color: string;
118
+ size: "sm" | "md" | "lg";
119
+ type: "button" | "submit" | "reset";
120
+ disabled: boolean;
121
+ loading: boolean;
122
+ block: boolean;
123
+ iconLeft: string;
124
+ iconRight: string;
125
+ customClass: string;
126
+ }>;
127
+ __isFragment?: never;
128
+ __isTeleport?: never;
129
+ __isSuspense?: never;
130
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
131
+ variant: {
6
132
  type: StringConstructor;
7
133
  default: string;
134
+ validator: (value: string) => boolean;
8
135
  };
9
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
- label: {
136
+ color: {
11
137
  type: StringConstructor;
12
138
  default: string;
139
+ validator: (value: string) => boolean;
13
140
  };
14
- }>> & Readonly<{}>, {
15
- label: string;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
141
+ size: {
142
+ type: () => "sm" | "md" | "lg";
143
+ default: string;
144
+ };
145
+ type: {
146
+ type: () => "button" | "submit" | "reset";
147
+ default: string;
148
+ };
149
+ disabled: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ loading: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ block: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ iconLeft: {
162
+ type: StringConstructor;
163
+ default: null;
164
+ };
165
+ iconRight: {
166
+ type: StringConstructor;
167
+ default: null;
168
+ };
169
+ customClass: {
170
+ type: StringConstructor;
171
+ default: string;
172
+ };
173
+ }>> & Readonly<{
174
+ onClick?: ((...args: any[]) => any) | undefined;
175
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
176
+ click: (...args: any[]) => void;
177
+ }, string, {
178
+ variant: string;
179
+ color: string;
180
+ size: "sm" | "md" | "lg";
181
+ type: "button" | "submit" | "reset";
182
+ disabled: boolean;
183
+ loading: boolean;
184
+ block: boolean;
185
+ iconLeft: string;
186
+ iconRight: string;
187
+ customClass: string;
188
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
189
+ $slots: {
190
+ default?(_: {}): any;
191
+ };
192
+ });
17
193
  tags: string[];
194
+ argTypes: {
195
+ size: {
196
+ control: {
197
+ type: "select";
198
+ };
199
+ options: string[];
200
+ defaultValue: string;
201
+ };
202
+ variant: {
203
+ control: {
204
+ type: "select";
205
+ };
206
+ options: string[];
207
+ defaultValue: string;
208
+ };
209
+ color: {
210
+ control: {
211
+ type: "select";
212
+ };
213
+ options: string[];
214
+ defaultValue: string;
215
+ };
216
+ };
18
217
  };
19
218
  export default meta;
20
219
  type Story = StoryObj<typeof meta>;
@@ -1,14 +1,118 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- label: {
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLButtonElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ variant: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ validator: (value: string) => boolean;
15
+ };
16
+ color: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ validator: (value: string) => boolean;
20
+ };
21
+ size: {
22
+ type: () => "sm" | "md" | "lg";
23
+ default: string;
24
+ };
25
+ type: {
26
+ type: () => "button" | "submit" | "reset";
27
+ default: string;
28
+ };
29
+ disabled: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ loading: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ block: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ iconLeft: {
42
+ type: StringConstructor;
43
+ default: null;
44
+ };
45
+ iconRight: {
46
+ type: StringConstructor;
47
+ default: null;
48
+ };
49
+ customClass: {
3
50
  type: StringConstructor;
4
51
  default: string;
5
52
  };
6
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
- label: {
53
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
+ click: (...args: any[]) => void;
55
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
56
+ variant: {
8
57
  type: StringConstructor;
9
58
  default: string;
59
+ validator: (value: string) => boolean;
10
60
  };
11
- }>> & Readonly<{}>, {
12
- label: string;
61
+ color: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ validator: (value: string) => boolean;
65
+ };
66
+ size: {
67
+ type: () => "sm" | "md" | "lg";
68
+ default: string;
69
+ };
70
+ type: {
71
+ type: () => "button" | "submit" | "reset";
72
+ default: string;
73
+ };
74
+ disabled: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ loading: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ block: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ iconLeft: {
87
+ type: StringConstructor;
88
+ default: null;
89
+ };
90
+ iconRight: {
91
+ type: StringConstructor;
92
+ default: null;
93
+ };
94
+ customClass: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ }>> & Readonly<{
99
+ onClick?: ((...args: any[]) => any) | undefined;
100
+ }>, {
101
+ variant: string;
102
+ color: string;
103
+ size: "sm" | "md" | "lg";
104
+ type: "button" | "submit" | "reset";
105
+ disabled: boolean;
106
+ loading: boolean;
107
+ block: boolean;
108
+ iconLeft: string;
109
+ iconRight: string;
110
+ customClass: string;
13
111
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
112
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
113
  export default _default;
114
+ type __VLS_WithTemplateSlots<T, S> = T & {
115
+ new (): {
116
+ $slots: S;
117
+ };
118
+ };
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.1.0",
4
+ "version": "1.1.2",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {
@@ -25,6 +25,8 @@
25
25
  "release": "semantic-release"
26
26
  },
27
27
  "dependencies": {
28
+ "@tailwindcss/vite": "^4.1.4",
29
+ "tailwindcss": "^4.1.4",
28
30
  "vue": "^3.5.13"
29
31
  },
30
32
  "devDependencies": {
@@ -1,59 +0,0 @@
1
- import { StoryObj } from '@storybook/vue3';
2
- declare const meta: {
3
- title: string;
4
- component: import('vue').DefineComponent<{
5
- user: {
6
- name: string;
7
- } | null;
8
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
- createAccount: () => any;
10
- login: () => any;
11
- logout: () => any;
12
- }, string, import('vue').PublicProps, Readonly<{
13
- user: {
14
- name: string;
15
- } | null;
16
- }> & Readonly<{
17
- onCreateAccount?: (() => any) | undefined;
18
- onLogin?: (() => any) | undefined;
19
- onLogout?: (() => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
21
- render: (args: any) => {
22
- components: {
23
- MyHeader: import('vue').DefineComponent<{
24
- user: {
25
- name: string;
26
- } | null;
27
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
- createAccount: () => any;
29
- login: () => any;
30
- logout: () => any;
31
- }, string, import('vue').PublicProps, Readonly<{
32
- user: {
33
- name: string;
34
- } | null;
35
- }> & Readonly<{
36
- onCreateAccount?: (() => any) | undefined;
37
- onLogin?: (() => any) | undefined;
38
- onLogout?: (() => any) | undefined;
39
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
40
- };
41
- setup(this: void): {
42
- args: any;
43
- };
44
- template: string;
45
- };
46
- parameters: {
47
- layout: string;
48
- };
49
- args: {
50
- onLogin: import('@vitest/spy').Mock<(...args: any[]) => any>;
51
- onLogout: import('@vitest/spy').Mock<(...args: any[]) => any>;
52
- onCreateAccount: import('@vitest/spy').Mock<(...args: any[]) => any>;
53
- };
54
- tags: string[];
55
- };
56
- export default meta;
57
- type Story = StoryObj<typeof meta>;
58
- export declare const LoggedIn: Story;
59
- export declare const LoggedOut: Story;
@@ -1,15 +0,0 @@
1
- type __VLS_Props = {
2
- user: {
3
- name: string;
4
- } | null;
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- createAccount: () => any;
8
- login: () => any;
9
- logout: () => any;
10
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onCreateAccount?: (() => any) | undefined;
12
- onLogin?: (() => any) | undefined;
13
- onLogout?: (() => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
15
- export default _default;