@servicetitan/anvil2 0.8.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. package/Alert-5cd1ce63.cjs +2 -0
  2. package/Alert-5cd1ce63.cjs.map +1 -0
  3. package/Alert-8b719ddf.js +87 -0
  4. package/Alert-8b719ddf.js.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.css +1 -1
  7. package/Alert.d.ts +10 -1
  8. package/Alert.js +1 -1
  9. package/Announcement-1a53f381.cjs +2 -0
  10. package/Announcement-1a53f381.cjs.map +1 -0
  11. package/Announcement-69af0ed1.js +86 -0
  12. package/Announcement-69af0ed1.js.map +1 -0
  13. package/Announcement.cjs +1 -1
  14. package/Announcement.css +1 -1
  15. package/Announcement.d.ts +10 -1
  16. package/Announcement.js +1 -1
  17. package/AnvilProvider.cjs +1 -1
  18. package/AnvilProvider.js +1 -1
  19. package/Avatar-077e77c4.js +121 -0
  20. package/Avatar-077e77c4.js.map +1 -0
  21. package/Avatar-d947aa19.cjs +2 -0
  22. package/Avatar-d947aa19.cjs.map +1 -0
  23. package/Avatar.cjs +1 -1
  24. package/Avatar.css +1 -1
  25. package/Avatar.d.ts +2 -2
  26. package/Avatar.js +6 -6
  27. package/Badge-8694a644.cjs +2 -0
  28. package/Badge-8694a644.cjs.map +1 -0
  29. package/Badge-d9278856.js +32 -0
  30. package/Badge-d9278856.js.map +1 -0
  31. package/Badge.cjs +1 -1
  32. package/Badge.css +1 -1
  33. package/Badge.js +1 -1
  34. package/Button-c4133e06.js +274 -0
  35. package/Button-c4133e06.js.map +1 -0
  36. package/Button-e9847a15.cjs +2 -0
  37. package/Button-e9847a15.cjs.map +1 -0
  38. package/Button.cjs +1 -1
  39. package/Button.css +1 -1
  40. package/Button.js +1 -1
  41. package/ButtonCompound.cjs +1 -1
  42. package/ButtonCompound.d.ts +2 -1
  43. package/ButtonCompound.js +1 -1
  44. package/ButtonLink.cjs +1 -1
  45. package/ButtonLink.d.ts +3 -2
  46. package/ButtonLink.js +1 -1
  47. package/ButtonToggle.cjs +1 -1
  48. package/ButtonToggle.js +1 -1
  49. package/{Calendar-4d7aca93.js → Calendar-19935376.js} +135 -135
  50. package/{Calendar-4d7aca93.js.map → Calendar-19935376.js.map} +1 -1
  51. package/Calendar-9a357309.cjs +2 -0
  52. package/{Calendar-e1d1d08b.cjs.map → Calendar-9a357309.cjs.map} +1 -1
  53. package/Calendar.cjs +1 -1
  54. package/Calendar.d.ts +6 -6
  55. package/Calendar.js +1 -1
  56. package/Card-32980e28.cjs +2 -0
  57. package/Card-32980e28.cjs.map +1 -0
  58. package/Card-f006730b.js +48 -0
  59. package/Card-f006730b.js.map +1 -0
  60. package/Card.cjs +1 -1
  61. package/Card.css +1 -1
  62. package/Card.js +1 -1
  63. package/Checkbox-0c62f83d.cjs +2 -0
  64. package/Checkbox-0c62f83d.cjs.map +1 -0
  65. package/Checkbox-f9ced9f9.js +146 -0
  66. package/Checkbox-f9ced9f9.js.map +1 -0
  67. package/Checkbox.cjs +1 -1
  68. package/Checkbox.css +1 -1
  69. package/Checkbox.js +1 -1
  70. package/Chip-10abfc56.js +59 -0
  71. package/Chip-10abfc56.js.map +1 -0
  72. package/Chip-ebd82bbe.cjs +2 -0
  73. package/Chip-ebd82bbe.cjs.map +1 -0
  74. package/Chip.cjs +1 -1
  75. package/Chip.css +1 -1
  76. package/Chip.d.ts +4 -2
  77. package/Chip.js +1 -1
  78. package/Combobox.cjs +1 -1
  79. package/Combobox.cjs.map +1 -1
  80. package/Combobox.d.ts +24 -5
  81. package/Combobox.js +24 -12
  82. package/Combobox.js.map +1 -1
  83. package/Details-6430d0dc.cjs +2 -0
  84. package/Details-6430d0dc.cjs.map +1 -0
  85. package/Details-6adfaafb.js +122 -0
  86. package/Details-6adfaafb.js.map +1 -0
  87. package/Details.cjs +1 -1
  88. package/Details.css +1 -1
  89. package/Details.d.ts +4 -12
  90. package/Details.js +1 -1
  91. package/Dialog-14e5961e.js +192 -0
  92. package/Dialog-14e5961e.js.map +1 -0
  93. package/Dialog-5d8fd59d.cjs +2 -0
  94. package/Dialog-5d8fd59d.cjs.map +1 -0
  95. package/Dialog.cjs +1 -1
  96. package/Dialog.d.ts +5 -4
  97. package/Dialog.js +1 -1
  98. package/{Divider-38187d6d.js → Divider-a01f8c9f.js} +32 -32
  99. package/Divider-a01f8c9f.js.map +1 -0
  100. package/Divider-fb2fb1dc.cjs +2 -0
  101. package/Divider-fb2fb1dc.cjs.map +1 -0
  102. package/Divider.cjs +1 -1
  103. package/Divider.css +1 -1
  104. package/Divider.d.ts +1 -1
  105. package/Divider.js +1 -1
  106. package/Drawer-28124c33.cjs +2 -0
  107. package/Drawer-28124c33.cjs.map +1 -0
  108. package/Drawer-f17c709d.js +190 -0
  109. package/Drawer-f17c709d.js.map +1 -0
  110. package/Drawer.cjs +1 -1
  111. package/Drawer.d.ts +4 -3
  112. package/Drawer.js +4 -4
  113. package/Flex-103266ff.js +35 -0
  114. package/Flex-103266ff.js.map +1 -0
  115. package/Flex-72db37e1.cjs +2 -0
  116. package/Flex-72db37e1.cjs.map +1 -0
  117. package/Flex.cjs +1 -1
  118. package/Flex.css +1 -1
  119. package/Flex.d.ts +6 -72
  120. package/Flex.js +1 -1
  121. package/Grid-62766148.cjs +2 -0
  122. package/Grid-62766148.cjs.map +1 -0
  123. package/Grid-bb280e0f.js +44 -0
  124. package/Grid-bb280e0f.js.map +1 -0
  125. package/Grid.cjs +1 -1
  126. package/Grid.css +1 -1
  127. package/Grid.d.ts +0 -72
  128. package/Grid.js +1 -1
  129. package/{Label-9db08425.js → Label-8200cf8f.js} +5 -5
  130. package/{Label-9db08425.js.map → Label-8200cf8f.js.map} +1 -1
  131. package/{Label-07b0f38c.cjs → Label-9349bc7d.cjs} +2 -2
  132. package/{Label-07b0f38c.cjs.map → Label-9349bc7d.cjs.map} +1 -1
  133. package/Layout.cjs +1 -1
  134. package/Layout.js +23 -23
  135. package/Layout.js.map +1 -1
  136. package/Link-16c5761c.cjs +2 -0
  137. package/Link-16c5761c.cjs.map +1 -0
  138. package/Link-73d4183f.js +46 -0
  139. package/Link-73d4183f.js.map +1 -0
  140. package/Link.cjs +1 -1
  141. package/Link.css +1 -1
  142. package/Link.js +1 -1
  143. package/ListView-2057fc20.cjs +2 -0
  144. package/ListView-2057fc20.cjs.map +1 -0
  145. package/{ListView-29cf9116.js → ListView-97a459d8.js} +128 -133
  146. package/ListView-97a459d8.js.map +1 -0
  147. package/ListView.cjs +1 -1
  148. package/ListView.css +1 -1
  149. package/ListView.js +1 -1
  150. package/ListView.module-608fe45b-1962692d.cjs +2 -0
  151. package/ListView.module-608fe45b-1962692d.cjs.map +1 -0
  152. package/ListView.module-608fe45b-b1e6395c.js +11 -0
  153. package/ListView.module-608fe45b-b1e6395c.js.map +1 -0
  154. package/Listbox-9c59ffc4.cjs +2 -0
  155. package/Listbox-9c59ffc4.cjs.map +1 -0
  156. package/Listbox-b0e5fdc3.js +308 -0
  157. package/Listbox-b0e5fdc3.js.map +1 -0
  158. package/Listbox.cjs +1 -1
  159. package/Listbox.js +12 -12
  160. package/LocalizationProvider.cjs +1 -1
  161. package/LocalizationProvider.cjs.map +1 -1
  162. package/LocalizationProvider.js +16 -15
  163. package/LocalizationProvider.js.map +1 -1
  164. package/{Menu-ab1b5fb6.js → Menu-44563169.js} +65 -64
  165. package/Menu-44563169.js.map +1 -0
  166. package/Menu-54dcf183.cjs +2 -0
  167. package/Menu-54dcf183.cjs.map +1 -0
  168. package/Menu.cjs +1 -1
  169. package/Menu.js +1 -1
  170. package/Overflow.cjs +1 -1
  171. package/Overflow.cjs.map +1 -1
  172. package/Overflow.js +108 -108
  173. package/Overflow.js.map +1 -1
  174. package/Page.cjs +1 -1
  175. package/Page.js +13 -13
  176. package/Page.js.map +1 -1
  177. package/{Popover-c03e96a7.js → Popover-43b95d09.js} +29 -28
  178. package/{Popover-c03e96a7.js.map → Popover-43b95d09.js.map} +1 -1
  179. package/Popover-708f4752.cjs +2 -0
  180. package/{Popover-01a92903.cjs.map → Popover-708f4752.cjs.map} +1 -1
  181. package/Popover.cjs +1 -1
  182. package/Popover.d.ts +8 -8
  183. package/Popover.js +1 -1
  184. package/{ProgressBar-ef621dd5.js → ProgressBar-3cd0c29c.js} +23 -23
  185. package/{ProgressBar-ef621dd5.js.map → ProgressBar-3cd0c29c.js.map} +1 -1
  186. package/ProgressBar-dc37000f.cjs +2 -0
  187. package/{ProgressBar-4f893820.cjs.map → ProgressBar-dc37000f.cjs.map} +1 -1
  188. package/ProgressBar.cjs +1 -1
  189. package/ProgressBar.js +1 -1
  190. package/README.md +9 -10
  191. package/Radio-20074a6b.cjs +2 -0
  192. package/Radio-20074a6b.cjs.map +1 -0
  193. package/{Radio-dab030c5.js → Radio-23738e1c.js} +27 -27
  194. package/Radio-23738e1c.js.map +1 -0
  195. package/Radio.cjs +1 -1
  196. package/Radio.css +1 -1
  197. package/Radio.js +1 -1
  198. package/SideNav-4b221089.cjs +2 -0
  199. package/SideNav-4b221089.cjs.map +1 -0
  200. package/SideNav-c841edde.js +235 -0
  201. package/SideNav-c841edde.js.map +1 -0
  202. package/SideNav.cjs +3 -3
  203. package/SideNav.css +1 -1
  204. package/SideNav.d.ts +4 -2
  205. package/SideNav.js +29 -29
  206. package/Spinner-86f0c106-3fb26339.cjs +2 -0
  207. package/{Spinner-041df00b-fd40dc86.cjs.map → Spinner-86f0c106-3fb26339.cjs.map} +1 -1
  208. package/Spinner-86f0c106-66c213d1.js +13 -0
  209. package/Spinner-86f0c106-66c213d1.js.map +1 -0
  210. package/SrOnly-69d90781.cjs +2 -0
  211. package/{SrOnly-ed780dfc.cjs.map → SrOnly-69d90781.cjs.map} +1 -1
  212. package/{SrOnly-219e862e.js → SrOnly-f331a0ad.js} +2 -2
  213. package/{SrOnly-219e862e.js.map → SrOnly-f331a0ad.js.map} +1 -1
  214. package/SrOnly.cjs +1 -1
  215. package/SrOnly.js +1 -1
  216. package/Stepper-b842a6b6.cjs +2 -0
  217. package/Stepper-b842a6b6.cjs.map +1 -0
  218. package/Stepper-e11afee4.js +373 -0
  219. package/Stepper-e11afee4.js.map +1 -0
  220. package/Stepper.cjs +1 -1
  221. package/Stepper.cjs.map +1 -1
  222. package/Stepper.css +1 -1
  223. package/Stepper.d.ts +39 -46
  224. package/Stepper.js +13 -13
  225. package/Stepper.js.map +1 -1
  226. package/{Switch-de621e8b.js → Switch-9322c398.js} +23 -23
  227. package/Switch-9322c398.js.map +1 -0
  228. package/Switch-971a1ffd.cjs +2 -0
  229. package/Switch-971a1ffd.cjs.map +1 -0
  230. package/Switch.cjs +1 -1
  231. package/Switch.css +1 -1
  232. package/Switch.js +1 -1
  233. package/Tab-94869ee7.cjs +10 -0
  234. package/Tab-94869ee7.cjs.map +1 -0
  235. package/{Tab-2efb0b29.js → Tab-e9280c87.js} +122 -122
  236. package/Tab-e9280c87.js.map +1 -0
  237. package/Tab.cjs +1 -1
  238. package/Tab.css +1 -1
  239. package/Tab.js +12 -12
  240. package/Text-d853921e.cjs +2 -0
  241. package/Text-d853921e.cjs.map +1 -0
  242. package/Text-e245e792.js +103 -0
  243. package/Text-e245e792.js.map +1 -0
  244. package/Text.cjs +1 -1
  245. package/Text.css +1 -1
  246. package/Text.js +1 -1
  247. package/TextField-0c2f3002.js +116 -0
  248. package/TextField-0c2f3002.js.map +1 -0
  249. package/TextField-b9883000.cjs +2 -0
  250. package/TextField-b9883000.cjs.map +1 -0
  251. package/TextField.cjs +1 -1
  252. package/TextField.css +1 -1
  253. package/TextField.js +1 -1
  254. package/Textarea-18b37e30.cjs +2 -0
  255. package/Textarea-18b37e30.cjs.map +1 -0
  256. package/Textarea-a573df75.js +114 -0
  257. package/Textarea-a573df75.js.map +1 -0
  258. package/Textarea.cjs +1 -1
  259. package/Textarea.css +1 -1
  260. package/Textarea.js +2 -2
  261. package/ThemeProvider.cjs +1 -1
  262. package/ThemeProvider.js +1 -1
  263. package/Tooltip-7bfe77c3.cjs +2 -0
  264. package/{Tooltip-ce4148a7.cjs.map → Tooltip-7bfe77c3.cjs.map} +1 -1
  265. package/{Tooltip-6f564b63.js → Tooltip-97a82aea.js} +30 -29
  266. package/Tooltip-97a82aea.js.map +1 -0
  267. package/Tooltip.cjs +1 -1
  268. package/Tooltip.js +1 -1
  269. package/anvil2.cjs +1 -1
  270. package/anvil2.d.ts +156 -290
  271. package/anvil2.js +90 -90
  272. package/check-5f087ea0-2609382e.cjs +2 -0
  273. package/check-5f087ea0-2609382e.cjs.map +1 -0
  274. package/check-5f087ea0-b5474547.js +6 -0
  275. package/check-5f087ea0-b5474547.js.map +1 -0
  276. package/check_circle-48e002d3-0d49b2da.cjs +2 -0
  277. package/check_circle-48e002d3-0d49b2da.cjs.map +1 -0
  278. package/check_circle-48e002d3-5838521c.js +7 -0
  279. package/check_circle-48e002d3-5838521c.js.map +1 -0
  280. package/chevron_right-5b0931b5-96f8a9c6.cjs +2 -0
  281. package/chevron_right-5b0931b5-96f8a9c6.cjs.map +1 -0
  282. package/chevron_right-5b0931b5-ac35ad56.js +6 -0
  283. package/chevron_right-5b0931b5-ac35ad56.js.map +1 -0
  284. package/close-064c8acc-4984cc86.cjs +2 -0
  285. package/close-064c8acc-4984cc86.cjs.map +1 -0
  286. package/close-064c8acc-7e0b4df7.js +6 -0
  287. package/close-064c8acc-7e0b4df7.js.map +1 -0
  288. package/{index-ccf0845b.js → floating-ui.react-20365654.js} +7774 -7984
  289. package/floating-ui.react-20365654.js.map +1 -0
  290. package/floating-ui.react-34d1b069.cjs +174 -0
  291. package/floating-ui.react-34d1b069.cjs.map +1 -0
  292. package/index-1f072fda.cjs +2 -0
  293. package/index-1f072fda.cjs.map +1 -0
  294. package/index-27ae68a3.cjs +2 -0
  295. package/index-27ae68a3.cjs.map +1 -0
  296. package/{index-b6ca5fc4.js → index-39087e81.js} +2 -2
  297. package/{index-b6ca5fc4.js.map → index-39087e81.js.map} +1 -1
  298. package/{index-8a331c33.cjs → index-67e83237.cjs} +2 -2
  299. package/{index-8a331c33.cjs.map → index-67e83237.cjs.map} +1 -1
  300. package/index-87a65c62.js +54 -0
  301. package/index-87a65c62.js.map +1 -0
  302. package/index-87fe0e18.js +37 -0
  303. package/index-87fe0e18.js.map +1 -0
  304. package/index-a0500942.cjs +2 -0
  305. package/index-a0500942.cjs.map +1 -0
  306. package/index-a062ce5a.js +480 -0
  307. package/index-a062ce5a.js.map +1 -0
  308. package/{index-5af41bd1.cjs → index-d3c6e880.cjs} +2 -2
  309. package/{index-5af41bd1.cjs.map → index-d3c6e880.cjs.map} +1 -1
  310. package/index-e2190769-803bc72d.cjs +23 -0
  311. package/index-e2190769-803bc72d.cjs.map +1 -0
  312. package/index-e2190769-db3e4fe9.js +3402 -0
  313. package/index-e2190769-db3e4fe9.js.map +1 -0
  314. package/index-e2190769.css +1 -0
  315. package/index-eb47459e-08bc2254.js +192 -0
  316. package/index-eb47459e-08bc2254.js.map +1 -0
  317. package/index-eb47459e-ded51408.cjs +2 -0
  318. package/index-eb47459e-ded51408.cjs.map +1 -0
  319. package/index-eb47459e.css +1 -0
  320. package/{index-4a524f55.js → index-efd117f9.js} +2 -2
  321. package/{index-4a524f55.js.map → index-efd117f9.js.map} +1 -1
  322. package/index2.css +1 -1
  323. package/info-af4c0112-9f16129f.cjs +2 -0
  324. package/info-af4c0112-9f16129f.cjs.map +1 -0
  325. package/{close-f5f4f7c7-ab2930de.js → info-af4c0112-f73c8f68.js} +2 -2
  326. package/info-af4c0112-f73c8f68.js.map +1 -0
  327. package/package.json +2 -2
  328. package/tinycolor-3b50a250.cjs +2 -0
  329. package/tinycolor-3b50a250.cjs.map +1 -0
  330. package/tinycolor-d415b1fd.js +712 -0
  331. package/tinycolor-d415b1fd.js.map +1 -0
  332. package/token.cjs +1 -1
  333. package/token.js +1 -1
  334. package/useAccessibleColor.cjs +6 -6
  335. package/useAccessibleColor.cjs.map +1 -1
  336. package/useAccessibleColor.js +291 -286
  337. package/useAccessibleColor.js.map +1 -1
  338. package/useBreakpoint-633dc5b4-4eec948e.cjs +2 -0
  339. package/useBreakpoint-633dc5b4-4eec948e.cjs.map +1 -0
  340. package/useBreakpoint-633dc5b4-f67b4090.js +183 -0
  341. package/useBreakpoint-633dc5b4-f67b4090.js.map +1 -0
  342. package/{usePrefersColorScheme-129544ad-f17399b0.js → usePrefersColorScheme-129544ad-3ba4632b.js} +2 -2
  343. package/{usePrefersColorScheme-129544ad-f17399b0.js.map → usePrefersColorScheme-129544ad-3ba4632b.js.map} +1 -1
  344. package/usePrefersColorScheme-129544ad-96356659.cjs +2 -0
  345. package/{usePrefersColorScheme-129544ad-b018d158.cjs.map → usePrefersColorScheme-129544ad-96356659.cjs.map} +1 -1
  346. package/usePrefersColorScheme.cjs +1 -1
  347. package/usePrefersColorScheme.js +38 -38
  348. package/useSwipe.cjs +1 -1
  349. package/useSwipe.js +40 -39
  350. package/useSwipe.js.map +1 -1
  351. package/Alert-34e59155.cjs +0 -2
  352. package/Alert-34e59155.cjs.map +0 -1
  353. package/Alert-824b3ad4.js +0 -88
  354. package/Alert-824b3ad4.js.map +0 -1
  355. package/Announcement-ba080c3e.js +0 -87
  356. package/Announcement-ba080c3e.js.map +0 -1
  357. package/Announcement-f76d3977.cjs +0 -2
  358. package/Announcement-f76d3977.cjs.map +0 -1
  359. package/Avatar-22bb74ca.js +0 -118
  360. package/Avatar-22bb74ca.js.map +0 -1
  361. package/Avatar-4e72aaae.cjs +0 -2
  362. package/Avatar-4e72aaae.cjs.map +0 -1
  363. package/Badge-da23aed3.js +0 -33
  364. package/Badge-da23aed3.js.map +0 -1
  365. package/Badge-ecee5e54.cjs +0 -2
  366. package/Badge-ecee5e54.cjs.map +0 -1
  367. package/Button-66b9c955.js +0 -274
  368. package/Button-66b9c955.js.map +0 -1
  369. package/Button-bf9d62af.cjs +0 -2
  370. package/Button-bf9d62af.cjs.map +0 -1
  371. package/Calendar-e1d1d08b.cjs +0 -2
  372. package/Card-407156d2.cjs +0 -2
  373. package/Card-407156d2.cjs.map +0 -1
  374. package/Card-6ded141e.js +0 -48
  375. package/Card-6ded141e.js.map +0 -1
  376. package/Checkbox-4cfbca71.cjs +0 -2
  377. package/Checkbox-4cfbca71.cjs.map +0 -1
  378. package/Checkbox-8d294c5e.js +0 -146
  379. package/Checkbox-8d294c5e.js.map +0 -1
  380. package/Chip-2c170535.js +0 -56
  381. package/Chip-2c170535.js.map +0 -1
  382. package/Chip-befa36a3.cjs +0 -2
  383. package/Chip-befa36a3.cjs.map +0 -1
  384. package/Combobox-087839e6.cjs +0 -23
  385. package/Combobox-087839e6.cjs.map +0 -1
  386. package/Combobox-8913ce4e.js +0 -2771
  387. package/Combobox-8913ce4e.js.map +0 -1
  388. package/Combobox.css +0 -1
  389. package/Details-54b5e7aa.js +0 -120
  390. package/Details-54b5e7aa.js.map +0 -1
  391. package/Details-c03ffac1.cjs +0 -2
  392. package/Details-c03ffac1.cjs.map +0 -1
  393. package/Dialog-d409d130.js +0 -180
  394. package/Dialog-d409d130.js.map +0 -1
  395. package/Dialog-d53be5d6.cjs +0 -2
  396. package/Dialog-d53be5d6.cjs.map +0 -1
  397. package/Divider-076892dc.cjs +0 -2
  398. package/Divider-076892dc.cjs.map +0 -1
  399. package/Divider-38187d6d.js.map +0 -1
  400. package/Drawer-ddd7914b.js +0 -178
  401. package/Drawer-ddd7914b.js.map +0 -1
  402. package/Drawer-ef353cb7.cjs +0 -2
  403. package/Drawer-ef353cb7.cjs.map +0 -1
  404. package/Flex-516baf92.cjs +0 -2
  405. package/Flex-516baf92.cjs.map +0 -1
  406. package/Flex-f1146ad5.js +0 -70
  407. package/Flex-f1146ad5.js.map +0 -1
  408. package/Grid-234bc5d1.js +0 -78
  409. package/Grid-234bc5d1.js.map +0 -1
  410. package/Grid-b47a9218.cjs +0 -2
  411. package/Grid-b47a9218.cjs.map +0 -1
  412. package/Link-0f117696.cjs +0 -2
  413. package/Link-0f117696.cjs.map +0 -1
  414. package/Link-e07677c7.js +0 -46
  415. package/Link-e07677c7.js.map +0 -1
  416. package/ListView-29cf9116.js.map +0 -1
  417. package/ListView-650be398.cjs +0 -2
  418. package/ListView-650be398.cjs.map +0 -1
  419. package/Listbox-30a94e14.cjs +0 -2
  420. package/Listbox-30a94e14.cjs.map +0 -1
  421. package/Listbox-b3bdffa7.js +0 -319
  422. package/Listbox-b3bdffa7.js.map +0 -1
  423. package/Listbox.css +0 -1
  424. package/Menu-8b2d56a2.cjs +0 -2
  425. package/Menu-8b2d56a2.cjs.map +0 -1
  426. package/Menu-ab1b5fb6.js.map +0 -1
  427. package/Popover-01a92903.cjs +0 -2
  428. package/ProgressBar-4f893820.cjs +0 -2
  429. package/Radio-5e9e9c5d.cjs +0 -2
  430. package/Radio-5e9e9c5d.cjs.map +0 -1
  431. package/Radio-dab030c5.js.map +0 -1
  432. package/SideNav-a46daccc.cjs +0 -2
  433. package/SideNav-a46daccc.cjs.map +0 -1
  434. package/SideNav-abd95834.js +0 -229
  435. package/SideNav-abd95834.js.map +0 -1
  436. package/Spinner-041df00b-fa2fcb57.js +0 -13
  437. package/Spinner-041df00b-fa2fcb57.js.map +0 -1
  438. package/Spinner-041df00b-fd40dc86.cjs +0 -2
  439. package/SrOnly-ed780dfc.cjs +0 -2
  440. package/Stepper-a7c03bda.cjs +0 -2
  441. package/Stepper-a7c03bda.cjs.map +0 -1
  442. package/Stepper-acc83b95.js +0 -276
  443. package/Stepper-acc83b95.js.map +0 -1
  444. package/Switch-bad8af12.cjs +0 -2
  445. package/Switch-bad8af12.cjs.map +0 -1
  446. package/Switch-de621e8b.js.map +0 -1
  447. package/Tab-2efb0b29.js.map +0 -1
  448. package/Tab-a7f56361.cjs +0 -10
  449. package/Tab-a7f56361.cjs.map +0 -1
  450. package/Text-10643eec.js +0 -103
  451. package/Text-10643eec.js.map +0 -1
  452. package/Text-2c217682.cjs +0 -2
  453. package/Text-2c217682.cjs.map +0 -1
  454. package/TextField-0e4b1063.cjs +0 -2
  455. package/TextField-0e4b1063.cjs.map +0 -1
  456. package/TextField-72d16321.js +0 -116
  457. package/TextField-72d16321.js.map +0 -1
  458. package/Textarea-218e3338.cjs +0 -2
  459. package/Textarea-218e3338.cjs.map +0 -1
  460. package/Textarea-9332ebd4.js +0 -113
  461. package/Textarea-9332ebd4.js.map +0 -1
  462. package/Tooltip-6f564b63.js.map +0 -1
  463. package/Tooltip-ce4148a7.cjs +0 -2
  464. package/check-f9f67964-2b87008b.js +0 -6
  465. package/check-f9f67964-2b87008b.js.map +0 -1
  466. package/check-f9f67964-e51192c1.cjs +0 -2
  467. package/check-f9f67964-e51192c1.cjs.map +0 -1
  468. package/check_circle-90af612d-38543d6c.js +0 -7
  469. package/check_circle-90af612d-38543d6c.js.map +0 -1
  470. package/check_circle-90af612d-4c004082.cjs +0 -2
  471. package/check_circle-90af612d-4c004082.cjs.map +0 -1
  472. package/chevron_right-b743a9af-b94b3829.js +0 -6
  473. package/chevron_right-b743a9af-b94b3829.js.map +0 -1
  474. package/chevron_right-b743a9af-f20c75aa.cjs +0 -2
  475. package/chevron_right-b743a9af-f20c75aa.cjs.map +0 -1
  476. package/close-f5f4f7c7-0bca1fc8.cjs +0 -2
  477. package/close-f5f4f7c7-0bca1fc8.cjs.map +0 -1
  478. package/close-f5f4f7c7-ab2930de.js.map +0 -1
  479. package/index-34a59514-84846dd5.cjs +0 -2
  480. package/index-34a59514-84846dd5.cjs.map +0 -1
  481. package/index-34a59514-87e04c7f.js +0 -196
  482. package/index-34a59514-87e04c7f.js.map +0 -1
  483. package/index-34a59514.css +0 -1
  484. package/index-4deb58f0.cjs +0 -2
  485. package/index-4deb58f0.cjs.map +0 -1
  486. package/index-870600c9.cjs +0 -174
  487. package/index-870600c9.cjs.map +0 -1
  488. package/index-bbef83ec.js +0 -1240
  489. package/index-bbef83ec.js.map +0 -1
  490. package/index-ccf0845b.js.map +0 -1
  491. package/info-b9dceed3-01b23ff8.js +0 -6
  492. package/info-b9dceed3-01b23ff8.js.map +0 -1
  493. package/info-b9dceed3-085625d7.cjs +0 -2
  494. package/info-b9dceed3-085625d7.cjs.map +0 -1
  495. package/sizeToToken-ec2a44d1-7f023360.cjs +0 -2
  496. package/sizeToToken-ec2a44d1-7f023360.cjs.map +0 -1
  497. package/sizeToToken-ec2a44d1-bd89b4fa.js +0 -12
  498. package/sizeToToken-ec2a44d1-bd89b4fa.js.map +0 -1
  499. package/usePrefersColorScheme-129544ad-b018d158.cjs +0 -2
@@ -1,83 +1,85 @@
1
1
  import "./index4.css";
2
- import { D as Te } from "./Alert-824b3ad4.js";
3
- import "./Announcement-ba080c3e.js";
4
- import "./Avatar-22bb74ca.js";
5
- import "./Badge-da23aed3.js";
6
- import { k as G } from "./Button-66b9c955.js";
7
- import { E as _e } from "./Calendar-4d7aca93.js";
8
- import "./Card-6ded141e.js";
9
- import "./Checkbox-8d294c5e.js";
10
- import "./Chip-2c170535.js";
11
- import "./Combobox-8913ce4e.js";
12
- import "./Details-54b5e7aa.js";
13
- import "./Dialog-d409d130.js";
14
- import "./Divider-38187d6d.js";
15
- import "./Drawer-ddd7914b.js";
16
- import "./Flex-f1146ad5.js";
17
- import "./Grid-234bc5d1.js";
18
- import "./index-34a59514-87e04c7f.js";
19
- import "./Label-9db08425.js";
20
- import "./Link-e07677c7.js";
21
- import "./Listbox-b3bdffa7.js";
22
- import "./ListView-29cf9116.js";
23
- import "./Menu-ab1b5fb6.js";
24
- import "./Popover-c03e96a7.js";
25
- import "./ProgressBar-ef621dd5.js";
26
- import "./Radio-dab030c5.js";
27
- import "./SideNav-abd95834.js";
28
- import { p as we } from "./SrOnly-219e862e.js";
29
- import { f as c } from "./jsx-runtime-944c88e2-e73fa629.js";
30
- import { q as K } from "./index-b6ca5fc4.js";
31
- import "./Stepper-acc83b95.js";
32
- import "./Switch-de621e8b.js";
33
- import "./Tab-2efb0b29.js";
34
- import "./Text-10643eec.js";
35
- import "./Textarea-9332ebd4.js";
36
- import "./TextField-72d16321.js";
37
- import "./Tooltip-6f564b63.js";
38
- import { f as Ut, f as Rt } from "./usePrefersColorScheme-129544ad-f17399b0.js";
39
- import { createContext as ve, forwardRef as Z, useRef as y, useState as S, useEffect as N, useCallback as ye, useMemo as J, useContext as be } from "react";
40
- import "./index-ccf0845b.js";
2
+ import { B as we } from "./Alert-8b719ddf.js";
3
+ import "./Announcement-69af0ed1.js";
4
+ import "./Avatar-077e77c4.js";
5
+ import "./Badge-d9278856.js";
6
+ import { C as Y } from "./Button-c4133e06.js";
7
+ import { E as Te } from "./Calendar-19935376.js";
8
+ import "./Card-f006730b.js";
9
+ import "./Checkbox-f9ced9f9.js";
10
+ import "./Chip-10abfc56.js";
11
+ import "./index-e2190769-db3e4fe9.js";
12
+ import "./Details-6adfaafb.js";
13
+ import "./Dialog-14e5961e.js";
14
+ import "./Divider-a01f8c9f.js";
15
+ import "./Drawer-f17c709d.js";
16
+ import "./Flex-103266ff.js";
17
+ import "./Grid-bb280e0f.js";
18
+ import "./index-eb47459e-08bc2254.js";
19
+ import "./Label-8200cf8f.js";
20
+ import "./Link-73d4183f.js";
21
+ import "./Listbox-b0e5fdc3.js";
22
+ import "./ListView-97a459d8.js";
23
+ import "./Menu-44563169.js";
24
+ import "./Popover-43b95d09.js";
25
+ import "./ProgressBar-3cd0c29c.js";
26
+ import "./Radio-23738e1c.js";
27
+ import "./SideNav-c841edde.js";
28
+ import { p as ve } from "./SrOnly-f331a0ad.js";
29
+ import { f as d } from "./jsx-runtime-944c88e2-e73fa629.js";
30
+ import { K as W } from "./index-39087e81.js";
31
+ import "./Stepper-e11afee4.js";
32
+ import "./Switch-9322c398.js";
33
+ import "./Tab-e9280c87.js";
34
+ import "./Text-e245e792.js";
35
+ import "./Textarea-a573df75.js";
36
+ import "./TextField-0c2f3002.js";
37
+ import "./Tooltip-97a82aea.js";
38
+ import { f as Lt, f as Pt } from "./usePrefersColorScheme-129544ad-3ba4632b.js";
39
+ import { createContext as ye, forwardRef as J, useRef as k, useState as N, useEffect as S, useCallback as be, useMemo as Q, useContext as ke } from "react";
40
+ import "./index-87fe0e18.js";
41
41
  import "./LocalizationProvider.js";
42
- import "./index-bbef83ec.js";
43
- import { u as ke } from "./use-reduced-motion-68bea567.js";
42
+ import "./index-87a65c62.js";
43
+ import "./tinycolor-d415b1fd.js";
44
+ import { u as Ce } from "./floating-ui.react-20365654.js";
45
+ import { u as Ee } from "./use-reduced-motion-68bea567.js";
44
46
  let F;
45
- const Ee = new Uint8Array(16);
46
- function $e() {
47
+ const Ne = new Uint8Array(16);
48
+ function Se() {
47
49
  if (!F && (F = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !F))
48
50
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
49
- return F(Ee);
51
+ return F(Ne);
50
52
  }
51
- const u = [];
53
+ const l = [];
52
54
  for (let e = 0; e < 256; ++e)
53
- u.push((e + 256).toString(16).slice(1));
54
- function Ce(e, t = 0) {
55
- return u[e[t + 0]] + u[e[t + 1]] + u[e[t + 2]] + u[e[t + 3]] + "-" + u[e[t + 4]] + u[e[t + 5]] + "-" + u[e[t + 6]] + u[e[t + 7]] + "-" + u[e[t + 8]] + u[e[t + 9]] + "-" + u[e[t + 10]] + u[e[t + 11]] + u[e[t + 12]] + u[e[t + 13]] + u[e[t + 14]] + u[e[t + 15]];
55
+ l.push((e + 256).toString(16).slice(1));
56
+ function $e(e, t = 0) {
57
+ return l[e[t + 0]] + l[e[t + 1]] + l[e[t + 2]] + l[e[t + 3]] + "-" + l[e[t + 4]] + l[e[t + 5]] + "-" + l[e[t + 6]] + l[e[t + 7]] + "-" + l[e[t + 8]] + l[e[t + 9]] + "-" + l[e[t + 10]] + l[e[t + 11]] + l[e[t + 12]] + l[e[t + 13]] + l[e[t + 14]] + l[e[t + 15]];
56
58
  }
57
- const Se = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ee = {
58
- randomUUID: Se
59
+ const Ie = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), se = {
60
+ randomUUID: Ie
59
61
  };
60
- function Ne(e, t, r) {
61
- if (ee.randomUUID && !t && !e)
62
- return ee.randomUUID();
62
+ function je(e, t, r) {
63
+ if (se.randomUUID && !t && !e)
64
+ return se.randomUUID();
63
65
  e = e || {};
64
- const s = e.random || (e.rng || $e)();
66
+ const s = e.random || (e.rng || Se)();
65
67
  if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, t) {
66
68
  r = r || 0;
67
69
  for (let o = 0; o < 16; ++o)
68
70
  t[r + o] = s[o];
69
71
  return t;
70
72
  }
71
- return Ce(s);
73
+ return $e(s);
72
74
  }
73
- const je = "_toaster_15ia4_4", He = "_hidden_15ia4_61", Ie = "_stacked_15ia4_68", Be = "_open_15ia4_155", Ve = "_slideIn_15ia4_1", De = "_close_15ia4_158", Me = "_slideOut_15ia4_1", i = {
74
- toaster: je,
75
+ const He = "_toaster_15ia4_4", Be = "_hidden_15ia4_61", Me = "_stacked_15ia4_68", Ve = "_open_15ia4_155", Re = "_slideIn_15ia4_1", Ue = "_close_15ia4_158", Ae = "_slideOut_15ia4_1", c = {
76
+ toaster: He,
75
77
  "toast-wrapper": "_toast-wrapper_15ia4_28",
76
78
  "toast-alert": "_toast-alert_15ia4_42",
77
79
  "alert-action": "_alert-action_15ia4_47",
78
80
  "show-extra-toast": "_show-extra-toast_15ia4_58",
79
- hidden: He,
80
- stacked: Ie,
81
+ hidden: Be,
82
+ stacked: Me,
81
83
  "stack-one": "_stack-one_15ia4_71",
82
84
  "stack-two": "_stack-two_15ia4_71",
83
85
  "message-container": "_message-container_15ia4_77",
@@ -87,11 +89,11 @@ const je = "_toaster_15ia4_4", He = "_hidden_15ia4_61", Ie = "_stacked_15ia4_68"
87
89
  "show-collapse-button-container": "_show-collapse-button-container_15ia4_115",
88
90
  "show-more-button": "_show-more-button_15ia4_114",
89
91
  "show-collapse-button": "_show-collapse-button_15ia4_115",
90
- open: Be,
91
- slideIn: Ve,
92
- close: De,
93
- slideOut: Me
94
- }, ne = ve({
92
+ open: Ve,
93
+ slideIn: Re,
94
+ close: Ue,
95
+ slideOut: Ae
96
+ }, ce = ye({
95
97
  toasts: [],
96
98
  setToasts: () => [],
97
99
  toastHeights: [],
@@ -101,47 +103,48 @@ const je = "_toaster_15ia4_4", He = "_hidden_15ia4_61", Ie = "_stacked_15ia4_68"
101
103
  setToastsBeforeStack: () => [],
102
104
  extraToastsVisible: !1,
103
105
  setExtraToastsVisible: () => []
104
- }), Ue = (e) => new Set(e).size !== e.length, Re = (e) => {
105
- const [t, r] = S([]), [s, o] = S([]), [n, a] = S(3), [x, H] = S(!1);
106
- N(() => {
107
- if (Ue(t.map((m) => m.id)))
108
- throw new Error(
109
- "The Hammer ToastProvider has detected multiple toasts with the same id. Each toast id needs to be unique."
110
- );
106
+ }), De = (e) => {
107
+ const [t, r] = N([]), [s, o] = N([]), [n, a] = N(3), [f, V] = N(!1), _ = (T) => {
108
+ const w = /* @__PURE__ */ new Set();
109
+ return T.filter((i) => w.has(i.id) ? (console.error(`Encountered toast with duplicate id ${i.id}. Each toast id needs to be unique.`), !1) : (w.add(i.id), !0));
110
+ };
111
+ S(() => {
112
+ const T = _(t);
113
+ t.length !== T.length && r(T);
111
114
  }, [t]);
112
- const h = ye(
113
- (m) => {
114
- const k = s.filter((d, l) => m !== void 0 ? l > m : !0).map((d) => d.height);
115
- return k.length > 0 ? x ? k.reduce((d, l) => d + l) : k.filter((d, l) => l >= k.length - n).reduce((d, l) => d + l) : 0;
115
+ const b = be(
116
+ (T) => {
117
+ const w = s.filter((i, m) => T !== void 0 ? m > T : !0).map((i) => i.height);
118
+ return w.length > 0 ? f ? w.reduce((i, m) => i + m) : w.filter((i, m) => m >= w.length - n).reduce((i, m) => i + m) : 0;
116
119
  },
117
- [s, x, n]
118
- ), b = J(
120
+ [s, f, n]
121
+ ), x = Q(
119
122
  () => ({
120
123
  toasts: t,
121
124
  setToasts: r,
122
125
  toastHeights: s,
123
126
  setToastHeights: o,
124
- getToasterHeight: h,
127
+ getToasterHeight: b,
125
128
  toastsBeforeStack: n,
126
129
  setToastsBeforeStack: a,
127
- extraToastsVisible: x,
128
- setExtraToastsVisible: H
130
+ extraToastsVisible: f,
131
+ setExtraToastsVisible: V
129
132
  }),
130
133
  [
131
- x,
132
- h,
134
+ f,
135
+ b,
133
136
  s,
134
137
  t,
135
138
  n
136
139
  ]
137
140
  );
138
- return /* @__PURE__ */ c.jsx(ne.Provider, { value: b, ...e });
139
- }, A = () => {
140
- const e = be(ne);
141
+ return /* @__PURE__ */ d.jsx(ce.Provider, { value: x, ...e });
142
+ }, L = () => {
143
+ const e = ke(ce);
141
144
  if (e == null)
142
145
  throw new Error("useToasts must be wrapped in <ToastProvider />");
143
146
  return e;
144
- }, _ = () => {
147
+ }, v = () => {
145
148
  console.error(
146
149
  `Please use one of the following toast methods:
147
150
  `,
@@ -156,10 +159,10 @@ const je = "_toaster_15ia4_4", He = "_hidden_15ia4_61", Ie = "_stacked_15ia4_68"
156
159
  ].map((e) => ` toast.${e}()
157
160
  `)
158
161
  );
159
- }, Y = "hammer-toast", Ae = ["info", "success", "warning", "danger"], P = {};
160
- Ae.forEach((e) => {
162
+ }, ee = "hammer-toast", Le = ["info", "success", "warning", "danger"], P = {};
163
+ Le.forEach((e) => {
161
164
  P[e] = (t) => {
162
- const r = Ne(), s = new CustomEvent(Y, {
165
+ const r = je(), s = new CustomEvent(ee, {
163
166
  composed: !0,
164
167
  detail: {
165
168
  id: r,
@@ -174,7 +177,7 @@ Ae.forEach((e) => {
174
177
  });
175
178
  const Pe = (e, t) => {
176
179
  const r = new CustomEvent(
177
- Y,
180
+ ee,
178
181
  {
179
182
  composed: !0,
180
183
  detail: {
@@ -187,7 +190,7 @@ const Pe = (e, t) => {
187
190
  dispatchEvent(r);
188
191
  }, ze = (e) => {
189
192
  const t = new CustomEvent(
190
- Y,
193
+ ee,
191
194
  {
192
195
  composed: !0,
193
196
  detail: {
@@ -197,47 +200,47 @@ const Pe = (e, t) => {
197
200
  }
198
201
  );
199
202
  dispatchEvent(t);
200
- }, Le = async (e, t) => {
201
- const r = _.info({ ...t.loading, duration: !1 });
203
+ }, Oe = async (e, t) => {
204
+ const r = v.info({ ...t.loading, duration: !1 });
202
205
  return await Promise.resolve(e).then((s) => {
203
- _.update(r, {
206
+ v.update(r, {
204
207
  ...t.success(s),
205
208
  status: "success"
206
209
  });
207
210
  }).catch((s) => {
208
- _.update(r, {
211
+ v.update(r, {
209
212
  ...t.error(s),
210
213
  status: "danger"
211
214
  });
212
215
  }), r;
213
216
  };
214
- _.info = P.info;
215
- _.success = P.success;
216
- _.warning = P.warning;
217
- _.danger = P.danger;
218
- _.update = Pe;
219
- _.dismiss = ze;
220
- _.promise = Le;
221
- const Oe = () => {
222
- const { toastHeights: e, toastsBeforeStack: t } = A(), r = e.length, s = r > t + 1 ? "2rem" : "1rem";
217
+ v.info = P.info;
218
+ v.success = P.success;
219
+ v.warning = P.warning;
220
+ v.danger = P.danger;
221
+ v.update = Pe;
222
+ v.dismiss = ze;
223
+ v.promise = Oe;
224
+ const qe = () => {
225
+ const { toastHeights: e, toastsBeforeStack: t } = L(), r = e.length, s = r > t + 1 ? "2rem" : "1rem";
223
226
  return {
224
227
  // -0.75px fixes hover issue when 1rem != 16px due to pixel rounding
225
- top: `calc(${J(() => r > t ? e.filter((o, n) => n >= r - t).map((o) => o.height).reduce((o, n) => o + n) : "unset", [e, t])}px + ${s} - 0.75px)`,
228
+ top: `calc(${Q(() => r > t ? e.filter((o, n) => n >= r - t).map((o) => o.height).reduce((o, n) => o + n) : "unset", [e, t])}px + ${s} - 0.75px)`,
226
229
  position: "absolute",
227
230
  display: r > t ? void 0 : "none"
228
231
  };
229
- }, te = "5.3125rem", se = "1rem", re = `${24 / 16}rem`, qe = (e) => {
232
+ }, re = "5.3125rem", oe = "1rem", ae = `${24 / 16}rem`, Ke = (e) => {
230
233
  const {
231
234
  toasts: t,
232
235
  toastHeights: r,
233
236
  getToasterHeight: s,
234
237
  toastsBeforeStack: o,
235
238
  extraToastsVisible: n
236
- } = A(), a = t.length, x = s(e);
237
- return J(() => {
239
+ } = L(), a = t.length, f = s(e);
240
+ return Q(() => {
238
241
  if (e === a - 1)
239
242
  return {
240
- top: re,
243
+ top: ae,
241
244
  zIndex: 3
242
245
  };
243
246
  if (
@@ -246,25 +249,25 @@ const Oe = () => {
246
249
  !n && (a <= o || a > o && e >= a - o)
247
250
  )
248
251
  return {
249
- top: `calc(${x}px + ${re})`
252
+ top: `calc(${f}px + ${ae})`
250
253
  };
251
254
  if (a > o) {
252
255
  if (e === a - o - 1)
253
256
  return {
254
- top: `calc(${x || 0}px - ${te} +
255
- ${se})`,
257
+ top: `calc(${f || 0}px - ${re} +
258
+ ${oe})`,
256
259
  zIndex: 1
257
260
  };
258
261
  if (e <= a - o - 2)
259
262
  return {
260
- top: `calc(${x || 0}px -
261
- ${te}
262
- + ${se} * 2)`,
263
+ top: `calc(${f || 0}px -
264
+ ${re}
265
+ + ${oe} * 2)`,
263
266
  zIndex: 0
264
267
  };
265
268
  }
266
269
  }, [r]);
267
- }, oe = (e, t, r) => {
270
+ }, ne = (e, t, r) => {
268
271
  r((s) => s.find((o) => o.id === e) ? s.map((o) => o.id === e ? { ...o, height: t } : o) : [
269
272
  ...s,
270
273
  {
@@ -272,25 +275,25 @@ const Oe = () => {
272
275
  height: t
273
276
  }
274
277
  ]);
275
- }, ae = (e, t, r) => {
278
+ }, ie = (e, t, r) => {
276
279
  e((s) => r ? s.filter((o) => o.id !== r) : []), t((s) => r ? s.filter((o) => o.id !== r) : []);
277
280
  }, Fe = (e, t, r, s) => {
278
281
  globalThis.matchMedia(
279
282
  "(prefers-reduced-motion: reduce)"
280
- ).matches ? ae(e, t, s) : (e(
283
+ ).matches ? ie(e, t, s) : (e(
281
284
  (o) => o.map((n) => !s || n.id === s ? {
282
285
  ...n,
283
286
  toastClassName: r
284
287
  } : n)
285
288
  ), setTimeout(() => {
286
- ae(e, t, s);
289
+ ie(e, t, s);
287
290
  }, 290));
288
- }, ie = (e) => {
289
- const { setToasts: t, setToastHeights: r } = A();
291
+ }, de = (e) => {
292
+ const { setToasts: t, setToastHeights: r } = L();
290
293
  return (s) => {
291
294
  Fe(t, r, e, s);
292
295
  };
293
- }, ce = Z(
296
+ }, ue = J(
294
297
  ({
295
298
  actions: e,
296
299
  containerClassName: t,
@@ -299,108 +302,107 @@ const Oe = () => {
299
302
  index: o = 0,
300
303
  isBelowStackIndex: n,
301
304
  isStacked: a,
302
- message: x,
303
- onClose: H,
304
- pausedStatus: h,
305
+ message: f,
306
+ onClose: V,
307
+ pausedStatus: _,
305
308
  toastClassName: b,
306
- ...m
307
- }, k) => {
308
- const { setToastHeights: d, extraToastsVisible: l } = A(), I = ie(i.close), M = ke(), g = qe(o), j = y(null), w = y(), B = y(0), V = y(r ?? 0), U = y(!1), [R, z] = S(
309
- i.hidden
310
- ), [$, D] = S(!1), L = K(
311
- i["toast-alert"],
309
+ ...x
310
+ }, T) => {
311
+ const { setToastHeights: w, extraToastsVisible: i } = L(), m = de(c.close), z = Ee(), R = Ke(o), u = k(null), y = k(), $ = k(0), U = k(r ?? 0), B = k(!1), [X, A] = N(
312
+ c.hidden
313
+ ), [M, I] = N(!1), D = W(
314
+ c["toast-alert"],
312
315
  b,
313
- R
316
+ X
314
317
  );
315
- N(() => {
316
- $ || (z(i.open), M && D(!0));
317
- }, []), N(() => {
318
- if (j.current && $ && !a)
319
- if (n && l)
318
+ S(() => {
319
+ M || (A(c.open), z && I(!0));
320
+ }, []), S(() => {
321
+ if (u.current && M && !a)
322
+ if (n && i)
320
323
  setTimeout(() => {
321
- const v = j.current.clientHeight;
322
- oe(m.id, v, d);
324
+ const C = u.current.clientHeight;
325
+ ne(x.id, C, w);
323
326
  }, 300);
324
327
  else {
325
- const v = j.current.clientHeight;
326
- oe(m.id, v, d);
328
+ const C = u.current.clientHeight;
329
+ ne(x.id, C, w);
327
330
  }
328
331
  }, [
329
- $,
332
+ M,
330
333
  a,
331
- l,
334
+ i,
332
335
  // toast updates
333
336
  e,
334
- x,
335
- m.title
336
- ]), N(() => {
337
+ f,
338
+ x.title
339
+ ]), S(() => {
337
340
  if (s && !a)
338
- if (h) {
339
- if (typeof h == "number")
340
- clearTimeout(w.current), B.current = h;
341
- else if (h === "resumed") {
342
- const v = (
341
+ if (_) {
342
+ if (typeof _ == "number")
343
+ clearTimeout(y.current), $.current = _;
344
+ else if (_ === "resumed") {
345
+ const C = (
343
346
  // rendering new toast after initial hover
344
- B.current === 0 ? s : (
347
+ $.current === 0 ? s : (
345
348
  // resume timer after valid hover
346
- s + (V.current || 0) - B.current
349
+ s + (U.current || 0) - $.current
347
350
  )
348
351
  );
349
- return w.current = setTimeout(() => {
350
- I(m.id), B.current = 0;
351
- }, v), () => clearTimeout(w.current);
352
+ return y.current = setTimeout(() => {
353
+ m(x.id), $.current = 0;
354
+ }, C), () => clearTimeout(y.current);
352
355
  }
353
356
  } else
354
- return w.current = setTimeout(
355
- () => I(m.id),
357
+ return y.current = setTimeout(
358
+ () => m(x.id),
356
359
  s
357
- ), () => clearTimeout(w.current);
358
- }, [V.current, s, h]), N(() => {
360
+ ), () => clearTimeout(y.current);
361
+ }, [U.current, s, _]), S(() => {
359
362
  if (s) {
360
363
  if (a)
361
- clearTimeout(w.current), U.current = !0;
362
- else if (!a && U.current && typeof h != "number")
363
- return V.current = Date.now(), w.current = setTimeout(() => {
364
- I(m.id), U.current = !1;
365
- }, s), () => clearTimeout(w.current);
364
+ clearTimeout(y.current), B.current = !0;
365
+ else if (!a && B.current && typeof _ != "number")
366
+ return U.current = Date.now(), y.current = setTimeout(() => {
367
+ m(x.id), B.current = !1;
368
+ }, s), () => clearTimeout(y.current);
366
369
  }
367
370
  }, [a, s]);
368
- const O = (v) => {
369
- if (v === "right") {
370
- _.dismiss(m.id);
371
+ const O = (C) => {
372
+ if (C === "right") {
373
+ v.dismiss(x.id);
371
374
  return;
372
375
  }
373
- }, { direction: W, ...Q } = _e(O), X = a && !l ? {} : {
374
- closable: !0,
375
- onClose: H
376
+ }, { direction: Z, ...q } = Te(O), G = a && !i ? {} : {
377
+ onClose: V
376
378
  };
377
379
  if (s !== !1 && e)
378
380
  throw new Error(
379
381
  "If actions are provided to toast message, duration must be false."
380
382
  );
381
- return /* @__PURE__ */ c.jsx(
383
+ return /* @__PURE__ */ d.jsx(
382
384
  "div",
383
385
  {
384
386
  "data-anv": "Toast",
385
387
  className: t,
386
- style: g ?? { top: "1.5rem" },
387
- ref: j,
388
- onAnimationStart: () => D(!0),
388
+ style: R ?? { top: "1.5rem" },
389
+ ref: u,
390
+ onAnimationStart: () => I(!0),
389
391
  role: a ? "presentation" : void 0,
390
- ...Q,
391
- children: /* @__PURE__ */ c.jsxs(
392
- Te,
392
+ ...q,
393
+ children: /* @__PURE__ */ d.jsxs(
394
+ we,
393
395
  {
394
- className: L,
395
- ...m,
396
- ...X,
397
- ref: k,
398
- tabIndex: a && !l ? -1 : 0,
396
+ className: D,
397
+ ...x,
398
+ ...G,
399
+ ref: T,
400
+ tabIndex: a && !i ? -1 : 0,
399
401
  children: [
400
- /* @__PURE__ */ c.jsx("div", { className: i["message-container"], children: x }),
401
- e && s === !1 && /* @__PURE__ */ c.jsxs("div", { className: i["alert-action"], children: [
402
- /* @__PURE__ */ c.jsx(G, { appearance: e.primary.appearance, size: "small", children: e.primary.label }),
403
- e.secondary && /* @__PURE__ */ c.jsx(G, { appearance: e.secondary.appearance, size: "small", children: e.secondary.label })
402
+ /* @__PURE__ */ d.jsx("div", { className: c["message-container"], children: f }),
403
+ e && s === !1 && /* @__PURE__ */ d.jsxs("div", { className: c["alert-action"], children: [
404
+ /* @__PURE__ */ d.jsx(Y, { appearance: e.primary.appearance, size: "small", children: e.primary.label }),
405
+ e.secondary && /* @__PURE__ */ d.jsx(Y, { appearance: e.secondary.appearance, size: "small", children: e.secondary.label })
404
406
  ] })
405
407
  ]
406
408
  }
@@ -409,10 +411,10 @@ const Oe = () => {
409
411
  );
410
412
  }
411
413
  );
412
- ce.displayName = "Toast";
413
- const Ke = Z(
414
- (e, t) => /* @__PURE__ */ c.jsx(Re, { children: /* @__PURE__ */ c.jsx(de, { ...e, ...t }) })
415
- ), de = Z(
414
+ ue.displayName = "Toast";
415
+ const We = J(
416
+ (e, t) => /* @__PURE__ */ d.jsx(De, { children: /* @__PURE__ */ d.jsx(le, { ...e, ...t }) })
417
+ ), le = J(
416
418
  ({
417
419
  className: e,
418
420
  duration: t = !1,
@@ -421,40 +423,45 @@ const Ke = Z(
421
423
  forceRender: o = !1,
422
424
  id: n,
423
425
  toastsBeforeStack: a = 3,
424
- ...x
425
- }, H) => {
426
- const h = y(null), b = y(null), {
427
- toasts: m,
428
- setToastsBeforeStack: k,
429
- extraToastsVisible: d,
430
- setExtraToastsVisible: l,
431
- setToasts: I,
432
- getToasterHeight: M
433
- } = A(), g = m.length, j = y(0), w = ie(i.close), [B, V] = S(0);
434
- N(() => {
435
- window.addEventListener("hammer-toast", (p) => {
436
- const { eventType: f, ...E } = p.detail;
437
- f === "add" ? I((T) => [...T, E]) : f === "update" ? I((T) => T.map((C) => C.id === E.id ? {
438
- ...C,
439
- ...E
440
- } : C)) : f === "dismiss" && (E.id ? w(E.id) : w());
441
- });
442
- }, []), N(() => {
443
- g > j.current ? V(M()) : setTimeout(() => V(M()), 290), j.current = g;
444
- }, [M]), N(() => {
445
- k(a);
446
- }, [k, a]);
447
- const U = Oe(), [R, z] = S(void 0), $ = y(null), D = y(!1);
448
- if (g === 0)
449
- return;
450
- if (document.querySelectorAll(`[data-toaster-id=${n}]`).length > 1) {
426
+ ...f
427
+ }, V) => {
428
+ const _ = k(null), b = k(null), x = Ce([_, V]), {
429
+ toasts: T,
430
+ setToastsBeforeStack: w,
431
+ extraToastsVisible: i,
432
+ setExtraToastsVisible: m,
433
+ setToasts: z,
434
+ getToasterHeight: R
435
+ } = L(), u = T.length, y = k(0), $ = de(c.close), [U, B] = N(0);
436
+ S(() => {
437
+ const h = (g) => {
438
+ const { eventType: j, ...p } = g.detail;
439
+ if (j === "add") {
440
+ const E = p;
441
+ (!E.toasterId || E.toasterId === n) && z((H) => [...H, p]);
442
+ } else
443
+ j === "update" ? z((E) => E.map((H) => H.id === p.id ? {
444
+ ...H,
445
+ ...p
446
+ } : H)) : j === "dismiss" && (p.id ? $(p.id) : $());
447
+ };
448
+ return window.addEventListener("hammer-toast", h), () => window.removeEventListener("hammer-toast", h);
449
+ }, []), S(() => {
450
+ u > y.current ? B(R()) : setTimeout(() => B(R()), 290), y.current = u;
451
+ }, [R]), S(() => {
452
+ w(a);
453
+ }, [w, a]);
454
+ const X = qe(), [A, M] = N(void 0), I = k(null), D = k(!1);
455
+ if (u === 0)
456
+ return /* @__PURE__ */ d.jsx("div", { ref: x });
457
+ if (document.querySelectorAll(`[data-toaster-id="${n}"]`).length > 1) {
451
458
  console.error(
452
459
  `Multiple Hammer Toasters with id=${n} detected. Toaster ids should be unique. These Toasters will not render.`
453
460
  );
454
461
  return;
455
462
  }
456
- const L = document.querySelectorAll("[data-anv='Toaster']");
457
- if (L.length > 1 && L[0].getAttribute("data-toaster-id") !== n)
463
+ const O = document.querySelectorAll("[data-anv='Toaster']");
464
+ if (O.length > 1 && O[0].getAttribute("data-toaster-id") !== n)
458
465
  if (o)
459
466
  console.warn(
460
467
  "Multiple Hammer Toasters detected. `forceRender` was used so multiple may be rendered. Avoid doing this in production code."
@@ -467,89 +474,87 @@ const Ke = Z(
467
474
  );
468
475
  return;
469
476
  }
470
- const O = !d && g > a, W = g - a, Q = `${W} more message${W > 1 ? "s" : ""}`, X = K(i.toaster, e, {
471
- [i["show-more-button"]]: O,
472
- [i["show-extra-toast"]]: d
473
- }), v = () => {
474
- (R === "resumed" || R === void 0) && z(Date.now());
475
- }, q = () => {
476
- var p, f;
477
- l(!1), z("resumed"), (p = h.current) != null && p.scrollTo && ((f = h.current) == null || f.scrollTo(0, 0));
478
- }, le = async (p) => {
479
- const { activeElement: f } = document;
480
- (f == null ? void 0 : f.tagName.toLowerCase()) !== "input" && (f == null ? void 0 : f.tagName.toLowerCase()) !== "textarea" && g > 0 && p.code === s ? (p.preventDefault(), l(!0), $.current = document.activeElement, D.current = !0, setTimeout(() => {
477
+ const Z = !i && u > a, q = u - a, G = `${q} more message${q > 1 ? "s" : ""}`, C = W(c.toaster, e, {
478
+ [c["show-more-button"]]: Z,
479
+ [c["show-extra-toast"]]: i
480
+ }), te = () => {
481
+ (A === "resumed" || A === void 0) && M(Date.now());
482
+ }, K = () => {
483
+ var h, g;
484
+ m(!1), M("resumed"), (h = _.current) != null && h.scrollTo && ((g = _.current) == null || g.scrollTo(0, 0));
485
+ }, me = async (h) => {
486
+ const { activeElement: g } = document;
487
+ (g == null ? void 0 : g.tagName.toLowerCase()) !== "input" && (g == null ? void 0 : g.tagName.toLowerCase()) !== "textarea" && (g == null ? void 0 : g.tagName.toLowerCase()) !== "pre" && u > 0 && h.code === s ? (h.preventDefault(), m(!0), I.current = document.activeElement, D.current = !0, setTimeout(() => {
481
488
  b.current && (b.current.focus(), b.current.scrollTo && b.current.scrollTo());
482
- }, 300)) : p.code === "Escape" && D.current === !0 && (l(!1), q(), $.current && $.current.tagName.toLowerCase() !== "body" ? $.current.focus() : document.activeElement.blur(), D.current = !1);
489
+ }, 300)) : h.code === "Escape" && D.current === !0 && (m(!1), K(), I.current && I.current.tagName.toLowerCase() !== "body" ? I.current.focus() : document.activeElement.blur(), D.current = !1);
483
490
  };
484
- document.addEventListener("keydown", le);
485
- const ue = () => {
486
- var p;
487
- (p = h.current) != null && p.matches(":focus-within") || q();
491
+ document.addEventListener("keydown", me);
492
+ const pe = () => {
493
+ var h;
494
+ (h = _.current) != null && h.matches(":focus-within") || K();
488
495
  };
489
- return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
490
- /* @__PURE__ */ c.jsxs(
496
+ return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
497
+ /* @__PURE__ */ d.jsxs(
491
498
  "div",
492
499
  {
493
500
  "data-anv": "Toaster",
494
501
  "data-toaster-id": n,
495
- className: X,
496
- ref: (p) => {
497
- h.current = p, typeof H == "function" && H(p);
498
- },
499
- onMouseOver: v,
500
- onMouseLeave: q,
501
- onFocus: v,
502
- onBlur: ue,
502
+ className: C,
503
+ ref: x,
504
+ onMouseOver: te,
505
+ onMouseLeave: K,
506
+ onFocus: te,
507
+ onBlur: pe,
503
508
  style: {
504
- height: d ? "100vh" : `calc(${B}px + 2rem + var(--toaster-padding))`
509
+ height: i ? "100vh" : `calc(${U}px + 2rem + var(--toaster-padding))`
505
510
  },
506
- ...x,
511
+ ...f,
507
512
  children: [
508
- m.map(({ toastClassName: p, onClose: f, ...E }, T) => {
509
- const C = !d && T < g - a, me = T === g - a, pe = T < g - a - 2, he = K(i.toast, p), ge = K(i["toast-wrapper"], {
510
- [i.stacked]: C || me,
511
- [i["stack-one"]]: C && T === g - a - 1,
512
- [i["stack-two"]]: C && T === g - a - 2,
513
- [i["stacked-extra"]]: pe,
514
- [i["stacked-show-extra"]]: d
515
- }), fe = (xe) => {
516
- f && f(xe), _.dismiss(E.id);
513
+ T.map(({ toastClassName: h, onClose: g, ...j }, p) => {
514
+ const E = !i && p < u - a, H = p === u - a, he = p < u - a - 2, ge = W(c.toast, h), fe = W(c["toast-wrapper"], {
515
+ [c.stacked]: E || H,
516
+ [c["stack-one"]]: E && p === u - a - 1,
517
+ [c["stack-two"]]: E && p === u - a - 2,
518
+ [c["stacked-extra"]]: he,
519
+ [c["stacked-show-extra"]]: i
520
+ }), _e = (xe) => {
521
+ g && g(xe), v.dismiss(j.id);
517
522
  };
518
- return /* @__PURE__ */ c.jsx(
519
- ce,
523
+ return /* @__PURE__ */ d.jsx(
524
+ ue,
520
525
  {
521
- containerClassName: ge,
526
+ containerClassName: fe,
522
527
  duration: t,
523
- index: T,
524
- isStacked: C,
525
- isBelowStackIndex: T < g - a,
526
- onClose: fe,
527
- pausedStatus: R,
528
- toastClassName: he,
529
- ref: T === 0 ? b : void 0,
530
- ...E
528
+ index: p,
529
+ isStacked: E,
530
+ isBelowStackIndex: p < u - a,
531
+ onClose: _e,
532
+ pausedStatus: A,
533
+ toastClassName: ge,
534
+ ref: p === 0 ? b : void 0,
535
+ ...j
531
536
  },
532
- E.id
537
+ j.id
533
538
  );
534
539
  }),
535
- O && /* @__PURE__ */ c.jsx(
540
+ Z && /* @__PURE__ */ d.jsx(
536
541
  "div",
537
542
  {
538
- className: i["show-more-button-container"],
539
- style: U,
540
- children: /* @__PURE__ */ c.jsx(
541
- G,
543
+ className: c["show-more-button-container"],
544
+ style: X,
545
+ children: /* @__PURE__ */ d.jsx(
546
+ Y,
542
547
  {
543
- className: i.showMoreButton,
544
- onClick: () => l(!0),
548
+ className: c.showMoreButton,
549
+ onClick: () => m(!0),
545
550
  appearance: "secondary",
546
551
  tabIndex: 0,
547
- children: Q
552
+ children: G
548
553
  }
549
554
  )
550
555
  }
551
556
  ),
552
- /* @__PURE__ */ c.jsxs(we, { "aria-live": "polite", children: [
557
+ /* @__PURE__ */ d.jsxs(ve, { "aria-live": "polite", children: [
553
558
  "New toast message appeared. Press the ",
554
559
  r,
555
560
  " key to focus on the toast messages. Press escape to return focus to previous position."
@@ -557,11 +562,11 @@ const Ke = Z(
557
562
  ]
558
563
  }
559
564
  ),
560
- d && /* @__PURE__ */ c.jsx("div", { className: i["show-collapse-button-container"], children: /* @__PURE__ */ c.jsx(
561
- G,
565
+ i && /* @__PURE__ */ d.jsx("div", { className: c["show-collapse-button-container"], children: /* @__PURE__ */ d.jsx(
566
+ Y,
562
567
  {
563
- className: i["show-collapse-button"],
564
- onClick: q,
568
+ className: c["show-collapse-button"],
569
+ onClick: K,
565
570
  appearance: "secondary",
566
571
  children: "Collapse Messages"
567
572
  }
@@ -569,10 +574,10 @@ const Ke = Z(
569
574
  ] });
570
575
  }
571
576
  );
572
- Ke.displayName = "Toaster";
573
- de.displayName = "ToasterContent";
577
+ We.displayName = "Toaster";
578
+ le.displayName = "ToasterContent";
574
579
  export {
575
- Ut as default,
576
- Rt as useAccessibleColor
580
+ Lt as default,
581
+ Pt as useAccessibleColor
577
582
  };
578
583
  //# sourceMappingURL=useAccessibleColor.js.map