@levo-so/studio 0.1.114 → 0.2.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.
Files changed (49) hide show
  1. package/{BillingStep-DjNmSVkY.js → BillingStep-D4P_J_PJ.js} +1 -1
  2. package/Button-CmwbMGFV.js +505 -0
  3. package/{CollectionField-DrJuHNsg.js → CollectionField-D25BVweU.js} +29 -77
  4. package/{DateTimeWidget-CzBq92zC.js → DateTimeWidget-CG9ylSgA.js} +8 -8
  5. package/{EntryCard-C2KA5HMX.js → EntryCard-FxB1uCis.js} +4 -4
  6. package/{KBChatWidget-CPrg_etS.js → KBChatWidget-_kcueoxi.js} +388 -360
  7. package/{LoginCard-S_2jls6v.js → LoginCard-D8ZVZjbR.js} +3 -3
  8. package/{LoginForm-DeYsk4kd.js → LoginForm-Cg5F4guy.js} +2 -2
  9. package/{LoginModal-BbDfB4S9.js → LoginModal-Cn6Nsuz3.js} +4 -4
  10. package/{MessageCard-x6jPClGi.js → MessageCard-Bx6pC8wW.js} +2 -2
  11. package/{MessageFooter-CHuPnL_D.js → MessageFooter-CsY4uBIJ.js} +2 -2
  12. package/{ModalManager-DQVNPEuG.js → ModalManager-BIKunQ8D.js} +1 -1
  13. package/{PendingApprovalCard-C06B_Tg-.js → PendingApprovalCard-0ORO4y9v.js} +3 -3
  14. package/{PhoneWidget-DdX8_-2v.js → PhoneWidget-CZr1PZ4G.js} +3 -3
  15. package/{PopupRenderer-Bncp54gB-DysCmUdR.js → PopupRenderer-Bncp54gB-BOJj-taW.js} +15 -16
  16. package/{ProfileCard-DGanb4BY.js → ProfileCard-C2lXYYkC.js} +9 -8
  17. package/RichTextWidget-Dcq-NsEi.js +748 -0
  18. package/{RteThemeProvider-LFGzAYi1.js → RteThemeProvider-DxYOzcck.js} +1 -1
  19. package/Spinner-wdUA5kVe.js +7 -0
  20. package/{StripePaymentModal-BsYNQ4MB.js → StripePaymentModal-DfFlmYsp.js} +17 -17
  21. package/{bookingCard-CUv7WgqT.js → bookingCard-CZ3Jj9sL.js} +218 -217
  22. package/{dialog-LRLdr3kq.js → dialog-CznAfWcE.js} +32 -32
  23. package/{dist-D-y51gmU.js → dist-B91ZHPA-.js} +1103 -1261
  24. package/index.d.ts +0 -2
  25. package/index.js +2719 -2269
  26. package/kbChat-BpJkUcpv.js +163 -0
  27. package/{nodeAlignment-BC_Uferw.js → nodeAlignment-DS9_DLGB.js} +31 -23
  28. package/package.json +10 -10
  29. package/pillChrome-B4uuWJhY.js +16 -0
  30. package/studio.css +1 -1
  31. package/{useLogin-B2HHZxTi.js → useLogin-mEuzGlb2.js} +1 -1
  32. package/Button-Uwxgkriw.js +0 -1657
  33. package/RichTextWidget-BfZ3sCcx.js +0 -113
  34. package/Toolbar-6IXR9qAh.js +0 -645
  35. package/collection.d.ts +0 -500
  36. package/collection.js +0 -30
  37. package/inlineRteTheme-abXxag3B.js +0 -9
  38. package/kbChat-DCrdcXir.js +0 -166
  39. package/pillChrome-CQoJfFk3.js +0 -16
  40. package/utils-NDllPDUz.js +0 -5
  41. /package/{AuthProvider-C6bvedwF.js → AuthProvider-CFQqiIf1.js} +0 -0
  42. /package/{Beams-DboMUgCv.js → Beams-CDt4Mt3M.js} +0 -0
  43. /package/{Dots-a8xSboDv.js → Dots-DadBreAs.js} +0 -0
  44. /package/{Gradient-NacpoDCM.js → Gradient-CPoU73FR.js} +0 -0
  45. /package/{Grid-BJQvxnks.js → Grid-CAXyHMvM.js} +0 -0
  46. /package/{Popover-C_IQMM8H.js → Popover-Dt4--ulK.js} +0 -0
  47. /package/{Waves-DUuT_IFr.js → Waves-DPbfUhRX.js} +0 -0
  48. /package/{authentication-TdyaDNTn.js → authentication-BSNkm1-l.js} +0 -0
  49. /package/{card-D5fPArfa.js → card-DFSlAwCq.js} +0 -0
package/collection.d.ts DELETED
@@ -1,500 +0,0 @@
1
- import { AsyncPaginateProps } from 'react-select-async-paginate';
2
- import { CommonFieldInterfacesList } from '@levo-so/core';
3
- import { CSSProperties } from 'react';
4
- import { default as default_2 } from 'react';
5
- import { Extension } from '@tiptap/core';
6
- import { FieldInterfacesList } from '@levo-so/core';
7
- import { FieldKindList } from '@levo-so/core';
8
- import { FieldValues } from 'react-hook-form';
9
- import { ForwardRefExoticComponent } from 'react';
10
- import { Icon } from '@tabler/icons-react';
11
- import { IFieldError } from '@levo-so/core';
12
- import { ILemaCollection } from '@levo-so/core';
13
- import { ILemaField } from '@levo-so/core';
14
- import { ILemaFieldOptions } from '@levo-so/core';
15
- import { ILogicRule } from '@levo-so/core';
16
- import { JSX } from 'react/jsx-runtime';
17
- import { Mark } from '@tiptap/core';
18
- import { MediaKindList } from '@levo-so/core';
19
- import { PlaceholderOptions } from '@tiptap/extensions';
20
- import { ReactElement } from 'react';
21
- import { RecipeVariants } from '@vanilla-extract/recipes';
22
- import { RefAttributes } from 'react';
23
- import { RegisterOptions } from 'react-hook-form';
24
- import { RuntimeFn } from '@vanilla-extract/recipes';
25
- import { SelectionOptions } from '@tiptap/extensions';
26
- import { StarterKitOptions } from '@tiptap/starter-kit';
27
- import { SuperscriptExtensionOptions } from '@tiptap/extension-superscript';
28
- import { TypographyOptions } from '@tiptap/extension-typography';
29
- import { UniqueIDOptions } from '@tiptap/extension-unique-id';
30
- import { UseFormReturn } from 'react-hook-form';
31
- import { UseFormSetError } from 'react-hook-form';
32
-
33
- export declare const areAllFieldsHidden: (fields: ILemaField[]) => boolean;
34
-
35
- export declare const AsyncSelectPaginate: default_2.FC<AsyncPaginateProps<any, any, any, any>>;
36
-
37
- /**
38
- * `children` are rendered as an extra trailing group, separated from the
39
- * built-in clusters by a vertical divider. Lets host apps (e.g. dashboard)
40
- * append AI / variables / custom buttons without re-implementing the rest.
41
- */
42
- export declare const CollectionEditorToolbar: React.FC<{
43
- children?: React.ReactNode;
44
- }>;
45
-
46
- /**
47
- * Collection-scoped field wrapper.
48
- * Composes levocn Field primitives with collection theme overrides.
49
- * Replaces the old FieldWrapper + FormLabel + FormHelperText + ErrorMessage.
50
- */
51
- declare function CollectionFieldWrapper({ label, error, helperText, topHelperText, isRequired, readOnly, htmlFor, className, children, ref, }: {
52
- label?: React.ReactNode;
53
- error?: React.ReactNode;
54
- helperText?: string;
55
- topHelperText?: string;
56
- isRequired?: boolean;
57
- readOnly?: boolean;
58
- htmlFor?: string;
59
- className?: string;
60
- children: React.ReactNode;
61
- ref?: React.Ref<HTMLDivElement>;
62
- }): JSX.Element;
63
- export { CollectionFieldWrapper }
64
- export { CollectionFieldWrapper as FieldWrapper }
65
-
66
- export declare const CollectionForm: default_2.FC<ICollectionFormProps>;
67
-
68
- export declare const CollectionFormBuilder: default_2.FC<ICollectionFormBuilderProps>;
69
-
70
- export declare const CollectionFormRenderer: default_2.FC<ICollectionFormRendererProps>;
71
-
72
- /**
73
- * Collection-scoped input.
74
- * Plain input when no icons, InputGroup composition when icons are present.
75
- * Sizing (height, fontSize, borderRadius) comes from collectionThemeVars.
76
- */
77
- declare function CollectionInput({ leftIcon, rightIcon, className, ...props }: ICollectionInputProps): JSX.Element;
78
- export { CollectionInput }
79
- export { CollectionInput as Input }
80
-
81
- /** Styled label with optional required indicator. Replaces duplicated Label + asterisk pattern. */
82
- export declare function CollectionLabel({ label, isRequired, htmlFor, }: {
83
- label?: React.ReactNode;
84
- isRequired?: boolean;
85
- htmlFor?: string;
86
- }): JSX.Element | null;
87
-
88
- export declare const createWidget: (component: WidgetComponent) => WidgetComponent;
89
-
90
- /** Curated list of currency symbols available to schema authors. */
91
- export declare const CURRENCY_SYMBOLS: ICurrencySymbolOption[];
92
-
93
- export declare const DEFAULT_WIDGET_REGISTRY: IWidgetRegistry;
94
-
95
- export declare const errorsToParam: (data: Record<string, string[]>) => ParamError[];
96
-
97
- export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & FieldVariants): JSX.Element;
98
-
99
- export declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
100
-
101
- export declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): JSX.Element;
102
-
103
- export declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
104
- errors?: Array<{
105
- message?: string;
106
- } | undefined>;
107
- }): JSX.Element | null;
108
-
109
- export declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
110
-
111
- export declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): JSX.Element;
112
-
113
- export declare const FieldRenderer: default_2.FC<{
114
- schema: ILemaCollection | null;
115
- field: ILemaField;
116
- widgets?: Partial<IWidgetRegistry>;
117
- settings?: {
118
- enableVerification?: boolean;
119
- };
120
- }>;
121
-
122
- export declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): JSX.Element;
123
-
124
- declare type FieldVariants = NonNullable<RecipeVariants<typeof fieldVariants>>;
125
-
126
- declare const fieldVariants: RuntimeFn< {
127
- orientation: {
128
- vertical: {
129
- flexDirection: "column";
130
- };
131
- horizontal: {
132
- flexDirection: "row";
133
- alignItems: "center";
134
- selectors: {
135
- "&:has(>[data-slot=field-content])": {
136
- alignItems: "start";
137
- };
138
- };
139
- };
140
- };
141
- }>;
142
-
143
- export declare const FormBuilder: default_2.FC<IFormBuilderProps>;
144
-
145
- declare type FormValidationOptionsType = Partial<Pick<RegisterOptions, "required" | "min" | "max" | "minLength" | "maxLength" | "pattern" | "validate">>;
146
-
147
- export declare const FormVariantOptions: readonly [{
148
- readonly value: "default";
149
- readonly label: "Classic";
150
- readonly description: "All fields displayed together in a single view";
151
- }, {
152
- readonly value: "steps";
153
- readonly label: "Multi-Step";
154
- readonly description: "Each section becomes a step — navigate with next/previous buttons";
155
- }, {
156
- readonly value: "single-field";
157
- readonly label: "One at a Time";
158
- readonly description: "Typeform-style — one field per screen with smooth transitions";
159
- }, {
160
- readonly value: "steps-2";
161
- readonly label: "Conversational Steps";
162
- readonly description: "Multi-step with typeform-style field presentation";
163
- }];
164
-
165
- export declare type FormVariantType = (typeof FormVariantOptions)[number]["value"];
166
-
167
- /**
168
- * Extensions for the collection form rich text editor.
169
- *
170
- * Mirrors the legacy editor-package kit: StarterKit minus blockquote,
171
- * codeBlock and horizontalRule (collection forms never used these), with
172
- * super/subscript marks, unique IDs for diffable nodes, typography
173
- * shortcuts, selection decoration, and node-level alignment.
174
- */
175
- export declare const getCollectionEditorExtensions: (options?: {
176
- placeholder?: string;
177
- }) => (Extension<StarterKitOptions, any> | Extension<PlaceholderOptions, any> | Extension<TypographyOptions, any> | Extension<SelectionOptions, any> | Mark<SuperscriptExtensionOptions, any> | Extension<NodeAlignmentOptions, any> | Extension<UniqueIDOptions, any>)[];
178
-
179
- export declare const getDefaultFieldValues: (fields: ILemaField[]) => Record<string, unknown>;
180
-
181
- export declare const getDefaultValuesByKind: (schema: ILemaCollection | null) => Record<string, unknown>;
182
-
183
- export declare const getFieldValidations: (field: ILemaField, customValidator?: (value: any) => boolean | string) => FormValidationOptionsType;
184
-
185
- export declare const getInitialValues: (schema: ILemaCollection, data?: Record<string, unknown>) => Record<string, unknown>;
186
-
187
- export declare const getKindFromMimetype: (mimetype: string) => (typeof MediaKindList)[number];
188
-
189
- export declare const getValueIfNotUndefined: (value: unknown) => {} | null;
190
-
191
- export declare interface IBaseInputProps {
192
- name: string;
193
- id?: string;
194
- value?: any;
195
- placeholder?: string;
196
- disabled?: boolean;
197
- readOnly?: boolean;
198
- label?: string;
199
- isRequired?: boolean;
200
- error?: any;
201
- touched?: any;
202
- helperText?: string;
203
- labelStyles?: string;
204
- containerStyles?: string;
205
- }
206
-
207
- export declare interface ICollectionFormBuilderProps extends Omit<ILevoFormContext, "schema"> {
208
- formVariant?: FormVariantType;
209
- collection_id: string;
210
- hiddenFields?: string[];
211
- workspace_id?: string;
212
- }
213
-
214
- export declare interface ICollectionFormProps extends Omit<ILevoFormContext, "onSuccess" | "externalInitialValues" | "onError" | "isLoggedIn" | "toastConfig" | "onFormDirty" | "disableCaptcha" | "enableVerification"> {
215
- hiddenFields?: string[];
216
- isLoading?: boolean;
217
- initialValues?: any;
218
- onSubmit?: (values: any) => void;
219
- disableCaptcha?: boolean;
220
- enableVerification?: boolean;
221
- }
222
-
223
- export declare interface ICollectionFormRendererProps extends Omit<ILevoFormContext, "schema"> {
224
- formVariant?: FormVariantType;
225
- fetchedSchema?: ILevoFormContext["schema"];
226
- hiddenFields?: string[];
227
- workspace_id?: string;
228
- isLoading?: boolean;
229
- }
230
-
231
- export declare interface ICollectionInputProps extends React.ComponentProps<"input"> {
232
- leftIcon?: React.ReactNode;
233
- rightIcon?: React.ReactNode;
234
- }
235
-
236
- declare interface ICommonRendererProps {
237
- schema: ILemaCollection | null;
238
- field: ILemaField;
239
- settings?: {
240
- enableVerification?: boolean;
241
- };
242
- }
243
-
244
- export declare interface ICurrencySymbolOption {
245
- label: string;
246
- value: string;
247
- code: string;
248
- }
249
-
250
- export declare interface IFieldControlProps {
251
- error?: any;
252
- touched?: any;
253
- helperText?: string;
254
- children: ReactElement;
255
- isDisabled?: boolean;
256
- isReadOnly?: boolean;
257
- containerStyles?: string;
258
- inputContainerStyles?: string;
259
- }
260
-
261
- export declare interface IFormBuilderProps extends ILevoFormContext {
262
- formVariant?: FormVariantType;
263
- }
264
-
265
- export declare interface IFormRendererProps extends ILevoFormContext {
266
- children: default_2.ReactNode;
267
- variant?: FormVariantType;
268
- }
269
-
270
- export declare interface IFormSelectOptions {
271
- label: string;
272
- value: any;
273
- }
274
-
275
- export declare interface IFormVariantProps {
276
- schema: ILemaCollection;
277
- isInternal?: boolean;
278
- isDisabled?: boolean;
279
- containerStyles?: string;
280
- submitButtonConfig?: {
281
- text?: string;
282
- show?: boolean;
283
- styles?: string;
284
- };
285
- uiConfig?: {
286
- hideSectionHeadings?: boolean;
287
- hideFormHeading?: boolean;
288
- };
289
- }
290
-
291
- export declare interface ILevoFormContext {
292
- schema: ILemaCollection | null;
293
- isDisabled?: boolean;
294
- containerStyles?: string;
295
- submitButtonConfig: {
296
- text?: string;
297
- show?: boolean;
298
- styles?: string;
299
- };
300
- uiConfig?: {
301
- hideSectionHeadings?: boolean;
302
- hideFormHeading?: boolean;
303
- };
304
- toastConfig?: {
305
- showSuccessToast?: boolean;
306
- successToastText?: string;
307
- suppressOnBooking?: boolean;
308
- };
309
- onError?: (v: any) => void;
310
- disableCaptcha?: boolean;
311
- enableVerification?: boolean;
312
- theme?: {
313
- className?: string;
314
- style?: React.CSSProperties;
315
- cssReset?: boolean;
316
- };
317
- isLoggedIn?: boolean;
318
- /**
319
- * Logged-in member's contact details, used only to prefill the schema's designated
320
- * email_field/mobile_field. Strictly the fields consumed — pass anything else via
321
- * externalInitialValues.
322
- */
323
- account?: {
324
- email?: string | null;
325
- mobile?: string | null;
326
- };
327
- externalInitialValues?: Record<string, any>;
328
- onSuccess?: (v: {
329
- schemaId: string;
330
- response: any;
331
- meta?: any;
332
- }) => void;
333
- onFormView?: (v: {
334
- schemaId: string;
335
- }) => void;
336
- onFormDirty?: (v: {
337
- schemaId: string;
338
- }) => void;
339
- widgets?: Partial<IWidgetRegistry>;
340
- /** Success screen config from props. Priority: this > schema.settings.success_message > defaults. */
341
- successConfig?: {
342
- title?: string;
343
- message?: string;
344
- action?: {
345
- type: "none" | "submit_another" | "redirect";
346
- /** URL for redirect action type. */
347
- value?: string;
348
- };
349
- };
350
- debug?: boolean;
351
- /** When true, the form is in preview mode — no remote submission, no drafts, no captcha, no analytics. */
352
- preview?: boolean;
353
- }
354
-
355
- export declare interface ILevoFormThemeContext {
356
- themeClass: string;
357
- style?: CSSProperties;
358
- cssReset?: boolean;
359
- }
360
-
361
- /** Symbol used to switch thousands grouping to the Indian (lakh/crore) system. */
362
- export declare const INR_CURRENCY_SYMBOL = "\u20B9";
363
-
364
- export declare const isPhoneValid: (phone: string) => boolean;
365
-
366
- declare interface IThemeProviderProps extends Omit<default_2.ComponentPropsWithoutRef<"div">, "className"> {
367
- children: default_2.ReactNode;
368
- /** Apply CSS reset. Only applies at root level, ignored when nested. */
369
- cssReset?: boolean;
370
- /** Theme class name(s). */
371
- className?: string;
372
- /**
373
- * When true, portals target the ThemeProvider's own wrapper div instead of a
374
- * dedicated div on document.body. Use for shadow DOM / scoped embeds where
375
- * document.body is unreachable — the wrapper already sits inside the themed
376
- * tree, so no class or style sync is needed.
377
- */
378
- portalToThemeRoot?: boolean;
379
- }
380
-
381
- declare interface IThemeWrapperProps extends IThemeProviderProps {
382
- variant?: FormVariantType;
383
- }
384
-
385
- declare interface IToolbarButtonProps extends React.ComponentPropsWithoutRef<"button"> {
386
- label: string;
387
- Icon: Icon;
388
- isActive?: boolean;
389
- iconSize?: number;
390
- /** Render extra content (e.g. caret) after the icon. */
391
- trailing?: React.ReactNode;
392
- }
393
-
394
- export declare type IWidgetRegistry = Record<(typeof CommonFieldInterfacesList)[number], WidgetComponent>;
395
-
396
- declare const Label: React.FC<React.ComponentProps<"label">>;
397
-
398
- export declare const LevoFormProvider: default_2.FC<IFormRendererProps>;
399
-
400
- declare interface NodeAlignmentOptions {
401
- /**
402
- * Node types that should support alignment
403
- * @default ["paragraph", "heading", "blockquote", "tableCell", "tableHeader"]
404
- */
405
- types: string[];
406
- /**
407
- * Use inline style instead of data attribute
408
- * @default true
409
- */
410
- useStyle?: boolean;
411
- /**
412
- * Valid text alignment values
413
- * @default ["left", "center", "right", "justify"]
414
- */
415
- textAlignValues: string[];
416
- /**
417
- * Valid vertical alignment values
418
- * @default ["top", "middle", "bottom"]
419
- */
420
- verticalAlignValues: string[];
421
- }
422
-
423
- declare type ParamError = {
424
- message: string;
425
- name: string;
426
- };
427
-
428
- export declare const setFormErrors: (errors: IFieldError[], setError: UseFormSetError<any>) => void;
429
-
430
- export declare const submitDataParser: (data: Record<string, unknown>, schema: ILemaCollection, initialValues?: Record<string, unknown>) => any;
431
-
432
- export declare const ThemeWrapper: default_2.FC<IThemeWrapperProps>;
433
-
434
- /**
435
- * Stateless toolbar button — caller wires `isActive` / `disabled` from
436
- * tiptap's `useEditorState`. Wraps levocn's `Button` (variant=ghost, size=sm)
437
- * for pixel parity with other levocn-styled controls in the app.
438
- */
439
- export declare const ToolbarButton: ForwardRefExoticComponent<IToolbarButtonProps & RefAttributes<HTMLButtonElement>>;
440
-
441
- export declare const updateFieldWInterface: (tempField: ILemaField, field_interface: (typeof FieldInterfacesList)[number]) => {
442
- field: {
443
- id: string;
444
- key: string;
445
- kind: FieldKindList[number];
446
- label: string;
447
- field_interface: (typeof FieldInterfacesList)[number];
448
- helper_text?: string | undefined;
449
- placeholder?: string | undefined;
450
- default_value?: any;
451
- readonly?: boolean | undefined;
452
- hidden?: boolean | undefined;
453
- editable?: boolean | undefined;
454
- required?: boolean | undefined;
455
- unique?: boolean | undefined;
456
- min?: string | number | null | undefined;
457
- max?: string | number | null | undefined;
458
- formats?: string[] | undefined;
459
- values?: any[] | undefined;
460
- created_at?: string | undefined;
461
- updated_at?: string | undefined;
462
- fields?: ILemaField[];
463
- options: ILemaFieldOptions;
464
- allow_public_view?: boolean;
465
- allow_public_submit?: boolean;
466
- logic?: ILogicRule[];
467
- };
468
- fieldFocused: string | null;
469
- };
470
-
471
- export declare const useLevoForm: ({ schema: schemaProp, originalSchema: originalSchemaProp, onSubmitSuccess, onSubmitError, onInit, setFormErrorAfterSubmit, }: {
472
- schema: ILemaCollection | null;
473
- originalSchema?: ILemaCollection | null;
474
- setFormErrorAfterSubmit?: boolean;
475
- onSubmitSuccess?: () => void;
476
- onSubmitError?: (e: IFieldError[]) => void;
477
- onInit?: (values: Record<string, unknown>) => void;
478
- }) => {
479
- methods: UseFormReturn<FieldValues, any, FieldValues>;
480
- isLoading: boolean;
481
- isError: boolean;
482
- contentId: string | null;
483
- publishedId: string | null;
484
- allFormValues: any;
485
- handleContentId: (id: string) => void;
486
- appendFormValues: (data: any) => void;
487
- submitToRemote: (data: any) => Promise<void>;
488
- showSuccessOverlay: boolean;
489
- dismissSuccessOverlay: () => void;
490
- };
491
-
492
- export declare const useLevoFormContext: () => ILevoFormContext;
493
-
494
- export declare const useLevoFormTheme: () => ILevoFormThemeContext | null;
495
-
496
- export declare const validateForm: (schema: ILemaCollection, formData: Record<string, unknown>) => Record<string, string>;
497
-
498
- export declare type WidgetComponent = default_2.FC<ICommonRendererProps>;
499
-
500
- export { }
package/collection.js DELETED
@@ -1,30 +0,0 @@
1
- import { C as e, D as t, E as n, O as r, S as i, T as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, n as g, o as _, p as v, r as y, s as b, u as x, v as S, w as C, x as w, y as T } from "./dist-D-y51gmU.js";
2
- import { a as E, c as D, d as O, i as k, n as A, o as j, r as M, s as N, t as P, u as F } from "./CollectionField-DrJuHNsg.js";
3
- import { t as I } from "./CollectionInput-CG-Pu_51.js";
4
- import { t as L } from "./utils-NDllPDUz.js";
5
- import { n as R, r as z, t as B } from "./Toolbar-6IXR9qAh.js";
6
- //#region ../../libraries/react-collection/dist/types/formVariant.js
7
- var V = [
8
- {
9
- value: "default",
10
- label: "Classic",
11
- description: "All fields displayed together in a single view"
12
- },
13
- {
14
- value: "steps",
15
- label: "Multi-Step",
16
- description: "Each section becomes a step — navigate with next/previous buttons"
17
- },
18
- {
19
- value: "single-field",
20
- label: "One at a Time",
21
- description: "Typeform-style — one field per screen with smooth transitions"
22
- },
23
- {
24
- value: "steps-2",
25
- label: "Conversational Steps",
26
- description: "Multi-step with typeform-style field presentation"
27
- }
28
- ];
29
- //#endregion
30
- export { S as AsyncSelectPaginate, f as CURRENCY_SYMBOLS, B as CollectionEditorToolbar, P as CollectionFieldWrapper, P as FieldWrapper, h as CollectionForm, y as CollectionFormBuilder, g as CollectionFormRenderer, I as CollectionInput, I as Input, O as CollectionLabel, v as DEFAULT_WIDGET_REGISTRY, E as Field, N as FieldContent, j as FieldDescription, A as FieldError, D as FieldGroup, M as FieldLabel, d as FieldRenderer, k as FieldSet, m as FormBuilder, V as FormVariantOptions, p as INR_CURRENCY_SYMBOL, b as LevoFormProvider, u as ThemeWrapper, R as ToolbarButton, c as areAllFieldsHidden, o as createWidget, n as errorsToParam, z as getCollectionEditorExtensions, C as getDefaultFieldValues, e as getDefaultValuesByKind, F as getFieldValidations, T as getInitialValues, L as getKindFromMimetype, i as getValueIfNotUndefined, w as isPhoneValid, _ as setFormErrors, r as submitDataParser, t as updateFieldWInterface, s as useLevoForm, l as useLevoFormContext, x as useLevoFormTheme, a as validateForm };
@@ -1,9 +0,0 @@
1
- import { n as e } from "./theme.cssm-2YTdd8Yh.js";
2
- //#region ../../libraries/editor-core/dist/styles/content.cssm.js
3
- var t = "_12oclrg0", n = "u2k86a0", r = e({
4
- baseSpacing: "var(--_1q6hy0o0)",
5
- highlight: "var(--_1q6hy0o1)",
6
- highlightForeground: "var(--_1q6hy0o2)"
7
- });
8
- //#endregion
9
- export { n, t as r, r as t };