@trackunit/react-form-wizard 2.6.49 → 2.6.50

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/index.cjs.js CHANGED
@@ -58,17 +58,19 @@ const setupLibraryTranslations = () => {
58
58
  i18nLibraryTranslation.registerTranslations(translations);
59
59
  };
60
60
 
61
- const cvaFillSection = cssClassVarianceUtilities.cvaMerge(["flex-grow", "p-0"]);
62
- const cvaSidebar = cssClassVarianceUtilities.cvaMerge([
63
- "flex",
64
- "flex-rows",
65
- "overflow-x-auto",
66
- "h-full",
67
- "bg-white",
68
- "border-r",
69
- "border-neutral-200",
70
- "@3xl:flex-col",
71
- ]);
61
+ const cvaFillSection = cssClassVarianceUtilities.cva({ base: ["flex-grow", "p-0"] });
62
+ const cvaSidebar = cssClassVarianceUtilities.cva({
63
+ base: [
64
+ "flex",
65
+ "flex-rows",
66
+ "overflow-x-auto",
67
+ "h-full",
68
+ "bg-white",
69
+ "border-r",
70
+ "border-neutral-200",
71
+ "@3xl:flex-col",
72
+ ],
73
+ });
72
74
 
73
75
  /**
74
76
  * Displays the sidebar with steps for the wizard.
@@ -78,7 +80,8 @@ function FormWizardSidebar({ "data-testid": dataTestId, children, className }) {
78
80
  return (jsxRuntime.jsxs("aside", { className: cvaSidebar({ className }), "data-testid": dataTestId, children: [children, jsxRuntime.jsx("div", { className: cvaFillSection() })] }));
79
81
  }
80
82
 
81
- const cvaFormWizardSidebarStep = cssClassVarianceUtilities.cvaMerge(["p-2", "hover:bg-neutral-200", "transition", "border-b", "border-neutral-200", "shrink-0"], {
83
+ const cvaFormWizardSidebarStep = cssClassVarianceUtilities.cva({
84
+ base: ["p-2", "hover:bg-neutral-200", "transition", "border-b", "border-neutral-200", "shrink-0"],
82
85
  variants: {
83
86
  state: {
84
87
  ready: "",
@@ -97,7 +100,8 @@ const cvaFormWizardSidebarStep = cssClassVarianceUtilities.cvaMerge(["p-2", "hov
97
100
  isSubStep: false,
98
101
  },
99
102
  });
100
- const cvaSectionHeaderContainer = cssClassVarianceUtilities.cvaMerge(["flex", "items-center", "gap-2", "p-2", "rounded"], {
103
+ const cvaSectionHeaderContainer = cssClassVarianceUtilities.cva({
104
+ base: ["flex", "items-center", "gap-2", "p-2", "rounded"],
101
105
  variants: {
102
106
  state: {
103
107
  ready: "",
@@ -115,10 +119,11 @@ const cvaSectionHeaderContainer = cssClassVarianceUtilities.cvaMerge(["flex", "i
115
119
  cursor: "default",
116
120
  },
117
121
  });
118
- const cvaHeader = cssClassVarianceUtilities.cvaMerge(["text-md"]);
119
- const cvaSubtitle = cssClassVarianceUtilities.cvaMerge(["text-xs", "text-neutral-500", "hidden", "@3xl:block"]);
120
- const cvaStepNumberContainer = cssClassVarianceUtilities.cvaMerge(["flex", "size-5", "shrink-0", "items-center", "justify-center"]);
121
- const cvaStepNumber = cssClassVarianceUtilities.cvaMerge(["flex", "justify-center", "text-xs", "font-bold", "items-center", "size-4", "bg-neutral-100", "rounded-full"], {
122
+ const cvaHeader = cssClassVarianceUtilities.cva({ base: ["text-md"] });
123
+ const cvaSubtitle = cssClassVarianceUtilities.cva({ base: ["text-xs", "text-neutral-500", "hidden", "@3xl:block"] });
124
+ const cvaStepNumberContainer = cssClassVarianceUtilities.cva({ base: ["flex", "size-5", "shrink-0", "items-center", "justify-center"] });
125
+ const cvaStepNumber = cssClassVarianceUtilities.cva({
126
+ base: ["flex", "justify-center", "text-xs", "font-bold", "items-center", "size-4", "bg-neutral-100", "rounded-full"],
122
127
  variants: {
123
128
  state: {
124
129
  ready: "",
@@ -143,7 +148,7 @@ const cvaStepNumber = cssClassVarianceUtilities.cvaMerge(["flex", "justify-cente
143
148
  state: "ready",
144
149
  },
145
150
  });
146
- const cvaTitleAndDescription = cssClassVarianceUtilities.cvaMerge(["justify-center", "flex-1", "flex-col", "@3xl:flex"]); //use same container breakpoint as cvaWizardContainer so it collapses at the same time
151
+ const cvaTitleAndDescription = cssClassVarianceUtilities.cva({ base: ["justify-center", "flex-1", "flex-col", "@3xl:flex"] }); //use same container breakpoint as cvaWizardContainer so it collapses at the same time
147
152
 
148
153
  const getStateIcon = (state) => {
149
154
  switch (state) {
@@ -164,18 +169,20 @@ const FormWizardSidebarStep = ({ stepNumber, state, basePath, title, subTitle, p
164
169
  return (jsxRuntime.jsx(reactRouter.Link, { className: cvaFormWizardSidebarStep({ state, isSubStep }), "data-testid": dataTestId ?? `form-wizard-sidebar-step-${path}`, onClick: onClickNavigate, params: (prev) => ({ ...prev, stepPath: path }), search: (prev) => ({ ...prev }), to: basePath, children: jsxRuntime.jsxs("div", { className: cvaSectionHeaderContainer({ state }), children: [jsxRuntime.jsx("div", { className: cvaStepNumberContainer(), children: stateIcon ?? (jsxRuntime.jsx("span", { className: cvaStepNumber({ state, isSubStep }), "data-testid": isSubStep ? `form-wizard-sidebar-substep` : `form-wizard-sidebar-step-number-${stepNumber}`, children: stepNumber })) }), jsxRuntime.jsxs("div", { className: cvaTitleAndDescription(), children: [jsxRuntime.jsx("h3", { className: cvaHeader(), children: title }), subTitle ? jsxRuntime.jsx("p", { className: cvaSubtitle(), children: subTitle }) : null] })] }) }));
165
170
  };
166
171
 
167
- const cvaFooterContainer = cssClassVarianceUtilities.cvaMerge([
168
- "flex-grow-0",
169
- "flex",
170
- "justify-between",
171
- "items-center",
172
- "h-min",
173
- "p-responsive-space",
174
- "border-t",
175
- "gap-responsive-space",
176
- "bg-neutral-50",
177
- ]);
178
- const cvaNavigationContainer = cssClassVarianceUtilities.cvaMerge(["flex", "gap-2"]);
172
+ const cvaFooterContainer = cssClassVarianceUtilities.cva({
173
+ base: [
174
+ "flex-grow-0",
175
+ "flex",
176
+ "justify-between",
177
+ "items-center",
178
+ "h-min",
179
+ "p-responsive-space",
180
+ "border-t",
181
+ "gap-responsive-space",
182
+ "bg-neutral-50",
183
+ ],
184
+ });
185
+ const cvaNavigationContainer = cssClassVarianceUtilities.cva({ base: ["flex", "gap-2"] });
179
186
 
180
187
  /**
181
188
  * The footer component for the FormWizard.
@@ -186,13 +193,9 @@ const FormWizardFooter = ({ disablePrimaryAction = false, loading = false, onCli
186
193
  return (jsxRuntime.jsxs("div", { className: cvaFooterContainer(), children: [jsxRuntime.jsx(reactComponents.Button, { "data-testid": "wizard-cancel", onClick: onClickCancel, variant: "ghost-neutral", children: t("wizard.defaults.cancel") }), jsxRuntime.jsxs("div", { className: cvaNavigationContainer(), children: [onClickBack ? (jsxRuntime.jsx(reactComponents.Button, { "data-testid": "wizard-back", onClick: onClickBack, variant: "secondary", children: t("wizard.defaults.back") })) : null, jsxRuntime.jsx(reactComponents.Button, { "data-testid": "wizard-next", disabled: disablePrimaryAction, loading: loading, type: "submit", children: primaryActionLabel ? primaryActionLabel : t("wizard.defaults.next") })] })] }));
187
194
  };
188
195
 
189
- const cvaFormWizardHeader = cssClassVarianceUtilities.cvaMerge([
190
- "flex",
191
- "flex-col",
192
- "p-responsive-space",
193
- "border-b-neutral-200",
194
- "border-b",
195
- ]);
196
+ const cvaFormWizardHeader = cssClassVarianceUtilities.cva({
197
+ base: ["flex", "flex-col", "p-responsive-space", "border-b-neutral-200", "border-b"],
198
+ });
196
199
 
197
200
  /**
198
201
  * The header component for the FormWizard.
@@ -202,8 +205,12 @@ const FormWizardHeader = ({ title, description, className, "data-testid": dataTe
202
205
  return (jsxRuntime.jsxs("div", { className: cvaFormWizardHeader({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.Heading, { variant: "secondary", children: title }), description !== undefined ? (jsxRuntime.jsx(reactComponents.Heading, { subtle: true, variant: "subtitle", children: description })) : null] }));
203
206
  };
204
207
 
205
- const cvaFormWizardComponentContainer = cssClassVarianceUtilities.cvaMerge(["p-responsive-space", "overflow-y-auto", "bg-neutral-50"]);
206
- const cvaFormWizardComponentStepForm = cssClassVarianceUtilities.cvaMerge(["grid-rows-min-fr-min", "grid", "h-full", "overflow-hidden"]);
208
+ const cvaFormWizardComponentContainer = cssClassVarianceUtilities.cva({
209
+ base: ["p-responsive-space", "overflow-y-auto", "bg-neutral-50"],
210
+ });
211
+ const cvaFormWizardComponentStepForm = cssClassVarianceUtilities.cva({
212
+ base: ["grid-rows-min-fr-min", "grid", "h-full", "overflow-hidden"],
213
+ });
207
214
 
208
215
  /**
209
216
  * A wrapper component used by the FormWizard component to render each step.
@@ -337,16 +344,18 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
337
344
  disablePrimaryAction: isSubmitting || primaryActionDisabledByStep })] }, String(stepKey)));
338
345
  };
339
346
 
340
- const cvaFormWizardContainer = cssClassVarianceUtilities.cvaMerge(["h-full"]);
341
- const cvaFormWizardLayout = cssClassVarianceUtilities.cvaMerge([
342
- "grid",
343
- "h-full",
344
- "grid-rows-min-fr",
345
- "@3xl:grid-rows-1",
346
- "@3xl:grid-cols-[240px_1fr]", //use same breakpoint for wizardSidebarSection so it collapses at the same time
347
- "@4xl:grid-cols-[320px_1fr]",
348
- ]);
349
- const cvaStepContainer = cssClassVarianceUtilities.cvaMerge(["h-full", "grid", "bg-white", "overflow-hidden"]);
347
+ const cvaFormWizardContainer = cssClassVarianceUtilities.cva({ base: ["h-full"] });
348
+ const cvaFormWizardLayout = cssClassVarianceUtilities.cva({
349
+ base: [
350
+ "grid",
351
+ "h-full",
352
+ "grid-rows-min-fr",
353
+ "@3xl:grid-rows-1",
354
+ "@3xl:grid-cols-[240px_1fr]", //use same breakpoint for wizardSidebarSection so it collapses at the same time
355
+ "@4xl:grid-cols-[320px_1fr]",
356
+ ],
357
+ });
358
+ const cvaStepContainer = cssClassVarianceUtilities.cva({ base: ["h-full", "grid", "bg-white", "overflow-hidden"] });
350
359
 
351
360
  /**
352
361
  * The `<FormWizard>` component renders multi-step forms with a sidebar navigation.
package/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { registerTranslations, useNamespaceTranslation } from '@trackunit/i18n-l
3
3
  import { Link, useNavigate, useParams } from '@tanstack/react-router';
4
4
  import { objectKeys, doNothing, objectFromEntries, objectEntries } from '@trackunit/shared-utils';
5
5
  import { useState, useEffect, useCallback, useMemo } from 'react';
6
- import { cvaMerge } from '@trackunit/css-class-variance-utilities';
6
+ import { cva } from '@trackunit/css-class-variance-utilities';
7
7
  import { Icon, Button, Heading } from '@trackunit/react-components';
8
8
  import { zodResolver } from '@hookform/resolvers/zod';
9
9
  import { useForm, useWatch, FormProvider } from 'react-hook-form';
@@ -56,17 +56,19 @@ const setupLibraryTranslations = () => {
56
56
  registerTranslations(translations);
57
57
  };
58
58
 
59
- const cvaFillSection = cvaMerge(["flex-grow", "p-0"]);
60
- const cvaSidebar = cvaMerge([
61
- "flex",
62
- "flex-rows",
63
- "overflow-x-auto",
64
- "h-full",
65
- "bg-white",
66
- "border-r",
67
- "border-neutral-200",
68
- "@3xl:flex-col",
69
- ]);
59
+ const cvaFillSection = cva({ base: ["flex-grow", "p-0"] });
60
+ const cvaSidebar = cva({
61
+ base: [
62
+ "flex",
63
+ "flex-rows",
64
+ "overflow-x-auto",
65
+ "h-full",
66
+ "bg-white",
67
+ "border-r",
68
+ "border-neutral-200",
69
+ "@3xl:flex-col",
70
+ ],
71
+ });
70
72
 
71
73
  /**
72
74
  * Displays the sidebar with steps for the wizard.
@@ -76,7 +78,8 @@ function FormWizardSidebar({ "data-testid": dataTestId, children, className }) {
76
78
  return (jsxs("aside", { className: cvaSidebar({ className }), "data-testid": dataTestId, children: [children, jsx("div", { className: cvaFillSection() })] }));
77
79
  }
78
80
 
79
- const cvaFormWizardSidebarStep = cvaMerge(["p-2", "hover:bg-neutral-200", "transition", "border-b", "border-neutral-200", "shrink-0"], {
81
+ const cvaFormWizardSidebarStep = cva({
82
+ base: ["p-2", "hover:bg-neutral-200", "transition", "border-b", "border-neutral-200", "shrink-0"],
80
83
  variants: {
81
84
  state: {
82
85
  ready: "",
@@ -95,7 +98,8 @@ const cvaFormWizardSidebarStep = cvaMerge(["p-2", "hover:bg-neutral-200", "trans
95
98
  isSubStep: false,
96
99
  },
97
100
  });
98
- const cvaSectionHeaderContainer = cvaMerge(["flex", "items-center", "gap-2", "p-2", "rounded"], {
101
+ const cvaSectionHeaderContainer = cva({
102
+ base: ["flex", "items-center", "gap-2", "p-2", "rounded"],
99
103
  variants: {
100
104
  state: {
101
105
  ready: "",
@@ -113,10 +117,11 @@ const cvaSectionHeaderContainer = cvaMerge(["flex", "items-center", "gap-2", "p-
113
117
  cursor: "default",
114
118
  },
115
119
  });
116
- const cvaHeader = cvaMerge(["text-md"]);
117
- const cvaSubtitle = cvaMerge(["text-xs", "text-neutral-500", "hidden", "@3xl:block"]);
118
- const cvaStepNumberContainer = cvaMerge(["flex", "size-5", "shrink-0", "items-center", "justify-center"]);
119
- const cvaStepNumber = cvaMerge(["flex", "justify-center", "text-xs", "font-bold", "items-center", "size-4", "bg-neutral-100", "rounded-full"], {
120
+ const cvaHeader = cva({ base: ["text-md"] });
121
+ const cvaSubtitle = cva({ base: ["text-xs", "text-neutral-500", "hidden", "@3xl:block"] });
122
+ const cvaStepNumberContainer = cva({ base: ["flex", "size-5", "shrink-0", "items-center", "justify-center"] });
123
+ const cvaStepNumber = cva({
124
+ base: ["flex", "justify-center", "text-xs", "font-bold", "items-center", "size-4", "bg-neutral-100", "rounded-full"],
120
125
  variants: {
121
126
  state: {
122
127
  ready: "",
@@ -141,7 +146,7 @@ const cvaStepNumber = cvaMerge(["flex", "justify-center", "text-xs", "font-bold"
141
146
  state: "ready",
142
147
  },
143
148
  });
144
- const cvaTitleAndDescription = cvaMerge(["justify-center", "flex-1", "flex-col", "@3xl:flex"]); //use same container breakpoint as cvaWizardContainer so it collapses at the same time
149
+ const cvaTitleAndDescription = cva({ base: ["justify-center", "flex-1", "flex-col", "@3xl:flex"] }); //use same container breakpoint as cvaWizardContainer so it collapses at the same time
145
150
 
146
151
  const getStateIcon = (state) => {
147
152
  switch (state) {
@@ -162,18 +167,20 @@ const FormWizardSidebarStep = ({ stepNumber, state, basePath, title, subTitle, p
162
167
  return (jsx(Link, { className: cvaFormWizardSidebarStep({ state, isSubStep }), "data-testid": dataTestId ?? `form-wizard-sidebar-step-${path}`, onClick: onClickNavigate, params: (prev) => ({ ...prev, stepPath: path }), search: (prev) => ({ ...prev }), to: basePath, children: jsxs("div", { className: cvaSectionHeaderContainer({ state }), children: [jsx("div", { className: cvaStepNumberContainer(), children: stateIcon ?? (jsx("span", { className: cvaStepNumber({ state, isSubStep }), "data-testid": isSubStep ? `form-wizard-sidebar-substep` : `form-wizard-sidebar-step-number-${stepNumber}`, children: stepNumber })) }), jsxs("div", { className: cvaTitleAndDescription(), children: [jsx("h3", { className: cvaHeader(), children: title }), subTitle ? jsx("p", { className: cvaSubtitle(), children: subTitle }) : null] })] }) }));
163
168
  };
164
169
 
165
- const cvaFooterContainer = cvaMerge([
166
- "flex-grow-0",
167
- "flex",
168
- "justify-between",
169
- "items-center",
170
- "h-min",
171
- "p-responsive-space",
172
- "border-t",
173
- "gap-responsive-space",
174
- "bg-neutral-50",
175
- ]);
176
- const cvaNavigationContainer = cvaMerge(["flex", "gap-2"]);
170
+ const cvaFooterContainer = cva({
171
+ base: [
172
+ "flex-grow-0",
173
+ "flex",
174
+ "justify-between",
175
+ "items-center",
176
+ "h-min",
177
+ "p-responsive-space",
178
+ "border-t",
179
+ "gap-responsive-space",
180
+ "bg-neutral-50",
181
+ ],
182
+ });
183
+ const cvaNavigationContainer = cva({ base: ["flex", "gap-2"] });
177
184
 
178
185
  /**
179
186
  * The footer component for the FormWizard.
@@ -184,13 +191,9 @@ const FormWizardFooter = ({ disablePrimaryAction = false, loading = false, onCli
184
191
  return (jsxs("div", { className: cvaFooterContainer(), children: [jsx(Button, { "data-testid": "wizard-cancel", onClick: onClickCancel, variant: "ghost-neutral", children: t("wizard.defaults.cancel") }), jsxs("div", { className: cvaNavigationContainer(), children: [onClickBack ? (jsx(Button, { "data-testid": "wizard-back", onClick: onClickBack, variant: "secondary", children: t("wizard.defaults.back") })) : null, jsx(Button, { "data-testid": "wizard-next", disabled: disablePrimaryAction, loading: loading, type: "submit", children: primaryActionLabel ? primaryActionLabel : t("wizard.defaults.next") })] })] }));
185
192
  };
186
193
 
187
- const cvaFormWizardHeader = cvaMerge([
188
- "flex",
189
- "flex-col",
190
- "p-responsive-space",
191
- "border-b-neutral-200",
192
- "border-b",
193
- ]);
194
+ const cvaFormWizardHeader = cva({
195
+ base: ["flex", "flex-col", "p-responsive-space", "border-b-neutral-200", "border-b"],
196
+ });
194
197
 
195
198
  /**
196
199
  * The header component for the FormWizard.
@@ -200,8 +203,12 @@ const FormWizardHeader = ({ title, description, className, "data-testid": dataTe
200
203
  return (jsxs("div", { className: cvaFormWizardHeader({ className }), "data-testid": dataTestId, children: [jsx(Heading, { variant: "secondary", children: title }), description !== undefined ? (jsx(Heading, { subtle: true, variant: "subtitle", children: description })) : null] }));
201
204
  };
202
205
 
203
- const cvaFormWizardComponentContainer = cvaMerge(["p-responsive-space", "overflow-y-auto", "bg-neutral-50"]);
204
- const cvaFormWizardComponentStepForm = cvaMerge(["grid-rows-min-fr-min", "grid", "h-full", "overflow-hidden"]);
206
+ const cvaFormWizardComponentContainer = cva({
207
+ base: ["p-responsive-space", "overflow-y-auto", "bg-neutral-50"],
208
+ });
209
+ const cvaFormWizardComponentStepForm = cva({
210
+ base: ["grid-rows-min-fr-min", "grid", "h-full", "overflow-hidden"],
211
+ });
205
212
 
206
213
  /**
207
214
  * A wrapper component used by the FormWizard component to render each step.
@@ -335,16 +342,18 @@ const FormWizardStepWrapper = ({ stepKey, onCancel, description, title, componen
335
342
  disablePrimaryAction: isSubmitting || primaryActionDisabledByStep })] }, String(stepKey)));
336
343
  };
337
344
 
338
- const cvaFormWizardContainer = cvaMerge(["h-full"]);
339
- const cvaFormWizardLayout = cvaMerge([
340
- "grid",
341
- "h-full",
342
- "grid-rows-min-fr",
343
- "@3xl:grid-rows-1",
344
- "@3xl:grid-cols-[240px_1fr]", //use same breakpoint for wizardSidebarSection so it collapses at the same time
345
- "@4xl:grid-cols-[320px_1fr]",
346
- ]);
347
- const cvaStepContainer = cvaMerge(["h-full", "grid", "bg-white", "overflow-hidden"]);
345
+ const cvaFormWizardContainer = cva({ base: ["h-full"] });
346
+ const cvaFormWizardLayout = cva({
347
+ base: [
348
+ "grid",
349
+ "h-full",
350
+ "grid-rows-min-fr",
351
+ "@3xl:grid-rows-1",
352
+ "@3xl:grid-cols-[240px_1fr]", //use same breakpoint for wizardSidebarSection so it collapses at the same time
353
+ "@4xl:grid-cols-[320px_1fr]",
354
+ ],
355
+ });
356
+ const cvaStepContainer = cva({ base: ["h-full", "grid", "bg-white", "overflow-hidden"] });
348
357
 
349
358
  /**
350
359
  * The `<FormWizard>` component renders multi-step forms with a sidebar navigation.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-wizard",
3
- "version": "2.6.49",
3
+ "version": "2.6.50",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
7
  "zod": "^3.25.76",
8
8
  "@hookform/resolvers": "^3.3.4",
9
9
  "@tanstack/router-core": "1.114.29",
10
- "@trackunit/shared-utils": "1.16.32",
11
- "@trackunit/css-class-variance-utilities": "1.14.29",
12
- "@trackunit/react-components": "2.13.0",
13
- "@trackunit/i18n-library-translation": "2.4.41"
10
+ "@trackunit/shared-utils": "1.16.33",
11
+ "@trackunit/css-class-variance-utilities": "2.0.0",
12
+ "@trackunit/react-components": "2.13.1",
13
+ "@trackunit/i18n-library-translation": "2.4.42"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">=24.x",
@@ -1,3 +1,18 @@
1
- export declare const cvaFormWizardContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
- export declare const cvaFormWizardLayout: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
- export declare const cvaStepContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFormWizardContainer: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ }, "defaultVariants"> & {
4
+ variants: unknown;
5
+ defaultVariants: Omit<{}, never>;
6
+ }, unknown>;
7
+ export declare const cvaFormWizardLayout: import("cva").CVAComponent<Omit<{
8
+ base: string[];
9
+ }, "defaultVariants"> & {
10
+ variants: unknown;
11
+ defaultVariants: Omit<{}, never>;
12
+ }, unknown>;
13
+ export declare const cvaStepContainer: import("cva").CVAComponent<Omit<{
14
+ base: string[];
15
+ }, "defaultVariants"> & {
16
+ variants: unknown;
17
+ defaultVariants: Omit<{}, never>;
18
+ }, unknown>;
@@ -1,2 +1,12 @@
1
- export declare const cvaFooterContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
- export declare const cvaNavigationContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFooterContainer: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ }, "defaultVariants"> & {
4
+ variants: unknown;
5
+ defaultVariants: Omit<{}, never>;
6
+ }, unknown>;
7
+ export declare const cvaNavigationContainer: import("cva").CVAComponent<Omit<{
8
+ base: string[];
9
+ }, "defaultVariants"> & {
10
+ variants: unknown;
11
+ defaultVariants: Omit<{}, never>;
12
+ }, unknown>;
@@ -1 +1,6 @@
1
- export declare const cvaFormWizardHeader: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFormWizardHeader: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ }, "defaultVariants"> & {
4
+ variants: unknown;
5
+ defaultVariants: Omit<{}, never>;
6
+ }, unknown>;
@@ -1,2 +1,12 @@
1
- export declare const cvaFillSection: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
- export declare const cvaSidebar: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFillSection: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ }, "defaultVariants"> & {
4
+ variants: unknown;
5
+ defaultVariants: Omit<{}, never>;
6
+ }, unknown>;
7
+ export declare const cvaSidebar: import("cva").CVAComponent<Omit<{
8
+ base: string[];
9
+ }, "defaultVariants"> & {
10
+ variants: unknown;
11
+ defaultVariants: Omit<{}, never>;
12
+ }, unknown>;
@@ -1,16 +1,175 @@
1
- export declare const cvaFormWizardSidebarStep: (props?: ({
2
- state?: "active" | "done" | "invalid" | "disabled" | "ready" | null | undefined;
3
- isSubStep?: boolean | null | undefined;
4
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
- export declare const cvaSectionHeaderContainer: (props?: ({
6
- state?: "active" | "done" | "invalid" | "disabled" | "ready" | null | undefined;
7
- cursor?: "default" | "withCursor" | null | undefined;
8
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
- export declare const cvaHeader: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
- export declare const cvaSubtitle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
11
- export declare const cvaStepNumberContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
12
- export declare const cvaStepNumber: (props?: ({
13
- state?: "active" | "done" | "invalid" | "disabled" | "ready" | null | undefined;
14
- isSubStep?: boolean | null | undefined;
15
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
- export declare const cvaTitleAndDescription: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFormWizardSidebarStep: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ variants: {
4
+ state: {
5
+ ready: string;
6
+ active: string;
7
+ done: string;
8
+ invalid: string;
9
+ disabled: string;
10
+ };
11
+ isSubStep: {
12
+ true: string;
13
+ false: string;
14
+ };
15
+ };
16
+ defaultVariants: {
17
+ state: "ready";
18
+ isSubStep: false;
19
+ };
20
+ }, "defaultVariants"> & {
21
+ variants: {
22
+ state: {
23
+ ready: string;
24
+ active: string;
25
+ done: string;
26
+ invalid: string;
27
+ disabled: string;
28
+ };
29
+ isSubStep: {
30
+ true: string;
31
+ false: string;
32
+ };
33
+ };
34
+ defaultVariants: Omit<{}, "state" | "isSubStep"> & {
35
+ state: "ready";
36
+ isSubStep: false;
37
+ };
38
+ }, {
39
+ state: {
40
+ ready: string;
41
+ active: string;
42
+ done: string;
43
+ invalid: string;
44
+ disabled: string;
45
+ };
46
+ isSubStep: {
47
+ true: string;
48
+ false: string;
49
+ };
50
+ }>;
51
+ export declare const cvaSectionHeaderContainer: import("cva").CVAComponent<Omit<{
52
+ base: string[];
53
+ variants: {
54
+ state: {
55
+ ready: string;
56
+ active: string;
57
+ done: string;
58
+ invalid: string;
59
+ disabled: string;
60
+ };
61
+ cursor: {
62
+ withCursor: string;
63
+ default: string;
64
+ };
65
+ };
66
+ defaultVariants: {
67
+ cursor: "default";
68
+ };
69
+ }, "defaultVariants"> & {
70
+ variants: {
71
+ state: {
72
+ ready: string;
73
+ active: string;
74
+ done: string;
75
+ invalid: string;
76
+ disabled: string;
77
+ };
78
+ cursor: {
79
+ withCursor: string;
80
+ default: string;
81
+ };
82
+ };
83
+ defaultVariants: Omit<{}, "cursor"> & {
84
+ cursor: "default";
85
+ };
86
+ }, {
87
+ state: {
88
+ ready: string;
89
+ active: string;
90
+ done: string;
91
+ invalid: string;
92
+ disabled: string;
93
+ };
94
+ cursor: {
95
+ withCursor: string;
96
+ default: string;
97
+ };
98
+ }>;
99
+ export declare const cvaHeader: import("cva").CVAComponent<Omit<{
100
+ base: string[];
101
+ }, "defaultVariants"> & {
102
+ variants: unknown;
103
+ defaultVariants: Omit<{}, never>;
104
+ }, unknown>;
105
+ export declare const cvaSubtitle: import("cva").CVAComponent<Omit<{
106
+ base: string[];
107
+ }, "defaultVariants"> & {
108
+ variants: unknown;
109
+ defaultVariants: Omit<{}, never>;
110
+ }, unknown>;
111
+ export declare const cvaStepNumberContainer: import("cva").CVAComponent<Omit<{
112
+ base: string[];
113
+ }, "defaultVariants"> & {
114
+ variants: unknown;
115
+ defaultVariants: Omit<{}, never>;
116
+ }, unknown>;
117
+ export declare const cvaStepNumber: import("cva").CVAComponent<Omit<{
118
+ base: string[];
119
+ variants: {
120
+ state: {
121
+ ready: string;
122
+ active: string;
123
+ done: string;
124
+ invalid: string;
125
+ disabled: string;
126
+ };
127
+ isSubStep: {
128
+ true: string;
129
+ false: string;
130
+ };
131
+ };
132
+ compoundVariants: {
133
+ state: "active";
134
+ isSubStep: true;
135
+ className: "border border-neutral-400 bg-white";
136
+ }[];
137
+ defaultVariants: {
138
+ state: "ready";
139
+ };
140
+ }, "defaultVariants"> & {
141
+ variants: {
142
+ state: {
143
+ ready: string;
144
+ active: string;
145
+ done: string;
146
+ invalid: string;
147
+ disabled: string;
148
+ };
149
+ isSubStep: {
150
+ true: string;
151
+ false: string;
152
+ };
153
+ };
154
+ defaultVariants: Omit<{}, "state"> & {
155
+ state: "ready";
156
+ };
157
+ }, {
158
+ state: {
159
+ ready: string;
160
+ active: string;
161
+ done: string;
162
+ invalid: string;
163
+ disabled: string;
164
+ };
165
+ isSubStep: {
166
+ true: string;
167
+ false: string;
168
+ };
169
+ }>;
170
+ export declare const cvaTitleAndDescription: import("cva").CVAComponent<Omit<{
171
+ base: string[];
172
+ }, "defaultVariants"> & {
173
+ variants: unknown;
174
+ defaultVariants: Omit<{}, never>;
175
+ }, unknown>;
@@ -1,2 +1,12 @@
1
- export declare const cvaFormWizardComponentContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
- export declare const cvaFormWizardComponentStepForm: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFormWizardComponentContainer: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ }, "defaultVariants"> & {
4
+ variants: unknown;
5
+ defaultVariants: Omit<{}, never>;
6
+ }, unknown>;
7
+ export declare const cvaFormWizardComponentStepForm: import("cva").CVAComponent<Omit<{
8
+ base: string[];
9
+ }, "defaultVariants"> & {
10
+ variants: unknown;
11
+ defaultVariants: Omit<{}, never>;
12
+ }, unknown>;