@wirecore/wirelayer-blocks-vue 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 WireCore GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
- # Temporary Holding Version
1
+ <img src="https://raw.githubusercontent.com/WireCore/WireLayer/main/assets/wirelayer.svg" alt="" width="56" height="56" />
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # @wirecore/wirelayer-blocks-vue
4
+
5
+ Page blocks for Vue built on `@wirecore/wirelayer-vue`: SiteHeader, CtaSection, ModeToggle, AuthForm, AuthLayout and the ConditionBuilder (nested AND/OR rules, also the editor of the DataTable's advanced filter).
6
+
7
+ [Storybook](https://wirecore.github.io/WireLayer/) · [GitHub](https://github.com/WireCore/WireLayer) · [Changelog](./CHANGELOG.md)
8
+
9
+ ## Installation
10
+
11
+ ```sh
12
+ pnpm add @wirecore/wirelayer-blocks-vue @wirecore/wirelayer-vue
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```vue
18
+ <script setup lang="ts">
19
+ import { ConditionBuilder } from '@wirecore/wirelayer-blocks-vue';
20
+ </script>
21
+ ```
22
+
23
+ Part of [WireLayer](https://github.com/WireCore/WireLayer) – one look and one API for Vue, React, React Native and HTML, accessible according to WCAG 2.2 AA.
24
+
25
+ ## License
26
+
27
+ [MIT](./LICENSE) – Copyright (c) 2026 WireCore GmbH
@@ -0,0 +1,66 @@
1
+ import { authForm as authFormRecipe, type AuthField, type AuthMode, type AuthValues, type RecipeClasses } from '@wirecore/wirelayer-recipes';
2
+ export interface AuthFormProps {
3
+ /** signIn, signUp, reset (password forgotten) or code (one-time code) – use with v-model:mode */
4
+ mode?: AuthMode;
5
+ defaultMode?: AuthMode;
6
+ /** Modes the links switch between (default sign in, sign up and reset) */
7
+ modes?: AuthMode[];
8
+ /** Heading (default by mode) */
9
+ title?: string;
10
+ /** Text below the heading (default by mode) */
11
+ description?: string;
12
+ /** Heading level that fits the page (default h1) */
13
+ titleTag?: 'h1' | 'h2' | 'h3';
14
+ /** "Keep me signed in" when signing in (default true) */
15
+ remember?: boolean;
16
+ /** Minimum length of a new password (default 8) */
17
+ passwordMinLength?: number;
18
+ /** Digits of the one-time code (default 6) */
19
+ codeLength?: number;
20
+ /** Own checks per field, e.g. the validators of @wirecore/wirelayer-vue/form – after the built-in ones */
21
+ validators?: Partial<Record<AuthField, (value: string) => string | undefined>>;
22
+ /** An error of the server (wrong password …), shown in the summary */
23
+ error?: string;
24
+ /** Submitting: the button shows a spinner */
25
+ loading?: boolean;
26
+ /** Reset: the link was sent (a status message replaces the form) */
27
+ sent?: boolean;
28
+ /** Start values, e.g. a known e-mail address */
29
+ defaultValues?: Partial<AuthValues>;
30
+ /** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
31
+ classes?: RecipeClasses<typeof authFormRecipe>;
32
+ }
33
+ type __VLS_Slots = {
34
+ /** Buttons of sign-in providers (neutral buttons with text, no brand logos) */
35
+ providers?(): unknown;
36
+ /** Below the form, e.g. terms or a help link */
37
+ footer?(): unknown;
38
+ };
39
+ declare const __VLS_base: import("vue").DefineComponent<AuthFormProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ "update:mode": (mode: AuthMode) => any;
41
+ submit: (payload: {
42
+ mode: AuthMode;
43
+ } & AuthValues) => any;
44
+ }, string, import("vue").PublicProps, Readonly<AuthFormProps> & Readonly<{
45
+ "onUpdate:mode"?: ((mode: AuthMode) => any) | undefined;
46
+ onSubmit?: ((payload: {
47
+ mode: AuthMode;
48
+ } & AuthValues) => any) | undefined;
49
+ }>, {
50
+ titleTag: "h2" | "h3" | "h1";
51
+ mode: AuthMode;
52
+ defaultMode: AuthMode;
53
+ modes: AuthMode[];
54
+ remember: boolean;
55
+ passwordMinLength: number;
56
+ codeLength: number;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
59
+ declare const _default: typeof __VLS_export;
60
+ export default _default;
61
+ type __VLS_WithSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
66
+ //# sourceMappingURL=AuthForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthForm.vue.d.ts","sourceRoot":"","sources":["../../src/AuthForm/AuthForm.vue"],"names":[],"mappings":"AA+LA,OAAO,EACH,QAAQ,IAAI,cAAc,EAE1B,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AAcrC,MAAM,WAAW,aAAa;IAC1B,iGAAiG;IACjG,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0GAA0G;IAC1G,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC/E,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gDAAgD;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACpC,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,cAAc,CAAC,CAAC;CAClD;AAoBD,KAAK,WAAW,GAAG;IACf,+EAA+E;IAC/E,SAAS,CAAC,IAAI,OAAO,CAAC;IACtB,gDAAgD;IAChD,MAAM,CAAC,IAAI,OAAO,CAAC;CACtB,CAAC;AA4ZF,QAAA,MAAM,UAAU;;;cApac,QAAQ;;;;;cAAR,QAAQ;;;;;;;;;;6EAwapC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { authLayout as authLayoutRecipe, type RecipeClasses } from '@wirecore/wirelayer-recipes';
2
+ export interface AuthLayoutProps {
3
+ /** Decorative image on the other side (hidden on small screens) */
4
+ image?: string;
5
+ /** Form on the start (default) or end side */
6
+ side?: 'start' | 'end';
7
+ /** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
8
+ classes?: RecipeClasses<typeof authLayoutRecipe>;
9
+ }
10
+ type __VLS_Slots = {
11
+ /** The form (e.g. AuthForm) */
12
+ default?(): unknown;
13
+ /** Logo or product name above the form */
14
+ brand?(): unknown;
15
+ /** Text over the image: quote, product promise … */
16
+ teaser?(): unknown;
17
+ /** Below the form: imprint, privacy */
18
+ footer?(): unknown;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<AuthLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AuthLayoutProps> & Readonly<{}>, {
21
+ side: "end" | "start";
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
31
+ //# sourceMappingURL=AuthLayout.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthLayout.vue.d.ts","sourceRoot":"","sources":["../../src/AuthLayout/AuthLayout.vue"],"names":[],"mappings":"AAmDA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjG,MAAM,WAAW,eAAe;IAC5B,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACvB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AAMD,KAAK,WAAW,GAAG;IACf,+BAA+B;IAC/B,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB,0CAA0C;IAC1C,KAAK,CAAC,IAAI,OAAO,CAAC;IAClB,oDAAoD;IACpD,MAAM,CAAC,IAAI,OAAO,CAAC;IACnB,uCAAuC;IACvC,MAAM,CAAC,IAAI,OAAO,CAAC;CACtB,CAAC;AA4EF,QAAA,MAAM,UAAU;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { conditionBuilder as conditionBuilderRecipe, type ConditionField, type ConditionGroup, type RecipeClasses } from '@wirecore/wirelayer-recipes';
2
+ export interface ConditionBuilderProps {
3
+ /** The condition tree (JSON: groups with combinator and children, rules with field, operator, value) – v-model */
4
+ modelValue?: ConditionGroup;
5
+ defaultValue?: ConditionGroup;
6
+ /** Fields the rules can test: id, label, type (text, number, date, select, boolean), options of a select */
7
+ fields: ConditionField[];
8
+ /** Name of the whole tree (default "Conditions") */
9
+ label?: string;
10
+ /** How deep groups can be nested (default 3) */
11
+ maxDepth?: number;
12
+ disabled?: boolean;
13
+ /** A "Not" checkbox per group negates it (`not` in the JSON); groups that are negated already always show it */
14
+ negatable?: boolean;
15
+ /** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
16
+ classes?: RecipeClasses<typeof conditionBuilderRecipe>;
17
+ }
18
+ declare const __VLS_export: import("vue").DefineComponent<ConditionBuilderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "update:modelValue": (value: ConditionGroup) => any;
20
+ }, string, import("vue").PublicProps, Readonly<ConditionBuilderProps> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: ConditionGroup) => any) | undefined;
22
+ }>, {
23
+ modelValue: ConditionGroup;
24
+ maxDepth: number;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ //# sourceMappingURL=ConditionBuilder.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionBuilder.vue.d.ts","sourceRoot":"","sources":["../../src/ConditionBuilder/ConditionBuilder.vue"],"names":[],"mappings":"AAgGA,OAAO,EAGH,gBAAgB,IAAI,sBAAsB,EAK1C,KAAK,cAAc,EACnB,KAAK,cAAc,EAEnB,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AAMrC,MAAM,WAAW,qBAAqB;IAClC,kHAAkH;IAClH,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,4GAA4G;IAC5G,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gHAAgH;IAChH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAC;CAC1D;AA2FD,QAAA,MAAM,YAAY;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,14 @@
1
+ import { type ConditionGroup } from '@wirecore/wirelayer-recipes';
2
+ type __VLS_Props = {
3
+ group: ConditionGroup;
4
+ /** Position, e.g. "2" or "2.1" ('' for the root) */
5
+ path: string;
6
+ depth: number;
7
+ /** Name of the root group */
8
+ label?: string;
9
+ parentId?: string;
10
+ };
11
+ declare const __VLS_export: 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>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ //# sourceMappingURL=ConditionGroupView.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionGroupView.vue.d.ts","sourceRoot":"","sources":["../../src/ConditionBuilder/ConditionGroupView.vue"],"names":[],"mappings":"AAyLA,OAAO,EAOH,KAAK,cAAc,EAItB,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA8cF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,16 @@
1
+ import { type ConditionField, type ConditionRule } from '@wirecore/wirelayer-recipes';
2
+ type __VLS_Props = {
3
+ field: ConditionField | undefined;
4
+ rule: ConditionRule;
5
+ value: unknown;
6
+ label: string;
7
+ disabled?: boolean;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ change: (value: unknown) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onChange?: ((value: unknown) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ //# sourceMappingURL=ConditionValue.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionValue.vue.d.ts","sourceRoot":"","sources":["../../src/ConditionBuilder/ConditionValue.vue"],"names":[],"mappings":"AAgFA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMtF,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;IAClC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAkPF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,16 @@
1
+ import type { ConditionField, ConditionNode, ConditionOperator, conditionBuilder, RecipeClasses } from '@wirecore/wirelayer-recipes';
2
+ import type { ComputedRef, InjectionKey } from 'vue';
3
+ /** What the parts of a ConditionBuilder share */
4
+ export interface ConditionContext {
5
+ fields: ConditionField[];
6
+ maxDepth: number;
7
+ disabled: boolean;
8
+ negatable: boolean;
9
+ update: (id: string, change: (node: ConditionNode) => ConditionNode) => void;
10
+ add: (groupId: string, kind: 'rule' | 'group') => void;
11
+ remove: (id: string, parentId: string) => void;
12
+ operatorLabel: (operator: ConditionOperator) => string;
13
+ classes?: RecipeClasses<typeof conditionBuilder>;
14
+ }
15
+ export declare const conditionKey: InjectionKey<ComputedRef<ConditionContext>>;
16
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/ConditionBuilder/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAErD,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,aAAa,KAAK,IAAI,CAAC;IAC7E,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;IACvD,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,aAAa,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,MAAM,CAAC;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAA8B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { ctaSection as ctaSectionRecipe, type RecipeClasses } from '@wirecore/wirelayer-recipes';
2
+ export interface CtaSectionProps {
3
+ title: string;
4
+ description?: string;
5
+ /** Decorative background image (e.g. the logo), shown faintly on the right */
6
+ image?: string;
7
+ /** Heading level that fits the page outline */
8
+ titleTag?: 'h2' | 'h3' | 'h4';
9
+ /** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
10
+ classes?: RecipeClasses<typeof ctaSectionRecipe>;
11
+ }
12
+ declare var __VLS_7: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_7) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<CtaSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CtaSectionProps> & Readonly<{}>, {
17
+ titleTag: "h2" | "h3" | "h4";
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ //# sourceMappingURL=CtaSection.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CtaSection.vue.d.ts","sourceRoot":"","sources":["../../src/CtaSection/CtaSection.vue"],"names":[],"mappings":"AAuCA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjG,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9B,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AAmED,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type IconButtonVariant, type Size } from '@wirecore/wirelayer-recipes';
2
+ export interface ModeToggleProps {
3
+ /** localStorage key for the choice */
4
+ storageKey?: string;
5
+ /** Accessible name while dark is active */
6
+ lightLabel?: string;
7
+ /** Accessible name while light is active */
8
+ darkLabel?: string;
9
+ variant?: IconButtonVariant;
10
+ size?: Size;
11
+ }
12
+ declare const __VLS_export: import("vue").DefineComponent<ModeToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ModeToggleProps> & Readonly<{}>, {
13
+ storageKey: string;
14
+ variant: IconButtonVariant;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ //# sourceMappingURL=ModeToggle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModeToggle.vue.d.ts","sourceRoot":"","sources":["../../src/ModeToggle/ModeToggle.vue"],"names":[],"mappings":"AA+DA,OAAO,EAIH,KAAK,iBAAiB,EACtB,KAAK,IAAI,EACZ,MAAM,6BAA6B,CAAC;AAIrC,MAAM,WAAW,eAAe;IAC5B,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;CACf;AA6ED,QAAA,MAAM,YAAY;;;6EAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,38 @@
1
+ import { type RecipeClasses, siteHeader as siteHeaderRecipe } from '@wirecore/wirelayer-recipes';
2
+ import type { NavItem } from '../types.js';
3
+ export interface SiteHeaderProps {
4
+ /** Name next to the logo, links to the home page */
5
+ brand: string;
6
+ homeHref?: string;
7
+ items?: NavItem[];
8
+ /** Accessible name of the navigation landmark */
9
+ navLabel?: string;
10
+ /** Accessible name of the mobile menu button */
11
+ menuLabel?: string;
12
+ /** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
13
+ classes?: RecipeClasses<typeof siteHeaderRecipe>;
14
+ }
15
+ type __VLS_Slots = {
16
+ /** Logo before the brand name (decorative – the name is the link text) */
17
+ logo?: () => unknown;
18
+ /** Actions on the right, e.g. a CTA button and the ModeToggle – repeated in the mobile menu */
19
+ actions?: () => unknown;
20
+ /** Custom link, e.g. RouterLink/NuxtLink: bind `attrs` to it */
21
+ link?: (props: {
22
+ item: NavItem;
23
+ attrs: Record<string, unknown>;
24
+ }) => unknown;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<SiteHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SiteHeaderProps> & Readonly<{}>, {
27
+ homeHref: string;
28
+ items: NavItem[];
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
38
+ //# sourceMappingURL=SiteHeader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SiteHeader.vue.d.ts","sourceRoot":"","sources":["../../src/SiteHeader/SiteHeader.vue"],"names":[],"mappings":"AAmGA,OAAO,EAAE,KAAK,aAAa,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,WAAW,eAAe;IAC5B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AASD,KAAK,WAAW,GAAG;IACf,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;IACrB,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,gEAAgE;IAChE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC;CAChF,CAAC;AAkLF,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { default as CtaSection, type CtaSectionProps } from './CtaSection/CtaSection.vue';
2
+ export { default as ModeToggle, type ModeToggleProps } from './ModeToggle/ModeToggle.vue';
3
+ export { default as SiteHeader, type SiteHeaderProps } from './SiteHeader/SiteHeader.vue';
4
+ export type { NavItem } from './types.js';
5
+ export { default as AuthForm, type AuthFormProps } from './AuthForm/AuthForm.vue';
6
+ export { default as AuthLayout, type AuthLayoutProps } from './AuthLayout/AuthLayout.vue';
7
+ export type { AuthField, AuthMode, AuthValues } from '@wirecore/wirelayer-recipes';
8
+ export { default as ConditionBuilder, type ConditionBuilderProps } from './ConditionBuilder/ConditionBuilder.vue';
9
+ export type { ConditionField, ConditionFieldType, ConditionGroup, ConditionNode, ConditionOperator, ConditionRule, } from '@wirecore/wirelayer-recipes';
10
+ export { emptyConditionGroup, matchesCondition } from '@wirecore/wirelayer-recipes';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC1F,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC1F,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAClH,YAAY,EACR,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,779 @@
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, inject as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeProps as m, onBeforeUnmount as h, onMounted as g, openBlock as _, provide as v, reactive as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, shallowRef as T, toDisplayString as E, unref as D, useAttrs as O, useId as k, useTemplateRef as A, withCtx as j, withModifiers as M } from "vue";
2
+ import { addConditionNode as N, announce as P, authForm as ee, authLayout as F, conditionBuilder as I, ctaSection as L, emptyConditionGroup as R, emptyConditionGroup as z, getPreferredMode as B, isValuelessOperator as V, matchesCondition as H, negateConditionGroup as U, newConditionRule as te, operatorsFor as ne, removeConditionNode as re, setConditionField as ie, setConditionOperator as ae, setMode as W, siteHeader as oe, updateConditionNode as se, validateAuth as ce } from "@wirecore/wirelayer-recipes";
3
+ import { Button as G, Checkbox as K, DatePicker as le, Field as q, FormErrorSummary as ue, IconButton as J, Input as Y, MultiSelect as de, NativeSelect as X, NumberInput as fe, PasswordInput as pe, PinInput as me, useLocale as he, useRecipe as Z, useTranslations as Q } from "@wirecore/wirelayer-vue";
4
+ import { Menu as ge, Moon as _e, Plus as ve, Sun as ye, Trash2 as be, X as xe } from "@lucide/vue";
5
+ import { Collapsible as $ } from "@ark-ui/vue/collapsible";
6
+ //#region src/CtaSection/CtaSection.vue?vue&type=script&setup=true&lang.ts
7
+ var Se = ["aria-labelledby"], Ce = ["src"], we = /* @__PURE__ */ c({
8
+ inheritAttrs: !1,
9
+ __name: "CtaSection",
10
+ props: {
11
+ title: {},
12
+ description: {},
13
+ image: {},
14
+ titleTag: { default: "h2" },
15
+ classes: {}
16
+ },
17
+ setup(e) {
18
+ let t = e, a = Z("ctaSection", L, () => t.classes), s = O(), c = a(), l = k();
19
+ return (t, a) => (_(), i("section", d({
20
+ ...D(s),
21
+ class: D(c).base({ class: p(D(s).class) })
22
+ }, { "aria-labelledby": D(l) }), [
23
+ e.image ? (_(), i("img", {
24
+ key: 0,
25
+ src: e.image,
26
+ alt: "",
27
+ class: p(D(c).image())
28
+ }, null, 10, Ce)) : r("", !0),
29
+ (_(), n(w(e.titleTag), {
30
+ id: D(l),
31
+ class: p(D(c).title())
32
+ }, {
33
+ default: j(() => [o(E(e.title), 1)]),
34
+ _: 1
35
+ }, 8, ["id", "class"])),
36
+ e.description ? (_(), i("p", {
37
+ key: 1,
38
+ class: p(D(c).description())
39
+ }, E(e.description), 3)) : r("", !0),
40
+ t.$slots.default ? (_(), i("div", {
41
+ key: 2,
42
+ class: p(D(c).actions())
43
+ }, [S(t.$slots, "default")], 2)) : r("", !0)
44
+ ], 16, Se));
45
+ }
46
+ }), Te = /* @__PURE__ */ c({
47
+ __name: "ModeToggle",
48
+ props: {
49
+ storageKey: { default: "wirecore-mode" },
50
+ lightLabel: {},
51
+ darkLabel: {},
52
+ variant: { default: "text" },
53
+ size: {}
54
+ },
55
+ setup(e) {
56
+ let t = e, r = Q(), i = b("light"), a = () => document.documentElement.dataset.mode === "dark" ? "dark" : "light", o;
57
+ g(() => {
58
+ document.documentElement.dataset.mode || W(B(t.storageKey), t.storageKey), i.value = a(), o = new MutationObserver(() => i.value = a()), o.observe(document.documentElement, {
59
+ attributes: !0,
60
+ attributeFilter: ["data-mode"]
61
+ });
62
+ }), h(() => o?.disconnect());
63
+ let s = () => W(i.value === "dark" ? "light" : "dark", t.storageKey);
64
+ return (t, a) => (_(), n(D(J), {
65
+ icon: i.value === "dark" ? D(ye) : D(_e),
66
+ label: i.value === "dark" ? e.lightLabel ?? D(r).modeToggle.light : e.darkLabel ?? D(r).modeToggle.dark,
67
+ variant: e.variant,
68
+ size: e.size,
69
+ onClick: s
70
+ }, null, 8, [
71
+ "icon",
72
+ "label",
73
+ "variant",
74
+ "size"
75
+ ]));
76
+ }
77
+ }), Ee = ["href"], De = ["aria-label"], Oe = ["href"], ke = ["aria-label"], Ae = ["href"], je = /* @__PURE__ */ c({
78
+ __name: "SiteHeader",
79
+ props: {
80
+ brand: {},
81
+ homeHref: { default: "/" },
82
+ items: { default: () => [] },
83
+ navLabel: {},
84
+ menuLabel: {},
85
+ classes: {}
86
+ },
87
+ setup(t) {
88
+ let c = t, l = Z("siteHeader", oe, () => c.classes), u = Q(), f = l(), m = b(!1), h = (e, t) => ({
89
+ class: t ? f.panelLink() : f.link(),
90
+ "aria-current": e.current ? "page" : void 0,
91
+ onClick: t ? () => m.value = !1 : void 0
92
+ });
93
+ return (c, l) => (_(), n(D($).Root, {
94
+ open: m.value,
95
+ "onUpdate:open": l[0] ||= (e) => m.value = e,
96
+ "as-child": "",
97
+ "lazy-mount": "",
98
+ "unmount-on-exit": ""
99
+ }, {
100
+ default: j(() => [a("header", { class: p(D(f).base()) }, [a("div", { class: p(D(f).bar()) }, [
101
+ a("a", {
102
+ href: t.homeHref,
103
+ class: p(D(f).brand())
104
+ }, [c.$slots.logo ? (_(), i("span", {
105
+ key: 0,
106
+ class: p(D(f).logo()),
107
+ "aria-hidden": "true"
108
+ }, [S(c.$slots, "logo")], 2)) : r("", !0), o(" " + E(t.brand), 1)], 10, Ee),
109
+ t.items.length ? (_(), i("nav", {
110
+ key: 0,
111
+ "aria-label": t.navLabel ?? D(u).siteHeader.navigation,
112
+ class: p(D(f).nav())
113
+ }, [(_(!0), i(e, null, x(t.items, (e) => S(c.$slots, "link", {
114
+ item: e,
115
+ attrs: h(e, !1)
116
+ }, () => [a("a", d({ href: e.href }, { ref_for: !0 }, h(e, !1)), E(e.label), 17, Oe)], void 0, e.href)), 128))], 10, De)) : r("", !0),
117
+ c.$slots.actions ? (_(), i("div", {
118
+ key: 1,
119
+ class: p(D(f).actions())
120
+ }, [S(c.$slots, "actions")], 2)) : r("", !0),
121
+ t.items.length || c.$slots.actions ? (_(), n(D($).Trigger, {
122
+ key: 2,
123
+ "as-child": ""
124
+ }, {
125
+ default: j(() => [s(D(J), {
126
+ icon: m.value ? D(xe) : D(ge),
127
+ label: t.menuLabel ?? D(u).siteHeader.menu,
128
+ variant: "text",
129
+ class: p(D(f).toggle())
130
+ }, null, 8, [
131
+ "icon",
132
+ "label",
133
+ "class"
134
+ ])]),
135
+ _: 1
136
+ })) : r("", !0)
137
+ ], 2), s(D($).Content, { class: p(D(f).panel()) }, {
138
+ default: j(() => [t.items.length ? (_(), i("nav", {
139
+ key: 0,
140
+ "aria-label": t.navLabel ?? D(u).siteHeader.navigation,
141
+ class: p(D(f).panelNav())
142
+ }, [(_(!0), i(e, null, x(t.items, (e) => S(c.$slots, "link", {
143
+ item: e,
144
+ attrs: h(e, !0)
145
+ }, () => [a("a", d({ href: e.href }, { ref_for: !0 }, h(e, !0)), E(e.label), 17, Ae)], void 0, e.href)), 128))], 10, ke)) : r("", !0), c.$slots.actions ? (_(), i("div", {
146
+ key: 1,
147
+ class: p(D(f).panelActions())
148
+ }, [S(c.$slots, "actions")], 2)) : r("", !0)]),
149
+ _: 3
150
+ }, 8, ["class"])], 2)]),
151
+ _: 3
152
+ }, 8, ["open"]));
153
+ }
154
+ }), Me = ["aria-label"], Ne = /* @__PURE__ */ c({
155
+ inheritAttrs: !1,
156
+ __name: "AuthForm",
157
+ props: {
158
+ mode: { default: void 0 },
159
+ defaultMode: { default: "signIn" },
160
+ modes: { default: () => [
161
+ "signIn",
162
+ "signUp",
163
+ "reset"
164
+ ] },
165
+ title: {},
166
+ description: {},
167
+ titleTag: { default: "h1" },
168
+ remember: {
169
+ type: Boolean,
170
+ default: !0
171
+ },
172
+ passwordMinLength: { default: 8 },
173
+ codeLength: { default: 6 },
174
+ validators: {},
175
+ error: {},
176
+ loading: { type: Boolean },
177
+ sent: { type: Boolean },
178
+ defaultValues: {},
179
+ classes: {}
180
+ },
181
+ emits: ["update:mode", "submit"],
182
+ setup(c, { emit: u }) {
183
+ let d = c, h = u, g = Z("authForm", ee, () => d.classes), v = O(), x = he(), C = t(() => x.value.translations.authForm), T = g(), N = k(), P = A("heading"), F = b(d.defaultMode), I = t(() => d.mode ?? F.value), L = y({
184
+ name: "",
185
+ email: "",
186
+ password: "",
187
+ code: "",
188
+ remember: !1,
189
+ ...d.defaultValues
190
+ }), R = b(0), z = t(() => R.value ? ce(I.value, L, {
191
+ texts: x.value.translations.validation,
192
+ passwordMinLength: d.passwordMinLength,
193
+ codeLength: d.codeLength,
194
+ validators: d.validators
195
+ }) : {}), B = (e) => `${N}${e}`, V = t(() => [...d.error ? [{ message: d.error }] : [], ...Object.entries(z.value).map(([e, t]) => ({
196
+ message: t,
197
+ id: B(e)
198
+ }))]);
199
+ function H(e) {
200
+ R.value = 0, F.value = e, h("update:mode", e), f(() => P.value?.focus());
201
+ }
202
+ function U() {
203
+ R.value++, !Object.keys(z.value).length && h("submit", {
204
+ mode: I.value,
205
+ ...L
206
+ });
207
+ }
208
+ return (t, u) => (_(), i("div", m(l({
209
+ ...D(v),
210
+ class: D(T).base({ class: p(D(v).class) })
211
+ })), [
212
+ a("div", { class: p(D(T).header()) }, [(_(), n(w(c.titleTag), {
213
+ ref_key: "heading",
214
+ ref: P,
215
+ tabindex: "-1",
216
+ class: p(D(T).title())
217
+ }, {
218
+ default: j(() => [o(E(c.title ?? C.value.titles[I.value]), 1)]),
219
+ _: 1
220
+ }, 8, ["class"])), a("p", { class: p(D(T).description()) }, E(c.description ?? C.value.descriptions[I.value]), 3)], 2),
221
+ t.$slots.providers && (I.value === "signIn" || I.value === "signUp") ? (_(), i(e, { key: 0 }, [a("div", {
222
+ role: "group",
223
+ "aria-label": C.value.providers,
224
+ class: p(D(T).providers())
225
+ }, [S(t.$slots, "providers")], 10, Me), a("div", { class: p(D(T).divider()) }, E(C.value.or), 3)], 64)) : r("", !0),
226
+ s(D(ue), {
227
+ errors: V.value,
228
+ "title-tag": "h2",
229
+ "focus-key": R.value
230
+ }, null, 8, ["errors", "focus-key"]),
231
+ I.value === "reset" && c.sent ? (_(), i("p", {
232
+ key: 1,
233
+ role: "status",
234
+ class: p(D(T).status())
235
+ }, E(C.value.resetSent), 3)) : (_(), i("form", {
236
+ key: 2,
237
+ class: p(D(T).form()),
238
+ novalidate: "",
239
+ onSubmit: M(U, ["prevent"])
240
+ }, [
241
+ I.value === "signUp" ? (_(), n(D(q), {
242
+ key: 0,
243
+ id: B("name"),
244
+ label: C.value.name,
245
+ required: "",
246
+ error: z.value.name
247
+ }, {
248
+ default: j(() => [s(D(Y), {
249
+ modelValue: L.name,
250
+ "onUpdate:modelValue": u[0] ||= (e) => L.name = e,
251
+ name: "name",
252
+ autocomplete: "name"
253
+ }, null, 8, ["modelValue"])]),
254
+ _: 1
255
+ }, 8, [
256
+ "id",
257
+ "label",
258
+ "error"
259
+ ])) : r("", !0),
260
+ I.value === "code" ? r("", !0) : (_(), n(D(q), {
261
+ key: 1,
262
+ id: B("email"),
263
+ label: C.value.email,
264
+ required: "",
265
+ error: z.value.email
266
+ }, {
267
+ default: j(() => [s(D(Y), {
268
+ modelValue: L.email,
269
+ "onUpdate:modelValue": u[1] ||= (e) => L.email = e,
270
+ type: "email",
271
+ name: "email",
272
+ autocomplete: "email"
273
+ }, null, 8, ["modelValue"])]),
274
+ _: 1
275
+ }, 8, [
276
+ "id",
277
+ "label",
278
+ "error"
279
+ ])),
280
+ I.value === "signIn" || I.value === "signUp" ? (_(), n(D(q), {
281
+ key: 2,
282
+ id: B("password"),
283
+ label: C.value.password,
284
+ required: "",
285
+ "helper-text": I.value === "signUp" ? C.value.passwordHint(c.passwordMinLength) : void 0,
286
+ error: z.value.password
287
+ }, {
288
+ default: j(() => [s(D(pe), {
289
+ modelValue: L.password,
290
+ "onUpdate:modelValue": u[2] ||= (e) => L.password = e,
291
+ name: "password",
292
+ autocomplete: I.value === "signUp" ? "new-password" : "current-password"
293
+ }, null, 8, ["modelValue", "autocomplete"])]),
294
+ _: 1
295
+ }, 8, [
296
+ "id",
297
+ "label",
298
+ "helper-text",
299
+ "error"
300
+ ])) : r("", !0),
301
+ I.value === "code" ? (_(), n(D(q), {
302
+ key: 3,
303
+ id: B("code"),
304
+ label: C.value.code,
305
+ required: "",
306
+ error: z.value.code
307
+ }, {
308
+ default: j(() => [s(D(me), {
309
+ modelValue: L.code,
310
+ "onUpdate:modelValue": u[3] ||= (e) => L.code = e,
311
+ length: c.codeLength,
312
+ otp: "",
313
+ name: "code"
314
+ }, null, 8, ["modelValue", "length"])]),
315
+ _: 1
316
+ }, 8, [
317
+ "id",
318
+ "label",
319
+ "error"
320
+ ])) : r("", !0),
321
+ I.value === "signIn" && (c.remember || c.modes.includes("reset")) ? (_(), i("div", {
322
+ key: 4,
323
+ class: p(D(T).row())
324
+ }, [c.remember ? (_(), n(D(K), {
325
+ key: 0,
326
+ checked: L.remember,
327
+ "onUpdate:checked": u[4] ||= (e) => L.remember = e,
328
+ name: "remember"
329
+ }, {
330
+ default: j(() => [o(E(C.value.remember), 1)]),
331
+ _: 1
332
+ }, 8, ["checked"])) : r("", !0), c.modes.includes("reset") ? (_(), i("button", {
333
+ key: 1,
334
+ type: "button",
335
+ class: p(D(T).link()),
336
+ onClick: u[5] ||= (e) => H("reset")
337
+ }, E(C.value.forgot), 3)) : r("", !0)], 2)) : r("", !0),
338
+ s(D(G), {
339
+ type: "submit",
340
+ loading: c.loading,
341
+ block: ""
342
+ }, {
343
+ default: j(() => [o(E(C.value.submit[I.value]), 1)]),
344
+ _: 1
345
+ }, 8, ["loading"])
346
+ ], 34)),
347
+ I.value === "signIn" && c.modes.includes("signUp") ? (_(), i("p", {
348
+ key: 3,
349
+ class: p(D(T).footer())
350
+ }, [o(E(C.value.noAccount) + " ", 1), a("button", {
351
+ type: "button",
352
+ class: p(D(T).link()),
353
+ onClick: u[6] ||= (e) => H("signUp")
354
+ }, E(C.value.signUpLink), 3)], 2)) : I.value === "signUp" && c.modes.includes("signIn") ? (_(), i("p", {
355
+ key: 4,
356
+ class: p(D(T).footer())
357
+ }, [o(E(C.value.hasAccount) + " ", 1), a("button", {
358
+ type: "button",
359
+ class: p(D(T).link()),
360
+ onClick: u[7] ||= (e) => H("signIn")
361
+ }, E(C.value.signInLink), 3)], 2)) : (I.value === "reset" || I.value === "code") && c.modes.includes("signIn") ? (_(), i("p", {
362
+ key: 5,
363
+ class: p(D(T).footer())
364
+ }, [a("button", {
365
+ type: "button",
366
+ class: p(D(T).link()),
367
+ onClick: u[8] ||= (e) => H("signIn")
368
+ }, E(C.value.back), 3)], 2)) : r("", !0),
369
+ S(t.$slots, "footer")
370
+ ], 16));
371
+ }
372
+ }), Pe = ["src"], Fe = /* @__PURE__ */ c({
373
+ inheritAttrs: !1,
374
+ __name: "AuthLayout",
375
+ props: {
376
+ image: {},
377
+ side: { default: "start" },
378
+ classes: {}
379
+ },
380
+ setup(n) {
381
+ let o = n, s = Z("authLayout", F, () => o.classes), c = O(), u = t(() => s({ side: o.side }));
382
+ return (t, o) => (_(), i("div", m(l({
383
+ ...D(c),
384
+ class: u.value.base({ class: p(D(c).class) })
385
+ })), [a("main", { class: p(u.value.main()) }, [
386
+ t.$slots.brand ? (_(), i("div", {
387
+ key: 0,
388
+ class: p(u.value.brand())
389
+ }, [S(t.$slots, "brand")], 2)) : r("", !0),
390
+ a("div", { class: p(u.value.content()) }, [S(t.$slots, "default")], 2),
391
+ t.$slots.footer ? (_(), i("div", {
392
+ key: 1,
393
+ class: p(u.value.footer())
394
+ }, [S(t.$slots, "footer")], 2)) : r("", !0)
395
+ ], 2), n.image || t.$slots.teaser ? (_(), i("aside", {
396
+ key: 0,
397
+ class: p(u.value.aside())
398
+ }, [n.image ? (_(), i(e, { key: 0 }, [a("img", {
399
+ src: n.image,
400
+ alt: "",
401
+ class: p(u.value.image())
402
+ }, null, 10, Pe), a("div", {
403
+ class: p(u.value.scrim()),
404
+ "aria-hidden": "true"
405
+ }, null, 2)], 64)) : r("", !0), t.$slots.teaser ? (_(), i("div", {
406
+ key: 1,
407
+ class: p(u.value.teaser())
408
+ }, [S(t.$slots, "teaser")], 2)) : r("", !0)], 2)) : r("", !0)], 16));
409
+ }
410
+ }), Ie = /* @__PURE__ */ c({
411
+ __name: "ConditionValue",
412
+ props: {
413
+ field: {},
414
+ rule: {},
415
+ value: {},
416
+ label: {},
417
+ disabled: { type: Boolean }
418
+ },
419
+ emits: ["change"],
420
+ setup(e, { emit: r }) {
421
+ let i = e, a = r, o = Q(), s = o.conditionBuilder, c = t(() => i.field?.type ?? "text"), l = t(() => i.field?.options ?? []), u = t(() => [{
422
+ value: "true",
423
+ label: s.yes
424
+ }, {
425
+ value: "false",
426
+ label: s.no
427
+ }]);
428
+ return (t, r) => c.value === "number" ? (_(), n(D(fe), {
429
+ key: 0,
430
+ "model-value": e.value ?? null,
431
+ "aria-label": e.label,
432
+ disabled: e.disabled,
433
+ size: "sm",
434
+ "onUpdate:modelValue": r[0] ||= (e) => a("change", e)
435
+ }, null, 8, [
436
+ "model-value",
437
+ "aria-label",
438
+ "disabled"
439
+ ])) : c.value === "date" ? (_(), n(D(le), {
440
+ key: 1,
441
+ "model-value": e.value ?? null,
442
+ "aria-label": e.label,
443
+ disabled: e.disabled,
444
+ size: "sm",
445
+ "onUpdate:modelValue": r[1] ||= (e) => a("change", e)
446
+ }, null, 8, [
447
+ "model-value",
448
+ "aria-label",
449
+ "disabled"
450
+ ])) : c.value === "select" && e.rule.operator === "in" ? (_(), n(D(de), {
451
+ key: 2,
452
+ items: l.value,
453
+ "model-value": e.value ?? [],
454
+ "aria-label": e.label,
455
+ disabled: e.disabled,
456
+ "onUpdate:modelValue": r[2] ||= (e) => a("change", e)
457
+ }, null, 8, [
458
+ "items",
459
+ "model-value",
460
+ "aria-label",
461
+ "disabled"
462
+ ])) : c.value === "select" ? (_(), n(D(X), {
463
+ key: 3,
464
+ items: l.value,
465
+ "model-value": e.value ?? "",
466
+ placeholder: D(o).common.placeholder,
467
+ "aria-label": e.label,
468
+ disabled: e.disabled,
469
+ size: "sm",
470
+ "onUpdate:modelValue": r[3] ||= (e) => a("change", e)
471
+ }, null, 8, [
472
+ "items",
473
+ "model-value",
474
+ "placeholder",
475
+ "aria-label",
476
+ "disabled"
477
+ ])) : c.value === "boolean" ? (_(), n(D(X), {
478
+ key: 4,
479
+ items: u.value,
480
+ "model-value": String(e.value ?? !0),
481
+ "aria-label": e.label,
482
+ disabled: e.disabled,
483
+ size: "sm",
484
+ "onUpdate:modelValue": r[4] ||= (e) => a("change", e === "true")
485
+ }, null, 8, [
486
+ "items",
487
+ "model-value",
488
+ "aria-label",
489
+ "disabled"
490
+ ])) : (_(), n(D(Y), {
491
+ key: 5,
492
+ "model-value": e.value ?? "",
493
+ "aria-label": e.label,
494
+ disabled: e.disabled,
495
+ size: "sm",
496
+ "onUpdate:modelValue": r[5] ||= (e) => a("change", e)
497
+ }, null, 8, [
498
+ "model-value",
499
+ "aria-label",
500
+ "disabled"
501
+ ]));
502
+ }
503
+ }), Le = Symbol("ConditionBuilder"), Re = ["data-node"], ze = ["data-node"], Be = ["aria-label"], Ve = /* @__PURE__ */ c({
504
+ __name: "ConditionGroupView",
505
+ props: {
506
+ group: {},
507
+ path: {},
508
+ depth: {},
509
+ label: {},
510
+ parentId: {}
511
+ },
512
+ setup(c) {
513
+ let l = c, d = u(Le), f = Z("conditionBuilder", I, () => d.value.classes), m = t(() => f({ nested: l.depth > 0 })), h = Q().conditionBuilder, g = t(() => d.value), v = (e) => l.path ? `${l.path}.${e + 1}` : String(e + 1), y = t(() => g.value.fields.map((e) => ({
514
+ value: e.id,
515
+ label: e.label
516
+ }))), b = (e) => g.value.fields.find((t) => t.id === e.field), S = (e) => ne(b(e)).map((e) => ({
517
+ value: e,
518
+ label: g.value.operatorLabel(e)
519
+ })), w = t(() => [{
520
+ value: "and",
521
+ label: h.all
522
+ }, {
523
+ value: "or",
524
+ label: h.any
525
+ }]), T = (e, t) => g.value.update(e.id, (e) => t(e)), O = (e, t) => T(e, (e) => ({
526
+ ...e,
527
+ value: t
528
+ })), k = (e, t, n) => T(e, (e) => {
529
+ let r = Array.isArray(e.value) ? [...e.value] : [null, null];
530
+ return r[t] = n, {
531
+ ...e,
532
+ value: r
533
+ };
534
+ }), A = (e) => e, M = (e) => e;
535
+ return (t, l) => {
536
+ let u = C("ConditionGroupView", !0);
537
+ return _(), i("fieldset", {
538
+ class: p(m.value.group()),
539
+ "data-node": c.group.id
540
+ }, [
541
+ a("legend", { class: p(m.value.legend()) }, E(c.path ? D(h).group(c.path) : c.label ?? D(h).label), 3),
542
+ a("div", { class: p(m.value.groupHeader()) }, [
543
+ g.value.negatable || c.group.not ? (_(), n(D(K), {
544
+ key: 0,
545
+ checked: c.group.not === !0,
546
+ disabled: g.value.disabled,
547
+ "onUpdate:checked": l[0] ||= (e) => g.value.update(c.group.id, (t) => D(U)(M(t), e === !0))
548
+ }, {
549
+ default: j(() => [o(E(D(h).not), 1)]),
550
+ _: 1
551
+ }, 8, ["checked", "disabled"])) : r("", !0),
552
+ s(D(X), {
553
+ items: w.value,
554
+ "model-value": c.group.combinator,
555
+ "aria-label": D(h).combinator,
556
+ disabled: g.value.disabled,
557
+ size: "sm",
558
+ class: p(m.value.combinatorSelect()),
559
+ "onUpdate:modelValue": l[1] ||= (e) => g.value.update(c.group.id, (t) => ({
560
+ ...M(t),
561
+ combinator: e
562
+ }))
563
+ }, null, 8, [
564
+ "items",
565
+ "model-value",
566
+ "aria-label",
567
+ "disabled",
568
+ "class"
569
+ ]),
570
+ a("div", { class: p(m.value.groupActions()) }, [
571
+ s(D(G), {
572
+ variant: "outline",
573
+ size: "sm",
574
+ "leading-icon": D(ve),
575
+ disabled: g.value.disabled,
576
+ "data-action": "add-rule",
577
+ onClick: l[2] ||= (e) => g.value.add(c.group.id, "rule")
578
+ }, {
579
+ default: j(() => [o(E(D(h).addRule), 1)]),
580
+ _: 1
581
+ }, 8, ["leading-icon", "disabled"]),
582
+ c.depth < g.value.maxDepth ? (_(), n(D(G), {
583
+ key: 0,
584
+ variant: "text",
585
+ size: "sm",
586
+ "leading-icon": D(ve),
587
+ disabled: g.value.disabled,
588
+ onClick: l[3] ||= (e) => g.value.add(c.group.id, "group")
589
+ }, {
590
+ default: j(() => [o(E(D(h).addGroup), 1)]),
591
+ _: 1
592
+ }, 8, ["leading-icon", "disabled"])) : r("", !0),
593
+ c.parentId ? (_(), n(D(J), {
594
+ key: 1,
595
+ icon: D(be),
596
+ label: D(h).removeGroup(c.path),
597
+ variant: "text",
598
+ size: "sm",
599
+ disabled: g.value.disabled,
600
+ onClick: l[4] ||= (e) => g.value.remove(c.group.id, c.parentId)
601
+ }, null, 8, [
602
+ "icon",
603
+ "label",
604
+ "disabled"
605
+ ])) : r("", !0)
606
+ ], 2)
607
+ ], 2),
608
+ c.group.children.length ? (_(), i("ol", {
609
+ key: 0,
610
+ class: p(m.value.list())
611
+ }, [(_(!0), i(e, null, x(c.group.children, (t, a) => (_(), i("li", {
612
+ key: t.id,
613
+ "data-node": t.id
614
+ }, [a > 0 ? (_(), i("span", {
615
+ key: 0,
616
+ class: p(m.value.combinator()),
617
+ "aria-hidden": "true"
618
+ }, E(c.group.combinator === "or" ? D(h).or : D(h).and), 3)) : r("", !0), t.type === "group" ? (_(), n(u, {
619
+ key: 1,
620
+ group: M(t),
621
+ path: v(a),
622
+ depth: c.depth + 1,
623
+ "parent-id": c.group.id
624
+ }, null, 8, [
625
+ "group",
626
+ "path",
627
+ "depth",
628
+ "parent-id"
629
+ ])) : (_(), i("div", {
630
+ key: 2,
631
+ role: "group",
632
+ "aria-label": D(h).rule(v(a)),
633
+ class: p(m.value.rule())
634
+ }, [
635
+ s(D(X), {
636
+ items: y.value,
637
+ "model-value": A(t).field,
638
+ "aria-label": D(h).field,
639
+ disabled: g.value.disabled,
640
+ size: "sm",
641
+ class: p(m.value.field()),
642
+ "onUpdate:modelValue": (e) => T(A(t), (t) => D(ie)(t, g.value.fields, e))
643
+ }, null, 8, [
644
+ "items",
645
+ "model-value",
646
+ "aria-label",
647
+ "disabled",
648
+ "class",
649
+ "onUpdate:modelValue"
650
+ ]),
651
+ s(D(X), {
652
+ items: S(A(t)),
653
+ "model-value": A(t).operator,
654
+ "aria-label": D(h).operator,
655
+ disabled: g.value.disabled,
656
+ size: "sm",
657
+ class: p(m.value.operator()),
658
+ "onUpdate:modelValue": (e) => T(A(t), (t) => D(ae)(t, g.value.fields, e))
659
+ }, null, 8, [
660
+ "items",
661
+ "model-value",
662
+ "aria-label",
663
+ "disabled",
664
+ "class",
665
+ "onUpdate:modelValue"
666
+ ]),
667
+ A(t).operator === "between" ? (_(), i("div", {
668
+ key: 0,
669
+ class: p(m.value.range())
670
+ }, [(_(), i(e, null, x([0, 1], (e) => s(Ie, {
671
+ key: e,
672
+ field: b(A(t)),
673
+ rule: A(t),
674
+ value: A(t).value?.[e],
675
+ label: `${D(h).value}: ${e === 0 ? D(h).from : D(h).to}`,
676
+ disabled: g.value.disabled,
677
+ onChange: (n) => k(A(t), e, n)
678
+ }, null, 8, [
679
+ "field",
680
+ "rule",
681
+ "value",
682
+ "label",
683
+ "disabled",
684
+ "onChange"
685
+ ])), 64))], 2)) : D(V)(A(t).operator) ? r("", !0) : (_(), i("div", {
686
+ key: 1,
687
+ class: p(m.value.value())
688
+ }, [s(Ie, {
689
+ field: b(A(t)),
690
+ rule: A(t),
691
+ value: A(t).value,
692
+ label: D(h).value,
693
+ disabled: g.value.disabled,
694
+ onChange: (e) => O(A(t), e)
695
+ }, null, 8, [
696
+ "field",
697
+ "rule",
698
+ "value",
699
+ "label",
700
+ "disabled",
701
+ "onChange"
702
+ ])], 2)),
703
+ s(D(J), {
704
+ icon: D(be),
705
+ label: D(h).removeRule(v(a)),
706
+ variant: "text",
707
+ size: "sm",
708
+ disabled: g.value.disabled,
709
+ onClick: (e) => g.value.remove(t.id, c.group.id)
710
+ }, null, 8, [
711
+ "icon",
712
+ "label",
713
+ "disabled",
714
+ "onClick"
715
+ ])
716
+ ], 10, Be))], 8, ze))), 128))], 2)) : (_(), i("p", {
717
+ key: 1,
718
+ class: p(m.value.empty())
719
+ }, E(D(h).empty), 3))
720
+ ], 10, Re);
721
+ };
722
+ }
723
+ }), He = /* @__PURE__ */ c({
724
+ inheritAttrs: !1,
725
+ __name: "ConditionBuilder",
726
+ props: {
727
+ modelValue: { default: void 0 },
728
+ defaultValue: {},
729
+ fields: {},
730
+ label: {},
731
+ maxDepth: { default: 3 },
732
+ disabled: { type: Boolean },
733
+ negatable: { type: Boolean },
734
+ classes: {}
735
+ },
736
+ emits: ["update:modelValue"],
737
+ setup(e, { emit: n }) {
738
+ let r = e, a = n, o = T(r.defaultValue ?? z("and", "root")), c = t(() => r.modelValue ?? o.value);
739
+ function l(e) {
740
+ o.value = e, a("update:modelValue", e);
741
+ }
742
+ let u = Z("conditionBuilder", I, () => r.classes), m = O(), h = Q(), g = h.conditionBuilder, y = u(), b = A("root");
743
+ async function x(e) {
744
+ await f(), b.value?.querySelector(e)?.focus();
745
+ }
746
+ return v(Le, t(() => ({
747
+ fields: r.fields,
748
+ maxDepth: r.maxDepth,
749
+ disabled: r.disabled,
750
+ negatable: r.negatable,
751
+ classes: r.classes,
752
+ update: (e, t) => l(se(c.value, e, t)),
753
+ add: (e, t) => {
754
+ let n = te(r.fields), i = t === "rule" ? n : {
755
+ ...z(),
756
+ children: [n]
757
+ };
758
+ l(N(c.value, e, i)), P(t === "rule" ? g.added : g.groupAdded), x(`[data-node="${n.id}"] select`);
759
+ },
760
+ remove: (e, t) => {
761
+ l(re(c.value, e)), P(g.removed), x(`[data-node="${t}"] [data-action="add-rule"]`);
762
+ },
763
+ operatorLabel: (e) => g.operators[e] ?? h.dataTable.matchModes[e] ?? e
764
+ }))), (t, n) => (_(), i("div", d({
765
+ ref_key: "root",
766
+ ref: b
767
+ }, {
768
+ ...D(m),
769
+ class: D(y).base({ class: p(D(m).class) })
770
+ }), [s(Ve, {
771
+ group: c.value,
772
+ path: "",
773
+ depth: 0,
774
+ label: e.label
775
+ }, null, 8, ["group", "label"])], 16));
776
+ }
777
+ });
778
+ //#endregion
779
+ export { Ne as AuthForm, Fe as AuthLayout, He as ConditionBuilder, we as CtaSection, Te as ModeToggle, je as SiteHeader, R as emptyConditionGroup, H as matchesCondition };
@@ -0,0 +1,7 @@
1
+ export interface NavItem {
2
+ label: string;
3
+ href: string;
4
+ /** The current page – sets aria-current="page" */
5
+ current?: boolean;
6
+ }
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB"}
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@wirecore/wirelayer-blocks-vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Page blocks for Vue (site header, CTA section, mode toggle, sign-in form and layout) and the condition builder, built on @wirecore/wirelayer-vue",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/WireCore/WireLayer.git",
9
+ "directory": "packages/blocks-vue"
10
+ },
11
+ "homepage": "https://github.com/WireCore/WireLayer#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/WireCore/WireLayer/issues"
14
+ },
15
+ "type": "module",
16
+ "sideEffects": false,
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ }
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "peerDependencies": {
27
+ "@wirecore/wirelayer-vue": "^0.1.1",
28
+ "tailwindcss": "^4.0.0",
29
+ "vue": "^3.5.0"
30
+ },
31
+ "dependencies": {
32
+ "@ark-ui/vue": "^5.39.3",
33
+ "@lucide/vue": "^1.59.0",
34
+ "@wirecore/wirelayer-recipes": "^0.1.1"
35
+ },
36
+ "devDependencies": {
37
+ "@storybook/vue3-vite": "^10.6.2",
38
+ "@tailwindcss/vite": "^4.3.3",
39
+ "@vitejs/plugin-vue": "^6.0.10",
40
+ "@wirecore/wirelayer-vue": "0.1.1",
41
+ "tailwindcss": "^4.3.3",
42
+ "typescript": "~6.0.3",
43
+ "vite": "^8.3.4",
44
+ "vue": "^3.5.44",
45
+ "vue-tsc": "^3.3.13"
46
+ },
47
+ "scripts": {
48
+ "build": "vite build && vue-tsc -p tsconfig.build.json",
49
+ "typecheck": "vue-tsc --noEmit"
50
+ }
6
51
  }