@arkyn/components 3.0.1-beta.201 → 3.0.1-beta.204

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 (458) hide show
  1. package/LICENSE.txt +184 -1
  2. package/README.md +12 -1
  3. package/dist/components/alert/alertContainer/index.d.ts.map +1 -1
  4. package/dist/components/cardTab/cardTabContext.d.ts.map +1 -1
  5. package/dist/components/drawer/drawerContext.d.ts.map +1 -1
  6. package/dist/components/modal/modalContext.d.ts.map +1 -1
  7. package/dist/components/tab/tabContext.d.ts.map +1 -1
  8. package/dist/index.js +85 -62
  9. package/dist/index.js.map +1 -0
  10. package/dist/modules/components/alert/alertContainer/index.js +17 -15
  11. package/dist/modules/components/alert/alertContainer/index.js.map +1 -0
  12. package/dist/modules/components/alert/alertContainer/styles.css +3 -0
  13. package/dist/modules/components/alert/alertContent/index.js +2 -0
  14. package/dist/modules/components/alert/alertContent/index.js.map +1 -0
  15. package/dist/modules/components/alert/alertContent/styles.css +1 -0
  16. package/dist/modules/components/alert/alertDescription/index.js +2 -0
  17. package/dist/modules/components/alert/alertDescription/index.js.map +1 -0
  18. package/dist/modules/components/alert/alertDescription/styles.css +1 -0
  19. package/dist/modules/components/alert/alertIcon/index.js +2 -0
  20. package/dist/modules/components/alert/alertIcon/index.js.map +1 -0
  21. package/dist/modules/components/alert/alertIcon/styles.css +7 -0
  22. package/dist/modules/components/alert/alertTitle/index.js +2 -0
  23. package/dist/modules/components/alert/alertTitle/index.js.map +1 -0
  24. package/dist/modules/components/alert/alertTitle/styles.css +1 -0
  25. package/dist/modules/components/audioPlayer/index.js +2 -0
  26. package/dist/modules/components/audioPlayer/index.js.map +1 -0
  27. package/dist/modules/components/audioPlayer/styles.css +3 -0
  28. package/dist/modules/components/audioUpload/hasFileContent/index.js +2 -0
  29. package/dist/modules/components/audioUpload/hasFileContent/index.js.map +1 -0
  30. package/dist/modules/components/audioUpload/hasFileContent/styles.css +1 -0
  31. package/dist/modules/components/audioUpload/index.js +2 -0
  32. package/dist/modules/components/audioUpload/index.js.map +1 -0
  33. package/dist/modules/components/audioUpload/noFileContent/index.js +2 -0
  34. package/dist/modules/components/audioUpload/noFileContent/index.js.map +1 -0
  35. package/dist/modules/components/audioUpload/noFileContent/styles.css +1 -0
  36. package/dist/modules/components/audioUpload/styles.css +25 -0
  37. package/dist/modules/components/badge/index.js +2 -0
  38. package/dist/modules/components/badge/index.js.map +1 -0
  39. package/dist/modules/components/badge/styles.css +1 -0
  40. package/dist/modules/components/button/index.js +2 -0
  41. package/dist/modules/components/button/index.js.map +1 -0
  42. package/dist/modules/components/button/styles.css +1 -0
  43. package/dist/modules/components/calendar/_calendarProvider.js +2 -0
  44. package/dist/modules/components/calendar/_calendarProvider.js.map +1 -0
  45. package/dist/modules/components/calendar/_viewService.js +2 -0
  46. package/dist/modules/components/calendar/_viewService.js.map +1 -0
  47. package/dist/modules/components/calendar/calendarContainer/index.js +2 -0
  48. package/dist/modules/components/calendar/calendarContainer/index.js.map +1 -0
  49. package/dist/modules/components/calendar/calendarContainer/styles.css +1 -0
  50. package/dist/modules/components/calendar/calendarHeader/index.js +2 -0
  51. package/dist/modules/components/calendar/calendarHeader/index.js.map +1 -0
  52. package/dist/modules/components/calendar/calendarHeader/styles.css +1 -0
  53. package/dist/modules/components/calendar/calendarTableBody/index.js +2 -0
  54. package/dist/modules/components/calendar/calendarTableBody/index.js.map +1 -0
  55. package/dist/modules/components/calendar/calendarTableBody/styles.css +1 -0
  56. package/dist/modules/components/calendar/calendarTableContainer/index.js +2 -0
  57. package/dist/modules/components/calendar/calendarTableContainer/index.js.map +1 -0
  58. package/dist/modules/components/calendar/calendarTableContainer/styles.css +1 -0
  59. package/dist/modules/components/calendar/calendarTableHeader/index.js +2 -0
  60. package/dist/modules/components/calendar/calendarTableHeader/index.js.map +1 -0
  61. package/dist/modules/components/calendar/calendarTableHeader/styles.css +1 -0
  62. package/dist/modules/components/calendar/calendarTableTd/index.js +2 -0
  63. package/dist/modules/components/calendar/calendarTableTd/index.js.map +1 -0
  64. package/dist/modules/components/calendar/calendarTableTd/styles.css +1 -0
  65. package/dist/modules/components/calendar/index.js +2 -0
  66. package/dist/modules/components/calendar/index.js.map +1 -0
  67. package/dist/modules/components/calendar/styles.css +33 -0
  68. package/dist/modules/components/cardTab/cardTabButton/index.js +2 -0
  69. package/dist/modules/components/cardTab/cardTabButton/index.js.map +1 -0
  70. package/dist/modules/components/cardTab/cardTabButton/styles.css +1 -0
  71. package/dist/modules/components/cardTab/cardTabContainer/index.js +2 -0
  72. package/dist/modules/components/cardTab/cardTabContainer/index.js.map +1 -0
  73. package/dist/modules/components/cardTab/cardTabContainer/styles.css +1 -0
  74. package/dist/modules/components/cardTab/cardTabContext.js +20 -9
  75. package/dist/modules/components/cardTab/cardTabContext.js.map +1 -0
  76. package/dist/modules/components/checkbox/index.js +2 -0
  77. package/dist/modules/components/checkbox/index.js.map +1 -0
  78. package/dist/modules/components/checkbox/styles.css +7 -0
  79. package/dist/modules/components/clientOnly.js +2 -0
  80. package/dist/modules/components/clientOnly.js.map +1 -0
  81. package/dist/modules/components/currencyInput/index.js +2 -0
  82. package/dist/modules/components/currencyInput/index.js.map +1 -0
  83. package/dist/modules/components/currencyInput/style.css +1 -0
  84. package/dist/modules/components/currencyInput/styles.css +7 -0
  85. package/dist/modules/components/divider/index.js +2 -0
  86. package/dist/modules/components/divider/index.js.map +1 -0
  87. package/dist/modules/components/divider/styles.css +1 -0
  88. package/dist/modules/components/drawer/drawerContainer/index.js +2 -0
  89. package/dist/modules/components/drawer/drawerContainer/index.js.map +1 -0
  90. package/dist/modules/components/drawer/drawerContainer/styles.css +1 -0
  91. package/dist/modules/components/drawer/drawerContext.js +12 -9
  92. package/dist/modules/components/drawer/drawerContext.js.map +1 -0
  93. package/dist/modules/components/drawer/drawerHeader/index.js +2 -0
  94. package/dist/modules/components/drawer/drawerHeader/index.js.map +1 -0
  95. package/dist/modules/components/drawer/drawerHeader/styles.css +1 -0
  96. package/dist/modules/components/facebookPixel/facebookPixel.client.js +2 -0
  97. package/dist/modules/components/facebookPixel/facebookPixel.client.js.map +1 -0
  98. package/dist/modules/components/facebookPixel/index.js +2 -0
  99. package/dist/modules/components/facebookPixel/index.js.map +1 -0
  100. package/dist/modules/components/facebookPixel/pixel.js +2 -0
  101. package/dist/modules/components/facebookPixel/pixel.js.map +1 -0
  102. package/dist/modules/components/fieldError/index.js +2 -0
  103. package/dist/modules/components/fieldError/index.js.map +1 -0
  104. package/dist/modules/components/fieldError/styles.css +1 -0
  105. package/dist/modules/components/fieldLabel/index.js +2 -0
  106. package/dist/modules/components/fieldLabel/index.js.map +1 -0
  107. package/dist/modules/components/fieldLabel/styles.css +1 -0
  108. package/dist/modules/components/fieldWrapper/index.js +2 -0
  109. package/dist/modules/components/fieldWrapper/index.js.map +1 -0
  110. package/dist/modules/components/fieldWrapper/styles.css +1 -0
  111. package/dist/modules/components/fileUpload/hasFileContent/index.js +2 -0
  112. package/dist/modules/components/fileUpload/hasFileContent/index.js.map +1 -0
  113. package/dist/modules/components/fileUpload/hasFileContent/styles.css +1 -0
  114. package/dist/modules/components/fileUpload/index.js +2 -0
  115. package/dist/modules/components/fileUpload/index.js.map +1 -0
  116. package/dist/modules/components/fileUpload/noFileContent/index.js +2 -0
  117. package/dist/modules/components/fileUpload/noFileContent/index.js.map +1 -0
  118. package/dist/modules/components/fileUpload/noFileContent/styles.css +1 -0
  119. package/dist/modules/components/fileUpload/styles.css +19 -0
  120. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +2 -0
  121. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js.map +1 -0
  122. package/dist/modules/components/fullCalendar/_viewService.js +2 -0
  123. package/dist/modules/components/fullCalendar/_viewService.js.map +1 -0
  124. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +2 -0
  125. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js.map +1 -0
  126. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/styles.css +1 -0
  127. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +2 -0
  128. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js.map +1 -0
  129. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/styles.css +1 -0
  130. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +2 -0
  131. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js.map +1 -0
  132. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/styles.css +1 -0
  133. package/dist/modules/components/fullCalendar/dayCalendar/index.js +2 -0
  134. package/dist/modules/components/fullCalendar/dayCalendar/index.js.map +1 -0
  135. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +2 -0
  136. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js.map +1 -0
  137. package/dist/modules/components/fullCalendar/fullCalendarContainer/styles.css +1 -0
  138. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +2 -0
  139. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js.map +1 -0
  140. package/dist/modules/components/fullCalendar/fullCalendarHeader/styles.css +1 -0
  141. package/dist/modules/components/fullCalendar/index.js +2 -0
  142. package/dist/modules/components/fullCalendar/index.js.map +1 -0
  143. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +2 -0
  144. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js.map +1 -0
  145. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +2 -0
  146. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js.map +1 -0
  147. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/styles.css +1 -0
  148. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +2 -0
  149. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js.map +1 -0
  150. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/styles.css +1 -0
  151. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +2 -0
  152. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js.map +1 -0
  153. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/styles.css +1 -0
  154. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +2 -0
  155. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js.map +1 -0
  156. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/styles.css +1 -0
  157. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +2 -0
  158. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js.map +1 -0
  159. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/styles.css +1 -0
  160. package/dist/modules/components/fullCalendar/styles.css +35 -0
  161. package/dist/modules/components/fullCalendar/weekCalendar/index.js +2 -0
  162. package/dist/modules/components/fullCalendar/weekCalendar/index.js.map +1 -0
  163. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +2 -0
  164. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js.map +1 -0
  165. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/styles.css +1 -0
  166. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +2 -0
  167. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js.map +1 -0
  168. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/styles.css +1 -0
  169. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +2 -0
  170. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js.map +1 -0
  171. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/styles.css +1 -0
  172. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +2 -0
  173. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js.map +1 -0
  174. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/styles.css +1 -0
  175. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +2 -0
  176. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js.map +1 -0
  177. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/styles.css +1 -0
  178. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +2 -0
  179. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js.map +1 -0
  180. package/dist/modules/components/googleAnalytics/googleAnalytics.js +2 -0
  181. package/dist/modules/components/googleAnalytics/googleAnalytics.js.map +1 -0
  182. package/dist/modules/components/googleAnalytics/index.js +2 -0
  183. package/dist/modules/components/googleAnalytics/index.js.map +1 -0
  184. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +2 -0
  185. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js.map +1 -0
  186. package/dist/modules/components/googleTagManager/googleTagManager.client.js +2 -0
  187. package/dist/modules/components/googleTagManager/googleTagManager.client.js.map +1 -0
  188. package/dist/modules/components/googleTagManager/googleTagManager.js +2 -0
  189. package/dist/modules/components/googleTagManager/googleTagManager.js.map +1 -0
  190. package/dist/modules/components/googleTagManager/index.js +2 -0
  191. package/dist/modules/components/googleTagManager/index.js.map +1 -0
  192. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +2 -0
  193. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js.map +1 -0
  194. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +2 -0
  195. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js.map +1 -0
  196. package/dist/modules/components/iconButton/index.js +2 -0
  197. package/dist/modules/components/iconButton/index.js.map +1 -0
  198. package/dist/modules/components/iconButton/styles.css +1 -0
  199. package/dist/modules/components/imageUpload/hasFileContent/index.js +2 -0
  200. package/dist/modules/components/imageUpload/hasFileContent/index.js.map +1 -0
  201. package/dist/modules/components/imageUpload/hasFileContent/styles.css +1 -0
  202. package/dist/modules/components/imageUpload/index.js +2 -0
  203. package/dist/modules/components/imageUpload/index.js.map +1 -0
  204. package/dist/modules/components/imageUpload/noFileContent/index.js +2 -0
  205. package/dist/modules/components/imageUpload/noFileContent/index.js.map +1 -0
  206. package/dist/modules/components/imageUpload/noFileContent/styles.css +1 -0
  207. package/dist/modules/components/imageUpload/styles.css +17 -0
  208. package/dist/modules/components/input/index.js +2 -0
  209. package/dist/modules/components/input/index.js.map +1 -0
  210. package/dist/modules/components/input/style.css +1 -0
  211. package/dist/modules/components/input/styles.css +7 -0
  212. package/dist/modules/components/mapView/index.js +2 -0
  213. package/dist/modules/components/mapView/index.js.map +1 -0
  214. package/dist/modules/components/mapView/mapView.client.js +2 -0
  215. package/dist/modules/components/mapView/mapView.client.js.map +1 -0
  216. package/dist/modules/components/mapView/mapbox.css +1 -0
  217. package/dist/modules/components/mapView/styles.css +1 -0
  218. package/dist/modules/components/maskedInput/index.js +2 -0
  219. package/dist/modules/components/maskedInput/index.js.map +1 -0
  220. package/dist/modules/components/maskedInput/style.css +1 -0
  221. package/dist/modules/components/maskedInput/styles.css +7 -0
  222. package/dist/modules/components/modal/modalContainer/index.js +2 -0
  223. package/dist/modules/components/modal/modalContainer/index.js.map +1 -0
  224. package/dist/modules/components/modal/modalContainer/styles.css +1 -0
  225. package/dist/modules/components/modal/modalContext.js +12 -9
  226. package/dist/modules/components/modal/modalContext.js.map +1 -0
  227. package/dist/modules/components/modal/modalFooter/index.js +2 -0
  228. package/dist/modules/components/modal/modalFooter/index.js.map +1 -0
  229. package/dist/modules/components/modal/modalFooter/styles.css +1 -0
  230. package/dist/modules/components/modal/modalHeader/index.js +2 -0
  231. package/dist/modules/components/modal/modalHeader/index.js.map +1 -0
  232. package/dist/modules/components/modal/modalHeader/styles.css +1 -0
  233. package/dist/modules/components/multiSelect/index.js +2 -0
  234. package/dist/modules/components/multiSelect/index.js.map +1 -0
  235. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +2 -0
  236. package/dist/modules/components/multiSelect/multiSelectChevron/index.js.map +1 -0
  237. package/dist/modules/components/multiSelect/multiSelectChevron/styles.css +1 -0
  238. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +2 -0
  239. package/dist/modules/components/multiSelect/multiSelectContainer/index.js.map +1 -0
  240. package/dist/modules/components/multiSelect/multiSelectContainer/styles.css +1 -0
  241. package/dist/modules/components/multiSelect/multiSelectContent/index.js +2 -0
  242. package/dist/modules/components/multiSelect/multiSelectContent/index.js.map +1 -0
  243. package/dist/modules/components/multiSelect/multiSelectContent/styles.css +1 -0
  244. package/dist/modules/components/multiSelect/multiSelectMark/index.js +2 -0
  245. package/dist/modules/components/multiSelect/multiSelectMark/index.js.map +1 -0
  246. package/dist/modules/components/multiSelect/multiSelectMark/styles.css +1 -0
  247. package/dist/modules/components/multiSelect/multiSelectOption/index.js +2 -0
  248. package/dist/modules/components/multiSelect/multiSelectOption/index.js.map +1 -0
  249. package/dist/modules/components/multiSelect/multiSelectOption/styles.css +1 -0
  250. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +2 -0
  251. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js.map +1 -0
  252. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/styles.css +1 -0
  253. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +2 -0
  254. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js.map +1 -0
  255. package/dist/modules/components/multiSelect/multiSelectOverlay/styles.css +1 -0
  256. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +2 -0
  257. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js.map +1 -0
  258. package/dist/modules/components/multiSelect/multiSelectSpinner/styles.css +1 -0
  259. package/dist/modules/components/multiSelect/styles.css +31 -0
  260. package/dist/modules/components/pagination/chevronButton/index.js +2 -0
  261. package/dist/modules/components/pagination/chevronButton/index.js.map +1 -0
  262. package/dist/modules/components/pagination/chevronButton/styles.css +1 -0
  263. package/dist/modules/components/pagination/currentButton/index.js +2 -0
  264. package/dist/modules/components/pagination/currentButton/index.js.map +1 -0
  265. package/dist/modules/components/pagination/currentButton/styles.css +1 -0
  266. package/dist/modules/components/pagination/index.js +2 -0
  267. package/dist/modules/components/pagination/index.js.map +1 -0
  268. package/dist/modules/components/pagination/pageButton/index.js +2 -0
  269. package/dist/modules/components/pagination/pageButton/index.js.map +1 -0
  270. package/dist/modules/components/pagination/pageButton/styles.css +1 -0
  271. package/dist/modules/components/pagination/paginationService.js +2 -0
  272. package/dist/modules/components/pagination/paginationService.js.map +1 -0
  273. package/dist/modules/components/pagination/spread/index.js +2 -0
  274. package/dist/modules/components/pagination/spread/index.js.map +1 -0
  275. package/dist/modules/components/pagination/spread/styles.css +1 -0
  276. package/dist/modules/components/pagination/styles.css +9 -0
  277. package/dist/modules/components/phoneInput/index.js +2 -0
  278. package/dist/modules/components/phoneInput/index.js.map +1 -0
  279. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +2 -0
  280. package/dist/modules/components/phoneInput/phoneInputContainer/index.js.map +1 -0
  281. package/dist/modules/components/phoneInput/phoneInputContainer/styles.css +1 -0
  282. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +2 -0
  283. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js.map +1 -0
  284. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/styles.css +1 -0
  285. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +2 -0
  286. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js.map +1 -0
  287. package/dist/modules/components/phoneInput/phoneInputCountryOption/styles.css +1 -0
  288. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +2 -0
  289. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js.map +1 -0
  290. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/styles.css +1 -0
  291. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +2 -0
  292. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js.map +1 -0
  293. package/dist/modules/components/phoneInput/phoneInputCountrySelector/styles.css +1 -0
  294. package/dist/modules/components/phoneInput/phoneInputMask/index.js +2 -0
  295. package/dist/modules/components/phoneInput/phoneInputMask/index.js.map +1 -0
  296. package/dist/modules/components/phoneInput/phoneInputMask/style.css +1 -0
  297. package/dist/modules/components/phoneInput/styles.css +19 -0
  298. package/dist/modules/components/popover/index.js +2 -0
  299. package/dist/modules/components/popover/index.js.map +1 -0
  300. package/dist/modules/components/popover/styles.css +1 -0
  301. package/dist/modules/components/radio/radioBox/index.js +2 -0
  302. package/dist/modules/components/radio/radioBox/index.js.map +1 -0
  303. package/dist/modules/components/radio/radioBox/styles.css +1 -0
  304. package/dist/modules/components/radio/radioContext.js +2 -0
  305. package/dist/modules/components/radio/radioContext.js.map +1 -0
  306. package/dist/modules/components/radio/radioGroup/index.js +2 -0
  307. package/dist/modules/components/radio/radioGroup/index.js.map +1 -0
  308. package/dist/modules/components/radio/radioGroup/styles.css +7 -0
  309. package/dist/modules/components/richText/blockButton/index.js +2 -0
  310. package/dist/modules/components/richText/blockButton/index.js.map +1 -0
  311. package/dist/modules/components/richText/blockButton/styles.css +1 -0
  312. package/dist/modules/components/richText/element/index.js +2 -0
  313. package/dist/modules/components/richText/element/index.js.map +1 -0
  314. package/dist/modules/components/richText/element/styles.css +1 -0
  315. package/dist/modules/components/richText/index.js +2 -0
  316. package/dist/modules/components/richText/index.js.map +1 -0
  317. package/dist/modules/components/richText/insertImage/index.js +2 -0
  318. package/dist/modules/components/richText/insertImage/index.js.map +1 -0
  319. package/dist/modules/components/richText/insertImage/styles.css +1 -0
  320. package/dist/modules/components/richText/insertVideo/index.js +2 -0
  321. package/dist/modules/components/richText/insertVideo/index.js.map +1 -0
  322. package/dist/modules/components/richText/insertVideo/styles.css +1 -0
  323. package/dist/modules/components/richText/leaf/index.js +2 -0
  324. package/dist/modules/components/richText/leaf/index.js.map +1 -0
  325. package/dist/modules/components/richText/markButton/index.js +2 -0
  326. package/dist/modules/components/richText/markButton/index.js.map +1 -0
  327. package/dist/modules/components/richText/markButton/styles.css +1 -0
  328. package/dist/modules/components/richText/styles.css +67 -0
  329. package/dist/modules/components/richText/toolbar/index.js +2 -0
  330. package/dist/modules/components/richText/toolbar/index.js.map +1 -0
  331. package/dist/modules/components/richText/toolbar/styles.css +1 -0
  332. package/dist/modules/components/searchPlaces.js +2 -0
  333. package/dist/modules/components/searchPlaces.js.map +1 -0
  334. package/dist/modules/components/select/index.js +2 -0
  335. package/dist/modules/components/select/index.js.map +1 -0
  336. package/dist/modules/components/select/selectChevron/index.js +2 -0
  337. package/dist/modules/components/select/selectChevron/index.js.map +1 -0
  338. package/dist/modules/components/select/selectChevron/styles.css +1 -0
  339. package/dist/modules/components/select/selectContainer/index.js +2 -0
  340. package/dist/modules/components/select/selectContainer/index.js.map +1 -0
  341. package/dist/modules/components/select/selectContainer/styles.css +1 -0
  342. package/dist/modules/components/select/selectContent/index.js +2 -0
  343. package/dist/modules/components/select/selectContent/index.js.map +1 -0
  344. package/dist/modules/components/select/selectContent/styles.css +1 -0
  345. package/dist/modules/components/select/selectOption/index.js +2 -0
  346. package/dist/modules/components/select/selectOption/index.js.map +1 -0
  347. package/dist/modules/components/select/selectOption/styles.css +1 -0
  348. package/dist/modules/components/select/selectOptionsContainer/index.js +2 -0
  349. package/dist/modules/components/select/selectOptionsContainer/index.js.map +1 -0
  350. package/dist/modules/components/select/selectOptionsContainer/styles.css +1 -0
  351. package/dist/modules/components/select/selectOverlay/index.js +2 -0
  352. package/dist/modules/components/select/selectOverlay/index.js.map +1 -0
  353. package/dist/modules/components/select/selectOverlay/styles.css +1 -0
  354. package/dist/modules/components/select/selectSpinner/index.js +2 -0
  355. package/dist/modules/components/select/selectSpinner/index.js.map +1 -0
  356. package/dist/modules/components/select/selectSpinner/styles.css +1 -0
  357. package/dist/modules/components/select/styles.css +29 -0
  358. package/dist/modules/components/slider/index.js +2 -0
  359. package/dist/modules/components/slider/index.js.map +1 -0
  360. package/dist/modules/components/slider/styles.css +1 -0
  361. package/dist/modules/components/switch/index.js +2 -0
  362. package/dist/modules/components/switch/index.js.map +1 -0
  363. package/dist/modules/components/switch/styles.css +7 -0
  364. package/dist/modules/components/tab/tabButton/index.js +2 -0
  365. package/dist/modules/components/tab/tabButton/index.js.map +1 -0
  366. package/dist/modules/components/tab/tabButton/styles.css +1 -0
  367. package/dist/modules/components/tab/tabContainer/index.js +2 -0
  368. package/dist/modules/components/tab/tabContainer/index.js.map +1 -0
  369. package/dist/modules/components/tab/tabContainer/styles.css +1 -0
  370. package/dist/modules/components/tab/tabContext.js +20 -9
  371. package/dist/modules/components/tab/tabContext.js.map +1 -0
  372. package/dist/modules/components/table/tableBody/index.js +2 -0
  373. package/dist/modules/components/table/tableBody/index.js.map +1 -0
  374. package/dist/modules/components/table/tableBody/styles.css +1 -0
  375. package/dist/modules/components/table/tableCaption/index.js +2 -0
  376. package/dist/modules/components/table/tableCaption/index.js.map +1 -0
  377. package/dist/modules/components/table/tableCaption/styles.css +1 -0
  378. package/dist/modules/components/table/tableContainer/index.js +2 -0
  379. package/dist/modules/components/table/tableContainer/index.js.map +1 -0
  380. package/dist/modules/components/table/tableContainer/styles.css +1 -0
  381. package/dist/modules/components/table/tableFooter/index.js +2 -0
  382. package/dist/modules/components/table/tableFooter/index.js.map +1 -0
  383. package/dist/modules/components/table/tableFooter/styles.css +1 -0
  384. package/dist/modules/components/table/tableHeader/index.js +2 -0
  385. package/dist/modules/components/table/tableHeader/index.js.map +1 -0
  386. package/dist/modules/components/table/tableHeader/styles.css +1 -0
  387. package/dist/modules/components/textarea/index.js +2 -0
  388. package/dist/modules/components/textarea/index.js.map +1 -0
  389. package/dist/modules/components/textarea/styles.css +7 -0
  390. package/dist/modules/components/tooltip/index.js +2 -0
  391. package/dist/modules/components/tooltip/index.js.map +1 -0
  392. package/dist/modules/components/tooltip/styles.css +1 -0
  393. package/dist/modules/hooks/useAutomation.js +2 -0
  394. package/dist/modules/hooks/useAutomation.js.map +1 -0
  395. package/dist/modules/hooks/useDrawer.js +2 -0
  396. package/dist/modules/hooks/useDrawer.js.map +1 -0
  397. package/dist/modules/hooks/useForm.js +2 -0
  398. package/dist/modules/hooks/useForm.js.map +1 -0
  399. package/dist/modules/hooks/useHydrated.js +2 -0
  400. package/dist/modules/hooks/useHydrated.js.map +1 -0
  401. package/dist/modules/hooks/useModal.js +2 -0
  402. package/dist/modules/hooks/useModal.js.map +1 -0
  403. package/dist/modules/hooks/useScopedParams.js +2 -0
  404. package/dist/modules/hooks/useScopedParams.js.map +1 -0
  405. package/dist/modules/hooks/useScrollLock.js +2 -0
  406. package/dist/modules/hooks/useScrollLock.js.map +1 -0
  407. package/dist/modules/hooks/useSearchAutomation.js +2 -0
  408. package/dist/modules/hooks/useSearchAutomation.js.map +1 -0
  409. package/dist/modules/hooks/useSlider.js +2 -0
  410. package/dist/modules/hooks/useSlider.js.map +1 -0
  411. package/dist/modules/hooks/useToast.js +2 -0
  412. package/dist/modules/hooks/useToast.js.map +1 -0
  413. package/dist/modules/providers/drawerProvider.js +2 -0
  414. package/dist/modules/providers/drawerProvider.js.map +1 -0
  415. package/dist/modules/providers/formProvider.js +11 -9
  416. package/dist/modules/providers/formProvider.js.map +1 -0
  417. package/dist/modules/providers/modalProvider.js +2 -0
  418. package/dist/modules/providers/modalProvider.js.map +1 -0
  419. package/dist/modules/providers/placesProvider.js +2 -0
  420. package/dist/modules/providers/placesProvider.js.map +1 -0
  421. package/dist/modules/providers/toastProvider.js +41 -38
  422. package/dist/modules/providers/toastProvider.js.map +1 -0
  423. package/dist/modules/services/extractTextFromNode.js +2 -0
  424. package/dist/modules/services/extractTextFromNode.js.map +1 -0
  425. package/dist/modules/services/fieldTemplate.js +2 -0
  426. package/dist/modules/services/fieldTemplate.js.map +1 -0
  427. package/dist/modules/services/iconRenderer.js +2 -0
  428. package/dist/modules/services/iconRenderer.js.map +1 -0
  429. package/dist/modules/services/isBlockActive.js +2 -0
  430. package/dist/modules/services/isBlockActive.js.map +1 -0
  431. package/dist/modules/services/isMarkActive.js +2 -0
  432. package/dist/modules/services/isMarkActive.js.map +1 -0
  433. package/dist/modules/services/maskCurrencyValues.js +2 -0
  434. package/dist/modules/services/maskCurrencyValues.js.map +1 -0
  435. package/dist/modules/services/toHtml.js +2 -0
  436. package/dist/modules/services/toHtml.js.map +1 -0
  437. package/dist/modules/services/toRichTextValue.js +2 -0
  438. package/dist/modules/services/toRichTextValue.js.map +1 -0
  439. package/dist/modules/services/toggleBlock.js +2 -0
  440. package/dist/modules/services/toggleBlock.js.map +1 -0
  441. package/dist/modules/services/toggleMark.js +2 -0
  442. package/dist/modules/services/toggleMark.js.map +1 -0
  443. package/dist/modules/templates/badResponses.js +2 -0
  444. package/dist/modules/templates/badResponses.js.map +1 -0
  445. package/dist/modules/templates/richTextTemplates.js +2 -0
  446. package/dist/modules/templates/richTextTemplates.js.map +1 -0
  447. package/dist/modules/templates/successResponses.js +2 -0
  448. package/dist/modules/templates/successResponses.js.map +1 -0
  449. package/dist/modules/utils/phoneInputUtilities.js +2 -0
  450. package/dist/modules/utils/phoneInputUtilities.js.map +1 -0
  451. package/dist/modules/utils/richTextUtilities.js +2 -0
  452. package/dist/modules/utils/richTextUtilities.js.map +1 -0
  453. package/dist/providers/formProvider.d.ts.map +1 -1
  454. package/dist/providers/toastProvider.d.ts.map +1 -1
  455. package/dist/style.css +0 -1
  456. package/package.json +637 -8
  457. package/dist/modules/index.js +0 -72
  458. package/dist/modules/style.css +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modalProvider.js","names":[],"sources":["../../../src/providers/modalProvider.tsx"],"sourcesContent":["import { createContext, type ReactNode, useState } from \"react\";\n\n// biome-ignore lint/suspicious/noExplicitAny: intentional\ntype ModalContextProps<T = any> = {\n\tmodalIsOpen(key: string): boolean;\n\tmodalData(key: string): T;\n\topenModal(key: string, data?: T): void;\n\tcloseModal(key: string): void;\n\tcloseAll(): void;\n};\n\ntype OpenedModals = {\n\tkey: string;\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tdata?: any;\n}[];\n\ntype ModalProviderProps = {\n\tchildren: ReactNode;\n\tenableModalAutomation?: boolean;\n};\n\nconst modalContext = createContext({} as ModalContextProps);\n\n/**\n * ModalProvider — context provider that manages open/close state and data for named modals.\n *\n * Wrap your app (or a subtree) with this once. Any component in the tree can then call\n * `useModal(key)` to open, close, or read data for a specific modal. `closeAll()` is also\n * available (used by `useAutomation` to close all modals after a successful form action).\n *\n * @param props.children - Components that will have access to modal context.\n *\n * @returns ModalProvider JSX element.\n *\n * @example\n * ```tsx\n * // In your root layout\n * <ModalProvider>\n * <App />\n * </ModalProvider>\n *\n * // Opening a modal from anywhere in the tree\n * const { openModal } = useModal();\n * openModal('confirm-delete', { id: user.id });\n *\n * // Consuming in the modal component\n * const { modalIsOpen, modalData, closeModal } = useModal<{ id: number }>('confirm-delete');\n * ```\n */\n\nfunction ModalProvider(args: ModalProviderProps) {\n\tconst { children = false } = args;\n\tconst [openedModals, setOpenedModals] = useState<OpenedModals>([]);\n\n\tfunction modalIsOpen(key: string) {\n\t\treturn !!openedModals.some((modal) => modal.key === key);\n\t}\n\n\tfunction modalData(key: string) {\n\t\treturn openedModals.find((modal) => modal.key === key)?.data;\n\t}\n\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tfunction openModal(key: string, data?: any) {\n\t\tconst alreadyExist = modalIsOpen(key);\n\t\tif (alreadyExist) {\n\t\t\tsetOpenedModals((old) => {\n\t\t\t\tconst filtered = old.filter((modal) => modal.key !== key);\n\t\t\t\treturn [...filtered, { key, data }];\n\t\t\t});\n\t\t} else setOpenedModals([...openedModals, { key, data }]);\n\t}\n\n\tfunction closeModal(key: string) {\n\t\tsetOpenedModals(openedModals.filter((modal) => modal.key !== key));\n\t}\n\n\tfunction closeAll() {\n\t\tsetOpenedModals([]);\n\t}\n\n\treturn (\n\t\t<modalContext.Provider\n\t\t\tvalue={{ modalIsOpen, modalData, openModal, closeModal, closeAll }}\n\t\t>\n\t\t\t{children}\n\t\t</modalContext.Provider>\n\t);\n}\n\nexport { type ModalContextProps, ModalProvider, modalContext };\n"],"mappings":";;;AAsBA,IAAM,IAAe,EAAc,CAAC,CAAsB;AA6B1D,SAAS,EAAc,GAA0B;CAChD,IAAM,EAAE,cAAW,OAAU,GACvB,CAAC,GAAc,KAAmB,EAAuB,CAAC,CAAC;CAEjE,SAAS,EAAY,GAAa;EACjC,OAAO,CAAC,CAAC,EAAa,MAAM,MAAU,EAAM,QAAQ,CAAG;CACxD;CAEA,SAAS,EAAU,GAAa;EAC/B,OAAO,EAAa,MAAM,MAAU,EAAM,QAAQ,CAAG,CAAC,EAAE;CACzD;CAGA,SAAS,EAAU,GAAa,GAAY;EAE3C,AADqB,EAAY,CAC7B,IACH,GAAiB,MAET,CAAC,GADS,EAAI,QAAQ,MAAU,EAAM,QAAQ,CAC1C,GAAU;GAAE;GAAK;EAAK,CAAC,CAClC,IACK,EAAgB,CAAC,GAAG,GAAc;GAAE;GAAK;EAAK,CAAC,CAAC;CACxD;CAEA,SAAS,EAAW,GAAa;EAChC,EAAgB,EAAa,QAAQ,MAAU,EAAM,QAAQ,CAAG,CAAC;CAClE;CAEA,SAAS,IAAW;EACnB,EAAgB,CAAC,CAAC;CACnB;CAEA,OACC,kBAAC,EAAa,UAAd;EACC,OAAO;GAAE;GAAa;GAAW;GAAW;GAAY;EAAS;EAEhE;CACqB,CAAA;AAEzB"}
@@ -16,3 +16,5 @@ function i(i) {
16
16
  }
17
17
  //#endregion
18
18
  export { i as PlacesProvider };
19
+
20
+ //# sourceMappingURL=placesProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placesProvider.js","names":[],"sources":["../../../src/providers/placesProvider.tsx"],"sourcesContent":["import { useLoadScript } from \"@react-google-maps/api\";\nimport type { ReactNode } from \"react\";\n\nconst libraries: (\"places\" | \"marker\" | \"maps\")[] = [\n\t\"places\",\n\t\"marker\",\n\t\"maps\",\n];\n\ntype PlacesProviderProps = {\n\tapiKey: string;\n\tchildren: (isLoaded: boolean) => ReactNode;\n\tpreventFontsLoading?: boolean;\n};\n\n/**\n * PlacesProvider — loads the Google Maps JS API with `places`, `marker`, and `maps` libraries.\n *\n * Uses a render-prop pattern: `children` receives `isLoaded` so you can defer rendering\n * `SearchPlaces` or `MapView` until the script is ready.\n *\n * @param props.apiKey - Google Maps API key. Required.\n * @param props.children - Render function: `(isLoaded: boolean) => ReactNode`.\n * @param props.preventFontsLoading - Prevents Google Fonts from being injected by the Maps SDK. @default true\n *\n * @returns The result of calling `children(isLoaded)`.\n *\n * @example\n * ```tsx\n * <PlacesProvider apiKey={env.GOOGLE_MAPS_KEY}>\n * {(isLoaded) => (\n * isLoaded\n * ? <SearchPlaces apiKey={env.GOOGLE_MAPS_KEY} onSelect={setAddress} />\n * : <Skeleton />\n * )}\n * </PlacesProvider>\n * ```\n */\n\nfunction PlacesProvider(props: PlacesProviderProps) {\n\tconst { apiKey, children, preventFontsLoading = true } = props;\n\n\tconst { isLoaded } = useLoadScript({\n\t\tgoogleMapsApiKey: apiKey,\n\t\tlibraries,\n\t\tpreventGoogleFontsLoading: preventFontsLoading,\n\t});\n\n\treturn <>{children(isLoaded)}</>;\n}\n\nexport { PlacesProvider };\n"],"mappings":";;;AAGA,IAAM,IAA8C;CACnD;CACA;CACA;AACD;AAgCA,SAAS,EAAe,GAA4B;CACnD,IAAM,EAAE,WAAQ,aAAU,yBAAsB,OAAS,GAEnD,EAAE,gBAAa,EAAc;EAClC,kBAAkB;EAClB;EACA,2BAA2B;CAC5B,CAAC;CAED,OAAO,kBAAA,GAAA,EAAA,UAAG,EAAS,CAAQ,EAAI,CAAA;AAChC"}
@@ -1,46 +1,49 @@
1
- import { createContext as e } from "react";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import r, { Toaster as i } from "react-hot-toast";
1
+ import { createContext as e, useMemo as t } from "react";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import i, { Toaster as a } from "react-hot-toast";
4
4
  //#region src/providers/toastProvider.tsx
5
- var a = e({});
6
- function o({ children: e }) {
7
- function o(e) {
8
- switch (e.type) {
9
- case "success": return r.success(e.message, {
10
- style: {
11
- background: "#10B981",
12
- color: "#ffffff",
13
- padding: "12px 16px",
14
- fontSize: "14px",
15
- fontWeight: 600
16
- },
17
- iconTheme: {
18
- primary: "#059669",
19
- secondary: "#ffffff"
20
- }
21
- });
22
- case "danger": return r.error(e.message, {
23
- style: {
24
- background: "#E11D48",
25
- color: "#ffffff",
26
- padding: "12px 16px",
27
- fontSize: "14px",
28
- fontWeight: 600
29
- },
30
- iconTheme: {
31
- primary: "#BE123C",
32
- secondary: "#ffffff"
33
- }
34
- });
35
- }
5
+ var o = e({});
6
+ function s(e) {
7
+ switch (e.type) {
8
+ case "success": return i.success(e.message, {
9
+ style: {
10
+ background: "#10B981",
11
+ color: "#ffffff",
12
+ padding: "12px 16px",
13
+ fontSize: "14px",
14
+ fontWeight: 600
15
+ },
16
+ iconTheme: {
17
+ primary: "#059669",
18
+ secondary: "#ffffff"
19
+ }
20
+ });
21
+ case "danger": return i.error(e.message, {
22
+ style: {
23
+ background: "#E11D48",
24
+ color: "#ffffff",
25
+ padding: "12px 16px",
26
+ fontSize: "14px",
27
+ fontWeight: 600
28
+ },
29
+ iconTheme: {
30
+ primary: "#BE123C",
31
+ secondary: "#ffffff"
32
+ }
33
+ });
36
34
  }
37
- return /* @__PURE__ */ n(a.Provider, {
38
- value: { showToast: o },
39
- children: [/* @__PURE__ */ t(i, {
35
+ }
36
+ function c({ children: e }) {
37
+ let i = t(() => ({ showToast: s }), []);
38
+ return /* @__PURE__ */ r(o.Provider, {
39
+ value: i,
40
+ children: [/* @__PURE__ */ n(a, {
40
41
  position: "top-right",
41
42
  containerStyle: { zIndex: 999999999999999 }
42
43
  }), e]
43
44
  });
44
45
  }
45
46
  //#endregion
46
- export { o as ToastProvider, a as toastContext };
47
+ export { c as ToastProvider, o as toastContext };
48
+
49
+ //# sourceMappingURL=toastProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toastProvider.js","names":[],"sources":["../../../src/providers/toastProvider.tsx"],"sourcesContent":["import { createContext, type ReactNode, useMemo } from \"react\";\nimport toast, { Toaster } from \"react-hot-toast\";\n\ntype ToastProps = {\n\tmessage: string;\n\ttype: \"success\" | \"danger\";\n};\n\ntype ToastContextProps = {\n\tshowToast(toast: ToastProps): void;\n};\n\ntype ToastProviderProps = {\n\tchildren: ReactNode;\n};\n\nconst toastContext = createContext({} as ToastContextProps);\n\nfunction showToast(props: ToastProps) {\n\tswitch (props.type) {\n\t\tcase \"success\":\n\t\t\treturn toast.success(props.message, {\n\t\t\t\tstyle: {\n\t\t\t\t\tbackground: \"#10B981\",\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t\tpadding: \"12px 16px\",\n\t\t\t\t\tfontSize: \"14px\",\n\t\t\t\t\tfontWeight: 600,\n\t\t\t\t},\n\t\t\t\ticonTheme: {\n\t\t\t\t\tprimary: \"#059669\",\n\t\t\t\t\tsecondary: \"#ffffff\",\n\t\t\t\t},\n\t\t\t});\n\t\tcase \"danger\":\n\t\t\treturn toast.error(props.message, {\n\t\t\t\tstyle: {\n\t\t\t\t\tbackground: \"#E11D48\",\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t\tpadding: \"12px 16px\",\n\t\t\t\t\tfontSize: \"14px\",\n\t\t\t\t\tfontWeight: 600,\n\t\t\t\t},\n\t\t\t\ticonTheme: {\n\t\t\t\t\tprimary: \"#BE123C\",\n\t\t\t\t\tsecondary: \"#ffffff\",\n\t\t\t\t},\n\t\t\t});\n\t}\n}\n\n/**\n * ToastProvider — mounts a `react-hot-toast` `<Toaster>` and exposes `showToast` via context.\n *\n * Wrap your app once. Then call `useToast()` anywhere in the tree to show notifications.\n * Supports two types: `\"success\"` (green) and `\"danger\"` (red).\n *\n * @param props.children - App subtree that will have access to `useToast`.\n *\n * @returns ToastProvider JSX element.\n *\n * @example\n * ```tsx\n * // In your root layout\n * <ToastProvider>\n * <App />\n * </ToastProvider>\n *\n * // Anywhere in the tree\n * const { showToast } = useToast();\n * showToast({ message: \"Order placed!\", type: \"success\" });\n * ```\n */\n\nfunction ToastProvider({ children }: ToastProviderProps) {\n\tconst value = useMemo(() => ({ showToast }), []);\n\n\treturn (\n\t\t<toastContext.Provider value={value}>\n\t\t\t<Toaster\n\t\t\t\tposition=\"top-right\"\n\t\t\t\tcontainerStyle={{ zIndex: 999999999999999 }}\n\t\t\t/>\n\t\t\t{children}\n\t\t</toastContext.Provider>\n\t);\n}\n\nexport { ToastProvider, toastContext };\n"],"mappings":";;;;AAgBA,IAAM,IAAe,EAAc,CAAC,CAAsB;AAE1D,SAAS,EAAU,GAAmB;CACrC,QAAQ,EAAM,MAAd;EACC,KAAK,WACJ,OAAO,EAAM,QAAQ,EAAM,SAAS;GACnC,OAAO;IACN,YAAY;IACZ,OAAO;IACP,SAAS;IACT,UAAU;IACV,YAAY;GACb;GACA,WAAW;IACV,SAAS;IACT,WAAW;GACZ;EACD,CAAC;EACF,KAAK,UACJ,OAAO,EAAM,MAAM,EAAM,SAAS;GACjC,OAAO;IACN,YAAY;IACZ,OAAO;IACP,SAAS;IACT,UAAU;IACV,YAAY;GACb;GACA,WAAW;IACV,SAAS;IACT,WAAW;GACZ;EACD,CAAC;CACH;AACD;AAyBA,SAAS,EAAc,EAAE,eAAgC;CACxD,IAAM,IAAQ,SAAe,EAAE,aAAU,IAAI,CAAC,CAAC;CAE/C,OACC,kBAAC,EAAa,UAAd;EAA8B;YAA9B,CACC,kBAAC,GAAD;GACC,UAAS;GACT,gBAAgB,EAAE,QAAQ,gBAAgB;EAC1C,CAAA,GACA,CACqB;;AAEzB"}
@@ -5,3 +5,5 @@ function t(t) {
5
5
  }
6
6
  //#endregion
7
7
  export { t as extractTextFromNode };
8
+
9
+ //# sourceMappingURL=extractTextFromNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractTextFromNode.js","names":[],"sources":["../../../src/services/extractTextFromNode.ts"],"sourcesContent":["import { type Descendant, Node } from \"slate\";\n\nfunction extractTextFromNode(nodes: Descendant[]) {\n\treturn nodes.map((n) => Node.string(n)).join(\"\");\n}\n\nexport { extractTextFromNode };\n"],"mappings":";;AAEA,SAAS,EAAoB,GAAqB;CACjD,OAAO,EAAM,KAAK,MAAM,EAAK,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE;AAChD"}
@@ -21,3 +21,5 @@ function a(a) {
21
21
  }
22
22
  //#endregion
23
23
  export { a as FieldTemplate };
24
+
25
+ //# sourceMappingURL=fieldTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldTemplate.js","names":[],"sources":["../../../src/services/fieldTemplate.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport { FieldError } from \"../components/fieldError\";\nimport { FieldLabel } from \"../components/fieldLabel\";\nimport { FieldWrapper } from \"../components/fieldWrapper\";\n\ntype FormRendererProps = {\n\tname?: string;\n\tlabel?: string;\n\tclassName?: string;\n\tshowAsterisk?: boolean;\n\tunShowFieldTemplate?: boolean;\n\terrorMessage?: string;\n\torientation?: \"horizontal\" | \"vertical\" | \"horizontalReverse\";\n\tchildren: ReactNode;\n};\n\nfunction FieldTemplate(props: FormRendererProps) {\n\tconst {\n\t\tname,\n\t\tlabel,\n\t\tshowAsterisk,\n\t\tclassName,\n\t\tunShowFieldTemplate,\n\t\terrorMessage,\n\t\tchildren,\n\t\torientation,\n\t} = props;\n\n\tif (unShowFieldTemplate) return children;\n\n\treturn (\n\t\t<FieldWrapper id={name} className={className} orientation={orientation}>\n\t\t\t{label && <FieldLabel showAsterisk={showAsterisk}>{label}</FieldLabel>}\n\t\t\t{children}\n\t\t\t{errorMessage && <FieldError>{errorMessage}</FieldError>}\n\t\t</FieldWrapper>\n\t);\n}\n\nexport { FieldTemplate };\n"],"mappings":";;;;;AAiBA,SAAS,EAAc,GAA0B;CAChD,IAAM,EACL,SACA,UACA,iBACA,cACA,wBACA,iBACA,aACA,mBACG;CAIJ,OAFI,IAA4B,IAG/B,kBAAC,GAAD;EAAc,IAAI;EAAiB;EAAwB;YAA3D;GACE,KAAS,kBAAC,GAAD;IAA0B;cAAe;GAAkB,CAAA;GACpE;GACA,KAAgB,kBAAC,GAAD,EAAA,UAAa,EAAyB,CAAA;EAC1C;;AAEhB"}
@@ -13,3 +13,5 @@ function t(t) {
13
13
  }
14
14
  //#endregion
15
15
  export { t as IconRenderer };
16
+
17
+ //# sourceMappingURL=iconRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iconRenderer.js","names":[],"sources":["../../../src/services/iconRenderer.tsx"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\n\ntype IconRendererProps = {\n\ticonSize: number;\n\tclassName?: string;\n\ticon?: LucideIcon | string;\n\tshow?: boolean;\n};\n\nfunction IconRenderer(props: IconRendererProps) {\n\tconst { iconSize, icon: Icon, className, show = true } = props;\n\n\tif (!show) return null;\n\tif (!Icon) return null;\n\n\tif (typeof Icon === \"string\") {\n\t\treturn <p className={className}>{Icon}</p>;\n\t}\n\n\treturn <Icon size={iconSize} strokeWidth={2.5} className={className} />;\n}\n\nexport { IconRenderer };\n"],"mappings":";;AASA,SAAS,EAAa,GAA0B;CAC/C,IAAM,EAAE,aAAU,MAAM,GAAM,cAAW,UAAO,OAAS;CASzD,OAPI,CAAC,KACD,CAAC,IAAa,OAEd,OAAO,KAAS,WACZ,kBAAC,KAAD;EAAc;YAAY;CAAQ,CAAA,IAGnC,kBAAC,GAAD;EAAM,MAAM;EAAU,aAAa;EAAgB;CAAY,CAAA;AACvE"}
@@ -11,3 +11,5 @@ function n(n, r, i = "type") {
11
11
  }
12
12
  //#endregion
13
13
  export { n as isBlockActive };
14
+
15
+ //# sourceMappingURL=isBlockActive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBlockActive.js","names":[],"sources":["../../../src/services/isBlockActive.ts"],"sourcesContent":["import { Editor, Element as SlateElement } from \"slate\";\n\nimport type {\n\tRichTextAlignFormatType,\n\tRichTextElementFormatType,\n} from \"../types/richTextTypes\";\n\nfunction isBlockActive(\n\teditor: Editor,\n\tformat: RichTextElementFormatType | RichTextAlignFormatType,\n\tblockType: \"type\" | \"align\" = \"type\",\n) {\n\tconst { selection } = editor;\n\tif (!selection) return false;\n\n\tconst [match] = Array.from(\n\t\tEditor.nodes(editor, {\n\t\t\tat: Editor.unhangRange(editor, selection),\n\t\t\tmatch: (n) =>\n\t\t\t\t!Editor.isEditor(n) &&\n\t\t\t\tSlateElement.isElement(n) &&\n\t\t\t\tn[blockType] === format,\n\t\t}),\n\t);\n\n\treturn !!match;\n}\n\nexport { isBlockActive };\n"],"mappings":";;AAOA,SAAS,EACR,GACA,GACA,IAA8B,QAC7B;CACD,IAAM,EAAE,iBAAc;CACtB,IAAI,CAAC,GAAW,OAAO;CAEvB,IAAM,CAAC,KAAS,MAAM,KACrB,EAAO,MAAM,GAAQ;EACpB,IAAI,EAAO,YAAY,GAAQ,CAAS;EACxC,QAAQ,MACP,CAAC,EAAO,SAAS,CAAC,KAClB,EAAa,UAAU,CAAC,KACxB,EAAE,OAAe;CACnB,CAAC,CACF;CAEA,OAAO,CAAC,CAAC;AACV"}
@@ -6,3 +6,5 @@ function t(t, n) {
6
6
  }
7
7
  //#endregion
8
8
  export { t as isMarkActive };
9
+
10
+ //# sourceMappingURL=isMarkActive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMarkActive.js","names":[],"sources":["../../../src/services/isMarkActive.ts"],"sourcesContent":["import { Editor } from \"slate\";\n\nimport type { RichTextMarkFormatType } from \"../types/richTextTypes\";\n\nfunction isMarkActive(editor: Editor, format: RichTextMarkFormatType) {\n\tconst marks = Editor.marks(editor);\n\treturn marks ? marks[format] === true : false;\n}\n\nexport { isMarkActive };\n"],"mappings":";;AAIA,SAAS,EAAa,GAAgB,GAAgC;CACrE,IAAM,IAAQ,EAAO,MAAM,CAAM;CACjC,OAAO,IAAQ,EAAM,OAAY,KAAO;AACzC"}
@@ -11,3 +11,5 @@ function r(t, r) {
11
11
  }
12
12
  //#endregion
13
13
  export { r as maskCurrencyValues, n as normalizeValue };
14
+
15
+ //# sourceMappingURL=maskCurrencyValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"maskCurrencyValues.js","names":[],"sources":["../../../src/services/maskCurrencyValues.ts"],"sourcesContent":["import { formatToCurrency, removeNonNumeric } from \"@arkyn/shared\";\n\ntype Locale =\n\t| \"USD\"\n\t| \"EUR\"\n\t| \"JPY\"\n\t| \"GBP\"\n\t| \"AUD\"\n\t| \"CAD\"\n\t| \"CHF\"\n\t| \"CNY\"\n\t| \"SEK\"\n\t| \"NZD\"\n\t| \"BRL\"\n\t| \"INR\"\n\t| \"RUB\"\n\t| \"ZAR\"\n\t| \"MXN\"\n\t| \"SGD\"\n\t| \"HKD\"\n\t| \"NOK\"\n\t| \"KRW\"\n\t| \"TRY\"\n\t| \"IDR\"\n\t| \"THB\";\n\nfunction normalizeValue(number: string | number) {\n\tlet safeNumber = number;\n\n\tif (typeof number === \"string\") {\n\t\tsafeNumber = +removeNonNumeric(number);\n\t\tif (safeNumber % 1 !== 0) safeNumber = safeNumber.toFixed(2);\n\t} else {\n\t\tsafeNumber = Number.isInteger(number)\n\t\t\t? Number(number) * 10 ** 2\n\t\t\t: number.toFixed(2);\n\t}\n\n\treturn +removeNonNumeric(String(safeNumber)) / 10 ** 2;\n}\n\nfunction maskCurrencyValues(\n\tinputFieldValue: string | number | undefined,\n\tlocale: Locale,\n): [number, string] {\n\tif (!inputFieldValue) return [0, formatToCurrency(0, locale)];\n\n\tconst value = normalizeValue(inputFieldValue);\n\tconst maskedValue = formatToCurrency(value, locale);\n\n\treturn [value, maskedValue];\n}\n\nexport { maskCurrencyValues, normalizeValue };\n"],"mappings":";;AA0BA,SAAS,EAAe,GAAyB;CAChD,IAAI,IAAa;CAWjB,OATI,OAAO,KAAW,YACrB,IAAa,CAAC,EAAiB,CAAM,GACjC,IAAa,KAAM,MAAG,IAAa,EAAW,QAAQ,CAAC,MAE3D,IAAa,OAAO,UAAU,CAAM,IACjC,OAAO,CAAM,IAAI,MAAM,IACvB,EAAO,QAAQ,CAAC,GAGZ,EAAiB,OAAO,CAAU,CAAC,IAAI,MAAM;AACtD;AAEA,SAAS,EACR,GACA,GACmB;CACnB,IAAI,CAAC,GAAiB,OAAO,CAAC,GAAG,EAAiB,GAAG,CAAM,CAAC;CAE5D,IAAM,IAAQ,EAAe,CAAe;CAG5C,OAAO,CAAC,GAFY,EAAiB,GAAO,CAE7B,CAAW;AAC3B"}
@@ -5,3 +5,5 @@ function t(t) {
5
5
  }
6
6
  //#endregion
7
7
  export { t as toHtml };
8
+
9
+ //# sourceMappingURL=toHtml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toHtml.js","names":[],"sources":["../../../src/services/toHtml.ts"],"sourcesContent":["import type { RichTextValue } from \"../types/richTextTypes\";\nimport { serialize } from \"../utils/richTextUtilities\";\n\n/**\n * toHtml — converts a `RichTextValue` (Slate.js Descendant array) to an HTML string.\n *\n * Use this to persist or display the editor's content as plain HTML.\n *\n * @param richTextValue - The value from a `RichText` component's `onChange` callback.\n * @returns HTML string representation of the rich text content.\n *\n * @example\n * ```tsx\n * const [content, setContent] = useState<RichTextValue>([]);\n *\n * // On form submit, convert to HTML for storage\n * const html = toHtml(content);\n * // e.g. \"<p><strong>Hello world</strong></p>\"\n * ```\n */\n\nfunction toHtml(richTextValue: RichTextValue): string {\n\treturn richTextValue.map((node) => serialize(node)).join(\"\");\n}\n\nexport { toHtml };\n"],"mappings":";;AAqBA,SAAS,EAAO,GAAsC;CACrD,OAAO,EAAc,KAAK,MAAS,EAAU,CAAI,CAAC,CAAC,CAAC,KAAK,EAAE;AAC5D"}
@@ -7,3 +7,5 @@ function n(n) {
7
7
  }
8
8
  //#endregion
9
9
  export { n as toRichTextValue };
10
+
11
+ //# sourceMappingURL=toRichTextValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toRichTextValue.js","names":[],"sources":["../../../src/services/toRichTextValue.ts"],"sourcesContent":["import parse from \"html-react-parser\";\n\nimport type { ParseElement, RichTextValue } from \"../types/richTextTypes\";\nimport { deserialize } from \"../utils/richTextUtilities\";\n\n/**\n * toRichTextValue — converts an HTML string to a `RichTextValue` (Slate.js Descendant array).\n *\n * Use this to populate a `RichText` editor with content previously stored as HTML\n * (e.g. loaded from a database).\n *\n * @param html - HTML string to convert.\n * @returns Slate.js Descendant array ready to pass to `RichText`'s `defaultValue` prop.\n *\n * @example\n * ```tsx\n * // Load stored HTML into the editor\n * const defaultValue = toRichTextValue(product.description);\n * // e.g. [{ type: 'paragraph', children: [{ text: 'Hello', bold: true }] }]\n *\n * <RichText name=\"description\" defaultValue={defaultValue} />\n * ```\n */\n\nfunction toRichTextValue(html: string): RichTextValue {\n\tconst parsed = parse(html);\n\n\tif (Array.isArray(parsed)) {\n\t\treturn parsed.map((node) => {\n\t\t\tif (typeof node === \"string\") return { text: node };\n\t\t\treturn deserialize(node as ParseElement);\n\t\t});\n\t}\n\n\tif (typeof parsed === \"string\") return [{ text: parsed }];\n\treturn [deserialize(parsed as ParseElement)];\n}\n\nexport { toRichTextValue };\n"],"mappings":";;;AAwBA,SAAS,EAAgB,GAA6B;CACrD,IAAM,IAAS,EAAM,CAAI;CAUzB,OARI,MAAM,QAAQ,CAAM,IAChB,EAAO,KAAK,MACd,OAAO,KAAS,WAAiB,EAAE,MAAM,EAAK,IAC3C,EAAY,CAAoB,CACvC,IAGE,OAAO,KAAW,WAAiB,CAAC,EAAE,MAAM,EAAO,CAAC,IACjD,CAAC,EAAY,CAAsB,CAAC;AAC5C"}
@@ -19,3 +19,5 @@ function o(o, s) {
19
19
  }
20
20
  //#endregion
21
21
  export { o as toggleBlock };
22
+
23
+ //# sourceMappingURL=toggleBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleBlock.js","names":[],"sources":["../../../src/services/toggleBlock.ts"],"sourcesContent":["import { Editor, Element as SlateElement, Transforms } from \"slate\";\n\nimport { listTypes, textAlignTypes } from \"../templates/richTextTemplates\";\nimport type {\n\tRichTextAlignFormatType,\n\tRichTextElementFormatType,\n} from \"../types/richTextTypes\";\nimport { isBlockActive } from \"./isBlockActive\";\n\nfunction toggleBlock(\n\teditor: Editor,\n\tformat: RichTextElementFormatType | RichTextAlignFormatType,\n) {\n\tconst blockType = textAlignTypes.includes(format) ? \"align\" : \"type\";\n\tconst isActive = isBlockActive(editor, format, blockType);\n\n\tconst isList = listTypes.includes(format);\n\n\tTransforms.unwrapNodes(editor, {\n\t\tmatch: (n) =>\n\t\t\t!Editor.isEditor(n) &&\n\t\t\tSlateElement.isElement(n) &&\n\t\t\tlistTypes.includes(n.type) &&\n\t\t\t!textAlignTypes.includes(format),\n\t\tsplit: true,\n\t});\n\n\tlet newProperties: Partial<SlateElement>;\n\n\tif (textAlignTypes.includes(format)) {\n\t\tconst formatType = format as RichTextAlignFormatType;\n\t\tnewProperties = { align: isActive ? undefined : formatType };\n\t} else {\n\t\tconst formatType = format as RichTextElementFormatType;\n\t\tnewProperties = {\n\t\t\ttype: isActive ? \"paragraph\" : isList ? \"listItem\" : formatType,\n\t\t};\n\t}\n\n\tTransforms.setNodes<SlateElement>(editor, newProperties);\n\n\tif (!isActive && isList) {\n\t\tconst block = { type: format as RichTextElementFormatType, children: [] };\n\t\tTransforms.wrapNodes(editor, block);\n\t}\n}\n\nexport { toggleBlock };\n"],"mappings":";;;;AASA,SAAS,EACR,GACA,GACC;CAED,IAAM,IAAW,EAAc,GAAQ,GADrB,EAAe,SAAS,CAAM,IAAI,UAAU,MACN,GAElD,IAAS,EAAU,SAAS,CAAM;CAExC,EAAW,YAAY,GAAQ;EAC9B,QAAQ,MACP,CAAC,EAAO,SAAS,CAAC,KAClB,EAAa,UAAU,CAAC,KACxB,EAAU,SAAS,EAAE,IAAI,KACzB,CAAC,EAAe,SAAS,CAAM;EAChC,OAAO;CACR,CAAC;CAED,IAAI;CAcJ,IAZA,AAKC,IALG,EAAe,SAAS,CAAM,IAEjB,EAAE,OAAO,IAAW,KAAA,IAAY,EAAW,IAG3C,EACf,MAAM,IAAW,cAAc,IAAS,aAAa,EACtD,GAGD,EAAW,SAAuB,GAAQ,CAAa,GAEnD,CAAC,KAAY,GAAQ;EACxB,IAAM,IAAQ;GAAE,MAAM;GAAqC,UAAU,CAAC;EAAE;EACxE,EAAW,UAAU,GAAQ,CAAK;CACnC;AACD"}
@@ -6,3 +6,5 @@ function n(n, r) {
6
6
  }
7
7
  //#endregion
8
8
  export { n as toggleMark };
9
+
10
+ //# sourceMappingURL=toggleMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleMark.js","names":[],"sources":["../../../src/services/toggleMark.ts"],"sourcesContent":["import { Editor } from \"slate\";\n\nimport type { RichTextMarkFormatType } from \"../types/richTextTypes\";\nimport { isMarkActive } from \"./isMarkActive\";\n\nfunction toggleMark(editor: Editor, format: RichTextMarkFormatType) {\n\tconst isActive = isMarkActive(editor, format);\n\n\tif (isActive) Editor.removeMark(editor, format);\n\telse Editor.addMark(editor, format, true);\n}\n\nexport { toggleMark };\n"],"mappings":";;;AAKA,SAAS,EAAW,GAAgB,GAAgC;CAGnE,AAFiB,EAAa,GAAQ,CAElC,IAAU,EAAO,WAAW,GAAQ,CAAM,IACzC,EAAO,QAAQ,GAAQ,GAAQ,EAAI;AACzC"}
@@ -12,3 +12,5 @@ var e = [
12
12
  ];
13
13
  //#endregion
14
14
  export { e as badResponses };
15
+
16
+ //# sourceMappingURL=badResponses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badResponses.js","names":[],"sources":["../../../src/templates/badResponses.ts"],"sourcesContent":["const badResponses = [\n\t\"BadGateway\",\n\t\"BadRequest\",\n\t\"Conflict\",\n\t\"Forbidden\",\n\t\"NotFound\",\n\t\"NotImplemented\",\n\t\"ServerError\",\n\t\"Unauthorized\",\n\t\"UnprocessableEntity\",\n];\n\nexport { badResponses };\n"],"mappings":";AAAA,IAAM,IAAe;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD"}
@@ -15,3 +15,5 @@ var e = {
15
15
  ];
16
16
  //#endregion
17
17
  export { e as hotKeys, t as initialValue, n as listTypes, r as textAlignTypes };
18
+
19
+ //# sourceMappingURL=richTextTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richTextTemplates.js","names":[],"sources":["../../../src/templates/richTextTemplates.ts"],"sourcesContent":["import type {\n\tDescendant,\n\tRichTextMarkFormatType,\n} from \"../types/richTextTypes\";\n\ntype HotKeys = {\n\t[key: string]: RichTextMarkFormatType;\n};\n\nconst hotKeys: HotKeys = {\n\t\"mod+b\": \"bold\",\n\t\"mod+i\": \"italic\",\n\t\"mod+u\": \"underline\",\n\t\"mod+`\": \"code\",\n};\n\nconst initialValue: Descendant[] = [\n\t{ type: \"paragraph\", children: [{ text: \"\" }] },\n];\n\nconst listTypes = [\"listItem\", \"numberedList\"];\n\nconst textAlignTypes = [\"left\", \"center\", \"right\", \"justify\"];\n\nexport { hotKeys, initialValue, listTypes, textAlignTypes };\n"],"mappings":";AASA,IAAM,IAAmB;CACxB,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;AACV,GAEM,IAA6B,CAClC;CAAE,MAAM;CAAa,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;AAAE,CAC/C,GAEM,IAAY,CAAC,YAAY,cAAc,GAEvC,IAAiB;CAAC;CAAQ;CAAU;CAAS;AAAS"}
@@ -7,3 +7,5 @@ var e = [
7
7
  ];
8
8
  //#endregion
9
9
  export { e as successResponses };
10
+
11
+ //# sourceMappingURL=successResponses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"successResponses.js","names":[],"sources":["../../../src/templates/successResponses.ts"],"sourcesContent":["const successResponses = [\"Created\", \"Found\", \"Success\", \"Updated\"];\n\nexport { successResponses };\n"],"mappings":";AAAA,IAAM,IAAmB;CAAC;CAAW;CAAS;CAAW;AAAS"}
@@ -20,3 +20,5 @@ function r(e) {
20
20
  var i = e(t.NINE).length;
21
21
  //#endregion
22
22
  export { i as MAX_LENGTH, t as TYPES, n as applyMask, e as clear, r as getMask };
23
+
24
+ //# sourceMappingURL=phoneInputUtilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phoneInputUtilities.js","names":[],"sources":["../../../src/utils/phoneInputUtilities.ts"],"sourcesContent":["function clear(value: string) {\n\treturn value?.replace(/[^0-9]/g, \"\");\n}\n\nconst TYPES = {\n\tEIGHT: \"(99) 9999-9999\",\n\tNINE: \"(99) 99999-9999\",\n};\n\nfunction applyMask(value: string, maskPattern: string) {\n\tlet result = \"\";\n\tlet digitIndex = 0;\n\n\tfor (let i = 0; i < maskPattern.length; i++) {\n\t\tif (maskPattern[i] === \"9\") {\n\t\t\tif (digitIndex < value.length) {\n\t\t\t\tresult += value[digitIndex];\n\t\t\t\tdigitIndex++;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tif (digitIndex < value.length) {\n\t\t\t\tresult += maskPattern[i];\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\nfunction getMask(value: string): \"NINE\" | \"EIGHT\" {\n\tconst mask = value.length > 10 ? \"NINE\" : \"EIGHT\";\n\treturn mask;\n}\n\nconst MAX_LENGTH = clear(TYPES.NINE).length;\n\nexport { applyMask, clear, getMask, MAX_LENGTH, TYPES };\n"],"mappings":";AAAA,SAAS,EAAM,GAAe;CAC7B,OAAO,GAAO,QAAQ,WAAW,EAAE;AACpC;AAEA,IAAM,IAAQ;CACb,OAAO;CACP,MAAM;AACP;AAEA,SAAS,EAAU,GAAe,GAAqB;CACtD,IAAI,IAAS,IACT,IAAa;CAEjB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAY,QAAQ,KACvC,IAAI,EAAY,OAAO,KACtB,IAAI,IAAa,EAAM,QAEtB,AADA,KAAU,EAAM,IAChB;MAEA;MAGD,IAAI,IAAa,EAAM,QACtB,KAAU,EAAY;MAEtB;CAKH,OAAO;AACR;AAEA,SAAS,EAAQ,GAAiC;CAEjD,OADa,EAAM,SAAS,KAAK,SAAS;AAE3C;AAEA,IAAM,IAAa,EAAM,EAAM,IAAI,CAAC,CAAC"}
@@ -88,3 +88,5 @@ function r(e) {
88
88
  }
89
89
  //#endregion
90
90
  export { r as deserialize, n as serialize };
91
+
92
+ //# sourceMappingURL=richTextUtilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richTextUtilities.js","names":[],"sources":["../../../src/utils/richTextUtilities.ts"],"sourcesContent":["import { Element, Text } from \"slate\";\nimport type { ParseElement } from \"../types/richTextTypes\";\n\n// biome-ignore lint/suspicious/noExplicitAny: intentional\nfunction serialize(node: any): string {\n\tif (Text.isText(node)) {\n\t\tlet text = node?.text;\n\t\tif (node?.bold) {\n\t\t\ttext = `<strong>${text}</strong>`;\n\t\t}\n\t\tif (node?.code) {\n\t\t\ttext = `<code>${text}</code>`;\n\t\t}\n\t\tif (node?.italic) {\n\t\t\ttext = `<em>${text}</em>`;\n\t\t}\n\t\tif (node?.underline) {\n\t\t\ttext = `<u>${text}</u>`;\n\t\t}\n\t\treturn text;\n\t}\n\n\tif (Element.isElement(node)) {\n\t\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\t\tconst children = node.children?.map((n: any) => serialize(n)).join(\"\");\n\t\tconst alignStyle = node.align || \"left\";\n\n\t\tswitch (node.type) {\n\t\t\tcase \"video\":\n\t\t\t\treturn `<iframe src=\"${node.src}\" class=\"align_${alignStyle}\" />`;\n\t\t\tcase \"image\":\n\t\t\t\treturn `<img src=\"${node.src}\" class=\"align_${alignStyle}\" />`;\n\t\t\tcase \"paragraph\":\n\t\t\t\treturn `<p class=\"align_${alignStyle}\">${children}</p>`;\n\t\t\tcase \"blockQuote\":\n\t\t\t\treturn `<blockquote class=\"align_${alignStyle}\">${children}</blockquote>`;\n\t\t\tcase \"bulletedList\":\n\t\t\t\treturn `<ul class=\"align_${alignStyle}\">${children}</ul>`;\n\t\t\tcase \"headingOne\":\n\t\t\t\treturn `<h1 class=\"align_${alignStyle}\">${children}</h1>`;\n\t\t\tcase \"headingTwo\":\n\t\t\t\treturn `<h2 class=\"align_${alignStyle}\">${children}</h2>`;\n\t\t\tcase \"listItem\":\n\t\t\t\treturn `<li class=\"align_${alignStyle}\">${children}</li>`;\n\t\t\tcase \"numberedList\":\n\t\t\t\treturn `<ol class=\"align_${alignStyle}\">${children}</ol>`;\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\t\t}\n\t}\n\n\treturn \"\";\n}\n\n// biome-ignore lint/suspicious/noExplicitAny: intentional\nfunction deserialize(el: ParseElement): any {\n\tif (typeof el === \"string\") {\n\t\treturn { text: el };\n\t}\n\n\tconst children = Array.isArray(el.props.children)\n\t\t? el.props.children.map((child) => deserialize(child))\n\t\t: [{ text: el.props.children || \"\" }];\n\n\tconst align = el.props.className?.replace(\"align_\", \"\") as\n\t\t| \"left\"\n\t\t| \"center\"\n\t\t| \"right\"\n\t\t| \"justify\";\n\n\tswitch (el.type) {\n\t\tcase \"img\":\n\t\t\treturn {\n\t\t\t\ttype: \"image\",\n\t\t\t\talign,\n\t\t\t\tsrc: el.props.src,\n\t\t\t\tchildren: [{ text: \"\" }],\n\t\t\t};\n\t\tcase \"p\":\n\t\t\treturn { type: \"paragraph\", align, children };\n\t\tcase \"blockquote\":\n\t\t\treturn { type: \"blockQuote\", align, children };\n\t\tcase \"ul\":\n\t\t\treturn { type: \"bulletedList\", align, children };\n\t\tcase \"ol\":\n\t\t\treturn { type: \"numberedList\", align, children };\n\t\tcase \"li\":\n\t\t\treturn { type: \"listItem\", align, children };\n\t\tcase \"h1\":\n\t\t\treturn { type: \"headingOne\", align, children };\n\t\tcase \"h2\":\n\t\t\treturn { type: \"headingTwo\", align, children };\n\t\tcase \"strong\":\n\t\t\treturn { text: el.props.children, bold: true };\n\t\tcase \"code\":\n\t\t\treturn { text: el.props.children, code: true };\n\t\tcase \"em\":\n\t\t\treturn { text: el.props.children, italic: true };\n\t\tcase \"u\":\n\t\t\treturn { text: el.props.children, underline: true };\n\t\tdefault:\n\t\t\treturn { text: el.props.children || \"\" };\n\t}\n}\n\nexport { deserialize, serialize };\n"],"mappings":";;AAIA,SAAS,EAAU,GAAmB;CACrC,IAAI,EAAK,OAAO,CAAI,GAAG;EACtB,IAAI,IAAO,GAAM;EAajB,OAZI,GAAM,SACT,IAAO,WAAW,EAAK,aAEpB,GAAM,SACT,IAAO,SAAS,EAAK,WAElB,GAAM,WACT,IAAO,OAAO,EAAK,SAEhB,GAAM,cACT,IAAO,MAAM,EAAK,QAEZ;CACR;CAEA,IAAI,EAAQ,UAAU,CAAI,GAAG;EAE5B,IAAM,IAAW,EAAK,UAAU,KAAK,MAAW,EAAU,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,GAC/D,IAAa,EAAK,SAAS;EAEjC,QAAQ,EAAK,MAAb;GACC,KAAK,SACJ,OAAO,gBAAgB,EAAK,IAAI,iBAAiB,EAAW;GAC7D,KAAK,SACJ,OAAO,aAAa,EAAK,IAAI,iBAAiB,EAAW;GAC1D,KAAK,aACJ,OAAO,mBAAmB,EAAW,IAAI,EAAS;GACnD,KAAK,cACJ,OAAO,4BAA4B,EAAW,IAAI,EAAS;GAC5D,KAAK,gBACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,cACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,cACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,YACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,gBACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,SACC,OAAO;EACT;CACD;CAEA,OAAO;AACR;AAGA,SAAS,EAAY,GAAuB;CAC3C,IAAI,OAAO,KAAO,UACjB,OAAO,EAAE,MAAM,EAAG;CAGnB,IAAM,IAAW,MAAM,QAAQ,EAAG,MAAM,QAAQ,IAC7C,EAAG,MAAM,SAAS,KAAK,MAAU,EAAY,CAAK,CAAC,IACnD,CAAC,EAAE,MAAM,EAAG,MAAM,YAAY,GAAG,CAAC,GAE/B,IAAQ,EAAG,MAAM,WAAW,QAAQ,UAAU,EAAE;CAMtD,QAAQ,EAAG,MAAX;EACC,KAAK,OACJ,OAAO;GACN,MAAM;GACN;GACA,KAAK,EAAG,MAAM;GACd,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;EACxB;EACD,KAAK,KACJ,OAAO;GAAE,MAAM;GAAa;GAAO;EAAS;EAC7C,KAAK,cACJ,OAAO;GAAE,MAAM;GAAc;GAAO;EAAS;EAC9C,KAAK,MACJ,OAAO;GAAE,MAAM;GAAgB;GAAO;EAAS;EAChD,KAAK,MACJ,OAAO;GAAE,MAAM;GAAgB;GAAO;EAAS;EAChD,KAAK,MACJ,OAAO;GAAE,MAAM;GAAY;GAAO;EAAS;EAC5C,KAAK,MACJ,OAAO;GAAE,MAAM;GAAc;GAAO;EAAS;EAC9C,KAAK,MACJ,OAAO;GAAE,MAAM;GAAc;GAAO;EAAS;EAC9C,KAAK,UACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,MAAM;EAAK;EAC9C,KAAK,QACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,MAAM;EAAK;EAC9C,KAAK,MACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,QAAQ;EAAK;EAChD,KAAK,KACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,WAAW;EAAK;EACnD,SACC,OAAO,EAAE,MAAM,EAAG,MAAM,YAAY,GAAG;CACzC;AACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"formProvider.d.ts","sourceRoot":"","sources":["../../src/providers/formProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,KAAK,gBAAgB,GAAG;IAEvB,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IAEpB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAc7C;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"formProvider.d.ts","sourceRoot":"","sources":["../../src/providers/formProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAE7E,KAAK,gBAAgB,GAAG;IAEvB,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IAEpB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAgB7C;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"toastProvider.d.ts","sourceRoot":"","sources":["../../src/providers/toastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,KAAK,UAAU,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC3B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,YAAY,4CAAyC,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BA2CtD;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"toastProvider.d.ts","sourceRoot":"","sources":["../../src/providers/toastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAG/D,KAAK,UAAU,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC3B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,YAAY,4CAAyC,CAAC;AAmC5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BAYtD;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}