@webority/ui-react 0.149.0 → 0.150.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 (661) hide show
  1. package/dist/canvas-kit/kit.js +699 -161657
  2. package/dist/canvas-kit/manifest.json +182 -94
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppAccordion.js +1 -1
  5. package/dist/components/AppAccountSwitcher.js +1 -1
  6. package/dist/components/AppActionIcon.js +1 -1
  7. package/dist/components/AppAlert.js +1 -1
  8. package/dist/components/AppAsyncBlock.js +1 -1
  9. package/dist/components/AppAuthLayout.js +1 -1
  10. package/dist/components/AppAvatar.js +1 -1
  11. package/dist/components/AppAvatarGroup.js +1 -1
  12. package/dist/components/AppBadge.js +1 -1
  13. package/dist/components/AppBanner.js +1 -1
  14. package/dist/components/AppBreadcrumbs.js +1 -1
  15. package/dist/components/AppButton.js +1 -1
  16. package/dist/components/AppCalendar.js +1 -1
  17. package/dist/components/AppCard.js +1 -1
  18. package/dist/components/AppCarousel.js +1 -1
  19. package/dist/components/AppChart.js +1 -1
  20. package/dist/components/AppChartCard.js +1 -1
  21. package/dist/components/AppCheckbox.js +1 -1
  22. package/dist/components/AppChipGroup.js +1 -1
  23. package/dist/components/AppChoiceCard.js +1 -1
  24. package/dist/components/AppChoiceChip.js +1 -1
  25. package/dist/components/AppCodeBlock.js +1 -1
  26. package/dist/components/AppCommandPalette.js +1 -1
  27. package/dist/components/AppCommentThread.js +1 -1
  28. package/dist/components/AppCompareTable.js +1 -1
  29. package/dist/components/AppConfirmDialog.js +1 -1
  30. package/dist/components/AppConsentBanner.js +1 -1
  31. package/dist/components/AppContextMenu.js +1 -1
  32. package/dist/components/AppCopyButton.js +1 -1
  33. package/dist/components/AppDashboardCell.js +1 -1
  34. package/dist/components/AppDataTable.js +1 -1
  35. package/dist/components/AppDatePicker.js +1 -1
  36. package/dist/components/AppDateRangePicker.js +1 -1
  37. package/dist/components/AppDescriptions.js +1 -1
  38. package/dist/components/AppDrawer.js +1 -1
  39. package/dist/components/AppDropZone.js +1 -1
  40. package/dist/components/AppDropdown.js +1 -1
  41. package/dist/components/AppDueDate.js +1 -1
  42. package/dist/components/AppEmptyState.js +1 -1
  43. package/dist/components/AppFileAttachment.js +1 -1
  44. package/dist/components/AppFilePicker.js +1 -1
  45. package/dist/components/AppFileTiles.js +1 -1
  46. package/dist/components/AppFileViewer.js +1 -1
  47. package/dist/components/AppFilterBar.js +1 -1
  48. package/dist/components/AppFloatingDock.js +1 -1
  49. package/dist/components/AppHoverCard.js +1 -1
  50. package/dist/components/AppIcon.js +1 -1
  51. package/dist/components/AppImagePicker.js +1 -1
  52. package/dist/components/AppInlineEdit.js +1 -1
  53. package/dist/components/AppInput.js +1 -1
  54. package/dist/components/AppKanban.js +1 -1
  55. package/dist/components/AppKbd.js +1 -1
  56. package/dist/components/AppKpiTile.js +1 -1
  57. package/dist/components/AppLeadPopup.js +1 -1
  58. package/dist/components/AppLightbox.js +1 -1
  59. package/dist/components/AppLink.js +1 -1
  60. package/dist/components/AppMarkdown.js +1 -1
  61. package/dist/components/AppMentionInput.js +1 -1
  62. package/dist/components/AppMetricStrip.js +1 -1
  63. package/dist/components/AppModal.js +1 -1
  64. package/dist/components/AppNavList.js +1 -1
  65. package/dist/components/AppNavigationMenu.js +1 -1
  66. package/dist/components/AppNotificationCenter.js +1 -1
  67. package/dist/components/AppNumberInput.js +1 -1
  68. package/dist/components/AppOnboardingChecklist.js +1 -1
  69. package/dist/components/AppOrgTree.js +1 -1
  70. package/dist/components/AppOtpInput.js +1 -1
  71. package/dist/components/AppPageHeader.js +1 -1
  72. package/dist/components/AppPhoneNumberInput.js +1 -1
  73. package/dist/components/AppPopover.js +1 -1
  74. package/dist/components/AppQrCode.js +1 -1
  75. package/dist/components/AppRadio.js +1 -1
  76. package/dist/components/AppRating.js +1 -1
  77. package/dist/components/AppRecordPager.js +1 -1
  78. package/dist/components/AppRelativeTime.js +1 -1
  79. package/dist/components/AppRepeater.js +1 -1
  80. package/dist/components/AppResizable.js +1 -1
  81. package/dist/components/AppResourceCard.js +1 -1
  82. package/dist/components/AppResult.js +1 -1
  83. package/dist/components/AppRichText.js +1 -1
  84. package/dist/components/AppRollingNumber.js +1 -1
  85. package/dist/components/AppSearch.js +1 -1
  86. package/dist/components/AppSectionLeadCapture.js +1 -1
  87. package/dist/components/AppSectionLogos.js +1 -1
  88. package/dist/components/AppSegmented.js +1 -1
  89. package/dist/components/AppSelect.js +1 -1
  90. package/dist/components/AppSeoHead.js +1 -1
  91. package/dist/components/AppShell.js +1 -1
  92. package/dist/components/AppShortcutLegend.js +1 -1
  93. package/dist/components/AppShowMore.js +1 -1
  94. package/dist/components/AppSkeleton.js +1 -1
  95. package/dist/components/AppSkeletonLines.js +1 -1
  96. package/dist/components/AppSlider.js +1 -1
  97. package/dist/components/AppSortableList.js +1 -1
  98. package/dist/components/AppSparkline.js +1 -1
  99. package/dist/components/AppSplash.js +1 -1
  100. package/dist/components/AppSplitView.js +1 -1
  101. package/dist/components/AppStatusBadge.js +1 -1
  102. package/dist/components/AppStepper.js +1 -1
  103. package/dist/components/AppSwitch.js +1 -1
  104. package/dist/components/AppTablePagination.js +1 -1
  105. package/dist/components/AppTabs.js +1 -1
  106. package/dist/components/AppTextarea.js +1 -1
  107. package/dist/components/AppThemeToggle.js +1 -1
  108. package/dist/components/AppTimePicker.js +1 -1
  109. package/dist/components/AppTimeline.js +1 -1
  110. package/dist/components/AppToast.js +1 -1
  111. package/dist/components/AppTooltip.js +1 -1
  112. package/dist/components/AppTour.js +1 -1
  113. package/dist/components/AppTreeView.js +1 -1
  114. package/dist/components/AppTruncate.js +1 -1
  115. package/dist/components/AppWhatsNew.js +1 -1
  116. package/dist/components/AppWizard.js +1 -1
  117. package/dist/components/AppWorkspaceSwitcher.js +1 -1
  118. package/dist/components/ModalIcons.js +1 -1
  119. package/dist/components/assertValidValue.js +1 -1
  120. package/dist/components/iconCatalogFull/bold/a.g.js +1 -1
  121. package/dist/components/iconCatalogFull/bold/b.g.js +1 -1
  122. package/dist/components/iconCatalogFull/bold/c.g.js +1 -1
  123. package/dist/components/iconCatalogFull/bold/d.g.js +1 -1
  124. package/dist/components/iconCatalogFull/bold/e.g.js +1 -1
  125. package/dist/components/iconCatalogFull/bold/f.g.js +1 -1
  126. package/dist/components/iconCatalogFull/bold/g.g.js +1 -1
  127. package/dist/components/iconCatalogFull/bold/h.g.js +1 -1
  128. package/dist/components/iconCatalogFull/bold/i.g.js +1 -1
  129. package/dist/components/iconCatalogFull/bold/j.g.js +1 -1
  130. package/dist/components/iconCatalogFull/bold/k.g.js +1 -1
  131. package/dist/components/iconCatalogFull/bold/l.g.js +1 -1
  132. package/dist/components/iconCatalogFull/bold/m.g.js +1 -1
  133. package/dist/components/iconCatalogFull/bold/n.g.js +1 -1
  134. package/dist/components/iconCatalogFull/bold/o.g.js +1 -1
  135. package/dist/components/iconCatalogFull/bold/p.g.js +1 -1
  136. package/dist/components/iconCatalogFull/bold/q.g.js +1 -1
  137. package/dist/components/iconCatalogFull/bold/r.g.js +1 -1
  138. package/dist/components/iconCatalogFull/bold/s.g.js +1 -1
  139. package/dist/components/iconCatalogFull/bold/t.g.js +1 -1
  140. package/dist/components/iconCatalogFull/bold/u.g.js +1 -1
  141. package/dist/components/iconCatalogFull/bold/v.g.js +1 -1
  142. package/dist/components/iconCatalogFull/bold/w.g.js +1 -1
  143. package/dist/components/iconCatalogFull/bold/x.g.js +1 -1
  144. package/dist/components/iconCatalogFull/bold/y.g.js +1 -1
  145. package/dist/components/iconCatalogFull/bold/z.g.js +1 -1
  146. package/dist/components/iconCatalogFull/broken/a.g.js +1 -1
  147. package/dist/components/iconCatalogFull/broken/b.g.js +1 -1
  148. package/dist/components/iconCatalogFull/broken/c.g.js +1 -1
  149. package/dist/components/iconCatalogFull/broken/d.g.js +1 -1
  150. package/dist/components/iconCatalogFull/broken/e.g.js +1 -1
  151. package/dist/components/iconCatalogFull/broken/f.g.js +1 -1
  152. package/dist/components/iconCatalogFull/broken/g.g.js +1 -1
  153. package/dist/components/iconCatalogFull/broken/h.g.js +1 -1
  154. package/dist/components/iconCatalogFull/broken/i.g.js +1 -1
  155. package/dist/components/iconCatalogFull/broken/j.g.js +1 -1
  156. package/dist/components/iconCatalogFull/broken/k.g.js +1 -1
  157. package/dist/components/iconCatalogFull/broken/l.g.js +1 -1
  158. package/dist/components/iconCatalogFull/broken/m.g.js +1 -1
  159. package/dist/components/iconCatalogFull/broken/n.g.js +1 -1
  160. package/dist/components/iconCatalogFull/broken/o.g.js +1 -1
  161. package/dist/components/iconCatalogFull/broken/p.g.js +1 -1
  162. package/dist/components/iconCatalogFull/broken/q.g.js +1 -1
  163. package/dist/components/iconCatalogFull/broken/r.g.js +1 -1
  164. package/dist/components/iconCatalogFull/broken/s.g.js +1 -1
  165. package/dist/components/iconCatalogFull/broken/t.g.js +1 -1
  166. package/dist/components/iconCatalogFull/broken/u.g.js +1 -1
  167. package/dist/components/iconCatalogFull/broken/v.g.js +1 -1
  168. package/dist/components/iconCatalogFull/broken/w.g.js +1 -1
  169. package/dist/components/iconCatalogFull/broken/x.g.js +1 -1
  170. package/dist/components/iconCatalogFull/broken/y.g.js +1 -1
  171. package/dist/components/iconCatalogFull/broken/z.g.js +1 -1
  172. package/dist/components/iconCatalogFull/bulk/a.g.js +1 -1
  173. package/dist/components/iconCatalogFull/bulk/b.g.js +1 -1
  174. package/dist/components/iconCatalogFull/bulk/c.g.js +1 -1
  175. package/dist/components/iconCatalogFull/bulk/d.g.js +1 -1
  176. package/dist/components/iconCatalogFull/bulk/e.g.js +1 -1
  177. package/dist/components/iconCatalogFull/bulk/f.g.js +1 -1
  178. package/dist/components/iconCatalogFull/bulk/g.g.js +1 -1
  179. package/dist/components/iconCatalogFull/bulk/h.g.js +1 -1
  180. package/dist/components/iconCatalogFull/bulk/i.g.js +1 -1
  181. package/dist/components/iconCatalogFull/bulk/j.g.js +1 -1
  182. package/dist/components/iconCatalogFull/bulk/k.g.js +1 -1
  183. package/dist/components/iconCatalogFull/bulk/l.g.js +1 -1
  184. package/dist/components/iconCatalogFull/bulk/m.g.js +1 -1
  185. package/dist/components/iconCatalogFull/bulk/n.g.js +1 -1
  186. package/dist/components/iconCatalogFull/bulk/o.g.js +1 -1
  187. package/dist/components/iconCatalogFull/bulk/p.g.js +1 -1
  188. package/dist/components/iconCatalogFull/bulk/q.g.js +1 -1
  189. package/dist/components/iconCatalogFull/bulk/r.g.js +1 -1
  190. package/dist/components/iconCatalogFull/bulk/s.g.js +1 -1
  191. package/dist/components/iconCatalogFull/bulk/t.g.js +1 -1
  192. package/dist/components/iconCatalogFull/bulk/u.g.js +1 -1
  193. package/dist/components/iconCatalogFull/bulk/v.g.js +1 -1
  194. package/dist/components/iconCatalogFull/bulk/w.g.js +1 -1
  195. package/dist/components/iconCatalogFull/bulk/x.g.js +1 -1
  196. package/dist/components/iconCatalogFull/bulk/y.g.js +1 -1
  197. package/dist/components/iconCatalogFull/bulk/z.g.js +1 -1
  198. package/dist/components/iconCatalogFull/linear/a.g.js +1 -1
  199. package/dist/components/iconCatalogFull/linear/b.g.js +1 -1
  200. package/dist/components/iconCatalogFull/linear/c.g.js +1 -1
  201. package/dist/components/iconCatalogFull/linear/d.g.js +1 -1
  202. package/dist/components/iconCatalogFull/linear/e.g.js +1 -1
  203. package/dist/components/iconCatalogFull/linear/f.g.js +1 -1
  204. package/dist/components/iconCatalogFull/linear/g.g.js +1 -1
  205. package/dist/components/iconCatalogFull/linear/h.g.js +1 -1
  206. package/dist/components/iconCatalogFull/linear/i.g.js +1 -1
  207. package/dist/components/iconCatalogFull/linear/j.g.js +1 -1
  208. package/dist/components/iconCatalogFull/linear/k.g.js +1 -1
  209. package/dist/components/iconCatalogFull/linear/l.g.js +1 -1
  210. package/dist/components/iconCatalogFull/linear/m.g.js +1 -1
  211. package/dist/components/iconCatalogFull/linear/n.g.js +1 -1
  212. package/dist/components/iconCatalogFull/linear/o.g.js +1 -1
  213. package/dist/components/iconCatalogFull/linear/p.g.js +1 -1
  214. package/dist/components/iconCatalogFull/linear/q.g.js +1 -1
  215. package/dist/components/iconCatalogFull/linear/r.g.js +1 -1
  216. package/dist/components/iconCatalogFull/linear/s.g.js +1 -1
  217. package/dist/components/iconCatalogFull/linear/t.g.js +1 -1
  218. package/dist/components/iconCatalogFull/linear/u.g.js +1 -1
  219. package/dist/components/iconCatalogFull/linear/v.g.js +1 -1
  220. package/dist/components/iconCatalogFull/linear/w.g.js +1 -1
  221. package/dist/components/iconCatalogFull/linear/x.g.js +1 -1
  222. package/dist/components/iconCatalogFull/linear/y.g.js +1 -1
  223. package/dist/components/iconCatalogFull/linear/z.g.js +1 -1
  224. package/dist/components/iconCatalogFull/outline/a.g.js +1 -1
  225. package/dist/components/iconCatalogFull/outline/b.g.js +1 -1
  226. package/dist/components/iconCatalogFull/outline/c.g.js +1 -1
  227. package/dist/components/iconCatalogFull/outline/d.g.js +1 -1
  228. package/dist/components/iconCatalogFull/outline/e.g.js +1 -1
  229. package/dist/components/iconCatalogFull/outline/f.g.js +1 -1
  230. package/dist/components/iconCatalogFull/outline/g.g.js +1 -1
  231. package/dist/components/iconCatalogFull/outline/h.g.js +1 -1
  232. package/dist/components/iconCatalogFull/outline/i.g.js +1 -1
  233. package/dist/components/iconCatalogFull/outline/j.g.js +1 -1
  234. package/dist/components/iconCatalogFull/outline/k.g.js +1 -1
  235. package/dist/components/iconCatalogFull/outline/l.g.js +1 -1
  236. package/dist/components/iconCatalogFull/outline/m.g.js +1 -1
  237. package/dist/components/iconCatalogFull/outline/n.g.js +1 -1
  238. package/dist/components/iconCatalogFull/outline/o.g.js +1 -1
  239. package/dist/components/iconCatalogFull/outline/p.g.js +1 -1
  240. package/dist/components/iconCatalogFull/outline/q.g.js +1 -1
  241. package/dist/components/iconCatalogFull/outline/r.g.js +1 -1
  242. package/dist/components/iconCatalogFull/outline/s.g.js +1 -1
  243. package/dist/components/iconCatalogFull/outline/t.g.js +1 -1
  244. package/dist/components/iconCatalogFull/outline/u.g.js +1 -1
  245. package/dist/components/iconCatalogFull/outline/v.g.js +1 -1
  246. package/dist/components/iconCatalogFull/outline/w.g.js +1 -1
  247. package/dist/components/iconCatalogFull/outline/x.g.js +1 -1
  248. package/dist/components/iconCatalogFull/outline/y.g.js +1 -1
  249. package/dist/components/iconCatalogFull/outline/z.g.js +1 -1
  250. package/dist/components/iconCatalogFull/twotone/a.g.js +1 -1
  251. package/dist/components/iconCatalogFull/twotone/b.g.js +1 -1
  252. package/dist/components/iconCatalogFull/twotone/c.g.js +1 -1
  253. package/dist/components/iconCatalogFull/twotone/d.g.js +1 -1
  254. package/dist/components/iconCatalogFull/twotone/e.g.js +1 -1
  255. package/dist/components/iconCatalogFull/twotone/f.g.js +1 -1
  256. package/dist/components/iconCatalogFull/twotone/g.g.js +1 -1
  257. package/dist/components/iconCatalogFull/twotone/h.g.js +1 -1
  258. package/dist/components/iconCatalogFull/twotone/i.g.js +1 -1
  259. package/dist/components/iconCatalogFull/twotone/j.g.js +1 -1
  260. package/dist/components/iconCatalogFull/twotone/k.g.js +1 -1
  261. package/dist/components/iconCatalogFull/twotone/l.g.js +1 -1
  262. package/dist/components/iconCatalogFull/twotone/m.g.js +1 -1
  263. package/dist/components/iconCatalogFull/twotone/n.g.js +1 -1
  264. package/dist/components/iconCatalogFull/twotone/o.g.js +1 -1
  265. package/dist/components/iconCatalogFull/twotone/p.g.js +1 -1
  266. package/dist/components/iconCatalogFull/twotone/q.g.js +1 -1
  267. package/dist/components/iconCatalogFull/twotone/r.g.js +1 -1
  268. package/dist/components/iconCatalogFull/twotone/s.g.js +1 -1
  269. package/dist/components/iconCatalogFull/twotone/t.g.js +1 -1
  270. package/dist/components/iconCatalogFull/twotone/u.g.js +1 -1
  271. package/dist/components/iconCatalogFull/twotone/v.g.js +1 -1
  272. package/dist/components/iconCatalogFull/twotone/w.g.js +1 -1
  273. package/dist/components/iconCatalogFull/twotone/x.g.js +1 -1
  274. package/dist/components/iconCatalogFull/twotone/y.g.js +1 -1
  275. package/dist/components/iconCatalogFull/twotone/z.g.js +1 -1
  276. package/dist/components/iconGlyphs.g.js +1 -1
  277. package/dist/components/iconVariants.g.js +1 -1
  278. package/dist/components/textOf.js +1 -0
  279. package/dist/components/toastStore.js +1 -1
  280. package/dist/components/useNodeLabels.js +1 -1
  281. package/dist/components/useWuiControl.js +1 -1
  282. package/dist/guidance.json +16 -13
  283. package/dist/lib/CheckField.js +1 -1
  284. package/dist/lib/FileItemRow.js +1 -1
  285. package/dist/lib/FocusPanel.js +1 -1
  286. package/dist/lib/TargetLink.js +1 -0
  287. package/dist/lib/buttonClass.js +1 -1
  288. package/dist/lib/emptyIllustration.js +1 -1
  289. package/dist/lib/fileItem.js +1 -1
  290. package/dist/lib/flagStyles.js +1 -1
  291. package/dist/lib/initials.js +1 -1
  292. package/dist/lib/linkTarget.js +1 -1
  293. package/dist/lib/pageScrollLock.js +1 -1
  294. package/dist/lib/qrCode.js +1 -1
  295. package/dist/lib/sectionShell.js +1 -1
  296. package/dist/lib/svgNodes.js +1 -0
  297. package/dist/lib/useElementEntry.js +1 -0
  298. package/dist/lib/useFileDrop.js +1 -1
  299. package/dist/lib/useTableView.js +1 -1
  300. package/dist/lib/wuiMarker.js +1 -1
  301. package/dist/markdown-core/dist/parse.js +3 -3
  302. package/dist/types/components/AppAccordion.d.ts +31 -34
  303. package/dist/types/components/AppAccountSwitcher.d.ts +29 -30
  304. package/dist/types/components/AppActionIcon.d.ts +39 -57
  305. package/dist/types/components/AppAlert.d.ts +35 -50
  306. package/dist/types/components/AppAsyncBlock.d.ts +23 -46
  307. package/dist/types/components/AppAuthLayout.d.ts +9 -22
  308. package/dist/types/components/AppAvatar.d.ts +26 -43
  309. package/dist/types/components/AppAvatarGroup.d.ts +11 -16
  310. package/dist/types/components/AppBadge.d.ts +13 -19
  311. package/dist/types/components/AppBanner.d.ts +18 -21
  312. package/dist/types/components/AppBreadcrumbs.d.ts +24 -20
  313. package/dist/types/components/AppButton.d.ts +65 -55
  314. package/dist/types/components/AppButtonGroup.d.ts +24 -22
  315. package/dist/types/components/AppCalendar.d.ts +35 -31
  316. package/dist/types/components/AppCard.d.ts +47 -67
  317. package/dist/types/components/AppCarousel.d.ts +35 -51
  318. package/dist/types/components/AppCell.d.ts +22 -21
  319. package/dist/types/components/AppChart.d.ts +93 -54
  320. package/dist/types/components/AppChartCard.d.ts +46 -58
  321. package/dist/types/components/AppCheckbox.d.ts +33 -18
  322. package/dist/types/components/AppChip.d.ts +32 -43
  323. package/dist/types/components/AppChipGroup.d.ts +17 -22
  324. package/dist/types/components/AppChoiceCard.d.ts +30 -54
  325. package/dist/types/components/AppChoiceChip.d.ts +42 -38
  326. package/dist/types/components/AppCodeBlock.d.ts +29 -28
  327. package/dist/types/components/AppColorField.d.ts +59 -57
  328. package/dist/types/components/AppColumnMenu.d.ts +21 -19
  329. package/dist/types/components/AppCommandPalette.d.ts +97 -102
  330. package/dist/types/components/AppCommentThread.d.ts +106 -181
  331. package/dist/types/components/AppCompareTable.d.ts +52 -57
  332. package/dist/types/components/AppConfirmDialog.d.ts +31 -46
  333. package/dist/types/components/AppConfirmProvider.d.ts +18 -21
  334. package/dist/types/components/AppConsentBanner.d.ts +43 -54
  335. package/dist/types/components/AppContextMenu.d.ts +63 -51
  336. package/dist/types/components/AppCopyButton.d.ts +26 -24
  337. package/dist/types/components/AppCountryFlag.d.ts +10 -8
  338. package/dist/types/components/AppDashboardCell.d.ts +14 -12
  339. package/dist/types/components/AppDashboardGrid.d.ts +9 -7
  340. package/dist/types/components/AppDataTable.d.ts +147 -144
  341. package/dist/types/components/AppDatePicker.d.ts +39 -28
  342. package/dist/types/components/AppDateRangePicker.d.ts +53 -40
  343. package/dist/types/components/AppDescriptions.d.ts +43 -38
  344. package/dist/types/components/AppDetailPane.d.ts +14 -19
  345. package/dist/types/components/AppDrawer.d.ts +46 -74
  346. package/dist/types/components/AppDropZone.d.ts +43 -47
  347. package/dist/types/components/AppDropdown.d.ts +59 -72
  348. package/dist/types/components/AppDueDate.d.ts +25 -39
  349. package/dist/types/components/AppEmptyState.d.ts +26 -36
  350. package/dist/types/components/AppErrorBoundary.d.ts +29 -29
  351. package/dist/types/components/AppErrorSummary.d.ts +27 -24
  352. package/dist/types/components/AppFileAttachment.d.ts +87 -70
  353. package/dist/types/components/AppFilePicker.d.ts +109 -95
  354. package/dist/types/components/AppFileTiles.d.ts +26 -23
  355. package/dist/types/components/AppFileViewer.d.ts +27 -21
  356. package/dist/types/components/AppFilterBar.d.ts +87 -84
  357. package/dist/types/components/AppFloatingButton.d.ts +37 -35
  358. package/dist/types/components/AppFloatingDock.d.ts +47 -41
  359. package/dist/types/components/AppFormActions.d.ts +21 -19
  360. package/dist/types/components/AppFormRow.d.ts +16 -19
  361. package/dist/types/components/AppFormSection.d.ts +24 -34
  362. package/dist/types/components/AppHoverCard.d.ts +28 -35
  363. package/dist/types/components/AppIcon.d.ts +29 -38
  364. package/dist/types/components/AppImagePicker.d.ts +54 -99
  365. package/dist/types/components/AppInfoTip.d.ts +17 -21
  366. package/dist/types/components/AppInlineEdit.d.ts +46 -51
  367. package/dist/types/components/AppInput.d.ts +82 -61
  368. package/dist/types/components/AppInputGroup.d.ts +22 -29
  369. package/dist/types/components/AppKanban.d.ts +110 -118
  370. package/dist/types/components/AppKbd.d.ts +12 -11
  371. package/dist/types/components/AppKpiTile.d.ts +45 -59
  372. package/dist/types/components/AppLeadPopup.d.ts +81 -38
  373. package/dist/types/components/AppLightbox.d.ts +44 -41
  374. package/dist/types/components/AppLink.d.ts +45 -42
  375. package/dist/types/components/AppMarkdown.d.ts +30 -37
  376. package/dist/types/components/AppMentionInput.d.ts +52 -40
  377. package/dist/types/components/AppMeter.d.ts +30 -33
  378. package/dist/types/components/AppMetricStrip.d.ts +29 -25
  379. package/dist/types/components/AppModal.d.ts +42 -51
  380. package/dist/types/components/AppNavList.d.ts +28 -27
  381. package/dist/types/components/AppNavigationMenu.d.ts +36 -33
  382. package/dist/types/components/AppNotificationCenter.d.ts +59 -92
  383. package/dist/types/components/AppNumberInput.d.ts +52 -30
  384. package/dist/types/components/AppOnboardingChecklist.d.ts +58 -48
  385. package/dist/types/components/AppOrgTree.d.ts +59 -29
  386. package/dist/types/components/AppOtpInput.d.ts +42 -25
  387. package/dist/types/components/AppPageHeader.d.ts +44 -66
  388. package/dist/types/components/AppPhoneNumberInput.d.ts +29 -27
  389. package/dist/types/components/AppPopover.d.ts +48 -37
  390. package/dist/types/components/AppPricingCard.d.ts +28 -37
  391. package/dist/types/components/AppProgress.d.ts +21 -29
  392. package/dist/types/components/AppQrCode.d.ts +19 -24
  393. package/dist/types/components/AppRadio.d.ts +24 -18
  394. package/dist/types/components/AppRadioGroup.d.ts +38 -61
  395. package/dist/types/components/AppRating.d.ts +38 -62
  396. package/dist/types/components/AppRecordPager.d.ts +28 -37
  397. package/dist/types/components/AppRelativeTime.d.ts +13 -16
  398. package/dist/types/components/AppRepeater.d.ts +41 -49
  399. package/dist/types/components/AppRequiredMark.d.ts +4 -4
  400. package/dist/types/components/AppResizable.d.ts +16 -17
  401. package/dist/types/components/AppResizableHandle.d.ts +5 -12
  402. package/dist/types/components/AppResizablePanel.d.ts +7 -20
  403. package/dist/types/components/AppResourceCard.d.ts +9 -21
  404. package/dist/types/components/AppResult.d.ts +23 -31
  405. package/dist/types/components/AppRichText.d.ts +46 -21
  406. package/dist/types/components/AppRollingNumber.d.ts +18 -25
  407. package/dist/types/components/AppRouteError.d.ts +32 -50
  408. package/dist/types/components/AppRowSwitch.d.ts +4 -9
  409. package/dist/types/components/AppScoreScale.d.ts +44 -42
  410. package/dist/types/components/AppScrollbar.d.ts +11 -16
  411. package/dist/types/components/AppSearch.d.ts +39 -37
  412. package/dist/types/components/AppSectionCallToAction.d.ts +28 -24
  413. package/dist/types/components/AppSectionFaq.d.ts +34 -32
  414. package/dist/types/components/AppSectionFeatures.d.ts +21 -30
  415. package/dist/types/components/AppSectionHero.d.ts +16 -24
  416. package/dist/types/components/AppSectionLeadCapture.d.ts +33 -51
  417. package/dist/types/components/AppSectionLogos.d.ts +25 -30
  418. package/dist/types/components/AppSectionPricing.d.ts +15 -20
  419. package/dist/types/components/AppSectionTestimonials.d.ts +26 -32
  420. package/dist/types/components/AppSegmented.d.ts +40 -55
  421. package/dist/types/components/AppSelect.d.ts +179 -116
  422. package/dist/types/components/AppSeoHead.d.ts +15 -21
  423. package/dist/types/components/AppShell.d.ts +206 -334
  424. package/dist/types/components/AppShortcutLegend.d.ts +32 -39
  425. package/dist/types/components/AppShowMore.d.ts +22 -29
  426. package/dist/types/components/AppSkeleton.d.ts +17 -26
  427. package/dist/types/components/AppSkeletonLines.d.ts +12 -16
  428. package/dist/types/components/AppSlider.d.ts +74 -48
  429. package/dist/types/components/AppSortableList.d.ts +47 -21
  430. package/dist/types/components/AppSparkline.d.ts +34 -33
  431. package/dist/types/components/AppSpinner.d.ts +18 -17
  432. package/dist/types/components/AppSplash.d.ts +24 -32
  433. package/dist/types/components/AppSplitButton.d.ts +41 -53
  434. package/dist/types/components/AppSplitView.d.ts +75 -97
  435. package/dist/types/components/AppStatusBadge.d.ts +19 -19
  436. package/dist/types/components/AppStepper.d.ts +57 -61
  437. package/dist/types/components/AppSwitch.d.ts +24 -27
  438. package/dist/types/components/AppTablePagination.d.ts +34 -55
  439. package/dist/types/components/AppTableToolbar.d.ts +31 -44
  440. package/dist/types/components/AppTabs.d.ts +62 -75
  441. package/dist/types/components/AppTextarea.d.ts +35 -51
  442. package/dist/types/components/AppThemeToggle.d.ts +60 -53
  443. package/dist/types/components/AppTimePicker.d.ts +29 -28
  444. package/dist/types/components/AppTimeline.d.ts +59 -60
  445. package/dist/types/components/AppToast.d.ts +26 -27
  446. package/dist/types/components/AppToolbar.d.ts +46 -52
  447. package/dist/types/components/AppTooltip.d.ts +26 -30
  448. package/dist/types/components/AppTour.d.ts +57 -41
  449. package/dist/types/components/AppTreeView.d.ts +53 -30
  450. package/dist/types/components/AppTruncate.d.ts +16 -21
  451. package/dist/types/components/AppUpdateBar.d.ts +21 -26
  452. package/dist/types/components/AppWhatsNew.d.ts +40 -48
  453. package/dist/types/components/AppWizard.d.ts +64 -48
  454. package/dist/types/components/AppWorkspaceSwitcher.d.ts +56 -60
  455. package/dist/types/components/ModalIcons.d.ts +17 -38
  456. package/dist/types/components/assertValidValue.d.ts +1 -5
  457. package/dist/types/components/iconCatalogFull/bold/a.g.d.ts +2 -77
  458. package/dist/types/components/iconCatalogFull/bold/b.g.d.ts +2 -83
  459. package/dist/types/components/iconCatalogFull/bold/c.g.d.ts +2 -113
  460. package/dist/types/components/iconCatalogFull/bold/d.g.d.ts +2 -55
  461. package/dist/types/components/iconCatalogFull/bold/e.g.d.ts +2 -35
  462. package/dist/types/components/iconCatalogFull/bold/f.g.d.ts +2 -43
  463. package/dist/types/components/iconCatalogFull/bold/g.g.d.ts +2 -42
  464. package/dist/types/components/iconCatalogFull/bold/h.g.d.ts +2 -42
  465. package/dist/types/components/iconCatalogFull/bold/i.g.d.ts +2 -19
  466. package/dist/types/components/iconCatalogFull/bold/j.g.d.ts +2 -5
  467. package/dist/types/components/iconCatalogFull/bold/k.g.d.ts +2 -8
  468. package/dist/types/components/iconCatalogFull/bold/l.g.d.ts +2 -40
  469. package/dist/types/components/iconCatalogFull/bold/m.g.d.ts +2 -99
  470. package/dist/types/components/iconCatalogFull/bold/n.g.d.ts +2 -21
  471. package/dist/types/components/iconCatalogFull/bold/o.g.d.ts +2 -8
  472. package/dist/types/components/iconCatalogFull/bold/p.g.d.ts +2 -49
  473. package/dist/types/components/iconCatalogFull/bold/q.g.d.ts +2 -9
  474. package/dist/types/components/iconCatalogFull/bold/r.g.d.ts +2 -48
  475. package/dist/types/components/iconCatalogFull/bold/s.g.d.ts +2 -107
  476. package/dist/types/components/iconCatalogFull/bold/t.g.d.ts +2 -64
  477. package/dist/types/components/iconCatalogFull/bold/u.g.d.ts +2 -17
  478. package/dist/types/components/iconCatalogFull/bold/v.g.d.ts +2 -28
  479. package/dist/types/components/iconCatalogFull/bold/w.g.d.ts +2 -29
  480. package/dist/types/components/iconCatalogFull/bold/x.g.d.ts +2 -5
  481. package/dist/types/components/iconCatalogFull/bold/y.g.d.ts +2 -3
  482. package/dist/types/components/iconCatalogFull/bold/z.g.d.ts +2 -4
  483. package/dist/types/components/iconCatalogFull/broken/a.g.d.ts +2 -77
  484. package/dist/types/components/iconCatalogFull/broken/b.g.d.ts +2 -83
  485. package/dist/types/components/iconCatalogFull/broken/c.g.d.ts +2 -113
  486. package/dist/types/components/iconCatalogFull/broken/d.g.d.ts +2 -55
  487. package/dist/types/components/iconCatalogFull/broken/e.g.d.ts +2 -35
  488. package/dist/types/components/iconCatalogFull/broken/f.g.d.ts +2 -43
  489. package/dist/types/components/iconCatalogFull/broken/g.g.d.ts +2 -42
  490. package/dist/types/components/iconCatalogFull/broken/h.g.d.ts +2 -42
  491. package/dist/types/components/iconCatalogFull/broken/i.g.d.ts +2 -19
  492. package/dist/types/components/iconCatalogFull/broken/j.g.d.ts +2 -5
  493. package/dist/types/components/iconCatalogFull/broken/k.g.d.ts +2 -8
  494. package/dist/types/components/iconCatalogFull/broken/l.g.d.ts +2 -40
  495. package/dist/types/components/iconCatalogFull/broken/m.g.d.ts +2 -99
  496. package/dist/types/components/iconCatalogFull/broken/n.g.d.ts +2 -21
  497. package/dist/types/components/iconCatalogFull/broken/o.g.d.ts +2 -8
  498. package/dist/types/components/iconCatalogFull/broken/p.g.d.ts +2 -49
  499. package/dist/types/components/iconCatalogFull/broken/q.g.d.ts +2 -9
  500. package/dist/types/components/iconCatalogFull/broken/r.g.d.ts +2 -48
  501. package/dist/types/components/iconCatalogFull/broken/s.g.d.ts +2 -107
  502. package/dist/types/components/iconCatalogFull/broken/t.g.d.ts +2 -64
  503. package/dist/types/components/iconCatalogFull/broken/u.g.d.ts +2 -17
  504. package/dist/types/components/iconCatalogFull/broken/v.g.d.ts +2 -28
  505. package/dist/types/components/iconCatalogFull/broken/w.g.d.ts +2 -29
  506. package/dist/types/components/iconCatalogFull/broken/x.g.d.ts +2 -5
  507. package/dist/types/components/iconCatalogFull/broken/y.g.d.ts +2 -3
  508. package/dist/types/components/iconCatalogFull/broken/z.g.d.ts +2 -4
  509. package/dist/types/components/iconCatalogFull/bulk/a.g.d.ts +2 -77
  510. package/dist/types/components/iconCatalogFull/bulk/b.g.d.ts +2 -83
  511. package/dist/types/components/iconCatalogFull/bulk/c.g.d.ts +2 -113
  512. package/dist/types/components/iconCatalogFull/bulk/d.g.d.ts +2 -55
  513. package/dist/types/components/iconCatalogFull/bulk/e.g.d.ts +2 -35
  514. package/dist/types/components/iconCatalogFull/bulk/f.g.d.ts +2 -43
  515. package/dist/types/components/iconCatalogFull/bulk/g.g.d.ts +2 -42
  516. package/dist/types/components/iconCatalogFull/bulk/h.g.d.ts +2 -42
  517. package/dist/types/components/iconCatalogFull/bulk/i.g.d.ts +2 -19
  518. package/dist/types/components/iconCatalogFull/bulk/j.g.d.ts +2 -5
  519. package/dist/types/components/iconCatalogFull/bulk/k.g.d.ts +2 -8
  520. package/dist/types/components/iconCatalogFull/bulk/l.g.d.ts +2 -40
  521. package/dist/types/components/iconCatalogFull/bulk/m.g.d.ts +2 -99
  522. package/dist/types/components/iconCatalogFull/bulk/n.g.d.ts +2 -21
  523. package/dist/types/components/iconCatalogFull/bulk/o.g.d.ts +2 -8
  524. package/dist/types/components/iconCatalogFull/bulk/p.g.d.ts +2 -49
  525. package/dist/types/components/iconCatalogFull/bulk/q.g.d.ts +2 -9
  526. package/dist/types/components/iconCatalogFull/bulk/r.g.d.ts +2 -48
  527. package/dist/types/components/iconCatalogFull/bulk/s.g.d.ts +2 -107
  528. package/dist/types/components/iconCatalogFull/bulk/t.g.d.ts +2 -64
  529. package/dist/types/components/iconCatalogFull/bulk/u.g.d.ts +2 -17
  530. package/dist/types/components/iconCatalogFull/bulk/v.g.d.ts +2 -28
  531. package/dist/types/components/iconCatalogFull/bulk/w.g.d.ts +2 -29
  532. package/dist/types/components/iconCatalogFull/bulk/x.g.d.ts +2 -5
  533. package/dist/types/components/iconCatalogFull/bulk/y.g.d.ts +2 -3
  534. package/dist/types/components/iconCatalogFull/bulk/z.g.d.ts +2 -4
  535. package/dist/types/components/iconCatalogFull/linear/a.g.d.ts +2 -77
  536. package/dist/types/components/iconCatalogFull/linear/b.g.d.ts +2 -83
  537. package/dist/types/components/iconCatalogFull/linear/c.g.d.ts +2 -113
  538. package/dist/types/components/iconCatalogFull/linear/d.g.d.ts +2 -55
  539. package/dist/types/components/iconCatalogFull/linear/e.g.d.ts +2 -35
  540. package/dist/types/components/iconCatalogFull/linear/f.g.d.ts +2 -43
  541. package/dist/types/components/iconCatalogFull/linear/g.g.d.ts +2 -42
  542. package/dist/types/components/iconCatalogFull/linear/h.g.d.ts +2 -42
  543. package/dist/types/components/iconCatalogFull/linear/i.g.d.ts +2 -19
  544. package/dist/types/components/iconCatalogFull/linear/j.g.d.ts +2 -5
  545. package/dist/types/components/iconCatalogFull/linear/k.g.d.ts +2 -8
  546. package/dist/types/components/iconCatalogFull/linear/l.g.d.ts +2 -40
  547. package/dist/types/components/iconCatalogFull/linear/m.g.d.ts +2 -99
  548. package/dist/types/components/iconCatalogFull/linear/n.g.d.ts +2 -21
  549. package/dist/types/components/iconCatalogFull/linear/o.g.d.ts +2 -8
  550. package/dist/types/components/iconCatalogFull/linear/p.g.d.ts +2 -49
  551. package/dist/types/components/iconCatalogFull/linear/q.g.d.ts +2 -9
  552. package/dist/types/components/iconCatalogFull/linear/r.g.d.ts +2 -48
  553. package/dist/types/components/iconCatalogFull/linear/s.g.d.ts +2 -107
  554. package/dist/types/components/iconCatalogFull/linear/t.g.d.ts +2 -64
  555. package/dist/types/components/iconCatalogFull/linear/u.g.d.ts +2 -17
  556. package/dist/types/components/iconCatalogFull/linear/v.g.d.ts +2 -28
  557. package/dist/types/components/iconCatalogFull/linear/w.g.d.ts +2 -29
  558. package/dist/types/components/iconCatalogFull/linear/x.g.d.ts +2 -5
  559. package/dist/types/components/iconCatalogFull/linear/y.g.d.ts +2 -3
  560. package/dist/types/components/iconCatalogFull/linear/z.g.d.ts +2 -4
  561. package/dist/types/components/iconCatalogFull/outline/a.g.d.ts +2 -77
  562. package/dist/types/components/iconCatalogFull/outline/b.g.d.ts +2 -83
  563. package/dist/types/components/iconCatalogFull/outline/c.g.d.ts +2 -113
  564. package/dist/types/components/iconCatalogFull/outline/d.g.d.ts +2 -55
  565. package/dist/types/components/iconCatalogFull/outline/e.g.d.ts +2 -35
  566. package/dist/types/components/iconCatalogFull/outline/f.g.d.ts +2 -43
  567. package/dist/types/components/iconCatalogFull/outline/g.g.d.ts +2 -42
  568. package/dist/types/components/iconCatalogFull/outline/h.g.d.ts +2 -42
  569. package/dist/types/components/iconCatalogFull/outline/i.g.d.ts +2 -19
  570. package/dist/types/components/iconCatalogFull/outline/j.g.d.ts +2 -5
  571. package/dist/types/components/iconCatalogFull/outline/k.g.d.ts +2 -8
  572. package/dist/types/components/iconCatalogFull/outline/l.g.d.ts +2 -40
  573. package/dist/types/components/iconCatalogFull/outline/m.g.d.ts +2 -99
  574. package/dist/types/components/iconCatalogFull/outline/n.g.d.ts +2 -21
  575. package/dist/types/components/iconCatalogFull/outline/o.g.d.ts +2 -8
  576. package/dist/types/components/iconCatalogFull/outline/p.g.d.ts +2 -49
  577. package/dist/types/components/iconCatalogFull/outline/q.g.d.ts +2 -9
  578. package/dist/types/components/iconCatalogFull/outline/r.g.d.ts +2 -48
  579. package/dist/types/components/iconCatalogFull/outline/s.g.d.ts +2 -107
  580. package/dist/types/components/iconCatalogFull/outline/t.g.d.ts +2 -64
  581. package/dist/types/components/iconCatalogFull/outline/u.g.d.ts +2 -17
  582. package/dist/types/components/iconCatalogFull/outline/v.g.d.ts +2 -28
  583. package/dist/types/components/iconCatalogFull/outline/w.g.d.ts +2 -29
  584. package/dist/types/components/iconCatalogFull/outline/x.g.d.ts +2 -5
  585. package/dist/types/components/iconCatalogFull/outline/y.g.d.ts +2 -3
  586. package/dist/types/components/iconCatalogFull/outline/z.g.d.ts +2 -4
  587. package/dist/types/components/iconCatalogFull/twotone/a.g.d.ts +2 -77
  588. package/dist/types/components/iconCatalogFull/twotone/b.g.d.ts +2 -83
  589. package/dist/types/components/iconCatalogFull/twotone/c.g.d.ts +2 -113
  590. package/dist/types/components/iconCatalogFull/twotone/d.g.d.ts +2 -55
  591. package/dist/types/components/iconCatalogFull/twotone/e.g.d.ts +2 -35
  592. package/dist/types/components/iconCatalogFull/twotone/f.g.d.ts +2 -43
  593. package/dist/types/components/iconCatalogFull/twotone/g.g.d.ts +2 -42
  594. package/dist/types/components/iconCatalogFull/twotone/h.g.d.ts +2 -42
  595. package/dist/types/components/iconCatalogFull/twotone/i.g.d.ts +2 -19
  596. package/dist/types/components/iconCatalogFull/twotone/j.g.d.ts +2 -5
  597. package/dist/types/components/iconCatalogFull/twotone/k.g.d.ts +2 -8
  598. package/dist/types/components/iconCatalogFull/twotone/l.g.d.ts +2 -40
  599. package/dist/types/components/iconCatalogFull/twotone/m.g.d.ts +2 -99
  600. package/dist/types/components/iconCatalogFull/twotone/n.g.d.ts +2 -21
  601. package/dist/types/components/iconCatalogFull/twotone/o.g.d.ts +2 -8
  602. package/dist/types/components/iconCatalogFull/twotone/p.g.d.ts +2 -49
  603. package/dist/types/components/iconCatalogFull/twotone/q.g.d.ts +2 -9
  604. package/dist/types/components/iconCatalogFull/twotone/r.g.d.ts +2 -48
  605. package/dist/types/components/iconCatalogFull/twotone/s.g.d.ts +2 -107
  606. package/dist/types/components/iconCatalogFull/twotone/t.g.d.ts +2 -64
  607. package/dist/types/components/iconCatalogFull/twotone/u.g.d.ts +2 -17
  608. package/dist/types/components/iconCatalogFull/twotone/v.g.d.ts +2 -28
  609. package/dist/types/components/iconCatalogFull/twotone/w.g.d.ts +2 -29
  610. package/dist/types/components/iconCatalogFull/twotone/x.g.d.ts +2 -5
  611. package/dist/types/components/iconCatalogFull/twotone/y.g.d.ts +2 -3
  612. package/dist/types/components/iconCatalogFull/twotone/z.g.d.ts +2 -4
  613. package/dist/types/components/iconCatalogLoaders.g.d.ts +10 -171
  614. package/dist/types/components/iconGlyphs.g.d.ts +2 -238
  615. package/dist/types/components/iconVariants.g.d.ts +2 -1167
  616. package/dist/types/components/renderIconProp.d.ts +10 -9
  617. package/dist/types/components/textOf.d.ts +3 -0
  618. package/dist/types/components/toast.d.ts +13 -5
  619. package/dist/types/components/toastStore.d.ts +33 -4
  620. package/dist/types/components/useNodeLabels.d.ts +12 -12
  621. package/dist/types/components/useWuiControl.d.ts +73 -49
  622. package/dist/types/components/warnUnknownProps.d.ts +3 -3
  623. package/dist/types/components/withTooltip.d.ts +3 -1
  624. package/dist/types/index.d.ts +177 -164
  625. package/dist/types/lib/CheckField.d.ts +19 -1
  626. package/dist/types/lib/DiscardPrompt.d.ts +10 -12
  627. package/dist/types/lib/FieldMessage.d.ts +8 -12
  628. package/dist/types/lib/FileItemRow.d.ts +19 -23
  629. package/dist/types/lib/FocusPanel.d.ts +5 -3
  630. package/dist/types/lib/TargetLink.d.ts +9 -0
  631. package/dist/types/lib/buttonClass.d.ts +0 -4
  632. package/dist/types/lib/devWarn.d.ts +2 -2
  633. package/dist/types/lib/emptyIllustration.d.ts +9 -18
  634. package/dist/types/lib/emptyValue.d.ts +2 -6
  635. package/dist/types/lib/fieldState.d.ts +3 -1
  636. package/dist/types/lib/fileItem.d.ts +16 -7
  637. package/dist/types/lib/fillLabel.d.ts +1 -1
  638. package/dist/types/lib/flagStyles.d.ts +1 -1
  639. package/dist/types/lib/focusField.d.ts +2 -2
  640. package/dist/types/lib/initials.d.ts +3 -4
  641. package/dist/types/lib/labelWithHelp.d.ts +2 -6
  642. package/dist/types/lib/linkTarget.d.ts +33 -19
  643. package/dist/types/lib/navMatch.d.ts +7 -10
  644. package/dist/types/lib/pageWindow.d.ts +7 -8
  645. package/dist/types/lib/qrCode.d.ts +17 -37
  646. package/dist/types/lib/sectionShell.d.ts +39 -31
  647. package/dist/types/lib/shellCookie.d.ts +3 -3
  648. package/dist/types/lib/shortcutChip.d.ts +4 -3
  649. package/dist/types/lib/svgNodes.d.ts +4 -0
  650. package/dist/types/lib/useCommandPaletteShortcut.d.ts +3 -3
  651. package/dist/types/lib/useElementEntry.d.ts +16 -0
  652. package/dist/types/lib/useFileDrop.d.ts +23 -16
  653. package/dist/types/lib/useFloatingStack.d.ts +5 -4
  654. package/dist/types/lib/useListShortcuts.d.ts +9 -7
  655. package/dist/types/lib/usePagination.d.ts +8 -6
  656. package/dist/types/lib/useTableView.d.ts +17 -19
  657. package/dist/types/lib/wuiMarker.d.ts +12 -10
  658. package/dist/types/reactAugmentations.d.ts +22 -0
  659. package/dist/ui-react.js +1 -1
  660. package/dist/web-core/dist/query/listQuery.js +1 -1
  661. package/package.json +15 -12
@@ -0,0 +1 @@
1
+ import{isValidElement as e}from"react";function t(n){return n==null||typeof n==`boolean`?``:typeof n==`string`||typeof n==`number`?String(n):Array.isArray(n)?n.map(t).join(``):e(n)?t(n.props.children):``}export{t as default};
@@ -1 +1 @@
1
- import e from"./assertValidValue.js";var t=/* @__PURE__ */ new Set([`rise`,`organic`,`jelly`,`spring`]),n=/* @__PURE__ */ new Set([`rounded`,`pill`,`sharp`]),r=/* @__PURE__ */ new Set([`auto`,`inverse`]);function i(e,t,n,r){if(t!==void 0&&(typeof t!=`number`||!Number.isFinite(t)||t<n||t>r))throw RangeError(`[@webority/ui-react] toast() received ${e}=${String(t)}, which is not a number from ${n} to ${r}.`)}function a(a){e(`toast`,`animation`,a.animation,t),e(`toast`,`shape`,a.shape,n),e(`toast`,`surface`,a.surface,r),i(`progress`,a.progress,0,100),i(`duration`,a.duration,0,2**53-1)}var o=6,s=[],c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Map,u=/* @__PURE__ */ new Set,d=0;function f(){for(let e of c)e(s)}function p(e){let t=l.get(e);t!==void 0&&(clearTimeout(t),l.delete(e))}function m(e,t){if(e.length<=o)return e;let n=[...e],r=[];for(;n.length>o;){let e=n.findIndex(e=>e.id!==t&&e.duration!==0);r.push(n.splice(e===-1?n.findIndex(e=>e.id!==t):e,1)[0])}for(let e of r)p(e.id),u.delete(e.id);return n}function h(e){return c.add(e),e(s),()=>{if(c.delete(e),c.size===0)for(let e of s)e.duration>0&&!l.has(e.id)&&(u.delete(e.id),l.set(e.id,setTimeout(()=>v(e.id),e.duration)))}}function g(e,t,n={}){a(n);let r=n.id,i=r||typeof e!=`string`?void 0:`${t}:${e}`;if(r){let i=s.find(e=>e.externalId===r);if(i){p(i.id);let r=n.duration===void 0?5e3:n.duration;s=s.map(a=>a.id===i.id?{...a,message:e,variant:t,title:n.title,duration:r,action:n.action,animation:n.animation,shape:n.shape,surface:n.surface,progress:n.progress}:a),f(),r>0&&!u.has(i.id)&&l.set(i.id,setTimeout(()=>v(i.id),r));return}}else if(i&&s.some(e=>e.key===i))return;let o=++d,c=n.duration===void 0?5e3:n.duration;s=m([...s,{id:o,externalId:r,message:e,variant:t,title:n.title,duration:c,action:n.action,animation:n.animation,shape:n.shape,surface:n.surface,progress:n.progress,key:i}],o),f(),c>0&&l.set(o,setTimeout(()=>v(o),c))}function _(e){p(e),u.add(e)}function v(e){p(e),u.delete(e);let t=s.filter(t=>t.id!==e);t.length!==s.length&&(s=t,f())}function y(){if(s.length!==0||l.size!==0||u.size!==0){for(let e of l.values())clearTimeout(e);l.clear(),u.clear(),s.length!==0&&(s=[],f())}}export{t as TOAST_ANIMATIONS,n as TOAST_SHAPES,r as TOAST_SURFACES,_ as adoptToast,y as dismissAllToasts,v as dismissToast,g as pushToast,h as subscribeToasts};
1
+ import e from"./assertValidValue.js";var t=/* @__PURE__ */ new Set([`rise`,`organic`,`jelly`,`spring`]),n=/* @__PURE__ */ new Set([`rounded`,`pill`,`sharp`]),r=/* @__PURE__ */ new Set([`auto`,`inverse`]);function i(e,t,n,r){if(t!==void 0&&(typeof t!=`number`||!Number.isFinite(t)||t<n||t>r))throw RangeError(`[@webority/ui-react] toast() received ${e}=${String(t)}, which is not a number from ${n} to ${r}.`)}function a(a){e(`toast`,`animation`,a.animation,t),e(`toast`,`shape`,a.shape,n),e(`toast`,`surface`,a.surface,r),i(`progress`,a.progress,0,100),i(`duration`,a.duration,0,2**53-1)}var o=6,s=[],c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Map,u=/* @__PURE__ */ new Set,d=0;function f(){for(let e of c)e(s)}function p(e){let t=l.get(e);t!==void 0&&(clearTimeout(t),l.delete(e))}function m(e,t){if(e.length<=o)return e;let n=[...e],r=[];for(;n.length>o;){let e=n.findIndex(e=>e.id!==t&&e.duration!==0);r.push(...n.splice(e===-1?n.findIndex(e=>e.id!==t):e,1))}for(let e of r)p(e.id),u.delete(e.id);return n}function h(e){return c.add(e),e(s),()=>{if(c.delete(e),c.size===0)for(let e of s)e.duration>0&&!l.has(e.id)&&(u.delete(e.id),l.set(e.id,setTimeout(()=>v(e.id),e.duration)))}}function g(e,t,n={}){a(n);let r=n.id,i=r||typeof e!=`string`?void 0:`${t}:${e}`;if(r){let i=s.find(e=>e.externalId===r);if(i){p(i.id);let r=n.duration===void 0?5e3:n.duration;s=s.map(a=>a.id===i.id?{...a,message:e,variant:t,title:n.title,duration:r,action:n.action,animation:n.animation,shape:n.shape,surface:n.surface,progress:n.progress}:a),f(),r>0&&!u.has(i.id)&&l.set(i.id,setTimeout(()=>v(i.id),r));return}}else if(i&&s.some(e=>e.key===i))return;let o=++d,c=n.duration===void 0?5e3:n.duration;s=m([...s,{id:o,externalId:r,message:e,variant:t,title:n.title,duration:c,action:n.action,animation:n.animation,shape:n.shape,surface:n.surface,progress:n.progress,key:i}],o),f(),c>0&&l.set(o,setTimeout(()=>v(o),c))}function _(e){p(e),u.add(e)}function v(e){p(e),u.delete(e);let t=s.filter(t=>t.id!==e);t.length!==s.length&&(s=t,f())}function y(){if(s.length!==0||l.size!==0||u.size!==0){for(let e of l.values())clearTimeout(e);l.clear(),u.clear(),s.length!==0&&(s=[],f())}}export{t as TOAST_ANIMATIONS,n as TOAST_SHAPES,r as TOAST_SURFACES,_ as adoptToast,y as dismissAllToasts,v as dismissToast,g as pushToast,h as subscribeToasts};
@@ -1 +1 @@
1
- import e from"./AppIcon.js";import{withTrustedLabel as t}from"@webority/ui-elements/helpers";import{createElement as n,useCallback as r,useEffect as i,useRef as a,useState as o}from"react";import{createPortal as s}from"react-dom";var c=e=>e?.label!=null&&typeof e.label==`object`,l=e=>typeof e?.icon==`string`&&e.icon!==``,u=e=>c(e)||l(e);function d(t){let r=t.label??t.text??t.value;return l(t)?n(`span`,{className:`wui-opt-label`},n(e,{name:t.icon,size:16}),r):r}function f(e){let c=a(null),[f,p]=o(0),m=e.filter(u);m.length&&c.current===null&&(c.current=document.createElement(`div`));let h=c.current!==null;i(()=>{if(!h)return;let e=c.current.innerHTML,t=new MutationObserver(()=>{let t=c.current.innerHTML;t!==e&&(e=t,p(e=>e+1))});return t.observe(c.current,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),()=>t.disconnect()},[h]);let g=r((e,n)=>{let r=0;return e.map(e=>{if(!u(e))return n(e,e?.label??e?.text??``);let i=c.current.children[r].innerHTML;return r+=1,t(n(l(e)?{...e,icon:void 0}:e,i))})},[f]);return{portal:m.length?s(m.map(e=>n(`span`,{key:String(e.value)},d(e))),c.current):null,toElementOptions:g}}export{f as default};
1
+ import e from"./AppIcon.js";import{withTrustedLabel as t}from"@webority/ui-elements/helpers";import{createElement as n,useCallback as r,useEffect as i,useRef as a,useState as o}from"react";import{createPortal as s}from"react-dom";var c=e=>e?.label!=null&&typeof e.label==`object`,l=e=>typeof e?.icon==`string`&&e.icon!==``,u=e=>c(e)||l(e);function d(t){let r=t.label??t.text??t.value;return l(t)?n(`span`,{className:`wui-opt-label`},n(e,{name:t.icon,size:16}),r):r}function f(e){let c=a(null),[f,p]=o(0),m=e.filter(u);m.length&&c.current===null&&(c.current=document.createElement(`div`));let h=c.current!==null;i(()=>{let e=c.current;if(!h||e===null)return;let t=e.innerHTML,n=new MutationObserver(()=>{let n=e.innerHTML;n!==t&&(t=n,p(e=>e+1))});return n.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),()=>n.disconnect()},[h]);let g=r((e,n)=>{let r=0;return e.map(e=>{if(!u(e))return n(e,e?.label??e?.text??``);let i=c.current?.children[r];if(i===void 0)throw TypeError(`useNodeLabels: rendered option has no host node (markup revision ${f})`);let a=i.innerHTML;return r+=1,t(n(l(e)?{...e,icon:void 0}:e,a))})},[f]),_=c.current;return{portal:m.length&&_!==null?s(m.map(e=>n(`span`,{key:String(e.value)},d(e))),_):null,toElementOptions:g}}export{f as default};
@@ -1 +1 @@
1
- import{useCallback as e,useEffect as t,useInsertionEffect as n,useRef as r}from"react";function i({ref:i,value:c,defaultValue:l,onChange:u,readValue:d,writeValue:f,events:p=a,on:m}={}){let h=r(null),g=d??o,_=f??s,v=(p||a).join(`\0`),y=Object.keys(m??{}).join(`\0`),b=r(null);b.current===null&&(b.current={ref:i,value:c,defaultValue:l,onChange:u,read:g,write:_,eventKey:v,on:m}),n(()=>{b.current={ref:i,value:c,defaultValue:l,onChange:u,read:g,write:_,eventKey:v,on:m}});let x=r(null),S=e(()=>{let e=x.current;if(e){for(let t of e.names)e.el.removeEventListener(t,e.handler);for(let t of e.extraNames)e.el.removeEventListener(t,e.extraHandler);x.current=null}},[]),C=e(e=>{let t=b.current.eventKey?b.current.eventKey.split(`\0`):a,n=Object.keys(b.current.on??{}),r={el:e,names:t,extraNames:n,last:void 0};r.handler=()=>{let t=b.current.read(e);Object.is(t,r.last)||(r.last=t,b.current.onChange?.(t))},r.extraHandler=e=>b.current.on?.[e.type]?.(e);for(let n of t)e.addEventListener(n,r.handler);for(let t of n)e.addEventListener(t,r.extraHandler);x.current=r},[]),w=e(e=>{h.current=e;let t=b.current.ref;typeof t==`function`?t(e):t&&(t.current=e),S(),e&&(C(e),b.current.value===void 0?b.current.defaultValue!==void 0&&b.current.write(e,b.current.defaultValue):b.current.write(e,b.current.value))},[S,C]);return t(()=>{let e=h.current;if(!e||c===void 0)return;_(e,c);let t=x.current;t&&!Object.is(c,t.last)&&(t.last=void 0)},[c,_]),t(()=>{let e=h.current,t=x.current;e&&t&&(t.names.join(`\0`)!==(v||a.join(`\0`))||t.extraNames.join(`\0`)!==y)&&(S(),C(e))},[v,y,S,C]),{setRef:w,innerRef:h}}var a=[`change`];function o(e){return e.value}function s(e,t){let n=t??``;String(e.value??``)!==String(n)&&(e.value=n)}function c(e,t){let n=e||[],r=t||[];return n.length===r.length&&n.every((e,t)=>{let n=r[t];if(e===n)return!0;if(e==null||n==null||typeof e!=`object`||typeof n!=`object`)return Object.is(e,n);let i=Object.keys(e);return i.length===Object.keys(n).length&&i.every(t=>Object.is(e[t],n[t]))})}function l(e){return e.values}function u(e,t){let n=t||[],r=e.values||[];n.length===r.length&&n.every((e,t)=>e===r[t])||(e.values=n)}function d(e){return{start:e.start,end:e.end}}function f(e,t){if(t===void 0)return;let n=Number.parseFloat(t);Number.isFinite(n)&&e.value!==n&&(e.value=n)}export{i as default,c as optionsEqual,d as readRange,l as readValues,f as writeNumberValue,u as writeValues};
1
+ import{useCallback as e,useEffect as t,useInsertionEffect as n,useRef as r}from"react";function i({ready:i,ref:l,value:u,defaultValue:d,onChange:f,readValue:p,writeValue:m,events:h=a,on:g}){let _=r(null),v=p??s,y=m??c,b=(h||a).join(`\0`),x=Object.keys(g??{}).join(`\0`),S={ready:i,ref:l,value:u,defaultValue:d,onChange:f,read:v,write:y,eventKey:b,on:g},C=r(S);n(()=>{C.current=S});let w=r(null),T=e(()=>{let e=w.current;if(e){for(let t of e.names)e.el.removeEventListener(t,e.handler);for(let t of e.extraNames)e.el.removeEventListener(t,e.extraHandler);w.current=null}},[]),E=e(e=>{let t=C.current.eventKey?C.current.eventKey.split(`\0`):a,n=Object.keys(C.current.on??{}),r={el:e,names:t,extraNames:n,handler:()=>{let t=C.current.read(e);Object.is(t,r.last)||(r.last=t,C.current.onChange?.(t))},extraHandler:e=>C.current.on?.[e.type]?.(e),last:void 0};for(let n of t)e.addEventListener(n,r.handler);for(let t of n)e.addEventListener(t,r.extraHandler);w.current=r},[]),D=e(e=>{_.current=e;let t=C.current.ref;typeof t==`function`?t(e):t&&(t.current=e),T(),e&&(E(e),C.current.ready&&o(e,C.current))},[T,E]);return t(()=>{let e=_.current;i&&e&&o(e,C.current)},[i]),t(()=>{let e=_.current;if(!i||!e||u===void 0)return;y(e,u);let t=w.current;t&&!Object.is(u,t.last)&&(t.last=void 0)},[i,u,y]),t(()=>{let e=_.current,t=w.current;e&&t&&(t.names.join(`\0`)!==(b||a.join(`\0`))||t.extraNames.join(`\0`)!==x)&&(T(),E(e))},[b,x,T,E]),{setRef:D,innerRef:_}}var a=[`change`];function o(e,t){t.value===void 0?t.defaultValue!==void 0&&t.write(e,t.defaultValue):t.write(e,t.value)}function s(e){return e.value}function c(e,t){let n=t??``;String(e.value??``)!==String(n)&&(e.value=n)}function l(e,t){let n=e||[],r=t||[];return n.length===r.length&&n.every((e,t)=>{let n=r[t];if(e===n)return!0;if(e==null||n==null||typeof e!=`object`||typeof n!=`object`)return Object.is(e,n);let i=Object.keys(e);return i.length===Object.keys(n).length&&i.every(t=>Object.is(Reflect.get(e,t),Reflect.get(n,t)))})}function u(e){return e.values}function d(e,t){let n=t||[],r=e.values||[];n.length===r.length&&n.every((e,t)=>e===r[t])||(e.values=n)}function f(e){return{start:e.start,end:e.end}}function p(e,t){if(t===void 0)return;let n=Number.parseFloat(String(t));Number.isFinite(n)&&e.value!==n&&(e.value=n)}export{i as default,l as optionsEqual,f as readRange,u as readValues,p as writeNumberValue,d as writeValues};
@@ -2,7 +2,7 @@
2
2
  "format": "webority-guidance/1",
3
3
  "package": {
4
4
  "name": "@webority/ui-react",
5
- "version": "0.149.0"
5
+ "version": "0.150.0"
6
6
  },
7
7
  "components": [
8
8
  {
@@ -366,7 +366,7 @@
366
366
  "usage": {
367
367
  "when": [
368
368
  "A screen fetches data and must show loading, error and empty states consistently.",
369
- "You want one place that owns the precedence between those states, instead of nested ternaries."
369
+ "You want one place that switches between those states from one status value, instead of nested ternaries."
370
370
  ],
371
371
  "whenNot": [
372
372
  {
@@ -390,7 +390,9 @@
390
390
  {
391
391
  "component": "AppAsyncBlock",
392
392
  "props": {
393
- "loading": true,
393
+ "state": {
394
+ "status": "loading"
395
+ },
394
396
  "skeleton": {
395
397
  "component": "div",
396
398
  "children": [
@@ -410,8 +412,7 @@
410
412
  }
411
413
  ]
412
414
  }
413
- },
414
- "children": "content"
415
+ }
415
416
  }
416
417
  ]
417
418
  },
@@ -422,9 +423,10 @@
422
423
  {
423
424
  "component": "AppAsyncBlock",
424
425
  "props": {
425
- "loading": true
426
- },
427
- "children": "content"
426
+ "state": {
427
+ "status": "loading"
428
+ }
429
+ }
428
430
  }
429
431
  ]
430
432
  }
@@ -437,7 +439,9 @@
437
439
  {
438
440
  "component": "AppAsyncBlock",
439
441
  "props": {
440
- "loading": true,
442
+ "state": {
443
+ "status": "loading"
444
+ },
441
445
  "skeleton": {
442
446
  "component": "AppSkeleton",
443
447
  "props": {
@@ -445,8 +449,7 @@
445
449
  "height": 300
446
450
  }
447
451
  }
448
- },
449
- "children": "content"
452
+ }
450
453
  }
451
454
  ]
452
455
  },
@@ -462,9 +465,9 @@
462
465
  }
463
466
  ],
464
467
  "a11y": [
465
- "Each state is marked with a data-state attribute on the wrapper: loading, error, empty or content.",
468
+ "Each state is marked with a data-state attribute on the wrapper: loading, error, empty or data.",
466
469
  "With no skeleton, the loading state is an indeterminate progress bar labelled Loading.",
467
- "The error state is an empty state that shows a Retry button only when a retry handler is given.",
470
+ "The error state is an empty state with a Retry button that calls the state's retry.",
468
471
  "The component sets no aria attributes of its own."
469
472
  ]
470
473
  }
@@ -1 +1 @@
1
- import e from"./FieldMessage.js";import{FIELD_BUSY_CLASS as t}from"./fieldState.js";import{forwardRef as n,useId as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=()=>{},s=n(function({label:n,id:s,name:c,error:l,hint:u,className:d=``,rest:f={},inputType:p,wrapperClass:m,rootProps:h,readOnly:g=!1,loading:_=!1,size:v=`md`},y){let b=r(),x=s||b,S=l?`${x}-error`:void 0,C=u?`${x}-hint`:void 0,w=v===`sm`?` form-check-sm`:v===`lg`?` form-check-lg`:``,{onClick:T,...E}=f;return(g||_)&&E.checked!==void 0&&E.onChange===void 0&&(E.onChange=o),/* @__PURE__ */ a(`div`,{className:`${m}${w}${d?` ${d}`:``}`,...h,children:[/* @__PURE__ */ i(`input`,{type:p,className:_?`form-check-input ${t}`:`form-check-input`,id:x,name:c,ref:y,"aria-invalid":l?`true`:`false`,"aria-describedby":S||C,"aria-readonly":g||void 0,"aria-busy":_||void 0,onClick:e=>{g||_?e.preventDefault():T?.(e)},...E}),n!=null&&/* @__PURE__ */ i(`label`,{className:`form-check-label`,htmlFor:x,children:n}),/* @__PURE__ */ i(e,{error:l,hint:u,errorId:S,hintId:C})]})});export{s as default};
1
+ import e from"./FieldMessage.js";import{FIELD_BUSY_CLASS as t}from"./fieldState.js";import{forwardRef as n,useId as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=()=>{},s=n(function({label:n,id:s,name:c,error:l,hint:u,className:d=``,rest:f={},inputType:p,wrapperClass:m,rootProps:h,readOnly:g=!1,loading:_=!1,size:v=`md`,controlOnly:y=!1},b){let x=r(),S=s||x,C=l?`${S}-error`:void 0,w=u?`${S}-hint`:void 0,T=v===`sm`?` form-check-sm`:v===`lg`?` form-check-lg`:``,{onClick:E,...D}=f;(g||_)&&D.checked!==void 0&&D.onChange===void 0&&(D.onChange=o);let O=_?`form-check-input ${t}`:`form-check-input`,k=y&&d?`${O} ${d}`:O,A=/* @__PURE__ */ i(`input`,{...y?h:void 0,type:p,className:k,id:S,name:c,ref:b,"aria-invalid":l?`true`:`false`,"aria-describedby":C||w,"aria-readonly":g||void 0,"aria-busy":_||void 0,onClick:e=>{g||_?e.preventDefault():E?.(e)},...D});return y?A:/* @__PURE__ */ a(`div`,{className:`${m}${T}${d?` ${d}`:``}`,...h,children:[A,n!=null&&/* @__PURE__ */ i(`label`,{className:`form-check-label`,htmlFor:S,children:n}),/* @__PURE__ */ i(e,{error:l,hint:u,errorId:C,hintId:w})]})});export{s as default};
@@ -1 +1 @@
1
- import e from"../components/AppIcon.js";import t from"../components/AppProgress.js";import{linkOf as n,nameOf as r,sizeLabelOf as i,uploadErrorOf as a,uploadProgressOf as o,useItemUrl as s}from"./fileItem.js";import c from"./fillLabel.js";import{linkTarget as l}from"./linkTarget.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";function f({item:f,isImage:p,onRemove:m,linkComponent:h,noun:g=`attachment`,removeFileLabel:_=`Remove {name}`,readOnly:v=!1}){let y=s(f,p),b=r(f),x=i(f),S=o(f),C=a(f),w=n(f),{Tag:T,linkProps:E}=l(h,{to:f?.to,href:w,routeHref:!1});return/* @__PURE__ */ d(`div`,{className:C?`attach-item wui-attach-failed`:`attach-item`,children:[/* @__PURE__ */ u(`span`,{className:`attach-item-media`,children:y?/* @__PURE__ */ u(`img`,{src:y,alt:b}):/* @__PURE__ */ u(e,{name:`file-text`,size:18})}),/* @__PURE__ */ d(`span`,{className:`attach-item-info`,children:[/* @__PURE__ */ u(`span`,{className:`attach-name`,children:w||f?.to?/* @__PURE__ */ u(T,{...E,children:b}):b}),x&&/* @__PURE__ */ u(`span`,{className:`attach-size`,children:x}),S!==null&&/* @__PURE__ */ u(t,{value:S,size:`sm`,label:`Uploading ${b}`,className:`wui-attach-progress`}),C&&/* @__PURE__ */ u(`div`,{className:`wui-attach-error`,children:C})]}),!v&&/* @__PURE__ */ u(`button`,{type:`button`,className:`attach-item-remove`,"aria-label":c(_,{name:b||g}),onClick:m,children:/* @__PURE__ */ u(e,{name:`x`,size:16})})]})}export{f as default};
1
+ import e from"../components/AppIcon.js";import t from"../components/AppProgress.js";import{linkOf as n,nameOf as r,sizeLabelOf as i,uploadErrorOf as a,uploadProgressOf as o,useItemUrl as s}from"./fileItem.js";import c from"./fillLabel.js";import{linkTarget as l}from"./linkTarget.js";import{TargetLink as u}from"./TargetLink.js";import{jsx as d,jsxs as f}from"react/jsx-runtime";function p({item:p,isImage:m,onRemove:h,linkComponent:g,noun:_=`attachment`,removeFileLabel:v=`Remove {name}`,readOnly:y=!1}){let b=s(p,m),x=r(p),S=i(p),C=o(p),w=a(p),T=n(p),E=p instanceof File?void 0:p?.to,D=l(g,{to:E,href:T??void 0,routeHref:!1});return/* @__PURE__ */ f(`div`,{className:w?`attach-item wui-attach-failed`:`attach-item`,children:[/* @__PURE__ */ d(`span`,{className:`attach-item-media`,children:b?/* @__PURE__ */ d(`img`,{src:b,alt:x}):/* @__PURE__ */ d(e,{name:`file-text`,size:18})}),/* @__PURE__ */ f(`span`,{className:`attach-item-info`,children:[/* @__PURE__ */ d(`span`,{className:`attach-name`,children:T||E?/* @__PURE__ */ d(u,{link:D,children:x}):x}),S&&/* @__PURE__ */ d(`span`,{className:`attach-size`,children:S}),C!==null&&/* @__PURE__ */ d(t,{value:C,size:`sm`,label:`Uploading ${x}`,className:`wui-attach-progress`}),w&&/* @__PURE__ */ d(`div`,{className:`wui-attach-error`,children:w})]}),!y&&/* @__PURE__ */ d(`button`,{type:`button`,className:`attach-item-remove`,"aria-label":c(v,{name:x||_}),onClick:h,children:/* @__PURE__ */ d(e,{name:`x`,size:16})})]})}export{p as default};
@@ -1 +1 @@
1
- import{useEffect as e,useRef as t}from"react";import{jsx as n}from"react/jsx-runtime";var r=`a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function i({triggerRef:i}){let a=t(null);return e(()=>{let e=i.current??document.activeElement;return a.current?.parentElement?.querySelector(r)?.focus(),()=>e?.focus?.()},[i]),/* @__PURE__ */ n(`span`,{ref:a,hidden:!0})}export{i as default};
1
+ import{useEffect as e,useRef as t}from"react";import{jsx as n}from"react/jsx-runtime";var r=`a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function i({triggerRef:i}){let a=t(null);return e(()=>{let e=i.current??document.activeElement;return a.current?.parentElement?.querySelector(r)?.focus(),()=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()}},[i]),/* @__PURE__ */ n(`span`,{ref:a,hidden:!0})}export{i as default};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";function t({link:t,...n}){if(t.Tag===`a`)return/* @__PURE__ */ e(`a`,{...n,href:t.linkProps.href});let r=t.Tag;return/* @__PURE__ */ e(r,{...n,to:t.linkProps.to})}export{t as TargetLink};
@@ -1 +1 @@
1
- import e from"../components/assertValidValue.js";import{FILL_VARIANTS as t,TONES as n}from"./vocabulary.js";var r={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function i(i,a){return e(`buttonClass`,`tone`,i,n),e(`buttonClass`,`variant`,a,t),r[a](i)}export{i as buttonClass};
1
+ import e from"../components/assertValidValue.js";import{FILL_VARIANTS as t,TONES as n}from"./vocabulary.js";var r={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function i(i,a){e(`buttonClass`,`tone`,i,n),e(`buttonClass`,`variant`,a,t);let o=r[a];if(!o)throw RangeError(`[@webority/ui-react] <buttonClass> received variant="${a}".`);return o(i)}export{i as buttonClass};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";var t={"no-results":`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><rect class="wui-ill-card" x="30" y="16" width="64" height="80" rx="8"/><rect class="wui-ill-mute" x="40" y="28" width="30" height="5" rx="2.5"/><rect class="wui-ill-mute" x="40" y="40" width="44" height="5" rx="2.5"/><rect class="wui-ill-mute" x="40" y="52" width="36" height="5" rx="2.5"/><circle class="wui-ill-soft" cx="96" cy="66" r="22"/><circle class="wui-ill-accent-line" cx="96" cy="66" r="22"/><path class="wui-ill-accent-line wui-ill-thick" d="M112 82l14 14"/><path class="wui-ill-accent-line" d="M89 59l14 14M103 59l-14 14"/>`,"no-data":`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><path class="wui-ill-ink" d="M30 20v76h100"/><rect class="wui-ill-dash" x="44" y="62" width="16" height="34" rx="3"/><rect class="wui-ill-dash" x="70" y="44" width="16" height="52" rx="3"/><rect class="wui-ill-dash" x="96" y="28" width="16" height="68" rx="3"/><circle class="wui-ill-accent" cx="122" cy="26" r="5"/>`,"empty-inbox":`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><circle class="wui-ill-soft" cx="80" cy="24" r="14"/><path class="wui-ill-accent-line" d="M73 24l5 5 9-10"/><path class="wui-ill-card" d="M32 66l11-26a6 6 0 0 1 5.5-3.6h63a6 6 0 0 1 5.5 3.6L128 66v22a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8z"/><path class="wui-ill-ink" d="M32 66h30a6 6 0 0 1 6 6 12 12 0 0 0 24 0 6 6 0 0 1 6-6h30"/>`,"no-notifications":`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><path class="wui-ill-ink" d="M80 22v-6"/><path class="wui-ill-card" d="M80 22c-14 0-24 10-24 24v14l-8 12h64l-8-12V46c0-14-10-24-24-24z"/><circle class="wui-ill-accent" cx="80" cy="84" r="6"/><path class="wui-ill-ink" d="M112 30h10l-10 12h10M126 16h7l-7 8h7"/>`,"no-files":`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><path class="wui-ill-soft" d="M28 38a6 6 0 0 1 6-6h24l9 10h59a6 6 0 0 1 6 6v36a8 8 0 0 1-8 8H36a8 8 0 0 1-8-8z"/><path class="wui-ill-ink" d="M28 38a6 6 0 0 1 6-6h24l9 10h59a6 6 0 0 1 6 6v36a8 8 0 0 1-8 8H36a8 8 0 0 1-8-8z"/><path class="wui-ill-card" d="M28 58a6 6 0 0 1 6-6h92a6 6 0 0 1 6 6v28a8 8 0 0 1-8 8H36a8 8 0 0 1-8-8z"/><path class="wui-ill-accent-line" d="M80 66v16M72 74h16"/>`,"no-access":`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><path class="wui-ill-ink" d="M62 54V44a18 18 0 0 1 36 0v10"/><rect class="wui-ill-card" x="52" y="54" width="56" height="42" rx="8"/><circle class="wui-ill-accent" cx="80" cy="71" r="5"/><path class="wui-ill-accent-line" d="M80 76v8"/>`,offline:`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><path class="wui-ill-card" d="M54 88a15 15 0 0 1-1.5-29.9 24 24 0 0 1 46.3-4.6A17 17 0 0 1 108 88z"/><path class="wui-ill-accent-line wui-ill-thick" d="M46 36l72 60"/>`,error:`<ellipse class="wui-ill-mute" cx="80" cy="104" rx="44" ry="6"/><rect class="wui-ill-card" x="44" y="16" width="72" height="82" rx="8"/><rect class="wui-ill-mute" x="56" y="26" width="30" height="5" rx="2.5"/><circle class="wui-ill-danger" cx="80" cy="60" r="20"/><path class="wui-ill-danger-line" d="M80 50v12"/><circle class="wui-ill-danger-fill" cx="80" cy="70" r="2.5"/><rect class="wui-ill-mute" x="62" y="86" width="36" height="5" rx="2.5"/>`},n=Object.keys(t);function r({name:n,className:r}){let i=n&&Object.hasOwn(t,n)?t[n]:void 0;return i?/* @__PURE__ */ e(`svg`,{className:r?`wui-illustration ${r}`:`wui-illustration`,"data-illustration":n,viewBox:`0 0 160 120`,fill:`none`,"aria-hidden":`true`,focusable:`false`,dangerouslySetInnerHTML:{__html:i}}):null}export{t as ILLUSTRATION_BODIES,n as ILLUSTRATION_NAMES,r as default};
1
+ import{renderSvgNodes as e}from"./svgNodes.js";import{jsx as t}from"react/jsx-runtime";var n={"no-results":[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`rect`,{className:`wui-ill-card`,x:`30`,y:`16`,width:`64`,height:`80`,rx:`8`}],[`rect`,{className:`wui-ill-mute`,x:`40`,y:`28`,width:`30`,height:`5`,rx:`2.5`}],[`rect`,{className:`wui-ill-mute`,x:`40`,y:`40`,width:`44`,height:`5`,rx:`2.5`}],[`rect`,{className:`wui-ill-mute`,x:`40`,y:`52`,width:`36`,height:`5`,rx:`2.5`}],[`circle`,{className:`wui-ill-soft`,cx:`96`,cy:`66`,r:`22`}],[`circle`,{className:`wui-ill-accent-line`,cx:`96`,cy:`66`,r:`22`}],[`path`,{className:`wui-ill-accent-line wui-ill-thick`,d:`M112 82l14 14`}],[`path`,{className:`wui-ill-accent-line`,d:`M89 59l14 14M103 59l-14 14`}]],"no-data":[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`path`,{className:`wui-ill-ink`,d:`M30 20v76h100`}],[`rect`,{className:`wui-ill-dash`,x:`44`,y:`62`,width:`16`,height:`34`,rx:`3`}],[`rect`,{className:`wui-ill-dash`,x:`70`,y:`44`,width:`16`,height:`52`,rx:`3`}],[`rect`,{className:`wui-ill-dash`,x:`96`,y:`28`,width:`16`,height:`68`,rx:`3`}],[`circle`,{className:`wui-ill-accent`,cx:`122`,cy:`26`,r:`5`}]],"empty-inbox":[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`circle`,{className:`wui-ill-soft`,cx:`80`,cy:`24`,r:`14`}],[`path`,{className:`wui-ill-accent-line`,d:`M73 24l5 5 9-10`}],[`path`,{className:`wui-ill-card`,d:`M32 66l11-26a6 6 0 0 1 5.5-3.6h63a6 6 0 0 1 5.5 3.6L128 66v22a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8z`}],[`path`,{className:`wui-ill-ink`,d:`M32 66h30a6 6 0 0 1 6 6 12 12 0 0 0 24 0 6 6 0 0 1 6-6h30`}]],"no-notifications":[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`path`,{className:`wui-ill-ink`,d:`M80 22v-6`}],[`path`,{className:`wui-ill-card`,d:`M80 22c-14 0-24 10-24 24v14l-8 12h64l-8-12V46c0-14-10-24-24-24z`}],[`circle`,{className:`wui-ill-accent`,cx:`80`,cy:`84`,r:`6`}],[`path`,{className:`wui-ill-ink`,d:`M112 30h10l-10 12h10M126 16h7l-7 8h7`}]],"no-files":[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`path`,{className:`wui-ill-soft`,d:`M28 38a6 6 0 0 1 6-6h24l9 10h59a6 6 0 0 1 6 6v36a8 8 0 0 1-8 8H36a8 8 0 0 1-8-8z`}],[`path`,{className:`wui-ill-ink`,d:`M28 38a6 6 0 0 1 6-6h24l9 10h59a6 6 0 0 1 6 6v36a8 8 0 0 1-8 8H36a8 8 0 0 1-8-8z`}],[`path`,{className:`wui-ill-card`,d:`M28 58a6 6 0 0 1 6-6h92a6 6 0 0 1 6 6v28a8 8 0 0 1-8 8H36a8 8 0 0 1-8-8z`}],[`path`,{className:`wui-ill-accent-line`,d:`M80 66v16M72 74h16`}]],"no-access":[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`path`,{className:`wui-ill-ink`,d:`M62 54V44a18 18 0 0 1 36 0v10`}],[`rect`,{className:`wui-ill-card`,x:`52`,y:`54`,width:`56`,height:`42`,rx:`8`}],[`circle`,{className:`wui-ill-accent`,cx:`80`,cy:`71`,r:`5`}],[`path`,{className:`wui-ill-accent-line`,d:`M80 76v8`}]],offline:[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`path`,{className:`wui-ill-card`,d:`M54 88a15 15 0 0 1-1.5-29.9 24 24 0 0 1 46.3-4.6A17 17 0 0 1 108 88z`}],[`path`,{className:`wui-ill-accent-line wui-ill-thick`,d:`M46 36l72 60`}]],error:[[`ellipse`,{className:`wui-ill-mute`,cx:`80`,cy:`104`,rx:`44`,ry:`6`}],[`rect`,{className:`wui-ill-card`,x:`44`,y:`16`,width:`72`,height:`82`,rx:`8`}],[`rect`,{className:`wui-ill-mute`,x:`56`,y:`26`,width:`30`,height:`5`,rx:`2.5`}],[`circle`,{className:`wui-ill-danger`,cx:`80`,cy:`60`,r:`20`}],[`path`,{className:`wui-ill-danger-line`,d:`M80 50v12`}],[`circle`,{className:`wui-ill-danger-fill`,cx:`80`,cy:`70`,r:`2.5`}],[`rect`,{className:`wui-ill-mute`,x:`62`,y:`86`,width:`36`,height:`5`,rx:`2.5`}]]},r=Object.keys(n);function i({name:r,className:i}){let a=r&&Object.hasOwn(n,r)?n[r]:void 0;return a?/* @__PURE__ */ t(`svg`,{className:i?`wui-illustration ${i}`:`wui-illustration`,"data-illustration":r,viewBox:`0 0 160 120`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:e(a)}):null}export{n as ILLUSTRATION_BODIES,r as ILLUSTRATION_NAMES,i as default};
@@ -1 +1 @@
1
- import{formatFileSize as e}from"@webority/ui-elements/helpers";import{useEffect as t,useState as n}from"react";function r(e){return e instanceof File?`${e.name}:${e.size}`:e?.url||e?.name||`item`}function i(e){return e instanceof File?e.name:e?.name}function a(t){if(t instanceof File)return e(t.size);let n=t?.sizeBytes;return Number.isFinite(n)&&n>=0?e(n):null}function o(e){return typeof e?.url==`string`&&e.url.length>0?e.url:null}function s(e){let t=e?.progress;return typeof t==`number`&&t>=0&&t<=99?t:null}function c(e){return typeof e?.error==`string`&&e.error.length>0?e.error:null}function l(e,r){let[i,a]=n(null);return t(()=>{if(!r)a(null);else{if(e instanceof File){let t=URL.createObjectURL(e);return a(t),()=>URL.revokeObjectURL(t)}a(e?.url||null)}},[e,r]),i}export{r as keyOf,o as linkOf,i as nameOf,a as sizeLabelOf,c as uploadErrorOf,s as uploadProgressOf,l as useItemUrl};
1
+ import{formatFileSize as e}from"@webority/ui-elements/helpers";import{useEffect as t,useState as n}from"react";function r(e){return e instanceof File?`${e.name}:${e.size}`:e?.url||e?.name||`item`}function i(e){return e instanceof File?e.name:e?.name}function a(t){if(t instanceof File)return e(t.size);let n=t?.sizeBytes;return Number.isFinite(n)&&n!==void 0&&n>=0?e(n):null}function o(e){return e instanceof File?null:typeof e?.url==`string`&&e.url.length>0?e.url:null}function s(e){if(e instanceof File)return null;let t=e?.progress;return typeof t==`number`&&t>=0&&t<=99?t:null}function c(e){return e instanceof File?null:typeof e?.error==`string`&&e.error.length>0?e.error:null}function l(e,r){let[i,a]=n(null);return t(()=>{if(!r)a(null);else{if(e instanceof File){let t=URL.createObjectURL(e);return a(t),()=>URL.revokeObjectURL(t)}a(e?.url||null)}},[e,r]),i}export{r as keyOf,o as linkOf,i as nameOf,a as sizeLabelOf,c as uploadErrorOf,s as uploadProgressOf,l as useItemUrl};
@@ -1 +1 @@
1
- import{devWarn as e}from"./devWarn.js";var t=null;function n(){return t??=import(`@webority/theme/css/flags`).catch(n=>{t=null,e(`[@webority/ui-react] the country flags failed to load:`,n?.message)}),t}export{n as loadFlagStyles};
1
+ import{devWarn as e}from"./devWarn.js";var t=null;function n(){return t??=import(`@webority/theme/css/flags`).catch(n=>{t=null,e(`[@webority/ui-react] the country flags failed to load:`,typeof n==`object`&&n&&`message`in n?n.message:void 0)}),t}export{n as loadFlagStyles};
@@ -1 +1 @@
1
- var e=/* @__PURE__ */ new Set([`pvt`,`private`,`ltd`,`limited`,`llp`,`llc`,`inc`,`corp`,`co`]),t=/\p{L}/u,n=/\p{N}/u;function r(e){let t=``,n=0;for(let r of e)r===`(`?(n+=1,t+=` `):r===`)`?(n=Math.max(0,n-1),t+=` `):n===0&&(t+=r);return t}function i(e){return e.map(e=>{let t=e.toUpperCase();return Array.from(t).length===1?t:e}).join(``)}function a(a,o=2){let s=r(String(a??``)).split(/\s+/),c=e=>s.map(t=>Array.from(t).filter(t=>e.test(t))).filter(e=>e.length>0),l=c(t).filter(t=>!e.has(t.join(``).toLowerCase()));return l.length===0&&!s.some(e=>t.test(e))&&(l=c(n)),l.length===0?``:l.length===1?i(l[0].slice(0,o)):i([l[0][0],l[1][0]])}export{a as initialsOf};
1
+ var e=/* @__PURE__ */ new Set([`pvt`,`private`,`ltd`,`limited`,`llp`,`llc`,`inc`,`corp`,`co`]),t=/\p{L}/u,n=/\p{N}/u;function r(e){let t=``,n=0;for(let r of e)r===`(`?(n+=1,t+=` `):r===`)`?(n=Math.max(0,n-1),t+=` `):n===0&&(t+=r);return t}function i(e,t,n){let r=e[t];if(r===void 0)throw Error(`initialsOf: the ${n} is missing`);return r}function a(e){return e.map(e=>{let t=e.toUpperCase();return Array.from(t).length===1?t:e}).join(``)}function o(o,s=2){let c=r(String(o??``)).split(/\s+/),l=e=>c.map(t=>Array.from(t).filter(t=>e.test(t))).filter(e=>e.length>0),u=l(t).filter(t=>!e.has(t.join(``).toLowerCase()));if(u.length===0&&!c.some(e=>t.test(e))&&(u=l(n)),u.length===0)return``;let d=i(u,0,`first word`);if(u.length===1)return a(d.slice(0,s));let f=i(u,1,`second word`);return a([i(d,0,`first letter`),i(f,0,`second letter`)])}export{o as initialsOf};
@@ -1 +1 @@
1
- var e=/^[a-z][a-z0-9+.-]*:/i;function t(t){return typeof t==`string`&&t!==``&&!t.startsWith(`#`)&&!t.startsWith(`//`)&&!e.test(t)}function n(e,{href:n,to:r,external:i=!1,routeHref:a=!0}={}){return r?e&&!i?{Tag:e,linkProps:{to:r}}:{Tag:`a`,linkProps:{href:r}}:a&&e&&!i&&t(n)?{Tag:e,linkProps:{to:n}}:{Tag:`a`,linkProps:{href:n}}}export{t as isInAppHref,n as linkTarget};
1
+ var e=/^[a-z][a-z0-9+.-]*:/i;function t(t){return typeof t==`string`&&t!==``&&!t.startsWith(`#`)&&!t.startsWith(`//`)&&!e.test(t)}function n(e,{href:n,to:r,external:i=!1,routeHref:a=!0}={}){let o=e===`a`||i?void 0:e;return r?o?{Tag:o,linkProps:{to:r}}:{Tag:`a`,linkProps:{href:r}}:a&&o&&t(n)?{Tag:o,linkProps:{to:n}}:{Tag:`a`,linkProps:{href:n}}}export{t as isInAppHref,n as linkTarget};
@@ -1 +1 @@
1
- var e=0,t=null;function n(){if(typeof window>`u`)return()=>{};let{body:n,documentElement:r}=document;e===0&&(t={y:window.scrollY,position:n.style.position,top:n.style.top,width:n.style.width,htmlOverflow:r.style.overflow},n.style.position=`fixed`,n.style.top=`-${t.y}px`,n.style.width=`100%`,r.style.overflow=`hidden`,r.setAttribute(`data-wui-scroll-locked`,``)),e+=1;let i=!1;return()=>{i||(i=!0,--e,e>0||(n.style.position=t.position,n.style.top=t.top,n.style.width=t.width,r.style.overflow=t.htmlOverflow,r.removeAttribute(`data-wui-scroll-locked`),window.scrollTo({top:t.y,left:0,behavior:`instant`}),t=null))}}export{n as lockPageScroll};
1
+ var e=0,t=null;function n(){if(typeof window>`u`)return()=>{};let{body:n,documentElement:r}=document;e===0&&(t={y:window.scrollY,position:n.style.position,top:n.style.top,width:n.style.width,htmlOverflow:r.style.overflow},n.style.position=`fixed`,n.style.top=`-${t.y}px`,n.style.width=`100%`,r.style.overflow=`hidden`,r.setAttribute(`data-wui-scroll-locked`,``)),e+=1;let i=!1;return()=>{if(i||(i=!0,--e,e>0))return;let a=t;if(a===null)throw Error(`lockPageScroll: the last overlay released with no saved page styles; the page would stay fixed`);n.style.position=a.position,n.style.top=a.top,n.style.width=a.width,r.style.overflow=a.htmlOverflow,r.removeAttribute(`data-wui-scroll-locked`),window.scrollTo({top:a.y,left:0,behavior:`instant`}),t=null}}export{n as lockPageScroll};
@@ -1 +1 @@
1
- var e={L:0,M:1,Q:2,H:3},t=[1,0,3,2],n=[`L`,`M`,`Q`,`H`],r=3,i=3,a=40,o=10,s=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],c=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function l(t,n=`M`,{mask:r=-1,boostEcc:i=!0}={}){if(!Object.hasOwn(e,n))throw RangeError(`Unknown error correction level "${n}"`);if(!Number.isInteger(r)||r<-1||r>7)throw RangeError(`Mask must be -1 to 7`);let a=new TextEncoder().encode(String(t)),o=e[n],s=1,c=0;for(;c=d(a.length,s),!(c<=b(s,o)*8);s++)if(s>=40)throw RangeError(`Data too long for a QR code: ${a.length} bytes`);for(let e=1;e<=3;e++)i&&c<=b(s,e)*8&&(o=Math.max(o,e));let l=[];T(4,4,l),T(a.length,s<=9?8:16,l);for(let e of a)T(e,8,l);let u=b(s,o)*8;T(0,Math.min(4,u-l.length),l),T(0,(8-l.length%8)%8,l);for(let e=236;l.length<u;e^=253)T(e,8,l);let p=new Uint8Array(l.length/8);return l.forEach((e,t)=>{p[t>>>3]|=e<<7-(t&7)}),f(s,o,p,r)}function u(e,t=4){let{size:n}=e,r=``;for(let i=0;i<n;i++){let a=0;for(;a<n;){if(!e.isDark(i,a)){a++;continue}let o=a;for(;a<n&&e.isDark(i,a);)a++;let s=a-o;r+=`M${o+t} ${i+t}h${s}v1h-${s}z`}}return r}function d(e,t){let n=t<=9?8:16;return e>=1<<n?1/0:4+n+e*8}function f(e,r,i,a){let o=e*4+17,s=new Uint8Array(o*o),c=new Uint8Array(o*o),l=(e,t,n)=>{s[t*o+e]=+!!n,c[t*o+e]=1},u=e=>{let n=t[r]<<3|e,i=n;for(let e=0;e<10;e++)i=i<<1^(i>>>9)*1335;let a=(n<<10|i)^21522;for(let e=0;e<=5;e++)l(8,e,E(a,e));l(8,7,E(a,6)),l(8,8,E(a,7)),l(7,8,E(a,8));for(let e=9;e<15;e++)l(14-e,8,E(a,e));for(let e=0;e<8;e++)l(o-1-e,8,E(a,e));for(let e=8;e<15;e++)l(8,o-15+e,E(a,e));l(8,o-8,!0)},d=(e,t)=>{for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,s=t+n;a>=0&&a<o&&s>=0&&s<o&&l(a,s,i!==2&&i!==4)}},f=(e,t)=>{for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)l(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1)};for(let e=0;e<o;e++)l(6,e,e%2==0),l(e,6,e%2==0);d(3,3),d(o-4,3),d(3,o-4);let h=v(e,o),g=h.length;for(let e=0;e<g;e++)for(let t=0;t<g;t++)e===0&&t===0||e===0&&t===g-1||e===g-1&&t===0||f(h[e],h[t]);if(u(0),e>=7){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;let n=e<<12|t;for(let e=0;e<18;e++){let t=E(n,e),r=o-11+e%3,i=Math.floor(e/3);l(r,i,t),l(i,r,t)}}let _=x(i,e,r),y=0,b=_.length*8;for(let e=o-1;e>=1;e-=2){e===6&&(e=5);for(let t=0;t<o;t++)for(let n=0;n<2;n++){let r=e-n,i=e+1&2?t:o-1-t;!c[i*o+r]&&y<b&&(s[i*o+r]=+!!E(_[y>>>3],7-(y&7)),y++)}}let S=e=>{for(let t=0;t<o;t++)for(let n=0;n<o;n++)!c[t*o+n]&&p(e,n,t)&&(s[t*o+n]^=1)},C=a;if(C===-1){let e=1/0;for(let t=0;t<8;t++){S(t),u(t);let n=m(s,o);n<e&&(C=t,e=n),S(t)}}return S(C),u(C),Object.freeze({size:o,version:e,ecc:n[r],mask:C,isDark:(e,t)=>e>=0&&e<o&&t>=0&&t<o&&s[e*o+t]===1})}function p(e,t,n){switch(e){case 0:return(t+n)%2==0;case 1:return n%2==0;case 2:return t%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/3)+Math.floor(n/2))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;default:return((t+n)%2+t*n%3)%2==0}}function m(e,t){let n=0,s=(n,r)=>e[r*t+n]===1;for(let e=0;e<2;e++)for(let i=0;i<t;i++){let o=!1,c=0,l=[0,0,0,0,0,0,0];for(let u=0;u<t;u++){let d=e===0?s(u,i):s(i,u);d===o?(c++,c===5?n+=r:c>5&&n++):(_(c,l,t),o||(n+=h(l)*a),o=d,c=1)}n+=g(o,c,l,t)*a}for(let e=0;e<t-1;e++)for(let r=0;r<t-1;r++){let t=s(r,e);t===s(r+1,e)&&t===s(r,e+1)&&t===s(r+1,e+1)&&(n+=i)}let c=0;for(let t of e)c+=t;let l=t*t,u=Math.ceil(Math.abs(c*20-l*10)/l)-1;return n+=u*o,n}function h(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}function g(e,t,n,r){let i=t;return e&&(_(i,n,r),i=0),i+=r,_(i,n,r),h(n)}function _(e,t,n){let r=t[0]===0?e+n:e;t.pop(),t.unshift(r)}function v(e,t){if(e===1)return[];let n=Math.floor(e/7)+2,r=Math.floor((e*8+n*3+5)/(n*4-4))*2,i=[6];for(let e=t-7;i.length<n;e-=r)i.splice(1,0,e);return i}function y(e){let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function b(e,t){return Math.floor(y(e)/8)-s[t][e]*c[t][e]}function x(e,t,n){let r=c[n][t],i=s[n][t],a=Math.floor(y(t)/8),o=r-a%r,l=Math.floor(a/r),u=[],d=S(i);for(let t=0,n=0;t<r;t++){let r=Array.from(e.subarray(n,n+l-i+(t<o?0:1)));n+=r.length;let a=C(r,d);t<o&&r.push(0),u.push(r.concat(a))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!==l-i||n>=o)&&f.push(t[e])});return f}function S(e){let t=Array(e).fill(0);t[e-1]=1;let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=w(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=w(n,2)}return t}function C(e,t){let n=t.map(()=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>{n[r]^=w(t,e)})}return n}function w(e,t){let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function T(e,t,n){for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function E(e,t){return!!(e>>>t&1)}export{l as encodeQr,u as qrSvgPath};
1
+ var e={L:0,M:1,Q:2,H:3},t=[1,0,3,2],n=[`L`,`M`,`Q`,`H`],r=3,i=3,a=40,o=10,s=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],c=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function l(t,n=`M`,{mask:r=-1,boostEcc:i=!0}={}){if(!Object.hasOwn(e,n))throw RangeError(`Unknown error correction level "${n}"`);if(!Number.isInteger(r)||r<-1||r>7)throw RangeError(`Mask must be -1 to 7`);let a=new TextEncoder().encode(String(t)),o=e[n],s=1,c=0;for(;c=d(a.length,s),!(c<=x(s,o)*8);s++)if(s>=40)throw RangeError(`Data too long for a QR code: ${a.length} bytes`);for(let e=1;e<=3;e++)i&&c<=x(s,e)*8&&(o=Math.max(o,e));let l=[];E(4,4,l),E(a.length,s<=9?8:16,l);for(let e of a)E(e,8,l);let u=x(s,o)*8;E(0,Math.min(4,u-l.length),l),E(0,(8-l.length%8)%8,l);for(let e=236;l.length<u;e^=253)E(e,8,l);let p=new Uint8Array(l.length/8);return l.forEach((e,t)=>{let n=t>>>3;p[n]=O(p,n)|e<<7-(t&7)}),f(s,o,p,r)}function u(e,t=4){let{size:n}=e,r=``;for(let i=0;i<n;i++){let a=0;for(;a<n;){if(!e.isDark(i,a)){a++;continue}let o=a;for(;a<n&&e.isDark(i,a);)a++;let s=a-o;r+=`M${o+t} ${i+t}h${s}v1h-${s}z`}}return r}function d(e,t){let n=t<=9?8:16;return e>=1<<n?1/0:4+n+e*8}function f(e,r,i,a){let o=e*4+17,s=new Uint8Array(o*o),c=new Uint8Array(o*o),l=(e,t,n)=>{s[t*o+e]=+!!n,c[t*o+e]=1},u=e=>{let n=O(t,r)<<3|e,i=n;for(let e=0;e<10;e++)i=i<<1^(i>>>9)*1335;let a=(n<<10|i)^21522;for(let e=0;e<=5;e++)l(8,e,D(a,e));l(8,7,D(a,6)),l(8,8,D(a,7)),l(7,8,D(a,8));for(let e=9;e<15;e++)l(14-e,8,D(a,e));for(let e=0;e<8;e++)l(o-1-e,8,D(a,e));for(let e=8;e<15;e++)l(8,o-15+e,D(a,e));l(8,o-8,!0)},d=(e,t)=>{for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,s=t+n;a>=0&&a<o&&s>=0&&s<o&&l(a,s,i!==2&&i!==4)}},f=(e,t)=>{for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)l(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1)};for(let e=0;e<o;e++)l(6,e,e%2==0),l(e,6,e%2==0);d(3,3),d(o-4,3),d(3,o-4);let h=v(e,o),g=h.length;for(let e=0;e<g;e++)for(let t=0;t<g;t++)e===0&&t===0||e===0&&t===g-1||e===g-1&&t===0||f(O(h,e),O(h,t));if(u(0),e>=7){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;let n=e<<12|t;for(let e=0;e<18;e++){let t=D(n,e),r=o-11+e%3,i=Math.floor(e/3);l(r,i,t),l(i,r,t)}}let _=S(i,e,r),y=0,b=_.length*8;for(let e=o-1;e>=1;e-=2){e===6&&(e=5);for(let t=0;t<o;t++)for(let n=0;n<2;n++){let r=e-n,i=e+1&2?t:o-1-t;!c[i*o+r]&&y<b&&(s[i*o+r]=+!!D(O(_,y>>>3),7-(y&7)),y++)}}let x=e=>{for(let t=0;t<o;t++)for(let n=0;n<o;n++){let r=t*o+n;!c[r]&&p(e,n,t)&&(s[r]=O(s,r)^1)}},C=a;if(C===-1){let e=1/0;for(let t=0;t<8;t++){x(t),u(t);let n=m(s,o);n<e&&(C=t,e=n),x(t)}}return x(C),u(C),Object.freeze({size:o,version:e,ecc:O(n,r),mask:C,isDark:(e,t)=>e>=0&&e<o&&t>=0&&t<o&&s[e*o+t]===1})}function p(e,t,n){switch(e){case 0:return(t+n)%2==0;case 1:return n%2==0;case 2:return t%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/3)+Math.floor(n/2))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;default:return((t+n)%2+t*n%3)%2==0}}function m(e,t){let n=0,s=(n,r)=>e[r*t+n]===1;for(let e=0;e<2;e++)for(let i=0;i<t;i++){let o=!1,c=0,l=[0,0,0,0,0,0,0];for(let u=0;u<t;u++){let d=e===0?s(u,i):s(i,u);d===o?(c++,c===5?n+=r:c>5&&n++):(_(c,l,t),o||(n+=h(l)*a),o=d,c=1)}n+=g(o,c,l,t)*a}for(let e=0;e<t-1;e++)for(let r=0;r<t-1;r++){let t=s(r,e);t===s(r+1,e)&&t===s(r,e+1)&&t===s(r+1,e+1)&&(n+=i)}let c=0;for(let t of e)c+=t;let l=t*t,u=Math.ceil(Math.abs(c*20-l*10)/l)-1;return n+=u*o,n}function h(e){let t=t=>O(e,t),n=t(1),r=n>0&&t(2)===n&&t(3)===n*3&&t(4)===n&&t(5)===n;return(r&&t(0)>=n*4&&t(6)>=n?1:0)+(r&&t(6)>=n*4&&t(0)>=n?1:0)}function g(e,t,n,r){let i=t;return e&&(_(i,n,r),i=0),i+=r,_(i,n,r),h(n)}function _(e,t,n){let r=t[0]===0?e+n:e;t.pop(),t.unshift(r)}function v(e,t){if(e===1)return[];let n=Math.floor(e/7)+2,r=Math.floor((e*8+n*3+5)/(n*4-4))*2,i=[6];for(let e=t-7;i.length<n;e-=r)i.splice(1,0,e);return i}function y(e){let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function b(e,t,n){return O(O(e,t),n)}function x(e,t){return Math.floor(y(e)/8)-b(s,t,e)*b(c,t,e)}function S(e,t,n){let r=b(c,n,t),i=b(s,n,t),a=Math.floor(y(t)/8),o=r-a%r,l=Math.floor(a/r),u=[],d=C(i);for(let t=0,n=0;t<r;t++){let r=Array.from(e.subarray(n,n+l-i+(t<o?0:1)));n+=r.length;let a=w(r,d);t<o&&r.push(0),u.push(r.concat(a))}let f=[];for(let e=0;e<O(u,0).length;e++)u.forEach((t,n)=>{(e!==l-i||n>=o)&&f.push(O(t,e))});return f}function C(e){let t=Array(e).fill(0);t[e-1]=1;let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=T(O(t,e),n),e+1<t.length&&(t[e]=O(t,e)^O(t,e+1));n=T(n,2)}return t}function w(e,t){let n=t.map(()=>0);for(let r of e){let e=r^O(n,0);n.shift(),n.push(0),t.forEach((t,r)=>{n[r]=O(n,r)^T(t,e)})}return n}function T(e,t){let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function E(e,t,n){for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function D(e,t){return!!(e>>>t&1)}function O(e,t){let n=e[t];if(n===void 0)throw RangeError(`Index ${t} is outside its table`);return n}export{l as encodeQr,u as qrSvgPath};
@@ -1 +1 @@
1
- import{TONES as e}from"./vocabulary.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],i=[`start`,`center`],a=[`default`,`muted`],o=[`display`,`body`];function s(e,t){return r.includes(e)?e:t}function c(e){return r[Math.min(r.indexOf(e)+1,5)]}function l({className:e,src:n,alt:r,width:i,height:a}){return/* @__PURE__ */ t(`img`,{className:e,src:n,alt:r,width:i,height:a,loading:`lazy`,decoding:`async`})}function u({component:r,kind:i,title:a,as:o,eyebrow:s,subtitle:c,align:l,variant:u,eyebrowTone:d,titleFont:f,inset:p,actions:m,extraClass:h,className:g,rest:_,children:v}){if(a==null||a===``)throw Error(`${r} needs a title: every section opens with its heading.`);let y=o,b=_.id?`${_.id}-title`:void 0,x=e.includes(d),{style:S,...C}=_,w=p==null&&S===void 0?void 0:{"--wui-section-inset":p==null?void 0:`${p}px`,...S},T=[`wui-section`,`wui-section-${i}`,l===`center`?`wui-section-center`:``,u===`muted`?`wui-section-muted`:``,h,g].filter(Boolean).join(` `);return/* @__PURE__ */ t(`section`,{className:T,style:w,"aria-labelledby":b,...C,children:/* @__PURE__ */ n(`div`,{className:`wui-section-inner`,children:[/* @__PURE__ */ n(`div`,{className:`wui-section-head`,children:[s!=null&&s!==``&&/* @__PURE__ */ t(`div`,{className:x?`wui-section-eyebrow wui-section-eyebrow-pill wui-section-eyebrow-${d}`:`wui-section-eyebrow`,children:s}),/* @__PURE__ */ t(y,{className:f===`body`?`wui-section-title wui-section-title-body`:`wui-section-title`,id:b,children:a}),c!=null&&c!==``&&/* @__PURE__ */ t(`p`,{className:`wui-section-subtitle`,children:c}),m!=null&&m!==!1&&/* @__PURE__ */ t(`div`,{className:`wui-section-actions`,children:m})]}),v]})})}export{i as SECTION_ALIGNS,r as SECTION_HEADINGS,o as SECTION_TITLE_FONTS,a as SECTION_VARIANTS,l as SectionImage,u as default,c as itemHeading,s as sectionHeading};
1
+ import{TONES as e}from"./vocabulary.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],i=[`start`,`center`],a=[`default`,`muted`],o=[`display`,`body`];function s(e){return r.some(t=>t===e)}function c(e,t){return s(e)?e:t}function l(e){return r[Math.min(r.indexOf(e)+1,5)]??`h6`}function u({className:e,src:n,alt:r,width:i,height:a}){return/* @__PURE__ */ t(`img`,{className:e,src:n,alt:r,width:i,height:a,loading:`lazy`,decoding:`async`})}function d({component:r,kind:i,title:a,as:o,eyebrow:s,subtitle:c,align:l,variant:u,eyebrowTone:d,titleFont:f,inset:p,actions:m,extraClass:h,className:g,rest:_,children:v}){if(a==null||a===``)throw Error(`${r} needs a title: every section opens with its heading.`);let y=o,b=_.id?`${_.id}-title`:void 0,x=e.includes(d??``),{style:S,...C}=_,w=p==null&&S===void 0?void 0:{"--wui-section-inset":p==null?void 0:`${p}px`,...S},T=[`wui-section`,`wui-section-${i}`,l===`center`?`wui-section-center`:``,u===`muted`?`wui-section-muted`:``,h,g].filter(Boolean).join(` `);return/* @__PURE__ */ t(`section`,{className:T,style:w,"aria-labelledby":b,...C,children:/* @__PURE__ */ n(`div`,{className:`wui-section-inner`,children:[/* @__PURE__ */ n(`div`,{className:`wui-section-head`,children:[s!=null&&s!==``&&/* @__PURE__ */ t(`div`,{className:x?`wui-section-eyebrow wui-section-eyebrow-pill wui-section-eyebrow-${d}`:`wui-section-eyebrow`,children:s}),/* @__PURE__ */ t(y,{className:f===`body`?`wui-section-title wui-section-title-body`:`wui-section-title`,id:b,children:a}),c!=null&&c!==``&&/* @__PURE__ */ t(`p`,{className:`wui-section-subtitle`,children:c}),m!=null&&m!==!1&&/* @__PURE__ */ t(`div`,{className:`wui-section-actions`,children:m})]}),v]})})}export{i as SECTION_ALIGNS,r as SECTION_HEADINGS,o as SECTION_TITLE_FONTS,a as SECTION_VARIANTS,u as SectionImage,d as default,l as itemHeading,c as sectionHeading};
@@ -0,0 +1 @@
1
+ import{createElement as e}from"react";function t(n){return n.map(([n,r,i],a)=>e(n,{key:a,...r},i?t(i):void 0))}export{t as renderSvgNodes};
@@ -0,0 +1 @@
1
+ import{isElementDefined as e,whenElementDefined as t}from"@webority/ui-elements/helpers";import{useEffect as n,useState as r}from"react";function i(i,a){let[o,s]=r(()=>e(i)),[c,l]=r(null);if(n(()=>{if(o)return;let e=!0;return a().then(()=>t(i)).then(()=>{e&&s(!0)},t=>{e&&l(Error(`<${i}> failed to load`,{cause:t}))}),()=>{e=!1}},[i,a,o]),c)throw c;return o}export{i as default};
@@ -1 +1 @@
1
- import{acceptDroppedFiles as e}from"@webority/ui-elements/helpers";import{useRef as t,useState as n}from"react";function r({accept:r,maxSizeMb:i,multiple:a,disabled:o=!1,onFiles:s,onReject:c}){let[l,u]=n(!1),d=t(0);return{dragOver:l,dropProps:{onDragEnter:e=>{e.preventDefault(),o||(d.current+=1,u(!0))},onDragOver:e=>{e.preventDefault(),o||u(!0)},onDragLeave:e=>{e.preventDefault(),o||(d.current=Math.max(0,d.current-1),d.current===0&&u(!1))},onDrop:t=>{if(t.preventDefault(),d.current=0,u(!1),o)return;let{files:n,rejections:l}=e(t.dataTransfer?.files,{accept:r,maxSizeMb:i,multiple:a});n.length&&s(n),l.length&&c(l[0])}}}}export{r as default};
1
+ import{acceptDroppedFiles as e}from"@webority/ui-elements/helpers";import{useRef as t,useState as n}from"react";function r({accept:r,maxSizeMb:i,multiple:a,disabled:o=!1,onFiles:s,onReject:c}){let[l,u]=n(!1),d=t(0);return{dragOver:l,dropProps:{onDragEnter:e=>{e.preventDefault(),o||(d.current+=1,u(!0))},onDragOver:e=>{e.preventDefault(),o||u(!0)},onDragLeave:e=>{e.preventDefault(),o||(d.current=Math.max(0,d.current-1),d.current===0&&u(!1))},onDrop:t=>{if(t.preventDefault(),d.current=0,u(!1),o)return;let{files:n,rejections:l}=e(t.dataTransfer?.files,{accept:r,maxSizeMb:i,multiple:a});n.length&&s(n);let f=l[0];f&&c(f)}}}}export{r as default};
@@ -1 +1 @@
1
- import{useCallback as e,useEffect as t,useState as n}from"react";var r=e=>`wui-view:${e}`;function i(e,t){try{let n=window.localStorage.getItem(r(e));if(!n)return t;let i=JSON.parse(n);return{hidden:Array.isArray(i.hidden)?i.hidden:t.hidden,sort:i.sort&&typeof i.sort.key==`string`?i.sort:t.sort}}catch{return t}}function a(a,{sort:o,defaultHidden:s=[]}={}){let[c,l]=n(()=>i(a,{hidden:s,sort:o}));t(()=>{try{window.localStorage.setItem(r(a),JSON.stringify(c))}catch{}},[a,c]);let u=e(e=>l(t=>({...t,hidden:t.hidden.includes(e)?t.hidden.filter(t=>t!==e):[...t.hidden,e]})),[]),d=e(e=>l(t=>({...t,sort:typeof e==`function`?e(t.sort):e})),[]);return{hiddenColumns:c.hidden,toggleColumn:u,sort:c.sort,setSort:d}}export{a as useTableView};
1
+ import{useCallback as e,useEffect as t,useState as n}from"react";var r=e=>`wui-view:${e}`;function i(e){return typeof e==`object`&&!!e}function a(e){return i(e)&&typeof e.key==`string`}function o(e,t){try{let n=window.localStorage.getItem(r(e));if(!n)return t;let o=JSON.parse(n);return i(o)?{hidden:Array.isArray(o.hidden)?o.hidden:t.hidden,sort:a(o.sort)?o.sort:t.sort}:t}catch{return t}}function s(i,{sort:a,defaultHidden:s=[]}={}){let[c,l]=n(()=>o(i,{hidden:s,sort:a}));t(()=>{try{window.localStorage.setItem(r(i),JSON.stringify(c))}catch{}},[i,c]);let u=e(e=>l(t=>({...t,hidden:t.hidden.includes(e)?t.hidden.filter(t=>t!==e):[...t.hidden,e]})),[]),d=e(e=>l(t=>({...t,sort:typeof e==`function`?e(t.sort):e})),[]);return{hiddenColumns:c.hidden,toggleColumn:u,sort:c.sort,setSort:d}}export{s as useTableView};
@@ -1 +1 @@
1
- var e=`data-wui`,t=`data-wui-props`,n=`data-canvas`,r=`data-canvas-at`,i=`__WUI_MARKERS__`,a=`props`,o=/* @__PURE__ */ new Set([`children`,`className`,`style`,`id`,`key`,`ref`,`as`,`linkComponent`,`src`]),s=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`;function c(){return globalThis[i]===a}function l(i,a){let l={[e]:i},u=a?.[n];typeof u==`string`&&u!==``&&(l[n]=u);let d=a?.[r];if(typeof d==`string`&&d!==``&&(l[r]=d),!c())return l;let f={};for(let[e,t]of Object.entries(a||{}))o.has(e)||e.startsWith(`aria-`)||e.startsWith(`data-`)||/^on[A-Z]/.test(e)||s(t)&&(f[e]=t);return l[t]=JSON.stringify(f),l}function u(e,t){let{[n]:i,[r]:a,...o}=t??{};return{marker:l(e,t),props:o}}export{r as WUI_CANVAS_AT_ATTRIBUTE,n as WUI_CANVAS_KEY_ATTRIBUTE,i as WUI_MARKERS_GLOBAL,a as WUI_MARKERS_PROPS_MODE,e as WUI_MARKER_ATTRIBUTE,t as WUI_MARKER_PROPS_ATTRIBUTE,u as splitMarkerProps,l as wuiMarkerAttributes,c as wuiMarkerPropsOn};
1
+ var e=`data-wui`,t=`data-wui-props`,n=`data-canvas`,r=`data-canvas-at`,i=`__WUI_MARKERS__`,a=`props`,o=/* @__PURE__ */ new Set([`children`,`className`,`style`,`id`,`key`,`ref`,`as`,`linkComponent`,`src`]),s=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`,c=e=>!(`data-canvas`in e)&&!(`data-canvas-at`in e),l=e=>typeof e==`object`&&!!e;function u(){return globalThis[i]===a}function d(i,a){let c=l(a)?a:void 0,d={[e]:i},f=c?.[n];typeof f==`string`&&f!==``&&(d[n]=f);let p=c?.[r];if(typeof p==`string`&&p!==``&&(d[r]=p),!u())return d;let m={};for(let[e,t]of Object.entries(c||{}))o.has(e)||e.startsWith(`aria-`)||e.startsWith(`data-`)||/^on[A-Z]/.test(e)||s(t)&&(m[e]=t);return d[t]=JSON.stringify(m),d}function f(e,t){let{[n]:i,[r]:a,...o}=l(t)?t:{};if(!c(o))throw Error(`${e}: the marker keys were not removed from its props.`);return{marker:d(e,t),props:o}}export{r as WUI_CANVAS_AT_ATTRIBUTE,n as WUI_CANVAS_KEY_ATTRIBUTE,i as WUI_MARKERS_GLOBAL,a as WUI_MARKERS_PROPS_MODE,e as WUI_MARKER_ATTRIBUTE,t as WUI_MARKER_PROPS_ATTRIBUTE,f as splitMarkerProps,d as wuiMarkerAttributes,u as wuiMarkerPropsOn};
@@ -1,4 +1,4 @@
1
- var e=/^\s*```/,t=/^\s*```\s*(\S*)/,n=/^\s{0,3}(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/,r=/^\s*([-*_])(\s*\1){2,}\s*$/,i=/^(\s*)[-*+]\s+(.*)$/,a=/^(\s*)(\d{1,9})[.)]\s+(.*)$/,o=/^\s*>\s?(.*)$/,s=/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)*\|?\s*$/,c=e=>e.includes(`|`);function l(e){let t=e.trim();return t.startsWith(`|`)&&(t=t.slice(1)),t.endsWith(`|`)&&(t=t.slice(0,-1)),t.split(`|`).map(e=>e.trim())}function u(e,t){let n=e[t];if(n===void 0)throw Error(`startsTable was called past the last source line`);let r=e[t+1];return r!==void 0&&c(n)&&r.includes(`|`)&&s.test(r)}function d(t,s){let c=t[s];if(c===void 0)throw Error(`startsBlock was called past the last source line`);return e.test(c)||o.test(c)||i.test(c)||a.test(c)||n.test(c)||r.test(c)||u(t,s)}function f(e){let t=e.replace(/\t/g,` `).length;return Math.min(Math.floor(t/2),4)}function p(e){let t=a.exec(e);if(t){let e=t[1],n=t[2],r=t[3];if(e===void 0||n===void 0||r===void 0)throw Error(`The ordered list pattern always captures its indent, number and text`);return{text:r,depth:f(e),ordered:!0,number:Number(n)}}let n=i.exec(e);if(n){let e=n[1],t=n[2];if(e===void 0||t===void 0)throw Error(`The bullet list pattern always captures its indent and text`);return{text:t,depth:f(e),ordered:!1,number:0}}return null}function m(i){let a=(i??``).replace(/\r\n?/g,`
1
+ var e=/^\s*```/,t=/^\s*```\s*(\S*)/,n=/^\s{0,3}(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/,r=/^\s*([-*_])(\s*\1){2,}\s*$/,i=/^(\s*)[-*+]\s+(.*)$/,a=/^(\s*)(\d{1,9})[.)]\s+(.*)$/,o=/^\s*>\s?(.*)$/,s=/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)*\|?\s*$/,c=[1,2,3,4,5,6],l=e=>e.includes(`|`);function u(e){let t=e.trim();return t.startsWith(`|`)&&(t=t.slice(1)),t.endsWith(`|`)&&(t=t.slice(0,-1)),t.split(`|`).map(e=>e.trim())}function d(e,t){let n=e[t];if(n===void 0)throw Error(`startsTable was called past the last source line`);let r=e[t+1];return r!==void 0&&l(n)&&r.includes(`|`)&&s.test(r)}function f(t,s){let c=t[s];if(c===void 0)throw Error(`startsBlock was called past the last source line`);return e.test(c)||o.test(c)||i.test(c)||a.test(c)||n.test(c)||r.test(c)||d(t,s)}function p(e){let t=e.replace(/\t/g,` `).length;return Math.min(Math.floor(t/2),4)}function m(e){let t=a.exec(e);if(t){let e=t[1],n=t[2],r=t[3];if(e===void 0||n===void 0||r===void 0)throw Error(`The ordered list pattern always captures its indent, number and text`);return{text:r,depth:p(e),ordered:!0,number:Number(n)}}let n=i.exec(e);if(n){let e=n[1],t=n[2];if(e===void 0||t===void 0)throw Error(`The bullet list pattern always captures its indent and text`);return{text:t,depth:p(e),ordered:!1,number:0}}return null}function h(i){let a=(i??``).replace(/\r\n?/g,`
2
2
  `).split(`
3
- `),s=[],f=0;for(;f<a.length;){let i=a[f];if(i===void 0)throw Error(`parseMarkdown read past the last source line`);if(!i.trim()){f+=1;continue}if(e.test(i)){let n=t.exec(i)?.[1]||null,r=[];for(f+=1;f<a.length;){let t=a[f];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);if(e.test(t))break;r.push(t),f+=1}f+=1,s.push({type:`code`,text:r.join(`
4
- `),language:n});continue}if(u(a,f)){let e=l(i),t=[];for(f+=2;f<a.length;){let e=a[f];if(e===void 0)throw Error(`parseMarkdown read past the last source line`);if(!e.trim()||!c(e))break;t.push(l(e)),f+=1}s.push({type:`table`,header:e,rows:t});continue}if(r.test(i)){s.push({type:`rule`}),f+=1;continue}let m=n.exec(i);if(m){let e=m[1],t=m[2];if(e===void 0||t===void 0)throw Error(`The heading pattern always captures its hashes and text`);s.push({type:`heading`,level:e.length,text:t}),f+=1;continue}if(o.test(i)){let e=[];for(;f<a.length;){let t=a[f];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);let n=o.exec(t);if(!n)break;let r=n[1];if(r===void 0)throw Error(`The quote pattern always captures its text`);e.push(r),f+=1}s.push({type:`quote`,lines:e});continue}let h=p(i);if(h){let e=[];for(;f<a.length;){let t=a[f];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);if(!t.trim())break;let n=p(t);if(n){if(n.depth===0&&n.ordered!==h.ordered)break;e.push(n)}else if(d(a,f))break;else{let n=e[e.length-1];if(n===void 0)throw Error(`A list continuation line follows a list with no item`);n.text+=` ${t.trim()}`}f+=1}s.push({type:`list`,ordered:h.ordered,start:h.ordered?h.number:1,items:e});continue}let g=[i];for(f+=1;f<a.length;){let e=a[f];if(e===void 0)throw Error(`parseMarkdown read past the last source line`);if(!e.trim()||d(a,f))break;g.push(e),f+=1}s.push({type:`paragraph`,lines:g})}return s.map((e,t)=>({...e,key:t}))}export{m as parseMarkdown};
3
+ `),s=[],p=0;for(;p<a.length;){let i=a[p];if(i===void 0)throw Error(`parseMarkdown read past the last source line`);if(!i.trim()){p+=1;continue}if(e.test(i)){let n=t.exec(i)?.[1]||null,r=[];for(p+=1;p<a.length;){let t=a[p];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);if(e.test(t))break;r.push(t),p+=1}p+=1,s.push({type:`code`,text:r.join(`
4
+ `),language:n});continue}if(d(a,p)){let e=u(i),t=[];for(p+=2;p<a.length;){let e=a[p];if(e===void 0)throw Error(`parseMarkdown read past the last source line`);if(!e.trim()||!l(e))break;t.push(u(e)),p+=1}s.push({type:`table`,header:e,rows:t});continue}if(r.test(i)){s.push({type:`rule`}),p+=1;continue}let h=n.exec(i);if(h){let e=h[1],t=h[2];if(e===void 0||t===void 0)throw Error(`The heading pattern always captures its hashes and text`);let n=c[e.length-1];if(n===void 0)throw Error(`The heading pattern always captures one to six hashes`);s.push({type:`heading`,level:n,text:t}),p+=1;continue}if(o.test(i)){let e=[];for(;p<a.length;){let t=a[p];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);let n=o.exec(t);if(!n)break;let r=n[1];if(r===void 0)throw Error(`The quote pattern always captures its text`);e.push(r),p+=1}s.push({type:`quote`,lines:e});continue}let g=m(i);if(g){let e=[];for(;p<a.length;){let t=a[p];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);if(!t.trim())break;let n=m(t);if(n){if(n.depth===0&&n.ordered!==g.ordered)break;e.push(n)}else if(f(a,p))break;else{let n=e[e.length-1];if(n===void 0)throw Error(`A list continuation line follows a list with no item`);n.text+=` ${t.trim()}`}p+=1}s.push({type:`list`,ordered:g.ordered,start:g.ordered?g.number:1,items:e});continue}let _=[i];for(p+=1;p<a.length;){let e=a[p];if(e===void 0)throw Error(`parseMarkdown read past the last source line`);if(!e.trim()||f(a,p))break;_.push(e),p+=1}s.push({type:`paragraph`,lines:_})}return s.map((e,t)=>({...e,key:t}))}export{h as parseMarkdown};
@@ -1,49 +1,46 @@
1
- /**
2
- * Collapsible panes — an FAQ list, a set of grouped settings, a "more detail"
3
- * disclosure. Renders the theme's `.wui-accordion` markup, the same as the Razor
4
- * `<app-accordion>`.
5
- *
6
- * Height animates through `grid-template-rows: 0fr -> 1fr` in CSS, so a pane
7
- * opens to its natural height with no measuring and no max-height guess. This
8
- * component only tracks which panes are open.
9
- *
10
- * @param {object} props
11
- * @param {{ key?: string, title: import('react').ReactNode, content: import('react').ReactNode, open?: boolean, count?: number }[]} props.items
12
- * @param {boolean} [props.multiple]
13
- * @param {string[]} [props.openItems]
14
- * @param {"bordered"|"flat"} [props.variant]
15
- * @param {string} [props.id]
16
- * @param {string} [props.closeLabel] Set on every trigger as `data-close-label`, for a stylesheet to show while the pane is open. Omitted when unset.
17
- * @param {string} [props.className]
18
- */
19
- export default function AppAccordion(props: {
20
- /** The panes, each with a title row and a content body. */
21
- items: {
22
- key?: string;
23
- title: import('react').ReactNode;
24
- content: import('react').ReactNode;
25
- open?: boolean;
26
- count?: number;
27
- }[];
1
+ import { type ComponentPropsWithoutRef, type ReactElement, type ReactNode } from "react";
2
+ export interface AccordionItem {
3
+ key?: string | undefined;
4
+ title: ReactNode;
5
+ content: ReactNode;
6
+ open?: boolean | undefined;
7
+ count?: number | undefined;
8
+ }
9
+ export interface AppAccordionProps extends ComponentPropsWithoutRef<"div"> {
10
+ /**
11
+ * The panes, each with a title row and a content body.
12
+ * @default []
13
+ */
14
+ items?: readonly AccordionItem[] | undefined;
28
15
  /**
29
16
  * Allows more than one pane open at a time. Leave it off for a list the reader scans.
30
17
  * @default false
31
18
  */
32
- multiple?: boolean;
19
+ multiple?: boolean | undefined;
33
20
  /** The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens. */
34
- openItems?: string[];
21
+ openItems?: readonly string[] | undefined;
35
22
  /**
36
23
  * bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.
37
24
  * @default "bordered"
38
25
  */
39
- variant?: "bordered" | "flat";
26
+ variant?: "bordered" | "flat" | undefined;
40
27
  /** Prefix for the generated pane ids. Set it when a pane needs a stable anchor to link to. */
41
- id?: string;
28
+ id?: string | undefined;
42
29
  /** The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open. Omitted when unset. */
43
- closeLabel?: string;
30
+ closeLabel?: string | undefined;
44
31
  /**
45
32
  * Extra classes on the list.
46
33
  * @default ""
47
34
  */
48
- className?: string;
49
- }): import("react").JSX.Element;
35
+ className?: string | undefined;
36
+ }
37
+ /**
38
+ * Collapsible panes — an FAQ list, a set of grouped settings, a "more detail"
39
+ * disclosure. Renders the theme's `.wui-accordion` markup, the same as the Razor
40
+ * `<app-accordion>`.
41
+ *
42
+ * Height animates through `grid-template-rows: 0fr -> 1fr` in CSS, so a pane
43
+ * opens to its natural height with no measuring and no max-height guess. This
44
+ * component only tracks which panes are open.
45
+ */
46
+ export default function AppAccordion(props: AppAccordionProps): ReactElement;
@@ -1,3 +1,31 @@
1
+ import type { ComponentPropsWithoutRef, JSX } from "react";
2
+ import type { AppLinkComponent } from "../lib/linkTarget.ts";
3
+ export interface AccountSwitcherAccount {
4
+ id: string;
5
+ name: string;
6
+ description?: string | undefined;
7
+ photo?: string | undefined;
8
+ badge?: string | undefined;
9
+ href?: string | undefined;
10
+ }
11
+ export interface AppAccountSwitcherProps extends Omit<ComponentPropsWithoutRef<"div">, "onSelect"> {
12
+ /**
13
+ * The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.
14
+ * @default []
15
+ */
16
+ accounts?: AccountSwitcherAccount[] | undefined;
17
+ /** The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none. */
18
+ currentId?: string | undefined;
19
+ /** Fired for a row with no href. No navigation. */
20
+ onSelect?: ((account: AccountSwitcherAccount) => void) | undefined;
21
+ /**
22
+ * The heading above the list. It is also the group's accessible name.
23
+ * @default "Switch account"
24
+ */
25
+ label?: string | undefined;
26
+ /** The product's router link, which receives `to`. Renders href rows with `to`, like AppWorkspaceSwitcher. */
27
+ linkComponent?: AppLinkComponent | undefined;
28
+ }
1
29
  /**
2
30
  * The accounts a person can switch to, drawn as a labelled list for the user menu slot
3
31
  * (`userMenu.section` of `AppShell`). The current account is marked, not chosen again.
@@ -8,34 +36,5 @@
8
36
  *
9
37
  * NOTE: the exported component must stay the FIRST destructured function in this file,
10
38
  * because the parity check reads the first signature it finds as the component's public props.
11
- *
12
- * @param {object} props
13
- * @param {{ id: string, name: string, description?: string, photo?: string, badge?: string, href?: string }[]} [props.accounts]
14
- * @param {string} [props.currentId] Falls back to the first account when it matches none.
15
- * @param {(account: object) => void} [props.onSelect] Fired for a row with no href. No navigation.
16
- * @param {string} [props.label] Heading above the list, default "Switch account".
17
- * @param {import('react').ElementType} [props.linkComponent] Renders href rows with `to`, like AppWorkspaceSwitcher.
18
39
  */
19
- export default function AppAccountSwitcher(props: {
20
- /**
21
- * The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.
22
- * @default []
23
- */
24
- accounts?: {
25
- id: string;
26
- name: string;
27
- description?: string;
28
- photo?: string;
29
- badge?: string;
30
- href?: string;
31
- }[];
32
- /** The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none. */
33
- currentId?: string;
34
- onSelect?: (account: object) => void;
35
- /**
36
- * The heading above the list. It is also the group's accessible name.
37
- * @default "Switch account"
38
- */
39
- label?: string;
40
- linkComponent?: import('react').ElementType;
41
- }): import("react").JSX.Element | null;
40
+ export default function AppAccountSwitcher(props: AppAccountSwitcherProps): JSX.Element | null;