@arkyn/components 3.0.1-beta.154 → 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 (337) hide show
  1. package/dist/index.js +4694 -75
  2. package/dist/modules/components/alert/alertContainer/index.js +22 -0
  3. package/dist/modules/components/alert/alertContent/index.js +9 -0
  4. package/dist/modules/components/alert/alertDescription/index.js +9 -0
  5. package/dist/modules/components/alert/alertIcon/index.js +20 -0
  6. package/dist/modules/components/alert/alertTitle/index.js +9 -0
  7. package/dist/modules/components/audioPlayer/index.js +76 -0
  8. package/dist/modules/components/audioUpload/hasFileContent/index.js +63 -0
  9. package/dist/modules/components/audioUpload/index.js +80 -0
  10. package/dist/modules/components/audioUpload/noFileContent/index.js +46 -0
  11. package/dist/modules/components/badge/index.js +23 -0
  12. package/dist/modules/components/button/index.js +33 -0
  13. package/dist/modules/components/calendar/_calendarProvider.js +65 -0
  14. package/dist/modules/components/calendar/_viewService.js +141 -0
  15. package/dist/modules/components/calendar/calendarContainer/index.js +8 -0
  16. package/dist/modules/components/calendar/calendarHeader/index.js +73 -0
  17. package/dist/modules/components/calendar/calendarTableBody/index.js +11 -0
  18. package/dist/modules/components/calendar/calendarTableContainer/index.js +8 -0
  19. package/dist/modules/components/calendar/calendarTableHeader/index.js +11 -0
  20. package/dist/modules/components/calendar/calendarTableTd/index.js +24 -0
  21. package/dist/modules/components/calendar/index.js +50 -0
  22. package/dist/modules/components/cardTab/cardTabButton/index.js +30 -0
  23. package/dist/modules/components/cardTab/cardTabContainer/index.js +29 -0
  24. package/dist/modules/components/cardTab/cardTabContext.js +13 -0
  25. package/dist/modules/components/checkbox/index.js +65 -0
  26. package/dist/modules/components/clientOnly.js +9 -0
  27. package/dist/modules/components/currencyInput/index.js +140 -0
  28. package/dist/modules/components/divider/index.js +13 -0
  29. package/dist/modules/components/drawer/drawerContainer/index.js +44 -0
  30. package/dist/modules/components/drawer/drawerContext.js +13 -0
  31. package/dist/modules/components/drawer/drawerHeader/index.js +28 -0
  32. package/dist/modules/components/facebookPixel/facebookPixel.client.js +19 -0
  33. package/dist/modules/components/facebookPixel/index.js +9 -0
  34. package/dist/modules/components/facebookPixel/pixel.js +53 -0
  35. package/dist/modules/components/fieldError/index.js +9 -0
  36. package/dist/modules/components/fieldLabel/index.js +13 -0
  37. package/dist/modules/components/fieldWrapper/index.js +14 -0
  38. package/dist/modules/components/fileUpload/hasFileContent/index.js +68 -0
  39. package/dist/modules/components/fileUpload/index.js +73 -0
  40. package/dist/modules/components/fileUpload/noFileContent/index.js +46 -0
  41. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +48 -0
  42. package/dist/modules/components/fullCalendar/_viewService.js +106 -0
  43. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +8 -0
  44. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +79 -0
  45. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +34 -0
  46. package/dist/modules/components/fullCalendar/dayCalendar/index.js +11 -0
  47. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +8 -0
  48. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +72 -0
  49. package/dist/modules/components/fullCalendar/index.js +31 -0
  50. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +13 -0
  51. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +37 -0
  52. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +11 -0
  53. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +10 -0
  54. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +11 -0
  55. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +37 -0
  56. package/dist/modules/components/fullCalendar/weekCalendar/index.js +13 -0
  57. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +79 -0
  58. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +21 -0
  59. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +10 -0
  60. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +20 -0
  61. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +40 -0
  62. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +8 -0
  63. package/dist/modules/components/googleAnalytics/googleAnalytics.js +18 -0
  64. package/dist/modules/components/googleAnalytics/index.js +10 -0
  65. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +16 -0
  66. package/dist/modules/components/googleTagManager/googleTagManager.client.js +8 -0
  67. package/dist/modules/components/googleTagManager/googleTagManager.js +49 -0
  68. package/dist/modules/components/googleTagManager/index.js +28 -0
  69. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +9 -0
  70. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +24 -0
  71. package/dist/modules/components/iconButton/index.js +30 -0
  72. package/dist/modules/components/imageUpload/hasFileContent/index.js +64 -0
  73. package/dist/modules/components/imageUpload/index.js +83 -0
  74. package/dist/modules/components/imageUpload/noFileContent/index.js +46 -0
  75. package/dist/modules/components/input/index.js +121 -0
  76. package/dist/modules/components/mapView/index.js +33 -0
  77. package/dist/modules/components/mapView/mapView.client.js +52 -0
  78. package/dist/modules/components/maskedInput/index.js +113 -0
  79. package/dist/modules/components/modal/modalContainer/index.js +43 -0
  80. package/dist/modules/components/modal/modalContext.js +13 -0
  81. package/dist/modules/components/modal/modalFooter/index.js +9 -0
  82. package/dist/modules/components/modal/modalHeader/index.js +28 -0
  83. package/dist/modules/components/multiSelect/index.js +155 -0
  84. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +22 -0
  85. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +30 -0
  86. package/dist/modules/components/multiSelect/multiSelectContent/index.js +9 -0
  87. package/dist/modules/components/multiSelect/multiSelectMark/index.js +23 -0
  88. package/dist/modules/components/multiSelect/multiSelectOption/index.js +14 -0
  89. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +46 -0
  90. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +9 -0
  91. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +17 -0
  92. package/dist/modules/components/pagination/chevronButton/index.js +18 -0
  93. package/dist/modules/components/pagination/currentButton/index.js +8 -0
  94. package/dist/modules/components/pagination/index.js +84 -0
  95. package/dist/modules/components/pagination/pageButton/index.js +9 -0
  96. package/dist/modules/components/pagination/paginationService.js +49 -0
  97. package/dist/modules/components/pagination/spread/index.js +9 -0
  98. package/dist/modules/components/phoneInput/index.js +152 -0
  99. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +20 -0
  100. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +9 -0
  101. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +16 -0
  102. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +44 -0
  103. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +22 -0
  104. package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -0
  105. package/dist/modules/components/popover/index.js +37 -0
  106. package/dist/modules/components/radio/radioBox/index.js +43 -0
  107. package/dist/modules/components/radio/radioContext.js +20 -0
  108. package/dist/modules/components/radio/radioGroup/index.js +65 -0
  109. package/dist/modules/components/richText/blockButton/index.js +24 -0
  110. package/dist/modules/components/richText/element/index.js +59 -0
  111. package/dist/modules/components/richText/index.js +136 -0
  112. package/dist/modules/components/richText/insertImage/index.js +106 -0
  113. package/dist/modules/components/richText/insertVideo/index.js +98 -0
  114. package/dist/modules/components/richText/leaf/index.js +7 -0
  115. package/dist/modules/components/richText/markButton/index.js +23 -0
  116. package/dist/modules/components/richText/toolbar/index.js +8 -0
  117. package/dist/modules/components/searchPlaces.js +67 -0
  118. package/dist/modules/components/select/index.js +145 -0
  119. package/dist/modules/components/select/selectChevron/index.js +22 -0
  120. package/dist/modules/components/select/selectContainer/index.js +30 -0
  121. package/dist/modules/components/select/selectContent/index.js +9 -0
  122. package/dist/modules/components/select/selectOption/index.js +14 -0
  123. package/dist/modules/components/select/selectOptionsContainer/index.js +46 -0
  124. package/dist/modules/components/select/selectOverlay/index.js +9 -0
  125. package/dist/modules/components/select/selectSpinner/index.js +10 -0
  126. package/dist/modules/components/slider/index.js +42 -0
  127. package/dist/modules/components/switch/index.js +63 -0
  128. package/dist/modules/components/tab/tabButton/index.js +30 -0
  129. package/dist/modules/components/tab/tabContainer/index.js +29 -0
  130. package/dist/modules/components/tab/tabContext.js +13 -0
  131. package/dist/modules/components/table/tableBody/index.js +15 -0
  132. package/dist/modules/components/table/tableCaption/index.js +9 -0
  133. package/dist/modules/components/table/tableContainer/index.js +9 -0
  134. package/dist/modules/components/table/tableFooter/index.js +12 -0
  135. package/dist/modules/components/table/tableHeader/index.js +12 -0
  136. package/dist/modules/components/textarea/index.js +70 -0
  137. package/dist/modules/components/tooltip/index.js +46 -0
  138. package/dist/modules/hooks/useAutomation.js +28 -0
  139. package/dist/modules/hooks/useDrawer.js +20 -0
  140. package/dist/modules/hooks/useForm.js +8 -0
  141. package/dist/modules/hooks/useHydrated.js +15 -0
  142. package/dist/modules/hooks/useModal.js +20 -0
  143. package/dist/modules/hooks/useScopedParams.js +18 -0
  144. package/dist/modules/hooks/useScrollLock.js +21 -0
  145. package/dist/modules/hooks/useSearchAutomation.js +15 -0
  146. package/dist/modules/hooks/useSlider.js +14 -0
  147. package/dist/modules/hooks/useToast.js +11 -0
  148. package/dist/modules/index.js +144 -0
  149. package/dist/modules/providers/drawerProvider.js +31 -0
  150. package/dist/modules/providers/formProvider.js +18 -0
  151. package/dist/modules/providers/modalProvider.js +34 -0
  152. package/dist/modules/providers/placesProvider.js +18 -0
  153. package/dist/modules/providers/toastProvider.js +52 -0
  154. package/dist/modules/services/extractTextFromNode.js +7 -0
  155. package/dist/modules/services/fieldTemplate.js +24 -0
  156. package/dist/modules/services/iconRenderer.js +8 -0
  157. package/dist/modules/services/isBlockActive.js +15 -0
  158. package/dist/modules/services/isMarkActive.js +8 -0
  159. package/dist/modules/services/maskCurrencyValues.js +14 -0
  160. package/dist/modules/services/toHtml.js +7 -0
  161. package/dist/modules/services/toRichTextValue.js +9 -0
  162. package/dist/modules/services/toggleBlock.js +20 -0
  163. package/dist/modules/services/toggleMark.js +8 -0
  164. package/dist/modules/style.css +1 -0
  165. package/dist/modules/templates/badResponses.js +14 -0
  166. package/dist/modules/templates/richTextTemplates.js +14 -0
  167. package/dist/modules/templates/successResponses.js +4 -0
  168. package/dist/modules/utils/phoneInputUtilities.js +32 -0
  169. package/dist/modules/utils/richTextUtilities.js +77 -0
  170. package/package.json +208 -208
  171. package/dist/components/alert/alertContainer/index.js +0 -71
  172. package/dist/components/alert/alertContent/index.js +0 -26
  173. package/dist/components/alert/alertDescription/index.js +0 -25
  174. package/dist/components/alert/alertIcon/index.js +0 -43
  175. package/dist/components/alert/alertTitle/index.js +0 -27
  176. package/dist/components/audioPlayer/index.js +0 -112
  177. package/dist/components/audioUpload/hasFileContent/index.js +0 -26
  178. package/dist/components/audioUpload/index.js +0 -95
  179. package/dist/components/audioUpload/noFileContent/index.js +0 -29
  180. package/dist/components/badge/index.js +0 -41
  181. package/dist/components/button/index.js +0 -51
  182. package/dist/components/calendar/_calendarProvider.js +0 -58
  183. package/dist/components/calendar/_viewService.js +0 -179
  184. package/dist/components/calendar/calendarContainer/index.js +0 -6
  185. package/dist/components/calendar/calendarHeader/index.js +0 -13
  186. package/dist/components/calendar/calendarTableBody/index.js +0 -9
  187. package/dist/components/calendar/calendarTableContainer/index.js +0 -6
  188. package/dist/components/calendar/calendarTableHeader/index.js +0 -9
  189. package/dist/components/calendar/calendarTableTd/index.js +0 -15
  190. package/dist/components/calendar/index.js +0 -54
  191. package/dist/components/cardTab/cardTabButton/index.js +0 -40
  192. package/dist/components/cardTab/cardTabContainer/index.js +0 -42
  193. package/dist/components/cardTab/cardTabContext.js +0 -10
  194. package/dist/components/checkbox/index.js +0 -71
  195. package/dist/components/clientOnly.js +0 -31
  196. package/dist/components/currencyInput/index.js +0 -126
  197. package/dist/components/divider/index.js +0 -28
  198. package/dist/components/drawer/drawerContainer/index.js +0 -38
  199. package/dist/components/drawer/drawerContext.js +0 -10
  200. package/dist/components/drawer/drawerHeader/index.js +0 -33
  201. package/dist/components/facebookPixel/facebookPixel.client.js +0 -23
  202. package/dist/components/facebookPixel/index.js +0 -45
  203. package/dist/components/facebookPixel/pixel.js +0 -111
  204. package/dist/components/fieldError/index.js +0 -26
  205. package/dist/components/fieldLabel/index.js +0 -23
  206. package/dist/components/fieldWrapper/index.js +0 -27
  207. package/dist/components/fileUpload/hasFileContent/index.js +0 -34
  208. package/dist/components/fileUpload/index.js +0 -89
  209. package/dist/components/fileUpload/noFileContent/index.js +0 -29
  210. package/dist/components/fullCalendar/_fullCalendarProvider.js +0 -36
  211. package/dist/components/fullCalendar/_viewService.js +0 -144
  212. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +0 -6
  213. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +0 -105
  214. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +0 -24
  215. package/dist/components/fullCalendar/dayCalendar/index.js +0 -9
  216. package/dist/components/fullCalendar/fullCalendarContainer/index.js +0 -6
  217. package/dist/components/fullCalendar/fullCalendarHeader/index.js +0 -37
  218. package/dist/components/fullCalendar/index.js +0 -52
  219. package/dist/components/fullCalendar/monthlyCalendar/index.js +0 -8
  220. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +0 -29
  221. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +0 -9
  222. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +0 -6
  223. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +0 -9
  224. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +0 -30
  225. package/dist/components/fullCalendar/weekCalendar/index.js +0 -8
  226. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +0 -102
  227. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +0 -11
  228. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +0 -6
  229. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +0 -10
  230. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +0 -25
  231. package/dist/components/googleAnalytics/googleAnalytics.client.js +0 -8
  232. package/dist/components/googleAnalytics/googleAnalytics.js +0 -23
  233. package/dist/components/googleAnalytics/index.js +0 -31
  234. package/dist/components/googleAnalytics/snippets/generateGAElements.js +0 -16
  235. package/dist/components/googleTagManager/googleTagManager.client.js +0 -8
  236. package/dist/components/googleTagManager/googleTagManager.js +0 -52
  237. package/dist/components/googleTagManager/index.js +0 -47
  238. package/dist/components/googleTagManager/snippets/appendToDataLayer.js +0 -7
  239. package/dist/components/googleTagManager/snippets/generateGTMElements.js +0 -25
  240. package/dist/components/iconButton/index.js +0 -38
  241. package/dist/components/imageUpload/hasFileContent/index.js +0 -24
  242. package/dist/components/imageUpload/index.js +0 -101
  243. package/dist/components/imageUpload/noFileContent/index.js +0 -29
  244. package/dist/components/input/index.js +0 -94
  245. package/dist/components/mapView/index.js +0 -53
  246. package/dist/components/mapView/mapView.client.js +0 -51
  247. package/dist/components/maskedInput/index.js +0 -108
  248. package/dist/components/modal/modalContainer/index.js +0 -40
  249. package/dist/components/modal/modalContext.js +0 -10
  250. package/dist/components/modal/modalFooter/index.js +0 -32
  251. package/dist/components/modal/modalHeader/index.js +0 -34
  252. package/dist/components/multiSelect/index.js +0 -135
  253. package/dist/components/multiSelect/multiSelectChevron/index.js +0 -18
  254. package/dist/components/multiSelect/multiSelectContainer/index.js +0 -11
  255. package/dist/components/multiSelect/multiSelectContent/index.js +0 -8
  256. package/dist/components/multiSelect/multiSelectMark/index.js +0 -11
  257. package/dist/components/multiSelect/multiSelectOption/index.js +0 -10
  258. package/dist/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
  259. package/dist/components/multiSelect/multiSelectOverlay/index.js +0 -9
  260. package/dist/components/multiSelect/multiSelectSpinner/index.js +0 -10
  261. package/dist/components/pagination/chevronButton/index.js +0 -9
  262. package/dist/components/pagination/currentButton/index.js +0 -6
  263. package/dist/components/pagination/index.js +0 -46
  264. package/dist/components/pagination/pageButton/index.js +0 -7
  265. package/dist/components/pagination/paginationService.js +0 -62
  266. package/dist/components/pagination/spread/index.js +0 -7
  267. package/dist/components/phoneInput/index.js +0 -127
  268. package/dist/components/phoneInput/phoneInputContainer/index.js +0 -11
  269. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
  270. package/dist/components/phoneInput/phoneInputCountryOption/index.js +0 -10
  271. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
  272. package/dist/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
  273. package/dist/components/phoneInput/phoneInputMask/index.js +0 -37
  274. package/dist/components/popover/index.js +0 -62
  275. package/dist/components/radio/radioBox/index.js +0 -48
  276. package/dist/components/radio/radioContext.js +0 -11
  277. package/dist/components/radio/radioGroup/index.js +0 -58
  278. package/dist/components/richText/blockButton/index.js +0 -18
  279. package/dist/components/richText/element/index.js +0 -26
  280. package/dist/components/richText/index.js +0 -136
  281. package/dist/components/richText/insertImage/index.js +0 -33
  282. package/dist/components/richText/insertVideo/index.js +0 -51
  283. package/dist/components/richText/leaf/index.js +0 -13
  284. package/dist/components/richText/markButton/index.js +0 -16
  285. package/dist/components/richText/toolbar/index.js +0 -6
  286. package/dist/components/searchPlaces.js +0 -99
  287. package/dist/components/select/index.js +0 -134
  288. package/dist/components/select/selectChevron/index.js +0 -18
  289. package/dist/components/select/selectContainer/index.js +0 -11
  290. package/dist/components/select/selectContent/index.js +0 -8
  291. package/dist/components/select/selectOption/index.js +0 -10
  292. package/dist/components/select/selectOptionsContainer/index.js +0 -44
  293. package/dist/components/select/selectOverlay/index.js +0 -9
  294. package/dist/components/select/selectSpinner/index.js +0 -10
  295. package/dist/components/slider/index.js +0 -79
  296. package/dist/components/switch/index.js +0 -66
  297. package/dist/components/tab/tabButton/index.js +0 -40
  298. package/dist/components/tab/tabContainer/index.js +0 -42
  299. package/dist/components/tab/tabContext.js +0 -10
  300. package/dist/components/table/tableBody/index.js +0 -34
  301. package/dist/components/table/tableCaption/index.js +0 -24
  302. package/dist/components/table/tableContainer/index.js +0 -37
  303. package/dist/components/table/tableFooter/index.js +0 -23
  304. package/dist/components/table/tableHeader/index.js +0 -25
  305. package/dist/components/textarea/index.js +0 -80
  306. package/dist/components/tooltip/index.js +0 -96
  307. package/dist/hooks/useAutomation.js +0 -74
  308. package/dist/hooks/useDrawer.js +0 -20
  309. package/dist/hooks/useForm.js +0 -35
  310. package/dist/hooks/useHydrated.js +0 -26
  311. package/dist/hooks/useModal.js +0 -20
  312. package/dist/hooks/useScopedParams.js +0 -55
  313. package/dist/hooks/useScrollLock.js +0 -46
  314. package/dist/hooks/useSearchAutomation.js +0 -64
  315. package/dist/hooks/useSlider.js +0 -35
  316. package/dist/hooks/useToast.js +0 -28
  317. package/dist/providers/drawerProvider.js +0 -54
  318. package/dist/providers/formProvider.js +0 -34
  319. package/dist/providers/modalProvider.js +0 -58
  320. package/dist/providers/placesProvider.js +0 -40
  321. package/dist/providers/toastProvider.js +0 -62
  322. package/dist/services/extractTextFromNode.js +0 -5
  323. package/dist/services/fieldTemplate.js +0 -11
  324. package/dist/services/iconRenderer.js +0 -13
  325. package/dist/services/isBlockActive.js +0 -14
  326. package/dist/services/isMarkActive.js +0 -6
  327. package/dist/services/maskCurrencyValues.js +0 -23
  328. package/dist/services/toHtml.js +0 -22
  329. package/dist/services/toRichTextValue.js +0 -34
  330. package/dist/services/toggleBlock.js +0 -32
  331. package/dist/services/toggleMark.js +0 -10
  332. package/dist/templates/badResponses.js +0 -12
  333. package/dist/templates/richTextTemplates.js +0 -12
  334. package/dist/templates/successResponses.js +0 -2
  335. package/dist/types/richTextTypes.js +0 -1
  336. package/dist/utils/phoneInputUtilities.js +0 -37
  337. package/dist/utils/richTextUtilities.js +0 -89
@@ -0,0 +1,22 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { createContext as A, useContext as u } from "react";
3
+ import { AlertTitle as h } from "../alertTitle/index.js";
4
+ /* empty css */
5
+ const s = A({});
6
+ function j() {
7
+ return u(s);
8
+ }
9
+ function v(r) {
10
+ const { schema: o, children: l, className: a, ...c } = r, p = !((m) => {
11
+ let i = !1;
12
+ const e = (t) => {
13
+ Array.isArray(t) ? t.forEach(e) : t && typeof t == "object" && "type" in t && (t.type === h ? i = !0 : t.props && typeof t.props == "object" && t.props !== null && "children" in t.props && e(t.props.children));
14
+ };
15
+ return e(m), i;
16
+ })(l) ? "nonExistsAlertTitle" : "existsAlertTitle", f = `arkynAlertContainer ${o} ${p} ${a}`;
17
+ return /* @__PURE__ */ n(s.Provider, { value: r, children: /* @__PURE__ */ n("div", { className: f.trim(), ...c, children: l }) });
18
+ }
19
+ export {
20
+ v as AlertContainer,
21
+ j as useAlertContainer
22
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function m(t) {
4
+ const { className: s, ...e } = t, r = `arkynAlertContent ${s}`;
5
+ return /* @__PURE__ */ a("div", { className: r.trim(), ...e });
6
+ }
7
+ export {
8
+ m as AlertContent
9
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function c(s) {
4
+ const { className: r, ...t } = s, e = `arkynAlertDescription ${r}`;
5
+ return /* @__PURE__ */ a("div", { className: e.trim(), ...t });
6
+ }
7
+ export {
8
+ c as AlertDescription
9
+ };
@@ -0,0 +1,20 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { Info as a, AlertTriangle as o, XCircle as i, CheckCircle2 as m } from "lucide-react";
3
+ import { useAlertContainer as l } from "../alertContainer/index.js";
4
+ /* empty css */
5
+ function A(t) {
6
+ const { className: c, ...r } = t, { schema: n } = l(), e = `arkynAlertIcon ${n} ${c}`;
7
+ switch (n) {
8
+ case "success":
9
+ return /* @__PURE__ */ s(m, { className: e, ...r });
10
+ case "danger":
11
+ return /* @__PURE__ */ s(i, { className: e, ...r });
12
+ case "warning":
13
+ return /* @__PURE__ */ s(o, { className: e, ...r });
14
+ case "info":
15
+ return /* @__PURE__ */ s(a, { className: e, ...r });
16
+ }
17
+ }
18
+ export {
19
+ A as AlertIcon
20
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function i(s) {
4
+ const { className: t, ...e } = s, r = `arkynAlertTitle ${t}`;
5
+ return /* @__PURE__ */ a("div", { className: r.trim(), ...e });
6
+ }
7
+ export {
8
+ i as AlertTitle
9
+ };
@@ -0,0 +1,76 @@
1
+ import { jsxs as E, jsx as o } from "react/jsx-runtime";
2
+ import { Pause as R, Play as V } from "lucide-react";
3
+ import { useState as v, useRef as $, useEffect as N } from "react";
4
+ import { useSlider as U } from "../../hooks/useSlider.js";
5
+ import { Slider as q } from "../slider/index.js";
6
+ /* empty css */
7
+ function O(r) {
8
+ var h, A, S, p;
9
+ const { onPlayAudio: w, onPauseAudio: z, disabled: c, style: C, ...b } = r, [x, D] = U(0), [i, d] = v(!1), [I, M] = v(!1), t = $(null), l = ((h = t.current) == null ? void 0 : h.currentTime) || 0, m = ((A = t.current) == null ? void 0 : A.duration) || 0, f = y(l), g = y(m), T = {
10
+ totalTime: m,
11
+ currentTime: l,
12
+ formattedCurrentTime: f,
13
+ formattedTotalTime: g
14
+ };
15
+ function y(e) {
16
+ if (!e) return "00:00";
17
+ const n = Math.floor(e / 60), u = Math.floor(e % 60), a = String(n).padStart(2, "0"), s = String(u).padStart(2, "0");
18
+ return `${a}:${s}`;
19
+ }
20
+ function j() {
21
+ const e = t.current;
22
+ e && (r.onPlayAudio && r.onPlayAudio(T), e.play(), d(!0));
23
+ }
24
+ function P() {
25
+ const e = t.current;
26
+ e && (r.onPauseAudio && r.onPauseAudio(T), e.pause(), d(!1));
27
+ }
28
+ function k() {
29
+ i ? P() : j();
30
+ }
31
+ function L(e) {
32
+ const n = t.current;
33
+ if (!n) return;
34
+ const u = n.duration, a = e / 100 * u;
35
+ n.currentTime = a;
36
+ }
37
+ return I || !i ? (S = t.current) == null || S.pause() : i && ((p = t.current) == null || p.play()), N(() => {
38
+ const e = t.current;
39
+ if (!e) return;
40
+ const n = () => {
41
+ const u = e.duration, s = e.currentTime / u * 100;
42
+ D(s);
43
+ };
44
+ return e.addEventListener("timeupdate", n), () => {
45
+ e.removeEventListener("timeupdate", n);
46
+ };
47
+ }, []), /* @__PURE__ */ E("div", { className: "arkynAudioPlayer", style: C, children: [
48
+ /* @__PURE__ */ o(
49
+ "audio",
50
+ {
51
+ ...b,
52
+ ref: t,
53
+ src: r.src,
54
+ onEnded: P
55
+ }
56
+ ),
57
+ /* @__PURE__ */ E("button", { type: "button", disabled: c, onClick: k, children: [
58
+ i && /* @__PURE__ */ o(R, {}),
59
+ !i && /* @__PURE__ */ o(V, {})
60
+ ] }),
61
+ /* @__PURE__ */ o("p", { children: f }),
62
+ /* @__PURE__ */ o(
63
+ q,
64
+ {
65
+ value: x,
66
+ onChange: L,
67
+ onDragging: M,
68
+ disabled: c
69
+ }
70
+ ),
71
+ /* @__PURE__ */ o("p", { children: g })
72
+ ] });
73
+ }
74
+ export {
75
+ O as AudioPlayer
76
+ };
@@ -0,0 +1,63 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { RefreshCw as h } from "lucide-react";
3
+ import { AudioPlayer as C } from "../../audioPlayer/index.js";
4
+ import { Button as g } from "../../button/index.js";
5
+ import { Divider as k } from "../../divider/index.js";
6
+ import { IconButton as v } from "../../iconButton/index.js";
7
+ import { Tooltip as y } from "../../tooltip/index.js";
8
+ /* empty css */
9
+ function N(c) {
10
+ const {
11
+ filePath: s,
12
+ disabled: i,
13
+ acceptAudio: d,
14
+ handleSelectFile: m,
15
+ isLoading: o,
16
+ reSendAudio: n,
17
+ changeAudioButtonText: u
18
+ } = c;
19
+ function p() {
20
+ if (i) return;
21
+ const t = document.createElement("input");
22
+ t.type = "file", t.accept = d, t.onchange = (f) => {
23
+ var a;
24
+ const r = (a = f.target.files) == null ? void 0 : a[0];
25
+ r && m(r);
26
+ }, t.click();
27
+ }
28
+ return /* @__PURE__ */ l("div", { className: "arkynAudioUploadHasFileContentContainer", children: [
29
+ /* @__PURE__ */ e(C, { src: s }),
30
+ /* @__PURE__ */ e(k, {}),
31
+ /* @__PURE__ */ l("div", { className: "arkynAudioUploadButtonsContainer", children: [
32
+ !!n && /* @__PURE__ */ e(y, { orientation: "bottom", text: "Reenviar áudio", children: /* @__PURE__ */ e(
33
+ v,
34
+ {
35
+ type: "button",
36
+ "aria-label": "resend image",
37
+ variant: "outline",
38
+ scheme: "danger",
39
+ size: "sm",
40
+ isLoading: o,
41
+ onClick: n,
42
+ icon: h,
43
+ disabled: i
44
+ }
45
+ ) }),
46
+ /* @__PURE__ */ e(
47
+ g,
48
+ {
49
+ isLoading: o,
50
+ onClick: p,
51
+ variant: "outline",
52
+ size: "sm",
53
+ type: "button",
54
+ disabled: i,
55
+ children: u
56
+ }
57
+ )
58
+ ] })
59
+ ] });
60
+ }
61
+ export {
62
+ N as HasFileContent
63
+ };
@@ -0,0 +1,80 @@
1
+ import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
+ import { useState as r } from "react";
3
+ import { useForm as P } from "../../hooks/useForm.js";
4
+ import { FieldError as R } from "../fieldError/index.js";
5
+ import { FieldLabel as k } from "../fieldLabel/index.js";
6
+ import { FieldWrapper as B } from "../fieldWrapper/index.js";
7
+ import { HasFileContent as D } from "./hasFileContent/index.js";
8
+ import { NoFileContent as V } from "./noFileContent/index.js";
9
+ /* empty css */
10
+ function oo(y) {
11
+ const {
12
+ name: u,
13
+ label: c,
14
+ fileName: C = "file",
15
+ method: E = "POST",
16
+ onChange: s,
17
+ fileResponseName: m = "url",
18
+ selectAudioButtonText: q = "Selecionar arquivo de áudio",
19
+ dropAudioText: b = "Ou arraste e solte um arquivo de áudio aqui",
20
+ changeAudioButtonText: L = "Trocar arquivo de áudio",
21
+ acceptAudio: f = "audio/*",
22
+ action: O,
23
+ defaultValue: h = "",
24
+ showAsterisk: S = !1,
25
+ disabled: t = !1
26
+ } = y, { fieldErrors: n } = P(), T = n == null ? void 0 : n[u], [U, j] = r(h), [w, i] = r(""), [A, H] = r(null), [l, I] = r(h), [v, F] = r(!1);
27
+ async function N(a) {
28
+ if (t) return;
29
+ F(!0), H(a), i("");
30
+ const g = new FormData();
31
+ g.append(C, a), await fetch(O, { method: E, body: g }).then(async (o) => await o.json()).then((o) => {
32
+ o != null && o.error ? i(o.error) : j(o == null ? void 0 : o[m]), s && s(o == null ? void 0 : o[m]);
33
+ }).catch((o) => {
34
+ console.error(o), i("Erro ao enviar audio");
35
+ }).finally(() => F(!1));
36
+ }
37
+ function p(a) {
38
+ if (!t) {
39
+ if (a.type.indexOf("audio") === -1) {
40
+ i("O arquivo selecionado não é um arquivo de áudio");
41
+ return;
42
+ }
43
+ I(URL.createObjectURL(a)), N(a);
44
+ }
45
+ }
46
+ const d = T || w;
47
+ return /* @__PURE__ */ x(B, { children: [
48
+ c && /* @__PURE__ */ e(k, { showAsterisk: S, children: c }),
49
+ /* @__PURE__ */ x("div", { className: `arkynAudioUpload ${d ? "hasError" : "noHasError"} ${l ? "hasAudio" : "noHasAudio"}`, children: [
50
+ /* @__PURE__ */ e("input", { type: "hidden", name: u, value: U || "" }),
51
+ !l && /* @__PURE__ */ e(
52
+ V,
53
+ {
54
+ disabled: t,
55
+ isLoading: v,
56
+ acceptAudio: f,
57
+ dropAudioText: b,
58
+ handleSelectFile: p,
59
+ selectAudioButtonText: q
60
+ }
61
+ ),
62
+ l && /* @__PURE__ */ e(
63
+ D,
64
+ {
65
+ filePath: l,
66
+ acceptAudio: f,
67
+ changeAudioButtonText: L,
68
+ disabled: t,
69
+ handleSelectFile: p,
70
+ isLoading: v,
71
+ reSendAudio: d && A ? () => N(A) : void 0
72
+ }
73
+ )
74
+ ] }),
75
+ d && /* @__PURE__ */ e(R, { children: d })
76
+ ] });
77
+ }
78
+ export {
79
+ oo as AudioUpload
80
+ };
@@ -0,0 +1,46 @@
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
+ import { Button as h } from "../../button/index.js";
3
+ /* empty css */
4
+ function k(c) {
5
+ const {
6
+ dropAudioText: a,
7
+ isLoading: s,
8
+ acceptAudio: d,
9
+ handleSelectFile: i,
10
+ selectAudioButtonText: u,
11
+ disabled: n
12
+ } = c;
13
+ function f(t) {
14
+ if (n) return;
15
+ t.preventDefault();
16
+ const e = t.dataTransfer.files[0];
17
+ e && i(e);
18
+ }
19
+ function p() {
20
+ if (n) return;
21
+ const t = document.createElement("input");
22
+ t.type = "file", t.accept = d, t.onchange = (e) => {
23
+ var l;
24
+ const o = (l = e.target.files) == null ? void 0 : l[0];
25
+ o && i(o);
26
+ }, t.click();
27
+ }
28
+ return /* @__PURE__ */ m("div", { onDrop: f, className: "arkynAudioUploadNoFileContent", children: [
29
+ /* @__PURE__ */ r(
30
+ h,
31
+ {
32
+ isLoading: s,
33
+ onClick: p,
34
+ variant: "ghost",
35
+ size: "sm",
36
+ type: "button",
37
+ disabled: n,
38
+ children: u
39
+ }
40
+ ),
41
+ /* @__PURE__ */ r("p", { children: a })
42
+ ] });
43
+ }
44
+ export {
45
+ k as NoFileContent
46
+ };
@@ -0,0 +1,23 @@
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { IconRenderer as n } from "../../services/iconRenderer.js";
3
+ /* empty css */
4
+ function $(o) {
5
+ const {
6
+ variant: c = "ghost",
7
+ scheme: r = "primary",
8
+ size: s = "lg",
9
+ leftIcon: t,
10
+ rightIcon: a,
11
+ className: m = "",
12
+ children: l,
13
+ ...d
14
+ } = o, i = { md: 12, lg: 14 }[s], g = `arkynBadge ${c} ${r} ${s} ${m}`;
15
+ return /* @__PURE__ */ p("div", { className: g.trim(), ...d, children: [
16
+ /* @__PURE__ */ e(n, { iconSize: i, icon: t }),
17
+ /* @__PURE__ */ e("p", { children: l }),
18
+ /* @__PURE__ */ e(n, { iconSize: i, icon: a })
19
+ ] });
20
+ }
21
+ export {
22
+ $ as Badge
23
+ };
@@ -0,0 +1,33 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { Loader2 as T } from "lucide-react";
3
+ import { IconRenderer as t } from "../../services/iconRenderer.js";
4
+ /* empty css */
5
+ function y(l) {
6
+ const {
7
+ isLoading: i = !1,
8
+ scheme: r = "primary",
9
+ variant: d = "solid",
10
+ loadingText: n,
11
+ size: a = "md",
12
+ leftIcon: c,
13
+ rightIcon: m,
14
+ disabled: g,
15
+ className: u = "",
16
+ children: x,
17
+ ...h
18
+ } = l, s = { xs: 12, sm: 16, md: 20, lg: 24 }[a], p = `arkynButton ${i ? "loadingTrue" : "loadingFalse"} ${d} ${r} ${a} ${n ? "loadingTextTrue" : "loadingTextFalse"} ${u}`;
19
+ return /* @__PURE__ */ o("button", { className: p, disabled: g || i, ...h, children: [
20
+ /* @__PURE__ */ o("div", { className: "arkynButtonSpinner", children: [
21
+ /* @__PURE__ */ e(T, { size: s, strokeWidth: 2.5 }),
22
+ n && n
23
+ ] }),
24
+ /* @__PURE__ */ o("div", { className: "arkynButtonContent", children: [
25
+ /* @__PURE__ */ e(t, { iconSize: s, icon: c }),
26
+ x,
27
+ /* @__PURE__ */ e(t, { iconSize: s, icon: m })
28
+ ] })
29
+ ] });
30
+ }
31
+ export {
32
+ y as Button
33
+ };
@@ -0,0 +1,65 @@
1
+ import { jsx as Y } from "react/jsx-runtime";
2
+ import { useState as D, createContext as y, useContext as k } from "react";
3
+ import { ViewService as P } from "./_viewService.js";
4
+ const h = y({});
5
+ function B() {
6
+ return k(h);
7
+ }
8
+ function L(g) {
9
+ const {
10
+ calendarType: n,
11
+ children: V,
12
+ defaultValue: u,
13
+ defaultViewValue: f = /* @__PURE__ */ new Date(),
14
+ language: c = "pt-BR",
15
+ onChange: o,
16
+ onChangeView: w,
17
+ value: l,
18
+ viewValue: M
19
+ } = g, v = n === "single" ? [u || /* @__PURE__ */ new Date(), u || /* @__PURE__ */ new Date()] : u || [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()], [d, x] = D(f), [p, C] = D(v), t = M || d, s = l ? n === "single" ? [l, l] : l : p, e = new P();
20
+ function m(a) {
21
+ const i = [
22
+ new Date(a[0]),
23
+ new Date(a[1])
24
+ ];
25
+ o && n === "range" && o(i), o && n === "single" && o(i[0]), C(i);
26
+ }
27
+ function r(a) {
28
+ w && w(a), x(a);
29
+ }
30
+ return /* @__PURE__ */ Y(
31
+ h.Provider,
32
+ {
33
+ value: {
34
+ valueDate: s,
35
+ viewDate: t,
36
+ currentDate: t.toLocaleDateString(c).slice(3),
37
+ currentDay: e.currentDay(t),
38
+ currentMonth: e.currentMonth(t),
39
+ currentYear: e.currentYear(t),
40
+ listWeek: e.listWeek(c),
41
+ listMonths: e.listMonths(t, c),
42
+ listYears: e.listYears(100),
43
+ listMatrix: e.listMatrix(t, s),
44
+ changeDay: (a, i, S) => e.changeDay(
45
+ a,
46
+ i,
47
+ S,
48
+ n,
49
+ s,
50
+ m,
51
+ r
52
+ ),
53
+ changeMonth: (a) => e.changeMonth(a, t, r),
54
+ changeYear: (a) => e.changeYear(a, t, r),
55
+ nextMonth: () => e.nextMonth(t, r),
56
+ previousMonth: () => e.previousMonth(t, r)
57
+ },
58
+ children: V
59
+ }
60
+ );
61
+ }
62
+ export {
63
+ L as CalendarProvider,
64
+ B as useCalendar
65
+ };
@@ -0,0 +1,141 @@
1
+ import { formatToCapitalizeFirstWordLetter as f } from "@arkyn/shared";
2
+ let p = class {
3
+ currentDay(n) {
4
+ return String(n.getDate()).padStart(2, "0");
5
+ }
6
+ currentMonth(n) {
7
+ return String(n.getMonth() + 1).padStart(2, "0");
8
+ }
9
+ currentYear(n) {
10
+ return String(n.getFullYear());
11
+ }
12
+ capitalize(n) {
13
+ return f(n);
14
+ }
15
+ parseDayType(n, r, t, e) {
16
+ const s = e[0].getDate(), o = e[0].getMonth(), y = e[0].getFullYear(), l = e[1].getDate(), a = e[1].getMonth(), c = e[1].getFullYear(), D = new Date(y, o, s), h = new Date(c, a, l), i = new Date(t, r, n);
17
+ return D.getTime() === i.getTime() || h.getTime() === i.getTime() ? "checkedDay" : i > D && i < h ? "middleDay" : "uncheckedDay";
18
+ }
19
+ listWeek(n) {
20
+ const r = [], t = new Date(Date.UTC(2023, 0, 1));
21
+ for (let e = 0; e < 7; e++) {
22
+ const s = new Date(t);
23
+ s.setUTCDate(t.getUTCDate() + e);
24
+ const o = s.toLocaleDateString(n, {
25
+ weekday: "short",
26
+ timeZone: "UTC"
27
+ });
28
+ r.push(o);
29
+ }
30
+ return r;
31
+ }
32
+ listMonths(n, r) {
33
+ const t = new Intl.DateTimeFormat(r, {
34
+ month: "long"
35
+ });
36
+ return Array.from({ length: 12 }, (e, s) => {
37
+ const o = new Date(n.getFullYear(), s, 1), y = t.format(o);
38
+ return {
39
+ label: this.capitalize(y),
40
+ value: String(s).padStart(2, "0")
41
+ };
42
+ });
43
+ }
44
+ listYears(n) {
45
+ const r = (/* @__PURE__ */ new Date()).getFullYear();
46
+ return Array.from({ length: n + 1 }, (t, e) => {
47
+ const s = r - n + e;
48
+ return { label: String(s), value: String(s) };
49
+ }).reverse();
50
+ }
51
+ listMatrix(n, r) {
52
+ const t = n.getFullYear(), e = n.getMonth(), o = new Date(t, e, 1).getDay(), y = new Date(t, e + 1, 0).getDate(), l = new Date(t, e, 0).getDate(), a = Math.ceil((o + y) / 7) * 7, c = [];
53
+ let D = 1, h = 1;
54
+ for (let i = 0; i < a; i++) {
55
+ const g = Math.floor(i / 7);
56
+ if (c[g] || (c[g] = []), i < o) {
57
+ const d = l - (o - i - 1), u = e === 0 ? 11 : e - 1, w = e === 0 ? t - 1 : t;
58
+ c[g].push({
59
+ day: d,
60
+ month: u,
61
+ year: w,
62
+ dayOwner: "previous",
63
+ dayType: this.parseDayType(d, u, w, r)
64
+ });
65
+ } else if (D <= y)
66
+ c[g].push({
67
+ day: D,
68
+ month: e,
69
+ year: t,
70
+ dayOwner: "current",
71
+ dayType: this.parseDayType(
72
+ D,
73
+ e,
74
+ t,
75
+ r
76
+ )
77
+ }), D++;
78
+ else {
79
+ const d = e === 11 ? 0 : e + 1, u = e === 11 ? t + 1 : t;
80
+ c[g].push({
81
+ day: h,
82
+ month: d,
83
+ year: u,
84
+ dayOwner: "next",
85
+ dayType: this.parseDayType(h, d, u, r)
86
+ }), h++;
87
+ }
88
+ }
89
+ return c;
90
+ }
91
+ changeDay(n, r, t, e, s, o, y) {
92
+ const l = (w) => new Date(w.getFullYear(), w.getMonth(), w.getDate()), a = l(new Date(t, r, n));
93
+ if (y(a), e === "single") {
94
+ o([a, a]);
95
+ return;
96
+ }
97
+ let c = l(s[0]), D = l(s[1]);
98
+ const h = a.getTime(), i = c.getTime(), g = D.getTime();
99
+ if (h === i) {
100
+ o([a, a]);
101
+ return;
102
+ }
103
+ if (h === g) {
104
+ o([a, a]);
105
+ return;
106
+ }
107
+ if (a < c) {
108
+ o([a, D]);
109
+ return;
110
+ }
111
+ if (a > D) {
112
+ o([c, a]);
113
+ return;
114
+ }
115
+ const d = Math.abs(h - i), u = Math.abs(g - h);
116
+ if (d <= u) {
117
+ o([a, D]);
118
+ return;
119
+ }
120
+ o([c, a]);
121
+ }
122
+ changeMonth(n, r, t) {
123
+ const e = new Date(r);
124
+ e.setMonth(n), t(e);
125
+ }
126
+ changeYear(n, r, t) {
127
+ const e = new Date(r);
128
+ e.setFullYear(n), t(e);
129
+ }
130
+ nextMonth(n, r) {
131
+ const t = new Date(n);
132
+ t.setDate(1), t.setMonth(t.getMonth() + 1), r(t);
133
+ }
134
+ previousMonth(n, r) {
135
+ const t = new Date(n);
136
+ t.setDate(1), t.setMonth(t.getMonth() - 1), r(t);
137
+ }
138
+ };
139
+ export {
140
+ p as ViewService
141
+ };
@@ -0,0 +1,8 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function o({ children: r }) {
4
+ return /* @__PURE__ */ n("div", { className: "arkynCalendarContainer", children: r });
5
+ }
6
+ export {
7
+ o as CalendarContainer
8
+ };
@@ -0,0 +1,73 @@
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
+ ] });
70
+ }
71
+ export {
72
+ C as CalendarHeader
73
+ };