@pautena/react-design-system 2.0.0-alpha.1b → 2.0.0-alpha.4

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 (1029) hide show
  1. package/README.md +12 -2
  2. package/dist/_virtual/index.mjs +6 -0
  3. package/dist/_virtual/index.mjs.map +1 -0
  4. package/dist/_virtual/index2.mjs +5 -0
  5. package/dist/_virtual/index2.mjs.map +1 -0
  6. package/dist/_virtual/use-sync-external-store-shim.development.mjs +5 -0
  7. package/dist/_virtual/use-sync-external-store-shim.development.mjs.map +1 -0
  8. package/dist/_virtual/use-sync-external-store-shim.production.mjs +5 -0
  9. package/dist/_virtual/use-sync-external-store-shim.production.mjs.map +1 -0
  10. package/dist/_virtual/with-selector.development.mjs +5 -0
  11. package/dist/_virtual/with-selector.development.mjs.map +1 -0
  12. package/dist/_virtual/with-selector.mjs +6 -0
  13. package/dist/_virtual/with-selector.mjs.map +1 -0
  14. package/dist/_virtual/with-selector.production.mjs +5 -0
  15. package/dist/_virtual/with-selector.production.mjs.map +1 -0
  16. package/dist/_virtual/with-selector2.mjs +5 -0
  17. package/dist/_virtual/with-selector2.mjs.map +1 -0
  18. package/dist/components/board/board.d.ts +28 -0
  19. package/dist/components/board/board.mjs +48 -0
  20. package/dist/components/board/board.mjs.map +1 -0
  21. package/dist/components/board/index.d.ts +2 -0
  22. package/dist/components/breadcrumbs/breadcrumbs.d.ts +41 -0
  23. package/dist/components/breadcrumbs/breadcrumbs.mjs +22 -0
  24. package/dist/components/breadcrumbs/breadcrumbs.mjs.map +1 -0
  25. package/dist/components/breadcrumbs/index.d.ts +2 -0
  26. package/dist/components/confirm-dialog/confirm-dialog.d.ts +55 -0
  27. package/dist/components/confirm-dialog/confirm-dialog.mjs +75 -0
  28. package/dist/components/confirm-dialog/confirm-dialog.mjs.map +1 -0
  29. package/dist/components/confirm-dialog/index.d.ts +2 -0
  30. package/dist/components/content/content.d.ts +15 -0
  31. package/dist/components/content/content.mjs +20 -0
  32. package/dist/components/content/content.mjs.map +1 -0
  33. package/dist/components/content/index.d.ts +2 -0
  34. package/dist/components/date-range-calendar/date-range-calendar.d.ts +22 -0
  35. package/dist/components/date-range-calendar/date-range-calendar.mjs +42 -0
  36. package/dist/components/date-range-calendar/date-range-calendar.mjs.map +1 -0
  37. package/dist/components/date-range-calendar/index.d.ts +2 -0
  38. package/dist/components/date-range-picker/date-range-picker.mjs +62 -0
  39. package/dist/components/date-range-picker/date-range-picker.mjs.map +1 -0
  40. package/dist/components/date-range-picker/index.d.ts +2 -0
  41. package/dist/components/dialog/dialog.d.ts +53 -0
  42. package/dist/components/dialog/dialog.mjs +49 -0
  43. package/dist/components/dialog/dialog.mjs.map +1 -0
  44. package/dist/components/dialog/index.d.ts +2 -0
  45. package/dist/components/drawer/drawer.d.ts +5 -0
  46. package/dist/components/drawer/drawer.mjs +22 -0
  47. package/dist/components/drawer/drawer.mjs.map +1 -0
  48. package/dist/components/drawer/index.d.ts +1 -0
  49. package/dist/components/drawer-app-bar/drawer-app-bar.d.ts +5 -0
  50. package/dist/components/drawer-app-bar/drawer-app-bar.mjs +33 -0
  51. package/dist/components/drawer-app-bar/drawer-app-bar.mjs.map +1 -0
  52. package/dist/components/drawer-app-bar/index.d.ts +2 -0
  53. package/dist/components/drawer-content/drawer-content.d.ts +5 -0
  54. package/dist/components/drawer-content/drawer-content.mjs +84 -0
  55. package/dist/components/drawer-content/drawer-content.mjs.map +1 -0
  56. package/dist/components/drawer-content/index.d.ts +1 -0
  57. package/dist/components/drawer-context/drawer-context.d.ts +46 -0
  58. package/dist/components/drawer-context/drawer-context.mjs +17 -0
  59. package/dist/components/drawer-context/drawer-context.mjs.map +1 -0
  60. package/dist/components/drawer-context/drawer-provider.d.ts +6 -0
  61. package/dist/components/drawer-context/drawer-provider.mjs +41 -0
  62. package/dist/components/drawer-context/drawer-provider.mjs.map +1 -0
  63. package/dist/components/drawer-context/index.d.ts +2 -0
  64. package/dist/components/drawer-item/drawer-item-link.d.ts +48 -0
  65. package/dist/components/drawer-item/drawer-item-link.mjs +80 -0
  66. package/dist/components/drawer-item/drawer-item-link.mjs.map +1 -0
  67. package/dist/components/drawer-item/drawer-item.d.ts +20 -0
  68. package/dist/components/drawer-item/drawer-item.mjs +49 -0
  69. package/dist/components/drawer-item/drawer-item.mjs.map +1 -0
  70. package/dist/components/drawer-item/drawer-menu-item.d.ts +32 -0
  71. package/dist/components/drawer-item/drawer-menu-item.mjs +156 -0
  72. package/dist/components/drawer-item/drawer-menu-item.mjs.map +1 -0
  73. package/dist/components/drawer-item/index.d.ts +4 -0
  74. package/dist/components/drawer-layout/drawer-layout.d.ts +62 -0
  75. package/dist/components/drawer-layout/drawer-layout.mjs +32 -0
  76. package/dist/components/drawer-layout/drawer-layout.mjs.map +1 -0
  77. package/dist/components/drawer-layout/index.d.ts +2 -0
  78. package/dist/components/drawer-main/drawer-main.d.ts +6 -0
  79. package/dist/components/drawer-main/drawer-main.mjs +9 -0
  80. package/dist/components/drawer-main/drawer-main.mjs.map +1 -0
  81. package/dist/components/drawer-main/index.d.ts +2 -0
  82. package/dist/components/drawer-subheader/drawer-subheader.d.ts +6 -0
  83. package/dist/components/drawer-subheader/drawer-subheader.mjs +17 -0
  84. package/dist/components/drawer-subheader/drawer-subheader.mjs.map +1 -0
  85. package/dist/components/drawer-subheader/index.d.ts +2 -0
  86. package/dist/components/drawerx/drawer.mock.d.ts +11 -0
  87. package/dist/components/drawerx/drawer.types.d.ts +189 -0
  88. package/dist/components/drawerx/drawer.types.mjs +8 -0
  89. package/dist/components/drawerx/drawer.types.mjs.map +1 -0
  90. package/dist/components/drawerx/index.d.ts +10 -0
  91. package/dist/components/expandable-alert/expandable-alert.d.ts +47 -0
  92. package/dist/components/expandable-alert/expandable-alert.mjs +77 -0
  93. package/dist/components/expandable-alert/expandable-alert.mjs.map +1 -0
  94. package/dist/components/expandable-alert/index.d.ts +2 -0
  95. package/dist/components/form-dialog/form-dialog.d.ts +78 -0
  96. package/dist/components/form-dialog/form-dialog.mjs +93 -0
  97. package/dist/components/form-dialog/form-dialog.mjs.map +1 -0
  98. package/dist/components/form-dialog/index.d.ts +2 -0
  99. package/dist/components/forms/autocomplete/autocomplete.d.ts +63 -0
  100. package/dist/components/forms/autocomplete/autocomplete.mjs +117 -0
  101. package/dist/components/forms/autocomplete/autocomplete.mjs.map +1 -0
  102. package/dist/components/forms/autocomplete/index.d.ts +2 -0
  103. package/dist/components/forms/checkbox-field/checkbox-field.d.ts +37 -0
  104. package/dist/components/forms/checkbox-field/checkbox-field.mjs +47 -0
  105. package/dist/components/forms/checkbox-field/checkbox-field.mjs.map +1 -0
  106. package/dist/components/forms/checkbox-field/index.d.ts +2 -0
  107. package/dist/components/forms/select/index.d.ts +2 -0
  108. package/dist/components/forms/select/select.d.ts +82 -0
  109. package/dist/components/forms/select/select.mjs +82 -0
  110. package/dist/components/forms/select/select.mjs.map +1 -0
  111. package/dist/components/forms/text-field/index.d.ts +2 -0
  112. package/dist/components/forms/text-field/text-field.d.ts +65 -0
  113. package/dist/components/forms/text-field/text-field.mjs +73 -0
  114. package/dist/components/forms/text-field/text-field.mjs.map +1 -0
  115. package/dist/components/forms/textarea-field/index.d.ts +2 -0
  116. package/dist/components/forms/textarea-field/textarea-field.d.ts +61 -0
  117. package/dist/components/forms/textarea-field/textarea-field.mjs +74 -0
  118. package/dist/components/forms/textarea-field/textarea-field.mjs.map +1 -0
  119. package/dist/components/group-value-card/group-value-card.d.ts +36 -0
  120. package/dist/components/group-value-card/group-value-card.mjs +54 -0
  121. package/dist/components/group-value-card/group-value-card.mjs.map +1 -0
  122. package/dist/components/group-value-card/index.d.ts +2 -0
  123. package/dist/components/header/header-title.d.ts +35 -0
  124. package/dist/components/header/header-title.mjs +35 -0
  125. package/dist/components/header/header-title.mjs.map +1 -0
  126. package/dist/components/header/header.d.ts +6 -0
  127. package/dist/components/header/header.dummy.d.ts +5 -0
  128. package/dist/components/header/header.mjs +133 -0
  129. package/dist/components/header/header.mjs.map +1 -0
  130. package/dist/components/header/header.types.d.ts +146 -0
  131. package/dist/components/header/index.d.ts +3 -0
  132. package/dist/components/header-layout/header-layout.d.ts +89 -0
  133. package/dist/components/header-layout/header-layout.mjs +47 -0
  134. package/dist/components/header-layout/header-layout.mjs.map +1 -0
  135. package/dist/components/header-layout/index.d.ts +2 -0
  136. package/dist/components/list-panel/index.d.ts +4 -0
  137. package/dist/components/list-panel/list-panel-panel.d.ts +18 -0
  138. package/dist/components/list-panel/list-panel-panel.mjs +10 -0
  139. package/dist/components/list-panel/list-panel-panel.mjs.map +1 -0
  140. package/dist/components/list-panel/list-panel.context.mjs +8 -0
  141. package/dist/components/list-panel/list-panel.context.mjs.map +1 -0
  142. package/dist/components/list-panel/list-panel.d.ts +43 -0
  143. package/dist/components/list-panel/list-panel.mjs +77 -0
  144. package/dist/components/list-panel/list-panel.mjs.map +1 -0
  145. package/dist/components/list-panel/list-panel.mocks.d.ts +5 -0
  146. package/dist/components/markdown/index.d.ts +1 -0
  147. package/dist/components/markdown/markdown.d.ts +43 -0
  148. package/dist/components/markdown/markdown.mjs +47 -0
  149. package/dist/components/markdown/markdown.mjs.map +1 -0
  150. package/dist/components/notification-center/index.d.ts +2 -0
  151. package/dist/components/notification-center/notification-center-context.d.ts +10 -0
  152. package/dist/components/notification-center/notification-center-context.mjs +15 -0
  153. package/dist/components/notification-center/notification-center-context.mjs.map +1 -0
  154. package/dist/components/notification-center/notification-center-provider.d.ts +11 -0
  155. package/dist/components/notification-center/notification-center-provider.mjs +31 -0
  156. package/dist/components/notification-center/notification-center-provider.mjs.map +1 -0
  157. package/dist/components/placeholder/index.d.ts +2 -0
  158. package/dist/components/placeholder/placeholder.d.ts +75 -0
  159. package/dist/components/placeholder/placeholder.mjs +59 -0
  160. package/dist/components/placeholder/placeholder.mjs.map +1 -0
  161. package/dist/components/placeholder/placeholder.mock.d.ts +2 -0
  162. package/dist/components/remote-data-table/index.d.ts +3 -0
  163. package/dist/components/remote-data-table/query-spec-utils.d.ts +8 -0
  164. package/dist/components/remote-data-table/query-spec-utils.mjs.map +1 -0
  165. package/dist/components/remote-data-table/remote-data-table-body.d.ts +26 -0
  166. package/dist/components/remote-data-table/remote-data-table-body.mjs +93 -0
  167. package/dist/components/remote-data-table/remote-data-table-body.mjs.map +1 -0
  168. package/dist/components/remote-data-table/remote-data-table-pagination.d.ts +16 -0
  169. package/dist/components/remote-data-table/remote-data-table-pagination.mjs +86 -0
  170. package/dist/components/remote-data-table/remote-data-table-pagination.mjs.map +1 -0
  171. package/dist/components/remote-data-table/remote-data-table-query-builder.d.ts +13 -0
  172. package/dist/components/remote-data-table/remote-data-table-query-builder.mjs +265 -0
  173. package/dist/components/remote-data-table/remote-data-table-query-builder.mjs.map +1 -0
  174. package/dist/components/remote-data-table/remote-data-table.d.ts +68 -0
  175. package/dist/components/remote-data-table/remote-data-table.mjs +67 -0
  176. package/dist/components/remote-data-table/remote-data-table.mjs.map +1 -0
  177. package/dist/components/remote-data-table/remote-data-table.mocks.d.ts +30 -0
  178. package/dist/components/remote-data-table/remote-data-table.types.d.ts +189 -0
  179. package/dist/components/remote-data-table/use-remote-data-table.d.ts +19 -0
  180. package/dist/components/remote-data-table/use-remote-data-table.mjs.map +1 -0
  181. package/dist/components/skeleton-card/index.d.ts +2 -0
  182. package/dist/components/skeleton-card/skeleton-card.d.ts +20 -0
  183. package/dist/components/skeleton-card/skeleton-card.mjs +18 -0
  184. package/dist/components/skeleton-card/skeleton-card.mjs.map +1 -0
  185. package/dist/components/skeleton-grid/index.d.ts +2 -0
  186. package/dist/components/skeleton-grid/skeleton-grid.d.ts +15 -0
  187. package/dist/components/skeleton-grid/skeleton-grid.mjs +10 -0
  188. package/dist/components/skeleton-grid/skeleton-grid.mjs.map +1 -0
  189. package/dist/components/tab-card/index.d.ts +4 -0
  190. package/dist/components/tab-card/tab-card-panel.d.ts +22 -0
  191. package/dist/components/tab-card/tab-card-panel.mjs +15 -0
  192. package/dist/components/tab-card/tab-card-panel.mjs.map +1 -0
  193. package/dist/components/tab-card/tab-card.context.mjs +7 -0
  194. package/dist/components/tab-card/tab-card.context.mjs.map +1 -0
  195. package/dist/components/tab-card/tab-card.d.ts +43 -0
  196. package/dist/components/tab-card/tab-card.dummy.d.ts +14 -0
  197. package/dist/components/tab-card/tab-card.mjs +50 -0
  198. package/dist/components/tab-card/tab-card.mjs.map +1 -0
  199. package/dist/components/tab-panel/index.d.ts +1 -0
  200. package/dist/components/tab-panel/tab-panel.d.ts +22 -0
  201. package/dist/components/tab-panel/tab-panel.mjs +23 -0
  202. package/dist/components/tab-panel/tab-panel.mjs.map +1 -0
  203. package/dist/components/tab-provider/index.d.ts +3 -0
  204. package/dist/components/tab-provider/tab-provider.context.d.ts +13 -0
  205. package/dist/components/tab-provider/tab-provider.context.mjs +8 -0
  206. package/dist/components/tab-provider/tab-provider.context.mjs.map +1 -0
  207. package/dist/components/tab-provider/tab-provider.provider.d.ts +16 -0
  208. package/dist/components/tab-provider/tab-provider.provider.mjs +14 -0
  209. package/dist/components/tab-provider/tab-provider.provider.mjs.map +1 -0
  210. package/dist/components/ui/alert-dialog.d.ts +18 -0
  211. package/dist/components/ui/alert-dialog.mjs +159 -0
  212. package/dist/components/ui/alert-dialog.mjs.map +1 -0
  213. package/dist/components/ui/alert.d.ts +10 -0
  214. package/dist/components/ui/alert.mjs +78 -0
  215. package/dist/components/ui/alert.mjs.map +1 -0
  216. package/dist/components/ui/avatar.d.ts +11 -0
  217. package/dist/components/ui/badge.d.ts +1 -1
  218. package/dist/components/ui/breadcrumb.d.ts +10 -0
  219. package/dist/components/ui/breadcrumb.mjs +97 -0
  220. package/dist/components/ui/breadcrumb.mjs.map +1 -0
  221. package/dist/components/ui/button.d.ts +2 -2
  222. package/dist/components/ui/calendar.d.ts +10 -0
  223. package/dist/components/ui/calendar.mjs +181 -0
  224. package/dist/components/ui/calendar.mjs.map +1 -0
  225. package/dist/components/ui/checkbox.d.ts +3 -0
  226. package/dist/components/ui/checkbox.mjs +30 -0
  227. package/dist/components/ui/checkbox.mjs.map +1 -0
  228. package/dist/components/ui/collapsible.d.ts +5 -0
  229. package/dist/components/ui/collapsible.mjs +19 -0
  230. package/dist/components/ui/collapsible.mjs.map +1 -0
  231. package/dist/components/ui/dialog.d.ts +17 -0
  232. package/dist/components/ui/dialog.mjs +144 -0
  233. package/dist/components/ui/dialog.mjs.map +1 -0
  234. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  235. package/dist/components/ui/dropdown-menu.mjs +142 -0
  236. package/dist/components/ui/dropdown-menu.mjs.map +1 -0
  237. package/dist/components/ui/field.d.ts +24 -0
  238. package/dist/components/ui/field.mjs +118 -0
  239. package/dist/components/ui/field.mjs.map +1 -0
  240. package/dist/components/ui/input.d.ts +3 -0
  241. package/dist/components/ui/input.mjs +21 -0
  242. package/dist/components/ui/input.mjs.map +1 -0
  243. package/dist/components/ui/label.d.ts +3 -0
  244. package/dist/components/ui/label.mjs +19 -0
  245. package/dist/components/ui/label.mjs.map +1 -0
  246. package/dist/components/ui/pagination.d.ts +17 -0
  247. package/dist/components/ui/popover.d.ts +9 -0
  248. package/dist/components/ui/popover.mjs +49 -0
  249. package/dist/components/ui/popover.mjs.map +1 -0
  250. package/dist/components/ui/separator.d.ts +3 -0
  251. package/dist/components/ui/sheet.d.ts +14 -0
  252. package/dist/components/ui/sheet.mjs +115 -0
  253. package/dist/components/ui/sheet.mjs.map +1 -0
  254. package/dist/components/ui/sidebar.d.ts +63 -0
  255. package/dist/components/ui/sidebar.mjs +451 -0
  256. package/dist/components/ui/sidebar.mjs.map +1 -0
  257. package/dist/components/ui/skeleton.d.ts +2 -0
  258. package/dist/components/ui/sonner.d.ts +3 -0
  259. package/dist/components/ui/sonner.mjs +41 -0
  260. package/dist/components/ui/sonner.mjs.map +1 -0
  261. package/dist/components/ui/table.d.ts +10 -0
  262. package/dist/components/ui/table.mjs +87 -0
  263. package/dist/components/ui/table.mjs.map +1 -0
  264. package/dist/components/ui/tabs.d.ts +10 -0
  265. package/dist/components/ui/tabs.mjs +76 -0
  266. package/dist/components/ui/tabs.mjs.map +1 -0
  267. package/dist/components/ui/textarea.d.ts +3 -0
  268. package/dist/components/ui/textarea.mjs +19 -0
  269. package/dist/components/ui/textarea.mjs.map +1 -0
  270. package/dist/components/ui/tooltip.d.ts +6 -0
  271. package/dist/components/ui/tooltip.mjs +55 -0
  272. package/dist/components/ui/tooltip.mjs.map +1 -0
  273. package/dist/components/value-boolean/index.d.ts +2 -0
  274. package/dist/components/value-boolean/value-boolean.d.ts +10 -0
  275. package/dist/components/value-boolean/value-boolean.mjs +42 -0
  276. package/dist/components/value-boolean/value-boolean.mjs.map +1 -0
  277. package/dist/components/value-card/index.d.ts +2 -0
  278. package/dist/components/value-card/value-card.d.ts +15 -0
  279. package/dist/components/value-card/value-card.mjs +20 -0
  280. package/dist/components/value-card/value-card.mjs.map +1 -0
  281. package/dist/components/value-content/index.d.ts +2 -0
  282. package/dist/components/value-content/value-content.d.ts +38 -0
  283. package/dist/components/value-content/value-content.mjs +39 -0
  284. package/dist/components/value-content/value-content.mjs.map +1 -0
  285. package/dist/components/value-datetime/index.d.ts +2 -0
  286. package/dist/components/value-datetime/value-datetime.d.ts +15 -0
  287. package/dist/components/value-datetime/value-datetime.mjs +28 -0
  288. package/dist/components/value-datetime/value-datetime.mjs.map +1 -0
  289. package/dist/components/value-image/index.d.ts +2 -0
  290. package/dist/components/value-image/value-image.d.ts +15 -0
  291. package/dist/components/value-image/value-image.mjs +17 -0
  292. package/dist/components/value-image/value-image.mjs.map +1 -0
  293. package/dist/components/value-item/index.d.ts +2 -0
  294. package/dist/components/value-item/value-item.d.ts +39 -0
  295. package/dist/components/value-item/value-item.mjs +86 -0
  296. package/dist/components/value-item/value-item.mjs.map +1 -0
  297. package/dist/components/value-label/index.d.ts +2 -0
  298. package/dist/components/value-label/value-label.d.ts +16 -0
  299. package/dist/components/value-label/value-label.mjs +25 -0
  300. package/dist/components/value-label/value-label.mjs.map +1 -0
  301. package/dist/components/value-rating/index.d.ts +2 -0
  302. package/dist/components/value-rating/value-rating.d.ts +16 -0
  303. package/dist/components/value-rating/value-rating.mjs +41 -0
  304. package/dist/components/value-rating/value-rating.mjs.map +1 -0
  305. package/dist/components/value-text/index.d.ts +2 -0
  306. package/dist/components/value-text/value-text.d.ts +10 -0
  307. package/dist/components/value-text/value-text.mjs +17 -0
  308. package/dist/components/value-text/value-text.mjs.map +1 -0
  309. package/dist/global.css +1 -1
  310. package/dist/hooks/use-dialog.d.ts +9 -0
  311. package/dist/hooks/use-dialog.mjs +9 -0
  312. package/dist/hooks/use-dialog.mjs.map +1 -0
  313. package/dist/hooks/use-mobile.mjs +21 -0
  314. package/dist/hooks/use-mobile.mjs.map +1 -0
  315. package/dist/index.d.ts +73 -69
  316. package/dist/index.mjs +136 -138
  317. package/dist/index.mjs.map +1 -1
  318. package/dist/node_modules/@base-ui/react/esm/accordion/root/AccordionRootDataAttributes.mjs +7 -0
  319. package/dist/node_modules/@base-ui/react/esm/accordion/root/AccordionRootDataAttributes.mjs.map +1 -0
  320. package/dist/node_modules/@base-ui/react/esm/alert-dialog/root/AlertDialogRoot.mjs +48 -0
  321. package/dist/node_modules/@base-ui/react/esm/alert-dialog/root/AlertDialogRoot.mjs.map +1 -0
  322. package/dist/node_modules/@base-ui/react/esm/checkbox/indicator/CheckboxIndicator.mjs +46 -0
  323. package/dist/node_modules/@base-ui/react/esm/checkbox/indicator/CheckboxIndicator.mjs.map +1 -0
  324. package/dist/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRoot.mjs +204 -0
  325. package/dist/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRoot.mjs.map +1 -0
  326. package/dist/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootContext.mjs +15 -0
  327. package/dist/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootContext.mjs.map +1 -0
  328. package/dist/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootDataAttributes.mjs +7 -0
  329. package/dist/node_modules/@base-ui/react/esm/checkbox/root/CheckboxRootDataAttributes.mjs.map +1 -0
  330. package/dist/node_modules/@base-ui/react/esm/checkbox/utils/useStateAttributesMapping.mjs +19 -0
  331. package/dist/node_modules/@base-ui/react/esm/checkbox/utils/useStateAttributesMapping.mjs.map +1 -0
  332. package/dist/node_modules/@base-ui/react/esm/checkbox-group/CheckboxGroupContext.mjs +15 -0
  333. package/dist/node_modules/@base-ui/react/esm/checkbox-group/CheckboxGroupContext.mjs.map +1 -0
  334. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanel.mjs +108 -0
  335. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanel.mjs.map +1 -0
  336. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanelCssVars.mjs +7 -0
  337. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanelCssVars.mjs.map +1 -0
  338. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanelDataAttributes.mjs +8 -0
  339. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/CollapsiblePanelDataAttributes.mjs.map +1 -0
  340. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/useCollapsiblePanel.mjs +168 -0
  341. package/dist/node_modules/@base-ui/react/esm/collapsible/panel/useCollapsiblePanel.mjs.map +1 -0
  342. package/dist/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRoot.mjs +45 -0
  343. package/dist/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRoot.mjs.map +1 -0
  344. package/dist/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRootContext.mjs +15 -0
  345. package/dist/node_modules/@base-ui/react/esm/collapsible/root/CollapsibleRootContext.mjs.map +1 -0
  346. package/dist/node_modules/@base-ui/react/esm/collapsible/root/stateAttributesMapping.mjs +10 -0
  347. package/dist/node_modules/@base-ui/react/esm/collapsible/root/stateAttributesMapping.mjs.map +1 -0
  348. package/dist/node_modules/@base-ui/react/esm/collapsible/root/useCollapsibleRoot.mjs +67 -0
  349. package/dist/node_modules/@base-ui/react/esm/collapsible/root/useCollapsibleRoot.mjs.map +1 -0
  350. package/dist/node_modules/@base-ui/react/esm/collapsible/trigger/CollapsibleTrigger.mjs +47 -0
  351. package/dist/node_modules/@base-ui/react/esm/collapsible/trigger/CollapsibleTrigger.mjs.map +1 -0
  352. package/dist/node_modules/@base-ui/react/esm/collapsible/trigger/CollapsibleTriggerDataAttributes.mjs +7 -0
  353. package/dist/node_modules/@base-ui/react/esm/collapsible/trigger/CollapsibleTriggerDataAttributes.mjs.map +1 -0
  354. package/dist/node_modules/@base-ui/react/esm/composite/composite.mjs +70 -0
  355. package/dist/node_modules/@base-ui/react/esm/composite/composite.mjs.map +1 -0
  356. package/dist/node_modules/@base-ui/react/esm/composite/constants.mjs +5 -0
  357. package/dist/node_modules/@base-ui/react/esm/composite/constants.mjs.map +1 -0
  358. package/dist/node_modules/@base-ui/react/esm/composite/item/CompositeItem.mjs +31 -0
  359. package/dist/node_modules/@base-ui/react/esm/composite/item/CompositeItem.mjs.map +1 -0
  360. package/dist/node_modules/@base-ui/react/esm/composite/item/useCompositeItem.mjs +35 -0
  361. package/dist/node_modules/@base-ui/react/esm/composite/item/useCompositeItem.mjs.map +1 -0
  362. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.mjs +82 -0
  363. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.mjs.map +1 -0
  364. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.mjs +24 -0
  365. package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.mjs.map +1 -0
  366. package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.mjs +56 -0
  367. package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.mjs.map +1 -0
  368. package/dist/node_modules/@base-ui/react/esm/composite/root/CompositeRoot.mjs +79 -0
  369. package/dist/node_modules/@base-ui/react/esm/composite/root/CompositeRoot.mjs.map +1 -0
  370. package/dist/node_modules/@base-ui/react/esm/composite/root/useCompositeRoot.mjs +135 -0
  371. package/dist/node_modules/@base-ui/react/esm/composite/root/useCompositeRoot.mjs.map +1 -0
  372. package/dist/node_modules/@base-ui/react/esm/context-menu/root/ContextMenuRootContext.mjs +15 -0
  373. package/dist/node_modules/@base-ui/react/esm/context-menu/root/ContextMenuRootContext.mjs.map +1 -0
  374. package/dist/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.mjs +40 -0
  375. package/dist/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.mjs.map +1 -0
  376. package/dist/node_modules/@base-ui/react/esm/dialog/close/DialogClose.mjs +41 -0
  377. package/dist/node_modules/@base-ui/react/esm/dialog/close/DialogClose.mjs.map +1 -0
  378. package/dist/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.mjs +25 -0
  379. package/dist/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.mjs.map +1 -0
  380. package/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.mjs +80 -0
  381. package/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.mjs.map +1 -0
  382. package/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.mjs +7 -0
  383. package/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.mjs.map +1 -0
  384. package/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupDataAttributes.mjs +8 -0
  385. package/dist/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupDataAttributes.mjs.map +1 -0
  386. package/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.mjs +31 -0
  387. package/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.mjs.map +1 -0
  388. package/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortalContext.mjs +15 -0
  389. package/dist/node_modules/@base-ui/react/esm/dialog/portal/DialogPortalContext.mjs.map +1 -0
  390. package/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.mjs +59 -0
  391. package/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.mjs.map +1 -0
  392. package/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.mjs +15 -0
  393. package/dist/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.mjs.map +1 -0
  394. package/dist/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.mjs +90 -0
  395. package/dist/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.mjs.map +1 -0
  396. package/dist/node_modules/@base-ui/react/esm/dialog/store/DialogStore.mjs +69 -0
  397. package/dist/node_modules/@base-ui/react/esm/dialog/store/DialogStore.mjs.map +1 -0
  398. package/dist/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.mjs +25 -0
  399. package/dist/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.mjs.map +1 -0
  400. package/dist/node_modules/@base-ui/react/esm/direction-provider/DirectionContext.mjs +11 -0
  401. package/dist/node_modules/@base-ui/react/esm/direction-provider/DirectionContext.mjs.map +1 -0
  402. package/dist/node_modules/@base-ui/react/esm/field/control/FieldControl.mjs +102 -0
  403. package/dist/node_modules/@base-ui/react/esm/field/control/FieldControl.mjs.map +1 -0
  404. package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.mjs +7 -0
  405. package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.mjs.map +1 -0
  406. package/dist/node_modules/@base-ui/react/esm/field/item/FieldItemContext.mjs +13 -0
  407. package/dist/node_modules/@base-ui/react/esm/field/item/FieldItemContext.mjs.map +1 -0
  408. package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.mjs +61 -0
  409. package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.mjs.map +1 -0
  410. package/dist/node_modules/@base-ui/react/esm/field/useField.mjs +52 -0
  411. package/dist/node_modules/@base-ui/react/esm/field/useField.mjs.map +1 -0
  412. package/dist/node_modules/@base-ui/react/esm/field/utils/constants.mjs +27 -0
  413. package/dist/node_modules/@base-ui/react/esm/field/utils/constants.mjs.map +1 -0
  414. package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.mjs +13 -0
  415. package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.mjs.map +1 -0
  416. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingDelayGroup.mjs +77 -0
  417. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingDelayGroup.mjs.map +1 -0
  418. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.mjs +281 -0
  419. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.mjs.map +1 -0
  420. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal.mjs +129 -0
  421. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingPortal.mjs.map +1 -0
  422. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore.mjs +61 -0
  423. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingRootStore.mjs.map +1 -0
  424. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.mjs +59 -0
  425. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.mjs.map +1 -0
  426. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.mjs +18 -0
  427. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.mjs.map +1 -0
  428. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.mjs +68 -0
  429. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.mjs.map +1 -0
  430. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClientPoint.mjs +89 -0
  431. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClientPoint.mjs.map +1 -0
  432. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.mjs +241 -0
  433. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.mjs.map +1 -0
  434. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.mjs +79 -0
  435. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloating.mjs.map +1 -0
  436. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.mjs +39 -0
  437. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.mjs.map +1 -0
  438. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFocus.mjs +98 -0
  439. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFocus.mjs.map +1 -0
  440. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHover.mjs +17 -0
  441. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHover.mjs.map +1 -0
  442. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.mjs +79 -0
  443. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverFloatingInteraction.mjs.map +1 -0
  444. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverInteractionSharedState.mjs +33 -0
  445. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverInteractionSharedState.mjs.map +1 -0
  446. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverReferenceInteraction.mjs +154 -0
  447. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useHoverReferenceInteraction.mjs.map +1 -0
  448. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions.mjs +49 -0
  449. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions.mjs.map +1 -0
  450. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.mjs +285 -0
  451. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.mjs.map +1 -0
  452. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.mjs +77 -0
  453. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.mjs.map +1 -0
  454. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs +36 -0
  455. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.mjs.map +1 -0
  456. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.mjs +62 -0
  457. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.mjs.map +1 -0
  458. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/middleware/arrow.mjs +48 -0
  459. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/middleware/arrow.mjs.map +1 -0
  460. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/safePolygon.mjs +117 -0
  461. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/safePolygon.mjs.map +1 -0
  462. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.mjs +209 -0
  463. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.mjs.map +1 -0
  464. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.mjs +12 -0
  465. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.mjs.map +1 -0
  466. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.mjs +7 -0
  467. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.mjs.map +1 -0
  468. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.mjs +18 -0
  469. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.mjs.map +1 -0
  470. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.mjs +81 -0
  471. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.mjs.map +1 -0
  472. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.mjs +17 -0
  473. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.mjs.map +1 -0
  474. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.mjs +31 -0
  475. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.mjs.map +1 -0
  476. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.mjs +18 -0
  477. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.mjs.map +1 -0
  478. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.mjs +51 -0
  479. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.mjs.map +1 -0
  480. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.mjs +16 -0
  481. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.mjs.map +1 -0
  482. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.mjs +69 -0
  483. package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.mjs.map +1 -0
  484. package/dist/node_modules/@base-ui/react/esm/form/FormContext.mjs +24 -0
  485. package/dist/node_modules/@base-ui/react/esm/form/FormContext.mjs.map +1 -0
  486. package/dist/node_modules/@base-ui/react/esm/input/Input.mjs +14 -0
  487. package/dist/node_modules/@base-ui/react/esm/input/Input.mjs.map +1 -0
  488. package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.mjs +20 -0
  489. package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.mjs.map +1 -0
  490. package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.mjs +45 -0
  491. package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.mjs.map +1 -0
  492. package/dist/node_modules/@base-ui/react/esm/menu/item/MenuItem.mjs +48 -0
  493. package/dist/node_modules/@base-ui/react/esm/menu/item/MenuItem.mjs.map +1 -0
  494. package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItem.mjs +51 -0
  495. package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItem.mjs.map +1 -0
  496. package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItemCommonProps.mjs +45 -0
  497. package/dist/node_modules/@base-ui/react/esm/menu/item/useMenuItemCommonProps.mjs.map +1 -0
  498. package/dist/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.mjs +88 -0
  499. package/dist/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.mjs.map +1 -0
  500. package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.mjs +25 -0
  501. package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.mjs.map +1 -0
  502. package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortalContext.mjs +15 -0
  503. package/dist/node_modules/@base-ui/react/esm/menu/portal/MenuPortalContext.mjs.map +1 -0
  504. package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.mjs +147 -0
  505. package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.mjs.map +1 -0
  506. package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositionerContext.mjs +15 -0
  507. package/dist/node_modules/@base-ui/react/esm/menu/positioner/MenuPositionerContext.mjs.map +1 -0
  508. package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRoot.mjs +272 -0
  509. package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRoot.mjs.map +1 -0
  510. package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRootContext.mjs +15 -0
  511. package/dist/node_modules/@base-ui/react/esm/menu/root/MenuRootContext.mjs.map +1 -0
  512. package/dist/node_modules/@base-ui/react/esm/menu/store/MenuStore.mjs +106 -0
  513. package/dist/node_modules/@base-ui/react/esm/menu/store/MenuStore.mjs.map +1 -0
  514. package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.mjs +22 -0
  515. package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRoot.mjs.map +1 -0
  516. package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRootContext.mjs +11 -0
  517. package/dist/node_modules/@base-ui/react/esm/menu/submenu-root/MenuSubmenuRootContext.mjs.map +1 -0
  518. package/dist/node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.mjs +101 -0
  519. package/dist/node_modules/@base-ui/react/esm/menu/submenu-trigger/MenuSubmenuTrigger.mjs.map +1 -0
  520. package/dist/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.mjs +208 -0
  521. package/dist/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.mjs.map +1 -0
  522. package/dist/node_modules/@base-ui/react/esm/menu/utils/findRootOwnerId.mjs +11 -0
  523. package/dist/node_modules/@base-ui/react/esm/menu/utils/findRootOwnerId.mjs.map +1 -0
  524. package/dist/node_modules/@base-ui/react/esm/menubar/MenubarContext.mjs +11 -0
  525. package/dist/node_modules/@base-ui/react/esm/menubar/MenubarContext.mjs.map +1 -0
  526. package/dist/node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.mjs +82 -0
  527. package/dist/node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.mjs.map +1 -0
  528. package/dist/node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.mjs +25 -0
  529. package/dist/node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.mjs.map +1 -0
  530. package/dist/node_modules/@base-ui/react/esm/popover/portal/PopoverPortalContext.mjs +15 -0
  531. package/dist/node_modules/@base-ui/react/esm/popover/portal/PopoverPortalContext.mjs.map +1 -0
  532. package/dist/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.mjs +111 -0
  533. package/dist/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.mjs.map +1 -0
  534. package/dist/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositionerContext.mjs +15 -0
  535. package/dist/node_modules/@base-ui/react/esm/popover/positioner/PopoverPositionerContext.mjs.map +1 -0
  536. package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.mjs +119 -0
  537. package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRoot.mjs.map +1 -0
  538. package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRootContext.mjs +15 -0
  539. package/dist/node_modules/@base-ui/react/esm/popover/root/PopoverRootContext.mjs.map +1 -0
  540. package/dist/node_modules/@base-ui/react/esm/popover/store/PopoverStore.mjs +95 -0
  541. package/dist/node_modules/@base-ui/react/esm/popover/store/PopoverStore.mjs.map +1 -0
  542. package/dist/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.mjs +121 -0
  543. package/dist/node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.mjs.map +1 -0
  544. package/dist/node_modules/@base-ui/react/esm/popover/utils/constants.mjs +5 -0
  545. package/dist/node_modules/@base-ui/react/esm/popover/utils/constants.mjs.map +1 -0
  546. package/dist/node_modules/@base-ui/react/esm/separator/Separator.mjs +25 -0
  547. package/dist/node_modules/@base-ui/react/esm/separator/Separator.mjs.map +1 -0
  548. package/dist/node_modules/@base-ui/react/esm/tabs/list/TabsList.mjs +132 -0
  549. package/dist/node_modules/@base-ui/react/esm/tabs/list/TabsList.mjs.map +1 -0
  550. package/dist/node_modules/@base-ui/react/esm/tabs/list/TabsListContext.mjs +15 -0
  551. package/dist/node_modules/@base-ui/react/esm/tabs/list/TabsListContext.mjs.map +1 -0
  552. package/dist/node_modules/@base-ui/react/esm/tabs/root/TabsRoot.mjs +103 -0
  553. package/dist/node_modules/@base-ui/react/esm/tabs/root/TabsRoot.mjs.map +1 -0
  554. package/dist/node_modules/@base-ui/react/esm/tabs/root/TabsRootContext.mjs +15 -0
  555. package/dist/node_modules/@base-ui/react/esm/tabs/root/TabsRootContext.mjs.map +1 -0
  556. package/dist/node_modules/@base-ui/react/esm/tabs/root/TabsRootDataAttributes.mjs +7 -0
  557. package/dist/node_modules/@base-ui/react/esm/tabs/root/TabsRootDataAttributes.mjs.map +1 -0
  558. package/dist/node_modules/@base-ui/react/esm/tabs/root/stateAttributesMapping.mjs +10 -0
  559. package/dist/node_modules/@base-ui/react/esm/tabs/root/stateAttributesMapping.mjs.map +1 -0
  560. package/dist/node_modules/@base-ui/react/esm/tabs/tab/TabsTab.mjs +117 -0
  561. package/dist/node_modules/@base-ui/react/esm/tabs/tab/TabsTab.mjs.map +1 -0
  562. package/dist/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.mjs +11 -0
  563. package/dist/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.mjs.map +1 -0
  564. package/dist/node_modules/@base-ui/react/esm/tooltip/arrow/TooltipArrow.mjs +39 -0
  565. package/dist/node_modules/@base-ui/react/esm/tooltip/arrow/TooltipArrow.mjs.map +1 -0
  566. package/dist/node_modules/@base-ui/react/esm/tooltip/popup/TooltipPopup.mjs +50 -0
  567. package/dist/node_modules/@base-ui/react/esm/tooltip/popup/TooltipPopup.mjs.map +1 -0
  568. package/dist/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortal.mjs +23 -0
  569. package/dist/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortal.mjs.map +1 -0
  570. package/dist/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortalContext.mjs +15 -0
  571. package/dist/node_modules/@base-ui/react/esm/tooltip/portal/TooltipPortalContext.mjs.map +1 -0
  572. package/dist/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositioner.mjs +82 -0
  573. package/dist/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositioner.mjs.map +1 -0
  574. package/dist/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositionerContext.mjs +15 -0
  575. package/dist/node_modules/@base-ui/react/esm/tooltip/positioner/TooltipPositionerContext.mjs.map +1 -0
  576. package/dist/node_modules/@base-ui/react/esm/tooltip/provider/TooltipProviderContext.mjs +11 -0
  577. package/dist/node_modules/@base-ui/react/esm/tooltip/provider/TooltipProviderContext.mjs.map +1 -0
  578. package/dist/node_modules/@base-ui/react/esm/tooltip/root/TooltipRoot.mjs +95 -0
  579. package/dist/node_modules/@base-ui/react/esm/tooltip/root/TooltipRoot.mjs.map +1 -0
  580. package/dist/node_modules/@base-ui/react/esm/tooltip/root/TooltipRootContext.mjs +15 -0
  581. package/dist/node_modules/@base-ui/react/esm/tooltip/root/TooltipRootContext.mjs.map +1 -0
  582. package/dist/node_modules/@base-ui/react/esm/tooltip/store/TooltipStore.mjs +74 -0
  583. package/dist/node_modules/@base-ui/react/esm/tooltip/store/TooltipStore.mjs.map +1 -0
  584. package/dist/node_modules/@base-ui/react/esm/tooltip/trigger/TooltipTrigger.mjs +82 -0
  585. package/dist/node_modules/@base-ui/react/esm/tooltip/trigger/TooltipTrigger.mjs.map +1 -0
  586. package/dist/node_modules/@base-ui/react/esm/tooltip/trigger/TooltipTriggerDataAttributes.mjs +8 -0
  587. package/dist/node_modules/@base-ui/react/esm/tooltip/trigger/TooltipTriggerDataAttributes.mjs.map +1 -0
  588. package/dist/node_modules/@base-ui/react/esm/tooltip/utils/constants.mjs +5 -0
  589. package/dist/node_modules/@base-ui/react/esm/tooltip/utils/constants.mjs.map +1 -0
  590. package/dist/node_modules/@base-ui/react/esm/utils/FloatingPortalLite.mjs +29 -0
  591. package/dist/node_modules/@base-ui/react/esm/utils/FloatingPortalLite.mjs.map +1 -0
  592. package/dist/node_modules/@base-ui/react/esm/utils/FocusGuard.mjs +27 -0
  593. package/dist/node_modules/@base-ui/react/esm/utils/FocusGuard.mjs.map +1 -0
  594. package/dist/node_modules/@base-ui/react/esm/utils/InternalBackdrop.mjs +42 -0
  595. package/dist/node_modules/@base-ui/react/esm/utils/InternalBackdrop.mjs.map +1 -0
  596. package/dist/node_modules/@base-ui/react/esm/utils/adaptiveOriginMiddleware.mjs +64 -0
  597. package/dist/node_modules/@base-ui/react/esm/utils/adaptiveOriginMiddleware.mjs.map +1 -0
  598. package/dist/node_modules/@base-ui/react/esm/utils/collapsibleOpenStateMapping.mjs +22 -0
  599. package/dist/node_modules/@base-ui/react/esm/utils/collapsibleOpenStateMapping.mjs.map +1 -0
  600. package/dist/node_modules/@base-ui/react/esm/utils/constants.mjs +24 -0
  601. package/dist/node_modules/@base-ui/react/esm/utils/constants.mjs.map +1 -0
  602. package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.mjs +27 -0
  603. package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.mjs.map +1 -0
  604. package/dist/node_modules/@base-ui/react/esm/utils/getDisabledMountTransitionStyles.mjs +9 -0
  605. package/dist/node_modules/@base-ui/react/esm/utils/getDisabledMountTransitionStyles.mjs.map +1 -0
  606. package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.mjs +19 -0
  607. package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.mjs.map +1 -0
  608. package/dist/node_modules/@base-ui/react/esm/utils/hideMiddleware.mjs +21 -0
  609. package/dist/node_modules/@base-ui/react/esm/utils/hideMiddleware.mjs.map +1 -0
  610. package/dist/node_modules/@base-ui/react/esm/utils/popupStateMapping.mjs +41 -0
  611. package/dist/node_modules/@base-ui/react/esm/utils/popupStateMapping.mjs.map +1 -0
  612. package/dist/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.mjs +96 -0
  613. package/dist/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.mjs.map +1 -0
  614. package/dist/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.mjs +65 -0
  615. package/dist/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.mjs.map +1 -0
  616. package/dist/node_modules/@base-ui/react/esm/utils/popups/store.mjs +53 -0
  617. package/dist/node_modules/@base-ui/react/esm/utils/popups/store.mjs.map +1 -0
  618. package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.mjs +18 -0
  619. package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.mjs.map +1 -0
  620. package/dist/node_modules/@base-ui/react/esm/utils/resolveRef.mjs +7 -0
  621. package/dist/node_modules/@base-ui/react/esm/utils/resolveRef.mjs.map +1 -0
  622. package/dist/node_modules/@base-ui/react/esm/utils/stateAttributesMapping.mjs +17 -0
  623. package/dist/node_modules/@base-ui/react/esm/utils/stateAttributesMapping.mjs.map +1 -0
  624. package/dist/node_modules/@base-ui/react/esm/utils/useAnchorPositioning.mjs +263 -0
  625. package/dist/node_modules/@base-ui/react/esm/utils/useAnchorPositioning.mjs.map +1 -0
  626. package/dist/node_modules/@base-ui/react/esm/utils/useAnimationsFinished.mjs +58 -0
  627. package/dist/node_modules/@base-ui/react/esm/utils/useAnimationsFinished.mjs.map +1 -0
  628. package/dist/node_modules/@base-ui/react/esm/utils/useBaseUiId.mjs +8 -0
  629. package/dist/node_modules/@base-ui/react/esm/utils/useBaseUiId.mjs.map +1 -0
  630. package/dist/node_modules/@base-ui/react/esm/utils/useMixedToggleClickHandler.mjs +26 -0
  631. package/dist/node_modules/@base-ui/react/esm/utils/useMixedToggleClickHandler.mjs.map +1 -0
  632. package/dist/node_modules/@base-ui/react/esm/utils/useOpenChangeComplete.mjs +23 -0
  633. package/dist/node_modules/@base-ui/react/esm/utils/useOpenChangeComplete.mjs.map +1 -0
  634. package/dist/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.mjs +29 -0
  635. package/dist/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.mjs.map +1 -0
  636. package/dist/node_modules/@base-ui/react/esm/utils/useTransitionStatus.mjs +43 -0
  637. package/dist/node_modules/@base-ui/react/esm/utils/useTransitionStatus.mjs.map +1 -0
  638. package/dist/node_modules/@base-ui/react/esm/utils/useValueChanged.mjs +15 -0
  639. package/dist/node_modules/@base-ui/react/esm/utils/useValueChanged.mjs.map +1 -0
  640. package/dist/node_modules/@base-ui/utils/esm/detectBrowser.mjs +43 -0
  641. package/dist/node_modules/@base-ui/utils/esm/detectBrowser.mjs.map +1 -0
  642. package/dist/node_modules/@base-ui/utils/esm/empty.mjs +6 -2
  643. package/dist/node_modules/@base-ui/utils/esm/empty.mjs.map +1 -1
  644. package/dist/node_modules/@base-ui/utils/esm/fastHooks.mjs +44 -0
  645. package/dist/node_modules/@base-ui/utils/esm/fastHooks.mjs.map +1 -0
  646. package/dist/node_modules/@base-ui/utils/esm/inertValue.mjs +8 -0
  647. package/dist/node_modules/@base-ui/utils/esm/inertValue.mjs.map +1 -0
  648. package/dist/node_modules/@base-ui/utils/esm/isElementDisabled.mjs +7 -0
  649. package/dist/node_modules/@base-ui/utils/esm/isElementDisabled.mjs.map +1 -0
  650. package/dist/node_modules/@base-ui/utils/esm/owner.mjs +7 -0
  651. package/dist/node_modules/@base-ui/utils/esm/owner.mjs.map +1 -0
  652. package/dist/node_modules/@base-ui/utils/esm/store/ReactStore.mjs +146 -0
  653. package/dist/node_modules/@base-ui/utils/esm/store/ReactStore.mjs.map +1 -0
  654. package/dist/node_modules/@base-ui/utils/esm/store/Store.mjs +87 -0
  655. package/dist/node_modules/@base-ui/utils/esm/store/Store.mjs.map +1 -0
  656. package/dist/node_modules/@base-ui/utils/esm/store/createSelector.mjs +26 -0
  657. package/dist/node_modules/@base-ui/utils/esm/store/createSelector.mjs.map +1 -0
  658. package/dist/node_modules/@base-ui/utils/esm/store/useStore.mjs +63 -0
  659. package/dist/node_modules/@base-ui/utils/esm/store/useStore.mjs.map +1 -0
  660. package/dist/node_modules/@base-ui/utils/esm/useAnimationFrame.mjs +69 -0
  661. package/dist/node_modules/@base-ui/utils/esm/useAnimationFrame.mjs.map +1 -0
  662. package/dist/node_modules/@base-ui/utils/esm/useControlled.mjs +32 -0
  663. package/dist/node_modules/@base-ui/utils/esm/useControlled.mjs.map +1 -0
  664. package/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.mjs +20 -0
  665. package/dist/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.mjs.map +1 -0
  666. package/dist/node_modules/@base-ui/utils/esm/useId.mjs +21 -0
  667. package/dist/node_modules/@base-ui/utils/esm/useId.mjs.map +1 -0
  668. package/dist/node_modules/@base-ui/utils/esm/useOnFirstRender.mjs +9 -0
  669. package/dist/node_modules/@base-ui/utils/esm/useOnFirstRender.mjs.map +1 -0
  670. package/dist/node_modules/@base-ui/utils/esm/useOnMount.mjs +9 -0
  671. package/dist/node_modules/@base-ui/utils/esm/useOnMount.mjs.map +1 -0
  672. package/dist/node_modules/@base-ui/utils/esm/useScrollLock.mjs +123 -0
  673. package/dist/node_modules/@base-ui/utils/esm/useScrollLock.mjs.map +1 -0
  674. package/dist/node_modules/@base-ui/utils/esm/useTimeout.mjs +33 -0
  675. package/dist/node_modules/@base-ui/utils/esm/useTimeout.mjs.map +1 -0
  676. package/dist/node_modules/@base-ui/utils/esm/useValueAsRef.mjs +20 -0
  677. package/dist/node_modules/@base-ui/utils/esm/useValueAsRef.mjs.map +1 -0
  678. package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.mjs +23 -0
  679. package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.mjs.map +1 -0
  680. package/dist/node_modules/@base-ui/utils/esm/warn.mjs +12 -0
  681. package/dist/node_modules/@base-ui/utils/esm/warn.mjs.map +1 -0
  682. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +495 -0
  683. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +1 -0
  684. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +402 -0
  685. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +1 -0
  686. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +184 -0
  687. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +1 -0
  688. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +129 -7
  689. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.map +1 -1
  690. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +131 -0
  691. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.map +1 -0
  692. package/dist/node_modules/lucide-react/dist/esm/Icon.mjs +37 -0
  693. package/dist/node_modules/lucide-react/dist/esm/Icon.mjs.map +1 -0
  694. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.mjs +24 -0
  695. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.mjs.map +1 -0
  696. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.mjs +15 -0
  697. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.mjs.map +1 -0
  698. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.mjs +12 -0
  699. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.mjs.map +1 -0
  700. package/dist/node_modules/lucide-react/dist/esm/icons/calendar.mjs +12 -0
  701. package/dist/node_modules/lucide-react/dist/esm/icons/calendar.mjs.map +1 -0
  702. package/dist/node_modules/lucide-react/dist/esm/icons/check.mjs +7 -0
  703. package/dist/node_modules/lucide-react/dist/esm/icons/check.mjs.map +1 -0
  704. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.mjs +7 -0
  705. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.mjs.map +1 -0
  706. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.mjs +7 -0
  707. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.mjs.map +1 -0
  708. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs +7 -0
  709. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs.map +1 -0
  710. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.mjs +7 -0
  711. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.mjs.map +1 -0
  712. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.mjs +10 -0
  713. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.mjs.map +1 -0
  714. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.mjs +11 -0
  715. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.mjs.map +1 -0
  716. package/dist/node_modules/lucide-react/dist/esm/icons/copy.mjs +10 -0
  717. package/dist/node_modules/lucide-react/dist/esm/icons/copy.mjs.map +1 -0
  718. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.mjs +11 -0
  719. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.mjs.map +1 -0
  720. package/dist/node_modules/lucide-react/dist/esm/icons/folder.mjs +15 -0
  721. package/dist/node_modules/lucide-react/dist/esm/icons/folder.mjs.map +1 -0
  722. package/dist/node_modules/lucide-react/dist/esm/icons/forward.mjs +10 -0
  723. package/dist/node_modules/lucide-react/dist/esm/icons/forward.mjs.map +1 -0
  724. package/dist/node_modules/lucide-react/dist/esm/icons/funnel.mjs +15 -0
  725. package/dist/node_modules/lucide-react/dist/esm/icons/funnel.mjs.map +1 -0
  726. package/dist/node_modules/lucide-react/dist/esm/icons/info.mjs +11 -0
  727. package/dist/node_modules/lucide-react/dist/esm/icons/info.mjs.map +1 -0
  728. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.mjs +7 -0
  729. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.mjs.map +1 -0
  730. package/dist/node_modules/lucide-react/dist/esm/icons/octagon-x.mjs +17 -0
  731. package/dist/node_modules/lucide-react/dist/esm/icons/octagon-x.mjs.map +1 -0
  732. package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.mjs +10 -0
  733. package/dist/node_modules/lucide-react/dist/esm/icons/panel-left.mjs.map +1 -0
  734. package/dist/node_modules/lucide-react/dist/esm/icons/plus.mjs +10 -0
  735. package/dist/node_modules/lucide-react/dist/esm/icons/plus.mjs.map +1 -0
  736. package/dist/node_modules/lucide-react/dist/esm/icons/star.mjs +15 -0
  737. package/dist/node_modules/lucide-react/dist/esm/icons/star.mjs.map +1 -0
  738. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.mjs +13 -0
  739. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.mjs.map +1 -0
  740. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.mjs +17 -0
  741. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.mjs.map +1 -0
  742. package/dist/node_modules/lucide-react/dist/esm/icons/x.mjs +10 -0
  743. package/dist/node_modules/lucide-react/dist/esm/icons/x.mjs.map +1 -0
  744. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs +10 -0
  745. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs.map +1 -0
  746. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs +5 -0
  747. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs.map +1 -0
  748. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs +8 -0
  749. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs.map +1 -0
  750. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs +5 -0
  751. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs.map +1 -0
  752. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs +9 -0
  753. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs.map +1 -0
  754. package/dist/node_modules/next-themes/dist/index.mjs +34 -0
  755. package/dist/node_modules/next-themes/dist/index.mjs.map +1 -0
  756. package/dist/node_modules/reselect/dist/reselect.mjs +325 -0
  757. package/dist/node_modules/reselect/dist/reselect.mjs.map +1 -0
  758. package/dist/node_modules/sonner/dist/index.mjs +745 -0
  759. package/dist/node_modules/sonner/dist/index.mjs.map +1 -0
  760. package/dist/node_modules/tabbable/dist/index.esm.mjs +211 -0
  761. package/dist/node_modules/tabbable/dist/index.esm.mjs.map +1 -0
  762. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +59 -0
  763. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +1 -0
  764. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +58 -0
  765. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +1 -0
  766. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +59 -0
  767. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +1 -0
  768. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +47 -0
  769. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +1 -0
  770. package/dist/node_modules/use-sync-external-store/shim/index.mjs +11 -0
  771. package/dist/node_modules/use-sync-external-store/shim/index.mjs.map +1 -0
  772. package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs +11 -0
  773. package/dist/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -0
  774. package/dist/tests/assertions.d.ts +2 -2
  775. package/dist/tests/assertions.mjs.map +1 -1
  776. package/dist/tests/testing-library.d.ts +23 -27
  777. package/dist/tests/testing-library.mjs +10 -25
  778. package/dist/tests/testing-library.mjs.map +1 -1
  779. package/dist/types/dialog.d.ts +32 -0
  780. package/dist/types/value-base.d.ts +20 -0
  781. package/dist/types/value-base.mjs +5 -0
  782. package/dist/types/value-base.mjs.map +1 -0
  783. package/dist/utils/breakpoints.d.ts +10 -1
  784. package/dist/utils/breakpoints.mjs.map +1 -1
  785. package/dist/utils/index.d.ts +0 -1
  786. package/package.json +5 -14
  787. package/dist/Autocomplete/Autocomplete.d.ts +0 -99
  788. package/dist/Autocomplete/Autocomplete.mjs +0 -47
  789. package/dist/Autocomplete/Autocomplete.mjs.map +0 -1
  790. package/dist/Autocomplete/index.d.ts +0 -2
  791. package/dist/Board/Board.d.ts +0 -29
  792. package/dist/Board/Board.mjs +0 -60
  793. package/dist/Board/Board.mjs.map +0 -1
  794. package/dist/Board/index.d.ts +0 -2
  795. package/dist/BootstrapDialog/BootstrapDialog.d.ts +0 -31
  796. package/dist/BootstrapDialog/BootstrapDialog.mjs +0 -128
  797. package/dist/BootstrapDialog/BootstrapDialog.mjs.map +0 -1
  798. package/dist/BootstrapDialog/index.d.ts +0 -2
  799. package/dist/ConfirmDialog/ConfirmDialog.d.ts +0 -36
  800. package/dist/ConfirmDialog/ConfirmDialog.mjs +0 -54
  801. package/dist/ConfirmDialog/ConfirmDialog.mjs.map +0 -1
  802. package/dist/ConfirmDialog/index.d.ts +0 -2
  803. package/dist/Content/Content.d.ts +0 -6
  804. package/dist/Content/Content.mjs +0 -10
  805. package/dist/Content/Content.mjs.map +0 -1
  806. package/dist/Content/Content.types.d.ts +0 -18
  807. package/dist/Content/index.d.ts +0 -3
  808. package/dist/ContentPlaceholder/ContentPlaceholder.d.ts +0 -22
  809. package/dist/ContentPlaceholder/ContentPlaceholder.mjs +0 -26
  810. package/dist/ContentPlaceholder/ContentPlaceholder.mjs.map +0 -1
  811. package/dist/ContentPlaceholder/index.d.ts +0 -2
  812. package/dist/DateRangeCalendar/DateRangeCalendar.d.ts +0 -22
  813. package/dist/DateRangeCalendar/DateRangeCalendar.mjs +0 -79
  814. package/dist/DateRangeCalendar/DateRangeCalendar.mjs.map +0 -1
  815. package/dist/DateRangeCalendar/index.d.ts +0 -2
  816. package/dist/DateRangePicker/DateRangePicker.mjs +0 -55
  817. package/dist/DateRangePicker/DateRangePicker.mjs.map +0 -1
  818. package/dist/DateRangePicker/index.d.ts +0 -2
  819. package/dist/Dialog/Dialog.types.d.ts +0 -230
  820. package/dist/Dialog/UseDialog.d.ts +0 -6
  821. package/dist/Dialog/UseDialog.mjs +0 -9
  822. package/dist/Dialog/UseDialog.mjs.map +0 -1
  823. package/dist/Dialog/index.d.ts +0 -2
  824. package/dist/Drawerx/Drawer/Drawer.d.ts +0 -10
  825. package/dist/Drawerx/Drawer/Drawer.mjs +0 -71
  826. package/dist/Drawerx/Drawer/Drawer.mjs.map +0 -1
  827. package/dist/Drawerx/Drawer/Drawer.mock.d.ts +0 -11
  828. package/dist/Drawerx/Drawer/index.d.ts +0 -1
  829. package/dist/Drawerx/Drawer.types.d.ts +0 -174
  830. package/dist/Drawerx/Drawer.types.mjs +0 -8
  831. package/dist/Drawerx/Drawer.types.mjs.map +0 -1
  832. package/dist/Drawerx/DrawerAppBar/DrawerAppBar.d.ts +0 -11
  833. package/dist/Drawerx/DrawerAppBar/DrawerAppBar.mjs +0 -93
  834. package/dist/Drawerx/DrawerAppBar/DrawerAppBar.mjs.map +0 -1
  835. package/dist/Drawerx/DrawerAppBar/index.d.ts +0 -2
  836. package/dist/Drawerx/DrawerContent/DrawerContent.d.ts +0 -5
  837. package/dist/Drawerx/DrawerContent/DrawerContent.mjs +0 -33
  838. package/dist/Drawerx/DrawerContent/DrawerContent.mjs.map +0 -1
  839. package/dist/Drawerx/DrawerContent/index.d.ts +0 -1
  840. package/dist/Drawerx/DrawerContext/Drawer.provider.d.ts +0 -45
  841. package/dist/Drawerx/DrawerContext/Drawer.provider.mjs +0 -54
  842. package/dist/Drawerx/DrawerContext/Drawer.provider.mjs.map +0 -1
  843. package/dist/Drawerx/DrawerContext/DrawerContext.d.ts +0 -26
  844. package/dist/Drawerx/DrawerContext/DrawerContext.mjs +0 -17
  845. package/dist/Drawerx/DrawerContext/DrawerContext.mjs.map +0 -1
  846. package/dist/Drawerx/DrawerContext/DrawerMixins.d.ts +0 -4
  847. package/dist/Drawerx/DrawerContext/DrawerMixins.mjs +0 -27
  848. package/dist/Drawerx/DrawerContext/DrawerMixins.mjs.map +0 -1
  849. package/dist/Drawerx/DrawerContext/index.d.ts +0 -2
  850. package/dist/Drawerx/DrawerItem/DrawerItem.d.ts +0 -15
  851. package/dist/Drawerx/DrawerItem/DrawerItem.mjs +0 -43
  852. package/dist/Drawerx/DrawerItem/DrawerItem.mjs.map +0 -1
  853. package/dist/Drawerx/DrawerItem/DrawerItemLink.d.ts +0 -46
  854. package/dist/Drawerx/DrawerItem/DrawerItemLink.mjs +0 -98
  855. package/dist/Drawerx/DrawerItem/DrawerItemLink.mjs.map +0 -1
  856. package/dist/Drawerx/DrawerItem/DrawerMenuItem.d.ts +0 -31
  857. package/dist/Drawerx/DrawerItem/DrawerMenuItem.mjs +0 -115
  858. package/dist/Drawerx/DrawerItem/DrawerMenuItem.mjs.map +0 -1
  859. package/dist/Drawerx/DrawerItem/index.d.ts +0 -4
  860. package/dist/Drawerx/DrawerLayout/DrawerLayout.d.ts +0 -67
  861. package/dist/Drawerx/DrawerLayout/DrawerLayout.mjs +0 -39
  862. package/dist/Drawerx/DrawerLayout/DrawerLayout.mjs.map +0 -1
  863. package/dist/Drawerx/DrawerLayout/index.d.ts +0 -2
  864. package/dist/Drawerx/DrawerMain/DrawerMain.d.ts +0 -3
  865. package/dist/Drawerx/DrawerMain/DrawerMain.mjs +0 -28
  866. package/dist/Drawerx/DrawerMain/DrawerMain.mjs.map +0 -1
  867. package/dist/Drawerx/DrawerMain/index.d.ts +0 -2
  868. package/dist/Drawerx/DrawerSubheader/DrawerSubheader.d.ts +0 -6
  869. package/dist/Drawerx/DrawerSubheader/DrawerSubheader.mjs +0 -22
  870. package/dist/Drawerx/DrawerSubheader/DrawerSubheader.mjs.map +0 -1
  871. package/dist/Drawerx/DrawerSubheader/index.d.ts +0 -2
  872. package/dist/Drawerx/index.d.ts +0 -10
  873. package/dist/ExpandableAlert/ExpandableAlert.d.ts +0 -45
  874. package/dist/ExpandableAlert/ExpandableAlert.mjs +0 -60
  875. package/dist/ExpandableAlert/ExpandableAlert.mjs.map +0 -1
  876. package/dist/ExpandableAlert/index.d.ts +0 -2
  877. package/dist/FormDialog/FormDialog.d.ts +0 -34
  878. package/dist/FormDialog/FormDialog.mjs +0 -44
  879. package/dist/FormDialog/FormDialog.mjs.map +0 -1
  880. package/dist/FormDialog/index.d.ts +0 -2
  881. package/dist/GroupValueCard/GroupValueCard.d.ts +0 -32
  882. package/dist/GroupValueCard/GroupValueCard.mjs +0 -74
  883. package/dist/GroupValueCard/GroupValueCard.mjs.map +0 -1
  884. package/dist/GroupValueCard/GroupValueCard.mock.d.ts +0 -2
  885. package/dist/GroupValueCard/index.d.ts +0 -2
  886. package/dist/Header/Header.d.ts +0 -40
  887. package/dist/Header/Header.dummy.d.ts +0 -5
  888. package/dist/Header/Header.mjs +0 -179
  889. package/dist/Header/Header.mjs.map +0 -1
  890. package/dist/Header/Header.types.d.ts +0 -274
  891. package/dist/Header/header-title.d.ts +0 -34
  892. package/dist/Header/header-title.mjs +0 -31
  893. package/dist/Header/header-title.mjs.map +0 -1
  894. package/dist/Header/index.d.ts +0 -3
  895. package/dist/HeaderLayout/HeaderLayout.d.ts +0 -88
  896. package/dist/HeaderLayout/HeaderLayout.mjs +0 -54
  897. package/dist/HeaderLayout/HeaderLayout.mjs.map +0 -1
  898. package/dist/HeaderLayout/index.d.ts +0 -2
  899. package/dist/ListPanel/ListPanel.context.mjs +0 -8
  900. package/dist/ListPanel/ListPanel.context.mjs.map +0 -1
  901. package/dist/ListPanel/ListPanel.d.ts +0 -38
  902. package/dist/ListPanel/ListPanel.mjs +0 -75
  903. package/dist/ListPanel/ListPanel.mjs.map +0 -1
  904. package/dist/ListPanel/ListPanel.mocks.d.ts +0 -5
  905. package/dist/ListPanel/ListPanelPanel.d.ts +0 -17
  906. package/dist/ListPanel/index.d.ts +0 -3
  907. package/dist/Markdown/Markdown.d.ts +0 -45
  908. package/dist/Markdown/Markdown.mjs +0 -31
  909. package/dist/Markdown/Markdown.mjs.map +0 -1
  910. package/dist/Markdown/index.d.ts +0 -1
  911. package/dist/NotificationCenter/NotificationCenter.context.d.ts +0 -13
  912. package/dist/NotificationCenter/NotificationCenter.context.mjs +0 -15
  913. package/dist/NotificationCenter/NotificationCenter.context.mjs.map +0 -1
  914. package/dist/NotificationCenter/NotificationCenter.hooks.d.ts +0 -6
  915. package/dist/NotificationCenter/NotificationCenter.hooks.mjs +0 -12
  916. package/dist/NotificationCenter/NotificationCenter.hooks.mjs.map +0 -1
  917. package/dist/NotificationCenter/NotificationCenter.provider.d.ts +0 -15
  918. package/dist/NotificationCenter/NotificationCenter.provider.mjs +0 -56
  919. package/dist/NotificationCenter/NotificationCenter.provider.mjs.map +0 -1
  920. package/dist/NotificationCenter/index.d.ts +0 -3
  921. package/dist/Placeholder/Placeholder.d.ts +0 -73
  922. package/dist/Placeholder/Placeholder.mjs +0 -53
  923. package/dist/Placeholder/Placeholder.mjs.map +0 -1
  924. package/dist/Placeholder/Placeholder.mock.d.ts +0 -2
  925. package/dist/Placeholder/index.d.ts +0 -2
  926. package/dist/QueryContainer/QueryContainer.d.ts +0 -47
  927. package/dist/QueryContainer/index.d.ts +0 -2
  928. package/dist/RemoteDataTable/RemoteDataTable.d.ts +0 -66
  929. package/dist/RemoteDataTable/RemoteDataTable.mjs +0 -57
  930. package/dist/RemoteDataTable/RemoteDataTable.mjs.map +0 -1
  931. package/dist/RemoteDataTable/RemoteDataTable.mocks.d.ts +0 -30
  932. package/dist/RemoteDataTable/RemoteDataTable.types.d.ts +0 -189
  933. package/dist/RemoteDataTable/RemoteDataTableBody.d.ts +0 -13
  934. package/dist/RemoteDataTable/RemoteDataTableBody.mjs +0 -87
  935. package/dist/RemoteDataTable/RemoteDataTableBody.mjs.map +0 -1
  936. package/dist/RemoteDataTable/RemoteDataTablePagination.d.ts +0 -9
  937. package/dist/RemoteDataTable/RemoteDataTablePagination.mjs +0 -33
  938. package/dist/RemoteDataTable/RemoteDataTablePagination.mjs.map +0 -1
  939. package/dist/RemoteDataTable/RemoteDataTableQueryBuilder.d.ts +0 -6
  940. package/dist/RemoteDataTable/RemoteDataTableQueryBuilder.mjs +0 -296
  941. package/dist/RemoteDataTable/RemoteDataTableQueryBuilder.mjs.map +0 -1
  942. package/dist/RemoteDataTable/index.d.ts +0 -3
  943. package/dist/RemoteDataTable/query-spec-utils.d.ts +0 -8
  944. package/dist/RemoteDataTable/query-spec-utils.mjs.map +0 -1
  945. package/dist/RemoteDataTable/use-remote-data-table.d.ts +0 -19
  946. package/dist/RemoteDataTable/use-remote-data-table.mjs.map +0 -1
  947. package/dist/Select/Select.d.ts +0 -147
  948. package/dist/Select/Select.mjs +0 -103
  949. package/dist/Select/Select.mjs.map +0 -1
  950. package/dist/Select/index.d.ts +0 -2
  951. package/dist/SkeletonCard/SkeletonCard.d.ts +0 -18
  952. package/dist/SkeletonCard/SkeletonCard.mjs +0 -34
  953. package/dist/SkeletonCard/SkeletonCard.mjs.map +0 -1
  954. package/dist/SkeletonCard/index.d.ts +0 -2
  955. package/dist/SkeletonGrid/SkeletonGrid.d.ts +0 -17
  956. package/dist/SkeletonGrid/SkeletonGrid.mjs +0 -13
  957. package/dist/SkeletonGrid/SkeletonGrid.mjs.map +0 -1
  958. package/dist/SkeletonGrid/index.d.ts +0 -2
  959. package/dist/TabCard/TabCard.context.mjs +0 -7
  960. package/dist/TabCard/TabCard.context.mjs.map +0 -1
  961. package/dist/TabCard/TabCard.d.ts +0 -43
  962. package/dist/TabCard/TabCard.dummy.d.ts +0 -14
  963. package/dist/TabCard/TabCard.mjs +0 -68
  964. package/dist/TabCard/TabCard.mjs.map +0 -1
  965. package/dist/TabCard/TabCardPanel.d.ts +0 -22
  966. package/dist/TabCard/index.d.ts +0 -3
  967. package/dist/TabPanel/TabPanel.d.ts +0 -18
  968. package/dist/TabPanel/TabPanel.mjs +0 -22
  969. package/dist/TabPanel/TabPanel.mjs.map +0 -1
  970. package/dist/TabPanel/index.d.ts +0 -1
  971. package/dist/TabProvider/TabProvider.context.d.ts +0 -4
  972. package/dist/TabProvider/TabProvider.context.mjs +0 -8
  973. package/dist/TabProvider/TabProvider.context.mjs.map +0 -1
  974. package/dist/TabProvider/TabProvider.provider.d.ts +0 -6
  975. package/dist/TabProvider/TabProvider.provider.mjs +0 -14
  976. package/dist/TabProvider/TabProvider.provider.mjs.map +0 -1
  977. package/dist/TabProvider/index.d.ts +0 -2
  978. package/dist/TextField/TextField.d.ts +0 -127
  979. package/dist/TextField/TextField.mjs +0 -115
  980. package/dist/TextField/TextField.mjs.map +0 -1
  981. package/dist/TextField/index.d.ts +0 -2
  982. package/dist/ValueBase/ValueDisplays.types.d.ts +0 -20
  983. package/dist/ValueBase/ValueDisplays.types.mjs +0 -5
  984. package/dist/ValueBase/ValueDisplays.types.mjs.map +0 -1
  985. package/dist/ValueBase/index.d.ts +0 -1
  986. package/dist/ValueBoolean/ValueBoolean.d.ts +0 -12
  987. package/dist/ValueBoolean/ValueBoolean.mjs +0 -34
  988. package/dist/ValueBoolean/ValueBoolean.mjs.map +0 -1
  989. package/dist/ValueBoolean/index.d.ts +0 -2
  990. package/dist/ValueCard/ValueCard.d.ts +0 -14
  991. package/dist/ValueCard/ValueCard.mjs +0 -10
  992. package/dist/ValueCard/ValueCard.mjs.map +0 -1
  993. package/dist/ValueCard/index.d.ts +0 -2
  994. package/dist/ValueContent/ValueContent.d.ts +0 -37
  995. package/dist/ValueContent/ValueContent.mjs +0 -35
  996. package/dist/ValueContent/ValueContent.mjs.map +0 -1
  997. package/dist/ValueContent/index.d.ts +0 -2
  998. package/dist/ValueDatetime/ValueDatetime.d.ts +0 -15
  999. package/dist/ValueDatetime/ValueDatetime.mjs +0 -30
  1000. package/dist/ValueDatetime/ValueDatetime.mjs.map +0 -1
  1001. package/dist/ValueDatetime/index.d.ts +0 -2
  1002. package/dist/ValueImage/ValueImage.d.ts +0 -15
  1003. package/dist/ValueImage/ValueImage.mjs +0 -26
  1004. package/dist/ValueImage/ValueImage.mjs.map +0 -1
  1005. package/dist/ValueImage/index.d.ts +0 -2
  1006. package/dist/ValueItem/ValueItem.d.ts +0 -33
  1007. package/dist/ValueItem/ValueItem.mjs +0 -36
  1008. package/dist/ValueItem/ValueItem.mjs.map +0 -1
  1009. package/dist/ValueItem/index.d.ts +0 -2
  1010. package/dist/ValueLabel/ValueLabel.d.ts +0 -18
  1011. package/dist/ValueLabel/ValueLabel.mjs +0 -32
  1012. package/dist/ValueLabel/ValueLabel.mjs.map +0 -1
  1013. package/dist/ValueLabel/index.d.ts +0 -2
  1014. package/dist/ValueRating/ValueRating.d.ts +0 -18
  1015. package/dist/ValueRating/ValueRating.mjs +0 -26
  1016. package/dist/ValueRating/ValueRating.mjs.map +0 -1
  1017. package/dist/ValueRating/index.d.ts +0 -2
  1018. package/dist/ValueText/ValueText.d.ts +0 -12
  1019. package/dist/ValueText/ValueText.mjs +0 -19
  1020. package/dist/ValueText/ValueText.mjs.map +0 -1
  1021. package/dist/ValueText/index.d.ts +0 -2
  1022. package/dist/utils/theme.d.ts +0 -7
  1023. package/dist/utils/theme.mjs +0 -12
  1024. package/dist/utils/theme.mjs.map +0 -1
  1025. /package/dist/{DateRangePicker/DateRangePicker.d.ts → components/date-range-picker/date-range-picker.d.ts} +0 -0
  1026. /package/dist/{ListPanel/ListPanel.context.d.ts → components/list-panel/list-panel.context.d.ts} +0 -0
  1027. /package/dist/{RemoteDataTable → components/remote-data-table}/query-spec-utils.mjs +0 -0
  1028. /package/dist/{RemoteDataTable → components/remote-data-table}/use-remote-data-table.mjs +0 -0
  1029. /package/dist/{TabCard/TabCard.context.d.ts → components/tab-card/tab-card.context.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../node_modules/sonner/dist/index.mjs"],"sourcesContent":["'use client';\nfunction __insertCSS(code) {\n if (!code || typeof document == 'undefined') return\n let head = document.head || document.getElementsByTagName('head')[0]\n let style = document.createElement('style')\n style.type = 'text/css'\n head.appendChild(style)\n ;style.styleSheet ? (style.styleSheet.cssText = code) : style.appendChild(document.createTextNode(code))\n}\n\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nconst getAsset = (type)=>{\n switch(type){\n case 'success':\n return SuccessIcon;\n case 'info':\n return InfoIcon;\n case 'warning':\n return WarningIcon;\n case 'error':\n return ErrorIcon;\n default:\n return null;\n }\n};\nconst bars = Array(12).fill(0);\nconst Loader = ({ visible, className })=>{\n return /*#__PURE__*/ React.createElement(\"div\", {\n className: [\n 'sonner-loading-wrapper',\n className\n ].filter(Boolean).join(' '),\n \"data-visible\": visible\n }, /*#__PURE__*/ React.createElement(\"div\", {\n className: \"sonner-spinner\"\n }, bars.map((_, i)=>/*#__PURE__*/ React.createElement(\"div\", {\n className: \"sonner-loading-bar\",\n key: `spinner-bar-${i}`\n }))));\n};\nconst SuccessIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n 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\",\n clipRule: \"evenodd\"\n}));\nconst WarningIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n 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\",\n clipRule: \"evenodd\"\n}));\nconst InfoIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n 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\",\n clipRule: \"evenodd\"\n}));\nconst ErrorIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n height: \"20\",\n width: \"20\"\n}, /*#__PURE__*/ React.createElement(\"path\", {\n fillRule: \"evenodd\",\n 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\",\n clipRule: \"evenodd\"\n}));\nconst CloseIcon = /*#__PURE__*/ React.createElement(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"12\",\n height: \"12\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: \"1.5\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}, /*#__PURE__*/ React.createElement(\"line\", {\n x1: \"18\",\n y1: \"6\",\n x2: \"6\",\n y2: \"18\"\n}), /*#__PURE__*/ React.createElement(\"line\", {\n x1: \"6\",\n y1: \"6\",\n x2: \"18\",\n y2: \"18\"\n}));\n\nconst useIsDocumentHidden = ()=>{\n const [isDocumentHidden, setIsDocumentHidden] = React.useState(document.hidden);\n React.useEffect(()=>{\n const callback = ()=>{\n setIsDocumentHidden(document.hidden);\n };\n document.addEventListener('visibilitychange', callback);\n return ()=>window.removeEventListener('visibilitychange', callback);\n }, []);\n return isDocumentHidden;\n};\n\nlet toastsCounter = 1;\nclass Observer {\n constructor(){\n // We use arrow functions to maintain the correct `this` reference\n this.subscribe = (subscriber)=>{\n this.subscribers.push(subscriber);\n return ()=>{\n const index = this.subscribers.indexOf(subscriber);\n this.subscribers.splice(index, 1);\n };\n };\n this.publish = (data)=>{\n this.subscribers.forEach((subscriber)=>subscriber(data));\n };\n this.addToast = (data)=>{\n this.publish(data);\n this.toasts = [\n ...this.toasts,\n data\n ];\n };\n this.create = (data)=>{\n var _data_id;\n const { message, ...rest } = data;\n const id = typeof (data == null ? void 0 : data.id) === 'number' || ((_data_id = data.id) == null ? void 0 : _data_id.length) > 0 ? data.id : toastsCounter++;\n const alreadyExists = this.toasts.find((toast)=>{\n return toast.id === id;\n });\n const dismissible = data.dismissible === undefined ? true : data.dismissible;\n if (this.dismissedToasts.has(id)) {\n this.dismissedToasts.delete(id);\n }\n if (alreadyExists) {\n this.toasts = this.toasts.map((toast)=>{\n if (toast.id === id) {\n this.publish({\n ...toast,\n ...data,\n id,\n title: message\n });\n return {\n ...toast,\n ...data,\n id,\n dismissible,\n title: message\n };\n }\n return toast;\n });\n } else {\n this.addToast({\n title: message,\n ...rest,\n dismissible,\n id\n });\n }\n return id;\n };\n this.dismiss = (id)=>{\n if (id) {\n this.dismissedToasts.add(id);\n requestAnimationFrame(()=>this.subscribers.forEach((subscriber)=>subscriber({\n id,\n dismiss: true\n })));\n } else {\n this.toasts.forEach((toast)=>{\n this.subscribers.forEach((subscriber)=>subscriber({\n id: toast.id,\n dismiss: true\n }));\n });\n }\n return id;\n };\n this.message = (message, data)=>{\n return this.create({\n ...data,\n message\n });\n };\n this.error = (message, data)=>{\n return this.create({\n ...data,\n message,\n type: 'error'\n });\n };\n this.success = (message, data)=>{\n return this.create({\n ...data,\n type: 'success',\n message\n });\n };\n this.info = (message, data)=>{\n return this.create({\n ...data,\n type: 'info',\n message\n });\n };\n this.warning = (message, data)=>{\n return this.create({\n ...data,\n type: 'warning',\n message\n });\n };\n this.loading = (message, data)=>{\n return this.create({\n ...data,\n type: 'loading',\n message\n });\n };\n this.promise = (promise, data)=>{\n if (!data) {\n // Nothing to show\n return;\n }\n let id = undefined;\n if (data.loading !== undefined) {\n id = this.create({\n ...data,\n promise,\n type: 'loading',\n message: data.loading,\n description: typeof data.description !== 'function' ? data.description : undefined\n });\n }\n const p = Promise.resolve(promise instanceof Function ? promise() : promise);\n let shouldDismiss = id !== undefined;\n let result;\n const originalPromise = p.then(async (response)=>{\n result = [\n 'resolve',\n response\n ];\n const isReactElementResponse = React.isValidElement(response);\n if (isReactElementResponse) {\n shouldDismiss = false;\n this.create({\n id,\n type: 'default',\n message: response\n });\n } else if (isHttpResponse(response) && !response.ok) {\n shouldDismiss = false;\n const promiseData = typeof data.error === 'function' ? await data.error(`HTTP error! status: ${response.status}`) : data.error;\n const description = typeof data.description === 'function' ? await data.description(`HTTP error! status: ${response.status}`) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'error',\n description,\n ...toastSettings\n });\n } else if (response instanceof Error) {\n shouldDismiss = false;\n const promiseData = typeof data.error === 'function' ? await data.error(response) : data.error;\n const description = typeof data.description === 'function' ? await data.description(response) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'error',\n description,\n ...toastSettings\n });\n } else if (data.success !== undefined) {\n shouldDismiss = false;\n const promiseData = typeof data.success === 'function' ? await data.success(response) : data.success;\n const description = typeof data.description === 'function' ? await data.description(response) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'success',\n description,\n ...toastSettings\n });\n }\n }).catch(async (error)=>{\n result = [\n 'reject',\n error\n ];\n if (data.error !== undefined) {\n shouldDismiss = false;\n const promiseData = typeof data.error === 'function' ? await data.error(error) : data.error;\n const description = typeof data.description === 'function' ? await data.description(error) : data.description;\n const isExtendedResult = typeof promiseData === 'object' && !React.isValidElement(promiseData);\n const toastSettings = isExtendedResult ? promiseData : {\n message: promiseData\n };\n this.create({\n id,\n type: 'error',\n description,\n ...toastSettings\n });\n }\n }).finally(()=>{\n if (shouldDismiss) {\n // Toast is still in load state (and will be indefinitely — dismiss it)\n this.dismiss(id);\n id = undefined;\n }\n data.finally == null ? void 0 : data.finally.call(data);\n });\n const unwrap = ()=>new Promise((resolve, reject)=>originalPromise.then(()=>result[0] === 'reject' ? reject(result[1]) : resolve(result[1])).catch(reject));\n if (typeof id !== 'string' && typeof id !== 'number') {\n // cannot Object.assign on undefined\n return {\n unwrap\n };\n } else {\n return Object.assign(id, {\n unwrap\n });\n }\n };\n this.custom = (jsx, data)=>{\n const id = (data == null ? void 0 : data.id) || toastsCounter++;\n this.create({\n jsx: jsx(id),\n id,\n ...data\n });\n return id;\n };\n this.getActiveToasts = ()=>{\n return this.toasts.filter((toast)=>!this.dismissedToasts.has(toast.id));\n };\n this.subscribers = [];\n this.toasts = [];\n this.dismissedToasts = new Set();\n }\n}\nconst ToastState = new Observer();\n// bind this to the toast function\nconst toastFunction = (message, data)=>{\n const id = (data == null ? void 0 : data.id) || toastsCounter++;\n ToastState.addToast({\n title: message,\n ...data,\n id\n });\n return id;\n};\nconst isHttpResponse = (data)=>{\n return data && typeof data === 'object' && 'ok' in data && typeof data.ok === 'boolean' && 'status' in data && typeof data.status === 'number';\n};\nconst basicToast = toastFunction;\nconst getHistory = ()=>ToastState.toasts;\nconst getToasts = ()=>ToastState.getActiveToasts();\n// We use `Object.assign` to maintain the correct types as we would lose them otherwise\nconst toast = Object.assign(basicToast, {\n success: ToastState.success,\n info: ToastState.info,\n warning: ToastState.warning,\n error: ToastState.error,\n custom: ToastState.custom,\n message: ToastState.message,\n promise: ToastState.promise,\n dismiss: ToastState.dismiss,\n loading: ToastState.loading\n}, {\n getHistory,\n getToasts\n});\n\n__insertCSS(\"[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}\");\n\nfunction isAction(action) {\n return action.label !== undefined;\n}\n\n// Visible toasts amount\nconst VISIBLE_TOASTS_AMOUNT = 3;\n// Viewport padding\nconst VIEWPORT_OFFSET = '24px';\n// Mobile viewport padding\nconst MOBILE_VIEWPORT_OFFSET = '16px';\n// Default lifetime of a toasts (in ms)\nconst TOAST_LIFETIME = 4000;\n// Default toast width\nconst TOAST_WIDTH = 356;\n// Default gap between toasts\nconst GAP = 14;\n// Threshold to dismiss a toast\nconst SWIPE_THRESHOLD = 45;\n// Equal to exit animation duration\nconst TIME_BEFORE_UNMOUNT = 200;\nfunction cn(...classes) {\n return classes.filter(Boolean).join(' ');\n}\nfunction getDefaultSwipeDirections(position) {\n const [y, x] = position.split('-');\n const directions = [];\n if (y) {\n directions.push(y);\n }\n if (x) {\n directions.push(x);\n }\n return directions;\n}\nconst Toast = (props)=>{\n var _toast_classNames, _toast_classNames1, _toast_classNames2, _toast_classNames3, _toast_classNames4, _toast_classNames5, _toast_classNames6, _toast_classNames7, _toast_classNames8;\n const { invert: ToasterInvert, toast, unstyled, interacting, setHeights, visibleToasts, heights, index, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style, cancelButtonStyle, actionButtonStyle, className = '', descriptionClassName = '', duration: durationFromToaster, position, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = 'Close toast' } = props;\n const [swipeDirection, setSwipeDirection] = React.useState(null);\n const [swipeOutDirection, setSwipeOutDirection] = React.useState(null);\n const [mounted, setMounted] = React.useState(false);\n const [removed, setRemoved] = React.useState(false);\n const [swiping, setSwiping] = React.useState(false);\n const [swipeOut, setSwipeOut] = React.useState(false);\n const [isSwiped, setIsSwiped] = React.useState(false);\n const [offsetBeforeRemove, setOffsetBeforeRemove] = React.useState(0);\n const [initialHeight, setInitialHeight] = React.useState(0);\n const remainingTime = React.useRef(toast.duration || durationFromToaster || TOAST_LIFETIME);\n const dragStartTime = React.useRef(null);\n const toastRef = React.useRef(null);\n const isFront = index === 0;\n const isVisible = index + 1 <= visibleToasts;\n const toastType = toast.type;\n const dismissible = toast.dismissible !== false;\n const toastClassname = toast.className || '';\n const toastDescriptionClassname = toast.descriptionClassName || '';\n // Height index is used to calculate the offset as it gets updated before the toast array, which means we can calculate the new layout faster.\n const heightIndex = React.useMemo(()=>heights.findIndex((height)=>height.toastId === toast.id) || 0, [\n heights,\n toast.id\n ]);\n const closeButton = React.useMemo(()=>{\n var _toast_closeButton;\n return (_toast_closeButton = toast.closeButton) != null ? _toast_closeButton : closeButtonFromToaster;\n }, [\n toast.closeButton,\n closeButtonFromToaster\n ]);\n const duration = React.useMemo(()=>toast.duration || durationFromToaster || TOAST_LIFETIME, [\n toast.duration,\n durationFromToaster\n ]);\n const closeTimerStartTimeRef = React.useRef(0);\n const offset = React.useRef(0);\n const lastCloseTimerStartTimeRef = React.useRef(0);\n const pointerStartRef = React.useRef(null);\n const [y, x] = position.split('-');\n const toastsHeightBefore = React.useMemo(()=>{\n return heights.reduce((prev, curr, reducerIndex)=>{\n // Calculate offset up until current toast\n if (reducerIndex >= heightIndex) {\n return prev;\n }\n return prev + curr.height;\n }, 0);\n }, [\n heights,\n heightIndex\n ]);\n const isDocumentHidden = useIsDocumentHidden();\n const invert = toast.invert || ToasterInvert;\n const disabled = toastType === 'loading';\n offset.current = React.useMemo(()=>heightIndex * gap + toastsHeightBefore, [\n heightIndex,\n toastsHeightBefore\n ]);\n React.useEffect(()=>{\n remainingTime.current = duration;\n }, [\n duration\n ]);\n React.useEffect(()=>{\n // Trigger enter animation without using CSS animation\n setMounted(true);\n }, []);\n React.useEffect(()=>{\n const toastNode = toastRef.current;\n if (toastNode) {\n const height = toastNode.getBoundingClientRect().height;\n // Add toast height to heights array after the toast is mounted\n setInitialHeight(height);\n setHeights((h)=>[\n {\n toastId: toast.id,\n height,\n position: toast.position\n },\n ...h\n ]);\n return ()=>setHeights((h)=>h.filter((height)=>height.toastId !== toast.id));\n }\n }, [\n setHeights,\n toast.id\n ]);\n React.useLayoutEffect(()=>{\n // Keep height up to date with the content in case it updates\n if (!mounted) return;\n const toastNode = toastRef.current;\n const originalHeight = toastNode.style.height;\n toastNode.style.height = 'auto';\n const newHeight = toastNode.getBoundingClientRect().height;\n toastNode.style.height = originalHeight;\n setInitialHeight(newHeight);\n setHeights((heights)=>{\n const alreadyExists = heights.find((height)=>height.toastId === toast.id);\n if (!alreadyExists) {\n return [\n {\n toastId: toast.id,\n height: newHeight,\n position: toast.position\n },\n ...heights\n ];\n } else {\n return heights.map((height)=>height.toastId === toast.id ? {\n ...height,\n height: newHeight\n } : height);\n }\n });\n }, [\n mounted,\n toast.title,\n toast.description,\n setHeights,\n toast.id,\n toast.jsx,\n toast.action,\n toast.cancel\n ]);\n const deleteToast = React.useCallback(()=>{\n // Save the offset for the exit swipe animation\n setRemoved(true);\n setOffsetBeforeRemove(offset.current);\n setHeights((h)=>h.filter((height)=>height.toastId !== toast.id));\n setTimeout(()=>{\n removeToast(toast);\n }, TIME_BEFORE_UNMOUNT);\n }, [\n toast,\n removeToast,\n setHeights,\n offset\n ]);\n React.useEffect(()=>{\n if (toast.promise && toastType === 'loading' || toast.duration === Infinity || toast.type === 'loading') return;\n let timeoutId;\n // Pause the timer on each hover\n const pauseTimer = ()=>{\n if (lastCloseTimerStartTimeRef.current < closeTimerStartTimeRef.current) {\n // Get the elapsed time since the timer started\n const elapsedTime = new Date().getTime() - closeTimerStartTimeRef.current;\n remainingTime.current = remainingTime.current - elapsedTime;\n }\n lastCloseTimerStartTimeRef.current = new Date().getTime();\n };\n const startTimer = ()=>{\n // setTimeout(, Infinity) behaves as if the delay is 0.\n // As a result, the toast would be closed immediately, giving the appearance that it was never rendered.\n // See: https://github.com/denysdovhan/wtfjs?tab=readme-ov-file#an-infinite-timeout\n if (remainingTime.current === Infinity) return;\n closeTimerStartTimeRef.current = new Date().getTime();\n // Let the toast know it has started\n timeoutId = setTimeout(()=>{\n toast.onAutoClose == null ? void 0 : toast.onAutoClose.call(toast, toast);\n deleteToast();\n }, remainingTime.current);\n };\n if (expanded || interacting || isDocumentHidden) {\n pauseTimer();\n } else {\n startTimer();\n }\n return ()=>clearTimeout(timeoutId);\n }, [\n expanded,\n interacting,\n toast,\n toastType,\n isDocumentHidden,\n deleteToast\n ]);\n React.useEffect(()=>{\n if (toast.delete) {\n deleteToast();\n toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);\n }\n }, [\n deleteToast,\n toast.delete\n ]);\n function getLoadingIcon() {\n var _toast_classNames;\n if (icons == null ? void 0 : icons.loading) {\n var _toast_classNames1;\n return /*#__PURE__*/ React.createElement(\"div\", {\n className: cn(classNames == null ? void 0 : classNames.loader, toast == null ? void 0 : (_toast_classNames1 = toast.classNames) == null ? void 0 : _toast_classNames1.loader, 'sonner-loader'),\n \"data-visible\": toastType === 'loading'\n }, icons.loading);\n }\n return /*#__PURE__*/ React.createElement(Loader, {\n className: cn(classNames == null ? void 0 : classNames.loader, toast == null ? void 0 : (_toast_classNames = toast.classNames) == null ? void 0 : _toast_classNames.loader),\n visible: toastType === 'loading'\n });\n }\n const icon = toast.icon || (icons == null ? void 0 : icons[toastType]) || getAsset(toastType);\n var _toast_richColors, _icons_close;\n return /*#__PURE__*/ React.createElement(\"li\", {\n tabIndex: 0,\n ref: toastRef,\n className: cn(className, toastClassname, classNames == null ? void 0 : classNames.toast, toast == null ? void 0 : (_toast_classNames = toast.classNames) == null ? void 0 : _toast_classNames.toast, classNames == null ? void 0 : classNames.default, classNames == null ? void 0 : classNames[toastType], toast == null ? void 0 : (_toast_classNames1 = toast.classNames) == null ? void 0 : _toast_classNames1[toastType]),\n \"data-sonner-toast\": \"\",\n \"data-rich-colors\": (_toast_richColors = toast.richColors) != null ? _toast_richColors : defaultRichColors,\n \"data-styled\": !Boolean(toast.jsx || toast.unstyled || unstyled),\n \"data-mounted\": mounted,\n \"data-promise\": Boolean(toast.promise),\n \"data-swiped\": isSwiped,\n \"data-removed\": removed,\n \"data-visible\": isVisible,\n \"data-y-position\": y,\n \"data-x-position\": x,\n \"data-index\": index,\n \"data-front\": isFront,\n \"data-swiping\": swiping,\n \"data-dismissible\": dismissible,\n \"data-type\": toastType,\n \"data-invert\": invert,\n \"data-swipe-out\": swipeOut,\n \"data-swipe-direction\": swipeOutDirection,\n \"data-expanded\": Boolean(expanded || expandByDefault && mounted),\n \"data-testid\": toast.testId,\n style: {\n '--index': index,\n '--toasts-before': index,\n '--z-index': toasts.length - index,\n '--offset': `${removed ? offsetBeforeRemove : offset.current}px`,\n '--initial-height': expandByDefault ? 'auto' : `${initialHeight}px`,\n ...style,\n ...toast.style\n },\n onDragEnd: ()=>{\n setSwiping(false);\n setSwipeDirection(null);\n pointerStartRef.current = null;\n },\n onPointerDown: (event)=>{\n if (event.button === 2) return; // Return early on right click\n if (disabled || !dismissible) return;\n dragStartTime.current = new Date();\n setOffsetBeforeRemove(offset.current);\n // Ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)\n event.target.setPointerCapture(event.pointerId);\n if (event.target.tagName === 'BUTTON') return;\n setSwiping(true);\n pointerStartRef.current = {\n x: event.clientX,\n y: event.clientY\n };\n },\n onPointerUp: ()=>{\n var _toastRef_current, _toastRef_current1, _dragStartTime_current;\n if (swipeOut || !dismissible) return;\n pointerStartRef.current = null;\n const swipeAmountX = Number(((_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.getPropertyValue('--swipe-amount-x').replace('px', '')) || 0);\n const swipeAmountY = Number(((_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.getPropertyValue('--swipe-amount-y').replace('px', '')) || 0);\n const timeTaken = new Date().getTime() - ((_dragStartTime_current = dragStartTime.current) == null ? void 0 : _dragStartTime_current.getTime());\n const swipeAmount = swipeDirection === 'x' ? swipeAmountX : swipeAmountY;\n const velocity = Math.abs(swipeAmount) / timeTaken;\n if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {\n setOffsetBeforeRemove(offset.current);\n toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);\n if (swipeDirection === 'x') {\n setSwipeOutDirection(swipeAmountX > 0 ? 'right' : 'left');\n } else {\n setSwipeOutDirection(swipeAmountY > 0 ? 'down' : 'up');\n }\n deleteToast();\n setSwipeOut(true);\n return;\n } else {\n var _toastRef_current2, _toastRef_current3;\n (_toastRef_current2 = toastRef.current) == null ? void 0 : _toastRef_current2.style.setProperty('--swipe-amount-x', `0px`);\n (_toastRef_current3 = toastRef.current) == null ? void 0 : _toastRef_current3.style.setProperty('--swipe-amount-y', `0px`);\n }\n setIsSwiped(false);\n setSwiping(false);\n setSwipeDirection(null);\n },\n onPointerMove: (event)=>{\n var _window_getSelection, // Apply transform using both x and y values\n _toastRef_current, _toastRef_current1;\n if (!pointerStartRef.current || !dismissible) return;\n const isHighlighted = ((_window_getSelection = window.getSelection()) == null ? void 0 : _window_getSelection.toString().length) > 0;\n if (isHighlighted) return;\n const yDelta = event.clientY - pointerStartRef.current.y;\n const xDelta = event.clientX - pointerStartRef.current.x;\n var _props_swipeDirections;\n const swipeDirections = (_props_swipeDirections = props.swipeDirections) != null ? _props_swipeDirections : getDefaultSwipeDirections(position);\n // Determine swipe direction if not already locked\n if (!swipeDirection && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {\n setSwipeDirection(Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y');\n }\n let swipeAmount = {\n x: 0,\n y: 0\n };\n const getDampening = (delta)=>{\n const factor = Math.abs(delta) / 20;\n return 1 / (1.5 + factor);\n };\n // Only apply swipe in the locked direction\n if (swipeDirection === 'y') {\n // Handle vertical swipes\n if (swipeDirections.includes('top') || swipeDirections.includes('bottom')) {\n if (swipeDirections.includes('top') && yDelta < 0 || swipeDirections.includes('bottom') && yDelta > 0) {\n swipeAmount.y = yDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = yDelta * getDampening(yDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.y = Math.abs(dampenedDelta) < Math.abs(yDelta) ? dampenedDelta : yDelta;\n }\n }\n } else if (swipeDirection === 'x') {\n // Handle horizontal swipes\n if (swipeDirections.includes('left') || swipeDirections.includes('right')) {\n if (swipeDirections.includes('left') && xDelta < 0 || swipeDirections.includes('right') && xDelta > 0) {\n swipeAmount.x = xDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = xDelta * getDampening(xDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.x = Math.abs(dampenedDelta) < Math.abs(xDelta) ? dampenedDelta : xDelta;\n }\n }\n }\n if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {\n setIsSwiped(true);\n }\n (_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.setProperty('--swipe-amount-x', `${swipeAmount.x}px`);\n (_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);\n }\n }, closeButton && !toast.jsx && toastType !== 'loading' ? /*#__PURE__*/ React.createElement(\"button\", {\n \"aria-label\": closeButtonAriaLabel,\n \"data-disabled\": disabled,\n \"data-close-button\": true,\n onClick: disabled || !dismissible ? ()=>{} : ()=>{\n deleteToast();\n toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);\n },\n className: cn(classNames == null ? void 0 : classNames.closeButton, toast == null ? void 0 : (_toast_classNames2 = toast.classNames) == null ? void 0 : _toast_classNames2.closeButton)\n }, (_icons_close = icons == null ? void 0 : icons.close) != null ? _icons_close : CloseIcon) : null, (toastType || toast.icon || toast.promise) && toast.icon !== null && ((icons == null ? void 0 : icons[toastType]) !== null || toast.icon) ? /*#__PURE__*/ React.createElement(\"div\", {\n \"data-icon\": \"\",\n className: cn(classNames == null ? void 0 : classNames.icon, toast == null ? void 0 : (_toast_classNames3 = toast.classNames) == null ? void 0 : _toast_classNames3.icon)\n }, toast.promise || toast.type === 'loading' && !toast.icon ? toast.icon || getLoadingIcon() : null, toast.type !== 'loading' ? icon : null) : null, /*#__PURE__*/ React.createElement(\"div\", {\n \"data-content\": \"\",\n className: cn(classNames == null ? void 0 : classNames.content, toast == null ? void 0 : (_toast_classNames4 = toast.classNames) == null ? void 0 : _toast_classNames4.content)\n }, /*#__PURE__*/ React.createElement(\"div\", {\n \"data-title\": \"\",\n className: cn(classNames == null ? void 0 : classNames.title, toast == null ? void 0 : (_toast_classNames5 = toast.classNames) == null ? void 0 : _toast_classNames5.title)\n }, toast.jsx ? toast.jsx : typeof toast.title === 'function' ? toast.title() : toast.title), toast.description ? /*#__PURE__*/ React.createElement(\"div\", {\n \"data-description\": \"\",\n className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description, toast == null ? void 0 : (_toast_classNames6 = toast.classNames) == null ? void 0 : _toast_classNames6.description)\n }, typeof toast.description === 'function' ? toast.description() : toast.description) : null), /*#__PURE__*/ React.isValidElement(toast.cancel) ? toast.cancel : toast.cancel && isAction(toast.cancel) ? /*#__PURE__*/ React.createElement(\"button\", {\n \"data-button\": true,\n \"data-cancel\": true,\n style: toast.cancelButtonStyle || cancelButtonStyle,\n onClick: (event)=>{\n // We need to check twice because typescript\n if (!isAction(toast.cancel)) return;\n if (!dismissible) return;\n toast.cancel.onClick == null ? void 0 : toast.cancel.onClick.call(toast.cancel, event);\n deleteToast();\n },\n className: cn(classNames == null ? void 0 : classNames.cancelButton, toast == null ? void 0 : (_toast_classNames7 = toast.classNames) == null ? void 0 : _toast_classNames7.cancelButton)\n }, toast.cancel.label) : null, /*#__PURE__*/ React.isValidElement(toast.action) ? toast.action : toast.action && isAction(toast.action) ? /*#__PURE__*/ React.createElement(\"button\", {\n \"data-button\": true,\n \"data-action\": true,\n style: toast.actionButtonStyle || actionButtonStyle,\n onClick: (event)=>{\n // We need to check twice because typescript\n if (!isAction(toast.action)) return;\n toast.action.onClick == null ? void 0 : toast.action.onClick.call(toast.action, event);\n if (event.defaultPrevented) return;\n deleteToast();\n },\n className: cn(classNames == null ? void 0 : classNames.actionButton, toast == null ? void 0 : (_toast_classNames8 = toast.classNames) == null ? void 0 : _toast_classNames8.actionButton)\n }, toast.action.label) : null);\n};\nfunction getDocumentDirection() {\n if (typeof window === 'undefined') return 'ltr';\n if (typeof document === 'undefined') return 'ltr'; // For Fresh purpose\n const dirAttribute = document.documentElement.getAttribute('dir');\n if (dirAttribute === 'auto' || !dirAttribute) {\n return window.getComputedStyle(document.documentElement).direction;\n }\n return dirAttribute;\n}\nfunction assignOffset(defaultOffset, mobileOffset) {\n const styles = {};\n [\n defaultOffset,\n mobileOffset\n ].forEach((offset, index)=>{\n const isMobile = index === 1;\n const prefix = isMobile ? '--mobile-offset' : '--offset';\n const defaultValue = isMobile ? MOBILE_VIEWPORT_OFFSET : VIEWPORT_OFFSET;\n function assignAll(offset) {\n [\n 'top',\n 'right',\n 'bottom',\n 'left'\n ].forEach((key)=>{\n styles[`${prefix}-${key}`] = typeof offset === 'number' ? `${offset}px` : offset;\n });\n }\n if (typeof offset === 'number' || typeof offset === 'string') {\n assignAll(offset);\n } else if (typeof offset === 'object') {\n [\n 'top',\n 'right',\n 'bottom',\n 'left'\n ].forEach((key)=>{\n if (offset[key] === undefined) {\n styles[`${prefix}-${key}`] = defaultValue;\n } else {\n styles[`${prefix}-${key}`] = typeof offset[key] === 'number' ? `${offset[key]}px` : offset[key];\n }\n });\n } else {\n assignAll(defaultValue);\n }\n });\n return styles;\n}\nfunction useSonner() {\n const [activeToasts, setActiveToasts] = React.useState([]);\n React.useEffect(()=>{\n return ToastState.subscribe((toast)=>{\n if (toast.dismiss) {\n setTimeout(()=>{\n ReactDOM.flushSync(()=>{\n setActiveToasts((toasts)=>toasts.filter((t)=>t.id !== toast.id));\n });\n });\n return;\n }\n // Prevent batching, temp solution.\n setTimeout(()=>{\n ReactDOM.flushSync(()=>{\n setActiveToasts((toasts)=>{\n const indexOfExistingToast = toasts.findIndex((t)=>t.id === toast.id);\n // Update the toast if it already exists\n if (indexOfExistingToast !== -1) {\n return [\n ...toasts.slice(0, indexOfExistingToast),\n {\n ...toasts[indexOfExistingToast],\n ...toast\n },\n ...toasts.slice(indexOfExistingToast + 1)\n ];\n }\n return [\n toast,\n ...toasts\n ];\n });\n });\n });\n });\n }, []);\n return {\n toasts: activeToasts\n };\n}\nconst Toaster = /*#__PURE__*/ React.forwardRef(function Toaster(props, ref) {\n const { id, invert, position = 'bottom-right', hotkey = [\n 'altKey',\n 'KeyT'\n ], expand, closeButton, className, offset, mobileOffset, theme = 'light', richColors, duration, style, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions, dir = getDocumentDirection(), gap = GAP, icons, containerAriaLabel = 'Notifications' } = props;\n const [toasts, setToasts] = React.useState([]);\n const filteredToasts = React.useMemo(()=>{\n if (id) {\n return toasts.filter((toast)=>toast.toasterId === id);\n }\n return toasts.filter((toast)=>!toast.toasterId);\n }, [\n toasts,\n id\n ]);\n const possiblePositions = React.useMemo(()=>{\n return Array.from(new Set([\n position\n ].concat(filteredToasts.filter((toast)=>toast.position).map((toast)=>toast.position))));\n }, [\n filteredToasts,\n position\n ]);\n const [heights, setHeights] = React.useState([]);\n const [expanded, setExpanded] = React.useState(false);\n const [interacting, setInteracting] = React.useState(false);\n const [actualTheme, setActualTheme] = React.useState(theme !== 'system' ? theme : typeof window !== 'undefined' ? window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' : 'light');\n const listRef = React.useRef(null);\n const hotkeyLabel = hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, '');\n const lastFocusedElementRef = React.useRef(null);\n const isFocusWithinRef = React.useRef(false);\n const removeToast = React.useCallback((toastToRemove)=>{\n setToasts((toasts)=>{\n var _toasts_find;\n if (!((_toasts_find = toasts.find((toast)=>toast.id === toastToRemove.id)) == null ? void 0 : _toasts_find.delete)) {\n ToastState.dismiss(toastToRemove.id);\n }\n return toasts.filter(({ id })=>id !== toastToRemove.id);\n });\n }, []);\n React.useEffect(()=>{\n return ToastState.subscribe((toast)=>{\n if (toast.dismiss) {\n // Prevent batching of other state updates\n requestAnimationFrame(()=>{\n setToasts((toasts)=>toasts.map((t)=>t.id === toast.id ? {\n ...t,\n delete: true\n } : t));\n });\n return;\n }\n // Prevent batching, temp solution.\n setTimeout(()=>{\n ReactDOM.flushSync(()=>{\n setToasts((toasts)=>{\n const indexOfExistingToast = toasts.findIndex((t)=>t.id === toast.id);\n // Update the toast if it already exists\n if (indexOfExistingToast !== -1) {\n return [\n ...toasts.slice(0, indexOfExistingToast),\n {\n ...toasts[indexOfExistingToast],\n ...toast\n },\n ...toasts.slice(indexOfExistingToast + 1)\n ];\n }\n return [\n toast,\n ...toasts\n ];\n });\n });\n });\n });\n }, [\n toasts\n ]);\n React.useEffect(()=>{\n if (theme !== 'system') {\n setActualTheme(theme);\n return;\n }\n if (theme === 'system') {\n // check if current preference is dark\n if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {\n // it's currently dark\n setActualTheme('dark');\n } else {\n // it's not dark\n setActualTheme('light');\n }\n }\n if (typeof window === 'undefined') return;\n const darkMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n try {\n // Chrome & Firefox\n darkMediaQuery.addEventListener('change', ({ matches })=>{\n if (matches) {\n setActualTheme('dark');\n } else {\n setActualTheme('light');\n }\n });\n } catch (error) {\n // Safari < 14\n darkMediaQuery.addListener(({ matches })=>{\n try {\n if (matches) {\n setActualTheme('dark');\n } else {\n setActualTheme('light');\n }\n } catch (e) {\n console.error(e);\n }\n });\n }\n }, [\n theme\n ]);\n React.useEffect(()=>{\n // Ensure expanded is always false when no toasts are present / only one left\n if (toasts.length <= 1) {\n setExpanded(false);\n }\n }, [\n toasts\n ]);\n React.useEffect(()=>{\n const handleKeyDown = (event)=>{\n var _listRef_current;\n const isHotkeyPressed = hotkey.every((key)=>event[key] || event.code === key);\n if (isHotkeyPressed) {\n var _listRef_current1;\n setExpanded(true);\n (_listRef_current1 = listRef.current) == null ? void 0 : _listRef_current1.focus();\n }\n if (event.code === 'Escape' && (document.activeElement === listRef.current || ((_listRef_current = listRef.current) == null ? void 0 : _listRef_current.contains(document.activeElement)))) {\n setExpanded(false);\n }\n };\n document.addEventListener('keydown', handleKeyDown);\n return ()=>document.removeEventListener('keydown', handleKeyDown);\n }, [\n hotkey\n ]);\n React.useEffect(()=>{\n if (listRef.current) {\n return ()=>{\n if (lastFocusedElementRef.current) {\n lastFocusedElementRef.current.focus({\n preventScroll: true\n });\n lastFocusedElementRef.current = null;\n isFocusWithinRef.current = false;\n }\n };\n }\n }, [\n listRef.current\n ]);\n return(// Remove item from normal navigation flow, only available via hotkey\n /*#__PURE__*/ React.createElement(\"section\", {\n ref: ref,\n \"aria-label\": `${containerAriaLabel} ${hotkeyLabel}`,\n tabIndex: -1,\n \"aria-live\": \"polite\",\n \"aria-relevant\": \"additions text\",\n \"aria-atomic\": \"false\",\n suppressHydrationWarning: true\n }, possiblePositions.map((position, index)=>{\n var _heights_;\n const [y, x] = position.split('-');\n if (!filteredToasts.length) return null;\n return /*#__PURE__*/ React.createElement(\"ol\", {\n key: position,\n dir: dir === 'auto' ? getDocumentDirection() : dir,\n tabIndex: -1,\n ref: listRef,\n className: className,\n \"data-sonner-toaster\": true,\n \"data-sonner-theme\": actualTheme,\n \"data-y-position\": y,\n \"data-x-position\": x,\n style: {\n '--front-toast-height': `${((_heights_ = heights[0]) == null ? void 0 : _heights_.height) || 0}px`,\n '--width': `${TOAST_WIDTH}px`,\n '--gap': `${gap}px`,\n ...style,\n ...assignOffset(offset, mobileOffset)\n },\n onBlur: (event)=>{\n if (isFocusWithinRef.current && !event.currentTarget.contains(event.relatedTarget)) {\n isFocusWithinRef.current = false;\n if (lastFocusedElementRef.current) {\n lastFocusedElementRef.current.focus({\n preventScroll: true\n });\n lastFocusedElementRef.current = null;\n }\n }\n },\n onFocus: (event)=>{\n const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';\n if (isNotDismissible) return;\n if (!isFocusWithinRef.current) {\n isFocusWithinRef.current = true;\n lastFocusedElementRef.current = event.relatedTarget;\n }\n },\n onMouseEnter: ()=>setExpanded(true),\n onMouseMove: ()=>setExpanded(true),\n onMouseLeave: ()=>{\n // Avoid setting expanded to false when interacting with a toast, e.g. swiping\n if (!interacting) {\n setExpanded(false);\n }\n },\n onDragEnd: ()=>setExpanded(false),\n onPointerDown: (event)=>{\n const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';\n if (isNotDismissible) return;\n setInteracting(true);\n },\n onPointerUp: ()=>setInteracting(false)\n }, filteredToasts.filter((toast)=>!toast.position && index === 0 || toast.position === position).map((toast, index)=>{\n var _toastOptions_duration, _toastOptions_closeButton;\n return /*#__PURE__*/ React.createElement(Toast, {\n key: toast.id,\n icons: icons,\n index: index,\n toast: toast,\n defaultRichColors: richColors,\n duration: (_toastOptions_duration = toastOptions == null ? void 0 : toastOptions.duration) != null ? _toastOptions_duration : duration,\n className: toastOptions == null ? void 0 : toastOptions.className,\n descriptionClassName: toastOptions == null ? void 0 : toastOptions.descriptionClassName,\n invert: invert,\n visibleToasts: visibleToasts,\n closeButton: (_toastOptions_closeButton = toastOptions == null ? void 0 : toastOptions.closeButton) != null ? _toastOptions_closeButton : closeButton,\n interacting: interacting,\n position: position,\n style: toastOptions == null ? void 0 : toastOptions.style,\n unstyled: toastOptions == null ? void 0 : toastOptions.unstyled,\n classNames: toastOptions == null ? void 0 : toastOptions.classNames,\n cancelButtonStyle: toastOptions == null ? void 0 : toastOptions.cancelButtonStyle,\n actionButtonStyle: toastOptions == null ? void 0 : toastOptions.actionButtonStyle,\n closeButtonAriaLabel: toastOptions == null ? void 0 : toastOptions.closeButtonAriaLabel,\n removeToast: removeToast,\n toasts: filteredToasts.filter((t)=>t.position == toast.position),\n heights: heights.filter((h)=>h.position == toast.position),\n setHeights: setHeights,\n expandByDefault: expand,\n gap: gap,\n expanded: expanded,\n swipeDirections: props.swipeDirections\n });\n }));\n })));\n});\n\nexport { Toaster, toast, useSonner };\n"],"names":["__insertCSS","code","head","style","getAsset","type","SuccessIcon","InfoIcon","WarningIcon","ErrorIcon","bars","Loader","visible","className","React","_","i","CloseIcon","useIsDocumentHidden","isDocumentHidden","setIsDocumentHidden","callback","toastsCounter","Observer","subscriber","index","data","_data_id","message","rest","id","alreadyExists","toast","dismissible","promise","p","shouldDismiss","result","originalPromise","response","isHttpResponse","promiseData","description","toastSettings","error","unwrap","resolve","reject","jsx","ToastState","toastFunction","basicToast","getHistory","getToasts","isAction","action","VISIBLE_TOASTS_AMOUNT","VIEWPORT_OFFSET","MOBILE_VIEWPORT_OFFSET","TOAST_LIFETIME","TOAST_WIDTH","GAP","SWIPE_THRESHOLD","TIME_BEFORE_UNMOUNT","cn","classes","getDefaultSwipeDirections","position","y","x","directions","Toast","props","_toast_classNames","_toast_classNames1","_toast_classNames2","_toast_classNames3","_toast_classNames4","_toast_classNames5","_toast_classNames6","_toast_classNames7","_toast_classNames8","ToasterInvert","unstyled","interacting","setHeights","visibleToasts","heights","toasts","expanded","removeToast","defaultRichColors","closeButtonFromToaster","cancelButtonStyle","actionButtonStyle","descriptionClassName","durationFromToaster","gap","expandByDefault","classNames","icons","closeButtonAriaLabel","swipeDirection","setSwipeDirection","swipeOutDirection","setSwipeOutDirection","mounted","setMounted","removed","setRemoved","swiping","setSwiping","swipeOut","setSwipeOut","isSwiped","setIsSwiped","offsetBeforeRemove","setOffsetBeforeRemove","initialHeight","setInitialHeight","remainingTime","dragStartTime","toastRef","isFront","isVisible","toastType","toastClassname","toastDescriptionClassname","heightIndex","height","closeButton","_toast_closeButton","duration","closeTimerStartTimeRef","offset","lastCloseTimerStartTimeRef","pointerStartRef","toastsHeightBefore","prev","curr","reducerIndex","invert","disabled","toastNode","h","originalHeight","newHeight","deleteToast","timeoutId","elapsedTime","getLoadingIcon","icon","_toast_richColors","_icons_close","event","_toastRef_current","_toastRef_current1","_dragStartTime_current","swipeAmountX","swipeAmountY","timeTaken","swipeAmount","velocity","_toastRef_current2","_toastRef_current3","_window_getSelection","yDelta","xDelta","_props_swipeDirections","swipeDirections","getDampening","delta","dampenedDelta","getDocumentDirection","dirAttribute","assignOffset","defaultOffset","mobileOffset","styles","isMobile","prefix","defaultValue","assignAll","key","Toaster","ref","hotkey","expand","theme","richColors","toastOptions","dir","containerAriaLabel","setToasts","filteredToasts","possiblePositions","setExpanded","setInteracting","actualTheme","setActualTheme","listRef","hotkeyLabel","lastFocusedElementRef","isFocusWithinRef","toastToRemove","_toasts_find","t","ReactDOM","indexOfExistingToast","darkMediaQuery","matches","e","handleKeyDown","_listRef_current","_listRef_current1","_heights_","_toastOptions_duration","_toastOptions_closeButton"],"mappings":";;AACA,SAASA,GAAYC,GAAM;AACzB,MAAa,OAAO,WAAY,IAAa;AAC7C,MAAIC,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC,GAC/DC,IAAQ,SAAS,cAAc,OAAO;AAC1C,EAAAA,EAAM,OAAO,YACbD,EAAK,YAAYC,CAAK,GACrBA,EAAM,aAAcA,EAAM,WAAW,UAAUF,IAAQE,EAAM,YAAY,SAAS,eAAeF,CAAI,CAAC;AACzG;AAKA,MAAMG,KAAW,CAACC,MAAO;AACrB,UAAOA,GAAI;AAAA,IACP,KAAK;AACD,aAAOC;AAAA,IACX,KAAK;AACD,aAAOC;AAAA,IACX,KAAK;AACD,aAAOC;AAAA,IACX,KAAK;AACD,aAAOC;AAAA,IACX;AACI,aAAO;AAAA,EACnB;AACA,GACMC,KAAO,MAAM,EAAE,EAAE,KAAK,CAAC,GACvBC,KAAS,CAAC,EAAE,SAAAC,GAAS,WAAAC,QACFC,gBAAAA,EAAM,cAAc,OAAO;AAAA,EAC5C,WAAW;AAAA,IACP;AAAA,IACAD;AAAA,EACZ,EAAU,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAC1B,gBAAgBD;AACxB,GAAqBE,gBAAAA,EAAM,cAAc,OAAO;AAAA,EACxC,WAAW;AACnB,GAAOJ,GAAK,IAAI,CAACK,GAAG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oreList":[0]}
@@ -0,0 +1,211 @@
1
+ var E = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], v = /* @__PURE__ */ E.join(","), T = typeof Element > "u", d = T ? function() {
2
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, b = !T && Element.prototype.getRootNode ? function(i) {
3
+ var t;
4
+ return i == null || (t = i.getRootNode) === null || t === void 0 ? void 0 : t.call(i);
5
+ } : function(i) {
6
+ return i?.ownerDocument;
7
+ }, h = function(t, e) {
8
+ var r;
9
+ e === void 0 && (e = !0);
10
+ var a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = a === "" || a === "true", n = l || e && t && // closest does not exist on shadow roots, so we fall back to a manual
11
+ // lookup upward, in case it is not defined.
12
+ (typeof t.closest == "function" ? t.closest("[inert]") : h(t.parentNode));
13
+ return n;
14
+ }, x = function(t) {
15
+ var e, r = t == null || (e = t.getAttribute) === null || e === void 0 ? void 0 : e.call(t, "contenteditable");
16
+ return r === "" || r === "true";
17
+ }, I = function(t, e, r) {
18
+ if (h(t))
19
+ return [];
20
+ var a = Array.prototype.slice.apply(t.querySelectorAll(v));
21
+ return e && d.call(t, v) && a.unshift(t), a = a.filter(r), a;
22
+ }, g = function(t, e, r) {
23
+ for (var a = [], l = Array.from(t); l.length; ) {
24
+ var n = l.shift();
25
+ if (!h(n, !1))
26
+ if (n.tagName === "SLOT") {
27
+ var c = n.assignedElements(), o = c.length ? c : n.children, u = g(o, !0, r);
28
+ r.flatten ? a.push.apply(a, u) : a.push({
29
+ scopeParent: n,
30
+ candidates: u
31
+ });
32
+ } else {
33
+ var s = d.call(n, v);
34
+ s && r.filter(n) && (e || !t.includes(n)) && a.push(n);
35
+ var f = n.shadowRoot || // check for an undisclosed shadow
36
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(n), A = !h(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(n));
37
+ if (f && A) {
38
+ var p = g(f === !0 ? n.children : f.children, !0, r);
39
+ r.flatten ? a.push.apply(a, p) : a.push({
40
+ scopeParent: n,
41
+ candidates: p
42
+ });
43
+ } else
44
+ l.unshift.apply(l, n.children);
45
+ }
46
+ }
47
+ return a;
48
+ }, m = function(t) {
49
+ return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
50
+ }, R = function(t) {
51
+ if (!t)
52
+ throw new Error("No node provided");
53
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || x(t)) && !m(t) ? 0 : t.tabIndex;
54
+ }, O = function(t, e) {
55
+ var r = R(t);
56
+ return r < 0 && e && !m(t) ? 0 : r;
57
+ }, k = function(t, e) {
58
+ return t.tabIndex === e.tabIndex ? t.documentOrder - e.documentOrder : t.tabIndex - e.tabIndex;
59
+ }, C = function(t) {
60
+ return t.tagName === "INPUT";
61
+ }, D = function(t) {
62
+ return C(t) && t.type === "hidden";
63
+ }, F = function(t) {
64
+ var e = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
65
+ return r.tagName === "SUMMARY";
66
+ });
67
+ return e;
68
+ }, M = function(t, e) {
69
+ for (var r = 0; r < t.length; r++)
70
+ if (t[r].checked && t[r].form === e)
71
+ return t[r];
72
+ }, P = function(t) {
73
+ if (!t.name)
74
+ return !0;
75
+ var e = t.form || b(t), r = function(c) {
76
+ return e.querySelectorAll('input[type="radio"][name="' + c + '"]');
77
+ }, a;
78
+ if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
79
+ a = r(window.CSS.escape(t.name));
80
+ else
81
+ try {
82
+ a = r(t.name);
83
+ } catch (n) {
84
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
85
+ }
86
+ var l = M(a, t.form);
87
+ return !l || l === t;
88
+ }, L = function(t) {
89
+ return C(t) && t.type === "radio";
90
+ }, V = function(t) {
91
+ return L(t) && !P(t);
92
+ }, B = function(t) {
93
+ var e, r = t && b(t), a = (e = r) === null || e === void 0 ? void 0 : e.host, l = !1;
94
+ if (r && r !== t) {
95
+ var n, c, o;
96
+ for (l = !!((n = a) !== null && n !== void 0 && (c = n.ownerDocument) !== null && c !== void 0 && c.contains(a) || t != null && (o = t.ownerDocument) !== null && o !== void 0 && o.contains(t)); !l && a; ) {
97
+ var u, s, f;
98
+ r = b(a), a = (u = r) === null || u === void 0 ? void 0 : u.host, l = !!((s = a) !== null && s !== void 0 && (f = s.ownerDocument) !== null && f !== void 0 && f.contains(a));
99
+ }
100
+ }
101
+ return l;
102
+ }, w = function(t) {
103
+ var e = t.getBoundingClientRect(), r = e.width, a = e.height;
104
+ return r === 0 && a === 0;
105
+ }, q = function(t, e) {
106
+ var r = e.displayCheck, a = e.getShadowRoot;
107
+ if (r === "full-native" && "checkVisibility" in t) {
108
+ var l = t.checkVisibility({
109
+ // Checking opacity might be desirable for some use cases, but natively,
110
+ // opacity zero elements _are_ focusable and tabbable.
111
+ checkOpacity: !1,
112
+ opacityProperty: !1,
113
+ contentVisibilityAuto: !0,
114
+ visibilityProperty: !0,
115
+ // This is an alias for `visibilityProperty`. Contemporary browsers
116
+ // support both. However, this alias has wider browser support (Chrome
117
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
118
+ // we include it anyway.
119
+ checkVisibilityCSS: !0
120
+ });
121
+ return !l;
122
+ }
123
+ if (getComputedStyle(t).visibility === "hidden")
124
+ return !0;
125
+ var n = d.call(t, "details>summary:first-of-type"), c = n ? t.parentElement : t;
126
+ if (d.call(c, "details:not([open]) *"))
127
+ return !0;
128
+ if (!r || r === "full" || // full-native can run this branch when it falls through in case
129
+ // Element#checkVisibility is unsupported
130
+ r === "full-native" || r === "legacy-full") {
131
+ if (typeof a == "function") {
132
+ for (var o = t; t; ) {
133
+ var u = t.parentElement, s = b(t);
134
+ if (u && !u.shadowRoot && a(u) === !0)
135
+ return w(t);
136
+ t.assignedSlot ? t = t.assignedSlot : !u && s !== t.ownerDocument ? t = s.host : t = u;
137
+ }
138
+ t = o;
139
+ }
140
+ if (B(t))
141
+ return !t.getClientRects().length;
142
+ if (r !== "legacy-full")
143
+ return !0;
144
+ } else if (r === "non-zero-area")
145
+ return w(t);
146
+ return !1;
147
+ }, U = function(t) {
148
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
149
+ for (var e = t.parentElement; e; ) {
150
+ if (e.tagName === "FIELDSET" && e.disabled) {
151
+ for (var r = 0; r < e.children.length; r++) {
152
+ var a = e.children.item(r);
153
+ if (a.tagName === "LEGEND")
154
+ return d.call(e, "fieldset[disabled] *") ? !0 : !a.contains(t);
155
+ }
156
+ return !0;
157
+ }
158
+ e = e.parentElement;
159
+ }
160
+ return !1;
161
+ }, y = function(t, e) {
162
+ return !(e.disabled || D(e) || q(e, t) || // For a details element with a summary, the summary element gets the focus
163
+ F(e) || U(e));
164
+ }, S = function(t, e) {
165
+ return !(V(e) || R(e) < 0 || !y(t, e));
166
+ }, W = function(t) {
167
+ var e = parseInt(t.getAttribute("tabindex"), 10);
168
+ return !!(isNaN(e) || e >= 0);
169
+ }, N = function(t) {
170
+ var e = [], r = [];
171
+ return t.forEach(function(a, l) {
172
+ var n = !!a.scopeParent, c = n ? a.scopeParent : a, o = O(c, n), u = n ? N(a.candidates) : c;
173
+ o === 0 ? n ? e.push.apply(e, u) : e.push(c) : r.push({
174
+ documentOrder: l,
175
+ tabIndex: o,
176
+ item: a,
177
+ isScope: n,
178
+ content: u
179
+ });
180
+ }), r.sort(k).reduce(function(a, l) {
181
+ return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
182
+ }, []).concat(e);
183
+ }, Z = function(t, e) {
184
+ e = e || {};
185
+ var r;
186
+ return e.getShadowRoot ? r = g([t], e.includeContainer, {
187
+ filter: S.bind(null, e),
188
+ flatten: !1,
189
+ getShadowRoot: e.getShadowRoot,
190
+ shadowRootFilter: W
191
+ }) : r = I(t, e.includeContainer, S.bind(null, e)), N(r);
192
+ }, j = function(t, e) {
193
+ e = e || {};
194
+ var r;
195
+ return e.getShadowRoot ? r = g([t], e.includeContainer, {
196
+ filter: y.bind(null, e),
197
+ flatten: !0,
198
+ getShadowRoot: e.getShadowRoot
199
+ }) : r = I(t, e.includeContainer, y.bind(null, e)), r;
200
+ }, z = function(t, e) {
201
+ if (e = e || {}, !t)
202
+ throw new Error("No node provided");
203
+ return d.call(t, v) === !1 ? !1 : S(e, t);
204
+ };
205
+ export {
206
+ j as focusable,
207
+ R as getTabIndex,
208
+ z as isTabbable,
209
+ Z as tabbable
210
+ };
211
+ //# sourceMappingURL=index.esm.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.mjs","sources":["../../../../node_modules/tabbable/dist/index.esm.js"],"sourcesContent":["/*!\n* tabbable 6.4.0\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\n// NOTE: separate `:not()` selectors has broader browser support than the newer\n// `:not([inert], [inert] *)` (Feb 2023)\nvar candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n var _element$getRootNode;\n return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);\n} : function (element) {\n return element === null || element === void 0 ? void 0 : element.ownerDocument;\n};\n\n/**\n * Determines if a node is inert or in an inert ancestor.\n * @param {Node} [node]\n * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to\n * see if any of them are inert. If false, only `node` itself is considered.\n * @returns {boolean} True if inert itself or by way of being in an inert ancestor.\n * False if `node` is falsy.\n */\nvar _isInert = function isInert(node, lookUp) {\n var _node$getAttribute;\n if (lookUp === void 0) {\n lookUp = true;\n }\n // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`\n // JS API property; we have to check the attribute, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's an active element\n var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');\n var inert = inertAtt === '' || inertAtt === 'true';\n\n // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`\n // if it weren't for `matches()` not being a function on shadow roots; the following\n // code works for any kind of node\n var result = inert || lookUp && node && (\n // closest does not exist on shadow roots, so we fall back to a manual\n // lookup upward, in case it is not defined.\n typeof node.closest === 'function' ? node.closest('[inert]') : _isInert(node.parentNode));\n return result;\n};\n\n/**\n * Determines if a node's content is editable.\n * @param {Element} [node]\n * @returns True if it's content-editable; false if it's not or `node` is falsy.\n */\nvar isContentEditable = function isContentEditable(node) {\n var _node$getAttribute2;\n // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have\n // to use the attribute directly to check for this, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's a non-editable element\n var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');\n return attValue === '' || attValue === 'true';\n};\n\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n // even if `includeContainer=false`, we still have to check it for inertness because\n // if it's inert (either by itself or via its parent), then all its children are inert\n if (_isInert(el)) {\n return [];\n }\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n candidates = candidates.filter(filter);\n return candidates;\n};\n\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidateScope\n * @property {Element} scopeParent contains inner candidates\n * @property {Element[]} candidates list of candidates found in the scope parent\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidateScope>}\n */\nvar _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n if (_isInert(element, false)) {\n // no need to look up since we're drilling down\n // anything inside this container will also be inert\n continue;\n }\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = _getCandidatesIteratively(content, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n }\n\n // iterate over shadow content if possible\n var shadowRoot = element.shadowRoot ||\n // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n\n // no inert look up because we're already drilling down and checking for inertness\n // on the way down, so all containers to this root node should have already been\n // vetted as non-inert\n var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n return candidates;\n};\n\n/**\n * @private\n * Determines if the node has an explicitly specified `tabindex` attribute.\n * @param {HTMLElement} node\n * @returns {boolean} True if so; false if not.\n */\nvar hasTabIndex = function hasTabIndex(node) {\n return !isNaN(parseInt(node.getAttribute('tabindex'), 10));\n};\n\n/**\n * Determine the tab index of a given node.\n * @param {HTMLElement} node\n * @returns {number} Tab order (negative, 0, or positive number).\n * @throws {Error} If `node` is falsy.\n */\nvar getTabIndex = function getTabIndex(node) {\n if (!node) {\n throw new Error('No node provided');\n }\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {\n return 0;\n }\n }\n return node.tabIndex;\n};\n\n/**\n * Determine the tab index of a given node __for sort order purposes__.\n * @param {HTMLElement} node\n * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,\n * has tabIndex -1, but needs to be sorted by document order in order for its content to be\n * inserted into the correct sort position.\n * @returns {number} Tab order (negative, 0, or positive number).\n */\nvar getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {\n var tabIndex = getTabIndex(node);\n if (tabIndex < 0 && isScope && !hasTabIndex(node)) {\n return 0;\n }\n return tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n var radioScope = node.form || getRootNode(node);\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n var radioSet;\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\n// determines if a node is ultimately attached to the window's document\nvar isNodeAttached = function isNodeAttached(node) {\n var _nodeRoot;\n // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // To further complicate things, we have to look all the way up until we find a shadow HOST\n // that is attached (or find none) because the node might be in nested shadows...\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible\n // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed\n // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then\n // `ownerDocument` will be `null`, hence the optional chaining on it.\n var nodeRoot = node && getRootNode(node);\n var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;\n\n // in some cases, a detached node will return itself as the root instead of a document or\n // shadow root object, in which case, we shouldn't try to look further up the host chain\n var attached = false;\n if (nodeRoot && nodeRoot !== node) {\n var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;\n attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));\n while (!attached && nodeRootHost) {\n var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;\n // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,\n // which means we need to get the host's host and check if that parent host is contained\n // in (i.e. attached to) the document\n nodeRoot = getRootNode(nodeRootHost);\n nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;\n attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));\n }\n }\n return attached;\n};\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n return width === 0 && height === 0;\n};\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n if (displayCheck === 'full-native') {\n if ('checkVisibility' in node) {\n // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4\n // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility\n var visible = node.checkVisibility({\n // Checking opacity might be desirable for some use cases, but natively,\n // opacity zero elements _are_ focusable and tabbable.\n checkOpacity: false,\n opacityProperty: false,\n contentVisibilityAuto: true,\n visibilityProperty: true,\n // This is an alias for `visibilityProperty`. Contemporary browsers\n // support both. However, this alias has wider browser support (Chrome\n // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so\n // we include it anyway.\n checkVisibilityCSS: true\n });\n return !visible;\n }\n // Fall through to manual visibility checks\n }\n\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n }\n if (!displayCheck || displayCheck === 'full' ||\n // full-native can run this branch when it falls through in case\n // Element#checkVisibility is unsupported\n displayCheck === 'full-native' || displayCheck === 'legacy-full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n node = originalNode;\n }\n // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n if (isNodeAttached(node)) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n }\n\n // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n //\n // v6.0.0: As of this major release, the default 'full' option __no longer treats detached\n // nodes as visible with the 'none' fallback.__\n if (displayCheck !== 'legacy-full') {\n return true; // hidden\n }\n // else, fallback to 'none' mode and consider the node visible\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n }\n\n // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume\n // it's visible\n return false;\n};\n\n// form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement;\n // check if `node` is contained in a disabled <fieldset>\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i);\n // when the first <legend> (in document order) is found\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n }\n // the disabled <fieldset> containing `node` has no <legend>\n return true;\n }\n parentNode = parentNode.parentElement;\n }\n }\n\n // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||\n // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n return true;\n};\nvar isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n }\n // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n return false;\n};\n\n/**\n * @param {Array.<Element|CandidateScope>} candidates\n * @returns Element[]\n */\nvar _sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scopeParent;\n var element = isScope ? item.scopeParent : item;\n var candidateTabindex = getSortOrderTabIndex(element, isScope);\n var elements = isScope ? _sortByOrder(item.candidates) : element;\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = _getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isShadowRootTabbable\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n return _sortByOrder(candidates);\n};\nvar focusable = function focusable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = _getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n return candidates;\n};\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe:not([inert]):not([inert] *)').join(',');\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, getTabIndex, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n"],"names":["candidateSelectors","candidateSelector","NoElement","matches","getRootNode","element","_element$getRootNode","_isInert","node","lookUp","_node$getAttribute","inertAtt","inert","result","isContentEditable","_node$getAttribute2","attValue","getCandidates","el","includeContainer","filter","candidates","_getCandidatesIteratively","elements","options","elementsToCheck","assigned","content","nestedCandidates","validCandidate","shadowRoot","validShadowRoot","_nestedCandidates","hasTabIndex","getTabIndex","getSortOrderTabIndex","isScope","tabIndex","sortOrderedTabbables","a","b","isInput","isHiddenInput","isDetailsWithSummary","r","child","getCheckedRadio","nodes","form","i","isTabbableRadio","radioScope","queryRadios","name","radioSet","err","checked","isRadio","isNonTabbableRadio","isNodeAttached","_nodeRoot","nodeRoot","nodeRootHost","attached","_nodeRootHost","_nodeRootHost$ownerDo","_node$ownerDocument","_nodeRoot2","_nodeRootHost2","_nodeRootHost2$ownerD","isZeroArea","_node$getBoundingClie","width","height","isHidden","_ref","displayCheck","getShadowRoot","visible","isDirectSummary","nodeUnderDetails","originalNode","parentElement","rootNode","isDisabledFromFieldset","parentNode","isNodeMatchingSelectorFocusable","isNodeMatchingSelectorTabbable","isShadowRootTabbable","shadowHostNode","_sortByOrder","regularTabbables","orderedTabbables","item","candidateTabindex","acc","sortable","tabbable","container","focusable","isTabbable"],"mappings":"AAMA,IAAIA,IAAqB,CAAC,qCAAqC,sCAAsC,wCAAwC,uCAAuC,sCAAsC,oDAAoD,+CAA+C,+CAA+C,gFAAgF,6DAA6D,qCAAqC,GAC1hBC,IAAmC,gBAAAD,EAAmB,KAAK,GAAG,GAC9D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AAUA,KAAW,CAAA;AACrB,MAAIH;AACJ,SAAIG,EAAQ,gBACVH,IAAaC,EAA0B,CAAC4E,CAAS,GAAG1E,EAAQ,kBAAkB;AAAA,IAC5E,QAAQ8D,EAAgC,KAAK,MAAM9D,CAAO;AAAA,IAC1D,SAAS;AAAA,IACT,eAAeA,EAAQ;AAAA,EAC7B,CAAK,IAEDH,IAAaJ,EAAciF,GAAW1E,EAAQ,kBAAkB8D,EAAgC,KAAK,MAAM9D,CAAO,CAAC,GAE9GH;AACT,GACI+E,IAAa,SAAoB5F,GAAMgB,GAAS;AAElD,MADAA,IAAUA,KAAW,CAAA,GACjB,CAAChB;AACH,UAAM,IAAI,MAAM,kBAAkB;AAEpC,SAAIL,EAAQ,KAAKK,GAAMP,CAAiB,MAAM,KACrC,KAEFsF,EAA+B/D,GAAShB,CAAI;AACrD;","x_google_ignoreList":[0]}
@@ -0,0 +1,59 @@
1
+ import { __exports as d } from "../../../../_virtual/with-selector.development.mjs";
2
+ import M from "react";
3
+ import { __require as b } from "../../shim/index.mjs";
4
+ var s;
5
+ function H() {
6
+ return s ? d : (s = 1, process.env.NODE_ENV !== "production" && (function() {
7
+ function A(r, u) {
8
+ return r === u && (r !== 0 || 1 / r === 1 / u) || r !== r && u !== u;
9
+ }
10
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
11
+ var i = M, R = b(), T = typeof Object.is == "function" ? Object.is : A, V = R.useSyncExternalStore, D = i.useRef, S = i.useEffect, p = i.useMemo, G = i.useDebugValue;
12
+ d.useSyncExternalStoreWithSelector = function(r, u, a, c, f) {
13
+ var _ = D(null);
14
+ if (_.current === null) {
15
+ var t = { hasValue: !1, value: null };
16
+ _.current = t;
17
+ } else t = _.current;
18
+ _ = p(
19
+ function() {
20
+ function m(e) {
21
+ if (!v) {
22
+ if (v = !0, l = e, e = c(e), f !== void 0 && t.hasValue) {
23
+ var o = t.value;
24
+ if (f(o, e))
25
+ return O = o;
26
+ }
27
+ return O = e;
28
+ }
29
+ if (o = O, T(l, e))
30
+ return o;
31
+ var E = c(e);
32
+ return f !== void 0 && f(o, E) ? (l = e, o) : (l = e, O = E);
33
+ }
34
+ var v = !1, l, O, L = a === void 0 ? null : a;
35
+ return [
36
+ function() {
37
+ return m(u());
38
+ },
39
+ L === null ? void 0 : function() {
40
+ return m(L());
41
+ }
42
+ ];
43
+ },
44
+ [u, a, c, f]
45
+ );
46
+ var n = V(r, _[0], _[1]);
47
+ return S(
48
+ function() {
49
+ t.hasValue = !0, t.value = n;
50
+ },
51
+ [n]
52
+ ), G(n), n;
53
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
54
+ })(), d);
55
+ }
56
+ export {
57
+ H as __require
58
+ };
59
+ //# sourceMappingURL=with-selector.development.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-selector.development.mjs","sources":["../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["is","x","y","React","require$$0","shim","require$$1","objectIs","useSyncExternalStore","useRef","useEffect","useMemo","useDebugValue","withSelector_development","subscribe","getSnapshot","getServerSnapshot","selector","isEqual","instRef","inst","memoizedSelector","nextSnapshot","hasMemo","memoizedSnapshot","currentSelection","memoizedSelection","nextSelection","maybeGetServerSnapshot","value"],"mappings":";;;;;yBAWiB,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,aAASA,EAAGC,GAAGC,GAAG;AAChB,aAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA,IAC5E;AACI,IAAgB,OAAO,iCAAvB,OAEI,OAAO,+BAA+B,+BADxC,cAEA,+BAA+B,4BAA4B,OAAO;AACpE,QAAIC,IAAQC,GACVC,IAAOC,EAAA,GACPC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKP,GACzDQ,IAAuBH,EAAK,sBAC5BI,IAASN,EAAM,QACfO,IAAYP,EAAM,WAClBQ,IAAUR,EAAM,SAChBS,IAAgBT,EAAM;AACxB,IAAAU,qCAA2C,SACzCC,GACAC,GACAC,GACAC,GACAC,GACA;AACA,UAAIC,IAAUV,EAAO,IAAI;AACzB,UAAaU,EAAQ,YAAjB,MAA0B;AAC5B,YAAIC,IAAO,EAAE,UAAU,IAAI,OAAO,KAAI;AACtC,QAAAD,EAAQ,UAAUC;AAAA,MAC1B,MAAa,CAAAA,IAAOD,EAAQ;AACtB,MAAAA,IAAUR;AAAA,QACR,WAAY;AACV,mBAASU,EAAiBC,GAAc;AACtC,gBAAI,CAACC,GAAS;AAIZ,kBAHAA,IAAU,IACVC,IAAmBF,GACnBA,IAAeL,EAASK,CAAY,GACrBJ,MAAX,UAAsBE,EAAK,UAAU;AACvC,oBAAIK,IAAmBL,EAAK;AAC5B,oBAAI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