@arkyn/components 3.0.1-beta.99 → 3.0.2

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 (903) hide show
  1. package/LICENSE.txt +184 -1
  2. package/README.md +198 -22
  3. package/dist/components/alert/alertContainer/index.d.ts +30 -46
  4. package/dist/components/alert/alertContainer/index.d.ts.map +1 -1
  5. package/dist/components/alert/alertContent/index.d.ts +12 -37
  6. package/dist/components/alert/alertContent/index.d.ts.map +1 -1
  7. package/dist/components/alert/alertDescription/index.d.ts +11 -39
  8. package/dist/components/alert/alertDescription/index.d.ts.map +1 -1
  9. package/dist/components/alert/alertIcon/index.d.ts +16 -40
  10. package/dist/components/alert/alertIcon/index.d.ts.map +1 -1
  11. package/dist/components/alert/alertTitle/index.d.ts +13 -36
  12. package/dist/components/alert/alertTitle/index.d.ts.map +1 -1
  13. package/dist/components/audioPlayer/index.d.ts +25 -33
  14. package/dist/components/audioPlayer/index.d.ts.map +1 -1
  15. package/dist/components/audioUpload/hasFileContent/index.d.ts +1 -1
  16. package/dist/components/audioUpload/hasFileContent/index.d.ts.map +1 -1
  17. package/dist/components/audioUpload/index.d.ts +38 -49
  18. package/dist/components/audioUpload/index.d.ts.map +1 -1
  19. package/dist/components/audioUpload/noFileContent/index.d.ts +1 -1
  20. package/dist/components/audioUpload/noFileContent/index.d.ts.map +1 -1
  21. package/dist/components/badge/index.d.ts +34 -25
  22. package/dist/components/badge/index.d.ts.map +1 -1
  23. package/dist/components/button/index.d.ts +42 -32
  24. package/dist/components/button/index.d.ts.map +1 -1
  25. package/dist/components/calendar/_calendarProvider.d.ts +52 -0
  26. package/dist/components/calendar/_calendarProvider.d.ts.map +1 -0
  27. package/dist/components/calendar/_viewService.d.ts +32 -0
  28. package/dist/components/calendar/_viewService.d.ts.map +1 -0
  29. package/dist/components/calendar/calendarContainer/index.d.ts +8 -0
  30. package/dist/components/calendar/calendarContainer/index.d.ts.map +1 -0
  31. package/dist/components/calendar/calendarHeader/index.d.ts +7 -0
  32. package/dist/components/calendar/calendarHeader/index.d.ts.map +1 -0
  33. package/dist/components/calendar/calendarTableBody/index.d.ts +4 -0
  34. package/dist/components/calendar/calendarTableBody/index.d.ts.map +1 -0
  35. package/dist/components/calendar/calendarTableContainer/index.d.ts +8 -0
  36. package/dist/components/calendar/calendarTableContainer/index.d.ts.map +1 -0
  37. package/dist/components/calendar/calendarTableHeader/index.d.ts +4 -0
  38. package/dist/components/calendar/calendarTableHeader/index.d.ts.map +1 -0
  39. package/dist/components/calendar/calendarTableTd/index.d.ts +11 -0
  40. package/dist/components/calendar/calendarTableTd/index.d.ts.map +1 -0
  41. package/dist/components/calendar/index.d.ts +100 -0
  42. package/dist/components/calendar/index.d.ts.map +1 -0
  43. package/dist/components/cardTab/cardTabButton/index.d.ts +16 -54
  44. package/dist/components/cardTab/cardTabButton/index.d.ts.map +1 -1
  45. package/dist/components/cardTab/cardTabContainer/index.d.ts +18 -60
  46. package/dist/components/cardTab/cardTabContainer/index.d.ts.map +1 -1
  47. package/dist/components/cardTab/cardTabContext.d.ts +4 -4
  48. package/dist/components/cardTab/cardTabContext.d.ts.map +1 -1
  49. package/dist/components/checkbox/index.d.ts +42 -37
  50. package/dist/components/checkbox/index.d.ts.map +1 -1
  51. package/dist/components/clientOnly.d.ts +14 -67
  52. package/dist/components/clientOnly.d.ts.map +1 -1
  53. package/dist/components/currencyInput/index.d.ts +75 -53
  54. package/dist/components/currencyInput/index.d.ts.map +1 -1
  55. package/dist/components/divider/index.d.ts +14 -27
  56. package/dist/components/divider/index.d.ts.map +1 -1
  57. package/dist/components/drawer/drawerContainer/index.d.ts +18 -52
  58. package/dist/components/drawer/drawerContainer/index.d.ts.map +1 -1
  59. package/dist/components/drawer/drawerContext.d.ts +2 -2
  60. package/dist/components/drawer/drawerContext.d.ts.map +1 -1
  61. package/dist/components/drawer/drawerHeader/index.d.ts +11 -35
  62. package/dist/components/drawer/drawerHeader/index.d.ts.map +1 -1
  63. package/dist/components/facebookPixel/facebookPixel.client.d.ts +4 -0
  64. package/dist/components/facebookPixel/facebookPixel.client.d.ts.map +1 -0
  65. package/dist/components/facebookPixel/index.d.ts +65 -0
  66. package/dist/components/facebookPixel/index.d.ts.map +1 -0
  67. package/dist/components/facebookPixel/pixel.d.ts +21 -0
  68. package/dist/components/facebookPixel/pixel.d.ts.map +1 -0
  69. package/dist/components/fieldError/index.d.ts +6 -13
  70. package/dist/components/fieldError/index.d.ts.map +1 -1
  71. package/dist/components/fieldLabel/index.d.ts +8 -23
  72. package/dist/components/fieldLabel/index.d.ts.map +1 -1
  73. package/dist/components/fieldWrapper/index.d.ts +14 -24
  74. package/dist/components/fieldWrapper/index.d.ts.map +1 -1
  75. package/dist/components/fileUpload/hasFileContent/index.d.ts +1 -1
  76. package/dist/components/fileUpload/hasFileContent/index.d.ts.map +1 -1
  77. package/dist/components/fileUpload/index.d.ts +37 -62
  78. package/dist/components/fileUpload/index.d.ts.map +1 -1
  79. package/dist/components/fileUpload/noFileContent/index.d.ts +1 -1
  80. package/dist/components/fileUpload/noFileContent/index.d.ts.map +1 -1
  81. package/dist/components/fullCalendar/_fullCalendarProvider.d.ts +44 -0
  82. package/dist/components/fullCalendar/_fullCalendarProvider.d.ts.map +1 -0
  83. package/dist/components/fullCalendar/_viewService.d.ts +28 -0
  84. package/dist/components/fullCalendar/_viewService.d.ts.map +1 -0
  85. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts +8 -0
  86. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts.map +1 -0
  87. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts +7 -0
  88. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts.map +1 -0
  89. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts +8 -0
  90. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts.map +1 -0
  91. package/dist/components/fullCalendar/dayCalendar/index.d.ts +3 -0
  92. package/dist/components/fullCalendar/dayCalendar/index.d.ts.map +1 -0
  93. package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts +8 -0
  94. package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts.map +1 -0
  95. package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts +8 -0
  96. package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts.map +1 -0
  97. package/dist/components/fullCalendar/index.d.ts +94 -0
  98. package/dist/components/fullCalendar/index.d.ts.map +1 -0
  99. package/dist/components/fullCalendar/monthlyCalendar/index.d.ts +3 -0
  100. package/dist/components/fullCalendar/monthlyCalendar/index.d.ts.map +1 -0
  101. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts +9 -0
  102. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts.map +1 -0
  103. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts +4 -0
  104. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts.map +1 -0
  105. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts +8 -0
  106. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts.map +1 -0
  107. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts +4 -0
  108. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts.map +1 -0
  109. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts +10 -0
  110. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts.map +1 -0
  111. package/dist/components/fullCalendar/weekCalendar/index.d.ts +3 -0
  112. package/dist/components/fullCalendar/weekCalendar/index.d.ts.map +1 -0
  113. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts +10 -0
  114. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts.map +1 -0
  115. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts +4 -0
  116. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts.map +1 -0
  117. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts +8 -0
  118. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts.map +1 -0
  119. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts +4 -0
  120. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts.map +1 -0
  121. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts +11 -0
  122. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts.map +1 -0
  123. package/dist/components/googleAnalytics/googleAnalytics.client.d.ts +6 -0
  124. package/dist/components/googleAnalytics/googleAnalytics.client.d.ts.map +1 -0
  125. package/dist/components/googleAnalytics/googleAnalytics.d.ts +10 -0
  126. package/dist/components/googleAnalytics/googleAnalytics.d.ts.map +1 -0
  127. package/dist/components/googleAnalytics/index.d.ts +30 -0
  128. package/dist/components/googleAnalytics/index.d.ts.map +1 -0
  129. package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts +9 -0
  130. package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts.map +1 -0
  131. package/dist/components/googleTagManager/googleTagManager.client.d.ts +11 -0
  132. package/dist/components/googleTagManager/googleTagManager.client.d.ts.map +1 -0
  133. package/dist/components/googleTagManager/googleTagManager.d.ts +20 -0
  134. package/dist/components/googleTagManager/googleTagManager.d.ts.map +1 -0
  135. package/dist/components/googleTagManager/index.d.ts +55 -0
  136. package/dist/components/googleTagManager/index.d.ts.map +1 -0
  137. package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts +7 -0
  138. package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts.map +1 -0
  139. package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts +15 -0
  140. package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts.map +1 -0
  141. package/dist/components/iconButton/index.d.ts +35 -19
  142. package/dist/components/iconButton/index.d.ts.map +1 -1
  143. package/dist/components/imageUpload/hasFileContent/index.d.ts +1 -1
  144. package/dist/components/imageUpload/hasFileContent/index.d.ts.map +1 -1
  145. package/dist/components/imageUpload/index.d.ts +51 -75
  146. package/dist/components/imageUpload/index.d.ts.map +1 -1
  147. package/dist/components/imageUpload/noFileContent/index.d.ts +1 -1
  148. package/dist/components/imageUpload/noFileContent/index.d.ts.map +1 -1
  149. package/dist/components/input/index.d.ts +58 -47
  150. package/dist/components/input/index.d.ts.map +1 -1
  151. package/dist/components/mapView/index.d.ts +55 -7
  152. package/dist/components/mapView/index.d.ts.map +1 -1
  153. package/dist/components/mapView/mapView.client.d.ts +17 -0
  154. package/dist/components/mapView/mapView.client.d.ts.map +1 -0
  155. package/dist/components/maskedInput/index.d.ts +71 -56
  156. package/dist/components/maskedInput/index.d.ts.map +1 -1
  157. package/dist/components/modal/modalContainer/index.d.ts +19 -59
  158. package/dist/components/modal/modalContainer/index.d.ts.map +1 -1
  159. package/dist/components/modal/modalContext.d.ts +2 -2
  160. package/dist/components/modal/modalContext.d.ts.map +1 -1
  161. package/dist/components/modal/modalFooter/index.d.ts +19 -52
  162. package/dist/components/modal/modalFooter/index.d.ts.map +1 -1
  163. package/dist/components/modal/modalHeader/index.d.ts +15 -49
  164. package/dist/components/modal/modalHeader/index.d.ts.map +1 -1
  165. package/dist/components/multiSelect/index.d.ts +72 -63
  166. package/dist/components/multiSelect/index.d.ts.map +1 -1
  167. package/dist/components/multiSelect/multiSelectChevron/index.d.ts +1 -1
  168. package/dist/components/multiSelect/multiSelectChevron/index.d.ts.map +1 -1
  169. package/dist/components/multiSelect/multiSelectContainer/index.d.ts +2 -2
  170. package/dist/components/multiSelect/multiSelectContainer/index.d.ts.map +1 -1
  171. package/dist/components/multiSelect/multiSelectContent/index.d.ts +2 -2
  172. package/dist/components/multiSelect/multiSelectContent/index.d.ts.map +1 -1
  173. package/dist/components/multiSelect/multiSelectMark/index.d.ts +1 -1
  174. package/dist/components/multiSelect/multiSelectMark/index.d.ts.map +1 -1
  175. package/dist/components/multiSelect/multiSelectOption/index.d.ts +1 -1
  176. package/dist/components/multiSelect/multiSelectOption/index.d.ts.map +1 -1
  177. package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts +2 -2
  178. package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +1 -1
  179. package/dist/components/multiSelect/multiSelectOverlay/index.d.ts +1 -1
  180. package/dist/components/multiSelect/multiSelectOverlay/index.d.ts.map +1 -1
  181. package/dist/components/multiSelect/multiSelectSpinner/index.d.ts +1 -1
  182. package/dist/components/multiSelect/multiSelectSpinner/index.d.ts.map +1 -1
  183. package/dist/components/pagination/chevronButton/index.d.ts +1 -1
  184. package/dist/components/pagination/chevronButton/index.d.ts.map +1 -1
  185. package/dist/components/pagination/currentButton/index.d.ts +1 -1
  186. package/dist/components/pagination/currentButton/index.d.ts.map +1 -1
  187. package/dist/components/pagination/index.d.ts +20 -11
  188. package/dist/components/pagination/index.d.ts.map +1 -1
  189. package/dist/components/pagination/pageButton/index.d.ts +1 -1
  190. package/dist/components/pagination/pageButton/index.d.ts.map +1 -1
  191. package/dist/components/pagination/paginationService.d.ts.map +1 -1
  192. package/dist/components/pagination/spread/index.d.ts +1 -1
  193. package/dist/components/pagination/spread/index.d.ts.map +1 -1
  194. package/dist/components/phoneInput/index.d.ts +68 -89
  195. package/dist/components/phoneInput/index.d.ts.map +1 -1
  196. package/dist/components/phoneInput/phoneInputContainer/index.d.ts +2 -2
  197. package/dist/components/phoneInput/phoneInputContainer/index.d.ts.map +1 -1
  198. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts +1 -1
  199. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts.map +1 -1
  200. package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts +2 -3
  201. package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts.map +1 -1
  202. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts +2 -2
  203. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts.map +1 -1
  204. package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts +2 -3
  205. package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts.map +1 -1
  206. package/dist/components/phoneInput/phoneInputMask/index.d.ts +1 -2
  207. package/dist/components/phoneInput/phoneInputMask/index.d.ts.map +1 -1
  208. package/dist/components/popover/index.d.ts +36 -116
  209. package/dist/components/popover/index.d.ts.map +1 -1
  210. package/dist/components/radio/radioBox/index.d.ts +19 -67
  211. package/dist/components/radio/radioBox/index.d.ts.map +1 -1
  212. package/dist/components/radio/radioContext.d.ts +2 -2
  213. package/dist/components/radio/radioContext.d.ts.map +1 -1
  214. package/dist/components/radio/radioGroup/index.d.ts +40 -67
  215. package/dist/components/radio/radioGroup/index.d.ts.map +1 -1
  216. package/dist/components/richText/blockButton/index.d.ts +3 -3
  217. package/dist/components/richText/blockButton/index.d.ts.map +1 -1
  218. package/dist/components/richText/element/index.d.ts +2 -2
  219. package/dist/components/richText/element/index.d.ts.map +1 -1
  220. package/dist/components/richText/index.d.ts +35 -47
  221. package/dist/components/richText/index.d.ts.map +1 -1
  222. package/dist/components/richText/insertImage/index.d.ts +2 -2
  223. package/dist/components/richText/insertImage/index.d.ts.map +1 -1
  224. package/dist/components/richText/insertVideo/index.d.ts +5 -0
  225. package/dist/components/richText/insertVideo/index.d.ts.map +1 -0
  226. package/dist/components/richText/leaf/index.d.ts +2 -2
  227. package/dist/components/richText/leaf/index.d.ts.map +1 -1
  228. package/dist/components/richText/markButton/index.d.ts +3 -3
  229. package/dist/components/richText/markButton/index.d.ts.map +1 -1
  230. package/dist/components/richText/toolbar/index.d.ts +2 -2
  231. package/dist/components/richText/toolbar/index.d.ts.map +1 -1
  232. package/dist/components/searchPlaces.d.ts +55 -52
  233. package/dist/components/searchPlaces.d.ts.map +1 -1
  234. package/dist/components/select/index.d.ts +73 -64
  235. package/dist/components/select/index.d.ts.map +1 -1
  236. package/dist/components/select/selectChevron/index.d.ts +1 -1
  237. package/dist/components/select/selectChevron/index.d.ts.map +1 -1
  238. package/dist/components/select/selectContainer/index.d.ts +2 -2
  239. package/dist/components/select/selectContainer/index.d.ts.map +1 -1
  240. package/dist/components/select/selectContent/index.d.ts +2 -2
  241. package/dist/components/select/selectContent/index.d.ts.map +1 -1
  242. package/dist/components/select/selectOption/index.d.ts +1 -1
  243. package/dist/components/select/selectOption/index.d.ts.map +1 -1
  244. package/dist/components/select/selectOptionsContainer/index.d.ts +2 -2
  245. package/dist/components/select/selectOptionsContainer/index.d.ts.map +1 -1
  246. package/dist/components/select/selectOverlay/index.d.ts +1 -1
  247. package/dist/components/select/selectOverlay/index.d.ts.map +1 -1
  248. package/dist/components/select/selectSpinner/index.d.ts +1 -1
  249. package/dist/components/select/selectSpinner/index.d.ts.map +1 -1
  250. package/dist/components/slider/index.d.ts +22 -36
  251. package/dist/components/slider/index.d.ts.map +1 -1
  252. package/dist/components/switch/index.d.ts +46 -58
  253. package/dist/components/switch/index.d.ts.map +1 -1
  254. package/dist/components/tab/tabButton/index.d.ts +16 -54
  255. package/dist/components/tab/tabButton/index.d.ts.map +1 -1
  256. package/dist/components/tab/tabContainer/index.d.ts +18 -60
  257. package/dist/components/tab/tabContainer/index.d.ts.map +1 -1
  258. package/dist/components/tab/tabContext.d.ts +2 -2
  259. package/dist/components/tab/tabContext.d.ts.map +1 -1
  260. package/dist/components/table/tableBody/index.d.ts +15 -49
  261. package/dist/components/table/tableBody/index.d.ts.map +1 -1
  262. package/dist/components/table/tableCaption/index.d.ts +8 -48
  263. package/dist/components/table/tableCaption/index.d.ts.map +1 -1
  264. package/dist/components/table/tableContainer/index.d.ts +14 -43
  265. package/dist/components/table/tableContainer/index.d.ts.map +1 -1
  266. package/dist/components/table/tableFooter/index.d.ts +7 -31
  267. package/dist/components/table/tableFooter/index.d.ts.map +1 -1
  268. package/dist/components/table/tableHeader/index.d.ts +6 -27
  269. package/dist/components/table/tableHeader/index.d.ts.map +1 -1
  270. package/dist/components/textarea/index.d.ts +36 -68
  271. package/dist/components/textarea/index.d.ts.map +1 -1
  272. package/dist/components/tooltip/index.d.ts +29 -57
  273. package/dist/components/tooltip/index.d.ts.map +1 -1
  274. package/dist/hooks/useAutomation.d.ts +22 -25
  275. package/dist/hooks/useAutomation.d.ts.map +1 -1
  276. package/dist/hooks/useDrawer.d.ts +20 -65
  277. package/dist/hooks/useDrawer.d.ts.map +1 -1
  278. package/dist/hooks/useForm.d.ts +12 -29
  279. package/dist/hooks/useForm.d.ts.map +1 -1
  280. package/dist/hooks/useHydrated.d.ts +8 -63
  281. package/dist/hooks/useHydrated.d.ts.map +1 -1
  282. package/dist/hooks/useModal.d.ts +20 -60
  283. package/dist/hooks/useModal.d.ts.map +1 -1
  284. package/dist/hooks/useScopedParams.d.ts +18 -70
  285. package/dist/hooks/useScopedParams.d.ts.map +1 -1
  286. package/dist/hooks/useScrollLock.d.ts +11 -27
  287. package/dist/hooks/useScrollLock.d.ts.map +1 -1
  288. package/dist/hooks/useSearchAutomation.d.ts +31 -0
  289. package/dist/hooks/useSearchAutomation.d.ts.map +1 -0
  290. package/dist/hooks/useSlider.d.ts +5 -19
  291. package/dist/hooks/useSlider.d.ts.map +1 -1
  292. package/dist/hooks/useToast.d.ts +8 -52
  293. package/dist/hooks/useToast.d.ts.map +1 -1
  294. package/dist/index.d.ts +6 -0
  295. package/dist/index.d.ts.map +1 -1
  296. package/dist/index.js +4391 -69
  297. package/dist/index.js.map +1 -0
  298. package/dist/modules/components/alert/alertContainer/index.js +29 -0
  299. package/dist/modules/components/alert/alertContainer/index.js.map +1 -0
  300. package/dist/modules/components/alert/alertContainer/styles.css +3 -0
  301. package/dist/modules/components/alert/alertContent/index.js +14 -0
  302. package/dist/modules/components/alert/alertContent/index.js.map +1 -0
  303. package/dist/modules/components/alert/alertContent/styles.css +1 -0
  304. package/dist/modules/components/alert/alertDescription/index.js +14 -0
  305. package/dist/modules/components/alert/alertDescription/index.js.map +1 -0
  306. package/dist/modules/components/alert/alertDescription/styles.css +1 -0
  307. package/dist/modules/components/alert/alertIcon/index.js +30 -0
  308. package/dist/modules/components/alert/alertIcon/index.js.map +1 -0
  309. package/dist/modules/components/alert/alertIcon/styles.css +7 -0
  310. package/dist/modules/components/alert/alertTitle/index.js +14 -0
  311. package/dist/modules/components/alert/alertTitle/index.js.map +1 -0
  312. package/dist/modules/components/alert/alertTitle/styles.css +1 -0
  313. package/dist/modules/components/audioPlayer/index.js +77 -0
  314. package/dist/modules/components/audioPlayer/index.js.map +1 -0
  315. package/dist/modules/components/audioPlayer/styles.css +3 -0
  316. package/dist/modules/components/audioUpload/hasFileContent/index.js +57 -0
  317. package/dist/modules/components/audioUpload/hasFileContent/index.js.map +1 -0
  318. package/dist/modules/components/audioUpload/hasFileContent/styles.css +1 -0
  319. package/dist/modules/components/audioUpload/index.js +74 -0
  320. package/dist/modules/components/audioUpload/index.js.map +1 -0
  321. package/dist/modules/components/audioUpload/noFileContent/index.js +38 -0
  322. package/dist/modules/components/audioUpload/noFileContent/index.js.map +1 -0
  323. package/dist/modules/components/audioUpload/noFileContent/styles.css +1 -0
  324. package/dist/modules/components/audioUpload/styles.css +25 -0
  325. package/dist/modules/components/badge/index.js +29 -0
  326. package/dist/modules/components/badge/index.js.map +1 -0
  327. package/dist/modules/components/badge/styles.css +1 -0
  328. package/dist/modules/components/button/index.js +42 -0
  329. package/dist/modules/components/button/index.js.map +1 -0
  330. package/dist/modules/components/button/styles.css +1 -0
  331. package/dist/modules/components/calendar/_calendarProvider.js +42 -0
  332. package/dist/modules/components/calendar/_calendarProvider.js.map +1 -0
  333. package/dist/modules/components/calendar/_viewService.js +135 -0
  334. package/dist/modules/components/calendar/_viewService.js.map +1 -0
  335. package/dist/modules/components/calendar/calendarContainer/index.js +13 -0
  336. package/dist/modules/components/calendar/calendarContainer/index.js.map +1 -0
  337. package/dist/modules/components/calendar/calendarContainer/styles.css +1 -0
  338. package/dist/modules/components/calendar/calendarHeader/index.js +58 -0
  339. package/dist/modules/components/calendar/calendarHeader/index.js.map +1 -0
  340. package/dist/modules/components/calendar/calendarHeader/styles.css +1 -0
  341. package/dist/modules/components/calendar/calendarTableBody/index.js +15 -0
  342. package/dist/modules/components/calendar/calendarTableBody/index.js.map +1 -0
  343. package/dist/modules/components/calendar/calendarTableBody/styles.css +1 -0
  344. package/dist/modules/components/calendar/calendarTableContainer/index.js +13 -0
  345. package/dist/modules/components/calendar/calendarTableContainer/index.js.map +1 -0
  346. package/dist/modules/components/calendar/calendarTableContainer/styles.css +1 -0
  347. package/dist/modules/components/calendar/calendarTableHeader/index.js +16 -0
  348. package/dist/modules/components/calendar/calendarTableHeader/index.js.map +1 -0
  349. package/dist/modules/components/calendar/calendarTableHeader/styles.css +1 -0
  350. package/dist/modules/components/calendar/calendarTableTd/index.js +23 -0
  351. package/dist/modules/components/calendar/calendarTableTd/index.js.map +1 -0
  352. package/dist/modules/components/calendar/calendarTableTd/styles.css +1 -0
  353. package/dist/modules/components/calendar/index.js +34 -0
  354. package/dist/modules/components/calendar/index.js.map +1 -0
  355. package/dist/modules/components/calendar/styles.css +33 -0
  356. package/dist/modules/components/cardTab/cardTabButton/index.js +22 -0
  357. package/dist/modules/components/cardTab/cardTabButton/index.js.map +1 -0
  358. package/dist/modules/components/cardTab/cardTabButton/styles.css +1 -0
  359. package/dist/modules/components/cardTab/cardTabContainer/index.js +25 -0
  360. package/dist/modules/components/cardTab/cardTabContainer/index.js.map +1 -0
  361. package/dist/modules/components/cardTab/cardTabContainer/styles.css +1 -0
  362. package/dist/modules/components/cardTab/cardTabContext.js +26 -0
  363. package/dist/modules/components/cardTab/cardTabContext.js.map +1 -0
  364. package/dist/modules/components/checkbox/index.js +40 -0
  365. package/dist/modules/components/checkbox/index.js.map +1 -0
  366. package/dist/modules/components/checkbox/styles.css +7 -0
  367. package/dist/modules/components/clientOnly.js +10 -0
  368. package/dist/modules/components/clientOnly.js.map +1 -0
  369. package/dist/modules/components/currencyInput/index.js +114 -0
  370. package/dist/modules/components/currencyInput/index.js.map +1 -0
  371. package/dist/modules/components/currencyInput/style.css +1 -0
  372. package/dist/modules/components/currencyInput/styles.css +7 -0
  373. package/dist/modules/components/divider/index.js +14 -0
  374. package/dist/modules/components/divider/index.js.map +1 -0
  375. package/dist/modules/components/divider/styles.css +1 -0
  376. package/dist/modules/components/drawer/drawerContainer/index.js +39 -0
  377. package/dist/modules/components/drawer/drawerContainer/index.js.map +1 -0
  378. package/dist/modules/components/drawer/drawerContainer/styles.css +1 -0
  379. package/dist/modules/components/drawer/drawerContext.js +18 -0
  380. package/dist/modules/components/drawer/drawerContext.js.map +1 -0
  381. package/dist/modules/components/drawer/drawerHeader/index.js +23 -0
  382. package/dist/modules/components/drawer/drawerHeader/index.js.map +1 -0
  383. package/dist/modules/components/drawer/drawerHeader/styles.css +1 -0
  384. package/dist/modules/components/facebookPixel/facebookPixel.client.js +10 -0
  385. package/dist/modules/components/facebookPixel/facebookPixel.client.js.map +1 -0
  386. package/dist/modules/components/facebookPixel/index.js +11 -0
  387. package/dist/modules/components/facebookPixel/index.js.map +1 -0
  388. package/dist/modules/components/facebookPixel/pixel.js +50 -0
  389. package/dist/modules/components/facebookPixel/pixel.js.map +1 -0
  390. package/dist/modules/components/fieldError/index.js +15 -0
  391. package/dist/modules/components/fieldError/index.js.map +1 -0
  392. package/dist/modules/components/fieldError/styles.css +1 -0
  393. package/dist/modules/components/fieldLabel/index.js +14 -0
  394. package/dist/modules/components/fieldLabel/index.js.map +1 -0
  395. package/dist/modules/components/fieldLabel/styles.css +1 -0
  396. package/dist/modules/components/fieldWrapper/index.js +15 -0
  397. package/dist/modules/components/fieldWrapper/index.js.map +1 -0
  398. package/dist/modules/components/fieldWrapper/styles.css +1 -0
  399. package/dist/modules/components/fileUpload/hasFileContent/index.js +62 -0
  400. package/dist/modules/components/fileUpload/hasFileContent/index.js.map +1 -0
  401. package/dist/modules/components/fileUpload/hasFileContent/styles.css +1 -0
  402. package/dist/modules/components/fileUpload/index.js +68 -0
  403. package/dist/modules/components/fileUpload/index.js.map +1 -0
  404. package/dist/modules/components/fileUpload/noFileContent/index.js +38 -0
  405. package/dist/modules/components/fileUpload/noFileContent/index.js.map +1 -0
  406. package/dist/modules/components/fileUpload/noFileContent/styles.css +1 -0
  407. package/dist/modules/components/fileUpload/styles.css +19 -0
  408. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +37 -0
  409. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js.map +1 -0
  410. package/dist/modules/components/fullCalendar/_viewService.js +103 -0
  411. package/dist/modules/components/fullCalendar/_viewService.js.map +1 -0
  412. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +13 -0
  413. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js.map +1 -0
  414. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/styles.css +1 -0
  415. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +73 -0
  416. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js.map +1 -0
  417. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/styles.css +1 -0
  418. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +31 -0
  419. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js.map +1 -0
  420. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/styles.css +1 -0
  421. package/dist/modules/components/fullCalendar/dayCalendar/index.js +16 -0
  422. package/dist/modules/components/fullCalendar/dayCalendar/index.js.map +1 -0
  423. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +13 -0
  424. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js.map +1 -0
  425. package/dist/modules/components/fullCalendar/fullCalendarContainer/styles.css +1 -0
  426. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +71 -0
  427. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js.map +1 -0
  428. package/dist/modules/components/fullCalendar/fullCalendarHeader/styles.css +1 -0
  429. package/dist/modules/components/fullCalendar/index.js +33 -0
  430. package/dist/modules/components/fullCalendar/index.js.map +1 -0
  431. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -0
  432. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js.map +1 -0
  433. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +31 -0
  434. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js.map +1 -0
  435. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/styles.css +1 -0
  436. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +15 -0
  437. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js.map +1 -0
  438. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/styles.css +1 -0
  439. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +13 -0
  440. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js.map +1 -0
  441. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/styles.css +1 -0
  442. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +16 -0
  443. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js.map +1 -0
  444. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/styles.css +1 -0
  445. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +38 -0
  446. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js.map +1 -0
  447. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/styles.css +1 -0
  448. package/dist/modules/components/fullCalendar/styles.css +35 -0
  449. package/dist/modules/components/fullCalendar/weekCalendar/index.js +12 -0
  450. package/dist/modules/components/fullCalendar/weekCalendar/index.js.map +1 -0
  451. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +73 -0
  452. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js.map +1 -0
  453. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/styles.css +1 -0
  454. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +20 -0
  455. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js.map +1 -0
  456. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/styles.css +1 -0
  457. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +13 -0
  458. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js.map +1 -0
  459. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/styles.css +1 -0
  460. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +19 -0
  461. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js.map +1 -0
  462. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/styles.css +1 -0
  463. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +37 -0
  464. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js.map +1 -0
  465. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/styles.css +1 -0
  466. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +9 -0
  467. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js.map +1 -0
  468. package/dist/modules/components/googleAnalytics/googleAnalytics.js +20 -0
  469. package/dist/modules/components/googleAnalytics/googleAnalytics.js.map +1 -0
  470. package/dist/modules/components/googleAnalytics/index.js +12 -0
  471. package/dist/modules/components/googleAnalytics/index.js.map +1 -0
  472. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +16 -0
  473. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js.map +1 -0
  474. package/dist/modules/components/googleTagManager/googleTagManager.client.js +9 -0
  475. package/dist/modules/components/googleTagManager/googleTagManager.client.js.map +1 -0
  476. package/dist/modules/components/googleTagManager/googleTagManager.js +47 -0
  477. package/dist/modules/components/googleTagManager/googleTagManager.js.map +1 -0
  478. package/dist/modules/components/googleTagManager/index.js +19 -0
  479. package/dist/modules/components/googleTagManager/index.js.map +1 -0
  480. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +11 -0
  481. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js.map +1 -0
  482. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +25 -0
  483. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js.map +1 -0
  484. package/dist/modules/components/iconButton/index.js +34 -0
  485. package/dist/modules/components/iconButton/index.js.map +1 -0
  486. package/dist/modules/components/iconButton/styles.css +1 -0
  487. package/dist/modules/components/imageUpload/hasFileContent/index.js +49 -0
  488. package/dist/modules/components/imageUpload/hasFileContent/index.js.map +1 -0
  489. package/dist/modules/components/imageUpload/hasFileContent/styles.css +1 -0
  490. package/dist/modules/components/imageUpload/index.js +68 -0
  491. package/dist/modules/components/imageUpload/index.js.map +1 -0
  492. package/dist/modules/components/imageUpload/noFileContent/index.js +38 -0
  493. package/dist/modules/components/imageUpload/noFileContent/index.js.map +1 -0
  494. package/dist/modules/components/imageUpload/noFileContent/styles.css +1 -0
  495. package/dist/modules/components/imageUpload/styles.css +17 -0
  496. package/dist/modules/components/input/index.js +95 -0
  497. package/dist/modules/components/input/index.js.map +1 -0
  498. package/dist/modules/components/input/style.css +1 -0
  499. package/dist/modules/components/input/styles.css +7 -0
  500. package/dist/modules/components/mapView/index.js +31 -0
  501. package/dist/modules/components/mapView/index.js.map +1 -0
  502. package/dist/modules/components/mapView/mapView.client.js +58 -0
  503. package/dist/modules/components/mapView/mapView.client.js.map +1 -0
  504. package/dist/modules/components/mapView/mapbox.css +1 -0
  505. package/dist/modules/components/mapView/styles.css +1 -0
  506. package/dist/modules/components/maskedInput/index.js +104 -0
  507. package/dist/modules/components/maskedInput/index.js.map +1 -0
  508. package/dist/modules/components/maskedInput/style.css +1 -0
  509. package/dist/modules/components/maskedInput/styles.css +7 -0
  510. package/dist/modules/components/modal/modalContainer/index.js +38 -0
  511. package/dist/modules/components/modal/modalContainer/index.js.map +1 -0
  512. package/dist/modules/components/modal/modalContainer/styles.css +1 -0
  513. package/dist/modules/components/modal/modalContext.js +18 -0
  514. package/dist/modules/components/modal/modalContext.js.map +1 -0
  515. package/dist/modules/components/modal/modalFooter/index.js +14 -0
  516. package/dist/modules/components/modal/modalFooter/index.js.map +1 -0
  517. package/dist/modules/components/modal/modalFooter/styles.css +1 -0
  518. package/dist/modules/components/modal/modalHeader/index.js +23 -0
  519. package/dist/modules/components/modal/modalHeader/index.js.map +1 -0
  520. package/dist/modules/components/modal/modalHeader/styles.css +1 -0
  521. package/dist/modules/components/multiSelect/index.js +118 -0
  522. package/dist/modules/components/multiSelect/index.js.map +1 -0
  523. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -0
  524. package/dist/modules/components/multiSelect/multiSelectChevron/index.js.map +1 -0
  525. package/dist/modules/components/multiSelect/multiSelectChevron/styles.css +1 -0
  526. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +16 -0
  527. package/dist/modules/components/multiSelect/multiSelectContainer/index.js.map +1 -0
  528. package/dist/modules/components/multiSelect/multiSelectContainer/styles.css +1 -0
  529. package/dist/modules/components/multiSelect/multiSelectContent/index.js +14 -0
  530. package/dist/modules/components/multiSelect/multiSelectContent/index.js.map +1 -0
  531. package/dist/modules/components/multiSelect/multiSelectContent/styles.css +1 -0
  532. package/dist/modules/components/multiSelect/multiSelectMark/index.js +22 -0
  533. package/dist/modules/components/multiSelect/multiSelectMark/index.js.map +1 -0
  534. package/dist/modules/components/multiSelect/multiSelectMark/styles.css +1 -0
  535. package/dist/modules/components/multiSelect/multiSelectOption/index.js +20 -0
  536. package/dist/modules/components/multiSelect/multiSelectOption/index.js.map +1 -0
  537. package/dist/modules/components/multiSelect/multiSelectOption/styles.css +1 -0
  538. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +38 -0
  539. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js.map +1 -0
  540. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/styles.css +1 -0
  541. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +14 -0
  542. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js.map +1 -0
  543. package/dist/modules/components/multiSelect/multiSelectOverlay/styles.css +1 -0
  544. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +16 -0
  545. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js.map +1 -0
  546. package/dist/modules/components/multiSelect/multiSelectSpinner/styles.css +1 -0
  547. package/dist/modules/components/multiSelect/styles.css +31 -0
  548. package/dist/modules/components/pagination/chevronButton/index.js +21 -0
  549. package/dist/modules/components/pagination/chevronButton/index.js.map +1 -0
  550. package/dist/modules/components/pagination/chevronButton/styles.css +1 -0
  551. package/dist/modules/components/pagination/currentButton/index.js +15 -0
  552. package/dist/modules/components/pagination/currentButton/index.js.map +1 -0
  553. package/dist/modules/components/pagination/currentButton/styles.css +1 -0
  554. package/dist/modules/components/pagination/index.js +54 -0
  555. package/dist/modules/components/pagination/index.js.map +1 -0
  556. package/dist/modules/components/pagination/pageButton/index.js +16 -0
  557. package/dist/modules/components/pagination/pageButton/index.js.map +1 -0
  558. package/dist/modules/components/pagination/pageButton/styles.css +1 -0
  559. package/dist/modules/components/pagination/paginationService.js +36 -0
  560. package/dist/modules/components/pagination/paginationService.js.map +1 -0
  561. package/dist/modules/components/pagination/spread/index.js +14 -0
  562. package/dist/modules/components/pagination/spread/index.js.map +1 -0
  563. package/dist/modules/components/pagination/spread/styles.css +1 -0
  564. package/dist/modules/components/pagination/styles.css +9 -0
  565. package/dist/modules/components/phoneInput/index.js +106 -0
  566. package/dist/modules/components/phoneInput/index.js.map +1 -0
  567. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +15 -0
  568. package/dist/modules/components/phoneInput/phoneInputContainer/index.js.map +1 -0
  569. package/dist/modules/components/phoneInput/phoneInputContainer/styles.css +1 -0
  570. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +14 -0
  571. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js.map +1 -0
  572. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/styles.css +1 -0
  573. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +26 -0
  574. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js.map +1 -0
  575. package/dist/modules/components/phoneInput/phoneInputCountryOption/styles.css +1 -0
  576. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +36 -0
  577. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js.map +1 -0
  578. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/styles.css +1 -0
  579. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +28 -0
  580. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js.map +1 -0
  581. package/dist/modules/components/phoneInput/phoneInputCountrySelector/styles.css +1 -0
  582. package/dist/modules/components/phoneInput/phoneInputMask/index.js +55 -0
  583. package/dist/modules/components/phoneInput/phoneInputMask/index.js.map +1 -0
  584. package/dist/modules/components/phoneInput/phoneInputMask/style.css +1 -0
  585. package/dist/modules/components/phoneInput/styles.css +19 -0
  586. package/dist/modules/components/popover/index.js +32 -0
  587. package/dist/modules/components/popover/index.js.map +1 -0
  588. package/dist/modules/components/popover/styles.css +1 -0
  589. package/dist/modules/components/radio/radioBox/index.js +27 -0
  590. package/dist/modules/components/radio/radioBox/index.js.map +1 -0
  591. package/dist/modules/components/radio/radioBox/styles.css +1 -0
  592. package/dist/modules/components/radio/radioContext.js +24 -0
  593. package/dist/modules/components/radio/radioContext.js.map +1 -0
  594. package/dist/modules/components/radio/radioGroup/index.js +44 -0
  595. package/dist/modules/components/radio/radioGroup/index.js.map +1 -0
  596. package/dist/modules/components/radio/radioGroup/styles.css +7 -0
  597. package/dist/modules/components/richText/blockButton/index.js +23 -0
  598. package/dist/modules/components/richText/blockButton/index.js.map +1 -0
  599. package/dist/modules/components/richText/blockButton/styles.css +1 -0
  600. package/dist/modules/components/richText/element/index.js +75 -0
  601. package/dist/modules/components/richText/element/index.js.map +1 -0
  602. package/dist/modules/components/richText/element/styles.css +1 -0
  603. package/dist/modules/components/richText/index.js +144 -0
  604. package/dist/modules/components/richText/index.js.map +1 -0
  605. package/dist/modules/components/richText/insertImage/index.js +97 -0
  606. package/dist/modules/components/richText/insertImage/index.js.map +1 -0
  607. package/dist/modules/components/richText/insertImage/styles.css +1 -0
  608. package/dist/modules/components/richText/insertVideo/index.js +88 -0
  609. package/dist/modules/components/richText/insertVideo/index.js.map +1 -0
  610. package/dist/modules/components/richText/insertVideo/styles.css +1 -0
  611. package/dist/modules/components/richText/leaf/index.js +12 -0
  612. package/dist/modules/components/richText/leaf/index.js.map +1 -0
  613. package/dist/modules/components/richText/markButton/index.js +22 -0
  614. package/dist/modules/components/richText/markButton/index.js.map +1 -0
  615. package/dist/modules/components/richText/markButton/styles.css +1 -0
  616. package/dist/modules/components/richText/styles.css +67 -0
  617. package/dist/modules/components/richText/toolbar/index.js +13 -0
  618. package/dist/modules/components/richText/toolbar/index.js.map +1 -0
  619. package/dist/modules/components/richText/toolbar/styles.css +1 -0
  620. package/dist/modules/components/searchPlaces.js +60 -0
  621. package/dist/modules/components/searchPlaces.js.map +1 -0
  622. package/dist/modules/components/select/index.js +115 -0
  623. package/dist/modules/components/select/index.js.map +1 -0
  624. package/dist/modules/components/select/selectChevron/index.js +21 -0
  625. package/dist/modules/components/select/selectChevron/index.js.map +1 -0
  626. package/dist/modules/components/select/selectChevron/styles.css +1 -0
  627. package/dist/modules/components/select/selectContainer/index.js +16 -0
  628. package/dist/modules/components/select/selectContainer/index.js.map +1 -0
  629. package/dist/modules/components/select/selectContainer/styles.css +1 -0
  630. package/dist/modules/components/select/selectContent/index.js +14 -0
  631. package/dist/modules/components/select/selectContent/index.js.map +1 -0
  632. package/dist/modules/components/select/selectContent/styles.css +1 -0
  633. package/dist/modules/components/select/selectOption/index.js +21 -0
  634. package/dist/modules/components/select/selectOption/index.js.map +1 -0
  635. package/dist/modules/components/select/selectOption/styles.css +1 -0
  636. package/dist/modules/components/select/selectOptionsContainer/index.js +38 -0
  637. package/dist/modules/components/select/selectOptionsContainer/index.js.map +1 -0
  638. package/dist/modules/components/select/selectOptionsContainer/styles.css +1 -0
  639. package/dist/modules/components/select/selectOverlay/index.js +14 -0
  640. package/dist/modules/components/select/selectOverlay/index.js.map +1 -0
  641. package/dist/modules/components/select/selectOverlay/styles.css +1 -0
  642. package/dist/modules/components/select/selectSpinner/index.js +16 -0
  643. package/dist/modules/components/select/selectSpinner/index.js.map +1 -0
  644. package/dist/modules/components/select/selectSpinner/styles.css +1 -0
  645. package/dist/modules/components/select/styles.css +29 -0
  646. package/dist/modules/components/slider/index.js +46 -0
  647. package/dist/modules/components/slider/index.js.map +1 -0
  648. package/dist/modules/components/slider/styles.css +1 -0
  649. package/dist/modules/components/switch/index.js +38 -0
  650. package/dist/modules/components/switch/index.js.map +1 -0
  651. package/dist/modules/components/switch/styles.css +7 -0
  652. package/dist/modules/components/tab/tabButton/index.js +22 -0
  653. package/dist/modules/components/tab/tabButton/index.js.map +1 -0
  654. package/dist/modules/components/tab/tabButton/styles.css +1 -0
  655. package/dist/modules/components/tab/tabContainer/index.js +25 -0
  656. package/dist/modules/components/tab/tabContainer/index.js.map +1 -0
  657. package/dist/modules/components/tab/tabContainer/styles.css +1 -0
  658. package/dist/modules/components/tab/tabContext.js +26 -0
  659. package/dist/modules/components/tab/tabContext.js.map +1 -0
  660. package/dist/modules/components/table/tableBody/index.js +22 -0
  661. package/dist/modules/components/table/tableBody/index.js.map +1 -0
  662. package/dist/modules/components/table/tableBody/styles.css +1 -0
  663. package/dist/modules/components/table/tableCaption/index.js +18 -0
  664. package/dist/modules/components/table/tableCaption/index.js.map +1 -0
  665. package/dist/modules/components/table/tableCaption/styles.css +1 -0
  666. package/dist/modules/components/table/tableContainer/index.js +15 -0
  667. package/dist/modules/components/table/tableContainer/index.js.map +1 -0
  668. package/dist/modules/components/table/tableContainer/styles.css +1 -0
  669. package/dist/modules/components/table/tableFooter/index.js +21 -0
  670. package/dist/modules/components/table/tableFooter/index.js.map +1 -0
  671. package/dist/modules/components/table/tableFooter/styles.css +1 -0
  672. package/dist/modules/components/table/tableHeader/index.js +15 -0
  673. package/dist/modules/components/table/tableHeader/index.js.map +1 -0
  674. package/dist/modules/components/table/tableHeader/styles.css +1 -0
  675. package/dist/modules/components/textarea/index.js +54 -0
  676. package/dist/modules/components/textarea/index.js.map +1 -0
  677. package/dist/modules/components/textarea/styles.css +7 -0
  678. package/dist/modules/components/tooltip/index.js +37 -0
  679. package/dist/modules/components/tooltip/index.js.map +1 -0
  680. package/dist/modules/components/tooltip/styles.css +1 -0
  681. package/dist/modules/hooks/useAutomation.js +47 -0
  682. package/dist/modules/hooks/useAutomation.js.map +1 -0
  683. package/dist/modules/hooks/useDrawer.js +20 -0
  684. package/dist/modules/hooks/useDrawer.js.map +1 -0
  685. package/dist/modules/hooks/useForm.js +10 -0
  686. package/dist/modules/hooks/useForm.js.map +1 -0
  687. package/dist/modules/hooks/useHydrated.js +12 -0
  688. package/dist/modules/hooks/useHydrated.js.map +1 -0
  689. package/dist/modules/hooks/useModal.js +20 -0
  690. package/dist/modules/hooks/useModal.js.map +1 -0
  691. package/dist/modules/hooks/useScopedParams.js +20 -0
  692. package/dist/modules/hooks/useScopedParams.js.map +1 -0
  693. package/dist/modules/hooks/useScrollLock.js +23 -0
  694. package/dist/modules/hooks/useScrollLock.js.map +1 -0
  695. package/dist/modules/hooks/useSearchAutomation.js +36 -0
  696. package/dist/modules/hooks/useSearchAutomation.js.map +1 -0
  697. package/dist/modules/hooks/useSlider.js +16 -0
  698. package/dist/modules/hooks/useSlider.js.map +1 -0
  699. package/dist/modules/hooks/useToast.js +12 -0
  700. package/dist/modules/hooks/useToast.js.map +1 -0
  701. package/dist/modules/providers/drawerProvider.js +38 -0
  702. package/dist/modules/providers/drawerProvider.js.map +1 -0
  703. package/dist/modules/providers/formProvider.js +15 -0
  704. package/dist/modules/providers/formProvider.js.map +1 -0
  705. package/dist/modules/providers/modalProvider.js +42 -0
  706. package/dist/modules/providers/modalProvider.js.map +1 -0
  707. package/dist/modules/providers/placesProvider.js +20 -0
  708. package/dist/modules/providers/placesProvider.js.map +1 -0
  709. package/dist/modules/providers/toastProvider.js +49 -0
  710. package/dist/modules/providers/toastProvider.js.map +1 -0
  711. package/dist/modules/services/extractTextFromNode.js +9 -0
  712. package/dist/modules/services/extractTextFromNode.js.map +1 -0
  713. package/dist/modules/services/fieldTemplate.js +25 -0
  714. package/dist/modules/services/fieldTemplate.js.map +1 -0
  715. package/dist/modules/services/iconRenderer.js +17 -0
  716. package/dist/modules/services/iconRenderer.js.map +1 -0
  717. package/dist/modules/services/isBlockActive.js +15 -0
  718. package/dist/modules/services/isBlockActive.js.map +1 -0
  719. package/dist/modules/services/isMarkActive.js +10 -0
  720. package/dist/modules/services/isMarkActive.js.map +1 -0
  721. package/dist/modules/services/maskCurrencyValues.js +15 -0
  722. package/dist/modules/services/maskCurrencyValues.js.map +1 -0
  723. package/dist/modules/services/toHtml.js +9 -0
  724. package/dist/modules/services/toHtml.js.map +1 -0
  725. package/dist/modules/services/toRichTextValue.js +11 -0
  726. package/dist/modules/services/toRichTextValue.js.map +1 -0
  727. package/dist/modules/services/toggleBlock.js +23 -0
  728. package/dist/modules/services/toggleBlock.js.map +1 -0
  729. package/dist/modules/services/toggleMark.js +10 -0
  730. package/dist/modules/services/toggleMark.js.map +1 -0
  731. package/dist/modules/templates/badResponses.js +16 -0
  732. package/dist/modules/templates/badResponses.js.map +1 -0
  733. package/dist/modules/templates/richTextTemplates.js +19 -0
  734. package/dist/modules/templates/richTextTemplates.js.map +1 -0
  735. package/dist/modules/templates/successResponses.js +11 -0
  736. package/dist/modules/templates/successResponses.js.map +1 -0
  737. package/dist/modules/utils/phoneInputUtilities.js +24 -0
  738. package/dist/modules/utils/phoneInputUtilities.js.map +1 -0
  739. package/dist/modules/utils/richTextUtilities.js +92 -0
  740. package/dist/modules/utils/richTextUtilities.js.map +1 -0
  741. package/dist/providers/drawerProvider.d.ts +18 -84
  742. package/dist/providers/drawerProvider.d.ts.map +1 -1
  743. package/dist/providers/formProvider.d.ts +20 -56
  744. package/dist/providers/formProvider.d.ts.map +1 -1
  745. package/dist/providers/modalProvider.d.ts +19 -80
  746. package/dist/providers/modalProvider.d.ts.map +1 -1
  747. package/dist/providers/placesProvider.d.ts +18 -13
  748. package/dist/providers/placesProvider.d.ts.map +1 -1
  749. package/dist/providers/toastProvider.d.ts +13 -24
  750. package/dist/providers/toastProvider.d.ts.map +1 -1
  751. package/dist/services/extractTextFromNode.d.ts +1 -1
  752. package/dist/services/extractTextFromNode.d.ts.map +1 -1
  753. package/dist/services/fieldTemplate.d.ts +14 -0
  754. package/dist/services/fieldTemplate.d.ts.map +1 -0
  755. package/dist/services/iconRenderer.d.ts +2 -2
  756. package/dist/services/iconRenderer.d.ts.map +1 -1
  757. package/dist/services/isBlockActive.d.ts +1 -1
  758. package/dist/services/isBlockActive.d.ts.map +1 -1
  759. package/dist/services/isMarkActive.d.ts +1 -1
  760. package/dist/services/isMarkActive.d.ts.map +1 -1
  761. package/dist/services/maskCurrencyValues.d.ts.map +1 -1
  762. package/dist/services/toHtml.d.ts +12 -11
  763. package/dist/services/toHtml.d.ts.map +1 -1
  764. package/dist/services/toRichTextValue.d.ts +12 -18
  765. package/dist/services/toRichTextValue.d.ts.map +1 -1
  766. package/dist/services/toggleBlock.d.ts +1 -1
  767. package/dist/services/toggleBlock.d.ts.map +1 -1
  768. package/dist/services/toggleMark.d.ts +1 -1
  769. package/dist/services/toggleMark.d.ts.map +1 -1
  770. package/dist/style.css +1 -1
  771. package/dist/templates/richTextTemplates.d.ts +1 -1
  772. package/dist/templates/richTextTemplates.d.ts.map +1 -1
  773. package/dist/types/richTextTypes.d.ts +14 -3
  774. package/dist/types/richTextTypes.d.ts.map +1 -1
  775. package/dist/utils/phoneInputUtilities.d.ts +1 -1713
  776. package/dist/utils/phoneInputUtilities.d.ts.map +1 -1
  777. package/dist/utils/richTextUtilities.d.ts +1 -1
  778. package/dist/utils/richTextUtilities.d.ts.map +1 -1
  779. package/package.json +1084 -27
  780. package/styles.d.ts +3 -0
  781. package/dist/bundle.js +0 -18048
  782. package/dist/bundle.umd.cjs +0 -219
  783. package/dist/components/alert/alertContainer/index.js +0 -91
  784. package/dist/components/alert/alertContent/index.js +0 -46
  785. package/dist/components/alert/alertDescription/index.js +0 -48
  786. package/dist/components/alert/alertIcon/index.js +0 -61
  787. package/dist/components/alert/alertTitle/index.js +0 -42
  788. package/dist/components/audioPlayer/index.js +0 -115
  789. package/dist/components/audioUpload/hasFileContent/index.js +0 -26
  790. package/dist/components/audioUpload/index.js +0 -120
  791. package/dist/components/audioUpload/noFileContent/index.js +0 -29
  792. package/dist/components/badge/index.js +0 -49
  793. package/dist/components/button/index.js +0 -61
  794. package/dist/components/cardTab/cardTabButton/index.js +0 -80
  795. package/dist/components/cardTab/cardTabContainer/index.js +0 -88
  796. package/dist/components/cardTab/cardTabContext.js +0 -10
  797. package/dist/components/checkbox/index.js +0 -87
  798. package/dist/components/clientOnly.js +0 -86
  799. package/dist/components/currencyInput/index.js +0 -141
  800. package/dist/components/divider/index.js +0 -45
  801. package/dist/components/drawer/drawerContainer/index.js +0 -75
  802. package/dist/components/drawer/drawerContext.js +0 -10
  803. package/dist/components/drawer/drawerHeader/index.js +0 -58
  804. package/dist/components/fieldError/index.js +0 -33
  805. package/dist/components/fieldLabel/index.js +0 -39
  806. package/dist/components/fieldWrapper/index.js +0 -42
  807. package/dist/components/fileUpload/hasFileContent/index.js +0 -34
  808. package/dist/components/fileUpload/index.js +0 -127
  809. package/dist/components/fileUpload/noFileContent/index.js +0 -29
  810. package/dist/components/iconButton/index.js +0 -41
  811. package/dist/components/imageUpload/hasFileContent/index.js +0 -24
  812. package/dist/components/imageUpload/index.js +0 -149
  813. package/dist/components/imageUpload/noFileContent/index.js +0 -29
  814. package/dist/components/input/index.js +0 -114
  815. package/dist/components/mapView/index.js +0 -16
  816. package/dist/components/maskedInput/index.js +0 -131
  817. package/dist/components/modal/modalContainer/index.js +0 -82
  818. package/dist/components/modal/modalContext.js +0 -10
  819. package/dist/components/modal/modalFooter/index.js +0 -72
  820. package/dist/components/modal/modalHeader/index.js +0 -69
  821. package/dist/components/multiSelect/index.js +0 -169
  822. package/dist/components/multiSelect/multiSelectChevron/index.js +0 -18
  823. package/dist/components/multiSelect/multiSelectContainer/index.js +0 -11
  824. package/dist/components/multiSelect/multiSelectContent/index.js +0 -8
  825. package/dist/components/multiSelect/multiSelectMark/index.js +0 -11
  826. package/dist/components/multiSelect/multiSelectOption/index.js +0 -10
  827. package/dist/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
  828. package/dist/components/multiSelect/multiSelectOverlay/index.js +0 -9
  829. package/dist/components/multiSelect/multiSelectSpinner/index.js +0 -10
  830. package/dist/components/pagination/chevronButton/index.js +0 -9
  831. package/dist/components/pagination/currentButton/index.js +0 -6
  832. package/dist/components/pagination/index.js +0 -37
  833. package/dist/components/pagination/pageButton/index.js +0 -7
  834. package/dist/components/pagination/paginationService.js +0 -62
  835. package/dist/components/pagination/spread/index.js +0 -7
  836. package/dist/components/phoneInput/index.js +0 -205
  837. package/dist/components/phoneInput/phoneInputContainer/index.js +0 -11
  838. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
  839. package/dist/components/phoneInput/phoneInputCountryOption/index.js +0 -10
  840. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
  841. package/dist/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
  842. package/dist/components/phoneInput/phoneInputMask/index.js +0 -34
  843. package/dist/components/popover/index.js +0 -151
  844. package/dist/components/radio/radioBox/index.js +0 -99
  845. package/dist/components/radio/radioContext.js +0 -11
  846. package/dist/components/radio/radioGroup/index.js +0 -100
  847. package/dist/components/richText/blockButton/index.js +0 -18
  848. package/dist/components/richText/element/index.js +0 -24
  849. package/dist/components/richText/index.js +0 -149
  850. package/dist/components/richText/insertImage/index.js +0 -33
  851. package/dist/components/richText/leaf/index.js +0 -13
  852. package/dist/components/richText/markButton/index.js +0 -16
  853. package/dist/components/richText/toolbar/index.js +0 -6
  854. package/dist/components/searchPlaces.js +0 -91
  855. package/dist/components/select/index.js +0 -168
  856. package/dist/components/select/selectChevron/index.js +0 -18
  857. package/dist/components/select/selectContainer/index.js +0 -11
  858. package/dist/components/select/selectContent/index.js +0 -8
  859. package/dist/components/select/selectOption/index.js +0 -10
  860. package/dist/components/select/selectOptionsContainer/index.js +0 -44
  861. package/dist/components/select/selectOverlay/index.js +0 -9
  862. package/dist/components/select/selectSpinner/index.js +0 -10
  863. package/dist/components/slider/index.js +0 -97
  864. package/dist/components/switch/index.js +0 -100
  865. package/dist/components/tab/tabButton/index.js +0 -80
  866. package/dist/components/tab/tabContainer/index.js +0 -88
  867. package/dist/components/tab/tabContext.js +0 -10
  868. package/dist/components/table/tableBody/index.js +0 -69
  869. package/dist/components/table/tableCaption/index.js +0 -64
  870. package/dist/components/table/tableContainer/index.js +0 -66
  871. package/dist/components/table/tableFooter/index.js +0 -47
  872. package/dist/components/table/tableHeader/index.js +0 -46
  873. package/dist/components/textarea/index.js +0 -128
  874. package/dist/components/tooltip/index.js +0 -135
  875. package/dist/hooks/useAutomation.js +0 -67
  876. package/dist/hooks/useDrawer.js +0 -20
  877. package/dist/hooks/useForm.js +0 -52
  878. package/dist/hooks/useHydrated.js +0 -81
  879. package/dist/hooks/useModal.js +0 -20
  880. package/dist/hooks/useScopedParams.js +0 -107
  881. package/dist/hooks/useScrollLock.js +0 -68
  882. package/dist/hooks/useSlider.js +0 -49
  883. package/dist/hooks/useToast.js +0 -72
  884. package/dist/providers/drawerProvider.js +0 -120
  885. package/dist/providers/formProvider.js +0 -69
  886. package/dist/providers/modalProvider.js +0 -119
  887. package/dist/providers/placesProvider.js +0 -35
  888. package/dist/providers/toastProvider.js +0 -73
  889. package/dist/services/extractTextFromNode.js +0 -5
  890. package/dist/services/iconRenderer.js +0 -13
  891. package/dist/services/isBlockActive.js +0 -14
  892. package/dist/services/isMarkActive.js +0 -6
  893. package/dist/services/maskCurrencyValues.js +0 -23
  894. package/dist/services/toHtml.js +0 -21
  895. package/dist/services/toRichTextValue.js +0 -40
  896. package/dist/services/toggleBlock.js +0 -32
  897. package/dist/services/toggleMark.js +0 -10
  898. package/dist/templates/badResponses.js +0 -12
  899. package/dist/templates/richTextTemplates.js +0 -12
  900. package/dist/templates/successResponses.js +0 -2
  901. package/dist/types/richTextTypes.js +0 -1
  902. package/dist/utils/phoneInputUtilities.js +0 -99
  903. package/dist/utils/richTextUtilities.js +0 -87
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/fieldError/index.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport \"./styles.css\";\n\ntype FieldErrorProps = HTMLAttributes<HTMLElement>;\n\n/**\n * FieldError — displays a validation error message below a form field.\n *\n * Renders nothing when `children` is empty or falsy.\n *\n * **...Other valid HTML properties for `<strong>`**\n *\n * @returns FieldError `<strong>` element, or an empty fragment when there is no message.\n *\n * @example\n * ```tsx\n * <FieldError>This field is required</FieldError>\n *\n * {error && <FieldError>{error}</FieldError>}\n * ```\n */\n\nfunction FieldError(props: FieldErrorProps) {\n\tconst { children, className: baseClassName, ...rest } = props;\n\tconst className = `arkynFieldError ${baseClassName}`;\n\n\tif (!children) return null;\n\n\treturn (\n\t\t<strong className={className.trim()} {...rest}>\n\t\t\t{children}\n\t\t</strong>\n\t);\n}\n\nexport { FieldError };\n"],"mappings":";;;AAsBA,SAAS,EAAW,GAAwB;CAC3C,IAAM,EAAE,aAAU,WAAW,GAAe,GAAG,MAAS,GAClD,IAAY,mBAAmB;CAIrC,OAFK,IAGJ,kBAAC,UAAD;EAAQ,WAAW,EAAU,KAAK;EAAG,GAAI;EACvC;CACM,CAAA,IALa;AAOvB"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynFieldError{color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:12px}}
@@ -0,0 +1,14 @@
1
+ /* empty css */
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/fieldLabel/index.tsx
4
+ function t(t) {
5
+ let { showAsterisk: n = !1, className: r = "", ...i } = t;
6
+ return /* @__PURE__ */ e("label", {
7
+ className: `arkynFieldLabel ${n ? "asteriskTrue" : "asteriskFalse"} ${r}`.trim(),
8
+ ...i
9
+ });
10
+ }
11
+ //#endregion
12
+ export { t as FieldLabel };
13
+
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/fieldLabel/index.tsx"],"sourcesContent":["import type { LabelHTMLAttributes } from \"react\";\nimport \"./styles.css\";\n\ntype FieldLabelProps = LabelHTMLAttributes<HTMLLabelElement> & {\n\t/** When true, appends an asterisk (*) to signal a required field. @default false */\n\tshowAsterisk?: boolean;\n};\n\n/**\n * FieldLabel — label for form fields, with an optional required-field asterisk.\n *\n * @param props.showAsterisk - Appends `*` to the label. Default: false\n *\n * **...Other valid HTML properties for `<label>`**\n *\n * @returns FieldLabel JSX element.\n *\n * @example\n * ```tsx\n * <FieldLabel htmlFor=\"email\" showAsterisk>Email Address</FieldLabel>\n * ```\n */\n\nfunction FieldLabel(props: FieldLabelProps) {\n\tconst {\n\t\tshowAsterisk = false,\n\t\tclassName: baseClassName = \"\",\n\t\t...rest\n\t} = props;\n\n\tconst show = showAsterisk ? \"asteriskTrue\" : \"asteriskFalse\";\n\tconst className = `arkynFieldLabel ${show} ${baseClassName}`;\n\n\t// biome-ignore lint/a11y/noLabelWithoutControl: htmlFor is passed via ...rest\n\treturn <label className={className.trim()} {...rest} />;\n}\n\nexport { FieldLabel };\n"],"mappings":";;;AAuBA,SAAS,EAAW,GAAwB;CAC3C,IAAM,EACL,kBAAe,IACf,WAAW,IAAgB,IAC3B,GAAG,MACA;CAMJ,OAAO,kBAAC,SAAD;EAAO,WAAW,mBAJZ,IAAe,iBAAiB,gBACH,GAAG,IAGV,KAAK;EAAG,GAAI;CAAO,CAAA;AACvD"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynFieldLabel{color:var(--text-body,#52525b);font-size:14px;font-weight:600;line-height:19.07px}.arkynFieldLabel.asteriskTrue:before{content:"* ";text-align:left;color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:16.34px}}
@@ -0,0 +1,15 @@
1
+ /* empty css */
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/fieldWrapper/index.tsx
4
+ function t(t) {
5
+ let { children: n, className: r, orientation: i = "vertical", ...a } = t;
6
+ return /* @__PURE__ */ e("section", {
7
+ className: `arkynFieldWrapper ${r} ${i}`.trim(),
8
+ ...a,
9
+ children: n
10
+ });
11
+ }
12
+ //#endregion
13
+ export { t as FieldWrapper };
14
+
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/fieldWrapper/index.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype FieldWrapperProps = HTMLAttributes<HTMLElement> & {\n\t/** Field elements to render inside the wrapper (label, input, error, etc.). Required. */\n\tchildren: ReactNode;\n\t/**\n\t * Layout orientation of the wrapper.\n\t * @default \"vertical\"\n\t */\n\torientation?: \"vertical\" | \"horizontal\" | \"horizontalReverse\";\n};\n\n/**\n * FieldWrapper — `<section>` container that groups a form field with its label and error message.\n *\n * @param props.children - Field elements (label, input, error, etc.).\n * @param props.orientation - Layout direction. Default: \"vertical\"\n *\n * **...Other valid HTML properties for `<section>`**\n *\n * @returns FieldWrapper JSX element.\n *\n * @example\n * ```tsx\n * <FieldWrapper>\n * <FieldLabel showAsterisk>Email</FieldLabel>\n * <Input name=\"email\" type=\"email\" />\n * <FieldError>Invalid email address</FieldError>\n * </FieldWrapper>\n * ```\n */\n\nfunction FieldWrapper(props: FieldWrapperProps) {\n\tconst {\n\t\tchildren,\n\t\tclassName: baseClassName,\n\t\torientation = \"vertical\",\n\t\t...rest\n\t} = props;\n\n\tconst className = `arkynFieldWrapper ${baseClassName} ${orientation}`;\n\n\treturn (\n\t\t<section className={className.trim()} {...rest}>\n\t\t\t{children}\n\t\t</section>\n\t);\n}\n\nexport { FieldWrapper };\n"],"mappings":";;;AAiCA,SAAS,EAAa,GAA0B;CAC/C,IAAM,EACL,aACA,WAAW,GACX,iBAAc,YACd,GAAG,MACA;CAIJ,OACC,kBAAC,WAAD;EAAS,WAAW,qBAHkB,EAAc,GAAG,IAGzB,KAAK;EAAG,GAAI;EACxC;CACO,CAAA;AAEX"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynFieldWrapper{gap:6px;height:max-content;display:flex}.arkynFieldWrapper.horizontal{flex-direction:row;align-items:center}.arkynFieldWrapper.horizontalReverse{flex-direction:row-reverse;align-items:center;margin-right:auto}.arkynFieldWrapper.vertical{flex-direction:column;align-items:flex-start}}
@@ -0,0 +1,62 @@
1
+ import { Button as e } from "../../button/index.js";
2
+ import { Divider as t } from "../../divider/index.js";
3
+ import { IconButton as n } from "../../iconButton/index.js";
4
+ import { Tooltip as r } from "../../tooltip/index.js";
5
+ /* empty css */
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ import { File as o, FileArchive as s, FileAudio as c, FileImage as l, RefreshCw as u } from "lucide-react";
8
+ //#region src/components/fileUpload/hasFileContent/index.tsx
9
+ function d(d) {
10
+ let { disabled: f, file: p, isLoading: m, acceptFile: h, changeFileButtonText: g, handleSelectFile: _, reSendFile: v } = d;
11
+ function y() {
12
+ if (f) return;
13
+ let e = document.createElement("input");
14
+ e.type = "file", e.accept = h, e.onchange = (e) => {
15
+ let t = e.target.files?.[0];
16
+ t && _(t);
17
+ }, e.click();
18
+ }
19
+ function b() {
20
+ return p.type.startsWith("image/") ? /* @__PURE__ */ i(l, {}) : p.type.startsWith("audio/") ? /* @__PURE__ */ i(c, {}) : p.type.startsWith("application/zip") ? /* @__PURE__ */ i(s, {}) : /* @__PURE__ */ i(o, {});
21
+ }
22
+ return /* @__PURE__ */ a("div", {
23
+ className: "arkynFileUploadHasFileContent",
24
+ children: [
25
+ /* @__PURE__ */ a("section", {
26
+ className: "arkynFileUploadFileContainer",
27
+ children: [/* @__PURE__ */ i(b, {}), /* @__PURE__ */ i("p", { children: p.name })]
28
+ }),
29
+ /* @__PURE__ */ i(t, {}),
30
+ /* @__PURE__ */ a("div", {
31
+ className: "arkynFileUploadButtonsContainer",
32
+ children: [!!v && /* @__PURE__ */ i(r, {
33
+ orientation: "bottom",
34
+ text: "Reenviar arquivo",
35
+ children: /* @__PURE__ */ i(n, {
36
+ type: "button",
37
+ "aria-label": "resend file",
38
+ variant: "outline",
39
+ scheme: "danger",
40
+ size: "sm",
41
+ isLoading: m,
42
+ onClick: v,
43
+ icon: u,
44
+ disabled: f
45
+ })
46
+ }), /* @__PURE__ */ i(e, {
47
+ isLoading: m,
48
+ onClick: y,
49
+ variant: "outline",
50
+ size: "sm",
51
+ type: "button",
52
+ disabled: f,
53
+ children: g
54
+ })]
55
+ })
56
+ ]
57
+ });
58
+ }
59
+ //#endregion
60
+ export { d as HasFileContent };
61
+
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/fileUpload/hasFileContent/index.tsx"],"sourcesContent":["import {\n\tFile,\n\tFileArchive,\n\tFileAudio,\n\tFileImage,\n\tRefreshCw,\n} from \"lucide-react\";\n\nimport { Button } from \"../../button\";\nimport { Divider } from \"../../divider\";\nimport { IconButton } from \"../../iconButton\";\nimport { Tooltip } from \"../../tooltip\";\n\nimport \"./styles.css\";\n\ntype HasFileContentProps = {\n\tdisabled: boolean;\n\tacceptFile: string;\n\tisLoading: boolean;\n\tchangeFileButtonText: string;\n\tfile: File;\n\treSendFile?: () => void;\n\thandleSelectFile: (file: File) => void;\n};\n\nfunction HasFileContent(props: HasFileContentProps) {\n\tconst {\n\t\tdisabled,\n\t\tfile,\n\t\tisLoading,\n\t\tacceptFile,\n\t\tchangeFileButtonText,\n\t\thandleSelectFile,\n\t\treSendFile,\n\t} = props;\n\n\tfunction handleClick() {\n\t\tif (disabled) return;\n\n\t\tconst input = document.createElement(\"input\");\n\n\t\tinput.type = \"file\";\n\t\tinput.accept = acceptFile;\n\n\t\tinput.onchange = (event) => {\n\t\t\tconst file = (event.target as HTMLInputElement).files?.[0];\n\t\t\tif (file) handleSelectFile(file);\n\t\t};\n\n\t\tinput.click();\n\t}\n\n\tfunction FileIcon() {\n\t\tif (file.type.startsWith(\"image/\")) return <FileImage />;\n\t\tif (file.type.startsWith(\"audio/\")) return <FileAudio />;\n\t\tif (file.type.startsWith(\"application/zip\")) return <FileArchive />;\n\t\treturn <File />;\n\t}\n\n\treturn (\n\t\t<div className=\"arkynFileUploadHasFileContent\">\n\t\t\t<section className=\"arkynFileUploadFileContainer\">\n\t\t\t\t<FileIcon />\n\t\t\t\t<p>{file.name}</p>\n\t\t\t</section>\n\n\t\t\t<Divider />\n\n\t\t\t<div className=\"arkynFileUploadButtonsContainer\">\n\t\t\t\t{!!reSendFile && (\n\t\t\t\t\t<Tooltip orientation=\"bottom\" text=\"Reenviar arquivo\">\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\taria-label=\"resend file\"\n\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\tscheme=\"danger\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\tisLoading={isLoading}\n\t\t\t\t\t\t\tonClick={reSendFile}\n\t\t\t\t\t\t\ticon={RefreshCw}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Tooltip>\n\t\t\t\t)}\n\n\t\t\t\t<Button\n\t\t\t\t\tisLoading={isLoading}\n\t\t\t\t\tonClick={handleClick}\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t>\n\t\t\t\t\t{changeFileButtonText}\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nexport { HasFileContent };\n"],"mappings":";;;;;;;;AAyBA,SAAS,EAAe,GAA4B;CACnD,IAAM,EACL,aACA,SACA,cACA,eACA,yBACA,qBACA,kBACG;CAEJ,SAAS,IAAc;EACtB,IAAI,GAAU;EAEd,IAAM,IAAQ,SAAS,cAAc,OAAO;EAU5C,AARA,EAAM,OAAO,QACb,EAAM,SAAS,GAEf,EAAM,YAAY,MAAU;GAC3B,IAAM,IAAQ,EAAM,OAA4B,QAAQ;GACxD,AAAI,KAAM,EAAiB,CAAI;EAChC,GAEA,EAAM,MAAM;CACb;CAEA,SAAS,IAAW;EAInB,OAHI,EAAK,KAAK,WAAW,QAAQ,IAAU,kBAAC,GAAD,CAAY,CAAA,IACnD,EAAK,KAAK,WAAW,QAAQ,IAAU,kBAAC,GAAD,CAAY,CAAA,IACnD,EAAK,KAAK,WAAW,iBAAiB,IAAU,kBAAC,GAAD,CAAc,CAAA,IAC3D,kBAAC,GAAD,CAAO,CAAA;CACf;CAEA,OACC,kBAAC,OAAD;EAAK,WAAU;YAAf;GACC,kBAAC,WAAD;IAAS,WAAU;cAAnB,CACC,kBAAC,GAAD,CAAW,CAAA,GACX,kBAAC,KAAD,EAAA,UAAI,EAAK,KAAQ,CAAA,CACT;;GAET,kBAAC,GAAD,CAAU,CAAA;GAEV,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,CAAC,CAAC,KACF,kBAAC,GAAD;KAAS,aAAY;KAAS,MAAK;eAClC,kBAAC,GAAD;MACC,MAAK;MACL,cAAW;MACX,SAAQ;MACR,QAAO;MACP,MAAK;MACM;MACX,SAAS;MACT,MAAM;MACI;KACV,CAAA;IACO,CAAA,GAGV,kBAAC,GAAD;KACY;KACX,SAAS;KACT,SAAQ;KACR,MAAK;KACL,MAAK;KACK;eAET;IACM,CAAA,CACJ;;EACD;;AAEP"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynFileUploadHasFileContent{flex-direction:column;gap:16px;width:100%;height:100%;padding:16px;display:flex}.arkynFileUploadFileContainer{align-items:center;gap:8px;display:flex}.arkynFileUploadFileContainer svg{min-width:26px;min-height:26px;color:var(--text-heading,#09090b)}.arkynFileUploadFileContainer p{white-space:nowrap;text-overflow:ellipsis;text-align:left;color:var(--text-body,#52525b);font-size:14px;font-weight:400;overflow:hidden}.arkynFileUploadButtonsContainer{justify-content:end;align-items:center;gap:8px;display:flex}}
@@ -0,0 +1,68 @@
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 { HasFileContent as i } from "./hasFileContent/index.js";
6
+ import { NoFileContent as a } from "./noFileContent/index.js";
7
+ /* empty css */
8
+ import { useState as o } from "react";
9
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
+ //#region src/components/fileUpload/index.tsx
11
+ function l(l) {
12
+ let { name: u, label: d, showAsterisk: f = !1, action: p, fileName: m = "file", method: h = "POST", acceptFile: g = "*", fileResponseName: _ = "url", changeFileButtonText: v = "Alterar arquivo", selectFileButtonText: y = "Selecionar arquivo", dropFileText: b = "Ou arraste e solte o arquivo aqui", onChange: x, disabled: S = !1 } = l, { fieldErrors: C } = e(), w = C?.[u], [T, E] = o(""), [D, O] = o(""), [k, A] = o(null), [j, M] = o(!1);
13
+ async function N(e) {
14
+ if (S) return;
15
+ M(!0), A(e), O("");
16
+ let t = new FormData();
17
+ t.append(m, e), await fetch(p, {
18
+ method: h,
19
+ body: t
20
+ }).then(async (e) => await e.json()).then((e) => {
21
+ e?.error ? O(e.error) : E(e?.[_]), x?.(e?.[_]);
22
+ }).catch((e) => {
23
+ console.error(e), O("Erro ao enviar o arquivo");
24
+ }).finally(() => M(!1));
25
+ }
26
+ function P(e) {
27
+ S || N(e);
28
+ }
29
+ let F = w || D;
30
+ return /* @__PURE__ */ c(r, { children: [
31
+ d && /* @__PURE__ */ s(n, {
32
+ showAsterisk: f,
33
+ children: d
34
+ }),
35
+ /* @__PURE__ */ c("div", {
36
+ className: `arkynFileUpload ${F ? "hasError" : "noHasError"} ${k ? "hasFile" : "noHasFile"}`,
37
+ children: [
38
+ /* @__PURE__ */ s("input", {
39
+ type: "hidden",
40
+ name: u,
41
+ value: T || ""
42
+ }),
43
+ !k && /* @__PURE__ */ s(a, {
44
+ disabled: S,
45
+ isLoading: j,
46
+ acceptFile: g,
47
+ dropFileText: b,
48
+ handleSelectFile: P,
49
+ selectFileButtonText: y
50
+ }),
51
+ k && /* @__PURE__ */ s(i, {
52
+ disabled: S,
53
+ isLoading: j,
54
+ acceptFile: g,
55
+ file: k,
56
+ handleSelectFile: P,
57
+ changeFileButtonText: v,
58
+ reSendFile: F && k ? () => N(k) : void 0
59
+ })
60
+ ]
61
+ }),
62
+ F && /* @__PURE__ */ s(t, { children: F })
63
+ ] });
64
+ }
65
+ //#endregion
66
+ export { l as FileUpload };
67
+
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/fileUpload/index.tsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { useForm } from \"../../hooks/useForm\";\nimport { FieldError } from \"../fieldError\";\nimport { FieldLabel } from \"../fieldLabel\";\nimport { FieldWrapper } from \"../fieldWrapper\";\n\nimport { HasFileContent } from \"./hasFileContent\";\nimport { NoFileContent } from \"./noFileContent\";\nimport \"./styles.css\";\n\ntype FileUploadProps = {\n\t/** Field name for form submission (stores the uploaded file URL). Required. */\n\tname: string;\n\t/** Server endpoint URL that receives the `multipart/form-data` upload request. Required. */\n\taction: string;\n\t/** Disables file selection and upload. @default false */\n\tdisabled?: boolean;\n\t/** Optional label text displayed above the upload area. */\n\tlabel?: string;\n\t/** Displays an asterisk on the label to signal a required field. @default false */\n\tshowAsterisk?: boolean;\n\t/** Label for the file-picker button after a file is selected. @default \"Alterar arquivo\" */\n\tchangeFileButtonText?: string;\n\t/** Label for the file-picker button before a file is selected. @default \"Selecionar arquivo\" */\n\tselectFileButtonText?: string;\n\t/** Text displayed in the drag-and-drop zone. @default \"Ou arraste e solte o arquivo aqui\" */\n\tdropFileText?: string;\n\t/** HTTP method for the upload request. @default \"POST\" */\n\tmethod?: string;\n\t/** Form-data field name used for the file. @default \"file\" */\n\tfileName?: string;\n\t/** Property name in the server response that contains the file URL. @default \"url\" */\n\tfileResponseName?: string;\n\t/** Accepted file MIME types or extensions (e.g. `\".pdf\"`, `\"image/*\"`). @default \"*\" */\n\tacceptFile?: string;\n\t/** Callback fired after a successful upload. Receives the URL returned by the server. */\n\tonChange?: (url?: string) => void;\n};\n\n/**\n * FileUpload — drag-and-drop file uploader with server upload and file-name preview.\n *\n * Sends the file via `fetch` as `multipart/form-data` and stores the returned URL\n * in a hidden `<input>` for form submission.\n * Integrates with `useForm` to display validation errors by field name.\n *\n * @param props.name - Field name for form submission. Required.\n * @param props.action - Upload endpoint URL. Required.\n * @param props.disabled - Disables file selection and upload. Default: false\n * @param props.label - Label text displayed above the upload area.\n * @param props.showAsterisk - Appends `*` to the label. Default: false\n * @param props.acceptFile - Accepted MIME types or extensions. Default: \"*\"\n * @param props.method - HTTP method. Default: \"POST\"\n * @param props.fileName - Form-data field name for the file. Default: \"file\"\n * @param props.fileResponseName - Server response property containing the URL. Default: \"url\"\n * @param props.onChange - Callback fired after a successful upload — receives the file URL.\n *\n * @returns FileUpload JSX element wrapped in `FieldWrapper`.\n *\n * @example\n * ```tsx\n * // Basic\n * <FileUpload name=\"document\" action=\"/api/upload\" />\n *\n * // PDF only with label and callback\n * <FileUpload\n * name=\"contract\"\n * action=\"/api/upload/docs\"\n * label=\"Contract (PDF)\"\n * showAsterisk\n * acceptFile=\".pdf\"\n * fileResponseName=\"documentUrl\"\n * onChange={(url) => setContractUrl(url)}\n * />\n * ```\n */\n\nfunction FileUpload(props: FileUploadProps) {\n\tconst {\n\t\tname,\n\t\tlabel,\n\t\tshowAsterisk = false,\n\t\taction,\n\t\tfileName = \"file\",\n\t\tmethod = \"POST\",\n\t\tacceptFile = \"*\",\n\t\tfileResponseName = \"url\",\n\t\tchangeFileButtonText = \"Alterar arquivo\",\n\t\tselectFileButtonText = \"Selecionar arquivo\",\n\t\tdropFileText = \"Ou arraste e solte o arquivo aqui\",\n\t\tonChange,\n\t\tdisabled = false,\n\t} = props;\n\n\tconst { fieldErrors } = useForm();\n\tconst fieldError = fieldErrors?.[name];\n\n\tconst [value, setValue] = useState(\"\");\n\tconst [error, setError] = useState(\"\");\n\tconst [file, setFile] = useState<File | null>(null);\n\tconst [isLoading, setIsLoading] = useState(false);\n\n\tasync function handleUploadFile(file: File) {\n\t\tif (disabled) return;\n\n\t\tsetIsLoading(true);\n\t\tsetFile(file);\n\t\tsetError(\"\");\n\n\t\tconst formData = new FormData();\n\t\tformData.append(fileName, file);\n\n\t\tawait fetch(action, { method: method, body: formData })\n\t\t\t.then(async (response) => await response.json())\n\t\t\t.then((response) => {\n\t\t\t\tif (response?.error) setError(response.error);\n\t\t\t\telse setValue(response?.[fileResponseName]);\n\t\t\t\tonChange?.(response?.[fileResponseName]);\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.error(error);\n\t\t\t\tsetError(\"Erro ao enviar o arquivo\");\n\t\t\t})\n\t\t\t.finally(() => setIsLoading(false));\n\t}\n\n\tfunction handleSelectFile(file: File) {\n\t\tif (disabled) return;\n\t\thandleUploadFile(file);\n\t}\n\n\tconst errorMessage = fieldError || error;\n\n\tconst hasErrorClassName = errorMessage ? \"hasError\" : \"noHasError\";\n\tconst hasFileClassName = file ? \"hasFile\" : \"noHasFile\";\n\tconst className = `arkynFileUpload ${hasErrorClassName} ${hasFileClassName}`;\n\n\treturn (\n\t\t<FieldWrapper>\n\t\t\t{label && <FieldLabel showAsterisk={showAsterisk}>{label}</FieldLabel>}\n\n\t\t\t<div className={className}>\n\t\t\t\t<input type=\"hidden\" name={name} value={value || \"\"} />\n\n\t\t\t\t{!file && (\n\t\t\t\t\t<NoFileContent\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tisLoading={isLoading}\n\t\t\t\t\t\tacceptFile={acceptFile}\n\t\t\t\t\t\tdropFileText={dropFileText}\n\t\t\t\t\t\thandleSelectFile={handleSelectFile}\n\t\t\t\t\t\tselectFileButtonText={selectFileButtonText}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{file && (\n\t\t\t\t\t<HasFileContent\n\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\tisLoading={isLoading}\n\t\t\t\t\t\tacceptFile={acceptFile}\n\t\t\t\t\t\tfile={file}\n\t\t\t\t\t\thandleSelectFile={handleSelectFile}\n\t\t\t\t\t\tchangeFileButtonText={changeFileButtonText}\n\t\t\t\t\t\treSendFile={\n\t\t\t\t\t\t\terrorMessage && file ? () => handleUploadFile(file) : undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\n\t\t\t{errorMessage && <FieldError>{errorMessage}</FieldError>}\n\t\t</FieldWrapper>\n\t);\n}\n\nexport { FileUpload };\n"],"mappings":";;;;;;;;;;AA8EA,SAAS,EAAW,GAAwB;CAC3C,IAAM,EACL,SACA,UACA,kBAAe,IACf,WACA,cAAW,QACX,YAAS,QACT,gBAAa,KACb,sBAAmB,OACnB,0BAAuB,mBACvB,0BAAuB,sBACvB,kBAAe,qCACf,aACA,cAAW,OACR,GAEE,EAAE,mBAAgB,EAAQ,GAC1B,IAAa,IAAc,IAE3B,CAAC,GAAO,KAAY,EAAS,EAAE,GAC/B,CAAC,GAAO,KAAY,EAAS,EAAE,GAC/B,CAAC,GAAM,KAAW,EAAsB,IAAI,GAC5C,CAAC,GAAW,KAAgB,EAAS,EAAK;CAEhD,eAAe,EAAiB,GAAY;EAC3C,IAAI,GAAU;EAId,AAFA,EAAa,EAAI,GACjB,EAAQ,CAAI,GACZ,EAAS,EAAE;EAEX,IAAM,IAAW,IAAI,SAAS;EAG9B,AAFA,EAAS,OAAO,GAAU,CAAI,GAE9B,MAAM,MAAM,GAAQ;GAAU;GAAQ,MAAM;EAAS,CAAC,CAAC,CACrD,KAAK,OAAO,MAAa,MAAM,EAAS,KAAK,CAAC,CAAC,CAC/C,MAAM,MAAa;GAGnB,AAFI,GAAU,QAAO,EAAS,EAAS,KAAK,IACvC,EAAS,IAAW,EAAiB,GAC1C,IAAW,IAAW,EAAiB;EACxC,CAAC,CAAC,CACD,OAAO,MAAU;GAEjB,AADA,QAAQ,MAAM,CAAK,GACnB,EAAS,0BAA0B;EACpC,CAAC,CAAC,CACD,cAAc,EAAa,EAAK,CAAC;CACpC;CAEA,SAAS,EAAiB,GAAY;EACjC,KACJ,EAAiB,CAAI;CACtB;CAEA,IAAM,IAAe,KAAc;CAMnC,OACC,kBAAC,GAAD,EAAA,UAAA;EACE,KAAS,kBAAC,GAAD;GAA0B;aAAe;EAAkB,CAAA;EAErE,kBAAC,OAAD;GAAgB,WAAA,mBARQ,IAAe,aAAa,aAEC,GAD9B,IAAO,YAAY;aAO1C;IACC,kBAAC,SAAD;KAAO,MAAK;KAAe;KAAM,OAAO,KAAS;IAAK,CAAA;IAErD,CAAC,KACD,kBAAC,GAAD;KACW;KACC;KACC;KACE;KACI;KACI;IACtB,CAAA;IAGD,KACA,kBAAC,GAAD;KACW;KACC;KACC;KACN;KACY;KACI;KACtB,YACC,KAAgB,UAAa,EAAiB,CAAI,IAAI,KAAA;IAEvD,CAAA;GAEE;;EAEJ,KAAgB,kBAAC,GAAD,EAAA,UAAa,EAAyB,CAAA;CAC1C,EAAA,CAAA;AAEhB"}
@@ -0,0 +1,38 @@
1
+ import { Button as e } from "../../button/index.js";
2
+ /* empty css */
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ //#region src/components/fileUpload/noFileContent/index.tsx
5
+ function r(r) {
6
+ let { dropFileText: i, isLoading: a, acceptFile: o, handleSelectFile: s, selectFileButtonText: c, disabled: l } = r;
7
+ function u(e) {
8
+ if (l) return;
9
+ e.preventDefault();
10
+ let t = e.dataTransfer.files[0];
11
+ t && s(t);
12
+ }
13
+ function d() {
14
+ if (l) return;
15
+ let e = document.createElement("input");
16
+ e.type = "file", e.accept = o, e.onchange = (e) => {
17
+ let t = e.target.files?.[0];
18
+ t && s(t);
19
+ }, e.click();
20
+ }
21
+ return /* @__PURE__ */ n("div", {
22
+ onDrop: u,
23
+ className: "arkynFileUploadNoFileContent",
24
+ children: [/* @__PURE__ */ t(e, {
25
+ isLoading: a,
26
+ onClick: d,
27
+ variant: "ghost",
28
+ size: "sm",
29
+ type: "button",
30
+ disabled: l,
31
+ children: c
32
+ }), /* @__PURE__ */ t("p", { children: i })]
33
+ });
34
+ }
35
+ //#endregion
36
+ export { r as NoFileContent };
37
+
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/fileUpload/noFileContent/index.tsx"],"sourcesContent":["import type { DragEvent } from \"react\";\n\nimport { Button } from \"../../button\";\nimport \"./styles.css\";\n\ntype NoFileContentProps = {\n\tdisabled: boolean;\n\tacceptFile: string;\n\tisLoading: boolean;\n\tselectFileButtonText: string;\n\tdropFileText: string;\n\thandleSelectFile: (file: File) => void;\n};\n\nfunction NoFileContent(props: NoFileContentProps) {\n\tconst {\n\t\tdropFileText,\n\t\tisLoading,\n\t\tacceptFile,\n\t\thandleSelectFile,\n\t\tselectFileButtonText,\n\t\tdisabled,\n\t} = props;\n\n\tfunction handleDrop(event: DragEvent<HTMLDivElement>) {\n\t\tif (disabled) return;\n\n\t\tevent.preventDefault();\n\t\tconst file = event.dataTransfer.files[0];\n\t\tif (file) handleSelectFile(file);\n\t}\n\n\tfunction handleClick() {\n\t\tif (disabled) return;\n\n\t\tconst input = document.createElement(\"input\");\n\n\t\tinput.type = \"file\";\n\t\tinput.accept = acceptFile;\n\n\t\tinput.onchange = (event) => {\n\t\t\tconst file = (event.target as HTMLInputElement).files?.[0];\n\t\t\tif (file) handleSelectFile(file);\n\t\t};\n\n\t\tinput.click();\n\t}\n\n\treturn (\n\t\t<div onDrop={handleDrop} className=\"arkynFileUploadNoFileContent\">\n\t\t\t<Button\n\t\t\t\tisLoading={isLoading}\n\t\t\t\tonClick={handleClick}\n\t\t\t\tvariant=\"ghost\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\ttype=\"button\"\n\t\t\t\tdisabled={disabled}\n\t\t\t>\n\t\t\t\t{selectFileButtonText}\n\t\t\t</Button>\n\n\t\t\t<p>{dropFileText}</p>\n\t\t</div>\n\t);\n}\n\nexport { NoFileContent };\n"],"mappings":";;;;AAcA,SAAS,EAAc,GAA2B;CACjD,IAAM,EACL,iBACA,cACA,eACA,qBACA,yBACA,gBACG;CAEJ,SAAS,EAAW,GAAkC;EACrD,IAAI,GAAU;EAEd,EAAM,eAAe;EACrB,IAAM,IAAO,EAAM,aAAa,MAAM;EACtC,AAAI,KAAM,EAAiB,CAAI;CAChC;CAEA,SAAS,IAAc;EACtB,IAAI,GAAU;EAEd,IAAM,IAAQ,SAAS,cAAc,OAAO;EAU5C,AARA,EAAM,OAAO,QACb,EAAM,SAAS,GAEf,EAAM,YAAY,MAAU;GAC3B,IAAM,IAAQ,EAAM,OAA4B,QAAQ;GACxD,AAAI,KAAM,EAAiB,CAAI;EAChC,GAEA,EAAM,MAAM;CACb;CAEA,OACC,kBAAC,OAAD;EAAK,QAAQ;EAAY,WAAU;YAAnC,CACC,kBAAC,GAAD;GACY;GACX,SAAS;GACT,SAAQ;GACR,MAAK;GACL,MAAK;GACK;aAET;EACM,CAAA,GAER,kBAAC,KAAD,EAAA,UAAI,EAAgB,CAAA,CAChB;;AAEP"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynFileUploadNoFileContent{flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;height:100%;display:flex}.arkynFileUploadNoFileContent>p{text-align:center;white-space:nowrap;color:var(--text-body,#52525b);padding:0 24px;font-size:12px;font-weight:400;line-height:12px}}
@@ -0,0 +1,19 @@
1
+ @layer arkyn{.arkynFileUpload{border-width:1px;border-color:var(--border,#e2e8f0);background:var(--input-background,#fafafa);border-radius:8px;outline:1px solid #0000;width:100%;max-width:475px;height:127px}.arkynFileUpload.hasFile{border-style:solid}.arkynFileUpload.noHasFile{border-style:dashed}.arkynFileUpload.hasError{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}}
2
+
3
+ @layer arkyn{.arkynFieldError{color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:12px}}
4
+
5
+ @layer arkyn{.arkynFieldLabel{color:var(--text-body,#52525b);font-size:14px;font-weight:600;line-height:19.07px}.arkynFieldLabel.asteriskTrue:before{content:"* ";text-align:left;color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:16.34px}}
6
+
7
+ @layer arkyn{.arkynFieldWrapper{gap:6px;height:max-content;display:flex}.arkynFieldWrapper.horizontal{flex-direction:row;align-items:center}.arkynFieldWrapper.horizontalReverse{flex-direction:row-reverse;align-items:center;margin-right:auto}.arkynFieldWrapper.vertical{flex-direction:column;align-items:flex-start}}
8
+
9
+ @layer arkyn{.arkynFileUploadHasFileContent{flex-direction:column;gap:16px;width:100%;height:100%;padding:16px;display:flex}.arkynFileUploadFileContainer{align-items:center;gap:8px;display:flex}.arkynFileUploadFileContainer svg{min-width:26px;min-height:26px;color:var(--text-heading,#09090b)}.arkynFileUploadFileContainer p{white-space:nowrap;text-overflow:ellipsis;text-align:left;color:var(--text-body,#52525b);font-size:14px;font-weight:400;overflow:hidden}.arkynFileUploadButtonsContainer{justify-content:end;align-items:center;gap:8px;display:flex}}
10
+
11
+ @layer arkyn{.arkynButton{background:0 0;border:1px solid #0000;outline:1px solid #0000;position:relative}.arkynButton:hover{cursor:pointer;filter:brightness(.95);transition:all .3s}html.dark .arkynButton:hover{cursor:pointer;filter:brightness(1.2)}.arkynButton:disabled{cursor:not-allowed;opacity:.5}.arkynButton .arkynButtonContent{white-space:nowrap;justify-content:center;align-items:center;display:flex}.arkynButton .arkynButtonSpinner{white-space:nowrap;opacity:0;justify-content:center;align-items:center;display:flex}.arkynButton.solid{color:var(--white,#fff)}.arkynButton.solid.primary{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.solid.secondary{background-color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.solid.danger{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.solid.success{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.solid.warning{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.solid.info{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.outline{background-color:var(--background-underground,#fafafa);border-color:var(--border,#e2e8f0)}.arkynButton.outline.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.outline.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.outline.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.outline.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.outline.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.outline.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.ghost.primary{color:rgb(var(--spotlight-primary,17, 109, 220));background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynButton.ghost.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139));background-color:rgb(var(--spotlight-secondary-foreground,250, 250, 250))}.arkynButton.ghost.danger{color:rgb(var(--spotlight-danger,244, 63, 94));background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynButton.ghost.success{color:rgb(var(--spotlight-success,16, 185, 129));background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynButton.ghost.warning{color:rgb(var(--spotlight-warning,249, 115, 22));background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynButton.ghost.info{color:rgb(var(--spotlight-info,14, 165, 233));background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynButton.invisible.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.invisible.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.invisible.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.invisible.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.invisible.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.invisible.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.lg{border-radius:8px;height:44px;padding:0 20px;font-size:14px;font-weight:600;line-height:14px}.arkynButton.lg .arkynButtonContent,.arkynButton.lg .arkynButtonSpinner{gap:16px}.arkynButton.md{border-radius:8px;gap:16px;height:40px;padding:0 16px;font-size:14px;font-weight:600;line-height:14px}.arkynButton.md .arkynButtonContent,.arkynButton.md .arkynButtonSpinner{gap:14px}.arkynButton.sm{border-radius:6px;height:32px;padding:0 16px;font-size:12px;font-weight:600;line-height:12px}.arkynButton.sm .arkynButtonContent,.arkynButton.sm .arkynButtonSpinner{gap:12px}.arkynButton.xs{border-radius:4px;height:24px;padding:0 16px;font-size:10px;font-weight:600;line-height:10px}.arkynButton.xs .arkynButtonContent,.arkynButton.xs .arkynButtonSpinner{gap:8px}.arkynButton .arkynButtonSpinner>svg{animation:2s linear infinite spin}.arkynButton.loadingTextFalse .arkynButtonSpinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arkynButton.loadingTextTrue .arkynButtonSpinner{max-height:0}.arkynButton.loadingTrue .arkynButtonContent{opacity:0;max-height:0}.arkynButton.loadingTrue .arkynButtonSpinner{opacity:1;max-height:unset}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
12
+
13
+ @layer arkyn{.arkynDivider{background-color:var(--border,#e2e8f0);flex:1;display:block}.arkynDivider.horizontal{width:100%;min-height:1px;max-height:1px}.arkynDivider.vertical{min-width:1px;max-width:1px;height:100%}}
14
+
15
+ @layer arkyn{.arkynIconButton{background:0 0;border:1px solid #0000;outline:1px solid #0000;position:relative}.arkynIconButton:hover{cursor:pointer;filter:brightness(.9);transition:all .15s ease-out}html.dark .arkynIconButton:hover{cursor:pointer;filter:brightness(1.2)}.arkynIconButton:disabled{cursor:not-allowed;opacity:.5}.arkynIconButtonContent{justify-content:center;align-items:center;display:flex}.arkynIconButton.solid{color:var(--white,#fff)}.arkynIconButton.solid.primary{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.solid.secondary{background-color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.solid.danger{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.solid.success{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.solid.warning{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.solid.info{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.outline{background-color:var(--background-underground,#fafafa);border-color:var(--border,#e2e8f0)}.arkynIconButton.outline.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.outline.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.outline.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.outline.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.outline.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.outline.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.ghost:hover{filter:brightness(.8)}.arkynIconButton.ghost.primary{color:rgb(var(--spotlight-primary,17, 109, 220));background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynIconButton.ghost.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139));background-color:rgb(var(--spotlight-secondary-foreground,250, 250, 250))}.arkynIconButton.ghost.danger{color:rgb(var(--spotlight-danger,244, 63, 94));background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynIconButton.ghost.success{color:rgb(var(--spotlight-success,16, 185, 129));background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynIconButton.ghost.warning{color:rgb(var(--spotlight-warning,249, 115, 22));background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynIconButton.ghost.info{color:rgb(var(--spotlight-info,14, 165, 233));background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynIconButton.invisible.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.invisible.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.invisible.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.invisible.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.invisible.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.invisible.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.lg{border-radius:6px;width:44px;height:44px}.arkynIconButton.md{border-radius:6px;width:40px;height:40px}.arkynIconButton.sm{border-radius:6px;width:32px;height:32px}.arkynIconButton.xs{border-radius:4px;width:24px;height:24px}.arkynIconButtonSpinner{opacity:0;justify-content:center;align-items:center;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arkynIconButtonSpinner>svg{animation:2s linear infinite spin}.arkynIconButton.loadingTrue .arkynIconButtonSpinner{opacity:1}.arkynIconButton.loadingTrue .arkynIconButtonContent{opacity:0}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
16
+
17
+ @layer arkyn{.arkynTooltip{display:block;position:relative}.arkynTooltipText{visibility:hidden;opacity:0;white-space:nowrap;color:var(--tooltip-text,#fafafa);background-color:var(--tooltip-background,#27272a);z-index:9999;border-radius:4px;justify-content:center;align-items:center;font-weight:400;transition:all .15s ease-out;display:flex;position:absolute;transform:translate(-50%,-50%)}.arkynTooltip.lg .arkynTooltipText{padding:8px 12px;font-size:14px;line-height:130%}.arkynTooltip.md .arkynTooltipText{padding:8px 12px;font-size:12px;line-height:130%}.arkynTooltip:hover .arkynTooltipText{opacity:1;visibility:visible}.arkynTooltip.top .arkynTooltipText{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.arkynTooltip.top .arkynTooltipText:before{content:"";border-style:solid;border-color:var(--tooltip-background,#27272a) transparent;border-width:6px 6px 0;position:absolute;top:100%;bottom:20px;left:50%;transform:translate(-50%)}.arkynTooltip.left .arkynTooltipText{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.arkynTooltip.left .arkynTooltipText:before{content:"";border-style:solid;border-color:transparent var(--tooltip-background,#27272a);border-width:6px 0 6px 6px;position:absolute;top:50%;left:100%;transform:translateY(-50%)}.arkynTooltip.right .arkynTooltipText{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.arkynTooltip.right .arkynTooltipText:before{content:"";border-style:solid;border-color:transparent var(--tooltip-background,#27272a);border-width:6px 6px 6px 0;position:absolute;top:50%;left:0;transform:translate(-100%,-50%)}.arkynTooltip.bottom .arkynTooltipText{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.arkynTooltip.bottom .arkynTooltipText:before{content:"";border-style:solid;border-color:var(--tooltip-background,#27272a) transparent;border-width:0 6px 6px;position:absolute;top:0;left:50%;transform:translate(-50%,-100%)}}
18
+
19
+ @layer arkyn{.arkynFileUploadNoFileContent{flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;height:100%;display:flex}.arkynFileUploadNoFileContent>p{text-align:center;white-space:nowrap;color:var(--text-body,#52525b);padding:0 24px;font-size:12px;font-weight:400;line-height:12px}}
@@ -0,0 +1,37 @@
1
+ import { ViewService as e } from "./_viewService.js";
2
+ import { createContext as t, useContext as n, useState as r } from "react";
3
+ import { jsx as i } from "react/jsx-runtime";
4
+ //#region src/components/fullCalendar/_fullCalendarProvider.tsx
5
+ var a = t({});
6
+ function o() {
7
+ return n(a);
8
+ }
9
+ function s(t) {
10
+ let { blockedTimestamps: n, children: o, events: s, defaultViewValue: c = /* @__PURE__ */ new Date(), language: l = "pt-BR", onChangeView: u, onClickDate: d, viewValue: f } = t, p = new e(), m = p.listHours([8, 18]), [h, g] = r(c), _ = f || h;
11
+ function v(e) {
12
+ u && u(e), g(e);
13
+ }
14
+ return /* @__PURE__ */ i(a.Provider, {
15
+ value: {
16
+ events: s,
17
+ blockedTimestamps: n,
18
+ viewDate: _,
19
+ listHours: m,
20
+ listWeek: p.listWeek(_, l),
21
+ listMonthlyMatrix: p.listMonthlyMatrix(_),
22
+ listWeeklyMatrix: p.listWeeklyMatrix(_, m),
23
+ nextMonth: () => p.nextMonth(_, v),
24
+ nextWeek: () => p.nextWeek(_, v),
25
+ nextDay: () => p.nextDay(_, v),
26
+ previousMonth: () => p.previousMonth(_, v),
27
+ previousWeek: () => p.previousWeek(_, v),
28
+ previousDay: () => p.previousDay(_, v),
29
+ onClickDate: d
30
+ },
31
+ children: o
32
+ });
33
+ }
34
+ //#endregion
35
+ export { s as FullCalendarProvider, o as useFullCalendar };
36
+
37
+ //# sourceMappingURL=_fullCalendarProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_fullCalendarProvider.js","names":[],"sources":["../../../../src/components/fullCalendar/_fullCalendarProvider.tsx"],"sourcesContent":["import { createContext, type ReactNode, useContext, useState } from \"react\";\nimport {\n\ttype FullCalendarMatrix,\n\ttype FullCalendarWeekMatrix,\n\tViewService,\n} from \"./_viewService\";\n\ntype FullCalendarEvent = {\n\tinitialDate: Date;\n\tendDate?: Date;\n\ttitle: string;\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tdata?: any;\n\tscheme?: \"primary\" | \"success\" | \"warning\" | \"danger\" | \"info\";\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tonClick?: (data: any) => void;\n};\n\ntype BlockTimestamp = {\n\tinitialDate: Date;\n\tendDate: Date;\n};\n\ntype FullCalendarContextProps = {\n\tevents: FullCalendarEvent[];\n\tblockedTimestamps: BlockTimestamp[];\n\tviewDate: Date;\n\tlistHours: number[];\n\tlistWeek: string[];\n\tlistMonthlyMatrix: FullCalendarMatrix;\n\tlistWeeklyMatrix: FullCalendarWeekMatrix;\n\tnextMonth: () => void;\n\tnextWeek: () => void;\n\tnextDay: () => void;\n\tpreviousMonth: () => void;\n\tpreviousWeek: () => void;\n\tpreviousDay: () => void;\n\tonClickDate?: (date: Date) => void;\n};\n\ntype FullCalendarProviderProps = {\n\tevents: FullCalendarEvent[];\n\tblockedTimestamps: BlockTimestamp[];\n\tchildren: ReactNode;\n\tlanguage?: string;\n\tviewValue?: Date;\n\tdefaultViewValue?: Date;\n\tonChangeView?: (date: Date) => void;\n\tonClickDate?: (date: Date) => void;\n};\n\nconst FullCalendarContext = createContext({} as FullCalendarContextProps);\n\nfunction useFullCalendar() {\n\treturn useContext(FullCalendarContext);\n}\n\nfunction FullCalendarProvider(props: FullCalendarProviderProps) {\n\tconst {\n\t\tblockedTimestamps,\n\t\tchildren,\n\t\tevents,\n\t\tdefaultViewValue = new Date(),\n\t\tlanguage = \"pt-BR\",\n\t\tonChangeView,\n\t\tonClickDate,\n\t\tviewValue,\n\t} = props;\n\n\tconst viewService = new ViewService();\n\tconst listHours = viewService.listHours([8, 18]);\n\n\tconst [rawViewDate, rawSetViewDate] = useState(defaultViewValue);\n\tconst viewDate = viewValue || rawViewDate;\n\n\tfunction setViewDate(date: Date) {\n\t\tif (onChangeView) onChangeView(date);\n\t\trawSetViewDate(date);\n\t}\n\n\treturn (\n\t\t<FullCalendarContext.Provider\n\t\t\tvalue={{\n\t\t\t\tevents,\n\t\t\t\tblockedTimestamps,\n\t\t\t\tviewDate,\n\t\t\t\tlistHours,\n\t\t\t\tlistWeek: viewService.listWeek(viewDate, language),\n\t\t\t\tlistMonthlyMatrix: viewService.listMonthlyMatrix(viewDate),\n\t\t\t\tlistWeeklyMatrix: viewService.listWeeklyMatrix(viewDate, listHours),\n\t\t\t\tnextMonth: () => viewService.nextMonth(viewDate, setViewDate),\n\t\t\t\tnextWeek: () => viewService.nextWeek(viewDate, setViewDate),\n\t\t\t\tnextDay: () => viewService.nextDay(viewDate, setViewDate),\n\t\t\t\tpreviousMonth: () => viewService.previousMonth(viewDate, setViewDate),\n\t\t\t\tpreviousWeek: () => viewService.previousWeek(viewDate, setViewDate),\n\t\t\t\tpreviousDay: () => viewService.previousDay(viewDate, setViewDate),\n\t\t\t\tonClickDate,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</FullCalendarContext.Provider>\n\t);\n}\n\nexport { FullCalendarProvider, useFullCalendar };\n"],"mappings":";;;;AAmDA,IAAM,IAAsB,EAAc,CAAC,CAA6B;AAExE,SAAS,IAAkB;CAC1B,OAAO,EAAW,CAAmB;AACtC;AAEA,SAAS,EAAqB,GAAkC;CAC/D,IAAM,EACL,sBACA,aACA,WACA,sCAAmB,IAAI,KAAK,GAC5B,cAAW,SACX,iBACA,gBACA,iBACG,GAEE,IAAc,IAAI,EAAY,GAC9B,IAAY,EAAY,UAAU,CAAC,GAAG,EAAE,CAAC,GAEzC,CAAC,GAAa,KAAkB,EAAS,CAAgB,GACzD,IAAW,KAAa;CAE9B,SAAS,EAAY,GAAY;EAEhC,AADI,KAAc,EAAa,CAAI,GACnC,EAAe,CAAI;CACpB;CAEA,OACC,kBAAC,EAAoB,UAArB;EACC,OAAO;GACN;GACA;GACA;GACA;GACA,UAAU,EAAY,SAAS,GAAU,CAAQ;GACjD,mBAAmB,EAAY,kBAAkB,CAAQ;GACzD,kBAAkB,EAAY,iBAAiB,GAAU,CAAS;GAClE,iBAAiB,EAAY,UAAU,GAAU,CAAW;GAC5D,gBAAgB,EAAY,SAAS,GAAU,CAAW;GAC1D,eAAe,EAAY,QAAQ,GAAU,CAAW;GACxD,qBAAqB,EAAY,cAAc,GAAU,CAAW;GACpE,oBAAoB,EAAY,aAAa,GAAU,CAAW;GAClE,mBAAmB,EAAY,YAAY,GAAU,CAAW;GAChE;EACD;EAEC;CAC4B,CAAA;AAEhC"}
@@ -0,0 +1,103 @@
1
+ import { formatToCapitalizeFirstWordLetter as e } from "@arkyn/shared";
2
+ //#region src/components/fullCalendar/_viewService.ts
3
+ var t = class {
4
+ capitalize(t) {
5
+ return e(t);
6
+ }
7
+ listHours(e) {
8
+ let [t, n] = e, r = [];
9
+ for (let e = t * 60; e <= n * 60; e += 30) r.push(e);
10
+ return r;
11
+ }
12
+ formatHourLabel(e) {
13
+ let t = Math.floor(e / 60), n = e % 60;
14
+ return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
15
+ }
16
+ getStartOfWeek(e) {
17
+ let t = new Date(e);
18
+ return t.setHours(0, 0, 0, 0), t.setDate(t.getDate() - t.getDay()), t;
19
+ }
20
+ listWeek(e, t) {
21
+ let n = [], r = this.getStartOfWeek(e);
22
+ for (let e = 0; e < 7; e++) {
23
+ let i = new Date(r);
24
+ i.setDate(r.getDate() + e);
25
+ let a = i.toLocaleDateString(t, { weekday: "short" });
26
+ n.push(a);
27
+ }
28
+ return n;
29
+ }
30
+ listWeeklyMatrix(e, t) {
31
+ let n = this.getStartOfWeek(e), r = e.getMonth();
32
+ return t.map((t) => Array.from({ length: 7 }, (i, a) => {
33
+ let o = new Date(n);
34
+ o.setDate(n.getDate() + a);
35
+ let s = "current";
36
+ return (o.getMonth() < r || o.getFullYear() < e.getFullYear()) && (s = "previous"), (o.getMonth() > r || o.getFullYear() > e.getFullYear()) && (s = "next"), {
37
+ day: o.getDate(),
38
+ month: o.getMonth(),
39
+ year: o.getFullYear(),
40
+ dayOwner: s,
41
+ timeInMinutes: t
42
+ };
43
+ }));
44
+ }
45
+ listMonthlyMatrix(e) {
46
+ let t = e.getFullYear(), n = e.getMonth(), r = new Date(t, n, 1).getDay(), i = new Date(t, n + 1, 0).getDate(), a = new Date(t, n, 0).getDate(), o = Math.ceil((r + i) / 7) * 7, s = [], c = 1, l = 1;
47
+ for (let e = 0; e < o; e++) {
48
+ let o = Math.floor(e / 7);
49
+ if (s[o] || (s[o] = []), e < r) {
50
+ let i = a - (r - e - 1), c = n === 0 ? 11 : n - 1, l = n === 0 ? t - 1 : t;
51
+ s[o].push({
52
+ day: i,
53
+ month: c,
54
+ year: l,
55
+ dayOwner: "previous"
56
+ });
57
+ } else if (c <= i) s[o].push({
58
+ day: c,
59
+ month: n,
60
+ year: t,
61
+ dayOwner: "current"
62
+ }), c++;
63
+ else {
64
+ let e = n === 11 ? 0 : n + 1, r = n === 11 ? t + 1 : t;
65
+ s[o].push({
66
+ day: l,
67
+ month: e,
68
+ year: r,
69
+ dayOwner: "next"
70
+ }), l++;
71
+ }
72
+ }
73
+ return s;
74
+ }
75
+ nextMonth(e, t) {
76
+ let n = new Date(e);
77
+ n.setMonth(n.getMonth() + 1), t(n);
78
+ }
79
+ nextWeek(e, t) {
80
+ let n = new Date(e);
81
+ n.setDate(n.getDate() + 7), t(n);
82
+ }
83
+ nextDay(e, t) {
84
+ let n = new Date(e);
85
+ n.setDate(n.getDate() + 1), t(n);
86
+ }
87
+ previousMonth(e, t) {
88
+ let n = new Date(e);
89
+ n.setMonth(n.getMonth() - 1), t(n);
90
+ }
91
+ previousWeek(e, t) {
92
+ let n = new Date(e);
93
+ n.setDate(n.getDate() - 7), t(n);
94
+ }
95
+ previousDay(e, t) {
96
+ let n = new Date(e);
97
+ n.setDate(n.getDate() - 1), t(n);
98
+ }
99
+ };
100
+ //#endregion
101
+ export { t as ViewService };
102
+
103
+ //# sourceMappingURL=_viewService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_viewService.js","names":[],"sources":["../../../../src/components/fullCalendar/_viewService.ts"],"sourcesContent":["import { formatToCapitalizeFirstWordLetter } from \"@arkyn/shared\";\n\ntype FullCalendarCell = {\n\tday: number;\n\tmonth: number;\n\tyear: number;\n\tdayOwner: \"previous\" | \"current\" | \"next\";\n};\n\ntype FullCalendarMatrix = FullCalendarCell[][];\ntype FullCalendarWeekCell = FullCalendarCell & {\n\ttimeInMinutes: number;\n};\n\ntype FullCalendarWeekMatrix = FullCalendarWeekCell[][];\n\nclass ViewService {\n\tcapitalize(text: string) {\n\t\treturn formatToCapitalizeFirstWordLetter(text);\n\t}\n\n\tlistHours(range: [number, number]) {\n\t\tconst [startHour, endHour] = range;\n\t\tconst hours = [];\n\n\t\tfor (\n\t\t\tlet timeInMinutes = startHour * 60;\n\t\t\ttimeInMinutes <= endHour * 60;\n\t\t\ttimeInMinutes += 30\n\t\t) {\n\t\t\thours.push(timeInMinutes);\n\t\t}\n\n\t\treturn hours;\n\t}\n\n\tformatHourLabel(timeInMinutes: number) {\n\t\tconst hour = Math.floor(timeInMinutes / 60);\n\t\tconst minutes = timeInMinutes % 60;\n\n\t\treturn `${String(hour).padStart(2, \"0\")}:${String(minutes).padStart(2, \"0\")}`;\n\t}\n\n\tgetStartOfWeek(viewDate: Date) {\n\t\tconst firstDayOfWeek = new Date(viewDate);\n\t\tfirstDayOfWeek.setHours(0, 0, 0, 0);\n\t\tfirstDayOfWeek.setDate(firstDayOfWeek.getDate() - firstDayOfWeek.getDay());\n\n\t\treturn firstDayOfWeek;\n\t}\n\n\tlistWeek(viewDate: Date, language: string) {\n\t\tconst weekDays = [];\n\t\tconst firstDayOfWeek = this.getStartOfWeek(viewDate);\n\n\t\tfor (let i = 0; i < 7; i++) {\n\t\t\tconst day = new Date(firstDayOfWeek);\n\t\t\tday.setDate(firstDayOfWeek.getDate() + i);\n\t\t\tconst dayName = day.toLocaleDateString(language, {\n\t\t\t\tweekday: \"short\",\n\t\t\t});\n\t\t\tweekDays.push(dayName);\n\t\t}\n\n\t\treturn weekDays;\n\t}\n\n\tlistWeeklyMatrix(viewDate: Date, hours: number[]): FullCalendarWeekMatrix {\n\t\tconst firstDayOfWeek = this.getStartOfWeek(viewDate);\n\t\tconst viewMonth = viewDate.getMonth();\n\n\t\treturn hours.map((hour) => {\n\t\t\treturn Array.from({ length: 7 }, (_, index) => {\n\t\t\t\tconst cellDate = new Date(firstDayOfWeek);\n\t\t\t\tcellDate.setDate(firstDayOfWeek.getDate() + index);\n\n\t\t\t\tlet dayOwner: FullCalendarCell[\"dayOwner\"] = \"current\";\n\n\t\t\t\tif (\n\t\t\t\t\tcellDate.getMonth() < viewMonth ||\n\t\t\t\t\tcellDate.getFullYear() < viewDate.getFullYear()\n\t\t\t\t) {\n\t\t\t\t\tdayOwner = \"previous\";\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\tcellDate.getMonth() > viewMonth ||\n\t\t\t\t\tcellDate.getFullYear() > viewDate.getFullYear()\n\t\t\t\t) {\n\t\t\t\t\tdayOwner = \"next\";\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tday: cellDate.getDate(),\n\t\t\t\t\tmonth: cellDate.getMonth(),\n\t\t\t\t\tyear: cellDate.getFullYear(),\n\t\t\t\t\tdayOwner,\n\t\t\t\t\ttimeInMinutes: hour,\n\t\t\t\t};\n\t\t\t});\n\t\t});\n\t}\n\n\tlistMonthlyMatrix(viewDate: Date) {\n\t\tconst year = viewDate.getFullYear();\n\t\tconst monthIndex = viewDate.getMonth();\n\n\t\tconst firstDayOfMonth = new Date(year, monthIndex, 1);\n\t\tconst firstWeekday = firstDayOfMonth.getDay();\n\n\t\tconst daysInCurrentMonth = new Date(year, monthIndex + 1, 0).getDate();\n\t\tconst daysInPreviousMonth = new Date(year, monthIndex, 0).getDate();\n\n\t\tconst totalCells = Math.ceil((firstWeekday + daysInCurrentMonth) / 7) * 7;\n\n\t\tconst weeks: FullCalendarMatrix = [];\n\t\tlet currentMonthDay = 1;\n\t\tlet nextMonthDay = 1;\n\n\t\tfor (let i = 0; i < totalCells; i++) {\n\t\t\tconst weekIndex = Math.floor(i / 7);\n\t\t\tif (!weeks[weekIndex]) weeks[weekIndex] = [];\n\n\t\t\tif (i < firstWeekday) {\n\t\t\t\tconst day = daysInPreviousMonth - (firstWeekday - i - 1);\n\t\t\t\tconst month = monthIndex === 0 ? 11 : monthIndex - 1;\n\t\t\t\tconst cellYear = monthIndex === 0 ? year - 1 : year;\n\n\t\t\t\tweeks[weekIndex].push({\n\t\t\t\t\tday,\n\t\t\t\t\tmonth,\n\t\t\t\t\tyear: cellYear,\n\t\t\t\t\tdayOwner: \"previous\",\n\t\t\t\t});\n\t\t\t} else if (currentMonthDay <= daysInCurrentMonth) {\n\t\t\t\tweeks[weekIndex].push({\n\t\t\t\t\tday: currentMonthDay,\n\t\t\t\t\tmonth: monthIndex,\n\t\t\t\t\tyear: year,\n\t\t\t\t\tdayOwner: \"current\",\n\t\t\t\t});\n\t\t\t\tcurrentMonthDay++;\n\t\t\t} else {\n\t\t\t\tconst month = monthIndex === 11 ? 0 : monthIndex + 1;\n\t\t\t\tconst cellYear = monthIndex === 11 ? year + 1 : year;\n\n\t\t\t\tweeks[weekIndex].push({\n\t\t\t\t\tday: nextMonthDay,\n\t\t\t\t\tmonth,\n\t\t\t\t\tyear: cellYear,\n\t\t\t\t\tdayOwner: \"next\",\n\t\t\t\t});\n\t\t\t\tnextMonthDay++;\n\t\t\t}\n\t\t}\n\n\t\treturn weeks;\n\t}\n\n\tnextMonth(viewDate: Date, setViewDate: (date: Date) => void) {\n\t\tconst nextViewDate = new Date(viewDate);\n\t\tnextViewDate.setMonth(nextViewDate.getMonth() + 1);\n\t\tsetViewDate(nextViewDate);\n\t}\n\n\tnextWeek(viewDate: Date, setViewDate: (date: Date) => void) {\n\t\tconst nextViewDate = new Date(viewDate);\n\t\tnextViewDate.setDate(nextViewDate.getDate() + 7);\n\t\tsetViewDate(nextViewDate);\n\t}\n\n\tnextDay(viewDate: Date, setViewDate: (date: Date) => void) {\n\t\tconst nextViewDate = new Date(viewDate);\n\t\tnextViewDate.setDate(nextViewDate.getDate() + 1);\n\t\tsetViewDate(nextViewDate);\n\t}\n\n\tpreviousMonth(viewDate: Date, setViewDate: (date: Date) => void) {\n\t\tconst nextViewDate = new Date(viewDate);\n\t\tnextViewDate.setMonth(nextViewDate.getMonth() - 1);\n\t\tsetViewDate(nextViewDate);\n\t}\n\n\tpreviousWeek(viewDate: Date, setViewDate: (date: Date) => void) {\n\t\tconst nextViewDate = new Date(viewDate);\n\t\tnextViewDate.setDate(nextViewDate.getDate() - 7);\n\t\tsetViewDate(nextViewDate);\n\t}\n\n\tpreviousDay(viewDate: Date, setViewDate: (date: Date) => void) {\n\t\tconst nextViewDate = new Date(viewDate);\n\t\tnextViewDate.setDate(nextViewDate.getDate() - 1);\n\t\tsetViewDate(nextViewDate);\n\t}\n}\n\nexport { type FullCalendarMatrix, type FullCalendarWeekMatrix, ViewService };\n"],"mappings":";;AAgBA,IAAM,IAAN,MAAkB;CACjB,WAAW,GAAc;EACxB,OAAO,EAAkC,CAAI;CAC9C;CAEA,UAAU,GAAyB;EAClC,IAAM,CAAC,GAAW,KAAW,GACvB,IAAQ,CAAC;EAEf,KACC,IAAI,IAAgB,IAAY,IAChC,KAAiB,IAAU,IAC3B,KAAiB,IAEjB,EAAM,KAAK,CAAa;EAGzB,OAAO;CACR;CAEA,gBAAgB,GAAuB;EACtC,IAAM,IAAO,KAAK,MAAM,IAAgB,EAAE,GACpC,IAAU,IAAgB;EAEhC,OAAO,GAAG,OAAO,CAAI,CAAC,CAAC,SAAS,GAAG,GAAG,EAAE,GAAG,OAAO,CAAO,CAAC,CAAC,SAAS,GAAG,GAAG;CAC3E;CAEA,eAAe,GAAgB;EAC9B,IAAM,IAAiB,IAAI,KAAK,CAAQ;EAIxC,OAHA,EAAe,SAAS,GAAG,GAAG,GAAG,CAAC,GAClC,EAAe,QAAQ,EAAe,QAAQ,IAAI,EAAe,OAAO,CAAC,GAElE;CACR;CAEA,SAAS,GAAgB,GAAkB;EAC1C,IAAM,IAAW,CAAC,GACZ,IAAiB,KAAK,eAAe,CAAQ;EAEnD,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,KAAK;GAC3B,IAAM,IAAM,IAAI,KAAK,CAAc;GACnC,EAAI,QAAQ,EAAe,QAAQ,IAAI,CAAC;GACxC,IAAM,IAAU,EAAI,mBAAmB,GAAU,EAChD,SAAS,QACV,CAAC;GACD,EAAS,KAAK,CAAO;EACtB;EAEA,OAAO;CACR;CAEA,iBAAiB,GAAgB,GAAyC;EACzE,IAAM,IAAiB,KAAK,eAAe,CAAQ,GAC7C,IAAY,EAAS,SAAS;EAEpC,OAAO,EAAM,KAAK,MACV,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAU;GAC9C,IAAM,IAAW,IAAI,KAAK,CAAc;GACxC,EAAS,QAAQ,EAAe,QAAQ,IAAI,CAAK;GAEjD,IAAI,IAAyC;GAgB7C,QAbC,EAAS,SAAS,IAAI,KACtB,EAAS,YAAY,IAAI,EAAS,YAAY,OAE9C,IAAW,cAIX,EAAS,SAAS,IAAI,KACtB,EAAS,YAAY,IAAI,EAAS,YAAY,OAE9C,IAAW,SAGL;IACN,KAAK,EAAS,QAAQ;IACtB,OAAO,EAAS,SAAS;IACzB,MAAM,EAAS,YAAY;IAC3B;IACA,eAAe;GAChB;EACD,CAAC,CACD;CACF;CAEA,kBAAkB,GAAgB;EACjC,IAAM,IAAO,EAAS,YAAY,GAC5B,IAAa,EAAS,SAAS,GAG/B,IAAe,IADO,KAAK,GAAM,GAAY,CAC9B,CAAA,CAAgB,OAAO,GAEtC,IAAqB,IAAI,KAAK,GAAM,IAAa,GAAG,CAAC,CAAC,CAAC,QAAQ,GAC/D,IAAsB,IAAI,KAAK,GAAM,GAAY,CAAC,CAAC,CAAC,QAAQ,GAE5D,IAAa,KAAK,MAAM,IAAe,KAAsB,CAAC,IAAI,GAElE,IAA4B,CAAC,GAC/B,IAAkB,GAClB,IAAe;EAEnB,KAAK,IAAI,IAAI,GAAG,IAAI,GAAY,KAAK;GACpC,IAAM,IAAY,KAAK,MAAM,IAAI,CAAC;GAGlC,IAFK,EAAM,OAAY,EAAM,KAAa,CAAC,IAEvC,IAAI,GAAc;IACrB,IAAM,IAAM,KAAuB,IAAe,IAAI,IAChD,IAAQ,MAAe,IAAI,KAAK,IAAa,GAC7C,IAAW,MAAe,IAAI,IAAO,IAAI;IAE/C,EAAM,EAAU,CAAC,KAAK;KACrB;KACA;KACA,MAAM;KACN,UAAU;IACX,CAAC;GACF,OAAO,IAAI,KAAmB,GAO7B,AANA,EAAM,EAAU,CAAC,KAAK;IACrB,KAAK;IACL,OAAO;IACD;IACN,UAAU;GACX,CAAC,GACD;QACM;IACN,IAAM,IAAQ,MAAe,KAAK,IAAI,IAAa,GAC7C,IAAW,MAAe,KAAK,IAAO,IAAI;IAQhD,AANA,EAAM,EAAU,CAAC,KAAK;KACrB,KAAK;KACL;KACA,MAAM;KACN,UAAU;IACX,CAAC,GACD;GACD;EACD;EAEA,OAAO;CACR;CAEA,UAAU,GAAgB,GAAmC;EAC5D,IAAM,IAAe,IAAI,KAAK,CAAQ;EAEtC,AADA,EAAa,SAAS,EAAa,SAAS,IAAI,CAAC,GACjD,EAAY,CAAY;CACzB;CAEA,SAAS,GAAgB,GAAmC;EAC3D,IAAM,IAAe,IAAI,KAAK,CAAQ;EAEtC,AADA,EAAa,QAAQ,EAAa,QAAQ,IAAI,CAAC,GAC/C,EAAY,CAAY;CACzB;CAEA,QAAQ,GAAgB,GAAmC;EAC1D,IAAM,IAAe,IAAI,KAAK,CAAQ;EAEtC,AADA,EAAa,QAAQ,EAAa,QAAQ,IAAI,CAAC,GAC/C,EAAY,CAAY;CACzB;CAEA,cAAc,GAAgB,GAAmC;EAChE,IAAM,IAAe,IAAI,KAAK,CAAQ;EAEtC,AADA,EAAa,SAAS,EAAa,SAAS,IAAI,CAAC,GACjD,EAAY,CAAY;CACzB;CAEA,aAAa,GAAgB,GAAmC;EAC/D,IAAM,IAAe,IAAI,KAAK,CAAQ;EAEtC,AADA,EAAa,QAAQ,EAAa,QAAQ,IAAI,CAAC,GAC/C,EAAY,CAAY;CACzB;CAEA,YAAY,GAAgB,GAAmC;EAC9D,IAAM,IAAe,IAAI,KAAK,CAAQ;EAEtC,AADA,EAAa,QAAQ,EAAa,QAAQ,IAAI,CAAC,GAC/C,EAAY,CAAY;CACzB;AACD"}
@@ -0,0 +1,13 @@
1
+ /* empty css */
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/fullCalendar/dayCalendar/dayCalendarContainer/index.tsx
4
+ function t({ children: t }) {
5
+ return /* @__PURE__ */ e("div", {
6
+ className: "arkynDayCalendarContainer",
7
+ children: t
8
+ });
9
+ }
10
+ //#endregion
11
+ export { t as DayCalendarContainer };
12
+
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/fullCalendar/dayCalendar/dayCalendarContainer/index.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype DayCalendarContainerProps = {\n\tchildren: ReactNode;\n};\n\nfunction DayCalendarContainer({ children }: DayCalendarContainerProps) {\n\treturn <div className=\"arkynDayCalendarContainer\">{children}</div>;\n}\n\nexport { DayCalendarContainer };\n"],"mappings":";;;AAOA,SAAS,EAAqB,EAAE,eAAuC;CACtE,OAAO,kBAAC,OAAD;EAAK,WAAU;EAA6B;CAAc,CAAA;AAClE"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynDayCalendarContainer{background-color:var(--background-foreground,#fff);border:1px solid var(--border,#e2e8f0);border-radius:8px}}
@@ -0,0 +1,73 @@
1
+ import { useFullCalendar as e } from "../../_fullCalendarProvider.js";
2
+ /* empty css */
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ //#region src/components/fullCalendar/dayCalendar/dayCalendarEvent/index.tsx
5
+ var r = 30, i = 205;
6
+ function a(a) {
7
+ let { events: o, viewDate: s } = e(), c = s.getDate(), l = s.getMonth(), u = s.getFullYear(), d = o.map((e, t) => ({
8
+ event: e,
9
+ sourceIndex: t
10
+ })).filter(({ event: e }) => e.initialDate.getDate() === c && e.initialDate.getMonth() === l && e.initialDate.getFullYear() === u).sort((e, t) => {
11
+ let n = e.event.initialDate.getTime(), i = t.event.initialDate.getTime();
12
+ if (n !== i) return n - i;
13
+ let a = e.event.endDate?.getTime() ?? n + r * 6e4, o = t.event.endDate?.getTime() ?? i + r * 6e4;
14
+ return a === o ? e.sourceIndex - t.sourceIndex : a - o;
15
+ }), f = new Map(d.map((e, t) => [e.sourceIndex, t])), p = d.filter(({ event: e }) => {
16
+ let t = Math.floor(a.timeInMinutes / 60), n = a.timeInMinutes % 60;
17
+ function r() {
18
+ let r = e.initialDate.getHours(), i = e.initialDate.getMinutes();
19
+ if (r !== t) return !1;
20
+ if (n === 0) return i < 30 && i >= 0;
21
+ if (n === 30) return i >= 30 && i < 60;
22
+ }
23
+ return r() && e.initialDate.getDate() === c && e.initialDate.getMonth() === l && e.initialDate.getFullYear() === u;
24
+ });
25
+ if (p.length === 0) return null;
26
+ function m(e, t) {
27
+ return `${c}-${l}-${u}-${t}-${e}`;
28
+ }
29
+ function h(e) {
30
+ let t = e.getHours(), n = e.getMinutes();
31
+ return n === 0 ? `${t}h` : `${t}h${n}`;
32
+ }
33
+ function g(e) {
34
+ let t = e.initialDate.getHours() * 60 + e.initialDate.getMinutes(), n = e.endDate ? e.endDate.getHours() * 60 + e.endDate.getMinutes() : t + r;
35
+ return {
36
+ startMinutes: t,
37
+ endMinutes: Math.max(n, t + 1)
38
+ };
39
+ }
40
+ function _(e, t) {
41
+ let n = g(e), r = f.get(t);
42
+ return r == null ? 0 : d.reduce((e, t, i) => {
43
+ if (i >= r) return e;
44
+ let a = g(t.event);
45
+ return a.startMinutes < n.endMinutes && a.endMinutes > n.startMinutes ? e + 1 : e;
46
+ }, 0);
47
+ }
48
+ function v(e, t) {
49
+ let { startMinutes: n, endMinutes: o } = g(e), s = n - a.timeInMinutes, c = Math.max(o - n, 1), l = s / r * 100, u = c / r * 100, d = _(e, t) * i;
50
+ return {
51
+ top: `${l}%`,
52
+ height: `${u}%`,
53
+ left: `${d}px`
54
+ };
55
+ }
56
+ function y(e, t) {
57
+ e.stopPropagation(), t.onClick?.(t.data);
58
+ }
59
+ return p.map(({ event: e, sourceIndex: r }, i) => /* @__PURE__ */ n("div", {
60
+ className: `arkynDayCalendarEvent ${e?.scheme || "primary"}`,
61
+ style: v(e, r),
62
+ onClick: (t) => y(t, e),
63
+ children: [/* @__PURE__ */ n("strong", { children: [
64
+ h(e.initialDate),
65
+ " ",
66
+ e?.endDate && `- ${h(e.endDate)}`
67
+ ] }), /* @__PURE__ */ t("p", { children: e.title })]
68
+ }, m(i, r)));
69
+ }
70
+ //#endregion
71
+ export { a as DayCalendarEvent };
72
+
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../src/components/fullCalendar/dayCalendar/dayCalendarEvent/index.tsx"],"sourcesContent":["import { useFullCalendar } from \"../../_fullCalendarProvider\";\nimport \"./styles.css\";\n\ntype DayCalendarEventProps = {\n\ttimeInMinutes: number;\n};\n\nconst SLOT_DURATION_MINUTES = 30;\nconst OVERLAP_OFFSET_PX = 205;\n\nfunction DayCalendarEvent(props: DayCalendarEventProps) {\n\tconst { events, viewDate } = useFullCalendar();\n\n\tconst day = viewDate.getDate();\n\tconst month = viewDate.getMonth();\n\tconst year = viewDate.getFullYear();\n\n\tconst dayEvents = events\n\t\t.map((event, sourceIndex) => ({ event, sourceIndex }))\n\t\t.filter(({ event }) => {\n\t\t\treturn (\n\t\t\t\tevent.initialDate.getDate() === day &&\n\t\t\t\tevent.initialDate.getMonth() === month &&\n\t\t\t\tevent.initialDate.getFullYear() === year\n\t\t\t);\n\t\t})\n\t\t.sort((a, b) => {\n\t\t\tconst startA = a.event.initialDate.getTime();\n\t\t\tconst startB = b.event.initialDate.getTime();\n\n\t\t\tif (startA !== startB) return startA - startB;\n\n\t\t\tconst endA =\n\t\t\t\ta.event.endDate?.getTime() ?? startA + SLOT_DURATION_MINUTES * 60_000;\n\t\t\tconst endB =\n\t\t\t\tb.event.endDate?.getTime() ?? startB + SLOT_DURATION_MINUTES * 60_000;\n\n\t\t\tif (endA !== endB) return endA - endB;\n\t\t\treturn a.sourceIndex - b.sourceIndex;\n\t\t});\n\n\tconst dayEventOrderBySourceIndex = new Map(\n\t\tdayEvents.map((item, orderIndex) => [item.sourceIndex, orderIndex]),\n\t);\n\n\tconst filteredEvents = dayEvents.filter(({ event }) => {\n\t\tconst dayHour = Math.floor(props.timeInMinutes / 60);\n\t\tconst dayMinute = props.timeInMinutes % 60;\n\n\t\tfunction isEventInInterval() {\n\t\t\tconst eventHour = event.initialDate.getHours();\n\t\t\tconst eventMinute = event.initialDate.getMinutes();\n\n\t\t\tif (eventHour !== dayHour) return false;\n\t\t\tif (dayMinute === 0) return eventMinute < 30 && eventMinute >= 0;\n\t\t\tif (dayMinute === 30) return eventMinute >= 30 && eventMinute < 60;\n\t\t}\n\n\t\treturn (\n\t\t\tisEventInInterval() &&\n\t\t\tevent.initialDate.getDate() === day &&\n\t\t\tevent.initialDate.getMonth() === month &&\n\t\t\tevent.initialDate.getFullYear() === year\n\t\t);\n\t});\n\n\tif (filteredEvents.length === 0) return null;\n\n\tfunction makeEventKey(index: number, sourceIndex: number) {\n\t\treturn `${day}-${month}-${year}-${sourceIndex}-${index}`;\n\t}\n\n\tfunction makeHour(date: Date) {\n\t\tconst hours = date.getHours();\n\t\tconst minutes = date.getMinutes();\n\n\t\tif (minutes === 0) return `${hours}h`;\n\t\treturn `${hours}h${minutes}`;\n\t}\n\n\tfunction getEventRangeInMinutes(event: {\n\t\tinitialDate: Date;\n\t\tendDate?: Date;\n\t}) {\n\t\tconst startMinutes =\n\t\t\tevent.initialDate.getHours() * 60 + event.initialDate.getMinutes();\n\n\t\tconst endMinutes = event.endDate\n\t\t\t? event.endDate.getHours() * 60 + event.endDate.getMinutes()\n\t\t\t: startMinutes + SLOT_DURATION_MINUTES;\n\n\t\treturn {\n\t\t\tstartMinutes,\n\t\t\tendMinutes: Math.max(endMinutes, startMinutes + 1),\n\t\t};\n\t}\n\n\tfunction countOverlappingPreviousEvents(\n\t\tcurrentEvent: { initialDate: Date; endDate?: Date },\n\t\tsourceIndex: number,\n\t) {\n\t\tconst current = getEventRangeInMinutes(currentEvent);\n\t\tconst currentOrderIndex = dayEventOrderBySourceIndex.get(sourceIndex);\n\n\t\tif (currentOrderIndex == null) return 0;\n\n\t\treturn dayEvents.reduce((count, item, orderIndex) => {\n\t\t\tif (orderIndex >= currentOrderIndex) return count;\n\n\t\t\tconst candidate = getEventRangeInMinutes(item.event);\n\t\t\tconst intersects =\n\t\t\t\tcandidate.startMinutes < current.endMinutes &&\n\t\t\t\tcandidate.endMinutes > current.startMinutes;\n\n\t\t\tif (!intersects) return count;\n\t\t\treturn count + 1;\n\t\t}, 0);\n\t}\n\n\tfunction getEventStyle(\n\t\tevent: { initialDate: Date; endDate?: Date },\n\t\tsourceIndex: number,\n\t) {\n\t\tconst { startMinutes, endMinutes } = getEventRangeInMinutes(event);\n\t\tconst startOffsetInCell = startMinutes - props.timeInMinutes;\n\n\t\tconst durationInMinutes = Math.max(endMinutes - startMinutes, 1);\n\t\tconst top = (startOffsetInCell / SLOT_DURATION_MINUTES) * 100;\n\t\tconst height = (durationInMinutes / SLOT_DURATION_MINUTES) * 100;\n\t\tconst overlapOffset =\n\t\t\tcountOverlappingPreviousEvents(event, sourceIndex) * OVERLAP_OFFSET_PX;\n\n\t\treturn {\n\t\t\ttop: `${top}%`,\n\t\t\theight: `${height}%`,\n\t\t\tleft: `${overlapOffset}px`,\n\t\t};\n\t}\n\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tfunction handleEventClick(event: React.MouseEvent, eventData: any) {\n\t\tevent.stopPropagation();\n\t\teventData.onClick?.(eventData.data);\n\t}\n\n\treturn filteredEvents.map(({ event, sourceIndex }, index) => (\n\t\t<div\n\t\t\tkey={makeEventKey(index, sourceIndex)}\n\t\t\tclassName={`arkynDayCalendarEvent ${event?.scheme || \"primary\"}`}\n\t\t\tstyle={getEventStyle(event, sourceIndex)}\n\t\t\tonClick={(e) => handleEventClick(e, event)}\n\t\t>\n\t\t\t<strong>\n\t\t\t\t{makeHour(event.initialDate)}{\" \"}\n\t\t\t\t{event?.endDate && `- ${makeHour(event.endDate)}`}\n\t\t\t</strong>\n\t\t\t<p>{event.title}</p>\n\t\t</div>\n\t));\n}\n\nexport { DayCalendarEvent };\n"],"mappings":";;;;AAOA,IAAM,IAAwB,IACxB,IAAoB;AAE1B,SAAS,EAAiB,GAA8B;CACvD,IAAM,EAAE,WAAQ,gBAAa,EAAgB,GAEvC,IAAM,EAAS,QAAQ,GACvB,IAAQ,EAAS,SAAS,GAC1B,IAAO,EAAS,YAAY,GAE5B,IAAY,EAChB,KAAK,GAAO,OAAiB;EAAE;EAAO;CAAY,EAAE,CAAC,CACrD,QAAQ,EAAE,eAET,EAAM,YAAY,QAAQ,MAAM,KAChC,EAAM,YAAY,SAAS,MAAM,KACjC,EAAM,YAAY,YAAY,MAAM,CAErC,CAAC,CACD,MAAM,GAAG,MAAM;EACf,IAAM,IAAS,EAAE,MAAM,YAAY,QAAQ,GACrC,IAAS,EAAE,MAAM,YAAY,QAAQ;EAE3C,IAAI,MAAW,GAAQ,OAAO,IAAS;EAEvC,IAAM,IACL,EAAE,MAAM,SAAS,QAAQ,KAAK,IAAS,IAAwB,KAC1D,IACL,EAAE,MAAM,SAAS,QAAQ,KAAK,IAAS,IAAwB;EAGhE,OADI,MAAS,IACN,EAAE,cAAc,EAAE,cADC,IAAO;CAElC,CAAC,GAEI,IAA6B,IAAI,IACtC,EAAU,KAAK,GAAM,MAAe,CAAC,EAAK,aAAa,CAAU,CAAC,CACnE,GAEM,IAAiB,EAAU,QAAQ,EAAE,eAAY;EACtD,IAAM,IAAU,KAAK,MAAM,EAAM,gBAAgB,EAAE,GAC7C,IAAY,EAAM,gBAAgB;EAExC,SAAS,IAAoB;GAC5B,IAAM,IAAY,EAAM,YAAY,SAAS,GACvC,IAAc,EAAM,YAAY,WAAW;GAEjD,IAAI,MAAc,GAAS,OAAO;GAClC,IAAI,MAAc,GAAG,OAAO,IAAc,MAAM,KAAe;GAC/D,IAAI,MAAc,IAAI,OAAO,KAAe,MAAM,IAAc;EACjE;EAEA,OACC,EAAkB,KAClB,EAAM,YAAY,QAAQ,MAAM,KAChC,EAAM,YAAY,SAAS,MAAM,KACjC,EAAM,YAAY,YAAY,MAAM;CAEtC,CAAC;CAED,IAAI,EAAe,WAAW,GAAG,OAAO;CAExC,SAAS,EAAa,GAAe,GAAqB;EACzD,OAAO,GAAG,EAAI,GAAG,EAAM,GAAG,EAAK,GAAG,EAAY,GAAG;CAClD;CAEA,SAAS,EAAS,GAAY;EAC7B,IAAM,IAAQ,EAAK,SAAS,GACtB,IAAU,EAAK,WAAW;EAGhC,OADI,MAAY,IAAU,GAAG,EAAM,KAC5B,GAAG,EAAM,GAAG;CACpB;CAEA,SAAS,EAAuB,GAG7B;EACF,IAAM,IACL,EAAM,YAAY,SAAS,IAAI,KAAK,EAAM,YAAY,WAAW,GAE5D,IAAa,EAAM,UACtB,EAAM,QAAQ,SAAS,IAAI,KAAK,EAAM,QAAQ,WAAW,IACzD,IAAe;EAElB,OAAO;GACN;GACA,YAAY,KAAK,IAAI,GAAY,IAAe,CAAC;EAClD;CACD;CAEA,SAAS,EACR,GACA,GACC;EACD,IAAM,IAAU,EAAuB,CAAY,GAC7C,IAAoB,EAA2B,IAAI,CAAW;EAIpE,OAFI,KAAqB,OAAa,IAE/B,EAAU,QAAQ,GAAO,GAAM,MAAe;GACpD,IAAI,KAAc,GAAmB,OAAO;GAE5C,IAAM,IAAY,EAAuB,EAAK,KAAK;GAMnD,OAJC,EAAU,eAAe,EAAQ,cACjC,EAAU,aAAa,EAAQ,eAGzB,IAAQ,IADS;EAEzB,GAAG,CAAC;CACL;CAEA,SAAS,EACR,GACA,GACC;EACD,IAAM,EAAE,iBAAc,kBAAe,EAAuB,CAAK,GAC3D,IAAoB,IAAe,EAAM,eAEzC,IAAoB,KAAK,IAAI,IAAa,GAAc,CAAC,GACzD,IAAO,IAAoB,IAAyB,KACpD,IAAU,IAAoB,IAAyB,KACvD,IACL,EAA+B,GAAO,CAAW,IAAI;EAEtD,OAAO;GACN,KAAK,GAAG,EAAI;GACZ,QAAQ,GAAG,EAAO;GAClB,MAAM,GAAG,EAAc;EACxB;CACD;CAGA,SAAS,EAAiB,GAAyB,GAAgB;EAElE,AADA,EAAM,gBAAgB,GACtB,EAAU,UAAU,EAAU,IAAI;CACnC;CAEA,OAAO,EAAe,KAAK,EAAE,UAAO,kBAAe,MAClD,kBAAC,OAAD;EAEC,WAAW,yBAAyB,GAAO,UAAU;EACrD,OAAO,EAAc,GAAO,CAAW;EACvC,UAAU,MAAM,EAAiB,GAAG,CAAK;YAJ1C,CAMC,kBAAC,UAAD,EAAA,UAAA;GACE,EAAS,EAAM,WAAW;GAAG;GAC7B,GAAO,WAAW,KAAK,EAAS,EAAM,OAAO;EACvC,EAAA,CAAA,GACR,kBAAC,KAAD,EAAA,UAAI,EAAM,MAAS,CAAA,CACf;IAVC,EAAa,GAAO,CAAW,CAUhC,CACL;AACF"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynDayCalendarEvent{z-index:2;box-sizing:border-box;border-radius:8px;flex-direction:column;gap:4px;min-width:200px;max-width:200px;min-height:28px;padding:8px;display:flex;position:absolute;left:0;right:0;overflow:hidden}.arkynDayCalendarEvent:not(:first-child){box-shadow:0 0 2px #0000001a}.arkynDayCalendarEvent:hover{z-index:3}.arkynDayCalendarEvent:before{content:" ";border-radius:8px 0 0 8px;width:4px;position:absolute;top:0;bottom:0;left:0}.arkynDayCalendarEvent.primary{background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynDayCalendarEvent.primary:before{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynDayCalendarEvent.danger{background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynDayCalendarEvent.danger:before{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynDayCalendarEvent.warning{background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynDayCalendarEvent.warning:before{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynDayCalendarEvent.info{background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynDayCalendarEvent.info:before{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynDayCalendarEvent.success{background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynDayCalendarEvent.success:before{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynDayCalendarEvent>strong{letter-spacing:0%;color:var(--text-heading,#09090b);font-size:14px;font-weight:600}.arkynDayCalendarEvent>p{letter-spacing:0%;color:var(--text-heading,#09090b);font-size:12px;font-weight:400}}