@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.
Files changed (41) hide show
  1. package/{BillingStep-CD-nP5Zg.js → BillingStep-Brc1Mzo3.js} +1 -1
  2. package/{Button-BN9tHQ7U.js → Button-XTKnNIl9.js} +11 -5
  3. package/{CollectionInput-57OEuaRO.js → CollectionInput-cmJ0RXzG.js} +1 -1
  4. package/DateTimeWidget-B5lBr0_R.js +255 -0
  5. package/{EntryCard-DMxKxYzC.js → EntryCard-CYdsSkIk.js} +3 -3
  6. package/{CollectionField-BpRjsPIl.js → Input-Btdc1Dee.js} +115 -76
  7. package/{LoginCard-Dgl3uq38.js → LoginCard-5LaKaFCO.js} +3 -3
  8. package/{LoginModal-CVh8k24t.js → LoginModal-BdYM8INu.js} +3 -3
  9. package/{MessageCard-BYxgc9dl.js → MessageCard-ChDBqLVG.js} +2 -2
  10. package/{ModalManager-D2pV7Ba2.js → ModalManager-SggxCIno.js} +1 -1
  11. package/{PendingApprovalCard-ZIhBzT3K.js → PendingApprovalCard-z2sdLyCa.js} +3 -3
  12. package/{PhoneWidget-cSp-CqJl.js → PhoneWidget-1ffYuESC.js} +11 -11
  13. package/{Popover-ieqK7ZXF.js → Popover-BdKCElnb.js} +2 -1
  14. package/RichTextWidget-CjEoGecM.js +1136 -0
  15. package/{Tooltip-9zds9Zoi.js → Tooltip-BOq5vSOW.js} +2 -1
  16. package/{VerifyButton-faa0wOES.js → VerifyButton-CdPQqtc2.js} +3 -2
  17. package/{bookingCard-OUT621LL.js → bookingCard-D3ZSjq-P.js} +3 -3
  18. package/collection.d.ts +20 -7
  19. package/collection.js +7 -7
  20. package/dist-ir7pIkAm.js +3115 -0
  21. package/{getFieldValidations-j341NV59.js → getFieldValidations-DZnDgNI0.js} +48 -87
  22. package/index.d.ts +6 -4
  23. package/index.js +3017 -1242
  24. package/{nodeAlignment-UpurkBVP.js → nodeAlignment-BZbdafVA.js} +31 -32
  25. package/package.json +10 -10
  26. package/studio.css +1 -1
  27. package/{utils-C_ATWxPM.js → utils-CsfPGq4R.js} +1 -1
  28. package/{widgets-BHUjv2OM.js → widgets-DD4OjK2Y.js} +87 -74
  29. package/DateTimeWidget-BlOQYia2.js +0 -255
  30. package/RichTextWidget-BeUcHYmx.js +0 -1131
  31. package/dist-IAADcuph.js +0 -3113
  32. /package/{Beams-Blr-zwvz.js → Beams-B0O3uyYF.js} +0 -0
  33. /package/{Dots-DeBKuibU.js → Dots-DjezbpLp.js} +0 -0
  34. /package/{Gradient-DGFxOjft.js → Gradient-B1K9Yi04.js} +0 -0
  35. /package/{Grid-A7HRCQ0T.js → Grid-C9aUfXM-.js} +0 -0
  36. /package/{LoginForm-CPMtCyMF.js → LoginForm-Ck-xFaDg.js} +0 -0
  37. /package/{MessageFooter-C6DivT4m.js → MessageFooter-AzAtJWMo.js} +0 -0
  38. /package/{StripePaymentModal-DC-ySB_o.js → StripePaymentModal-BHIBBvRj.js} +0 -0
  39. /package/{Waves-CIT6Ngng.js → Waves-BkaAfGqA.js} +0 -0
  40. /package/{card-izMd2DvE.js → card-BQr9258p.js} +0 -0
  41. /package/{dialog-BJpM4UEG.js → dialog-Dw6n_36P.js} +0 -0
@@ -1,4 +1,5 @@
1
- import { i as e, r as t } from "./getFieldValidations-j341NV59.js";
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 { i as e, n as t } from "./getFieldValidations-j341NV59.js";
3
- import { t as n } from "./CollectionInput-57OEuaRO.js";
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-BN9tHQ7U.js";
4
- import { n, t as r } from "./StripePaymentModal-DC-ySB_o.js";
5
- import { BillingStep as ee } from "./BillingStep-CD-nP5Zg.js";
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-IAADcuph.js";
2
- import { t as f } from "./getFieldValidations-j341NV59.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-BHUjv2OM.js";
4
- import { a as T, c as E, i as D, l as O, n as k, o as A, r as j, s as M, t as N } from "./CollectionField-BpRjsPIl.js";
5
- import { t as P } from "./utils-C_ATWxPM.js";
6
- import { t as F } from "./CollectionInput-57OEuaRO.js";
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, N as CollectionFieldWrapper, N as FieldWrapper, t as CollectionForm, l as CollectionFormBuilder, o as CollectionFormRenderer, F as CollectionInput, F as Input, O as CollectionLabel, r as DEFAULT_WIDGET_REGISTRY, T as Field, M as FieldContent, A as FieldDescription, k as FieldError, E as FieldGroup, j as FieldLabel, n as FieldRenderer, D 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, P 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 };
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 };