@arkyn/components 3.0.1-beta.156 → 3.0.1-beta.157
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 +3 -3
|
@@ -1,140 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Loader2 as $ } from "lucide-react";
|
|
3
|
-
import { useState as z, useRef as ne, useId as re, useEffect as te } from "react";
|
|
4
|
-
import { useForm as ae } from "../../hooks/useForm.js";
|
|
5
|
-
import { FieldTemplate as ie } from "../../services/fieldTemplate.js";
|
|
1
|
+
import { useForm as e } from "../../hooks/useForm.js";
|
|
6
2
|
import { IconRenderer as t } from "../../services/iconRenderer.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
{
|
|
115
|
-
type: "hidden",
|
|
116
|
-
name: l,
|
|
117
|
-
value: ce(h),
|
|
118
|
-
readOnly: !0
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
/* @__PURE__ */ s(t, { show: !o, icon: F, iconSize: n }),
|
|
122
|
-
/* @__PURE__ */ s(
|
|
123
|
-
t,
|
|
124
|
-
{
|
|
125
|
-
show: W,
|
|
126
|
-
iconSize: n,
|
|
127
|
-
className: "spinner",
|
|
128
|
-
icon: $
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
/* @__PURE__ */ s(t, { iconSize: n, icon: V, className: "suffix" })
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
);
|
|
3
|
+
import { FieldTemplate as n } from "../../services/fieldTemplate.js";
|
|
4
|
+
import { maskCurrencyValues as r, normalizeValue as i } from "../../services/maskCurrencyValues.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
import { Loader2 as d } from "lucide-react";
|
|
9
|
+
//#region src/components/currencyInput/index.tsx
|
|
10
|
+
function f(f) {
|
|
11
|
+
let { name: p, disabled: m, title: h, style: g, variant: _ = "solid", label: v, className: y = "", value: b, defaultValue: x, max: S = 1e9, locale: C, onChange: w, prefix: T, suffix: E, isLoading: D = !1, leftIcon: O, readOnly: k, onFocus: A, onBlur: j, errorMessage: M, unShowFieldTemplate: N, orientation: P, showAsterisk: F, rightIcon: I, size: L = "md", id: R, ...z } = f, { fieldErrors: B } = e(), [V, H] = c(!1), [U, W] = c("0"), G = s(null), K = R || o(), q = M || B?.[p], J = !!q, Y = m || D, X = {
|
|
12
|
+
md: 20,
|
|
13
|
+
lg: 20
|
|
14
|
+
}[L], Z = I ? "right" : "left", Q = Z === "left" && D, $ = Z === "right" && D;
|
|
15
|
+
function ee() {
|
|
16
|
+
Y || !G?.current || (H(!0), G.current.focus());
|
|
17
|
+
}
|
|
18
|
+
function te(e) {
|
|
19
|
+
H(!0), A && A(e);
|
|
20
|
+
}
|
|
21
|
+
function ne(e) {
|
|
22
|
+
H(!1), j && j(e);
|
|
23
|
+
}
|
|
24
|
+
let re = (e) => {
|
|
25
|
+
let [t, n] = r(e, C);
|
|
26
|
+
return !S || t <= S ? (W(n), [t, n]) : r(e, C);
|
|
27
|
+
};
|
|
28
|
+
return a(() => {
|
|
29
|
+
function e() {
|
|
30
|
+
if (typeof b == "number") return b;
|
|
31
|
+
if (typeof x == "number") return x;
|
|
32
|
+
}
|
|
33
|
+
let [, t] = r(e(), C);
|
|
34
|
+
W(t);
|
|
35
|
+
}, [
|
|
36
|
+
C,
|
|
37
|
+
x,
|
|
38
|
+
b
|
|
39
|
+
]), /* @__PURE__ */ l(n, {
|
|
40
|
+
name: p,
|
|
41
|
+
label: v,
|
|
42
|
+
showAsterisk: F,
|
|
43
|
+
className: y,
|
|
44
|
+
errorMessage: q,
|
|
45
|
+
unShowFieldTemplate: N,
|
|
46
|
+
orientation: P,
|
|
47
|
+
children: /* @__PURE__ */ u("section", {
|
|
48
|
+
title: h,
|
|
49
|
+
style: g,
|
|
50
|
+
className: `arkynCurrencyInput ${T ? "hasPrefix" : ""} ${E ? "hasSuffix" : ""} ${_} ${L} ${Y || k || D ? "opacity" : ""} ${J ? "errored" : ""} ${V ? "focused" : ""}`,
|
|
51
|
+
onClick: ee,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ l(t, {
|
|
54
|
+
iconSize: X,
|
|
55
|
+
icon: T,
|
|
56
|
+
className: "prefix"
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ l(t, {
|
|
59
|
+
show: Q,
|
|
60
|
+
iconSize: X,
|
|
61
|
+
className: "spinner",
|
|
62
|
+
icon: d
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ l(t, {
|
|
65
|
+
show: !D,
|
|
66
|
+
icon: O,
|
|
67
|
+
iconSize: X
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ l("input", {
|
|
70
|
+
disabled: Y,
|
|
71
|
+
readOnly: k,
|
|
72
|
+
ref: G,
|
|
73
|
+
onFocus: te,
|
|
74
|
+
onBlur: ne,
|
|
75
|
+
onChange: (e) => {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
let [t, n] = re(e.target.value);
|
|
78
|
+
w && w(e, String(t), String(n));
|
|
79
|
+
},
|
|
80
|
+
id: K,
|
|
81
|
+
placeholder: Y ? U : void 0,
|
|
82
|
+
value: Y ? void 0 : U,
|
|
83
|
+
...z
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ l("input", {
|
|
86
|
+
type: "hidden",
|
|
87
|
+
name: p,
|
|
88
|
+
value: i(U),
|
|
89
|
+
readOnly: !0
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ l(t, {
|
|
92
|
+
show: !D,
|
|
93
|
+
icon: I,
|
|
94
|
+
iconSize: X
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ l(t, {
|
|
97
|
+
show: $,
|
|
98
|
+
iconSize: X,
|
|
99
|
+
className: "spinner",
|
|
100
|
+
icon: d
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ l(t, {
|
|
103
|
+
iconSize: X,
|
|
104
|
+
icon: E,
|
|
105
|
+
className: "suffix"
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
})
|
|
109
|
+
});
|
|
137
110
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
};
|
|
111
|
+
//#endregion
|
|
112
|
+
export { f as CurrencyInput };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
/* empty css */
|
|
1
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return /* @__PURE__ */ e("div", { className: t.trim(), ...i });
|
|
3
|
+
//#region src/components/divider/index.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, orientation: r = "horizontal", ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("div", {
|
|
7
|
+
className: `arkynDivider ${r} ${n}`.trim(),
|
|
8
|
+
...i
|
|
9
|
+
});
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as Divider };
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)
|
|
40
|
-
] }) }) });
|
|
1
|
+
import { useScrollLock as e } from "../../../hooks/useScrollLock.js";
|
|
2
|
+
import { DrawerProvider as t } from "../drawerContext.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { AnimatePresence as i, motion as a } from "framer-motion";
|
|
6
|
+
//#region src/components/drawer/drawerContainer/index.tsx
|
|
7
|
+
function o(o) {
|
|
8
|
+
let { isVisible: s, makeInvisible: c, orientation: l = "left", children: u, className: d, ...f } = o;
|
|
9
|
+
e(s);
|
|
10
|
+
let p = l === "left" ? "-100%" : "100%", m = `arkynDrawerContainer ${l} ${s ? "visibleTrue" : "visibleFalse"} ${d}`;
|
|
11
|
+
return /* @__PURE__ */ n(t, {
|
|
12
|
+
makeInvisible: c,
|
|
13
|
+
children: /* @__PURE__ */ n(i, { children: s && /* @__PURE__ */ r("aside", {
|
|
14
|
+
className: m.trim(),
|
|
15
|
+
...f,
|
|
16
|
+
children: [/* @__PURE__ */ n(a.div, {
|
|
17
|
+
className: "arkynDrawerContainerOverlay",
|
|
18
|
+
transition: {
|
|
19
|
+
duration: .15,
|
|
20
|
+
ease: "easeOut"
|
|
21
|
+
},
|
|
22
|
+
initial: { opacity: 0 },
|
|
23
|
+
animate: { opacity: 1 },
|
|
24
|
+
exit: { opacity: 0 },
|
|
25
|
+
onClick: c
|
|
26
|
+
}), /* @__PURE__ */ n(a.div, {
|
|
27
|
+
className: "arkynDrawerContainerContent",
|
|
28
|
+
transition: {
|
|
29
|
+
ease: "easeOut",
|
|
30
|
+
duration: .15
|
|
31
|
+
},
|
|
32
|
+
initial: { transform: `translateX(${p})` },
|
|
33
|
+
animate: { transform: "translateX(0px)" },
|
|
34
|
+
exit: { transform: `translateX(${p})` },
|
|
35
|
+
children: u
|
|
36
|
+
})]
|
|
37
|
+
}) })
|
|
38
|
+
});
|
|
41
39
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { o as DrawerContainer };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/drawer/drawerContext.tsx
|
|
4
|
+
var r = e({});
|
|
5
|
+
function i(e) {
|
|
6
|
+
return /* @__PURE__ */ n(r.Provider, {
|
|
7
|
+
value: { makeInvisible: e.makeInvisible },
|
|
8
|
+
children: e.children
|
|
9
|
+
});
|
|
6
10
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
11
|
+
function a() {
|
|
12
|
+
return t(r);
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
u as useDrawer
|
|
13
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as DrawerProvider, a as useDrawer };
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
onClick: n,
|
|
20
|
-
"aria-label": "Close drawer",
|
|
21
|
-
children: /* @__PURE__ */ e(m, { size: 24 })
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
] });
|
|
1
|
+
import { useDrawer as e } from "../drawerContext.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { X as r } from "lucide-react";
|
|
5
|
+
//#region src/components/drawer/drawerHeader/index.tsx
|
|
6
|
+
function i(i) {
|
|
7
|
+
let { showCloseButton: a = !0, className: o, children: s, ...c } = i, { makeInvisible: l } = e();
|
|
8
|
+
return /* @__PURE__ */ n("header", {
|
|
9
|
+
className: `arkynDrawerHeader ${o}`.trim(),
|
|
10
|
+
...c,
|
|
11
|
+
children: [s, a && /* @__PURE__ */ t("button", {
|
|
12
|
+
className: "arkynDrawerHeaderCloseButton",
|
|
13
|
+
type: "button",
|
|
14
|
+
onClick: l,
|
|
15
|
+
"aria-label": "Close drawer",
|
|
16
|
+
children: /* @__PURE__ */ t(r, { size: 24 })
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
25
19
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { i as DrawerHeader };
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
pageView: k,
|
|
8
|
-
track: i,
|
|
9
|
-
trackCustom: n,
|
|
10
|
-
trackSingle: o,
|
|
11
|
-
trackSingleCustom: r,
|
|
12
|
-
grantConsent: s,
|
|
13
|
-
revokeConsent: f
|
|
14
|
-
} = a, t = new m(e, c);
|
|
15
|
-
return t.init(), k && t.pageView(), s && t.grantConsent(), f && t.revokeConsent(), i && t.track(...i), n && t.trackCustom(...n), o && t.trackSingle(e, ...o), r && t.trackSingleCustom(e, ...r), /* @__PURE__ */ g(l, {});
|
|
1
|
+
import { FacebookPixel as e } from "./pixel.js";
|
|
2
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/facebookPixel/facebookPixel.client.tsx
|
|
4
|
+
function r(r) {
|
|
5
|
+
let { pixelId: i, options: a, pageView: o, track: s, trackCustom: c, trackSingle: l, trackSingleCustom: u, grantConsent: d, revokeConsent: f } = r, p = new e(i, a);
|
|
6
|
+
return p.init(), o && p.pageView(), d && p.grantConsent(), f && p.revokeConsent(), s && p.track(...s), c && p.trackCustom(...c), l && p.trackSingle(i, ...l), u && p.trackSingleCustom(i, ...u), /* @__PURE__ */ n(t, {});
|
|
16
7
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as FacebookPixelClient };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ClientOnly as e } from "../clientOnly.js";
|
|
2
|
+
import { FacebookPixelClient as t } from "./facebookPixel.client.js";
|
|
3
|
+
import { Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/facebookPixel/index.tsx
|
|
5
|
+
function i(i) {
|
|
6
|
+
return process.env.NODE_ENV !== "production" && !i.showInDevMode ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r(e, { children: () => /* @__PURE__ */ r(t, { ...i }) });
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { i as FacebookPixel };
|
|
@@ -1,53 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
revokeConsent() {
|
|
48
|
-
this.initialized && window.fbq && window.fbq("consent", "revoke");
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
a as FacebookPixel
|
|
1
|
+
//#region src/components/facebookPixel/pixel.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
pixelId;
|
|
4
|
+
autoConfig;
|
|
5
|
+
initialized;
|
|
6
|
+
constructor(e, t) {
|
|
7
|
+
this.pixelId = e, this.autoConfig = t?.autoConfig || !0, this.initialized = !1;
|
|
8
|
+
}
|
|
9
|
+
loadFacebookPixel() {
|
|
10
|
+
if (window.fbq) return;
|
|
11
|
+
let e = function(...t) {
|
|
12
|
+
e.callMethod ? e.callMethod.apply(e, t) : e.queue.push(t);
|
|
13
|
+
};
|
|
14
|
+
window._fbq || (window._fbq = e), e.push = e, e.loaded = !0, e.version = "2.0", e.queue = [];
|
|
15
|
+
let t = document.createElement("script");
|
|
16
|
+
t.async = !0, t.src = "https://connect.facebook.net/en_US/fbevents.js";
|
|
17
|
+
let n = document.getElementsByTagName("script")[0];
|
|
18
|
+
if (!n.parentNode) throw Error("No script tag found in the document");
|
|
19
|
+
n.parentNode.insertBefore(t, n), window.fbq = e;
|
|
20
|
+
}
|
|
21
|
+
init(e = {}) {
|
|
22
|
+
if (this.initialized = typeof window < "u" && !!window.fbq, this.loadFacebookPixel(), !window.fbq) throw Error("window.fbq is not defined");
|
|
23
|
+
this.autoConfig === !1 ? window.fbq("set", "autoConfig", !1, this.pixelId) : window.fbq("init", this.pixelId, e), this.initialized = !0;
|
|
24
|
+
}
|
|
25
|
+
pageView() {
|
|
26
|
+
this.initialized && window.fbq && window.fbq("track", "PageView");
|
|
27
|
+
}
|
|
28
|
+
track(e, t) {
|
|
29
|
+
this.initialized && window.fbq && window.fbq("track", e, t);
|
|
30
|
+
}
|
|
31
|
+
trackSingle(e, t, n) {
|
|
32
|
+
this.initialized && window.fbq && window.fbq("trackSingle", e, t, n);
|
|
33
|
+
}
|
|
34
|
+
trackCustom(e, t) {
|
|
35
|
+
this.initialized && window.fbq && window.fbq("trackCustom", e, t);
|
|
36
|
+
}
|
|
37
|
+
trackSingleCustom(e, t, n) {
|
|
38
|
+
this.initialized && window.fbq && window.fbq("trackSingle", e, t, n);
|
|
39
|
+
}
|
|
40
|
+
grantConsent() {
|
|
41
|
+
this.initialized && window.fbq && window.fbq("consent", "grant");
|
|
42
|
+
}
|
|
43
|
+
revokeConsent() {
|
|
44
|
+
this.initialized && window.fbq && window.fbq("consent", "revoke");
|
|
45
|
+
}
|
|
53
46
|
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { e as FacebookPixel };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/fieldError/index.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
let { children: r, className: i, ...a } = n, o = `arkynFieldError ${i}`;
|
|
6
|
+
return r ? /* @__PURE__ */ t("strong", {
|
|
7
|
+
className: o.trim(),
|
|
8
|
+
...a,
|
|
9
|
+
children: r
|
|
10
|
+
}) : /* @__PURE__ */ t(e, {});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as FieldError };
|