@digiform/wizard 0.2.10 → 0.2.16
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/core/src/types/api.js +12 -0
- package/core/src/types/form-config.js +60 -0
- package/core/src/types/form-wizard-config-schema.js +113 -0
- package/core/src/types/guards.js +19 -0
- package/core/src/types/validation.js +61 -0
- package/core/src/utils/apiBodyUtils.js +95 -0
- package/features/api-integration.d.ts +2 -0
- package/features/api-integration.js +17 -0
- package/features/dialog-system.d.ts +2 -0
- package/features/dialog-system.js +9 -0
- package/features/form-runtime.d.ts +2 -0
- package/features/form-runtime.js +63 -0
- package/features/state-management.d.ts +2 -0
- package/features/state-management.js +21 -0
- package/features/trigger-action-system.d.ts +2 -0
- package/features/trigger-action-system.js +12 -0
- package/features/validation-system.d.ts +2 -0
- package/features/validation-system.js +23 -0
- package/index.js +108 -17470
- package/package.json +41 -30
- package/styles.css +1 -4
- package/ui/src/component-registry/renderComponent.js +11 -0
- package/ui/src/components/FormLayout/FormLayout.js +135 -0
- package/ui/src/components/FormLayout/FormLayout.module.css.js +20 -0
- package/ui/src/components/GridLayout/GridLayout.js +62 -0
- package/ui/src/components/GridLayout/GridLayout.module.css.js +16 -0
- package/ui/src/components/GridLayoutColumn/GridLayoutColumn.js +37 -0
- package/ui/src/components/GridLayoutColumn/GridLayoutColumn.module.css.js +10 -0
- package/ui/src/components/ProgressLoaderBar/ProgressLoaderBar.js +108 -0
- package/ui/src/components/ProgressLoaderBar/ProgressLoaderBar.module.css.js +20 -0
- package/ui/src/components/ProgressLoaderBar/useProgressAnimation.js +31 -0
- package/ui/src/components/ValidationCode/ValidationCode.js +198 -0
- package/ui/src/components/ValidationCode/ValidationCode.module.css.js +20 -0
- package/ui/src/components/alert/alert.js +30 -0
- package/ui/src/components/alert/alert.module.css.js +14 -0
- package/ui/src/components/badge/badge.js +20 -0
- package/ui/src/components/badge/badge.module.css.js +12 -0
- package/ui/src/components/box/box.js +8 -0
- package/ui/src/components/box/box.module.css.js +8 -0
- package/ui/src/components/button/button.js +25 -0
- package/ui/src/components/button/button.module.css.js +18 -0
- package/ui/src/components/card/card.js +106 -0
- package/ui/src/components/card/card.module.css.js +44 -0
- package/ui/src/components/checkbox/checkbox.js +20 -0
- package/ui/src/components/checkbox/checkbox.module.css.js +10 -0
- package/ui/src/components/dialog/dialog.js +67 -0
- package/ui/src/components/dialog/dialog.module.css.js +20 -0
- package/ui/src/components/form-header-base/form-header-base.js +59 -0
- package/ui/src/components/form-header-base/form-header-base.module.css.js +14 -0
- package/ui/src/components/input/input.js +20 -0
- package/ui/src/components/input/input.module.css.js +8 -0
- package/ui/src/components/radio-group/radio-group.js +30 -0
- package/ui/src/components/radio-group/radio-group.module.css.js +14 -0
- package/ui/src/components/select/select.js +115 -0
- package/ui/src/components/select/select.module.css.js +32 -0
- package/ui/src/components/sheet/sheet.js +71 -0
- package/ui/src/components/sheet/sheet.module.css.js +46 -0
- package/ui/src/components/textarea/textarea.js +19 -0
- package/ui/src/components/textarea/textarea.module.css.js +8 -0
- package/ui/src/design-system/components/FormFieldWrapper.js +16 -0
- package/ui/src/lib/assets/icons/Check.js +26 -0
- package/ui/src/lib/assets/icons/ChevronRight.js +26 -0
- package/ui/src/lib/error-boundaries/BaseErrorBoundary.js +155 -0
- package/ui/src/lib/error-boundaries/ComponentErrorBoundary.js +153 -0
- package/ui/src/lib/error-boundaries/FormWizardErrorBoundary.js +107 -0
- package/ui/src/lib/logger.js +106 -0
- package/ui/src/lib/providers/FormEditingContext.js +21 -0
- package/ui/src/lib/queryClient.js +26 -0
- package/ui/src/lib/types/guards.js +11 -0
- package/ui/src/lib/utils/componentUtils.js +38 -0
- package/ui/src/lib/utils/templateDialogResolver.js +85 -0
- package/ui/src/lib/utils/templateUtils.js +52 -0
- package/ui/src/theme/ThemeProvider.js +15 -0
- package/wizard/src/features/api-integration/components/EnhancedActionExecutor/EnhancedActionExecutor.js +370 -0
- package/wizard/src/features/api-integration/services/ActionExecutor.js +339 -0
- package/wizard/src/features/api-integration/services/ApiCallExecutor.js +6 -0
- package/wizard/src/features/api-integration/services/ApiCallService.js +309 -0
- package/wizard/src/features/api-integration/services/DialogExecutor.js +6 -0
- package/wizard/src/features/api-integration/services/GenericTriggerService.js +284 -0
- package/wizard/src/features/api-integration/services/NavigationExecutor.js +6 -0
- package/wizard/src/features/dialog-system/components/ActionDialog/ActionDialog.js +115 -0
- package/wizard/src/features/dialog-system/components/ActionDialog/ActionDialog.module.css.js +29 -0
- package/wizard/src/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.js +64 -0
- package/wizard/src/features/dialog-system/components/ConfirmationDialog/ConfirmationDialog.module.css.js +22 -0
- package/wizard/src/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.js +149 -0
- package/wizard/src/features/dialog-system/components/EmailVerificationDialog/EmailVerificationDialog.module.css.js +40 -0
- package/wizard/src/features/form-runtime/ComponentAdapterComplete/ComponentAdapterComplete.js +107 -0
- package/wizard/src/features/form-runtime/ComponentAdapterComplete/ComponentAdapterComplete.module.css.js +10 -0
- package/wizard/src/features/form-runtime/FormWizard/FormWizard.js +107 -0
- package/wizard/src/features/form-runtime/FormWizard/FormWizard.module.css.js +16 -0
- package/wizard/src/features/form-runtime/components/FormField.js +405 -0
- package/wizard/src/features/form-runtime/components/FormFooter.js +209 -0
- package/wizard/src/features/form-runtime/components/FormHeader.js +29 -0
- package/wizard/src/features/form-runtime/components/FormSection/FormSection.js +279 -0
- package/wizard/src/features/form-runtime/components/FormSection/FormSection.module.css.js +20 -0
- package/wizard/src/features/form-runtime/components/FormStep/FormStep.js +167 -0
- package/wizard/src/features/form-runtime/components/FormStep/FormStep.module.css.js +12 -0
- package/wizard/src/features/form-runtime/components/ProgressLoaderRuntime.js +88 -0
- package/wizard/src/features/form-runtime/components/StepProgressIndicator/StepProgressIndicator.js +61 -0
- package/wizard/src/features/form-runtime/components/StepProgressIndicator/StepProgressIndicator.module.css.js +34 -0
- package/wizard/src/features/form-runtime/components/displayValue/displayValue.js +21 -0
- package/wizard/src/features/form-runtime/components/displayValue/displayValue.module.css.js +10 -0
- package/wizard/src/features/form-runtime/components/renderers/DisplayModeRenderer/DisplayModeRenderer.js +28 -0
- package/wizard/src/features/form-runtime/components/renderers/DisplayModeRenderer/DisplayModeRenderer.module.css.js +8 -0
- package/wizard/src/features/form-runtime/components/renderers/InteractiveFieldRenderer/InteractiveFieldRenderer.js +56 -0
- package/wizard/src/features/form-runtime/components/renderers/InteractiveFieldRenderer/InteractiveFieldRenderer.module.css.js +8 -0
- package/wizard/src/features/form-runtime/config/configResolver.js +38 -0
- package/wizard/src/features/form-runtime/config/templateConfig.js +156 -0
- package/wizard/src/features/form-runtime/config/templateLoader.js +265 -0
- package/wizard/src/features/form-runtime/config/templateUtils.js +14 -0
- package/wizard/src/features/form-runtime/context/LoaderContext.js +36 -0
- package/wizard/src/features/form-runtime/hooks/useApiActions.js +60 -0
- package/wizard/src/features/form-runtime/hooks/useComponentTriggers.js +102 -0
- package/wizard/src/features/form-runtime/hooks/useComponentVisibility.js +18 -0
- package/wizard/src/features/form-runtime/hooks/useFieldEventHandlers.js +61 -0
- package/wizard/src/features/form-runtime/hooks/useFormContext.js +13 -0
- package/wizard/src/features/form-runtime/hooks/useFormFieldState.js +40 -0
- package/wizard/src/features/form-runtime/hooks/useValidationEvents.js +39 -0
- package/wizard/src/features/form-runtime/utils/componentDisplayValue.js +22 -0
- package/wizard/src/features/form-runtime/utils/errorUtils.js +93 -0
- package/wizard/src/features/form-runtime/utils/fieldHelpers.js +17 -0
- package/wizard/src/features/form-runtime/utils/formDataBuilder.js +10 -0
- package/wizard/src/features/form-runtime/utils/formDirtyStateSync.js +52 -0
- package/wizard/src/features/form-runtime/utils/logger.js +111 -0
- package/wizard/src/features/form-runtime/utils/validation.js +100 -0
- package/wizard/src/features/form-runtime/utils/validationUX.js +58 -0
- package/wizard/src/features/form-runtime/utils/visibilityUtils.js +77 -0
- package/wizard/src/features/state-management/machines/actions/componentActions.js +215 -0
- package/wizard/src/features/state-management/machines/actions/navigationActions.js +122 -0
- package/wizard/src/features/state-management/machines/actions/saveActions.js +101 -0
- package/wizard/src/features/state-management/machines/componentTriggerEngine.js +598 -0
- package/wizard/src/features/state-management/machines/formMachine.js +1565 -0
- package/wizard/src/features/state-management/machines/guards/navigationGuards.js +59 -0
- package/wizard/src/features/state-management/machines/guards/saveGuards.js +21 -0
- package/wizard/src/features/state-management/machines/guards/triggerGuards.js +11 -0
- package/wizard/src/features/state-management/machines/helpers/triggerHelpers.js +12 -0
- package/wizard/src/features/state-management/machines/performance.js +56 -0
- package/wizard/src/features/state-management/machines/useFormMachine.js +412 -0
- package/wizard/src/features/trigger-action-system/components/ActionLoadingIndicator/ActionLoadingIndicator.js +46 -0
- package/wizard/src/features/trigger-action-system/components/ActionLoadingIndicator/ActionLoadingIndicator.module.css.js +30 -0
- package/wizard/src/features/trigger-action-system/components/ActionManager.js +108 -0
- package/wizard/src/features/trigger-action-system/components/ComponentAlert/ComponentAlert.js +10 -0
- package/wizard/src/features/trigger-action-system/components/ComponentAlert/ComponentAlert.module.css.js +8 -0
- package/wizard/src/features/trigger-action-system/utils/GenericTriggerEngine.js +376 -0
- package/wizard/src/features/validation-system/components/ValidationDebugger.js +69 -0
- package/wizard/src/features/validation-system/validation/ActionValidation.js +234 -0
- package/wizard/src/features/validation-system/validation/SchemaBuilder.js +239 -0
- package/wizard/src/features/validation-system/validation/ValidationCache.js +76 -0
- package/wizard/src/features/validation-system/validation/ValidationEngine.js +97 -0
- package/wizard/src/features/validation-system/validation/ValidationExecutor.js +138 -0
- package/wizard/src/features/validation-system/validation/tanstackSchemaAdapter.js +17 -0
- package/wizard/src/features/validation-system/validation/validationService.js +74 -0
- package/wizard/src/renderer/wizardRenderer.js +123 -0
- package/README.md +0 -147
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import * as e from "@radix-ui/react-checkbox";
|
|
4
|
+
import { Check as i } from "lucide-react";
|
|
5
|
+
import * as s from "react";
|
|
6
|
+
import { clsx as t } from "clsx";
|
|
7
|
+
import c from "./checkbox.module.css.js";
|
|
8
|
+
const l = s.forwardRef(({ className: r, ...m }, a) => /* @__PURE__ */ o(
|
|
9
|
+
e.Root,
|
|
10
|
+
{
|
|
11
|
+
ref: a,
|
|
12
|
+
className: t(c.checkbox, r),
|
|
13
|
+
...m,
|
|
14
|
+
children: /* @__PURE__ */ o(e.Indicator, { className: c.checkboxIndicator, children: /* @__PURE__ */ o(i, { className: c.checkboxIcon }) })
|
|
15
|
+
}
|
|
16
|
+
));
|
|
17
|
+
l.displayName = e.Root.displayName;
|
|
18
|
+
export {
|
|
19
|
+
l as Checkbox
|
|
20
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import * as a from "@radix-ui/react-dialog";
|
|
4
|
+
import { X as n } from "lucide-react";
|
|
5
|
+
import * as t from "react";
|
|
6
|
+
import { clsx as r } from "clsx";
|
|
7
|
+
import s from "./dialog.module.css.js";
|
|
8
|
+
const h = a.Root, p = a.Portal, d = t.forwardRef(({ className: o, ...e }, l) => /* @__PURE__ */ i(
|
|
9
|
+
a.Overlay,
|
|
10
|
+
{
|
|
11
|
+
ref: l,
|
|
12
|
+
className: r(s.dialogOverlay, o),
|
|
13
|
+
...e
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
d.displayName = a.Overlay.displayName;
|
|
17
|
+
const g = t.forwardRef(({ className: o, children: e, ...l }, c) => /* @__PURE__ */ m(p, { children: [
|
|
18
|
+
/* @__PURE__ */ i(d, {}),
|
|
19
|
+
/* @__PURE__ */ m(
|
|
20
|
+
a.Content,
|
|
21
|
+
{
|
|
22
|
+
ref: c,
|
|
23
|
+
className: r(s.dialogContent, o),
|
|
24
|
+
...l,
|
|
25
|
+
children: [
|
|
26
|
+
e,
|
|
27
|
+
/* @__PURE__ */ m(a.Close, { className: s.dialogClose, children: [
|
|
28
|
+
/* @__PURE__ */ i(n, { className: s.dialogCloseIcon }),
|
|
29
|
+
/* @__PURE__ */ i("span", { children: "Close" })
|
|
30
|
+
] })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] }));
|
|
35
|
+
g.displayName = a.Content.displayName;
|
|
36
|
+
const N = ({
|
|
37
|
+
className: o,
|
|
38
|
+
...e
|
|
39
|
+
}) => /* @__PURE__ */ i("div", { className: r(s.dialogHeader, o), ...e });
|
|
40
|
+
N.displayName = "DialogHeader";
|
|
41
|
+
const f = t.forwardRef(({ className: o, ...e }, l) => /* @__PURE__ */ i(
|
|
42
|
+
a.Title,
|
|
43
|
+
{
|
|
44
|
+
ref: l,
|
|
45
|
+
className: r(s.dialogTitle, o),
|
|
46
|
+
...e
|
|
47
|
+
}
|
|
48
|
+
));
|
|
49
|
+
f.displayName = a.Title.displayName;
|
|
50
|
+
const y = t.forwardRef(({ className: o, ...e }, l) => /* @__PURE__ */ i(
|
|
51
|
+
a.Description,
|
|
52
|
+
{
|
|
53
|
+
ref: l,
|
|
54
|
+
className: r(s.dialogDescription, o),
|
|
55
|
+
...e
|
|
56
|
+
}
|
|
57
|
+
));
|
|
58
|
+
y.displayName = a.Description.displayName;
|
|
59
|
+
export {
|
|
60
|
+
h as Dialog,
|
|
61
|
+
g as DialogContent,
|
|
62
|
+
y as DialogDescription,
|
|
63
|
+
N as DialogHeader,
|
|
64
|
+
d as DialogOverlay,
|
|
65
|
+
p as DialogPortal,
|
|
66
|
+
f as DialogTitle
|
|
67
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const o = "fb-dialogOverlay_GSMVm", l = "fb-dialogContent_neUay", a = "fb-dialogClose_QbWkj", i = "fb-dialogCloseIcon_kK8c6", e = "fb-dialogHeader_df1-u", d = "fb-dialogTitle_FS7k8", t = "fb-dialogDescription_uEgTa", g = {
|
|
3
|
+
dialogOverlay: o,
|
|
4
|
+
dialogContent: l,
|
|
5
|
+
dialogClose: a,
|
|
6
|
+
dialogCloseIcon: i,
|
|
7
|
+
dialogHeader: e,
|
|
8
|
+
dialogTitle: d,
|
|
9
|
+
dialogDescription: t
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
g as default,
|
|
13
|
+
a as dialogClose,
|
|
14
|
+
i as dialogCloseIcon,
|
|
15
|
+
l as dialogContent,
|
|
16
|
+
t as dialogDescription,
|
|
17
|
+
e as dialogHeader,
|
|
18
|
+
o as dialogOverlay,
|
|
19
|
+
d as dialogTitle
|
|
20
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { clsx as u } from "clsx";
|
|
4
|
+
import { ChevronLeft as h } from "lucide-react";
|
|
5
|
+
import i from "./form-header-base.module.css.js";
|
|
6
|
+
import { HeadingGroup as m, PreHeading as p, Heading as t, Button as C } from "@rijkshuisstijl-community/components-react";
|
|
7
|
+
const b = ({
|
|
8
|
+
children: r,
|
|
9
|
+
onPrev: e,
|
|
10
|
+
disabled: a = !1,
|
|
11
|
+
isDisplayOnly: n = !1,
|
|
12
|
+
...d
|
|
13
|
+
}) => /* @__PURE__ */ s(
|
|
14
|
+
C,
|
|
15
|
+
{
|
|
16
|
+
appearance: "subtle-button",
|
|
17
|
+
onClick: n || !e ? void 0 : (o) => {
|
|
18
|
+
o.preventDefault(), e();
|
|
19
|
+
},
|
|
20
|
+
disabled: a || n,
|
|
21
|
+
className: n ? i.prevButtonDisabled : "",
|
|
22
|
+
...d,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ l(h, {}),
|
|
25
|
+
r
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
), $ = ({
|
|
29
|
+
title: r,
|
|
30
|
+
stepNumber: e,
|
|
31
|
+
showStepNumber: a,
|
|
32
|
+
navigation: n,
|
|
33
|
+
onNavigate: d,
|
|
34
|
+
isEditing: f = !1,
|
|
35
|
+
children: o,
|
|
36
|
+
isDisplayOnly: v = !1
|
|
37
|
+
}) => {
|
|
38
|
+
const c = f || v;
|
|
39
|
+
return /* @__PURE__ */ s("div", { className: u(i.container, c && i.disabled), children: [
|
|
40
|
+
n?.previous?.enabled && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
41
|
+
b,
|
|
42
|
+
{
|
|
43
|
+
disabled: c,
|
|
44
|
+
isDisplayOnly: v,
|
|
45
|
+
onPrev: () => !c && d && d("previous"),
|
|
46
|
+
children: n.previous.label || "Terug"
|
|
47
|
+
}
|
|
48
|
+
) }),
|
|
49
|
+
/* @__PURE__ */ s(m, { children: [
|
|
50
|
+
a && e ? /* @__PURE__ */ l(p, { heading: r ? /* @__PURE__ */ l(t, { level: 2, children: r }) : /* @__PURE__ */ l(t, { level: 2, children: "" }), children: typeof e == "number" ? `Stap ${e}` : `Stap ${e?.current} van ${e?.total}` }) : null,
|
|
51
|
+
r && !(a && e) && /* @__PURE__ */ l(t, { level: 2, children: r })
|
|
52
|
+
] }),
|
|
53
|
+
o && /* @__PURE__ */ l("div", { className: i.additionalContent, children: o })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
$ as FormHeaderBase,
|
|
58
|
+
$ as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const t = "fb-container_p6qC4", n = "fb-disabled_EuvTp", e = "fb-prevButtonDisabled_Wj2Qp", o = "fb-additionalContent_0tppE", a = {
|
|
3
|
+
container: t,
|
|
4
|
+
disabled: n,
|
|
5
|
+
prevButtonDisabled: e,
|
|
6
|
+
additionalContent: o
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
o as additionalContent,
|
|
10
|
+
t as container,
|
|
11
|
+
a as default,
|
|
12
|
+
n as disabled,
|
|
13
|
+
e as prevButtonDisabled
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { clsx as e } from "clsx";
|
|
5
|
+
import i from "./input.module.css.js";
|
|
6
|
+
const a = s.forwardRef(
|
|
7
|
+
({ className: t, type: r, ...o }, m) => /* @__PURE__ */ p(
|
|
8
|
+
"input",
|
|
9
|
+
{
|
|
10
|
+
type: r,
|
|
11
|
+
className: e(i.input, t),
|
|
12
|
+
ref: m,
|
|
13
|
+
...o
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
a.displayName = "Input";
|
|
18
|
+
export {
|
|
19
|
+
a as Input
|
|
20
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "@radix-ui/react-radio-group";
|
|
4
|
+
import { Circle as d } from "lucide-react";
|
|
5
|
+
import * as t from "react";
|
|
6
|
+
import { clsx as s } from "clsx";
|
|
7
|
+
import a from "./radio-group.module.css.js";
|
|
8
|
+
const c = t.forwardRef(({ className: i, ...e }, m) => /* @__PURE__ */ r(
|
|
9
|
+
o.Root,
|
|
10
|
+
{
|
|
11
|
+
className: s(a.radioGroup, i),
|
|
12
|
+
...e,
|
|
13
|
+
ref: m
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
c.displayName = o.Root.displayName;
|
|
17
|
+
const p = t.forwardRef(({ className: i, ...e }, m) => /* @__PURE__ */ r(
|
|
18
|
+
o.Item,
|
|
19
|
+
{
|
|
20
|
+
ref: m,
|
|
21
|
+
className: s(a.radioGroupItem, i),
|
|
22
|
+
...e,
|
|
23
|
+
children: /* @__PURE__ */ r(o.Indicator, { className: a.radioIndicator, children: /* @__PURE__ */ r(d, { className: a.radioIndicatorIcon }) })
|
|
24
|
+
}
|
|
25
|
+
));
|
|
26
|
+
p.displayName = o.Item.displayName;
|
|
27
|
+
export {
|
|
28
|
+
c as RadioGroup,
|
|
29
|
+
p as RadioGroupItem
|
|
30
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const o = "fb-radioGroup_PqpPn", r = "fb-radioGroupItem_r91M1", a = "fb-radioIndicator_PFyGX", d = "fb-radioIndicatorIcon_vSsbY", i = {
|
|
3
|
+
radioGroup: o,
|
|
4
|
+
radioGroupItem: r,
|
|
5
|
+
radioIndicator: a,
|
|
6
|
+
radioIndicatorIcon: d
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
i as default,
|
|
10
|
+
o as radioGroup,
|
|
11
|
+
r as radioGroupItem,
|
|
12
|
+
a as radioIndicator,
|
|
13
|
+
d as radioIndicatorIcon
|
|
14
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import * as e from "@radix-ui/react-select";
|
|
4
|
+
import { ChevronDown as m, Check as f, ChevronUp as S } from "lucide-react";
|
|
5
|
+
import * as s from "react";
|
|
6
|
+
import { clsx as c } from "clsx";
|
|
7
|
+
import a from "./select.module.css.js";
|
|
8
|
+
const D = e.Root, T = e.Value, h = s.forwardRef(({ className: o, children: r, ...t }, n) => /* @__PURE__ */ i(
|
|
9
|
+
e.Trigger,
|
|
10
|
+
{
|
|
11
|
+
ref: n,
|
|
12
|
+
className: c(a.selectTrigger, o),
|
|
13
|
+
...t,
|
|
14
|
+
children: [
|
|
15
|
+
r,
|
|
16
|
+
/* @__PURE__ */ l(e.Icon, { asChild: !0, children: /* @__PURE__ */ l(m, { className: a.selectTriggerIcon }) })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
));
|
|
20
|
+
h.displayName = e.Trigger.displayName;
|
|
21
|
+
const p = s.forwardRef(({ className: o, ...r }, t) => /* @__PURE__ */ l(
|
|
22
|
+
e.ScrollUpButton,
|
|
23
|
+
{
|
|
24
|
+
ref: t,
|
|
25
|
+
className: c(a.selectScrollUpButton, o),
|
|
26
|
+
...r,
|
|
27
|
+
children: /* @__PURE__ */ l(S, { className: a.selectScrollIcon })
|
|
28
|
+
}
|
|
29
|
+
));
|
|
30
|
+
p.displayName = e.ScrollUpButton.displayName;
|
|
31
|
+
const d = s.forwardRef(({ className: o, ...r }, t) => /* @__PURE__ */ l(
|
|
32
|
+
e.ScrollDownButton,
|
|
33
|
+
{
|
|
34
|
+
ref: t,
|
|
35
|
+
className: c(a.selectScrollDownButton, o),
|
|
36
|
+
...r,
|
|
37
|
+
children: /* @__PURE__ */ l(m, { className: a.selectScrollIcon })
|
|
38
|
+
}
|
|
39
|
+
));
|
|
40
|
+
d.displayName = e.ScrollDownButton.displayName;
|
|
41
|
+
const I = s.forwardRef(({ className: o, children: r, position: t = "popper", ...n }, N) => /* @__PURE__ */ l(e.Portal, { children: /* @__PURE__ */ i(
|
|
42
|
+
e.Content,
|
|
43
|
+
{
|
|
44
|
+
ref: N,
|
|
45
|
+
className: c(
|
|
46
|
+
a.selectContent,
|
|
47
|
+
t === "popper" && a.popper,
|
|
48
|
+
o
|
|
49
|
+
),
|
|
50
|
+
position: t,
|
|
51
|
+
avoidCollisions: !0,
|
|
52
|
+
collisionPadding: 10,
|
|
53
|
+
sideOffset: 5,
|
|
54
|
+
alignOffset: 0,
|
|
55
|
+
hideWhenDetached: !1,
|
|
56
|
+
...n,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ l(p, {}),
|
|
59
|
+
/* @__PURE__ */ l(
|
|
60
|
+
e.Viewport,
|
|
61
|
+
{
|
|
62
|
+
className: c(
|
|
63
|
+
a.selectViewport,
|
|
64
|
+
t === "popper" && a.popper
|
|
65
|
+
),
|
|
66
|
+
children: r
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ l(d, {})
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
) }));
|
|
73
|
+
I.displayName = e.Content.displayName;
|
|
74
|
+
const y = s.forwardRef(({ className: o, ...r }, t) => /* @__PURE__ */ l(
|
|
75
|
+
e.Label,
|
|
76
|
+
{
|
|
77
|
+
ref: t,
|
|
78
|
+
className: c(a.selectLabel, o),
|
|
79
|
+
...r
|
|
80
|
+
}
|
|
81
|
+
));
|
|
82
|
+
y.displayName = e.Label.displayName;
|
|
83
|
+
const w = s.forwardRef(({ className: o, children: r, ...t }, n) => /* @__PURE__ */ i(
|
|
84
|
+
e.Item,
|
|
85
|
+
{
|
|
86
|
+
ref: n,
|
|
87
|
+
className: c(a.selectItem, o),
|
|
88
|
+
...t,
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ l("span", { className: a.selectItemIndicator, children: /* @__PURE__ */ l(e.ItemIndicator, { children: /* @__PURE__ */ l(f, { className: a.selectItemIndicatorIcon }) }) }),
|
|
91
|
+
/* @__PURE__ */ l(e.ItemText, { children: r })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
));
|
|
95
|
+
w.displayName = e.Item.displayName;
|
|
96
|
+
const u = s.forwardRef(({ className: o, ...r }, t) => /* @__PURE__ */ l(
|
|
97
|
+
e.Separator,
|
|
98
|
+
{
|
|
99
|
+
ref: t,
|
|
100
|
+
className: c(a.selectSeparator, o),
|
|
101
|
+
...r
|
|
102
|
+
}
|
|
103
|
+
));
|
|
104
|
+
u.displayName = e.Separator.displayName;
|
|
105
|
+
export {
|
|
106
|
+
D as Select,
|
|
107
|
+
I as SelectContent,
|
|
108
|
+
w as SelectItem,
|
|
109
|
+
y as SelectLabel,
|
|
110
|
+
d as SelectScrollDownButton,
|
|
111
|
+
p as SelectScrollUpButton,
|
|
112
|
+
u as SelectSeparator,
|
|
113
|
+
h as SelectTrigger,
|
|
114
|
+
T as SelectValue
|
|
115
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = "fb-selectTrigger_dj84x", t = "fb-selectTriggerIcon_V8dav", c = "fb-selectScrollUpButton_c6WZR", o = "fb-selectScrollDownButton_kmWY4", l = "fb-selectScrollIcon_IZbZG", s = "fb-selectContent_uJ-ZX", n = "fb-popper_uKkq9", r = "fb-selectViewport_wcTaR", I = "fb-selectLabel_hb7ig", a = "fb-selectItem_f23oZ", p = "fb-selectItemIndicator_PD-WQ", b = "fb-selectItemIndicatorIcon_kgB1I", i = "fb-selectSeparator_DS7X2", f = {
|
|
3
|
+
selectTrigger: e,
|
|
4
|
+
selectTriggerIcon: t,
|
|
5
|
+
selectScrollUpButton: c,
|
|
6
|
+
selectScrollDownButton: o,
|
|
7
|
+
selectScrollIcon: l,
|
|
8
|
+
selectContent: s,
|
|
9
|
+
popper: n,
|
|
10
|
+
selectViewport: r,
|
|
11
|
+
selectLabel: I,
|
|
12
|
+
selectItem: a,
|
|
13
|
+
selectItemIndicator: p,
|
|
14
|
+
selectItemIndicatorIcon: b,
|
|
15
|
+
selectSeparator: i
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
f as default,
|
|
19
|
+
n as popper,
|
|
20
|
+
s as selectContent,
|
|
21
|
+
a as selectItem,
|
|
22
|
+
p as selectItemIndicator,
|
|
23
|
+
b as selectItemIndicatorIcon,
|
|
24
|
+
I as selectLabel,
|
|
25
|
+
o as selectScrollDownButton,
|
|
26
|
+
l as selectScrollIcon,
|
|
27
|
+
c as selectScrollUpButton,
|
|
28
|
+
i as selectSeparator,
|
|
29
|
+
e as selectTrigger,
|
|
30
|
+
t as selectTriggerIcon,
|
|
31
|
+
r as selectViewport
|
|
32
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import * as e from "@radix-ui/react-dialog";
|
|
4
|
+
import { X as p } from "lucide-react";
|
|
5
|
+
import * as l from "react";
|
|
6
|
+
import { clsx as i } from "clsx";
|
|
7
|
+
import a from "./sheet.module.css.js";
|
|
8
|
+
const w = e.Root, h = e.Portal, c = l.forwardRef(({ className: s, ...t }, o) => /* @__PURE__ */ r(
|
|
9
|
+
e.Overlay,
|
|
10
|
+
{
|
|
11
|
+
className: i(a.sheetOverlay, s),
|
|
12
|
+
...t,
|
|
13
|
+
ref: o
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
c.displayName = e.Overlay.displayName;
|
|
17
|
+
const N = l.forwardRef(({ side: s = "right", className: t, children: o, ...n }, d) => /* @__PURE__ */ m(h, { children: [
|
|
18
|
+
/* @__PURE__ */ r(c, {}),
|
|
19
|
+
/* @__PURE__ */ m(
|
|
20
|
+
e.Content,
|
|
21
|
+
{
|
|
22
|
+
ref: d,
|
|
23
|
+
className: i(
|
|
24
|
+
a.sheetContent,
|
|
25
|
+
a[`side-${s}`],
|
|
26
|
+
t
|
|
27
|
+
),
|
|
28
|
+
...n,
|
|
29
|
+
children: [
|
|
30
|
+
o,
|
|
31
|
+
/* @__PURE__ */ m(e.Close, { className: a.sheetClose, children: [
|
|
32
|
+
/* @__PURE__ */ r(p, { className: a.sheetCloseIcon }),
|
|
33
|
+
/* @__PURE__ */ r("span", { children: "Close" })
|
|
34
|
+
] })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] }));
|
|
39
|
+
N.displayName = e.Content.displayName;
|
|
40
|
+
const f = ({
|
|
41
|
+
className: s,
|
|
42
|
+
...t
|
|
43
|
+
}) => /* @__PURE__ */ r("div", { className: i(a.sheetHeader, s), ...t });
|
|
44
|
+
f.displayName = "SheetHeader";
|
|
45
|
+
const y = l.forwardRef(({ className: s, ...t }, o) => /* @__PURE__ */ r(
|
|
46
|
+
e.Title,
|
|
47
|
+
{
|
|
48
|
+
ref: o,
|
|
49
|
+
className: i(a.sheetTitle, s),
|
|
50
|
+
...t
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
y.displayName = e.Title.displayName;
|
|
54
|
+
const C = l.forwardRef(({ className: s, ...t }, o) => /* @__PURE__ */ r(
|
|
55
|
+
e.Description,
|
|
56
|
+
{
|
|
57
|
+
ref: o,
|
|
58
|
+
className: i(a.sheetDescription, s),
|
|
59
|
+
...t
|
|
60
|
+
}
|
|
61
|
+
));
|
|
62
|
+
C.displayName = e.Description.displayName;
|
|
63
|
+
export {
|
|
64
|
+
w as Sheet,
|
|
65
|
+
N as SheetContent,
|
|
66
|
+
C as SheetDescription,
|
|
67
|
+
f as SheetHeader,
|
|
68
|
+
c as SheetOverlay,
|
|
69
|
+
h as SheetPortal,
|
|
70
|
+
y as SheetTitle
|
|
71
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = "fb-sheetOverlay_2nFRz", t = "fb-sheetOverlayFadeIn_AS-42", s = "fb-sheetOverlayFadeOut_Y-hE4", o = "fb-sheetContent_p2PyE", i = "fb-slideInFromTop_ujZFr", n = "fb-slideOutToTop_sjz0S", l = "fb-slideInFromBottom_5kG78", d = "fb-slideOutToBottom_03WBw", h = "fb-slideInFromLeft_iFt5a", r = "fb-slideOutToLeft_kRHa5", f = "fb-slideInFromRight_elDbR", c = "fb-slideOutToRight_HPV1P", b = "fb-sheetClose_sq3cW", F = "fb-sheetCloseIcon_2Z7S1", O = "fb-sheetHeader_w9TtP", a = "fb-sheetFooter_XN1p0", T = "fb-sheetTitle_F6nNH", _ = "fb-sheetDescription_AzWJb", m = {
|
|
3
|
+
sheetOverlay: e,
|
|
4
|
+
sheetOverlayFadeIn: t,
|
|
5
|
+
sheetOverlayFadeOut: s,
|
|
6
|
+
sheetContent: o,
|
|
7
|
+
"side-top": "fb-side-top_vnDBA",
|
|
8
|
+
slideInFromTop: i,
|
|
9
|
+
slideOutToTop: n,
|
|
10
|
+
"side-bottom": "fb-side-bottom_8Qo-6",
|
|
11
|
+
slideInFromBottom: l,
|
|
12
|
+
slideOutToBottom: d,
|
|
13
|
+
"side-left": "fb-side-left_iSyK6",
|
|
14
|
+
slideInFromLeft: h,
|
|
15
|
+
slideOutToLeft: r,
|
|
16
|
+
"side-right": "fb-side-right_q-l6-",
|
|
17
|
+
slideInFromRight: f,
|
|
18
|
+
slideOutToRight: c,
|
|
19
|
+
sheetClose: b,
|
|
20
|
+
sheetCloseIcon: F,
|
|
21
|
+
sheetHeader: O,
|
|
22
|
+
sheetFooter: a,
|
|
23
|
+
sheetTitle: T,
|
|
24
|
+
sheetDescription: _
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
m as default,
|
|
28
|
+
b as sheetClose,
|
|
29
|
+
F as sheetCloseIcon,
|
|
30
|
+
o as sheetContent,
|
|
31
|
+
_ as sheetDescription,
|
|
32
|
+
a as sheetFooter,
|
|
33
|
+
O as sheetHeader,
|
|
34
|
+
e as sheetOverlay,
|
|
35
|
+
t as sheetOverlayFadeIn,
|
|
36
|
+
s as sheetOverlayFadeOut,
|
|
37
|
+
T as sheetTitle,
|
|
38
|
+
l as slideInFromBottom,
|
|
39
|
+
h as slideInFromLeft,
|
|
40
|
+
f as slideInFromRight,
|
|
41
|
+
i as slideInFromTop,
|
|
42
|
+
d as slideOutToBottom,
|
|
43
|
+
r as slideOutToLeft,
|
|
44
|
+
c as slideOutToRight,
|
|
45
|
+
n as slideOutToTop
|
|
46
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { clsx as m } from "clsx";
|
|
5
|
+
import s from "./textarea.module.css.js";
|
|
6
|
+
const x = o.forwardRef(
|
|
7
|
+
({ className: e, ...r }, t) => /* @__PURE__ */ a(
|
|
8
|
+
"textarea",
|
|
9
|
+
{
|
|
10
|
+
className: m(s.textarea, e),
|
|
11
|
+
ref: t,
|
|
12
|
+
...r
|
|
13
|
+
}
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
x.displayName = "Textarea";
|
|
17
|
+
export {
|
|
18
|
+
x as Textarea
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as m, jsx as d } from "react/jsx-runtime";
|
|
3
|
+
function o({
|
|
4
|
+
invalid: e,
|
|
5
|
+
errorMessage: r,
|
|
6
|
+
className: i = "",
|
|
7
|
+
input: t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ m("div", { className: `form-field-wrapper ${i}`, children: [
|
|
10
|
+
t,
|
|
11
|
+
e && r && /* @__PURE__ */ d("div", { className: "form-field-error mt-2 text-sm text-red-600", children: r })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
o as FormFieldWrapper
|
|
16
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
const h = (t) => /* @__PURE__ */ l(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
width: "12",
|
|
7
|
+
height: "12",
|
|
8
|
+
viewBox: "0 0 12 12",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
...t,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ e("title", { children: "Check" }),
|
|
14
|
+
/* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M10.315 1.54056C10.0328 1.33206 9.63921 1.37231 9.40581 1.63331L5.43561 6.07521L3.04891 4.00781C2.79646 3.78956 2.42391 3.78661 2.16951 4.00101C1.91411 4.21511 1.85261 4.58276 2.02351 4.86841L4.91461 9.69336C5.03666 9.89696 5.25641 10.022 5.49371 10.0227H5.49616C5.73246 10.0227 5.95221 9.89941 6.07526 9.69701L10.4903 2.43701C10.6724 2.13771 10.5963 1.74901 10.315 1.54056Z",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
}
|
|
20
|
+
) })
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
h as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
const l = (e) => /* @__PURE__ */ i(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "16",
|
|
8
|
+
height: "16",
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "none",
|
|
11
|
+
...e,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ t("title", { children: "Chevron Right" }),
|
|
14
|
+
/* @__PURE__ */ t(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M4.50918 13.5412C4.00833 13.0407 3.80799 12.39 4.35893 11.8895L8.21551 8.0356L4.30884 4.13162C3.80799 3.6311 3.95824 2.98044 4.4591 2.47993C4.95995 1.97942 5.61107 1.77921 6.11192 2.32978L10.9201 7.13468C11.421 7.63519 11.421 8.43601 10.9201 8.93652L6.16201 13.6914C5.66115 14.1919 5.01004 14.0417 4.50918 13.5412Z",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
l as default
|
|
26
|
+
};
|