@baseline-ui/core 2.2.0 → 3.0.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 (525) hide show
  1. package/dist/Accordion.css +10 -0
  2. package/dist/Accordion.mjs +1 -0
  3. package/dist/ActionButton.css +10 -0
  4. package/dist/ActionButton.mjs +1 -0
  5. package/dist/ActionGroup.css +10 -0
  6. package/dist/ActionGroup.mjs +1 -0
  7. package/dist/ActionIconButton.css +10 -0
  8. package/dist/ActionIconButton.mjs +1 -0
  9. package/dist/Actionable.css +10 -0
  10. package/dist/Actionable.mjs +1 -0
  11. package/dist/AlertDialog.css +10 -0
  12. package/dist/AlertDialog.mjs +1 -0
  13. package/dist/AudioPlayer.css +10 -0
  14. package/dist/AudioPlayer.mjs +1 -0
  15. package/dist/Avatar.css +10 -0
  16. package/dist/Avatar.mjs +1 -0
  17. package/dist/Box.mjs +1 -0
  18. package/dist/ButtonSelect.css +10 -0
  19. package/dist/ButtonSelect.mjs +1 -0
  20. package/dist/Calendar.css +10 -0
  21. package/dist/Calendar.mjs +1 -0
  22. package/dist/Checkbox.css +10 -0
  23. package/dist/Checkbox.mjs +1 -0
  24. package/dist/Code.css +10 -0
  25. package/dist/Code.mjs +1 -0
  26. package/dist/ColorInput.css +10 -0
  27. package/dist/ColorInput.mjs +1 -0
  28. package/dist/ColorSwatch.css +10 -0
  29. package/dist/ColorSwatch.mjs +1 -0
  30. package/dist/ColorSwatchPicker.css +10 -0
  31. package/dist/ColorSwatchPicker.mjs +1 -0
  32. package/dist/ComboBox.css +10 -0
  33. package/dist/ComboBox.mjs +1 -0
  34. package/dist/DateField.css +10 -0
  35. package/dist/DateField.mjs +1 -0
  36. package/dist/DateFormat.mjs +1 -0
  37. package/dist/DeviceProvider.mjs +1 -0
  38. package/dist/Dialog.css +10 -0
  39. package/dist/Dialog.mjs +1 -0
  40. package/dist/Disclosure.css +10 -0
  41. package/dist/Disclosure.mjs +1 -0
  42. package/dist/DomNodeRenderer.mjs +1 -0
  43. package/dist/Drawer.css +10 -0
  44. package/dist/Drawer.mjs +1 -0
  45. package/dist/Editor.css +10 -0
  46. package/dist/Editor.mjs +1 -0
  47. package/dist/FileInput.css +10 -0
  48. package/dist/FileInput.mjs +1 -0
  49. package/dist/FileList.css +10 -0
  50. package/dist/FileList.mjs +1 -0
  51. package/dist/FileUploader.css +10 -0
  52. package/dist/FileUploader.mjs +1 -0
  53. package/dist/FrameProvider.mjs +1 -0
  54. package/dist/FreehandCanvas.css +10 -0
  55. package/dist/FreehandCanvas.mjs +1 -0
  56. package/dist/GridList.css +10 -0
  57. package/dist/GridList.mjs +1 -0
  58. package/dist/Group.mjs +1 -0
  59. package/dist/I18nProvider.mjs +1 -0
  60. package/dist/Icon.mjs +1 -0
  61. package/dist/ImageDropZone.css +10 -0
  62. package/dist/ImageDropZone.mjs +1 -0
  63. package/dist/ImageGallery.css +10 -0
  64. package/dist/ImageGallery.mjs +1 -0
  65. package/dist/InlineAlert.css +10 -0
  66. package/dist/InlineAlert.mjs +1 -0
  67. package/dist/InlineToolbar.css +10 -0
  68. package/dist/InlineToolbar.mjs +10 -0
  69. package/dist/Kbd.css +10 -0
  70. package/dist/Kbd.mjs +1 -0
  71. package/dist/Link.css +10 -0
  72. package/dist/Link.mjs +1 -0
  73. package/dist/ListBox.css +10 -0
  74. package/dist/ListBox.mjs +1 -0
  75. package/dist/Markdown.css +10 -0
  76. package/dist/Markdown.mjs +1 -0
  77. package/dist/Menu.css +10 -0
  78. package/dist/Menu.mjs +1 -0
  79. package/dist/MessageFormat.mjs +1 -0
  80. package/dist/Modal.css +10 -0
  81. package/dist/Modal.mjs +1 -0
  82. package/dist/NumberFormat.mjs +1 -0
  83. package/dist/NumberInput.css +10 -0
  84. package/dist/NumberInput.mjs +1 -0
  85. package/dist/Pagination.css +10 -0
  86. package/dist/Pagination.mjs +1 -0
  87. package/dist/Panel.css +10 -0
  88. package/dist/Panel.mjs +1 -0
  89. package/dist/PointPicker.css +10 -0
  90. package/dist/PointPicker.mjs +1 -0
  91. package/dist/Popover.css +10 -0
  92. package/dist/Popover.mjs +1 -0
  93. package/dist/Portal.css +10 -0
  94. package/dist/Portal.mjs +1 -0
  95. package/dist/PortalContainerProvider.mjs +1 -0
  96. package/dist/Preview.css +10 -0
  97. package/dist/Preview.mjs +1 -0
  98. package/dist/ProgressBar.css +10 -0
  99. package/dist/ProgressBar.mjs +1 -0
  100. package/dist/ProgressSpinner.css +10 -0
  101. package/dist/ProgressSpinner.mjs +1 -0
  102. package/dist/RadioGroup.css +10 -0
  103. package/dist/RadioGroup.mjs +1 -0
  104. package/dist/Reaction.css +10 -0
  105. package/dist/Reaction.mjs +1 -0
  106. package/dist/ScrollControlButton.css +10 -0
  107. package/dist/ScrollControlButton.mjs +1 -0
  108. package/dist/SearchInput.css +10 -0
  109. package/dist/SearchInput.mjs +1 -0
  110. package/dist/Select.css +10 -0
  111. package/dist/Select.mjs +1 -0
  112. package/dist/Separator.css +10 -0
  113. package/dist/Separator.mjs +1 -0
  114. package/dist/Skeleton.css +10 -0
  115. package/dist/Skeleton.mjs +1 -0
  116. package/dist/Slider.css +10 -0
  117. package/dist/Slider.mjs +1 -0
  118. package/dist/StatusCard.css +10 -0
  119. package/dist/StatusCard.mjs +1 -0
  120. package/dist/Stepper.css +10 -0
  121. package/dist/Stepper.mjs +1 -0
  122. package/dist/Switch.css +10 -0
  123. package/dist/Switch.mjs +1 -0
  124. package/dist/Table.css +10 -0
  125. package/dist/Table.mjs +1 -0
  126. package/dist/Tabs.css +10 -0
  127. package/dist/Tabs.mjs +1 -0
  128. package/dist/Tag.css +10 -0
  129. package/dist/Tag.mjs +1 -0
  130. package/dist/TagGroup.css +10 -0
  131. package/dist/TagGroup.mjs +1 -0
  132. package/dist/TaggedPagination.css +10 -0
  133. package/dist/TaggedPagination.mjs +1 -0
  134. package/dist/Text.css +10 -0
  135. package/dist/Text.mjs +1 -0
  136. package/dist/TextInput.css +10 -0
  137. package/dist/TextInput.mjs +1 -0
  138. package/dist/ThemeProvider.css +10 -0
  139. package/dist/ThemeProvider.mjs +1 -0
  140. package/dist/TimeField.css +10 -0
  141. package/dist/TimeField.mjs +1 -0
  142. package/dist/Toast.css +10 -0
  143. package/dist/Toast.mjs +1 -0
  144. package/dist/ToggleButton.css +10 -0
  145. package/dist/ToggleButton.mjs +1 -0
  146. package/dist/ToggleIconButton.css +10 -0
  147. package/dist/ToggleIconButton.mjs +1 -0
  148. package/dist/Toolbar.css +10 -0
  149. package/dist/Toolbar.mjs +1 -0
  150. package/dist/Tooltip.css +10 -0
  151. package/dist/Tooltip.mjs +1 -0
  152. package/dist/TreeView.css +10 -0
  153. package/dist/TreeView.mjs +1 -0
  154. package/dist/UNSAFE_ListBox.css +10 -0
  155. package/dist/UNSAFE_ListBox.mjs +1 -0
  156. package/dist/Virtualizer.mjs +1 -0
  157. package/dist/chunk-22BJMDCA.mjs +10 -0
  158. package/dist/chunk-246VHB32.mjs +10 -0
  159. package/dist/chunk-2JANDORZ.mjs +11 -0
  160. package/dist/chunk-2MS356Q7.mjs +10 -0
  161. package/dist/chunk-2PH5GN2S.mjs +0 -0
  162. package/dist/chunk-2RCST7ET.mjs +10 -0
  163. package/dist/chunk-2UUKKXBD.mjs +10 -0
  164. package/dist/chunk-2VY4FAOY.mjs +10 -0
  165. package/dist/chunk-2WAKHFPS.mjs +10 -0
  166. package/dist/chunk-34TYNTXM.mjs +10 -0
  167. package/dist/chunk-3CWP2VCB.mjs +10 -0
  168. package/dist/chunk-3FYY26ED.mjs +10 -0
  169. package/dist/chunk-3HKG74G4.mjs +0 -0
  170. package/dist/chunk-3UH5CQQF.mjs +10 -0
  171. package/dist/chunk-3W6RWDIE.mjs +10 -0
  172. package/dist/chunk-3X2QM7GV.mjs +10 -0
  173. package/dist/chunk-44OUOGJ4.mjs +10 -0
  174. package/dist/chunk-4ILKZKTW.mjs +10 -0
  175. package/dist/chunk-4N6CLPAY.mjs +10 -0
  176. package/dist/chunk-4NYPVKDO.mjs +10 -0
  177. package/dist/chunk-4PYEGHW5.mjs +10 -0
  178. package/dist/chunk-4QEH5CGK.mjs +10 -0
  179. package/dist/chunk-4SW77SGW.mjs +10 -0
  180. package/dist/chunk-4WW2MVQN.mjs +0 -0
  181. package/dist/chunk-4ZJMZB5B.mjs +10 -0
  182. package/dist/chunk-535OT4US.mjs +10 -0
  183. package/dist/chunk-545KDVGI.mjs +10 -0
  184. package/dist/chunk-54IAJ3RI.mjs +0 -0
  185. package/dist/chunk-5ANNWMLJ.mjs +0 -0
  186. package/dist/chunk-5BAHJXOI.mjs +10 -0
  187. package/dist/chunk-5HXTXIE5.mjs +10 -0
  188. package/dist/chunk-5IC46G5J.mjs +10 -0
  189. package/dist/chunk-5KD2MNNX.mjs +10 -0
  190. package/dist/chunk-5ODZPQL2.mjs +10 -0
  191. package/dist/chunk-5PQHOVGX.mjs +0 -0
  192. package/dist/chunk-5ULL6IBX.mjs +10 -0
  193. package/dist/chunk-5YHNHEDK.mjs +0 -0
  194. package/dist/chunk-63KRQW56.mjs +10 -0
  195. package/dist/chunk-66CUIXA6.mjs +10 -0
  196. package/dist/chunk-66NJ7EYY.mjs +10 -0
  197. package/dist/chunk-67MPTBBY.mjs +10 -0
  198. package/dist/chunk-6F66XVOA.mjs +0 -0
  199. package/dist/chunk-6IRWW75G.mjs +10 -0
  200. package/dist/chunk-6IX6BM7C.mjs +0 -0
  201. package/dist/chunk-6XARU7F2.mjs +0 -0
  202. package/dist/chunk-6YQHZ5RZ.mjs +0 -0
  203. package/dist/chunk-6Z6HOW6T.mjs +10 -0
  204. package/dist/chunk-6ZFBX7C7.mjs +10 -0
  205. package/dist/chunk-6ZQE5SHE.mjs +10 -0
  206. package/dist/chunk-6ZV4UYEG.mjs +10 -0
  207. package/dist/chunk-77BAFSDX.mjs +10 -0
  208. package/dist/chunk-7AY6C5M5.mjs +10 -0
  209. package/dist/chunk-7FJMUUHS.mjs +10 -0
  210. package/dist/chunk-7PRJIPFA.mjs +10 -0
  211. package/dist/chunk-A24DWFQ2.mjs +10 -0
  212. package/dist/chunk-A6ZQQSAX.mjs +10 -0
  213. package/dist/chunk-AC7OXVHA.mjs +10 -0
  214. package/dist/chunk-AGUSZG6K.mjs +0 -0
  215. package/dist/chunk-AGYQLGBZ.mjs +10 -0
  216. package/dist/chunk-AKES5B6C.mjs +10 -0
  217. package/dist/chunk-AMQX3KZR.mjs +10 -0
  218. package/dist/chunk-AMW7LGCF.mjs +10 -0
  219. package/dist/chunk-AMYRLAIC.mjs +10 -0
  220. package/dist/chunk-AQYBKDT2.mjs +16 -0
  221. package/dist/chunk-AUOQSTS5.mjs +10 -0
  222. package/dist/chunk-AV4ZP5SY.mjs +10 -0
  223. package/dist/chunk-AZRPXTYJ.mjs +10 -0
  224. package/dist/chunk-B7PSE5KC.mjs +10 -0
  225. package/dist/chunk-BED7T5CL.mjs +10 -0
  226. package/dist/chunk-BGMVPFYK.mjs +10 -0
  227. package/dist/chunk-BJVFZYUV.mjs +10 -0
  228. package/dist/chunk-BKDQLDOK.mjs +10 -0
  229. package/dist/chunk-BLHN7I5Z.mjs +0 -0
  230. package/dist/chunk-BU5H25MV.mjs +10 -0
  231. package/dist/chunk-C342HL26.mjs +0 -0
  232. package/dist/chunk-C5P23FUW.mjs +10 -0
  233. package/dist/chunk-C6OMLVIQ.mjs +0 -0
  234. package/dist/chunk-CAWUDHAE.mjs +10 -0
  235. package/dist/chunk-CFDKFUTO.mjs +10 -0
  236. package/dist/chunk-CFLEBB5T.mjs +10 -0
  237. package/dist/chunk-CFRTAJP2.mjs +0 -0
  238. package/dist/chunk-CGFLGZL4.mjs +10 -0
  239. package/dist/chunk-CHTLOFCT.mjs +10 -0
  240. package/dist/chunk-CPSUI4IW.mjs +10 -0
  241. package/dist/chunk-CSPZMYVG.mjs +10 -0
  242. package/dist/chunk-CV6JQGJ3.mjs +10 -0
  243. package/dist/chunk-CWPFUB7B.mjs +10 -0
  244. package/dist/chunk-D3IZ4HBL.mjs +10 -0
  245. package/dist/chunk-D5EEZT5J.mjs +10 -0
  246. package/dist/chunk-DD5FWULD.mjs +10 -0
  247. package/dist/chunk-DECHIERQ.mjs +10 -0
  248. package/dist/chunk-DIHILOKU.mjs +10 -0
  249. package/dist/chunk-DM26KBZ3.mjs +10 -0
  250. package/dist/chunk-DOL6RDMF.mjs +10 -0
  251. package/dist/chunk-DRYSJSKA.mjs +10 -0
  252. package/dist/chunk-DY6WY36N.mjs +0 -0
  253. package/dist/chunk-E3PFPOHX.mjs +0 -0
  254. package/dist/chunk-E6VOSF6Z.mjs +10 -0
  255. package/dist/chunk-EA6GA4WC.mjs +10 -0
  256. package/dist/chunk-EK3RIYMV.mjs +10 -0
  257. package/dist/chunk-ELXWR5TS.mjs +10 -0
  258. package/dist/chunk-EMCEJKBJ.mjs +10 -0
  259. package/dist/chunk-ENDOKA57.mjs +10 -0
  260. package/dist/chunk-EU75HMPG.mjs +10 -0
  261. package/dist/chunk-EX2LI2CV.mjs +10 -0
  262. package/dist/chunk-EZXMEGV7.mjs +0 -0
  263. package/dist/chunk-F2HESRBD.mjs +10 -0
  264. package/dist/chunk-F2X474RV.mjs +10 -0
  265. package/dist/chunk-F7PGMOQF.mjs +10 -0
  266. package/dist/chunk-FJ2JRD3H.mjs +10 -0
  267. package/dist/chunk-FKYHERP4.mjs +0 -0
  268. package/dist/chunk-FP5EWPOF.mjs +10 -0
  269. package/dist/chunk-FTYXFTJV.mjs +10 -0
  270. package/dist/chunk-FWAK2OZM.mjs +10 -0
  271. package/dist/chunk-FXCHST4Z.mjs +10 -0
  272. package/dist/chunk-GCZFXILF.mjs +10 -0
  273. package/dist/chunk-GEZGEZAP.mjs +10 -0
  274. package/dist/chunk-GKODQS6E.mjs +10 -0
  275. package/dist/chunk-GOSLHCDP.mjs +0 -0
  276. package/dist/chunk-GX2IOGYR.mjs +12 -0
  277. package/dist/chunk-GXOXYPQQ.mjs +10 -0
  278. package/dist/chunk-H2LXVMBI.mjs +29 -0
  279. package/dist/chunk-HBBRMEES.mjs +10 -0
  280. package/dist/chunk-HEO2XVRN.mjs +10 -0
  281. package/dist/chunk-HI44JQA7.mjs +10 -0
  282. package/dist/chunk-HJQZW2VO.mjs +10 -0
  283. package/dist/chunk-HLDCVJXD.mjs +10 -0
  284. package/dist/chunk-HONWMHMX.mjs +10 -0
  285. package/dist/chunk-HT55YHTN.mjs +10 -0
  286. package/dist/chunk-HWOMGFBL.mjs +10 -0
  287. package/dist/chunk-HXTAOYOD.mjs +10 -0
  288. package/dist/chunk-HZHAKW6I.mjs +10 -0
  289. package/dist/chunk-I3RGYL4B.mjs +10 -0
  290. package/dist/chunk-I3YGB2BE.mjs +10 -0
  291. package/dist/chunk-IB23KCIW.mjs +10 -0
  292. package/dist/chunk-IHLJTHGQ.mjs +10 -0
  293. package/dist/chunk-ILBAZFBL.mjs +0 -0
  294. package/dist/chunk-INDVRI57.mjs +10 -0
  295. package/dist/chunk-IUQOFRI3.mjs +10 -0
  296. package/dist/chunk-IVVZSESM.mjs +10 -0
  297. package/dist/chunk-IW4GXU75.mjs +10 -0
  298. package/dist/chunk-J3MJZQUJ.mjs +10 -0
  299. package/dist/chunk-J4NO4WYU.mjs +0 -0
  300. package/dist/chunk-J7EAQSKX.mjs +10 -0
  301. package/dist/chunk-J7K7I5U2.mjs +10 -0
  302. package/dist/chunk-JBXZ6ZHP.mjs +10 -0
  303. package/dist/chunk-JDLUGVXG.mjs +10 -0
  304. package/dist/chunk-JI4SJ53O.mjs +11 -0
  305. package/dist/chunk-JJG67M2S.mjs +10 -0
  306. package/dist/chunk-JJPCZOOI.mjs +10 -0
  307. package/dist/chunk-JQ4ZGZPV.mjs +15 -0
  308. package/dist/chunk-JUXBZ2ZN.mjs +10 -0
  309. package/dist/chunk-K5RKL3WY.mjs +10 -0
  310. package/dist/chunk-K6IQ4ALU.mjs +0 -0
  311. package/dist/chunk-K6X2BHPP.mjs +10 -0
  312. package/dist/chunk-KAYY6L7Y.mjs +10 -0
  313. package/dist/chunk-KCHAWPUN.mjs +10 -0
  314. package/dist/chunk-KEVERVHK.mjs +10 -0
  315. package/dist/chunk-KG5PDPBK.mjs +10 -0
  316. package/dist/chunk-KKJ6XIU3.mjs +10 -0
  317. package/dist/chunk-KPEONVLU.mjs +10 -0
  318. package/dist/chunk-KUEDQO7P.mjs +10 -0
  319. package/dist/chunk-KY3JKXSX.mjs +10 -0
  320. package/dist/chunk-LQB4U6GF.mjs +10 -0
  321. package/dist/chunk-LQMEFFFM.mjs +10 -0
  322. package/dist/chunk-LZFTBNPW.mjs +10 -0
  323. package/dist/chunk-LZM6UK3C.mjs +10 -0
  324. package/dist/chunk-M5M3EPG5.mjs +10 -0
  325. package/dist/chunk-MEYMETYC.mjs +11 -0
  326. package/dist/chunk-MEZNZ5W6.mjs +10 -0
  327. package/dist/chunk-MFH2E2GU.mjs +10 -0
  328. package/dist/chunk-MHUFXHRU.mjs +10 -0
  329. package/dist/chunk-MI7DCFP2.mjs +10 -0
  330. package/dist/chunk-MLNPTVVX.mjs +10 -0
  331. package/dist/chunk-MRJFGHFW.mjs +10 -0
  332. package/dist/chunk-MUNFBB7D.mjs +0 -0
  333. package/dist/chunk-MVK5CB64.mjs +10 -0
  334. package/dist/chunk-MXKP7NQ4.mjs +10 -0
  335. package/dist/chunk-MZ4O6LWG.mjs +0 -0
  336. package/dist/chunk-N2XGJKZG.mjs +10 -0
  337. package/dist/chunk-N7MTFSWR.mjs +10 -0
  338. package/dist/chunk-NCADIC3I.mjs +10 -0
  339. package/dist/chunk-NGZRN4SF.mjs +10 -0
  340. package/dist/chunk-NHM3H5JU.mjs +0 -0
  341. package/dist/chunk-NKKKKVQ7.mjs +10 -0
  342. package/dist/chunk-NMTDGCRA.mjs +10 -0
  343. package/dist/chunk-NO55UIGK.mjs +0 -0
  344. package/dist/chunk-NRKHWSOP.mjs +0 -0
  345. package/dist/chunk-NSC53QWT.mjs +10 -0
  346. package/dist/chunk-NV7KQVPE.mjs +10 -0
  347. package/dist/chunk-O57ZEY3V.mjs +0 -0
  348. package/dist/chunk-O66FNQSB.mjs +10 -0
  349. package/dist/chunk-O6AE67ZY.mjs +10 -0
  350. package/dist/chunk-O7XK2WIX.mjs +10 -0
  351. package/dist/chunk-OAY74XPB.mjs +10 -0
  352. package/dist/chunk-OC42IZG2.mjs +10 -0
  353. package/dist/chunk-OMT6ZWSV.mjs +11 -0
  354. package/dist/chunk-OO7BXL2N.mjs +10 -0
  355. package/dist/chunk-P5GO3XIS.mjs +10 -0
  356. package/dist/chunk-PAQQ7MQG.mjs +10 -0
  357. package/dist/chunk-PBFIKNYZ.mjs +10 -0
  358. package/dist/chunk-PF3OQKXP.mjs +10 -0
  359. package/dist/chunk-PHZZLBH3.mjs +10 -0
  360. package/dist/chunk-PR3HWZFH.mjs +10 -0
  361. package/dist/chunk-PZTVDABF.mjs +0 -0
  362. package/dist/chunk-Q5UMLFN3.mjs +10 -0
  363. package/dist/chunk-QAUEG3EX.mjs +0 -0
  364. package/dist/chunk-QBJDGBTU.mjs +0 -0
  365. package/dist/chunk-QMDDCVAF.mjs +10 -0
  366. package/dist/chunk-QNBBJ5HC.mjs +11 -0
  367. package/dist/chunk-QY3O34WX.mjs +10 -0
  368. package/dist/chunk-RC7QITNV.mjs +10 -0
  369. package/dist/chunk-RCBUNCHV.mjs +10 -0
  370. package/dist/chunk-RELI5YAS.mjs +10 -0
  371. package/dist/chunk-RFTDIXEG.mjs +10 -0
  372. package/dist/chunk-RJC3HQDZ.mjs +10 -0
  373. package/dist/chunk-RJWPSJX2.mjs +10 -0
  374. package/dist/chunk-RMUV6NJJ.mjs +10 -0
  375. package/dist/chunk-ROHLZINC.mjs +10 -0
  376. package/dist/chunk-RSKKEGJZ.mjs +10 -0
  377. package/dist/chunk-RT4LMB6X.mjs +10 -0
  378. package/dist/chunk-RXSYDMT6.mjs +10 -0
  379. package/dist/chunk-S5XX36JC.mjs +10 -0
  380. package/dist/chunk-SAZLJ66W.mjs +10 -0
  381. package/dist/chunk-SMAYNDQQ.mjs +10 -0
  382. package/dist/chunk-TAROK7TO.mjs +10 -0
  383. package/dist/chunk-TAYP2OGC.mjs +10 -0
  384. package/dist/chunk-TDXALNX3.mjs +10 -0
  385. package/dist/chunk-TEQE6WCH.mjs +10 -0
  386. package/dist/chunk-THRAJMLX.mjs +10 -0
  387. package/dist/chunk-TI5RR7KX.mjs +10 -0
  388. package/dist/chunk-TIHKHXTS.mjs +10 -0
  389. package/dist/chunk-TJEK54BW.mjs +10 -0
  390. package/dist/chunk-TK4QXU3W.mjs +10 -0
  391. package/dist/chunk-TKQOQVZD.mjs +10 -0
  392. package/dist/chunk-TO2TQ2LE.mjs +10 -0
  393. package/dist/chunk-TO6OQF2Y.mjs +10 -0
  394. package/dist/chunk-TZ4MVY4E.mjs +10 -0
  395. package/dist/chunk-U2ODAIZG.mjs +10 -0
  396. package/dist/chunk-UCNHDT36.mjs +10 -0
  397. package/dist/chunk-UCZZLAPB.mjs +10 -0
  398. package/dist/chunk-UMABUZ67.mjs +10 -0
  399. package/dist/chunk-UQJGSVXP.mjs +10 -0
  400. package/dist/chunk-USMC34OO.mjs +10 -0
  401. package/dist/chunk-UTQ7AIPM.mjs +0 -0
  402. package/dist/chunk-UUBOEBYZ.mjs +10 -0
  403. package/dist/chunk-V3L4SVVF.mjs +10 -0
  404. package/dist/chunk-VCIX4HG7.mjs +0 -0
  405. package/dist/chunk-VDUFLHKK.mjs +10 -0
  406. package/dist/chunk-VG7J427T.mjs +10 -0
  407. package/dist/chunk-VHDXSFQC.mjs +10 -0
  408. package/dist/chunk-VLQ4S7XC.mjs +10 -0
  409. package/dist/chunk-VU2PDOBR.mjs +10 -0
  410. package/dist/chunk-VXB5SVQC.mjs +10 -0
  411. package/dist/chunk-W6QO7FPZ.mjs +10 -0
  412. package/dist/chunk-WAFYFWH4.mjs +0 -0
  413. package/dist/chunk-WAOWR7MR.mjs +10 -0
  414. package/dist/chunk-WDJ4GXWF.mjs +10 -0
  415. package/dist/chunk-WL27JGVG.mjs +10 -0
  416. package/dist/chunk-WOVAT6U4.mjs +10 -0
  417. package/dist/chunk-WSCZ34XO.mjs +10 -0
  418. package/dist/chunk-WSQGB4ZE.mjs +0 -0
  419. package/dist/chunk-WWSGOGLA.mjs +10 -0
  420. package/dist/chunk-X3AXUU3H.mjs +10 -0
  421. package/dist/chunk-XB657BXX.mjs +10 -0
  422. package/dist/chunk-XBBPWSJI.mjs +0 -0
  423. package/dist/chunk-XJGQXVMR.mjs +10 -0
  424. package/dist/chunk-XPISSX5R.mjs +10 -0
  425. package/dist/chunk-XTH6B5FE.mjs +10 -0
  426. package/dist/chunk-XVBOKL6D.mjs +10 -0
  427. package/dist/chunk-XWLESSHN.mjs +10 -0
  428. package/dist/chunk-XXANV3FM.mjs +10 -0
  429. package/dist/chunk-Y4DRSGEJ.mjs +10 -0
  430. package/dist/chunk-Y6XQJ4X2.mjs +10 -0
  431. package/dist/chunk-YB3KW7JC.mjs +10 -0
  432. package/dist/chunk-YCI6BEXQ.mjs +10 -0
  433. package/dist/chunk-YIGT3OP2.mjs +10 -0
  434. package/dist/chunk-YOBESAXG.mjs +10 -0
  435. package/dist/chunk-YS3Y5KGV.mjs +10 -0
  436. package/dist/chunk-YT36W3OS.mjs +10 -0
  437. package/dist/chunk-YV3WI6OV.mjs +10 -0
  438. package/dist/chunk-YV5CNDCW.mjs +0 -0
  439. package/dist/chunk-YVYMYKYN.mjs +10 -0
  440. package/dist/chunk-ZANUFNOL.mjs +0 -0
  441. package/dist/chunk-ZGRRD3TU.mjs +10 -0
  442. package/dist/chunk-ZLAY7NNY.mjs +10 -0
  443. package/dist/chunk-ZLDT2KDZ.mjs +10 -0
  444. package/dist/chunk-ZNN43VZV.mjs +10 -0
  445. package/dist/chunk-ZREX7XOO.mjs +10 -0
  446. package/dist/chunk-ZRWDMNNY.mjs +10 -0
  447. package/dist/chunk-ZVODDLGL.mjs +10 -0
  448. package/dist/hooks/useDevice.mjs +1 -0
  449. package/dist/hooks/useI18n.mjs +1 -0
  450. package/dist/hooks/useImage.mjs +1 -0
  451. package/dist/hooks/useIntersectionObserver.mjs +1 -0
  452. package/dist/hooks/useIsFirstRender.mjs +1 -0
  453. package/dist/hooks/useIsTouchDevice.mjs +1 -0
  454. package/dist/hooks/useLiveInteractionModality.mjs +1 -0
  455. package/dist/hooks/useLocalStorage.mjs +1 -0
  456. package/dist/hooks/useMedia.mjs +1 -0
  457. package/dist/hooks/useMutationObserver.mjs +1 -0
  458. package/dist/hooks/usePortalContainer.mjs +1 -0
  459. package/dist/hooks/usePreventFocus.mjs +1 -0
  460. package/dist/hooks/useResizeObserver.mjs +1 -0
  461. package/dist/hooks/useTextSelection.mjs +1 -0
  462. package/dist/hooks/useUndoRedo.mjs +1 -0
  463. package/dist/index.d.ts +349 -73
  464. package/dist/index.js +21 -21
  465. package/dist/index.mjs +1 -43
  466. package/dist/messageIds.mjs +1 -0
  467. package/dist/react-aria.d.ts +133 -133
  468. package/dist/react-aria.mjs +1 -0
  469. package/dist/react-stately.d.ts +82 -82
  470. package/dist/react-stately.mjs +1 -0
  471. package/dist/utils/a11y.mjs +1 -0
  472. package/dist/utils/classNames.mjs +1 -0
  473. package/dist/utils/colors.mjs +1 -0
  474. package/dist/utils/constants.mjs +10 -0
  475. package/dist/utils/devWarn.mjs +1 -0
  476. package/dist/utils/dom.mjs +1 -0
  477. package/dist/utils/invariant.mjs +1 -0
  478. package/dist/utils/isInIframe.mjs +1 -0
  479. package/dist/utils/isInShadowDOM.mjs +1 -0
  480. package/dist/utils/isRect.mjs +1 -0
  481. package/dist/utils/keyboards.mjs +1 -0
  482. package/dist/utils/math.mjs +1 -0
  483. package/dist/utils/objects.mjs +1 -0
  484. package/dist/utils/onDropOrPaste.mjs +1 -0
  485. package/dist/utils/overlays.mjs +1 -0
  486. package/dist/utils/reactAriaCompat.mjs +1 -0
  487. package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
  488. package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
  489. package/dist/utils/resolvePublicUrl.mjs +10 -0
  490. package/dist/utils/strings.mjs +1 -0
  491. package/dist/utils/style.mjs +1 -0
  492. package/dist/utils/svgs.mjs +1 -0
  493. package/dist/utils/validations.mjs +1 -0
  494. package/intl/ar.json +2 -2
  495. package/intl/cs.json +2 -2
  496. package/intl/cy.json +4 -4
  497. package/intl/da.json +3 -3
  498. package/intl/de.json +3 -3
  499. package/intl/el.json +2 -2
  500. package/intl/en-GB.json +2 -2
  501. package/intl/en.json +2 -2
  502. package/intl/fi.json +3 -3
  503. package/intl/fr-CA.json +1 -1
  504. package/intl/fr.json +2 -2
  505. package/intl/he.json +3 -3
  506. package/intl/hr.json +3 -3
  507. package/intl/id.json +3 -3
  508. package/intl/ja.json +2 -2
  509. package/intl/ko.json +1 -1
  510. package/intl/ms.json +2 -2
  511. package/intl/nb-NO.json +3 -3
  512. package/intl/nl.json +4 -4
  513. package/intl/pt-PT.json +1 -1
  514. package/intl/pt.json +3 -3
  515. package/intl/ru.json +2 -2
  516. package/intl/sk.json +2 -2
  517. package/intl/sl.json +4 -4
  518. package/intl/sv.json +3 -3
  519. package/intl/th.json +1 -1
  520. package/intl/tr.json +3 -3
  521. package/intl/uk.json +1 -1
  522. package/intl/zh-Hant.json +2 -2
  523. package/messages.json +2 -2
  524. package/package.json +9 -6
  525. package/sbom.json +13 -13
@@ -0,0 +1,11 @@
1
+ import {a as a$1}from'./chunk-2MS356Q7.mjs';import {f,d,b,h,g}from'./chunk-IW4GXU75.mjs';import {a as a$2}from'./chunk-O7XK2WIX.mjs';import {c as c$1}from'./chunk-JJPCZOOI.mjs';import {a}from'./chunk-3FYY26ED.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import A from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function w({className:r}){return jsx("span",{className:r,"aria-hidden":"true","data-testid":"textinput-resize-grip",children:jsxs("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M4.72031 3.71962C5.01321 3.42683 5.488 3.42676 5.78086 3.71962C6.07352 4.01249 6.07358 4.48733 5.78086 4.78016L4.78086 5.78016C4.48803 6.07299 4.01322 6.07286 3.72031 5.78016C3.42742 5.48727 3.42742 5.01251 3.72031 4.71962L4.72031 3.71962Z",fill:"currentColor"}),jsx("path",{d:"M4.22031 0.219616C4.51321 -0.0731691 4.988 -0.0732413 5.28086 0.219616C5.57352 0.512488 5.57358 0.987325 5.28086 1.28016L1.27988 5.28016C0.986955 5.57268 0.512099 5.57293 0.219333 5.28016C-0.073139 4.98737 -0.0730827 4.51244 0.219333 4.21962L4.22031 0.219616Z",fill:"currentColor"})]})})}var F=A.forwardRef(({labelPosition:r="top",className:y,style:z,labelProps:S,isDisabled:t=false,isReadOnly:e=false,label:f$1,message:o,"data-block-id":L,validationState:m="valid",isFocused:B=false,variant:G="primary",children:H,fieldProps:R,wrapperRef:k,wrapperClassName:M,isInvalid:T,isMultiLine:s=false},Z)=>{let{hoverProps:E,isHovered:W}=a({isDisabled:t}),i=a$1({isReadOnly:e,validationState:m});return jsxs("div",{className:a$3(g({labelPosition:r}),y),"data-block-id":L,style:z,ref:Z,children:[f$1||r==="start"&&o?jsxs("div",{className:f({labelPosition:r,hasMessage:!!o}),children:[jsx(a$2,{...S,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:f$1}),r==="start"&&o]}):null,jsxs("div",{className:a$3({[c$1]:t}),children:[jsxs("div",{...c(R,E),className:a$3(h({validationState:T?"error":m,isHovered:W,isFocused:B,variant:G,isReadOnly:e,isDisabled:t,isMultiLine:s}),M),ref:k,children:[H,i?jsx(i,{className:d({validationState:m,isReadOnly:e,isMultiLine:s}),size:16}):null,s&&!e&&!t?jsx(w,{className:b}):null]}),r==="top"&&o]})]})});F.displayName="SharedInput";
11
+ export{F as a};
@@ -0,0 +1,10 @@
1
+ import {ReadOnlyIcon,ErrorCircleFilledIcon,WarningFilledIcon}from'@baseline-ui/icons/16';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function l({isReadOnly:n,validationState:r}){return n?ReadOnlyIcon:r==="error"?ErrorCircleFilledIcon:r==="warning"?WarningFilledIcon:null}export{l as a};
File without changes
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var f=Symbol.for("react-aria.i18n.locale"),S=Symbol.for("react-aria.i18n.strings"),a,s=class i{strings;defaultLocale;constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=e;}getStringForLocale(t,e){let n=this.getStringsForLocale(e)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${e} locale`);return n}getStringsForLocale(t){let e=this.strings[t];return e||(e=p(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let e=window[f];if(a===void 0){let n=window[S];if(!n)return null;a={};for(let o in n)a[o]=new i({[e]:n[o]},e);}let r=a?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function p(i,t,e="en-US"){if(t[i])return t[i];let r=L(i);if(t[r])return t[r];for(let n in t)if(n.startsWith(r+"-"))return t[n];return t[e]}function L(i){return Intl.Locale?new Intl.Locale(i).language:i.split("-")[0]}var c=new Map,d=new Map,g=class{locale;strings;constructor(t,e){this.locale=t,this.strings=e;}format(t,e){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(e,this):r}plural(t,e,r="cardinal"){let n=e["="+t];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,l=c.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),c.set(o,l));let u=l.select(t);return n=e[u]||e.other,typeof n=="function"?n():n}number(t){let e=d.get(this.locale);return e||(e=new Intl.NumberFormat(this.locale),d.set(this.locale,e)),e.format(t)}select(t,e){let r=t[e]||t.other;return typeof r=="function"?r():r}};export{s as a,g as b};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var r="var(--_1hotumh0)";export{r as a};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function b(u,n=-1/0,r=1/0){return Math.min(Math.max(u,n),r)}function a(u,n){let r=u,e=0,o=n.toString(),t=o.toLowerCase().indexOf("e-");if(t>0)e=Math.abs(Math.floor(Math.log10(Math.abs(n))))+t;else {let i=o.indexOf(".");i>=0&&(e=o.length-i);}if(e>0){let i=Math.pow(10,e);r=Math.round(r*i)/i;}return r}function l(u,n,r,e){n=Number(n),r=Number(r);let o=(u-(isNaN(n)?0:n))%e,t=a(Math.abs(o)*2>=e?u+Math.sign(o)*(e-Math.abs(o)):u-o,e);return isNaN(n)?!isNaN(r)&&t>r&&(t=Math.floor(a(r/e,e))*e):t<n?t=n:!isNaN(r)&&t>r&&(t=n+Math.floor(a((r-n)/e,e))*e),t=a(t,e),t}function f(u,n,r=10){let e=Math.pow(r,n);return Math.round(u*e)/e}export{b as a,l as b,f as c};
@@ -0,0 +1,10 @@
1
+ import {a as a$2}from'./chunk-AC7OXVHA.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$1}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import d from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var l=a$1({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var a=d.forwardRef((e$1,i)=>{let[r,z]=e({...e$1,slot:e$1.slot??null},i,a$2),{elementType:o="span",type:n="title",children:_,size:x="md",...t}=r;return jsx(o,{...t,className:a$3(l({size:x,type:n}),"BaselineUI-Text",t.className),ref:z,children:_})});a.displayName="Text";export{a};
@@ -0,0 +1,10 @@
1
+ import {d}from'./chunk-KUEDQO7P.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {useState}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function m(e,i){let t=i?.isDisabled,[s,o]=useState(false);return a(()=>{if(e?.current&&!t){let a=()=>{if(e.current){let u=d(e.current,{tabbable:true});o(!!u.nextNode());}};a();let r=new MutationObserver(a);return r.observe(e.current,{subtree:true,childList:true,attributes:true,attributeFilter:["tabIndex","disabled"]}),()=>{r.disconnect();}}}),t?false:s}export{m as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$2}from'./chunk-CHTLOFCT.mjs';import {a as a$6}from'./chunk-DRYSJSKA.mjs';import {a as a$1}from'./chunk-CFLEBB5T.mjs';import {b}from'./chunk-4ZJMZB5B.mjs';import {a as a$5}from'./chunk-RSKKEGJZ.mjs';import {a as a$3}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-3FYY26ED.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$7}from'./chunk-4QEH5CGK.mjs';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/16';import {CheckmarkIcon}from'@baseline-ui/icons/20';import C from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var k="_1yep5z6iv _1yep5z6iw _1yep5z6ix",x=a({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),R=a({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61n6"],[{isSelected:true,isDisabled:true},"_1yep5z61n6"],[{isSelected:false,isDisabled:true},"_1yep5z61n4"]]}),z=a({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var S=C.forwardRef(({className:N,count:V,style:P,size:i="md",icon:D,"data-block-id":H,"data-block-class":I,...a},O)=>{let l={isRequired:false},T=D||(i==="md"?CheckmarkIcon:CheckmarkIcon$1);!a["aria-label"]&&!a["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let s=C.useRef(null),n=a$1({...a,...l}),{inputProps:w,isPressed:F,isDisabled:r,isReadOnly:t,isSelected:d}=a$2({...a,...l},n,s),{focusProps:M,isFocused:j,isFocusVisible:c}=a$3(),{hoverProps:A,isHovered:b$1}=a$4({}),B=a$5({"data-block-id":H,"data-block-class":I,"data-focused":j,"data-focus-visible":c,"data-disabled":r,"data-hovered":b$1,"data-pressed":F,"data-selected":d});return jsxs("label",{ref:O,style:P,className:a$7(k,"BaselineUI-Reaction",N),...B,children:[jsx(b,{children:jsx("input",{...w,...M,ref:s})}),jsxs("div",{...A,className:x({isSelected:d,isFocusVisible:c,isHovered:b$1,isReadOnly:t,isDisabled:r}),children:[jsx("div",{className:z({isDisabled:r,isReadOnly:t}),children:jsx(T,{size:i==="md"?20:16})}),jsx("div",{className:R({isSelected:n.isSelected,isDisabled:r,isReadOnly:t,size:i}),children:jsx(a$6,{value:V})})]})]})});S.displayName="Reaction";export{S as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-6ZQE5SHE.mjs';import {a,e,g}from'./chunk-AUOQSTS5.mjs';import {useState,useRef,useEffect,useMemo}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var p=false,f=0;function c(){p=true,setTimeout(()=>{p=false;},500);}function M(r){r.pointerType==="touch"&&c();}function A(r=document){if(!(typeof r>"u"))return f===0&&(typeof PointerEvent<"u"?r.addEventListener("pointerup",M):process.env.NODE_ENV==="test"&&r.addEventListener("touchend",c)),f++,()=>{f--,!(f>0)&&(typeof PointerEvent<"u"?r.removeEventListener("pointerup",M):process.env.NODE_ENV==="test"&&r.removeEventListener("touchend",c));}}function S(r,L){let{onHoverStart:E,onHoverChange:u,onHoverEnd:d,isDisabled:o}=r,[O,H]=useState(false),t=useRef({isHovered:false,ignoreEmulatedMouseEvents:false,pointerType:"",target:null}).current;useEffect(()=>A(a(L?.current)),[]);let{addGlobalListener:b,removeAllGlobalListeners:h}=a$1(),{hoverProps:x,triggerHoverEnd:G}=useMemo(()=>{let y=(e$1,s)=>{if(t.pointerType=s,o||s==="touch"||t.isHovered||!e(e$1.currentTarget,g(e$1)))return;t.isHovered=true;let a$1=e$1.currentTarget;t.target=a$1,b(a(g(e$1)),"pointerover",g$1=>{t.isHovered&&t.target&&!e(t.target,g(g$1))&&v(g$1,g$1.pointerType);},{capture:true}),E&&E({type:"hoverstart",target:a$1,pointerType:s}),u&&u(true),H(true);},v=(e,s)=>{let a=t.target;t.pointerType="",t.target=null,!(s==="touch"||!t.isHovered||!a)&&(t.isHovered=false,h(),d&&d({type:"hoverend",target:a,pointerType:s}),u&&u(false),H(false));},n={};return typeof PointerEvent<"u"?(n.onPointerEnter=e=>{p&&e.pointerType==="mouse"||y(e,e.pointerType);},n.onPointerLeave=e$1=>{!o&&e(e$1.currentTarget,g(e$1))&&v(e$1,e$1.pointerType);}):process.env.NODE_ENV==="test"&&(n.onTouchStart=()=>{t.ignoreEmulatedMouseEvents=true;},n.onMouseEnter=e=>{!t.ignoreEmulatedMouseEvents&&!p&&y(e,"mouse"),t.ignoreEmulatedMouseEvents=false;},n.onMouseLeave=e$1=>{!o&&e(e$1.currentTarget,g(e$1))&&v(e$1,"mouse");}),{hoverProps:n,triggerHoverEnd:v}},[E,u,d,o,t,b,h]);return useEffect(()=>{o&&G({currentTarget:t.target},t.pointerType);},[o]),{hoverProps:x,isHovered:O}}export{S as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {d}from'./chunk-MRJFGHFW.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function p(r,e=false){return d()?r.replace("Ctrl+",e?"\u2318":"Cmd+").replace("Alt+",e?"\u2325":"Option+").replace("Shift+",e?"\u21E7":"Shift+").replace("Enter+",e?"\u21A9":"Enter+").replace("Space+",e?"\u2423":"Space+").replace("Enter",e?"\u21A9":"Enter"):r}export{p as a};
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-AUOQSTS5.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function d(t){return t?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}var c=new WeakMap;function u(t){let e=t??(typeof document<"u"?document:void 0);if(!e)return d(e);if(c.has(e))return c.get(e);let n=e.querySelector('meta[property="csp-nonce"]'),o=n&&n instanceof b(n).HTMLMetaElement&&(n.nonce||n.content)||d(e)||void 0;return o!==void 0&&c.set(e,o),o}export{u as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-IUQOFRI3.mjs';import {a as a$e}from'./chunk-Y6XQJ4X2.mjs';import {a as a$g}from'./chunk-MEYMETYC.mjs';import {a as a$3,b as b$1}from'./chunk-BJVFZYUV.mjs';import {a as a$2}from'./chunk-5KD2MNNX.mjs';import {a as a$h}from'./chunk-PR3HWZFH.mjs';import {b as b$5}from'./chunk-J3MJZQUJ.mjs';import {a as a$d}from'./chunk-O7XK2WIX.mjs';import {a as a$f}from'./chunk-MEZNZ5W6.mjs';import {a as a$1}from'./chunk-AV4ZP5SY.mjs';import {a as a$i}from'./chunk-KUEDQO7P.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {b as b$3}from'./chunk-4ZJMZB5B.mjs';import {b as b$4,j}from'./chunk-4NYPVKDO.mjs';import {a as a$c}from'./chunk-VDUFLHKK.mjs';import {a as a$a}from'./chunk-X3AXUU3H.mjs';import {a as a$8}from'./chunk-RSKKEGJZ.mjs';import {a as a$6}from'./chunk-K6X2BHPP.mjs';import {a as a$b}from'./chunk-BGMVPFYK.mjs';import {a as a$7}from'./chunk-3FYY26ED.mjs';import {a as a$9}from'./chunk-RT4LMB6X.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import B from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {sprinkles}from'@baseline-ui/tokens';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var se="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",pe="_14uvjig3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",de="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",ne=a({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasNumberInput:{false:"_1yep5z6ol _1yep5z6om _1yep5z6on"}},defaultVariants:{},compoundVariants:[]}),me=a({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g9 _1yep5z6lp _1yep5z6la",variantClassNames:{active:{true:"_14uvjigc _1yep5z612i _1yep5z6181 _1yep5z617t"},isDisabled:{true:"_14uvjigd _1yep5z612m"},isReadOnly:{true:"_1yep5z614p _1yep5z614q _1yep5z614r"},isFocusVisible:{true:"_14uvjigf _1yep5z612i _1yep5z617d"},isHovered:{true:"_14uvjigg _1yep5z612i"}},defaultVariants:{},compoundVariants:[]}),ue="z9nup8a _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",ye="_14uvjig4 z9nup87 _1yep5z6g5 _1yep5z6ln",ce=a({defaultClassName:"_14uvjig5 _1yep5z6g9 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lo",variantClassNames:{active:{true:"_1yep5z612i"},isFocusVisible:{true:"_1yep5z612i"},isDisabled:{true:"_1yep5z612m"},isHovered:{true:"_1yep5z612i"}},defaultVariants:{},compoundVariants:[]});var N=B.forwardRef(({className:z,style:v,onChange:r,onChangeEnd:p,numberFormatOptions:o,isDisabled:i,step:g,minValue:d,maxValue:h,value:c,"aria-label":l,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,"data-block-id":f,"data-block-class":H,defaultValue:j,isReadOnly:b$1,label:_,id:k,includeNumberInput:u,numberInputClassName:P,numberInputStyle:y},ze)=>{let I=B.useRef(null),F={onChange:r===void 0?void 0:S=>{r(S[0]);},isDisabled:i||b$1,step:g,minValue:d,maxValue:h,onChangeEnd:p===void 0?void 0:S=>{p(S[0]);},value:c===void 0?void 0:[c],defaultValue:j===void 0?void 0:[j],"aria-label":l,"aria-labelledby":e,"aria-details":n,"aria-describedby":m,id:k,label:_},ve=a$1(o),T=a$2({...F,numberFormatter:ve}),{trackProps:ge,groupProps:he,labelProps:O}=a$3(F,T,I),L=jsx(a$4,{variant:"ghost",showStepper:false,className:P,"aria-label":l,"aria-labelledby":O.id,isDisabled:i,isReadOnly:b$1,value:T.getThumbValue(0),formatOptions:o,onChange:S=>{T.setThumbValue(0,S);},style:{width:60,textAlign:"right",flexShrink:0,...y}});return jsxs("div",{...he,style:v,"data-block-id":f,"data-block-class":H,className:a$5(se,"BaselineUI-Slider",z),children:[_?jsxs("div",{className:de,children:[jsx("label",{...O,className:a$5(ne({isDisabled:i,hasNumberInput:!!u}),"BaselineUI-Slider-Label"),children:_}),u?L:null]}):null,jsxs("div",{className:pe,children:[jsx("div",{...ge,className:a$5(ye,"BaselineUI-Slider-Track"),ref:b(I,ze),"data-testid":"track",children:jsx(Se,{state:T,trackRef:I,isDisabled:i,isReadOnly:b$1})}),u&&!_?L:null]})]})});N.displayName="Slider";function Se({state:z,trackRef:v,isDisabled:r,isReadOnly:p}){let o=B.useRef(null),{thumbProps:i,inputProps:g,isDragging:d}=b$1({trackRef:v,inputRef:o},z),{focusProps:h,isFocused:c$1,isFocusVisible:l}=a$6(),{hoverProps:e,isHovered:n}=a$7({isDisabled:r}),{direction:m}=b$2(),f=a$8({"data-disabled":r,"data-readonly":p,"data-hovered":n,"data-focus-visible":l,"data-dragging":d,"data-focused":c$1});return jsxs(Fragment,{children:[jsx("div",{className:a$5(ce({isDisabled:r,isFocusVisible:l,active:d,isHovered:n}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${i.style?.left})`:i.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...c(i,e,f),className:a$5(ue,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:a$5(me({isDisabled:r,isFocusVisible:l,active:d,isReadOnly:p,isHovered:n}),"BaselineUI-Slider-Thumb")}),jsx(b$3,{children:jsx("input",{ref:o,...c(g,h)})})]})]})}var _e=B.forwardRef(({className:z,style:v,onChange:r,"data-block-id":p,icon:o,formatValue:i=m=>m,tooltip:g=true,iconTooltip:d=true,popoverContentProps:h,isDisabled:c,onTriggerPress:l,...e},n)=>{let m=a$9(n),[f,H]=a$a(e.value,e.defaultValue||0,r),[j$1,b]=B.useState(false),{keyboardProps:_}=a$b({onKeyDown:y=>{(y.key==="Enter"||y.key==="Escape")&&b(false);}}),{tooltipProps:k}=a$c({label:e["aria-label"],tooltip:g}),u=i(f||0),P=k?.isDisabled||e["aria-label"]?`${e["aria-label"]}, ${u}`:u.toString();return jsxs(a$d,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:a$5("BaselineUI-IconSlider",z),"data-block-id":p,style:v,ref:m,children:[o?jsx(a$e,{icon:o,label:e["aria-label"],tooltip:d,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(b$4,{type:"dialog",isOpen:j$1,onOpenChange:b,children:[jsx(j,{children:jsx(a$f,{...k,children:jsx(b$5,{label:u,variant:"popover","aria-label":P,isDisabled:c,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:l})})}),jsx(a$g,{placement:"bottom start",...h,children:jsx(a$h,{size:"content","aria-label":P,children:jsx(a$i,{autoFocus:true,children:jsx(a$d,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},..._,children:jsx(N,{...e,onChange:y=>{H(y),r?.(y);},value:f})})})})})]})]})});_e.displayName="IconSlider";export{N as a,_e as b};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-LZFTBNPW.mjs';import {a as a$2}from'./chunk-IW4GXU75.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import M from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var v="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",u="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",f=a({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),h="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",B="_12vfhl43 _1yep5z6g5 _1yep5z6ln",b="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",C="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",j=a({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var k=M.forwardRef(({className:x,style:N,variant:p="active",showValue:l,description:t,errorMessage:P,"data-block-id":V,"data-block-class":T,...s},H)=>{let y=c(),{labelProps:L,progressBarProps:_}=a$1({...s,"aria-describedby":t?y:s["aria-describedby"]}),{minValue:i=0,maxValue:W=100,value:I=0,label:r}=s,R=(I-i)/(W-i),E=`${Math.round(R*100)}%`,z=jsx("output",{className:j({hasLabel:!!r}),children:_["aria-valuetext"]}),n=p==="error"?P:t;return jsxs("div",{..._,style:N,className:a$3(v,"BaselineUI-ProgressBar",x),"data-block-id":V,"data-block-class":T,ref:H,children:[r?jsxs("div",{className:u,children:[jsx("label",{...L,className:h,children:r}),l?z:null]}):null,jsxs("div",{className:C,children:[jsxs("div",{className:b,children:[jsx("div",{className:B,children:jsx("div",{style:{width:E},className:f({variant:p})})}),!r&&l?z:null]}),n?jsx("div",{className:a$2({hasError:p==="error"}),id:y,children:n}):null]})]})});k.displayName="ProgressBar";export{k as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-MHUFXHRU.mjs';import {a as a$3}from'./chunk-3X2QM7GV.mjs';import {a as a$2}from'./chunk-YOBESAXG.mjs';import {b,c}from'./chunk-GX2IOGYR.mjs';import {b as b$1}from'./chunk-4ZJMZB5B.mjs';import {a as a$1}from'./chunk-RSKKEGJZ.mjs';import {a as a$4}from'./chunk-4QEH5CGK.mjs';import {PauseIcon,PlayIcon}from'@baseline-ui/icons/24';import _ from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var g="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",f="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",z="rta2n90";var P=_.forwardRef(({className:h,style:v,size:k="lg",sources:T,playLabel:j,pauseLabel:I,audioTimelineLabel:x,playingLabel:A,pausedLabel:C,"data-block-id":S,"data-block-class":B,...M},U)=>{let t=_.useRef(null),{isPlaying:r,progress:H,duration:N,togglePlay:R,seek:V,formattedDuration:w,formattedCurrentTime:q,setProgress:D,setIsSliderDragging:s}=a(t,{playingLabel:A,pausedLabel:C}),{formatMessage:i}=b(),E=a$1({"data-block-id":S,"data-block-class":B,"data-state":r?"playing":"paused","data-loaded":N>0});return jsxs("div",{...E,...M,className:a$4(g,"BaselineUI-AudioPlayer",h),role:"group",style:v,ref:U,children:[jsx(b$1,{children:jsx("audio",{ref:t,children:T.map(({url:a,type:L})=>jsx("source",{src:a,type:L},a))})}),jsx(a$2,{icon:r?PauseIcon:PlayIcon,variant:"toolbar",isSelected:r,size:k,"aria-label":r?I??i(o.pause):j??i(o.play),style:{borderRadius:"50%"},onPress:R}),jsxs("div",{className:f,children:[jsx("span",{"aria-hidden":true,children:q}),jsx(a$3,{"aria-label":x??i(o.audioTimeline),value:H,minValue:0,maxValue:100,className:z,onChange:a=>{D(a),s(true);},onChangeEnd:a=>{V(a),s(false);}}),jsx("span",{"aria-hidden":true,children:w})]})]})});P.displayName="AudioPlayer";var o=c({play:{id:"bui.audioPlayer.play",defaultMessage:"Play"},pause:{id:"bui.audioPlayer.pause",defaultMessage:"Pause"},audioTimeline:{id:"bui.audioPlayer.audioTimeline",defaultMessage:"Audio timeline"}});export{P as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-FXCHST4Z.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var t="uf19bsf _1yep5z6la",o=a({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk z9nup8a",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"primary",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"secondary",isHovered:true,isFocusVisible:false},"_1yep5z61nc"],[{variant:"tertiary",isHovered:true,isFocusVisible:false},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:true,isFocusVisible:false},"_1yep5z61nh"],[{variant:"popover",isHovered:true,isFocusVisible:false},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:false},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});export{t as a,o as b};
@@ -0,0 +1,10 @@
1
+ import {a as a$4}from'./chunk-ZLDT2KDZ.mjs';import {a as a$2}from'./chunk-UUBOEBYZ.mjs';import {a as a$1}from'./chunk-4PYEGHW5.mjs';import {a as a$3}from'./chunk-66CUIXA6.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import d,{useMemo,useContext}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var s=d.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),C=({children:e,...t})=>{let a=d.useRef(null),o=a$1(t),r=a$2(t,o),i=useMemo(()=>({state:o,overlayTriggerAria:r,triggerRef:a}),[o,r]);return jsx(s.Provider,{value:i,children:e})};var N=a({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),E=a({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),B="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",F="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",c="_1gzftthd",L="_1gzftthc",I="var(--_1gzftth0)";var x=d.createContext({isSelected:false,ref:void 0}),G=({children:e,anchorRect:t})=>{let{state:a,overlayTriggerAria:o,triggerRef:r}=useContext(s);a$3(a,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=o;a$3(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),a$3(!t||a$4(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height.");let y=useMemo(()=>({...i,isSelected:a.isOpen,ref:r}),[i,a.isOpen,r]);return t?jsx("div",{className:a$5(c,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:r,tabIndex:-1},JSON.stringify(t)):typeof e=="function"?e({isOpen:a.isOpen,triggerProps:i,triggerRef:r}):d.isValidElement(e)?jsx(x.Provider,{value:y,children:e}):null};export{s as a,C as b,N as c,E as d,B as e,F as f,L as g,I as h,x as i,G as j};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-X3AXUU3H.mjs';import {useCallback}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function O(o){let[n,e]=a(o.isOpen,o.defaultOpen||false,o.onOpenChange),a$1=useCallback(()=>{e(true);},[e]),l=useCallback(()=>{e(false);},[e]),i=useCallback(()=>{e(!n);},[e,n]);return {isOpen:n,setOpen:e,open:a$1,close:l,toggle:i}}export{O as a};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function n(...t){let r=t.filter(Boolean),e=[];for(let s of r)if(Array.isArray(s))e.push(n(...s));else if(typeof s=="object"){let f=Object.keys(s);for(let o of f)s[o]&&e.push(o);}else typeof s=="string"&&e.push(s);return e.join(" ")}export{n as a};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function s({ariaProps:i,fallbackLabelId:r,fallbackDescriptionId:e}){let a={...i};return r&&!a["aria-labelledby"]&&!a["aria-label"]&&(a["aria-labelledby"]=r),e&&!a["aria-describedby"]&&!a["aria-details"]&&(a["aria-describedby"]=e),a}export{s as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {b}from'./chunk-YB3KW7JC.mjs';import {c}from'./chunk-TZ4MVY4E.mjs';import {useState,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var u={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function m(t={}){let{style:e,isFocusable:i}=t,[s,o]=useState(false),{focusWithinProps:r}=b({isDisabled:!i,onFocusWithinChange:a=>o(a)}),l=useMemo(()=>s?e:e?{...u,...e}:u,[s]);return {visuallyHiddenProps:{...r,style:l}}}function V(t){let{children:e,elementType:i="div",isFocusable:s,style:o,...r}=t,{visuallyHiddenProps:l}=m(t);return jsx(i,{...c(r,l),children:e})}export{m as a,V as b};
@@ -0,0 +1,10 @@
1
+ import {b,c}from'./chunk-GX2IOGYR.mjs';import {b as b$1}from'./chunk-J3MJZQUJ.mjs';import {a as a$1}from'./chunk-GCZFXILF.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {WarningFilledIcon as WarningFilledIcon$1,CheckmarkCircleFilledIcon,InfoCircleFilledIcon as InfoCircleFilledIcon$1,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1,XIcon}from'@baseline-ui/icons/16';import {WarningFilledIcon,CheckCircleFilledIcon,InfoCircleFilledIcon,ErrorAltCircleFilledIcon}from'@baseline-ui/icons/20';import U from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var u=a({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),d=a({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:false,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:true,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:true,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),f=a({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),C=a({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),k=a({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),v=a({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),I=a({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var X={error:{sm:ErrorAltCircleFilledIcon$1,md:ErrorAltCircleFilledIcon},info:{sm:InfoCircleFilledIcon$1,md:InfoCircleFilledIcon},success:{sm:CheckmarkCircleFilledIcon,md:CheckCircleFilledIcon},warning:{sm:WarningFilledIcon$1,md:WarningFilledIcon}},g=U.forwardRef(({className:A,description:h,actionLabel:i,onAction:N,style:j,variant:s="info",title:b$2,arrangement:p="single",onClose:y,closeLabel:V,size:z="sm","data-block-id":x,"data-block-class":F,elementProps:n},B)=>{let w=b(),l=i&&jsx(b$1,{variant:p==="compact"?"tertiary":"ghost",label:i,onPress:N}),q=X[s][z];return jsxs("div",{className:a$2(d({variant:s,arrangement:p,hasButton:!!i||!!y,hasCloseButton:!!y}),"BaselineUI-InlineAlert",A),"data-block-id":x,"data-block-class":F,style:j,role:"alert",ref:B,...n?.root,children:[jsxs("div",{className:I({arrangement:p}),children:[jsx(q,{className:k({variant:s}),size:16}),jsxs("div",{className:u({arrangement:p}),...n?.content,children:[jsx("h3",{className:v({size:z}),...n?.title,children:b$2}),jsx("section",{className:f({size:z}),...n?.description,children:h})]}),p==="compact"&&l]}),jsxs("div",{className:C({arrangement:p}),children:[p!=="compact"&&l,y?jsx(a$1,{variant:"secondary",icon:XIcon,size:"sm",onPress:y,"aria-label":V??w.formatMessage(G.close),...n?.close}):null]})]})});g.displayName="InlineAlert";var G=c({close:{defaultMessage:"Close",id:"bui.inlineAlert.close"}});export{g as a};
@@ -0,0 +1,10 @@
1
+ import {t}from'./chunk-MRJFGHFW.mjs';import {useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function i(t$1,m,r){let n=t(e=>{r&&!e.defaultPrevented&&r(m);});useEffect(()=>{let e=t$1?.current?.form;return e?.addEventListener("reset",n),()=>{e?.removeEventListener("reset",n);}},[t$1]);}export{i as a};
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-USMC34OO.mjs';import {useCallback,useMemo}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function p(h){let l=a({usage:"search",...h}),n=useCallback((t,e)=>e.length===0?true:(t=t.normalize("NFC"),e=e.normalize("NFC"),l.compare(t.slice(0,e.length),e)===0),[l]),a$1=useCallback((t,e)=>e.length===0?true:(t=t.normalize("NFC"),e=e.normalize("NFC"),l.compare(t.slice(-e.length),e)===0),[l]),i=useCallback((t,e)=>{if(e.length===0)return true;t=t.normalize("NFC"),e=e.normalize("NFC");let r=0,c=e.length;for(;r+c<=t.length;r++){let f=t.slice(r,r+c);if(l.compare(e,f)===0)return true}return false},[l]);return useMemo(()=>({startsWith:n,endsWith:a$1,contains:i}),[n,a$1,i])}export{p as a};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var r=(e,o)=>(e+o)/2;function l(e,o=true){if(!e.length)return "";let u=e.length;if(u<4)return "";let n=e[0],t=e[1],F=e[2],x=`M${n[0].toFixed(2)},${n[1].toFixed(2)} Q${t[0].toFixed(2)},${t[1].toFixed(2)} ${r(t[0],F[0]).toFixed(2)},${r(t[1],F[1]).toFixed(2)} T`;for(let i=2,d=u-1;i<d;i++)n=e[i],t=e[i+1],x+=`${r(n[0],t[0]).toFixed(2)},${r(n[1],t[1]).toFixed(2)} `;return o&&(x+="Z"),x}export{l as a};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var r=new Set;function s(n,e){process.env.NODE_ENV!=="production"&&(r.has(n)||(r.add(n),console.warn(e)));}export{s as a};
@@ -0,0 +1,10 @@
1
+ import {b,a as a$1}from'./chunk-2VY4FAOY.mjs';import {a}from'./chunk-X3AXUU3H.mjs';import {useMemo,useCallback,useState,useRef}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var ee=0,ne=100,te=1;function le(n){let{isDisabled:b$1=false,minValue:t=ee,maxValue:m=ne,numberFormatter:s,step:l=te,orientation:U="horizontal"}=n,_=useMemo(()=>{let e=(m-t)/10;return e=b(e,0,e+l,l),Math.max(e,l)},[l,m,t]),d=useCallback(e=>e?.map((u,r)=>{let c=r===0?t:e[r-1],V=r===e.length-1?m:e[r+1];return b(u,c,V,l)}),[t,m,l]),w=useMemo(()=>d(P(n.value)),[n.value,d]),p=useMemo(()=>d(P(n.defaultValue)??[t]),[n.defaultValue,t,d]),B=z(n.value,n.defaultValue,n.onChange),D=z(n.value,n.defaultValue,n.onChangeEnd),[a$2,N]=a(w,p,B),[k]=useState(a$2),[E,X]=useState(new Array(a$2.length).fill(false)),F=useRef(new Array(a$2.length).fill(true)),[j,q]=useState(void 0),f=useRef(a$2),o=useRef(E),G=e=>{f.current=e,N(e);},H=e=>{o.current=e,X(e);};function M(e){return (e-t)/(m-t)}function y(e){return e===0?t:a$2[e-1]}function L(e){return e===a$2.length-1?m:a$2[e+1]}function T(e){return F.current[e]}function J(e,u){F.current[e]=u;}function g(e,u){if(b$1||!T(e))return;let r=y(e),c=L(e);u=b(u,r,c,l);let V=C(f.current,e,u);G(V);}function K(e,u){if(b$1||!T(e))return;u&&(f.current=a$2);let r=o.current[e];o.current=C(o.current,e,u),H(o.current),D&&r&&!o.current.some(Boolean)&&D(f.current);}let A=useRef(null);function v(e=a$2){switch(typeof e=="number"&&(e=[e]),e.length){case 0:return "";case 1:return s.format(e[0]);case 2:return s.formatRange(e[0],e[1]);default:{let u=e.map(c=>s.format(c)),r=A.current;return (!r||r.resolvedOptions().locale!==s.resolvedOptions().locale)&&(r=A.current=new Intl.ListFormat(s.resolvedOptions().locale,{type:"unit"})),r.format(u)}}}function Q(e,u){g(e,I(u));}function W(e){return Math.round((e-t)/l)*l+t}function I(e){let u=e*(m-t)+t;return a$1(W(u),t,m)}function Y(e,u=1){let r=Math.max(u,l);g(e,b(a$2[e]+r,t,m,l));}function Z(e,u=1){let r=Math.max(u,l);g(e,b(a$2[e]-r,t,m,l));}return {values:a$2,defaultValues:n.defaultValue!==void 0?p:k,getThumbValue:e=>a$2[e],setThumbValue:g,setThumbPercent:Q,isThumbDragging:e=>E[e],setThumbDragging:K,focusedThumb:j,setFocusedThumb:q,getThumbPercent:e=>M(a$2[e]),getValuePercent:M,getThumbValueLabel:e=>v(a$2[e]),getFormattedValue:v,getThumbMinValue:y,getThumbMaxValue:L,getPercentValue:I,isThumbEditable:T,setThumbEditable:J,incrementThumb:Y,decrementThumb:Z,step:l,pageSize:_,orientation:U,isDisabled:b$1}}function C(n,b,t){return n[b]===t?n:[...n.slice(0,b),t,...n.slice(b+1)]}function P(n){if(n!=null)return Array.isArray(n)?n:[n]}function z(n,b,t){return m=>{t?.(typeof n=="number"||typeof b=="number"?m[0]:m);}}export{le as a};
@@ -0,0 +1,10 @@
1
+ import {a as a$1}from'./chunk-O7XK2WIX.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$2}from'./chunk-4QEH5CGK.mjs';import {XIcon,CheckmarkIcon,CircleFilledIcon,ErrorCircleIcon,WarningIcon}from'@baseline-ui/icons/16';import {themeVars}from'@baseline-ui/tokens';import h from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var x="_1w6k5xli";var y=a({defaultClassName:"_1w6k5xl1 _1yep5z6m1 _1yep5z6lz _1yep5z6g1 _1yep5z6h3",variantClassNames:{variant:{active:"_1w6k5xl2",warning:"_1w6k5xl3",error:"_1w6k5xl4",denied:"_1w6k5xl5",success:"_1w6k5xl6","active-tinted":"_1yep5z6184 _1yep5z611y _1yep5z6131","warning-tinted":"_1yep5z6184 _1yep5z611u _1yep5z612x","error-tinted":"_1yep5z6184 _1yep5z611m _1yep5z612p","denied-tinted":"_1yep5z6184 _1yep5z6127 _1yep5z6137","success-tinted":"_1yep5z6184 _1yep5z611q _1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),u=a({defaultClassName:"_1w6k5xlc",variantClassNames:{variant:{active:"_1yep5z610u",warning:"_1yep5z610q",error:"_1yep5z610i",denied:"_1yep5z610x",success:"_1yep5z610m"}},defaultVariants:{},compoundVariants:[]}),o="_1w6k5xlk",_="_1w6k5xlj";var {support:l,icon:f}=themeVars.color,D={warning:jsx(WarningIcon,{size:16,color:l.warning.strong}),error:jsx(ErrorCircleIcon,{size:16,color:l.error.strong}),active:jsx(a$1,{padding:"xs",display:"flex",alignItems:"center",children:jsx(CircleFilledIcon,{size:16,color:f.interactive.enabled,className:x})}),success:jsx(CheckmarkIcon,{size:16,color:l.success.strong}),denied:jsx(XIcon,{size:16,color:f.primary})},C=h.forwardRef(({className:w,style:z,variant:s="active",icon:c,title:n,description:m,renderTrailingElement:g,shouldTruncateTitle:r},k)=>{let d=u({variant:s.split("-")[0]});return jsxs(a$1,{padding:"lg",display:"flex",flexDirection:"row",gap:"md",width:"full",alignItems:"center",borderRadius:"sm",className:a$2(y({variant:s}),"BaselineUI-StatusCard",w),style:z,ref:k,children:[jsxs(a$1,{display:"flex",alignItems:"center",flexDirection:"row",gap:"md",flex:1,className:r?o:void 0,children:[jsx(a$1,{display:"flex",padding:"xs",alignItems:"center",flexShrink:0,className:"BaselineUI-StatusCard-Icon",children:c?jsx(c,{className:d,size:16}):D[s.split("-")[0]]}),jsxs(a$1,{display:"flex",flexDirection:"column",gap:"sm",className:r?o:void 0,children:[jsx(a$1,{typography:"label.md.medium",elementType:"h4",color:"text.primary",className:a$2("BaselineUI-StatusCard-Title",r&&_),children:r?jsx("span",{title:n,children:n}):n}),m?jsx(a$1,{typography:"label.sm.regular",elementType:"span",className:a$2(d,"BaselineUI-StatusCard-Description"),children:m}):null]})]}),g?.()]})});C.displayName="StatusCard";export{D as a,C as b};
File without changes
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-FXCHST4Z.mjs';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var l=a({defaultClassName:"vi3slum",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),u=a({defaultClassName:"vi3slu0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"vi3slu1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"vi3slu7 _1yep5z6127"},allowsRemoving:{true:"vi3slu8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"vi3slua"},isHovered:{true:"vi3slub"},size:{md:"vi3sluc",sm:"vi3slud"}},defaultVariants:{},compoundVariants:[[{allowsSelection:true,isHovered:true,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:true,isHovered:true,variant:"red"},"_1yep5z61np"],[{allowsSelection:true,isHovered:true,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:true,isHovered:true,variant:"green"},"_1yep5z61nt"],[{allowsSelection:true,isHovered:true,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:true,isSelected:true,isHovered:true},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:true},"_1yep5z61oa"],[{allowsRemoving:true,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:true,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),o="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",p=a({defaultClassName:"vi3sluu _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lp _1yep5z6ly _1yep5z6f5 z9nup8a",variantClassNames:{variant:{neutral:"vi3sluv",red:"vi3sluw",green:"vi3slux",blue:"vi3sluy","high-contrast":"vi3sluz"},isHovered:{true:"vi3slu10"}},defaultVariants:{},compoundVariants:[[{isHovered:true,variant:"neutral"},"vi3slu11"],[{isHovered:true,variant:"red"},"vi3slu12"],[{isHovered:true,variant:"blue"},"vi3slu13"],[{isHovered:true,variant:"green"},"vi3slu14"],[{isHovered:true,variant:"high-contrast"},"vi3slu15"]]}),n=a({defaultClassName:"vi3slue",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]});export{l as a,u as b,o as c,p as d,n as e};
File without changes
@@ -0,0 +1,10 @@
1
+ import {e}from'./chunk-AKES5B6C.mjs';import {useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function b(){return Object.prototype.hasOwnProperty.call(HTMLElement.prototype,"inert")}function p({ref:n,isDisabled:o}){useEffect(()=>{if(!n.current||o)return;let t=n.current;if(b())return t.setAttribute("inert","true"),()=>{t.removeAttribute("inert");};let i=new Map,u=t.hasAttribute("aria-hidden")?t.getAttribute("aria-hidden")==="true":null;t.setAttribute("aria-hidden","true");let s=()=>{if(!n.current)return;let r=e(n.current);for(let e of r)i.has(e)||(i.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1"));};s();let a=new MutationObserver(r=>{for(let e of r)if(e.type==="childList"){for(let c of e.removedNodes)c instanceof Element&&i.delete(c);s();}});return a.observe(n.current,{childList:true,subtree:true,attributes:false}),()=>{a.disconnect();for(let[r,e]of i.entries())r.isConnected&&(e===null?r.removeAttribute("tabindex"):r.setAttribute("tabindex",e));u===null?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",u?"true":"false");}},[n,o]);}export{p as a};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function r(n,i){if(!n)throw new Error(i||"Invariant failed")}export{r as a};
@@ -0,0 +1,10 @@
1
+ import {b as b$1,a as a$2}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {g,b,f,a as a$1,d}from'./chunk-AUOQSTS5.mjs';import {useRef,useCallback}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function y(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function W(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e});}function j(t){let e=useRef({isFocused:false,observer:null});return a(()=>{let s=e.current;return ()=>{s.observer&&(s.observer.disconnect(),s.observer=null);}},[]),useCallback(s=>{let r=g(s),u=b(r);if(r instanceof u.HTMLButtonElement||r instanceof u.HTMLInputElement||r instanceof u.HTMLTextAreaElement||r instanceof u.HTMLSelectElement){e.current.isFocused=true;let o=r,c=i=>{if(e.current.isFocused=false,o.disabled){let a=y(i);t?.(a);}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null);};o.addEventListener("focusout",c,{once:true}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){e.current.observer?.disconnect();let i=o===f(a$1(o))?null:f(a$1(o));o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:i}));}}),e.current.observer.observe(o,{attributes:true,attributeFilter:["disabled"]});}},[t])}var T=false;function k(t){for(;t&&!b$1(t,{skipVisibilityCheck:true});)t=t.parentElement;let e=b(t),s=f(e.document);if(!s||s===t)return;T=true;let r=false,u=n=>{(g(n)===s||r)&&n.stopImmediatePropagation();},o=n=>{(g(n)===s||r)&&(n.stopImmediatePropagation(),!t&&!r&&(r=true,a$2(s),E()));},c=n=>{(g(n)===t||r)&&n.stopImmediatePropagation();},i=n=>{(g(n)===t||r)&&(n.stopImmediatePropagation(),r||(r=true,a$2(s),E()));},a=e.document;e.addEventListener("blur",u,true),e.addEventListener("focusout",o,true),e.addEventListener("focusin",i,true),e.addEventListener("focus",c,true),a.addEventListener("blur",u,true),a.addEventListener("focusout",o,true),a.addEventListener("focusin",i,true),a.addEventListener("focus",c,true);let m=[];if(d()){let n=new Set;for(let v of [s,t])if(v){let p=v.getRootNode();p instanceof b(v).ShadowRoot&&n.add(p);}m=[...n];for(let v of m)v.addEventListener("blur",u,true),v.addEventListener("focusout",o,true),v.addEventListener("focusin",i,true),v.addEventListener("focus",c,true);}let E=()=>{cancelAnimationFrame(h),e.removeEventListener("blur",u,true),e.removeEventListener("focusout",o,true),e.removeEventListener("focusin",i,true),e.removeEventListener("focus",c,true),a.removeEventListener("blur",u,true),a.removeEventListener("focusout",o,true),a.removeEventListener("focusin",i,true),a.removeEventListener("focus",c,true);for(let n of m)n.removeEventListener("blur",u,true),n.removeEventListener("focusout",o,true),n.removeEventListener("focusin",i,true),n.removeEventListener("focus",c,true);T=false,r=false;},h=requestAnimationFrame(E);return E}export{y as a,W as b,j as c,T as d,k as e};
@@ -0,0 +1,10 @@
1
+ import {a as a$b}from'./chunk-5HXTXIE5.mjs';import {a as a$3}from'./chunk-MI7DCFP2.mjs';import {d,a as a$a,c as c$2,b as b$3}from'./chunk-ELXWR5TS.mjs';import {a as a$9}from'./chunk-ROHLZINC.mjs';import {a as a$6}from'./chunk-2WAKHFPS.mjs';import {a}from'./chunk-CGFLGZL4.mjs';import {b,c as c$3}from'./chunk-GX2IOGYR.mjs';import {b as b$2}from'./chunk-J3MJZQUJ.mjs';import {a as a$7}from'./chunk-GCZFXILF.mjs';import {b as b$1}from'./chunk-4ZJMZB5B.mjs';import {a as a$5}from'./chunk-2VY4FAOY.mjs';import {a as a$1}from'./chunk-K6X2BHPP.mjs';import {a as a$4}from'./chunk-BGMVPFYK.mjs';import {a as a$2}from'./chunk-3FYY26ED.mjs';import {c as c$1,b as b$4}from'./chunk-TZ4MVY4E.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a as a$8}from'./chunk-4QEH5CGK.mjs';import {UndoIcon,RedoIcon}from'@baseline-ui/icons/16';import {getStroke}from'perfect-freehand';import h,{useState,useCallback,useEffect,useMemo,useRef}from'react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function de({line:t,options:o}){let r=useRef([]),m=useMemo(()=>{let i=Math.ceil(t.length/P),d;for(let a=0;a<i;a++)if(!(!(a===i-1)&&!!r.current[a])){let C=t.slice(a*P-(a>0?1:0),a*P+P);d=a$b(getStroke(C.map(([k,g,l])=>({x:k,y:g,pressure:l})),o)),C.length>=(a>0?P+1:P)&&(r.current[a]=d);}return d},[t,o]);return [...r.current,m]}var P=180;var Xe={size:1,thinning:0,smoothing:0,streamline:0,easing:t=>t,start:{taper:0,easing:t=>t,cap:true},end:{taper:0,easing:t=>t,cap:true},simulatePressure:false},ce=h.forwardRef(({className:t,style:o,canvasClassName:r,canvasStyle:m,isBound:i=true,strokeWidth:d$1=2,strokeColor:a$b="#3A87FD",onChange:v,defaultValue:H,onChangeEnd:C,enableHistory:k=false,isInline:g=true,isDisabled:l,placeholder:E,clearLabel:R,undoLabel:he,redoLabel:ve,footerClassName:ge,canvasRef:Pe,value:N,footerStyle:Ce,"data-block-id":ke,"data-block-class":ye,"aria-label":Se="Drawing canvas",description:be="This is a canvas for drawing using a mouse or touch input.",...f},Fe)=>{let T=b(),De=h.useRef(null),[u,S]=h.useState(N||H||[]),U=h.useMemo(()=>({...Xe,...f}),[f]),[c$3,z]=h.useState(),V=c(),{labelProps:Ee,fieldProps:Re}=a({...f,"aria-label":Se,labelElementType:"span"}),{isFocusVisible:Me,focusProps:we}=a$1({within:true}),{hoverProps:Le,isHovered:Oe}=a$2({isDisabled:l}),{undo:I,redo:x,canRedo:K,canUndo:G,push:W}=a$3(u,{onAction:e=>{e&&(S(e),C?.(e));},isDisabled:!k}),{keyboardProps:He}=a$4({onKeyDown:e=>{e.key==="Backspace"?A():e.key==="z"&&(e.metaKey||e.ctrlKey)&&(e.shiftKey?K&&x():G&&I());}}),[Ne,_]=useState(false),Te=useCallback(e=>{let p=e.currentTarget.getBoundingClientRect();z(p),e.target.setPointerCapture(e.pointerId);let y=[e.clientX-p.x,e.clientY-p.y,e.pressure];S(s=>[...s,[y]]),_(true);},[]),Ue=useCallback(e=>{if(e.buttons!==1||!c$3)return;let y=ue(e.nativeEvent).map(s=>[i?a$5(s.clientX-c$3.left,0,c$3.width):s.clientX-c$3.left,i?a$5(s.clientY-c$3.top,0,c$3.height):s.clientY-c$3.top,s.pressure]);S(s=>{let M=[...s];return M[s.length-1]=[...M[s.length-1],...y],M});},[c$3,i]),ze=()=>{c$3&&(C?.(u),W(u),_(false),z(void 0));};useEffect(()=>{v?.(u);},[u,v]);let A=()=>{S([]),v?.([]),W([]);};return jsxs("div",{ref:b$4(De,Fe),className:a$8(b$3,"BaselineUI-FreehandCanvas",t),style:o,"aria-disabled":l,"data-block-id":ke,"data-block-class":ye,children:[f.label||k?jsxs("div",{className:d({isInline:g}),children:[f.label?jsx(a$6,{type:"label",size:"sm",...Ee,children:f.label}):jsx("span",{}),k?jsxs("div",{children:[jsx(a$7,{variant:"secondary",size:"sm",isDisabled:!G||l,icon:UndoIcon,onPress:I,"aria-label":he||T.formatMessage(me.undo)}),jsx(a$7,{variant:"secondary",size:"sm",isDisabled:!K||l,icon:RedoIcon,onPress:x,"aria-label":ve||T.formatMessage(me.redo)})]}):null]}):null,jsxs("div",{role:"application",...c$1(we,He,Le,Re),tabIndex:l?void 0:0,className:a$8(a$9({isInline:g,isHovered:Oe}),a$a({isFocusVisible:Me,isInline:g,isDisabled:!!l}),r),"aria-describedby":f["aria-describedby"]||V,style:m,ref:Pe,children:[jsx(b$1,{children:jsx("div",{id:V,children:be})}),jsx("svg",{width:m?.width||"100%",height:m?.height||"100%",onPointerDown:Te,onPointerMove:Ue,onPointerUp:ze,children:(N||u).map((e,p,y)=>p<y.length-1||!Ne?jsx(pe,{line:e,options:U,strokeColor:a$b,strokeWidth:d$1},p):jsx(fe,{line:e,options:U,strokeColor:a$b,strokeWidth:d$1},p))})]}),E||R?jsx("div",{style:Ce,className:a$8(c$2({isInline:g,isDisabled:l}),ge),children:(u.length||!E)&&R?jsx(b$2,{size:"sm",variant:"ghost",label:R,isDisabled:l,onPress:A}):jsx(b$2,{size:"sm",variant:"ghost",label:E,isDisabled:true})}):null]})});ce.displayName="FreehandCanvas";var pe=h.memo(({line:t,options:o,strokeColor:r,strokeWidth:m})=>{let i=useMemo(()=>a$b(getStroke(t.map(([d,a,v])=>({x:d,y:a,pressure:v})),o)),[t,o]);return jsx("path",{d:i,stroke:r,strokeWidth:m})});pe.displayName="Stroke";var fe=h.memo(({line:t,options:o,strokeColor:r,strokeWidth:m})=>{let i=de({line:t,options:o});return jsx(Fragment,{children:i.map((d,a)=>jsx("path",{d,stroke:r,strokeWidth:m},a))})});fe.displayName="SplitStroke";function ue(t){if(typeof t.getCoalescedEvents=="function"){let o=t.getCoalescedEvents();return o.length>0?o.flatMap(r=>ue(r)):[t]}return [t]}var me=c$3({undo:{defaultMessage:"Undo",id:"bui.freehandCanvas.undo"},redo:{defaultMessage:"Redo",id:"bui.freehandCanvas.redo"}});export{ce as a};
File without changes
@@ -0,0 +1,10 @@
1
+ import {t,d}from'./chunk-MRJFGHFW.mjs';import {a}from'./chunk-JDLUGVXG.mjs';import {b as b$1}from'./chunk-AUOQSTS5.mjs';import {useRef,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var y="react-aria-clear-focus",x="react-aria-focus";function L(e,t$1){let r=useRef(true),n=useRef(null),c=t(e);useEffect(()=>(r.current=true,()=>{r.current=false;}),[]),useEffect(()=>{let o=n.current;r.current?r.current=false:(!o||t$1.some((m,p)=>!Object.is(m,o[p])))&&c(),n.current=t$1;},t$1);}function I(e,t){let r=useRef(true),n=useRef(null);a(()=>(r.current=true,()=>{r.current=false;}),[]),a(()=>{r.current?r.current=false:(!n.current||t.some((c,o)=>!Object.is(c,n[o])))&&e(),n.current=t;},t);}function R(e){return d()?e.metaKey:e.ctrlKey}var b=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S(e){let t=b$1(e);return e instanceof t.HTMLInputElement&&!b.has(e.type)||e instanceof t.HTMLTextAreaElement||e instanceof t.HTMLElement&&e.isContentEditable}export{y as a,x as b,L as c,I as d,R as e,S as f};
File without changes
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-RXSYDMT6.mjs';import {useCallback}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function d(s,t){let{onScroll:o,isDisabled:a$1}=s,i=useCallback(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),o&&o({deltaX:e.deltaX,deltaY:e.deltaY}));},[o]);a(t,"wheel",a$1?void 0:i);}export{d as a};
@@ -0,0 +1,10 @@
1
+ import {f}from'./chunk-6IRWW75G.mjs';import {g}from'./chunk-MRJFGHFW.mjs';import {g as g$1,f as f$1,a}from'./chunk-AUOQSTS5.mjs';import {b}from'./chunk-RMUV6NJJ.mjs';import {useState,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ var e=typeof document<"u"&&window.visualViewport;function d(){let x=b(),[h,E]=useState(()=>x?{width:0,height:0}:u());return useEffect(()=>{let m=t=>{E(r=>t.width===r.width&&t.height===r.height?r:t);},n=()=>{e&&e.scale>1||m(u());},l,a$1=t=>{e&&e.scale>1||f(g$1(t))&&(l=requestAnimationFrame(()=>{let r=f$1(a(g$1(t)));(!r||!f(r))&&m({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});}));};return m(u()),g()&&window.addEventListener("blur",a$1,true),e?e.addEventListener("resize",n):window.addEventListener("resize",n),()=>{cancelAnimationFrame(l),g()&&window.removeEventListener("blur",a$1,true),e?e.removeEventListener("resize",n):window.removeEventListener("resize",n);}},[]),h}function u(){return {width:e?Math.min(e.width*e.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:e?e.height*e.scale:document.documentElement.clientHeight}}export{d as a};
@@ -0,0 +1,10 @@
1
+ import {useRef,useCallback,useEffect}from'react';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function b(){let o=useRef(new Map),v=useCallback((e,n,t,r)=>{let s=r?.once?(...d)=>{o.current.delete(t),t(...d);}:t;o.current.set(t,{type:n,eventTarget:e,fn:s,options:r}),e.addEventListener(n,s,r);},[]),i=useCallback((e,n,t,r)=>{let s=o.current.get(t)?.fn||t;e.removeEventListener(n,s,r),o.current.delete(t);},[]),l=useCallback(()=>{o.current.forEach((e,n)=>{i(e.eventTarget,e.type,n,e.options);});},[i]);return useEffect(()=>l,[l]),{addGlobalListener:v,removeGlobalListener:i,removeAllGlobalListeners:l}}export{b as a};
@@ -0,0 +1,10 @@
1
+ import {a}from'./chunk-NGZRN4SF.mjs';import m,{useCallback}from'react';import {jsx}from'react/jsx-runtime';/**
2
+ * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
+ *
4
+ * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
+ * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
+ * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
+ * This notice may not be removed from this file.
8
+ *
9
+ */
10
+ function y(t){return !!t&&"label"in t&&!!t.label}function c(t){return !!t&&"children"in t&&!!t.children&&"title"in t}function p(t){return null}p.getCollectionNode=function*(e){let{children:o,title:a,items:s}=e;yield {type:"section",props:e,hasChildNodes:true,rendered:a,"aria-label":e["aria-label"],*childNodes(){if(typeof o=="function"){if(!s)throw new Error("props.children was a function but props.items is missing");for(let i of s)yield {type:"item",value:i,renderer:o};}else {let i=[];m.Children.forEach(o,d=>{i.push({type:"item",element:d});}),yield*i;}}};};var n=p;function u(t){return c(t)?jsx(n,{items:t.children,title:t.title,"aria-label":t.title,children:e=>jsx(a,{textValue:e.label,children:e.label},e.id)},t.id):jsx(a,{textValue:t.label,children:t.label},t.id)}function O(){return useCallback(t=>u(t),[])}export{y as a,c as b,O as c};