@codeleap/web 7.0.0 → 7.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 (361) hide show
  1. package/dist/components/ActivityIndicator/index.js +46 -0
  2. package/dist/components/ActivityIndicator/index.js.map +1 -0
  3. package/dist/components/ActivityIndicator/styles.js +3 -0
  4. package/dist/components/ActivityIndicator/styles.js.map +1 -0
  5. package/dist/components/ActivityIndicator/types.js +3 -0
  6. package/dist/components/ActivityIndicator/types.js.map +1 -0
  7. package/dist/components/Badge/index.js +86 -0
  8. package/dist/components/Badge/index.js.map +1 -0
  9. package/dist/components/Badge/styles.js +3 -0
  10. package/dist/components/Badge/styles.js.map +1 -0
  11. package/dist/components/Badge/types.js +3 -0
  12. package/dist/components/Badge/types.js.map +1 -0
  13. package/dist/components/Button/index.js +69 -0
  14. package/dist/components/Button/index.js.map +1 -0
  15. package/dist/components/Button/styles.js +3 -0
  16. package/dist/components/Button/styles.js.map +1 -0
  17. package/dist/components/Button/types.js +3 -0
  18. package/dist/components/Button/types.js.map +1 -0
  19. package/dist/components/Calendar/index.js +67 -0
  20. package/dist/components/Calendar/index.js.map +1 -0
  21. package/dist/components/Calendar/styles.js +3 -0
  22. package/dist/components/Calendar/styles.js.map +1 -0
  23. package/dist/components/Calendar/types.js +3 -0
  24. package/dist/components/Calendar/types.js.map +1 -0
  25. package/dist/components/Carousel/index.js +171 -0
  26. package/dist/components/Carousel/index.js.map +1 -0
  27. package/dist/components/Carousel/styles.js +3 -0
  28. package/dist/components/Carousel/styles.js.map +1 -0
  29. package/dist/components/Carousel/types.js +3 -0
  30. package/dist/components/Carousel/types.js.map +1 -0
  31. package/dist/components/Checkbox/index.js +62 -0
  32. package/dist/components/Checkbox/index.js.map +1 -0
  33. package/dist/components/Checkbox/styles.js +3 -0
  34. package/dist/components/Checkbox/styles.js.map +1 -0
  35. package/dist/components/Checkbox/types.js +3 -0
  36. package/dist/components/Checkbox/types.js.map +1 -0
  37. package/dist/components/Collapse/index.js +45 -0
  38. package/dist/components/Collapse/index.js.map +1 -0
  39. package/dist/components/Collapse/styles.js +3 -0
  40. package/dist/components/Collapse/styles.js.map +1 -0
  41. package/dist/components/Collapse/types.js +3 -0
  42. package/dist/components/Collapse/types.js.map +1 -0
  43. package/dist/components/ColorPicker/index.js +83 -0
  44. package/dist/components/ColorPicker/index.js.map +1 -0
  45. package/dist/components/ColorPicker/styles.js +3 -0
  46. package/dist/components/ColorPicker/styles.js.map +1 -0
  47. package/dist/components/ColorPicker/types.js +3 -0
  48. package/dist/components/ColorPicker/types.js.map +1 -0
  49. package/dist/components/CropPicker/hooks.d.ts +2 -2
  50. package/dist/components/CropPicker/hooks.js +133 -0
  51. package/dist/components/CropPicker/hooks.js.map +1 -0
  52. package/dist/components/CropPicker/index.js +56 -0
  53. package/dist/components/CropPicker/index.js.map +1 -0
  54. package/dist/components/CropPicker/styles.js +3 -0
  55. package/dist/components/CropPicker/styles.js.map +1 -0
  56. package/dist/components/CropPicker/types.js +3 -0
  57. package/dist/components/CropPicker/types.js.map +1 -0
  58. package/dist/components/CropPicker/utils.js +76 -0
  59. package/dist/components/CropPicker/utils.js.map +1 -0
  60. package/dist/components/DatePicker/index.js +87 -0
  61. package/dist/components/DatePicker/index.js.map +1 -0
  62. package/dist/components/DatePicker/styles.js +3 -0
  63. package/dist/components/DatePicker/styles.js.map +1 -0
  64. package/dist/components/DatePicker/types.js +3 -0
  65. package/dist/components/DatePicker/types.js.map +1 -0
  66. package/dist/components/Drawer/index.js +68 -0
  67. package/dist/components/Drawer/index.js.map +1 -0
  68. package/dist/components/Drawer/styles.js +3 -0
  69. package/dist/components/Drawer/styles.js.map +1 -0
  70. package/dist/components/Drawer/types.js +3 -0
  71. package/dist/components/Drawer/types.js.map +1 -0
  72. package/dist/components/Dropzone/context.js +44 -0
  73. package/dist/components/Dropzone/context.js.map +1 -0
  74. package/dist/components/Dropzone/elements.js +57 -0
  75. package/dist/components/Dropzone/elements.js.map +1 -0
  76. package/dist/components/Dropzone/index.js +89 -0
  77. package/dist/components/Dropzone/index.js.map +1 -0
  78. package/dist/components/Dropzone/styles.js +3 -0
  79. package/dist/components/Dropzone/styles.js.map +1 -0
  80. package/dist/components/Dropzone/types.js +3 -0
  81. package/dist/components/Dropzone/types.js.map +1 -0
  82. package/dist/components/Dropzone/useDropzone.js +20 -0
  83. package/dist/components/Dropzone/useDropzone.js.map +1 -0
  84. package/dist/components/EmptyPlaceholder/index.js +86 -0
  85. package/dist/components/EmptyPlaceholder/index.js.map +1 -0
  86. package/dist/components/EmptyPlaceholder/styles.js +3 -0
  87. package/dist/components/EmptyPlaceholder/styles.js.map +1 -0
  88. package/dist/components/EmptyPlaceholder/types.js +3 -0
  89. package/dist/components/EmptyPlaceholder/types.js.map +1 -0
  90. package/dist/components/Field/context.js +58 -0
  91. package/dist/components/Field/context.js.map +1 -0
  92. package/dist/components/Field/elements.js +92 -0
  93. package/dist/components/Field/elements.js.map +1 -0
  94. package/dist/components/Field/index.js +55 -0
  95. package/dist/components/Field/index.js.map +1 -0
  96. package/dist/components/Field/styles.js +3 -0
  97. package/dist/components/Field/styles.js.map +1 -0
  98. package/dist/components/Field/types.js +3 -0
  99. package/dist/components/Field/types.js.map +1 -0
  100. package/dist/components/Field/useFieldInput.d.ts +1 -1
  101. package/dist/components/Field/useFieldInput.js +50 -0
  102. package/dist/components/Field/useFieldInput.js.map +1 -0
  103. package/dist/components/FileInput/index.js +73 -0
  104. package/dist/components/FileInput/index.js.map +1 -0
  105. package/dist/components/FileInput/types.js +3 -0
  106. package/dist/components/FileInput/types.js.map +1 -0
  107. package/dist/components/Icon/index.js +69 -0
  108. package/dist/components/Icon/index.js.map +1 -0
  109. package/dist/components/Icon/styles.js +3 -0
  110. package/dist/components/Icon/styles.js.map +1 -0
  111. package/dist/components/Icon/types.js +3 -0
  112. package/dist/components/Icon/types.js.map +1 -0
  113. package/dist/components/List/context.js +81 -0
  114. package/dist/components/List/context.js.map +1 -0
  115. package/dist/components/List/elements.js +164 -0
  116. package/dist/components/List/elements.js.map +1 -0
  117. package/dist/components/List/index.js +52 -0
  118. package/dist/components/List/index.js.map +1 -0
  119. package/dist/components/List/scroll.js +80 -0
  120. package/dist/components/List/scroll.js.map +1 -0
  121. package/dist/components/List/styles.js +3 -0
  122. package/dist/components/List/styles.js.map +1 -0
  123. package/dist/components/List/types.js +3 -0
  124. package/dist/components/List/types.js.map +1 -0
  125. package/dist/components/LoadingOverlay/index.js +50 -0
  126. package/dist/components/LoadingOverlay/index.js.map +1 -0
  127. package/dist/components/LoadingOverlay/styles.js +3 -0
  128. package/dist/components/LoadingOverlay/styles.js.map +1 -0
  129. package/dist/components/LoadingOverlay/types.js +3 -0
  130. package/dist/components/LoadingOverlay/types.js.map +1 -0
  131. package/dist/components/MaskedTextInput/index.js +52 -0
  132. package/dist/components/MaskedTextInput/index.js.map +1 -0
  133. package/dist/components/MaskedTextInput/mask.js +37 -0
  134. package/dist/components/MaskedTextInput/mask.js.map +1 -0
  135. package/dist/components/MaskedTextInput/types.js +3 -0
  136. package/dist/components/MaskedTextInput/types.js.map +1 -0
  137. package/dist/components/Modal/context.js +41 -0
  138. package/dist/components/Modal/context.js.map +1 -0
  139. package/dist/components/Modal/elements.js +74 -0
  140. package/dist/components/Modal/elements.js.map +1 -0
  141. package/dist/components/Modal/index.js +52 -0
  142. package/dist/components/Modal/index.js.map +1 -0
  143. package/dist/components/Modal/styles.js +3 -0
  144. package/dist/components/Modal/styles.js.map +1 -0
  145. package/dist/components/Modal/types.js +3 -0
  146. package/dist/components/Modal/types.js.map +1 -0
  147. package/dist/components/NumberIncrement/index.js +83 -0
  148. package/dist/components/NumberIncrement/index.js.map +1 -0
  149. package/dist/components/NumberIncrement/styles.js +3 -0
  150. package/dist/components/NumberIncrement/styles.js.map +1 -0
  151. package/dist/components/NumberIncrement/types.js +3 -0
  152. package/dist/components/NumberIncrement/types.js.map +1 -0
  153. package/dist/components/NumberIncrement/useNumberIncrement.js +116 -0
  154. package/dist/components/NumberIncrement/useNumberIncrement.js.map +1 -0
  155. package/dist/components/Overlay/index.js +62 -0
  156. package/dist/components/Overlay/index.js.map +1 -0
  157. package/dist/components/Overlay/styles.js +3 -0
  158. package/dist/components/Overlay/styles.js.map +1 -0
  159. package/dist/components/Overlay/types.js +3 -0
  160. package/dist/components/Overlay/types.js.map +1 -0
  161. package/dist/components/PaginationButtons/index.js +118 -0
  162. package/dist/components/PaginationButtons/index.js.map +1 -0
  163. package/dist/components/PaginationButtons/styles.js +3 -0
  164. package/dist/components/PaginationButtons/styles.js.map +1 -0
  165. package/dist/components/PaginationButtons/types.js +3 -0
  166. package/dist/components/PaginationButtons/types.js.map +1 -0
  167. package/dist/components/PaginationIndicator/index.js +59 -0
  168. package/dist/components/PaginationIndicator/index.js.map +1 -0
  169. package/dist/components/PaginationIndicator/styles.js +3 -0
  170. package/dist/components/PaginationIndicator/styles.js.map +1 -0
  171. package/dist/components/PaginationIndicator/types.js +3 -0
  172. package/dist/components/PaginationIndicator/types.js.map +1 -0
  173. package/dist/components/Progress/Bar/Segmented.js +41 -0
  174. package/dist/components/Progress/Bar/Segmented.js.map +1 -0
  175. package/dist/components/Progress/Bar/index.js +62 -0
  176. package/dist/components/Progress/Bar/index.js.map +1 -0
  177. package/dist/components/Progress/Bar/styles.js +3 -0
  178. package/dist/components/Progress/Bar/styles.js.map +1 -0
  179. package/dist/components/Progress/Bar/types.js +3 -0
  180. package/dist/components/Progress/Bar/types.js.map +1 -0
  181. package/dist/components/Progress/Circle/Segmented.js +64 -0
  182. package/dist/components/Progress/Circle/Segmented.js.map +1 -0
  183. package/dist/components/Progress/Circle/index.js +83 -0
  184. package/dist/components/Progress/Circle/index.js.map +1 -0
  185. package/dist/components/Progress/Circle/styles.js +3 -0
  186. package/dist/components/Progress/Circle/styles.js.map +1 -0
  187. package/dist/components/Progress/Circle/types.js +3 -0
  188. package/dist/components/Progress/Circle/types.js.map +1 -0
  189. package/dist/components/Progress/index.js +19 -0
  190. package/dist/components/Progress/index.js.map +1 -0
  191. package/dist/components/Progress/utils.js +7 -0
  192. package/dist/components/Progress/utils.js.map +1 -0
  193. package/dist/components/RadioInput/index.js +68 -0
  194. package/dist/components/RadioInput/index.js.map +1 -0
  195. package/dist/components/RadioInput/styles.js +3 -0
  196. package/dist/components/RadioInput/styles.js.map +1 -0
  197. package/dist/components/RadioInput/types.js +3 -0
  198. package/dist/components/RadioInput/types.js.map +1 -0
  199. package/dist/components/SearchInput/index.js +98 -0
  200. package/dist/components/SearchInput/index.js.map +1 -0
  201. package/dist/components/SectionFilters/index.js +166 -0
  202. package/dist/components/SectionFilters/index.js.map +1 -0
  203. package/dist/components/SectionFilters/styles.js +3 -0
  204. package/dist/components/SectionFilters/styles.js.map +1 -0
  205. package/dist/components/SectionFilters/types.js +3 -0
  206. package/dist/components/SectionFilters/types.js.map +1 -0
  207. package/dist/components/Select/context.js +162 -0
  208. package/dist/components/Select/context.js.map +1 -0
  209. package/dist/components/Select/elements.js +53 -0
  210. package/dist/components/Select/elements.js.map +1 -0
  211. package/dist/components/Select/index.js +70 -0
  212. package/dist/components/Select/index.js.map +1 -0
  213. package/dist/components/Select/styles.js +3 -0
  214. package/dist/components/Select/styles.js.map +1 -0
  215. package/dist/components/Select/types.js +3 -0
  216. package/dist/components/Select/types.js.map +1 -0
  217. package/dist/components/Select/useTriggerWidth.js +30 -0
  218. package/dist/components/Select/useTriggerWidth.js.map +1 -0
  219. package/dist/components/Slider/index.js +160 -0
  220. package/dist/components/Slider/index.js.map +1 -0
  221. package/dist/components/Slider/styles.js +3 -0
  222. package/dist/components/Slider/styles.js.map +1 -0
  223. package/dist/components/Slider/types.js +3 -0
  224. package/dist/components/Slider/types.js.map +1 -0
  225. package/dist/components/Switch/index.js +66 -0
  226. package/dist/components/Switch/index.js.map +1 -0
  227. package/dist/components/Switch/styles.js +3 -0
  228. package/dist/components/Switch/styles.js.map +1 -0
  229. package/dist/components/Switch/types.js +3 -0
  230. package/dist/components/Switch/types.js.map +1 -0
  231. package/dist/components/Tag/index.js +74 -0
  232. package/dist/components/Tag/index.js.map +1 -0
  233. package/dist/components/Tag/styles.js +3 -0
  234. package/dist/components/Tag/styles.js.map +1 -0
  235. package/dist/components/Tag/types.js +3 -0
  236. package/dist/components/Tag/types.js.map +1 -0
  237. package/dist/components/Text/index.js +115 -0
  238. package/dist/components/Text/index.js.map +1 -0
  239. package/dist/components/Text/styles.js +3 -0
  240. package/dist/components/Text/styles.js.map +1 -0
  241. package/dist/components/Text/types.js +3 -0
  242. package/dist/components/Text/types.js.map +1 -0
  243. package/dist/components/TextEditor/index.js +111 -0
  244. package/dist/components/TextEditor/index.js.map +1 -0
  245. package/dist/components/TextEditor/styles.js +3 -0
  246. package/dist/components/TextEditor/styles.js.map +1 -0
  247. package/dist/components/TextEditor/types.js +3 -0
  248. package/dist/components/TextEditor/types.js.map +1 -0
  249. package/dist/components/TextInput/index.js +86 -0
  250. package/dist/components/TextInput/index.js.map +1 -0
  251. package/dist/components/TextInput/styles.js +3 -0
  252. package/dist/components/TextInput/styles.js.map +1 -0
  253. package/dist/components/TextInput/types.js +3 -0
  254. package/dist/components/TextInput/types.js.map +1 -0
  255. package/dist/components/TextInput/useTextInput.d.ts +2 -2
  256. package/dist/components/TextInput/useTextInput.js +67 -0
  257. package/dist/components/TextInput/useTextInput.js.map +1 -0
  258. package/dist/components/Tooltip/index.js +115 -0
  259. package/dist/components/Tooltip/index.js.map +1 -0
  260. package/dist/components/Tooltip/styles.js +3 -0
  261. package/dist/components/Tooltip/styles.js.map +1 -0
  262. package/dist/components/Tooltip/types.js +3 -0
  263. package/dist/components/Tooltip/types.js.map +1 -0
  264. package/dist/components/Touchable/index.js +100 -0
  265. package/dist/components/Touchable/index.js.map +1 -0
  266. package/dist/components/Touchable/styles.js +3 -0
  267. package/dist/components/Touchable/styles.js.map +1 -0
  268. package/dist/components/Touchable/types.js +3 -0
  269. package/dist/components/Touchable/types.js.map +1 -0
  270. package/dist/components/View/index.js +56 -0
  271. package/dist/components/View/index.js.map +1 -0
  272. package/dist/components/View/styles.js +3 -0
  273. package/dist/components/View/styles.js.map +1 -0
  274. package/dist/components/View/types.js +3 -0
  275. package/dist/components/View/types.js.map +1 -0
  276. package/dist/components/components.js +58 -0
  277. package/dist/components/components.js.map +1 -0
  278. package/dist/index.js +21 -0
  279. package/dist/index.js.map +1 -0
  280. package/dist/lib/ListMasonry.js +95 -0
  281. package/dist/lib/ListMasonry.js.map +1 -0
  282. package/dist/lib/ThemeVariables.js +27 -0
  283. package/dist/lib/ThemeVariables.js.map +1 -0
  284. package/dist/lib/WebStyleRegistry.js +73 -0
  285. package/dist/lib/WebStyleRegistry.js.map +1 -0
  286. package/dist/lib/hooks/index.js +39 -0
  287. package/dist/lib/hooks/index.js.map +1 -0
  288. package/dist/lib/hooks/useAnimatedStyle.js +27 -0
  289. package/dist/lib/hooks/useAnimatedStyle.js.map +1 -0
  290. package/dist/lib/hooks/useAnimatedVariantStyles.js +23 -0
  291. package/dist/lib/hooks/useAnimatedVariantStyles.js.map +1 -0
  292. package/dist/lib/hooks/useAsyncSelect.js +60 -0
  293. package/dist/lib/hooks/useAsyncSelect.js.map +1 -0
  294. package/dist/lib/hooks/useBreakpointMatch.js +111 -0
  295. package/dist/lib/hooks/useBreakpointMatch.js.map +1 -0
  296. package/dist/lib/hooks/useClick.js +41 -0
  297. package/dist/lib/hooks/useClick.js.map +1 -0
  298. package/dist/lib/hooks/useClickOutside.js +34 -0
  299. package/dist/lib/hooks/useClickOutside.js.map +1 -0
  300. package/dist/lib/hooks/useFileInput.js +21 -0
  301. package/dist/lib/hooks/useFileInput.js.map +1 -0
  302. package/dist/lib/hooks/useIsomorphicEffect.js +10 -0
  303. package/dist/lib/hooks/useIsomorphicEffect.js.map +1 -0
  304. package/dist/lib/hooks/useKeydown.js +43 -0
  305. package/dist/lib/hooks/useKeydown.js.map +1 -0
  306. package/dist/lib/hooks/useListFocus.js +49 -0
  307. package/dist/lib/hooks/useListFocus.js.map +1 -0
  308. package/dist/lib/hooks/useMediaQuery.js +28 -0
  309. package/dist/lib/hooks/useMediaQuery.js.map +1 -0
  310. package/dist/lib/hooks/usePageExitBlocker.js +48 -0
  311. package/dist/lib/hooks/usePageExitBlocker.js.map +1 -0
  312. package/dist/lib/hooks/usePagination.js +93 -0
  313. package/dist/lib/hooks/usePagination.js.map +1 -0
  314. package/dist/lib/hooks/usePopState.js +35 -0
  315. package/dist/lib/hooks/usePopState.js.map +1 -0
  316. package/dist/lib/hooks/usePopoverDismiss.js +35 -0
  317. package/dist/lib/hooks/usePopoverDismiss.js.map +1 -0
  318. package/dist/lib/hooks/useRefresh.js +74 -0
  319. package/dist/lib/hooks/useRefresh.js.map +1 -0
  320. package/dist/lib/hooks/useScrollEffect.js +22 -0
  321. package/dist/lib/hooks/useScrollEffect.js.map +1 -0
  322. package/dist/lib/hooks/useSearchParams.js +51 -0
  323. package/dist/lib/hooks/useSearchParams.js.map +1 -0
  324. package/dist/lib/hooks/useStaticAnimationStyles.js +19 -0
  325. package/dist/lib/hooks/useStaticAnimationStyles.js.map +1 -0
  326. package/dist/lib/hooks/useStylesFor.js +40 -0
  327. package/dist/lib/hooks/useStylesFor.js.map +1 -0
  328. package/dist/lib/hooks/useTouchableEvents.js +37 -0
  329. package/dist/lib/hooks/useTouchableEvents.js.map +1 -0
  330. package/dist/lib/hooks/useWindowFocus.js +34 -0
  331. package/dist/lib/hooks/useWindowFocus.js.map +1 -0
  332. package/dist/lib/hooks/useWindowSize.js +32 -0
  333. package/dist/lib/hooks/useWindowSize.js.map +1 -0
  334. package/dist/lib/index.js +23 -0
  335. package/dist/lib/index.js.map +1 -0
  336. package/dist/lib/tools/index.js +20 -0
  337. package/dist/lib/tools/index.js.map +1 -0
  338. package/dist/lib/tools/localStorage.js +159 -0
  339. package/dist/lib/tools/localStorage.js.map +1 -0
  340. package/dist/lib/tools/mediaQuery.js +38 -0
  341. package/dist/lib/tools/mediaQuery.js.map +1 -0
  342. package/dist/lib/tools/modal.js +60 -0
  343. package/dist/lib/tools/modal.js.map +1 -0
  344. package/dist/lib/utils/attributes.js +26 -0
  345. package/dist/lib/utils/attributes.js.map +1 -0
  346. package/dist/lib/utils/cache.d.ts +2 -2
  347. package/dist/lib/utils/cache.js +17 -0
  348. package/dist/lib/utils/cache.js.map +1 -0
  349. package/dist/lib/utils/index.js +22 -0
  350. package/dist/lib/utils/index.js.map +1 -0
  351. package/dist/lib/utils/pollyfils/scroll.js +70 -0
  352. package/dist/lib/utils/pollyfils/scroll.js.map +1 -0
  353. package/dist/lib/utils/stopPropagation.js +22 -0
  354. package/dist/lib/utils/stopPropagation.js.map +1 -0
  355. package/dist/lib/utils/test.js +18 -0
  356. package/dist/lib/utils/test.js.map +1 -0
  357. package/dist/types/index.js +18 -0
  358. package/dist/types/index.js.map +1 -0
  359. package/dist/types/utility.js +3 -0
  360. package/dist/types/utility.js.map +1 -0
  361. package/package.json +18 -18
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocalStorage = void 0;
4
+ const react_1 = require("react");
5
+ const types_1 = require("@codeleap/types");
6
+ /**
7
+ * Type-safe wrapper around `window.localStorage`.
8
+ *
9
+ * Instantiate with a key map (`{ tokenKey: 'auth_token', ... }`) so all reads
10
+ * and writes are validated against the map's keys at compile time. Values are
11
+ * automatically JSON-serialised on write and JSON-parsed on read; strings are
12
+ * stored as-is. Returns safe no-ops when called server-side.
13
+ *
14
+ * Use `use()` to get a React state pair that stays in sync with storage across
15
+ * tabs via the `storage` event.
16
+ */
17
+ class LocalStorage {
18
+ storageKeys;
19
+ storageListeners = [];
20
+ constructor(keys) {
21
+ this.storageKeys = keys;
22
+ }
23
+ getLocalStorage() {
24
+ if (typeof window === 'undefined') {
25
+ return {
26
+ getItem: () => null,
27
+ setItem: () => null,
28
+ clear: () => null,
29
+ removeItem: () => null,
30
+ };
31
+ }
32
+ return localStorage;
33
+ }
34
+ getStorageKey(key) {
35
+ return String(this.storageKeys[key] ?? key);
36
+ }
37
+ parseValue(value) {
38
+ try {
39
+ return JSON.parse(value);
40
+ }
41
+ catch (e) {
42
+ return value;
43
+ }
44
+ }
45
+ serializeValue(value) {
46
+ if (types_1.TypeGuards.isString(value))
47
+ return value;
48
+ try {
49
+ return JSON.stringify(value);
50
+ }
51
+ catch (e) {
52
+ return value;
53
+ }
54
+ }
55
+ replaceItem(key, value) {
56
+ const storageKey = this.getStorageKey(key);
57
+ const storage = this.getLocalStorage();
58
+ storage.removeItem(storageKey);
59
+ const serializedValue = this.serializeValue(value);
60
+ storage.setItem(storageKey, serializedValue);
61
+ return serializedValue;
62
+ }
63
+ getItem(key, parseValue = true) {
64
+ const storageKey = this.getStorageKey(key);
65
+ const storage = this.getLocalStorage();
66
+ let value = storage.getItem(storageKey);
67
+ if (parseValue) {
68
+ value = this.parseValue(value);
69
+ }
70
+ return value;
71
+ }
72
+ removeItem(key) {
73
+ const storageKey = this.getStorageKey(key);
74
+ const storage = this.getLocalStorage();
75
+ storage.removeItem(storageKey);
76
+ }
77
+ setItem(key, value) {
78
+ const storageKey = this.getStorageKey(key);
79
+ const storage = this.getLocalStorage();
80
+ const serializedValue = this.serializeValue(value);
81
+ storage.setItem(storageKey, serializedValue);
82
+ return serializedValue;
83
+ }
84
+ clear() {
85
+ const storage = this.getLocalStorage();
86
+ storage.clear();
87
+ }
88
+ multiSet(keyValuePairs) {
89
+ for (const [key, value] of keyValuePairs) {
90
+ this.setItem(key, value);
91
+ }
92
+ }
93
+ multiRemove(keys) {
94
+ for (const key of keys) {
95
+ this.removeItem(key);
96
+ }
97
+ }
98
+ multiGet(keys) {
99
+ const storage = this.getLocalStorage();
100
+ const values = {};
101
+ for (const key of keys) {
102
+ const storageKey = this.getStorageKey(key);
103
+ const value = storage.getItem(storageKey);
104
+ values[key] = value;
105
+ }
106
+ return values;
107
+ }
108
+ use(key, initialValue = null, options = {}) {
109
+ const { disableListen = false, setItemValueOnMutate = true, getItemValueOnMount = true, parseValueOnGet = true, } = options;
110
+ const [value, _setValue] = (0, react_1.useState)(() => {
111
+ return getItemValueOnMount ? (this.getItem(key, parseValueOnGet) ?? initialValue) : initialValue;
112
+ });
113
+ (0, react_1.useEffect)(() => {
114
+ const handler = () => {
115
+ let _initialValue = initialValue;
116
+ let storedValue = this.getItem(key, parseValueOnGet);
117
+ if (!types_1.TypeGuards.isNil(storedValue) && getItemValueOnMount) {
118
+ _initialValue = this.parseValue(storedValue);
119
+ }
120
+ _setValue(_initialValue);
121
+ };
122
+ handler();
123
+ return disableListen ? null : this.listen(key, handler);
124
+ }, []);
125
+ const setValue = (to) => {
126
+ return _setValue((prev) => {
127
+ let newValue = prev;
128
+ if (!types_1.TypeGuards.isFunction(to)) {
129
+ newValue = to;
130
+ }
131
+ else {
132
+ const fn = to;
133
+ newValue = fn(value);
134
+ }
135
+ if (setItemValueOnMutate) {
136
+ this.setItem(key, newValue);
137
+ }
138
+ return newValue;
139
+ });
140
+ };
141
+ return [value, setValue];
142
+ }
143
+ listen(key, handler) {
144
+ const trigger = (event) => {
145
+ const storageKey = this.getStorageKey(key);
146
+ if (event?.key === storageKey) {
147
+ handler(key, event, this.parseValue(event?.newValue));
148
+ }
149
+ };
150
+ const newLength = this.storageListeners.push(trigger);
151
+ window.addEventListener('storage', trigger);
152
+ return () => {
153
+ this.storageListeners.splice(newLength - 1, 1);
154
+ window.removeEventListener('storage', trigger);
155
+ };
156
+ }
157
+ }
158
+ exports.LocalStorage = LocalStorage;
159
+ //# sourceMappingURL=localStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localStorage.js","sourceRoot":"","sources":["../../../src/lib/tools/localStorage.ts"],"names":[],"mappings":";;;AAAA,iCAA2C;AAC3C,2CAA4C;AAa5C;;;;;;;;;;GAUG;AACH,MAAa,YAAY;IAChB,WAAW,CAAG;IAEb,gBAAgB,GAAsC,EAAE,CAAA;IAEhE,YAAY,IAAO;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA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AAC,CAAA;YACvD,CAAC;QACH,CAAC,CAAA;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACrD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAE3C,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;YAC9C,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAChD,CAAC,CAAA;IACH,CAAC;CACF;AAvLD,oCAuLC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.attachMediaListener = attachMediaListener;
4
+ exports.getMediaQuery = getMediaQuery;
5
+ exports.isMediaQuery = isMediaQuery;
6
+ /**
7
+ * Attaches a `change` listener to a `MediaQueryList` with a fallback to the
8
+ * deprecated `addListener` API for Safari ≤ Catalina. Returns a cleanup
9
+ * function that removes the listener.
10
+ */
11
+ function attachMediaListener(query, callback) {
12
+ try {
13
+ query.addEventListener('change', callback);
14
+ return () => query.removeEventListener('change', callback);
15
+ }
16
+ catch (e) {
17
+ query.addListener(callback);
18
+ return () => query.removeListener(callback);
19
+ }
20
+ }
21
+ /** Strips the `@media screen and ` prefix so the string can be passed to `window.matchMedia`. */
22
+ function getMediaQuery(query) {
23
+ if (!query)
24
+ return '';
25
+ return query?.trim()?.replace('@media screen and ', '');
26
+ }
27
+ /**
28
+ * Evaluates a media query string synchronously via `window.matchMedia`. Returns
29
+ * `initialValue` on the server or in environments without `matchMedia`.
30
+ */
31
+ function isMediaQuery(query, initialValue = false) {
32
+ const media = getMediaQuery(query);
33
+ if (typeof window !== 'undefined' && 'matchMedia' in window) {
34
+ return window.matchMedia(media).matches;
35
+ }
36
+ return initialValue;
37
+ }
38
+ //# sourceMappingURL=mediaQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mediaQuery.js","sourceRoot":"","sources":["../../../src/lib/tools/mediaQuery.ts"],"names":[],"mappings":";;AAOA,kDAQC;AAGD,sCAGC;AAMD,oCAQC;AAjCD;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,KAAqB,EAAE,QAA4B;IACrF,IAAI,CAAC;QACH,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAC1C,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC5D,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAC3B,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;IAC7C,CAAC;AACH,CAAC;AAED,iGAAiG;AACjG,SAAgB,aAAa,CAAC,KAAa;IACzC,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAA;IACrB,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;AACzD,CAAC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAC,KAAa,EAAE,YAAY,GAAG,KAAK;IAC9D,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;IAElC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,YAAY,IAAI,MAAM,EAAE,CAAC;QAC5D,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAA;IACzC,CAAC;IAED,OAAO,YAAY,CAAA;AACrB,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.modalsState = void 0;
4
+ exports.modalInferIndexes = modalInferIndexes;
5
+ exports.modalScrollLock = modalScrollLock;
6
+ const types_1 = require("@codeleap/types");
7
+ const store_1 = require("@codeleap/store");
8
+ const overlapIndex = 99;
9
+ exports.modalsState = (0, store_1.globalState)({ currentModal: null, indexes: {} });
10
+ /**
11
+ * Updates the stacking-order index for a modal in `modalsState`.
12
+ * When a modal becomes invisible its index is reset to `99`; when it becomes
13
+ * visible its index is set above the current highest-indexed modal.
14
+ */
15
+ function modalInferIndexes(visible, id) {
16
+ const indexes = { ...exports.modalsState.value?.indexes };
17
+ if (!visible) {
18
+ indexes[id] = overlapIndex;
19
+ }
20
+ else {
21
+ let currentIndex = 0;
22
+ for (const key in indexes) {
23
+ if (indexes[key] > currentIndex) {
24
+ currentIndex = indexes[key];
25
+ }
26
+ }
27
+ indexes[id] = currentIndex + overlapIndex;
28
+ }
29
+ exports.modalsState.set({ indexes });
30
+ }
31
+ /**
32
+ * Locks or unlocks `document.documentElement` body scroll when a modal opens
33
+ * or closes. Tracks which modal holds the scroll lock in `modalsState` so
34
+ * multiple modals do not release each other's lock prematurely. A no-op when a
35
+ * different modal already owns the lock.
36
+ */
37
+ function modalScrollLock(to, modalIdentifier) {
38
+ let modalId = exports.modalsState.value?.currentModal;
39
+ const alreadyDifferentOpenedModal = !types_1.TypeGuards.isNil(modalId) && modalIdentifier !== modalId;
40
+ if (alreadyDifferentOpenedModal)
41
+ return;
42
+ if (types_1.TypeGuards.isNil(modalId) && to === true) {
43
+ exports.modalsState.set({ currentModal: modalIdentifier });
44
+ modalId = modalIdentifier;
45
+ }
46
+ else if (!types_1.TypeGuards.isNil(modalId) && to === false) {
47
+ exports.modalsState.set({ currentModal: null });
48
+ }
49
+ const htmlStyle = document?.documentElement?.style;
50
+ if (htmlStyle.overflowX !== 'hidden') {
51
+ htmlStyle.overflowX = 'hidden';
52
+ }
53
+ if (to) {
54
+ htmlStyle.overflowY = 'hidden';
55
+ }
56
+ else if (modalIdentifier === modalId && to === false) {
57
+ htmlStyle.overflowY = 'auto';
58
+ }
59
+ }
60
+ //# sourceMappingURL=modal.js.map
@@ -0,0 +1 @@
1
+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,CAAC;QAC7C,mBAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,CAAA;QAClD,OAAO,GAAG,eAAe,CAAA;IAC3B,CAAC;SAAM,IAAI,CAAC,kBAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC;QACtD,mBAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;IACzC,CAAC;IAED,MAAM,SAAS,GAAG,QAAQ,EAAE,eAAe,EAAE,KAAK,CAAA;IAElD,IAAI,SAAS,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;QACrC,SAAS,CAAC,SAAS,GAAG,QAAQ,CAAA;IAChC,CAAC;IAED,IAAI,EAAE,EAAE,CAAC;QACP,SAAS,CAAC,SAAS,GAAG,QAAQ,CAAA;IAChC,CAAC;SAAM,IAAI,eAAe,KAAK,OAAO,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC;QACvD,SAAS,CAAC,SAAS,GAAG,MAAM,CAAA;IAC9B,CAAC;AACH,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toDataAttrs = toDataAttrs;
4
+ const types_1 = require("@codeleap/types");
5
+ const camelToKebabCase = (value) => {
6
+ return value.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7
+ };
8
+ /**
9
+ * Converts a record (or array of records) of camelCase attributes into
10
+ * `data-kebab-case` HTML attribute pairs. `null` / `undefined` values are
11
+ * omitted. Multiple records are merged left-to-right; keys are sorted for
12
+ * stable output.
13
+ */
14
+ function toDataAttrs(value) {
15
+ const attrList = (Array.isArray(value) ? value : [value]).filter(Boolean);
16
+ const allAttrs = attrList.map(attributeSet => Object.fromEntries(Object
17
+ .entries(attributeSet ?? {})
18
+ .filter(([_, v]) => !types_1.TypeGuards.isNil(v))
19
+ .toSorted((a, b) => a[0].localeCompare(b[0]))
20
+ .map(([key, v]) => {
21
+ const normalizedKey = camelToKebabCase(key);
22
+ return [`data-${normalizedKey}`, String(v)];
23
+ })));
24
+ return allAttrs.reduce((acc, obj) => ({ ...acc, ...obj }), {});
25
+ }
26
+ //# sourceMappingURL=attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../../src/lib/utils/attributes.ts"],"names":[],"mappings":";;AAqCA,kCAeC;AApDD,2CAA4C;AAyB5C,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAU,EAAE;IAEjD,OAAO,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;AAEpE,CAAC,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,WAAW,CAAkB,KAAmB;IAC9D,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAEzE,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,CAC9D,MAAM;SACH,OAAO,CAAC,YAAY,IAAI,EAAE,CAAC;SAC3B,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,kBAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACxC,QAAQ,CAAC,CAAC,CAAC,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC3C,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;QAChB,MAAM,aAAa,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAA;QAC3C,OAAO,CAAC,QAAQ,aAAa,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7C,CAAC,CAAC,CACL,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAiB,CAAA;AAChF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /** Creates a new Emotion cache scoped to the `codeleap-web` key. */
2
- export declare const createCodeleapWebCache: () => import("@emotion/utils").EmotionCache;
2
+ export declare const createCodeleapWebCache: () => import("@emotion/cache").EmotionCache;
3
3
  /** Shared Emotion cache instance for the web package. Pass to `CacheProvider` for SSR style extraction. */
4
- export declare const codeleapWebCache: import("@emotion/utils").EmotionCache;
4
+ export declare const codeleapWebCache: import("@emotion/cache").EmotionCache;
5
5
  //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.codeleapWebCache = exports.createCodeleapWebCache = void 0;
7
+ const cache_1 = __importDefault(require("@emotion/cache"));
8
+ /** Creates a new Emotion cache scoped to the `codeleap-web` key. */
9
+ const createCodeleapWebCache = () => {
10
+ return (0, cache_1.default)({
11
+ key: 'codeleap-web',
12
+ });
13
+ };
14
+ exports.createCodeleapWebCache = createCodeleapWebCache;
15
+ /** Shared Emotion cache instance for the web package. Pass to `CacheProvider` for SSR style extraction. */
16
+ exports.codeleapWebCache = (0, exports.createCodeleapWebCache)();
17
+ //# sourceMappingURL=cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../src/lib/utils/cache.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAwC;AAExC,oEAAoE;AAC7D,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,OAAO,IAAA,eAAW,EAAC;QACjB,GAAG,EAAE,cAAc;KACpB,CAAC,CAAA;AACJ,CAAC,CAAA;AAJY,QAAA,sBAAsB,0BAIlC;AAED,2GAA2G;AAC9F,QAAA,gBAAgB,GAAG,IAAA,8BAAsB,GAAE,CAAA"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./pollyfils/scroll"), exports);
18
+ __exportStar(require("./stopPropagation"), exports);
19
+ __exportStar(require("./test"), exports);
20
+ __exportStar(require("./cache"), exports);
21
+ __exportStar(require("./attributes"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,oDAAiC;AACjC,yCAAsB;AACtB,0CAAuB;AACvB,+CAA4B"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scrollToElem = void 0;
4
+ // native smooth scrolling for Chrome, Firefox & Opera
5
+ // @see: https://caniuse.com/#feat=css-scroll-behavior
6
+ const nativeSmoothScrollTo = (elem, pad = 0) => {
7
+ if (!window)
8
+ return;
9
+ window.scroll({
10
+ behavior: 'smooth',
11
+ left: 0,
12
+ top: elem.getBoundingClientRect().top + window.pageYOffset + pad,
13
+ });
14
+ };
15
+ // polyfilled smooth scrolling for IE, Edge & Safari
16
+ const smoothScrollTo = (to, duration) => {
17
+ if (!document)
18
+ return;
19
+ const element = document.scrollingElement || document.documentElement, start = element.scrollTop, change = to - start, startDate = +new Date();
20
+ // t = current time
21
+ // b = start value
22
+ // c = change in value
23
+ // d = duration
24
+ const easeInOutQuad = (t, b, c, d) => {
25
+ t /= d / 2;
26
+ if (t < 1)
27
+ return (c / 2) * t * t + b;
28
+ t--;
29
+ return (-c / 2) * (t * (t - 2) - 1) + b;
30
+ };
31
+ const animateScroll = () => {
32
+ const currentDate = +new Date();
33
+ const currentTime = currentDate - startDate;
34
+ element.scrollTop = parseInt(easeInOutQuad(currentTime, start, change, duration));
35
+ if (currentTime < duration) {
36
+ requestAnimationFrame(animateScroll);
37
+ }
38
+ else {
39
+ element.scrollTop = to;
40
+ }
41
+ };
42
+ animateScroll();
43
+ };
44
+ // detect support for the behavior property in ScrollOptions
45
+ // smooth scrolling stub
46
+ /**
47
+ * Smooth-scrolls the page to the element matching `elemSelector`. Uses the
48
+ * native `scroll-behavior: smooth` CSS property when supported; falls back to a
49
+ * JS easing animation (easeInOutQuad, 600 ms) for IE / Edge / older Safari.
50
+ * `padOffsets[0]` adds a top offset to the final scroll position.
51
+ */
52
+ const scrollToElem = (elemSelector, padOffsets = [0, 0]) => {
53
+ if (!document)
54
+ return;
55
+ const supportsNativeSmoothScroll = 'scrollBehavior' in document.documentElement.style || {};
56
+ if (!elemSelector) {
57
+ return;
58
+ }
59
+ const elem = document.querySelector(elemSelector);
60
+ if (elem) {
61
+ if (supportsNativeSmoothScroll) {
62
+ nativeSmoothScrollTo(elem, padOffsets[0]);
63
+ }
64
+ else {
65
+ smoothScrollTo(elem.offsetTop + padOffsets[0], 600);
66
+ }
67
+ }
68
+ };
69
+ exports.scrollToElem = scrollToElem;
70
+ //# sourceMappingURL=scroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll.js","sourceRoot":"","sources":["../../../../src/lib/utils/pollyfils/scroll.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,sDAAsD;AACtD,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,EAAE,EAAE;IAC7C,IAAI,CAAC,MAAM;QAAE,OAAM;IACnB,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,CAAC;QACP,GAAG,EAAE,IAAI,CAAC,qBAAqB,EAAE,CAAC,GAAG,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG;KACjE,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,oDAAoD;AACpD,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;IACtC,IAAI,CAAC,QAAQ;QAAE,OAAM;IACrB,MAAM,OAAO,GAAG,QAAQ,CAAC,gBAAgB,IAAI,QAAQ,CAAC,eAAe,EACnE,KAAK,GAAG,OAAO,CAAC,SAAS,EACzB,MAAM,GAAG,EAAE,GAAG,KAAK,EACnB,SAAS,GAAG,CAAC,IAAI,IAAI,EAAE,CAAA;IAEzB,mBAAmB;IACnB,kBAAkB;IAClB,sBAAsB;IACtB,eAAe;IACf,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE;QACnC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACV,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACrC,CAAC,EAAE,CAAA;QACH,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC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AY,gBAgBxB"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stopPropagation = stopPropagation;
4
+ /**
5
+ * Calls `stopPropagation`, `preventDefault`, and `stopImmediatePropagation` on
6
+ * an event, swallowing any individual failures. Handles both native DOM events
7
+ * and React synthetic events via `nativeEvent`.
8
+ */
9
+ function stopPropagation(event) {
10
+ const tryCalls = [
11
+ event?.stopPropagation.bind(event),
12
+ event?.preventDefault.bind(event),
13
+ event.nativeEvent?.stopImmediatePropagation.bind(event.nativeEvent),
14
+ ];
15
+ for (const call of tryCalls) {
16
+ try {
17
+ call();
18
+ }
19
+ catch (e) { }
20
+ }
21
+ }
22
+ //# sourceMappingURL=stopPropagation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stopPropagation.js","sourceRoot":"","sources":["../../../src/lib/utils/stopPropagation.ts"],"names":[],"mappings":";;AAOA,0CAYC;AAjBD;;;;GAIG;AACH,SAAgB,eAAe,CAAC,KAAU;IACxC,MAAM,QAAQ,GAAG;QACf,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC;QAClC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;QACjC,KAAK,CAAC,WAAW,EAAE,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAgB;KACnF,CAAA;IAED,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,IAAI,CAAC;YACH,IAAI,EAAE,CAAA;QACR,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;IAChB,CAAC;AACH,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTestId = void 0;
4
+ const types_1 = require("@codeleap/types");
5
+ /**
6
+ * Derives a normalised test identifier from component props. Checks
7
+ * `testId`, `data-testid`, `id`, and `debugName` in that order; spaces are
8
+ * replaced with underscores and the result is lowercased.
9
+ */
10
+ const getTestId = (props) => {
11
+ let id = props?.testId || props?.['data-testid'] || props?.id || props?.debugName;
12
+ if (types_1.TypeGuards.isString(id)) {
13
+ id = id?.replace(/\s/g, '_').toLowerCase();
14
+ }
15
+ return id;
16
+ };
17
+ exports.getTestId = getTestId;
18
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/lib/utils/test.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAE5C;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAC,KAA0B,EAAE,EAAE;IACtD,IAAI,EAAE,GAAG,KAAK,EAAE,MAAM,IAAI,KAAK,EAAE,CAAC,aAAa,CAAC,IAAI,KAAK,EAAE,EAAE,IAAI,KAAK,EAAE,SAAS,CAAA;IAEjF,IAAI,kBAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5B,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAA;IAC5C,CAAC;IAED,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AARY,QAAA,SAAS,aAQrB"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./utility"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/types/utility.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codeleap/web",
3
- "version": "7.0.0",
4
- "main": "src/index.ts",
3
+ "version": "7.0.2",
4
+ "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
7
7
  ".": {
@@ -22,15 +22,15 @@
22
22
  },
23
23
  "license": "UNLICENSED",
24
24
  "devDependencies": {
25
- "@codeleap/config": "7.0.0",
26
- "@codeleap/form": "7.0.0",
27
- "@codeleap/hooks": "7.0.0",
28
- "@codeleap/logger": "7.0.0",
29
- "@codeleap/query": "7.0.0",
30
- "@codeleap/styles": "7.0.0",
31
- "@codeleap/types": "7.0.0",
32
- "@codeleap/utils": "7.0.0",
33
- "@codeleap/store": "7.0.0",
25
+ "@codeleap/config": "7.0.1",
26
+ "@codeleap/form": "7.0.1",
27
+ "@codeleap/hooks": "7.0.1",
28
+ "@codeleap/logger": "7.0.1",
29
+ "@codeleap/query": "7.0.1",
30
+ "@codeleap/styles": "7.0.1",
31
+ "@codeleap/types": "7.0.1",
32
+ "@codeleap/utils": "7.0.1",
33
+ "@codeleap/store": "7.0.1",
34
34
  "@tanstack/react-query": "5.100.9"
35
35
  },
36
36
  "scripts": {
@@ -60,13 +60,13 @@
60
60
  "uuid": "13.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@codeleap/types": "7.0.0",
64
- "@codeleap/utils": "7.0.0",
65
- "@codeleap/hooks": "7.0.0",
66
- "@codeleap/query": "7.0.0",
67
- "@codeleap/logger": "7.0.0",
68
- "@codeleap/styles": "7.0.0",
69
- "@codeleap/store": "7.0.0",
63
+ "@codeleap/types": "7.0.1",
64
+ "@codeleap/utils": "7.0.1",
65
+ "@codeleap/hooks": "7.0.1",
66
+ "@codeleap/query": "7.0.1",
67
+ "@codeleap/logger": "7.0.1",
68
+ "@codeleap/styles": "7.0.1",
69
+ "@codeleap/store": "7.0.1",
70
70
  "@emotion/react": "11.14.0",
71
71
  "@reach/router": "^1.3.4",
72
72
  "dayjs": "1.11.18",