@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.
Files changed (178) 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 +4683 -4347
  5. package/dist/modules/components/alert/alertContainer/index.js +20 -25
  6. package/dist/modules/components/alert/alertContent/index.js +8 -11
  7. package/dist/modules/components/alert/alertDescription/index.js +8 -11
  8. package/dist/modules/components/alert/alertIcon/index.js +19 -27
  9. package/dist/modules/components/alert/alertTitle/index.js +8 -11
  10. package/dist/modules/components/audioPlayer/index.js +75 -74
  11. package/dist/modules/components/audioUpload/hasFileContent/index.js +62 -54
  12. package/dist/modules/components/audioUpload/index.js +79 -71
  13. package/dist/modules/components/audioUpload/noFileContent/index.js +45 -35
  14. package/dist/modules/components/badge/index.js +22 -26
  15. package/dist/modules/components/button/index.js +32 -39
  16. package/dist/modules/components/calendar/_calendarProvider.js +63 -38
  17. package/dist/modules/components/calendar/_viewService.js +140 -132
  18. package/dist/modules/components/calendar/calendarContainer/index.js +7 -10
  19. package/dist/modules/components/calendar/calendarHeader/index.js +72 -51
  20. package/dist/modules/components/calendar/calendarTableBody/index.js +10 -12
  21. package/dist/modules/components/calendar/calendarTableContainer/index.js +7 -10
  22. package/dist/modules/components/calendar/calendarTableHeader/index.js +10 -13
  23. package/dist/modules/components/calendar/calendarTableTd/index.js +23 -20
  24. package/dist/modules/components/calendar/index.js +49 -31
  25. package/dist/modules/components/cardTab/cardTabButton/index.js +29 -19
  26. package/dist/modules/components/cardTab/cardTabContainer/index.js +28 -22
  27. package/dist/modules/components/cardTab/cardTabContext.js +11 -13
  28. package/dist/modules/components/checkbox/index.js +64 -37
  29. package/dist/modules/components/clientOnly.js +8 -8
  30. package/dist/modules/components/currencyInput/index.js +138 -110
  31. package/dist/modules/components/divider/index.js +11 -10
  32. package/dist/modules/components/drawer/drawerContainer/index.js +43 -40
  33. package/dist/modules/components/drawer/drawerContext.js +11 -13
  34. package/dist/modules/components/drawer/drawerHeader/index.js +27 -20
  35. package/dist/modules/components/facebookPixel/facebookPixel.client.js +18 -8
  36. package/dist/modules/components/facebookPixel/index.js +8 -8
  37. package/dist/modules/components/facebookPixel/pixel.js +52 -47
  38. package/dist/modules/components/fieldError/index.js +8 -12
  39. package/dist/modules/components/fieldLabel/index.js +12 -11
  40. package/dist/modules/components/fieldWrapper/index.js +13 -12
  41. package/dist/modules/components/fileUpload/hasFileContent/index.js +67 -59
  42. package/dist/modules/components/fileUpload/index.js +72 -65
  43. package/dist/modules/components/fileUpload/noFileContent/index.js +45 -35
  44. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +46 -33
  45. package/dist/modules/components/fullCalendar/_viewService.js +105 -100
  46. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +7 -10
  47. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +78 -70
  48. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +33 -28
  49. package/dist/modules/components/fullCalendar/dayCalendar/index.js +9 -12
  50. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +7 -10
  51. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +70 -67
  52. package/dist/modules/components/fullCalendar/index.js +30 -30
  53. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -9
  54. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +36 -28
  55. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +9 -11
  56. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +9 -10
  57. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +10 -13
  58. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +36 -35
  59. package/dist/modules/components/fullCalendar/weekCalendar/index.js +11 -8
  60. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +78 -70
  61. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +20 -17
  62. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +8 -9
  63. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +19 -16
  64. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +39 -34
  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 +12 -10
  69. package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
  70. package/dist/modules/components/googleTagManager/googleTagManager.js +48 -44
  71. package/dist/modules/components/googleTagManager/index.js +27 -16
  72. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
  73. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +20 -19
  74. package/dist/modules/components/iconButton/index.js +29 -31
  75. package/dist/modules/components/imageUpload/hasFileContent/index.js +63 -46
  76. package/dist/modules/components/imageUpload/index.js +82 -65
  77. package/dist/modules/components/imageUpload/noFileContent/index.js +45 -35
  78. package/dist/modules/components/input/index.js +120 -92
  79. package/dist/modules/components/mapView/index.js +31 -27
  80. package/dist/modules/components/mapView/mapView.client.js +51 -49
  81. package/dist/modules/components/maskedInput/index.js +112 -101
  82. package/dist/modules/components/modal/modalContainer/index.js +42 -49
  83. package/dist/modules/components/modal/modalContext.js +11 -13
  84. package/dist/modules/components/modal/modalFooter/index.js +7 -10
  85. package/dist/modules/components/modal/modalHeader/index.js +27 -20
  86. package/dist/modules/components/multiSelect/index.js +154 -115
  87. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -18
  88. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +29 -13
  89. package/dist/modules/components/multiSelect/multiSelectContent/index.js +8 -11
  90. package/dist/modules/components/multiSelect/multiSelectMark/index.js +22 -19
  91. package/dist/modules/components/multiSelect/multiSelectOption/index.js +13 -17
  92. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +45 -35
  93. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +8 -11
  94. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +16 -13
  95. package/dist/modules/components/pagination/chevronButton/index.js +17 -17
  96. package/dist/modules/components/pagination/currentButton/index.js +7 -11
  97. package/dist/modules/components/pagination/index.js +83 -51
  98. package/dist/modules/components/pagination/pageButton/index.js +8 -12
  99. package/dist/modules/components/pagination/paginationService.js +48 -33
  100. package/dist/modules/components/pagination/spread/index.js +7 -10
  101. package/dist/modules/components/phoneInput/index.js +151 -103
  102. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +19 -12
  103. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +8 -11
  104. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +15 -23
  105. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +43 -33
  106. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +21 -25
  107. package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -46
  108. package/dist/modules/components/popover/index.js +36 -37
  109. package/dist/modules/components/radio/radioBox/index.js +42 -24
  110. package/dist/modules/components/radio/radioContext.js +18 -20
  111. package/dist/modules/components/radio/radioGroup/index.js +64 -41
  112. package/dist/modules/components/richText/blockButton/index.js +23 -20
  113. package/dist/modules/components/richText/element/index.js +58 -72
  114. package/dist/modules/components/richText/index.js +135 -143
  115. package/dist/modules/components/richText/insertImage/index.js +105 -94
  116. package/dist/modules/components/richText/insertVideo/index.js +97 -85
  117. package/dist/modules/components/richText/leaf/index.js +6 -9
  118. package/dist/modules/components/richText/markButton/index.js +22 -19
  119. package/dist/modules/components/richText/toolbar/index.js +7 -10
  120. package/dist/modules/components/searchPlaces.js +66 -57
  121. package/dist/modules/components/select/index.js +144 -112
  122. package/dist/modules/components/select/selectChevron/index.js +21 -18
  123. package/dist/modules/components/select/selectContainer/index.js +29 -13
  124. package/dist/modules/components/select/selectContent/index.js +8 -11
  125. package/dist/modules/components/select/selectOption/index.js +13 -17
  126. package/dist/modules/components/select/selectOptionsContainer/index.js +45 -35
  127. package/dist/modules/components/select/selectOverlay/index.js +8 -11
  128. package/dist/modules/components/select/selectSpinner/index.js +9 -13
  129. package/dist/modules/components/slider/index.js +41 -34
  130. package/dist/modules/components/switch/index.js +62 -35
  131. package/dist/modules/components/tab/tabButton/index.js +29 -19
  132. package/dist/modules/components/tab/tabContainer/index.js +28 -22
  133. package/dist/modules/components/tab/tabContext.js +10 -12
  134. package/dist/modules/components/table/tableBody/index.js +14 -19
  135. package/dist/modules/components/table/tableCaption/index.js +8 -15
  136. package/dist/modules/components/table/tableContainer/index.js +8 -12
  137. package/dist/modules/components/table/tableFooter/index.js +11 -18
  138. package/dist/modules/components/table/tableHeader/index.js +11 -12
  139. package/dist/modules/components/textarea/index.js +69 -51
  140. package/dist/modules/components/tooltip/index.js +45 -34
  141. package/dist/modules/hooks/useAutomation.js +27 -35
  142. package/dist/modules/hooks/useDrawer.js +19 -17
  143. package/dist/modules/hooks/useForm.js +6 -6
  144. package/dist/modules/hooks/useHydrated.js +12 -7
  145. package/dist/modules/hooks/useModal.js +19 -17
  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 +14 -31
  149. package/dist/modules/hooks/useSlider.js +13 -13
  150. package/dist/modules/hooks/useToast.js +9 -8
  151. package/dist/modules/index.js +144 -72
  152. package/dist/modules/providers/drawerProvider.js +30 -35
  153. package/dist/modules/providers/formProvider.js +16 -11
  154. package/dist/modules/providers/modalProvider.js +33 -39
  155. package/dist/modules/providers/placesProvider.js +16 -16
  156. package/dist/modules/providers/toastProvider.js +51 -45
  157. package/dist/modules/services/extractTextFromNode.js +6 -6
  158. package/dist/modules/services/fieldTemplate.js +23 -22
  159. package/dist/modules/services/iconRenderer.js +7 -14
  160. package/dist/modules/services/isBlockActive.js +14 -12
  161. package/dist/modules/services/isMarkActive.js +6 -6
  162. package/dist/modules/services/maskCurrencyValues.js +12 -11
  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 +19 -20
  166. package/dist/modules/services/toggleMark.js +7 -7
  167. package/dist/modules/style.css +1 -0
  168. package/dist/modules/templates/badResponses.js +13 -13
  169. package/dist/modules/templates/richTextTemplates.js +14 -17
  170. package/dist/modules/templates/successResponses.js +4 -9
  171. package/dist/modules/utils/phoneInputUtilities.js +28 -18
  172. package/dist/modules/utils/richTextUtilities.js +75 -88
  173. package/dist/services/fieldTemplate.d.ts +1 -1
  174. package/dist/services/fieldTemplate.d.ts.map +1 -1
  175. package/dist/style.css +1 -0
  176. package/package.json +65 -65
  177. package/dist/components.css +0 -2
  178. package/dist/modules/components.css +0 -2
@@ -1,52 +1,73 @@
1
- import { useCalendar as e } from "../_calendarProvider.js";
2
- import { Select as t } from "../../select/index.js";
3
- /* empty css */
4
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- import { ChevronLeft as i, ChevronRight as a } from "lucide-react";
6
- //#region src/components/calendar/calendarHeader/index.tsx
7
- function o({ basicMode: o }) {
8
- let s = e();
9
- return o ? /* @__PURE__ */ r("div", {
10
- className: "arkynCalendarHeader",
11
- children: [
12
- /* @__PURE__ */ n("button", {
13
- className: "arkynCalendarButton",
14
- onClick: () => s.previousMonth(),
15
- children: /* @__PURE__ */ n(i, {})
16
- }),
17
- /* @__PURE__ */ n("p", { children: s.currentDate }),
18
- /* @__PURE__ */ n("button", {
19
- className: "arkynCalendarButton",
20
- onClick: () => s.nextMonth(),
21
- children: /* @__PURE__ */ n(a, {})
22
- })
23
- ]
24
- }) : /* @__PURE__ */ r("div", {
25
- className: "arkynCalendarHeader",
26
- children: [/* @__PURE__ */ r("div", { children: [/* @__PURE__ */ n("button", {
27
- className: "arkynCalendarButton",
28
- onClick: () => s.previousMonth(),
29
- children: /* @__PURE__ */ n(i, {})
30
- }), /* @__PURE__ */ n("button", {
31
- className: "arkynCalendarButton",
32
- onClick: () => s.nextMonth(),
33
- children: /* @__PURE__ */ n(a, {})
34
- })] }), /* @__PURE__ */ r("div", { children: [/* @__PURE__ */ n(t, {
35
- name: "calendarMonth",
36
- variant: "underline",
37
- className: "calendarMonthSelect",
38
- value: s.currentMonth,
39
- options: s.listMonths,
40
- onChange: (e) => s.changeMonth(+e)
41
- }), /* @__PURE__ */ n(t, {
42
- name: "calendarYear",
43
- variant: "underline",
44
- className: "calendarYearSelect",
45
- value: s.currentYear,
46
- options: s.listYears,
47
- onChange: (e) => s.changeYear(+e)
48
- })] })]
49
- });
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { ChevronLeft as t, ChevronRight as l } from "lucide-react";
3
+ import { Select as o } from "../../select/index.js";
4
+ import { useCalendar as i } from "../_calendarProvider.js";
5
+ /* empty css */
6
+ function C({ basicMode: c }) {
7
+ const n = i();
8
+ return c ? /* @__PURE__ */ a("div", { className: "arkynCalendarHeader", children: [
9
+ /* @__PURE__ */ e(
10
+ "button",
11
+ {
12
+ className: "arkynCalendarButton",
13
+ onClick: () => n.previousMonth(),
14
+ children: /* @__PURE__ */ e(t, {})
15
+ }
16
+ ),
17
+ /* @__PURE__ */ e("p", { children: n.currentDate }),
18
+ /* @__PURE__ */ e(
19
+ "button",
20
+ {
21
+ className: "arkynCalendarButton",
22
+ onClick: () => n.nextMonth(),
23
+ children: /* @__PURE__ */ e(l, {})
24
+ }
25
+ )
26
+ ] }) : /* @__PURE__ */ a("div", { className: "arkynCalendarHeader", children: [
27
+ /* @__PURE__ */ a("div", { children: [
28
+ /* @__PURE__ */ e(
29
+ "button",
30
+ {
31
+ className: "arkynCalendarButton",
32
+ onClick: () => n.previousMonth(),
33
+ children: /* @__PURE__ */ e(t, {})
34
+ }
35
+ ),
36
+ /* @__PURE__ */ e(
37
+ "button",
38
+ {
39
+ className: "arkynCalendarButton",
40
+ onClick: () => n.nextMonth(),
41
+ children: /* @__PURE__ */ e(l, {})
42
+ }
43
+ )
44
+ ] }),
45
+ /* @__PURE__ */ a("div", { children: [
46
+ /* @__PURE__ */ e(
47
+ o,
48
+ {
49
+ name: "calendarMonth",
50
+ variant: "underline",
51
+ className: "calendarMonthSelect",
52
+ value: n.currentMonth,
53
+ options: n.listMonths,
54
+ onChange: (r) => n.changeMonth(+r)
55
+ }
56
+ ),
57
+ /* @__PURE__ */ e(
58
+ o,
59
+ {
60
+ name: "calendarYear",
61
+ variant: "underline",
62
+ className: "calendarYearSelect",
63
+ value: n.currentYear,
64
+ options: n.listYears,
65
+ onChange: (r) => n.changeYear(+r)
66
+ }
67
+ )
68
+ ] })
69
+ ] });
50
70
  }
51
- //#endregion
52
- export { o as CalendarHeader };
71
+ export {
72
+ C as CalendarHeader
73
+ };
@@ -1,13 +1,11 @@
1
- import { useCalendar as e } from "../_calendarProvider.js";
2
- import { CalendarTableTd as t } from "../calendarTableTd/index.js";
3
- /* empty css */
4
- import { jsx as n } from "react/jsx-runtime";
5
- //#region src/components/calendar/calendarTableBody/index.tsx
6
- function r() {
7
- return /* @__PURE__ */ n("tbody", {
8
- className: "arkynCalendarTableBody",
9
- children: e().listMatrix.map((e, r) => /* @__PURE__ */ n("tr", { children: e.map((e, r) => /* @__PURE__ */ n(t, { ...e }, r)) }, r))
10
- });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useCalendar as t } from "../_calendarProvider.js";
3
+ import { CalendarTableTd as d } from "../calendarTableTd/index.js";
4
+ /* empty css */
5
+ function s() {
6
+ const a = t();
7
+ return /* @__PURE__ */ r("tbody", { className: "arkynCalendarTableBody", children: a.listMatrix.map((e, o) => /* @__PURE__ */ r("tr", { children: e.map((l, n) => /* @__PURE__ */ r(d, { ...l }, n)) }, o)) });
11
8
  }
12
- //#endregion
13
- export { r as CalendarTableBody };
9
+ export {
10
+ s as CalendarTableBody
11
+ };
@@ -1,11 +1,8 @@
1
- /* empty css */
2
- import { jsx as e } from "react/jsx-runtime";
3
- //#region src/components/calendar/calendarTableContainer/index.tsx
4
- function t({ children: t }) {
5
- return /* @__PURE__ */ e("table", {
6
- className: "arkynCalendarTableContainer",
7
- children: t
8
- });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function t({ children: a }) {
4
+ return /* @__PURE__ */ r("table", { className: "arkynCalendarTableContainer", children: a });
9
5
  }
10
- //#endregion
11
- export { t as CalendarTableContainer };
6
+ export {
7
+ t as CalendarTableContainer
8
+ };
@@ -1,14 +1,11 @@
1
- import { useCalendar as e } from "../_calendarProvider.js";
2
- /* empty css */
3
- import { jsx as t } from "react/jsx-runtime";
4
- import { formatToCapitalizeFirstWordLetter as n } from "@arkyn/shared";
5
- //#region src/components/calendar/calendarTableHeader/index.tsx
6
- function r() {
7
- let { listWeek: r } = e();
8
- return /* @__PURE__ */ t("thead", {
9
- className: "arkynCalendarTableHeader",
10
- children: /* @__PURE__ */ t("tr", { children: r.map((e, r) => /* @__PURE__ */ t("th", { children: n(e) }, r)) })
11
- });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { formatToCapitalizeFirstWordLetter as o } from "@arkyn/shared";
3
+ import { useCalendar as i } from "../_calendarProvider.js";
4
+ /* empty css */
5
+ function p() {
6
+ const { listWeek: e } = i();
7
+ return /* @__PURE__ */ r("thead", { className: "arkynCalendarTableHeader", children: /* @__PURE__ */ r("tr", { children: e.map((a, t) => /* @__PURE__ */ r("th", { children: o(a) }, t)) }) });
12
8
  }
13
- //#endregion
14
- export { r as CalendarTableHeader };
9
+ export {
10
+ p as CalendarTableHeader
11
+ };
@@ -1,21 +1,24 @@
1
- import { useCalendar as e } from "../_calendarProvider.js";
2
- /* empty css */
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- //#region src/components/calendar/calendarTableTd/index.tsx
5
- function r(r) {
6
- let { day: i, month: a, year: o, dayOwner: s, dayType: c } = r, { changeDay: l } = e();
7
- function u() {
8
- let e = /* @__PURE__ */ new Date();
9
- return i === e.getDate() && a === e.getMonth() && o === e.getFullYear();
10
- }
11
- return /* @__PURE__ */ t("td", {
12
- onClick: () => l(i, a, o),
13
- className: `arkynCalendarTableTd ${s} ${c} ${u() ? "today" : ""}`,
14
- children: /* @__PURE__ */ n("div", {
15
- className: "textGroup",
16
- children: [/* @__PURE__ */ t("span", {}), /* @__PURE__ */ t("p", { children: i })]
17
- })
18
- });
1
+ import { jsx as n, jsxs as i } from "react/jsx-runtime";
2
+ import { useCalendar as y } from "../_calendarProvider.js";
3
+ /* empty css */
4
+ function h(o) {
5
+ const { day: a, month: t, year: r, dayOwner: d, dayType: l } = o, { changeDay: s } = y();
6
+ function c() {
7
+ const e = /* @__PURE__ */ new Date();
8
+ return a === e.getDate() && t === e.getMonth() && r === e.getFullYear();
9
+ }
10
+ return /* @__PURE__ */ n(
11
+ "td",
12
+ {
13
+ onClick: () => s(a, t, r),
14
+ className: `arkynCalendarTableTd ${d} ${l} ${c() ? "today" : ""}`,
15
+ children: /* @__PURE__ */ i("div", { className: "textGroup", children: [
16
+ /* @__PURE__ */ n("span", {}),
17
+ /* @__PURE__ */ n("p", { children: a })
18
+ ] })
19
+ }
20
+ );
19
21
  }
20
- //#endregion
21
- export { r as CalendarTableTd };
22
+ export {
23
+ h as CalendarTableTd
24
+ };
@@ -1,32 +1,50 @@
1
- import { CalendarProvider as e } from "./_calendarProvider.js";
2
- import { CalendarContainer as t } from "./calendarContainer/index.js";
3
- import { CalendarHeader as n } from "./calendarHeader/index.js";
4
- import { CalendarTableBody as r } from "./calendarTableBody/index.js";
5
- import { CalendarTableContainer as i } from "./calendarTableContainer/index.js";
6
- import { CalendarTableHeader as a } from "./calendarTableHeader/index.js";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- //#region src/components/calendar/index.tsx
9
- function c(c) {
10
- let l = c.variant || "complete";
11
- return c.type === "range" ? /* @__PURE__ */ o(e, {
12
- value: c.value,
13
- viewValue: c.viewValue,
14
- defaultViewValue: c.defaultViewValue,
15
- defaultValue: c.defaultValue,
16
- calendarType: "range",
17
- onChange: c.onChange,
18
- onChangeView: c.onChangeView,
19
- children: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ o(n, { basicMode: l.includes("basic") }), /* @__PURE__ */ s(i, { children: [/* @__PURE__ */ o(a, {}), /* @__PURE__ */ o(r, {})] })] })
20
- }) : /* @__PURE__ */ o(e, {
21
- value: c.value,
22
- viewValue: c.viewValue,
23
- defaultViewValue: c.defaultViewValue,
24
- defaultValue: c.defaultValue,
25
- calendarType: "single",
26
- onChange: c.onChange,
27
- onChangeView: c.onChangeView,
28
- children: /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ o(n, { basicMode: l.includes("basic") }), /* @__PURE__ */ s(i, { children: [/* @__PURE__ */ o(a, {}), /* @__PURE__ */ o(r, {})] })] })
29
- });
1
+ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
+ import { CalendarProvider as i } from "./_calendarProvider.js";
3
+ import { CalendarContainer as d } from "./calendarContainer/index.js";
4
+ import { CalendarHeader as r } from "./calendarHeader/index.js";
5
+ import { CalendarTableBody as u } from "./calendarTableBody/index.js";
6
+ import { CalendarTableContainer as t } from "./calendarTableContainer/index.js";
7
+ import { CalendarTableHeader as V } from "./calendarTableHeader/index.js";
8
+ function g(e) {
9
+ const l = e.variant || "complete";
10
+ return e.type === "range" ? /* @__PURE__ */ a(
11
+ i,
12
+ {
13
+ value: e.value,
14
+ viewValue: e.viewValue,
15
+ defaultViewValue: e.defaultViewValue,
16
+ defaultValue: e.defaultValue,
17
+ calendarType: "range",
18
+ onChange: e.onChange,
19
+ onChangeView: e.onChangeView,
20
+ children: /* @__PURE__ */ n(d, { children: [
21
+ /* @__PURE__ */ a(r, { basicMode: l.includes("basic") }),
22
+ /* @__PURE__ */ n(t, { children: [
23
+ /* @__PURE__ */ a(V, {}),
24
+ /* @__PURE__ */ a(u, {})
25
+ ] })
26
+ ] })
27
+ }
28
+ ) : /* @__PURE__ */ a(
29
+ i,
30
+ {
31
+ value: e.value,
32
+ viewValue: e.viewValue,
33
+ defaultViewValue: e.defaultViewValue,
34
+ defaultValue: e.defaultValue,
35
+ calendarType: "single",
36
+ onChange: e.onChange,
37
+ onChangeView: e.onChangeView,
38
+ children: /* @__PURE__ */ n(d, { children: [
39
+ /* @__PURE__ */ a(r, { basicMode: l.includes("basic") }),
40
+ /* @__PURE__ */ n(t, { children: [
41
+ /* @__PURE__ */ a(V, {}),
42
+ /* @__PURE__ */ a(u, {})
43
+ ] })
44
+ ] })
45
+ }
46
+ );
30
47
  }
31
- //#endregion
32
- export { c as Calendar };
48
+ export {
49
+ g as Calendar
50
+ };
@@ -1,20 +1,30 @@
1
- import { useCardTab as e } from "../cardTabContext.js";
2
- /* empty css */
3
- import { jsx as t } from "react/jsx-runtime";
4
- //#region src/components/cardTab/cardTabButton/index.tsx
5
- function n(n) {
6
- let { children: r, disabled: i = !1, className: a = "", onClick: o, value: s, ...c } = n, { disabled: l, currentTab: u, changeCurrentTab: d } = e(), f = l || i, p = `arkynCardTabButton ${f ? "isDisabled" : ""} ${u === s && s ? "isActive" : ""} ${a}`;
7
- function m(e) {
8
- d(s), o && o(e);
9
- }
10
- return /* @__PURE__ */ t("button", {
11
- onClick: m,
12
- className: p.trim(),
13
- ...c,
14
- disabled: f,
15
- type: "button",
16
- children: r
17
- });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { useCardTab as f } from "../cardTabContext.js";
3
+ /* empty css */
4
+ function h(e) {
5
+ const {
6
+ children: i,
7
+ disabled: l = !1,
8
+ className: n = "",
9
+ onClick: a,
10
+ value: s,
11
+ ...c
12
+ } = e, { disabled: o, currentTab: r, changeCurrentTab: d } = f(), t = o || l, b = `arkynCardTabButton ${t ? "isDisabled" : ""} ${r === s && s ? "isActive" : ""} ${n}`;
13
+ function C(u) {
14
+ d(s), a && a(u);
15
+ }
16
+ return /* @__PURE__ */ m(
17
+ "button",
18
+ {
19
+ onClick: C,
20
+ className: b.trim(),
21
+ ...c,
22
+ disabled: t,
23
+ type: "button",
24
+ children: i
25
+ }
26
+ );
18
27
  }
19
- //#endregion
20
- export { n as CardTabButton };
28
+ export {
29
+ h as CardTabButton
30
+ };
@@ -1,23 +1,29 @@
1
- import { CardTabProvider as e } from "../cardTabContext.js";
2
- /* empty css */
3
- import { useState as t } from "react";
4
- import { jsx as n } from "react/jsx-runtime";
5
- //#region src/components/cardTab/cardTabContainer/index.tsx
6
- function r(r) {
7
- let { children: i, onChange: a, defaultValue: o, disabled: s = !1, className: c, ...l } = r, [u, d] = t(o || ""), f = `arkynCardTabContainer ${c || ""}`;
8
- function p(e) {
9
- d(e), a && a(e);
10
- }
11
- return /* @__PURE__ */ n(e, {
12
- disabled: s,
13
- currentTab: u,
14
- changeCurrentTab: p,
15
- children: /* @__PURE__ */ n("nav", {
16
- className: f.trim(),
17
- ...l,
18
- children: i
19
- })
20
- });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useState as b } from "react";
3
+ import { CardTabProvider as f } from "../cardTabContext.js";
4
+ /* empty css */
5
+ function N(n) {
6
+ const {
7
+ children: t,
8
+ onChange: a,
9
+ defaultValue: s,
10
+ disabled: o = !1,
11
+ className: i,
12
+ ...c
13
+ } = n, [m, d] = b(s || ""), l = `arkynCardTabContainer ${i || ""}`;
14
+ function C(r) {
15
+ d(r), a && a(r);
16
+ }
17
+ return /* @__PURE__ */ e(
18
+ f,
19
+ {
20
+ disabled: o,
21
+ currentTab: m,
22
+ changeCurrentTab: C,
23
+ children: /* @__PURE__ */ e("nav", { className: l.trim(), ...c, children: t })
24
+ }
25
+ );
21
26
  }
22
- //#endregion
23
- export { r as CardTabContainer };
27
+ export {
28
+ N as CardTabContainer
29
+ };
@@ -1,15 +1,13 @@
1
- import { createContext as e, useContext as t } from "react";
2
- import { jsx as n } from "react/jsx-runtime";
3
- //#region src/components/cardTab/cardTabContext.tsx
4
- var r = e({});
5
- function i() {
6
- return t(r);
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useContext as n, createContext as o } from "react";
3
+ const e = o({});
4
+ function d() {
5
+ return n(e);
7
6
  }
8
- function a(e) {
9
- return /* @__PURE__ */ n(r.Provider, {
10
- value: e,
11
- children: e.children
12
- });
7
+ function u(r) {
8
+ return /* @__PURE__ */ t(e.Provider, { value: r, children: r.children });
13
9
  }
14
- //#endregion
15
- export { a as CardTabProvider, i as useCardTab };
10
+ export {
11
+ u as CardTabProvider,
12
+ d as useCardTab
13
+ };
@@ -1,38 +1,65 @@
1
- import { useForm as e } from "../../hooks/useForm.js";
2
- import { FieldTemplate as t } from "../../services/fieldTemplate.js";
3
- /* empty css */
4
- import { useId as n, useRef as r, useState as i } from "react";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { Check as s } from "lucide-react";
7
- //#region src/components/checkbox/index.tsx
8
- function c(c) {
9
- let { id: l, name: u, className: d = "", size: f = "md", errorMessage: p, defaultChecked: m = !1, label: h, checked: g = null, onCheck: _, orientation: v = "horizontalReverse", showAsterisk: y, unShowFieldTemplate: b, value: x, ...S } = c, { fieldErrors: C } = e(), w = r(null), T = l || n(), E = p || C?.[u], D = !!E, [O, k] = i(m || !1), A = typeof g == "boolean" ? g : O, j = `arkynCheckbox ${f} ${D ? "errorTrue" : "errorFalse"} ${A ? "checkedTrue" : "checkedFalse"}`;
10
- function M() {
11
- let e = O;
12
- k(!e), _ && _(e ? "" : x || "checked");
13
- }
14
- return /* @__PURE__ */ a(t, {
15
- name: u,
16
- label: h,
17
- showAsterisk: y,
18
- className: d,
19
- errorMessage: E,
20
- unShowFieldTemplate: b,
21
- orientation: v,
22
- children: /* @__PURE__ */ o("button", {
23
- id: T,
24
- type: "button",
25
- className: j,
26
- onClick: M,
27
- ...S,
28
- children: [/* @__PURE__ */ a("input", {
29
- type: "hidden",
30
- name: u,
31
- ref: w,
32
- value: A ? x || "checked" : ""
33
- }), /* @__PURE__ */ a(s, {})]
34
- })
35
- });
1
+ import { jsx as r, jsxs as I } from "react/jsx-runtime";
2
+ import { Check as M } from "lucide-react";
3
+ import { useRef as R, useId as $, useState as j } from "react";
4
+ import { useForm as z } from "../../hooks/useForm.js";
5
+ import { FieldTemplate as S } from "../../services/fieldTemplate.js";
6
+ /* empty css */
7
+ function K(d) {
8
+ const {
9
+ id: i,
10
+ name: e,
11
+ className: k = "",
12
+ size: u = "md",
13
+ errorMessage: m,
14
+ defaultChecked: C = !1,
15
+ label: p,
16
+ checked: o = null,
17
+ onCheck: c,
18
+ orientation: f = "horizontalReverse",
19
+ showAsterisk: b,
20
+ unShowFieldTemplate: x,
21
+ value: t,
22
+ ...F
23
+ } = d, { fieldErrors: s } = z(), y = R(null), N = i || $(), n = m || (s == null ? void 0 : s[e]), T = !!n, [a, g] = j(C || !1), l = typeof o == "boolean" ? o : a, v = `arkynCheckbox ${u} ${T ? "errorTrue" : "errorFalse"} ${l ? "checkedTrue" : "checkedFalse"}`;
24
+ function w() {
25
+ const h = a;
26
+ g(!h), c && c(h ? "" : t || "checked");
27
+ }
28
+ return /* @__PURE__ */ r(
29
+ S,
30
+ {
31
+ name: e,
32
+ label: p,
33
+ showAsterisk: b,
34
+ className: k,
35
+ errorMessage: n,
36
+ unShowFieldTemplate: x,
37
+ orientation: f,
38
+ children: /* @__PURE__ */ I(
39
+ "button",
40
+ {
41
+ id: N,
42
+ type: "button",
43
+ className: v,
44
+ onClick: w,
45
+ ...F,
46
+ children: [
47
+ /* @__PURE__ */ r(
48
+ "input",
49
+ {
50
+ type: "hidden",
51
+ name: e,
52
+ ref: y,
53
+ value: l ? t || "checked" : ""
54
+ }
55
+ ),
56
+ /* @__PURE__ */ r(M, {})
57
+ ]
58
+ }
59
+ )
60
+ }
61
+ );
36
62
  }
37
- //#endregion
38
- export { c as Checkbox };
63
+ export {
64
+ K as Checkbox
65
+ };
@@ -1,9 +1,9 @@
1
- import { useHydrated as e } from "../hooks/useHydrated.js";
2
- import { Fragment as t, jsx as n } from "react/jsx-runtime";
3
- //#region src/components/clientOnly.tsx
4
- function r(r) {
5
- let { children: i, fallback: a = null } = r;
6
- return e() ? /* @__PURE__ */ n(t, { children: i() }) : /* @__PURE__ */ n(t, { children: a });
1
+ import { jsx as r, Fragment as n } from "react/jsx-runtime";
2
+ import { useHydrated as i } from "../hooks/useHydrated.js";
3
+ function d(e) {
4
+ const { children: l, fallback: t = null } = e;
5
+ return i() ? /* @__PURE__ */ r(n, { children: l() }) : /* @__PURE__ */ r(n, { children: t });
7
6
  }
8
- //#endregion
9
- export { r as ClientOnly };
7
+ export {
8
+ d as ClientOnly
9
+ };