@arkyn/components 3.0.1-beta.95 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (903) hide show
  1. package/LICENSE.txt +184 -1
  2. package/README.md +174 -228
  3. package/dist/components/alert/alertContainer/index.d.ts +30 -26
  4. package/dist/components/alert/alertContainer/index.d.ts.map +1 -1
  5. package/dist/components/alert/alertContent/index.d.ts +9 -30
  6. package/dist/components/alert/alertContent/index.d.ts.map +1 -1
  7. package/dist/components/alert/alertDescription/index.d.ts +8 -34
  8. package/dist/components/alert/alertDescription/index.d.ts.map +1 -1
  9. package/dist/components/alert/alertIcon/index.d.ts +13 -35
  10. package/dist/components/alert/alertIcon/index.d.ts.map +1 -1
  11. package/dist/components/alert/alertTitle/index.d.ts +11 -32
  12. package/dist/components/alert/alertTitle/index.d.ts.map +1 -1
  13. package/dist/components/audioPlayer/index.d.ts +24 -33
  14. package/dist/components/audioPlayer/index.d.ts.map +1 -1
  15. package/dist/components/audioUpload/hasFileContent/index.d.ts +1 -1
  16. package/dist/components/audioUpload/hasFileContent/index.d.ts.map +1 -1
  17. package/dist/components/audioUpload/index.d.ts +38 -49
  18. package/dist/components/audioUpload/index.d.ts.map +1 -1
  19. package/dist/components/audioUpload/noFileContent/index.d.ts +1 -1
  20. package/dist/components/audioUpload/noFileContent/index.d.ts.map +1 -1
  21. package/dist/components/badge/index.d.ts +34 -25
  22. package/dist/components/badge/index.d.ts.map +1 -1
  23. package/dist/components/button/index.d.ts +42 -32
  24. package/dist/components/button/index.d.ts.map +1 -1
  25. package/dist/components/calendar/_calendarProvider.d.ts +52 -0
  26. package/dist/components/calendar/_calendarProvider.d.ts.map +1 -0
  27. package/dist/components/calendar/_viewService.d.ts +32 -0
  28. package/dist/components/calendar/_viewService.d.ts.map +1 -0
  29. package/dist/components/calendar/calendarContainer/index.d.ts +8 -0
  30. package/dist/components/calendar/calendarContainer/index.d.ts.map +1 -0
  31. package/dist/components/calendar/calendarHeader/index.d.ts +7 -0
  32. package/dist/components/calendar/calendarHeader/index.d.ts.map +1 -0
  33. package/dist/components/calendar/calendarTableBody/index.d.ts +4 -0
  34. package/dist/components/calendar/calendarTableBody/index.d.ts.map +1 -0
  35. package/dist/components/calendar/calendarTableContainer/index.d.ts +8 -0
  36. package/dist/components/calendar/calendarTableContainer/index.d.ts.map +1 -0
  37. package/dist/components/calendar/calendarTableHeader/index.d.ts +4 -0
  38. package/dist/components/calendar/calendarTableHeader/index.d.ts.map +1 -0
  39. package/dist/components/calendar/calendarTableTd/index.d.ts +11 -0
  40. package/dist/components/calendar/calendarTableTd/index.d.ts.map +1 -0
  41. package/dist/components/calendar/index.d.ts +100 -0
  42. package/dist/components/calendar/index.d.ts.map +1 -0
  43. package/dist/components/cardTab/cardTabButton/index.d.ts +16 -54
  44. package/dist/components/cardTab/cardTabButton/index.d.ts.map +1 -1
  45. package/dist/components/cardTab/cardTabContainer/index.d.ts +18 -60
  46. package/dist/components/cardTab/cardTabContainer/index.d.ts.map +1 -1
  47. package/dist/components/cardTab/cardTabContext.d.ts +4 -4
  48. package/dist/components/cardTab/cardTabContext.d.ts.map +1 -1
  49. package/dist/components/checkbox/index.d.ts +42 -37
  50. package/dist/components/checkbox/index.d.ts.map +1 -1
  51. package/dist/components/clientOnly.d.ts +14 -67
  52. package/dist/components/clientOnly.d.ts.map +1 -1
  53. package/dist/components/currencyInput/index.d.ts +75 -53
  54. package/dist/components/currencyInput/index.d.ts.map +1 -1
  55. package/dist/components/divider/index.d.ts +14 -27
  56. package/dist/components/divider/index.d.ts.map +1 -1
  57. package/dist/components/drawer/drawerContainer/index.d.ts +18 -52
  58. package/dist/components/drawer/drawerContainer/index.d.ts.map +1 -1
  59. package/dist/components/drawer/drawerContext.d.ts +2 -2
  60. package/dist/components/drawer/drawerContext.d.ts.map +1 -1
  61. package/dist/components/drawer/drawerHeader/index.d.ts +11 -35
  62. package/dist/components/drawer/drawerHeader/index.d.ts.map +1 -1
  63. package/dist/components/facebookPixel/facebookPixel.client.d.ts +4 -0
  64. package/dist/components/facebookPixel/facebookPixel.client.d.ts.map +1 -0
  65. package/dist/components/facebookPixel/index.d.ts +65 -0
  66. package/dist/components/facebookPixel/index.d.ts.map +1 -0
  67. package/dist/components/facebookPixel/pixel.d.ts +21 -0
  68. package/dist/components/facebookPixel/pixel.d.ts.map +1 -0
  69. package/dist/components/fieldError/index.d.ts +6 -13
  70. package/dist/components/fieldError/index.d.ts.map +1 -1
  71. package/dist/components/fieldLabel/index.d.ts +8 -23
  72. package/dist/components/fieldLabel/index.d.ts.map +1 -1
  73. package/dist/components/fieldWrapper/index.d.ts +14 -24
  74. package/dist/components/fieldWrapper/index.d.ts.map +1 -1
  75. package/dist/components/fileUpload/hasFileContent/index.d.ts +1 -1
  76. package/dist/components/fileUpload/hasFileContent/index.d.ts.map +1 -1
  77. package/dist/components/fileUpload/index.d.ts +37 -62
  78. package/dist/components/fileUpload/index.d.ts.map +1 -1
  79. package/dist/components/fileUpload/noFileContent/index.d.ts +1 -1
  80. package/dist/components/fileUpload/noFileContent/index.d.ts.map +1 -1
  81. package/dist/components/fullCalendar/_fullCalendarProvider.d.ts +44 -0
  82. package/dist/components/fullCalendar/_fullCalendarProvider.d.ts.map +1 -0
  83. package/dist/components/fullCalendar/_viewService.d.ts +28 -0
  84. package/dist/components/fullCalendar/_viewService.d.ts.map +1 -0
  85. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts +8 -0
  86. package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts.map +1 -0
  87. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts +7 -0
  88. package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts.map +1 -0
  89. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts +8 -0
  90. package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts.map +1 -0
  91. package/dist/components/fullCalendar/dayCalendar/index.d.ts +3 -0
  92. package/dist/components/fullCalendar/dayCalendar/index.d.ts.map +1 -0
  93. package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts +8 -0
  94. package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts.map +1 -0
  95. package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts +8 -0
  96. package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts.map +1 -0
  97. package/dist/components/fullCalendar/index.d.ts +94 -0
  98. package/dist/components/fullCalendar/index.d.ts.map +1 -0
  99. package/dist/components/fullCalendar/monthlyCalendar/index.d.ts +3 -0
  100. package/dist/components/fullCalendar/monthlyCalendar/index.d.ts.map +1 -0
  101. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts +9 -0
  102. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts.map +1 -0
  103. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts +4 -0
  104. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts.map +1 -0
  105. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts +8 -0
  106. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts.map +1 -0
  107. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts +4 -0
  108. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts.map +1 -0
  109. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts +10 -0
  110. package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts.map +1 -0
  111. package/dist/components/fullCalendar/weekCalendar/index.d.ts +3 -0
  112. package/dist/components/fullCalendar/weekCalendar/index.d.ts.map +1 -0
  113. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts +10 -0
  114. package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts.map +1 -0
  115. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts +4 -0
  116. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts.map +1 -0
  117. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts +8 -0
  118. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts.map +1 -0
  119. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts +4 -0
  120. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts.map +1 -0
  121. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts +11 -0
  122. package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts.map +1 -0
  123. package/dist/components/googleAnalytics/googleAnalytics.client.d.ts +6 -0
  124. package/dist/components/googleAnalytics/googleAnalytics.client.d.ts.map +1 -0
  125. package/dist/components/googleAnalytics/googleAnalytics.d.ts +10 -0
  126. package/dist/components/googleAnalytics/googleAnalytics.d.ts.map +1 -0
  127. package/dist/components/googleAnalytics/index.d.ts +30 -0
  128. package/dist/components/googleAnalytics/index.d.ts.map +1 -0
  129. package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts +9 -0
  130. package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts.map +1 -0
  131. package/dist/components/googleTagManager/googleTagManager.client.d.ts +11 -0
  132. package/dist/components/googleTagManager/googleTagManager.client.d.ts.map +1 -0
  133. package/dist/components/googleTagManager/googleTagManager.d.ts +20 -0
  134. package/dist/components/googleTagManager/googleTagManager.d.ts.map +1 -0
  135. package/dist/components/googleTagManager/index.d.ts +55 -0
  136. package/dist/components/googleTagManager/index.d.ts.map +1 -0
  137. package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts +7 -0
  138. package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts.map +1 -0
  139. package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts +15 -0
  140. package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts.map +1 -0
  141. package/dist/components/iconButton/index.d.ts +35 -19
  142. package/dist/components/iconButton/index.d.ts.map +1 -1
  143. package/dist/components/imageUpload/hasFileContent/index.d.ts +1 -1
  144. package/dist/components/imageUpload/hasFileContent/index.d.ts.map +1 -1
  145. package/dist/components/imageUpload/index.d.ts +51 -75
  146. package/dist/components/imageUpload/index.d.ts.map +1 -1
  147. package/dist/components/imageUpload/noFileContent/index.d.ts +1 -1
  148. package/dist/components/imageUpload/noFileContent/index.d.ts.map +1 -1
  149. package/dist/components/input/index.d.ts +58 -47
  150. package/dist/components/input/index.d.ts.map +1 -1
  151. package/dist/components/mapView/index.d.ts +55 -7
  152. package/dist/components/mapView/index.d.ts.map +1 -1
  153. package/dist/components/mapView/mapView.client.d.ts +17 -0
  154. package/dist/components/mapView/mapView.client.d.ts.map +1 -0
  155. package/dist/components/maskedInput/index.d.ts +71 -56
  156. package/dist/components/maskedInput/index.d.ts.map +1 -1
  157. package/dist/components/modal/modalContainer/index.d.ts +19 -59
  158. package/dist/components/modal/modalContainer/index.d.ts.map +1 -1
  159. package/dist/components/modal/modalContext.d.ts +2 -2
  160. package/dist/components/modal/modalContext.d.ts.map +1 -1
  161. package/dist/components/modal/modalFooter/index.d.ts +19 -52
  162. package/dist/components/modal/modalFooter/index.d.ts.map +1 -1
  163. package/dist/components/modal/modalHeader/index.d.ts +15 -49
  164. package/dist/components/modal/modalHeader/index.d.ts.map +1 -1
  165. package/dist/components/multiSelect/index.d.ts +72 -63
  166. package/dist/components/multiSelect/index.d.ts.map +1 -1
  167. package/dist/components/multiSelect/multiSelectChevron/index.d.ts +1 -1
  168. package/dist/components/multiSelect/multiSelectChevron/index.d.ts.map +1 -1
  169. package/dist/components/multiSelect/multiSelectContainer/index.d.ts +2 -2
  170. package/dist/components/multiSelect/multiSelectContainer/index.d.ts.map +1 -1
  171. package/dist/components/multiSelect/multiSelectContent/index.d.ts +2 -2
  172. package/dist/components/multiSelect/multiSelectContent/index.d.ts.map +1 -1
  173. package/dist/components/multiSelect/multiSelectMark/index.d.ts +1 -1
  174. package/dist/components/multiSelect/multiSelectMark/index.d.ts.map +1 -1
  175. package/dist/components/multiSelect/multiSelectOption/index.d.ts +1 -1
  176. package/dist/components/multiSelect/multiSelectOption/index.d.ts.map +1 -1
  177. package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts +2 -2
  178. package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +1 -1
  179. package/dist/components/multiSelect/multiSelectOverlay/index.d.ts +1 -1
  180. package/dist/components/multiSelect/multiSelectOverlay/index.d.ts.map +1 -1
  181. package/dist/components/multiSelect/multiSelectSpinner/index.d.ts +1 -1
  182. package/dist/components/multiSelect/multiSelectSpinner/index.d.ts.map +1 -1
  183. package/dist/components/pagination/chevronButton/index.d.ts +1 -1
  184. package/dist/components/pagination/chevronButton/index.d.ts.map +1 -1
  185. package/dist/components/pagination/currentButton/index.d.ts +1 -1
  186. package/dist/components/pagination/currentButton/index.d.ts.map +1 -1
  187. package/dist/components/pagination/index.d.ts +20 -11
  188. package/dist/components/pagination/index.d.ts.map +1 -1
  189. package/dist/components/pagination/pageButton/index.d.ts +1 -1
  190. package/dist/components/pagination/pageButton/index.d.ts.map +1 -1
  191. package/dist/components/pagination/paginationService.d.ts.map +1 -1
  192. package/dist/components/pagination/spread/index.d.ts +1 -1
  193. package/dist/components/pagination/spread/index.d.ts.map +1 -1
  194. package/dist/components/phoneInput/index.d.ts +68 -89
  195. package/dist/components/phoneInput/index.d.ts.map +1 -1
  196. package/dist/components/phoneInput/phoneInputContainer/index.d.ts +2 -2
  197. package/dist/components/phoneInput/phoneInputContainer/index.d.ts.map +1 -1
  198. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts +1 -1
  199. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts.map +1 -1
  200. package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts +2 -3
  201. package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts.map +1 -1
  202. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts +2 -2
  203. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts.map +1 -1
  204. package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts +2 -3
  205. package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts.map +1 -1
  206. package/dist/components/phoneInput/phoneInputMask/index.d.ts +1 -2
  207. package/dist/components/phoneInput/phoneInputMask/index.d.ts.map +1 -1
  208. package/dist/components/popover/index.d.ts +36 -116
  209. package/dist/components/popover/index.d.ts.map +1 -1
  210. package/dist/components/radio/radioBox/index.d.ts +19 -67
  211. package/dist/components/radio/radioBox/index.d.ts.map +1 -1
  212. package/dist/components/radio/radioContext.d.ts +2 -2
  213. package/dist/components/radio/radioContext.d.ts.map +1 -1
  214. package/dist/components/radio/radioGroup/index.d.ts +40 -67
  215. package/dist/components/radio/radioGroup/index.d.ts.map +1 -1
  216. package/dist/components/richText/blockButton/index.d.ts +3 -3
  217. package/dist/components/richText/blockButton/index.d.ts.map +1 -1
  218. package/dist/components/richText/element/index.d.ts +2 -2
  219. package/dist/components/richText/element/index.d.ts.map +1 -1
  220. package/dist/components/richText/index.d.ts +35 -47
  221. package/dist/components/richText/index.d.ts.map +1 -1
  222. package/dist/components/richText/insertImage/index.d.ts +2 -2
  223. package/dist/components/richText/insertImage/index.d.ts.map +1 -1
  224. package/dist/components/richText/insertVideo/index.d.ts +5 -0
  225. package/dist/components/richText/insertVideo/index.d.ts.map +1 -0
  226. package/dist/components/richText/leaf/index.d.ts +2 -2
  227. package/dist/components/richText/leaf/index.d.ts.map +1 -1
  228. package/dist/components/richText/markButton/index.d.ts +3 -3
  229. package/dist/components/richText/markButton/index.d.ts.map +1 -1
  230. package/dist/components/richText/toolbar/index.d.ts +2 -2
  231. package/dist/components/richText/toolbar/index.d.ts.map +1 -1
  232. package/dist/components/searchPlaces.d.ts +55 -52
  233. package/dist/components/searchPlaces.d.ts.map +1 -1
  234. package/dist/components/select/index.d.ts +73 -64
  235. package/dist/components/select/index.d.ts.map +1 -1
  236. package/dist/components/select/selectChevron/index.d.ts +1 -1
  237. package/dist/components/select/selectChevron/index.d.ts.map +1 -1
  238. package/dist/components/select/selectContainer/index.d.ts +2 -2
  239. package/dist/components/select/selectContainer/index.d.ts.map +1 -1
  240. package/dist/components/select/selectContent/index.d.ts +2 -2
  241. package/dist/components/select/selectContent/index.d.ts.map +1 -1
  242. package/dist/components/select/selectOption/index.d.ts +1 -1
  243. package/dist/components/select/selectOption/index.d.ts.map +1 -1
  244. package/dist/components/select/selectOptionsContainer/index.d.ts +2 -2
  245. package/dist/components/select/selectOptionsContainer/index.d.ts.map +1 -1
  246. package/dist/components/select/selectOverlay/index.d.ts +1 -1
  247. package/dist/components/select/selectOverlay/index.d.ts.map +1 -1
  248. package/dist/components/select/selectSpinner/index.d.ts +1 -1
  249. package/dist/components/select/selectSpinner/index.d.ts.map +1 -1
  250. package/dist/components/slider/index.d.ts +22 -36
  251. package/dist/components/slider/index.d.ts.map +1 -1
  252. package/dist/components/switch/index.d.ts +46 -58
  253. package/dist/components/switch/index.d.ts.map +1 -1
  254. package/dist/components/tab/tabButton/index.d.ts +16 -54
  255. package/dist/components/tab/tabButton/index.d.ts.map +1 -1
  256. package/dist/components/tab/tabContainer/index.d.ts +18 -60
  257. package/dist/components/tab/tabContainer/index.d.ts.map +1 -1
  258. package/dist/components/tab/tabContext.d.ts +2 -2
  259. package/dist/components/tab/tabContext.d.ts.map +1 -1
  260. package/dist/components/table/tableBody/index.d.ts +15 -49
  261. package/dist/components/table/tableBody/index.d.ts.map +1 -1
  262. package/dist/components/table/tableCaption/index.d.ts +8 -48
  263. package/dist/components/table/tableCaption/index.d.ts.map +1 -1
  264. package/dist/components/table/tableContainer/index.d.ts +14 -43
  265. package/dist/components/table/tableContainer/index.d.ts.map +1 -1
  266. package/dist/components/table/tableFooter/index.d.ts +7 -31
  267. package/dist/components/table/tableFooter/index.d.ts.map +1 -1
  268. package/dist/components/table/tableHeader/index.d.ts +6 -27
  269. package/dist/components/table/tableHeader/index.d.ts.map +1 -1
  270. package/dist/components/textarea/index.d.ts +36 -68
  271. package/dist/components/textarea/index.d.ts.map +1 -1
  272. package/dist/components/tooltip/index.d.ts +29 -57
  273. package/dist/components/tooltip/index.d.ts.map +1 -1
  274. package/dist/hooks/useAutomation.d.ts +22 -25
  275. package/dist/hooks/useAutomation.d.ts.map +1 -1
  276. package/dist/hooks/useDrawer.d.ts +20 -65
  277. package/dist/hooks/useDrawer.d.ts.map +1 -1
  278. package/dist/hooks/useForm.d.ts +12 -29
  279. package/dist/hooks/useForm.d.ts.map +1 -1
  280. package/dist/hooks/useHydrated.d.ts +8 -63
  281. package/dist/hooks/useHydrated.d.ts.map +1 -1
  282. package/dist/hooks/useModal.d.ts +20 -60
  283. package/dist/hooks/useModal.d.ts.map +1 -1
  284. package/dist/hooks/useScopedParams.d.ts +18 -70
  285. package/dist/hooks/useScopedParams.d.ts.map +1 -1
  286. package/dist/hooks/useScrollLock.d.ts +11 -27
  287. package/dist/hooks/useScrollLock.d.ts.map +1 -1
  288. package/dist/hooks/useSearchAutomation.d.ts +31 -0
  289. package/dist/hooks/useSearchAutomation.d.ts.map +1 -0
  290. package/dist/hooks/useSlider.d.ts +5 -19
  291. package/dist/hooks/useSlider.d.ts.map +1 -1
  292. package/dist/hooks/useToast.d.ts +8 -52
  293. package/dist/hooks/useToast.d.ts.map +1 -1
  294. package/dist/index.d.ts +6 -0
  295. package/dist/index.d.ts.map +1 -1
  296. package/dist/index.js +4391 -69
  297. package/dist/index.js.map +1 -0
  298. package/dist/modules/components/alert/alertContainer/index.js +29 -0
  299. package/dist/modules/components/alert/alertContainer/index.js.map +1 -0
  300. package/dist/modules/components/alert/alertContainer/styles.css +3 -0
  301. package/dist/modules/components/alert/alertContent/index.js +14 -0
  302. package/dist/modules/components/alert/alertContent/index.js.map +1 -0
  303. package/dist/modules/components/alert/alertContent/styles.css +1 -0
  304. package/dist/modules/components/alert/alertDescription/index.js +14 -0
  305. package/dist/modules/components/alert/alertDescription/index.js.map +1 -0
  306. package/dist/modules/components/alert/alertDescription/styles.css +1 -0
  307. package/dist/modules/components/alert/alertIcon/index.js +30 -0
  308. package/dist/modules/components/alert/alertIcon/index.js.map +1 -0
  309. package/dist/modules/components/alert/alertIcon/styles.css +7 -0
  310. package/dist/modules/components/alert/alertTitle/index.js +14 -0
  311. package/dist/modules/components/alert/alertTitle/index.js.map +1 -0
  312. package/dist/modules/components/alert/alertTitle/styles.css +1 -0
  313. package/dist/modules/components/audioPlayer/index.js +77 -0
  314. package/dist/modules/components/audioPlayer/index.js.map +1 -0
  315. package/dist/modules/components/audioPlayer/styles.css +3 -0
  316. package/dist/modules/components/audioUpload/hasFileContent/index.js +57 -0
  317. package/dist/modules/components/audioUpload/hasFileContent/index.js.map +1 -0
  318. package/dist/modules/components/audioUpload/hasFileContent/styles.css +1 -0
  319. package/dist/modules/components/audioUpload/index.js +74 -0
  320. package/dist/modules/components/audioUpload/index.js.map +1 -0
  321. package/dist/modules/components/audioUpload/noFileContent/index.js +38 -0
  322. package/dist/modules/components/audioUpload/noFileContent/index.js.map +1 -0
  323. package/dist/modules/components/audioUpload/noFileContent/styles.css +1 -0
  324. package/dist/modules/components/audioUpload/styles.css +25 -0
  325. package/dist/modules/components/badge/index.js +29 -0
  326. package/dist/modules/components/badge/index.js.map +1 -0
  327. package/dist/modules/components/badge/styles.css +1 -0
  328. package/dist/modules/components/button/index.js +42 -0
  329. package/dist/modules/components/button/index.js.map +1 -0
  330. package/dist/modules/components/button/styles.css +1 -0
  331. package/dist/modules/components/calendar/_calendarProvider.js +42 -0
  332. package/dist/modules/components/calendar/_calendarProvider.js.map +1 -0
  333. package/dist/modules/components/calendar/_viewService.js +135 -0
  334. package/dist/modules/components/calendar/_viewService.js.map +1 -0
  335. package/dist/modules/components/calendar/calendarContainer/index.js +13 -0
  336. package/dist/modules/components/calendar/calendarContainer/index.js.map +1 -0
  337. package/dist/modules/components/calendar/calendarContainer/styles.css +1 -0
  338. package/dist/modules/components/calendar/calendarHeader/index.js +58 -0
  339. package/dist/modules/components/calendar/calendarHeader/index.js.map +1 -0
  340. package/dist/modules/components/calendar/calendarHeader/styles.css +1 -0
  341. package/dist/modules/components/calendar/calendarTableBody/index.js +15 -0
  342. package/dist/modules/components/calendar/calendarTableBody/index.js.map +1 -0
  343. package/dist/modules/components/calendar/calendarTableBody/styles.css +1 -0
  344. package/dist/modules/components/calendar/calendarTableContainer/index.js +13 -0
  345. package/dist/modules/components/calendar/calendarTableContainer/index.js.map +1 -0
  346. package/dist/modules/components/calendar/calendarTableContainer/styles.css +1 -0
  347. package/dist/modules/components/calendar/calendarTableHeader/index.js +16 -0
  348. package/dist/modules/components/calendar/calendarTableHeader/index.js.map +1 -0
  349. package/dist/modules/components/calendar/calendarTableHeader/styles.css +1 -0
  350. package/dist/modules/components/calendar/calendarTableTd/index.js +23 -0
  351. package/dist/modules/components/calendar/calendarTableTd/index.js.map +1 -0
  352. package/dist/modules/components/calendar/calendarTableTd/styles.css +1 -0
  353. package/dist/modules/components/calendar/index.js +34 -0
  354. package/dist/modules/components/calendar/index.js.map +1 -0
  355. package/dist/modules/components/calendar/styles.css +33 -0
  356. package/dist/modules/components/cardTab/cardTabButton/index.js +22 -0
  357. package/dist/modules/components/cardTab/cardTabButton/index.js.map +1 -0
  358. package/dist/modules/components/cardTab/cardTabButton/styles.css +1 -0
  359. package/dist/modules/components/cardTab/cardTabContainer/index.js +25 -0
  360. package/dist/modules/components/cardTab/cardTabContainer/index.js.map +1 -0
  361. package/dist/modules/components/cardTab/cardTabContainer/styles.css +1 -0
  362. package/dist/modules/components/cardTab/cardTabContext.js +26 -0
  363. package/dist/modules/components/cardTab/cardTabContext.js.map +1 -0
  364. package/dist/modules/components/checkbox/index.js +40 -0
  365. package/dist/modules/components/checkbox/index.js.map +1 -0
  366. package/dist/modules/components/checkbox/styles.css +7 -0
  367. package/dist/modules/components/clientOnly.js +10 -0
  368. package/dist/modules/components/clientOnly.js.map +1 -0
  369. package/dist/modules/components/currencyInput/index.js +114 -0
  370. package/dist/modules/components/currencyInput/index.js.map +1 -0
  371. package/dist/modules/components/currencyInput/style.css +1 -0
  372. package/dist/modules/components/currencyInput/styles.css +7 -0
  373. package/dist/modules/components/divider/index.js +14 -0
  374. package/dist/modules/components/divider/index.js.map +1 -0
  375. package/dist/modules/components/divider/styles.css +1 -0
  376. package/dist/modules/components/drawer/drawerContainer/index.js +39 -0
  377. package/dist/modules/components/drawer/drawerContainer/index.js.map +1 -0
  378. package/dist/modules/components/drawer/drawerContainer/styles.css +1 -0
  379. package/dist/modules/components/drawer/drawerContext.js +18 -0
  380. package/dist/modules/components/drawer/drawerContext.js.map +1 -0
  381. package/dist/modules/components/drawer/drawerHeader/index.js +23 -0
  382. package/dist/modules/components/drawer/drawerHeader/index.js.map +1 -0
  383. package/dist/modules/components/drawer/drawerHeader/styles.css +1 -0
  384. package/dist/modules/components/facebookPixel/facebookPixel.client.js +10 -0
  385. package/dist/modules/components/facebookPixel/facebookPixel.client.js.map +1 -0
  386. package/dist/modules/components/facebookPixel/index.js +11 -0
  387. package/dist/modules/components/facebookPixel/index.js.map +1 -0
  388. package/dist/modules/components/facebookPixel/pixel.js +50 -0
  389. package/dist/modules/components/facebookPixel/pixel.js.map +1 -0
  390. package/dist/modules/components/fieldError/index.js +15 -0
  391. package/dist/modules/components/fieldError/index.js.map +1 -0
  392. package/dist/modules/components/fieldError/styles.css +1 -0
  393. package/dist/modules/components/fieldLabel/index.js +14 -0
  394. package/dist/modules/components/fieldLabel/index.js.map +1 -0
  395. package/dist/modules/components/fieldLabel/styles.css +1 -0
  396. package/dist/modules/components/fieldWrapper/index.js +15 -0
  397. package/dist/modules/components/fieldWrapper/index.js.map +1 -0
  398. package/dist/modules/components/fieldWrapper/styles.css +1 -0
  399. package/dist/modules/components/fileUpload/hasFileContent/index.js +62 -0
  400. package/dist/modules/components/fileUpload/hasFileContent/index.js.map +1 -0
  401. package/dist/modules/components/fileUpload/hasFileContent/styles.css +1 -0
  402. package/dist/modules/components/fileUpload/index.js +68 -0
  403. package/dist/modules/components/fileUpload/index.js.map +1 -0
  404. package/dist/modules/components/fileUpload/noFileContent/index.js +38 -0
  405. package/dist/modules/components/fileUpload/noFileContent/index.js.map +1 -0
  406. package/dist/modules/components/fileUpload/noFileContent/styles.css +1 -0
  407. package/dist/modules/components/fileUpload/styles.css +19 -0
  408. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +37 -0
  409. package/dist/modules/components/fullCalendar/_fullCalendarProvider.js.map +1 -0
  410. package/dist/modules/components/fullCalendar/_viewService.js +103 -0
  411. package/dist/modules/components/fullCalendar/_viewService.js.map +1 -0
  412. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +13 -0
  413. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js.map +1 -0
  414. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/styles.css +1 -0
  415. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +73 -0
  416. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js.map +1 -0
  417. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/styles.css +1 -0
  418. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +31 -0
  419. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js.map +1 -0
  420. package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/styles.css +1 -0
  421. package/dist/modules/components/fullCalendar/dayCalendar/index.js +16 -0
  422. package/dist/modules/components/fullCalendar/dayCalendar/index.js.map +1 -0
  423. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +13 -0
  424. package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js.map +1 -0
  425. package/dist/modules/components/fullCalendar/fullCalendarContainer/styles.css +1 -0
  426. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +71 -0
  427. package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js.map +1 -0
  428. package/dist/modules/components/fullCalendar/fullCalendarHeader/styles.css +1 -0
  429. package/dist/modules/components/fullCalendar/index.js +33 -0
  430. package/dist/modules/components/fullCalendar/index.js.map +1 -0
  431. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -0
  432. package/dist/modules/components/fullCalendar/monthlyCalendar/index.js.map +1 -0
  433. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +31 -0
  434. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js.map +1 -0
  435. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/styles.css +1 -0
  436. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +15 -0
  437. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js.map +1 -0
  438. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/styles.css +1 -0
  439. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +13 -0
  440. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js.map +1 -0
  441. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/styles.css +1 -0
  442. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +16 -0
  443. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js.map +1 -0
  444. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/styles.css +1 -0
  445. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +38 -0
  446. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js.map +1 -0
  447. package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/styles.css +1 -0
  448. package/dist/modules/components/fullCalendar/styles.css +35 -0
  449. package/dist/modules/components/fullCalendar/weekCalendar/index.js +12 -0
  450. package/dist/modules/components/fullCalendar/weekCalendar/index.js.map +1 -0
  451. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +73 -0
  452. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js.map +1 -0
  453. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/styles.css +1 -0
  454. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +20 -0
  455. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js.map +1 -0
  456. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/styles.css +1 -0
  457. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +13 -0
  458. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js.map +1 -0
  459. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/styles.css +1 -0
  460. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +19 -0
  461. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js.map +1 -0
  462. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/styles.css +1 -0
  463. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +37 -0
  464. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js.map +1 -0
  465. package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/styles.css +1 -0
  466. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +9 -0
  467. package/dist/modules/components/googleAnalytics/googleAnalytics.client.js.map +1 -0
  468. package/dist/modules/components/googleAnalytics/googleAnalytics.js +20 -0
  469. package/dist/modules/components/googleAnalytics/googleAnalytics.js.map +1 -0
  470. package/dist/modules/components/googleAnalytics/index.js +12 -0
  471. package/dist/modules/components/googleAnalytics/index.js.map +1 -0
  472. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +16 -0
  473. package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js.map +1 -0
  474. package/dist/modules/components/googleTagManager/googleTagManager.client.js +9 -0
  475. package/dist/modules/components/googleTagManager/googleTagManager.client.js.map +1 -0
  476. package/dist/modules/components/googleTagManager/googleTagManager.js +47 -0
  477. package/dist/modules/components/googleTagManager/googleTagManager.js.map +1 -0
  478. package/dist/modules/components/googleTagManager/index.js +19 -0
  479. package/dist/modules/components/googleTagManager/index.js.map +1 -0
  480. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +11 -0
  481. package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js.map +1 -0
  482. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +25 -0
  483. package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js.map +1 -0
  484. package/dist/modules/components/iconButton/index.js +34 -0
  485. package/dist/modules/components/iconButton/index.js.map +1 -0
  486. package/dist/modules/components/iconButton/styles.css +1 -0
  487. package/dist/modules/components/imageUpload/hasFileContent/index.js +49 -0
  488. package/dist/modules/components/imageUpload/hasFileContent/index.js.map +1 -0
  489. package/dist/modules/components/imageUpload/hasFileContent/styles.css +1 -0
  490. package/dist/modules/components/imageUpload/index.js +68 -0
  491. package/dist/modules/components/imageUpload/index.js.map +1 -0
  492. package/dist/modules/components/imageUpload/noFileContent/index.js +38 -0
  493. package/dist/modules/components/imageUpload/noFileContent/index.js.map +1 -0
  494. package/dist/modules/components/imageUpload/noFileContent/styles.css +1 -0
  495. package/dist/modules/components/imageUpload/styles.css +17 -0
  496. package/dist/modules/components/input/index.js +95 -0
  497. package/dist/modules/components/input/index.js.map +1 -0
  498. package/dist/modules/components/input/style.css +1 -0
  499. package/dist/modules/components/input/styles.css +7 -0
  500. package/dist/modules/components/mapView/index.js +31 -0
  501. package/dist/modules/components/mapView/index.js.map +1 -0
  502. package/dist/modules/components/mapView/mapView.client.js +58 -0
  503. package/dist/modules/components/mapView/mapView.client.js.map +1 -0
  504. package/dist/modules/components/mapView/mapbox.css +1 -0
  505. package/dist/modules/components/mapView/styles.css +1 -0
  506. package/dist/modules/components/maskedInput/index.js +104 -0
  507. package/dist/modules/components/maskedInput/index.js.map +1 -0
  508. package/dist/modules/components/maskedInput/style.css +1 -0
  509. package/dist/modules/components/maskedInput/styles.css +7 -0
  510. package/dist/modules/components/modal/modalContainer/index.js +38 -0
  511. package/dist/modules/components/modal/modalContainer/index.js.map +1 -0
  512. package/dist/modules/components/modal/modalContainer/styles.css +1 -0
  513. package/dist/modules/components/modal/modalContext.js +18 -0
  514. package/dist/modules/components/modal/modalContext.js.map +1 -0
  515. package/dist/modules/components/modal/modalFooter/index.js +14 -0
  516. package/dist/modules/components/modal/modalFooter/index.js.map +1 -0
  517. package/dist/modules/components/modal/modalFooter/styles.css +1 -0
  518. package/dist/modules/components/modal/modalHeader/index.js +23 -0
  519. package/dist/modules/components/modal/modalHeader/index.js.map +1 -0
  520. package/dist/modules/components/modal/modalHeader/styles.css +1 -0
  521. package/dist/modules/components/multiSelect/index.js +118 -0
  522. package/dist/modules/components/multiSelect/index.js.map +1 -0
  523. package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -0
  524. package/dist/modules/components/multiSelect/multiSelectChevron/index.js.map +1 -0
  525. package/dist/modules/components/multiSelect/multiSelectChevron/styles.css +1 -0
  526. package/dist/modules/components/multiSelect/multiSelectContainer/index.js +16 -0
  527. package/dist/modules/components/multiSelect/multiSelectContainer/index.js.map +1 -0
  528. package/dist/modules/components/multiSelect/multiSelectContainer/styles.css +1 -0
  529. package/dist/modules/components/multiSelect/multiSelectContent/index.js +14 -0
  530. package/dist/modules/components/multiSelect/multiSelectContent/index.js.map +1 -0
  531. package/dist/modules/components/multiSelect/multiSelectContent/styles.css +1 -0
  532. package/dist/modules/components/multiSelect/multiSelectMark/index.js +22 -0
  533. package/dist/modules/components/multiSelect/multiSelectMark/index.js.map +1 -0
  534. package/dist/modules/components/multiSelect/multiSelectMark/styles.css +1 -0
  535. package/dist/modules/components/multiSelect/multiSelectOption/index.js +20 -0
  536. package/dist/modules/components/multiSelect/multiSelectOption/index.js.map +1 -0
  537. package/dist/modules/components/multiSelect/multiSelectOption/styles.css +1 -0
  538. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +38 -0
  539. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js.map +1 -0
  540. package/dist/modules/components/multiSelect/multiSelectOptionsContainer/styles.css +1 -0
  541. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +14 -0
  542. package/dist/modules/components/multiSelect/multiSelectOverlay/index.js.map +1 -0
  543. package/dist/modules/components/multiSelect/multiSelectOverlay/styles.css +1 -0
  544. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +16 -0
  545. package/dist/modules/components/multiSelect/multiSelectSpinner/index.js.map +1 -0
  546. package/dist/modules/components/multiSelect/multiSelectSpinner/styles.css +1 -0
  547. package/dist/modules/components/multiSelect/styles.css +31 -0
  548. package/dist/modules/components/pagination/chevronButton/index.js +21 -0
  549. package/dist/modules/components/pagination/chevronButton/index.js.map +1 -0
  550. package/dist/modules/components/pagination/chevronButton/styles.css +1 -0
  551. package/dist/modules/components/pagination/currentButton/index.js +15 -0
  552. package/dist/modules/components/pagination/currentButton/index.js.map +1 -0
  553. package/dist/modules/components/pagination/currentButton/styles.css +1 -0
  554. package/dist/modules/components/pagination/index.js +54 -0
  555. package/dist/modules/components/pagination/index.js.map +1 -0
  556. package/dist/modules/components/pagination/pageButton/index.js +16 -0
  557. package/dist/modules/components/pagination/pageButton/index.js.map +1 -0
  558. package/dist/modules/components/pagination/pageButton/styles.css +1 -0
  559. package/dist/modules/components/pagination/paginationService.js +36 -0
  560. package/dist/modules/components/pagination/paginationService.js.map +1 -0
  561. package/dist/modules/components/pagination/spread/index.js +14 -0
  562. package/dist/modules/components/pagination/spread/index.js.map +1 -0
  563. package/dist/modules/components/pagination/spread/styles.css +1 -0
  564. package/dist/modules/components/pagination/styles.css +9 -0
  565. package/dist/modules/components/phoneInput/index.js +106 -0
  566. package/dist/modules/components/phoneInput/index.js.map +1 -0
  567. package/dist/modules/components/phoneInput/phoneInputContainer/index.js +15 -0
  568. package/dist/modules/components/phoneInput/phoneInputContainer/index.js.map +1 -0
  569. package/dist/modules/components/phoneInput/phoneInputContainer/styles.css +1 -0
  570. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +14 -0
  571. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js.map +1 -0
  572. package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/styles.css +1 -0
  573. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +26 -0
  574. package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js.map +1 -0
  575. package/dist/modules/components/phoneInput/phoneInputCountryOption/styles.css +1 -0
  576. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +36 -0
  577. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js.map +1 -0
  578. package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/styles.css +1 -0
  579. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +28 -0
  580. package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js.map +1 -0
  581. package/dist/modules/components/phoneInput/phoneInputCountrySelector/styles.css +1 -0
  582. package/dist/modules/components/phoneInput/phoneInputMask/index.js +55 -0
  583. package/dist/modules/components/phoneInput/phoneInputMask/index.js.map +1 -0
  584. package/dist/modules/components/phoneInput/phoneInputMask/style.css +1 -0
  585. package/dist/modules/components/phoneInput/styles.css +19 -0
  586. package/dist/modules/components/popover/index.js +32 -0
  587. package/dist/modules/components/popover/index.js.map +1 -0
  588. package/dist/modules/components/popover/styles.css +1 -0
  589. package/dist/modules/components/radio/radioBox/index.js +27 -0
  590. package/dist/modules/components/radio/radioBox/index.js.map +1 -0
  591. package/dist/modules/components/radio/radioBox/styles.css +1 -0
  592. package/dist/modules/components/radio/radioContext.js +24 -0
  593. package/dist/modules/components/radio/radioContext.js.map +1 -0
  594. package/dist/modules/components/radio/radioGroup/index.js +44 -0
  595. package/dist/modules/components/radio/radioGroup/index.js.map +1 -0
  596. package/dist/modules/components/radio/radioGroup/styles.css +7 -0
  597. package/dist/modules/components/richText/blockButton/index.js +23 -0
  598. package/dist/modules/components/richText/blockButton/index.js.map +1 -0
  599. package/dist/modules/components/richText/blockButton/styles.css +1 -0
  600. package/dist/modules/components/richText/element/index.js +75 -0
  601. package/dist/modules/components/richText/element/index.js.map +1 -0
  602. package/dist/modules/components/richText/element/styles.css +1 -0
  603. package/dist/modules/components/richText/index.js +144 -0
  604. package/dist/modules/components/richText/index.js.map +1 -0
  605. package/dist/modules/components/richText/insertImage/index.js +97 -0
  606. package/dist/modules/components/richText/insertImage/index.js.map +1 -0
  607. package/dist/modules/components/richText/insertImage/styles.css +1 -0
  608. package/dist/modules/components/richText/insertVideo/index.js +88 -0
  609. package/dist/modules/components/richText/insertVideo/index.js.map +1 -0
  610. package/dist/modules/components/richText/insertVideo/styles.css +1 -0
  611. package/dist/modules/components/richText/leaf/index.js +12 -0
  612. package/dist/modules/components/richText/leaf/index.js.map +1 -0
  613. package/dist/modules/components/richText/markButton/index.js +22 -0
  614. package/dist/modules/components/richText/markButton/index.js.map +1 -0
  615. package/dist/modules/components/richText/markButton/styles.css +1 -0
  616. package/dist/modules/components/richText/styles.css +67 -0
  617. package/dist/modules/components/richText/toolbar/index.js +13 -0
  618. package/dist/modules/components/richText/toolbar/index.js.map +1 -0
  619. package/dist/modules/components/richText/toolbar/styles.css +1 -0
  620. package/dist/modules/components/searchPlaces.js +60 -0
  621. package/dist/modules/components/searchPlaces.js.map +1 -0
  622. package/dist/modules/components/select/index.js +115 -0
  623. package/dist/modules/components/select/index.js.map +1 -0
  624. package/dist/modules/components/select/selectChevron/index.js +21 -0
  625. package/dist/modules/components/select/selectChevron/index.js.map +1 -0
  626. package/dist/modules/components/select/selectChevron/styles.css +1 -0
  627. package/dist/modules/components/select/selectContainer/index.js +16 -0
  628. package/dist/modules/components/select/selectContainer/index.js.map +1 -0
  629. package/dist/modules/components/select/selectContainer/styles.css +1 -0
  630. package/dist/modules/components/select/selectContent/index.js +14 -0
  631. package/dist/modules/components/select/selectContent/index.js.map +1 -0
  632. package/dist/modules/components/select/selectContent/styles.css +1 -0
  633. package/dist/modules/components/select/selectOption/index.js +21 -0
  634. package/dist/modules/components/select/selectOption/index.js.map +1 -0
  635. package/dist/modules/components/select/selectOption/styles.css +1 -0
  636. package/dist/modules/components/select/selectOptionsContainer/index.js +38 -0
  637. package/dist/modules/components/select/selectOptionsContainer/index.js.map +1 -0
  638. package/dist/modules/components/select/selectOptionsContainer/styles.css +1 -0
  639. package/dist/modules/components/select/selectOverlay/index.js +14 -0
  640. package/dist/modules/components/select/selectOverlay/index.js.map +1 -0
  641. package/dist/modules/components/select/selectOverlay/styles.css +1 -0
  642. package/dist/modules/components/select/selectSpinner/index.js +16 -0
  643. package/dist/modules/components/select/selectSpinner/index.js.map +1 -0
  644. package/dist/modules/components/select/selectSpinner/styles.css +1 -0
  645. package/dist/modules/components/select/styles.css +29 -0
  646. package/dist/modules/components/slider/index.js +46 -0
  647. package/dist/modules/components/slider/index.js.map +1 -0
  648. package/dist/modules/components/slider/styles.css +1 -0
  649. package/dist/modules/components/switch/index.js +38 -0
  650. package/dist/modules/components/switch/index.js.map +1 -0
  651. package/dist/modules/components/switch/styles.css +7 -0
  652. package/dist/modules/components/tab/tabButton/index.js +22 -0
  653. package/dist/modules/components/tab/tabButton/index.js.map +1 -0
  654. package/dist/modules/components/tab/tabButton/styles.css +1 -0
  655. package/dist/modules/components/tab/tabContainer/index.js +25 -0
  656. package/dist/modules/components/tab/tabContainer/index.js.map +1 -0
  657. package/dist/modules/components/tab/tabContainer/styles.css +1 -0
  658. package/dist/modules/components/tab/tabContext.js +26 -0
  659. package/dist/modules/components/tab/tabContext.js.map +1 -0
  660. package/dist/modules/components/table/tableBody/index.js +22 -0
  661. package/dist/modules/components/table/tableBody/index.js.map +1 -0
  662. package/dist/modules/components/table/tableBody/styles.css +1 -0
  663. package/dist/modules/components/table/tableCaption/index.js +18 -0
  664. package/dist/modules/components/table/tableCaption/index.js.map +1 -0
  665. package/dist/modules/components/table/tableCaption/styles.css +1 -0
  666. package/dist/modules/components/table/tableContainer/index.js +15 -0
  667. package/dist/modules/components/table/tableContainer/index.js.map +1 -0
  668. package/dist/modules/components/table/tableContainer/styles.css +1 -0
  669. package/dist/modules/components/table/tableFooter/index.js +21 -0
  670. package/dist/modules/components/table/tableFooter/index.js.map +1 -0
  671. package/dist/modules/components/table/tableFooter/styles.css +1 -0
  672. package/dist/modules/components/table/tableHeader/index.js +15 -0
  673. package/dist/modules/components/table/tableHeader/index.js.map +1 -0
  674. package/dist/modules/components/table/tableHeader/styles.css +1 -0
  675. package/dist/modules/components/textarea/index.js +54 -0
  676. package/dist/modules/components/textarea/index.js.map +1 -0
  677. package/dist/modules/components/textarea/styles.css +7 -0
  678. package/dist/modules/components/tooltip/index.js +37 -0
  679. package/dist/modules/components/tooltip/index.js.map +1 -0
  680. package/dist/modules/components/tooltip/styles.css +1 -0
  681. package/dist/modules/hooks/useAutomation.js +47 -0
  682. package/dist/modules/hooks/useAutomation.js.map +1 -0
  683. package/dist/modules/hooks/useDrawer.js +20 -0
  684. package/dist/modules/hooks/useDrawer.js.map +1 -0
  685. package/dist/modules/hooks/useForm.js +10 -0
  686. package/dist/modules/hooks/useForm.js.map +1 -0
  687. package/dist/modules/hooks/useHydrated.js +12 -0
  688. package/dist/modules/hooks/useHydrated.js.map +1 -0
  689. package/dist/modules/hooks/useModal.js +20 -0
  690. package/dist/modules/hooks/useModal.js.map +1 -0
  691. package/dist/modules/hooks/useScopedParams.js +20 -0
  692. package/dist/modules/hooks/useScopedParams.js.map +1 -0
  693. package/dist/modules/hooks/useScrollLock.js +23 -0
  694. package/dist/modules/hooks/useScrollLock.js.map +1 -0
  695. package/dist/modules/hooks/useSearchAutomation.js +36 -0
  696. package/dist/modules/hooks/useSearchAutomation.js.map +1 -0
  697. package/dist/modules/hooks/useSlider.js +16 -0
  698. package/dist/modules/hooks/useSlider.js.map +1 -0
  699. package/dist/modules/hooks/useToast.js +12 -0
  700. package/dist/modules/hooks/useToast.js.map +1 -0
  701. package/dist/modules/providers/drawerProvider.js +38 -0
  702. package/dist/modules/providers/drawerProvider.js.map +1 -0
  703. package/dist/modules/providers/formProvider.js +15 -0
  704. package/dist/modules/providers/formProvider.js.map +1 -0
  705. package/dist/modules/providers/modalProvider.js +42 -0
  706. package/dist/modules/providers/modalProvider.js.map +1 -0
  707. package/dist/modules/providers/placesProvider.js +20 -0
  708. package/dist/modules/providers/placesProvider.js.map +1 -0
  709. package/dist/modules/providers/toastProvider.js +49 -0
  710. package/dist/modules/providers/toastProvider.js.map +1 -0
  711. package/dist/modules/services/extractTextFromNode.js +9 -0
  712. package/dist/modules/services/extractTextFromNode.js.map +1 -0
  713. package/dist/modules/services/fieldTemplate.js +25 -0
  714. package/dist/modules/services/fieldTemplate.js.map +1 -0
  715. package/dist/modules/services/iconRenderer.js +17 -0
  716. package/dist/modules/services/iconRenderer.js.map +1 -0
  717. package/dist/modules/services/isBlockActive.js +15 -0
  718. package/dist/modules/services/isBlockActive.js.map +1 -0
  719. package/dist/modules/services/isMarkActive.js +10 -0
  720. package/dist/modules/services/isMarkActive.js.map +1 -0
  721. package/dist/modules/services/maskCurrencyValues.js +15 -0
  722. package/dist/modules/services/maskCurrencyValues.js.map +1 -0
  723. package/dist/modules/services/toHtml.js +9 -0
  724. package/dist/modules/services/toHtml.js.map +1 -0
  725. package/dist/modules/services/toRichTextValue.js +11 -0
  726. package/dist/modules/services/toRichTextValue.js.map +1 -0
  727. package/dist/modules/services/toggleBlock.js +23 -0
  728. package/dist/modules/services/toggleBlock.js.map +1 -0
  729. package/dist/modules/services/toggleMark.js +10 -0
  730. package/dist/modules/services/toggleMark.js.map +1 -0
  731. package/dist/modules/templates/badResponses.js +16 -0
  732. package/dist/modules/templates/badResponses.js.map +1 -0
  733. package/dist/modules/templates/richTextTemplates.js +19 -0
  734. package/dist/modules/templates/richTextTemplates.js.map +1 -0
  735. package/dist/modules/templates/successResponses.js +11 -0
  736. package/dist/modules/templates/successResponses.js.map +1 -0
  737. package/dist/modules/utils/phoneInputUtilities.js +24 -0
  738. package/dist/modules/utils/phoneInputUtilities.js.map +1 -0
  739. package/dist/modules/utils/richTextUtilities.js +92 -0
  740. package/dist/modules/utils/richTextUtilities.js.map +1 -0
  741. package/dist/providers/drawerProvider.d.ts +18 -84
  742. package/dist/providers/drawerProvider.d.ts.map +1 -1
  743. package/dist/providers/formProvider.d.ts +20 -56
  744. package/dist/providers/formProvider.d.ts.map +1 -1
  745. package/dist/providers/modalProvider.d.ts +19 -80
  746. package/dist/providers/modalProvider.d.ts.map +1 -1
  747. package/dist/providers/placesProvider.d.ts +18 -13
  748. package/dist/providers/placesProvider.d.ts.map +1 -1
  749. package/dist/providers/toastProvider.d.ts +13 -24
  750. package/dist/providers/toastProvider.d.ts.map +1 -1
  751. package/dist/services/extractTextFromNode.d.ts +1 -1
  752. package/dist/services/extractTextFromNode.d.ts.map +1 -1
  753. package/dist/services/fieldTemplate.d.ts +14 -0
  754. package/dist/services/fieldTemplate.d.ts.map +1 -0
  755. package/dist/services/iconRenderer.d.ts +2 -2
  756. package/dist/services/iconRenderer.d.ts.map +1 -1
  757. package/dist/services/isBlockActive.d.ts +1 -1
  758. package/dist/services/isBlockActive.d.ts.map +1 -1
  759. package/dist/services/isMarkActive.d.ts +1 -1
  760. package/dist/services/isMarkActive.d.ts.map +1 -1
  761. package/dist/services/maskCurrencyValues.d.ts.map +1 -1
  762. package/dist/services/toHtml.d.ts +12 -11
  763. package/dist/services/toHtml.d.ts.map +1 -1
  764. package/dist/services/toRichTextValue.d.ts +12 -18
  765. package/dist/services/toRichTextValue.d.ts.map +1 -1
  766. package/dist/services/toggleBlock.d.ts +1 -1
  767. package/dist/services/toggleBlock.d.ts.map +1 -1
  768. package/dist/services/toggleMark.d.ts +1 -1
  769. package/dist/services/toggleMark.d.ts.map +1 -1
  770. package/dist/style.css +1 -1
  771. package/dist/templates/richTextTemplates.d.ts +1 -1
  772. package/dist/templates/richTextTemplates.d.ts.map +1 -1
  773. package/dist/types/richTextTypes.d.ts +14 -3
  774. package/dist/types/richTextTypes.d.ts.map +1 -1
  775. package/dist/utils/phoneInputUtilities.d.ts +1 -1713
  776. package/dist/utils/phoneInputUtilities.d.ts.map +1 -1
  777. package/dist/utils/richTextUtilities.d.ts +1 -1
  778. package/dist/utils/richTextUtilities.d.ts.map +1 -1
  779. package/package.json +1084 -27
  780. package/styles.d.ts +3 -0
  781. package/dist/bundle.js +0 -18054
  782. package/dist/bundle.umd.cjs +0 -219
  783. package/dist/components/alert/alertContainer/index.js +0 -74
  784. package/dist/components/alert/alertContent/index.js +0 -47
  785. package/dist/components/alert/alertDescription/index.js +0 -51
  786. package/dist/components/alert/alertIcon/index.js +0 -66
  787. package/dist/components/alert/alertTitle/index.js +0 -48
  788. package/dist/components/audioPlayer/index.js +0 -130
  789. package/dist/components/audioUpload/hasFileContent/index.js +0 -26
  790. package/dist/components/audioUpload/index.js +0 -120
  791. package/dist/components/audioUpload/noFileContent/index.js +0 -29
  792. package/dist/components/badge/index.js +0 -49
  793. package/dist/components/button/index.js +0 -61
  794. package/dist/components/cardTab/cardTabButton/index.js +0 -80
  795. package/dist/components/cardTab/cardTabContainer/index.js +0 -88
  796. package/dist/components/cardTab/cardTabContext.js +0 -10
  797. package/dist/components/checkbox/index.js +0 -87
  798. package/dist/components/clientOnly.js +0 -86
  799. package/dist/components/currencyInput/index.js +0 -141
  800. package/dist/components/divider/index.js +0 -45
  801. package/dist/components/drawer/drawerContainer/index.js +0 -75
  802. package/dist/components/drawer/drawerContext.js +0 -10
  803. package/dist/components/drawer/drawerHeader/index.js +0 -58
  804. package/dist/components/fieldError/index.js +0 -33
  805. package/dist/components/fieldLabel/index.js +0 -39
  806. package/dist/components/fieldWrapper/index.js +0 -42
  807. package/dist/components/fileUpload/hasFileContent/index.js +0 -34
  808. package/dist/components/fileUpload/index.js +0 -127
  809. package/dist/components/fileUpload/noFileContent/index.js +0 -29
  810. package/dist/components/iconButton/index.js +0 -41
  811. package/dist/components/imageUpload/hasFileContent/index.js +0 -24
  812. package/dist/components/imageUpload/index.js +0 -149
  813. package/dist/components/imageUpload/noFileContent/index.js +0 -29
  814. package/dist/components/input/index.js +0 -114
  815. package/dist/components/mapView/index.js +0 -16
  816. package/dist/components/maskedInput/index.js +0 -131
  817. package/dist/components/modal/modalContainer/index.js +0 -82
  818. package/dist/components/modal/modalContext.js +0 -10
  819. package/dist/components/modal/modalFooter/index.js +0 -72
  820. package/dist/components/modal/modalHeader/index.js +0 -69
  821. package/dist/components/multiSelect/index.js +0 -169
  822. package/dist/components/multiSelect/multiSelectChevron/index.js +0 -18
  823. package/dist/components/multiSelect/multiSelectContainer/index.js +0 -11
  824. package/dist/components/multiSelect/multiSelectContent/index.js +0 -8
  825. package/dist/components/multiSelect/multiSelectMark/index.js +0 -11
  826. package/dist/components/multiSelect/multiSelectOption/index.js +0 -10
  827. package/dist/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
  828. package/dist/components/multiSelect/multiSelectOverlay/index.js +0 -9
  829. package/dist/components/multiSelect/multiSelectSpinner/index.js +0 -10
  830. package/dist/components/pagination/chevronButton/index.js +0 -9
  831. package/dist/components/pagination/currentButton/index.js +0 -6
  832. package/dist/components/pagination/index.js +0 -37
  833. package/dist/components/pagination/pageButton/index.js +0 -7
  834. package/dist/components/pagination/paginationService.js +0 -62
  835. package/dist/components/pagination/spread/index.js +0 -7
  836. package/dist/components/phoneInput/index.js +0 -205
  837. package/dist/components/phoneInput/phoneInputContainer/index.js +0 -11
  838. package/dist/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
  839. package/dist/components/phoneInput/phoneInputCountryOption/index.js +0 -10
  840. package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
  841. package/dist/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
  842. package/dist/components/phoneInput/phoneInputMask/index.js +0 -34
  843. package/dist/components/popover/index.js +0 -151
  844. package/dist/components/radio/radioBox/index.js +0 -99
  845. package/dist/components/radio/radioContext.js +0 -11
  846. package/dist/components/radio/radioGroup/index.js +0 -100
  847. package/dist/components/richText/blockButton/index.js +0 -18
  848. package/dist/components/richText/element/index.js +0 -24
  849. package/dist/components/richText/index.js +0 -149
  850. package/dist/components/richText/insertImage/index.js +0 -33
  851. package/dist/components/richText/leaf/index.js +0 -13
  852. package/dist/components/richText/markButton/index.js +0 -16
  853. package/dist/components/richText/toolbar/index.js +0 -6
  854. package/dist/components/searchPlaces.js +0 -91
  855. package/dist/components/select/index.js +0 -168
  856. package/dist/components/select/selectChevron/index.js +0 -18
  857. package/dist/components/select/selectContainer/index.js +0 -11
  858. package/dist/components/select/selectContent/index.js +0 -8
  859. package/dist/components/select/selectOption/index.js +0 -10
  860. package/dist/components/select/selectOptionsContainer/index.js +0 -44
  861. package/dist/components/select/selectOverlay/index.js +0 -9
  862. package/dist/components/select/selectSpinner/index.js +0 -10
  863. package/dist/components/slider/index.js +0 -97
  864. package/dist/components/switch/index.js +0 -100
  865. package/dist/components/tab/tabButton/index.js +0 -80
  866. package/dist/components/tab/tabContainer/index.js +0 -88
  867. package/dist/components/tab/tabContext.js +0 -10
  868. package/dist/components/table/tableBody/index.js +0 -69
  869. package/dist/components/table/tableCaption/index.js +0 -64
  870. package/dist/components/table/tableContainer/index.js +0 -66
  871. package/dist/components/table/tableFooter/index.js +0 -47
  872. package/dist/components/table/tableHeader/index.js +0 -46
  873. package/dist/components/textarea/index.js +0 -128
  874. package/dist/components/tooltip/index.js +0 -135
  875. package/dist/hooks/useAutomation.js +0 -67
  876. package/dist/hooks/useDrawer.js +0 -20
  877. package/dist/hooks/useForm.js +0 -52
  878. package/dist/hooks/useHydrated.js +0 -81
  879. package/dist/hooks/useModal.js +0 -20
  880. package/dist/hooks/useScopedParams.js +0 -107
  881. package/dist/hooks/useScrollLock.js +0 -68
  882. package/dist/hooks/useSlider.js +0 -49
  883. package/dist/hooks/useToast.js +0 -72
  884. package/dist/providers/drawerProvider.js +0 -120
  885. package/dist/providers/formProvider.js +0 -69
  886. package/dist/providers/modalProvider.js +0 -119
  887. package/dist/providers/placesProvider.js +0 -35
  888. package/dist/providers/toastProvider.js +0 -73
  889. package/dist/services/extractTextFromNode.js +0 -5
  890. package/dist/services/iconRenderer.js +0 -13
  891. package/dist/services/isBlockActive.js +0 -14
  892. package/dist/services/isMarkActive.js +0 -6
  893. package/dist/services/maskCurrencyValues.js +0 -23
  894. package/dist/services/toHtml.js +0 -21
  895. package/dist/services/toRichTextValue.js +0 -40
  896. package/dist/services/toggleBlock.js +0 -32
  897. package/dist/services/toggleMark.js +0 -10
  898. package/dist/templates/badResponses.js +0 -12
  899. package/dist/templates/richTextTemplates.js +0 -12
  900. package/dist/templates/successResponses.js +0 -2
  901. package/dist/types/richTextTypes.js +0 -1
  902. package/dist/utils/phoneInputUtilities.js +0 -99
  903. package/dist/utils/richTextUtilities.js +0 -87
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynRichTextInsertImage{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextInsertImage svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextInsertImage:hover{cursor:pointer;filter:brightness(.98)}.arkynRichTextInsertImageModalContent{flex-direction:column;gap:16px;width:500px;padding:16px;display:flex}.arkynRichTextInsertImageModalPreviewImage{border-radius:8px;width:100%}.arkynRichTextInsertImageModalContent .arkynImageUpload{min-height:174px}html.dark .arkynRichTextInsertImage:hover{cursor:pointer;filter:brightness(.9)}}
@@ -0,0 +1,88 @@
1
+ import { Button as e } from "../../button/index.js";
2
+ import { Input as t } from "../../input/index.js";
3
+ import { ModalContainer as n } from "../../modal/modalContainer/index.js";
4
+ import { ModalFooter as r } from "../../modal/modalFooter/index.js";
5
+ import { ModalHeader as i } from "../../modal/modalHeader/index.js";
6
+ /* empty css */
7
+ import { useEffect as a, useState as o } from "react";
8
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { Video as u } from "lucide-react";
10
+ import { useSlate as d } from "slate-react";
11
+ //#region src/components/richText/insertVideo/index.tsx
12
+ function f(f) {
13
+ let { modalCancelButton: p = "Cancelar", modalConfirmButton: m = "Confirmar", modalInputUrlLabel: h = "URL do vídeo:", modalTitle: g = "Inserir vídeo", invalidUrlMessage: _ = "URL inválida" } = f, v = d(), [y, b] = o(!1), [x, S] = o(""), [C, w] = o(""), [T, E] = o("");
14
+ function D(e) {
15
+ if (e.preventDefault(), !x || x === "") return;
16
+ let t = `https://www.youtube.com/embed/${x}`;
17
+ v.insertNodes([
18
+ {
19
+ type: "paragraph",
20
+ children: [{ text: "" }]
21
+ },
22
+ {
23
+ type: "video",
24
+ src: t,
25
+ children: [{ text: "" }]
26
+ },
27
+ {
28
+ type: "paragraph",
29
+ children: [{ text: "" }]
30
+ }
31
+ ]), b(!1);
32
+ }
33
+ return a(() => {
34
+ if (!C || C === "") return;
35
+ S(""), E("");
36
+ let e = new URLSearchParams(C.split("?")[1]).get("v");
37
+ e ? S(e) : E(_);
38
+ }, [C, _]), a(() => {
39
+ y || (S(""), w(""), E(""));
40
+ }, [y]), /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("button", {
41
+ type: "button",
42
+ className: "arkynRichTextInsertVideo",
43
+ onMouseDown: () => b(!0),
44
+ children: /* @__PURE__ */ c(u, {})
45
+ }), /* @__PURE__ */ l(n, {
46
+ isVisible: y,
47
+ makeInvisible: () => b(!1),
48
+ children: [
49
+ /* @__PURE__ */ c(i, { children: g }),
50
+ /* @__PURE__ */ l("div", {
51
+ className: "arkynRichTextInsertVideoModalContent",
52
+ children: [/* @__PURE__ */ c(t, {
53
+ type: "text",
54
+ name: "richTextVideoURL",
55
+ label: h,
56
+ showAsterisk: !0,
57
+ defaultValue: C,
58
+ onChange: (e) => w(e.target.value),
59
+ errorMessage: T
60
+ }), x && /* @__PURE__ */ c("iframe", {
61
+ width: "auto",
62
+ height: "315",
63
+ src: `https://www.youtube.com/embed/${x}`,
64
+ title: "YouTube video player",
65
+ allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
66
+ referrerPolicy: "strict-origin-when-cross-origin",
67
+ allowFullScreen: !0
68
+ })]
69
+ }),
70
+ /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(e, {
71
+ type: "button",
72
+ scheme: "danger",
73
+ variant: "outline",
74
+ onClick: () => b(!1),
75
+ children: p
76
+ }), /* @__PURE__ */ c(e, {
77
+ disabled: !x,
78
+ type: "button",
79
+ onClick: D,
80
+ children: m
81
+ })] })
82
+ ]
83
+ })] });
84
+ }
85
+ //#endregion
86
+ export { f as InsertVideo };
87
+
88
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/richText/insertVideo/index.tsx"],"sourcesContent":["import { Video } from \"lucide-react\";\nimport { type MouseEvent, useEffect, useState } from \"react\";\nimport { useSlate } from \"slate-react\";\n\nimport type { RichTextInsertVideoProps } from \"../../../types/richTextTypes\";\n\nimport { Button } from \"../../button\";\nimport { Input } from \"../../input\";\nimport { ModalContainer } from \"../../modal/modalContainer\";\nimport { ModalFooter } from \"../../modal/modalFooter\";\nimport { ModalHeader } from \"../../modal/modalHeader\";\n\nimport \"./styles.css\";\n\nfunction InsertVideo(props: RichTextInsertVideoProps) {\n\tconst {\n\t\tmodalCancelButton = \"Cancelar\",\n\t\tmodalConfirmButton = \"Confirmar\",\n\t\tmodalInputUrlLabel = \"URL do vídeo:\",\n\t\tmodalTitle = \"Inserir vídeo\",\n\t\tinvalidUrlMessage = \"URL inválida\",\n\t} = props;\n\n\tconst editor = useSlate();\n\n\tconst [modalIsVisible, setModalIsVisible] = useState(false);\n\tconst [videoId, setVideoId] = useState(\"\");\n\tconst [videoRawURL, setVideoRawURL] = useState(\"\");\n\tconst [errorMessage, setErrorMessage] = useState(\"\");\n\n\tfunction handleMouseDown(event: MouseEvent<HTMLButtonElement>) {\n\t\tevent.preventDefault();\n\n\t\tif (!videoId || videoId === \"\") return;\n\t\tconst videoUrl = `https://www.youtube.com/embed/${videoId}`;\n\n\t\teditor.insertNodes([\n\t\t\t{ type: \"paragraph\", children: [{ text: \"\" }] },\n\t\t\t{ type: \"video\", src: videoUrl, children: [{ text: \"\" }] },\n\t\t\t{ type: \"paragraph\", children: [{ text: \"\" }] },\n\t\t]);\n\n\t\tsetModalIsVisible(false);\n\t}\n\n\tuseEffect(() => {\n\t\tif (!videoRawURL || videoRawURL === \"\") return;\n\n\t\tsetVideoId(\"\");\n\t\tsetErrorMessage(\"\");\n\n\t\tconst searchParams = new URLSearchParams(videoRawURL.split(\"?\")[1]);\n\t\tconst vParam = searchParams.get(\"v\");\n\t\tif (vParam) setVideoId(vParam);\n\t\telse setErrorMessage(invalidUrlMessage);\n\t}, [videoRawURL, invalidUrlMessage]);\n\n\tuseEffect(() => {\n\t\tif (!modalIsVisible) {\n\t\t\tsetVideoId(\"\");\n\t\t\tsetVideoRawURL(\"\");\n\t\t\tsetErrorMessage(\"\");\n\t\t}\n\t}, [modalIsVisible]);\n\n\treturn (\n\t\t<>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclassName=\"arkynRichTextInsertVideo\"\n\t\t\t\tonMouseDown={() => setModalIsVisible(true)}\n\t\t\t>\n\t\t\t\t<Video />\n\t\t\t</button>\n\n\t\t\t<ModalContainer\n\t\t\t\tisVisible={modalIsVisible}\n\t\t\t\tmakeInvisible={() => setModalIsVisible(false)}\n\t\t\t>\n\t\t\t\t<ModalHeader>{modalTitle}</ModalHeader>\n\n\t\t\t\t<div className=\"arkynRichTextInsertVideoModalContent\">\n\t\t\t\t\t<Input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tname=\"richTextVideoURL\"\n\t\t\t\t\t\tlabel={modalInputUrlLabel}\n\t\t\t\t\t\tshowAsterisk\n\t\t\t\t\t\tdefaultValue={videoRawURL}\n\t\t\t\t\t\tonChange={(e) => setVideoRawURL(e.target.value)}\n\t\t\t\t\t\terrorMessage={errorMessage}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{videoId && (\n\t\t\t\t\t\t<iframe\n\t\t\t\t\t\t\twidth=\"auto\"\n\t\t\t\t\t\t\theight=\"315\"\n\t\t\t\t\t\t\tsrc={`https://www.youtube.com/embed/${videoId}`}\n\t\t\t\t\t\t\ttitle=\"YouTube video player\"\n\t\t\t\t\t\t\tallow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n\t\t\t\t\t\t\treferrerPolicy=\"strict-origin-when-cross-origin\"\n\t\t\t\t\t\t\tallowFullScreen\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t<ModalFooter>\n\t\t\t\t\t<Button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tscheme=\"danger\"\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tonClick={() => setModalIsVisible(false)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{modalCancelButton}\n\t\t\t\t\t</Button>\n\n\t\t\t\t\t<Button disabled={!videoId} type=\"button\" onClick={handleMouseDown}>\n\t\t\t\t\t\t{modalConfirmButton}\n\t\t\t\t\t</Button>\n\t\t\t\t</ModalFooter>\n\t\t\t</ModalContainer>\n\t\t</>\n\t);\n}\n\nexport { InsertVideo };\n"],"mappings":";;;;;;;;;;;AAcA,SAAS,EAAY,GAAiC;CACrD,IAAM,EACL,uBAAoB,YACpB,wBAAqB,aACrB,wBAAqB,iBACrB,gBAAa,iBACb,uBAAoB,mBACjB,GAEE,IAAS,EAAS,GAElB,CAAC,GAAgB,KAAqB,EAAS,EAAK,GACpD,CAAC,GAAS,KAAc,EAAS,EAAE,GACnC,CAAC,GAAa,KAAkB,EAAS,EAAE,GAC3C,CAAC,GAAc,KAAmB,EAAS,EAAE;CAEnD,SAAS,EAAgB,GAAsC;EAG9D,IAFA,EAAM,eAAe,GAEjB,CAAC,KAAW,MAAY,IAAI;EAChC,IAAM,IAAW,iCAAiC;EAQlD,AANA,EAAO,YAAY;GAClB;IAAE,MAAM;IAAa,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;GAAE;GAC9C;IAAE,MAAM;IAAS,KAAK;IAAU,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;GAAE;GACzD;IAAE,MAAM;IAAa,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;GAAE;EAC/C,CAAC,GAED,EAAkB,EAAK;CACxB;CAsBA,OApBA,QAAgB;EACf,IAAI,CAAC,KAAe,MAAgB,IAAI;EAGxC,AADA,EAAW,EAAE,GACb,EAAgB,EAAE;EAGlB,IAAM,IAAS,IADU,gBAAgB,EAAY,MAAM,GAAG,CAAC,CAAC,EACjD,CAAA,CAAa,IAAI,GAAG;EACnC,AAAI,IAAQ,EAAW,CAAM,IACxB,EAAgB,CAAiB;CACvC,GAAG,CAAC,GAAa,CAAiB,CAAC,GAEnC,QAAgB;EACf,AAAK,MACJ,EAAW,EAAE,GACb,EAAe,EAAE,GACjB,EAAgB,EAAE;CAEpB,GAAG,CAAC,CAAc,CAAC,GAGlB,kBAAA,GAAA,EAAA,UAAA,CACC,kBAAC,UAAD;EACC,MAAK;EACL,WAAU;EACV,mBAAmB,EAAkB,EAAI;YAEzC,kBAAC,GAAD,CAAQ,CAAA;CACD,CAAA,GAER,kBAAC,GAAD;EACC,WAAW;EACX,qBAAqB,EAAkB,EAAK;YAF7C;GAIC,kBAAC,GAAD,EAAA,UAAc,EAAwB,CAAA;GAEtC,kBAAC,OAAD;IAAK,WAAU;cAAf,CACC,kBAAC,GAAD;KACC,MAAK;KACL,MAAK;KACL,OAAO;KACP,cAAA;KACA,cAAc;KACd,WAAW,MAAM,EAAe,EAAE,OAAO,KAAK;KAChC;IACd,CAAA,GAEA,KACA,kBAAC,UAAD;KACC,OAAM;KACN,QAAO;KACP,KAAK,iCAAiC;KACtC,OAAM;KACN,OAAM;KACN,gBAAe;KACf,iBAAA;IACA,CAAA,CAEE;;GAEL,kBAAC,GAAD,EAAA,UAAA,CACC,kBAAC,GAAD;IACC,MAAK;IACL,QAAO;IACP,SAAQ;IACR,eAAe,EAAkB,EAAK;cAErC;GACM,CAAA,GAER,kBAAC,GAAD;IAAQ,UAAU,CAAC;IAAS,MAAK;IAAS,SAAS;cACjD;GACM,CAAA,CACI,EAAA,CAAA;EACE;GACf,EAAA,CAAA;AAEJ"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynRichTextInsertVideo{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextInsertVideo svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextInsertVideo:hover{cursor:pointer;filter:brightness(.98)}.arkynRichTextInsertVideoModalContent{flex-direction:column;gap:16px;width:500px;padding:16px;display:flex}.arkynRichTextInsertVideoModalPreviewVideo{border-radius:8px;width:100%}.arkynRichTextInsertVideoModalContent .arkynVideoUpload{min-height:174px}html.dark .arkynRichTextInsertVideo:hover{cursor:pointer;filter:brightness(.9)}}
@@ -0,0 +1,12 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ //#region src/components/richText/leaf/index.tsx
3
+ function t({ attributes: t, children: n, leaf: r }) {
4
+ return r.bold && (n = /* @__PURE__ */ e("strong", { children: n })), r.code && (n = /* @__PURE__ */ e("code", { children: n })), r.italic && (n = /* @__PURE__ */ e("em", { children: n })), r.underline && (n = /* @__PURE__ */ e("u", { children: n })), /* @__PURE__ */ e("span", {
5
+ ...t,
6
+ children: n
7
+ });
8
+ }
9
+ //#endregion
10
+ export { t as Leaf };
11
+
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/richText/leaf/index.tsx"],"sourcesContent":["import type { RenderLeafProps } from \"slate-react\";\n\nfunction Leaf({ attributes, children, leaf }: RenderLeafProps) {\n\tif (leaf.bold) children = <strong>{children}</strong>;\n\tif (leaf.code) children = <code>{children}</code>;\n\tif (leaf.italic) children = <em>{children}</em>;\n\tif (leaf.underline) children = <u>{children}</u>;\n\n\treturn <span {...attributes}>{children}</span>;\n}\n\nexport { Leaf };\n"],"mappings":";;AAEA,SAAS,EAAK,EAAE,eAAY,aAAU,WAAyB;CAM9D,OALI,EAAK,SAAM,IAAW,kBAAC,UAAD,EAAS,YAAiB,CAAA,IAChD,EAAK,SAAM,IAAW,kBAAC,QAAD,EAAO,YAAe,CAAA,IAC5C,EAAK,WAAQ,IAAW,kBAAC,MAAD,EAAK,YAAa,CAAA,IAC1C,EAAK,cAAW,IAAW,kBAAC,KAAD,EAAI,YAAY,CAAA,IAExC,kBAAC,QAAD;EAAM,GAAI;EAAa;CAAe,CAAA;AAC9C"}
@@ -0,0 +1,22 @@
1
+ import { isMarkActive as e } from "../../../services/isMarkActive.js";
2
+ import { toggleMark as t } from "../../../services/toggleMark.js";
3
+ /* empty css */
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import { useSlate as r } from "slate-react";
6
+ //#region src/components/richText/markButton/index.tsx
7
+ function i({ format: i, icon: a }) {
8
+ let o = r(), s = e(o, i) ? "activeTrue" : "activeFalse";
9
+ function c(e) {
10
+ e.preventDefault(), t(o, i);
11
+ }
12
+ return /* @__PURE__ */ n("button", {
13
+ type: "button",
14
+ className: `arkynRichTextMarkButton ${s}`,
15
+ onMouseDown: c,
16
+ children: /* @__PURE__ */ n(a, {})
17
+ });
18
+ }
19
+ //#endregion
20
+ export { i as MarkButton };
21
+
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/richText/markButton/index.tsx"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\nimport type { MouseEvent } from \"react\";\nimport { useSlate } from \"slate-react\";\n\nimport { isMarkActive } from \"../../../services/isMarkActive\";\nimport { toggleMark } from \"../../../services/toggleMark\";\nimport type { RichTextMarkFormatType } from \"../../../types/richTextTypes\";\n\nimport \"./styles.css\";\n\ntype MarkButtonProps = {\n\tformat: RichTextMarkFormatType;\n\ticon: LucideIcon;\n};\n\nfunction MarkButton({ format, icon: Icon }: MarkButtonProps) {\n\tconst editor = useSlate();\n\n\tconst isActive = isMarkActive(editor, format);\n\tconst activeClass = isActive ? \"activeTrue\" : \"activeFalse\";\n\n\tfunction handleMouseDown(event: MouseEvent<HTMLButtonElement>) {\n\t\tevent.preventDefault();\n\t\ttoggleMark(editor, format);\n\t}\n\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclassName={`arkynRichTextMarkButton ${activeClass}`}\n\t\t\tonMouseDown={handleMouseDown}\n\t\t>\n\t\t\t<Icon />\n\t\t</button>\n\t);\n}\n\nexport { MarkButton };\n"],"mappings":";;;;;;AAeA,SAAS,EAAW,EAAE,WAAQ,MAAM,KAAyB;CAC5D,IAAM,IAAS,EAAS,GAGlB,IADW,EAAa,GAAQ,CAClB,IAAW,eAAe;CAE9C,SAAS,EAAgB,GAAsC;EAE9D,AADA,EAAM,eAAe,GACrB,EAAW,GAAQ,CAAM;CAC1B;CAEA,OACC,kBAAC,UAAD;EACC,MAAK;EACL,WAAW,2BAA2B;EACtC,aAAa;YAEb,kBAAC,GAAD,CAAO,CAAA;CACA,CAAA;AAEV"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynRichTextMarkButton{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextMarkButton svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextMarkButton:hover{cursor:pointer;filter:brightness(.97)}html.dark .arkynRichTextMarkButton:hover{cursor:pointer;filter:brightness(.9)}.arkynRichTextMarkButton.activeTrue{filter:brightness(.97)}html.dark .arkynRichTextMarkButton.activeTrue{filter:brightness(.9)}.arkynRichTextMarkButton.activeTrue svg{color:rgba(var(--spotlight-primary,17, 109, 220), 1)}}
@@ -0,0 +1,67 @@
1
+ @layer arkyn{.arkynRichText{background-color:var(--input-background,#fafafa);border:1px solid var(--border,#e2e8f0);border-radius:8px;outline:1px solid #0000;flex-direction:column;display:flex}.arkynRichText.errorTrue{outline-color:rgb(var(--spotlight-danger,244, 63, 94));border-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynRichText.focusTrue{outline-color:rgb(var(--spotlight-primary,17, 109, 220));border-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynRichText .editorContainer{outline:none;min-height:300px;padding:16px}.arkynRichText .restatesCharacters{color:rgb(var(--spotlight-danger,244, 63, 94));margin-left:auto;padding:8px;font-size:16px;font-weight:600;display:block}}
2
+
3
+ @layer arkyn{.arkynFieldError{color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:12px}}
4
+
5
+ @layer arkyn{.arkynFieldLabel{color:var(--text-body,#52525b);font-size:14px;font-weight:600;line-height:19.07px}.arkynFieldLabel.asteriskTrue:before{content:"* ";text-align:left;color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:16.34px}}
6
+
7
+ @layer arkyn{.arkynFieldWrapper{gap:6px;height:max-content;display:flex}.arkynFieldWrapper.horizontal{flex-direction:row;align-items:center}.arkynFieldWrapper.horizontalReverse{flex-direction:row-reverse;align-items:center;margin-right:auto}.arkynFieldWrapper.vertical{flex-direction:column;align-items:flex-start}}
8
+
9
+ @layer arkyn{.arkynRichTextBlockButton{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextBlockButton svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextBlockButton:hover{cursor:pointer;filter:brightness(.98)}html.dark .arkynRichTextBlockButton:hover{cursor:pointer;filter:brightness(.9)}}
10
+
11
+ @layer arkyn{.arkynElementBlockquote,.arkynElementBulletList,.arkynElementListItem,.arkynElementNumberedList,.arkynElementParagraph{color:var(--text-body,#52525b);font-size:14px;font-weight:400}.arkynElementHeadingOne,.arkynElementHeadingTwo{color:var(--text-heading,#09090b);font-weight:600}.arkynElementHeadingOne{font-size:18px}.arkynElementHeadingTwo{font-size:16px}.arkynElementImage{max-width:100%}}
12
+
13
+ @layer arkyn{.arkynRichTextInsertImage{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextInsertImage svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextInsertImage:hover{cursor:pointer;filter:brightness(.98)}.arkynRichTextInsertImageModalContent{flex-direction:column;gap:16px;width:500px;padding:16px;display:flex}.arkynRichTextInsertImageModalPreviewImage{border-radius:8px;width:100%}.arkynRichTextInsertImageModalContent .arkynImageUpload{min-height:174px}html.dark .arkynRichTextInsertImage:hover{cursor:pointer;filter:brightness(.9)}}
14
+
15
+ @layer arkyn{.arkynButton{background:0 0;border:1px solid #0000;outline:1px solid #0000;position:relative}.arkynButton:hover{cursor:pointer;filter:brightness(.95);transition:all .3s}html.dark .arkynButton:hover{cursor:pointer;filter:brightness(1.2)}.arkynButton:disabled{cursor:not-allowed;opacity:.5}.arkynButton .arkynButtonContent{white-space:nowrap;justify-content:center;align-items:center;display:flex}.arkynButton .arkynButtonSpinner{white-space:nowrap;opacity:0;justify-content:center;align-items:center;display:flex}.arkynButton.solid{color:var(--white,#fff)}.arkynButton.solid.primary{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.solid.secondary{background-color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.solid.danger{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.solid.success{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.solid.warning{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.solid.info{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.outline{background-color:var(--background-underground,#fafafa);border-color:var(--border,#e2e8f0)}.arkynButton.outline.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.outline.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.outline.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.outline.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.outline.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.outline.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.ghost.primary{color:rgb(var(--spotlight-primary,17, 109, 220));background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynButton.ghost.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139));background-color:rgb(var(--spotlight-secondary-foreground,250, 250, 250))}.arkynButton.ghost.danger{color:rgb(var(--spotlight-danger,244, 63, 94));background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynButton.ghost.success{color:rgb(var(--spotlight-success,16, 185, 129));background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynButton.ghost.warning{color:rgb(var(--spotlight-warning,249, 115, 22));background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynButton.ghost.info{color:rgb(var(--spotlight-info,14, 165, 233));background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynButton.invisible.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.invisible.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.invisible.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.invisible.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.invisible.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.invisible.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.lg{border-radius:8px;height:44px;padding:0 20px;font-size:14px;font-weight:600;line-height:14px}.arkynButton.lg .arkynButtonContent,.arkynButton.lg .arkynButtonSpinner{gap:16px}.arkynButton.md{border-radius:8px;gap:16px;height:40px;padding:0 16px;font-size:14px;font-weight:600;line-height:14px}.arkynButton.md .arkynButtonContent,.arkynButton.md .arkynButtonSpinner{gap:14px}.arkynButton.sm{border-radius:6px;height:32px;padding:0 16px;font-size:12px;font-weight:600;line-height:12px}.arkynButton.sm .arkynButtonContent,.arkynButton.sm .arkynButtonSpinner{gap:12px}.arkynButton.xs{border-radius:4px;height:24px;padding:0 16px;font-size:10px;font-weight:600;line-height:10px}.arkynButton.xs .arkynButtonContent,.arkynButton.xs .arkynButtonSpinner{gap:8px}.arkynButton .arkynButtonSpinner>svg{animation:2s linear infinite spin}.arkynButton.loadingTextFalse .arkynButtonSpinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arkynButton.loadingTextTrue .arkynButtonSpinner{max-height:0}.arkynButton.loadingTrue .arkynButtonContent{opacity:0;max-height:0}.arkynButton.loadingTrue .arkynButtonSpinner{opacity:1;max-height:unset}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
16
+
17
+ @layer arkyn{.arkynInput{border:1px solid #0000;border-radius:8px;outline:1px solid #0000;align-items:center;gap:8px;width:100%;padding:0 16px;display:flex;position:relative}.arkynInput:hover{cursor:text}.arkynInput input{width:100%;color:var(--text-heading,#09090b);background:0 0;border:none;outline:none;line-height:100%}.arkynInput input:disabled{-webkit-user-select:none;user-select:none}.arkynInput .prefix,.arkynInput .suffix{color:var(--text-body,#52525b);background:var(--border,#e2e8f0);justify-content:center;align-items:center;font-weight:400;line-height:100%;display:flex;position:absolute}.arkynInput .prefix{border-right:1px solid var(--border,#e2e8f0);border-radius:7px 0 0 7px;top:0;bottom:0;left:0}.arkynInput .suffix{border-left:1px solid var(--border,#e2e8f0);border-radius:0 7px 7px 0;top:0;bottom:0;right:0}.arkynInput input::placeholder{color:var(--text-muted,#a1a1aa);line-height:100%}.arkynInput svg{color:var(--text-muted,#a1a1aa)}.arkynInput.errored svg{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).focused svg{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.opacity{opacity:.5}.arkynInput.solid{border-color:var(--border,#e2e8f0);background-color:var(--input-background,#fafafa)}.arkynInput.solid.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).solid.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220));outline-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.outline{border-color:var(--border,#e2e8f0);background-color:var(--background-foreground,#fff)}.arkynInput.outline.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).outline.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220));outline-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.underline{border-top:none;border-left:none;border-right:none;border-color:var(--border,#e2e8f0);border-radius:0;outline:none}.arkynInput.underline .suffix,.arkynInput.underline .prefix{display:none}.arkynInput.underline:before{content:" ";background:0 0;height:1px;position:absolute;bottom:-2px;left:0;right:0}.arkynInput.underline.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput.underline.errored:before{background:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).underline.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput:not(.opacity).underline.focused:before{background:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.md input{min-height:38px;max-height:38px;font-size:14px;font-weight:400;line-height:14px}.arkynInput.md input::placeholder{font-size:14px;font-weight:400;line-height:14px}.arkynInput.md.hasPrefix{padding-left:60px}.arkynInput.md.hasSuffix{padding-right:60px}.arkynInput.md .prefix,.arkynInput.md .suffix{width:44px;height:38px;font-size:14px}.arkynInput.lg input{min-height:44px;max-height:44px;font-size:16px;font-weight:400;line-height:16px}.arkynInput.lg input::placeholder{font-size:16px;font-weight:400;line-height:16px}.arkynInput.lg .prefix,.arkynInput.lg .suffix{width:48px;height:44px;font-size:16px}.arkynInput.lg.hasPrefix{padding-left:64px}.arkynInput.lg.hasSuffix{padding-right:64px}.arkynInput .spinner{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
18
+
19
+ @layer arkyn{.arkynFieldError{color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:12px}}
20
+
21
+ @layer arkyn{.arkynFieldLabel{color:var(--text-body,#52525b);font-size:14px;font-weight:600;line-height:19.07px}.arkynFieldLabel.asteriskTrue:before{content:"* ";text-align:left;color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:16.34px}}
22
+
23
+ @layer arkyn{.arkynFieldWrapper{gap:6px;height:max-content;display:flex}.arkynFieldWrapper.horizontal{flex-direction:row;align-items:center}.arkynFieldWrapper.horizontalReverse{flex-direction:row-reverse;align-items:center;margin-right:auto}.arkynFieldWrapper.vertical{flex-direction:column;align-items:flex-start}}
24
+
25
+ @layer arkyn{.arkynInput{border:1px solid #0000;border-radius:8px;outline:1px solid #0000;align-items:center;gap:8px;width:100%;padding:0 16px;display:flex;position:relative}.arkynInput:hover{cursor:text}.arkynInput input{width:100%;color:var(--text-heading,#09090b);background:0 0;border:none;outline:none;line-height:100%}.arkynInput input:disabled{-webkit-user-select:none;user-select:none}.arkynInput .prefix,.arkynInput .suffix{color:var(--text-body,#52525b);background:var(--border,#e2e8f0);justify-content:center;align-items:center;font-weight:400;line-height:100%;display:flex;position:absolute}.arkynInput .prefix{border-right:1px solid var(--border,#e2e8f0);border-radius:7px 0 0 7px;top:0;bottom:0;left:0}.arkynInput .suffix{border-left:1px solid var(--border,#e2e8f0);border-radius:0 7px 7px 0;top:0;bottom:0;right:0}.arkynInput input::placeholder{color:var(--text-muted,#a1a1aa);line-height:100%}.arkynInput svg{color:var(--text-muted,#a1a1aa)}.arkynInput.errored svg{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).focused svg{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.opacity{opacity:.5}.arkynInput.solid{border-color:var(--border,#e2e8f0);background-color:var(--input-background,#fafafa)}.arkynInput.solid.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).solid.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220));outline-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.outline{border-color:var(--border,#e2e8f0);background-color:var(--background-foreground,#fff)}.arkynInput.outline.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).outline.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220));outline-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.underline{border-top:none;border-left:none;border-right:none;border-color:var(--border,#e2e8f0);border-radius:0;outline:none}.arkynInput.underline .suffix,.arkynInput.underline .prefix{display:none}.arkynInput.underline:before{content:" ";background:0 0;height:1px;position:absolute;bottom:-2px;left:0;right:0}.arkynInput.underline.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput.underline.errored:before{background:rgb(var(--spotlight-danger,244, 63, 94))}.arkynInput:not(.opacity).underline.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput:not(.opacity).underline.focused:before{background:rgb(var(--spotlight-primary,17, 109, 220))}.arkynInput.md input{min-height:38px;max-height:38px;font-size:14px;font-weight:400;line-height:14px}.arkynInput.md input::placeholder{font-size:14px;font-weight:400;line-height:14px}.arkynInput.md.hasPrefix{padding-left:60px}.arkynInput.md.hasSuffix{padding-right:60px}.arkynInput.md .prefix,.arkynInput.md .suffix{width:44px;height:38px;font-size:14px}.arkynInput.lg input{min-height:44px;max-height:44px;font-size:16px;font-weight:400;line-height:16px}.arkynInput.lg input::placeholder{font-size:16px;font-weight:400;line-height:16px}.arkynInput.lg .prefix,.arkynInput.lg .suffix{width:48px;height:44px;font-size:16px}.arkynInput.lg.hasPrefix{padding-left:64px}.arkynInput.lg.hasSuffix{padding-right:64px}.arkynInput .spinner{animation:2s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
26
+
27
+ @layer arkyn{.arkynImageUpload{border-width:1px;border-color:var(--border,#e2e8f0);background:var(--input-background,#fafafa);border-radius:8px;outline:1px solid #0000;width:100%;max-width:475px;height:174px}.arkynImageUpload.hasImage{border-style:solid}.arkynImageUpload.noHasImage{border-style:dashed}.arkynImageUpload.hasError{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}}
28
+
29
+ @layer arkyn{.arkynFieldError{color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:12px}}
30
+
31
+ @layer arkyn{.arkynFieldLabel{color:var(--text-body,#52525b);font-size:14px;font-weight:600;line-height:19.07px}.arkynFieldLabel.asteriskTrue:before{content:"* ";text-align:left;color:rgb(var(--spotlight-danger,244, 63, 94));font-size:12px;font-weight:600;line-height:16.34px}}
32
+
33
+ @layer arkyn{.arkynFieldWrapper{gap:6px;height:max-content;display:flex}.arkynFieldWrapper.horizontal{flex-direction:row;align-items:center}.arkynFieldWrapper.horizontalReverse{flex-direction:row-reverse;align-items:center;margin-right:auto}.arkynFieldWrapper.vertical{flex-direction:column;align-items:flex-start}}
34
+
35
+ @layer arkyn{.arkynImageUploadHasFileContent{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:6px;justify-content:end;align-items:end;gap:8px;width:100%;height:100%;padding:6px;display:flex}}
36
+
37
+ @layer arkyn{.arkynButton{background:0 0;border:1px solid #0000;outline:1px solid #0000;position:relative}.arkynButton:hover{cursor:pointer;filter:brightness(.95);transition:all .3s}html.dark .arkynButton:hover{cursor:pointer;filter:brightness(1.2)}.arkynButton:disabled{cursor:not-allowed;opacity:.5}.arkynButton .arkynButtonContent{white-space:nowrap;justify-content:center;align-items:center;display:flex}.arkynButton .arkynButtonSpinner{white-space:nowrap;opacity:0;justify-content:center;align-items:center;display:flex}.arkynButton.solid{color:var(--white,#fff)}.arkynButton.solid.primary{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.solid.secondary{background-color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.solid.danger{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.solid.success{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.solid.warning{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.solid.info{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.outline{background-color:var(--background-underground,#fafafa);border-color:var(--border,#e2e8f0)}.arkynButton.outline.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.outline.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.outline.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.outline.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.outline.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.outline.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.ghost.primary{color:rgb(var(--spotlight-primary,17, 109, 220));background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynButton.ghost.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139));background-color:rgb(var(--spotlight-secondary-foreground,250, 250, 250))}.arkynButton.ghost.danger{color:rgb(var(--spotlight-danger,244, 63, 94));background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynButton.ghost.success{color:rgb(var(--spotlight-success,16, 185, 129));background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynButton.ghost.warning{color:rgb(var(--spotlight-warning,249, 115, 22));background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynButton.ghost.info{color:rgb(var(--spotlight-info,14, 165, 233));background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynButton.invisible.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynButton.invisible.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynButton.invisible.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynButton.invisible.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynButton.invisible.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynButton.invisible.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynButton.lg{border-radius:8px;height:44px;padding:0 20px;font-size:14px;font-weight:600;line-height:14px}.arkynButton.lg .arkynButtonContent,.arkynButton.lg .arkynButtonSpinner{gap:16px}.arkynButton.md{border-radius:8px;gap:16px;height:40px;padding:0 16px;font-size:14px;font-weight:600;line-height:14px}.arkynButton.md .arkynButtonContent,.arkynButton.md .arkynButtonSpinner{gap:14px}.arkynButton.sm{border-radius:6px;height:32px;padding:0 16px;font-size:12px;font-weight:600;line-height:12px}.arkynButton.sm .arkynButtonContent,.arkynButton.sm .arkynButtonSpinner{gap:12px}.arkynButton.xs{border-radius:4px;height:24px;padding:0 16px;font-size:10px;font-weight:600;line-height:10px}.arkynButton.xs .arkynButtonContent,.arkynButton.xs .arkynButtonSpinner{gap:8px}.arkynButton .arkynButtonSpinner>svg{animation:2s linear infinite spin}.arkynButton.loadingTextFalse .arkynButtonSpinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arkynButton.loadingTextTrue .arkynButtonSpinner{max-height:0}.arkynButton.loadingTrue .arkynButtonContent{opacity:0;max-height:0}.arkynButton.loadingTrue .arkynButtonSpinner{opacity:1;max-height:unset}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
38
+
39
+ @layer arkyn{.arkynIconButton{background:0 0;border:1px solid #0000;outline:1px solid #0000;position:relative}.arkynIconButton:hover{cursor:pointer;filter:brightness(.9);transition:all .15s ease-out}html.dark .arkynIconButton:hover{cursor:pointer;filter:brightness(1.2)}.arkynIconButton:disabled{cursor:not-allowed;opacity:.5}.arkynIconButtonContent{justify-content:center;align-items:center;display:flex}.arkynIconButton.solid{color:var(--white,#fff)}.arkynIconButton.solid.primary{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.solid.secondary{background-color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.solid.danger{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.solid.success{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.solid.warning{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.solid.info{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.outline{background-color:var(--background-underground,#fafafa);border-color:var(--border,#e2e8f0)}.arkynIconButton.outline.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.outline.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.outline.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.outline.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.outline.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.outline.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.ghost:hover{filter:brightness(.8)}.arkynIconButton.ghost.primary{color:rgb(var(--spotlight-primary,17, 109, 220));background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynIconButton.ghost.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139));background-color:rgb(var(--spotlight-secondary-foreground,250, 250, 250))}.arkynIconButton.ghost.danger{color:rgb(var(--spotlight-danger,244, 63, 94));background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynIconButton.ghost.success{color:rgb(var(--spotlight-success,16, 185, 129));background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynIconButton.ghost.warning{color:rgb(var(--spotlight-warning,249, 115, 22));background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynIconButton.ghost.info{color:rgb(var(--spotlight-info,14, 165, 233));background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynIconButton.invisible.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.invisible.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.invisible.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.invisible.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.invisible.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.invisible.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.lg{border-radius:6px;width:44px;height:44px}.arkynIconButton.md{border-radius:6px;width:40px;height:40px}.arkynIconButton.sm{border-radius:6px;width:32px;height:32px}.arkynIconButton.xs{border-radius:4px;width:24px;height:24px}.arkynIconButtonSpinner{opacity:0;justify-content:center;align-items:center;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arkynIconButtonSpinner>svg{animation:2s linear infinite spin}.arkynIconButton.loadingTrue .arkynIconButtonSpinner{opacity:1}.arkynIconButton.loadingTrue .arkynIconButtonContent{opacity:0}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
40
+
41
+ @layer arkyn{.arkynTooltip{display:block;position:relative}.arkynTooltipText{visibility:hidden;opacity:0;white-space:nowrap;color:var(--tooltip-text,#fafafa);background-color:var(--tooltip-background,#27272a);z-index:9999;border-radius:4px;justify-content:center;align-items:center;font-weight:400;transition:all .15s ease-out;display:flex;position:absolute;transform:translate(-50%,-50%)}.arkynTooltip.lg .arkynTooltipText{padding:8px 12px;font-size:14px;line-height:130%}.arkynTooltip.md .arkynTooltipText{padding:8px 12px;font-size:12px;line-height:130%}.arkynTooltip:hover .arkynTooltipText{opacity:1;visibility:visible}.arkynTooltip.top .arkynTooltipText{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.arkynTooltip.top .arkynTooltipText:before{content:"";border-style:solid;border-color:var(--tooltip-background,#27272a) transparent;border-width:6px 6px 0;position:absolute;top:100%;bottom:20px;left:50%;transform:translate(-50%)}.arkynTooltip.left .arkynTooltipText{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.arkynTooltip.left .arkynTooltipText:before{content:"";border-style:solid;border-color:transparent var(--tooltip-background,#27272a);border-width:6px 0 6px 6px;position:absolute;top:50%;left:100%;transform:translateY(-50%)}.arkynTooltip.right .arkynTooltipText{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.arkynTooltip.right .arkynTooltipText:before{content:"";border-style:solid;border-color:transparent var(--tooltip-background,#27272a);border-width:6px 6px 6px 0;position:absolute;top:50%;left:0;transform:translate(-100%,-50%)}.arkynTooltip.bottom .arkynTooltipText{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.arkynTooltip.bottom .arkynTooltipText:before{content:"";border-style:solid;border-color:var(--tooltip-background,#27272a) transparent;border-width:0 6px 6px;position:absolute;top:0;left:50%;transform:translate(-50%,-100%)}}
42
+
43
+ @layer arkyn{.arkynImageUploadNoFileContent{flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;height:100%;display:flex}.arkynImageUploadNoFileContent>p{text-align:center;white-space:nowrap;color:var(--text-body,#52525b);padding:0 24px;font-size:12px;font-weight:400;line-height:12px}}
44
+
45
+ @layer arkyn{.arkynImageUploadHasFileContent{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:6px;justify-content:end;align-items:end;gap:8px;width:100%;height:100%;padding:6px;display:flex}}
46
+
47
+ @layer arkyn{.arkynIconButton{background:0 0;border:1px solid #0000;outline:1px solid #0000;position:relative}.arkynIconButton:hover{cursor:pointer;filter:brightness(.9);transition:all .15s ease-out}html.dark .arkynIconButton:hover{cursor:pointer;filter:brightness(1.2)}.arkynIconButton:disabled{cursor:not-allowed;opacity:.5}.arkynIconButtonContent{justify-content:center;align-items:center;display:flex}.arkynIconButton.solid{color:var(--white,#fff)}.arkynIconButton.solid.primary{background-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.solid.secondary{background-color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.solid.danger{background-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.solid.success{background-color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.solid.warning{background-color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.solid.info{background-color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.outline{background-color:var(--background-underground,#fafafa);border-color:var(--border,#e2e8f0)}.arkynIconButton.outline.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.outline.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.outline.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.outline.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.outline.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.outline.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.ghost:hover{filter:brightness(.8)}.arkynIconButton.ghost.primary{color:rgb(var(--spotlight-primary,17, 109, 220));background-color:rgb(var(--spotlight-primary-foreground,231, 240, 252))}.arkynIconButton.ghost.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139));background-color:rgb(var(--spotlight-secondary-foreground,250, 250, 250))}.arkynIconButton.ghost.danger{color:rgb(var(--spotlight-danger,244, 63, 94));background-color:rgb(var(--spotlight-danger-foreground,254, 236, 239))}.arkynIconButton.ghost.success{color:rgb(var(--spotlight-success,16, 185, 129));background-color:rgb(var(--spotlight-success-foreground,231, 248, 242))}.arkynIconButton.ghost.warning{color:rgb(var(--spotlight-warning,249, 115, 22));background-color:rgb(var(--spotlight-warning-foreground,254, 241, 232))}.arkynIconButton.ghost.info{color:rgb(var(--spotlight-info,14, 165, 233));background-color:rgb(var(--spotlight-info-foreground,231, 246, 253))}.arkynIconButton.invisible.primary{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynIconButton.invisible.secondary{color:rgb(var(--spotlight-secondary,100, 116, 139))}.arkynIconButton.invisible.danger{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynIconButton.invisible.success{color:rgb(var(--spotlight-success,16, 185, 129))}.arkynIconButton.invisible.warning{color:rgb(var(--spotlight-warning,249, 115, 22))}.arkynIconButton.invisible.info{color:rgb(var(--spotlight-info,14, 165, 233))}.arkynIconButton.lg{border-radius:6px;width:44px;height:44px}.arkynIconButton.md{border-radius:6px;width:40px;height:40px}.arkynIconButton.sm{border-radius:6px;width:32px;height:32px}.arkynIconButton.xs{border-radius:4px;width:24px;height:24px}.arkynIconButtonSpinner{opacity:0;justify-content:center;align-items:center;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arkynIconButtonSpinner>svg{animation:2s linear infinite spin}.arkynIconButton.loadingTrue .arkynIconButtonSpinner{opacity:1}.arkynIconButton.loadingTrue .arkynIconButtonContent{opacity:0}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
48
+
49
+ @layer arkyn{.arkynTooltip{display:block;position:relative}.arkynTooltipText{visibility:hidden;opacity:0;white-space:nowrap;color:var(--tooltip-text,#fafafa);background-color:var(--tooltip-background,#27272a);z-index:9999;border-radius:4px;justify-content:center;align-items:center;font-weight:400;transition:all .15s ease-out;display:flex;position:absolute;transform:translate(-50%,-50%)}.arkynTooltip.lg .arkynTooltipText{padding:8px 12px;font-size:14px;line-height:130%}.arkynTooltip.md .arkynTooltipText{padding:8px 12px;font-size:12px;line-height:130%}.arkynTooltip:hover .arkynTooltipText{opacity:1;visibility:visible}.arkynTooltip.top .arkynTooltipText{bottom:calc(100% + 10px);left:50%;transform:translate(-50%)}.arkynTooltip.top .arkynTooltipText:before{content:"";border-style:solid;border-color:var(--tooltip-background,#27272a) transparent;border-width:6px 6px 0;position:absolute;top:100%;bottom:20px;left:50%;transform:translate(-50%)}.arkynTooltip.left .arkynTooltipText{top:50%;right:calc(100% + 10px);transform:translateY(-50%)}.arkynTooltip.left .arkynTooltipText:before{content:"";border-style:solid;border-color:transparent var(--tooltip-background,#27272a);border-width:6px 0 6px 6px;position:absolute;top:50%;left:100%;transform:translateY(-50%)}.arkynTooltip.right .arkynTooltipText{top:50%;left:calc(100% + 10px);transform:translateY(-50%)}.arkynTooltip.right .arkynTooltipText:before{content:"";border-style:solid;border-color:transparent var(--tooltip-background,#27272a);border-width:6px 6px 6px 0;position:absolute;top:50%;left:0;transform:translate(-100%,-50%)}.arkynTooltip.bottom .arkynTooltipText{top:calc(100% + 10px);left:50%;transform:translate(-50%)}.arkynTooltip.bottom .arkynTooltipText:before{content:"";border-style:solid;border-color:var(--tooltip-background,#27272a) transparent;border-width:0 6px 6px;position:absolute;top:0;left:50%;transform:translate(-50%,-100%)}}
50
+
51
+ @layer arkyn{.arkynImageUploadNoFileContent{flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;height:100%;display:flex}.arkynImageUploadNoFileContent>p{text-align:center;white-space:nowrap;color:var(--text-body,#52525b);padding:0 24px;font-size:12px;font-weight:400;line-height:12px}}
52
+
53
+ @layer arkyn{.arkynModalContainer{z-index:9999;justify-content:center;align-items:start;padding:10vh 0 2rem;display:flex;position:fixed;inset:0;overflow:auto}.arkynModalContainerOverlay{z-index:9997;background:#00000080;animation:.24s cubic-bezier(.22,1,.36,1) forwards modalOverlayIn;position:fixed;inset:0}.arkynModalContainerOverlay:hover{cursor:pointer}.arkynModalContainer.exiting>.arkynModalContainerOverlay{animation:.24s cubic-bezier(.22,1,.36,1) forwards modalOverlayOut}.arkynModalContainerContent{z-index:9999;background:var(--background-foreground,#fff);transform-origin:50%;will-change:transform, opacity;border-radius:8px;animation:.24s cubic-bezier(.22,1,.36,1) forwards modalContentIn;position:relative}.arkynModalContainer.exiting>.arkynModalContainerContent{animation:.24s cubic-bezier(.22,1,.36,1) forwards modalContentOut}@keyframes modalOverlayIn{0%{opacity:0}to{opacity:1}}@keyframes modalOverlayOut{0%{opacity:1}to{opacity:0}}@keyframes modalContentIn{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes modalContentOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.92)}}}
54
+
55
+ @layer arkyn{.arkynModalFooter{border-top:1px solid var(--border,#e2e8f0);align-items:center;gap:16px;padding:16px;display:flex}.arkynModalFooter.left{justify-content:flex-start}.arkynModalFooter.right{justify-content:flex-end}.arkynModalFooter.center{justify-content:center}.arkynModalFooter.between{justify-content:space-between}.arkynModalFooter.around{justify-content:space-around}}
56
+
57
+ @layer arkyn{.arkynModalHeader{height:56px;color:var(--text-heading,#09090b);border-bottom:1px solid var(--border,#e2e8f0);align-items:center;padding:16px;font-size:16px;font-weight:600;line-height:20px;display:flex}.arkynModalHeaderCloseButton{color:var(--text-body,#52525b);background:0 0;background-color:var(--background-foreground,#fff);border:none;border-radius:4px;justify-content:center;align-items:center;margin-left:auto;padding:2px;display:flex}.arkynModalHeaderCloseButton:hover{cursor:pointer;filter:brightness(.9);transition:all .15s ease-out}}
58
+
59
+ @layer arkyn{.arkynTabButton{color:var(--text-muted,#a1a1aa);background-color:#0000;border:none;justify-content:center;align-items:center;padding:8px 16px;font-size:16px;font-weight:600;line-height:100%;display:flex;position:relative}.arkynTabButton.isDisabled{cursor:not-allowed;opacity:.2}.arkynTabButton:hover{cursor:pointer}.arkynTabButton.isActive{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynTabButton.isActive:after{content:"";background-color:rgb(var(--spotlight-primary,17, 109, 220));height:1px;position:absolute;bottom:-1px;left:0;right:0}}
60
+
61
+ @layer arkyn{.arkynTabContainer{border-bottom:1px solid var(--border,#e2e8f0);justify-content:start;align-items:center;gap:4px;display:flex;position:relative}}
62
+
63
+ @layer arkyn{.arkynRichTextInsertVideo{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextInsertVideo svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextInsertVideo:hover{cursor:pointer;filter:brightness(.98)}.arkynRichTextInsertVideoModalContent{flex-direction:column;gap:16px;width:500px;padding:16px;display:flex}.arkynRichTextInsertVideoModalPreviewVideo{border-radius:8px;width:100%}.arkynRichTextInsertVideoModalContent .arkynVideoUpload{min-height:174px}html.dark .arkynRichTextInsertVideo:hover{cursor:pointer;filter:brightness(.9)}}
64
+
65
+ @layer arkyn{.arkynRichTextMarkButton{background-color:var(--background-underground,#fafafa);border:none;border-radius:4px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.arkynRichTextMarkButton svg{width:20px;height:20px;color:var(--text-heading,#09090b)}.arkynRichTextMarkButton:hover{cursor:pointer;filter:brightness(.97)}html.dark .arkynRichTextMarkButton:hover{cursor:pointer;filter:brightness(.9)}.arkynRichTextMarkButton.activeTrue{filter:brightness(.97)}html.dark .arkynRichTextMarkButton.activeTrue{filter:brightness(.9)}.arkynRichTextMarkButton.activeTrue svg{color:rgba(var(--spotlight-primary,17, 109, 220), 1)}}
66
+
67
+ @layer arkyn{.arkynRichTextToolbar{background-color:var(--background-underground,#fafafa);border-bottom:1px solid var(--border,#e2e8f0);border-radius:8px 8px 0 0;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 16px;display:flex}}
@@ -0,0 +1,13 @@
1
+ /* empty css */
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/richText/toolbar/index.tsx
4
+ function t({ children: t }) {
5
+ return /* @__PURE__ */ e("div", {
6
+ className: "arkynRichTextToolbar",
7
+ children: t
8
+ });
9
+ }
10
+ //#endregion
11
+ export { t as Toolbar };
12
+
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/richText/toolbar/index.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype ToolbarProps = {\n\tchildren: ReactNode;\n};\n\nfunction Toolbar({ children }: ToolbarProps) {\n\treturn <div className=\"arkynRichTextToolbar\">{children}</div>;\n}\n\nexport { Toolbar };\n"],"mappings":";;;AAOA,SAAS,EAAQ,EAAE,eAA0B;CAC5C,OAAO,kBAAC,OAAD;EAAK,WAAU;EAAwB;CAAc,CAAA;AAC7D"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynRichTextToolbar{background-color:var(--background-underground,#fafafa);border-bottom:1px solid var(--border,#e2e8f0);border-radius:8px 8px 0 0;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 16px;display:flex}}
@@ -0,0 +1,60 @@
1
+ import { Input as e } from "./input/index.js";
2
+ import { useState as t } from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { StandaloneSearchBox as r } from "@react-google-maps/api";
5
+ //#region src/components/searchPlaces.tsx
6
+ function i(i) {
7
+ let { onChange: a, onPlaceChanged: o, options: s, ...c } = i, [l, u] = t(null);
8
+ return /* @__PURE__ */ n(r, {
9
+ onLoad: (e) => u(e),
10
+ onPlacesChanged: () => {
11
+ let e = l?.getPlaces(), t = e ? e[0] : null, n = t?.address_components;
12
+ function r(e) {
13
+ let t = n.find((t) => t.types[0] === e);
14
+ return t ? t.long_name : "";
15
+ }
16
+ function i(e) {
17
+ let t = n.find((t) => t.types[0] === e);
18
+ return t ? t.short_name : "";
19
+ }
20
+ function a(e) {
21
+ for (let t of e) {
22
+ let e = n.find((e) => e.types.includes(t));
23
+ if (e) return e.long_name;
24
+ }
25
+ return "";
26
+ }
27
+ if (t) {
28
+ let e = r("route"), n = r("street_number"), s = a([
29
+ "sublocality_level_1",
30
+ "sublocality",
31
+ "neighborhood"
32
+ ]), c = r("administrative_area_level_2"), l = r("administrative_area_level_1"), u = i("administrative_area_level_1"), d = {
33
+ street: e,
34
+ city: c,
35
+ state: l,
36
+ neighborhood: s,
37
+ postalCode: a(["postal_code", "postal_code_prefix"]),
38
+ streetNumber: n,
39
+ stateShortName: u,
40
+ coordinates: {
41
+ lat: t.geometry?.location?.lat(),
42
+ lng: t.geometry?.location?.lng()
43
+ }
44
+ };
45
+ o?.(d);
46
+ }
47
+ },
48
+ options: s,
49
+ children: /* @__PURE__ */ n(e, {
50
+ type: "text",
51
+ autoComplete: "off",
52
+ onChange: (e) => a?.(e.target.value),
53
+ ...c
54
+ })
55
+ });
56
+ }
57
+ //#endregion
58
+ export { i as SearchPlaces };
59
+
60
+ //# sourceMappingURL=searchPlaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPlaces.js","names":[],"sources":["../../../src/components/searchPlaces.tsx"],"sourcesContent":["import type { StandaloneSearchBoxProps } from \"@react-google-maps/api\";\nimport { StandaloneSearchBox } from \"@react-google-maps/api\";\nimport { type JSX, useState } from \"react\";\nimport { Input, type InputProps } from \"./input\";\n\ntype AddressComponentsType = {\n\tlong_name: string;\n\tshort_name: string;\n\ttypes: string[];\n}[];\n\n/** Structured address data extracted from a Google Places result. */\ntype PlaceData = {\n\t/** Street name (e.g. `\"Rua Exemplo\"`). */\n\tstreet: string;\n\t/** City name (e.g. `\"São Paulo\"`). */\n\tcity: string;\n\t/** Full state name (e.g. `\"São Paulo\"`). */\n\tstate: string;\n\t/** Neighborhood / district name. */\n\tneighborhood: string;\n\t/** Postal / ZIP code. */\n\tpostalCode: string;\n\t/** State abbreviation (e.g. `\"SP\"`). */\n\tstateShortName: string;\n\t/** Street number (e.g. `\"123\"`). */\n\tstreetNumber: string;\n\t/** Geographic coordinates of the place. */\n\tcoordinates: { lat: number; lng: number };\n};\n\ntype SearchPlacesProps = {\n\t/** Google Maps `StandaloneSearchBox` options (e.g. `componentRestrictions`, `bounds`). */\n\toptions?: StandaloneSearchBoxProps[\"options\"];\n\t/** Callback fired every time the input text changes. Receives the current string value. */\n\tonChange?: (e: string) => void;\n\t/**\n\t * Callback fired when the user selects a place from the autocomplete suggestions.\n\t * Receives a structured {@link PlaceData} object.\n\t */\n\tonPlaceChanged?: (e: PlaceData) => void;\n} & Omit<InputProps, \"onLoad\" | \"onChange\" | \"type\">;\n\n/**\n * SearchPlaces — text input with Google Places autocomplete that returns structured address data.\n *\n * Requires the Google Maps JavaScript API with the Places library to be loaded.\n * Built on `@react-google-maps/api`'s `StandaloneSearchBox`.\n *\n * @param props.options - Google Maps search box options (e.g. restrict by country).\n * @param props.onChange - Fires on every keystroke — receives the current text value.\n * @param props.onPlaceChanged - Fires when the user selects a suggestion — receives structured address data.\n *\n * **...Other valid `Input` properties (except `onLoad`, `onChange`, `type`)**\n *\n * @returns SearchPlaces JSX element (an `Input` wrapped in `StandaloneSearchBox`).\n *\n * @example\n * ```tsx\n * <SearchPlaces\n * name=\"address\"\n * label=\"Address\"\n * placeholder=\"Start typing an address…\"\n * options={{ componentRestrictions: { country: \"br\" } }}\n * onChange={(v) => setRawAddress(v)}\n * onPlaceChanged={(place) => {\n * setAddress({\n * street: place.street,\n * city: place.city,\n * state: place.state,\n * postalCode: place.postalCode,\n * coordinates: place.coordinates,\n * });\n * }}\n * />\n * ```\n */\n\nfunction SearchPlaces(props: SearchPlacesProps): JSX.Element {\n\tconst { onChange, onPlaceChanged, options, ...rest } = props;\n\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tconst [searchBox, setSearchBox] = useState<any>(null);\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tconst handleLoad = (ref: any) => setSearchBox(ref);\n\n\tconst handlePlacesChanged = () => {\n\t\tconst places = searchBox?.getPlaces();\n\t\tconst place = places ? places[0] : null;\n\n\t\tconst address_components =\n\t\t\tplace?.address_components as AddressComponentsType;\n\n\t\tfunction findData(key: string) {\n\t\t\tconst data = address_components.find((item) => item.types[0] === key);\n\t\t\tif (data) return data.long_name;\n\t\t\treturn \"\";\n\t\t}\n\n\t\tfunction findDataShort(key: string) {\n\t\t\tconst data = address_components.find((item) => item.types[0] === key);\n\t\t\tif (data) return data.short_name;\n\t\t\treturn \"\";\n\t\t}\n\n\t\tfunction findDataByMultipleTypes(keys: string[]) {\n\t\t\tfor (const key of keys) {\n\t\t\t\tconst data = address_components.find((item) =>\n\t\t\t\t\titem.types.includes(key),\n\t\t\t\t);\n\t\t\t\tif (data) return data.long_name;\n\t\t\t}\n\t\t\treturn \"\";\n\t\t}\n\n\t\tif (place) {\n\t\t\tconst street = findData(\"route\");\n\t\t\tconst streetNumber = findData(\"street_number\");\n\t\t\tconst neighborhood = findDataByMultipleTypes([\n\t\t\t\t\"sublocality_level_1\",\n\t\t\t\t\"sublocality\",\n\t\t\t\t\"neighborhood\",\n\t\t\t]);\n\t\t\tconst city = findData(\"administrative_area_level_2\");\n\t\t\tconst state = findData(\"administrative_area_level_1\");\n\t\t\tconst stateShortName = findDataShort(\"administrative_area_level_1\");\n\t\t\tconst postalCode = findDataByMultipleTypes([\n\t\t\t\t\"postal_code\",\n\t\t\t\t\"postal_code_prefix\",\n\t\t\t]);\n\n\t\t\tconst lat = place.geometry?.location?.lat();\n\t\t\tconst lng = place.geometry?.location?.lng();\n\n\t\t\tconst sendPlace = {\n\t\t\t\tstreet,\n\t\t\t\tcity,\n\t\t\t\tstate,\n\t\t\t\tneighborhood,\n\t\t\t\tpostalCode,\n\t\t\t\tstreetNumber,\n\t\t\t\tstateShortName,\n\t\t\t\tcoordinates: { lat, lng },\n\t\t\t};\n\n\t\t\tonPlaceChanged?.(sendPlace);\n\t\t}\n\t};\n\n\treturn (\n\t\t<StandaloneSearchBox\n\t\t\tonLoad={handleLoad}\n\t\t\tonPlacesChanged={handlePlacesChanged}\n\t\t\toptions={options}\n\t\t>\n\t\t\t<Input\n\t\t\t\ttype=\"text\"\n\t\t\t\tautoComplete=\"off\"\n\t\t\t\tonChange={(e) => onChange?.(e.target.value)}\n\t\t\t\t{...rest}\n\t\t\t/>\n\t\t</StandaloneSearchBox>\n\t);\n}\n\nexport { SearchPlaces };\n"],"mappings":";;;;;AA8EA,SAAS,EAAa,GAAuC;CAC5D,IAAM,EAAE,aAAU,mBAAgB,YAAS,GAAG,MAAS,GAGjD,CAAC,GAAW,KAAgB,EAAc,IAAI;CAmEpD,OACC,kBAAC,GAAD;EACC,SAnEkB,MAAa,EAAa,CAAG;EAoE/C,uBAlEgC;GACjC,IAAM,IAAS,GAAW,UAAU,GAC9B,IAAQ,IAAS,EAAO,KAAK,MAE7B,IACL,GAAO;GAER,SAAS,EAAS,GAAa;IAC9B,IAAM,IAAO,EAAmB,MAAM,MAAS,EAAK,MAAM,OAAO,CAAG;IAEpE,OADI,IAAa,EAAK,YACf;GACR;GAEA,SAAS,EAAc,GAAa;IACnC,IAAM,IAAO,EAAmB,MAAM,MAAS,EAAK,MAAM,OAAO,CAAG;IAEpE,OADI,IAAa,EAAK,aACf;GACR;GAEA,SAAS,EAAwB,GAAgB;IAChD,KAAK,IAAM,KAAO,GAAM;KACvB,IAAM,IAAO,EAAmB,MAAM,MACrC,EAAK,MAAM,SAAS,CAAG,CACxB;KACA,IAAI,GAAM,OAAO,EAAK;IACvB;IACA,OAAO;GACR;GAEA,IAAI,GAAO;IACV,IAAM,IAAS,EAAS,OAAO,GACzB,IAAe,EAAS,eAAe,GACvC,IAAe,EAAwB;KAC5C;KACA;KACA;IACD,CAAC,GACK,IAAO,EAAS,6BAA6B,GAC7C,IAAQ,EAAS,6BAA6B,GAC9C,IAAiB,EAAc,6BAA6B,GAS5D,IAAY;KACjB;KACA;KACA;KACA;KACA,YAbkB,EAAwB,CAC1C,eACA,oBACD,CAUC;KACA;KACA;KACA,aAAa;MAAE,KAXJ,EAAM,UAAU,UAAU,IAAI;MAWrB,KAVT,EAAM,UAAU,UAAU,IAAI;KAUjB;IACzB;IAEA,IAAiB,CAAS;GAC3B;EACD;EAMW;YAET,kBAAC,GAAD;GACC,MAAK;GACL,cAAa;GACb,WAAW,MAAM,IAAW,EAAE,OAAO,KAAK;GAC1C,GAAI;EACJ,CAAA;CACmB,CAAA;AAEvB"}
@@ -0,0 +1,115 @@
1
+ import { useForm as e } from "../../hooks/useForm.js";
2
+ import { IconRenderer as t } from "../../services/iconRenderer.js";
3
+ import { FieldTemplate as n } from "../../services/fieldTemplate.js";
4
+ import { SelectChevron as r } from "./selectChevron/index.js";
5
+ import { SelectContainer as i } from "./selectContainer/index.js";
6
+ import { SelectContent as a } from "./selectContent/index.js";
7
+ import { SelectOption as o } from "./selectOption/index.js";
8
+ import { SelectOptionsContainer as s } from "./selectOptionsContainer/index.js";
9
+ import { SelectOverlay as ee } from "./selectOverlay/index.js";
10
+ import { SelectSpinner as te } from "./selectSpinner/index.js";
11
+ import { useId as c, useRef as l, useState as u } from "react";
12
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
13
+ //#region src/components/select/index.tsx
14
+ function p(p) {
15
+ let { name: m, options: h, className: g = "", placeholder: _ = "Selecione...", closeOnSelect: v = !0, defaultValue: y = "", errorMessage: b, isLoading: x = !1, readOnly: S = !1, isSearchable: ne = !1, id: re, label: ie, showAsterisk: C, leftIcon: w, onSearch: T, onChange: E, onBlur: D, notFoundText: O = "Sem opções disponíveis", onFocus: k, disabled: A = !1, prefix: j, size: M = "md", value: N, variant: P = "solid", orientation: F = "vertical", unShowFieldTemplate: I = !1 } = p, { fieldErrors: L } = e(), R = l(null), ae = c(), z = re || ae, B = b || L?.[m], V = !!B, H = A || x || S, U = {
16
+ md: 20,
17
+ lg: 20
18
+ }[M], [W, G] = u(""), [K, q] = u(!1), [J, Y] = u(y), X = N || J;
19
+ function Z(e) {
20
+ return X === e;
21
+ }
22
+ function oe(e) {
23
+ return h.find((t) => t.value === e)?.label || "";
24
+ }
25
+ function se() {
26
+ H || !R?.current || K || (q(!0), R.current.focus(), k?.());
27
+ }
28
+ function Q() {
29
+ q(!1), D && R.current && R.current.blur();
30
+ }
31
+ function ce(e) {
32
+ G(e), T && T(e);
33
+ }
34
+ function le(e) {
35
+ Z(e) ? (Y(""), E && E("")) : (Y(e), E && E(e)), v && Q();
36
+ }
37
+ let $ = h.filter((e) => !!(p.onSearch || !p.isSearchable || e.label.toLowerCase().includes(W.toLowerCase())));
38
+ return /* @__PURE__ */ d(n, {
39
+ name: m,
40
+ label: ie,
41
+ showAsterisk: C,
42
+ className: g,
43
+ errorMessage: B,
44
+ unShowFieldTemplate: I,
45
+ orientation: F,
46
+ children: /* @__PURE__ */ f(i, {
47
+ handleContainerFocus: se,
48
+ disabled: H,
49
+ isError: V,
50
+ isFocused: K,
51
+ isLoading: x,
52
+ readOnly: S,
53
+ size: M,
54
+ variant: P,
55
+ prefixExists: !!j,
56
+ id: z,
57
+ children: [
58
+ /* @__PURE__ */ d("input", {
59
+ ref: R,
60
+ name: m,
61
+ value: X,
62
+ type: "hidden"
63
+ }),
64
+ /* @__PURE__ */ d(t, {
65
+ iconSize: U,
66
+ icon: j,
67
+ className: "prefix"
68
+ }),
69
+ w && /* @__PURE__ */ d(w, {
70
+ size: U,
71
+ strokeWidth: 2.5
72
+ }),
73
+ /* @__PURE__ */ f(a, {
74
+ size: M,
75
+ children: [X !== "" && /* @__PURE__ */ d("p", {
76
+ className: "hasValue",
77
+ children: oe(X)
78
+ }), X === "" && /* @__PURE__ */ d("p", { children: _ })]
79
+ }),
80
+ /* @__PURE__ */ f(s, {
81
+ isFocused: K,
82
+ isSearchable: ne,
83
+ search: W,
84
+ onSearch: ce,
85
+ children: [$.map(({ label: e, value: t }) => /* @__PURE__ */ d(o, {
86
+ label: e,
87
+ value: t,
88
+ size: M,
89
+ handleChangeValue: le,
90
+ optionHasSelected: Z
91
+ }, t)), $.length <= 0 && /* @__PURE__ */ d("p", { children: O })]
92
+ }),
93
+ /* @__PURE__ */ d(r, {
94
+ disabled: H,
95
+ isFocused: K,
96
+ readOnly: S,
97
+ iconSize: U,
98
+ isLoading: x
99
+ }),
100
+ /* @__PURE__ */ d(te, {
101
+ iconSize: U,
102
+ isLoading: x
103
+ }),
104
+ /* @__PURE__ */ d(ee, {
105
+ handleBlur: Q,
106
+ isFocused: K
107
+ })
108
+ ]
109
+ })
110
+ });
111
+ }
112
+ //#endregion
113
+ export { p as Select };
114
+
115
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/select/index.tsx"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\nimport { type FocusEvent, useId, useRef, useState } from \"react\";\n\nimport { useForm } from \"../../hooks/useForm\";\nimport { FieldTemplate } from \"../../services/fieldTemplate\";\nimport { IconRenderer } from \"../../services/iconRenderer\";\n\nimport { SelectChevron } from \"./selectChevron\";\nimport { SelectContainer } from \"./selectContainer\";\nimport { SelectContent } from \"./selectContent\";\nimport { SelectOption } from \"./selectOption\";\nimport { SelectOptionsContainer } from \"./selectOptionsContainer\";\nimport { SelectOverlay } from \"./selectOverlay\";\nimport { SelectSpinner } from \"./selectSpinner\";\n\ntype SelectProps = {\n\t/** Field name for form submission. Required. */\n\tname: string;\n\t/** Array of selectable options. Required. */\n\toptions: { label: string; value: string }[];\n\t/** Optional HTML id for the underlying hidden input. */\n\tid?: string;\n\t/** Controlled selected value. */\n\tvalue?: string;\n\t/** Uncontrolled default selected value. @default \"\" */\n\tdefaultValue?: string;\n\t/** Displays an asterisk on the label to signal a required field. */\n\tshowAsterisk?: boolean;\n\t/** Optional label text displayed above the select. */\n\tlabel?: string;\n\t/** Validation error message displayed below the select. */\n\terrorMessage?: string;\n\t/** Placeholder text shown when no option is selected. @default \"Selecione...\" */\n\tplaceholder?: string;\n\t/** Text shown when no options match the search query. @default \"Sem opções disponíveis\" */\n\tnotFoundText?: string;\n\t/** Additional CSS class applied to the wrapper element. */\n\tclassName?: string;\n\t/** Disables all interactions. @default false */\n\tdisabled?: boolean;\n\t/** Prevents value changes while keeping the current value visible. @default false */\n\treadOnly?: boolean;\n\t/** Shows a loading spinner and disables interactions. @default false */\n\tisLoading?: boolean;\n\t/** Enables search/filter within the dropdown. @default false */\n\tisSearchable?: boolean;\n\t/** Closes the dropdown after an option is selected. @default true */\n\tcloseOnSelect?: boolean;\n\t/** Callback fired when the search query changes. Use for async option loading. */\n\tonSearch?: (value: string) => void;\n\t/** Callback fired when the selected value changes. */\n\tonChange?: (value: string) => void;\n\t/** Callback fired when the select gains focus. */\n\tonFocus?: () => void;\n\t/** Callback fired when the select loses focus. */\n\tonBlur?: (e: FocusEvent<HTMLDivElement>) => void;\n\t/**\n\t * Select size.\n\t * @default \"md\"\n\t */\n\tsize?: \"md\" | \"lg\";\n\t/**\n\t * Visual style variant.\n\t * - `solid`: filled background.\n\t * - `outline`: bordered, transparent background.\n\t * - `underline`: bottom border only.\n\t * @default \"solid\"\n\t */\n\tvariant?: \"solid\" | \"outline\" | \"underline\";\n\t/** Text or icon rendered at the far left, outside the select area. */\n\tprefix?: string | LucideIcon;\n\t/** Lucide icon rendered inside the select on the left. */\n\tleftIcon?: LucideIcon;\n\t/** Maximum height (in px) of the options dropdown. */\n\toptionMaxHeight?: number;\n\t/** When true, skips `FieldTemplate` wrapper (label and error text). @default false */\n\tunShowFieldTemplate?: boolean;\n\t/**\n\t * Layout direction forwarded to `FieldTemplate`.\n\t * @default \"horizontal\"\n\t */\n\torientation?: \"horizontal\" | \"vertical\" | \"horizontalReverse\";\n};\n\n/**\n * Select — single-option dropdown with optional search, label, validation, and form integration.\n *\n * Integrates with `useForm` to display validation errors by field name.\n *\n * @param props.name - Field name for form submission. Required.\n * @param props.options - Array of selectable options (`{ label, value }`). Required.\n * @param props.value - Controlled selected value.\n * @param props.defaultValue - Uncontrolled default value. Default: \"\"\n * @param props.label - Label text displayed above the select.\n * @param props.placeholder - Placeholder shown when nothing is selected. Default: \"Selecione...\"\n * @param props.errorMessage - Validation error message.\n * @param props.isSearchable - Enables search/filter within the dropdown. Default: false\n * @param props.isLoading - Shows a loading spinner and disables interactions. Default: false\n * @param props.closeOnSelect - Closes the dropdown after selecting. Default: true\n * @param props.onChange - Callback fired when the selected value changes.\n * @param props.onSearch - Callback fired when the search query changes.\n * @param props.size - Select size (`md` | `lg`). Default: \"md\"\n * @param props.variant - Visual style variant. Default: \"solid\"\n * @param props.orientation - Layout direction. Default: \"horizontal\"\n * @param props.unShowFieldTemplate - Skips wrapper, label, and error rendering. Default: false\n *\n * @returns Select JSX element wrapped in `FieldTemplate`.\n *\n * @example\n * ```tsx\n * // Basic\n * <Select\n * name=\"category\"\n * options={[\n * { label: \"Technology\", value: \"tech\" },\n * { label: \"Design\", value: \"design\" },\n * ]}\n * />\n *\n * // With label, validation, and searchable\n * <Select\n * name=\"country\"\n * label=\"Country\"\n * showAsterisk\n * isSearchable\n * options={countryOptions}\n * errorMessage={errors.country}\n * notFoundText=\"No countries found\"\n * />\n *\n * // Controlled with async search\n * <Select\n * name=\"tag\"\n * label=\"Tag\"\n * value={selectedTag}\n * onChange={setSelectedTag}\n * onSearch={fetchTagOptions}\n * isLoading={isLoadingTags}\n * options={tagOptions}\n * />\n * ```\n */\n\nfunction Select(props: SelectProps) {\n\tconst {\n\t\tname,\n\t\toptions,\n\t\tclassName: wrapperClassName = \"\",\n\t\tplaceholder = \"Selecione...\",\n\t\tcloseOnSelect = true,\n\t\tdefaultValue = \"\",\n\t\terrorMessage: baseErrorMessage,\n\t\tisLoading = false,\n\t\treadOnly = false,\n\t\tisSearchable = false,\n\t\tid,\n\t\tlabel,\n\t\tshowAsterisk,\n\t\tleftIcon: LeftIcon,\n\t\tonSearch,\n\t\tonChange,\n\t\tonBlur,\n\t\tnotFoundText = \"Sem opções disponíveis\",\n\t\tonFocus,\n\t\tdisabled: baseDisabled = false,\n\t\tprefix,\n\t\tsize = \"md\",\n\t\tvalue,\n\t\tvariant = \"solid\",\n\t\torientation = \"vertical\",\n\t\tunShowFieldTemplate = false,\n\t} = props;\n\n\tconst { fieldErrors } = useForm();\n\n\tconst selectRef = useRef<HTMLInputElement>(null);\n\tconst generatedId = useId();\n\tconst selectId = id || generatedId;\n\n\tconst errorMessage = baseErrorMessage || fieldErrors?.[name];\n\tconst isError = !!errorMessage;\n\tconst disabled = baseDisabled || isLoading || readOnly;\n\n\tconst iconSizes = { md: 20, lg: 20 };\n\tconst iconSize = iconSizes[size];\n\n\tconst [search, setSearch] = useState(\"\");\n\tconst [isFocused, setIsFocused] = useState(false);\n\tconst [selectedOption, setSelectedOption] = useState(defaultValue);\n\n\tconst forceSelectedOptions = value || selectedOption;\n\n\tfunction optionHasSelected(value: string) {\n\t\treturn forceSelectedOptions === value;\n\t}\n\n\tfunction getOptionLabel(value: string) {\n\t\tconst option = options.find((option) => option.value === value);\n\t\treturn option?.label || \"\";\n\t}\n\n\tfunction handleContainerFocus() {\n\t\tif (disabled || !selectRef?.current || isFocused) return;\n\t\tsetIsFocused(true);\n\t\tselectRef.current.focus();\n\t\tonFocus?.();\n\t}\n\n\tfunction handleBlur() {\n\t\tsetIsFocused(false);\n\t\tif (onBlur && selectRef.current) selectRef.current.blur();\n\t}\n\n\tfunction handleSearch(value: string) {\n\t\tsetSearch(value);\n\t\tif (onSearch) onSearch(value);\n\t}\n\n\tfunction handleChangeValue(value: string) {\n\t\tif (optionHasSelected(value)) {\n\t\t\tsetSelectedOption(\"\");\n\t\t\tif (onChange) onChange(\"\");\n\t\t} else {\n\t\t\tsetSelectedOption(value);\n\t\t\tif (onChange) onChange(value);\n\t\t}\n\n\t\tif (closeOnSelect) handleBlur();\n\t}\n\n\tconst mappedOptions = options.filter((option) => {\n\t\tif (props.onSearch) return true;\n\t\tif (!props.isSearchable) return true;\n\t\tif (option.label.toLowerCase().includes(search.toLowerCase())) return true;\n\t\treturn false;\n\t});\n\n\treturn (\n\t\t<FieldTemplate\n\t\t\tname={name}\n\t\t\tlabel={label}\n\t\t\tshowAsterisk={showAsterisk}\n\t\t\tclassName={wrapperClassName}\n\t\t\terrorMessage={errorMessage}\n\t\t\tunShowFieldTemplate={unShowFieldTemplate}\n\t\t\torientation={orientation}\n\t\t>\n\t\t\t<SelectContainer\n\t\t\t\thandleContainerFocus={handleContainerFocus}\n\t\t\t\tdisabled={disabled}\n\t\t\t\tisError={isError}\n\t\t\t\tisFocused={isFocused}\n\t\t\t\tisLoading={isLoading}\n\t\t\t\treadOnly={readOnly}\n\t\t\t\tsize={size}\n\t\t\t\tvariant={variant}\n\t\t\t\tprefixExists={!!prefix}\n\t\t\t\tid={selectId}\n\t\t\t>\n\t\t\t\t<input\n\t\t\t\t\tref={selectRef}\n\t\t\t\t\tname={name}\n\t\t\t\t\tvalue={forceSelectedOptions}\n\t\t\t\t\ttype=\"hidden\"\n\t\t\t\t/>\n\n\t\t\t\t<IconRenderer iconSize={iconSize} icon={prefix} className=\"prefix\" />\n\n\t\t\t\t{LeftIcon && <LeftIcon size={iconSize} strokeWidth={2.5} />}\n\n\t\t\t\t<SelectContent size={size}>\n\t\t\t\t\t{forceSelectedOptions !== \"\" && (\n\t\t\t\t\t\t<p className=\"hasValue\">{getOptionLabel(forceSelectedOptions)}</p>\n\t\t\t\t\t)}\n\t\t\t\t\t{forceSelectedOptions === \"\" && <p>{placeholder}</p>}\n\t\t\t\t</SelectContent>\n\n\t\t\t\t<SelectOptionsContainer\n\t\t\t\t\tisFocused={isFocused}\n\t\t\t\t\tisSearchable={isSearchable}\n\t\t\t\t\tsearch={search}\n\t\t\t\t\tonSearch={handleSearch}\n\t\t\t\t>\n\t\t\t\t\t{mappedOptions.map(({ label, value }) => (\n\t\t\t\t\t\t<SelectOption\n\t\t\t\t\t\t\tkey={value}\n\t\t\t\t\t\t\tlabel={label}\n\t\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t\t\tsize={size}\n\t\t\t\t\t\t\thandleChangeValue={handleChangeValue}\n\t\t\t\t\t\t\toptionHasSelected={optionHasSelected}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\n\t\t\t\t\t{mappedOptions.length <= 0 && <p>{notFoundText}</p>}\n\t\t\t\t</SelectOptionsContainer>\n\n\t\t\t\t<SelectChevron\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\tisFocused={isFocused}\n\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\ticonSize={iconSize}\n\t\t\t\t\tisLoading={isLoading}\n\t\t\t\t/>\n\n\t\t\t\t<SelectSpinner iconSize={iconSize} isLoading={isLoading} />\n\t\t\t\t<SelectOverlay handleBlur={handleBlur} isFocused={isFocused} />\n\t\t\t</SelectContainer>\n\t\t</FieldTemplate>\n\t);\n}\n\nexport { Select };\n"],"mappings":";;;;;;;;;;;;;AA+IA,SAAS,EAAO,GAAoB;CACnC,IAAM,EACL,SACA,YACA,WAAW,IAAmB,IAC9B,iBAAc,gBACd,mBAAgB,IAChB,kBAAe,IACf,cAAc,GACd,eAAY,IACZ,cAAW,IACX,mBAAe,IACf,QACA,WACA,iBACA,UAAU,GACV,aACA,aACA,WACA,kBAAe,0BACf,YACA,UAAU,IAAe,IACzB,WACA,UAAO,MACP,UACA,aAAU,SACV,iBAAc,YACd,yBAAsB,OACnB,GAEE,EAAE,mBAAgB,EAAQ,GAE1B,IAAY,EAAyB,IAAI,GACzC,KAAc,EAAM,GACpB,IAAW,MAAM,IAEjB,IAAe,KAAoB,IAAc,IACjD,IAAU,CAAC,CAAC,GACZ,IAAW,KAAgB,KAAa,GAGxC,IAAW;EADG,IAAI;EAAI,IAAI;CACf,EAAU,IAErB,CAAC,GAAQ,KAAa,EAAS,EAAE,GACjC,CAAC,GAAW,KAAgB,EAAS,EAAK,GAC1C,CAAC,GAAgB,KAAqB,EAAS,CAAY,GAE3D,IAAuB,KAAS;CAEtC,SAAS,EAAkB,GAAe;EACzC,OAAO,MAAyB;CACjC;CAEA,SAAS,GAAe,GAAe;EAEtC,OADe,EAAQ,MAAM,MAAW,EAAO,UAAU,CAClD,CAAA,EAAQ,SAAS;CACzB;CAEA,SAAS,KAAuB;EAC3B,KAAY,CAAC,GAAW,WAAW,MACvC,EAAa,EAAI,GACjB,EAAU,QAAQ,MAAM,GACxB,IAAU;CACX;CAEA,SAAS,IAAa;EAErB,AADA,EAAa,EAAK,GACd,KAAU,EAAU,WAAS,EAAU,QAAQ,KAAK;CACzD;CAEA,SAAS,GAAa,GAAe;EAEpC,AADA,EAAU,CAAK,GACX,KAAU,EAAS,CAAK;CAC7B;CAEA,SAAS,GAAkB,GAAe;EASzC,AARI,EAAkB,CAAK,KAC1B,EAAkB,EAAE,GAChB,KAAU,EAAS,EAAE,MAEzB,EAAkB,CAAK,GACnB,KAAU,EAAS,CAAK,IAGzB,KAAe,EAAW;CAC/B;CAEA,IAAM,IAAgB,EAAQ,QAAQ,MAGrC,GAFI,EAAM,YACN,CAAC,EAAM,gBACP,EAAO,MAAM,YAAY,CAAC,CAAC,SAAS,EAAO,YAAY,CAAC,EAE5D;CAED,OACC,kBAAC,GAAD;EACO;EACC;EACO;EACd,WAAW;EACG;EACO;EACR;YAEb,kBAAC,GAAD;GACuB;GACZ;GACD;GACE;GACA;GACD;GACJ;GACG;GACT,cAAc,CAAC,CAAC;GAChB,IAAI;aAVL;IAYC,kBAAC,SAAD;KACC,KAAK;KACC;KACN,OAAO;KACP,MAAK;IACL,CAAA;IAED,kBAAC,GAAD;KAAwB;KAAU,MAAM;KAAQ,WAAU;IAAU,CAAA;IAEnE,KAAY,kBAAC,GAAD;KAAU,MAAM;KAAU,aAAa;IAAM,CAAA;IAE1D,kBAAC,GAAD;KAAqB;eAArB,CACE,MAAyB,MACzB,kBAAC,KAAD;MAAG,WAAU;gBAAY,GAAe,CAAoB;KAAK,CAAA,GAEjE,MAAyB,MAAM,kBAAC,KAAD,EAAA,UAAI,EAAe,CAAA,CACrC;;IAEf,kBAAC,GAAD;KACY;KACG;KACN;KACR,UAAU;eAJX,CAME,EAAc,KAAK,EAAE,UAAO,eAC5B,kBAAC,GAAD;MAEQ;MACA;MACD;MACa;MACA;KACnB,GANK,CAML,CACD,GAEA,EAAc,UAAU,KAAK,kBAAC,KAAD,EAAA,UAAI,EAAgB,CAAA,CAC3B;;IAExB,kBAAC,GAAD;KACW;KACC;KACD;KACA;KACC;IACX,CAAA;IAED,kBAAC,IAAD;KAAyB;KAAqB;IAAY,CAAA;IAC1D,kBAAC,IAAD;KAA2B;KAAuB;IAAY,CAAA;GAC9C;;CACH,CAAA;AAEjB"}
@@ -0,0 +1,21 @@
1
+ /* empty css */
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { ChevronDown as t } from "lucide-react";
4
+ //#region src/components/select/selectChevron/index.tsx
5
+ function n(n) {
6
+ let { iconSize: r, isLoading: i, disabled: a, readOnly: o, isFocused: s } = n;
7
+ return i ? null : /* @__PURE__ */ e(t, {
8
+ className: `arkynSelectChevron ${a || o ? "notAnimate" : ""} ${s ? "focused" : ""}`,
9
+ strokeWidth: 2.5,
10
+ style: {
11
+ minWidth: r,
12
+ minHeight: r,
13
+ maxWidth: r,
14
+ maxHeight: r
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { n as SelectChevron };
20
+
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/select/selectChevron/index.tsx"],"sourcesContent":["import { ChevronDown } from \"lucide-react\";\nimport \"./styles.css\";\n\ntype SelectChevronProps = {\n\tisLoading: boolean;\n\ticonSize: number;\n\tdisabled: boolean;\n\treadOnly: boolean;\n\tisFocused: boolean;\n};\n\nfunction SelectChevron(props: SelectChevronProps) {\n\tconst { iconSize, isLoading, disabled, readOnly, isFocused } = props;\n\n\tconst notAnimate = disabled || readOnly ? \"notAnimate\" : \"\";\n\tconst focused = isFocused ? \"focused\" : \"\";\n\n\tconst className = `arkynSelectChevron ${notAnimate} ${focused}`;\n\n\tif (isLoading) return null;\n\treturn (\n\t\t<ChevronDown\n\t\t\tclassName={className}\n\t\t\tstrokeWidth={2.5}\n\t\t\tstyle={{\n\t\t\t\tminWidth: iconSize,\n\t\t\t\tminHeight: iconSize,\n\t\t\t\tmaxWidth: iconSize,\n\t\t\t\tmaxHeight: iconSize,\n\t\t\t}}\n\t\t/>\n\t);\n}\n\nexport { SelectChevron };\n"],"mappings":";;;;AAWA,SAAS,EAAc,GAA2B;CACjD,IAAM,EAAE,aAAU,cAAW,aAAU,aAAU,iBAAc;CAQ/D,OADI,IAAkB,OAErB,kBAAC,GAAD;EACY,iCARM,KAAY,IAAW,eAAe,GAGN,GAFnC,IAAY,YAAY;EAQtC,aAAa;EACb,OAAO;GACN,UAAU;GACV,WAAW;GACX,UAAU;GACV,WAAW;EACZ;CACA,CAAA;AAEH"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynSelectChevron{color:var(--text-muted,#a1a1aa);transition:all .15s ease-in-out}.arkynSelectChevron:not(.notAnimate).focused{transform:rotate(180deg)}}
@@ -0,0 +1,16 @@
1
+ /* empty css */
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region src/components/select/selectContainer/index.tsx
4
+ function t(t) {
5
+ let { children: n, handleContainerFocus: r, disabled: i, isError: a, isLoading: o, isFocused: s, className: c, readOnly: l, variant: u, size: d, id: f, prefixExists: p } = t;
6
+ return /* @__PURE__ */ e("section", {
7
+ id: f,
8
+ className: `arkynSelectContainer ${p ? "hasPrefix" : ""} ${u} ${d} ${i || l || o ? "opacity" : ""} ${a ? "errored" : ""} ${s ? "focused" : ""} ${c}`,
9
+ onClick: r,
10
+ children: n
11
+ });
12
+ }
13
+ //#endregion
14
+ export { t as SelectContainer };
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/select/selectContainer/index.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport \"./styles.css\";\n\ntype SelectContainerProps = {\n\tchildren: ReactNode;\n\thandleContainerFocus: () => void;\n\tprefixExists: boolean;\n\tisError: boolean;\n\tdisabled: boolean;\n\treadOnly: boolean;\n\tisLoading: boolean;\n\tisFocused: boolean;\n\tclassName?: string;\n\tid: string;\n\tvariant: \"solid\" | \"outline\" | \"underline\";\n\tsize: \"md\" | \"lg\";\n};\n\nfunction SelectContainer(props: SelectContainerProps) {\n\tconst {\n\t\tchildren,\n\t\thandleContainerFocus,\n\t\tdisabled,\n\t\tisError,\n\t\tisLoading,\n\t\tisFocused,\n\t\tclassName,\n\t\treadOnly,\n\t\tvariant,\n\t\tsize,\n\t\tid,\n\t\tprefixExists,\n\t} = props;\n\n\tconst hasPrefix = prefixExists ? \"hasPrefix\" : \"\";\n\tconst errored = isError ? \"errored\" : \"\";\n\tconst opacity = disabled || readOnly || isLoading ? \"opacity\" : \"\";\n\tconst focused = isFocused ? \"focused\" : \"\";\n\n\treturn (\n\t\t<section\n\t\t\tid={id}\n\t\t\tclassName={`arkynSelectContainer ${hasPrefix} ${variant} ${size} ${opacity} ${errored} ${focused} ${className}`}\n\t\t\tonClick={handleContainerFocus}\n\t\t>\n\t\t\t{children}\n\t\t</section>\n\t);\n}\n\nexport { SelectContainer };\n"],"mappings":";;;AAkBA,SAAS,EAAgB,GAA6B;CACrD,IAAM,EACL,aACA,yBACA,aACA,YACA,cACA,cACA,cACA,aACA,YACA,SACA,OACA,oBACG;CAOJ,OACC,kBAAC,WAAD;EACK;EACJ,WAAW,wBARK,IAAe,cAAc,GAQA,GAAG,EAAQ,GAAG,EAAK,GANlD,KAAY,KAAY,IAAY,YAAY,GAMa,GAP7D,IAAU,YAAY,GAOkD,GALxE,IAAY,YAAY,GAK2D,GAAG;EACpG,SAAS;EAER;CACO,CAAA;AAEX"}
@@ -0,0 +1 @@
1
+ @layer arkyn{.arkynSelectContainer{border:1px solid #0000;border-radius:8px;outline:1px solid #0000;align-items:center;gap:8px;width:100%;padding:0 16px;display:flex;position:relative}.arkynSelectContainer:hover{cursor:pointer}.arkynSelectContainer.opacity{opacity:.5}.arkynSelectContainer .prefix{color:var(--text-body,#52525b);background:var(--border,#e2e8f0);border-right:1px solid var(--border,#e2e8f0);border-radius:5px 0 0 5px;justify-content:center;align-items:center;font-weight:400;display:flex;position:absolute;top:0;bottom:0;left:0}.arkynSelectContainer>svg{color:var(--text-muted,#a1a1aa)}.arkynSelectContainer.errored>svg{color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynSelectContainer:not(.opacity).focused>svg{color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynSelectContainer.solid{border-color:var(--border,#e2e8f0);background-color:var(--input-background,#fafafa)}.arkynSelectContainer.solid.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynSelectContainer:not(.opacity).solid.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220));outline-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynSelectContainer.outline{border-color:var(--border,#e2e8f0);background-color:var(--background-foreground,#fff)}.arkynSelectContainer.outline.errored{border-color:rgb(var(--spotlight-danger,244, 63, 94));outline-color:rgb(var(--spotlight-danger,244, 63, 94))}.arkynSelectContainer:not(.opacity).outline.focused{border-color:rgb(var(--spotlight-primary,17, 109, 220));outline-color:rgb(var(--spotlight-primary,17, 109, 220))}.arkynSelectContainer.underline{border-top:none;border-left:none;border-right:none;border-color:var(--border,#e2e8f0);border-radius:0;outline:none}.arkynSelectContainer.underline .prefix{display:none}.arkynSelectContainer.underline:before{content:" ";background:0 0;height:1px;position:absolute;bottom:-2px;left:0;right:0}.arkynSelectContainer.underline.errored{border-color:rgba(var(--spotlight-danger,244, 63, 94))}.arkynSelectContainer.underline.errored:before{background:rgba(var(--spotlight-danger,244, 63, 94))}.arkynSelectContainer:not(.opacity).underline.focused{border-color:rgba(var(--spotlight-primary,17, 109, 220))}.arkynSelectContainer:not(.opacity).underline.focused:before{background:rgba(var(--spotlight-primary,17, 109, 220))}.arkynSelectContainer.md{min-height:40px}.arkynSelectContainer.md.hasPrefix{padding-left:60px}.arkynSelectContainer.md .prefix{width:44px;height:40px;font-size:14px}.arkynSelectContainer.lg{min-height:44px}.arkynSelectContainer.lg .prefix{width:48px;height:44px;font-size:16px}.arkynSelectContainer.lg.hasPrefix{padding-left:64px}}