@webority/ui-react 0.83.6 → 0.85.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 (270) hide show
  1. package/dist/components/AppAccordion.js +1 -1
  2. package/dist/components/AppActionIcon.js +1 -1
  3. package/dist/components/AppAlert.js +1 -1
  4. package/dist/components/AppAsyncBlock.js +1 -1
  5. package/dist/components/AppAutocomplete.js +1 -1
  6. package/dist/components/AppAvatar.js +1 -1
  7. package/dist/components/AppAvatarGroup.js +1 -1
  8. package/dist/components/AppAvatarPicker.js +1 -1
  9. package/dist/components/AppBadge.js +1 -1
  10. package/dist/components/AppBanner.js +1 -1
  11. package/dist/components/AppBreadcrumbs.js +1 -1
  12. package/dist/components/AppButton.js +1 -1
  13. package/dist/components/AppButtonGroup.js +1 -1
  14. package/dist/components/AppCalendar.js +1 -1
  15. package/dist/components/AppCard.js +1 -1
  16. package/dist/components/AppCarousel.js +1 -1
  17. package/dist/components/AppChart.js +1 -1
  18. package/dist/components/AppChartCard.js +1 -1
  19. package/dist/components/AppCheckbox.js +1 -1
  20. package/dist/components/AppChip.js +1 -1
  21. package/dist/components/AppChipGroup.js +1 -1
  22. package/dist/components/AppChoiceCard.js +1 -1
  23. package/dist/components/AppChoiceChip.js +1 -1
  24. package/dist/components/AppCodeBlock.js +1 -1
  25. package/dist/components/AppColorField.js +1 -1
  26. package/dist/components/AppColumnMenu.js +1 -1
  27. package/dist/components/AppCommandPalette.js +1 -1
  28. package/dist/components/AppCommentThread.js +1 -1
  29. package/dist/components/AppCompareTable.js +1 -1
  30. package/dist/components/AppConfirmDialog.js +1 -1
  31. package/dist/components/AppConsentBanner.js +1 -1
  32. package/dist/components/AppContextMenu.js +1 -1
  33. package/dist/components/AppCopyButton.js +1 -1
  34. package/dist/components/AppCountrySelect.js +1 -1
  35. package/dist/components/AppDashboardCell.js +1 -1
  36. package/dist/components/AppDashboardGrid.js +1 -1
  37. package/dist/components/AppDataTable.js +1 -1
  38. package/dist/components/AppDatePicker.js +1 -1
  39. package/dist/components/AppDateRangePicker.js +1 -1
  40. package/dist/components/AppDescriptions.js +1 -1
  41. package/dist/components/AppDrawer.js +1 -1
  42. package/dist/components/AppDropZone.js +1 -1
  43. package/dist/components/AppDropdown.js +1 -1
  44. package/dist/components/AppDueDate.js +1 -1
  45. package/dist/components/AppEmptyState.js +1 -1
  46. package/dist/components/AppErrorSummary.js +1 -1
  47. package/dist/components/AppFileAttachment.js +1 -1
  48. package/dist/components/AppFilePicker.js +1 -1
  49. package/dist/components/AppFileViewer.js +1 -1
  50. package/dist/components/AppFilterBar.js +1 -1
  51. package/dist/components/AppFloatingDock.js +1 -1
  52. package/dist/components/AppFormActions.js +1 -1
  53. package/dist/components/AppFormRow.js +1 -1
  54. package/dist/components/AppFormSection.js +1 -1
  55. package/dist/components/AppHoverCard.js +1 -1
  56. package/dist/components/AppIcon.js +1 -1
  57. package/dist/components/AppInfoList.js +1 -1
  58. package/dist/components/AppInfoTip.js +1 -1
  59. package/dist/components/AppInlineEdit.js +1 -1
  60. package/dist/components/AppInput.js +1 -1
  61. package/dist/components/AppInputGroup.js +1 -1
  62. package/dist/components/AppKanban.js +1 -1
  63. package/dist/components/AppKbd.js +1 -1
  64. package/dist/components/AppKpiTile.js +1 -1
  65. package/dist/components/AppLightbox.js +1 -1
  66. package/dist/components/AppLink.js +1 -1
  67. package/dist/components/AppLogoPicker.js +1 -1
  68. package/dist/components/AppMarkdown.js +1 -1
  69. package/dist/components/AppMentionInput.js +1 -1
  70. package/dist/components/AppMenubar.js +1 -1
  71. package/dist/components/AppMeter.js +1 -1
  72. package/dist/components/AppMetricStrip.js +1 -1
  73. package/dist/components/AppModal.js +1 -1
  74. package/dist/components/AppMultiSelect.js +1 -1
  75. package/dist/components/AppNavigationMenu.js +1 -1
  76. package/dist/components/AppNotificationCenter.js +1 -1
  77. package/dist/components/AppNumberInput.js +1 -1
  78. package/dist/components/AppOnboardingChecklist.js +1 -1
  79. package/dist/components/AppOtpInput.js +1 -1
  80. package/dist/components/AppPageHeader.js +1 -1
  81. package/dist/components/AppPagination.js +1 -1
  82. package/dist/components/AppPhoneNumberInput.js +1 -1
  83. package/dist/components/AppPricingCard.js +1 -1
  84. package/dist/components/AppProgress.js +1 -1
  85. package/dist/components/AppQrCode.js +1 -1
  86. package/dist/components/AppRadio.js +1 -1
  87. package/dist/components/AppRadioGroup.js +1 -1
  88. package/dist/components/AppRating.js +1 -1
  89. package/dist/components/AppRecordPager.js +1 -1
  90. package/dist/components/AppRelativeTime.js +1 -1
  91. package/dist/components/AppRepeater.js +1 -1
  92. package/dist/components/AppRequiredMark.js +1 -1
  93. package/dist/components/AppResizable.js +1 -1
  94. package/dist/components/AppResizableHandle.js +1 -1
  95. package/dist/components/AppResizablePanel.js +1 -1
  96. package/dist/components/AppResourceCard.js +1 -1
  97. package/dist/components/AppResult.js +1 -1
  98. package/dist/components/AppRichText.js +1 -1
  99. package/dist/components/AppRollingNumber.js +1 -1
  100. package/dist/components/AppRouteError.js +1 -1
  101. package/dist/components/AppScoreScale.js +1 -1
  102. package/dist/components/AppScrollbar.js +1 -1
  103. package/dist/components/AppSearch.js +1 -1
  104. package/dist/components/AppSectionCallToAction.js +1 -1
  105. package/dist/components/AppSectionFaq.js +1 -1
  106. package/dist/components/AppSectionFeatures.js +1 -1
  107. package/dist/components/AppSectionHero.js +1 -1
  108. package/dist/components/AppSectionLogos.js +1 -1
  109. package/dist/components/AppSectionPricing.js +1 -1
  110. package/dist/components/AppSectionTestimonials.js +1 -1
  111. package/dist/components/AppSegmented.js +1 -1
  112. package/dist/components/AppSelect.js +1 -1
  113. package/dist/components/AppSelectMini.js +1 -1
  114. package/dist/components/AppShell.js +1 -1
  115. package/dist/components/AppShortcutLegend.js +1 -1
  116. package/dist/components/AppShowMore.js +1 -1
  117. package/dist/components/AppSidebarMenu.js +1 -1
  118. package/dist/components/AppSkeleton.js +1 -1
  119. package/dist/components/AppSlider.js +1 -1
  120. package/dist/components/AppSortableList.js +1 -1
  121. package/dist/components/AppSparkline.js +1 -1
  122. package/dist/components/AppSpinner.js +1 -1
  123. package/dist/components/AppSplash.js +1 -1
  124. package/dist/components/AppSplitButton.js +1 -1
  125. package/dist/components/AppSplitView.js +1 -1
  126. package/dist/components/AppStatusBadge.js +1 -1
  127. package/dist/components/AppStepper.js +1 -1
  128. package/dist/components/AppSwitch.js +1 -1
  129. package/dist/components/AppTableEmptyState.js +1 -1
  130. package/dist/components/AppTablePagination.js +1 -1
  131. package/dist/components/AppTableToolbar.js +1 -1
  132. package/dist/components/AppTabs.js +1 -1
  133. package/dist/components/AppTagInput.js +1 -1
  134. package/dist/components/AppTextarea.js +1 -1
  135. package/dist/components/AppThemeToggle.js +1 -1
  136. package/dist/components/AppTimePicker.js +1 -1
  137. package/dist/components/AppTimeline.js +1 -1
  138. package/dist/components/AppToast.js +1 -1
  139. package/dist/components/AppToolbar.js +1 -1
  140. package/dist/components/AppTour.js +1 -1
  141. package/dist/components/AppTreeView.js +1 -1
  142. package/dist/components/AppTruncate.js +1 -1
  143. package/dist/components/AppUpdateBar.js +1 -1
  144. package/dist/components/AppWhatsNew.js +1 -1
  145. package/dist/components/AppWizard.js +1 -1
  146. package/dist/components/AppWorkspaceSwitcher.js +1 -1
  147. package/dist/lib/CheckField.js +1 -1
  148. package/dist/lib/wuiMarker.js +1 -0
  149. package/dist/types/components/AppAccordion.d.ts +1 -1
  150. package/dist/types/components/AppActionIcon.d.ts +1 -1
  151. package/dist/types/components/AppAlert.d.ts +1 -1
  152. package/dist/types/components/AppAsyncBlock.d.ts +1 -1
  153. package/dist/types/components/AppAvatar.d.ts +1 -1
  154. package/dist/types/components/AppAvatarGroup.d.ts +1 -8
  155. package/dist/types/components/AppAvatarPicker.d.ts +1 -1
  156. package/dist/types/components/AppBadge.d.ts +1 -1
  157. package/dist/types/components/AppBanner.d.ts +1 -1
  158. package/dist/types/components/AppBreadcrumbs.d.ts +1 -1
  159. package/dist/types/components/AppButton.d.ts +1 -1
  160. package/dist/types/components/AppButtonGroup.d.ts +1 -1
  161. package/dist/types/components/AppCard.d.ts +1 -1
  162. package/dist/types/components/AppCarousel.d.ts +1 -1
  163. package/dist/types/components/AppChartCard.d.ts +1 -1
  164. package/dist/types/components/AppChip.d.ts +1 -1
  165. package/dist/types/components/AppChipGroup.d.ts +1 -1
  166. package/dist/types/components/AppChoiceCard.d.ts +1 -4
  167. package/dist/types/components/AppChoiceChip.d.ts +1 -1
  168. package/dist/types/components/AppCodeBlock.d.ts +1 -1
  169. package/dist/types/components/AppColorField.d.ts +1 -1
  170. package/dist/types/components/AppColumnMenu.d.ts +1 -1
  171. package/dist/types/components/AppCommandPalette.d.ts +1 -1
  172. package/dist/types/components/AppCommentThread.d.ts +1 -1
  173. package/dist/types/components/AppCompareTable.d.ts +1 -1
  174. package/dist/types/components/AppConfirmDialog.d.ts +1 -20
  175. package/dist/types/components/AppConsentBanner.d.ts +1 -1
  176. package/dist/types/components/AppContextMenu.d.ts +1 -1
  177. package/dist/types/components/AppCopyButton.d.ts +1 -1
  178. package/dist/types/components/AppDashboardCell.d.ts +1 -1
  179. package/dist/types/components/AppDashboardGrid.d.ts +1 -1
  180. package/dist/types/components/AppDataTable.d.ts +1 -1
  181. package/dist/types/components/AppDescriptions.d.ts +1 -1
  182. package/dist/types/components/AppDrawer.d.ts +1 -1
  183. package/dist/types/components/AppDropZone.d.ts +1 -1
  184. package/dist/types/components/AppDropdown.d.ts +1 -1
  185. package/dist/types/components/AppDueDate.d.ts +1 -1
  186. package/dist/types/components/AppEmptyState.d.ts +1 -1
  187. package/dist/types/components/AppErrorSummary.d.ts +1 -1
  188. package/dist/types/components/AppFileAttachment.d.ts +1 -3
  189. package/dist/types/components/AppFilePicker.d.ts +1 -1
  190. package/dist/types/components/AppFilterBar.d.ts +1 -1
  191. package/dist/types/components/AppFloatingDock.d.ts +1 -1
  192. package/dist/types/components/AppFormActions.d.ts +1 -1
  193. package/dist/types/components/AppFormRow.d.ts +1 -1
  194. package/dist/types/components/AppFormSection.d.ts +1 -1
  195. package/dist/types/components/AppHoverCard.d.ts +1 -1
  196. package/dist/types/components/AppIcon.d.ts +1 -1
  197. package/dist/types/components/AppInfoList.d.ts +1 -1
  198. package/dist/types/components/AppInfoTip.d.ts +1 -8
  199. package/dist/types/components/AppInlineEdit.d.ts +1 -1
  200. package/dist/types/components/AppInputGroup.d.ts +1 -1
  201. package/dist/types/components/AppKanban.d.ts +1 -1
  202. package/dist/types/components/AppKbd.d.ts +1 -1
  203. package/dist/types/components/AppKpiTile.d.ts +1 -1
  204. package/dist/types/components/AppLightbox.d.ts +1 -1
  205. package/dist/types/components/AppLink.d.ts +1 -15
  206. package/dist/types/components/AppLogoPicker.d.ts +1 -33
  207. package/dist/types/components/AppMarkdown.d.ts +1 -1
  208. package/dist/types/components/AppMenubar.d.ts +1 -1
  209. package/dist/types/components/AppMeter.d.ts +1 -1
  210. package/dist/types/components/AppMetricStrip.d.ts +1 -1
  211. package/dist/types/components/AppModal.d.ts +1 -1
  212. package/dist/types/components/AppNavigationMenu.d.ts +1 -1
  213. package/dist/types/components/AppNotificationCenter.d.ts +1 -1
  214. package/dist/types/components/AppOnboardingChecklist.d.ts +1 -1
  215. package/dist/types/components/AppPageHeader.d.ts +1 -1
  216. package/dist/types/components/AppPagination.d.ts +1 -1
  217. package/dist/types/components/AppPricingCard.d.ts +1 -1
  218. package/dist/types/components/AppProgress.d.ts +1 -1
  219. package/dist/types/components/AppQrCode.d.ts +1 -1
  220. package/dist/types/components/AppRadioGroup.d.ts +1 -1
  221. package/dist/types/components/AppRating.d.ts +1 -1
  222. package/dist/types/components/AppRecordPager.d.ts +1 -1
  223. package/dist/types/components/AppRelativeTime.d.ts +1 -1
  224. package/dist/types/components/AppRepeater.d.ts +1 -1
  225. package/dist/types/components/AppRequiredMark.d.ts +1 -1
  226. package/dist/types/components/AppResizable.d.ts +1 -1
  227. package/dist/types/components/AppResizableHandle.d.ts +1 -1
  228. package/dist/types/components/AppResizablePanel.d.ts +1 -1
  229. package/dist/types/components/AppResourceCard.d.ts +1 -1
  230. package/dist/types/components/AppResult.d.ts +1 -1
  231. package/dist/types/components/AppRollingNumber.d.ts +1 -1
  232. package/dist/types/components/AppRouteError.d.ts +1 -1
  233. package/dist/types/components/AppScoreScale.d.ts +1 -1
  234. package/dist/types/components/AppScrollbar.d.ts +1 -1
  235. package/dist/types/components/AppSearch.d.ts +1 -2
  236. package/dist/types/components/AppSectionCallToAction.d.ts +1 -1
  237. package/dist/types/components/AppSectionFaq.d.ts +1 -1
  238. package/dist/types/components/AppSectionFeatures.d.ts +1 -1
  239. package/dist/types/components/AppSectionHero.d.ts +1 -1
  240. package/dist/types/components/AppSectionLogos.d.ts +1 -1
  241. package/dist/types/components/AppSectionPricing.d.ts +1 -1
  242. package/dist/types/components/AppSectionTestimonials.d.ts +1 -1
  243. package/dist/types/components/AppSegmented.d.ts +1 -1
  244. package/dist/types/components/AppSelectMini.d.ts +1 -15
  245. package/dist/types/components/AppShell.d.ts +10 -1
  246. package/dist/types/components/AppShortcutLegend.d.ts +1 -1
  247. package/dist/types/components/AppShowMore.d.ts +1 -1
  248. package/dist/types/components/AppSidebarMenu.d.ts +1 -22
  249. package/dist/types/components/AppSkeleton.d.ts +1 -1
  250. package/dist/types/components/AppSparkline.d.ts +1 -1
  251. package/dist/types/components/AppSpinner.d.ts +1 -1
  252. package/dist/types/components/AppSplash.d.ts +1 -1
  253. package/dist/types/components/AppSplitButton.d.ts +1 -1
  254. package/dist/types/components/AppSplitView.d.ts +1 -1
  255. package/dist/types/components/AppStatusBadge.d.ts +1 -1
  256. package/dist/types/components/AppStepper.d.ts +1 -1
  257. package/dist/types/components/AppTableEmptyState.d.ts +1 -1
  258. package/dist/types/components/AppTablePagination.d.ts +1 -1
  259. package/dist/types/components/AppTableToolbar.d.ts +1 -1
  260. package/dist/types/components/AppTabs.d.ts +1 -1
  261. package/dist/types/components/AppThemeToggle.d.ts +1 -1
  262. package/dist/types/components/AppTimeline.d.ts +1 -1
  263. package/dist/types/components/AppToast.d.ts +1 -1
  264. package/dist/types/components/AppToolbar.d.ts +1 -1
  265. package/dist/types/components/AppTruncate.d.ts +1 -1
  266. package/dist/types/components/AppUpdateBar.d.ts +1 -1
  267. package/dist/types/components/AppWhatsNew.d.ts +1 -1
  268. package/dist/types/components/AppWorkspaceSwitcher.d.ts +1 -1
  269. package/dist/types/lib/wuiMarker.d.ts +26 -0
  270. package/package.json +3 -3
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"../lib/FieldMessage.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import{useId as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`default`,`card`];function l({label:l,options:u=[],name:d,value:f,defaultValue:p,onChange:m,variant:h=`default`,inline:g=!1,required:_=!1,disabled:v=!1,error:y,hint:b,help:x,helpLabel:S=`More information`,id:C,className:w=``,fieldClassName:T=``,style:E,...D}){t(`AppRadioGroup`,D),e(`AppRadioGroup`,`variant`,h,c);let O=a(),k=C||O,A=d||k,j=`${k}-error`,M=`${k}-hint`,N=f!==void 0;return s(`div`,{className:`field${T?` ${T}`:``}`,children:[l!=null&&s(`span`,{className:`label`,id:`${k}-label`,children:[l,_&&o(i,{}),x&&o(r,{label:S,children:x})]}),o(`div`,{className:[`wui-radio-group`,h===`card`?`wui-radio-group-card`:``,g?`wui-radio-group-inline`:``,w].filter(Boolean).join(` `),style:E,id:k,role:`radiogroup`,"aria-labelledby":l==null?void 0:`${k}-label`,"aria-required":_?`true`:void 0,"aria-invalid":y?`true`:void 0,"aria-describedby":y?j:b?M:void 0,...D,children:u.map((e,t)=>{let n=`${k}-${t}`,r=e.description==null?void 0:`${n}-desc`;return s(`div`,{className:`form-check`,children:[o(`input`,{type:`radio`,className:`form-check-input`,id:n,name:A,value:e.value,disabled:v||e.disabled||void 0,required:_||void 0,"aria-describedby":r,...N?{checked:f===e.value,onChange:()=>m?.(e.value)}:{defaultChecked:p===e.value,onChange:()=>m?.(e.value)}}),o(`label`,{className:`form-check-label`,htmlFor:n,children:e.label}),r&&o(`div`,{className:`wui-radio-option-desc`,id:r,children:e.description})]},e.value)})}),o(n,{error:y,hint:b,errorId:j,hintId:M})]})}export{l as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import{useId as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`default`,`card`];function u(u){let{label:d,options:f=[],name:p,value:m,defaultValue:h,onChange:g,variant:_=`default`,inline:v=!1,required:y=!1,disabled:b=!1,error:x,hint:S,help:C,helpLabel:w=`More information`,id:T,className:E=``,fieldClassName:D=``,style:O,...k}=u;n(`AppRadioGroup`,k),t(`AppRadioGroup`,`variant`,_,l);let A=o(),j=T||A,M=p||j,N=`${j}-error`,P=`${j}-hint`,F=m!==void 0;return c(`div`,{...e(`AppRadioGroup`,u),className:`field${D?` ${D}`:``}`,children:[d!=null&&c(`span`,{className:`label`,id:`${j}-label`,children:[d,y&&s(a,{}),C&&s(i,{label:w,children:C})]}),s(`div`,{className:[`wui-radio-group`,_===`card`?`wui-radio-group-card`:``,v?`wui-radio-group-inline`:``,E].filter(Boolean).join(` `),style:O,id:j,role:`radiogroup`,"aria-labelledby":d==null?void 0:`${j}-label`,"aria-required":y?`true`:void 0,"aria-invalid":x?`true`:void 0,"aria-describedby":x?N:S?P:void 0,...k,children:f.map((e,t)=>{let n=`${j}-${t}`,r=e.description==null?void 0:`${n}-desc`;return c(`div`,{className:`form-check`,children:[s(`input`,{type:`radio`,className:`form-check-input`,id:n,name:M,value:e.value,disabled:b||e.disabled||void 0,required:y||void 0,"aria-describedby":r,...F?{checked:m===e.value,onChange:()=>g?.(e.value)}:{defaultChecked:h===e.value,onChange:()=>g?.(e.value)}}),s(`label`,{className:`form-check-label`,htmlFor:n,children:e.label}),r&&s(`div`,{className:`wui-radio-option-desc`,id:r,children:e.description})]},e.value)})}),s(r,{error:x,hint:S,errorId:N,hintId:P})]})}export{u as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import r from"../lib/FieldMessage.js";import i from"./AppRequiredMark.js";import{useId as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/rating";var l={sm:16,md:20,lg:28},u=e=>String(Math.round(e*100)/100),d=(e,t,n)=>e>=t?`full`:n&&e>=t-.5?`half`:`empty`;function f({value:n,defaultValue:f,onChange:m,max:h=5,readOnly:g=!1,half:_=!1,showValue:v=!1,size:y=`md`,label:b,name:x,required:S=!1,disabled:C=!1,error:w,hint:T,id:E,className:D=``,fieldClassName:O=``,...k}){t(`AppRating`,k),e(`AppRating`,`size`,y,Object.keys(l));let A=a(),[j,M]=o(f),N=l[y]??l.md,P=Array.from({length:h},(e,t)=>t+1),F=(...e)=>[`wui-rating`,`wui-rating-${y}`,...e,D].filter(Boolean).join(` `);if(g){let e=Number.isFinite(Number(n))?Math.min(Math.max(Number(n),0),h):0,t=_?Math.round(e*2)/2:Math.round(e),r=`${typeof b==`string`&&b?`${b}: `:``}${u(e)} out of ${h}`;return c(`span`,{className:F(`wui-rating-display`),id:E,role:`img`,"aria-label":r,...k,children:[s(`span`,{className:`wui-rating-stars`,"aria-hidden":`true`,children:P.map(e=>s(`span`,{className:`wui-rating-star wui-rating-star-${d(t,e,_)}`,children:s(p,{px:N})},e))}),v&&s(`span`,{className:`wui-rating-value`,"aria-hidden":`true`,children:u(e)})]})}let I=E||A,L=x||I,R=`${I}-error`,z=`${I}-hint`,B=Math.round(Number(n===void 0?j:n))||0,V=e=>{M(e),m?.(e)};return c(`div`,{className:`field${O?` ${O}`:``}`,children:[b!=null&&c(`span`,{className:`label`,id:`${I}-label`,children:[b,S&&s(i,{})]}),s(`wui-rating`,{class:F(`wui-rating-input`),id:I,role:`radiogroup`,"aria-labelledby":b==null?void 0:`${I}-label`,"aria-label":b==null?`Rating`:void 0,"aria-required":S?`true`:void 0,"aria-invalid":w?`true`:void 0,"aria-describedby":w?R:T?z:void 0,disabled:C?``:void 0,...k,children:P.map(e=>c(`label`,{className:`wui-rating-star wui-rating-star-${B>=e?`full`:`empty`}`,"data-value":e,children:[s(`input`,{type:`radio`,className:`visually-hidden`,name:L,value:e,"aria-label":`${e} ${e===1?`star`:`stars`}`,checked:B===e,onChange:()=>V(e),disabled:C||void 0,required:S||void 0}),s(p,{px:N})]},e))}),s(r,{error:w,hint:T,errorId:R,hintId:z})]})}function p({px:e}){return c(`span`,{className:`wui-rating-glyphs`,"aria-hidden":`true`,children:[s(n,{name:`star`,size:e}),s(`span`,{className:`wui-rating-fill`,children:s(n,{name:`star`,variant:`bold`,size:e})})]})}export{f as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i from"../lib/FieldMessage.js";import a from"./AppRequiredMark.js";import{useId as o,useState as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import"@webority/ui-elements/elements/rating";var u={sm:16,md:20,lg:28},d=e=>String(Math.round(e*100)/100),f=(e,t,n)=>e>=t?`full`:n&&e>=t-.5?`half`:`empty`;function p(r){let{value:p,defaultValue:h,onChange:g,max:_=5,readOnly:v=!1,half:y=!1,showValue:b=!1,size:x=`md`,label:S,name:C,required:w=!1,disabled:T=!1,error:E,hint:D,id:O,className:k=``,fieldClassName:A=``,...j}=r;n(`AppRating`,j),t(`AppRating`,`size`,x,Object.keys(u));let M=o(),[N,P]=s(h),F=u[x]??u.md,I=Array.from({length:_},(e,t)=>t+1),L=(...e)=>[`wui-rating`,`wui-rating-${x}`,...e,k].filter(Boolean).join(` `);if(v){let t=Number.isFinite(Number(p))?Math.min(Math.max(Number(p),0),_):0,n=y?Math.round(t*2)/2:Math.round(t),i=`${typeof S==`string`&&S?`${S}: `:``}${d(t)} out of ${_}`;return l(`span`,{className:L(`wui-rating-display`),id:O,role:`img`,"aria-label":i,...e(`AppRating`,r),...j,children:[c(`span`,{className:`wui-rating-stars`,"aria-hidden":`true`,children:I.map(e=>c(`span`,{className:`wui-rating-star wui-rating-star-${f(n,e,y)}`,children:c(m,{px:F})},e))}),b&&c(`span`,{className:`wui-rating-value`,"aria-hidden":`true`,children:d(t)})]})}let R=O||M,z=C||R,B=`${R}-error`,V=`${R}-hint`,H=Math.round(Number(p===void 0?N:p))||0,U=e=>{P(e),g?.(e)};return l(`div`,{...e(`AppRating`,r),className:`field${A?` ${A}`:``}`,children:[S!=null&&l(`span`,{className:`label`,id:`${R}-label`,children:[S,w&&c(a,{})]}),c(`wui-rating`,{class:L(`wui-rating-input`),id:R,role:`radiogroup`,"aria-labelledby":S==null?void 0:`${R}-label`,"aria-label":S==null?`Rating`:void 0,"aria-required":w?`true`:void 0,"aria-invalid":E?`true`:void 0,"aria-describedby":E?B:D?V:void 0,disabled:T?``:void 0,...j,children:I.map(e=>l(`label`,{className:`wui-rating-star wui-rating-star-${H>=e?`full`:`empty`}`,"data-value":e,children:[c(`input`,{type:`radio`,className:`visually-hidden`,name:z,value:e,"aria-label":`${e} ${e===1?`star`:`stars`}`,checked:H===e,onChange:()=>U(e),disabled:T||void 0,required:w||void 0}),c(m,{px:F})]},e))}),c(i,{error:E,hint:D,errorId:B,hintId:V})]})}function m({px:e}){return l(`span`,{className:`wui-rating-glyphs`,"aria-hidden":`true`,children:[c(r,{name:`star`,size:e}),c(`span`,{className:`wui-rating-fill`,children:c(r,{name:`star`,variant:`bold`,size:e})})]})}export{p as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import t from"./AppActionIcon.js";import{formatNumber as n}from"@webority/ui-elements/helpers";import{jsx as r,jsxs as i}from"react/jsx-runtime";import"@webority/ui-elements/elements/record-pager";var a=e=>n(e,{decimals:0});function o({index:n,total:o,prevHref:s,onPrev:c,nextHref:l,onNext:u,prevLabel:d=`Previous`,nextLabel:f=`Next`,keys:p=!1,className:m=``,...h}){e(`AppRecordPager`,h);let g=Number(n),_=Number(o),v=Number.isInteger(g)&&Number.isInteger(_)&&g>=1&&g<=_,y=v&&g>1&&!!(s||c),b=v&&g<_&&!!(l||u);return i(`wui-record-pager`,{class:[`wui-record-pager`,m].filter(Boolean).join(` `),keys:p?``:void 0,...h,children:[r(`span`,{className:`wui-record-pager-position`,"aria-live":`polite`,children:v?`${a(g)} of ${a(_)}`:``}),r(t,{icon:`chevron-left`,label:d,size:18,className:`wui-record-pager-prev`,href:s||void 0,onClick:c,disabled:!y,shortcut:p?`K`:void 0}),r(t,{icon:`chevron-right`,label:f,size:18,className:`wui-record-pager-next`,href:l||void 0,onClick:u,disabled:!b,shortcut:p?`J`:void 0})]})}export{o as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./AppActionIcon.js";import{formatNumber as r}from"@webority/ui-elements/helpers";import{jsx as i,jsxs as a}from"react/jsx-runtime";import"@webority/ui-elements/elements/record-pager";var o=e=>r(e,{decimals:0});function s(r){let{index:s,total:c,prevHref:l,onPrev:u,nextHref:d,onNext:f,prevLabel:p=`Previous`,nextLabel:m=`Next`,keys:h=!1,className:g=``,..._}=r;t(`AppRecordPager`,_);let v=Number(s),y=Number(c),b=Number.isInteger(v)&&Number.isInteger(y)&&v>=1&&v<=y,x=b&&v>1&&!!(l||u),S=b&&v<y&&!!(d||f);return a(`wui-record-pager`,{class:[`wui-record-pager`,g].filter(Boolean).join(` `),keys:h?``:void 0,...e(`AppRecordPager`,r),..._,children:[i(`span`,{className:`wui-record-pager-position`,"aria-live":`polite`,children:b?`${o(v)} of ${o(y)}`:``}),i(n,{icon:`chevron-left`,label:p,size:18,className:`wui-record-pager-prev`,href:l||void 0,onClick:u,disabled:!x,shortcut:h?`K`:void 0}),i(n,{icon:`chevron-right`,label:m,size:18,className:`wui-record-pager-next`,href:d||void 0,onClick:f,disabled:!S,shortcut:h?`J`:void 0})]})}export{s as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import t from"./withTooltip.js";import{EMPTY_VALUE as n,formatDate as r,toInstant as i}from"@webority/ui-elements/helpers";import{jsx as a}from"react/jsx-runtime";import{relativeTimeTitle as o}from"@webority/ui-elements/elements/relative-time";function s({value:s,tooltipPlacement:c=`auto`,className:l=``,...u}){e(`AppRelativeTime`,u);let d=i(s),f=Number.isFinite(d),p=f?typeof s==`string`?s.trim():new Date(d).toISOString():void 0;return t(a(`wui-relative-time`,{class:[`wui-relative-time`,l].filter(Boolean).join(` `),...u,children:a(`time`,{dateTime:p,children:f?r(d):n})}),f?o(d):void 0,c)}export{s as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./withTooltip.js";import{EMPTY_VALUE as r,formatDate as i,toInstant as a}from"@webority/ui-elements/helpers";import{jsx as o}from"react/jsx-runtime";import{relativeTimeTitle as s}from"@webority/ui-elements/elements/relative-time";function c(c){let{value:l,tooltipPlacement:u=`auto`,className:d=``,...f}=c;t(`AppRelativeTime`,f);let p=a(l),m=Number.isFinite(p),h=m?typeof l==`string`?l.trim():new Date(p).toISOString():void 0;return n(o(`wui-relative-time`,{class:[`wui-relative-time`,d].filter(Boolean).join(` `),...e(`AppRelativeTime`,c),...f,children:o(`time`,{dateTime:h,children:m?i(p):r})}),m?s(p):void 0,u)}export{c as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import t from"./AppActionIcon.js";import n from"./AppButton.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a({rows:a=[],renderRow:o,rowLabel:s,onAdd:c,onRemove:l,addLabel:u=`Add another`,addVariant:d=`secondary`,removeLabel:f=`Remove row`,emptyText:p,min:m=0,max:h,numbered:g=!0,className:_=``,...v}){e(`AppRepeater`,v);let y=typeof h==`number`&&a.length>=h,b=!!l&&a.length>m;return i(`div`,{className:`repeater${_?` ${_}`:``}`,...v,children:[a.length===0&&p&&r(`div`,{className:`repeater-empty`,children:p}),a.map((e,n)=>{let a=s?s(e,n):null;return i(`div`,{className:`repeater-row`,children:[(!!a||b)&&r(`span`,{className:`repeater-row-label`,children:a}),g&&r(`span`,{className:`repeater-index`,children:n+1}),r(`div`,{className:`repeater-body`,children:o(e,n)}),b&&r(t,{icon:`trash-2`,label:`${f} ${n+1}`,danger:!0,className:`repeater-remove`,onClick:()=>l(n)})]},e.id??n)}),r(n,{variant:d,size:`sm`,leftIcon:`plus`,className:`repeater-add`,disabled:y,onClick:c,children:u})]})}export{a as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./AppActionIcon.js";import r from"./AppButton.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o(o){let{rows:s=[],renderRow:c,rowLabel:l,onAdd:u,onRemove:d,addLabel:f=`Add another`,addVariant:p=`secondary`,removeLabel:m=`Remove row`,emptyText:h,min:g=0,max:_,numbered:v=!0,className:y=``,...b}=o;t(`AppRepeater`,b);let x=typeof _==`number`&&s.length>=_,S=!!d&&s.length>g;return a(`div`,{className:`repeater${y?` ${y}`:``}`,...e(`AppRepeater`,o),...b,children:[s.length===0&&h&&i(`div`,{className:`repeater-empty`,children:h}),s.map((e,t)=>{let r=l?l(e,t):null;return a(`div`,{className:`repeater-row`,children:[(!!r||S)&&i(`span`,{className:`repeater-row-label`,children:r}),v&&i(`span`,{className:`repeater-index`,children:t+1}),i(`div`,{className:`repeater-body`,children:c(e,t)}),S&&i(n,{icon:`trash-2`,label:`${m} ${t+1}`,danger:!0,className:`repeater-remove`,onClick:()=>d(t)})]},e.id??t)}),i(r,{variant:p,size:`sm`,leftIcon:`plus`,className:`repeater-add`,disabled:x,onClick:u,children:f})]})}export{o as default};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";function t(){return e(`span`,{className:`required`,"aria-hidden":`true`,children:`*`})}export{t as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import{jsx as t}from"react/jsx-runtime";function n(n){return t(`span`,{...e(`AppRequiredMark`,n),className:`required`,"aria-hidden":`true`,children:`*`})}export{n as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{createContext as n,useEffect as r,useRef as i}from"react";import{jsx as a}from"react/jsx-runtime";import"@webority/ui-elements/elements/resizable";var o=[`horizontal`,`vertical`],s=n(`horizontal`);function c({direction:n=`horizontal`,storageKey:c,onChange:l,children:u,className:d=``,...f}){t(`AppResizable`,f),e(`AppResizable`,`direction`,n,o);let p=i(null),m=n===`vertical`;return r(()=>{let e=p.current;if(!e||!l)return;let t=t=>{t.target===e&&l(t.detail.sizes)};return e.addEventListener(`wui-resizable:change`,t),()=>e.removeEventListener(`wui-resizable:change`,t)},[l]),a(s.Provider,{value:m?`vertical`:`horizontal`,children:a(`wui-resizable`,{ref:p,class:[`wui-resizable`,d].filter(Boolean).join(` `),direction:m?`vertical`:`horizontal`,"storage-key":c||void 0,...f,children:u})})}export{s as ResizableDirection,c as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{createContext as r,useEffect as i,useRef as a}from"react";import{jsx as o}from"react/jsx-runtime";import"@webority/ui-elements/elements/resizable";var s=[`horizontal`,`vertical`],c=r(`horizontal`);function l(r){let{direction:l=`horizontal`,storageKey:u,onChange:d,children:f,className:p=``,...m}=r;n(`AppResizable`,m),t(`AppResizable`,`direction`,l,s);let h=a(null),g=l===`vertical`;return i(()=>{let e=h.current;if(!e||!d)return;let t=t=>{t.target===e&&d(t.detail.sizes)};return e.addEventListener(`wui-resizable:change`,t),()=>e.removeEventListener(`wui-resizable:change`,t)},[d]),o(c.Provider,{value:g?`vertical`:`horizontal`,children:o(`wui-resizable`,{ref:h,class:[`wui-resizable`,p].filter(Boolean).join(` `),direction:g?`vertical`:`horizontal`,"storage-key":u||void 0,...e(`AppResizable`,r),...m,children:f})})}export{c as ResizableDirection,l as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{ResizableDirection as t}from"./AppResizable.js";import{useContext as n}from"react";import{jsx as r}from"react/jsx-runtime";function i({label:i=`Resize panels`,className:a=``,...o}){e(`AppResizableHandle`,o);let s=n(t);return r(`div`,{className:[`wui-resizable-handle`,a].filter(Boolean).join(` `),role:`separator`,tabIndex:0,"aria-orientation":s===`vertical`?`horizontal`:`vertical`,"aria-label":i,...o})}export{i as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{ResizableDirection as n}from"./AppResizable.js";import{useContext as r}from"react";import{jsx as i}from"react/jsx-runtime";function a(a){let{label:o=`Resize panels`,className:s=``,...c}=a;t(`AppResizableHandle`,c);let l=r(n);return i(`div`,{className:[`wui-resizable-handle`,s].filter(Boolean).join(` `),role:`separator`,tabIndex:0,"aria-orientation":l===`vertical`?`horizontal`:`vertical`,"aria-label":o,...e(`AppResizableHandle`,a),...c})}export{a as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{jsx as t}from"react/jsx-runtime";function n({defaultSize:n,minSize:r,maxSize:i,children:a,className:o=``,style:s,...c}){return e(`AppResizablePanel`,c),t(`div`,{className:[`wui-resizable-panel`,o].filter(Boolean).join(` `),"data-default-size":n,"data-min-size":r,"data-max-size":i,style:n?{flex:`${n} 1 0px`,...s}:s,...c,children:a})}export{n as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";function r(r){let{defaultSize:i,minSize:a,maxSize:o,children:s,className:c=``,style:l,...u}=r;return t(`AppResizablePanel`,u),n(`div`,{className:[`wui-resizable-panel`,c].filter(Boolean).join(` `),"data-default-size":i,"data-min-size":a,"data-max-size":o,style:i?{flex:`${i} 1 0px`,...l}:l,...e(`AppResizablePanel`,r),...u,children:s})}export{r as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import t from"./AppIcon.js";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";function a({icon:a,title:o,text:s,href:c,external:l=!1,linkComponent:u,className:d=``,...f}){e(`AppResourceCard`,f);let p=i(n,{children:[r(`span`,{className:`res-card-icon`,children:r(t,{name:a,size:18})}),i(`span`,{className:`res-card-body`,children:[r(`span`,{className:`res-card-title`,children:o}),s&&r(`span`,{className:`res-card-text`,children:s})]})]}),m=`res-card${d?` ${d}`:``}`;return u&&!l?r(u,{className:m,to:c,...f,children:p}):r(`a`,{className:m,href:c,target:l?`_blank`:void 0,rel:l?`noopener noreferrer`:void 0,...f,children:p})}export{a as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";function o(o){let{icon:s,title:c,text:l,href:u,external:d=!1,linkComponent:f,className:p=``,...m}=o;t(`AppResourceCard`,m);let h=a(r,{children:[i(`span`,{className:`res-card-icon`,children:i(n,{name:s,size:18})}),a(`span`,{className:`res-card-body`,children:[i(`span`,{className:`res-card-title`,children:c}),l&&i(`span`,{className:`res-card-text`,children:l})]})]}),g=`res-card${p?` ${p}`:``}`;return f&&!d?i(f,{className:g,to:u,...e(`AppResourceCard`,o),...m,children:h}):i(`a`,{className:g,href:u,target:d?`_blank`:void 0,rel:d?`noopener noreferrer`:void 0,...e(`AppResourceCard`,o),...m,children:h})}export{o as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./renderIconProp.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var a={success:{icon:`check-circle`,tone:`success`},error:{icon:`x-circle`,tone:`danger`},warning:{icon:`alert-triangle`,tone:`warning`},info:{icon:`info`,tone:`info`},403:{tone:`muted`},404:{tone:`muted`},500:{tone:`muted`}};function o({status:o=`info`,title:s,subtitle:c,icon:l,actions:u,children:d,headingLevel:f=2,className:p=``,...m}){t(`AppResult`,m),e(`AppResult`,`status`,o,Object.keys(a)),e(`AppResult`,`headingLevel`,f,[1,2,3]);let h=[1,2,3].includes(f)?`h${f}`:`h2`,g=a[o]||a.info,_=g.tone,v=/^\d+$/.test(o),y=l??(v?null:g.icon);return i(`div`,{className:[`result`,`result-${_}`,p].filter(Boolean).join(` `),...m,children:[v?r(`div`,{className:`result-code`,"aria-hidden":`true`,children:o}):y?r(`div`,{className:`result-icon`,children:n(y,{size:48})}):null,s!=null&&r(h,{className:`result-title`,children:s}),c!=null&&r(`div`,{className:`result-subtitle`,children:c}),u&&r(`div`,{className:`result-actions`,children:u}),d&&r(`div`,{className:`result-extra`,children:d})]})}export{o as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./renderIconProp.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o={success:{icon:`check-circle`,tone:`success`},error:{icon:`x-circle`,tone:`danger`},warning:{icon:`alert-triangle`,tone:`warning`},info:{icon:`info`,tone:`info`},403:{tone:`muted`},404:{tone:`muted`},500:{tone:`muted`}};function s(s){let{status:c=`info`,title:l,subtitle:u,icon:d,actions:f,children:p,headingLevel:m=2,className:h=``,...g}=s;n(`AppResult`,g),t(`AppResult`,`status`,c,Object.keys(o)),t(`AppResult`,`headingLevel`,m,[1,2,3]);let _=[1,2,3].includes(m)?`h${m}`:`h2`,v=o[c]||o.info,y=v.tone,b=/^\d+$/.test(c),x=d??(b?null:v.icon);return a(`div`,{className:[`result`,`result-${y}`,h].filter(Boolean).join(` `),...e(`AppResult`,s),...g,children:[b?i(`div`,{className:`result-code`,"aria-hidden":`true`,children:c}):x?i(`div`,{className:`result-icon`,children:r(x,{size:48})}):null,l!=null&&i(_,{className:`result-title`,children:l}),u!=null&&i(`div`,{className:`result-subtitle`,children:u}),f&&i(`div`,{className:`result-actions`,children:f}),p&&i(`div`,{className:`result-extra`,children:p})]})}export{s as default};
@@ -1 +1 @@
1
- import{devWarn as e}from"../lib/devWarn.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import o from"./useWuiControl.js";import{forwardRef as s,useEffect as c,useId as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var p=[`html`,`markdown`],m=[`input`,`change`],h=`The editor couldn't load. Reload the page and try again.`,g=s(function({value:s,onChange:g,format:_,placeholder:v,name:y,label:b,error:x,hint:S,required:C=!1,disabled:w=!1,readOnly:T=!1,id:E,ariaLabel:D,className:O=``,fieldClassName:k=``,help:A,helpLabel:j=`More information`,...M},N){n(`AppRichText`,M),t(`AppRichText`,`format`,_,p);let P=l(),F=E||P,[I,L]=u(!1),{setRef:R}=o({ref:N,value:s,onChange:g,events:m});return c(()=>{let t=!0;return import(`@webority/ui-elements/rich-text`).catch(n=>{e(`[AppRichText] the editor failed to load:`,n?.message),t&&L(!0)}),()=>{t=!1}},[]),f(`div`,{className:`field${k?` ${k}`:``}`,children:[b&&f(`label`,{className:`label`,htmlFor:F,children:[b,C&&d(a,{}),A&&d(i,{label:j,children:A})]}),I?d(`div`,{className:`field-error`,role:`status`,children:h}):d(`wui-rich-text`,{ref:R,id:F,role:`group`,name:y,format:_||void 0,placeholder:v,"aria-label":D||(typeof b==`string`?b:void 0),"aria-describedby":x?`${F}-error`:S?`${F}-hint`:void 0,"aria-invalid":x?`true`:void 0,required:C?``:void 0,disabled:w?``:void 0,readonly:T?``:void 0,className:O||void 0,...M},_||`html`),d(r,{error:x,hint:S,errorId:`${F}-error`,hintId:`${F}-hint`})]})});export{g as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import{devWarn as t}from"../lib/devWarn.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import i from"../lib/FieldMessage.js";import a from"./AppInfoTip.js";import o from"./AppRequiredMark.js";import s from"./useWuiControl.js";import{forwardRef as c,useEffect as l,useId as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`html`,`markdown`],h=[`input`,`change`],g=`The editor couldn't load. Reload the page and try again.`,_=c(function(c,_){let{value:v,onChange:y,format:b,placeholder:x,name:S,label:C,error:w,hint:T,required:E=!1,disabled:D=!1,readOnly:O=!1,id:k,ariaLabel:A,className:j=``,fieldClassName:M=``,help:N,helpLabel:P=`More information`,...F}=c;r(`AppRichText`,F),n(`AppRichText`,`format`,b,m);let I=u(),L=k||I,[R,z]=d(!1),{setRef:B}=s({ref:_,value:v,onChange:y,events:h});return l(()=>{let e=!0;return import(`@webority/ui-elements/rich-text`).catch(n=>{t(`[AppRichText] the editor failed to load:`,n?.message),e&&z(!0)}),()=>{e=!1}},[]),p(`div`,{...e(`AppRichText`,c),className:`field${M?` ${M}`:``}`,children:[C&&p(`label`,{className:`label`,htmlFor:L,children:[C,E&&f(o,{}),N&&f(a,{label:P,children:N})]}),R?f(`div`,{className:`field-error`,role:`status`,children:g}):f(`wui-rich-text`,{ref:B,id:L,role:`group`,name:S,format:b||void 0,placeholder:x,"aria-label":A||(typeof C==`string`?C:void 0),"aria-describedby":w?`${L}-error`:T?`${L}-hint`:void 0,"aria-invalid":w?`true`:void 0,required:E?``:void 0,disabled:D?``:void 0,readonly:O?``:void 0,className:j||void 0,...F},b||`html`),f(i,{error:w,hint:T,errorId:`${L}-error`,hintId:`${L}-hint`})]})});export{_ as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{MONEY_UNITS as n,formatValue as r}from"@webority/ui-elements/helpers";import{jsx as i,jsxs as a}from"react/jsx-runtime";import"@webority/ui-elements/elements/rolling-number";var o=[`number`,`currency`,`percent`];function s({value:s,format:c=`number`,unit:l,decimals:u,duration:d,className:f=``,...p}){t(`AppRollingNumber`,p),e(`AppRollingNumber`,`format`,c,o),e(`AppRollingNumber`,`unit`,l,n);let m=typeof s==`number`&&Number.isFinite(s),h=r(m?s:null,{style:c,unit:l,decimals:u});return a(`wui-rolling-number`,{class:[`wui-rolling-number`,f].filter(Boolean).join(` `),value:m?String(s):void 0,format:c,unit:l,decimals:u===void 0?void 0:String(u),duration:d===void 0?void 0:String(d),...p,children:[i(`span`,{className:`wui-rolling-number-text`,children:h}),i(`span`,{className:`wui-rolling-number-roll`,"aria-hidden":`true`})]})}export{s as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{MONEY_UNITS as r,formatValue as i}from"@webority/ui-elements/helpers";import{jsx as a,jsxs as o}from"react/jsx-runtime";import"@webority/ui-elements/elements/rolling-number";var s=[`number`,`currency`,`percent`];function c(c){let{value:l,format:u=`number`,unit:d,decimals:f,duration:p,className:m=``,...h}=c;n(`AppRollingNumber`,h),t(`AppRollingNumber`,`format`,u,s),t(`AppRollingNumber`,`unit`,d,r);let g=typeof l==`number`&&Number.isFinite(l),_=i(g?l:null,{style:u,unit:d,decimals:f});return o(`wui-rolling-number`,{class:[`wui-rolling-number`,m].filter(Boolean).join(` `),value:g?String(l):void 0,format:u,unit:d,decimals:f===void 0?void 0:String(f),duration:p===void 0?void 0:String(p),...e(`AppRollingNumber`,c),...h,children:[a(`span`,{className:`wui-rolling-number-text`,children:_}),a(`span`,{className:`wui-rolling-number-roll`,"aria-hidden":`true`})]})}export{c as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppButton.js";import r from"./AppResult.js";import{Fragment as i,jsx as a,jsxs as o}from"react/jsx-runtime";var s=[`error`,`stale-build`,`not-found`],c=()=>window.location.reload();function l({kind:l=`error`,homeHref:u=`/`,onRetry:d=c,brand:f,fullPage:p=!0,children:m,className:h=``,...g}){t(`AppRouteError`,g),e(`AppRouteError`,`kind`,l,s);let _=e=>a(n,{variant:e,leftIcon:`home`,href:u,children:`Go to the home page`}),v;return v=l===`stale-build`?a(r,{status:`info`,icon:`refresh-cw`,title:`A new version is ready`,subtitle:`This app was updated while you had it open. Reload to get the new version.`,actions:a(n,{variant:`primary`,leftIcon:`refresh-cw`,onClick:d,children:`Reload`}),children:m}):l===`not-found`?a(r,{status:`404`,title:`We could not find that page`,subtitle:`Check the address, or go to the home page.`,actions:_(`primary`),children:m}):a(r,{status:`500`,title:`This page did not load`,subtitle:`Something went wrong on our side. Try again in a moment.`,actions:o(i,{children:[a(n,{variant:`primary`,leftIcon:`refresh-cw`,onClick:d,children:`Try again`}),_(`outline`)]}),children:m}),o(`div`,{className:[p?`d-flex flex-column align-items-center justify-content-center min-vh-100 px-3`:`d-flex flex-column align-items-center py-5 px-3`,h].filter(Boolean).join(` `),...g,children:[f&&a(`div`,{className:`mb-4`,children:f}),a(`div`,{className:`col-12 col-md-8 col-lg-6`,children:v})]})}export{l as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppButton.js";import i from"./AppResult.js";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`error`,`stale-build`,`not-found`],l=()=>window.location.reload();function u(u){let{kind:d=`error`,homeHref:f=`/`,onRetry:p=l,brand:m,fullPage:h=!0,children:g,className:_=``,...v}=u;n(`AppRouteError`,v),t(`AppRouteError`,`kind`,d,c);let y=e=>o(r,{variant:e,leftIcon:`home`,href:f,children:`Go to the home page`}),b;return b=d===`stale-build`?o(i,{status:`info`,icon:`refresh-cw`,title:`A new version is ready`,subtitle:`This app was updated while you had it open. Reload to get the new version.`,actions:o(r,{variant:`primary`,leftIcon:`refresh-cw`,onClick:p,children:`Reload`}),children:g}):d===`not-found`?o(i,{status:`404`,title:`We could not find that page`,subtitle:`Check the address, or go to the home page.`,actions:y(`primary`),children:g}):o(i,{status:`500`,title:`This page did not load`,subtitle:`Something went wrong on our side. Try again in a moment.`,actions:s(a,{children:[o(r,{variant:`primary`,leftIcon:`refresh-cw`,onClick:p,children:`Try again`}),y(`outline`)]}),children:g}),s(`div`,{className:[h?`d-flex flex-column align-items-center justify-content-center min-vh-100 px-3`:`d-flex flex-column align-items-center py-5 px-3`,_].filter(Boolean).join(` `),...e(`AppRouteError`,u),...v,children:[m&&o(`div`,{className:`mb-4`,children:m}),o(`div`,{className:`col-12 col-md-8 col-lg-6`,children:b})]})}export{u as default};
@@ -1 +1 @@
1
- import e from"../lib/FieldMessage.js";import{useId as t}from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({value:i=null,onChange:a,min:o=0,max:s=10,label:c,lowLabel:l,highLabel:u,name:d,disabled:f=!1,error:p,hint:m,id:h,className:g=``,fieldClassName:_=``}){let v=t(),y=h||v,b=d||y,x=`${y}-error`,S=`${y}-hint`,C=Array.from({length:Math.max(0,s-o+1)},(e,t)=>o+t),w=l!=null||u!=null;return r(`div`,{className:`field${_?` ${_}`:``}`,children:[c!=null&&n(`span`,{className:`label`,id:`${y}-label`,children:c}),r(`div`,{className:`wui-score-scale${g?` ${g}`:``}`,id:y,role:`radiogroup`,"aria-labelledby":c==null?void 0:`${y}-label`,"aria-label":c==null?`Score`:void 0,"aria-invalid":p?`true`:void 0,"aria-describedby":p?x:m?S:void 0,children:[C.map(e=>r(`label`,{className:`wui-score-scale__item${i===e?` wui-score-scale__item--selected`:``}`,children:[n(`input`,{type:`radio`,className:`visually-hidden`,name:b,value:e,checked:i===e,disabled:f,onChange:()=>a?.(e)}),e]},e)),w&&r(`span`,{className:`wui-score-scale__ends`,children:[n(`span`,{children:l}),n(`span`,{children:u})]})]}),n(e,{error:p,hint:m,errorId:x,hintId:S})]})}export{i as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"../lib/FieldMessage.js";import{useId as n}from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a(a){let{value:o=null,onChange:s,min:c=0,max:l=10,label:u,lowLabel:d,highLabel:f,name:p,disabled:m=!1,error:h,hint:g,id:_,className:v=``,fieldClassName:y=``}=a,b=n(),x=_||b,S=p||x,C=`${x}-error`,w=`${x}-hint`,T=Array.from({length:Math.max(0,l-c+1)},(e,t)=>c+t),E=d!=null||f!=null;return i(`div`,{...e(`AppScoreScale`,a),className:`field${y?` ${y}`:``}`,children:[u!=null&&r(`span`,{className:`label`,id:`${x}-label`,children:u}),i(`div`,{className:`wui-score-scale${v?` ${v}`:``}`,id:x,role:`radiogroup`,"aria-labelledby":u==null?void 0:`${x}-label`,"aria-label":u==null?`Score`:void 0,"aria-invalid":h?`true`:void 0,"aria-describedby":h?C:g?w:void 0,children:[T.map(e=>i(`label`,{className:`wui-score-scale__item${o===e?` wui-score-scale__item--selected`:``}`,children:[r(`input`,{type:`radio`,className:`visually-hidden`,name:S,value:e,checked:o===e,disabled:m,onChange:()=>s?.(e)}),e]},e)),E&&i(`span`,{className:`wui-score-scale__ends`,children:[r(`span`,{children:d}),r(`span`,{children:f})]})]}),r(t,{error:h,hint:g,errorId:C,hintId:w})]})}export{a as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{jsx as t}from"react/jsx-runtime";function n({children:n,className:r=``,maxHeight:i,style:a,...o}){return e(`AppScrollbar`,o),t(`div`,{className:r?`wui-scroll ${r}`:`wui-scroll`,style:i==null?a:{maxHeight:i,...a},...o,children:n})}export{n as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";function r(r){let{children:i,className:a=``,maxHeight:o,style:s,...c}=r;return t(`AppScrollbar`,c),n(`div`,{className:a?`wui-scroll ${a}`:`wui-scroll`,style:o==null?s:{maxHeight:o,...s},...e(`AppScrollbar`,r),...c,children:i})}export{r as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{isTypingTarget as r}from"@webority/ui-elements/helpers";import{useCallback as i,useEffect as a,useRef as o,useState as s}from"react";import{Form as c}from"react-bootstrap";import{jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`sm`,`lg`];function f({value:f,onChange:p,placeholder:m=`Search…`,ariaLabel:h,iconSize:g,size:_,loading:v=!1,collapsible:y=!1,disabled:b=!1,className:x=``,form:S,onKeyDown:C,...w}){t(`AppSearch`,w),e(`AppSearch`,`size`,_,d);let T=g??18,[E,D]=s(!!f),O=o(null),k=o(null),A=!y||E||!!f,j=i(()=>{D(!0),requestAnimationFrame(()=>O.current?.focus())},[]);return a(()=>{if(!y)return;let e=e=>{e.key!==`/`||e.ctrlKey||e.altKey||e.metaKey||r(e.target)||[...document.querySelectorAll(`.search-wrap.wui-search-collapsible`)].find(e=>e.offsetParent!==null)===k.current&&(e.preventDefault(),j())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[y,j]),u(`div`,{className:[`search-wrap`,f?`has-value`:``,_===`sm`?`search-sm`:_===`lg`?`search-lg`:``,v?`is-loading`:``,y?`wui-search-collapsible`:``,y&&!A?`is-collapsed`:``,x].filter(Boolean).join(` `),style:g==null?void 0:{"--wui-search-icon-size":`${g}px`},ref:k,onBlur:e=>{y&&!e.currentTarget.contains(e.relatedTarget)&&!f&&D(!1)},children:[y&&l(`button`,{type:`button`,className:`wui-search-toggle`,"aria-label":h||m,"aria-expanded":A?`true`:`false`,onClick:j,children:l(n,{name:`search`,size:T})}),v&&l(`span`,{className:`search-spinner`,"aria-hidden":`true`}),l(n,{name:`search`,size:T,className:`search-icon`}),l(c.Control,{ref:O,type:`search`,className:`input search-input`,placeholder:m,value:f,onChange:e=>p?.(e.target.value),onKeyDown:e=>{C?.(e),y&&e.key===`Escape`&&!f&&D(!1)},"aria-label":h,form:S,disabled:b,...w}),!b&&l(`button`,{type:`button`,className:`search-clear`,"aria-label":`Clear search`,onClick:()=>p?.(``),hidden:!f,children:l(n,{name:`x`,size:16})})]})}export{f as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{isTypingTarget as i}from"@webority/ui-elements/helpers";import{useCallback as a,useEffect as o,useRef as s,useState as c}from"react";import{Form as l}from"react-bootstrap";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=[`sm`,`lg`];function p(p){let{value:m,onChange:h,placeholder:g=`Search…`,ariaLabel:_,iconSize:v,size:y,loading:b=!1,collapsible:x=!1,disabled:S=!1,className:C=``,form:w,onKeyDown:T,...E}=p;n(`AppSearch`,E),t(`AppSearch`,`size`,y,f);let D=v??18,[O,k]=c(!!m),A=s(null),j=s(null),M=!x||O||!!m,N=a(()=>{k(!0),requestAnimationFrame(()=>A.current?.focus())},[]);o(()=>{if(!x)return;let e=e=>{e.key!==`/`||e.ctrlKey||e.altKey||e.metaKey||i(e.target)||[...document.querySelectorAll(`.search-wrap.wui-search-collapsible`)].find(e=>e.offsetParent!==null)===j.current&&(e.preventDefault(),N())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[x,N]);let P=[`search-wrap`,m?`has-value`:``,y===`sm`?`search-sm`:y===`lg`?`search-lg`:``,b?`is-loading`:``,x?`wui-search-collapsible`:``,x&&!M?`is-collapsed`:``,C].filter(Boolean).join(` `);return d(`div`,{...e(`AppSearch`,p),className:P,style:v==null?void 0:{"--wui-search-icon-size":`${v}px`},ref:j,onBlur:e=>{x&&!e.currentTarget.contains(e.relatedTarget)&&!m&&k(!1)},children:[x&&u(`button`,{type:`button`,className:`wui-search-toggle`,"aria-label":_||g,"aria-expanded":M?`true`:`false`,onClick:N,children:u(r,{name:`search`,size:D})}),b&&u(`span`,{className:`search-spinner`,"aria-hidden":`true`}),u(r,{name:`search`,size:D,className:`search-icon`}),u(l.Control,{ref:A,type:`search`,className:`input search-input`,placeholder:g,value:m,onChange:e=>h?.(e.target.value),onKeyDown:e=>{T?.(e),x&&e.key===`Escape`&&!m&&k(!1)},"aria-label":_,form:w,disabled:S,...E}),!S&&u(`button`,{type:`button`,className:`search-clear`,"aria-label":`Clear search`,onClick:()=>h?.(``),hidden:!m,children:u(r,{name:`x`,size:16})})]})}export{p as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{SECTION_ALIGNS as r,SECTION_HEADINGS as i,SECTION_VARIANTS as a,sectionHeading as o}from"../lib/sectionShell.js";import{jsx as s}from"react/jsx-runtime";function c({title:c,actions:l,as:u=`h2`,eyebrow:d,subtitle:f,align:p=`center`,variant:m=`default`,className:h=``,...g}){return t(`AppSectionCallToAction`,g),e(`AppSectionCallToAction`,`as`,u,i),e(`AppSectionCallToAction`,`align`,p,r),e(`AppSectionCallToAction`,`variant`,m,a),s(n,{component:`AppSectionCallToAction`,kind:`call-to-action`,title:c,as:o(u,`h2`),eyebrow:d,subtitle:f,align:p,variant:m,actions:l,className:h,rest:g})}export{c as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,sectionHeading as s}from"../lib/sectionShell.js";import{jsx as c}from"react/jsx-runtime";function l(l){let{title:u,actions:d,as:f=`h2`,eyebrow:p,subtitle:m,align:h=`center`,variant:g=`default`,className:_=``,...v}=l;return n(`AppSectionCallToAction`,v),t(`AppSectionCallToAction`,`as`,f,a),t(`AppSectionCallToAction`,`align`,h,i),t(`AppSectionCallToAction`,`variant`,g,o),c(r,{component:`AppSectionCallToAction`,kind:`call-to-action`,title:u,as:s(f,`h2`),eyebrow:p,subtitle:m,align:h,variant:g,actions:d,className:_,rest:{...e(`AppSectionCallToAction`,l),...v}})}export{l as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{SECTION_ALIGNS as r,SECTION_HEADINGS as i,SECTION_VARIANTS as a,sectionHeading as o}from"../lib/sectionShell.js";import{jsx as s}from"react/jsx-runtime";function c({title:c,as:l=`h2`,eyebrow:u,subtitle:d,align:f=`center`,variant:p=`default`,children:m,className:h=``,...g}){return t(`AppSectionFaq`,g),e(`AppSectionFaq`,`as`,l,i),e(`AppSectionFaq`,`align`,f,r),e(`AppSectionFaq`,`variant`,p,a),s(n,{component:`AppSectionFaq`,kind:`faq`,title:c,as:o(l,`h2`),eyebrow:u,subtitle:d,align:f,variant:p,className:h,rest:g,children:m!=null&&m!==!1&&s(`div`,{className:`wui-section-faq-body`,children:m})})}export{c as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,sectionHeading as s}from"../lib/sectionShell.js";import{jsx as c}from"react/jsx-runtime";function l(l){let{title:u,as:d=`h2`,eyebrow:f,subtitle:p,align:m=`center`,variant:h=`default`,children:g,className:_=``,...v}=l;return n(`AppSectionFaq`,v),t(`AppSectionFaq`,`as`,d,a),t(`AppSectionFaq`,`align`,m,i),t(`AppSectionFaq`,`variant`,h,o),c(r,{component:`AppSectionFaq`,kind:`faq`,title:u,as:s(d,`h2`),eyebrow:f,subtitle:p,align:m,variant:h,className:_,rest:{...e(`AppSectionFaq`,l),...v},children:g!=null&&g!==!1&&c(`div`,{className:`wui-section-faq-body`,children:g})})}export{l as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,itemHeading as s,sectionHeading as c}from"../lib/sectionShell.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";var d=[`grid`,`rows`];function f({title:f,items:p=[],layout:m=`grid`,as:h=`h2`,eyebrow:g,subtitle:_,align:v=`center`,variant:y=`default`,className:b=``,...x}){t(`AppSectionFeatures`,x),e(`AppSectionFeatures`,`layout`,m,d),e(`AppSectionFeatures`,`as`,h,a),e(`AppSectionFeatures`,`align`,v,i),e(`AppSectionFeatures`,`variant`,y,o);let S=c(h,`h2`),C=s(S);return l(r,{component:`AppSectionFeatures`,kind:`features`,title:f,as:S,eyebrow:g,subtitle:_,align:v,variant:y,extraClass:m===`rows`?`wui-section-features-rows`:``,className:b,rest:x,children:p.length>0&&l(`ul`,{className:`wui-section-features-list`,children:p.map(e=>u(`li`,{className:`wui-section-feature`,children:[e.media!=null&&l(`div`,{className:`wui-section-media`,children:e.media}),u(`div`,{className:`wui-section-feature-body`,children:[e.icon&&l(`span`,{className:`wui-section-feature-icon`,children:l(n,{name:e.icon,size:24})}),l(C,{className:`wui-section-feature-title`,children:e.title}),e.description!=null&&e.description!==``&&l(`div`,{className:`wui-section-feature-text`,children:e.description})]})]},e.key??e.title))})})}export{f as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i,{SECTION_ALIGNS as a,SECTION_HEADINGS as o,SECTION_VARIANTS as s,itemHeading as c,sectionHeading as l}from"../lib/sectionShell.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=[`grid`,`rows`];function p(p){let{title:m,items:h=[],layout:g=`grid`,as:_=`h2`,eyebrow:v,subtitle:y,align:b=`center`,variant:x=`default`,className:S=``,...C}=p;n(`AppSectionFeatures`,C),t(`AppSectionFeatures`,`layout`,g,f),t(`AppSectionFeatures`,`as`,_,o),t(`AppSectionFeatures`,`align`,b,a),t(`AppSectionFeatures`,`variant`,x,s);let w=l(_,`h2`),T=c(w);return u(i,{component:`AppSectionFeatures`,kind:`features`,title:m,as:w,eyebrow:v,subtitle:y,align:b,variant:x,extraClass:g===`rows`?`wui-section-features-rows`:``,className:S,rest:{...e(`AppSectionFeatures`,p),...C},children:h.length>0&&u(`ul`,{className:`wui-section-features-list`,children:h.map(e=>d(`li`,{className:`wui-section-feature`,children:[e.media!=null&&u(`div`,{className:`wui-section-media`,children:e.media}),d(`div`,{className:`wui-section-feature-body`,children:[e.icon&&u(`span`,{className:`wui-section-feature-icon`,children:u(r,{name:e.icon,size:24})}),u(T,{className:`wui-section-feature-title`,children:e.title}),e.description!=null&&e.description!==``&&u(`div`,{className:`wui-section-feature-text`,children:e.description})]})]},e.key??e.title))})})}export{p as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{SECTION_ALIGNS as r,SECTION_HEADINGS as i,SECTION_VARIANTS as a,sectionHeading as o}from"../lib/sectionShell.js";import{jsx as s}from"react/jsx-runtime";function c({title:c,as:l=`h1`,eyebrow:u,subtitle:d,align:f=`start`,variant:p=`default`,actions:m,media:h,className:g=``,..._}){return t(`AppSectionHero`,_),e(`AppSectionHero`,`as`,l,i),e(`AppSectionHero`,`align`,f,r),e(`AppSectionHero`,`variant`,p,a),s(n,{component:`AppSectionHero`,kind:`hero`,title:c,as:o(l,`h1`),eyebrow:u,subtitle:d,align:f,variant:p,actions:m,className:g,rest:_,children:h!=null&&h!==!1&&s(`div`,{className:`wui-section-media`,children:h})})}export{c as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,sectionHeading as s}from"../lib/sectionShell.js";import{jsx as c}from"react/jsx-runtime";function l(l){let{title:u,as:d=`h1`,eyebrow:f,subtitle:p,align:m=`start`,variant:h=`default`,actions:g,media:_,className:v=``,...y}=l;return n(`AppSectionHero`,y),t(`AppSectionHero`,`as`,d,a),t(`AppSectionHero`,`align`,m,i),t(`AppSectionHero`,`variant`,h,o),c(r,{component:`AppSectionHero`,kind:`hero`,title:u,as:s(d,`h1`),eyebrow:f,subtitle:p,align:m,variant:h,actions:g,className:v,rest:{...e(`AppSectionHero`,l),...y},children:_!=null&&_!==!1&&c(`div`,{className:`wui-section-media`,children:_})})}export{l as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{SECTION_ALIGNS as r,SECTION_HEADINGS as i,SECTION_VARIANTS as a,SectionImage as o,sectionHeading as s}from"../lib/sectionShell.js";import{jsx as c}from"react/jsx-runtime";var l=e=>typeof e==`string`&&e.trim()!==``?e:void 0;function u({title:u,items:d=[],as:f=`h2`,eyebrow:p,subtitle:m,align:h=`center`,variant:g=`default`,className:_=``,...v}){t(`AppSectionLogos`,v),e(`AppSectionLogos`,`as`,f,i),e(`AppSectionLogos`,`align`,h,r),e(`AppSectionLogos`,`variant`,g,a);for(let e of d){let t=l(e.src),n=l(e.name)??l(e.label),r=e.width>0&&e.height>0;if(!(t?(l(e.alt)??n)!==void 0&&r:n!==void 0))throw Error(`AppSectionLogos item "${e.src??``}" needs src, alt (the company's name), width and height: a logo without a size moves the page when it loads.`)}return c(n,{component:`AppSectionLogos`,kind:`logos`,title:u,as:s(f,`h2`),eyebrow:p,subtitle:m,align:h,variant:g,className:_,rest:v,children:d.length>0&&c(`ul`,{className:`wui-section-logos-list`,children:d.map(e=>{let t=l(e.src),n=l(e.name)??l(e.label),r=t?c(o,{className:`wui-section-logo-img`,src:e.src,alt:l(e.alt)??n,width:e.width,height:e.height}):c(`span`,{className:`wui-section-logo-text`,children:n});return c(`li`,{className:`wui-section-logo`,children:e.href?c(`a`,{href:e.href,children:r}):r},e.key??t??n)})})})}export{u as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,SectionImage as s,sectionHeading as c}from"../lib/sectionShell.js";import{jsx as l}from"react/jsx-runtime";var u=e=>typeof e==`string`&&e.trim()!==``?e:void 0;function d(d){let{title:f,items:p=[],as:m=`h2`,eyebrow:h,subtitle:g,align:_=`center`,variant:v=`default`,className:y=``,...b}=d;n(`AppSectionLogos`,b),t(`AppSectionLogos`,`as`,m,a),t(`AppSectionLogos`,`align`,_,i),t(`AppSectionLogos`,`variant`,v,o);for(let e of p){let t=u(e.src),n=u(e.name)??u(e.label),r=e.width>0&&e.height>0;if(!(t?(u(e.alt)??n)!==void 0&&r:n!==void 0))throw Error(`AppSectionLogos item "${e.src??``}" needs src, alt (the company's name), width and height: a logo without a size moves the page when it loads.`)}return l(r,{component:`AppSectionLogos`,kind:`logos`,title:f,as:c(m,`h2`),eyebrow:h,subtitle:g,align:_,variant:v,className:y,rest:{...e(`AppSectionLogos`,d),...b},children:p.length>0&&l(`ul`,{className:`wui-section-logos-list`,children:p.map(e=>{let t=u(e.src),n=u(e.name)??u(e.label),r=t?l(s,{className:`wui-section-logo-img`,src:e.src,alt:u(e.alt)??n,width:e.width,height:e.height}):l(`span`,{className:`wui-section-logo-text`,children:n});return l(`li`,{className:`wui-section-logo`,children:e.href?l(`a`,{href:e.href,children:r}):r},e.key??t??n)})})})}export{d as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{SECTION_ALIGNS as r,SECTION_HEADINGS as i,SECTION_VARIANTS as a,sectionHeading as o}from"../lib/sectionShell.js";import{jsx as s}from"react/jsx-runtime";function c({title:c,as:l=`h2`,eyebrow:u,subtitle:d,align:f=`center`,variant:p=`default`,children:m,className:h=``,...g}){return t(`AppSectionPricing`,g),e(`AppSectionPricing`,`as`,l,i),e(`AppSectionPricing`,`align`,f,r),e(`AppSectionPricing`,`variant`,p,a),s(n,{component:`AppSectionPricing`,kind:`pricing`,title:c,as:o(l,`h2`),eyebrow:u,subtitle:d,align:f,variant:p,className:h,rest:g,children:m!=null&&m!==!1&&s(`div`,{className:`plan-grid`,children:m})})}export{c as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,sectionHeading as s}from"../lib/sectionShell.js";import{jsx as c}from"react/jsx-runtime";function l(l){let{title:u,as:d=`h2`,eyebrow:f,subtitle:p,align:m=`center`,variant:h=`default`,children:g,className:_=``,...v}=l;return n(`AppSectionPricing`,v),t(`AppSectionPricing`,`as`,d,a),t(`AppSectionPricing`,`align`,m,i),t(`AppSectionPricing`,`variant`,h,o),c(r,{component:`AppSectionPricing`,kind:`pricing`,title:u,as:s(d,`h2`),eyebrow:f,subtitle:p,align:m,variant:h,className:_,rest:{...e(`AppSectionPricing`,l),...v},children:g!=null&&g!==!1&&c(`div`,{className:`plan-grid`,children:g})})}export{l as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{SECTION_ALIGNS as r,SECTION_HEADINGS as i,SECTION_VARIANTS as a,SectionImage as o,sectionHeading as s}from"../lib/sectionShell.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";function u({title:u,items:d=[],as:f=`h2`,eyebrow:p,subtitle:m,align:h=`center`,variant:g=`default`,className:_=``,...v}){return t(`AppSectionTestimonials`,v),e(`AppSectionTestimonials`,`as`,f,i),e(`AppSectionTestimonials`,`align`,h,r),e(`AppSectionTestimonials`,`variant`,g,a),c(n,{component:`AppSectionTestimonials`,kind:`testimonials`,title:u,as:s(f,`h2`),eyebrow:p,subtitle:m,align:h,variant:g,className:_,rest:v,children:d.length>0&&c(`ul`,{className:`wui-section-testimonials-list`,children:d.map(e=>c(`li`,{children:l(`figure`,{className:`wui-section-testimonial`,children:[c(`blockquote`,{className:`wui-section-testimonial-quote`,children:e.quote}),l(`figcaption`,{className:`wui-section-testimonial-author`,children:[e.avatar&&c(o,{className:`wui-section-testimonial-avatar`,src:e.avatar,alt:``,width:48,height:48}),l(`span`,{className:`wui-section-testimonial-who`,children:[e.name&&c(`span`,{className:`wui-section-testimonial-name`,children:e.name}),e.role&&c(`span`,{className:`wui-section-testimonial-role`,children:e.role})]})]})]})},e.key??e.name))})})}export{u as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{SECTION_ALIGNS as i,SECTION_HEADINGS as a,SECTION_VARIANTS as o,SectionImage as s,sectionHeading as c}from"../lib/sectionShell.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";function d(d){let{title:f,items:p=[],as:m=`h2`,eyebrow:h,subtitle:g,align:_=`center`,variant:v=`default`,className:y=``,...b}=d;return n(`AppSectionTestimonials`,b),t(`AppSectionTestimonials`,`as`,m,a),t(`AppSectionTestimonials`,`align`,_,i),t(`AppSectionTestimonials`,`variant`,v,o),l(r,{component:`AppSectionTestimonials`,kind:`testimonials`,title:f,as:c(m,`h2`),eyebrow:h,subtitle:g,align:_,variant:v,className:y,rest:{...e(`AppSectionTestimonials`,d),...b},children:p.length>0&&l(`ul`,{className:`wui-section-testimonials-list`,children:p.map(e=>l(`li`,{children:u(`figure`,{className:`wui-section-testimonial`,children:[l(`blockquote`,{className:`wui-section-testimonial-quote`,children:e.quote}),u(`figcaption`,{className:`wui-section-testimonial-author`,children:[e.avatar&&l(s,{className:`wui-section-testimonial-avatar`,src:e.avatar,alt:``,width:48,height:48}),u(`span`,{className:`wui-section-testimonial-who`,children:[e.name&&l(`span`,{className:`wui-section-testimonial-name`,children:e.name}),e.role&&l(`span`,{className:`wui-section-testimonial-role`,children:e.role})]})]})]})},e.key??e.name))})})}export{d as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import r from"./warnDeprecatedValue.js";import{useEffect as i,useId as a,useLayoutEffect as o,useRef as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u={sm:`segmented-sm`,md:``,lg:`segmented-lg`},d={xl:{use:`lg`,removeIn:`0.83.0`}};function f({options:f=[],value:p,onChange:m,label:h,name:g,size:_=`md`,fullWidth:v=!1,bordered:y=!0,disabled:b=!1,labelVisible:x=!1,className:S=``,...C}){t(`AppSegmented`,C),r(`AppSegmented`,`size`,_,d);let w=d[_]?.use??_;e(`AppSegmented`,`size`,w,Object.keys(u));let T=a(),E=g||T,D=s(null),O=s(null),k=[`segmented`,u[w]??``,v?`segmented-full`:``,y?``:`wui-segmented-borderless`,b?`is-disabled`:``,S].filter(Boolean).join(` `);o(()=>{let e=D.current,t=O.current;if(!e||!t)return;let n=n=>{let r=e.querySelector(`.segmented-option:has(.segmented-input:checked)`);if(!r||!e.offsetWidth){t.style.opacity=`0`;return}n||e.classList.remove(`is-animated`),t.style.width=`${r.offsetWidth}px`,t.style.transform=`translateX(${r.offsetLeft}px)`,t.style.opacity=`1`,n||requestAnimationFrame(()=>D.current?.classList.add(`is-animated`))};n(!0);let r=typeof ResizeObserver<`u`?new ResizeObserver(()=>n(!1)):null;return r?.observe(e),()=>r?.disconnect()},[p,f,_,v,x]),i(()=>{let e=requestAnimationFrame(()=>D.current?.classList.add(`is-animated`));return()=>cancelAnimationFrame(e)},[]);let A=l(`div`,{ref:D,className:k,role:`radiogroup`,"aria-label":h,"aria-disabled":b||void 0,...C,children:[c(`span`,{className:`segmented-thumb`,ref:O,"aria-hidden":`true`}),f.map(e=>l(`label`,{className:`segmented-option`,children:[c(`input`,{type:`radio`,className:`segmented-input`,name:E,value:e.value,checked:e.value===p,disabled:b||e.disabled,onChange:()=>m?.(e.value)}),e.icon&&c(n,{name:e.icon,size:13}),e.note?l(`span`,{className:`segmented-option-text`,children:[c(`span`,{className:`segmented-option-label`,children:e.label}),c(`span`,{className:`segmented-option-note`,children:e.note})]}):e.label,e.count!=null&&c(`span`,{className:`wui-segmented-option-count`,children:e.count})]},e.value))]});return!x||!h?A:l(`div`,{className:`field`,children:[c(`span`,{className:`label`,"aria-hidden":`true`,children:h}),A]})}export{f as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i from"./warnDeprecatedValue.js";import{useEffect as a,useId as o,useLayoutEffect as s,useRef as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";var d={sm:`segmented-sm`,md:``,lg:`segmented-lg`},f={xl:{use:`lg`,removeIn:`0.83.0`}};function p(p){let{options:m=[],value:h,onChange:g,label:_,name:v,size:y=`md`,fullWidth:b=!1,bordered:x=!0,disabled:S=!1,labelVisible:C=!1,className:w=``,...T}=p;n(`AppSegmented`,T),i(`AppSegmented`,`size`,y,f);let E=f[y]?.use??y;t(`AppSegmented`,`size`,E,Object.keys(d));let D=o(),O=v||D,k=c(null),A=c(null),j=[`segmented`,d[E]??``,b?`segmented-full`:``,x?``:`wui-segmented-borderless`,S?`is-disabled`:``,w].filter(Boolean).join(` `);s(()=>{let e=k.current,t=A.current;if(!e||!t)return;let n=n=>{let r=e.querySelector(`.segmented-option:has(.segmented-input:checked)`);if(!r||!e.offsetWidth){t.style.opacity=`0`;return}n||e.classList.remove(`is-animated`),t.style.width=`${r.offsetWidth}px`,t.style.transform=`translateX(${r.offsetLeft}px)`,t.style.opacity=`1`,n||requestAnimationFrame(()=>k.current?.classList.add(`is-animated`))};n(!0);let r=typeof ResizeObserver<`u`?new ResizeObserver(()=>n(!1)):null;return r?.observe(e),()=>r?.disconnect()},[h,m,y,b,C]),a(()=>{let e=requestAnimationFrame(()=>k.current?.classList.add(`is-animated`));return()=>cancelAnimationFrame(e)},[]);let M=C&&_,N=e(`AppSegmented`,p),P=u(`div`,{ref:k,className:j,role:`radiogroup`,"aria-label":_,"aria-disabled":S||void 0,...M?void 0:N,...T,children:[l(`span`,{className:`segmented-thumb`,ref:A,"aria-hidden":`true`}),m.map(e=>u(`label`,{className:`segmented-option`,children:[l(`input`,{type:`radio`,className:`segmented-input`,name:O,value:e.value,checked:e.value===h,disabled:S||e.disabled,onChange:()=>g?.(e.value)}),e.icon&&l(r,{name:e.icon,size:13}),e.note?u(`span`,{className:`segmented-option-text`,children:[l(`span`,{className:`segmented-option-label`,children:e.label}),l(`span`,{className:`segmented-option-note`,children:e.note})]}):e.label,e.count!=null&&l(`span`,{className:`wui-segmented-option-count`,children:e.count})]},e.value))]});return M?u(`div`,{className:`field`,...N,children:[l(`span`,{className:`label`,"aria-hidden":`true`,children:_}),P]}):P}export{p as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"../lib/FieldMessage.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./useNodeLabels.js";import o,{optionsEqual as s}from"./useWuiControl.js";import{forwardRef as c,useEffect as l,useId as u,useRef as d}from"react";import{Fragment as ee,jsx as f,jsxs as p}from"react/jsx-runtime";import"@webority/ui-elements/elements/select";var m=[`sm`,`lg`],te=(e,t)=>({value:e.value,label:t,icon:e.icon}),h=c(function({value:c,onChange:h,options:g=[],placeholder:_=`Select...`,searchPlaceholder:v=`Search...`,searchable:y=!1,clearable:b=!1,size:x,icon:S,prefix:C,suffix:w,floatingLabel:T=!1,disabled:E,label:D,required:O=!1,error:k,hint:A,help:j,helpLabel:M=`More information`,id:N,name:P,className:F=``,fieldClassName:I=``,"aria-label":L,"aria-labelledby":R,"aria-describedby":z,...B},V){t(`AppSelect`,B),e(`AppSelect`,`size`,x,m);let H=u(),{setRef:U,innerRef:W}=o({ref:V,value:c??``,onChange:h}),{portal:G,toElementOptions:K}=a(g),q=d({el:null,options:null,map:null});l(()=>{let e=W.current;if(!e||q.current.el===e&&q.current.options===g&&q.current.map===K)return;q.current={el:e,options:g,map:K};let t=K(g,te);s(t,e.options)||(e.options=t)});let J=N||H,Y=T&&D,X=k&&J?`${J}-error`:void 0,Z=A&&J?`${J}-hint`:void 0,Q=p(ee,{children:[f(`wui-select`,{"aria-label":L||(typeof D==`string`?D:void 0),"aria-labelledby":R||void 0,"aria-describedby":X||Z||z||void 0,"aria-invalid":k?`true`:void 0,ref:U,id:J,name:P,placeholder:T&&D?` `:_,"search-placeholder":v,searchable:y?``:void 0,clearable:b?``:void 0,size:x||void 0,icon:S||void 0,disabled:E?``:void 0,required:O?``:void 0,className:F||void 0,...B}),G]}),$=!Y&&(C!=null||w!=null)?p(`div`,{className:`input-affixed`,children:[C!=null&&f(`span`,{className:`affix affix-pre`,children:C}),Q,w!=null&&f(`span`,{className:`affix affix-suf`,children:w})]}):Q;return!D&&!k&&!A?$:p(`div`,{className:[`field`,I].filter(Boolean).join(` `),children:[D&&!Y&&p(`label`,{className:`label`,htmlFor:J,children:[D,O&&f(i,{}),j&&f(r,{label:M,children:j})]}),Y?p(`div`,{className:`field-float`,children:[Q,p(`label`,{className:`float-label`,htmlFor:J,children:[D,O&&f(i,{})]})]}):$,f(n,{error:k,hint:A,errorId:X,hintId:Z})]})});export{h as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import ee from"./warnUnknownProps.js";import te from"../lib/FieldMessage.js";import n from"./AppInfoTip.js";import r from"./AppRequiredMark.js";import i from"./useNodeLabels.js";import a,{optionsEqual as o}from"./useWuiControl.js";import{forwardRef as s,useEffect as c,useId as l,useRef as u}from"react";import{Fragment as ne,jsx as d,jsxs as f}from"react/jsx-runtime";import"@webority/ui-elements/elements/select";var re=[`sm`,`lg`],p=(e,t)=>({value:e.value,label:t,icon:e.icon}),m=s(function(s,m){let{value:h,onChange:g,options:_=[],placeholder:v=`Select...`,searchPlaceholder:y=`Search...`,searchable:b=!1,clearable:ie=!1,size:x,icon:ae,prefix:S,suffix:C,floatingLabel:w=!1,disabled:T,label:E,required:D=!1,error:O,hint:k,help:A,helpLabel:j=`More information`,id:M,name:N,className:P=``,fieldClassName:F=``,"aria-label":I,"aria-labelledby":L,"aria-describedby":R,...z}=s;ee(`AppSelect`,z),t(`AppSelect`,`size`,x,re);let oe=l(),{setRef:B,innerRef:V}=a({ref:m,value:h??``,onChange:g}),{portal:H,toElementOptions:U}=i(_),W=u({el:null,options:null,map:null});c(()=>{let e=V.current;if(!e||W.current.el===e&&W.current.options===_&&W.current.map===U)return;W.current={el:e,options:_,map:U};let t=U(_,p);o(t,e.options)||(e.options=t)});let G=M||oe,K=w&&E,q=O&&G?`${G}-error`:void 0,J=k&&G?`${G}-hint`:void 0,se=q||J||R,Y=!K&&(S!=null||C!=null),X=!E&&!O&&!k,Z=e(`AppSelect`,s),Q=f(ne,{children:[d(`wui-select`,{"aria-label":I||(typeof E==`string`?E:void 0),"aria-labelledby":L||void 0,"aria-describedby":se||void 0,"aria-invalid":O?`true`:void 0,ref:B,id:G,name:N,placeholder:w&&E?` `:v,"search-placeholder":y,searchable:b?``:void 0,clearable:ie?``:void 0,size:x||void 0,icon:ae||void 0,disabled:T?``:void 0,required:D?``:void 0,className:P||void 0,...X&&!Y?Z:null,...z}),H]}),$=Y?f(`div`,{...X?Z:null,className:`input-affixed`,children:[S!=null&&d(`span`,{className:`affix affix-pre`,children:S}),Q,C!=null&&d(`span`,{className:`affix affix-suf`,children:C})]}):Q;if(X)return $;let ce=[`field`,F].filter(Boolean).join(` `);return f(`div`,{...Z,className:ce,children:[E&&!K&&f(`label`,{className:`label`,htmlFor:G,children:[E,D&&d(r,{}),A&&d(n,{label:j,children:A})]}),K?f(`div`,{className:`field-float`,children:[Q,f(`label`,{className:`float-label`,htmlFor:G,children:[E,D&&d(r,{})]})]}):$,d(te,{error:O,hint:k,errorId:q,hintId:J})]})});export{m as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./useNodeLabels.js";import r,{optionsEqual as i}from"./useWuiControl.js";import{useEffect as a}from"react";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/select";var l=[`sm`,`lg`],u=(e,t)=>({value:e.value,label:t,icon:e.icon});function d({value:d,onChange:f,options:p=[],placeholder:m=`Select...`,name:h,ariaLabel:g,id:_,disabled:v,size:y,icon:b,prefix:x,className:S,...C}){t(`AppSelectMini`,C),e(`AppSelectMini`,`size`,y,l);let{setRef:w,innerRef:T}=r({value:d??``,onChange:f}),{portal:E,toElementOptions:D}=n(p);return a(()=>{let e=T.current;if(!e)return;let t=D(p,u);i(t,e.options)||(e.options=t)},[p,T,D]),a(()=>{let e=T.current;if(e)for(let[t,n]of[[`icon`,b],[`prefix`,x]])n==null||n===``?e.removeAttribute(t):e.setAttribute(t,n)},[b,x,T]),c(o,{children:[s(`wui-select`,{ref:w,name:h,compact:``,id:_,placeholder:m,"aria-label":g,size:y||void 0,disabled:v?``:void 0,className:S,...C}),E]})}export{d as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./useNodeLabels.js";import i,{optionsEqual as a}from"./useWuiControl.js";import{useEffect as o}from"react";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import"@webority/ui-elements/elements/select";var u=[`sm`,`lg`],d=(e,t)=>({value:e.value,label:t,icon:e.icon});function f(f){let{value:p,onChange:m,options:h=[],placeholder:g=`Select...`,name:_,ariaLabel:v,id:y,disabled:b,size:x,icon:S,prefix:C,className:w,...T}=f;n(`AppSelectMini`,T),t(`AppSelectMini`,`size`,x,u);let{setRef:E,innerRef:D}=i({value:p??``,onChange:m}),{portal:O,toElementOptions:k}=r(h);return o(()=>{let e=D.current;if(!e)return;let t=k(h,d);a(t,e.options)||(e.options=t)},[h,D,k]),o(()=>{let e=D.current;if(e)for(let[t,n]of[[`icon`,S],[`prefix`,C]])n==null||n===``?e.removeAttribute(t):e.setAttribute(t,n)},[S,C,D]),l(s,{children:[c(`wui-select`,{ref:E,name:_,compact:``,id:y,placeholder:g,"aria-label":v,size:x||void 0,disabled:b?``:void 0,className:w,...e(`AppSelectMini`,f),...T}),O]})}export{f as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import r from"./AppAvatar.js";import{navMatchScore as i}from"../lib/navMatch.js";import{readShellCollapsed as a,writeShellCollapsed as o}from"../lib/shellCookie.js";import{initScrollEdges as s}from"@webority/ui-elements/helpers";import{useEffect as c,useId as l,useMemo as u,useRef as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";var g=99,_=4,v=5,y=[`prefix`,`exact`],b=[`comfortable`,`compact`],x=[`default`,`primary`],S=e=>e>g?`${g}+`:String(e);function C({groups:r=[],brand:i,sidebarStart:l,sidebarStartCompact:p,sidebarFooter:g,topbarStart:_,topbarEnd:v,footer:y,launcher:S,children:C,collapsed:D,onCollapsedChange:k,noSidebar:M=!1,density:P=`comfortable`,topbarTone:F=`default`,navLabel:I=`Main navigation`,linkComponent:L,currentPath:R,rememberCollapsed:z=!1,collapsedCookie:B=`wui-shell-collapsed`,tabBarLabel:V=`Quick navigation`,moreLabel:H=`More`,userMenu:U,notifications:W,search:G,className:K=``,...q}){t(`AppShell`,q),e(`AppShell`,`density`,P,b),e(`AppShell`,`topbarTone`,F,x);let[ee,te]=f(()=>z&&D===void 0&&typeof document<`u`?a(B)??!1:!1),[J,Y]=f(!1),[ne,re]=f(!1),[ie,ae]=f(!1),X=d(null),Z=D??ee,oe=()=>{let e=!Z;D===void 0&&te(e),z&&o(e,B),k?.(e)},Q=u(()=>w(r,R),[r,R]),$=M?null:T(Q);return c(()=>{let e=()=>re(window.scrollY>4);return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),c(()=>{s()},[]),c(()=>{let e=X.current,t=e?.querySelector(`.app-nav-item[aria-current="page"]`);if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();n.top<r.top?e.scrollTop-=r.top-n.top:n.bottom>r.bottom&&(e.scrollTop+=n.bottom-r.bottom)},[]),c(()=>{let e=X.current;if(!e)return;let t=()=>ae(e.scrollHeight>e.clientHeight);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[Q]),c(()=>{if(!J)return;let e=e=>{e.key===`Escape`&&Y(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[J]),h(`div`,{className:[`app-shell`,Z?`collapsed`:``,M?`no-sidebar`:``,J?`mobile-open`:``,K].filter(Boolean).join(` `),"data-density":P===`compact`?`compact`:void 0,...q,children:[m(`a`,{className:`wui-skip-link`,href:`#main-content`,children:`Skip to content`}),h(`aside`,{className:`app-sidebar`,children:[i&&m(`div`,{className:`app-sidebar-brand`,children:i}),l&&m(`div`,{className:`app-sidebar-start`,children:l}),p&&m(`div`,{className:`app-sidebar-start-compact`,children:p}),m(`nav`,{className:`app-sidebar-scroll`,"aria-label":I,ref:X,tabIndex:ie?0:void 0,children:Q.map((e,t)=>h(`div`,{className:`app-nav-group`,children:[e.label&&m(`div`,{className:`app-nav-group-label`,children:e.label}),e.items.map(e=>m(O,{item:e,linkComponent:L,onNavigate:()=>Y(!1)},e.key??e.href??e.label)),e.after&&m(`div`,{className:`wui-nav-group-after`,children:e.after})]},e.label??`group-${t}`))}),g&&m(`div`,{className:`app-sidebar-foot`,children:g}),!M&&m(`button`,{type:`button`,className:`app-sidebar-toggle`,onClick:oe,"aria-label":Z?`Expand navigation`:`Collapse navigation`,"aria-expanded":!Z,children:m(n,{name:`chevrons-left`,size:20})})]}),h(`div`,{className:`app-main`,children:[h(`header`,{className:`app-topbar${ne?` scrolled`:``}`,"data-tone":F===`primary`?`primary`:void 0,children:[h(`div`,{className:`app-topbar-start`,children:[m(`button`,{type:`button`,className:`app-topbar-menu`,onClick:()=>Y(!0),"aria-label":`Open navigation`,"aria-expanded":J,children:m(n,{name:`menu`,size:18})}),_,G&&m(N,{config:G})]}),h(`div`,{className:`app-topbar-end`,children:[v,W&&m(j,{config:W}),U&&m(A,{config:U,linkComponent:L})]})]}),m(`main`,{className:`app-content`,id:`main-content`,children:C}),y&&m(`footer`,{className:`app-footer`,children:y})]}),S&&m(`div`,{className:`wui-shell-launcher`,children:S}),$&&h(`nav`,{className:`wui-tabbar`,"aria-label":V,children:[$.tabs.map(e=>m(E,{tab:e,linkComponent:L},e.key??e.href)),$.hasMore&&h(`button`,{type:`button`,className:`wui-tabbar-item${$.moreActive?` active`:``}`,onClick:()=>Y(!0),children:[m(`span`,{className:`wui-tabbar-icon`,children:m(n,{name:`more`,size:24})}),m(`span`,{className:`wui-tabbar-label`,children:H})]})]}),m(`button`,{type:`button`,className:`app-scrim`,onClick:()=>Y(!1),"aria-label":`Close navigation`,tabIndex:J?0:-1})]})}function w(t,n){let r=e=>(e??[]).map(e=>Array.isArray(e.children)?{...e,children:r(e.children)}:{...e}).filter(e=>(e.children?.length??0)>0||!!e.href),a=t.map(e=>({...e,items:r(e.items)})).filter(e=>e.items.length>0),o=[],s=e=>{for(let t of e)o.push(t),t.children&&s(t.children)};for(let e of a)s(e.items);for(let t of o)e(`AppShell`,`match`,t.match,y);let c=null;if(n!=null&&!o.some(e=>e.active===!0)){let e=-1;for(let t of o){if(t.active!=null||t.children?.length&&!t.href)continue;let r=i(n,t.href,{exact:t.match===`exact`,also:t.matchAlso});r>e&&(e=r,c=t)}}for(let e of o)e.active=e.active??e===c;return a}function T(e){let t=[],n=e=>{for(let r of e)r.children?.length?n(r.children):t.push(r)};for(let t of e)n(t.items);let r=t.filter(e=>e.tab);if(r.length===0)return null;let i=r.length<t.length,a=i?_:v;if(r.length>a)throw Error(`<AppShell>: ${r.length} items carry tab: true, but the phone tab bar holds ${a} (${i?`4 plus More, because other items exist`:`5 when every item is a tab`}). Flag fewer items.`);return{tabs:r,hasMore:i,moreActive:t.some(e=>!e.tab&&e.active)}}function E({tab:e,linkComponent:t}){let r=`wui-tabbar-item${e.active?` active`:``}`,i=h(p,{children:[e.icon&&m(`span`,{className:`wui-tabbar-icon`,children:typeof e.icon==`string`?m(n,{name:e.icon,size:24}):e.icon}),m(`span`,{className:`wui-tabbar-label`,children:e.tabLabel??e.label}),e.badge!=null&&m(`span`,{className:`wui-tabbar-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:e.badge})]}),a=e.active?`page`:void 0;return t?m(t,{className:r,to:e.href,"aria-current":a,children:i}):m(`a`,{className:r,href:e.href,"aria-current":a,children:i})}function D(e){for(let t of e){if(t.active)return t;let e=t.children?.length?D(t.children):void 0;if(e)return e}}function O({item:e,linkComponent:t,onNavigate:r,depth:i=0}){let a=i>0,o=i>1?` wui-nav-depth-${Math.min(i,6)}`:``,s=Array.isArray(e.children)&&e.children.length>0,l=s?D(e.children):void 0,u=!!l,d=l?l.key??l.href??l.label:null,[g,_]=f(u);c(()=>{d!=null&&_(!0)},[d]);let v=typeof e.label==`string`?e.label:void 0,y=!a&&e.icon&&m(`span`,{className:`app-nav-icon`,children:typeof e.icon==`string`?m(n,{name:e.icon,size:22}):e.icon}),b=e.badge!=null&&m(`span`,{className:`app-nav-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:e.badge}),x=h(p,{children:[y,m(`span`,{className:`app-nav-text`,children:e.label}),b,e.trailingIcon&&m(`span`,{className:`app-nav-trailing`,children:typeof e.trailingIcon==`string`?m(n,{name:e.trailingIcon,size:16}):e.trailingIcon})]}),S=e.active?`page`:void 0;if(s){let s=m(`div`,{className:`app-nav-sub${g?` expanded`:``}`,inert:!g,"aria-hidden":!g||void 0,children:m(`div`,{className:`app-nav-sub-inner`,children:e.children.map(e=>m(O,{item:e,linkComponent:t,onNavigate:r,depth:i+1},e.key??e.href))})});if(e.href){let i=t?m(t,{className:`wui-nav-split-link`,to:e.href,"aria-current":S,onClick:r,children:x}):m(`a`,{className:`wui-nav-split-link`,href:e.href,"aria-current":S,onClick:r,children:x});return h(p,{children:[h(`div`,{className:`app-nav-item has-children wui-nav-split${a?` app-nav-subitem`:``}${u||e.active?` active`:``}${o}`,"data-label":v,children:[i,m(`button`,{type:`button`,className:`app-nav-caret wui-nav-split-toggle`,"aria-expanded":g,"aria-label":`Show or hide ${v??``} pages`,onClick:()=>_(e=>!e),children:m(n,{name:`chevron-right`,size:16})})]}),s]})}return h(p,{children:[h(`button`,{type:`button`,className:`app-nav-item${a?` app-nav-subitem`:``} has-children${u?` active`:``}${o}`,"aria-expanded":g,"data-label":v,onClick:()=>_(e=>!e),children:[y,m(`span`,{className:`app-nav-text`,children:e.label}),b,m(`span`,{className:`app-nav-caret`,children:m(n,{name:`chevron-right`,size:16})})]}),s]})}let C=`app-nav-item${a?` app-nav-subitem`:``}${e.active?` active`:``}${o}`;return t?m(t,{className:C,to:e.href,"aria-current":S,"data-label":v,onClick:r,children:x}):m(`a`,{className:C,href:e.href,"aria-current":S,"data-label":v,onClick:r,children:x})}function k(){let[e,t]=f(!1),n=d(null);return c(()=>{if(!e)return;let r=e=>{n.current?.contains(e.target)||t(!1)},i=e=>{e.key===`Escape`&&(t(!1),n.current?.querySelector(`button`)?.focus())};return document.addEventListener(`mousedown`,r),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`keydown`,i)}},[e]),{open:e,setOpen:t,ref:n}}function A({config:e,linkComponent:t}){let i=l(),{open:a,setOpen:o,ref:s}=k(),{name:c,role:u,photo:d,profileHref:f,profileLabel:g=`My profile`,onLogout:_,logoutAction:v,logoutLabel:y=`Sign out`,items:b=[]}=e;if(!c)throw Error(`<AppShell> userMenu.name is required; the trigger and the avatar are named from it.`);let x=()=>o(!1),S=(e,n,r,i)=>t?m(t,{className:`dropdown-item`,to:e,onClick:i,children:n},r):m(`a`,{className:`dropdown-item`,href:e,onClick:i,children:n},r),C=h(p,{children:[m(n,{name:`log-out`,size:18}),y]});return h(`div`,{className:`dropdown wui-usermenu`,ref:s,children:[h(`button`,{type:`button`,id:i,className:`wui-usermenu-trigger`,"aria-expanded":a,"aria-label":`Account menu for ${c}`,onClick:()=>o(e=>!e),children:[m(r,{name:c,src:d,tone:`auto`}),h(`span`,{className:`wui-usermenu-text`,children:[m(`span`,{className:`wui-usermenu-name`,children:c}),u&&m(`span`,{className:`wui-usermenu-role`,children:u})]}),m(n,{name:`chevron-down`,size:14,className:`wui-usermenu-caret`})]}),h(`div`,{className:`dropdown-menu dropdown-menu-end wui-usermenu-menu${a?` show`:``}`,"aria-labelledby":i,"data-bs-popper":a?`static`:void 0,children:[h(`div`,{className:`wui-usermenu-head`,children:[m(r,{name:c,src:d,size:`lg`,tone:`auto`}),h(`div`,{className:`wui-usermenu-who`,children:[m(`div`,{className:`wui-usermenu-name`,children:c}),u&&m(`div`,{className:`wui-usermenu-role`,children:u})]})]}),f&&S(f,h(p,{children:[m(n,{name:`user`,size:18}),g]}),void 0,x),b.map(e=>{if(e.divider)return m(`hr`,{className:`dropdown-divider`},e.key);let t=h(p,{children:[e.icon&&m(n,{name:e.icon,size:18}),e.label]}),r=()=>{e.onClick?.(),x()};return e.href?S(e.href,t,e.key,r):m(`button`,{type:`button`,className:`dropdown-item`,onClick:r,children:t},e.key)}),v?m(`form`,{method:`post`,action:v,className:`wui-usermenu-logout`,children:m(`button`,{type:`submit`,className:`dropdown-item danger`,children:C})}):_&&m(`button`,{type:`button`,className:`dropdown-item danger`,onClick:()=>{x(),_()},children:C})]})]})}function j({config:e}){let t=l(),{open:r,setOpen:i,ref:a}=k(),{unread:o=0,items:s,loading:u=!1,onOpen:g,onMarkAllRead:_,viewAllHref:v,label:y=`Notifications`,emptyText:b=`You are all caught up.`}=e,[x,C]=f(``),w=d(o);c(()=>{w.current!==o&&(w.current=o,C(o===0?`No unread notifications`:`${S(o)} unread notifications`))},[o]);let T=null;return s?.length?T=m(`div`,{className:`wui-bell-items`,children:s.map((e,t)=>{let r=`wui-bell-item${e.read?` wui-bell-item-read`:``}`,i=h(p,{children:[m(`span`,{className:`wui-bell-dot`,"aria-hidden":`true`}),e.icon&&m(`span`,{className:`wui-bell-icon`,children:m(n,{name:e.icon,size:18})}),h(`span`,{className:`wui-bell-body`,children:[!e.read&&m(`span`,{className:`visually-hidden`,children:`Unread: `}),m(`span`,{className:`wui-bell-item-title`,children:e.title}),e.time&&m(`span`,{className:`wui-bell-when`,children:e.time})]})]});return e.href?m(`a`,{className:r,href:e.href,"data-id":e.id,children:i},e.id??t):m(`div`,{className:r,"data-id":e.id,children:i},e.id??t)})}):u?T=m(`div`,{className:`wui-bell-state`,children:`Loading…`}):s&&(T=m(`div`,{className:`wui-bell-state`,children:b})),h(`div`,{className:`dropdown wui-bell`,ref:a,children:[h(`button`,{type:`button`,id:t,className:`topbar-icon-btn wui-bell-trigger`,"aria-expanded":r,"aria-label":o===0?y:`${y}, ${S(o)} unread`,onClick:()=>{let e=!r;i(e),e&&g?.()},children:[m(n,{name:`notification`,size:20}),m(`span`,{className:`wui-bell-count`,"aria-hidden":`true`,hidden:o===0,children:S(o)})]}),m(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:x}),h(`div`,{className:`dropdown-menu dropdown-menu-end wui-bell-menu${r?` show`:``}`,"aria-labelledby":t,"data-bs-popper":r?`static`:void 0,children:[h(`div`,{className:`wui-bell-head`,children:[m(`span`,{className:`wui-bell-title`,children:y}),_&&m(`button`,{type:`button`,className:`wui-bell-markall`,onClick:_,children:`Mark all read`})]}),m(`div`,{className:`wui-bell-list`,"aria-busy":u||void 0,children:T}),v&&m(`a`,{className:`wui-bell-foot`,href:v,children:`View all`})]})]})}var M=e=>!!e&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function N({config:e}){let t=l(),{value:r=``,onChange:i,results:a=null,loading:o=!1,onSelect:s,onSubmit:p,placeholder:g=`Search`}=e,[_,v]=f(!1),[y,b]=f(!1),[x,S]=f({results:null,index:-1}),C=x.results===a?x.index:-1,w=e=>S({results:a,index:e}),T=d(null),E=d(null),D=d([]),O=u(()=>(a??[]).flatMap(e=>e.hits??[]),[a]),k=a!=null&&!y,A=O.length;c(()=>{let e=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||M(e.target)||(e.preventDefault(),v(!0),E.current?.focus())},t=e=>{T.current?.contains(e.target)||(b(!0),v(!1))};return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,t)}},[]);let j=e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(!k||A===0)return;e.preventDefault(),w((C+(e.key===`ArrowDown`?1:-1)+A)%A)}else e.key===`Enter`?k&&C>=0&&D.current[C]?(e.preventDefault(),D.current[C].click()):p&&r.trim()!==``&&(e.preventDefault(),p(r.trim())):e.key===`Escape`&&(k?(e.preventDefault(),b(!0)):_&&(e.preventDefault(),v(!1)))},N=-1;return D.current=[],h(`div`,{className:`wui-topsearch${_?` is-open`:``}${o?` is-loading`:``}`,ref:T,children:[m(`button`,{type:`button`,className:`topbar-icon-btn wui-topsearch-open`,"aria-label":g,"aria-expanded":_,"aria-controls":`${t}-panel`,onClick:()=>{let e=!_;v(e),e&&E.current?.focus()},children:m(n,{name:`search`,size:20})}),h(`div`,{className:`wui-topsearch-panel`,id:`${t}-panel`,children:[h(`div`,{className:`search-wrap`,children:[m(n,{name:`search`,size:18,className:`search-icon`}),m(`input`,{ref:E,type:`search`,className:`form-control input search-input`,id:`${t}-input`,placeholder:g,"aria-label":g,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":k,"aria-controls":`${t}-list`,"aria-activedescendant":k&&C>=0?`${t}-opt-${C}`:void 0,autoComplete:`off`,value:r,onChange:e=>{b(!1),i?.(e.target.value)},onKeyDown:j})]}),m(`div`,{className:`wui-topsearch-results`,id:`${t}-list`,role:`listbox`,"aria-label":`Search results`,hidden:!k,children:k&&h(`div`,{className:`wui-topsearch-groups`,role:`presentation`,children:[A===0&&h(`div`,{className:`wui-topsearch-empty`,role:`option`,"aria-disabled":`true`,"aria-selected":`false`,children:[`No results for “`,r,`”`]}),a.filter(e=>e.hits?.length).map((e,r)=>h(`div`,{className:`wui-topsearch-group`,role:`group`,"aria-label":e.label??``,children:[e.label&&m(`div`,{className:`wui-topsearch-group-label`,role:`presentation`,children:e.label}),e.hits.map(e=>{N+=1;let r=N;return h(`a`,{className:`wui-topsearch-hit${r===C?` is-active`:``}`,role:`option`,"aria-selected":r===C,id:`${t}-opt-${r}`,href:e.href,ref:e=>{D.current[r]=e},onClick:t=>s?.(e,t),children:[e.icon&&m(`span`,{className:`wui-topsearch-hit-icon`,children:m(n,{name:e.icon,size:18})}),h(`span`,{className:`wui-topsearch-hit-text`,children:[m(`span`,{className:`wui-topsearch-hit-title`,children:e.title}),e.subtitle&&m(`span`,{className:`wui-topsearch-hit-sub`,children:e.subtitle})]})]},`${e.href}-${r}`)})]},e.label??r))]})})]}),m(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:k?A===0?`No results`:`${A} ${A===1?`result`:`results`}`:``})]})}export{C as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i from"./AppAvatar.js";import{navMatchScore as a}from"../lib/navMatch.js";import{readShellCollapsed as o,writeShellCollapsed as s}from"../lib/shellCookie.js";import{initScrollEdges as c}from"@webority/ui-elements/helpers";import{useEffect as l,useId as u,useMemo as d,useRef as f,useState as p}from"react";import{Fragment as m,jsx as h,jsxs as g}from"react/jsx-runtime";var _=99,v=4,y=5,b=[`prefix`,`exact`],x=[`comfortable`,`compact`],S=[`default`,`primary`],C=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],w=new Set([`key`,`label`,`icon`,`iconVariant`,`iconSize`,`href`,`badge`,`badgeTone`,`badgeTitle`,`trailingIcon`,`active`,`match`,`matchAlso`,`tab`,`tabLabel`,`children`]),T=e=>e>_?`${_}+`:String(e);function E(i){let{groups:a=[],brand:u,sidebarStart:m,sidebarStartCompact:_,sidebarFooter:v,topbarStart:y,topbarEnd:b,footer:C,launcher:w,children:T,collapsed:E,onCollapsedChange:O,noSidebar:j=!1,density:N=`comfortable`,topbarTone:P=`default`,navLabel:F=`Main navigation`,linkComponent:I,currentPath:L,rememberCollapsed:R=!1,collapsedCookie:z=`wui-shell-collapsed`,tabBarLabel:B=`Quick navigation`,moreLabel:V=`More`,userMenu:H,notifications:U,search:W,className:G=``,...K}=i;n(`AppShell`,K),t(`AppShell`,`density`,N,x),t(`AppShell`,`topbarTone`,P,S);let[q,re]=p(()=>R&&E===void 0&&typeof document<`u`?o(z)??!1:!1),[J,Y]=p(!1),[ie,ae]=p(!1),[oe,se]=p(!1),X=f(null),Z=E??q,ce=()=>{let e=!Z;E===void 0&&re(e),R&&s(e,z),O?.(e)},Q=d(()=>D(a,L),[a,L]),$=j?null:k(Q);return l(()=>{let e=()=>ae(window.scrollY>4);return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),l(()=>{c()},[]),l(()=>{let e=X.current,t=e?.querySelector(`.app-nav-item[aria-current="page"]`);if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();n.top<r.top?e.scrollTop-=r.top-n.top:n.bottom>r.bottom&&(e.scrollTop+=n.bottom-r.bottom)},[]),l(()=>{let e=X.current;if(!e)return;let t=()=>se(e.scrollHeight>e.clientHeight);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[Q]),l(()=>{if(!J)return;let e=e=>{e.key===`Escape`&&Y(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[J]),g(`div`,{className:[`app-shell`,Z?`collapsed`:``,j?`no-sidebar`:``,J?`mobile-open`:``,G].filter(Boolean).join(` `),"data-density":N===`compact`?`compact`:void 0,...e(`AppShell`,i),...K,children:[h(`a`,{className:`wui-skip-link`,href:`#main-content`,children:`Skip to content`}),g(`aside`,{className:`app-sidebar`,children:[u&&h(`div`,{className:`app-sidebar-brand`,children:u}),m&&h(`div`,{className:`app-sidebar-start`,children:m}),_&&h(`div`,{className:`app-sidebar-start-compact`,children:_}),h(`nav`,{className:`app-sidebar-scroll`,"aria-label":F,ref:X,tabIndex:oe?0:void 0,children:Q.map((e,t)=>g(`div`,{className:`app-nav-group`,children:[e.label&&h(`div`,{className:`app-nav-group-label`,children:e.label}),e.items.map(e=>h(M,{item:e,linkComponent:I,onNavigate:()=>Y(!1)},e.key??e.href??e.label)),e.after&&h(`div`,{className:`wui-nav-group-after`,children:e.after})]},e.label??`group-${t}`))}),v&&h(`div`,{className:`app-sidebar-foot`,children:v}),!j&&h(`button`,{type:`button`,className:`app-sidebar-toggle`,onClick:ce,"aria-label":Z?`Expand navigation`:`Collapse navigation`,"aria-expanded":!Z,children:h(r,{name:`chevrons-left`,size:20})})]}),g(`div`,{className:`app-main`,children:[g(`header`,{className:`app-topbar${ie?` scrolled`:``}`,"data-tone":P===`primary`?`primary`:void 0,children:[g(`div`,{className:`app-topbar-start`,children:[h(`button`,{type:`button`,className:`app-topbar-menu`,onClick:()=>Y(!0),"aria-label":`Open navigation`,"aria-expanded":J,children:h(r,{name:`menu`,size:18})}),y,W&&h(ne,{config:W})]}),g(`div`,{className:`app-topbar-end`,children:[b,U&&h(te,{config:U}),H&&h(ee,{config:H,linkComponent:I})]})]}),h(`main`,{className:`app-content`,id:`main-content`,children:T}),C&&h(`footer`,{className:`app-footer`,children:C})]}),w&&h(`div`,{className:`wui-shell-launcher`,children:w}),$&&g(`nav`,{className:`wui-tabbar`,"aria-label":B,children:[$.tabs.map(e=>h(A,{tab:e,linkComponent:I},e.key??e.href)),$.hasMore&&g(`button`,{type:`button`,className:`wui-tabbar-item${$.moreActive?` active`:``}`,onClick:()=>Y(!0),children:[h(`span`,{className:`wui-tabbar-icon`,children:h(r,{name:`more`,size:24})}),h(`span`,{className:`wui-tabbar-label`,children:V})]})]}),h(`button`,{type:`button`,className:`app-scrim`,onClick:()=>Y(!1),"aria-label":`Close navigation`,tabIndex:J?0:-1})]})}function D(e,r){let i=e=>(e??[]).map(e=>Array.isArray(e.children)?{...e,children:i(e.children)}:{...e}).filter(e=>(e.children?.length??0)>0||!!e.href),o=e.map(e=>({...e,items:i(e.items)})).filter(e=>e.items.length>0),s=[],c=e=>{for(let t of e)s.push(t),t.children&&c(t.children)};for(let e of o)c(e.items);for(let e of s)n(`AppShell items`,O(e)),t(`AppShell`,`match`,e.match,b),t(`AppShell`,`iconVariant`,e.iconVariant,C);let l=null;if(r!=null&&!s.some(e=>e.active===!0)){let e=-1;for(let t of s){if(t.active!=null||t.children?.length&&!t.href)continue;let n=a(r,t.href,{exact:t.match===`exact`,also:t.matchAlso});if(n<0)continue;let i=t.match===`exact`&&a(r,t.href,{exact:!0})>=0?1/0:n;i>e&&(e=i,l=t)}}for(let e of s)e.active=e.active??e===l;return o}function O(e){return Object.fromEntries(Object.entries(e).filter(([e])=>!w.has(e)))}function k(e){let t=[],n=e=>{for(let r of e)r.children?.length?n(r.children):t.push(r)};for(let t of e)n(t.items);let r=t.filter(e=>e.tab);if(r.length===0)return null;let i=r.length<t.length,a=i?v:y;if(r.length>a)throw Error(`<AppShell>: ${r.length} items carry tab: true, but the phone tab bar holds ${a} (${i?`4 plus More, because other items exist`:`5 when every item is a tab`}). Flag fewer items.`);return{tabs:r,hasMore:i,moreActive:t.some(e=>!e.tab&&e.active)}}function A({tab:e,linkComponent:t}){let n=`wui-tabbar-item${e.active?` active`:``}`,i=g(m,{children:[e.icon&&h(`span`,{className:`wui-tabbar-icon`,children:typeof e.icon==`string`?h(r,{name:e.icon,size:24}):e.icon}),h(`span`,{className:`wui-tabbar-label`,children:e.tabLabel??e.label}),e.badge!=null&&h(`span`,{className:`wui-tabbar-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:e.badge})]}),a=e.active?`page`:void 0;return t?h(t,{className:n,to:e.href,"aria-current":a,children:i}):h(`a`,{className:n,href:e.href,"aria-current":a,children:i})}function j(e){for(let t of e){if(t.active)return t;let e=t.children?.length?j(t.children):void 0;if(e)return e}}function M({item:e,linkComponent:t,onNavigate:n,depth:i=0}){let a=i>0,o=i>1?` wui-nav-depth-${Math.min(i,6)}`:``,s=Array.isArray(e.children)&&e.children.length>0,c=s?j(e.children):void 0,u=!!c,d=c?c.key??c.href??c.label:null,[f,_]=p(u);l(()=>{d!=null&&_(!0)},[d]);let v=typeof e.label==`string`?e.label:void 0,y=!a&&e.icon&&h(`span`,{className:`app-nav-icon`,children:typeof e.icon==`string`?h(r,{name:e.icon,size:e.iconSize??22,variant:e.iconVariant}):e.icon}),b=e.badge!=null&&h(`span`,{className:`app-nav-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:e.badge}),x=g(m,{children:[y,h(`span`,{className:`app-nav-text`,children:e.label}),b,e.trailingIcon&&h(`span`,{className:`app-nav-trailing`,children:typeof e.trailingIcon==`string`?h(r,{name:e.trailingIcon,size:16}):e.trailingIcon})]}),S=e.active?`page`:void 0;if(s){let s=h(`div`,{className:`app-nav-sub${f?` expanded`:``}`,inert:!f,"aria-hidden":!f||void 0,children:h(`div`,{className:`app-nav-sub-inner`,children:e.children.map(e=>h(M,{item:e,linkComponent:t,onNavigate:n,depth:i+1},e.key??e.href))})});if(e.href){let i=t?h(t,{className:`wui-nav-split-link`,to:e.href,"aria-current":S,onClick:n,children:x}):h(`a`,{className:`wui-nav-split-link`,href:e.href,"aria-current":S,onClick:n,children:x});return g(m,{children:[g(`div`,{className:`app-nav-item has-children wui-nav-split${a?` app-nav-subitem`:``}${u||e.active?` active`:``}${o}`,"data-label":v,children:[i,h(`button`,{type:`button`,className:`app-nav-caret wui-nav-split-toggle`,"aria-expanded":f,"aria-label":`Show or hide ${v??``} pages`,onClick:()=>_(e=>!e),children:h(r,{name:`chevron-right`,size:16})})]}),s]})}return g(m,{children:[g(`button`,{type:`button`,className:`app-nav-item${a?` app-nav-subitem`:``} has-children${u?` active`:``}${o}`,"aria-expanded":f,"data-label":v,onClick:()=>_(e=>!e),children:[y,h(`span`,{className:`app-nav-text`,children:e.label}),b,h(`span`,{className:`app-nav-caret`,children:h(r,{name:`chevron-right`,size:16})})]}),s]})}let C=`app-nav-item${a?` app-nav-subitem`:``}${e.active?` active`:``}${o}`;return t?h(t,{className:C,to:e.href,"aria-current":S,"data-label":v,onClick:n,children:x}):h(`a`,{className:C,href:e.href,"aria-current":S,"data-label":v,onClick:n,children:x})}function N(){let[e,t]=p(!1),n=f(null);return l(()=>{if(!e)return;let r=e=>{n.current?.contains(e.target)||t(!1)},i=e=>{e.key===`Escape`&&(t(!1),n.current?.querySelector(`button`)?.focus())};return document.addEventListener(`mousedown`,r),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`keydown`,i)}},[e]),{open:e,setOpen:t,ref:n}}function ee({config:e,linkComponent:t}){let n=u(),{open:a,setOpen:o,ref:s}=N(),{name:c,role:l,photo:d,profileHref:f,profileLabel:p=`My profile`,onLogout:_,logoutAction:v,logoutLabel:y=`Sign out`,items:b=[]}=e;if(!c)throw Error(`<AppShell> userMenu.name is required; the trigger and the avatar are named from it.`);let x=()=>o(!1),S=(e,n,r,i)=>t?h(t,{className:`dropdown-item`,to:e,onClick:i,children:n},r):h(`a`,{className:`dropdown-item`,href:e,onClick:i,children:n},r),C=g(m,{children:[h(r,{name:`log-out`,size:18}),y]});return g(`div`,{className:`dropdown wui-usermenu`,ref:s,children:[g(`button`,{type:`button`,id:n,className:`wui-usermenu-trigger`,"aria-expanded":a,"aria-label":`Account menu for ${c}`,onClick:()=>o(e=>!e),children:[h(i,{name:c,src:d,tone:`auto`}),g(`span`,{className:`wui-usermenu-text`,children:[h(`span`,{className:`wui-usermenu-name`,children:c}),l&&h(`span`,{className:`wui-usermenu-role`,children:l})]}),h(r,{name:`chevron-down`,size:14,className:`wui-usermenu-caret`})]}),g(`div`,{className:`dropdown-menu dropdown-menu-end wui-usermenu-menu${a?` show`:``}`,"aria-labelledby":n,"data-bs-popper":a?`static`:void 0,children:[g(`div`,{className:`wui-usermenu-head`,children:[h(i,{name:c,src:d,size:`lg`,tone:`auto`}),g(`div`,{className:`wui-usermenu-who`,children:[h(`div`,{className:`wui-usermenu-name`,children:c}),l&&h(`div`,{className:`wui-usermenu-role`,children:l})]})]}),f&&S(f,g(m,{children:[h(r,{name:`user`,size:18}),p]}),void 0,x),b.map(e=>{if(e.divider)return h(`hr`,{className:`dropdown-divider`},e.key);let t=g(m,{children:[e.icon&&h(r,{name:e.icon,size:18}),e.label]}),n=()=>{e.onClick?.(),x()};return e.href?S(e.href,t,e.key,n):h(`button`,{type:`button`,className:`dropdown-item`,onClick:n,children:t},e.key)}),v?h(`form`,{method:`post`,action:v,className:`wui-usermenu-logout`,children:h(`button`,{type:`submit`,className:`dropdown-item danger`,children:C})}):_&&h(`button`,{type:`button`,className:`dropdown-item danger`,onClick:()=>{x(),_()},children:C})]})]})}function te({config:e}){let t=u(),{open:n,setOpen:i,ref:a}=N(),{unread:o=0,items:s,loading:c=!1,onOpen:d,onMarkAllRead:_,viewAllHref:v,label:y=`Notifications`,emptyText:b=`You are all caught up.`}=e,[x,S]=p(``),C=f(o);l(()=>{C.current!==o&&(C.current=o,S(o===0?`No unread notifications`:`${T(o)} unread notifications`))},[o]);let w=null;return s?.length?w=h(`div`,{className:`wui-bell-items`,children:s.map((e,t)=>{let n=`wui-bell-item${e.read?` wui-bell-item-read`:``}`,i=g(m,{children:[h(`span`,{className:`wui-bell-dot`,"aria-hidden":`true`}),e.icon&&h(`span`,{className:`wui-bell-icon`,children:h(r,{name:e.icon,size:18})}),g(`span`,{className:`wui-bell-body`,children:[!e.read&&h(`span`,{className:`visually-hidden`,children:`Unread: `}),h(`span`,{className:`wui-bell-item-title`,children:e.title}),e.time&&h(`span`,{className:`wui-bell-when`,children:e.time})]})]});return e.href?h(`a`,{className:n,href:e.href,"data-id":e.id,children:i},e.id??t):h(`div`,{className:n,"data-id":e.id,children:i},e.id??t)})}):c?w=h(`div`,{className:`wui-bell-state`,children:`Loading…`}):s&&(w=h(`div`,{className:`wui-bell-state`,children:b})),g(`div`,{className:`dropdown wui-bell`,ref:a,children:[g(`button`,{type:`button`,id:t,className:`topbar-icon-btn wui-bell-trigger`,"aria-expanded":n,"aria-label":o===0?y:`${y}, ${T(o)} unread`,onClick:()=>{let e=!n;i(e),e&&d?.()},children:[h(r,{name:`notification`,size:20}),h(`span`,{className:`wui-bell-count`,"aria-hidden":`true`,hidden:o===0,children:T(o)})]}),h(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:x}),g(`div`,{className:`dropdown-menu dropdown-menu-end wui-bell-menu${n?` show`:``}`,"aria-labelledby":t,"data-bs-popper":n?`static`:void 0,children:[g(`div`,{className:`wui-bell-head`,children:[h(`span`,{className:`wui-bell-title`,children:y}),_&&h(`button`,{type:`button`,className:`wui-bell-markall`,onClick:_,children:`Mark all read`})]}),h(`div`,{className:`wui-bell-list`,"aria-busy":c||void 0,children:w}),v&&h(`a`,{className:`wui-bell-foot`,href:v,children:`View all`})]})]})}var P=e=>!!e&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function ne({config:e}){let t=u(),{value:n=``,onChange:i,results:a=null,loading:o=!1,onSelect:s,onSubmit:c,placeholder:m=`Search`}=e,[_,v]=p(!1),[y,b]=p(!1),[x,S]=p({results:null,index:-1}),C=x.results===a?x.index:-1,w=e=>S({results:a,index:e}),T=f(null),E=f(null),D=f([]),O=d(()=>(a??[]).flatMap(e=>e.hits??[]),[a]),k=a!=null&&!y,A=O.length;l(()=>{let e=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||P(e.target)||(e.preventDefault(),v(!0),E.current?.focus())},t=e=>{T.current?.contains(e.target)||(b(!0),v(!1))};return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,t)}},[]);let j=e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(!k||A===0)return;e.preventDefault(),w((C+(e.key===`ArrowDown`?1:-1)+A)%A)}else e.key===`Enter`?k&&C>=0&&D.current[C]?(e.preventDefault(),D.current[C].click()):c&&n.trim()!==``&&(e.preventDefault(),c(n.trim())):e.key===`Escape`&&(k?(e.preventDefault(),b(!0)):_&&(e.preventDefault(),v(!1)))},M=-1;return D.current=[],g(`div`,{className:`wui-topsearch${_?` is-open`:``}${o?` is-loading`:``}`,ref:T,children:[h(`button`,{type:`button`,className:`topbar-icon-btn wui-topsearch-open`,"aria-label":m,"aria-expanded":_,"aria-controls":`${t}-panel`,onClick:()=>{let e=!_;v(e),e&&E.current?.focus()},children:h(r,{name:`search`,size:20})}),g(`div`,{className:`wui-topsearch-panel`,id:`${t}-panel`,children:[g(`div`,{className:`search-wrap`,children:[h(r,{name:`search`,size:18,className:`search-icon`}),h(`input`,{ref:E,type:`search`,className:`form-control input search-input`,id:`${t}-input`,placeholder:m,"aria-label":m,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":k,"aria-controls":`${t}-list`,"aria-activedescendant":k&&C>=0?`${t}-opt-${C}`:void 0,autoComplete:`off`,value:n,onChange:e=>{b(!1),i?.(e.target.value)},onKeyDown:j})]}),h(`div`,{className:`wui-topsearch-results`,id:`${t}-list`,role:`listbox`,"aria-label":`Search results`,hidden:!k,children:k&&g(`div`,{className:`wui-topsearch-groups`,role:`presentation`,children:[A===0&&g(`div`,{className:`wui-topsearch-empty`,role:`option`,"aria-disabled":`true`,"aria-selected":`false`,children:[`No results for “`,n,`”`]}),a.filter(e=>e.hits?.length).map((e,n)=>g(`div`,{className:`wui-topsearch-group`,role:`group`,"aria-label":e.label??``,children:[e.label&&h(`div`,{className:`wui-topsearch-group-label`,role:`presentation`,children:e.label}),e.hits.map(e=>{M+=1;let n=M;return g(`a`,{className:`wui-topsearch-hit${n===C?` is-active`:``}`,role:`option`,"aria-selected":n===C,id:`${t}-opt-${n}`,href:e.href,ref:e=>{D.current[n]=e},onClick:t=>s?.(e,t),children:[e.icon&&h(`span`,{className:`wui-topsearch-hit-icon`,children:h(r,{name:e.icon,size:18})}),g(`span`,{className:`wui-topsearch-hit-text`,children:[h(`span`,{className:`wui-topsearch-hit-title`,children:e.title}),e.subtitle&&h(`span`,{className:`wui-topsearch-hit-sub`,children:e.subtitle})]})]},`${e.href}-${n}`)})]},e.label??n))]})})]}),h(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:k?A===0?`No results`:`${A} ${A===1?`result`:`results`}`:``})]})}export{E as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{shortcutChip as t}from"../lib/shortcutChip.js";import n from"./AppIcon.js";import{SHORTCUT_EVENT as r,SHORTCUT_TEXT as i,shortcutKey as a}from"@webority/ui-elements/helpers";import{useEffect as o,useId as s,useRef as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import"@webority/ui-elements/elements/shortcuts";function d({shortcuts:d=[],items:f,search:p,className:m=``,...h}){e(`AppShortcutLegend`,h);let g=s(),_=c(null),v=d.filter(e=>a(e.key)!==`?`),y=c(v);return y.current=v,o(()=>{let e=_.current;if(!e)return;let t=e=>{let t=y.current.find(t=>a(t.key)===e.detail.key&&typeof t.onPress==`function`);t&&(e.preventDefault(),t.onPress(e.detail.itemKey))};return e.addEventListener(r,t),()=>e.removeEventListener(r,t)},[]),u(`wui-shortcuts`,{ref:_,class:[`wui-shortcut-legend`,m].filter(Boolean).join(` `),items:f||void 0,search:p||void 0,...h,children:[u(`button`,{type:`button`,className:`wui-shortcut-toggle`,"aria-haspopup":`dialog`,"aria-expanded":`false`,"aria-controls":g,"aria-keyshortcuts":`?`,children:[t(`?`),` ${i.title}`]}),u(`div`,{className:`wui-shortcut-sheet`,id:g,role:`dialog`,"aria-label":i.title,hidden:!0,children:[u(`div`,{className:`wui-shortcut-sheet-head`,children:[l(`span`,{className:`wui-shortcut-sheet-title`,children:i.title}),l(`button`,{type:`button`,className:`wui-shortcut-close`,"aria-label":i.close,children:l(n,{name:`x`,size:16})})]}),l(`dl`,{className:`wui-shortcut-keys`,children:[...v,{key:`?`,label:i.help}].map(e=>u(`div`,{"data-shortcut":a(e.key),children:[l(`dt`,{children:l(`kbd`,{className:`wui-kbd`,children:a(e.key)})}),l(`dd`,{children:e.label})]},a(e.key)))})]})]})}export{d as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{shortcutChip as n}from"../lib/shortcutChip.js";import r from"./AppIcon.js";import{SHORTCUT_EVENT as i,SHORTCUT_TEXT as a,shortcutKey as o}from"@webority/ui-elements/helpers";import{useEffect as s,useId as c,useRef as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import"@webority/ui-elements/elements/shortcuts";function f(f){let{shortcuts:p=[],items:m,search:h,className:g=``,..._}=f;t(`AppShortcutLegend`,_);let v=c(),y=l(null),b=p.filter(e=>o(e.key)!==`?`),x=l(b);return x.current=b,s(()=>{let e=y.current;if(!e)return;let t=e=>{let t=x.current.find(t=>o(t.key)===e.detail.key&&typeof t.onPress==`function`);t&&(e.preventDefault(),t.onPress(e.detail.itemKey))};return e.addEventListener(i,t),()=>e.removeEventListener(i,t)},[]),d(`wui-shortcuts`,{ref:y,class:[`wui-shortcut-legend`,g].filter(Boolean).join(` `),items:m||void 0,search:h||void 0,...e(`AppShortcutLegend`,f),..._,children:[d(`button`,{type:`button`,className:`wui-shortcut-toggle`,"aria-haspopup":`dialog`,"aria-expanded":`false`,"aria-controls":v,"aria-keyshortcuts":`?`,children:[n(`?`),` ${a.title}`]}),d(`div`,{className:`wui-shortcut-sheet`,id:v,role:`dialog`,"aria-label":a.title,hidden:!0,children:[d(`div`,{className:`wui-shortcut-sheet-head`,children:[u(`span`,{className:`wui-shortcut-sheet-title`,children:a.title}),u(`button`,{type:`button`,className:`wui-shortcut-close`,"aria-label":a.close,children:u(r,{name:`x`,size:16})})]}),u(`dl`,{className:`wui-shortcut-keys`,children:[...b,{key:`?`,label:a.help}].map(e=>d(`div`,{"data-shortcut":o(e.key),children:[u(`dt`,{children:u(`kbd`,{className:`wui-kbd`,children:o(e.key)})}),u(`dd`,{children:e.label})]},o(e.key)))})]})]})}export{f as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{useId as t,useLayoutEffect as n,useRef as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import"@webority/ui-elements/elements/show-more";function o({children:o,lines:s=3,moreLabel:c=`Show more`,lessLabel:l=`Show less`,defaultExpanded:u=!1,id:d,className:f=``,...p}){e(`AppShowMore`,p);let m=t(),h=d||`show-more-${m.replace(/:/g,``)}`,g=`${h}-body`,_=r(null),v=r(u);return n(()=>{v.current&&_.current.toggle(!0)},[]),a(`wui-show-more`,{ref:_,class:[`wui-show-more`,f].filter(Boolean).join(` `),id:h,lines:s===3?void 0:String(s),"more-label":c===`Show more`?void 0:c,"less-label":l===`Show less`?void 0:l,...p,children:[i(`div`,{className:`wui-show-more-body`,id:g,children:o}),i(`button`,{type:`button`,className:`btn btn-link btn-sm wui-show-more-toggle`,"aria-expanded":v.current?`true`:`false`,"aria-controls":g,hidden:!0,children:v.current?l:c})]})}export{o as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{useId as n,useLayoutEffect as r,useRef as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import"@webority/ui-elements/elements/show-more";function s(s){let{children:c,lines:l=3,moreLabel:u=`Show more`,lessLabel:d=`Show less`,defaultExpanded:f=!1,id:p,className:m=``,...h}=s;t(`AppShowMore`,h);let g=n(),_=p||`show-more-${g.replace(/:/g,``)}`,v=`${_}-body`,y=i(null),b=i(f);return r(()=>{b.current&&y.current.toggle(!0)},[]),o(`wui-show-more`,{ref:y,class:[`wui-show-more`,m].filter(Boolean).join(` `),id:_,lines:l===3?void 0:String(l),"more-label":u===`Show more`?void 0:u,"less-label":d===`Show less`?void 0:d,...e(`AppShowMore`,s),...h,children:[a(`div`,{className:`wui-show-more-body`,id:v,children:c}),a(`button`,{type:`button`,className:`btn btn-link btn-sm wui-show-more-toggle`,"aria-expanded":b.current?`true`:`false`,"aria-controls":v,hidden:!0,children:b.current?d:u})]})}export{s as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{Offcanvas as r}from"react-bootstrap";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o={left:`start`,right:`end`,start:`start`,end:`end`,top:`top`,bottom:`bottom`};function s({show:s,onHide:c,side:l=`right`,title:u,titleIcon:d,header:f,children:p,footer:m,width:h,maxWidth:g,backdrop:_=!0,scroll:v=!1,keyboard:y=!0,closeButton:b=!0,closeLabel:x=`Close`,responsive:S,className:C=``,bodyClassName:w=``,ariaLabel:T,...E}){t(`AppSidebarMenu`,E),e(`AppSidebarMenu`,`side`,l,Object.keys(o));let{style:D,...O}=E,k=o[l]||`end`,A=h||g||D?{...h&&{"--asm-width":h},...g&&{"--asm-max-width":g},...D}:void 0;return a(r,{...O,show:s,onHide:c,placement:k,backdrop:_,scroll:v,keyboard:y,responsive:S,style:A,className:`app-sidebar-menu${C?` ${C}`:``}`,"aria-label":T||(typeof u==`string`?u:void 0),children:[f===void 0?(u!=null||b)&&a(`div`,{className:`drawer-header`,children:[u!=null&&a(`div`,{className:`drawer-title`,children:[d&&i(`span`,{className:`drawer-title-ic`,children:i(n,{name:d,size:18})}),u]}),b&&i(`button`,{type:`button`,className:`wui-drawer-close`,onClick:c,"aria-label":x,children:i(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:i(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}):f,i(r.Body,{className:w,children:p}),m&&i(`div`,{className:`asm-footer`,children:m})]})}export{s as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{Offcanvas as i}from"react-bootstrap";import{jsx as a,jsxs as o}from"react/jsx-runtime";var s={left:`start`,right:`end`,start:`start`,end:`end`,top:`top`,bottom:`bottom`};function c(c){let{show:l,onHide:u,side:d=`right`,title:f,titleIcon:p,header:m,children:h,footer:g,width:_,maxWidth:v,backdrop:y=!0,scroll:b=!1,keyboard:x=!0,closeButton:S=!0,closeLabel:C=`Close`,responsive:w,className:T=``,bodyClassName:E=``,ariaLabel:D,...O}=c;n(`AppSidebarMenu`,O),t(`AppSidebarMenu`,`side`,d,Object.keys(s));let{style:k,...A}=O,j=s[d]||`end`,M=_||v||k?{..._&&{"--asm-width":_},...v&&{"--asm-max-width":v},...k}:void 0;return o(i,{...e(`AppSidebarMenu`,c),...A,show:l,onHide:u,placement:j,backdrop:y,scroll:b,keyboard:x,responsive:w,style:M,className:`app-sidebar-menu${T?` ${T}`:``}`,"aria-label":D||(typeof f==`string`?f:void 0),children:[m===void 0?(f!=null||S)&&o(`div`,{className:`drawer-header`,children:[f!=null&&o(`div`,{className:`drawer-title`,children:[p&&a(`span`,{className:`drawer-title-ic`,children:a(r,{name:p,size:18})}),f]}),S&&a(`button`,{type:`button`,className:`wui-drawer-close`,onClick:u,"aria-label":C,children:a(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:a(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}):m,a(i.Body,{className:E,children:h}),g&&a(`div`,{className:`asm-footer`,children:g})]})}export{c as default};
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{jsx as t}from"react/jsx-runtime";function n({width:n=`100%`,height:r=14,radius:i=6,className:a=``,style:o,...s}){return e(`AppSkeleton`,s),t(`span`,{className:`skeleton${a?` ${a}`:``}`,"aria-hidden":`true`,style:{width:n,height:r,borderRadius:i,...o},...s})}function r({rows:e=4,cols:r=5}){return Array.from({length:e}).map((e,i)=>t(`tr`,{children:Array.from({length:r}).map((e,r)=>t(`td`,{children:t(n,{width:r===0?`70%`:`50%`,height:12})},`col-${r}`))},`row-${i}`))}export{r as AppSkeletonRows,n as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";function r(r){let{width:i=`100%`,height:a=14,radius:o=6,className:s=``,style:c,...l}=r;return t(`AppSkeleton`,l),n(`span`,{className:`skeleton${s?` ${s}`:``}`,"aria-hidden":`true`,style:{width:i,height:a,borderRadius:o,...c},...e(`AppSkeleton`,r),...l})}function i({rows:e=4,cols:t=5}){return Array.from({length:e}).map((e,i)=>n(`tr`,{children:Array.from({length:t}).map((e,t)=>n(`td`,{children:n(r,{width:t===0?`70%`:`50%`,height:12})},`col-${t}`))},`row-${i}`))}export{i as AppSkeletonRows,r as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"../lib/FieldMessage.js";import r from"./AppRequiredMark.js";import i,{readRange as a,writeNumberValue as o}from"./useWuiControl.js";import{forwardRef as s,useEffect as c,useId as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import"@webority/ui-elements/elements/slider";var f=[`sm`,`md`,`lg`],p=s(function({value:s,start:p,end:m,range:h=!1,onChange:g,label:_,required:v=!1,hint:y,error:b,name:x,startName:S,endName:C,min:w=0,max:T=100,step:E=1,disabled:D,size:O,showValue:k,unit:A,id:j,ariaLabel:M,className:N=``,fieldClassName:P=``,...F},I){t(`AppSlider`,F),e(`AppSlider`,`size`,O,f);let L=l(),R=j||L,z=h,{setRef:B,innerRef:V}=i({ref:I,value:z?void 0:s,onChange:g,readValue:z?a:void 0,writeValue:z?void 0:o});c(()=>{if(!z)return;let e=V.current;e&&(p!==void 0&&p>e.end?(m!==void 0&&e.end!==m&&(e.end=m),p!==void 0&&e.start!==p&&(e.start=p)):(p!==void 0&&e.start!==p&&(e.start=p),m!==void 0&&e.end!==m&&(e.end=m)))},[p,m,z,V]);let H=!_&&!b&&!y,U=b?`${R}-error`:void 0,W=y?`${R}-hint`:void 0,G=u(`wui-slider`,{ref:B,id:R,name:x||void 0,"start-name":S||void 0,"end-name":C||void 0,min:w,max:T,step:E,size:O||void 0,"aria-label":M||(typeof _==`string`?_:void 0),"aria-describedby":U||W,"aria-invalid":b?`true`:void 0,disabled:D?``:void 0,required:v?``:void 0,range:z?``:void 0,"show-value":k?``:void 0,unit:A||void 0,className:N||void 0,...F});return H?G:d(`div`,{className:`field${P?` ${P}`:``}`,children:[_&&d(`label`,{className:`label`,htmlFor:R,children:[_,v&&u(r,{})]}),G,u(n,{error:b,hint:y,errorId:U,hintId:W})]})});export{p as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppRequiredMark.js";import a,{readRange as o,writeNumberValue as s}from"./useWuiControl.js";import{forwardRef as c,useEffect as l,useId as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import"@webority/ui-elements/elements/slider";var p=[`sm`,`md`,`lg`],m=c(function(c,m){let{value:h,start:g,end:_,range:v=!1,onChange:y,label:b,required:x=!1,hint:S,error:C,name:w,startName:T,endName:E,min:D=0,max:O=100,step:k=1,disabled:A,size:j,showValue:M,unit:N,id:P,ariaLabel:F,className:I=``,fieldClassName:L=``,...R}=c;n(`AppSlider`,R),t(`AppSlider`,`size`,j,p);let z=u(),B=P||z,V=v,{setRef:H,innerRef:U}=a({ref:m,value:V?void 0:h,onChange:y,readValue:V?o:void 0,writeValue:V?void 0:s});l(()=>{if(!V)return;let e=U.current;e&&(g!==void 0&&g>e.end?(_!==void 0&&e.end!==_&&(e.end=_),g!==void 0&&e.start!==g&&(e.start=g)):(g!==void 0&&e.start!==g&&(e.start=g),_!==void 0&&e.end!==_&&(e.end=_)))},[g,_,V,U]);let W=!b&&!C&&!S,G=C?`${B}-error`:void 0,K=S?`${B}-hint`:void 0,q=d(`wui-slider`,{ref:H,id:B,name:w||void 0,"start-name":T||void 0,"end-name":E||void 0,min:D,max:O,step:k,size:j||void 0,"aria-label":F||(typeof b==`string`?b:void 0),"aria-describedby":G||K,"aria-invalid":C?`true`:void 0,disabled:A?``:void 0,required:x?``:void 0,range:V?``:void 0,"show-value":M?``:void 0,unit:N||void 0,className:I||void 0,...W?e(`AppSlider`,c):null,...R});return W?q:f(`div`,{...e(`AppSlider`,c),className:`field${L?` ${L}`:``}`,children:[b&&f(`label`,{className:`label`,htmlFor:B,children:[b,x&&d(i,{})]}),q,d(r,{error:C,hint:S,errorId:G,hintId:K})]})});export{m as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import r from"./useWuiControl.js";import{forwardRef as i,useEffect as a,useRef as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/sortable";var l=[`vertical`,`horizontal`],u=(e,t)=>{e.controlled=!0;let n=e.order;(n.length!==t.length||t.some((e,t)=>e!==n[t]))&&(e.order=t)},d=i(function({items:i=[],onReorder:d,ariaLabel:f,handle:p=!1,group:m,name:h,disabled:g=!1,orientation:_=`vertical`,className:v=``,...y},b){t(`AppSortableList`,y),e(`AppSortableList`,`orientation`,_,l);let x=i.map(e=>e.id),S=o(x);a(()=>{S.current=x});let{setRef:C,innerRef:w}=r({ref:b,value:x,writeValue:u,on:{"wui-sortable:change":e=>{e.target===e.currentTarget&&(d?.(e.detail.ids,e.detail),requestAnimationFrame(()=>{w.current&&u(w.current,S.current)}))}}});return s(`wui-sortable`,{ref:C,role:`list`,"aria-label":f,name:h||void 0,group:m||void 0,orientation:_===`horizontal`?`horizontal`:void 0,handle:p?``:void 0,disabled:g?``:void 0,className:`wui-sortable${v?` ${v}`:``}`,...y,children:i.map(e=>c(`div`,{role:`listitem`,className:`wui-sortable-item`,"data-id":e.id,"data-label":e.label,"data-disabled":e.disabled?``:void 0,children:[s(`button`,{type:`button`,className:`wui-sortable-handle`,"aria-label":`Reorder ${e.label}`,disabled:g||e.disabled?!0:void 0,children:s(n,{name:`menu`,size:18})}),s(`div`,{className:`wui-sortable-body`,children:e.content??e.label})]},e.id))})});export{d as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i from"./useWuiControl.js";import{forwardRef as a,useEffect as o,useRef as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import"@webority/ui-elements/elements/sortable";var u=[`vertical`,`horizontal`],d=(e,t)=>{e.controlled=!0;let n=e.order;(n.length!==t.length||t.some((e,t)=>e!==n[t]))&&(e.order=t)},f=a(function(a,f){let{items:p=[],onReorder:m,ariaLabel:h,handle:g=!1,group:_,name:v,disabled:y=!1,orientation:b=`vertical`,className:x=``,...S}=a;n(`AppSortableList`,S),t(`AppSortableList`,`orientation`,b,u);let C=p.map(e=>e.id),w=s(C);o(()=>{w.current=C});let{setRef:T,innerRef:E}=i({ref:f,value:C,writeValue:d,on:{"wui-sortable:change":e=>{e.target===e.currentTarget&&(m?.(e.detail.ids,e.detail),requestAnimationFrame(()=>{E.current&&d(E.current,w.current)}))}}});return c(`wui-sortable`,{ref:T,role:`list`,"aria-label":h,name:v||void 0,group:_||void 0,orientation:b===`horizontal`?`horizontal`:void 0,handle:g?``:void 0,disabled:y?``:void 0,className:`wui-sortable${x?` ${x}`:``}`,...e(`AppSortableList`,a),...S,children:p.map(e=>l(`div`,{role:`listitem`,className:`wui-sortable-item`,"data-id":e.id,"data-label":e.label,"data-disabled":e.disabled?``:void 0,children:[c(`button`,{type:`button`,className:`wui-sortable-handle`,"aria-label":`Reorder ${e.label}`,disabled:y||e.disabled?!0:void 0,children:c(r,{name:`menu`,size:18})}),c(`div`,{className:`wui-sortable-body`,children:e.content??e.label})]},e.id))})});export{f as default};
@@ -1 +1 @@
1
- import{devWarn as e}from"../lib/devWarn.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";var r=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},i=!1;function a(t){i||!r()||(i=!0,e(`[@webority/ui-react] <AppSparkline> left out ${t} value(s) in \`data\` that are not finite numbers.`))}var o=e=>typeof e==`number`&&Number.isFinite(e);function s(e,t,n){if(e.length<2)return`0,${n/2} ${t},${n/2}`;let r=Math.min(...e),i=Math.max(...e)-r,a=t/(e.length-1);return e.map((e,t)=>{let o=i===0?n/2:n-(e-r)/i*n;return`${t*a},${o}`}).join(` `)}var c=e=>String(Number(e.toFixed(2)));function l(e,t){let n=t?`${t} trend`:`Trend`;return e.length===1?`${n} has one value, ${c(e[0])}.`:`${n} from ${c(e[0])} to ${c(e[e.length-1])} across ${e.length} points.`}function u({data:e,label:r,width:i=48,height:c=16,className:u=``,...d}){t(`AppSparkline`,d);let f=Array.isArray(e)?e.filter(o):[];return Array.isArray(e)&&f.length<e.length&&a(e.length-f.length),f.length===0?null:n(`svg`,{className:`wui-sparkline${u?` ${u}`:``}`,width:i,height:c,viewBox:`0 0 ${i} ${c}`,role:`img`,"aria-label":l(f,r),...d,children:n(`polyline`,{points:s(f,i,c),stroke:`currentColor`,fill:`none`})})}export{u as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import{devWarn as t}from"../lib/devWarn.js";import n from"./warnUnknownProps.js";import{jsx as r}from"react/jsx-runtime";var i=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},a=!1;function o(e){a||!i()||(a=!0,t(`[@webority/ui-react] <AppSparkline> left out ${e} value(s) in \`data\` that are not finite numbers.`))}var s=e=>typeof e==`number`&&Number.isFinite(e);function c(e,t,n){if(e.length<2)return`0,${n/2} ${t},${n/2}`;let r=Math.min(...e),i=Math.max(...e)-r,a=t/(e.length-1);return e.map((e,t)=>{let o=i===0?n/2:n-(e-r)/i*n;return`${t*a},${o}`}).join(` `)}var l=e=>String(Number(e.toFixed(2)));function u(e,t){let n=t?`${t} trend`:`Trend`;return e.length===1?`${n} has one value, ${l(e[0])}.`:`${n} from ${l(e[0])} to ${l(e[e.length-1])} across ${e.length} points.`}function d(t){let{data:i,label:a,width:l=48,height:d=16,className:f=``,...p}=t;n(`AppSparkline`,p);let m=Array.isArray(i)?i.filter(s):[];return Array.isArray(i)&&m.length<i.length&&o(i.length-m.length),m.length===0?null:r(`svg`,{className:`wui-sparkline${f?` ${f}`:``}`,width:l,height:d,viewBox:`0 0 ${l} ${d}`,role:`img`,"aria-label":u(m,a),...e(`AppSparkline`,t),...p,children:r(`polyline`,{points:c(m,l,d),stroke:`currentColor`,fill:`none`})})}export{d as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";var r=[`sm`,`md`];function i({size:i=`md`,label:a=`Loading`,className:o=``,...s}){t(`AppSpinner`,s),e(`AppSpinner`,`size`,typeof i==`string`&&!Number.isFinite(Number(i))?i:null,r);let{style:c,...l}=s,u=Number(i),d=Number.isFinite(u)&&u>0;return n(`span`,{className:`spinner-border${!d&&i===`sm`?` spinner-border-sm`:``}${o?` ${o}`:``}`,role:`status`,"aria-label":a,style:d?{width:`${u}px`,height:`${u}px`,borderWidth:`${Math.max(2,Math.round(u/8))}px`,...c}:c,...l})}export{i as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{jsx as r}from"react/jsx-runtime";var i=[`sm`,`md`];function a(a){let{size:o=`md`,label:s=`Loading`,className:c=``,...l}=a;n(`AppSpinner`,l),t(`AppSpinner`,`size`,typeof o==`string`&&!Number.isFinite(Number(o))?o:null,i);let{style:u,...d}=l,f=Number(o),p=Number.isFinite(f)&&f>0;return r(`span`,{className:`spinner-border${!p&&o===`sm`?` spinner-border-sm`:``}${c?` ${c}`:``}`,role:`status`,"aria-label":s,style:p?{width:`${f}px`,height:`${f}px`,borderWidth:`${Math.max(2,Math.round(f/8))}px`,...u}:u,...e(`AppSpinner`,a),...d})}export{a as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";var i=[`bar`,`ring`,`dots`],a={sm:44,md:56,lg:72};function o({logo:o,initials:s,text:c,subtext:l,variant:u=`bar`,size:d=`md`,label:f=`Loading`,className:p=``,...m}){t(`AppSplash`,m),e(`AppSplash`,`variant`,u,i),e(`AppSplash`,`size`,typeof d==`string`?d:null,Object.keys(a));let{style:h,...g}=m,_=typeof d==`number`?d:a[d]??a.md,v=u===`ring`?n(`span`,{className:`splash-ring`,"aria-hidden":`true`}):u===`dots`?r(`span`,{className:`splash-dots`,"aria-hidden":`true`,children:[n(`i`,{}),n(`i`,{}),n(`i`,{})]}):n(`span`,{className:`splash-bar`,"aria-hidden":`true`});return n(`div`,{className:`splash${p?` ${p}`:``}`,role:`status`,"aria-live":`polite`,"aria-label":f,style:{"--wui-splash-size":`${_}px`,...h},...g,children:r(`div`,{className:`splash-inner`,children:[o||s&&n(`span`,{className:`splash-mark`,children:s}),v,c&&n(`span`,{className:`splash-text`,children:c}),l&&n(`span`,{className:`splash-subtext`,children:l})]})})}export{o as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var a=[`bar`,`ring`,`dots`],o={sm:44,md:56,lg:72};function s(s){let{logo:c,initials:l,text:u,subtext:d,variant:f=`bar`,size:p=`md`,label:m=`Loading`,className:h=``,...g}=s;n(`AppSplash`,g),t(`AppSplash`,`variant`,f,a),t(`AppSplash`,`size`,typeof p==`string`?p:null,Object.keys(o));let{style:_,...v}=g,y=typeof p==`number`?p:o[p]??o.md,b=f===`ring`?r(`span`,{className:`splash-ring`,"aria-hidden":`true`}):f===`dots`?i(`span`,{className:`splash-dots`,"aria-hidden":`true`,children:[r(`i`,{}),r(`i`,{}),r(`i`,{})]}):r(`span`,{className:`splash-bar`,"aria-hidden":`true`});return r(`div`,{className:`splash${h?` ${h}`:``}`,role:`status`,"aria-live":`polite`,"aria-label":m,style:{"--wui-splash-size":`${y}px`,..._},...e(`AppSplash`,s),...v,children:i(`div`,{className:`splash-inner`,children:[c||l&&r(`span`,{className:`splash-mark`,children:l}),b,u&&r(`span`,{className:`splash-text`,children:u}),d&&r(`span`,{className:`splash-subtext`,children:d})]})})}export{s as default};
@@ -1 +1 @@
1
- import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import r,{buttonVariantClass as i}from"./AppButton.js";import a from"./AppDropdown.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`sm`,`md`,`lg`],l=[`button`,`submit`,`reset`],u={sm:14,md:16,lg:20},d={sm:`btn-sm`,md:``,lg:`btn-lg`};function f({label:f,items:p=[],onClick:m,href:h,type:g=`button`,variant:_=`primary`,size:v=`md`,disabled:y=!1,loading:b=!1,leftIcon:x,shortcut:S,menuLabel:C=`More actions`,align:w=`end`,linkComponent:T,className:E=``,...D}){t(`AppSplitButton`,D),e(`AppSplitButton`,`size`,v,c),e(`AppSplitButton`,`type`,g,l);let O=[`btn`,i(_),d[v]??``,`wui-split-toggle`].filter(Boolean).join(` `),k=o(n,{name:`chevron-down`,size:u[v]??u.md}),A=y||b;return s(`div`,{role:`group`,"aria-label":f,className:[`wui-split-button`,E].filter(Boolean).join(` `),...D,children:[o(r,{variant:_,size:v,type:g,href:h,onClick:m,disabled:y,loading:b,leftIcon:x,shortcut:S,children:f}),A?o(`div`,{className:`wui-split-menu`,children:o(`button`,{type:`button`,className:O,disabled:!0,"aria-label":C,children:k})}):o(a,{className:`wui-split-menu`,trigger:k,toggleClassName:O,label:C,ariaLabel:C,align:w,items:p,linkComponent:T})]})}export{f as default};
1
+ import{wuiMarkerAttributes as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import i,{buttonVariantClass as a}from"./AppButton.js";import o from"./AppDropdown.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`sm`,`md`,`lg`],u=[`button`,`submit`,`reset`],d={sm:14,md:16,lg:20},f={sm:`btn-sm`,md:``,lg:`btn-lg`};function p(p){let{label:m,items:h=[],onClick:g,href:_,type:v=`button`,variant:y=`primary`,size:b=`md`,disabled:x=!1,loading:S=!1,leftIcon:C,shortcut:w,menuLabel:T=`More actions`,align:E=`end`,linkComponent:D,className:O=``,...k}=p;n(`AppSplitButton`,k),t(`AppSplitButton`,`size`,b,l),t(`AppSplitButton`,`type`,v,u);let A=[`btn`,a(y),f[b]??``,`wui-split-toggle`].filter(Boolean).join(` `),j=s(r,{name:`chevron-down`,size:d[b]??d.md}),M=x||S;return c(`div`,{role:`group`,"aria-label":m,className:[`wui-split-button`,O].filter(Boolean).join(` `),...e(`AppSplitButton`,p),...k,children:[s(i,{variant:y,size:b,type:v,href:_,onClick:g,disabled:x,loading:S,leftIcon:C,shortcut:w,children:m}),M?s(`div`,{className:`wui-split-menu`,children:s(`button`,{type:`button`,className:A,disabled:!0,"aria-label":T,children:j})}):s(o,{className:`wui-split-menu`,trigger:j,toggleClassName:A,label:T,ariaLabel:T,align:E,items:h,linkComponent:D})]})}export{p as default};