@arkyn/components 3.0.1-beta.155 → 3.0.1-beta.156
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 +4683 -4347
- package/dist/modules/components/alert/alertContainer/index.js +20 -25
- package/dist/modules/components/alert/alertContent/index.js +8 -11
- package/dist/modules/components/alert/alertDescription/index.js +8 -11
- package/dist/modules/components/alert/alertIcon/index.js +19 -27
- package/dist/modules/components/alert/alertTitle/index.js +8 -11
- package/dist/modules/components/audioPlayer/index.js +75 -74
- package/dist/modules/components/audioUpload/hasFileContent/index.js +62 -54
- package/dist/modules/components/audioUpload/index.js +79 -71
- package/dist/modules/components/audioUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/badge/index.js +22 -26
- package/dist/modules/components/button/index.js +32 -39
- package/dist/modules/components/calendar/_calendarProvider.js +63 -38
- package/dist/modules/components/calendar/_viewService.js +140 -132
- package/dist/modules/components/calendar/calendarContainer/index.js +7 -10
- package/dist/modules/components/calendar/calendarHeader/index.js +72 -51
- package/dist/modules/components/calendar/calendarTableBody/index.js +10 -12
- package/dist/modules/components/calendar/calendarTableContainer/index.js +7 -10
- package/dist/modules/components/calendar/calendarTableHeader/index.js +10 -13
- package/dist/modules/components/calendar/calendarTableTd/index.js +23 -20
- package/dist/modules/components/calendar/index.js +49 -31
- package/dist/modules/components/cardTab/cardTabButton/index.js +29 -19
- package/dist/modules/components/cardTab/cardTabContainer/index.js +28 -22
- package/dist/modules/components/cardTab/cardTabContext.js +11 -13
- package/dist/modules/components/checkbox/index.js +64 -37
- package/dist/modules/components/clientOnly.js +8 -8
- package/dist/modules/components/currencyInput/index.js +138 -110
- package/dist/modules/components/divider/index.js +11 -10
- package/dist/modules/components/drawer/drawerContainer/index.js +43 -40
- package/dist/modules/components/drawer/drawerContext.js +11 -13
- package/dist/modules/components/drawer/drawerHeader/index.js +27 -20
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +18 -8
- package/dist/modules/components/facebookPixel/index.js +8 -8
- package/dist/modules/components/facebookPixel/pixel.js +52 -47
- package/dist/modules/components/fieldError/index.js +8 -12
- package/dist/modules/components/fieldLabel/index.js +12 -11
- package/dist/modules/components/fieldWrapper/index.js +13 -12
- package/dist/modules/components/fileUpload/hasFileContent/index.js +67 -59
- package/dist/modules/components/fileUpload/index.js +72 -65
- package/dist/modules/components/fileUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +46 -33
- package/dist/modules/components/fullCalendar/_viewService.js +105 -100
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +7 -10
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +78 -70
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +33 -28
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +9 -12
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +7 -10
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +70 -67
- package/dist/modules/components/fullCalendar/index.js +30 -30
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +36 -28
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +9 -11
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +9 -10
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +10 -13
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +36 -35
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +11 -8
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +78 -70
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +20 -17
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +8 -9
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +19 -16
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +39 -34
- 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 +12 -10
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
- package/dist/modules/components/googleTagManager/googleTagManager.js +48 -44
- package/dist/modules/components/googleTagManager/index.js +27 -16
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +20 -19
- package/dist/modules/components/iconButton/index.js +29 -31
- package/dist/modules/components/imageUpload/hasFileContent/index.js +63 -46
- package/dist/modules/components/imageUpload/index.js +82 -65
- package/dist/modules/components/imageUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/input/index.js +120 -92
- package/dist/modules/components/mapView/index.js +31 -27
- package/dist/modules/components/mapView/mapView.client.js +51 -49
- package/dist/modules/components/maskedInput/index.js +112 -101
- package/dist/modules/components/modal/modalContainer/index.js +42 -49
- package/dist/modules/components/modal/modalContext.js +11 -13
- package/dist/modules/components/modal/modalFooter/index.js +7 -10
- package/dist/modules/components/modal/modalHeader/index.js +27 -20
- package/dist/modules/components/multiSelect/index.js +154 -115
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -18
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +29 -13
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +8 -11
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +22 -19
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +13 -17
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +45 -35
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +8 -11
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +16 -13
- package/dist/modules/components/pagination/chevronButton/index.js +17 -17
- package/dist/modules/components/pagination/currentButton/index.js +7 -11
- package/dist/modules/components/pagination/index.js +83 -51
- package/dist/modules/components/pagination/pageButton/index.js +8 -12
- package/dist/modules/components/pagination/paginationService.js +48 -33
- package/dist/modules/components/pagination/spread/index.js +7 -10
- package/dist/modules/components/phoneInput/index.js +151 -103
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +19 -12
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +8 -11
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +15 -23
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +43 -33
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +21 -25
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -46
- package/dist/modules/components/popover/index.js +36 -37
- package/dist/modules/components/radio/radioBox/index.js +42 -24
- package/dist/modules/components/radio/radioContext.js +18 -20
- package/dist/modules/components/radio/radioGroup/index.js +64 -41
- package/dist/modules/components/richText/blockButton/index.js +23 -20
- package/dist/modules/components/richText/element/index.js +58 -72
- package/dist/modules/components/richText/index.js +135 -143
- package/dist/modules/components/richText/insertImage/index.js +105 -94
- package/dist/modules/components/richText/insertVideo/index.js +97 -85
- package/dist/modules/components/richText/leaf/index.js +6 -9
- package/dist/modules/components/richText/markButton/index.js +22 -19
- package/dist/modules/components/richText/toolbar/index.js +7 -10
- package/dist/modules/components/searchPlaces.js +66 -57
- package/dist/modules/components/select/index.js +144 -112
- package/dist/modules/components/select/selectChevron/index.js +21 -18
- package/dist/modules/components/select/selectContainer/index.js +29 -13
- package/dist/modules/components/select/selectContent/index.js +8 -11
- package/dist/modules/components/select/selectOption/index.js +13 -17
- package/dist/modules/components/select/selectOptionsContainer/index.js +45 -35
- package/dist/modules/components/select/selectOverlay/index.js +8 -11
- package/dist/modules/components/select/selectSpinner/index.js +9 -13
- package/dist/modules/components/slider/index.js +41 -34
- package/dist/modules/components/switch/index.js +62 -35
- package/dist/modules/components/tab/tabButton/index.js +29 -19
- package/dist/modules/components/tab/tabContainer/index.js +28 -22
- package/dist/modules/components/tab/tabContext.js +10 -12
- package/dist/modules/components/table/tableBody/index.js +14 -19
- package/dist/modules/components/table/tableCaption/index.js +8 -15
- package/dist/modules/components/table/tableContainer/index.js +8 -12
- package/dist/modules/components/table/tableFooter/index.js +11 -18
- package/dist/modules/components/table/tableHeader/index.js +11 -12
- package/dist/modules/components/textarea/index.js +69 -51
- package/dist/modules/components/tooltip/index.js +45 -34
- package/dist/modules/hooks/useAutomation.js +27 -35
- package/dist/modules/hooks/useDrawer.js +19 -17
- package/dist/modules/hooks/useForm.js +6 -6
- package/dist/modules/hooks/useHydrated.js +12 -7
- package/dist/modules/hooks/useModal.js +19 -17
- package/dist/modules/hooks/useScopedParams.js +17 -17
- package/dist/modules/hooks/useScrollLock.js +19 -19
- package/dist/modules/hooks/useSearchAutomation.js +14 -31
- package/dist/modules/hooks/useSlider.js +13 -13
- package/dist/modules/hooks/useToast.js +9 -8
- package/dist/modules/index.js +144 -72
- package/dist/modules/providers/drawerProvider.js +30 -35
- package/dist/modules/providers/formProvider.js +16 -11
- package/dist/modules/providers/modalProvider.js +33 -39
- package/dist/modules/providers/placesProvider.js +16 -16
- package/dist/modules/providers/toastProvider.js +51 -45
- package/dist/modules/services/extractTextFromNode.js +6 -6
- package/dist/modules/services/fieldTemplate.js +23 -22
- package/dist/modules/services/iconRenderer.js +7 -14
- package/dist/modules/services/isBlockActive.js +14 -12
- package/dist/modules/services/isMarkActive.js +6 -6
- package/dist/modules/services/maskCurrencyValues.js +12 -11
- package/dist/modules/services/toHtml.js +6 -6
- package/dist/modules/services/toRichTextValue.js +7 -7
- package/dist/modules/services/toggleBlock.js +19 -20
- package/dist/modules/services/toggleMark.js +7 -7
- package/dist/modules/style.css +1 -0
- package/dist/modules/templates/badResponses.js +13 -13
- package/dist/modules/templates/richTextTemplates.js +14 -17
- package/dist/modules/templates/successResponses.js +4 -9
- package/dist/modules/utils/phoneInputUtilities.js +28 -18
- package/dist/modules/utils/richTextUtilities.js +75 -88
- package/dist/services/fieldTemplate.d.ts +1 -1
- package/dist/services/fieldTemplate.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +65 -65
- package/dist/components.css +0 -2
- package/dist/modules/components.css +0 -2
|
@@ -1,34 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { jsx as s, Fragment as d, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useState as P, useEffect as S } from "react";
|
|
3
|
+
import { useScrollLock as k } from "../../../hooks/useScrollLock.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function x(a) {
|
|
6
|
+
const { children: p, isOpen: e, onSearch: u, search: l, placeholder: h } = a, t = y(null), [m, n] = P("bottom");
|
|
7
|
+
function f(o) {
|
|
8
|
+
u(o.target.value);
|
|
9
|
+
}
|
|
10
|
+
return k(e), S(() => {
|
|
11
|
+
if (!e) return;
|
|
12
|
+
(() => {
|
|
13
|
+
if (!t.current) return;
|
|
14
|
+
const r = t.current.parentElement;
|
|
15
|
+
if (!r) return;
|
|
16
|
+
const i = r.getBoundingClientRect(), C = window.innerHeight, c = 300;
|
|
17
|
+
C - i.bottom < c && i.top > c ? n("top") : n("bottom");
|
|
18
|
+
})();
|
|
19
|
+
}, [e]), e ? /* @__PURE__ */ g(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: `arkynPhoneInputCountryOptionsContainer ${m}`,
|
|
23
|
+
ref: t,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ s(
|
|
26
|
+
"input",
|
|
27
|
+
{
|
|
28
|
+
type: "search",
|
|
29
|
+
name: "search-select",
|
|
30
|
+
className: "arkynPhoneInputCountryOptionsContainerSearchSelect",
|
|
31
|
+
value: l,
|
|
32
|
+
id: "input-search",
|
|
33
|
+
placeholder: h,
|
|
34
|
+
onChange: f
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
p
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
) : /* @__PURE__ */ s(d, {});
|
|
32
41
|
}
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
export {
|
|
43
|
+
x as PhoneInputCountryOptionsContainer
|
|
44
|
+
};
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
strokeWidth: 2.5
|
|
20
|
-
}),
|
|
21
|
-
/* @__PURE__ */ t(e, { orientation: "vertical" })
|
|
22
|
-
]
|
|
23
|
-
});
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown as i } from "lucide-react";
|
|
3
|
+
import { Divider as c } from "../../divider/index.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function p(t) {
|
|
6
|
+
const { currentCountry: r, onClick: n } = t;
|
|
7
|
+
return /* @__PURE__ */ e("div", { className: "phoneInputSelectCountry", onClick: n, children: [
|
|
8
|
+
/* @__PURE__ */ o(
|
|
9
|
+
"img",
|
|
10
|
+
{
|
|
11
|
+
className: "flag",
|
|
12
|
+
src: r.flag,
|
|
13
|
+
alt: r.name
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ o(i, { className: "chevronDown", strokeWidth: 2.5 }),
|
|
17
|
+
/* @__PURE__ */ o(c, { orientation: "vertical" })
|
|
18
|
+
] });
|
|
24
19
|
}
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
export {
|
|
21
|
+
p as PhoneInputCountrySelector
|
|
22
|
+
};
|
|
@@ -1,46 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { forwardRef as
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { InputMask as I } from "@react-input/mask";
|
|
3
|
+
import { forwardRef as g, useState as v, useEffect as x } from "react";
|
|
4
|
+
import { clear as E, getMask as L, MAX_LENGTH as w, applyMask as B, TYPES as N } from "../../../utils/phoneInputUtilities.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const P = g((o, n) => /* @__PURE__ */ r("input", { ref: n, ...o })), A = g(
|
|
7
|
+
(o, n) => {
|
|
8
|
+
const {
|
|
9
|
+
onFocus: u,
|
|
10
|
+
readonly: d,
|
|
11
|
+
onBlur: l,
|
|
12
|
+
size: h,
|
|
13
|
+
onChange: s,
|
|
14
|
+
value: p,
|
|
15
|
+
currentCountry: t,
|
|
16
|
+
disabled: m,
|
|
17
|
+
id: c
|
|
18
|
+
} = o, [k, M] = v(!1), i = typeof t.mask == "string" ? t.mask : t.mask[0];
|
|
19
|
+
x(() => {
|
|
20
|
+
k ? s(i) : M(!0);
|
|
21
|
+
}, [t]);
|
|
22
|
+
const f = `phoneInputMask ${h}`;
|
|
23
|
+
function y(a) {
|
|
24
|
+
let e = E(a.target.value);
|
|
25
|
+
const C = L(e);
|
|
26
|
+
e.length > w || (e = B(e, N[C]), a.target.value = e, s(e));
|
|
27
|
+
}
|
|
28
|
+
return t.code === "+55" ? /* @__PURE__ */ r(
|
|
29
|
+
"input",
|
|
30
|
+
{
|
|
31
|
+
id: c,
|
|
32
|
+
value: p,
|
|
33
|
+
onChange: y,
|
|
34
|
+
className: f,
|
|
35
|
+
onFocus: u,
|
|
36
|
+
onBlur: l,
|
|
37
|
+
disabled: m,
|
|
38
|
+
ref: n
|
|
39
|
+
}
|
|
40
|
+
) : /* @__PURE__ */ r(
|
|
41
|
+
I,
|
|
42
|
+
{
|
|
43
|
+
id: c,
|
|
44
|
+
value: p,
|
|
45
|
+
readOnly: d,
|
|
46
|
+
onChange: (a) => s(a.target.value),
|
|
47
|
+
className: f,
|
|
48
|
+
component: P,
|
|
49
|
+
onFocus: u,
|
|
50
|
+
onBlur: l,
|
|
51
|
+
disabled: m,
|
|
52
|
+
mask: i,
|
|
53
|
+
showMask: !0,
|
|
54
|
+
replacement: { _: /\d/ },
|
|
55
|
+
ref: n
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
export {
|
|
61
|
+
A as PhoneInputMask
|
|
62
|
+
};
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useState as
|
|
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
|
-
});
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { motion as v } from "framer-motion";
|
|
3
|
+
import { useState as f } from "react";
|
|
4
|
+
import { useScrollLock as u } from "../../hooks/useScrollLock.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
function N(t) {
|
|
7
|
+
const {
|
|
8
|
+
children: s,
|
|
9
|
+
button: n,
|
|
10
|
+
closeOnClick: a,
|
|
11
|
+
className: r = "",
|
|
12
|
+
orientation: l = "bottomLeft"
|
|
13
|
+
} = t, [e, i] = f(!1), c = `arkynPopover ${l} ${e ? "visibleTrue" : "visibleFalse"} ${r}`;
|
|
14
|
+
function m() {
|
|
15
|
+
e || i(!0);
|
|
16
|
+
}
|
|
17
|
+
return u(e), /* @__PURE__ */ p("div", { className: c, onClick: m, children: [
|
|
18
|
+
n,
|
|
19
|
+
/* @__PURE__ */ o(
|
|
20
|
+
v.div,
|
|
21
|
+
{
|
|
22
|
+
style: { visibility: e ? "visible" : "hidden" },
|
|
23
|
+
transition: { ease: "easeOut", duration: 0 },
|
|
24
|
+
initial: { opacity: 0 },
|
|
25
|
+
animate: { opacity: e ? 1 : 0 },
|
|
26
|
+
exit: { opacity: 0 },
|
|
27
|
+
onClick: () => a && i(!1),
|
|
28
|
+
className: "arkynPopoverContent",
|
|
29
|
+
children: s
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
e && /* @__PURE__ */ o("div", { onClick: () => i(!1), className: "arkynPopoverOverlay" })
|
|
33
|
+
] });
|
|
36
34
|
}
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
export {
|
|
36
|
+
N as Popover
|
|
37
|
+
};
|
|
@@ -1,25 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { jsxs as z, jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
import { useRadioGroup as N } from "../radioContext.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function B(r) {
|
|
5
|
+
const {
|
|
6
|
+
value: e,
|
|
7
|
+
size: n,
|
|
8
|
+
disabled: i,
|
|
9
|
+
children: d,
|
|
10
|
+
className: t = "",
|
|
11
|
+
onClick: o,
|
|
12
|
+
onFocus: a,
|
|
13
|
+
...u
|
|
14
|
+
} = r, {
|
|
15
|
+
handleChange: l,
|
|
16
|
+
size: b,
|
|
17
|
+
value: m,
|
|
18
|
+
isError: C,
|
|
19
|
+
disabled: h
|
|
20
|
+
} = N(), p = m === e, k = n || b, c = i || h, F = `arkynRadioBox ${k} ${p ? "checkedTrue" : "checkedFalse"} ${C ? "errorTrue" : "errorFalse"} ${c ? "disabledTrue" : "disabledFalse"} ${t}`;
|
|
21
|
+
function f(s) {
|
|
22
|
+
o && o(s), l(e);
|
|
23
|
+
}
|
|
24
|
+
function x(s) {
|
|
25
|
+
a && a(s), l(e);
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ z("label", { className: F.trim(), children: [
|
|
28
|
+
/* @__PURE__ */ $(
|
|
29
|
+
"button",
|
|
30
|
+
{
|
|
31
|
+
type: "button",
|
|
32
|
+
disabled: c,
|
|
33
|
+
onClick: f,
|
|
34
|
+
onFocus: x,
|
|
35
|
+
...u
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
d
|
|
39
|
+
] });
|
|
23
40
|
}
|
|
24
|
-
|
|
25
|
-
|
|
41
|
+
export {
|
|
42
|
+
B as RadioBox
|
|
43
|
+
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
disabled: c
|
|
14
|
-
},
|
|
15
|
-
children: t
|
|
16
|
-
});
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as s, createContext as c } from "react";
|
|
3
|
+
const r = c({});
|
|
4
|
+
function f(e) {
|
|
5
|
+
const { children: o, size: t, isError: n, handleChange: i, value: a, disabled: d } = e;
|
|
6
|
+
return /* @__PURE__ */ u(
|
|
7
|
+
r.Provider,
|
|
8
|
+
{
|
|
9
|
+
value: { handleChange: i, value: a, size: t, isError: n, disabled: d },
|
|
10
|
+
children: o
|
|
11
|
+
}
|
|
12
|
+
);
|
|
17
13
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
14
|
+
function m() {
|
|
15
|
+
return s(r);
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export {
|
|
18
|
+
f as RadioProvider,
|
|
19
|
+
m as useRadioGroup
|
|
20
|
+
};
|
|
@@ -1,42 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { jsx as r, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as F } from "react";
|
|
3
|
+
import { useForm as M } from "../../../hooks/useForm.js";
|
|
4
|
+
import { FieldTemplate as R } from "../../../services/fieldTemplate.js";
|
|
5
|
+
import { RadioProvider as V } from "../radioContext.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
function A(m) {
|
|
8
|
+
const {
|
|
9
|
+
defaultValue: u = "",
|
|
10
|
+
name: e,
|
|
11
|
+
label: c,
|
|
12
|
+
showAsterisk: p,
|
|
13
|
+
errorMessage: d,
|
|
14
|
+
value: s,
|
|
15
|
+
onChange: o,
|
|
16
|
+
size: t = "md",
|
|
17
|
+
className: f = "",
|
|
18
|
+
disabled: h = !1,
|
|
19
|
+
unShowFieldTemplate: v = !1,
|
|
20
|
+
orientation: g = "vertical",
|
|
21
|
+
...y
|
|
22
|
+
} = m, [i, N] = F(u), { fieldErrors: a } = M();
|
|
23
|
+
function x(n) {
|
|
24
|
+
N(n), o && o(n);
|
|
25
|
+
}
|
|
26
|
+
const l = d || (a == null ? void 0 : a[e]), b = !!l, w = `arkynRadioGroup ${t}`;
|
|
27
|
+
return /* @__PURE__ */ r(
|
|
28
|
+
R,
|
|
29
|
+
{
|
|
30
|
+
name: e,
|
|
31
|
+
label: c,
|
|
32
|
+
showAsterisk: p,
|
|
33
|
+
className: f,
|
|
34
|
+
errorMessage: l,
|
|
35
|
+
unShowFieldTemplate: v,
|
|
36
|
+
orientation: g,
|
|
37
|
+
children: /* @__PURE__ */ C(
|
|
38
|
+
V,
|
|
39
|
+
{
|
|
40
|
+
isError: b,
|
|
41
|
+
size: t,
|
|
42
|
+
value: s || i,
|
|
43
|
+
handleChange: x,
|
|
44
|
+
disabled: h,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
|
+
"input",
|
|
48
|
+
{
|
|
49
|
+
style: { display: "none" },
|
|
50
|
+
type: "text",
|
|
51
|
+
readOnly: !0,
|
|
52
|
+
name: e,
|
|
53
|
+
value: s || i
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ r("div", { className: w.trim(), ...y })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
40
62
|
}
|
|
41
|
-
|
|
42
|
-
|
|
63
|
+
export {
|
|
64
|
+
A as RadioGroup
|
|
65
|
+
};
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useSlate as l } from "slate-react";
|
|
3
|
+
import { isBlockActive as u } from "../../../services/isBlockActive.js";
|
|
4
|
+
import { toggleBlock as p } from "../../../services/toggleBlock.js";
|
|
5
|
+
import { textAlignTypes as a } from "../../../templates/richTextTemplates.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
function g({ format: t, icon: i }) {
|
|
8
|
+
const o = l(), n = a.includes(t) ? "align" : "type", c = u(o, t, n) ? "activeTrue" : "activeFalse";
|
|
9
|
+
function s(r) {
|
|
10
|
+
r.preventDefault(), p(o, t);
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
type: "button",
|
|
16
|
+
className: "arkynRichTextBlockButton " + c,
|
|
17
|
+
onMouseDown: s,
|
|
18
|
+
children: /* @__PURE__ */ e(i, {})
|
|
19
|
+
}
|
|
20
|
+
);
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
export {
|
|
23
|
+
g as BlockButton
|
|
24
|
+
};
|