@levo-so/react 0.1.6 → 0.1.7
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/dist/{CheckboxWidget-Bnx-S2j2.js → CheckboxWidget-Cfgvj7cn.js} +1 -1
- package/dist/{CollectionFormBuilder-B_dXpvPN.js → CollectionFormBuilder-Cl75S4QY.js} +16 -16
- package/dist/{CurrencyWidget-6Ov8DZpo.js → CurrencyWidget-CIrjUd7P.js} +1 -1
- package/dist/{DateTimeWidget-DI98zHMn.js → DateTimeWidget-C3ZjRkzt.js} +1 -1
- package/dist/{DefaultFormVariant-Bxbh1yc0.js → DefaultFormVariant-vMPY17-9.js} +2 -2
- package/dist/{DropdownWidget-DrMkD9vK.js → DropdownWidget-CK1trfBl.js} +1 -1
- package/dist/{EmailWidget-DHjXwVCL.js → EmailWidget-BO-vqkzR.js} +1 -1
- package/dist/{GeocoderWidget-D8GsLWkV.js → GeocoderWidget-B2YFZCYX.js} +1 -1
- package/dist/{MultiGeocoderWidget-WzlKESyZ.js → MultiGeocoderWidget-C_s8Zsij.js} +2 -2
- package/dist/{PhoneWidget-DQSo_DPX.js → PhoneWidget-DUaS-iYE.js} +1 -1
- package/dist/{RadioWidget-C8sTnz9B.js → RadioWidget-B6_ziyPx.js} +1 -1
- package/dist/{RichTextWidget-DOMiJ9pX.js → RichTextWidget-CgRsIwtY.js} +1 -1
- package/dist/{StepsFormVariant-CzS2wbMD.js → StepsFormVariant-BLoWPVj3.js} +2 -2
- package/dist/{SwitchWidget-CBottoNO.js → SwitchWidget-DO-hypNx.js} +1 -1
- package/dist/{TextWidget-Dg-ZYJI2.js → TextWidget-LJ-qBQ4d.js} +1 -1
- package/dist/{TextareaWidget-wsUSnO28.js → TextareaWidget-D1baKIEx.js} +1 -1
- package/dist/{ToggleCheckboxWidget-IeHYCie0.js → ToggleCheckboxWidget-j7f_du6j.js} +1 -1
- package/dist/{URLWidget-BsIEpzV3.js → URLWidget-5IJ9CYEQ.js} +2 -2
- package/dist/{UploadWidget-BJPmoAW-.js → UploadWidget-D9AcSa7N.js} +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/errorHandler-_34Yv8wA.js +9 -0
- package/dist/index.js +3 -3
- package/dist/membership/components/Button.d.ts.map +1 -0
- package/dist/membership/components/Container.d.ts.map +1 -0
- package/dist/membership/components/Core.d.ts.map +1 -0
- package/dist/membership/components/Popup.d.ts.map +1 -0
- package/dist/membership/index.d.ts +7 -1
- package/dist/membership/index.d.ts.map +1 -1
- package/dist/membership/index.js +129 -2
- package/dist/{useLevoForm-HS_d5OoW.js → useLevoForm-CMcusFAD.js} +2 -2
- package/dist/utils/errorHandler.d.ts +1 -1
- package/dist/utils/errorHandler.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +2 -2
- package/dist/errorHandler-BJcFS2qV.js +0 -26
- package/dist/index-BFJ48R-4.js +0 -131
- package/dist/membership/components/OAuth/Button.d.ts.map +0 -1
- package/dist/membership/components/OAuth/Container.d.ts.map +0 -1
- package/dist/membership/components/OAuth/Core.d.ts.map +0 -1
- package/dist/membership/components/OAuth/Popup.d.ts.map +0 -1
- package/dist/membership/components/index.d.ts +0 -8
- package/dist/membership/components/index.d.ts.map +0 -1
- /package/dist/membership/components/{OAuth/Button.d.ts → Button.d.ts} +0 -0
- /package/dist/membership/components/{OAuth/Container.d.ts → Container.d.ts} +0 -0
- /package/dist/membership/components/{OAuth/Core.d.ts → Core.d.ts} +0 -0
- /package/dist/membership/components/{OAuth/Popup.d.ts → Popup.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import B, { useState as k } from "react";
|
|
4
4
|
import { useController as C } from "react-hook-form";
|
|
5
5
|
import { c as E } from "./cn-C9QoOYNG.js";
|
|
6
|
-
import { h as I, j as O, k as u } from "./CollectionFormBuilder-
|
|
6
|
+
import { h as I, j as O, k as u } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
7
7
|
import { C as w } from "./Checbox-sq-atGlJ.js";
|
|
8
8
|
import { I as _ } from "./Input-2CvZ90f8.js";
|
|
9
9
|
const T = ({ field: i }) => {
|
|
@@ -502,25 +502,25 @@ const A = ({
|
|
|
502
502
|
]
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
|
-
}, H = h(() => import("./TextWidget-
|
|
506
|
-
() => import("./CurrencyWidget-
|
|
505
|
+
}, H = h(() => import("./TextWidget-LJ-qBQ4d.js")), Me = h(
|
|
506
|
+
() => import("./CurrencyWidget-CIrjUd7P.js")
|
|
507
507
|
), De = h(
|
|
508
|
-
() => import("./CheckboxWidget-
|
|
508
|
+
() => import("./CheckboxWidget-Cfgvj7cn.js")
|
|
509
509
|
), U = h(
|
|
510
|
-
() => import("./DateTimeWidget-
|
|
510
|
+
() => import("./DateTimeWidget-C3ZjRkzt.js")
|
|
511
511
|
), q = h(
|
|
512
|
-
() => import("./DropdownWidget-
|
|
513
|
-
), Se = h(() => import("./EmailWidget-
|
|
514
|
-
() => import("./GeocoderWidget-
|
|
512
|
+
() => import("./DropdownWidget-CK1trfBl.js")
|
|
513
|
+
), Se = h(() => import("./EmailWidget-BO-vqkzR.js")), Ve = h(
|
|
514
|
+
() => import("./GeocoderWidget-B2YFZCYX.js")
|
|
515
515
|
), $e = h(
|
|
516
|
-
() => import("./MultiGeocoderWidget-
|
|
517
|
-
), Pe = h(() => import("./PhoneWidget-
|
|
518
|
-
() => import("./RichTextWidget-
|
|
519
|
-
), Ee = h(() => import("./SwitchWidget-
|
|
520
|
-
() => import("./TextareaWidget-
|
|
516
|
+
() => import("./MultiGeocoderWidget-C_s8Zsij.js")
|
|
517
|
+
), Pe = h(() => import("./PhoneWidget-DUaS-iYE.js")), ze = h(() => import("./RadioWidget-B6_ziyPx.js")), Be = h(
|
|
518
|
+
() => import("./RichTextWidget-CgRsIwtY.js")
|
|
519
|
+
), Ee = h(() => import("./SwitchWidget-DO-hypNx.js")), He = h(
|
|
520
|
+
() => import("./TextareaWidget-D1baKIEx.js")
|
|
521
521
|
), Ue = h(
|
|
522
|
-
() => import("./ToggleCheckboxWidget-
|
|
523
|
-
), qe = h(() => import("./URLWidget-
|
|
522
|
+
() => import("./ToggleCheckboxWidget-j7f_du6j.js")
|
|
523
|
+
), qe = h(() => import("./URLWidget-5IJ9CYEQ.js")), R = h(() => import("./UploadWidget-D9AcSa7N.js")), Fe = ({
|
|
524
524
|
field: e,
|
|
525
525
|
isInternal: r
|
|
526
526
|
}) => {
|
|
@@ -668,9 +668,9 @@ const A = ({
|
|
|
668
668
|
e
|
|
669
669
|
] });
|
|
670
670
|
}, Wt = () => j.useContext(Q), Ke = j.lazy(
|
|
671
|
-
() => import("./DefaultFormVariant-
|
|
671
|
+
() => import("./DefaultFormVariant-vMPY17-9.js")
|
|
672
672
|
), Je = j.lazy(
|
|
673
|
-
() => import("./StepsFormVariant-
|
|
673
|
+
() => import("./StepsFormVariant-BLoWPVj3.js")
|
|
674
674
|
), Qe = ({
|
|
675
675
|
formVariant: e,
|
|
676
676
|
...r
|
|
@@ -2,7 +2,7 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
|
2
2
|
import { useController as j } from "react-hook-form";
|
|
3
3
|
import { NumericFormat as F } from "react-number-format";
|
|
4
4
|
import { c as w } from "./cn-C9QoOYNG.js";
|
|
5
|
-
import { h as C, j as k, k as N } from "./CollectionFormBuilder-
|
|
5
|
+
import { h as C, j as k, k as N } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
6
6
|
const V = ({
|
|
7
7
|
field: r,
|
|
8
8
|
...m
|
|
@@ -4,7 +4,7 @@ import { Calendar as w, X as N } from "lucide-react";
|
|
|
4
4
|
import * as l from "react-datepicker";
|
|
5
5
|
import { useController as v } from "react-hook-form";
|
|
6
6
|
import { c as p } from "./cn-C9QoOYNG.js";
|
|
7
|
-
import { h as M, j as D, k as C } from "./CollectionFormBuilder-
|
|
7
|
+
import { h as M, j as D, k as C } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
8
8
|
import { I as F } from "./Input-2CvZ90f8.js";
|
|
9
9
|
const T = l.default.default || l.default || l, I = (e) => {
|
|
10
10
|
if (e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { FormProvider as S } from "react-hook-form";
|
|
3
3
|
import { c as m } from "./cn-C9QoOYNG.js";
|
|
4
|
-
import { l as y, F } from "./CollectionFormBuilder-
|
|
5
|
-
import { u as N, S as w } from "./useLevoForm-
|
|
4
|
+
import { l as y, F } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
5
|
+
import { u as N, S as w } from "./useLevoForm-CMcusFAD.js";
|
|
6
6
|
import { B as b } from "./Spinner-DzGH5rKe.js";
|
|
7
7
|
const E = () => {
|
|
8
8
|
var d;
|
|
@@ -4,7 +4,7 @@ import { useState as f, useEffect as j } from "react";
|
|
|
4
4
|
import { useController as k } from "react-hook-form";
|
|
5
5
|
import D from "react-select";
|
|
6
6
|
import { c as x } from "./cn-C9QoOYNG.js";
|
|
7
|
-
import { h as N, j as q, k as B } from "./CollectionFormBuilder-
|
|
7
|
+
import { h as N, j as q, k as B } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
8
8
|
import { I as L } from "./Input-2CvZ90f8.js";
|
|
9
9
|
const G = ({
|
|
10
10
|
field: s,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useController as y } from "react-hook-form";
|
|
3
3
|
import { G as C } from "./Spinner-DzGH5rKe.js";
|
|
4
|
-
import { h as F, j as I, k as V } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as F, j as I, k as V } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
5
5
|
import { I as b } from "./Input-2CvZ90f8.js";
|
|
6
6
|
function w(e) {
|
|
7
7
|
return C({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M1.75 3h20.5c.966 0 1.75.784 1.75 1.75v14a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 18.75v-14C0 3.784.784 3 1.75 3ZM1.5 7.412V18.75c0 .138.112.25.25.25h20.5a.25.25 0 0 0 .25-.25V7.412l-9.52 6.433c-.592.4-1.368.4-1.96 0Zm0-2.662v.852l10.36 7a.25.25 0 0 0 .28 0l10.36-7V4.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z" }, child: [] }] })(e);
|
|
@@ -4,7 +4,7 @@ import le, { useState as J, useEffect as fe } from "react";
|
|
|
4
4
|
import { c as U } from "./LevoProvider-Cp0CKrgY.js";
|
|
5
5
|
import { useController as de } from "react-hook-form";
|
|
6
6
|
import { q as pe } from "./Spinner-DzGH5rKe.js";
|
|
7
|
-
import { h as ge, j as me, k as ye } from "./CollectionFormBuilder-
|
|
7
|
+
import { h as ge, j as me, k as ye } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
8
8
|
import { I as _e } from "./Input-2CvZ90f8.js";
|
|
9
9
|
var ne = {}, ve = "Expected a function", Y = NaN, be = "[object Symbol]", Se = /^\s+|\s+$/g, Pe = /^[-+]0x[0-9a-f]+$/i, Oe = /^0b[01]+$/i, he = /^0o[0-7]+$/i, Te = parseInt, je = typeof U == "object" && U && U.Object === Object && U, xe = typeof self == "object" && self && self.Object === Object && self, Ae = je || xe || Function("return this")(), Le = Object.prototype, Ee = Le.toString, Ie = Math.max, we = Math.min, $ = function() {
|
|
10
10
|
return Ae.Date.now();
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { Plus as m } from "lucide-react";
|
|
4
4
|
import { useFieldArray as n } from "react-hook-form";
|
|
5
|
-
import { k as c } from "./CollectionFormBuilder-
|
|
6
|
-
import { GeocoderWidget as d } from "./GeocoderWidget-
|
|
5
|
+
import { k as c } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
6
|
+
import { GeocoderWidget as d } from "./GeocoderWidget-B2YFZCYX.js";
|
|
7
7
|
import { B as p } from "./Spinner-DzGH5rKe.js";
|
|
8
8
|
const g = ({
|
|
9
9
|
field: l
|
|
@@ -3,7 +3,7 @@ import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import { useController as f } from "react-hook-form";
|
|
4
4
|
import { PhoneInput as g } from "react-international-phone";
|
|
5
5
|
import { c as l } from "./cn-C9QoOYNG.js";
|
|
6
|
-
import { h as x, j as v, k as j } from "./CollectionFormBuilder-
|
|
6
|
+
import { h as x, j as v, k as j } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
7
7
|
const k = ({ field: e }) => {
|
|
8
8
|
const { key: u = "", label: t = "", helper_text: c = "", readonly: n = !1 } = e, s = u, {
|
|
9
9
|
field: { value: d, onBlur: a, onChange: i, ...m },
|
|
@@ -5,7 +5,7 @@ import * as d from "react";
|
|
|
5
5
|
import { useController as F } from "react-hook-form";
|
|
6
6
|
import { G as E } from "./Spinner-DzGH5rKe.js";
|
|
7
7
|
import { c as N } from "./cn-C9QoOYNG.js";
|
|
8
|
-
import { h as G, j as V, k as f } from "./CollectionFormBuilder-
|
|
8
|
+
import { h as G, j as V, k as f } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
9
9
|
import { I as q } from "./Input-2CvZ90f8.js";
|
|
10
10
|
function B(s) {
|
|
11
11
|
return E({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(s);
|
|
@@ -19,7 +19,7 @@ import { useState as D, useEffect as G } from "react";
|
|
|
19
19
|
import { useController as q } from "react-hook-form";
|
|
20
20
|
import { G as p, e as J, f as V, g as W, h as Z, i as _, j as P, k as K, l as Q, m as X, n as Y, o as $, p as nn } from "./Spinner-DzGH5rKe.js";
|
|
21
21
|
import { c as j } from "./cn-C9QoOYNG.js";
|
|
22
|
-
import { h as ln, j as en, k as sn } from "./CollectionFormBuilder-
|
|
22
|
+
import { h as ln, j as en, k as sn } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
23
23
|
function an(n) {
|
|
24
24
|
return p({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" }, child: [] }] })(n);
|
|
25
25
|
}
|
|
@@ -3,8 +3,8 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import { useState as A, useMemo as v } from "react";
|
|
4
4
|
import { FormProvider as I } from "react-hook-form";
|
|
5
5
|
import { c as N } from "./cn-C9QoOYNG.js";
|
|
6
|
-
import { l as g, F as T } from "./CollectionFormBuilder-
|
|
7
|
-
import { u as H, S as M } from "./useLevoForm-
|
|
6
|
+
import { l as g, F as T } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
7
|
+
import { u as H, S as M } from "./useLevoForm-CMcusFAD.js";
|
|
8
8
|
import { B as y } from "./Spinner-DzGH5rKe.js";
|
|
9
9
|
const X = () => {
|
|
10
10
|
const [n, l] = A(0), { containerStyles: m } = g(), a = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useController as k } from "react-hook-form";
|
|
4
|
-
import { h as w, j, k as v } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as w, j, k as v } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
5
5
|
import * as c from "@radix-ui/react-switch";
|
|
6
6
|
import * as y from "react";
|
|
7
7
|
import { c as d } from "./cn-C9QoOYNG.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useFormContext as h, get as j } from "react-hook-form";
|
|
3
3
|
import { c as g } from "./cn-C9QoOYNG.js";
|
|
4
|
-
import { j as F, k as b, h as y } from "./CollectionFormBuilder-
|
|
4
|
+
import { j as F, k as b, h as y } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
5
5
|
import { I as f } from "./Input-2CvZ90f8.js";
|
|
6
6
|
const W = ({
|
|
7
7
|
field: r,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useFormContext as u, get as x } from "react-hook-form";
|
|
3
3
|
import { c as b } from "./cn-C9QoOYNG.js";
|
|
4
|
-
import { j as g, k as h, h as f } from "./CollectionFormBuilder-
|
|
4
|
+
import { j as g, k as h, h as f } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
5
5
|
const w = ({ field: e }) => {
|
|
6
6
|
var a;
|
|
7
7
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useController as p } from "react-hook-form";
|
|
4
|
-
import { h as u, j as g, k as j } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as u, j as g, k as j } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
5
5
|
import { C } from "./Checbox-sq-atGlJ.js";
|
|
6
6
|
const y = ({
|
|
7
7
|
field: e
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { H as s } from "./CollectionFormBuilder-
|
|
3
|
-
import r from "./TextWidget-
|
|
2
|
+
import { H as s } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
3
|
+
import r from "./TextWidget-LJ-qBQ4d.js";
|
|
4
4
|
const a = (t) => /* @__PURE__ */ e.jsx(
|
|
5
5
|
r,
|
|
6
6
|
{
|
|
@@ -7,8 +7,8 @@ import { useController as sr } from "react-hook-form";
|
|
|
7
7
|
import { G as R, B as P, S as W, T as er, a as or, c as q, d as G } from "./Spinner-DzGH5rKe.js";
|
|
8
8
|
import { m as cr, g as K } from "./fileUploadPresets-2raQmHT0.js";
|
|
9
9
|
import { u as V } from "./LevoProvider-Cp0CKrgY.js";
|
|
10
|
-
import { e as X } from "./errorHandler-
|
|
11
|
-
import { h as nr, j as lr, k as dr } from "./CollectionFormBuilder-
|
|
10
|
+
import { e as X } from "./errorHandler-_34Yv8wA.js";
|
|
11
|
+
import { h as nr, j as lr, k as dr } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
12
12
|
import { I as J } from "./Input-2CvZ90f8.js";
|
|
13
13
|
import { l as ir, S as F, i as xr } from "./Tooltip-CI4i4mYr.js";
|
|
14
14
|
import { useDropzone as pr } from "react-dropzone";
|
package/dist/collection/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, F as r, e as t, g as l, b as i, d as o, c as d, i as u, a as f, p as m, f as n, s as F, u as V, v as c } from "../CollectionFormBuilder-
|
|
1
|
+
import { C as s, F as r, e as t, g as l, b as i, d as o, c as d, i as u, a as f, p as m, f as n, s as F, u as V, v as c } from "../CollectionFormBuilder-Cl75S4QY.js";
|
|
2
2
|
import { default as p } from "validatorjs";
|
|
3
3
|
export {
|
|
4
4
|
s as CollectionFormBuilder,
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { L as s, u as o } from "./LevoProvider-Cp0CKrgY.js";
|
|
2
2
|
import { L as t, a as r, b as l } from "./page-YRcNFGqi.js";
|
|
3
|
-
import { C as p, F as m, e as d, g, b as f, d as T, c as u, i as c, a as x, p as b, f as D, s as v, u as y, v as F } from "./CollectionFormBuilder-
|
|
4
|
-
import { L } from "./index
|
|
3
|
+
import { C as p, F as m, e as d, g, b as f, d as T, c as u, i as c, a as x, p as b, f as D, s as v, u as y, v as F } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
4
|
+
import { LevoOAuth as L } from "./membership/index.js";
|
|
5
5
|
import { D as M, d as P, h as B, f as O, e as V, b as j, a as C, g as I, c as S, i as K, S as U, T as W, k, m as H, l as N, j as z } from "./Tooltip-CI4i4mYr.js";
|
|
6
6
|
import { T as R, e as q, s as w } from "./Sonner-t6JVKA0a.js";
|
|
7
7
|
import { B as J, S as Q, T as X, d as Y, a as Z, c as _, b as $ } from "./Spinner-DzGH5rKe.js";
|
|
8
8
|
import { b as ea } from "./byteToSize-BFKZSBu1.js";
|
|
9
|
-
import { e as oa } from "./errorHandler-
|
|
9
|
+
import { e as oa } from "./errorHandler-_34Yv8wA.js";
|
|
10
10
|
import { c as ta } from "./cn-C9QoOYNG.js";
|
|
11
11
|
import { i as la, a as na, b as pa, d as ma, c as da } from "./isEmptyObject-C5s4GzLE.js";
|
|
12
12
|
import { default as fa } from "validatorjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAoBA,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;CACX;AAaD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoChD,CAAC;AAEF,eAAO,MAAM,YAAY,4BAExB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Core.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Core.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+BnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Popup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAaF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkEhC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare class LevoOAuth {
|
|
2
|
+
static Container: import('react').FC<import('./components/Container').LevoOAuthProps>;
|
|
3
|
+
static Button: import('react').FC<{
|
|
4
|
+
provider: import('@levo-so/core').ILevoOAuthProvider;
|
|
5
|
+
children: import('react').ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
2
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/membership/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/membership/index.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,sEAAa;IAE7B,MAAM,CAAC,MAAM;;;OAAU;CACxB"}
|
package/dist/membership/index.js
CHANGED
|
@@ -1,4 +1,131 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
var O = Object.defineProperty;
|
|
3
|
+
var R = (e, t, n) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var f = (e, t, n) => R(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
+
import { j as a } from "../jsx-runtime-B6kdoens.js";
|
|
6
|
+
import j, { useState as v, useEffect as C, useMemo as P, useContext as W, useRef as g, useCallback as A } from "react";
|
|
7
|
+
import { u as E } from "../LevoProvider-Cp0CKrgY.js";
|
|
8
|
+
const m = j.createContext({
|
|
9
|
+
urls: null,
|
|
10
|
+
title: "",
|
|
11
|
+
onSuccess: () => {
|
|
12
|
+
},
|
|
13
|
+
onError: () => {
|
|
14
|
+
}
|
|
15
|
+
}), U = ({
|
|
16
|
+
title: e,
|
|
17
|
+
onSuccess: t,
|
|
18
|
+
onError: n,
|
|
19
|
+
children: r
|
|
20
|
+
}) => {
|
|
21
|
+
const { membership: o } = E(), [u, c] = v(null);
|
|
22
|
+
C(() => {
|
|
23
|
+
o && (o == null || o.getOAuthURL().then((i) => {
|
|
24
|
+
c(i);
|
|
25
|
+
}).catch(() => {
|
|
26
|
+
n({
|
|
27
|
+
code: "SOMETHING_WENT_WRONG",
|
|
28
|
+
message: "We could not connect with our service for your sign-in."
|
|
29
|
+
});
|
|
30
|
+
}));
|
|
31
|
+
}, [o]);
|
|
32
|
+
const s = P(
|
|
33
|
+
() => ({ title: e, urls: u, onSuccess: t, onError: n }),
|
|
34
|
+
[e, u, t, n]
|
|
35
|
+
);
|
|
36
|
+
return /* @__PURE__ */ a.jsx(m.Provider, { value: s, children: r });
|
|
37
|
+
}, _ = () => W(m), $ = ({ url: e, title: t, height: n, width: r }) => {
|
|
38
|
+
const o = window.screenX + (window.outerWidth - r) / 2, u = window.screenY + (window.outerHeight - n) / 2.5;
|
|
39
|
+
return window.open(
|
|
40
|
+
e,
|
|
41
|
+
t,
|
|
42
|
+
`width=${r},height=${n},left=${o},top=${u}`
|
|
43
|
+
);
|
|
44
|
+
}, k = ({
|
|
45
|
+
title: e = "",
|
|
46
|
+
width: t = 500,
|
|
47
|
+
height: n = 500,
|
|
48
|
+
url: r,
|
|
49
|
+
children: o,
|
|
50
|
+
onCode: u,
|
|
51
|
+
onClose: c
|
|
52
|
+
}) => {
|
|
53
|
+
const [s, i] = v(), l = g(), w = () => {
|
|
54
|
+
window.clearInterval(l.current);
|
|
55
|
+
}, L = () => {
|
|
56
|
+
i(
|
|
57
|
+
$({
|
|
58
|
+
url: r,
|
|
59
|
+
title: e,
|
|
60
|
+
width: t,
|
|
61
|
+
height: n
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
return C(() => (s && (l.current = window.setInterval(() => {
|
|
66
|
+
try {
|
|
67
|
+
const d = s.location.href, p = new URL(d).searchParams, x = p.get("code");
|
|
68
|
+
if (!x)
|
|
69
|
+
return;
|
|
70
|
+
u(x, p), w(), s.close();
|
|
71
|
+
} catch {
|
|
72
|
+
} finally {
|
|
73
|
+
(!s || s.closed) && (c(), w());
|
|
74
|
+
}
|
|
75
|
+
}, 700)), () => {
|
|
76
|
+
s && s.close(), c && c();
|
|
77
|
+
}), [s]), // eslint-disable-next-line
|
|
78
|
+
/* @__PURE__ */ a.jsx(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
onClick: () => {
|
|
82
|
+
L();
|
|
83
|
+
},
|
|
84
|
+
children: o
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}, y = ({
|
|
88
|
+
title: e = "Levo",
|
|
89
|
+
url: t,
|
|
90
|
+
children: n,
|
|
91
|
+
onSuccess: r,
|
|
92
|
+
onError: o,
|
|
93
|
+
width: u = 500,
|
|
94
|
+
height: c = 700
|
|
95
|
+
}) => {
|
|
96
|
+
const s = A((i, l) => {
|
|
97
|
+
i.toLowerCase() === "success" ? r(l) : o(l);
|
|
98
|
+
}, []);
|
|
99
|
+
return /* @__PURE__ */ a.jsx(
|
|
100
|
+
k,
|
|
101
|
+
{
|
|
102
|
+
title: e,
|
|
103
|
+
width: u,
|
|
104
|
+
height: c,
|
|
105
|
+
onClose: () => {
|
|
106
|
+
},
|
|
107
|
+
url: t,
|
|
108
|
+
onCode: s,
|
|
109
|
+
children: n
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}, I = ({ children: e, provider: t }) => {
|
|
113
|
+
const { title: n, urls: r, onSuccess: o, onError: u } = _(), c = r == null ? void 0 : r[t];
|
|
114
|
+
return c ? /* @__PURE__ */ a.jsx(
|
|
115
|
+
y,
|
|
116
|
+
{
|
|
117
|
+
title: n,
|
|
118
|
+
provider: t,
|
|
119
|
+
url: c,
|
|
120
|
+
onSuccess: o,
|
|
121
|
+
onError: u,
|
|
122
|
+
children: e
|
|
123
|
+
}
|
|
124
|
+
) : null;
|
|
125
|
+
};
|
|
126
|
+
class h {
|
|
127
|
+
}
|
|
128
|
+
f(h, "Container", U), f(h, "Button", I);
|
|
2
129
|
export {
|
|
3
|
-
|
|
130
|
+
h as LevoOAuth
|
|
4
131
|
};
|
|
@@ -3,9 +3,9 @@ import { useEffect as F, useState as O, useRef as B } from "react";
|
|
|
3
3
|
import { useFormContext as G, useWatch as H, useForm as W } from "react-hook-form";
|
|
4
4
|
import { useDebouncedCallback as q } from "use-debounce";
|
|
5
5
|
import { u as U } from "./LevoProvider-Cp0CKrgY.js";
|
|
6
|
-
import { l as j, b as C, s as z, f as Q } from "./CollectionFormBuilder-
|
|
6
|
+
import { l as j, b as C, s as z, f as Q } from "./CollectionFormBuilder-Cl75S4QY.js";
|
|
7
7
|
import { s as X } from "./Sonner-t6JVKA0a.js";
|
|
8
|
-
import { e as x } from "./errorHandler-
|
|
8
|
+
import { e as x } from "./errorHandler-_34Yv8wA.js";
|
|
9
9
|
import { a as Z } from "./isEmptyObject-C5s4GzLE.js";
|
|
10
10
|
const A = {
|
|
11
11
|
FORM_DIRTY: "form-dirty",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const errorHandler: (error: any) =>
|
|
1
|
+
export declare const errorHandler: (error: any) => import('@levo-so/core').LevoError;
|
|
2
2
|
//# sourceMappingURL=errorHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../src/utils/errorHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../src/utils/errorHandler.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,UAAW,GAAG,sCAMtC,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as s } from "../byteToSize-BFKZSBu1.js";
|
|
2
|
-
import { e as t } from "../errorHandler-
|
|
2
|
+
import { e as t } from "../errorHandler-_34Yv8wA.js";
|
|
3
3
|
import { c as i } from "../cn-C9QoOYNG.js";
|
|
4
4
|
import { i as c, a as p, b as f, d as m, c as O } from "../isEmptyObject-C5s4GzLE.js";
|
|
5
5
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo suite for React based applications",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": "^18.3.1",
|
|
18
18
|
"react-dom": "^18.3.1",
|
|
19
|
-
"@levo-so/core": "0.1.
|
|
19
|
+
"@levo-so/core": "0.1.7"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@radix-ui/react-checkbox": "1.1.1",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { e as f } from "./Sonner-t6JVKA0a.js";
|
|
2
|
-
class l extends Error {
|
|
3
|
-
}
|
|
4
|
-
const s = (c) => {
|
|
5
|
-
if (c instanceof l) {
|
|
6
|
-
const n = c == null ? void 0 : c.json;
|
|
7
|
-
if (typeof n == "object" && (n != null && n.content)) {
|
|
8
|
-
const t = n == null ? void 0 : n.content;
|
|
9
|
-
if (Array.isArray(t == null ? void 0 : t.errors) && (t != null && t.errors))
|
|
10
|
-
for (const i of t.errors)
|
|
11
|
-
i != null && i.message && f(i == null ? void 0 : i.message, "Error");
|
|
12
|
-
else t != null && t.title && f(t == null ? void 0 : t.description, t == null ? void 0 : t.title);
|
|
13
|
-
}
|
|
14
|
-
} else {
|
|
15
|
-
let n = "Something unexpected happened.";
|
|
16
|
-
switch (c == null ? void 0 : c.message) {
|
|
17
|
-
case "Network Error":
|
|
18
|
-
n = "Couldn't connect to our servers.";
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
f(n, "Error");
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
s as e
|
|
26
|
-
};
|
package/dist/index-BFJ48R-4.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var O = Object.defineProperty;
|
|
3
|
-
var R = (e, t, n) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var f = (e, t, n) => R(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
-
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
6
|
-
import j, { useState as v, useEffect as C, useMemo as P, useContext as W, useRef as g, useCallback as A } from "react";
|
|
7
|
-
import { u as E } from "./LevoProvider-Cp0CKrgY.js";
|
|
8
|
-
const m = j.createContext({
|
|
9
|
-
urls: null,
|
|
10
|
-
title: "",
|
|
11
|
-
onSuccess: () => {
|
|
12
|
-
},
|
|
13
|
-
onError: () => {
|
|
14
|
-
}
|
|
15
|
-
}), U = ({
|
|
16
|
-
title: e,
|
|
17
|
-
onSuccess: t,
|
|
18
|
-
onError: n,
|
|
19
|
-
children: r
|
|
20
|
-
}) => {
|
|
21
|
-
const { membership: o } = E(), [u, c] = v(null);
|
|
22
|
-
C(() => {
|
|
23
|
-
o && (o == null || o.getOAuthURL().then((i) => {
|
|
24
|
-
c(i);
|
|
25
|
-
}).catch(() => {
|
|
26
|
-
n({
|
|
27
|
-
code: "SOMETHING_WENT_WRONG",
|
|
28
|
-
message: "We could not connect with our service for your sign-in."
|
|
29
|
-
});
|
|
30
|
-
}));
|
|
31
|
-
}, [o]);
|
|
32
|
-
const s = P(
|
|
33
|
-
() => ({ title: e, urls: u, onSuccess: t, onError: n }),
|
|
34
|
-
[e, u, t, n]
|
|
35
|
-
);
|
|
36
|
-
return /* @__PURE__ */ a.jsx(m.Provider, { value: s, children: r });
|
|
37
|
-
}, _ = () => W(m), $ = ({ url: e, title: t, height: n, width: r }) => {
|
|
38
|
-
const o = window.screenX + (window.outerWidth - r) / 2, u = window.screenY + (window.outerHeight - n) / 2.5;
|
|
39
|
-
return window.open(
|
|
40
|
-
e,
|
|
41
|
-
t,
|
|
42
|
-
`width=${r},height=${n},left=${o},top=${u}`
|
|
43
|
-
);
|
|
44
|
-
}, k = ({
|
|
45
|
-
title: e = "",
|
|
46
|
-
width: t = 500,
|
|
47
|
-
height: n = 500,
|
|
48
|
-
url: r,
|
|
49
|
-
children: o,
|
|
50
|
-
onCode: u,
|
|
51
|
-
onClose: c
|
|
52
|
-
}) => {
|
|
53
|
-
const [s, i] = v(), l = g(), w = () => {
|
|
54
|
-
window.clearInterval(l.current);
|
|
55
|
-
}, L = () => {
|
|
56
|
-
i(
|
|
57
|
-
$({
|
|
58
|
-
url: r,
|
|
59
|
-
title: e,
|
|
60
|
-
width: t,
|
|
61
|
-
height: n
|
|
62
|
-
})
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
return C(() => (s && (l.current = window.setInterval(() => {
|
|
66
|
-
try {
|
|
67
|
-
const d = s.location.href, p = new URL(d).searchParams, x = p.get("code");
|
|
68
|
-
if (!x)
|
|
69
|
-
return;
|
|
70
|
-
u(x, p), w(), s.close();
|
|
71
|
-
} catch {
|
|
72
|
-
} finally {
|
|
73
|
-
(!s || s.closed) && (c(), w());
|
|
74
|
-
}
|
|
75
|
-
}, 700)), () => {
|
|
76
|
-
s && s.close(), c && c();
|
|
77
|
-
}), [s]), // eslint-disable-next-line
|
|
78
|
-
/* @__PURE__ */ a.jsx(
|
|
79
|
-
"div",
|
|
80
|
-
{
|
|
81
|
-
onClick: () => {
|
|
82
|
-
L();
|
|
83
|
-
},
|
|
84
|
-
children: o
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}, y = ({
|
|
88
|
-
title: e = "Levo",
|
|
89
|
-
url: t,
|
|
90
|
-
children: n,
|
|
91
|
-
onSuccess: r,
|
|
92
|
-
onError: o,
|
|
93
|
-
width: u = 500,
|
|
94
|
-
height: c = 700
|
|
95
|
-
}) => {
|
|
96
|
-
const s = A((i, l) => {
|
|
97
|
-
i.toLowerCase() === "success" ? r(l) : o(l);
|
|
98
|
-
}, []);
|
|
99
|
-
return /* @__PURE__ */ a.jsx(
|
|
100
|
-
k,
|
|
101
|
-
{
|
|
102
|
-
title: e,
|
|
103
|
-
width: u,
|
|
104
|
-
height: c,
|
|
105
|
-
onClose: () => {
|
|
106
|
-
},
|
|
107
|
-
url: t,
|
|
108
|
-
onCode: s,
|
|
109
|
-
children: n
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
}, I = ({ children: e, provider: t }) => {
|
|
113
|
-
const { title: n, urls: r, onSuccess: o, onError: u } = _(), c = r == null ? void 0 : r[t];
|
|
114
|
-
return c ? /* @__PURE__ */ a.jsx(
|
|
115
|
-
y,
|
|
116
|
-
{
|
|
117
|
-
title: n,
|
|
118
|
-
provider: t,
|
|
119
|
-
url: c,
|
|
120
|
-
onSuccess: o,
|
|
121
|
-
onError: u,
|
|
122
|
-
children: e
|
|
123
|
-
}
|
|
124
|
-
) : null;
|
|
125
|
-
};
|
|
126
|
-
class h {
|
|
127
|
-
}
|
|
128
|
-
f(h, "Container", U), f(h, "Button", I);
|
|
129
|
-
export {
|
|
130
|
-
h as L
|
|
131
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/membership/components/OAuth/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAoBA,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../src/membership/components/OAuth/Container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;CACX;AAaD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoChD,CAAC;AAEF,eAAO,MAAM,YAAY,4BAExB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Core.d.ts","sourceRoot":"","sources":["../../../../src/membership/components/OAuth/Core.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+BnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/membership/components/OAuth/Popup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAaF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkEhC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class LevoOAuth {
|
|
2
|
-
static Container: import('react').FC<import('./OAuth/Container').LevoOAuthProps>;
|
|
3
|
-
static Button: import('react').FC<{
|
|
4
|
-
provider: import('@levo-so/core').ILevoOAuthProvider;
|
|
5
|
-
children: import('react').ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/membership/components/index.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,iEAAa;IAE7B,MAAM,CAAC,MAAM;;;OAAU;CACxB"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|