@regardio/react 0.3.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 (404) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +133 -0
  3. package/dist/components/background-slideshow.d.ts +22 -0
  4. package/dist/components/background-slideshow.d.ts.map +1 -0
  5. package/dist/components/background-slideshow.js +76 -0
  6. package/dist/components/blurry-gradient.d.ts +9 -0
  7. package/dist/components/blurry-gradient.d.ts.map +1 -0
  8. package/dist/components/blurry-gradient.js +6 -0
  9. package/dist/components/box.d.ts +17 -0
  10. package/dist/components/box.d.ts.map +1 -0
  11. package/dist/components/box.js +25 -0
  12. package/dist/components/carousel.d.ts +26 -0
  13. package/dist/components/carousel.d.ts.map +1 -0
  14. package/dist/components/carousel.js +87 -0
  15. package/dist/components/countdown.d.ts +2 -0
  16. package/dist/components/countdown.d.ts.map +1 -0
  17. package/dist/components/countdown.js +48 -0
  18. package/dist/components/definition-list.d.ts +40 -0
  19. package/dist/components/definition-list.d.ts.map +1 -0
  20. package/dist/components/definition-list.js +57 -0
  21. package/dist/components/generic-error.d.ts +23 -0
  22. package/dist/components/generic-error.d.ts.map +1 -0
  23. package/dist/components/generic-error.js +39 -0
  24. package/dist/components/heading.d.ts +24 -0
  25. package/dist/components/heading.d.ts.map +1 -0
  26. package/dist/components/heading.js +29 -0
  27. package/dist/components/highlight.d.ts +16 -0
  28. package/dist/components/highlight.d.ts.map +1 -0
  29. package/dist/components/highlight.js +19 -0
  30. package/dist/components/icon-button.d.ts +6 -0
  31. package/dist/components/icon-button.d.ts.map +1 -0
  32. package/dist/components/icon-button.js +6 -0
  33. package/dist/components/if.d.ts +8 -0
  34. package/dist/components/if.d.ts.map +1 -0
  35. package/dist/components/if.js +16 -0
  36. package/dist/components/iframe.d.ts +8 -0
  37. package/dist/components/iframe.d.ts.map +1 -0
  38. package/dist/components/iframe.js +3 -0
  39. package/dist/components/item.d.ts +67 -0
  40. package/dist/components/item.d.ts.map +1 -0
  41. package/dist/components/item.js +309 -0
  42. package/dist/components/leaflet-map.d.ts +33 -0
  43. package/dist/components/leaflet-map.d.ts.map +1 -0
  44. package/dist/components/leaflet-map.js +195 -0
  45. package/dist/components/link.d.ts +41 -0
  46. package/dist/components/link.d.ts.map +1 -0
  47. package/dist/components/link.js +111 -0
  48. package/dist/components/link.test.d.ts +2 -0
  49. package/dist/components/link.test.d.ts.map +1 -0
  50. package/dist/components/link.test.js +204 -0
  51. package/dist/components/list-item.d.ts +16 -0
  52. package/dist/components/list-item.d.ts.map +1 -0
  53. package/dist/components/list-item.js +19 -0
  54. package/dist/components/maptiler-map.d.ts +26 -0
  55. package/dist/components/maptiler-map.d.ts.map +1 -0
  56. package/dist/components/maptiler-map.js +116 -0
  57. package/dist/components/markdown-container.d.ts +20 -0
  58. package/dist/components/markdown-container.d.ts.map +1 -0
  59. package/dist/components/markdown-container.js +93 -0
  60. package/dist/components/password-input.d.ts +9 -0
  61. package/dist/components/password-input.d.ts.map +1 -0
  62. package/dist/components/password-input.js +13 -0
  63. package/dist/components/picture.d.ts +26 -0
  64. package/dist/components/picture.d.ts.map +1 -0
  65. package/dist/components/picture.js +36 -0
  66. package/dist/components/protected-email.d.ts +9 -0
  67. package/dist/components/protected-email.d.ts.map +1 -0
  68. package/dist/components/protected-email.js +16 -0
  69. package/dist/components/text.d.ts +17 -0
  70. package/dist/components/text.d.ts.map +1 -0
  71. package/dist/components/text.js +27 -0
  72. package/dist/components/unordered-list.d.ts +16 -0
  73. package/dist/components/unordered-list.d.ts.map +1 -0
  74. package/dist/components/unordered-list.js +21 -0
  75. package/dist/hooks/use-current-route-data.d.ts +2 -0
  76. package/dist/hooks/use-current-route-data.d.ts.map +1 -0
  77. package/dist/hooks/use-current-route-data.js +12 -0
  78. package/dist/hooks/use-focus-search.d.ts +3 -0
  79. package/dist/hooks/use-focus-search.d.ts.map +1 -0
  80. package/dist/hooks/use-focus-search.js +15 -0
  81. package/dist/hooks/use-matches-data.d.ts +2 -0
  82. package/dist/hooks/use-matches-data.d.ts.map +1 -0
  83. package/dist/hooks/use-matches-data.js +11 -0
  84. package/dist/hooks/use-media-query.d.ts +2 -0
  85. package/dist/hooks/use-media-query.d.ts.map +1 -0
  86. package/dist/hooks/use-media-query.js +16 -0
  87. package/dist/hooks/use-mobile.d.ts +2 -0
  88. package/dist/hooks/use-mobile.d.ts.map +1 -0
  89. package/dist/hooks/use-mobile.js +15 -0
  90. package/dist/hooks/use-nonce.d.ts +5 -0
  91. package/dist/hooks/use-nonce.d.ts.map +1 -0
  92. package/dist/hooks/use-nonce.js +9 -0
  93. package/dist/hooks/use-nonce.test.d.ts +2 -0
  94. package/dist/hooks/use-nonce.test.d.ts.map +1 -0
  95. package/dist/hooks/use-nonce.test.js +27 -0
  96. package/dist/hooks/use-orientation.d.ts +3 -0
  97. package/dist/hooks/use-orientation.d.ts.map +1 -0
  98. package/dist/hooks/use-orientation.js +25 -0
  99. package/dist/hooks/use-user.d.ts +15 -0
  100. package/dist/hooks/use-user.d.ts.map +1 -0
  101. package/dist/hooks/use-user.js +17 -0
  102. package/dist/shadcn/accordion.d.ts +25 -0
  103. package/dist/shadcn/accordion.d.ts.map +1 -0
  104. package/dist/shadcn/accordion.js +45 -0
  105. package/dist/shadcn/alert-dialog.d.ts +73 -0
  106. package/dist/shadcn/alert-dialog.d.ts.map +1 -0
  107. package/dist/shadcn/alert-dialog.js +93 -0
  108. package/dist/shadcn/alert.d.ts +34 -0
  109. package/dist/shadcn/alert.d.ts.map +1 -0
  110. package/dist/shadcn/alert.js +42 -0
  111. package/dist/shadcn/aspect-ratio.d.ts +6 -0
  112. package/dist/shadcn/aspect-ratio.d.ts.map +1 -0
  113. package/dist/shadcn/aspect-ratio.js +7 -0
  114. package/dist/shadcn/avatar.d.ts +16 -0
  115. package/dist/shadcn/avatar.d.ts.map +1 -0
  116. package/dist/shadcn/avatar.js +27 -0
  117. package/dist/shadcn/badge.d.ts +29 -0
  118. package/dist/shadcn/badge.d.ts.map +1 -0
  119. package/dist/shadcn/badge.js +29 -0
  120. package/dist/shadcn/breadcrumb.d.ts +42 -0
  121. package/dist/shadcn/breadcrumb.d.ts.map +1 -0
  122. package/dist/shadcn/breadcrumb.js +74 -0
  123. package/dist/shadcn/button.d.ts +38 -0
  124. package/dist/shadcn/button.d.ts.map +1 -0
  125. package/dist/shadcn/button.js +38 -0
  126. package/dist/shadcn/calendar.d.ts +23 -0
  127. package/dist/shadcn/calendar.d.ts.map +1 -0
  128. package/dist/shadcn/calendar.js +163 -0
  129. package/dist/shadcn/card.d.ts +31 -0
  130. package/dist/shadcn/card.d.ts.map +1 -0
  131. package/dist/shadcn/card.js +55 -0
  132. package/dist/shadcn/carousel.d.ts +51 -0
  133. package/dist/shadcn/carousel.d.ts.map +1 -0
  134. package/dist/shadcn/carousel.js +161 -0
  135. package/dist/shadcn/chart.d.ts +103 -0
  136. package/dist/shadcn/chart.d.ts.map +1 -0
  137. package/dist/shadcn/chart.js +248 -0
  138. package/dist/shadcn/checkbox.d.ts +8 -0
  139. package/dist/shadcn/checkbox.d.ts.map +1 -0
  140. package/dist/shadcn/checkbox.js +22 -0
  141. package/dist/shadcn/collapsible.d.ts +16 -0
  142. package/dist/shadcn/collapsible.d.ts.map +1 -0
  143. package/dist/shadcn/collapsible.js +19 -0
  144. package/dist/shadcn/command.d.ts +61 -0
  145. package/dist/shadcn/command.d.ts.map +1 -0
  146. package/dist/shadcn/command.js +123 -0
  147. package/dist/shadcn/context-menu.d.ts +107 -0
  148. package/dist/shadcn/context-menu.d.ts.map +1 -0
  149. package/dist/shadcn/context-menu.js +151 -0
  150. package/dist/shadcn/dialog.d.ts +57 -0
  151. package/dist/shadcn/dialog.d.ts.map +1 -0
  152. package/dist/shadcn/dialog.js +96 -0
  153. package/dist/shadcn/drawer.d.ts +54 -0
  154. package/dist/shadcn/drawer.d.ts.map +1 -0
  155. package/dist/shadcn/drawer.js +96 -0
  156. package/dist/shadcn/dropdown-menu.d.ts +110 -0
  157. package/dist/shadcn/dropdown-menu.d.ts.map +1 -0
  158. package/dist/shadcn/dropdown-menu.js +152 -0
  159. package/dist/shadcn/form.d.ts +59 -0
  160. package/dist/shadcn/form.d.ts.map +1 -0
  161. package/dist/shadcn/form.js +99 -0
  162. package/dist/shadcn/hover-card.d.ts +20 -0
  163. package/dist/shadcn/hover-card.d.ts.map +1 -0
  164. package/dist/shadcn/hover-card.js +26 -0
  165. package/dist/shadcn/input-otp.d.ts +25 -0
  166. package/dist/shadcn/input-otp.d.ts.map +1 -0
  167. package/dist/shadcn/input-otp.js +54 -0
  168. package/dist/shadcn/input.d.ts +14 -0
  169. package/dist/shadcn/input.d.ts.map +1 -0
  170. package/dist/shadcn/input.js +48 -0
  171. package/dist/shadcn/label.d.ts +8 -0
  172. package/dist/shadcn/label.d.ts.map +1 -0
  173. package/dist/shadcn/label.js +16 -0
  174. package/dist/shadcn/menubar.d.ts +108 -0
  175. package/dist/shadcn/menubar.d.ts.map +1 -0
  176. package/dist/shadcn/menubar.js +174 -0
  177. package/dist/shadcn/navigation-menu.d.ts +79 -0
  178. package/dist/shadcn/navigation-menu.d.ts.map +1 -0
  179. package/dist/shadcn/navigation-menu.js +108 -0
  180. package/dist/shadcn/pagination.d.ts +45 -0
  181. package/dist/shadcn/pagination.d.ts.map +1 -0
  182. package/dist/shadcn/pagination.js +83 -0
  183. package/dist/shadcn/popover.d.ts +19 -0
  184. package/dist/shadcn/popover.d.ts.map +1 -0
  185. package/dist/shadcn/popover.js +29 -0
  186. package/dist/shadcn/progress.d.ts +9 -0
  187. package/dist/shadcn/progress.d.ts.map +1 -0
  188. package/dist/shadcn/progress.js +17 -0
  189. package/dist/shadcn/radio-group.d.ts +12 -0
  190. package/dist/shadcn/radio-group.d.ts.map +1 -0
  191. package/dist/shadcn/radio-group.js +32 -0
  192. package/dist/shadcn/resizable.d.ts +20 -0
  193. package/dist/shadcn/resizable.d.ts.map +1 -0
  194. package/dist/shadcn/resizable.js +32 -0
  195. package/dist/shadcn/scroll-area.d.ts +16 -0
  196. package/dist/shadcn/scroll-area.d.ts.map +1 -0
  197. package/dist/shadcn/scroll-area.js +40 -0
  198. package/dist/shadcn/select.d.ts +63 -0
  199. package/dist/shadcn/select.d.ts.map +1 -0
  200. package/dist/shadcn/select.js +120 -0
  201. package/dist/shadcn/separator.d.ts +10 -0
  202. package/dist/shadcn/separator.d.ts.map +1 -0
  203. package/dist/shadcn/separator.js +18 -0
  204. package/dist/shadcn/sheet.d.ts +48 -0
  205. package/dist/shadcn/sheet.d.ts.map +1 -0
  206. package/dist/shadcn/sheet.js +99 -0
  207. package/dist/shadcn/sidebar.d.ts +200 -0
  208. package/dist/shadcn/sidebar.d.ts.map +1 -0
  209. package/dist/shadcn/sidebar.js +528 -0
  210. package/dist/shadcn/skeleton.d.ts +6 -0
  211. package/dist/shadcn/skeleton.d.ts.map +1 -0
  212. package/dist/shadcn/skeleton.js +11 -0
  213. package/dist/shadcn/slider.d.ts +12 -0
  214. package/dist/shadcn/slider.d.ts.map +1 -0
  215. package/dist/shadcn/slider.js +50 -0
  216. package/dist/shadcn/sonner.d.ts +7 -0
  217. package/dist/shadcn/sonner.d.ts.map +1 -0
  218. package/dist/shadcn/sonner.js +20 -0
  219. package/dist/shadcn/switch.d.ts +8 -0
  220. package/dist/shadcn/switch.d.ts.map +1 -0
  221. package/dist/shadcn/switch.js +22 -0
  222. package/dist/shadcn/table.d.ts +35 -0
  223. package/dist/shadcn/table.d.ts.map +1 -0
  224. package/dist/shadcn/table.js +73 -0
  225. package/dist/shadcn/tabs.d.ts +20 -0
  226. package/dist/shadcn/tabs.d.ts.map +1 -0
  227. package/dist/shadcn/tabs.js +40 -0
  228. package/dist/shadcn/textarea.d.ts +7 -0
  229. package/dist/shadcn/textarea.d.ts.map +1 -0
  230. package/dist/shadcn/textarea.js +14 -0
  231. package/dist/shadcn/toggle-group.d.ts +22 -0
  232. package/dist/shadcn/toggle-group.d.ts.map +1 -0
  233. package/dist/shadcn/toggle-group.js +43 -0
  234. package/dist/shadcn/toggle.d.ts +29 -0
  235. package/dist/shadcn/toggle.d.ts.map +1 -0
  236. package/dist/shadcn/toggle.js +31 -0
  237. package/dist/shadcn/tooltip.d.ts +20 -0
  238. package/dist/shadcn/tooltip.d.ts.map +1 -0
  239. package/dist/shadcn/tooltip.js +40 -0
  240. package/dist/stories/BackgroundSlideshow.stories.d.ts +9 -0
  241. package/dist/stories/BackgroundSlideshow.stories.d.ts.map +1 -0
  242. package/dist/stories/BackgroundSlideshow.stories.js +60 -0
  243. package/dist/stories/BlurryGradient.stories.d.ts +11 -0
  244. package/dist/stories/BlurryGradient.stories.d.ts.map +1 -0
  245. package/dist/stories/BlurryGradient.stories.js +53 -0
  246. package/dist/stories/Box.stories.d.ts +13 -0
  247. package/dist/stories/Box.stories.d.ts.map +1 -0
  248. package/dist/stories/Box.stories.js +50 -0
  249. package/dist/stories/Carousel.stories.d.ts +9 -0
  250. package/dist/stories/Carousel.stories.d.ts.map +1 -0
  251. package/dist/stories/Carousel.stories.js +30 -0
  252. package/dist/stories/Countdown.stories.d.ts +7 -0
  253. package/dist/stories/Countdown.stories.d.ts.map +1 -0
  254. package/dist/stories/Countdown.stories.js +11 -0
  255. package/dist/stories/DefinitionList.stories.d.ts +9 -0
  256. package/dist/stories/DefinitionList.stories.d.ts.map +1 -0
  257. package/dist/stories/DefinitionList.stories.js +20 -0
  258. package/dist/stories/GenericError.stories.d.ts +9 -0
  259. package/dist/stories/GenericError.stories.d.ts.map +1 -0
  260. package/dist/stories/GenericError.stories.js +39 -0
  261. package/dist/stories/Heading.stories.d.ts +15 -0
  262. package/dist/stories/Heading.stories.d.ts.map +1 -0
  263. package/dist/stories/Heading.stories.js +61 -0
  264. package/dist/stories/Highlight.stories.d.ts +8 -0
  265. package/dist/stories/Highlight.stories.d.ts.map +1 -0
  266. package/dist/stories/Highlight.stories.js +19 -0
  267. package/dist/stories/IconButton.stories.d.ts +10 -0
  268. package/dist/stories/IconButton.stories.d.ts.map +1 -0
  269. package/dist/stories/IconButton.stories.js +32 -0
  270. package/dist/stories/If.stories.d.ts +13 -0
  271. package/dist/stories/If.stories.d.ts.map +1 -0
  272. package/dist/stories/If.stories.js +54 -0
  273. package/dist/stories/Iframe.stories.d.ts +8 -0
  274. package/dist/stories/Iframe.stories.d.ts.map +1 -0
  275. package/dist/stories/Iframe.stories.js +23 -0
  276. package/dist/stories/Item.stories.d.ts +10 -0
  277. package/dist/stories/Item.stories.d.ts.map +1 -0
  278. package/dist/stories/Item.stories.js +32 -0
  279. package/dist/stories/Link.stories.d.ts +10 -0
  280. package/dist/stories/Link.stories.d.ts.map +1 -0
  281. package/dist/stories/Link.stories.js +36 -0
  282. package/dist/stories/ListItem.stories.d.ts +9 -0
  283. package/dist/stories/ListItem.stories.d.ts.map +1 -0
  284. package/dist/stories/ListItem.stories.js +25 -0
  285. package/dist/stories/MarkdownContainer.stories.d.ts +11 -0
  286. package/dist/stories/MarkdownContainer.stories.d.ts.map +1 -0
  287. package/dist/stories/MarkdownContainer.stories.js +66 -0
  288. package/dist/stories/PasswordInput.stories.d.ts +9 -0
  289. package/dist/stories/PasswordInput.stories.d.ts.map +1 -0
  290. package/dist/stories/PasswordInput.stories.js +27 -0
  291. package/dist/stories/Picture.stories.d.ts +10 -0
  292. package/dist/stories/Picture.stories.d.ts.map +1 -0
  293. package/dist/stories/Picture.stories.js +46 -0
  294. package/dist/stories/ProtectedEmail.stories.d.ts +10 -0
  295. package/dist/stories/ProtectedEmail.stories.d.ts.map +1 -0
  296. package/dist/stories/ProtectedEmail.stories.js +34 -0
  297. package/dist/stories/Text.stories.d.ts +10 -0
  298. package/dist/stories/Text.stories.d.ts.map +1 -0
  299. package/dist/stories/Text.stories.js +31 -0
  300. package/dist/stories/UnorderedList.stories.d.ts +10 -0
  301. package/dist/stories/UnorderedList.stories.d.ts.map +1 -0
  302. package/dist/stories/UnorderedList.stories.js +24 -0
  303. package/dist/test-setup.d.ts +2 -0
  304. package/dist/test-setup.d.ts.map +1 -0
  305. package/dist/test-setup.js +1 -0
  306. package/dist/utils/author.d.ts +9 -0
  307. package/dist/utils/author.d.ts.map +1 -0
  308. package/dist/utils/author.js +37 -0
  309. package/dist/utils/author.test.d.ts +2 -0
  310. package/dist/utils/author.test.d.ts.map +1 -0
  311. package/dist/utils/author.test.js +46 -0
  312. package/dist/utils/cn.d.ts +5 -0
  313. package/dist/utils/cn.d.ts.map +1 -0
  314. package/dist/utils/cn.js +10 -0
  315. package/dist/utils/cn.test.d.ts +2 -0
  316. package/dist/utils/cn.test.d.ts.map +1 -0
  317. package/dist/utils/cn.test.js +33 -0
  318. package/dist/utils/is-route-active.d.ts +3 -0
  319. package/dist/utils/is-route-active.d.ts.map +1 -0
  320. package/dist/utils/is-route-active.js +54 -0
  321. package/dist/utils/is-route-active.test.d.ts +2 -0
  322. package/dist/utils/is-route-active.test.d.ts.map +1 -0
  323. package/dist/utils/is-route-active.test.js +61 -0
  324. package/dist/utils/locale.d.ts +22 -0
  325. package/dist/utils/locale.d.ts.map +1 -0
  326. package/dist/utils/locale.js +25 -0
  327. package/dist/utils/locale.test.d.ts +2 -0
  328. package/dist/utils/locale.test.d.ts.map +1 -0
  329. package/dist/utils/locale.test.js +99 -0
  330. package/dist/utils/text.d.ts +7 -0
  331. package/dist/utils/text.d.ts.map +1 -0
  332. package/dist/utils/text.js +102 -0
  333. package/dist/utils/text.test.d.ts +2 -0
  334. package/dist/utils/text.test.d.ts.map +1 -0
  335. package/dist/utils/text.test.js +122 -0
  336. package/package.json +117 -0
  337. package/src/components/background-slideshow.tsx +172 -0
  338. package/src/components/blurry-gradient.tsx +97 -0
  339. package/src/components/box.tsx +45 -0
  340. package/src/components/carousel.tsx +197 -0
  341. package/src/components/countdown.tsx +82 -0
  342. package/src/components/definition-list.tsx +90 -0
  343. package/src/components/generic-error.tsx +104 -0
  344. package/src/components/heading.tsx +60 -0
  345. package/src/components/highlight.tsx +53 -0
  346. package/src/components/icon-button.tsx +20 -0
  347. package/src/components/if.tsx +29 -0
  348. package/src/components/iframe.tsx +19 -0
  349. package/src/components/item.tsx +340 -0
  350. package/src/components/leaflet-map.tsx +294 -0
  351. package/src/components/link.test.tsx +387 -0
  352. package/src/components/link.tsx +206 -0
  353. package/src/components/list-item.tsx +30 -0
  354. package/src/components/maptiler-map.tsx +181 -0
  355. package/src/components/markdown-container.tsx +153 -0
  356. package/src/components/password-input.tsx +49 -0
  357. package/src/components/picture.tsx +107 -0
  358. package/src/components/protected-email.tsx +49 -0
  359. package/src/components/text.tsx +38 -0
  360. package/src/components/unordered-list.tsx +32 -0
  361. package/src/hooks/use-current-route-data.ts +18 -0
  362. package/src/hooks/use-focus-search.ts +20 -0
  363. package/src/hooks/use-matches-data.ts +19 -0
  364. package/src/hooks/use-media-query.ts +33 -0
  365. package/src/hooks/use-mobile.ts +19 -0
  366. package/src/hooks/use-nonce.test.ts +35 -0
  367. package/src/hooks/use-nonce.ts +20 -0
  368. package/src/hooks/use-orientation.ts +48 -0
  369. package/src/hooks/use-user.tsx +72 -0
  370. package/src/stories/BackgroundSlideshow.stories.tsx +68 -0
  371. package/src/stories/BlurryGradient.stories.tsx +62 -0
  372. package/src/stories/Box.stories.tsx +83 -0
  373. package/src/stories/Carousel.stories.tsx +95 -0
  374. package/src/stories/Countdown.stories.tsx +16 -0
  375. package/src/stories/DefinitionList.stories.tsx +51 -0
  376. package/src/stories/GenericError.stories.tsx +58 -0
  377. package/src/stories/Heading.stories.tsx +82 -0
  378. package/src/stories/Highlight.stories.tsx +28 -0
  379. package/src/stories/IconButton.stories.tsx +90 -0
  380. package/src/stories/If.stories.tsx +72 -0
  381. package/src/stories/Iframe.stories.tsx +29 -0
  382. package/src/stories/Item.stories.tsx +79 -0
  383. package/src/stories/Link.stories.tsx +58 -0
  384. package/src/stories/ListItem.stories.tsx +37 -0
  385. package/src/stories/MarkdownContainer.stories.tsx +76 -0
  386. package/src/stories/PasswordInput.stories.tsx +34 -0
  387. package/src/stories/Picture.stories.tsx +54 -0
  388. package/src/stories/ProtectedEmail.stories.tsx +57 -0
  389. package/src/stories/Text.stories.tsx +44 -0
  390. package/src/stories/UnorderedList.stories.tsx +73 -0
  391. package/src/styles/storybook.css +1 -0
  392. package/src/styles/tailwind.css +7 -0
  393. package/src/test-setup.ts +1 -0
  394. package/src/utils/author.test.ts +54 -0
  395. package/src/utils/author.tsx +73 -0
  396. package/src/utils/cn.test.ts +48 -0
  397. package/src/utils/cn.ts +14 -0
  398. package/src/utils/is-route-active.test.ts +80 -0
  399. package/src/utils/is-route-active.ts +100 -0
  400. package/src/utils/locale.test.ts +148 -0
  401. package/src/utils/locale.ts +127 -0
  402. package/src/utils/text.test.ts +152 -0
  403. package/src/utils/text.tsx +209 -0
  404. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { isRouteErrorResponse, useRouteError } from 'react-router';
3
+ export function getErrorDescriptor(error) {
4
+ if (isRouteErrorResponse(error)) {
5
+ const status = error.status;
6
+ const statusText = error.statusText || 'Error';
7
+ return {
8
+ defaultId: status === 404 ? 'errors.404' : 'errors.http',
9
+ defaultMessage: status === 404 ? 'Not found' : `Error ${status}`,
10
+ status,
11
+ statusText,
12
+ type: 'http',
13
+ };
14
+ }
15
+ if (error instanceof Error) {
16
+ return {
17
+ defaultId: 'errors.runtime',
18
+ defaultMessage: 'An unexpected error occurred.',
19
+ message: error.message,
20
+ type: 'error',
21
+ ...(error.stack ? { stack: error.stack } : {}),
22
+ };
23
+ }
24
+ return {
25
+ defaultId: 'errors.unknown',
26
+ defaultMessage: 'An unexpected error occurred.',
27
+ type: 'unknown',
28
+ };
29
+ }
30
+ export function GenericError({ renderMessage, } = {}) {
31
+ const error = useRouteError();
32
+ const descriptor = getErrorDescriptor(error);
33
+ const title = descriptor.type === 'http' ? `Error ${descriptor.status}` : 'Error';
34
+ return (_jsxs("main", { className: "pt-2xl p-sm container mx-auto", children: [_jsx("h1", { children: title }), renderMessage ? (renderMessage(descriptor)) : (_jsxs(_Fragment, { children: [_jsx("p", { children: descriptor.type === 'http'
35
+ ? descriptor.defaultMessage
36
+ : descriptor.type === 'error'
37
+ ? descriptor.message || descriptor.defaultMessage
38
+ : descriptor.defaultMessage }), import.meta.env.DEV && descriptor.type === 'error' && descriptor.stack && (_jsx("pre", { className: "w-full p-sm overflow-x-auto", children: _jsx("code", { children: descriptor.stack }) }))] }))] }));
39
+ }
@@ -0,0 +1,24 @@
1
+ import type { ElementType, HTMLAttributes } from 'react';
2
+ import { type VariantProps } from '../utils/cn';
3
+ declare const heading: (props?: ({
4
+ level?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
5
+ variant?: undefined;
6
+ } & ({
7
+ class?: import("cva").ClassValue;
8
+ className?: never;
9
+ } | {
10
+ class?: never;
11
+ className?: import("cva").ClassValue;
12
+ })) | undefined) => string;
13
+ export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof heading> {
14
+ as?: ElementType;
15
+ className?: string;
16
+ locale?: string;
17
+ }
18
+ export type HeadingLevel = HeadingProps['level'];
19
+ export declare const Heading: {
20
+ ({ as, children, className, level, variant, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export {};
24
+ //# sourceMappingURL=heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/components/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGzD,QAAA,MAAM,OAAO;;;;;;;;;0BAgBX,CAAC;AAEH,MAAM,WAAW,YACf,SAAQ,cAAc,CAAC,kBAAkB,CAAC,EACxC,YAAY,CAAC,OAAO,OAAO,CAAC;IAC9B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAEjD,eAAO,MAAM,OAAO;4DAOjB,YAAY;;CAkBd,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn, cva } from '../utils/cn';
3
+ import { lowerCaseSzett, shy } from '../utils/text';
4
+ const heading = cva({
5
+ base: [],
6
+ defaultVariants: {
7
+ level: 3,
8
+ },
9
+ variants: {
10
+ level: {
11
+ 1: ['text-2xl'],
12
+ 2: ['text-xl'],
13
+ 3: ['text-lg'],
14
+ 4: ['text-md'],
15
+ 5: ['text-sm'],
16
+ 6: ['text-xs'],
17
+ },
18
+ variant: {},
19
+ },
20
+ });
21
+ export const Heading = ({ as, children, className, level = 2, variant, ...props }) => {
22
+ const word = lowerCaseSzett(shy(children));
23
+ const Component = as || `h${level}`;
24
+ return (_jsx(Component, { className: cn(heading({
25
+ level,
26
+ variant,
27
+ }), className), ...props, children: word }));
28
+ };
29
+ Heading.displayName = 'Heading';
@@ -0,0 +1,16 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { type VariantProps } from '../utils/cn';
3
+ declare const li: (props?: ({
4
+ variant?: "primary" | undefined;
5
+ } & ({
6
+ class?: import("cva").ClassValue;
7
+ className?: never;
8
+ } | {
9
+ class?: never;
10
+ className?: import("cva").ClassValue;
11
+ })) | undefined) => string;
12
+ export interface HighlightProps extends ComponentProps<'mark'>, VariantProps<typeof li> {
13
+ }
14
+ export declare const Highlight: (props: HighlightProps) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=highlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,EAAE;;;;;;;;0BASN,CAAC;AAEH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC;CAAG;AAE1F,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAoC9C,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cva } from '../utils/cn';
3
+ const li = cva({
4
+ defaultVariants: {
5
+ variant: 'primary',
6
+ },
7
+ variants: {
8
+ variant: {
9
+ primary: ['highlight'],
10
+ },
11
+ },
12
+ });
13
+ export const Highlight = (props) => {
14
+ const { children, className, variant } = props;
15
+ return (_jsxs("mark", { className: li({
16
+ className,
17
+ variant,
18
+ }), children: [children, _jsx("svg", { "aria-label": "!", role: "img", children: _jsx("defs", { children: _jsxs("filter", { children: [_jsx("feTurbulence", { baseFrequency: "0 0.2", numOctaves: "5", result: "warp", type: "fractalNoise" }), _jsx("feDisplacementMap", { in: "SourceGraphic", in2: "warp", scale: "30", xChannelSelector: "R", yChannelSelector: "G" })] }) }) })] }));
19
+ };
@@ -0,0 +1,6 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ export interface IconButtonProps extends ComponentProps<'button'> {
3
+ icon: ReactNode;
4
+ }
5
+ export declare const IconButton: (props: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=icon-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/components/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC/D,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAahD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const IconButton = (props) => {
3
+ const { className, icon } = props;
4
+ const defaultClassName = 'p-0';
5
+ return (_jsx("button", { className: className ? className : defaultClassName, type: 'button', children: icon }));
6
+ };
@@ -0,0 +1,8 @@
1
+ type Condition<Value = unknown> = Value | false | null | undefined | 0 | '';
2
+ export declare function If<Value = unknown>({ condition, children, fallback, }: React.PropsWithoutRef<{
3
+ condition: Condition<Value>;
4
+ children: React.ReactNode | ((value: Value) => React.ReactNode);
5
+ fallback?: React.ReactNode;
6
+ }>): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
8
+ //# sourceMappingURL=if.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../src/components/if.tsx"],"names":[],"mappings":"AAEA,KAAK,SAAS,CAAC,KAAK,GAAG,OAAO,IAAI,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,EAAE,CAAC;AAE5E,wBAAgB,EAAE,CAAC,KAAK,GAAG,OAAO,EAAE,EAClC,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,CAAC,eAAe,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC,kDAgBD"}
@@ -0,0 +1,16 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ export function If({ condition, children, fallback, }) {
4
+ return useMemo(() => {
5
+ if (condition) {
6
+ if (typeof children === 'function') {
7
+ return _jsx(_Fragment, { children: children(condition) });
8
+ }
9
+ return _jsx(_Fragment, { children: children });
10
+ }
11
+ if (fallback) {
12
+ return _jsx(_Fragment, { children: fallback });
13
+ }
14
+ return null;
15
+ }, [condition, fallback, children]);
16
+ }
@@ -0,0 +1,8 @@
1
+ import type React from 'react';
2
+ export type IframeProps = {
3
+ src: string;
4
+ title: string;
5
+ className?: string;
6
+ };
7
+ export declare const Iframe: React.FC<IframeProps>;
8
+ //# sourceMappingURL=iframe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iframe.d.ts","sourceRoot":"","sources":["../../src/components/iframe.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CASxC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn';
3
+ export const Iframe = ({ src, title, className }) => (_jsx("iframe", { allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share", allowFullScreen: true, className: cn('w-full aspect-video border-0', className), loading: "lazy", src: src, title: title }));
@@ -0,0 +1,67 @@
1
+ import type { ComponentProps, ElementType } from 'react';
2
+ import { type VariantProps } from '../utils/cn';
3
+ export declare const priorities: {
4
+ high: never[];
5
+ low: never[];
6
+ medium: never[];
7
+ };
8
+ export declare const paddingValues: {
9
+ default: string;
10
+ gutter: string;
11
+ };
12
+ export declare const width: {
13
+ full: string[];
14
+ lg: string[];
15
+ md: string[];
16
+ sm: string[];
17
+ xl: string[];
18
+ xs: string[];
19
+ };
20
+ export declare const height: {
21
+ 1: string[];
22
+ 2: string[];
23
+ 3: string[];
24
+ 4: string[];
25
+ 5: string[];
26
+ 6: string[];
27
+ };
28
+ export declare const themeColors: {
29
+ black: never[];
30
+ blue: never[];
31
+ coral: never[];
32
+ cyan: never[];
33
+ gray: never[];
34
+ green: never[];
35
+ lime: never[];
36
+ neutral: never[];
37
+ olive: never[];
38
+ orange: never[];
39
+ pink: never[];
40
+ purple: never[];
41
+ red: never[];
42
+ teal: never[];
43
+ unstyled: never[];
44
+ white: never[];
45
+ yellow: never[];
46
+ };
47
+ declare const item: (props?: ({
48
+ height?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
49
+ padding?: "default" | "gutter" | undefined;
50
+ priority?: "high" | "low" | "medium" | undefined;
51
+ themeColor?: "black" | "blue" | "coral" | "cyan" | "gray" | "green" | "lime" | "olive" | "orange" | "pink" | "purple" | "red" | "teal" | "white" | "yellow" | "unstyled" | "neutral" | undefined;
52
+ variant?: "reset" | "primary" | "spacer" | "unstyled" | undefined;
53
+ width?: "full" | "lg" | "md" | "sm" | "xl" | "xs" | undefined;
54
+ } & ({
55
+ class?: import("cva").ClassValue;
56
+ className?: never;
57
+ } | {
58
+ class?: never;
59
+ className?: import("cva").ClassValue;
60
+ })) | undefined) => string;
61
+ export interface ItemProps extends ComponentProps<'div'>, VariantProps<typeof item> {
62
+ as?: ElementType;
63
+ link?: string;
64
+ }
65
+ export declare const Item: ({ as: Component, children, className, height, link, padding, priority, themeColor, variant, width, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
66
+ export {};
67
+ //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/components/item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGrD,eAAO,MAAM,UAAU;;;;CAItB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;CAOlB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;CAkBvB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;;;;;;0BA0PR,CAAC;AAEH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,IAAI,CAAC;IACjF,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,IAAI,GAAI,+GAYlB,SAAS,4CAiBX,CAAC"}
@@ -0,0 +1,309 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from '../utils/cn';
3
+ import { Link } from './link';
4
+ export const priorities = {
5
+ high: [],
6
+ low: [],
7
+ medium: [],
8
+ };
9
+ export const paddingValues = {
10
+ default: '',
11
+ gutter: 'p-grid-gutter',
12
+ };
13
+ export const width = {
14
+ full: ['col-span-12'],
15
+ lg: ['col-span-12', '@xs:col-span-8', '@md:col-span-8', '@xl:col-span-8'],
16
+ md: ['col-span-12', '@xs:col-span-6', '@md:col-span-6', '@xl:col-span-6'],
17
+ sm: ['col-span-6', '@xs:col-span-6', '@md:col-span-4', '@xl:col-span-4'],
18
+ xl: ['col-span-12', '@xs:col-span-8', '@md:col-span-9', '@xl:col-span-10'],
19
+ xs: ['col-span-6', '@xs:col-span-4', '@md:col-span-3', '@xl:col-span-2'],
20
+ };
21
+ export const height = {
22
+ 1: ['row-span-1'],
23
+ 2: ['row-span-2'],
24
+ 3: ['row-span-3'],
25
+ 4: ['row-span-4'],
26
+ 5: ['row-span-5'],
27
+ 6: ['row-span-6'],
28
+ };
29
+ export const themeColors = {
30
+ black: [],
31
+ blue: [],
32
+ coral: [],
33
+ cyan: [],
34
+ gray: [],
35
+ green: [],
36
+ lime: [],
37
+ neutral: [],
38
+ olive: [],
39
+ orange: [],
40
+ pink: [],
41
+ purple: [],
42
+ red: [],
43
+ teal: [],
44
+ unstyled: [],
45
+ white: [],
46
+ yellow: [],
47
+ };
48
+ const item = cva({
49
+ base: ['relative'],
50
+ compoundVariants: [
51
+ {
52
+ className: ['bg-gray-300/20', 'black:bg-black/20'],
53
+ priority: 'low',
54
+ themeColor: 'black',
55
+ },
56
+ {
57
+ className: ['bg-gray-300/50', 'black:bg-black/50'],
58
+ priority: 'medium',
59
+ themeColor: 'black',
60
+ },
61
+ {
62
+ className: ['bg-gray-300/90', 'black:bg-black/90'],
63
+ priority: 'high',
64
+ themeColor: 'black',
65
+ },
66
+ {
67
+ className: ['bg-blue-300/20', 'black:bg-blue-500/20'],
68
+ priority: 'low',
69
+ themeColor: 'blue',
70
+ },
71
+ {
72
+ className: ['bg-blue-300/50', 'black:bg-blue-500/50'],
73
+ priority: 'medium',
74
+ themeColor: 'blue',
75
+ },
76
+ {
77
+ className: ['bg-blue-300/90', 'black:bg-blue-500/80'],
78
+ priority: 'high',
79
+ themeColor: 'blue',
80
+ },
81
+ {
82
+ className: ['bg-coral-300/20', 'black:bg-coral-500/20'],
83
+ priority: 'low',
84
+ themeColor: 'coral',
85
+ },
86
+ {
87
+ className: ['bg-coral-300/50', 'black:bg-coral-500/50'],
88
+ priority: 'medium',
89
+ themeColor: 'coral',
90
+ },
91
+ {
92
+ className: ['bg-coral-300/90', 'black:bg-coral-500/80'],
93
+ priority: 'high',
94
+ themeColor: 'coral',
95
+ },
96
+ {
97
+ className: ['bg-cyan-300/20', 'black:bg-cyan-500/20'],
98
+ priority: 'low',
99
+ themeColor: 'cyan',
100
+ },
101
+ {
102
+ className: ['bg-cyan-300/50', 'black:bg-cyan-500/50'],
103
+ priority: 'medium',
104
+ themeColor: 'cyan',
105
+ },
106
+ {
107
+ className: ['bg-cyan-300/90', 'black:bg-cyan-500/80'],
108
+ priority: 'high',
109
+ themeColor: 'cyan',
110
+ },
111
+ {
112
+ className: ['bg-green-300/20', 'black:bg-green-500/20'],
113
+ priority: 'low',
114
+ themeColor: 'green',
115
+ },
116
+ {
117
+ className: ['bg-green-300/50', 'black:bg-green-500/50'],
118
+ priority: 'medium',
119
+ themeColor: 'green',
120
+ },
121
+ {
122
+ className: ['bg-green-300/90', 'black:bg-green-500/80'],
123
+ priority: 'high',
124
+ themeColor: 'green',
125
+ },
126
+ {
127
+ className: ['bg-lime-300/20', 'black:bg-lime-500/20'],
128
+ priority: 'low',
129
+ themeColor: 'lime',
130
+ },
131
+ {
132
+ className: ['bg-lime-300/50', 'black:bg-lime-500/50'],
133
+ priority: 'medium',
134
+ themeColor: 'lime',
135
+ },
136
+ {
137
+ className: ['bg-lime-300/90', 'black:bg-lime-500/80'],
138
+ priority: 'high',
139
+ themeColor: 'lime',
140
+ },
141
+ {
142
+ className: ['bg-gray-100/40', 'black:bg-gray-500/5'],
143
+ priority: 'low',
144
+ themeColor: 'neutral',
145
+ },
146
+ {
147
+ className: ['bg-gray-200/30', 'black:bg-gray-500/20'],
148
+ priority: 'medium',
149
+ themeColor: 'neutral',
150
+ },
151
+ {
152
+ className: ['bg-gray-300/70', 'black:bg-gray-500/50'],
153
+ priority: 'high',
154
+ themeColor: 'neutral',
155
+ },
156
+ {
157
+ className: ['bg-olive-300/20', 'black:bg-olive-500/20'],
158
+ priority: 'low',
159
+ themeColor: 'olive',
160
+ },
161
+ {
162
+ className: ['bg-olive-300/50', 'black:bg-olive-500/50'],
163
+ priority: 'medium',
164
+ themeColor: 'olive',
165
+ },
166
+ {
167
+ className: ['bg-olive-300/90', 'black:bg-olive-500/80'],
168
+ priority: 'high',
169
+ themeColor: 'olive',
170
+ },
171
+ {
172
+ className: ['bg-orange-300/20', 'black:bg-orange-500/20'],
173
+ priority: 'low',
174
+ themeColor: 'orange',
175
+ },
176
+ {
177
+ className: ['bg-orange-300/50', 'black:bg-orange-500/50'],
178
+ priority: 'medium',
179
+ themeColor: 'orange',
180
+ },
181
+ {
182
+ className: ['bg-orange-300/90', 'black:bg-orange-500/80'],
183
+ priority: 'high',
184
+ themeColor: 'orange',
185
+ },
186
+ {
187
+ className: ['bg-pink-300/20', 'black:bg-pink-500/20'],
188
+ priority: 'low',
189
+ themeColor: 'pink',
190
+ },
191
+ {
192
+ className: ['bg-pink-300/50', 'black:bg-pink-500/50'],
193
+ priority: 'medium',
194
+ themeColor: 'pink',
195
+ },
196
+ {
197
+ className: ['bg-pink-300/90', 'black:bg-pink-500/80'],
198
+ priority: 'high',
199
+ themeColor: 'pink',
200
+ },
201
+ {
202
+ className: ['bg-purple-300/20', 'black:bg-purple-500/20'],
203
+ priority: 'low',
204
+ themeColor: 'purple',
205
+ },
206
+ {
207
+ className: ['bg-purple-300/50', 'black:bg-purple-500/50'],
208
+ priority: 'medium',
209
+ themeColor: 'purple',
210
+ },
211
+ {
212
+ className: ['bg-purple-300/90', 'black:bg-purple-500/80'],
213
+ priority: 'high',
214
+ themeColor: 'purple',
215
+ },
216
+ {
217
+ className: ['bg-red-300/20', 'black:bg-red-500/20'],
218
+ priority: 'low',
219
+ themeColor: 'red',
220
+ },
221
+ {
222
+ className: ['bg-red-300/50', 'black:bg-red-500/50'],
223
+ priority: 'medium',
224
+ themeColor: 'red',
225
+ },
226
+ {
227
+ className: ['bg-red-300/90', 'black:bg-red-500/80'],
228
+ priority: 'high',
229
+ themeColor: 'red',
230
+ },
231
+ {
232
+ className: ['bg-teal-300/20', 'black:bg-teal-500/20'],
233
+ priority: 'low',
234
+ themeColor: 'teal',
235
+ },
236
+ {
237
+ className: ['bg-teal-300/50', 'black:bg-teal-500/50'],
238
+ priority: 'medium',
239
+ themeColor: 'teal',
240
+ },
241
+ {
242
+ className: ['bg-teal-300/90', 'black:bg-teal-500/80'],
243
+ priority: 'high',
244
+ themeColor: 'teal',
245
+ },
246
+ {
247
+ className: ['bg-yellow-300/20', 'black:bg-yellow-500/20'],
248
+ priority: 'low',
249
+ themeColor: 'yellow',
250
+ },
251
+ {
252
+ className: ['bg-yellow-300/50', 'black:bg-yellow-500/50'],
253
+ priority: 'medium',
254
+ themeColor: 'yellow',
255
+ },
256
+ {
257
+ className: ['bg-yellow-300/90', 'black:bg-yellow-500/80'],
258
+ priority: 'high',
259
+ themeColor: 'yellow',
260
+ },
261
+ {
262
+ className: ['bg-white/20', 'black:bg-white/20'],
263
+ priority: 'low',
264
+ themeColor: 'white',
265
+ },
266
+ {
267
+ className: ['bg-white/50', 'black:bg-white/50', 'black:text-black'],
268
+ priority: 'medium',
269
+ themeColor: 'white',
270
+ },
271
+ {
272
+ className: ['bg-white/90', 'black:bg-white/80', 'black:text-black'],
273
+ priority: 'high',
274
+ themeColor: 'white',
275
+ },
276
+ ],
277
+ defaultVariants: {
278
+ height: 1,
279
+ padding: 'default',
280
+ priority: 'medium',
281
+ themeColor: 'unstyled',
282
+ variant: 'primary',
283
+ width: 'full',
284
+ },
285
+ variants: {
286
+ height: height,
287
+ padding: paddingValues,
288
+ priority: priorities,
289
+ themeColor: themeColors,
290
+ variant: {
291
+ primary: [],
292
+ reset: ['bg-transparent', 'rounded-none'],
293
+ spacer: ['hidden'],
294
+ unstyled: [],
295
+ },
296
+ width: width,
297
+ },
298
+ });
299
+ export const Item = ({ as: Component = 'div', children, className, height, link, padding, priority, themeColor, variant, width, ...props }) => {
300
+ return (_jsx(Component, { className: item({
301
+ className,
302
+ height,
303
+ padding,
304
+ priority,
305
+ themeColor,
306
+ variant,
307
+ width,
308
+ }), ...props, children: link ? _jsx(Link, { to: link, children: children }) : children }));
309
+ };
@@ -0,0 +1,33 @@
1
+ import 'leaflet/dist/leaflet.css';
2
+ interface MapMarker {
3
+ lat: number;
4
+ lng: number;
5
+ id: string;
6
+ content?: string;
7
+ htmlContent?: string;
8
+ imageUrl?: string;
9
+ imageAlt?: string;
10
+ offset?: {
11
+ x: number;
12
+ y: number;
13
+ };
14
+ }
15
+ interface LeafletMapProps {
16
+ markers: MapMarker[];
17
+ mapUrl: string;
18
+ center?: {
19
+ lat: number;
20
+ lng: number;
21
+ };
22
+ zoom?: number;
23
+ icon?: {
24
+ iconUrl: string;
25
+ iconSize: [number, number];
26
+ iconAnchor: [number, number];
27
+ };
28
+ attribution?: string;
29
+ showPopupsOnHover?: boolean;
30
+ }
31
+ export declare const LeafletMap: ({ markers, mapUrl, center, zoom, icon, attribution, showPopupsOnHover, }: LeafletMapProps) => import("react/jsx-runtime").JSX.Element;
32
+ export default LeafletMap;
33
+ //# sourceMappingURL=leaflet-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaflet-map.d.ts","sourceRoot":"","sources":["../../src/components/leaflet-map.tsx"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAIlC,UAAU,SAAS;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnC;AAED,UAAU,eAAe;IACvB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC3B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,GAAI,0EAYxB,eAAe,4CA0PjB,CAAC;AAEF,eAAe,UAAU,CAAC"}