@arkyn/components 3.0.1-beta.156 → 3.0.1-beta.158
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/components/calendar/_viewService.d.ts +1 -1
- package/dist/components/fullCalendar/_viewService.d.ts +2 -2
- package/dist/hooks/useScopedParams.d.ts +1 -1
- package/dist/index.js +4347 -4683
- package/dist/modules/components/alert/alertContainer/index.js +25 -20
- package/dist/modules/components/alert/alertContent/index.js +11 -8
- package/dist/modules/components/alert/alertDescription/index.js +11 -8
- package/dist/modules/components/alert/alertIcon/index.js +27 -19
- package/dist/modules/components/alert/alertTitle/index.js +11 -8
- package/dist/modules/components/audioPlayer/index.js +74 -75
- package/dist/modules/components/audioUpload/hasFileContent/index.js +54 -62
- package/dist/modules/components/audioUpload/index.js +71 -79
- package/dist/modules/components/audioUpload/noFileContent/index.js +35 -45
- package/dist/modules/components/badge/index.js +26 -22
- package/dist/modules/components/button/index.js +39 -32
- package/dist/modules/components/calendar/_calendarProvider.js +38 -63
- package/dist/modules/components/calendar/_viewService.js +132 -140
- package/dist/modules/components/calendar/calendarContainer/index.js +10 -7
- package/dist/modules/components/calendar/calendarHeader/index.js +51 -72
- package/dist/modules/components/calendar/calendarTableBody/index.js +12 -10
- package/dist/modules/components/calendar/calendarTableContainer/index.js +10 -7
- package/dist/modules/components/calendar/calendarTableHeader/index.js +13 -10
- package/dist/modules/components/calendar/calendarTableTd/index.js +20 -23
- package/dist/modules/components/calendar/index.js +31 -49
- package/dist/modules/components/cardTab/cardTabButton/index.js +19 -29
- package/dist/modules/components/cardTab/cardTabContainer/index.js +22 -28
- package/dist/modules/components/cardTab/cardTabContext.js +13 -11
- package/dist/modules/components/checkbox/index.js +37 -64
- package/dist/modules/components/clientOnly.js +8 -8
- package/dist/modules/components/currencyInput/index.js +110 -138
- package/dist/modules/components/divider/index.js +10 -11
- package/dist/modules/components/drawer/drawerContainer/index.js +40 -43
- package/dist/modules/components/drawer/drawerContext.js +13 -11
- package/dist/modules/components/drawer/drawerHeader/index.js +20 -27
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +8 -18
- package/dist/modules/components/facebookPixel/index.js +8 -8
- package/dist/modules/components/facebookPixel/pixel.js +47 -52
- package/dist/modules/components/fieldError/index.js +12 -8
- package/dist/modules/components/fieldLabel/index.js +11 -12
- package/dist/modules/components/fieldWrapper/index.js +12 -13
- package/dist/modules/components/fileUpload/hasFileContent/index.js +59 -67
- package/dist/modules/components/fileUpload/index.js +65 -72
- package/dist/modules/components/fileUpload/noFileContent/index.js +35 -45
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +33 -46
- package/dist/modules/components/fullCalendar/_viewService.js +100 -105
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +10 -7
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +70 -78
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +28 -33
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +12 -9
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +10 -7
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +67 -70
- package/dist/modules/components/fullCalendar/index.js +30 -30
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +9 -12
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +28 -36
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +11 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +10 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +13 -10
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +35 -36
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +8 -11
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +70 -78
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +17 -20
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +9 -8
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +16 -19
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +34 -39
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +7 -7
- package/dist/modules/components/googleAnalytics/googleAnalytics.js +17 -17
- package/dist/modules/components/googleAnalytics/index.js +9 -9
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +10 -12
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
- package/dist/modules/components/googleTagManager/googleTagManager.js +44 -48
- package/dist/modules/components/googleTagManager/index.js +16 -27
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +19 -20
- package/dist/modules/components/iconButton/index.js +31 -29
- package/dist/modules/components/imageUpload/hasFileContent/index.js +46 -63
- package/dist/modules/components/imageUpload/index.js +65 -82
- package/dist/modules/components/imageUpload/noFileContent/index.js +35 -45
- package/dist/modules/components/input/index.js +92 -120
- package/dist/modules/components/mapView/index.js +27 -31
- package/dist/modules/components/mapView/mapView.client.js +49 -51
- package/dist/modules/components/maskedInput/index.js +101 -112
- package/dist/modules/components/modal/modalContainer/index.js +49 -42
- package/dist/modules/components/modal/modalContext.js +13 -11
- package/dist/modules/components/modal/modalFooter/index.js +10 -7
- package/dist/modules/components/modal/modalHeader/index.js +20 -27
- package/dist/modules/components/multiSelect/index.js +115 -154
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +18 -21
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +13 -29
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +11 -8
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +19 -22
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +17 -13
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +35 -45
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +11 -8
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +13 -16
- package/dist/modules/components/pagination/chevronButton/index.js +17 -17
- package/dist/modules/components/pagination/currentButton/index.js +11 -7
- package/dist/modules/components/pagination/index.js +51 -83
- package/dist/modules/components/pagination/pageButton/index.js +12 -8
- package/dist/modules/components/pagination/paginationService.js +33 -48
- package/dist/modules/components/pagination/spread/index.js +10 -7
- package/dist/modules/components/phoneInput/index.js +103 -151
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +12 -19
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +11 -8
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +23 -15
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +33 -43
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +25 -21
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +46 -62
- package/dist/modules/components/popover/index.js +37 -36
- package/dist/modules/components/radio/radioBox/index.js +24 -42
- package/dist/modules/components/radio/radioContext.js +20 -18
- package/dist/modules/components/radio/radioGroup/index.js +41 -64
- package/dist/modules/components/richText/blockButton/index.js +20 -23
- package/dist/modules/components/richText/element/index.js +72 -58
- package/dist/modules/components/richText/index.js +143 -135
- package/dist/modules/components/richText/insertImage/index.js +94 -105
- package/dist/modules/components/richText/insertVideo/index.js +85 -97
- package/dist/modules/components/richText/leaf/index.js +9 -6
- package/dist/modules/components/richText/markButton/index.js +19 -22
- package/dist/modules/components/richText/toolbar/index.js +10 -7
- package/dist/modules/components/searchPlaces.js +57 -66
- package/dist/modules/components/select/index.js +112 -144
- package/dist/modules/components/select/selectChevron/index.js +18 -21
- package/dist/modules/components/select/selectContainer/index.js +13 -29
- package/dist/modules/components/select/selectContent/index.js +11 -8
- package/dist/modules/components/select/selectOption/index.js +17 -13
- package/dist/modules/components/select/selectOptionsContainer/index.js +35 -45
- package/dist/modules/components/select/selectOverlay/index.js +11 -8
- package/dist/modules/components/select/selectSpinner/index.js +13 -9
- package/dist/modules/components/slider/index.js +34 -41
- package/dist/modules/components/switch/index.js +35 -62
- package/dist/modules/components/tab/tabButton/index.js +19 -29
- package/dist/modules/components/tab/tabContainer/index.js +22 -28
- package/dist/modules/components/tab/tabContext.js +12 -10
- package/dist/modules/components/table/tableBody/index.js +19 -14
- package/dist/modules/components/table/tableCaption/index.js +15 -8
- package/dist/modules/components/table/tableContainer/index.js +12 -8
- package/dist/modules/components/table/tableFooter/index.js +18 -11
- package/dist/modules/components/table/tableHeader/index.js +12 -11
- package/dist/modules/components/textarea/index.js +51 -69
- package/dist/modules/components/tooltip/index.js +34 -45
- package/dist/modules/hooks/useAutomation.js +35 -27
- package/dist/modules/hooks/useDrawer.js +17 -19
- package/dist/modules/hooks/useForm.js +6 -6
- package/dist/modules/hooks/useHydrated.js +7 -12
- package/dist/modules/hooks/useModal.js +17 -19
- package/dist/modules/hooks/useScopedParams.js +17 -17
- package/dist/modules/hooks/useScrollLock.js +19 -19
- package/dist/modules/hooks/useSearchAutomation.js +31 -14
- package/dist/modules/hooks/useSlider.js +13 -13
- package/dist/modules/hooks/useToast.js +8 -9
- package/dist/modules/index.js +72 -144
- package/dist/modules/providers/drawerProvider.js +35 -30
- package/dist/modules/providers/formProvider.js +11 -16
- package/dist/modules/providers/modalProvider.js +39 -33
- package/dist/modules/providers/placesProvider.js +16 -16
- package/dist/modules/providers/toastProvider.js +45 -51
- package/dist/modules/services/extractTextFromNode.js +6 -6
- package/dist/modules/services/fieldTemplate.js +22 -23
- package/dist/modules/services/iconRenderer.js +14 -7
- package/dist/modules/services/isBlockActive.js +12 -14
- package/dist/modules/services/isMarkActive.js +6 -6
- package/dist/modules/services/maskCurrencyValues.js +11 -12
- package/dist/modules/services/toHtml.js +6 -6
- package/dist/modules/services/toRichTextValue.js +7 -7
- package/dist/modules/services/toggleBlock.js +20 -19
- package/dist/modules/services/toggleMark.js +7 -7
- package/dist/modules/style.css +2 -1
- package/dist/modules/templates/badResponses.js +13 -13
- package/dist/modules/templates/richTextTemplates.js +17 -14
- package/dist/modules/templates/successResponses.js +9 -4
- package/dist/modules/utils/phoneInputUtilities.js +18 -28
- package/dist/modules/utils/richTextUtilities.js +88 -75
- package/dist/services/fieldTemplate.d.ts +1 -1
- package/dist/services/fieldTemplate.d.ts.map +1 -1
- package/dist/style.css +2 -1
- package/package.json +4 -4
- package/styles.d.ts +2 -0
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { useModal as e } from "./useModal.js";
|
|
2
|
+
import { useToast as t } from "./useToast.js";
|
|
3
|
+
import { badResponses as n } from "../templates/badResponses.js";
|
|
4
|
+
import { successResponses as r } from "../templates/successResponses.js";
|
|
5
|
+
import { useEffect as i } from "react";
|
|
6
|
+
import { scroller as a } from "react-scroll";
|
|
7
|
+
//#region src/hooks/useAutomation.ts
|
|
8
|
+
function o(o) {
|
|
9
|
+
let { closeAll: s } = e(), { showToast: c } = t(), l = o?.closeModal, u = o?.message, d = o?.name, f = o?.cause?.data?.scrollTo, p = o?.cause?.fieldErrors ? Object.values(o?.cause?.fieldErrors)[0] : null;
|
|
10
|
+
function m() {
|
|
11
|
+
if (!(!u && !p)) {
|
|
12
|
+
if (r.includes(d)) return c({
|
|
13
|
+
message: u,
|
|
14
|
+
type: "success"
|
|
15
|
+
});
|
|
16
|
+
if (n.includes(d)) {
|
|
17
|
+
if (p) return c({
|
|
18
|
+
message: p,
|
|
19
|
+
type: "danger"
|
|
20
|
+
});
|
|
21
|
+
if (u !== "Unprocessable entity") return c({
|
|
22
|
+
message: u,
|
|
23
|
+
type: "danger"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
i(() => {
|
|
29
|
+
l && s(), f && a.scrollTo(f, {
|
|
30
|
+
smooth: !0,
|
|
31
|
+
offset: 20
|
|
32
|
+
}), m();
|
|
33
|
+
}, [o]);
|
|
25
34
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { o as useAutomation };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return e;
|
|
1
|
+
import { drawerContext as e } from "../providers/drawerProvider.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
//#region src/hooks/useDrawer.ts
|
|
4
|
+
function n(n) {
|
|
5
|
+
let r = t(e);
|
|
6
|
+
if (Object.entries(r).length === 0) throw Error("useDrawer must be used within a Provider");
|
|
7
|
+
if (n) {
|
|
8
|
+
let { drawerData: e, drawerIsOpen: t, openDrawer: i, closeDrawer: a } = r;
|
|
9
|
+
return {
|
|
10
|
+
drawerIsOpen: t(n),
|
|
11
|
+
drawerData: e(n),
|
|
12
|
+
openDrawer: (e) => i(n, e),
|
|
13
|
+
closeDrawer: () => a(n)
|
|
14
|
+
};
|
|
15
|
+
} else return r;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as useDrawer };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { formContext as e } from "../providers/formProvider.js";
|
|
1
2
|
import { useContext as t } from "react";
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
3
|
+
//#region src/hooks/useForm.ts
|
|
4
|
+
function n() {
|
|
5
|
+
return t(e);
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as useForm };
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { useSyncExternalStore as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useSyncExternalStore as e } from "react";
|
|
2
|
+
//#region src/hooks/useHydrated.ts
|
|
3
|
+
function t() {
|
|
4
|
+
return () => {};
|
|
5
5
|
}
|
|
6
6
|
function n() {
|
|
7
|
-
|
|
8
|
-
e,
|
|
9
|
-
() => !0,
|
|
10
|
-
() => !1
|
|
11
|
-
);
|
|
7
|
+
return e(t, () => !0, () => !1);
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as useHydrated };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return t;
|
|
1
|
+
import { modalContext as e } from "../providers/modalProvider.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
//#region src/hooks/useModal.ts
|
|
4
|
+
function n(n) {
|
|
5
|
+
let r = t(e);
|
|
6
|
+
if (Object.entries(r).length === 0) throw Error("useModal must be used within a Provider");
|
|
7
|
+
if (n) {
|
|
8
|
+
let { modalData: e, modalIsOpen: t, openModal: i, closeModal: a } = r;
|
|
9
|
+
return {
|
|
10
|
+
modalIsOpen: t(n),
|
|
11
|
+
modalData: e(n),
|
|
12
|
+
openModal: (e) => i(n, e),
|
|
13
|
+
closeModal: () => a(n)
|
|
14
|
+
};
|
|
15
|
+
} else return r;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as useModal };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
//#region src/hooks/useScopedParams.ts
|
|
2
|
+
function e(e, t = "") {
|
|
3
|
+
let n = new URLSearchParams(e), r = t ? `${t}:` : "", i = (e) => {
|
|
4
|
+
Object.entries(e).forEach(([e, t]) => {
|
|
5
|
+
t === void 0 ? n.delete(`${r}${e}`) : n.set(`${r}${e}`, String(t));
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
return {
|
|
9
|
+
getParam: (e) => n.get(`${r}${e}`),
|
|
10
|
+
getScopedSearch: (e) => {
|
|
11
|
+
i(e);
|
|
12
|
+
let t = n.toString();
|
|
13
|
+
return t &&= "?" + t, t;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as useScopedParams };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useEffect as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
//#region src/hooks/useScrollLock.ts
|
|
3
|
+
function t() {
|
|
4
|
+
return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
|
|
4
5
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
function n(n) {
|
|
7
|
+
e(() => {
|
|
8
|
+
if (n) {
|
|
9
|
+
let e = document.body.style.overflow, n = document.body.style.paddingRight, r = t();
|
|
10
|
+
if (r > 0) {
|
|
11
|
+
let e = window.getComputedStyle(document.body), t = parseInt(e.paddingRight) || 0;
|
|
12
|
+
document.body.style.paddingRight = `${t + r}px`;
|
|
13
|
+
}
|
|
14
|
+
return document.body.style.overflow = "hidden", () => {
|
|
15
|
+
document.body.style.overflow = e, document.body.style.paddingRight = n;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}, [n]);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as useScrollLock };
|
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useModal as e } from "./useModal.js";
|
|
2
|
+
import { useToast as t } from "./useToast.js";
|
|
3
|
+
import { badResponses as n } from "../templates/badResponses.js";
|
|
4
|
+
import { successResponses as r } from "../templates/successResponses.js";
|
|
5
|
+
import { useScopedParams as i } from "./useScopedParams.js";
|
|
6
|
+
import { useEffect as a } from "react";
|
|
7
|
+
//#region src/hooks/useSearchAutomation.ts
|
|
8
|
+
function o(o, s = "") {
|
|
9
|
+
let { closeAll: c } = e(), { showToast: l } = t(), { getParam: u } = i(o, s), d = u("closeModal") === "true", f = u("message"), p = u("name"), m = u("type");
|
|
10
|
+
a(() => {
|
|
11
|
+
d && c(), f && (m === "success" && l({
|
|
12
|
+
message: f,
|
|
13
|
+
type: "success"
|
|
14
|
+
}), m === "danger" && l({
|
|
15
|
+
message: f,
|
|
16
|
+
type: "danger"
|
|
17
|
+
}), p && n.includes(p) && !n.includes(f) && l({
|
|
18
|
+
message: f,
|
|
19
|
+
type: "danger"
|
|
20
|
+
}), p && r.includes(p) && !r.includes(f) && l({
|
|
21
|
+
message: f,
|
|
22
|
+
type: "success"
|
|
23
|
+
}));
|
|
24
|
+
}, [
|
|
25
|
+
d,
|
|
26
|
+
f,
|
|
27
|
+
p,
|
|
28
|
+
m
|
|
29
|
+
]);
|
|
12
30
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { o as useSearchAutomation };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useState as e } from "react";
|
|
2
|
+
//#region src/hooks/useSlider.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
function n() {
|
|
5
|
+
return !t || t <= 0 ? 0 : t >= 100 ? 100 : t;
|
|
6
|
+
}
|
|
7
|
+
let [r, i] = e(n());
|
|
8
|
+
function a(e) {
|
|
9
|
+
return i(e <= 0 ? 0 : e >= 100 ? 100 : e);
|
|
10
|
+
}
|
|
11
|
+
return [r, a];
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as useSlider };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toastContext as e } from "../providers/toastProvider.js";
|
|
2
|
-
import { useContext as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
//#region src/hooks/useToast.ts
|
|
4
|
+
function n() {
|
|
5
|
+
let n = t(e);
|
|
6
|
+
if (Object.entries(n).length === 0) throw Error("useToast must be used within a Provider");
|
|
7
|
+
return n;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as useToast };
|
package/dist/modules/index.js
CHANGED
|
@@ -1,144 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import { DrawerProvider as
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import { toHtml as
|
|
71
|
-
import { toRichTextValue as
|
|
72
|
-
export {
|
|
73
|
-
e as AlertContainer,
|
|
74
|
-
p as AlertContent,
|
|
75
|
-
x as AlertDescription,
|
|
76
|
-
a as AlertIcon,
|
|
77
|
-
i as AlertTitle,
|
|
78
|
-
d as AudioPlayer,
|
|
79
|
-
c as AudioUpload,
|
|
80
|
-
T as Badge,
|
|
81
|
-
P as Button,
|
|
82
|
-
A as Calendar,
|
|
83
|
-
M as CardTabButton,
|
|
84
|
-
g as CardTabContainer,
|
|
85
|
-
v as Checkbox,
|
|
86
|
-
I as ClientOnly,
|
|
87
|
-
y as CurrencyInput,
|
|
88
|
-
H as Divider,
|
|
89
|
-
R as DrawerContainer,
|
|
90
|
-
U as DrawerHeader,
|
|
91
|
-
Sr as DrawerProvider,
|
|
92
|
-
V as FacebookPixel,
|
|
93
|
-
O as FieldError,
|
|
94
|
-
j as FieldLabel,
|
|
95
|
-
z as FieldWrapper,
|
|
96
|
-
K as FileUpload,
|
|
97
|
-
hr as FormProvider,
|
|
98
|
-
Q as FullCalendar,
|
|
99
|
-
Y as GoogleAnalytics,
|
|
100
|
-
_ as GoogleTagManager,
|
|
101
|
-
oo as IconButton,
|
|
102
|
-
eo as ImageUpload,
|
|
103
|
-
po as Input,
|
|
104
|
-
xo as MapView,
|
|
105
|
-
ao as MaskedInput,
|
|
106
|
-
io as ModalContainer,
|
|
107
|
-
uo as ModalFooter,
|
|
108
|
-
so as ModalHeader,
|
|
109
|
-
Br as ModalProvider,
|
|
110
|
-
Co as MultiSelect,
|
|
111
|
-
bo as Pagination,
|
|
112
|
-
Fo as PhoneInput,
|
|
113
|
-
wr as PlacesProvider,
|
|
114
|
-
So as Popover,
|
|
115
|
-
ho as RadioBox,
|
|
116
|
-
Bo as RadioGroup,
|
|
117
|
-
wo as RichText,
|
|
118
|
-
Do as SearchPlaces,
|
|
119
|
-
ko as Select,
|
|
120
|
-
Go as Slider,
|
|
121
|
-
Lo as Switch,
|
|
122
|
-
Eo as TabButton,
|
|
123
|
-
Wo as TabContainer,
|
|
124
|
-
qo as TableBody,
|
|
125
|
-
Jo as TableCaption,
|
|
126
|
-
No as TableContainer,
|
|
127
|
-
Xo as TableFooter,
|
|
128
|
-
Zo as TableHeader,
|
|
129
|
-
$o as Textarea,
|
|
130
|
-
Dr as ToastProvider,
|
|
131
|
-
rr as Tooltip,
|
|
132
|
-
kr as toHtml,
|
|
133
|
-
Gr as toRichTextValue,
|
|
134
|
-
tr as useAutomation,
|
|
135
|
-
mr as useDrawer,
|
|
136
|
-
fr as useForm,
|
|
137
|
-
lr as useHydrated,
|
|
138
|
-
nr as useModal,
|
|
139
|
-
ur as useScopedParams,
|
|
140
|
-
sr as useScrollLock,
|
|
141
|
-
Cr as useSearchAutomation,
|
|
142
|
-
br as useSlider,
|
|
143
|
-
Fr as useToast
|
|
144
|
-
};
|
|
1
|
+
import { AlertTitle as e } from "./components/alert/alertTitle/index.js";
|
|
2
|
+
import { AlertContainer as t } from "./components/alert/alertContainer/index.js";
|
|
3
|
+
import { AlertContent as n } from "./components/alert/alertContent/index.js";
|
|
4
|
+
import { AlertDescription as r } from "./components/alert/alertDescription/index.js";
|
|
5
|
+
import { AlertIcon as i } from "./components/alert/alertIcon/index.js";
|
|
6
|
+
import { useSlider as a } from "./hooks/useSlider.js";
|
|
7
|
+
import { Slider as o } from "./components/slider/index.js";
|
|
8
|
+
import { AudioPlayer as s } from "./components/audioPlayer/index.js";
|
|
9
|
+
import { FormProvider as c } from "./providers/formProvider.js";
|
|
10
|
+
import { useForm as l } from "./hooks/useForm.js";
|
|
11
|
+
import { FieldError as u } from "./components/fieldError/index.js";
|
|
12
|
+
import { FieldLabel as d } from "./components/fieldLabel/index.js";
|
|
13
|
+
import { FieldWrapper as f } from "./components/fieldWrapper/index.js";
|
|
14
|
+
import { Button as p } from "./components/button/index.js";
|
|
15
|
+
import { Divider as m } from "./components/divider/index.js";
|
|
16
|
+
import { IconButton as h } from "./components/iconButton/index.js";
|
|
17
|
+
import { Tooltip as g } from "./components/tooltip/index.js";
|
|
18
|
+
import { AudioUpload as _ } from "./components/audioUpload/index.js";
|
|
19
|
+
import { Badge as v } from "./components/badge/index.js";
|
|
20
|
+
import { useScrollLock as y } from "./hooks/useScrollLock.js";
|
|
21
|
+
import { Input as b } from "./components/input/index.js";
|
|
22
|
+
import { Select as x } from "./components/select/index.js";
|
|
23
|
+
import { Calendar as S } from "./components/calendar/index.js";
|
|
24
|
+
import { CardTabButton as C } from "./components/cardTab/cardTabButton/index.js";
|
|
25
|
+
import { CardTabContainer as w } from "./components/cardTab/cardTabContainer/index.js";
|
|
26
|
+
import { Checkbox as T } from "./components/checkbox/index.js";
|
|
27
|
+
import { useHydrated as E } from "./hooks/useHydrated.js";
|
|
28
|
+
import { ClientOnly as D } from "./components/clientOnly.js";
|
|
29
|
+
import { CurrencyInput as O } from "./components/currencyInput/index.js";
|
|
30
|
+
import { DrawerContainer as k } from "./components/drawer/drawerContainer/index.js";
|
|
31
|
+
import { DrawerHeader as A } from "./components/drawer/drawerHeader/index.js";
|
|
32
|
+
import { FacebookPixel as j } from "./components/facebookPixel/index.js";
|
|
33
|
+
import { FileUpload as M } from "./components/fileUpload/index.js";
|
|
34
|
+
import { FullCalendar as N } from "./components/fullCalendar/index.js";
|
|
35
|
+
import { GoogleAnalytics as P } from "./components/googleAnalytics/index.js";
|
|
36
|
+
import { GoogleTagManager as F } from "./components/googleTagManager/index.js";
|
|
37
|
+
import { ImageUpload as I } from "./components/imageUpload/index.js";
|
|
38
|
+
import { MapView as L } from "./components/mapView/index.js";
|
|
39
|
+
import { MaskedInput as R } from "./components/maskedInput/index.js";
|
|
40
|
+
import { ModalContainer as z } from "./components/modal/modalContainer/index.js";
|
|
41
|
+
import { ModalFooter as B } from "./components/modal/modalFooter/index.js";
|
|
42
|
+
import { ModalHeader as V } from "./components/modal/modalHeader/index.js";
|
|
43
|
+
import { MultiSelect as H } from "./components/multiSelect/index.js";
|
|
44
|
+
import { Pagination as U } from "./components/pagination/index.js";
|
|
45
|
+
import { PhoneInput as W } from "./components/phoneInput/index.js";
|
|
46
|
+
import { Popover as G } from "./components/popover/index.js";
|
|
47
|
+
import { RadioBox as K } from "./components/radio/radioBox/index.js";
|
|
48
|
+
import { RadioGroup as q } from "./components/radio/radioGroup/index.js";
|
|
49
|
+
import { TabButton as J } from "./components/tab/tabButton/index.js";
|
|
50
|
+
import { TabContainer as Y } from "./components/tab/tabContainer/index.js";
|
|
51
|
+
import { RichText as X } from "./components/richText/index.js";
|
|
52
|
+
import { SearchPlaces as Z } from "./components/searchPlaces.js";
|
|
53
|
+
import { Switch as Q } from "./components/switch/index.js";
|
|
54
|
+
import { TableBody as $ } from "./components/table/tableBody/index.js";
|
|
55
|
+
import { TableCaption as ee } from "./components/table/tableCaption/index.js";
|
|
56
|
+
import { TableContainer as te } from "./components/table/tableContainer/index.js";
|
|
57
|
+
import { TableFooter as ne } from "./components/table/tableFooter/index.js";
|
|
58
|
+
import { TableHeader as re } from "./components/table/tableHeader/index.js";
|
|
59
|
+
import { Textarea as ie } from "./components/textarea/index.js";
|
|
60
|
+
import { ModalProvider as ae } from "./providers/modalProvider.js";
|
|
61
|
+
import { useModal as oe } from "./hooks/useModal.js";
|
|
62
|
+
import { ToastProvider as se } from "./providers/toastProvider.js";
|
|
63
|
+
import { useToast as ce } from "./hooks/useToast.js";
|
|
64
|
+
import { useAutomation as le } from "./hooks/useAutomation.js";
|
|
65
|
+
import { DrawerProvider as ue } from "./providers/drawerProvider.js";
|
|
66
|
+
import { useDrawer as de } from "./hooks/useDrawer.js";
|
|
67
|
+
import { useScopedParams as fe } from "./hooks/useScopedParams.js";
|
|
68
|
+
import { useSearchAutomation as pe } from "./hooks/useSearchAutomation.js";
|
|
69
|
+
import { PlacesProvider as me } from "./providers/placesProvider.js";
|
|
70
|
+
import { toHtml as he } from "./services/toHtml.js";
|
|
71
|
+
import { toRichTextValue as ge } from "./services/toRichTextValue.js";
|
|
72
|
+
export { t as AlertContainer, n as AlertContent, r as AlertDescription, i as AlertIcon, e as AlertTitle, s as AudioPlayer, _ as AudioUpload, v as Badge, p as Button, S as Calendar, C as CardTabButton, w as CardTabContainer, T as Checkbox, D as ClientOnly, O as CurrencyInput, m as Divider, k as DrawerContainer, A as DrawerHeader, ue as DrawerProvider, j as FacebookPixel, u as FieldError, d as FieldLabel, f as FieldWrapper, M as FileUpload, c as FormProvider, N as FullCalendar, P as GoogleAnalytics, F as GoogleTagManager, h as IconButton, I as ImageUpload, b as Input, L as MapView, R as MaskedInput, z as ModalContainer, B as ModalFooter, V as ModalHeader, ae as ModalProvider, H as MultiSelect, U as Pagination, W as PhoneInput, me as PlacesProvider, G as Popover, K as RadioBox, q as RadioGroup, X as RichText, Z as SearchPlaces, x as Select, o as Slider, Q as Switch, J as TabButton, Y as TabContainer, $ as TableBody, ee as TableCaption, te as TableContainer, ne as TableFooter, re as TableHeader, ie as Textarea, se as ToastProvider, g as Tooltip, he as toHtml, ge as toRichTextValue, le as useAutomation, de as useDrawer, l as useForm, E as useHydrated, oe as useModal, fe as useScopedParams, y as useScrollLock, pe as useSearchAutomation, a as useSlider, ce as useToast };
|