@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.
Files changed (177) hide show
  1. package/dist/components/calendar/_viewService.d.ts +1 -1
  2. package/dist/components/fullCalendar/_viewService.d.ts +2 -2
  3. package/dist/hooks/useScopedParams.d.ts +1 -1
  4. package/dist/index.js +4347 -4683
  5. package/dist/modules/components/alert/alertContainer/index.js +25 -20
  6. package/dist/modules/components/alert/alertContent/index.js +11 -8
  7. package/dist/modules/components/alert/alertDescription/index.js +11 -8
  8. package/dist/modules/components/alert/alertIcon/index.js +27 -19
  9. package/dist/modules/components/alert/alertTitle/index.js +11 -8
  10. package/dist/modules/components/audioPlayer/index.js +74 -75
  11. package/dist/modules/components/audioUpload/hasFileContent/index.js +54 -62
  12. package/dist/modules/components/audioUpload/index.js +71 -79
  13. package/dist/modules/components/audioUpload/noFileContent/index.js +35 -45
  14. package/dist/modules/components/badge/index.js +26 -22
  15. package/dist/modules/components/button/index.js +39 -32
  16. package/dist/modules/components/calendar/_calendarProvider.js +38 -63
  17. package/dist/modules/components/calendar/_viewService.js +132 -140
  18. package/dist/modules/components/calendar/calendarContainer/index.js +10 -7
  19. package/dist/modules/components/calendar/calendarHeader/index.js +51 -72
  20. package/dist/modules/components/calendar/calendarTableBody/index.js +12 -10
  21. package/dist/modules/components/calendar/calendarTableContainer/index.js +10 -7
  22. package/dist/modules/components/calendar/calendarTableHeader/index.js +13 -10
  23. package/dist/modules/components/calendar/calendarTableTd/index.js +20 -23
  24. package/dist/modules/components/calendar/index.js +31 -49
  25. package/dist/modules/components/cardTab/cardTabButton/index.js +19 -29
  26. package/dist/modules/components/cardTab/cardTabContainer/index.js +22 -28
  27. package/dist/modules/components/cardTab/cardTabContext.js +13 -11
  28. package/dist/modules/components/checkbox/index.js +37 -64
  29. package/dist/modules/components/clientOnly.js +8 -8
  30. package/dist/modules/components/currencyInput/index.js +110 -138
  31. package/dist/modules/components/divider/index.js +10 -11
  32. package/dist/modules/components/drawer/drawerContainer/index.js +40 -43
  33. package/dist/modules/components/drawer/drawerContext.js +13 -11
  34. package/dist/modules/components/drawer/drawerHeader/index.js +20 -27
  35. package/dist/modules/components/facebookPixel/facebookPixel.client.js +8 -18
  36. package/dist/modules/components/facebookPixel/index.js +8 -8
  37. package/dist/modules/components/facebookPixel/pixel.js +47 -52
  38. package/dist/modules/components/fieldError/index.js +12 -8
  39. package/dist/modules/components/fieldLabel/index.js +11 -12
  40. package/dist/modules/components/fieldWrapper/index.js +12 -13
  41. package/dist/modules/components/fileUpload/hasFileContent/index.js +59 -67
  42. package/dist/modules/components/fileUpload/index.js +65 -72
  43. package/dist/modules/components/fileUpload/noFileContent/index.js +35 -45
  44. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +33 -46
  45. package/dist/modules/components/fullCalendar/_viewService.js +100 -105
  46. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +10 -7
  47. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +70 -78
  48. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +28 -33
  49. package/dist/modules/components/fullCalendar/dayCalendar/index.js +12 -9
  50. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +10 -7
  51. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +67 -70
  52. package/dist/modules/components/fullCalendar/index.js +30 -30
  53. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +9 -12
  54. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +28 -36
  55. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +11 -9
  56. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +10 -9
  57. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +13 -10
  58. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +35 -36
  59. package/dist/modules/components/fullCalendar/weekCalendar/index.js +8 -11
  60. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +70 -78
  61. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +17 -20
  62. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +9 -8
  63. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +16 -19
  64. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +34 -39
  65. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +7 -7
  66. package/dist/modules/components/googleAnalytics/googleAnalytics.js +17 -17
  67. package/dist/modules/components/googleAnalytics/index.js +9 -9
  68. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +10 -12
  69. package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
  70. package/dist/modules/components/googleTagManager/googleTagManager.js +44 -48
  71. package/dist/modules/components/googleTagManager/index.js +16 -27
  72. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
  73. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +19 -20
  74. package/dist/modules/components/iconButton/index.js +31 -29
  75. package/dist/modules/components/imageUpload/hasFileContent/index.js +46 -63
  76. package/dist/modules/components/imageUpload/index.js +65 -82
  77. package/dist/modules/components/imageUpload/noFileContent/index.js +35 -45
  78. package/dist/modules/components/input/index.js +92 -120
  79. package/dist/modules/components/mapView/index.js +27 -31
  80. package/dist/modules/components/mapView/mapView.client.js +49 -51
  81. package/dist/modules/components/maskedInput/index.js +101 -112
  82. package/dist/modules/components/modal/modalContainer/index.js +49 -42
  83. package/dist/modules/components/modal/modalContext.js +13 -11
  84. package/dist/modules/components/modal/modalFooter/index.js +10 -7
  85. package/dist/modules/components/modal/modalHeader/index.js +20 -27
  86. package/dist/modules/components/multiSelect/index.js +115 -154
  87. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +18 -21
  88. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +13 -29
  89. package/dist/modules/components/multiSelect/multiSelectContent/index.js +11 -8
  90. package/dist/modules/components/multiSelect/multiSelectMark/index.js +19 -22
  91. package/dist/modules/components/multiSelect/multiSelectOption/index.js +17 -13
  92. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +35 -45
  93. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +11 -8
  94. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +13 -16
  95. package/dist/modules/components/pagination/chevronButton/index.js +17 -17
  96. package/dist/modules/components/pagination/currentButton/index.js +11 -7
  97. package/dist/modules/components/pagination/index.js +51 -83
  98. package/dist/modules/components/pagination/pageButton/index.js +12 -8
  99. package/dist/modules/components/pagination/paginationService.js +33 -48
  100. package/dist/modules/components/pagination/spread/index.js +10 -7
  101. package/dist/modules/components/phoneInput/index.js +103 -151
  102. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +12 -19
  103. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +11 -8
  104. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +23 -15
  105. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +33 -43
  106. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +25 -21
  107. package/dist/modules/components/phoneInput/phoneInputMask/index.js +46 -62
  108. package/dist/modules/components/popover/index.js +37 -36
  109. package/dist/modules/components/radio/radioBox/index.js +24 -42
  110. package/dist/modules/components/radio/radioContext.js +20 -18
  111. package/dist/modules/components/radio/radioGroup/index.js +41 -64
  112. package/dist/modules/components/richText/blockButton/index.js +20 -23
  113. package/dist/modules/components/richText/element/index.js +72 -58
  114. package/dist/modules/components/richText/index.js +143 -135
  115. package/dist/modules/components/richText/insertImage/index.js +94 -105
  116. package/dist/modules/components/richText/insertVideo/index.js +85 -97
  117. package/dist/modules/components/richText/leaf/index.js +9 -6
  118. package/dist/modules/components/richText/markButton/index.js +19 -22
  119. package/dist/modules/components/richText/toolbar/index.js +10 -7
  120. package/dist/modules/components/searchPlaces.js +57 -66
  121. package/dist/modules/components/select/index.js +112 -144
  122. package/dist/modules/components/select/selectChevron/index.js +18 -21
  123. package/dist/modules/components/select/selectContainer/index.js +13 -29
  124. package/dist/modules/components/select/selectContent/index.js +11 -8
  125. package/dist/modules/components/select/selectOption/index.js +17 -13
  126. package/dist/modules/components/select/selectOptionsContainer/index.js +35 -45
  127. package/dist/modules/components/select/selectOverlay/index.js +11 -8
  128. package/dist/modules/components/select/selectSpinner/index.js +13 -9
  129. package/dist/modules/components/slider/index.js +34 -41
  130. package/dist/modules/components/switch/index.js +35 -62
  131. package/dist/modules/components/tab/tabButton/index.js +19 -29
  132. package/dist/modules/components/tab/tabContainer/index.js +22 -28
  133. package/dist/modules/components/tab/tabContext.js +12 -10
  134. package/dist/modules/components/table/tableBody/index.js +19 -14
  135. package/dist/modules/components/table/tableCaption/index.js +15 -8
  136. package/dist/modules/components/table/tableContainer/index.js +12 -8
  137. package/dist/modules/components/table/tableFooter/index.js +18 -11
  138. package/dist/modules/components/table/tableHeader/index.js +12 -11
  139. package/dist/modules/components/textarea/index.js +51 -69
  140. package/dist/modules/components/tooltip/index.js +34 -45
  141. package/dist/modules/hooks/useAutomation.js +35 -27
  142. package/dist/modules/hooks/useDrawer.js +17 -19
  143. package/dist/modules/hooks/useForm.js +6 -6
  144. package/dist/modules/hooks/useHydrated.js +7 -12
  145. package/dist/modules/hooks/useModal.js +17 -19
  146. package/dist/modules/hooks/useScopedParams.js +17 -17
  147. package/dist/modules/hooks/useScrollLock.js +19 -19
  148. package/dist/modules/hooks/useSearchAutomation.js +31 -14
  149. package/dist/modules/hooks/useSlider.js +13 -13
  150. package/dist/modules/hooks/useToast.js +8 -9
  151. package/dist/modules/index.js +72 -144
  152. package/dist/modules/providers/drawerProvider.js +35 -30
  153. package/dist/modules/providers/formProvider.js +11 -16
  154. package/dist/modules/providers/modalProvider.js +39 -33
  155. package/dist/modules/providers/placesProvider.js +16 -16
  156. package/dist/modules/providers/toastProvider.js +45 -51
  157. package/dist/modules/services/extractTextFromNode.js +6 -6
  158. package/dist/modules/services/fieldTemplate.js +22 -23
  159. package/dist/modules/services/iconRenderer.js +14 -7
  160. package/dist/modules/services/isBlockActive.js +12 -14
  161. package/dist/modules/services/isMarkActive.js +6 -6
  162. package/dist/modules/services/maskCurrencyValues.js +11 -12
  163. package/dist/modules/services/toHtml.js +6 -6
  164. package/dist/modules/services/toRichTextValue.js +7 -7
  165. package/dist/modules/services/toggleBlock.js +20 -19
  166. package/dist/modules/services/toggleMark.js +7 -7
  167. package/dist/modules/style.css +2 -1
  168. package/dist/modules/templates/badResponses.js +13 -13
  169. package/dist/modules/templates/richTextTemplates.js +17 -14
  170. package/dist/modules/templates/successResponses.js +9 -4
  171. package/dist/modules/utils/phoneInputUtilities.js +18 -28
  172. package/dist/modules/utils/richTextUtilities.js +88 -75
  173. package/dist/services/fieldTemplate.d.ts +1 -1
  174. package/dist/services/fieldTemplate.d.ts.map +1 -1
  175. package/dist/style.css +2 -1
  176. package/package.json +4 -4
  177. package/styles.d.ts +2 -0
@@ -1,113 +1,102 @@
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
- ] });
1
+ import { useForm as e } from "../../hooks/useForm.js";
2
+ import { FieldError as t } from "../fieldError/index.js";
3
+ import { FieldLabel as n } from "../fieldLabel/index.js";
4
+ import { FieldWrapper as r } from "../fieldWrapper/index.js";
5
+ import { IconRenderer as i } from "../../services/iconRenderer.js";
6
+ /* empty css */
7
+ import { forwardRef as a, useId as o, useRef as s, useState as c } from "react";
8
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { Loader2 as d } from "lucide-react";
10
+ import { InputMask as f } from "@react-input/mask";
11
+ //#region src/components/maskedInput/index.tsx
12
+ var p = a((e, t) => /* @__PURE__ */ l("input", {
13
+ ref: t,
14
+ ...e
15
+ }));
16
+ function m(a) {
17
+ let { name: m, disabled: h, title: g, style: _, variant: v = "solid", separate: y, mask: b, showMask: x, replacement: S, label: C, className: w = "", prefix: T, suffix: E, isLoading: D = !1, leftIcon: O, readOnly: k, onFocus: A, onBlur: j, errorMessage: M, defaultValue: N, showAsterisk: P, rightIcon: F, size: I = "md", id: L, value: R, placeholder: z, ...B } = a, { fieldErrors: V } = e(), [H, U] = c(!1), W = s(null), G = L || o(), K = M || V?.[m], q = !!K, J = h || D, Y = {
18
+ md: 20,
19
+ lg: 20
20
+ }[I], X = F ? "right" : "left", Z = X === "left" && D, Q = X === "right" && D;
21
+ function $() {
22
+ J || !W?.current || (U(!0), W.current.focus());
23
+ }
24
+ function ee(e) {
25
+ U(!0), A && A(e);
26
+ }
27
+ function te(e) {
28
+ U(!1), j && j(e);
29
+ }
30
+ let ne = `arkynMaskedInput ${T ? "hasPrefix" : ""} ${E ? "hasSuffix" : ""} ${v} ${I} ${J || k || D ? "opacity" : ""} ${q ? "errored" : ""} ${H ? "focused" : ""}`;
31
+ return /* @__PURE__ */ u(r, {
32
+ className: w,
33
+ children: [
34
+ C && /* @__PURE__ */ l(n, {
35
+ showAsterisk: P,
36
+ htmlFor: G,
37
+ children: C
38
+ }),
39
+ /* @__PURE__ */ u("section", {
40
+ title: g,
41
+ style: _,
42
+ onClick: $,
43
+ className: ne,
44
+ children: [
45
+ /* @__PURE__ */ l(i, {
46
+ iconSize: Y,
47
+ icon: T,
48
+ className: "prefix"
49
+ }),
50
+ /* @__PURE__ */ l(i, {
51
+ show: Z,
52
+ iconSize: Y,
53
+ className: "spinner",
54
+ icon: d
55
+ }),
56
+ /* @__PURE__ */ l(i, {
57
+ show: !D,
58
+ icon: O,
59
+ iconSize: Y
60
+ }),
61
+ /* @__PURE__ */ l(f, {
62
+ component: p,
63
+ mask: b,
64
+ replacement: S,
65
+ separate: y,
66
+ showMask: x,
67
+ ref: W,
68
+ onFocus: ee,
69
+ onBlur: te,
70
+ disabled: J,
71
+ readOnly: k,
72
+ id: G,
73
+ name: m,
74
+ defaultValue: N || void 0,
75
+ placeholder: J && R || z,
76
+ value: J ? void 0 : R,
77
+ ...B
78
+ }),
79
+ /* @__PURE__ */ l(i, {
80
+ show: !D,
81
+ icon: F,
82
+ iconSize: Y
83
+ }),
84
+ /* @__PURE__ */ l(i, {
85
+ show: Q,
86
+ iconSize: Y,
87
+ className: "spinner",
88
+ icon: d
89
+ }),
90
+ /* @__PURE__ */ l(i, {
91
+ iconSize: Y,
92
+ icon: E,
93
+ className: "suffix"
94
+ })
95
+ ]
96
+ }),
97
+ K && /* @__PURE__ */ l(t, { children: K })
98
+ ]
99
+ });
110
100
  }
111
- export {
112
- Se as MaskedInput
113
- };
101
+ //#endregion
102
+ export { m as MaskedInput };
@@ -1,43 +1,50 @@
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
- ] }) }) });
1
+ import { useScrollLock as e } from "../../../hooks/useScrollLock.js";
2
+ import { ModalProvider as t } from "../modalContext.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/modal/modalContainer/index.tsx
7
+ function o(o) {
8
+ let { isVisible: s, makeInvisible: c, children: l, className: u = "", ...d } = o;
9
+ e(s);
10
+ let f = `arkynModalContainer ${s ? "visibleTrue" : "visibleFalse"} ${u}`;
11
+ return /* @__PURE__ */ n(t, {
12
+ makeInvisible: c,
13
+ children: /* @__PURE__ */ n(i, { children: s && /* @__PURE__ */ r("aside", {
14
+ className: f.trim(),
15
+ ...d,
16
+ children: [/* @__PURE__ */ n(a.div, {
17
+ className: "arkynModalContainerOverlay",
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: "arkynModalContainerContent",
28
+ transition: {
29
+ duration: .15,
30
+ ease: "easeOut"
31
+ },
32
+ initial: {
33
+ opacity: 0,
34
+ scale: .75
35
+ },
36
+ animate: {
37
+ opacity: 1,
38
+ scale: 1
39
+ },
40
+ exit: {
41
+ opacity: 0,
42
+ scale: 0
43
+ },
44
+ children: l
45
+ })]
46
+ }) })
47
+ });
40
48
  }
41
- export {
42
- N as ModalContainer
43
- };
49
+ //#endregion
50
+ export { o as ModalContainer };
@@ -1,13 +1,15 @@
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 });
1
+ import { createContext as e, useContext as t } from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ //#region src/components/modal/modalContext.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 l() {
8
- return t(o);
11
+ function a() {
12
+ return t(r);
9
13
  }
10
- export {
11
- d as ModalProvider,
12
- l as useModal
13
- };
14
+ //#endregion
15
+ export { i as ModalProvider, a as useModal };
@@ -1,9 +1,12 @@
1
+ /* empty css */
1
2
  import { jsx as e } from "react/jsx-runtime";
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 });
3
+ //#region src/components/modal/modalFooter/index.tsx
4
+ function t(t) {
5
+ let { alignment: n = "right", className: r, ...i } = t;
6
+ return /* @__PURE__ */ e("footer", {
7
+ className: `arkynModalFooter ${n} ${r}`.trim(),
8
+ ...i
9
+ });
6
10
  }
7
- export {
8
- l as ModalFooter
9
- };
11
+ //#endregion
12
+ export { t as ModalFooter };
@@ -1,28 +1,21 @@
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
- ] });
1
+ import { useModal as e } from "../modalContext.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/modal/modalHeader/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: `arkynModalHeader ${o}`.trim(),
10
+ ...c,
11
+ children: [s, a && /* @__PURE__ */ t("button", {
12
+ type: "button",
13
+ onClick: l,
14
+ "aria-label": "Close modal button",
15
+ className: "arkynModalHeaderCloseButton",
16
+ children: /* @__PURE__ */ t(r, { size: 24 })
17
+ })]
18
+ });
25
19
  }
26
- export {
27
- h as ModalHeader
28
- };
20
+ //#endregion
21
+ export { i as ModalHeader };