@lssm/lib.ui-kit-web 1.2.0

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 (425) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/node_modules/sonner/dist/index.js +630 -0
  4. package/dist/node_modules/sonner/dist/index.js.map +1 -0
  5. package/dist/tsconfig.tsbuildinfo +1 -0
  6. package/dist/ui/accordion.d.ts +25 -0
  7. package/dist/ui/accordion.d.ts.map +1 -0
  8. package/dist/ui/accordion.js +49 -0
  9. package/dist/ui/accordion.js.map +1 -0
  10. package/dist/ui/alert-dialog.d.ts +49 -0
  11. package/dist/ui/alert-dialog.d.ts.map +1 -0
  12. package/dist/ui/alert-dialog.js +86 -0
  13. package/dist/ui/alert-dialog.js.map +1 -0
  14. package/dist/ui/alert.d.ts +25 -0
  15. package/dist/ui/alert.d.ts.map +1 -0
  16. package/dist/ui/alert.js +39 -0
  17. package/dist/ui/alert.js.map +1 -0
  18. package/dist/ui/aspect-ratio.d.ts +8 -0
  19. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  20. package/dist/ui/aspect-ratio.js +11 -0
  21. package/dist/ui/aspect-ratio.js.map +1 -0
  22. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +8 -0
  23. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -0
  24. package/dist/ui/atoms/FilterSelect/FilterSelect.js +53 -0
  25. package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -0
  26. package/dist/ui/atoms/FilterSelect/index.d.ts +3 -0
  27. package/dist/ui/atoms/FilterSelect/index.js +3 -0
  28. package/dist/ui/atoms/FilterSelect/types.d.ts +19 -0
  29. package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -0
  30. package/dist/ui/atoms/FilterSelect/types.js +1 -0
  31. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +23 -0
  32. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
  33. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +46 -0
  34. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -0
  35. package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -0
  36. package/dist/ui/atoms/LoadingSpinner/index.js +3 -0
  37. package/dist/ui/atoms/Pagination/Pagination.d.ts +8 -0
  38. package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -0
  39. package/dist/ui/atoms/Pagination/Pagination.js +157 -0
  40. package/dist/ui/atoms/Pagination/Pagination.js.map +1 -0
  41. package/dist/ui/atoms/Pagination/index.d.ts +3 -0
  42. package/dist/ui/atoms/Pagination/index.js +3 -0
  43. package/dist/ui/atoms/Pagination/types.d.ts +16 -0
  44. package/dist/ui/atoms/Pagination/types.d.ts.map +1 -0
  45. package/dist/ui/atoms/Pagination/types.js +1 -0
  46. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +8 -0
  47. package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -0
  48. package/dist/ui/atoms/SearchInput/SearchInput.js +50 -0
  49. package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -0
  50. package/dist/ui/atoms/SearchInput/index.d.ts +3 -0
  51. package/dist/ui/atoms/SearchInput/index.js +3 -0
  52. package/dist/ui/atoms/SearchInput/types.d.ts +13 -0
  53. package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -0
  54. package/dist/ui/atoms/SearchInput/types.js +1 -0
  55. package/dist/ui/avatar.d.ts +20 -0
  56. package/dist/ui/avatar.d.ts.map +1 -0
  57. package/dist/ui/avatar.js +34 -0
  58. package/dist/ui/avatar.js.map +1 -0
  59. package/dist/ui/badge.d.ts +20 -0
  60. package/dist/ui/badge.d.ts.map +1 -0
  61. package/dist/ui/badge.js +27 -0
  62. package/dist/ui/badge.js.map +1 -0
  63. package/dist/ui/breadcrumb.d.ts +38 -0
  64. package/dist/ui/breadcrumb.d.ts.map +1 -0
  65. package/dist/ui/breadcrumb.js +72 -0
  66. package/dist/ui/breadcrumb.js.map +1 -0
  67. package/dist/ui/button.d.ts +23 -0
  68. package/dist/ui/button.d.ts.map +1 -0
  69. package/dist/ui/button.js +44 -0
  70. package/dist/ui/button.js.map +1 -0
  71. package/dist/ui/calendar.d.ts +27 -0
  72. package/dist/ui/calendar.d.ts.map +1 -0
  73. package/dist/ui/calendar.js +110 -0
  74. package/dist/ui/calendar.js.map +1 -0
  75. package/dist/ui/card.d.ts +35 -0
  76. package/dist/ui/card.d.ts.map +1 -0
  77. package/dist/ui/card.js +58 -0
  78. package/dist/ui/card.js.map +1 -0
  79. package/dist/ui/carousel.d.ts +48 -0
  80. package/dist/ui/carousel.d.ts.map +1 -0
  81. package/dist/ui/carousel.js +137 -0
  82. package/dist/ui/carousel.js.map +1 -0
  83. package/dist/ui/checkbox.d.ts +12 -0
  84. package/dist/ui/checkbox.d.ts.map +1 -0
  85. package/dist/ui/checkbox.js +26 -0
  86. package/dist/ui/checkbox.js.map +1 -0
  87. package/dist/ui/collapsible.d.ts +16 -0
  88. package/dist/ui/collapsible.d.ts.map +1 -0
  89. package/dist/ui/collapsible.js +29 -0
  90. package/dist/ui/collapsible.js.map +1 -0
  91. package/dist/ui/command.d.ts +53 -0
  92. package/dist/ui/command.d.ts.map +1 -0
  93. package/dist/ui/command.js +91 -0
  94. package/dist/ui/command.js.map +1 -0
  95. package/dist/ui/confirm-dialog.d.ts +31 -0
  96. package/dist/ui/confirm-dialog.d.ts.map +1 -0
  97. package/dist/ui/confirm-dialog.js +34 -0
  98. package/dist/ui/confirm-dialog.js.map +1 -0
  99. package/dist/ui/context-menu.d.ts +35 -0
  100. package/dist/ui/context-menu.d.ts.map +1 -0
  101. package/dist/ui/context-menu.js +85 -0
  102. package/dist/ui/context-menu.js.map +1 -0
  103. package/dist/ui/cta.d.ts +15 -0
  104. package/dist/ui/cta.d.ts.map +1 -0
  105. package/dist/ui/cta.js +39 -0
  106. package/dist/ui/cta.js.map +1 -0
  107. package/dist/ui/date-picker.d.ts +26 -0
  108. package/dist/ui/date-picker.d.ts.map +1 -0
  109. package/dist/ui/date-picker.js +102 -0
  110. package/dist/ui/date-picker.js.map +1 -0
  111. package/dist/ui/date-range-picker.d.ts +26 -0
  112. package/dist/ui/date-range-picker.d.ts.map +1 -0
  113. package/dist/ui/date-range-picker.js +55 -0
  114. package/dist/ui/date-range-picker.js.map +1 -0
  115. package/dist/ui/datetime-picker.d.ts +28 -0
  116. package/dist/ui/datetime-picker.d.ts.map +1 -0
  117. package/dist/ui/datetime-picker.js +45 -0
  118. package/dist/ui/datetime-picker.js.map +1 -0
  119. package/dist/ui/dialog.d.ts +48 -0
  120. package/dist/ui/dialog.d.ts.map +1 -0
  121. package/dist/ui/dialog.js +91 -0
  122. package/dist/ui/dialog.js.map +1 -0
  123. package/dist/ui/drawer.d.ts +45 -0
  124. package/dist/ui/drawer.d.ts.map +1 -0
  125. package/dist/ui/drawer.js +83 -0
  126. package/dist/ui/drawer.js.map +1 -0
  127. package/dist/ui/dropdown-menu.d.ts +78 -0
  128. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  129. package/dist/ui/dropdown-menu.js +128 -0
  130. package/dist/ui/dropdown-menu.js.map +1 -0
  131. package/dist/ui/empty-state.d.ts +29 -0
  132. package/dist/ui/empty-state.d.ts.map +1 -0
  133. package/dist/ui/empty-state.js +43 -0
  134. package/dist/ui/empty-state.js.map +1 -0
  135. package/dist/ui/empty.d.ts +36 -0
  136. package/dist/ui/empty.d.ts.map +1 -0
  137. package/dist/ui/empty.js +62 -0
  138. package/dist/ui/empty.js.map +1 -0
  139. package/dist/ui/field.d.ts +65 -0
  140. package/dist/ui/field.d.ts.map +1 -0
  141. package/dist/ui/field.js +122 -0
  142. package/dist/ui/field.js.map +1 -0
  143. package/dist/ui/focus-on-route-change.d.ts +9 -0
  144. package/dist/ui/focus-on-route-change.d.ts.map +1 -0
  145. package/dist/ui/focus-on-route-change.js +17 -0
  146. package/dist/ui/focus-on-route-change.js.map +1 -0
  147. package/dist/ui/form.d.ts +47 -0
  148. package/dist/ui/form.d.ts.map +1 -0
  149. package/dist/ui/form.js +95 -0
  150. package/dist/ui/form.js.map +1 -0
  151. package/dist/ui/hover-card.d.ts +20 -0
  152. package/dist/ui/hover-card.d.ts.map +1 -0
  153. package/dist/ui/hover-card.js +37 -0
  154. package/dist/ui/hover-card.js.map +1 -0
  155. package/dist/ui/input-group.d.ts +44 -0
  156. package/dist/ui/input-group.d.ts.map +1 -0
  157. package/dist/ui/input-group.js +84 -0
  158. package/dist/ui/input-group.js.map +1 -0
  159. package/dist/ui/input-otp.d.ts +39 -0
  160. package/dist/ui/input-otp.d.ts.map +1 -0
  161. package/dist/ui/input-otp.js +47 -0
  162. package/dist/ui/input-otp.js.map +1 -0
  163. package/dist/ui/input.d.ts +13 -0
  164. package/dist/ui/input.d.ts.map +1 -0
  165. package/dist/ui/input.js +17 -0
  166. package/dist/ui/input.js.map +1 -0
  167. package/dist/ui/label.d.ts +12 -0
  168. package/dist/ui/label.d.ts.map +1 -0
  169. package/dist/ui/label.js +20 -0
  170. package/dist/ui/label.js.map +1 -0
  171. package/dist/ui/link.d.ts +9 -0
  172. package/dist/ui/link.d.ts.map +1 -0
  173. package/dist/ui/link.js +18 -0
  174. package/dist/ui/link.js.map +1 -0
  175. package/dist/ui/live-region.d.ts +17 -0
  176. package/dist/ui/live-region.d.ts.map +1 -0
  177. package/dist/ui/live-region.js +48 -0
  178. package/dist/ui/live-region.js.map +1 -0
  179. package/dist/ui/loading-button.d.ts +20 -0
  180. package/dist/ui/loading-button.d.ts.map +1 -0
  181. package/dist/ui/loading-button.js +21 -0
  182. package/dist/ui/loading-button.js.map +1 -0
  183. package/dist/ui/map/MapBase.d.ts +29 -0
  184. package/dist/ui/map/MapBase.d.ts.map +1 -0
  185. package/dist/ui/map/MapBase.js +48 -0
  186. package/dist/ui/map/MapBase.js.map +1 -0
  187. package/dist/ui/map/MapGeoJsonOverlay.d.ts +16 -0
  188. package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +1 -0
  189. package/dist/ui/map/MapGeoJsonOverlay.js +39 -0
  190. package/dist/ui/map/MapGeoJsonOverlay.js.map +1 -0
  191. package/dist/ui/map/MapHeatmapH3.d.ts +18 -0
  192. package/dist/ui/map/MapHeatmapH3.d.ts.map +1 -0
  193. package/dist/ui/map/MapHeatmapH3.js +52 -0
  194. package/dist/ui/map/MapHeatmapH3.js.map +1 -0
  195. package/dist/ui/map/MapMarkers.d.ts +20 -0
  196. package/dist/ui/map/MapMarkers.d.ts.map +1 -0
  197. package/dist/ui/map/MapMarkers.js +35 -0
  198. package/dist/ui/map/MapMarkers.js.map +1 -0
  199. package/dist/ui/map/index.d.ts +5 -0
  200. package/dist/ui/map/index.js +6 -0
  201. package/dist/ui/marketing/FeatureGrid.d.ts +21 -0
  202. package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -0
  203. package/dist/ui/marketing/FeatureGrid.js +35 -0
  204. package/dist/ui/marketing/FeatureGrid.js.map +1 -0
  205. package/dist/ui/marketing/Hero.d.ts +28 -0
  206. package/dist/ui/marketing/Hero.d.ts.map +1 -0
  207. package/dist/ui/marketing/Hero.js +53 -0
  208. package/dist/ui/marketing/Hero.js.map +1 -0
  209. package/dist/ui/marketing/PricingTable.d.ts +25 -0
  210. package/dist/ui/marketing/PricingTable.d.ts.map +1 -0
  211. package/dist/ui/marketing/PricingTable.js +60 -0
  212. package/dist/ui/marketing/PricingTable.js.map +1 -0
  213. package/dist/ui/marketing/index.d.ts +4 -0
  214. package/dist/ui/marketing/index.js +5 -0
  215. package/dist/ui/menubar.d.ts +85 -0
  216. package/dist/ui/menubar.d.ts.map +1 -0
  217. package/dist/ui/menubar.js +138 -0
  218. package/dist/ui/menubar.js.map +1 -0
  219. package/dist/ui/molecules/Autocomplete/index.d.ts +7 -0
  220. package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -0
  221. package/dist/ui/molecules/Autocomplete/index.js +86 -0
  222. package/dist/ui/molecules/Autocomplete/index.js.map +1 -0
  223. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +8 -0
  224. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -0
  225. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +103 -0
  226. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -0
  227. package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -0
  228. package/dist/ui/molecules/SearchAndFilter/index.js +3 -0
  229. package/dist/ui/molecules/SearchAndFilter/types.d.ts +24 -0
  230. package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -0
  231. package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
  232. package/dist/ui/molecules/SkeletonList.d.ts +16 -0
  233. package/dist/ui/molecules/SkeletonList.d.ts.map +1 -0
  234. package/dist/ui/molecules/SkeletonList.js +15 -0
  235. package/dist/ui/molecules/SkeletonList.js.map +1 -0
  236. package/dist/ui/nav-layout.d.ts +71 -0
  237. package/dist/ui/nav-layout.d.ts.map +1 -0
  238. package/dist/ui/nav-layout.js +133 -0
  239. package/dist/ui/nav-layout.js.map +1 -0
  240. package/dist/ui/navigation-menu.d.ts +47 -0
  241. package/dist/ui/navigation-menu.d.ts.map +1 -0
  242. package/dist/ui/navigation-menu.js +83 -0
  243. package/dist/ui/navigation-menu.js.map +1 -0
  244. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +30 -0
  245. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
  246. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +112 -0
  247. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -0
  248. package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
  249. package/dist/ui/organisms/ErrorBoundary/index.js +3 -0
  250. package/dist/ui/organisms/ListPage/ListPage.d.ts +29 -0
  251. package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -0
  252. package/dist/ui/organisms/ListPage/ListPage.js +198 -0
  253. package/dist/ui/organisms/ListPage/ListPage.js.map +1 -0
  254. package/dist/ui/organisms/ListPage/index.d.ts +3 -0
  255. package/dist/ui/organisms/ListPage/index.js +3 -0
  256. package/dist/ui/organisms/ListPage/types.d.ts +41 -0
  257. package/dist/ui/organisms/ListPage/types.d.ts.map +1 -0
  258. package/dist/ui/organisms/ListPage/types.js +1 -0
  259. package/dist/ui/page-header.d.ts +27 -0
  260. package/dist/ui/page-header.d.ts.map +1 -0
  261. package/dist/ui/page-header.js +40 -0
  262. package/dist/ui/page-header.js.map +1 -0
  263. package/dist/ui/pagination.d.ts +50 -0
  264. package/dist/ui/pagination.d.ts.map +1 -0
  265. package/dist/ui/pagination.js +65 -0
  266. package/dist/ui/pagination.js.map +1 -0
  267. package/dist/ui/popover.d.ts +23 -0
  268. package/dist/ui/popover.d.ts.map +1 -0
  269. package/dist/ui/popover.js +40 -0
  270. package/dist/ui/popover.js.map +1 -0
  271. package/dist/ui/progress.d.ts +13 -0
  272. package/dist/ui/progress.d.ts.map +1 -0
  273. package/dist/ui/progress.js +25 -0
  274. package/dist/ui/progress.js.map +1 -0
  275. package/dist/ui/radio-group.d.ts +16 -0
  276. package/dist/ui/radio-group.d.ts.map +1 -0
  277. package/dist/ui/radio-group.js +33 -0
  278. package/dist/ui/radio-group.js.map +1 -0
  279. package/dist/ui/resizable.d.ts +36 -0
  280. package/dist/ui/resizable.d.ts.map +1 -0
  281. package/dist/ui/resizable.js +26 -0
  282. package/dist/ui/resizable.js.map +1 -0
  283. package/dist/ui/route-announcer.d.ts +11 -0
  284. package/dist/ui/route-announcer.d.ts.map +1 -0
  285. package/dist/ui/route-announcer.js +23 -0
  286. package/dist/ui/route-announcer.js.map +1 -0
  287. package/dist/ui/scroll-area.d.ts +18 -0
  288. package/dist/ui/scroll-area.d.ts.map +1 -0
  289. package/dist/ui/scroll-area.js +41 -0
  290. package/dist/ui/scroll-area.js.map +1 -0
  291. package/dist/ui/section.d.ts +27 -0
  292. package/dist/ui/section.d.ts.map +1 -0
  293. package/dist/ui/section.js +63 -0
  294. package/dist/ui/section.js.map +1 -0
  295. package/dist/ui/select.d.ts +52 -0
  296. package/dist/ui/select.d.ts.map +1 -0
  297. package/dist/ui/select.js +101 -0
  298. package/dist/ui/select.js.map +1 -0
  299. package/dist/ui/separator.d.ts +14 -0
  300. package/dist/ui/separator.d.ts.map +1 -0
  301. package/dist/ui/separator.js +22 -0
  302. package/dist/ui/separator.js.map +1 -0
  303. package/dist/ui/sheet.d.ts +41 -0
  304. package/dist/ui/sheet.d.ts.map +1 -0
  305. package/dist/ui/sheet.js +87 -0
  306. package/dist/ui/sheet.js.map +1 -0
  307. package/dist/ui/sidebar.d.ts +77 -0
  308. package/dist/ui/sidebar.d.ts.map +1 -0
  309. package/dist/ui/sidebar.js +380 -0
  310. package/dist/ui/sidebar.js.map +1 -0
  311. package/dist/ui/skeleton.d.ts +10 -0
  312. package/dist/ui/skeleton.d.ts.map +1 -0
  313. package/dist/ui/skeleton.js +15 -0
  314. package/dist/ui/skeleton.js.map +1 -0
  315. package/dist/ui/skip-link.d.ts +17 -0
  316. package/dist/ui/skip-link.d.ts.map +1 -0
  317. package/dist/ui/skip-link.js +17 -0
  318. package/dist/ui/skip-link.js.map +1 -0
  319. package/dist/ui/slider.d.ts +16 -0
  320. package/dist/ui/slider.d.ts.map +1 -0
  321. package/dist/ui/slider.js +41 -0
  322. package/dist/ui/slider.js.map +1 -0
  323. package/dist/ui/sonner.d.ts +10 -0
  324. package/dist/ui/sonner.d.ts.map +1 -0
  325. package/dist/ui/sonner.js +25 -0
  326. package/dist/ui/sonner.js.map +1 -0
  327. package/dist/ui/stack.d.ts +48 -0
  328. package/dist/ui/stack.d.ts.map +1 -0
  329. package/dist/ui/stack.js +158 -0
  330. package/dist/ui/stack.js.map +1 -0
  331. package/dist/ui/stat-card-group.d.ts +19 -0
  332. package/dist/ui/stat-card-group.d.ts.map +1 -0
  333. package/dist/ui/stat-card-group.js +39 -0
  334. package/dist/ui/stat-card-group.js.map +1 -0
  335. package/dist/ui/stepper.d.ts +23 -0
  336. package/dist/ui/stepper.d.ts.map +1 -0
  337. package/dist/ui/stepper.js +37 -0
  338. package/dist/ui/stepper.js.map +1 -0
  339. package/dist/ui/switch.d.ts +12 -0
  340. package/dist/ui/switch.d.ts.map +1 -0
  341. package/dist/ui/switch.js +24 -0
  342. package/dist/ui/switch.js.map +1 -0
  343. package/dist/ui/table.d.ts +39 -0
  344. package/dist/ui/table.d.ts.map +1 -0
  345. package/dist/ui/table.js +72 -0
  346. package/dist/ui/table.js.map +1 -0
  347. package/dist/ui/tabs.d.ts +24 -0
  348. package/dist/ui/tabs.d.ts.map +1 -0
  349. package/dist/ui/tabs.js +41 -0
  350. package/dist/ui/tabs.js.map +1 -0
  351. package/dist/ui/text.d.ts +16 -0
  352. package/dist/ui/text.d.ts.map +1 -0
  353. package/dist/ui/text.js +16 -0
  354. package/dist/ui/text.js.map +1 -0
  355. package/dist/ui/textarea.d.ts +12 -0
  356. package/dist/ui/textarea.d.ts.map +1 -0
  357. package/dist/ui/textarea.js +16 -0
  358. package/dist/ui/textarea.js.map +1 -0
  359. package/dist/ui/time-picker.d.ts +22 -0
  360. package/dist/ui/time-picker.d.ts.map +1 -0
  361. package/dist/ui/time-picker.js +82 -0
  362. package/dist/ui/time-picker.js.map +1 -0
  363. package/dist/ui/toast.d.ts +20 -0
  364. package/dist/ui/toast.d.ts.map +1 -0
  365. package/dist/ui/toast.js +63 -0
  366. package/dist/ui/toast.js.map +1 -0
  367. package/dist/ui/toaster.d.ts +7 -0
  368. package/dist/ui/toaster.d.ts.map +1 -0
  369. package/dist/ui/toaster.js +28 -0
  370. package/dist/ui/toaster.js.map +1 -0
  371. package/dist/ui/toggle-group.d.ts +24 -0
  372. package/dist/ui/toggle-group.d.ts.map +1 -0
  373. package/dist/ui/toggle-group.js +49 -0
  374. package/dist/ui/toggle-group.js.map +1 -0
  375. package/dist/ui/toggle.d.ts +20 -0
  376. package/dist/ui/toggle.d.ts.map +1 -0
  377. package/dist/ui/toggle.js +42 -0
  378. package/dist/ui/toggle.js.map +1 -0
  379. package/dist/ui/tooltip.d.ts +24 -0
  380. package/dist/ui/tooltip.d.ts.map +1 -0
  381. package/dist/ui/tooltip.js +41 -0
  382. package/dist/ui/tooltip.js.map +1 -0
  383. package/dist/ui/typography.d.ts +65 -0
  384. package/dist/ui/typography.d.ts.map +1 -0
  385. package/dist/ui/typography.js +87 -0
  386. package/dist/ui/typography.js.map +1 -0
  387. package/dist/ui/use-media-query.d.ts +5 -0
  388. package/dist/ui/use-media-query.d.ts.map +1 -0
  389. package/dist/ui/use-media-query.js +20 -0
  390. package/dist/ui/use-media-query.js.map +1 -0
  391. package/dist/ui/use-mobile.d.ts +5 -0
  392. package/dist/ui/use-mobile.d.ts.map +1 -0
  393. package/dist/ui/use-mobile.js +21 -0
  394. package/dist/ui/use-mobile.js.map +1 -0
  395. package/dist/ui/use-reduced-motion.d.ts +5 -0
  396. package/dist/ui/use-reduced-motion.d.ts.map +1 -0
  397. package/dist/ui/use-reduced-motion.js +18 -0
  398. package/dist/ui/use-reduced-motion.js.map +1 -0
  399. package/dist/ui/use-toast.d.ts +50 -0
  400. package/dist/ui/use-toast.d.ts.map +1 -0
  401. package/dist/ui/use-toast.js +123 -0
  402. package/dist/ui/use-toast.js.map +1 -0
  403. package/dist/ui/useListState.d.ts +34 -0
  404. package/dist/ui/useListState.d.ts.map +1 -0
  405. package/dist/ui/useListState.js +75 -0
  406. package/dist/ui/useListState.js.map +1 -0
  407. package/dist/ui/usecases/UseCaseCard.d.ts +19 -0
  408. package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -0
  409. package/dist/ui/usecases/UseCaseCard.js +35 -0
  410. package/dist/ui/usecases/UseCaseCard.js.map +1 -0
  411. package/dist/ui/usecases/UserStoryCard.d.ts +15 -0
  412. package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -0
  413. package/dist/ui/usecases/UserStoryCard.js +36 -0
  414. package/dist/ui/usecases/UserStoryCard.js.map +1 -0
  415. package/dist/ui/usecases/index.d.ts +3 -0
  416. package/dist/ui/usecases/index.js +4 -0
  417. package/dist/ui/utils.d.ts +7 -0
  418. package/dist/ui/utils.d.ts.map +1 -0
  419. package/dist/ui/utils.js +11 -0
  420. package/dist/ui/utils.js.map +1 -0
  421. package/dist/ui/visually-hidden.d.ts +10 -0
  422. package/dist/ui/visually-hidden.d.ts.map +1 -0
  423. package/dist/ui/visually-hidden.js +31 -0
  424. package/dist/ui/visually-hidden.js.map +1 -0
  425. package/package.json +222 -0
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,630 @@
1
+ "use client";
2
+
3
+
4
+ import React, { forwardRef, isValidElement } from "react";
5
+ import vt from "react-dom";
6
+
7
+ //#region ../../../node_modules/sonner/dist/index.mjs
8
+ var jt = (n) => {
9
+ switch (n) {
10
+ case "success": return ee;
11
+ case "info": return ae;
12
+ case "warning": return oe;
13
+ case "error": return se;
14
+ default: return null;
15
+ }
16
+ }, te = Array(12).fill(0), Yt = ({ visible: n, className: e }) => React.createElement("div", {
17
+ className: ["sonner-loading-wrapper", e].filter(Boolean).join(" "),
18
+ "data-visible": n
19
+ }, React.createElement("div", { className: "sonner-spinner" }, te.map((t, a) => React.createElement("div", {
20
+ className: "sonner-loading-bar",
21
+ key: `spinner-bar-${a}`
22
+ })))), ee = React.createElement("svg", {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ viewBox: "0 0 20 20",
25
+ fill: "currentColor",
26
+ height: "20",
27
+ width: "20"
28
+ }, React.createElement("path", {
29
+ fillRule: "evenodd",
30
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
31
+ clipRule: "evenodd"
32
+ })), oe = React.createElement("svg", {
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ viewBox: "0 0 24 24",
35
+ fill: "currentColor",
36
+ height: "20",
37
+ width: "20"
38
+ }, React.createElement("path", {
39
+ fillRule: "evenodd",
40
+ d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
41
+ clipRule: "evenodd"
42
+ })), ae = React.createElement("svg", {
43
+ xmlns: "http://www.w3.org/2000/svg",
44
+ viewBox: "0 0 20 20",
45
+ fill: "currentColor",
46
+ height: "20",
47
+ width: "20"
48
+ }, React.createElement("path", {
49
+ fillRule: "evenodd",
50
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
51
+ clipRule: "evenodd"
52
+ })), se = React.createElement("svg", {
53
+ xmlns: "http://www.w3.org/2000/svg",
54
+ viewBox: "0 0 20 20",
55
+ fill: "currentColor",
56
+ height: "20",
57
+ width: "20"
58
+ }, React.createElement("path", {
59
+ fillRule: "evenodd",
60
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
61
+ clipRule: "evenodd"
62
+ })), Ot = React.createElement("svg", {
63
+ xmlns: "http://www.w3.org/2000/svg",
64
+ width: "12",
65
+ height: "12",
66
+ viewBox: "0 0 24 24",
67
+ fill: "none",
68
+ stroke: "currentColor",
69
+ strokeWidth: "1.5",
70
+ strokeLinecap: "round",
71
+ strokeLinejoin: "round"
72
+ }, React.createElement("line", {
73
+ x1: "18",
74
+ y1: "6",
75
+ x2: "6",
76
+ y2: "18"
77
+ }), React.createElement("line", {
78
+ x1: "6",
79
+ y1: "6",
80
+ x2: "18",
81
+ y2: "18"
82
+ }));
83
+ var Ft = () => {
84
+ let [n, e] = React.useState(document.hidden);
85
+ return React.useEffect(() => {
86
+ let t = () => {
87
+ e(document.hidden);
88
+ };
89
+ return document.addEventListener("visibilitychange", t), () => window.removeEventListener("visibilitychange", t);
90
+ }, []), n;
91
+ };
92
+ var bt = 1, yt = class {
93
+ constructor() {
94
+ this.subscribe = (e) => (this.subscribers.push(e), () => {
95
+ let t = this.subscribers.indexOf(e);
96
+ this.subscribers.splice(t, 1);
97
+ });
98
+ this.publish = (e) => {
99
+ this.subscribers.forEach((t) => t(e));
100
+ };
101
+ this.addToast = (e) => {
102
+ this.publish(e), this.toasts = [...this.toasts, e];
103
+ };
104
+ this.create = (e) => {
105
+ var S;
106
+ let { message: t,...a } = e, u = typeof (e == null ? void 0 : e.id) == "number" || ((S = e.id) == null ? void 0 : S.length) > 0 ? e.id : bt++, f = this.toasts.find((g) => g.id === u), w = e.dismissible === void 0 ? !0 : e.dismissible;
107
+ return this.dismissedToasts.has(u) && this.dismissedToasts.delete(u), f ? this.toasts = this.toasts.map((g) => g.id === u ? (this.publish({
108
+ ...g,
109
+ ...e,
110
+ id: u,
111
+ title: t
112
+ }), {
113
+ ...g,
114
+ ...e,
115
+ id: u,
116
+ dismissible: w,
117
+ title: t
118
+ }) : g) : this.addToast({
119
+ title: t,
120
+ ...a,
121
+ dismissible: w,
122
+ id: u
123
+ }), u;
124
+ };
125
+ this.dismiss = (e) => (this.dismissedToasts.add(e), e || this.toasts.forEach((t) => {
126
+ this.subscribers.forEach((a) => a({
127
+ id: t.id,
128
+ dismiss: !0
129
+ }));
130
+ }), this.subscribers.forEach((t) => t({
131
+ id: e,
132
+ dismiss: !0
133
+ })), e);
134
+ this.message = (e, t) => this.create({
135
+ ...t,
136
+ message: e
137
+ });
138
+ this.error = (e, t) => this.create({
139
+ ...t,
140
+ message: e,
141
+ type: "error"
142
+ });
143
+ this.success = (e, t) => this.create({
144
+ ...t,
145
+ type: "success",
146
+ message: e
147
+ });
148
+ this.info = (e, t) => this.create({
149
+ ...t,
150
+ type: "info",
151
+ message: e
152
+ });
153
+ this.warning = (e, t) => this.create({
154
+ ...t,
155
+ type: "warning",
156
+ message: e
157
+ });
158
+ this.loading = (e, t) => this.create({
159
+ ...t,
160
+ type: "loading",
161
+ message: e
162
+ });
163
+ this.promise = (e, t) => {
164
+ if (!t) return;
165
+ let a;
166
+ t.loading !== void 0 && (a = this.create({
167
+ ...t,
168
+ promise: e,
169
+ type: "loading",
170
+ message: t.loading,
171
+ description: typeof t.description != "function" ? t.description : void 0
172
+ }));
173
+ let u = e instanceof Promise ? e : e(), f = a !== void 0, w, S = u.then(async (i) => {
174
+ if (w = ["resolve", i], React.isValidElement(i)) f = !1, this.create({
175
+ id: a,
176
+ type: "default",
177
+ message: i
178
+ });
179
+ else if (ie(i) && !i.ok) {
180
+ f = !1;
181
+ let T = typeof t.error == "function" ? await t.error(`HTTP error! status: ${i.status}`) : t.error, F = typeof t.description == "function" ? await t.description(`HTTP error! status: ${i.status}`) : t.description;
182
+ this.create({
183
+ id: a,
184
+ type: "error",
185
+ message: T,
186
+ description: F
187
+ });
188
+ } else if (t.success !== void 0) {
189
+ f = !1;
190
+ let T = typeof t.success == "function" ? await t.success(i) : t.success, F = typeof t.description == "function" ? await t.description(i) : t.description;
191
+ this.create({
192
+ id: a,
193
+ type: "success",
194
+ message: T,
195
+ description: F
196
+ });
197
+ }
198
+ }).catch(async (i) => {
199
+ if (w = ["reject", i], t.error !== void 0) {
200
+ f = !1;
201
+ let D = typeof t.error == "function" ? await t.error(i) : t.error, T = typeof t.description == "function" ? await t.description(i) : t.description;
202
+ this.create({
203
+ id: a,
204
+ type: "error",
205
+ message: D,
206
+ description: T
207
+ });
208
+ }
209
+ }).finally(() => {
210
+ var i;
211
+ f && (this.dismiss(a), a = void 0), (i = t.finally) == null || i.call(t);
212
+ }), g = () => new Promise((i, D) => S.then(() => w[0] === "reject" ? D(w[1]) : i(w[1])).catch(D));
213
+ return typeof a != "string" && typeof a != "number" ? { unwrap: g } : Object.assign(a, { unwrap: g });
214
+ };
215
+ this.custom = (e, t) => {
216
+ let a = (t == null ? void 0 : t.id) || bt++;
217
+ return this.create({
218
+ jsx: e(a),
219
+ id: a,
220
+ ...t
221
+ }), a;
222
+ };
223
+ this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id));
224
+ this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
225
+ }
226
+ }, v = new yt(), ne = (n, e) => {
227
+ let t = (e == null ? void 0 : e.id) || bt++;
228
+ return v.addToast({
229
+ title: n,
230
+ ...e,
231
+ id: t
232
+ }), t;
233
+ }, ie = (n) => n && typeof n == "object" && "ok" in n && typeof n.ok == "boolean" && "status" in n && typeof n.status == "number", le = ne, ce = () => v.toasts, de = () => v.getActiveToasts(), ue = Object.assign(le, {
234
+ success: v.success,
235
+ info: v.info,
236
+ warning: v.warning,
237
+ error: v.error,
238
+ custom: v.custom,
239
+ message: v.message,
240
+ promise: v.promise,
241
+ dismiss: v.dismiss,
242
+ loading: v.loading
243
+ }, {
244
+ getHistory: ce,
245
+ getToasts: de
246
+ });
247
+ function wt(n, { insertAt: e } = {}) {
248
+ if (!n || typeof document == "undefined") return;
249
+ let t = document.head || document.getElementsByTagName("head")[0], a = document.createElement("style");
250
+ a.type = "text/css", e === "top" && t.firstChild ? t.insertBefore(a, t.firstChild) : t.appendChild(a), a.styleSheet ? a.styleSheet.cssText = n : a.appendChild(document.createTextNode(n));
251
+ }
252
+ wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
253
+ `);
254
+ function tt(n) {
255
+ return n.label !== void 0;
256
+ }
257
+ var pe = 3, me = "32px", ge = "16px", Wt = 4e3, he = 356, be = 14, ye = 20, we = 200;
258
+ function M(...n) {
259
+ return n.filter(Boolean).join(" ");
260
+ }
261
+ function xe(n) {
262
+ let [e, t] = n.split("-"), a = [];
263
+ return e && a.push(e), t && a.push(t), a;
264
+ }
265
+ var ve = (n) => {
266
+ var Dt, Pt, Nt, Bt, Ct, kt, It, Mt, Ht, At, Lt;
267
+ let { invert: e, toast: t, unstyled: a, interacting: u, setHeights: f, visibleToasts: w, heights: S, index: g, toasts: i, expanded: D, removeToast: T, defaultRichColors: F, closeButton: et, style: ut, cancelButtonStyle: ft, actionButtonStyle: l, className: ot = "", descriptionClassName: at = "", duration: X, position: st, gap: pt, loadingIcon: rt, expandByDefault: B, classNames: s, icons: P, closeButtonAriaLabel: nt = "Close toast", pauseWhenPageIsHidden: it } = n, [Y, C] = React.useState(null), [lt, J] = React.useState(null), [W, H] = React.useState(!1), [A, mt] = React.useState(!1), [L, z] = React.useState(!1), [ct, d] = React.useState(!1), [h, y] = React.useState(!1), [R, j] = React.useState(0), [p, _] = React.useState(0), O = React.useRef(t.duration || X || Wt), G = React.useRef(null), k = React.useRef(null), Vt = g === 0, Ut = g + 1 <= w, N = t.type, V = t.dismissible !== !1, Kt = t.className || "", Xt = t.descriptionClassName || "", dt = React.useMemo(() => S.findIndex((r) => r.toastId === t.id) || 0, [S, t.id]), Jt = React.useMemo(() => {
268
+ var r;
269
+ return (r = t.closeButton) != null ? r : et;
270
+ }, [t.closeButton, et]), Tt = React.useMemo(() => t.duration || X || Wt, [t.duration, X]), gt = React.useRef(0), U = React.useRef(0), St = React.useRef(0), K = React.useRef(null), [Gt, Qt] = st.split("-"), Rt = React.useMemo(() => S.reduce((r, m, c) => c >= dt ? r : r + m.height, 0), [S, dt]), Et = Ft(), qt = t.invert || e, ht = N === "loading";
271
+ U.current = React.useMemo(() => dt * pt + Rt, [dt, Rt]), React.useEffect(() => {
272
+ O.current = Tt;
273
+ }, [Tt]), React.useEffect(() => {
274
+ H(!0);
275
+ }, []), React.useEffect(() => {
276
+ let r = k.current;
277
+ if (r) {
278
+ let m = r.getBoundingClientRect().height;
279
+ return _(m), f((c) => [{
280
+ toastId: t.id,
281
+ height: m,
282
+ position: t.position
283
+ }, ...c]), () => f((c) => c.filter((b) => b.toastId !== t.id));
284
+ }
285
+ }, [f, t.id]), React.useLayoutEffect(() => {
286
+ if (!W) return;
287
+ let r = k.current, m = r.style.height;
288
+ r.style.height = "auto";
289
+ let c = r.getBoundingClientRect().height;
290
+ r.style.height = m, _(c), f((b) => b.find((x) => x.toastId === t.id) ? b.map((x) => x.toastId === t.id ? {
291
+ ...x,
292
+ height: c
293
+ } : x) : [{
294
+ toastId: t.id,
295
+ height: c,
296
+ position: t.position
297
+ }, ...b]);
298
+ }, [
299
+ W,
300
+ t.title,
301
+ t.description,
302
+ f,
303
+ t.id
304
+ ]);
305
+ let $ = React.useCallback(() => {
306
+ mt(!0), j(U.current), f((r) => r.filter((m) => m.toastId !== t.id)), setTimeout(() => {
307
+ T(t);
308
+ }, we);
309
+ }, [
310
+ t,
311
+ T,
312
+ f,
313
+ U
314
+ ]);
315
+ React.useEffect(() => {
316
+ if (t.promise && N === "loading" || t.duration === Infinity || t.type === "loading") return;
317
+ let r;
318
+ return D || u || it && Et ? (() => {
319
+ if (St.current < gt.current) {
320
+ let b = (/* @__PURE__ */ new Date()).getTime() - gt.current;
321
+ O.current = O.current - b;
322
+ }
323
+ St.current = (/* @__PURE__ */ new Date()).getTime();
324
+ })() : O.current !== Infinity && (gt.current = (/* @__PURE__ */ new Date()).getTime(), r = setTimeout(() => {
325
+ var b;
326
+ (b = t.onAutoClose) == null || b.call(t, t), $();
327
+ }, O.current)), () => clearTimeout(r);
328
+ }, [
329
+ D,
330
+ u,
331
+ t,
332
+ N,
333
+ it,
334
+ Et,
335
+ $
336
+ ]), React.useEffect(() => {
337
+ t.delete && $();
338
+ }, [$, t.delete]);
339
+ function Zt() {
340
+ var r, m, c;
341
+ return P != null && P.loading ? React.createElement("div", {
342
+ className: M(s == null ? void 0 : s.loader, (r = t == null ? void 0 : t.classNames) == null ? void 0 : r.loader, "sonner-loader"),
343
+ "data-visible": N === "loading"
344
+ }, P.loading) : rt ? React.createElement("div", {
345
+ className: M(s == null ? void 0 : s.loader, (m = t == null ? void 0 : t.classNames) == null ? void 0 : m.loader, "sonner-loader"),
346
+ "data-visible": N === "loading"
347
+ }, rt) : React.createElement(Yt, {
348
+ className: M(s == null ? void 0 : s.loader, (c = t == null ? void 0 : t.classNames) == null ? void 0 : c.loader),
349
+ visible: N === "loading"
350
+ });
351
+ }
352
+ return React.createElement("li", {
353
+ tabIndex: 0,
354
+ ref: k,
355
+ className: M(ot, Kt, s == null ? void 0 : s.toast, (Dt = t == null ? void 0 : t.classNames) == null ? void 0 : Dt.toast, s == null ? void 0 : s.default, s == null ? void 0 : s[N], (Pt = t == null ? void 0 : t.classNames) == null ? void 0 : Pt[N]),
356
+ "data-sonner-toast": "",
357
+ "data-rich-colors": (Nt = t.richColors) != null ? Nt : F,
358
+ "data-styled": !(t.jsx || t.unstyled || a),
359
+ "data-mounted": W,
360
+ "data-promise": !!t.promise,
361
+ "data-swiped": h,
362
+ "data-removed": A,
363
+ "data-visible": Ut,
364
+ "data-y-position": Gt,
365
+ "data-x-position": Qt,
366
+ "data-index": g,
367
+ "data-front": Vt,
368
+ "data-swiping": L,
369
+ "data-dismissible": V,
370
+ "data-type": N,
371
+ "data-invert": qt,
372
+ "data-swipe-out": ct,
373
+ "data-swipe-direction": lt,
374
+ "data-expanded": !!(D || B && W),
375
+ style: {
376
+ "--index": g,
377
+ "--toasts-before": g,
378
+ "--z-index": i.length - g,
379
+ "--offset": `${A ? R : U.current}px`,
380
+ "--initial-height": B ? "auto" : `${p}px`,
381
+ ...ut,
382
+ ...t.style
383
+ },
384
+ onDragEnd: () => {
385
+ z(!1), C(null), K.current = null;
386
+ },
387
+ onPointerDown: (r) => {
388
+ ht || !V || (G.current = /* @__PURE__ */ new Date(), j(U.current), r.target.setPointerCapture(r.pointerId), r.target.tagName !== "BUTTON" && (z(!0), K.current = {
389
+ x: r.clientX,
390
+ y: r.clientY
391
+ }));
392
+ },
393
+ onPointerUp: () => {
394
+ var x, Q, q, Z;
395
+ if (ct || !V) return;
396
+ K.current = null;
397
+ let r = Number(((x = k.current) == null ? void 0 : x.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), m = Number(((Q = k.current) == null ? void 0 : Q.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), c = (/* @__PURE__ */ new Date()).getTime() - ((q = G.current) == null ? void 0 : q.getTime()), b = Y === "x" ? r : m, I = Math.abs(b) / c;
398
+ if (Math.abs(b) >= ye || I > .11) {
399
+ j(U.current), (Z = t.onDismiss) == null || Z.call(t, t), J(Y === "x" ? r > 0 ? "right" : "left" : m > 0 ? "down" : "up"), $(), d(!0), y(!1);
400
+ return;
401
+ }
402
+ z(!1), C(null);
403
+ },
404
+ onPointerMove: (r) => {
405
+ var Q, q, Z, zt;
406
+ if (!K.current || !V || ((Q = window.getSelection()) == null ? void 0 : Q.toString().length) > 0) return;
407
+ let c = r.clientY - K.current.y, b = r.clientX - K.current.x, I = (q = n.swipeDirections) != null ? q : xe(st);
408
+ !Y && (Math.abs(b) > 1 || Math.abs(c) > 1) && C(Math.abs(b) > Math.abs(c) ? "x" : "y");
409
+ let x = {
410
+ x: 0,
411
+ y: 0
412
+ };
413
+ Y === "y" ? (I.includes("top") || I.includes("bottom")) && (I.includes("top") && c < 0 || I.includes("bottom") && c > 0) && (x.y = c) : Y === "x" && (I.includes("left") || I.includes("right")) && (I.includes("left") && b < 0 || I.includes("right") && b > 0) && (x.x = b), (Math.abs(x.x) > 0 || Math.abs(x.y) > 0) && y(!0), (Z = k.current) == null || Z.style.setProperty("--swipe-amount-x", `${x.x}px`), (zt = k.current) == null || zt.style.setProperty("--swipe-amount-y", `${x.y}px`);
414
+ }
415
+ }, Jt && !t.jsx ? React.createElement("button", {
416
+ "aria-label": nt,
417
+ "data-disabled": ht,
418
+ "data-close-button": !0,
419
+ onClick: ht || !V ? () => {} : () => {
420
+ var r;
421
+ $(), (r = t.onDismiss) == null || r.call(t, t);
422
+ },
423
+ className: M(s == null ? void 0 : s.closeButton, (Bt = t == null ? void 0 : t.classNames) == null ? void 0 : Bt.closeButton)
424
+ }, (Ct = P == null ? void 0 : P.close) != null ? Ct : Ot) : null, t.jsx || isValidElement(t.title) ? t.jsx ? t.jsx : typeof t.title == "function" ? t.title() : t.title : React.createElement(React.Fragment, null, N || t.icon || t.promise ? React.createElement("div", {
425
+ "data-icon": "",
426
+ className: M(s == null ? void 0 : s.icon, (kt = t == null ? void 0 : t.classNames) == null ? void 0 : kt.icon)
427
+ }, t.promise || t.type === "loading" && !t.icon ? t.icon || Zt() : null, t.type !== "loading" ? t.icon || (P == null ? void 0 : P[N]) || jt(N) : null) : null, React.createElement("div", {
428
+ "data-content": "",
429
+ className: M(s == null ? void 0 : s.content, (It = t == null ? void 0 : t.classNames) == null ? void 0 : It.content)
430
+ }, React.createElement("div", {
431
+ "data-title": "",
432
+ className: M(s == null ? void 0 : s.title, (Mt = t == null ? void 0 : t.classNames) == null ? void 0 : Mt.title)
433
+ }, typeof t.title == "function" ? t.title() : t.title), t.description ? React.createElement("div", {
434
+ "data-description": "",
435
+ className: M(at, Xt, s == null ? void 0 : s.description, (Ht = t == null ? void 0 : t.classNames) == null ? void 0 : Ht.description)
436
+ }, typeof t.description == "function" ? t.description() : t.description) : null), isValidElement(t.cancel) ? t.cancel : t.cancel && tt(t.cancel) ? React.createElement("button", {
437
+ "data-button": !0,
438
+ "data-cancel": !0,
439
+ style: t.cancelButtonStyle || ft,
440
+ onClick: (r) => {
441
+ var m, c;
442
+ tt(t.cancel) && V && ((c = (m = t.cancel).onClick) == null || c.call(m, r), $());
443
+ },
444
+ className: M(s == null ? void 0 : s.cancelButton, (At = t == null ? void 0 : t.classNames) == null ? void 0 : At.cancelButton)
445
+ }, t.cancel.label) : null, isValidElement(t.action) ? t.action : t.action && tt(t.action) ? React.createElement("button", {
446
+ "data-button": !0,
447
+ "data-action": !0,
448
+ style: t.actionButtonStyle || l,
449
+ onClick: (r) => {
450
+ var m, c;
451
+ tt(t.action) && ((c = (m = t.action).onClick) == null || c.call(m, r), !r.defaultPrevented && $());
452
+ },
453
+ className: M(s == null ? void 0 : s.actionButton, (Lt = t == null ? void 0 : t.classNames) == null ? void 0 : Lt.actionButton)
454
+ }, t.action.label) : null));
455
+ };
456
+ function _t() {
457
+ if (typeof window == "undefined" || typeof document == "undefined") return "ltr";
458
+ let n = document.documentElement.getAttribute("dir");
459
+ return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
460
+ }
461
+ function Te(n, e) {
462
+ let t = {};
463
+ return [n, e].forEach((a, u) => {
464
+ let f = u === 1, w = f ? "--mobile-offset" : "--offset", S = f ? ge : me;
465
+ function g(i) {
466
+ [
467
+ "top",
468
+ "right",
469
+ "bottom",
470
+ "left"
471
+ ].forEach((D) => {
472
+ t[`${w}-${D}`] = typeof i == "number" ? `${i}px` : i;
473
+ });
474
+ }
475
+ typeof a == "number" || typeof a == "string" ? g(a) : typeof a == "object" ? [
476
+ "top",
477
+ "right",
478
+ "bottom",
479
+ "left"
480
+ ].forEach((i) => {
481
+ a[i] === void 0 ? t[`${w}-${i}`] = S : t[`${w}-${i}`] = typeof a[i] == "number" ? `${a[i]}px` : a[i];
482
+ }) : g(S);
483
+ }), t;
484
+ }
485
+ var $e = forwardRef(function(e, t) {
486
+ let { invert: a, position: u = "bottom-right", hotkey: f = ["altKey", "KeyT"], expand: w, closeButton: S, className: g, offset: i, mobileOffset: D, theme: T = "light", richColors: F, duration: et, style: ut, visibleToasts: ft = pe, toastOptions: l, dir: ot = _t(), gap: at = be, loadingIcon: X, icons: st, containerAriaLabel: pt = "Notifications", pauseWhenPageIsHidden: rt } = e, [B, s] = React.useState([]), P = React.useMemo(() => Array.from(new Set([u].concat(B.filter((d) => d.position).map((d) => d.position)))), [B, u]), [nt, it] = React.useState([]), [Y, C] = React.useState(!1), [lt, J] = React.useState(!1), [W, H] = React.useState(T !== "system" ? T : typeof window != "undefined" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = React.useRef(null), mt = f.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = React.useRef(null), z = React.useRef(!1), ct = React.useCallback((d) => {
487
+ s((h) => {
488
+ var y;
489
+ return (y = h.find((R) => R.id === d.id)) != null && y.delete || v.dismiss(d.id), h.filter(({ id: R }) => R !== d.id);
490
+ });
491
+ }, []);
492
+ return React.useEffect(() => v.subscribe((d) => {
493
+ if (d.dismiss) {
494
+ s((h) => h.map((y) => y.id === d.id ? {
495
+ ...y,
496
+ delete: !0
497
+ } : y));
498
+ return;
499
+ }
500
+ setTimeout(() => {
501
+ vt.flushSync(() => {
502
+ s((h) => {
503
+ let y = h.findIndex((R) => R.id === d.id);
504
+ return y !== -1 ? [
505
+ ...h.slice(0, y),
506
+ {
507
+ ...h[y],
508
+ ...d
509
+ },
510
+ ...h.slice(y + 1)
511
+ ] : [d, ...h];
512
+ });
513
+ });
514
+ });
515
+ }), []), React.useEffect(() => {
516
+ if (T !== "system") {
517
+ H(T);
518
+ return;
519
+ }
520
+ if (T === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? H("dark") : H("light")), typeof window == "undefined") return;
521
+ let d = window.matchMedia("(prefers-color-scheme: dark)");
522
+ try {
523
+ d.addEventListener("change", ({ matches: h }) => {
524
+ H(h ? "dark" : "light");
525
+ });
526
+ } catch (h) {
527
+ d.addListener(({ matches: y }) => {
528
+ try {
529
+ H(y ? "dark" : "light");
530
+ } catch (R) {
531
+ console.error(R);
532
+ }
533
+ });
534
+ }
535
+ }, [T]), React.useEffect(() => {
536
+ B.length <= 1 && C(!1);
537
+ }, [B]), React.useEffect(() => {
538
+ let d = (h) => {
539
+ var R, j;
540
+ f.every((p) => h[p] || h.code === p) && (C(!0), (R = A.current) == null || R.focus()), h.code === "Escape" && (document.activeElement === A.current || (j = A.current) != null && j.contains(document.activeElement)) && C(!1);
541
+ };
542
+ return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
543
+ }, [f]), React.useEffect(() => {
544
+ if (A.current) return () => {
545
+ L.current && (L.current.focus({ preventScroll: !0 }), L.current = null, z.current = !1);
546
+ };
547
+ }, [A.current]), React.createElement("section", {
548
+ ref: t,
549
+ "aria-label": `${pt} ${mt}`,
550
+ tabIndex: -1,
551
+ "aria-live": "polite",
552
+ "aria-relevant": "additions text",
553
+ "aria-atomic": "false",
554
+ suppressHydrationWarning: !0
555
+ }, P.map((d, h) => {
556
+ var j;
557
+ let [y, R] = d.split("-");
558
+ return B.length ? React.createElement("ol", {
559
+ key: d,
560
+ dir: ot === "auto" ? _t() : ot,
561
+ tabIndex: -1,
562
+ ref: A,
563
+ className: g,
564
+ "data-sonner-toaster": !0,
565
+ "data-theme": W,
566
+ "data-y-position": y,
567
+ "data-lifted": Y && B.length > 1 && !w,
568
+ "data-x-position": R,
569
+ style: {
570
+ "--front-toast-height": `${((j = nt[0]) == null ? void 0 : j.height) || 0}px`,
571
+ "--width": `${he}px`,
572
+ "--gap": `${at}px`,
573
+ ...ut,
574
+ ...Te(i, D)
575
+ },
576
+ onBlur: (p) => {
577
+ z.current && !p.currentTarget.contains(p.relatedTarget) && (z.current = !1, L.current && (L.current.focus({ preventScroll: !0 }), L.current = null));
578
+ },
579
+ onFocus: (p) => {
580
+ p.target instanceof HTMLElement && p.target.dataset.dismissible === "false" || z.current || (z.current = !0, L.current = p.relatedTarget);
581
+ },
582
+ onMouseEnter: () => C(!0),
583
+ onMouseMove: () => C(!0),
584
+ onMouseLeave: () => {
585
+ lt || C(!1);
586
+ },
587
+ onDragEnd: () => C(!1),
588
+ onPointerDown: (p) => {
589
+ p.target instanceof HTMLElement && p.target.dataset.dismissible === "false" || J(!0);
590
+ },
591
+ onPointerUp: () => J(!1)
592
+ }, B.filter((p) => !p.position && h === 0 || p.position === d).map((p, _) => {
593
+ var O, G;
594
+ return React.createElement(ve, {
595
+ key: p.id,
596
+ icons: st,
597
+ index: _,
598
+ toast: p,
599
+ defaultRichColors: F,
600
+ duration: (O = l == null ? void 0 : l.duration) != null ? O : et,
601
+ className: l == null ? void 0 : l.className,
602
+ descriptionClassName: l == null ? void 0 : l.descriptionClassName,
603
+ invert: a,
604
+ visibleToasts: ft,
605
+ closeButton: (G = l == null ? void 0 : l.closeButton) != null ? G : S,
606
+ interacting: lt,
607
+ position: d,
608
+ style: l == null ? void 0 : l.style,
609
+ unstyled: l == null ? void 0 : l.unstyled,
610
+ classNames: l == null ? void 0 : l.classNames,
611
+ cancelButtonStyle: l == null ? void 0 : l.cancelButtonStyle,
612
+ actionButtonStyle: l == null ? void 0 : l.actionButtonStyle,
613
+ removeToast: ct,
614
+ toasts: B.filter((k) => k.position == p.position),
615
+ heights: nt.filter((k) => k.position == p.position),
616
+ setHeights: it,
617
+ expandByDefault: w,
618
+ gap: at,
619
+ loadingIcon: X,
620
+ expanded: Y,
621
+ pauseWhenPageIsHidden: rt,
622
+ swipeDirections: e.swipeDirections
623
+ });
624
+ })) : null;
625
+ }));
626
+ });
627
+
628
+ //#endregion
629
+ export { $e };
630
+ //# sourceMappingURL=index.js.map