@arkyn/components 3.0.1-beta.154 → 3.0.1-beta.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/dist/index.js +4694 -75
  2. package/dist/modules/components/alert/alertContainer/index.js +22 -0
  3. package/dist/modules/components/alert/alertContent/index.js +9 -0
  4. package/dist/modules/components/alert/alertDescription/index.js +9 -0
  5. package/dist/modules/components/alert/alertIcon/index.js +20 -0
  6. package/dist/modules/components/alert/alertTitle/index.js +9 -0
  7. package/dist/modules/components/audioPlayer/index.js +76 -0
  8. package/dist/modules/components/audioUpload/hasFileContent/index.js +63 -0
  9. package/dist/modules/components/audioUpload/index.js +80 -0
  10. package/dist/modules/components/audioUpload/noFileContent/index.js +46 -0
  11. package/dist/modules/components/badge/index.js +23 -0
  12. package/dist/modules/components/button/index.js +33 -0
  13. package/dist/modules/components/calendar/_calendarProvider.js +65 -0
  14. package/dist/modules/components/calendar/_viewService.js +141 -0
  15. package/dist/modules/components/calendar/calendarContainer/index.js +8 -0
  16. package/dist/modules/components/calendar/calendarHeader/index.js +73 -0
  17. package/dist/modules/components/calendar/calendarTableBody/index.js +11 -0
  18. package/dist/modules/components/calendar/calendarTableContainer/index.js +8 -0
  19. package/dist/modules/components/calendar/calendarTableHeader/index.js +11 -0
  20. package/dist/modules/components/calendar/calendarTableTd/index.js +24 -0
  21. package/dist/modules/components/calendar/index.js +50 -0
  22. package/dist/modules/components/cardTab/cardTabButton/index.js +30 -0
  23. package/dist/modules/components/cardTab/cardTabContainer/index.js +29 -0
  24. package/dist/modules/components/cardTab/cardTabContext.js +13 -0
  25. package/dist/modules/components/checkbox/index.js +65 -0
  26. package/dist/modules/components/clientOnly.js +9 -0
  27. package/dist/modules/components/currencyInput/index.js +140 -0
  28. package/dist/modules/components/divider/index.js +13 -0
  29. package/dist/modules/components/drawer/drawerContainer/index.js +44 -0
  30. package/dist/modules/components/drawer/drawerContext.js +13 -0
  31. package/dist/modules/components/drawer/drawerHeader/index.js +28 -0
  32. package/dist/modules/components/facebookPixel/facebookPixel.client.js +19 -0
  33. package/dist/modules/components/facebookPixel/index.js +9 -0
  34. package/dist/modules/components/facebookPixel/pixel.js +53 -0
  35. package/dist/modules/components/fieldError/index.js +9 -0
  36. package/dist/modules/components/fieldLabel/index.js +13 -0
  37. package/dist/modules/components/fieldWrapper/index.js +14 -0
  38. package/dist/modules/components/fileUpload/hasFileContent/index.js +68 -0
  39. package/dist/modules/components/fileUpload/index.js +73 -0
  40. package/dist/modules/components/fileUpload/noFileContent/index.js +46 -0
  41. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +48 -0
  42. package/dist/modules/components/fullCalendar/_viewService.js +106 -0
  43. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +8 -0
  44. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +79 -0
  45. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +34 -0
  46. package/dist/modules/components/fullCalendar/dayCalendar/index.js +11 -0
  47. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +8 -0
  48. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +72 -0
  49. package/dist/modules/components/fullCalendar/index.js +31 -0
  50. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +13 -0
  51. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +37 -0
  52. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +11 -0
  53. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +10 -0
  54. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +11 -0
  55. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +37 -0
  56. package/dist/modules/components/fullCalendar/weekCalendar/index.js +13 -0
  57. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +79 -0
  58. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +21 -0
  59. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +10 -0
  60. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +20 -0
  61. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +40 -0
  62. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +8 -0
  63. package/dist/modules/components/googleAnalytics/googleAnalytics.js +18 -0
  64. package/dist/modules/components/googleAnalytics/index.js +10 -0
  65. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +16 -0
  66. package/dist/modules/components/googleTagManager/googleTagManager.client.js +8 -0
  67. package/dist/modules/components/googleTagManager/googleTagManager.js +49 -0
  68. package/dist/modules/components/googleTagManager/index.js +28 -0
  69. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +9 -0
  70. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +24 -0
  71. package/dist/modules/components/iconButton/index.js +30 -0
  72. package/dist/modules/components/imageUpload/hasFileContent/index.js +64 -0
  73. package/dist/modules/components/imageUpload/index.js +83 -0
  74. package/dist/modules/components/imageUpload/noFileContent/index.js +46 -0
  75. package/dist/modules/components/input/index.js +121 -0
  76. package/dist/modules/components/mapView/index.js +33 -0
  77. package/dist/modules/components/mapView/mapView.client.js +52 -0
  78. package/dist/modules/components/maskedInput/index.js +113 -0
  79. package/dist/modules/components/modal/modalContainer/index.js +43 -0
  80. package/dist/modules/components/modal/modalContext.js +13 -0
  81. package/dist/modules/components/modal/modalFooter/index.js +9 -0
  82. package/dist/modules/components/modal/modalHeader/index.js +28 -0
  83. package/dist/modules/components/multiSelect/index.js +155 -0
  84. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +22 -0
  85. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +30 -0
  86. package/dist/modules/components/multiSelect/multiSelectContent/index.js +9 -0
  87. package/dist/modules/components/multiSelect/multiSelectMark/index.js +23 -0
  88. package/dist/modules/components/multiSelect/multiSelectOption/index.js +14 -0
  89. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +46 -0
  90. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +9 -0
  91. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +17 -0
  92. package/dist/modules/components/pagination/chevronButton/index.js +18 -0
  93. package/dist/modules/components/pagination/currentButton/index.js +8 -0
  94. package/dist/modules/components/pagination/index.js +84 -0
  95. package/dist/modules/components/pagination/pageButton/index.js +9 -0
  96. package/dist/modules/components/pagination/paginationService.js +49 -0
  97. package/dist/modules/components/pagination/spread/index.js +9 -0
  98. package/dist/modules/components/phoneInput/index.js +152 -0
  99. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +20 -0
  100. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +9 -0
  101. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +16 -0
  102. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +44 -0
  103. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +22 -0
  104. package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -0
  105. package/dist/modules/components/popover/index.js +37 -0
  106. package/dist/modules/components/radio/radioBox/index.js +43 -0
  107. package/dist/modules/components/radio/radioContext.js +20 -0
  108. package/dist/modules/components/radio/radioGroup/index.js +65 -0
  109. package/dist/modules/components/richText/blockButton/index.js +24 -0
  110. package/dist/modules/components/richText/element/index.js +59 -0
  111. package/dist/modules/components/richText/index.js +136 -0
  112. package/dist/modules/components/richText/insertImage/index.js +106 -0
  113. package/dist/modules/components/richText/insertVideo/index.js +98 -0
  114. package/dist/modules/components/richText/leaf/index.js +7 -0
  115. package/dist/modules/components/richText/markButton/index.js +23 -0
  116. package/dist/modules/components/richText/toolbar/index.js +8 -0
  117. package/dist/modules/components/searchPlaces.js +67 -0
  118. package/dist/modules/components/select/index.js +145 -0
  119. package/dist/modules/components/select/selectChevron/index.js +22 -0
  120. package/dist/modules/components/select/selectContainer/index.js +30 -0
  121. package/dist/modules/components/select/selectContent/index.js +9 -0
  122. package/dist/modules/components/select/selectOption/index.js +14 -0
  123. package/dist/modules/components/select/selectOptionsContainer/index.js +46 -0
  124. package/dist/modules/components/select/selectOverlay/index.js +9 -0
  125. package/dist/modules/components/select/selectSpinner/index.js +10 -0
  126. package/dist/modules/components/slider/index.js +42 -0
  127. package/dist/modules/components/switch/index.js +63 -0
  128. package/dist/modules/components/tab/tabButton/index.js +30 -0
  129. package/dist/modules/components/tab/tabContainer/index.js +29 -0
  130. package/dist/modules/components/tab/tabContext.js +13 -0
  131. package/dist/modules/components/table/tableBody/index.js +15 -0
  132. package/dist/modules/components/table/tableCaption/index.js +9 -0
  133. package/dist/modules/components/table/tableContainer/index.js +9 -0
  134. package/dist/modules/components/table/tableFooter/index.js +12 -0
  135. package/dist/modules/components/table/tableHeader/index.js +12 -0
  136. package/dist/modules/components/textarea/index.js +70 -0
  137. package/dist/modules/components/tooltip/index.js +46 -0
  138. package/dist/modules/hooks/useAutomation.js +28 -0
  139. package/dist/modules/hooks/useDrawer.js +20 -0
  140. package/dist/modules/hooks/useForm.js +8 -0
  141. package/dist/modules/hooks/useHydrated.js +15 -0
  142. package/dist/modules/hooks/useModal.js +20 -0
  143. package/dist/modules/hooks/useScopedParams.js +18 -0
  144. package/dist/modules/hooks/useScrollLock.js +21 -0
  145. package/dist/modules/hooks/useSearchAutomation.js +15 -0
  146. package/dist/modules/hooks/useSlider.js +14 -0
  147. package/dist/modules/hooks/useToast.js +11 -0
  148. package/dist/modules/index.js +144 -0
  149. package/dist/modules/providers/drawerProvider.js +31 -0
  150. package/dist/modules/providers/formProvider.js +18 -0
  151. package/dist/modules/providers/modalProvider.js +34 -0
  152. package/dist/modules/providers/placesProvider.js +18 -0
  153. package/dist/modules/providers/toastProvider.js +52 -0
  154. package/dist/modules/services/extractTextFromNode.js +7 -0
  155. package/dist/modules/services/fieldTemplate.js +24 -0
  156. package/dist/modules/services/iconRenderer.js +8 -0
  157. package/dist/modules/services/isBlockActive.js +15 -0
  158. package/dist/modules/services/isMarkActive.js +8 -0
  159. package/dist/modules/services/maskCurrencyValues.js +14 -0
  160. package/dist/modules/services/toHtml.js +7 -0
  161. package/dist/modules/services/toRichTextValue.js +9 -0
  162. package/dist/modules/services/toggleBlock.js +20 -0
  163. package/dist/modules/services/toggleMark.js +8 -0
  164. package/dist/modules/style.css +1 -0
  165. package/dist/modules/templates/badResponses.js +14 -0
  166. package/dist/modules/templates/richTextTemplates.js +14 -0
  167. package/dist/modules/templates/successResponses.js +4 -0
  168. package/dist/modules/utils/phoneInputUtilities.js +32 -0
  169. package/dist/modules/utils/richTextUtilities.js +77 -0
  170. package/package.json +208 -208
  171. package/dist/components/alert/alertContainer/index.js +0 -71
  172. package/dist/components/alert/alertContent/index.js +0 -26
  173. package/dist/components/alert/alertDescription/index.js +0 -25
  174. package/dist/components/alert/alertIcon/index.js +0 -43
  175. package/dist/components/alert/alertTitle/index.js +0 -27
  176. package/dist/components/audioPlayer/index.js +0 -112
  177. package/dist/components/audioUpload/hasFileContent/index.js +0 -26
  178. package/dist/components/audioUpload/index.js +0 -95
  179. package/dist/components/audioUpload/noFileContent/index.js +0 -29
  180. package/dist/components/badge/index.js +0 -41
  181. package/dist/components/button/index.js +0 -51
  182. package/dist/components/calendar/_calendarProvider.js +0 -58
  183. package/dist/components/calendar/_viewService.js +0 -179
  184. package/dist/components/calendar/calendarContainer/index.js +0 -6
  185. package/dist/components/calendar/calendarHeader/index.js +0 -13
  186. package/dist/components/calendar/calendarTableBody/index.js +0 -9
  187. package/dist/components/calendar/calendarTableContainer/index.js +0 -6
  188. package/dist/components/calendar/calendarTableHeader/index.js +0 -9
  189. package/dist/components/calendar/calendarTableTd/index.js +0 -15
  190. package/dist/components/calendar/index.js +0 -54
  191. package/dist/components/cardTab/cardTabButton/index.js +0 -40
  192. package/dist/components/cardTab/cardTabContainer/index.js +0 -42
  193. package/dist/components/cardTab/cardTabContext.js +0 -10
  194. package/dist/components/checkbox/index.js +0 -71
  195. package/dist/components/clientOnly.js +0 -31
  196. package/dist/components/currencyInput/index.js +0 -126
  197. package/dist/components/divider/index.js +0 -28
  198. package/dist/components/drawer/drawerContainer/index.js +0 -38
  199. package/dist/components/drawer/drawerContext.js +0 -10
  200. package/dist/components/drawer/drawerHeader/index.js +0 -33
  201. package/dist/components/facebookPixel/facebookPixel.client.js +0 -23
  202. package/dist/components/facebookPixel/index.js +0 -45
  203. package/dist/components/facebookPixel/pixel.js +0 -111
  204. package/dist/components/fieldError/index.js +0 -26
  205. package/dist/components/fieldLabel/index.js +0 -23
  206. package/dist/components/fieldWrapper/index.js +0 -27
  207. package/dist/components/fileUpload/hasFileContent/index.js +0 -34
  208. package/dist/components/fileUpload/index.js +0 -89
  209. package/dist/components/fileUpload/noFileContent/index.js +0 -29
  210. package/dist/components/fullCalendar/_fullCalendarProvider.js +0 -36
  211. package/dist/components/fullCalendar/_viewService.js +0 -144
  212. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +0 -6
  213. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +0 -105
  214. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +0 -24
  215. package/dist/components/fullCalendar/dayCalendar/index.js +0 -9
  216. package/dist/components/fullCalendar/fullCalendarContainer/index.js +0 -6
  217. package/dist/components/fullCalendar/fullCalendarHeader/index.js +0 -37
  218. package/dist/components/fullCalendar/index.js +0 -52
  219. package/dist/components/fullCalendar/monthlyCalendar/index.js +0 -8
  220. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +0 -29
  221. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +0 -9
  222. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +0 -6
  223. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +0 -9
  224. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +0 -30
  225. package/dist/components/fullCalendar/weekCalendar/index.js +0 -8
  226. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +0 -102
  227. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +0 -11
  228. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +0 -6
  229. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +0 -10
  230. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +0 -25
  231. package/dist/components/googleAnalytics/googleAnalytics.client.js +0 -8
  232. package/dist/components/googleAnalytics/googleAnalytics.js +0 -23
  233. package/dist/components/googleAnalytics/index.js +0 -31
  234. package/dist/components/googleAnalytics/snippets/generateGAElements.js +0 -16
  235. package/dist/components/googleTagManager/googleTagManager.client.js +0 -8
  236. package/dist/components/googleTagManager/googleTagManager.js +0 -52
  237. package/dist/components/googleTagManager/index.js +0 -47
  238. package/dist/components/googleTagManager/snippets/appendToDataLayer.js +0 -7
  239. package/dist/components/googleTagManager/snippets/generateGTMElements.js +0 -25
  240. package/dist/components/iconButton/index.js +0 -38
  241. package/dist/components/imageUpload/hasFileContent/index.js +0 -24
  242. package/dist/components/imageUpload/index.js +0 -101
  243. package/dist/components/imageUpload/noFileContent/index.js +0 -29
  244. package/dist/components/input/index.js +0 -94
  245. package/dist/components/mapView/index.js +0 -53
  246. package/dist/components/mapView/mapView.client.js +0 -51
  247. package/dist/components/maskedInput/index.js +0 -108
  248. package/dist/components/modal/modalContainer/index.js +0 -40
  249. package/dist/components/modal/modalContext.js +0 -10
  250. package/dist/components/modal/modalFooter/index.js +0 -32
  251. package/dist/components/modal/modalHeader/index.js +0 -34
  252. package/dist/components/multiSelect/index.js +0 -135
  253. package/dist/components/multiSelect/multiSelectChevron/index.js +0 -18
  254. package/dist/components/multiSelect/multiSelectContainer/index.js +0 -11
  255. package/dist/components/multiSelect/multiSelectContent/index.js +0 -8
  256. package/dist/components/multiSelect/multiSelectMark/index.js +0 -11
  257. package/dist/components/multiSelect/multiSelectOption/index.js +0 -10
  258. package/dist/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
  259. package/dist/components/multiSelect/multiSelectOverlay/index.js +0 -9
  260. package/dist/components/multiSelect/multiSelectSpinner/index.js +0 -10
  261. package/dist/components/pagination/chevronButton/index.js +0 -9
  262. package/dist/components/pagination/currentButton/index.js +0 -6
  263. package/dist/components/pagination/index.js +0 -46
  264. package/dist/components/pagination/pageButton/index.js +0 -7
  265. package/dist/components/pagination/paginationService.js +0 -62
  266. package/dist/components/pagination/spread/index.js +0 -7
  267. package/dist/components/phoneInput/index.js +0 -127
  268. package/dist/components/phoneInput/phoneInputContainer/index.js +0 -11
  269. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
  270. package/dist/components/phoneInput/phoneInputCountryOption/index.js +0 -10
  271. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
  272. package/dist/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
  273. package/dist/components/phoneInput/phoneInputMask/index.js +0 -37
  274. package/dist/components/popover/index.js +0 -62
  275. package/dist/components/radio/radioBox/index.js +0 -48
  276. package/dist/components/radio/radioContext.js +0 -11
  277. package/dist/components/radio/radioGroup/index.js +0 -58
  278. package/dist/components/richText/blockButton/index.js +0 -18
  279. package/dist/components/richText/element/index.js +0 -26
  280. package/dist/components/richText/index.js +0 -136
  281. package/dist/components/richText/insertImage/index.js +0 -33
  282. package/dist/components/richText/insertVideo/index.js +0 -51
  283. package/dist/components/richText/leaf/index.js +0 -13
  284. package/dist/components/richText/markButton/index.js +0 -16
  285. package/dist/components/richText/toolbar/index.js +0 -6
  286. package/dist/components/searchPlaces.js +0 -99
  287. package/dist/components/select/index.js +0 -134
  288. package/dist/components/select/selectChevron/index.js +0 -18
  289. package/dist/components/select/selectContainer/index.js +0 -11
  290. package/dist/components/select/selectContent/index.js +0 -8
  291. package/dist/components/select/selectOption/index.js +0 -10
  292. package/dist/components/select/selectOptionsContainer/index.js +0 -44
  293. package/dist/components/select/selectOverlay/index.js +0 -9
  294. package/dist/components/select/selectSpinner/index.js +0 -10
  295. package/dist/components/slider/index.js +0 -79
  296. package/dist/components/switch/index.js +0 -66
  297. package/dist/components/tab/tabButton/index.js +0 -40
  298. package/dist/components/tab/tabContainer/index.js +0 -42
  299. package/dist/components/tab/tabContext.js +0 -10
  300. package/dist/components/table/tableBody/index.js +0 -34
  301. package/dist/components/table/tableCaption/index.js +0 -24
  302. package/dist/components/table/tableContainer/index.js +0 -37
  303. package/dist/components/table/tableFooter/index.js +0 -23
  304. package/dist/components/table/tableHeader/index.js +0 -25
  305. package/dist/components/textarea/index.js +0 -80
  306. package/dist/components/tooltip/index.js +0 -96
  307. package/dist/hooks/useAutomation.js +0 -74
  308. package/dist/hooks/useDrawer.js +0 -20
  309. package/dist/hooks/useForm.js +0 -35
  310. package/dist/hooks/useHydrated.js +0 -26
  311. package/dist/hooks/useModal.js +0 -20
  312. package/dist/hooks/useScopedParams.js +0 -55
  313. package/dist/hooks/useScrollLock.js +0 -46
  314. package/dist/hooks/useSearchAutomation.js +0 -64
  315. package/dist/hooks/useSlider.js +0 -35
  316. package/dist/hooks/useToast.js +0 -28
  317. package/dist/providers/drawerProvider.js +0 -54
  318. package/dist/providers/formProvider.js +0 -34
  319. package/dist/providers/modalProvider.js +0 -58
  320. package/dist/providers/placesProvider.js +0 -40
  321. package/dist/providers/toastProvider.js +0 -62
  322. package/dist/services/extractTextFromNode.js +0 -5
  323. package/dist/services/fieldTemplate.js +0 -11
  324. package/dist/services/iconRenderer.js +0 -13
  325. package/dist/services/isBlockActive.js +0 -14
  326. package/dist/services/isMarkActive.js +0 -6
  327. package/dist/services/maskCurrencyValues.js +0 -23
  328. package/dist/services/toHtml.js +0 -22
  329. package/dist/services/toRichTextValue.js +0 -34
  330. package/dist/services/toggleBlock.js +0 -32
  331. package/dist/services/toggleMark.js +0 -10
  332. package/dist/templates/badResponses.js +0 -12
  333. package/dist/templates/richTextTemplates.js +0 -12
  334. package/dist/templates/successResponses.js +0 -2
  335. package/dist/types/richTextTypes.js +0 -1
  336. package/dist/utils/phoneInputUtilities.js +0 -37
  337. package/dist/utils/richTextUtilities.js +0 -89
@@ -0,0 +1,46 @@
1
+ import { jsx as a, Fragment as g, jsxs as S } from "react/jsx-runtime";
2
+ import { Search as C } from "lucide-react";
3
+ import { useRef as v, useState as w, useEffect as b } from "react";
4
+ import { useScrollLock as k } from "../../../hooks/useScrollLock.js";
5
+ import { Input as R } from "../../input/index.js";
6
+ /* empty css */
7
+ function F(l) {
8
+ const { children: u, isFocused: e, isSearchable: n, search: m, onSearch: p } = l, t = v(null), [f, o] = w("bottom");
9
+ k(e), b(() => {
10
+ if (!e) return;
11
+ (() => {
12
+ if (!t.current) return;
13
+ const i = t.current.parentElement;
14
+ if (!i) return;
15
+ const c = i.getBoundingClientRect(), d = window.innerHeight, s = 300;
16
+ d - c.bottom < s && c.top > s ? o("top") : o("bottom");
17
+ })();
18
+ }, [e]);
19
+ function h(r) {
20
+ n && p(r.target.value);
21
+ }
22
+ return e ? /* @__PURE__ */ S(
23
+ "div",
24
+ {
25
+ ref: t,
26
+ className: `arkynMultiSelectOptionsContainer ${f}`,
27
+ children: [
28
+ n && /* @__PURE__ */ a(
29
+ R,
30
+ {
31
+ type: "search",
32
+ name: "search-select",
33
+ variant: "underline",
34
+ leftIcon: C,
35
+ value: m,
36
+ onChange: h
37
+ }
38
+ ),
39
+ u
40
+ ]
41
+ }
42
+ ) : /* @__PURE__ */ a(g, {});
43
+ }
44
+ export {
45
+ F as MultiSelectOptionsContainer
46
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as e, Fragment as i } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function o(r) {
4
+ const { isFocused: t, handleBlur: l } = r;
5
+ return t ? /* @__PURE__ */ e("aside", { className: "arkynMultiSelectOverlay", onClick: l }) : /* @__PURE__ */ e(i, {});
6
+ }
7
+ export {
8
+ o as MultiSelectOverlay
9
+ };
@@ -0,0 +1,17 @@
1
+ import { jsx as r, Fragment as n } from "react/jsx-runtime";
2
+ import { Loader2 as o } from "lucide-react";
3
+ /* empty css */
4
+ function c(e) {
5
+ const { iconSize: i, isLoading: t } = e;
6
+ return t ? /* @__PURE__ */ r(
7
+ o,
8
+ {
9
+ className: "arkynMultiSelectSpinner",
10
+ size: i,
11
+ strokeWidth: 2.5
12
+ }
13
+ ) : /* @__PURE__ */ r(n, {});
14
+ }
15
+ export {
16
+ c as MultiSelectSpinner
17
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { ChevronRight as i, ChevronLeft as a } from "lucide-react";
3
+ /* empty css */
4
+ function s(o) {
5
+ const { orientation: t, handlePageChange: e, disabled: r } = o;
6
+ return /* @__PURE__ */ n(
7
+ "button",
8
+ {
9
+ className: "arkynChevronPageButton",
10
+ disabled: r,
11
+ onClick: e,
12
+ children: { left: /* @__PURE__ */ n(a, {}), right: /* @__PURE__ */ n(i, {}) }[t]
13
+ }
14
+ );
15
+ }
16
+ export {
17
+ s as ChevronButton
18
+ };
@@ -0,0 +1,8 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function e({ currentPage: t }) {
4
+ return /* @__PURE__ */ r("button", { className: "arkynPaginationCurrentButton", disabled: !0, children: t });
5
+ }
6
+ export {
7
+ e as CurrentButton
8
+ };
@@ -0,0 +1,84 @@
1
+ import { jsxs as o, jsx as e, Fragment as P } from "react/jsx-runtime";
2
+ import { ChevronButton as C } from "./chevronButton/index.js";
3
+ import { CurrentButton as B } from "./currentButton/index.js";
4
+ import { PageButton as r } from "./pageButton/index.js";
5
+ import { PaginationService as S } from "./paginationService.js";
6
+ import { Spread as u } from "./spread/index.js";
7
+ /* empty css */
8
+ function O(d) {
9
+ const {
10
+ totalCountRegisters: m,
11
+ siblingsCount: p,
12
+ currentPage: b,
13
+ registerPerPage: c,
14
+ onChange: f,
15
+ ...v
16
+ } = d, {
17
+ currentPage: a,
18
+ siblingsCount: t,
19
+ previousPages: x,
20
+ nextPages: R,
21
+ lastPage: n,
22
+ handlePageChange: s,
23
+ handleMinusChange: h,
24
+ handlePlusChange: l
25
+ } = new S({
26
+ totalCountRegisters: m,
27
+ currentPage: b,
28
+ registerPerPage: c,
29
+ siblingsCount: p,
30
+ onChange: f
31
+ });
32
+ return /* @__PURE__ */ o("div", { className: "arkynPagination", ...v, children: [
33
+ /* @__PURE__ */ e(
34
+ C,
35
+ {
36
+ orientation: "left",
37
+ handlePageChange: h,
38
+ disabled: a <= 1
39
+ }
40
+ ),
41
+ a > 1 + t && /* @__PURE__ */ o(P, { children: [
42
+ /* @__PURE__ */ e(r, { page: 1, handlePageChange: () => s(1) }),
43
+ a > 2 + t && /* @__PURE__ */ e(u, {})
44
+ ] }),
45
+ x.map((g, i) => /* @__PURE__ */ e(
46
+ r,
47
+ {
48
+ page: g,
49
+ handlePageChange: h
50
+ },
51
+ i
52
+ )),
53
+ /* @__PURE__ */ e(B, { currentPage: a }),
54
+ R.map((g, i) => /* @__PURE__ */ e(
55
+ r,
56
+ {
57
+ page: g,
58
+ handlePageChange: l
59
+ },
60
+ i
61
+ )),
62
+ a + t < n && /* @__PURE__ */ o(P, { children: [
63
+ a + 1 + t < n && /* @__PURE__ */ e(u, {}),
64
+ /* @__PURE__ */ e(
65
+ r,
66
+ {
67
+ page: n,
68
+ handlePageChange: () => s(n)
69
+ }
70
+ )
71
+ ] }),
72
+ /* @__PURE__ */ e(
73
+ C,
74
+ {
75
+ orientation: "right",
76
+ handlePageChange: l,
77
+ disabled: a >= n
78
+ }
79
+ )
80
+ ] });
81
+ }
82
+ export {
83
+ O as Pagination
84
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function i(n) {
4
+ const { page: t, handlePageChange: a } = n;
5
+ return /* @__PURE__ */ o("button", { className: "arkynPaginationPageButton", onClick: a, children: t });
6
+ }
7
+ export {
8
+ i as PageButton
9
+ };
@@ -0,0 +1,49 @@
1
+ var g = Object.defineProperty;
2
+ var r = (a, e, i) => e in a ? g(a, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[e] = i;
3
+ var t = (a, e, i) => r(a, typeof e != "symbol" ? e + "" : e, i);
4
+ class P {
5
+ constructor(e) {
6
+ t(this, "currentPage");
7
+ t(this, "totalCountRegisters");
8
+ t(this, "registerPerPage");
9
+ t(this, "siblingsCount");
10
+ t(this, "lastPage");
11
+ t(this, "onChange");
12
+ t(this, "previousPages");
13
+ t(this, "nextPages");
14
+ t(this, "handlePageChange", (e) => {
15
+ e < 1 || e > this.lastPage || this.onChange && (this.currentPage = e, this.onChange(this.currentPage));
16
+ });
17
+ t(this, "handlePlusChange", () => {
18
+ this.currentPage >= this.lastPage || this.onChange && (this.currentPage += 1, this.onChange(this.currentPage));
19
+ });
20
+ t(this, "handleMinusChange", () => {
21
+ this.currentPage <= 1 || this.onChange && (this.currentPage -= 1, this.onChange(this.currentPage));
22
+ });
23
+ this.totalCountRegisters = e.totalCountRegisters, this.currentPage = e.currentPage, this.registerPerPage = (e == null ? void 0 : e.registerPerPage) || 20, this.siblingsCount = (e == null ? void 0 : e.siblingsCount) || 2, this.lastPage = Math.ceil(this.totalCountRegisters / this.registerPerPage), this.onChange = e == null ? void 0 : e.onChange, this.previousPages = this.generatePreviousPages(
24
+ this.currentPage,
25
+ this.siblingsCount
26
+ ), this.nextPages = this.generateNextPages(
27
+ this.currentPage,
28
+ this.siblingsCount
29
+ );
30
+ }
31
+ generatePagesArray(e, i) {
32
+ return [...new Array(i - e)].map((n, s) => e + s + 1).filter((n) => n > 0);
33
+ }
34
+ generatePreviousPages(e, i) {
35
+ return e > 1 ? this.generatePagesArray(
36
+ e - 1 - i,
37
+ e - 1
38
+ ) : [];
39
+ }
40
+ generateNextPages(e, i) {
41
+ return e < this.lastPage ? this.generatePagesArray(
42
+ e,
43
+ Math.min(e + i, this.lastPage)
44
+ ) : [];
45
+ }
46
+ }
47
+ export {
48
+ P as PaginationService
49
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Ellipsis as i } from "lucide-react";
3
+ /* empty css */
4
+ function n() {
5
+ return /* @__PURE__ */ r("p", { className: "arkynPaginationSpread", children: /* @__PURE__ */ r(i, {}) });
6
+ }
7
+ export {
8
+ n as Spread
9
+ };
@@ -0,0 +1,152 @@
1
+ import { jsx as n, jsxs as V } from "react/jsx-runtime";
2
+ import { formatToPhone as ee, findCountryMask as ne, removeNonNumeric as oe } from "@arkyn/shared";
3
+ import { countries as m } from "@arkyn/templates";
4
+ import { useState as r, useRef as k, useId as te } from "react";
5
+ import { useForm as re } from "../../hooks/useForm.js";
6
+ import { FieldTemplate as se } from "../../services/fieldTemplate.js";
7
+ import { PhoneInputContainer as ae } from "./phoneInputContainer/index.js";
8
+ import { PhoneInputCountriesOverlay as ue } from "./phoneInputCountriesOverlay/index.js";
9
+ import { PhoneInputCountryOption as ie } from "./phoneInputCountryOption/index.js";
10
+ import { PhoneInputCountryOptionsContainer as le } from "./phoneInputCountryOptionsContainer/index.js";
11
+ import { PhoneInputCountrySelector as ce } from "./phoneInputCountrySelector/index.js";
12
+ import { PhoneInputMask as fe } from "./phoneInputMask/index.js";
13
+ function be(M) {
14
+ const {
15
+ defaultCountryIso: pe,
16
+ value: h,
17
+ label: N,
18
+ className: S = "",
19
+ disabled: x = !1,
20
+ errorMessage: R,
21
+ isLoading: C = !1,
22
+ readOnly: s = !1,
23
+ size: a = "md",
24
+ defaultValue: u = "",
25
+ variant: T = "solid",
26
+ showAsterisk: B,
27
+ name: l,
28
+ onChange: y,
29
+ searchCountryPlaceholder: L = "Pesquisar país",
30
+ notFoundCountryText: j = "Nenhum país encontrado",
31
+ id: A,
32
+ unShowFieldTemplate: D = !1,
33
+ orientation: q = "vertical"
34
+ } = M, z = m.find((e) => e.iso === "BR"), E = u ? ee(u) : "", G = u ? ne(u)[1] : z, [I, o] = r(!1), [F, H] = r(""), [c, f] = r(!1), [J, O] = r(E), P = h !== void 0 ? h : J, [i, K] = r(G), { fieldErrors: p } = re(), Q = k(null), U = A || te(), v = R || (p == null ? void 0 : p[l]), W = !!v, t = x || C, d = k(null);
35
+ function X() {
36
+ t || I || c || (o(!0), d.current && d.current.focus());
37
+ }
38
+ function Y() {
39
+ f(!0), o(!0);
40
+ }
41
+ function Z() {
42
+ f(!1), o(!1);
43
+ }
44
+ function _() {
45
+ o(!0);
46
+ }
47
+ function $() {
48
+ o(!1);
49
+ }
50
+ function g(e) {
51
+ return e.name.toLowerCase().includes(F.toLowerCase());
52
+ }
53
+ function w(e) {
54
+ let b = i.code;
55
+ return b += oe(e || P), b;
56
+ }
57
+ return /* @__PURE__ */ n(
58
+ se,
59
+ {
60
+ name: l,
61
+ label: N,
62
+ showAsterisk: B,
63
+ className: S,
64
+ errorMessage: v,
65
+ unShowFieldTemplate: D,
66
+ orientation: q,
67
+ children: /* @__PURE__ */ V(
68
+ ae,
69
+ {
70
+ disabled: t,
71
+ isError: W,
72
+ isLoading: C,
73
+ isFocused: I,
74
+ readOnly: s,
75
+ size: a,
76
+ variant: T,
77
+ onFocus: X,
78
+ children: [
79
+ /* @__PURE__ */ n(
80
+ ce,
81
+ {
82
+ currentCountry: i,
83
+ onClick: Y,
84
+ size: a
85
+ }
86
+ ),
87
+ /* @__PURE__ */ V(
88
+ le,
89
+ {
90
+ isOpen: t || s ? !1 : c,
91
+ search: F,
92
+ placeholder: L,
93
+ onSearch: H,
94
+ children: [
95
+ m.filter((e) => g(e)).map((e) => /* @__PURE__ */ n(
96
+ ie,
97
+ {
98
+ country: e,
99
+ handleChangeValue: () => {
100
+ K(e), f(!1), O("");
101
+ },
102
+ isActive: e.iso === i.iso,
103
+ size: a
104
+ },
105
+ e.iso
106
+ )),
107
+ m.filter((e) => g(e)).length === 0 && /* @__PURE__ */ n("p", { children: j })
108
+ ]
109
+ }
110
+ ),
111
+ /* @__PURE__ */ n(
112
+ ue,
113
+ {
114
+ isOpen: t || s ? !1 : c,
115
+ onClick: Z
116
+ }
117
+ ),
118
+ /* @__PURE__ */ n(
119
+ fe,
120
+ {
121
+ id: U,
122
+ ref: d,
123
+ readonly: s,
124
+ currentCountry: i,
125
+ value: P,
126
+ disabled: t,
127
+ onBlur: $,
128
+ onFocus: _,
129
+ size: a,
130
+ onChange: (e) => {
131
+ O(e), y && y(w(e));
132
+ }
133
+ }
134
+ ),
135
+ /* @__PURE__ */ n(
136
+ "input",
137
+ {
138
+ ref: Q,
139
+ type: "hidden",
140
+ name: l,
141
+ value: w()
142
+ }
143
+ )
144
+ ]
145
+ }
146
+ )
147
+ }
148
+ );
149
+ }
150
+ export {
151
+ be as PhoneInput
152
+ };
@@ -0,0 +1,20 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function N(o) {
4
+ const {
5
+ children: e,
6
+ onFocus: s,
7
+ disabled: r,
8
+ isError: n,
9
+ isLoading: a,
10
+ isFocused: c,
11
+ className: t = "",
12
+ readOnly: i,
13
+ variant: d,
14
+ size: u
15
+ } = o, l = `arkynPhoneInputContainer ${d} ${u} ${r || i || a ? "opacity" : ""} ${n ? "errored" : ""} ${c ? "focused" : ""} ${t}`;
16
+ return /* @__PURE__ */ m("section", { className: l.trim(), onClick: s, children: e });
17
+ }
18
+ export {
19
+ N as PhoneInputContainer
20
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as n, Fragment as o } from "react/jsx-runtime";
2
+ /* empty css */
3
+ function a(r) {
4
+ const { isOpen: e, onClick: t } = r;
5
+ return e ? /* @__PURE__ */ n("aside", { className: "arkynPhoneInputCountriesOverlay", onClick: t }) : /* @__PURE__ */ n(o, {});
6
+ }
7
+ export {
8
+ a as PhoneInputCountriesOverlay
9
+ };
@@ -0,0 +1,16 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { Check as r } from "lucide-react";
3
+ /* empty css */
4
+ function u(t) {
5
+ const { country: n, isActive: c, handleChangeValue: a, size: o } = t, s = `arkynPhoneInputCountryOption ${o} ${c ? "active" : ""}`;
6
+ return /* @__PURE__ */ i("div", { onClick: () => a(n), className: s, children: [
7
+ /* @__PURE__ */ e("img", { src: n.flag, alt: n.name, className: "flag" }),
8
+ n.name,
9
+ " ",
10
+ /* @__PURE__ */ e("span", { children: n.code }),
11
+ /* @__PURE__ */ e(r, { className: "check" })
12
+ ] });
13
+ }
14
+ export {
15
+ u as PhoneInputCountryOption
16
+ };
@@ -0,0 +1,44 @@
1
+ import { jsx as s, Fragment as d, jsxs as g } from "react/jsx-runtime";
2
+ import { useRef as y, useState as P, useEffect as S } from "react";
3
+ import { useScrollLock as k } from "../../../hooks/useScrollLock.js";
4
+ /* empty css */
5
+ function x(a) {
6
+ const { children: p, isOpen: e, onSearch: u, search: l, placeholder: h } = a, t = y(null), [m, n] = P("bottom");
7
+ function f(o) {
8
+ u(o.target.value);
9
+ }
10
+ return k(e), S(() => {
11
+ if (!e) return;
12
+ (() => {
13
+ if (!t.current) return;
14
+ const r = t.current.parentElement;
15
+ if (!r) return;
16
+ const i = r.getBoundingClientRect(), C = window.innerHeight, c = 300;
17
+ C - i.bottom < c && i.top > c ? n("top") : n("bottom");
18
+ })();
19
+ }, [e]), e ? /* @__PURE__ */ g(
20
+ "div",
21
+ {
22
+ className: `arkynPhoneInputCountryOptionsContainer ${m}`,
23
+ ref: t,
24
+ children: [
25
+ /* @__PURE__ */ s(
26
+ "input",
27
+ {
28
+ type: "search",
29
+ name: "search-select",
30
+ className: "arkynPhoneInputCountryOptionsContainerSearchSelect",
31
+ value: l,
32
+ id: "input-search",
33
+ placeholder: h,
34
+ onChange: f
35
+ }
36
+ ),
37
+ p
38
+ ]
39
+ }
40
+ ) : /* @__PURE__ */ s(d, {});
41
+ }
42
+ export {
43
+ x as PhoneInputCountryOptionsContainer
44
+ };
@@ -0,0 +1,22 @@
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { ChevronDown as i } from "lucide-react";
3
+ import { Divider as c } from "../../divider/index.js";
4
+ /* empty css */
5
+ function p(t) {
6
+ const { currentCountry: r, onClick: n } = t;
7
+ return /* @__PURE__ */ e("div", { className: "phoneInputSelectCountry", onClick: n, children: [
8
+ /* @__PURE__ */ o(
9
+ "img",
10
+ {
11
+ className: "flag",
12
+ src: r.flag,
13
+ alt: r.name
14
+ }
15
+ ),
16
+ /* @__PURE__ */ o(i, { className: "chevronDown", strokeWidth: 2.5 }),
17
+ /* @__PURE__ */ o(c, { orientation: "vertical" })
18
+ ] });
19
+ }
20
+ export {
21
+ p as PhoneInputCountrySelector
22
+ };
@@ -0,0 +1,62 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { InputMask as I } from "@react-input/mask";
3
+ import { forwardRef as g, useState as v, useEffect as x } from "react";
4
+ import { clear as E, getMask as L, MAX_LENGTH as w, applyMask as B, TYPES as N } from "../../../utils/phoneInputUtilities.js";
5
+ /* empty css */
6
+ const P = g((o, n) => /* @__PURE__ */ r("input", { ref: n, ...o })), A = g(
7
+ (o, n) => {
8
+ const {
9
+ onFocus: u,
10
+ readonly: d,
11
+ onBlur: l,
12
+ size: h,
13
+ onChange: s,
14
+ value: p,
15
+ currentCountry: t,
16
+ disabled: m,
17
+ id: c
18
+ } = o, [k, M] = v(!1), i = typeof t.mask == "string" ? t.mask : t.mask[0];
19
+ x(() => {
20
+ k ? s(i) : M(!0);
21
+ }, [t]);
22
+ const f = `phoneInputMask ${h}`;
23
+ function y(a) {
24
+ let e = E(a.target.value);
25
+ const C = L(e);
26
+ e.length > w || (e = B(e, N[C]), a.target.value = e, s(e));
27
+ }
28
+ return t.code === "+55" ? /* @__PURE__ */ r(
29
+ "input",
30
+ {
31
+ id: c,
32
+ value: p,
33
+ onChange: y,
34
+ className: f,
35
+ onFocus: u,
36
+ onBlur: l,
37
+ disabled: m,
38
+ ref: n
39
+ }
40
+ ) : /* @__PURE__ */ r(
41
+ I,
42
+ {
43
+ id: c,
44
+ value: p,
45
+ readOnly: d,
46
+ onChange: (a) => s(a.target.value),
47
+ className: f,
48
+ component: P,
49
+ onFocus: u,
50
+ onBlur: l,
51
+ disabled: m,
52
+ mask: i,
53
+ showMask: !0,
54
+ replacement: { _: /\d/ },
55
+ ref: n
56
+ }
57
+ );
58
+ }
59
+ );
60
+ export {
61
+ A as PhoneInputMask
62
+ };
@@ -0,0 +1,37 @@
1
+ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
+ import { motion as v } from "framer-motion";
3
+ import { useState as f } from "react";
4
+ import { useScrollLock as u } from "../../hooks/useScrollLock.js";
5
+ /* empty css */
6
+ function N(t) {
7
+ const {
8
+ children: s,
9
+ button: n,
10
+ closeOnClick: a,
11
+ className: r = "",
12
+ orientation: l = "bottomLeft"
13
+ } = t, [e, i] = f(!1), c = `arkynPopover ${l} ${e ? "visibleTrue" : "visibleFalse"} ${r}`;
14
+ function m() {
15
+ e || i(!0);
16
+ }
17
+ return u(e), /* @__PURE__ */ p("div", { className: c, onClick: m, children: [
18
+ n,
19
+ /* @__PURE__ */ o(
20
+ v.div,
21
+ {
22
+ style: { visibility: e ? "visible" : "hidden" },
23
+ transition: { ease: "easeOut", duration: 0 },
24
+ initial: { opacity: 0 },
25
+ animate: { opacity: e ? 1 : 0 },
26
+ exit: { opacity: 0 },
27
+ onClick: () => a && i(!1),
28
+ className: "arkynPopoverContent",
29
+ children: s
30
+ }
31
+ ),
32
+ e && /* @__PURE__ */ o("div", { onClick: () => i(!1), className: "arkynPopoverOverlay" })
33
+ ] });
34
+ }
35
+ export {
36
+ N as Popover
37
+ };
@@ -0,0 +1,43 @@
1
+ import { jsxs as z, jsx as $ } from "react/jsx-runtime";
2
+ import { useRadioGroup as N } from "../radioContext.js";
3
+ /* empty css */
4
+ function B(r) {
5
+ const {
6
+ value: e,
7
+ size: n,
8
+ disabled: i,
9
+ children: d,
10
+ className: t = "",
11
+ onClick: o,
12
+ onFocus: a,
13
+ ...u
14
+ } = r, {
15
+ handleChange: l,
16
+ size: b,
17
+ value: m,
18
+ isError: C,
19
+ disabled: h
20
+ } = N(), p = m === e, k = n || b, c = i || h, F = `arkynRadioBox ${k} ${p ? "checkedTrue" : "checkedFalse"} ${C ? "errorTrue" : "errorFalse"} ${c ? "disabledTrue" : "disabledFalse"} ${t}`;
21
+ function f(s) {
22
+ o && o(s), l(e);
23
+ }
24
+ function x(s) {
25
+ a && a(s), l(e);
26
+ }
27
+ return /* @__PURE__ */ z("label", { className: F.trim(), children: [
28
+ /* @__PURE__ */ $(
29
+ "button",
30
+ {
31
+ type: "button",
32
+ disabled: c,
33
+ onClick: f,
34
+ onFocus: x,
35
+ ...u
36
+ }
37
+ ),
38
+ d
39
+ ] });
40
+ }
41
+ export {
42
+ B as RadioBox
43
+ };