@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,102 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { jsxs as $, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { InputMask as U } from "@react-input/mask";
|
|
3
|
+
import { Loader2 as M } from "lucide-react";
|
|
4
|
+
import { useState as X, useRef as Y, useId as Z, forwardRef as _ } from "react";
|
|
5
|
+
import { useForm as ee } from "../../hooks/useForm.js";
|
|
6
|
+
import { IconRenderer as r } from "../../services/iconRenderer.js";
|
|
7
|
+
import { FieldError as oe } from "../fieldError/index.js";
|
|
8
|
+
import { FieldLabel as se } from "../fieldLabel/index.js";
|
|
9
|
+
import { FieldWrapper as re } from "../fieldWrapper/index.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
const ne = _((a, t) => /* @__PURE__ */ e("input", { ref: t, ...a }));
|
|
12
|
+
function Se(a) {
|
|
13
|
+
const {
|
|
14
|
+
name: t,
|
|
15
|
+
disabled: b,
|
|
16
|
+
title: y,
|
|
17
|
+
style: v,
|
|
18
|
+
variant: z = "solid",
|
|
19
|
+
separate: B,
|
|
20
|
+
mask: L,
|
|
21
|
+
showMask: P,
|
|
22
|
+
replacement: C,
|
|
23
|
+
label: d,
|
|
24
|
+
className: R = "",
|
|
25
|
+
prefix: m,
|
|
26
|
+
suffix: p,
|
|
27
|
+
isLoading: o = !1,
|
|
28
|
+
leftIcon: j,
|
|
29
|
+
readOnly: h,
|
|
30
|
+
onFocus: x,
|
|
31
|
+
onBlur: g,
|
|
32
|
+
errorMessage: E,
|
|
33
|
+
defaultValue: V,
|
|
34
|
+
showAsterisk: A,
|
|
35
|
+
rightIcon: w,
|
|
36
|
+
size: F = "md",
|
|
37
|
+
id: D,
|
|
38
|
+
value: I,
|
|
39
|
+
placeholder: S,
|
|
40
|
+
...O
|
|
41
|
+
} = a, { fieldErrors: c } = ee(), [W, l] = X(!1), n = Y(null), k = D || Z(), f = E || (c == null ? void 0 : c[t]), q = !!f, i = b || o, s = { md: 20, lg: 20 }[F], N = w ? "right" : "left", G = N === "left" && o, H = N === "right" && o;
|
|
42
|
+
function J() {
|
|
43
|
+
i || !(n != null && n.current) || (l(!0), n.current.focus());
|
|
44
|
+
}
|
|
45
|
+
function K(u) {
|
|
46
|
+
l(!0), x && x(u);
|
|
47
|
+
}
|
|
48
|
+
function Q(u) {
|
|
49
|
+
l(!1), g && g(u);
|
|
50
|
+
}
|
|
51
|
+
const T = `arkynMaskedInput ${m ? "hasPrefix" : ""} ${p ? "hasSuffix" : ""} ${z} ${F} ${i || h || o ? "opacity" : ""} ${q ? "errored" : ""} ${W ? "focused" : ""}`;
|
|
52
|
+
return /* @__PURE__ */ $(re, { className: R, children: [
|
|
53
|
+
d && /* @__PURE__ */ e(se, { showAsterisk: A, htmlFor: k, children: d }),
|
|
54
|
+
/* @__PURE__ */ $(
|
|
55
|
+
"section",
|
|
56
|
+
{
|
|
57
|
+
title: y,
|
|
58
|
+
style: v,
|
|
59
|
+
onClick: J,
|
|
60
|
+
className: T,
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ e(r, { iconSize: s, icon: m, className: "prefix" }),
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
r,
|
|
65
|
+
{
|
|
66
|
+
show: G,
|
|
67
|
+
iconSize: s,
|
|
68
|
+
className: "spinner",
|
|
69
|
+
icon: M
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(r, { show: !o, icon: j, iconSize: s }),
|
|
73
|
+
/* @__PURE__ */ e(
|
|
74
|
+
U,
|
|
75
|
+
{
|
|
76
|
+
component: ne,
|
|
77
|
+
mask: L,
|
|
78
|
+
replacement: C,
|
|
79
|
+
separate: B,
|
|
80
|
+
showMask: P,
|
|
81
|
+
ref: n,
|
|
82
|
+
onFocus: K,
|
|
83
|
+
onBlur: Q,
|
|
84
|
+
disabled: i,
|
|
85
|
+
readOnly: h,
|
|
86
|
+
id: k,
|
|
87
|
+
name: t,
|
|
88
|
+
defaultValue: V || void 0,
|
|
89
|
+
placeholder: i && I || S,
|
|
90
|
+
value: i ? void 0 : I,
|
|
91
|
+
...O
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ e(r, { show: !o, icon: w, iconSize: s }),
|
|
95
|
+
/* @__PURE__ */ e(
|
|
96
|
+
r,
|
|
97
|
+
{
|
|
98
|
+
show: H,
|
|
99
|
+
iconSize: s,
|
|
100
|
+
className: "spinner",
|
|
101
|
+
icon: M
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e(r, { iconSize: s, icon: p, className: "suffix" })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
f && /* @__PURE__ */ e(oe, { children: f })
|
|
109
|
+
] });
|
|
100
110
|
}
|
|
101
|
-
|
|
102
|
-
|
|
111
|
+
export {
|
|
112
|
+
Se as MaskedInput
|
|
113
|
+
};
|
|
@@ -1,50 +1,43 @@
|
|
|
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
|
-
exit: {
|
|
41
|
-
opacity: 0,
|
|
42
|
-
scale: 0
|
|
43
|
-
},
|
|
44
|
-
children: l
|
|
45
|
-
})]
|
|
46
|
-
}) })
|
|
47
|
-
});
|
|
1
|
+
import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatePresence as m, motion as s } from "framer-motion";
|
|
3
|
+
import { useScrollLock as d } from "../../../hooks/useScrollLock.js";
|
|
4
|
+
import { ModalProvider as p } from "../modalContext.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
function N(t) {
|
|
7
|
+
const {
|
|
8
|
+
isVisible: a,
|
|
9
|
+
makeInvisible: e,
|
|
10
|
+
children: o,
|
|
11
|
+
className: n = "",
|
|
12
|
+
...r
|
|
13
|
+
} = t;
|
|
14
|
+
d(a);
|
|
15
|
+
const l = `arkynModalContainer ${a ? "visibleTrue" : "visibleFalse"} ${n}`;
|
|
16
|
+
return /* @__PURE__ */ i(p, { makeInvisible: e, children: /* @__PURE__ */ i(m, { children: a && /* @__PURE__ */ c("aside", { className: l.trim(), ...r, children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
s.div,
|
|
19
|
+
{
|
|
20
|
+
className: "arkynModalContainerOverlay",
|
|
21
|
+
transition: { duration: 0.15, ease: "easeOut" },
|
|
22
|
+
initial: { opacity: 0 },
|
|
23
|
+
animate: { opacity: 1 },
|
|
24
|
+
exit: { opacity: 0 },
|
|
25
|
+
onClick: e
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ i(
|
|
29
|
+
s.div,
|
|
30
|
+
{
|
|
31
|
+
className: "arkynModalContainerContent",
|
|
32
|
+
transition: { duration: 0.15, ease: "easeOut" },
|
|
33
|
+
initial: { opacity: 0, scale: 0.75 },
|
|
34
|
+
animate: { opacity: 1, scale: 1 },
|
|
35
|
+
exit: { opacity: 0, scale: 0 },
|
|
36
|
+
children: o
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
] }) }) });
|
|
48
40
|
}
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
export {
|
|
42
|
+
N as ModalContainer
|
|
43
|
+
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ n(r.Provider, {
|
|
7
|
-
value: { makeInvisible: e.makeInvisible },
|
|
8
|
-
children: e.children
|
|
9
|
-
});
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as t, createContext as n } from "react";
|
|
3
|
+
const o = n({});
|
|
4
|
+
function d(e) {
|
|
5
|
+
return /* @__PURE__ */ r(o.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
|
|
10
6
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
7
|
+
function l() {
|
|
8
|
+
return t(o);
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
export {
|
|
11
|
+
d as ModalProvider,
|
|
12
|
+
l as useModal
|
|
13
|
+
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
/* empty css */
|
|
2
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
className: `arkynModalFooter ${n} ${r}`.trim(),
|
|
8
|
-
...i
|
|
9
|
-
});
|
|
2
|
+
/* empty css */
|
|
3
|
+
function l(o) {
|
|
4
|
+
const { alignment: t = "right", className: a, ...r } = o, s = `arkynModalFooter ${t} ${a}`;
|
|
5
|
+
return /* @__PURE__ */ e("footer", { className: s.trim(), ...r });
|
|
10
6
|
}
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
export {
|
|
8
|
+
l as ModalFooter
|
|
9
|
+
};
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { X as i } from "lucide-react";
|
|
3
|
+
import { useModal as c } from "../modalContext.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function h(o) {
|
|
6
|
+
const {
|
|
7
|
+
showCloseButton: a = !0,
|
|
8
|
+
className: s,
|
|
9
|
+
children: t,
|
|
10
|
+
...r
|
|
11
|
+
} = o, { makeInvisible: l } = c(), n = `arkynModalHeader ${s}`;
|
|
12
|
+
return /* @__PURE__ */ m("header", { className: n.trim(), ...r, children: [
|
|
13
|
+
t,
|
|
14
|
+
a && /* @__PURE__ */ e(
|
|
15
|
+
"button",
|
|
16
|
+
{
|
|
17
|
+
type: "button",
|
|
18
|
+
onClick: l,
|
|
19
|
+
"aria-label": "Close modal button",
|
|
20
|
+
className: "arkynModalHeaderCloseButton",
|
|
21
|
+
children: /* @__PURE__ */ e(i, { size: 24 })
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
] });
|
|
19
25
|
}
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
export {
|
|
27
|
+
h as ModalHeader
|
|
28
|
+
};
|