@levo-so/studio 0.1.99 → 0.1.100
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/{BillingStep-CD-nP5Zg.js → BillingStep-Brc1Mzo3.js} +1 -1
- package/{Button-BN9tHQ7U.js → Button-XTKnNIl9.js} +11 -5
- package/{CollectionInput-57OEuaRO.js → CollectionInput-cmJ0RXzG.js} +1 -1
- package/DateTimeWidget-B5lBr0_R.js +255 -0
- package/{EntryCard-DMxKxYzC.js → EntryCard-CYdsSkIk.js} +3 -3
- package/{CollectionField-BpRjsPIl.js → Input-Btdc1Dee.js} +115 -76
- package/{LoginCard-Dgl3uq38.js → LoginCard-5LaKaFCO.js} +3 -3
- package/{LoginModal-CVh8k24t.js → LoginModal-BdYM8INu.js} +3 -3
- package/{MessageCard-BYxgc9dl.js → MessageCard-ChDBqLVG.js} +2 -2
- package/{ModalManager-D2pV7Ba2.js → ModalManager-SggxCIno.js} +1 -1
- package/{PendingApprovalCard-ZIhBzT3K.js → PendingApprovalCard-z2sdLyCa.js} +3 -3
- package/{PhoneWidget-cSp-CqJl.js → PhoneWidget-1ffYuESC.js} +11 -11
- package/{Popover-ieqK7ZXF.js → Popover-BdKCElnb.js} +2 -1
- package/RichTextWidget-CjEoGecM.js +1136 -0
- package/{Tooltip-9zds9Zoi.js → Tooltip-BOq5vSOW.js} +2 -1
- package/{VerifyButton-faa0wOES.js → VerifyButton-CdPQqtc2.js} +3 -2
- package/{bookingCard-OUT621LL.js → bookingCard-D3ZSjq-P.js} +3 -3
- package/collection.d.ts +20 -7
- package/collection.js +7 -7
- package/dist-ir7pIkAm.js +3115 -0
- package/{getFieldValidations-j341NV59.js → getFieldValidations-DZnDgNI0.js} +48 -87
- package/index.d.ts +6 -4
- package/index.js +3017 -1242
- package/{nodeAlignment-UpurkBVP.js → nodeAlignment-BZbdafVA.js} +31 -32
- package/package.json +10 -10
- package/studio.css +1 -1
- package/{utils-C_ATWxPM.js → utils-CsfPGq4R.js} +1 -1
- package/{widgets-BHUjv2OM.js → widgets-DD4OjK2Y.js} +87 -74
- package/DateTimeWidget-BlOQYia2.js +0 -255
- package/RichTextWidget-BeUcHYmx.js +0 -1131
- package/dist-IAADcuph.js +0 -3113
- /package/{Beams-Blr-zwvz.js → Beams-B0O3uyYF.js} +0 -0
- /package/{Dots-DeBKuibU.js → Dots-DjezbpLp.js} +0 -0
- /package/{Gradient-DGFxOjft.js → Gradient-B1K9Yi04.js} +0 -0
- /package/{Grid-A7HRCQ0T.js → Grid-C9aUfXM-.js} +0 -0
- /package/{LoginForm-CPMtCyMF.js → LoginForm-Ck-xFaDg.js} +0 -0
- /package/{MessageFooter-C6DivT4m.js → MessageFooter-AzAtJWMo.js} +0 -0
- /package/{StripePaymentModal-DC-ySB_o.js → StripePaymentModal-BHIBBvRj.js} +0 -0
- /package/{Waves-CIT6Ngng.js → Waves-BkaAfGqA.js} +0 -0
- /package/{card-izMd2DvE.js → card-BQr9258p.js} +0 -0
- /package/{dialog-BJpM4UEG.js → dialog-Dw6n_36P.js} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
2
|
+
import { p as t } from "./Input-Btdc1Dee.js";
|
|
2
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
4
|
import { c as i } from "react/compiler-runtime";
|
|
4
5
|
import a from "clsx";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { n as e } from "./getFieldValidations-DZnDgNI0.js";
|
|
3
|
+
import { f as t } from "./Input-Btdc1Dee.js";
|
|
4
|
+
import { t as n } from "./CollectionInput-cmJ0RXzG.js";
|
|
4
5
|
import { useEffect as r, useState as i } from "react";
|
|
5
6
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
7
|
import { errorToast as c, successToast as l, useLevo as u } from "@levo-so/react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as e } from "./AuthProvider-56TywIOB.js";
|
|
3
|
-
import { t } from "./Button-
|
|
4
|
-
import { n, t as r } from "./StripePaymentModal-
|
|
5
|
-
import { BillingStep as ee } from "./BillingStep-
|
|
3
|
+
import { t } from "./Button-XTKnNIl9.js";
|
|
4
|
+
import { n, t as r } from "./StripePaymentModal-BHIBBvRj.js";
|
|
5
|
+
import { BillingStep as ee } from "./BillingStep-Brc1Mzo3.js";
|
|
6
6
|
import { useRef as i, useState as a } from "react";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { cn as te, errorHandler as l, useLevo as u } from "@levo-so/react";
|
package/collection.d.ts
CHANGED
|
@@ -312,6 +312,25 @@ export declare interface ILevoFormThemeContext {
|
|
|
312
312
|
|
|
313
313
|
export declare const isPhoneValid: (phone: string) => boolean;
|
|
314
314
|
|
|
315
|
+
declare interface IThemeProviderProps extends Omit<default_2.ComponentPropsWithoutRef<"div">, "className"> {
|
|
316
|
+
children: default_2.ReactNode;
|
|
317
|
+
/** Apply CSS reset. Only applies at root level, ignored when nested. */
|
|
318
|
+
cssReset?: boolean;
|
|
319
|
+
/** Theme class name(s). */
|
|
320
|
+
className?: string;
|
|
321
|
+
/**
|
|
322
|
+
* When true, portals target the ThemeProvider's own wrapper div instead of a
|
|
323
|
+
* dedicated div on document.body. Use for shadow DOM / scoped embeds where
|
|
324
|
+
* document.body is unreachable — the wrapper already sits inside the themed
|
|
325
|
+
* tree, so no class or style sync is needed.
|
|
326
|
+
*/
|
|
327
|
+
portalToThemeRoot?: boolean;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare interface IThemeWrapperProps extends IThemeProviderProps {
|
|
331
|
+
variant?: FormVariantType;
|
|
332
|
+
}
|
|
333
|
+
|
|
315
334
|
export declare type IWidgetRegistry = Record<(typeof CommonFieldInterfacesList)[number], WidgetComponent>;
|
|
316
335
|
|
|
317
336
|
declare const Label: React.FC<React.ComponentProps<"label">>;
|
|
@@ -327,13 +346,7 @@ export declare const setFormErrors: (errors: IFieldError[], setError: UseFormSet
|
|
|
327
346
|
|
|
328
347
|
export declare const submitDataParser: (data: Record<string, unknown>, schema: ILemaCollection) => any;
|
|
329
348
|
|
|
330
|
-
export declare const ThemeWrapper: default_2.FC<
|
|
331
|
-
children: default_2.ReactNode;
|
|
332
|
-
className?: string;
|
|
333
|
-
style?: default_2.CSSProperties;
|
|
334
|
-
cssReset?: boolean;
|
|
335
|
-
variant?: FormVariantType;
|
|
336
|
-
}>;
|
|
349
|
+
export declare const ThemeWrapper: default_2.FC<IThemeWrapperProps>;
|
|
337
350
|
|
|
338
351
|
export declare const updateFieldWInterface: (tempField: ILemaField, field_interface: (typeof FieldInterfacesList)[number]) => {
|
|
339
352
|
field: {
|
package/collection.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, u as d } from "./dist-
|
|
2
|
-
import { t as f } from "./getFieldValidations-
|
|
3
|
-
import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./widgets-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as F } from "./CollectionInput-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, u as d } from "./dist-ir7pIkAm.js";
|
|
2
|
+
import { t as f } from "./getFieldValidations-DZnDgNI0.js";
|
|
3
|
+
import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./widgets-DD4OjK2Y.js";
|
|
4
|
+
import { t as T } from "./utils-CsfPGq4R.js";
|
|
5
|
+
import { a as E, c as D, i as O, l as k, m as A, o as j, r as M, s as N, u as P } from "./Input-Btdc1Dee.js";
|
|
6
|
+
import { t as F } from "./CollectionInput-cmJ0RXzG.js";
|
|
7
7
|
//#region ../../libraries/react-collection/dist/types/formVariant.js
|
|
8
8
|
var I = [
|
|
9
9
|
{
|
|
@@ -28,4 +28,4 @@ var I = [
|
|
|
28
28
|
}
|
|
29
29
|
];
|
|
30
30
|
//#endregion
|
|
31
|
-
export { c as AsyncSelectPaginate,
|
|
31
|
+
export { c as AsyncSelectPaginate, M as CollectionFieldWrapper, M as FieldWrapper, t as CollectionForm, l as CollectionFormBuilder, o as CollectionFormRenderer, F as CollectionInput, F as Input, A as CollectionLabel, r as DEFAULT_WIDGET_REGISTRY, N as Field, k as FieldContent, D as FieldDescription, O as FieldError, P as FieldGroup, E as FieldLabel, n as FieldRenderer, j as FieldSet, i as FormBuilder, I as FormVariantOptions, s as LevoFormProvider, d as ThemeWrapper, g as areAllFieldsHidden, C as createWidget, _ as errorsToParam, b as getDefaultFieldValues, h as getDefaultValuesByKind, f as getFieldValidations, m as getInitialValues, T as getKindFromMimetype, w as getValueIfNotUndefined, v as isPhoneValid, y as setFormErrors, x as submitDataParser, S as updateFieldWInterface, e as useLevoForm, u as useLevoFormContext, a as useLevoFormTheme, p as validateForm };
|