@webority/ui-react 0.122.0 → 0.125.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 (191) hide show
  1. package/dist/canvas-kit/kit.js +31039 -32190
  2. package/dist/canvas-kit/manifest.json +115 -2
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppAccordion.js +1 -1
  5. package/dist/components/AppActionIcon.js +1 -1
  6. package/dist/components/AppAlert.js +1 -1
  7. package/dist/components/AppAsyncBlock.js +1 -1
  8. package/dist/components/AppAutocomplete.js +1 -1
  9. package/dist/components/AppAvatar.js +1 -1
  10. package/dist/components/AppAvatarGroup.js +1 -1
  11. package/dist/components/AppBadge.js +1 -1
  12. package/dist/components/AppBanner.js +1 -1
  13. package/dist/components/AppBreadcrumbs.js +1 -1
  14. package/dist/components/AppButton.js +1 -1
  15. package/dist/components/AppButtonGroup.js +1 -1
  16. package/dist/components/AppCalendar.js +1 -1
  17. package/dist/components/AppCard.js +1 -1
  18. package/dist/components/AppCarousel.js +1 -1
  19. package/dist/components/AppChart.js +1 -1
  20. package/dist/components/AppChartCard.js +1 -1
  21. package/dist/components/AppCheckbox.js +1 -1
  22. package/dist/components/AppChip.js +1 -1
  23. package/dist/components/AppChipGroup.js +1 -1
  24. package/dist/components/AppChoiceCard.js +1 -1
  25. package/dist/components/AppChoiceChip.js +1 -1
  26. package/dist/components/AppCodeBlock.js +1 -1
  27. package/dist/components/AppColorField.js +1 -1
  28. package/dist/components/AppColumnMenu.js +1 -1
  29. package/dist/components/AppCommandPalette.js +1 -1
  30. package/dist/components/AppCommentThread.js +1 -1
  31. package/dist/components/AppCompareTable.js +1 -1
  32. package/dist/components/AppConfirmDialog.js +1 -1
  33. package/dist/components/AppConfirmProvider.js +1 -1
  34. package/dist/components/AppConsentBanner.js +1 -1
  35. package/dist/components/AppContextMenu.js +1 -1
  36. package/dist/components/AppCopyButton.js +1 -1
  37. package/dist/components/AppCountryFlag.js +1 -1
  38. package/dist/components/AppCountrySelect.js +1 -1
  39. package/dist/components/AppDashboardCell.js +1 -1
  40. package/dist/components/AppDashboardGrid.js +1 -1
  41. package/dist/components/AppDataTable.js +1 -1
  42. package/dist/components/AppDatePicker.js +1 -1
  43. package/dist/components/AppDateRangePicker.js +1 -1
  44. package/dist/components/AppDescriptions.js +1 -1
  45. package/dist/components/AppDetailPane.js +1 -1
  46. package/dist/components/AppDrawer.js +1 -1
  47. package/dist/components/AppDropZone.js +1 -1
  48. package/dist/components/AppDropdown.js +1 -1
  49. package/dist/components/AppDueDate.js +1 -1
  50. package/dist/components/AppEmptyState.js +1 -1
  51. package/dist/components/AppErrorSummary.js +1 -1
  52. package/dist/components/AppFileAttachment.js +1 -1
  53. package/dist/components/AppFilePicker.js +1 -1
  54. package/dist/components/AppFileTiles.js +1 -1
  55. package/dist/components/AppFileViewer.js +1 -1
  56. package/dist/components/AppFilterBar.js +1 -1
  57. package/dist/components/AppFloatingDock.js +1 -1
  58. package/dist/components/AppFormActions.js +1 -1
  59. package/dist/components/AppFormRow.js +1 -1
  60. package/dist/components/AppFormSection.js +1 -1
  61. package/dist/components/AppHoverCard.js +1 -1
  62. package/dist/components/AppIcon.js +1 -1
  63. package/dist/components/AppImagePicker.js +1 -1
  64. package/dist/components/AppInfoTip.js +1 -1
  65. package/dist/components/AppInlineEdit.js +1 -1
  66. package/dist/components/AppInput.js +1 -1
  67. package/dist/components/AppInputGroup.js +1 -1
  68. package/dist/components/AppKanban.js +1 -1
  69. package/dist/components/AppKbd.js +1 -1
  70. package/dist/components/AppKpiTile.js +1 -1
  71. package/dist/components/AppLightbox.js +1 -1
  72. package/dist/components/AppLink.js +1 -1
  73. package/dist/components/AppMarkdown.js +1 -1
  74. package/dist/components/AppMentionInput.js +1 -1
  75. package/dist/components/AppMeter.js +1 -1
  76. package/dist/components/AppMetricStrip.js +1 -1
  77. package/dist/components/AppModal.js +1 -1
  78. package/dist/components/AppMultiSelect.js +1 -1
  79. package/dist/components/AppNavList.js +1 -1
  80. package/dist/components/AppNavigationMenu.js +1 -1
  81. package/dist/components/AppNotificationCenter.js +1 -1
  82. package/dist/components/AppNumberInput.js +1 -1
  83. package/dist/components/AppOnboardingChecklist.js +1 -1
  84. package/dist/components/AppOtpInput.js +1 -1
  85. package/dist/components/AppPageHeader.js +1 -1
  86. package/dist/components/AppPhoneNumberInput.js +1 -1
  87. package/dist/components/AppPopover.js +1 -1
  88. package/dist/components/AppPricingCard.js +1 -1
  89. package/dist/components/AppProgress.js +1 -1
  90. package/dist/components/AppQrCode.js +1 -1
  91. package/dist/components/AppRadio.js +1 -1
  92. package/dist/components/AppRadioGroup.js +1 -1
  93. package/dist/components/AppRating.js +1 -1
  94. package/dist/components/AppRecordPager.js +1 -1
  95. package/dist/components/AppRelativeTime.js +1 -1
  96. package/dist/components/AppRepeater.js +1 -1
  97. package/dist/components/AppRequiredMark.js +1 -1
  98. package/dist/components/AppResizable.js +1 -1
  99. package/dist/components/AppResizableHandle.js +1 -1
  100. package/dist/components/AppResizablePanel.js +1 -1
  101. package/dist/components/AppResourceCard.js +1 -1
  102. package/dist/components/AppResult.js +1 -1
  103. package/dist/components/AppRichText.js +1 -1
  104. package/dist/components/AppRollingNumber.js +1 -1
  105. package/dist/components/AppRouteError.js +1 -1
  106. package/dist/components/AppRowSwitch.js +1 -0
  107. package/dist/components/AppScoreScale.js +1 -1
  108. package/dist/components/AppScrollbar.js +1 -1
  109. package/dist/components/AppSearch.js +1 -1
  110. package/dist/components/AppSectionCallToAction.js +1 -1
  111. package/dist/components/AppSectionFaq.js +1 -1
  112. package/dist/components/AppSectionFeatures.js +1 -1
  113. package/dist/components/AppSectionHero.js +1 -1
  114. package/dist/components/AppSectionLeadCapture.js +1 -1
  115. package/dist/components/AppSectionLogos.js +1 -1
  116. package/dist/components/AppSectionPricing.js +1 -1
  117. package/dist/components/AppSectionTestimonials.js +1 -1
  118. package/dist/components/AppSegmented.js +1 -1
  119. package/dist/components/AppSelect.js +1 -1
  120. package/dist/components/AppSeoHead.js +1 -1
  121. package/dist/components/AppShell.js +1 -1
  122. package/dist/components/AppShortcutLegend.js +1 -1
  123. package/dist/components/AppShowMore.js +1 -1
  124. package/dist/components/AppSkeleton.js +1 -1
  125. package/dist/components/AppSkeletonLines.js +1 -1
  126. package/dist/components/AppSlider.js +1 -1
  127. package/dist/components/AppSortableList.js +1 -1
  128. package/dist/components/AppSparkline.js +1 -1
  129. package/dist/components/AppSpinner.js +1 -1
  130. package/dist/components/AppSplash.js +1 -1
  131. package/dist/components/AppSplitButton.js +1 -1
  132. package/dist/components/AppSplitView.js +1 -1
  133. package/dist/components/AppStatusBadge.js +1 -1
  134. package/dist/components/AppStepper.js +1 -1
  135. package/dist/components/AppSwitch.js +1 -1
  136. package/dist/components/AppTablePagination.js +1 -1
  137. package/dist/components/AppTableToolbar.js +1 -1
  138. package/dist/components/AppTabs.js +1 -1
  139. package/dist/components/AppTagInput.js +1 -1
  140. package/dist/components/AppTextarea.js +1 -1
  141. package/dist/components/AppThemeToggle.js +1 -1
  142. package/dist/components/AppTimePicker.js +1 -1
  143. package/dist/components/AppTimeline.js +1 -1
  144. package/dist/components/AppToast.js +1 -1
  145. package/dist/components/AppToolbar.js +1 -1
  146. package/dist/components/AppTooltip.js +1 -1
  147. package/dist/components/AppTour.js +1 -1
  148. package/dist/components/AppTreeView.js +1 -1
  149. package/dist/components/AppTruncate.js +1 -1
  150. package/dist/components/AppUpdateBar.js +1 -1
  151. package/dist/components/AppWhatsNew.js +1 -1
  152. package/dist/components/AppWizard.js +1 -1
  153. package/dist/components/AppWorkspaceSwitcher.js +1 -1
  154. package/dist/components/ModalIcons.js +1 -1
  155. package/dist/components/iconCatalogNames.g.js +1 -1
  156. package/dist/components/iconGlyphs.g.js +1 -1
  157. package/dist/components/iconVariants.g.js +1 -1
  158. package/dist/components/toast.js +1 -1
  159. package/dist/components/toastStore.js +1 -1
  160. package/dist/components/useWuiControl.js +1 -1
  161. package/dist/components/warnInvalidValue.js +1 -1
  162. package/dist/components/warnUnknownProps.js +1 -1
  163. package/dist/components/withTooltip.js +1 -1
  164. package/dist/guidance.json +60 -1
  165. package/dist/lib/CheckField.js +1 -1
  166. package/dist/lib/DiscardPrompt.js +1 -1
  167. package/dist/lib/FieldMessage.js +1 -1
  168. package/dist/lib/FileItemRow.js +1 -1
  169. package/dist/lib/FocusPanel.js +1 -1
  170. package/dist/lib/emptyIllustration.js +1 -1
  171. package/dist/lib/fileItem.js +1 -1
  172. package/dist/lib/initials.js +1 -1
  173. package/dist/lib/pageScrollLock.js +1 -1
  174. package/dist/lib/qrCode.js +1 -1
  175. package/dist/lib/sectionShell.js +1 -1
  176. package/dist/lib/shellCookie.js +1 -1
  177. package/dist/lib/shortcutChip.js +1 -1
  178. package/dist/lib/useFileDrop.js +1 -1
  179. package/dist/lib/useFloatingStack.js +1 -1
  180. package/dist/lib/useListQuery.js +1 -1
  181. package/dist/lib/wuiMarker.js +1 -1
  182. package/dist/markdown-core/dist/citations.js +1 -0
  183. package/dist/markdown-core/dist/inline.js +1 -1
  184. package/dist/types/components/AppAutocomplete.d.ts +7 -1
  185. package/dist/types/components/AppMarkdown.d.ts +4 -0
  186. package/dist/types/components/AppRowSwitch.d.ts +23 -0
  187. package/dist/types/components/iconGlyphs.g.d.ts +8 -0
  188. package/dist/types/components/iconVariants.g.d.ts +40 -0
  189. package/dist/types/index.d.ts +1 -0
  190. package/dist/ui-react.js +1 -1
  191. package/package.json +6 -6
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";function r(r){let{marker:i,props:a}=e(`AppSkeleton`,r),{width:o=`100%`,height:s=14,radius:c=6,className:l=``,style:u,...d}=a;return t(`AppSkeleton`,d),n(`span`,{className:`skeleton${l?` ${l}`:``}`,"aria-hidden":`true`,style:{width:o,height:s,borderRadius:c,...u},...i,...d})}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
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";function r(r){let{marker:i,props:a}=e(`AppSkeleton`,r),{width:o=`100%`,height:s=14,radius:c=6,className:l=``,style:u,...d}=a;return t(`AppSkeleton`,d),/* @__PURE__ */ n(`span`,{className:`skeleton${l?` ${l}`:``}`,"aria-hidden":`true`,style:{width:o,height:s,borderRadius:c,...u},...i,...d})}function i({rows:e=4,cols:t=5}){return Array.from({length:e}).map((e,i)=>/* @__PURE__ */ n(`tr`,{children:Array.from({length:t}).map((e,t)=>/* @__PURE__ */ n(`td`,{children:/* @__PURE__ */ n(r,{width:t===0?`70%`:`50%`,height:12})},`col-${t}`))},`row-${i}`))}export{i as AppSkeletonRows,r as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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=Array.from({length:12},(e,t)=>t+1),a=3;function o(o){let{marker:s,props:c}=e(`AppSkeletonLines`,o),{lines:l=a,lastLineWidth:u=`60%`,className:d=``,style:f,...p}=c;n(`AppSkeletonLines`,p),t(`AppSkeletonLines`,`lines`,l,i);let m=i.includes(l)?l:a;return r(`div`,{className:[`wui-skeleton-lines`,d].filter(Boolean).join(` `),"aria-hidden":`true`,style:f,...s,...p,children:Array.from({length:m},(e,t)=>r(`span`,{className:`skeleton`,style:t===m-1?{width:u}:void 0},`line-${t}`))})}export{o as default};
1
+ import{splitMarkerProps 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=Array.from({length:12},(e,t)=>t+1),a=3;function o(o){let{marker:s,props:c}=e(`AppSkeletonLines`,o),{lines:l=a,lastLineWidth:u=`60%`,className:d=``,style:f,...p}=c;n(`AppSkeletonLines`,p),t(`AppSkeletonLines`,`lines`,l,i);let m=i.includes(l)?l:a;return/* @__PURE__ */ r(`div`,{className:[`wui-skeleton-lines`,d].filter(Boolean).join(` `),"aria-hidden":`true`,style:f,...s,...p,children:Array.from({length:m},(e,t)=>/* @__PURE__ */ r(`span`,{className:`skeleton`,style:t===m-1?{width:u}:void 0},`line-${t}`))})}export{o as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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{marker:h,props:g}=e(`AppSlider`,c),{value:_,start:v,end:y,range:b=!1,onChange:x,label:S,required:C=!1,optional:w=!1,hint:T,error:E,name:D,startName:O,endName:k,min:A=0,max:j=100,step:M=1,disabled:N,size:P,showValue:F,unit:I,id:L,ariaLabel:R,className:z=``,fieldClassName:B=``,...V}=g;n(`AppSlider`,V),t(`AppSlider`,`size`,P,p);let H=u(),U=L||H,W=b,{setRef:G,innerRef:K}=a({ref:m,value:W?void 0:_,onChange:x,readValue:W?o:void 0,writeValue:W?void 0:s});l(()=>{if(!W)return;let e=K.current;e&&(v!==void 0&&v>e.end?(y!==void 0&&e.end!==y&&(e.end=y),v!==void 0&&e.start!==v&&(e.start=v)):(v!==void 0&&e.start!==v&&(e.start=v),y!==void 0&&e.end!==y&&(e.end=y)))},[v,y,W,K]);let q=!S&&!E&&!T,J=E?`${U}-error`:void 0,Y=T?`${U}-hint`:void 0,X=d(`wui-slider`,{ref:G,id:U,name:D||void 0,"start-name":O||void 0,"end-name":k||void 0,min:A,max:j,step:M,size:P||void 0,"aria-label":R||(typeof S==`string`?S:void 0),"aria-describedby":J||Y,"aria-invalid":E?`true`:void 0,disabled:N?``:void 0,required:C?``:void 0,range:W?``:void 0,"show-value":F?``:void 0,unit:I||void 0,className:z||void 0,...q?h:null,...V});return q?X:f(`div`,{...h,className:`field${B?` ${B}`:``}`,children:[S&&f(`label`,{className:`label`,htmlFor:U,children:[S,w&&!C&&d(`span`,{className:`label-optional`,children:` (optional)`}),C&&d(i,{})]}),X,d(r,{error:E,hint:T,errorId:J,hintId:Y})]})});export{m as default};
1
+ import e from"../lib/FieldMessage.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppRequiredMark.js";import r,{readRange as i,writeNumberValue as a}from"./useWuiControl.js";import o from"./warnInvalidValue.js";import s from"./warnUnknownProps.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{marker:h,props:g}=t(`AppSlider`,c),{value:_,start:v,end:y,range:b=!1,onChange:x,label:S,required:C=!1,optional:w=!1,hint:T,error:E,name:D,startName:O,endName:k,min:A=0,max:j=100,step:M=1,disabled:N,size:P,showValue:F,unit:I,id:L,ariaLabel:R,className:z=``,fieldClassName:B=``,...V}=g;s(`AppSlider`,V),o(`AppSlider`,`size`,P,p);let H=u(),U=L||H,W=b,{setRef:G,innerRef:K}=r({ref:m,value:W?void 0:_,onChange:x,readValue:W?i:void 0,writeValue:W?void 0:a});l(()=>{if(!W)return;let e=K.current;e&&(v!==void 0&&v>e.end?(y!==void 0&&e.end!==y&&(e.end=y),v!==void 0&&e.start!==v&&(e.start=v)):(v!==void 0&&e.start!==v&&(e.start=v),y!==void 0&&e.end!==y&&(e.end=y)))},[v,y,W,K]);let q=!S&&!E&&!T,J=E?`${U}-error`:void 0,Y=T?`${U}-hint`:void 0,X=/* @__PURE__ */ d(`wui-slider`,{ref:G,id:U,name:D||void 0,"start-name":O||void 0,"end-name":k||void 0,min:A,max:j,step:M,size:P||void 0,"aria-label":R||(typeof S==`string`?S:void 0),"aria-describedby":J||Y,"aria-invalid":E?`true`:void 0,disabled:N?``:void 0,required:C?``:void 0,range:W?``:void 0,"show-value":F?``:void 0,unit:I||void 0,className:z||void 0,...q?h:null,...V});return q?X:/* @__PURE__ */ f(`div`,{...h,className:`field${B?` ${B}`:``}`,children:[S&&/* @__PURE__ */ f(`label`,{className:`label`,htmlFor:U,children:[S,w&&!C&&/* @__PURE__ */ d(`span`,{className:`label-optional`,children:` (optional)`}),C&&/* @__PURE__ */ d(n,{})]}),X,/* @__PURE__ */ d(e,{error:E,hint:T,errorId:J,hintId:Y})]})});export{m as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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=[`always`,`hover`],f=(e,t)=>{e.controlled=!0;let n=e.order;(n.length!==t.length||t.some((e,t)=>e!==n[t]))&&(e.order=t)},p=a(function(a,p){let{marker:m,props:h}=e(`AppSortableList`,a),{items:g=[],onReorder:_,ariaLabel:v,handle:y=!1,group:b,name:x,disabled:S=!1,orientation:C=`vertical`,handleDisplay:w=`always`,bordered:T=!0,className:E=``,...D}=h;n(`AppSortableList`,D),t(`AppSortableList`,`orientation`,C,u),t(`AppSortableList`,`handleDisplay`,w,d);let O=w===`hover`,k=g.map(e=>e.id),A=s(k);o(()=>{A.current=k});let{setRef:j,innerRef:M}=i({ref:p,value:k,writeValue:f,on:{"wui-sortable:change":e=>{e.target===e.currentTarget&&(_?.(e.detail.ids,e.detail),requestAnimationFrame(()=>{M.current&&f(M.current,A.current)}))}}});return c(`wui-sortable`,{ref:j,role:`list`,"aria-label":v,name:x||void 0,group:b||void 0,orientation:C===`horizontal`?`horizontal`:void 0,"handle-display":O?`hover`:void 0,handle:y||O?``:void 0,disabled:S?``:void 0,borderless:T?void 0:``,className:`wui-sortable${E?` ${E}`:``}`,...m,...D,children:g.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:S||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{p as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./useWuiControl.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.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=[`always`,`hover`],f=(e,t)=>{e.controlled=!0;let n=e.order;(n.length!==t.length||t.some((e,t)=>e!==n[t]))&&(e.order=t)},p=a(function(a,p){let{marker:m,props:h}=e(`AppSortableList`,a),{items:g=[],onReorder:_,ariaLabel:v,handle:y=!1,group:b,name:x,disabled:S=!1,orientation:C=`vertical`,handleDisplay:w=`always`,bordered:T=!0,className:E=``,...D}=h;i(`AppSortableList`,D),r(`AppSortableList`,`orientation`,C,u),r(`AppSortableList`,`handleDisplay`,w,d);let O=w===`hover`,k=g.map(e=>e.id),A=s(k);o(()=>{A.current=k});let{setRef:j,innerRef:M}=n({ref:p,value:k,writeValue:f,on:{"wui-sortable:change":e=>{e.target===e.currentTarget&&(_?.(e.detail.ids,e.detail),requestAnimationFrame(()=>{M.current&&f(M.current,A.current)}))}}});return/* @__PURE__ */ c(`wui-sortable`,{ref:j,role:`list`,"aria-label":v,name:x||void 0,group:b||void 0,orientation:C===`horizontal`?`horizontal`:void 0,"handle-display":O?`hover`:void 0,handle:y||O?``:void 0,disabled:S?``:void 0,borderless:T?void 0:``,className:`wui-sortable${E?` ${E}`:``}`,...m,...D,children:g.map(e=>/* @__PURE__ */ l(`div`,{role:`listitem`,className:`wui-sortable-item`,"data-id":e.id,"data-label":e.label,"data-disabled":e.disabled?``:void 0,children:[/* @__PURE__ */ c(`button`,{type:`button`,className:`wui-sortable-handle`,"aria-label":`Reorder ${e.label}`,disabled:S||e.disabled?!0:void 0,children:/* @__PURE__ */ c(t,{name:`menu`,size:18})}),/* @__PURE__ */ c(`div`,{className:`wui-sortable-body`,children:e.content??e.label})]},e.id))})});export{p as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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{marker:i,props:a}=e(`AppSparkline`,t),{data:l,label:d,width:f=48,height:p=16,className:m=``,...h}=a;n(`AppSparkline`,h);let g=Array.isArray(l)?l.filter(s):[];return Array.isArray(l)&&g.length<l.length&&o(l.length-g.length),g.length===0?null:r(`svg`,{className:`wui-sparkline${m?` ${m}`:``}`,width:f,height:p,viewBox:`0 0 ${f} ${p}`,role:`img`,"aria-label":u(g,d),...i,...h,children:r(`polyline`,{points:c(g,f,p),stroke:`currentColor`,fill:`none`})})}export{d as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import{splitMarkerProps as t}from"../lib/wuiMarker.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(t){!a&&i()&&(a=!0,e(`[@webority/ui-react] <AppSparkline> left out ${t} 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(e){let{marker:i,props:a}=t(`AppSparkline`,e),{data:l,label:d,width:f=48,height:p=16,className:m=``,...h}=a;n(`AppSparkline`,h);let g=Array.isArray(l)?l.filter(s):[];return Array.isArray(l)&&g.length<l.length&&o(l.length-g.length),g.length===0?null:/* @__PURE__ */ r(`svg`,{className:`wui-sparkline${m?` ${m}`:``}`,width:f,height:p,viewBox:`0 0 ${f} ${p}`,role:`img`,"aria-label":u(g,d),...i,...h,children:/* @__PURE__ */ r(`polyline`,{points:c(g,f,p),stroke:`currentColor`,fill:`none`})})}export{d as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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{marker:o,props:s}=e(`AppSpinner`,a),{size:c=`md`,label:l=`Loading`,className:u=``,...d}=s;n(`AppSpinner`,d),t(`AppSpinner`,`size`,typeof c==`string`&&!Number.isFinite(Number(c))?c:null,i);let{style:f,...p}=d,m=Number(c),h=Number.isFinite(m)&&m>0;return r(`span`,{className:`spinner-border${!h&&c===`sm`?` spinner-border-sm`:``}${u?` ${u}`:``}`,role:`status`,"aria-label":l,style:h?{width:`${m}px`,height:`${m}px`,borderWidth:`${Math.max(2,Math.round(m/8))}px`,...f}:f,...o,...p})}export{a as default};
1
+ import{splitMarkerProps 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{marker:o,props:s}=e(`AppSpinner`,a),{size:c=`md`,label:l=`Loading`,className:u=``,...d}=s;n(`AppSpinner`,d),t(`AppSpinner`,`size`,typeof c==`string`&&!Number.isFinite(Number(c))?c:null,i);let{style:f,...p}=d,m=Number(c),h=Number.isFinite(m)&&m>0,g=`spinner-border${!h&&c===`sm`?` spinner-border-sm`:``}${u?` ${u}`:``}`,_=h?{width:`${m}px`,height:`${m}px`,borderWidth:`${Math.max(2,Math.round(m/8))}px`,...f}:f;return/* @__PURE__ */ r(`span`,{className:g,role:`status`,"aria-label":l,style:_,...o,...p})}export{a as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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{marker:c,props:l}=e(`AppSplash`,s),{logo:u,initials:d,text:f,subtext:p,variant:m=`bar`,size:h=`md`,label:g=`Loading`,className:_=``,...v}=l;n(`AppSplash`,v),t(`AppSplash`,`variant`,m,a),t(`AppSplash`,`size`,typeof h==`string`?h:null,Object.keys(o));let{style:y,...b}=v,x=typeof h==`number`?h:o[h]??o.md,S=m===`ring`?r(`span`,{className:`splash-ring`,"aria-hidden":`true`}):m===`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${_?` ${_}`:``}`,role:`status`,"aria-live":`polite`,"aria-label":g,style:{"--wui-splash-size":`${x}px`,...y},...c,...b,children:i(`div`,{className:`splash-inner`,children:[u||d&&r(`span`,{className:`splash-mark`,children:d}),S,f&&r(`span`,{className:`splash-text`,children:f}),p&&r(`span`,{className:`splash-subtext`,children:p})]})})}export{s as default};
1
+ import{splitMarkerProps 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{marker:c,props:l}=e(`AppSplash`,s),{logo:u,initials:d,text:f,subtext:p,variant:m=`bar`,size:h=`md`,label:g=`Loading`,className:_=``,...v}=l;n(`AppSplash`,v),t(`AppSplash`,`variant`,m,a),t(`AppSplash`,`size`,typeof h==`string`?h:null,Object.keys(o));let{style:y,...b}=v,x=typeof h==`number`?h:o[h]??o.md,S=m===`ring`?/* @__PURE__ */ r(`span`,{className:`splash-ring`,"aria-hidden":`true`}):m===`dots`?/* @__PURE__ */ i(`span`,{className:`splash-dots`,"aria-hidden":`true`,children:[/* @__PURE__ */ r(`i`,{}),/* @__PURE__ */ r(`i`,{}),/* @__PURE__ */ r(`i`,{})]}):/* @__PURE__ */ r(`span`,{className:`splash-bar`,"aria-hidden":`true`});return/* @__PURE__ */ r(`div`,{className:`splash${_?` ${_}`:``}`,role:`status`,"aria-live":`polite`,"aria-label":g,style:{"--wui-splash-size":`${x}px`,...y},...c,...b,children:/* @__PURE__ */ i(`div`,{className:`splash-inner`,children:[u||d&&/* @__PURE__ */ r(`span`,{className:`splash-mark`,children:d}),S,f&&/* @__PURE__ */ r(`span`,{className:`splash-text`,children:f}),p&&/* @__PURE__ */ r(`span`,{className:`splash-subtext`,children:p})]})})}export{s as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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{marker:m,props:h}=e(`AppSplitButton`,p),{label:g,items:_=[],onClick:v,href:y,type:b=`button`,variant:x=`primary`,size:S=`md`,disabled:C=!1,loading:w=!1,leftIcon:T,shortcut:E,menuLabel:D=`More actions`,align:O=`end`,linkComponent:k,className:A=``,...j}=h;n(`AppSplitButton`,j),t(`AppSplitButton`,`size`,S,l),t(`AppSplitButton`,`type`,b,u);let M=[`btn`,a(x),f[S]??``,`wui-split-toggle`].filter(Boolean).join(` `),N=s(r,{name:`chevron-down`,size:d[S]??d.md}),P=C||w;return c(`div`,{role:`group`,"aria-label":g,className:[`wui-split-button`,A].filter(Boolean).join(` `),...m,...j,children:[s(i,{variant:x,size:S,type:b,href:y,onClick:v,disabled:C,loading:w,leftIcon:T,shortcut:E,children:g}),P?s(`div`,{className:`wui-split-menu`,children:s(`button`,{type:`button`,className:M,disabled:!0,"aria-label":D,children:N})}):s(o,{className:`wui-split-menu`,trigger:N,toggleClassName:M,label:D,ariaLabel:D,align:O,items:_,linkComponent:k})]})}export{p as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t,{buttonVariantClass as n}from"./AppButton.js";import r from"./AppDropdown.js";import i from"./AppIcon.js";import a from"./warnInvalidValue.js";import o from"./warnUnknownProps.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{marker:m,props:h}=e(`AppSplitButton`,p),{label:g,items:_=[],onClick:v,href:y,type:b=`button`,variant:x=`primary`,size:S=`md`,disabled:C=!1,loading:w=!1,leftIcon:T,shortcut:E,menuLabel:D=`More actions`,align:O=`end`,linkComponent:k,className:A=``,...j}=h;o(`AppSplitButton`,j),a(`AppSplitButton`,`size`,S,l),a(`AppSplitButton`,`type`,b,u);let M=[`btn`,n(x),f[S]??``,`wui-split-toggle`].filter(Boolean).join(` `),N=/* @__PURE__ */ s(i,{name:`chevron-down`,size:d[S]??d.md}),P=C||w;return/* @__PURE__ */ c(`div`,{role:`group`,"aria-label":g,className:[`wui-split-button`,A].filter(Boolean).join(` `),...m,...j,children:[/* @__PURE__ */ s(t,{variant:x,size:S,type:b,href:y,onClick:v,disabled:C,loading:w,leftIcon:T,shortcut:E,children:g}),P?/* @__PURE__ */ s(`div`,{className:`wui-split-menu`,children:/* @__PURE__ */ s(`button`,{type:`button`,className:M,disabled:!0,"aria-label":D,children:N})}):/* @__PURE__ */ s(r,{className:`wui-split-menu`,trigger:N,toggleClassName:M,label:D,ariaLabel:D,align:O,items:_,linkComponent:k})]})}export{p as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppRecordPager.js";import i from"./AppShortcutLegend.js";import{LIST_KEYS as a,SELECT_KEY as o,shortcutKey as s}from"@webority/ui-elements/helpers";import{useEffect as c,useMemo as ee,useRef as l}from"react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";var p={sm:576,md:768,lg:992,xl:1200,xxl:1400},te=Object.keys(p),m=[3,4,5,6,7,8],h=6,g=`.wui-split-items > .wui-split-item > .wui-split-link`,_=(e,t)=>e!=null&&String(e)===String(t),v=e=>{let t=window.matchMedia?.(`(min-width: ${p[e]}px)`);return!t||t.matches},ne=e=>typeof e==`string`||typeof e==`number`?String(e):`item`;function y(y){let{marker:b,props:x}=e(`AppSplitView`,y),{items:S=[],currentKey:C,onSelect:w,selectable:T=!1,selectedKeys:E,onToggle:D,onToggleAll:O,bulkActions:k,header:A,chips:j,pane:re,paneHeader:M,pager:ie=!0,shortcuts:ae,shortcutsEnabled:N=!0,empty:P=`Nothing here yet.`,loading:F=!1,listWidth:I=5,stackBelow:L=`xl`,className:R=``,...z}=x,B=ee(()=>new Set(E),[E]);n(`AppSplitView`,z),t(`AppSplitView`,`stackBelow`,L,te),t(`AppSplitView`,`listWidth`,I,m);let V=p[L]?L:`xl`,H=m.includes(I)?I:5,U=l(null),W=C!=null,G=T?B?.size??0:0,K=G>0,q=T&&S.length>0&&S.every(e=>B?.has(e.key)),oe=T&&!q&&S.some(e=>B?.has(e.key)),se=e=>{e&&(e.indeterminate=oe)},J=l(!1);c(()=>{if(!J.current){J.current=!0;return}C!=null&&U.current?.querySelector(`.wui-split-link[aria-current="true"]`)?.scrollIntoView?.({block:`nearest`})},[C]);let Y=(e,t)=>{t.button>0||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey||w&&(e.href&&!v(V)||(t.preventDefault(),w(e.key)))},X=e=>{let t=[...U.current?.querySelectorAll(g)??[]];t[t.findIndex(e=>e.getAttribute(`aria-current`)===`true`)+e]?.click()},ce=[`wui-split-view`,W?`wui-split-reading`:``,R].filter(Boolean).join(` `),le=T?[...a,o]:a,ue=new Set([`J`,`K`,`Enter`,`?`,...T?[`X`]:[]]),de=[...le,...(ae??[]).filter(e=>!ue.has(s(e.key))).map(e=>({key:e.key,label:e.label,onPress:()=>e.onPress?.(C)}))],Z=S.findIndex(e=>_(C,e.key)),Q=ie&&!F&&S.length>0?d(r,{"data-split-pager":``,index:Z>=0?Z+1:void 0,total:S.length,onPrev:()=>X(-1),onNext:()=>X(1),prevLabel:`Previous item`,nextLabel:`Next item`}):null,fe=e=>{let t=_(C,e.key),n=T&&!!B?.has(e.key),r=e.badge!==void 0&&e.badge!==null&&e.badge!==``,i=f(u,{children:[f(`span`,{className:`wui-split-item-main`,children:[d(`span`,{className:`wui-split-item-title`,children:e.title}),e.meta!==void 0&&e.meta!==null&&d(`span`,{className:`wui-split-item-meta`,children:e.meta})]}),(e.trailing||r)&&f(`span`,{className:`wui-split-item-end`,children:[e.trailing,r&&d(`span`,{className:`wui-split-badge`,children:e.badge})]})]});return f(`li`,{className:[`wui-split-item`,t?`is-active`:``,n?`is-selected`:``].filter(Boolean).join(` `),"data-key":e.key,children:[T&&d(`input`,{type:`checkbox`,className:`wui-check wui-split-check`,checked:n,onChange:()=>D?.(e.key),"aria-label":`Select ${ne(e.title)}`}),e.href?d(`a`,{className:`wui-split-link`,href:e.href,"aria-current":t?`true`:void 0,onClick:t=>Y(e,t),children:i}):d(`button`,{type:`button`,className:`wui-split-link`,"aria-current":t?`true`:void 0,onClick:t=>Y(e,t),children:i})]},e.key)},$;return $=F?f(`div`,{className:`wui-split-items`,"aria-busy":`true`,tabIndex:0,children:[d(`span`,{className:`visually-hidden`,children:`Loading`}),Array.from({length:h},(e,t)=>f(`div`,{className:`wui-split-skeleton`,"aria-hidden":`true`,children:[d(`span`,{className:`skeleton wui-split-skeleton-title`}),d(`span`,{className:`skeleton wui-split-skeleton-meta`})]},t))]}):S.length?d(`ul`,{className:`wui-split-items`,"aria-label":`Items`,children:S.map(fe)}):d(`div`,{className:`wui-split-empty`,children:P}),f(`div`,{ref:U,className:ce,"data-stack-below":V,"data-list-width":H,"data-shortcut-scope":N?``:void 0,...b,...z,children:[f(`div`,{className:`wui-split-list`,children:[(A||T)&&f(`div`,{className:`wui-split-head`,children:[T&&d(`input`,{ref:se,type:`checkbox`,className:`wui-check wui-split-all`,checked:q,onChange:e=>O?.(e.target.checked),"aria-label":`Select all items`}),d(`div`,{className:`wui-split-head-main`,hidden:K,children:A}),T&&f(`div`,{className:`wui-split-head-bulk`,hidden:!K,children:[f(`span`,{className:`wui-split-count`,"aria-live":`polite`,children:[G,` selected`]}),k]})]}),j&&d(`div`,{className:`wui-split-chips`,children:j}),$,N&&f(`div`,{className:`wui-split-legend`,children:[f(`span`,{children:[d(`kbd`,{className:`wui-kbd`,children:`J`}),` `,d(`kbd`,{className:`wui-kbd`,children:`K`}),` Move`]}),f(`span`,{children:[d(`kbd`,{className:`wui-kbd`,children:`Enter`}),` Open`]}),d(i,{items:g,shortcuts:de})]})]}),f(`div`,{className:`wui-split-pane`,children:[(M||Q)&&f(`div`,{className:`wui-split-pane-head`,children:[M,Q]}),d(`section`,{className:`wui-split-pane-body`,"aria-label":`Reading pane`,tabIndex:0,children:re})]})]})}export{y as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppRecordPager.js";import n from"./AppShortcutLegend.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.js";import{LIST_KEYS as a,SELECT_KEY as o,shortcutKey as s}from"@webority/ui-elements/helpers";import{useEffect as c,useMemo as ee,useRef as l}from"react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";var p={sm:576,md:768,lg:992,xl:1200,xxl:1400},te=Object.keys(p),m=[3,4,5,6,7,8],h=6,g=`.wui-split-items > .wui-split-item > .wui-split-link`,_=(e,t)=>e!=null&&String(e)===String(t),v=e=>{let t=window.matchMedia?.(`(min-width: ${p[e]}px)`);return!t||t.matches},ne=e=>typeof e==`string`||typeof e==`number`?String(e):`item`;function y(y){let{marker:b,props:x}=e(`AppSplitView`,y),{items:S=[],currentKey:C,onSelect:w,selectable:T=!1,selectedKeys:E,onToggle:D,onToggleAll:O,bulkActions:k,header:A,chips:j,pane:re,paneHeader:M,pager:ie=!0,shortcuts:ae,shortcutsEnabled:N=!0,empty:P=`Nothing here yet.`,loading:F=!1,listWidth:I=5,stackBelow:L=`xl`,className:R=``,...z}=x,B=ee(()=>new Set(E),[E]);i(`AppSplitView`,z),r(`AppSplitView`,`stackBelow`,L,te),r(`AppSplitView`,`listWidth`,I,m);let V=p[L]?L:`xl`,H=m.includes(I)?I:5,U=l(null),W=C!=null,G=T?B?.size??0:0,K=G>0,q=T&&S.length>0&&S.every(e=>B?.has(e.key)),oe=T&&!q&&S.some(e=>B?.has(e.key)),se=e=>{e&&(e.indeterminate=oe)},J=l(!1);c(()=>{J.current?C!=null&&U.current?.querySelector(`.wui-split-link[aria-current="true"]`)?.scrollIntoView?.({block:`nearest`}):J.current=!0},[C]);let Y=(e,t)=>{t.button>0||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey||w&&(!e.href||v(V))&&(t.preventDefault(),w(e.key))},X=e=>{let t=[...U.current?.querySelectorAll(g)??[]];t[t.findIndex(e=>e.getAttribute(`aria-current`)===`true`)+e]?.click()},ce=[`wui-split-view`,W?`wui-split-reading`:``,R].filter(Boolean).join(` `),le=T?[...a,o]:a,ue=/* @__PURE__ */ new Set([`J`,`K`,`Enter`,`?`,...T?[`X`]:[]]),de=[...le,...(ae??[]).filter(e=>!ue.has(s(e.key))).map(e=>({key:e.key,label:e.label,onPress:()=>e.onPress?.(C)}))],Z=S.findIndex(e=>_(C,e.key)),Q=ie&&!F&&S.length>0?/* @__PURE__ */ d(t,{"data-split-pager":``,index:Z>=0?Z+1:void 0,total:S.length,onPrev:()=>X(-1),onNext:()=>X(1),prevLabel:`Previous item`,nextLabel:`Next item`}):null,fe=e=>{let t=_(C,e.key),n=T&&!!B?.has(e.key),r=e.badge!==void 0&&e.badge!==null&&e.badge!==``,i=/* @__PURE__ */ f(u,{children:[/* @__PURE__ */ f(`span`,{className:`wui-split-item-main`,children:[/* @__PURE__ */ d(`span`,{className:`wui-split-item-title`,children:e.title}),e.meta!==void 0&&e.meta!==null&&/* @__PURE__ */ d(`span`,{className:`wui-split-item-meta`,children:e.meta})]}),(e.trailing||r)&&/* @__PURE__ */ f(`span`,{className:`wui-split-item-end`,children:[e.trailing,r&&/* @__PURE__ */ d(`span`,{className:`wui-split-badge`,children:e.badge})]})]});return/* @__PURE__ */ f(`li`,{className:[`wui-split-item`,t?`is-active`:``,n?`is-selected`:``].filter(Boolean).join(` `),"data-key":e.key,children:[T&&/* @__PURE__ */ d(`input`,{type:`checkbox`,className:`wui-check wui-split-check`,checked:n,onChange:()=>D?.(e.key),"aria-label":`Select ${ne(e.title)}`}),e.href?/* @__PURE__ */ d(`a`,{className:`wui-split-link`,href:e.href,"aria-current":t?`true`:void 0,onClick:t=>Y(e,t),children:i}):/* @__PURE__ */ d(`button`,{type:`button`,className:`wui-split-link`,"aria-current":t?`true`:void 0,onClick:t=>Y(e,t),children:i})]},e.key)},$;return $=F?/* @__PURE__ */ f(`div`,{className:`wui-split-items`,"aria-busy":`true`,tabIndex:0,children:[/* @__PURE__ */ d(`span`,{className:`visually-hidden`,children:`Loading`}),Array.from({length:h},(e,t)=>/* @__PURE__ */ f(`div`,{className:`wui-split-skeleton`,"aria-hidden":`true`,children:[/* @__PURE__ */ d(`span`,{className:`skeleton wui-split-skeleton-title`}),/* @__PURE__ */ d(`span`,{className:`skeleton wui-split-skeleton-meta`})]},t))]}):S.length?/* @__PURE__ */ d(`ul`,{className:`wui-split-items`,"aria-label":`Items`,children:S.map(fe)}):/* @__PURE__ */ d(`div`,{className:`wui-split-empty`,children:P}),/* @__PURE__ */ f(`div`,{ref:U,className:ce,"data-stack-below":V,"data-list-width":H,"data-shortcut-scope":N?``:void 0,...b,...z,children:[/* @__PURE__ */ f(`div`,{className:`wui-split-list`,children:[(A||T)&&/* @__PURE__ */ f(`div`,{className:`wui-split-head`,children:[T&&/* @__PURE__ */ d(`input`,{ref:se,type:`checkbox`,className:`wui-check wui-split-all`,checked:q,onChange:e=>O?.(e.target.checked),"aria-label":`Select all items`}),/* @__PURE__ */ d(`div`,{className:`wui-split-head-main`,hidden:K,children:A}),T&&/* @__PURE__ */ f(`div`,{className:`wui-split-head-bulk`,hidden:!K,children:[/* @__PURE__ */ f(`span`,{className:`wui-split-count`,"aria-live":`polite`,children:[G,` selected`]}),k]})]}),j&&/* @__PURE__ */ d(`div`,{className:`wui-split-chips`,children:j}),$,N&&/* @__PURE__ */ f(`div`,{className:`wui-split-legend`,children:[/* @__PURE__ */ f(`span`,{children:[/* @__PURE__ */ d(`kbd`,{className:`wui-kbd`,children:`J`}),` `,/* @__PURE__ */ d(`kbd`,{className:`wui-kbd`,children:`K`}),` Move`]}),/* @__PURE__ */ f(`span`,{children:[/* @__PURE__ */ d(`kbd`,{className:`wui-kbd`,children:`Enter`}),` Open`]}),/* @__PURE__ */ d(n,{items:g,shortcuts:de})]})]}),/* @__PURE__ */ f(`div`,{className:`wui-split-pane`,children:[(M||Q)&&/* @__PURE__ */ f(`div`,{className:`wui-split-pane-head`,children:[M,Q]}),/* @__PURE__ */ d(`section`,{className:`wui-split-pane-body`,"aria-label":`Reading pane`,tabIndex:0,children:re})]})]})}export{y as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./withTooltip.js";import{jsx as i}from"react/jsx-runtime";var a=[`neutral`,`primary`,`success`,`warning`,`danger`,`info`];function o(o){let{marker:s,props:c}=e(`AppStatusBadge`,o),{label:l,tone:u=`neutral`,className:d=``,tooltip:f,tooltipPlacement:p,...m}=c;return n(`AppStatusBadge`,m),t(`AppStatusBadge`,`tone`,u,a),l==null||l===``?`-`:r(i(`span`,{className:`status-label ${u}${d?` ${d}`:``}`,...s,...m,children:l}),f,p)}export{o as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./withTooltip.js";import{jsx as i}from"react/jsx-runtime";var a=[`neutral`,`primary`,`success`,`warning`,`danger`,`info`];function o(o){let{marker:s,props:c}=e(`AppStatusBadge`,o),{label:l,tone:u=`neutral`,className:d=``,tooltip:f,tooltipPlacement:p,...m}=c;return n(`AppStatusBadge`,m),t(`AppStatusBadge`,`tone`,u,a),l==null||l===``?`-`:r(/* @__PURE__ */ i(`span`,{className:`status-label ${u}${d?` ${d}`:``}`,...s,...m,children:l}),f,p)}export{o as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{deriveStepStatus as i,stepperHeaderItems as a}from"@webority/ui-elements/helpers";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`steps`,`journey`],u=[`horizontal`,`vertical`],d=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],f=[`sm`,`md`,`lg`],p=[`primary`,`info`],m={sm:12,md:14,lg:18},h=[`done`,`active`,`pending`,`error`];function g(g){let{marker:_,props:v}=e(`AppStepper`,g),{steps:y=[],variant:b=`steps`,orientation:x=`horizontal`,iconVariant:S,size:C=`md`,iconSize:w,active:T,onStepClick:E,label:D=`Progress`,tone:O=`primary`,linkComponent:k,className:A=``,...j}=v;n(`AppStepper`,j),t(`AppStepper`,`variant`,b,l),t(`AppStepper`,`orientation`,x,u),t(`AppStepper`,`iconVariant`,S,d),t(`AppStepper`,`size`,C,f),t(`AppStepper`,`tone`,O,p);let M=w>0?w:m[C]??m.md;for(let e of y)t(`AppStepper`,`steps[].status`,e.status,h);let N=b===`journey`,P=[`stepper`,N&&`stepper-journey`,x===`vertical`&&`stepper-vertical`,C!==`md`&&f.includes(C)&&`wui-step-size-${C}`,O!==`primary`&&p.includes(O)&&`wui-step-tone-${O}`,A].filter(Boolean).join(` `),F=a(y,{statusOf:e=>y[e].status||i(e,T),journey:N,connectors:!0});return s(`nav`,{className:P,"aria-label":D,..._,...j,children:F.map(e=>{let t=e.index,n=y[t],i=e.className,a=e.glyph.number;e.glyph.icon&&(a=s(r,{name:e.glyph.icon,size:M,variant:S}));let l=c(o,{children:[s(`span`,{className:`step-circle`,children:a}),N?c(`span`,{className:`step-text`,children:[s(`span`,{className:`step-index`,children:`Step ${t+1}`}),s(`span`,{className:`step-label`,children:n.label}),n.description?s(`span`,{className:`step-desc`,children:n.description}):null]}):c(o,{children:[s(`span`,{className:`step-label`,children:n.label}),n.description?s(`span`,{className:`step-desc`,children:n.description}):null]})]}),u=e.current?`step`:void 0,d=n.key??`${n.label}-${t}`,f;return f=E?s(`button`,{type:`button`,className:i,"aria-current":u,onClick:()=>E(n,t),children:l},d):n.href?k?s(k,{className:i,to:n.href,"aria-current":u,children:l},d):s(`a`,{className:i,href:n.href,"aria-current":u,children:l},d):s(`div`,{className:i,"aria-current":u,children:l},d),e.line?[f,s(`span`,{className:`step-line${e.line.done?` done`:``}`,"aria-hidden":`true`},`${d}-line`)]:f})})}export{g as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{deriveStepStatus as i,stepperHeaderItems as a}from"@webority/ui-elements/helpers";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";var l=[`steps`,`journey`],u=[`horizontal`,`vertical`],d=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],f=[`sm`,`md`,`lg`],p=[`primary`,`info`],m={sm:12,md:14,lg:18},h=[`done`,`active`,`pending`,`error`];function g(g){let{marker:_,props:v}=e(`AppStepper`,g),{steps:y=[],variant:b=`steps`,orientation:x=`horizontal`,iconVariant:S,size:C=`md`,iconSize:w,active:T,onStepClick:E,label:D=`Progress`,tone:O=`primary`,linkComponent:k,className:A=``,...j}=v;r(`AppStepper`,j),n(`AppStepper`,`variant`,b,l),n(`AppStepper`,`orientation`,x,u),n(`AppStepper`,`iconVariant`,S,d),n(`AppStepper`,`size`,C,f),n(`AppStepper`,`tone`,O,p);let M=w>0?w:m[C]??m.md;for(let e of y)n(`AppStepper`,`steps[].status`,e.status,h);let N=b===`journey`,P=[`stepper`,N&&`stepper-journey`,x===`vertical`&&`stepper-vertical`,C!==`md`&&f.includes(C)&&`wui-step-size-${C}`,O!==`primary`&&p.includes(O)&&`wui-step-tone-${O}`,A].filter(Boolean).join(` `),F=a(y,{statusOf:e=>y[e].status||i(e,T),journey:N,connectors:!0});return/* @__PURE__ */ s(`nav`,{className:P,"aria-label":D,..._,...j,children:F.map(e=>{let n=e.index,r=y[n],i=e.className,a=e.glyph.number;e.glyph.icon&&(a=/* @__PURE__ */ s(t,{name:e.glyph.icon,size:M,variant:S}));let l=/* @__PURE__ */ c(o,{children:[/* @__PURE__ */ s(`span`,{className:`step-circle`,children:a}),N?/* @__PURE__ */ c(`span`,{className:`step-text`,children:[/* @__PURE__ */ s(`span`,{className:`step-index`,children:`Step ${n+1}`}),/* @__PURE__ */ s(`span`,{className:`step-label`,children:r.label}),r.description?/* @__PURE__ */ s(`span`,{className:`step-desc`,children:r.description}):null]}):/* @__PURE__ */ c(o,{children:[/* @__PURE__ */ s(`span`,{className:`step-label`,children:r.label}),r.description?/* @__PURE__ */ s(`span`,{className:`step-desc`,children:r.description}):null]})]}),u=e.current?`step`:void 0,d=r.key??`${r.label}-${n}`,f;return f=E?/* @__PURE__ */ s(`button`,{type:`button`,className:i,"aria-current":u,onClick:()=>E(r,n),children:l},d):r.href?k?/* @__PURE__ */ s(k,{className:i,to:r.href,"aria-current":u,children:l},d):/* @__PURE__ */ s(`a`,{className:i,href:r.href,"aria-current":u,children:l},d):/* @__PURE__ */ s(`div`,{className:i,"aria-current":u,children:l},d),e.line?[f,/* @__PURE__ */ s(`span`,{className:`step-line${e.line.done?` done`:``}`,"aria-hidden":`true`},`${d}-line`)]:f})})}export{g as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"../lib/CheckField.js";import{forwardRef as i}from"react";import{jsx as a}from"react/jsx-runtime";var o=[`round`,`pill`,`circle`],s=i(function(i,s){let{marker:c,props:l}=e(`AppSwitch`,i),{label:u,id:d,name:f,error:p,hint:m,shape:h=`round`,className:g=``,checked:_,defaultChecked:v,onChange:y,...b}=l;n(`AppSwitch`,b),t(`AppSwitch`,`shape`,h,o);let x=`form-check form-switch${h===`circle`?` form-switch-circle`:h===`pill`?` form-switch-pill`:``}`,S={...b};return _!==void 0&&(S.checked=_),v!==void 0&&(S.defaultChecked=v),y!==void 0&&(S.onChange=y),_!==void 0&&y===void 0&&(S.readOnly=!0),a(r,{rootProps:c,ref:s,label:u,id:d,name:f,error:p,hint:m,className:g,rest:S,inputType:`checkbox`,wrapperClass:x})});export{s as default};
1
+ import e from"../lib/CheckField.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{forwardRef as i}from"react";import{jsx as a}from"react/jsx-runtime";var o=[`round`,`pill`,`circle`],s=i(function(i,s){let{marker:c,props:l}=t(`AppSwitch`,i),{label:u,id:d,name:f,error:p,hint:m,shape:h=`round`,className:g=``,checked:_,defaultChecked:v,onChange:y,...b}=l;r(`AppSwitch`,b),n(`AppSwitch`,`shape`,h,o);let x=`form-check form-switch${h===`circle`?` form-switch-circle`:h===`pill`?` form-switch-pill`:``}`,S={...b};return _!==void 0&&(S.checked=_),v!==void 0&&(S.defaultChecked=v),y!==void 0&&(S.onChange=y),_!==void 0&&y===void 0&&(S.readOnly=!0),/* @__PURE__ */ a(e,{rootProps:c,ref:s,label:u,id:d,name:f,error:p,hint:m,className:g,rest:S,inputType:`checkbox`,wrapperClass:x})});export{s as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{pageWindow as i}from"../lib/pageWindow.js";import a from"./AppSelect.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`numbered`,`prev-next`],l=[`sm`,`md`],u=[`footer`,`standalone`],d=[5,10,25,50];function f(f){let{marker:p,props:m}=e(`AppTablePagination`,f),{page:h,totalPages:g,total:_,pageSize:v,onPageChange:y,onPageSizeChange:b,pageSizes:x=d,mode:S=`numbered`,showPageSize:C=!0,siblings:w=2,size:T=`md`,variant:E=`footer`,ariaLabel:D=`Pagination`,className:O=``,...k}=m;n(`AppTablePagination`,k),t(`AppTablePagination`,`mode`,S,c),t(`AppTablePagination`,`size`,T,l),t(`AppTablePagination`,`variant`,E,u);let A=Number(v)||0,j=Number(_)||0,M=g===void 0?j<=0:g<=0,N=Math.max(1,g??Math.ceil(j/(A>0?A:10))),P=Math.min(Math.max(1,Number(h)||1),N),F=A>0&&!!b&&C!==!1;if(M||N<=1&&!F)return null;let I=A>0&&!x.includes(A)?[...x,A].sort((e,t)=>e-t):x,L=S===`numbered`,R=L?i(P,N,{siblingCount:w}):null;return s(`nav`,{className:[`table-pagination`,E===`standalone`&&`wui-table-pagination-standalone`,T===`sm`&&`wui-table-pagination-sm`,O].filter(Boolean).join(` `),"aria-label":D,...p,...k,children:[F&&o(`span`,{className:`tpg-rows`,children:o(a,{compact:!0,"aria-label":`Rows per page`,value:String(A),onChange:e=>b(Number(e)),options:I.map(e=>({value:String(e),label:`${e} per page`}))})}),!L&&s(`span`,{className:`tpg-range`,children:[`Page `,P,` of `,N]}),s(`div`,{className:`tpg-nav`,children:[o(`button`,{type:`button`,className:`tpg-arrow`,onClick:()=>y?.(Math.max(1,P-1)),disabled:P<=1,"aria-label":`Previous page`,children:o(r,{name:`arrow-left`,size:18})}),L&&R.map(e=>typeof e==`number`?o(`button`,{type:`button`,className:`tpg-page${e===P?` is-active`:``}`,onClick:()=>y?.(e),"aria-current":e===P?`page`:void 0,"aria-label":`Page ${e}`,children:e},e):o(`span`,{className:`tpg-ellipsis`,"aria-hidden":`true`,children:`…`},e)),o(`button`,{type:`button`,className:`tpg-arrow`,onClick:()=>y?.(Math.min(N,P+1)),disabled:P>=N,"aria-label":`Next page`,children:o(r,{name:`arrow-right`,size:18})})]})]})}export{f as default};
1
+ import{pageWindow as e}from"../lib/pageWindow.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppIcon.js";import r from"./AppSelect.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`numbered`,`prev-next`],l=[`sm`,`md`],u=[`footer`,`standalone`],d=[5,10,25,50];function f(f){let{marker:p,props:m}=t(`AppTablePagination`,f),{page:h,totalPages:g,total:_,pageSize:v,onPageChange:y,onPageSizeChange:b,pageSizes:x=d,mode:S=`numbered`,showPageSize:C=!0,siblings:w=2,size:T=`md`,variant:E=`footer`,ariaLabel:D=`Pagination`,className:O=``,...k}=m;a(`AppTablePagination`,k),i(`AppTablePagination`,`mode`,S,c),i(`AppTablePagination`,`size`,T,l),i(`AppTablePagination`,`variant`,E,u);let A=Number(v)||0,j=Number(_)||0,M=g===void 0?j<=0:g<=0,N=Math.max(1,g??Math.ceil(j/(A>0?A:10))),P=Math.min(Math.max(1,Number(h)||1),N),F=A>0&&!!b&&C!==!1;if(M||N<=1&&!F)return null;let I=A>0&&!x.includes(A)?[...x,A].sort((e,t)=>e-t):x,L=S===`numbered`,R=L?e(P,N,{siblingCount:w}):null,z=[`table-pagination`,E===`standalone`&&`wui-table-pagination-standalone`,T===`sm`&&`wui-table-pagination-sm`,O].filter(Boolean).join(` `);return/* @__PURE__ */ s(`nav`,{className:z,"aria-label":D,...p,...k,children:[F&&/* @__PURE__ */ o(`span`,{className:`tpg-rows`,children:/* @__PURE__ */ o(r,{compact:!0,"aria-label":`Rows per page`,value:String(A),onChange:e=>b(Number(e)),options:I.map(e=>({value:String(e),label:`${e} per page`}))})}),!L&&/* @__PURE__ */ s(`span`,{className:`tpg-range`,children:[`Page `,P,` of `,N]}),/* @__PURE__ */ s(`div`,{className:`tpg-nav`,children:[/* @__PURE__ */ o(`button`,{type:`button`,className:`tpg-arrow`,onClick:()=>y?.(Math.max(1,P-1)),disabled:P<=1,"aria-label":`Previous page`,children:/* @__PURE__ */ o(n,{name:`arrow-left`,size:18})}),L&&R.map(e=>typeof e==`number`?/* @__PURE__ */ o(`button`,{type:`button`,className:`tpg-page${e===P?` is-active`:``}`,onClick:()=>y?.(e),"aria-current":e===P?`page`:void 0,"aria-label":`Page ${e}`,children:e},e):/* @__PURE__ */ o(`span`,{className:`tpg-ellipsis`,"aria-hidden":`true`,children:`…`},e)),/* @__PURE__ */ o(`button`,{type:`button`,className:`tpg-arrow`,onClick:()=>y?.(Math.min(N,P+1)),disabled:P>=N,"aria-label":`Next page`,children:/* @__PURE__ */ o(n,{name:`arrow-right`,size:18})})]})]})}export{f as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./AppButton.js";import{formatNumber as r}from"@webority/ui-elements/helpers";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o(o){let{marker:s,props:c}=e(`AppTableToolbar`,o),{filters:l,actions:u,selectedCount:d=0,bulkActions:f,onClearSelection:p,totalCount:m,pageCount:h,onSelectAllMatching:g,allMatchingSelected:_=!1,className:v=``,...y}=c;t(`AppTableToolbar`,y);let b=d>0,x=typeof g==`function`&&typeof m==`number`,S=x&&_,C=e=>r(e,{decimals:0}),w=x&&!S&&b&&d>=(h??1)&&m>(h??d);return a(`div`,{className:`wui-table-toolbar${v?` ${v}`:``}`,...s,...y,children:[a(`div`,{className:`wui-table-toolbar-main`,hidden:b,children:[i(`div`,{className:`wui-table-toolbar-filters`,children:l}),i(`div`,{className:`wui-table-toolbar-actions`,children:u})]}),a(`div`,{className:`wui-table-toolbar-bulk`,hidden:!b,children:[a(`span`,{className:`wui-table-toolbar-count`,"aria-live":`polite`,children:[S?`All ${C(m)}`:C(d),` selected`]}),x&&a(`button`,{type:`button`,className:`btn btn-link btn-sm wui-table-toolbar-all`,hidden:!w,onClick:g,children:[`Select all `,C(m),` matching`]}),f,p&&i(n,{variant:`ghost`,size:`sm`,className:`wui-table-toolbar-clear`,onClick:p,children:S?`Clear selection`:`Clear`})]})]})}export{o as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppButton.js";import n from"./warnUnknownProps.js";import{formatNumber as r}from"@webority/ui-elements/helpers";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o(o){let{marker:s,props:c}=e(`AppTableToolbar`,o),{filters:l,actions:u,selectedCount:d=0,bulkActions:f,onClearSelection:p,totalCount:m,pageCount:h,onSelectAllMatching:g,allMatchingSelected:_=!1,className:v=``,...y}=c;n(`AppTableToolbar`,y);let b=d>0,x=typeof g==`function`&&typeof m==`number`,S=x&&_,C=e=>r(e,{decimals:0}),w=x&&!S&&b&&d>=(h??1)&&m>(h??d);return/* @__PURE__ */ a(`div`,{className:`wui-table-toolbar${v?` ${v}`:``}`,...s,...y,children:[/* @__PURE__ */ a(`div`,{className:`wui-table-toolbar-main`,hidden:b,children:[/* @__PURE__ */ i(`div`,{className:`wui-table-toolbar-filters`,children:l}),/* @__PURE__ */ i(`div`,{className:`wui-table-toolbar-actions`,children:u})]}),/* @__PURE__ */ a(`div`,{className:`wui-table-toolbar-bulk`,hidden:!b,children:[/* @__PURE__ */ a(`span`,{className:`wui-table-toolbar-count`,"aria-live":`polite`,children:[S?`All ${C(m)}`:C(d),` selected`]}),x&&/* @__PURE__ */ a(`button`,{type:`button`,className:`btn btn-link btn-sm wui-table-toolbar-all`,hidden:!w,onClick:g,children:[`Select all `,C(m),` matching`]}),f,p&&/* @__PURE__ */ i(t,{variant:`ghost`,size:`sm`,className:`wui-table-toolbar-clear`,onClick:p,children:S?`Clear selection`:`Clear`})]})]})}export{o as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppTooltip.js";import i from"./AppIcon.js";import a from"./renderIconProp.js";import{formatNumber as o}from"@webority/ui-elements/helpers";import{cloneElement as s,useCallback as c,useEffect as l,useLayoutEffect as u,useRef as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";import"@webority/ui-elements/elements/overflow";var ee=[`underline`,`pills`],te=[`horizontal`,`vertical`],ne=[`sm`,`md`,`lg`],re=[`automatic`,`manual`],g=[`scroll`,`menu`],_=[`success`,`warning`,`danger`,`info`],v=1,y=28,ie=.7;function b(b){let{marker:x,props:S}=e(`AppTabs`,b),{tabs:C,value:w,onChange:T,linkComponent:E,variant:D=`underline`,orientation:O=`horizontal`,size:k=`md`,fitted:A=!1,overflow:j=`scroll`,moreLabel:M=`More`,maxVisible:ae,activation:N=`automatic`,ariaLabel:oe,className:se=``,style:P,...F}=S;n(`AppTabs`,F),t(`AppTabs`,`variant`,D,ee),t(`AppTabs`,`orientation`,O,te),t(`AppTabs`,`size`,k,ne),t(`AppTabs`,`activation`,N,re),t(`AppTabs`,`overflow`,j,g);for(let e of C)t(`AppTabs`,`tabs[].tone`,e.tone,_);let I=d(null),L=d(null),R=O===`vertical`,z=(j===`menu`||ae!=null)&&!R,[B,V]=f(w);l(()=>{V(w)},[w]);let H=C.find(e=>!e.disabled)?.key,U=C.some(e=>e.key===B&&!e.disabled)?B:void 0,W=C.some(e=>e.key===w&&!e.disabled)?w:void 0,G=U??W??H,K=e=>{I.current?.querySelector(`[data-key="${CSS.escape(String(e))}"]`)?.focus()},q=c(()=>{let e=I.current,t=L.current;if(!e||!t||R||z)return;let n=e.scrollWidth-e.clientWidth;t.classList.toggle(`is-overflow-start`,e.scrollLeft>v),t.classList.toggle(`is-overflow-end`,n>v&&e.scrollLeft<n-v)},[R,z]),J=c(()=>{let e=I.current;if(!e)return;let t=e.querySelector(`.app-tab.active`);t?(R?(e.style.setProperty(`--wui-tab-y`,`${t.offsetTop}px`),e.style.setProperty(`--wui-tab-h`,`${t.offsetHeight}px`)):(e.style.setProperty(`--wui-tab-x`,`${t.offsetLeft}px`),e.style.setProperty(`--wui-tab-w`,`${t.offsetWidth}px`)),e.toggleAttribute(`data-active-danger`,!!C.find(e=>e.key===w)?.danger)):e.style.setProperty(R?`--wui-tab-h`:`--wui-tab-w`,`0px`),e.setAttribute(`data-wui-tabs`,``),q()},[R,C,w,q]),Y=e=>!z||!I.current?.querySelector(`[data-key="${CSS.escape(String(e))}"][data-wui-overflow-hidden]`),X=c(()=>{let e=I.current;if(!e||R)return;let t=e.querySelector(`.app-tab.active`);if(!t)return;let n=y,r=t.offsetLeft,i=r+t.offsetWidth;r-n<e.scrollLeft?e.scrollLeft=Math.max(0,r-n):i+n>e.scrollLeft+e.clientWidth&&(e.scrollLeft=i+n-e.clientWidth)},[R]);u(()=>{J()},[J]),u(()=>{X()},[w,X]);let Z=d(J);l(()=>{Z.current=J},[J]),l(()=>{if(!document.fonts)return;let e=!0;return document.fonts.ready.then(()=>{e&&Z.current()}),()=>{e=!1}},[]),l(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>Z.current());return I.current&&e.observe(I.current),L.current&&e.observe(L.current),()=>e.disconnect()},[R,z]),l(()=>{let e=L.current;if(!z||!e)return;let t=()=>Z.current();return e.addEventListener(`wui-overflow-change`,t),()=>e.removeEventListener(`wui-overflow-change`,t)},[z]);function ce(e){let t=e.target?.dataset?.key;if(t==null)return;let n=C.findIndex(e=>e.key===t);if(n<0)return;let r=C.length,i=(e,t)=>{for(let n=1;n<=r;n++){let i=C[((e+t*n)%r+r)%r];if(!i.disabled&&Y(i.key))return i}return null},a=R?`ArrowDown`:`ArrowRight`,o=R?`ArrowUp`:`ArrowLeft`,s=null;if(e.key===a?s=i(n,1):e.key===o?s=i(n,-1):e.key===`Home`?s=C.find(e=>!e.disabled&&Y(e.key))??null:e.key===`End`&&(s=[...C].reverse().find(e=>!e.disabled&&Y(e.key))??null),!s)return;e.preventDefault(),V(s.key),K(s.key);let c=s.href!=null||s.to!=null;N===`automatic`&&!c&&T?.(s.key)}let Q=e=>{let t=I.current;t&&t.scrollBy({left:e*t.clientWidth*ie})},le=[`app-tabs`,D===`pills`?`app-tabs-pills`:``,R?`app-tabs-vertical`:``,k===`sm`?`app-tabs-sm`:``,k===`lg`?`app-tabs-lg`:``,A?`app-tabs-fitted`:``,se].filter(Boolean).join(` `),$=h(`div`,{ref:I,role:`tablist`,"aria-orientation":R?`vertical`:void 0,"aria-label":oe,className:le,style:P,"data-wui-overflow-list":z?``:void 0,...F,onKeyDown:ce,onScroll:q,children:[C.map(e=>{let t=e.key===w,n=e.href!=null||e.to!=null,i={role:`tab`,"data-key":e.key,"aria-selected":t,tabIndex:e.key===G?0:-1,className:`app-tab${t?` active`:``}${e.danger?` danger`:``}${n&&e.disabled?` disabled`:``}`},s=h(p,{children:[e.image?m(`img`,{className:`app-tab-img`,src:e.image,alt:e.imageAlt??``}):a(e.icon,{size:16,className:`app-tab-icon`}),m(`span`,{className:`wui-tab-label`,children:e.label}),(e.countLabel||e.count!=null)&&m(`span`,{className:`app-tab-count${e.tone?` ${e.tone}`:``}`,children:e.countLabel||o(e.count,{decimals:0})})]}),c;if(n){let t=e.to!=null&&E?E:`a`,n=e.rel??(e.target===`_blank`?`noopener noreferrer`:void 0),r=e.disabled?{"aria-disabled":!0}:t===`a`?{href:e.href??e.to,target:e.target,rel:n}:{to:e.to,target:e.target,rel:n},a=t=>{if(e.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(V(e.key),T?.(e.key))};c=m(t,{...i,...r,onClick:a,children:s},e.key)}else c=m(`button`,{type:`button`,...i,disabled:e.disabled,onClick:()=>{e.disabled||(V(e.key),T?.(e.key))},children:s},e.key);return e.tooltip?m(r,{content:e.tooltip,children:c},e.key):c}),m(`span`,{className:`app-tab-indicator`,"aria-hidden":`true`,"data-wui-overflow-skip":``})]});return R?s($,x):z?m(`wui-overflow`,{...x,ref:L,class:`app-tabs-wrap`,label:M,children:$}):h(`div`,{...x,ref:L,className:`app-tabs-wrap`,children:[m(`button`,{type:`button`,className:`app-tabs-scroll-btn prev`,"aria-label":`Scroll tabs backward`,tabIndex:-1,onClick:()=>Q(-1),children:m(i,{name:`chevron-left`,size:16})}),$,m(`button`,{type:`button`,className:`app-tabs-scroll-btn next`,"aria-label":`Scroll tabs forward`,tabIndex:-1,onClick:()=>Q(1),children:m(i,{name:`chevron-right`,size:16})})]})}export{b as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./AppTooltip.js";import r from"./renderIconProp.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import{formatNumber as o}from"@webority/ui-elements/helpers";import{cloneElement as s,useCallback as c,useEffect as l,useLayoutEffect as u,useRef as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";import"@webority/ui-elements/elements/overflow";var g=[`underline`,`pills`],ee=[`horizontal`,`vertical`],te=[`sm`,`md`,`lg`],ne=[`automatic`,`manual`],re=[`scroll`,`menu`],_=[`success`,`warning`,`danger`,`info`],v=1,y=28,b=.7;function x(x){let{marker:S,props:ie}=e(`AppTabs`,x),{tabs:C,value:w,onChange:T,linkComponent:E,variant:D=`underline`,orientation:O=`horizontal`,size:k=`md`,fitted:A=!1,overflow:j=`scroll`,moreLabel:M=`More`,maxVisible:ae,activation:N=`automatic`,ariaLabel:P,className:oe=``,style:F,...I}=ie;a(`AppTabs`,I),i(`AppTabs`,`variant`,D,g),i(`AppTabs`,`orientation`,O,ee),i(`AppTabs`,`size`,k,te),i(`AppTabs`,`activation`,N,ne),i(`AppTabs`,`overflow`,j,re);for(let e of C)i(`AppTabs`,`tabs[].tone`,e.tone,_);let L=d(null),R=d(null),z=O===`vertical`,B=(j===`menu`||ae!=null)&&!z,[V,H]=f(w);l(()=>{H(w)},[w]);let U=C.find(e=>!e.disabled)?.key,W=C.some(e=>e.key===V&&!e.disabled)?V:void 0,G=C.some(e=>e.key===w&&!e.disabled)?w:void 0,K=W??G??U,se=e=>{L.current?.querySelector(`[data-key="${CSS.escape(String(e))}"]`)?.focus()},q=c(()=>{let e=L.current,t=R.current;if(!e||!t||z||B)return;let n=e.scrollWidth-e.clientWidth;t.classList.toggle(`is-overflow-start`,e.scrollLeft>v),t.classList.toggle(`is-overflow-end`,n>v&&e.scrollLeft<n-v)},[z,B]),J=c(()=>{let e=L.current;if(!e)return;let t=e.querySelector(`.app-tab.active`);t?(z?(e.style.setProperty(`--wui-tab-y`,`${t.offsetTop}px`),e.style.setProperty(`--wui-tab-h`,`${t.offsetHeight}px`)):(e.style.setProperty(`--wui-tab-x`,`${t.offsetLeft}px`),e.style.setProperty(`--wui-tab-w`,`${t.offsetWidth}px`)),e.toggleAttribute(`data-active-danger`,!!C.find(e=>e.key===w)?.danger)):e.style.setProperty(z?`--wui-tab-h`:`--wui-tab-w`,`0px`),e.setAttribute(`data-wui-tabs`,``),q()},[z,C,w,q]),Y=e=>!B||!L.current?.querySelector(`[data-key="${CSS.escape(String(e))}"][data-wui-overflow-hidden]`),X=c(()=>{let e=L.current;if(!e||z)return;let t=e.querySelector(`.app-tab.active`);if(!t)return;let n=y,r=t.offsetLeft,i=r+t.offsetWidth;r-n<e.scrollLeft?e.scrollLeft=Math.max(0,r-n):i+n>e.scrollLeft+e.clientWidth&&(e.scrollLeft=i+n-e.clientWidth)},[z]);u(()=>{J()},[J]),u(()=>{X()},[w,X]);let Z=d(J);l(()=>{Z.current=J},[J]),l(()=>{if(!document.fonts)return;let e=!0;return document.fonts.ready.then(()=>{e&&Z.current()}),()=>{e=!1}},[]),l(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>Z.current());return L.current&&e.observe(L.current),R.current&&e.observe(R.current),()=>e.disconnect()},[z,B]),l(()=>{let e=R.current;if(!B||!e)return;let t=()=>Z.current();return e.addEventListener(`wui-overflow-change`,t),()=>e.removeEventListener(`wui-overflow-change`,t)},[B]);function ce(e){let t=e.target?.dataset?.key;if(t==null)return;let n=C.findIndex(e=>e.key===t);if(n<0)return;let r=C.length,i=(e,t)=>{for(let n=1;n<=r;n++){let i=C[((e+t*n)%r+r)%r];if(!i.disabled&&Y(i.key))return i}return null},a=z?`ArrowDown`:`ArrowRight`,o=z?`ArrowUp`:`ArrowLeft`,s=null;if(e.key===a?s=i(n,1):e.key===o?s=i(n,-1):e.key===`Home`?s=C.find(e=>!e.disabled&&Y(e.key))??null:e.key===`End`&&(s=[...C].reverse().find(e=>!e.disabled&&Y(e.key))??null),!s)return;e.preventDefault(),H(s.key),se(s.key);let c=s.href!=null||s.to!=null;N===`automatic`&&!c&&T?.(s.key)}let Q=e=>{let t=L.current;t&&t.scrollBy({left:e*t.clientWidth*b})},le=[`app-tabs`,D===`pills`?`app-tabs-pills`:``,z?`app-tabs-vertical`:``,k===`sm`?`app-tabs-sm`:``,k===`lg`?`app-tabs-lg`:``,A?`app-tabs-fitted`:``,oe].filter(Boolean).join(` `),$=/* @__PURE__ */ h(`div`,{ref:L,role:`tablist`,"aria-orientation":z?`vertical`:void 0,"aria-label":P,className:le,style:F,"data-wui-overflow-list":B?``:void 0,...I,onKeyDown:ce,onScroll:q,children:[C.map(e=>{let t=e.key===w,i=e.href!=null||e.to!=null,a={role:`tab`,"data-key":e.key,"aria-selected":t,tabIndex:e.key===K?0:-1,className:`app-tab${t?` active`:``}${e.danger?` danger`:``}${i&&e.disabled?` disabled`:``}`},s=/* @__PURE__ */ h(p,{children:[e.image?/* @__PURE__ */ m(`img`,{className:`app-tab-img`,src:e.image,alt:e.imageAlt??``}):r(e.icon,{size:16,className:`app-tab-icon`}),/* @__PURE__ */ m(`span`,{className:`wui-tab-label`,children:e.label}),(e.countLabel||e.count!=null)&&/* @__PURE__ */ m(`span`,{className:`app-tab-count${e.tone?` ${e.tone}`:``}`,children:e.countLabel||o(e.count,{decimals:0})})]}),c;if(i){let t=e.to!=null&&E?E:`a`,n=e.rel??(e.target===`_blank`?`noopener noreferrer`:void 0),r=e.disabled?{"aria-disabled":!0}:t===`a`?{href:e.href??e.to,target:e.target,rel:n}:{to:e.to,target:e.target,rel:n},i=t=>{e.disabled?t.preventDefault():t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(H(e.key),T?.(e.key))};c=/* @__PURE__ */ m(t,{...a,...r,onClick:i,children:s},e.key)}else c=/* @__PURE__ */ m(`button`,{type:`button`,...a,disabled:e.disabled,onClick:()=>{e.disabled||(H(e.key),T?.(e.key))},children:s},e.key);return e.tooltip?/* @__PURE__ */ m(n,{content:e.tooltip,children:c},e.key):c}),/* @__PURE__ */ m(`span`,{className:`app-tab-indicator`,"aria-hidden":`true`,"data-wui-overflow-skip":``})]});return z?s($,S):B?/* @__PURE__ */ m(`wui-overflow`,{...S,ref:R,class:`app-tabs-wrap`,label:M,children:$}):/* @__PURE__ */ h(`div`,{...S,ref:R,className:`app-tabs-wrap`,children:[/* @__PURE__ */ m(`button`,{type:`button`,className:`app-tabs-scroll-btn prev`,"aria-label":`Scroll tabs backward`,tabIndex:-1,onClick:()=>Q(-1),children:/* @__PURE__ */ m(t,{name:`chevron-left`,size:16})}),$,/* @__PURE__ */ m(`button`,{type:`button`,className:`app-tabs-scroll-btn next`,"aria-label":`Scroll tabs forward`,tabIndex:-1,onClick:()=>Q(1),children:/* @__PURE__ */ m(t,{name:`chevron-right`,size:16})})]})}export{x as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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 o,{readValues as s,writeValues as c}from"./useWuiControl.js";import{forwardRef as l,useId as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import"@webority/ui-elements/elements/taginput";var p=[`sm`,`lg`],m=l(function(l,m){let{marker:h,props:g}=e(`AppTagInput`,l),{values:_,onChange:v,placeholder:y=`Add…`,name:b,label:x,error:S,hint:C,required:w=!1,optional:T=!1,size:E,maxTags:D,allowDuplicates:O=!1,disabled:k=!1,id:A,ariaLabel:j,className:M=``,fieldClassName:N=``,help:P,helpLabel:F=`More information`,...I}=g;n(`AppTagInput`,I),t(`AppTagInput`,`size`,E,p);let L=u(),R=A||L,{setRef:z}=o({ref:m,value:_,onChange:v,readValue:s,writeValue:c});return f(`div`,{...h,className:`field${N?` ${N}`:``}`,children:[x&&f(`label`,{className:`label`,htmlFor:R,children:[x,T&&!w&&d(`span`,{className:`label-optional`,children:` (optional)`}),w&&d(a,{}),P&&d(i,{label:F,children:P})]}),d(`wui-taginput`,{"aria-label":j||(typeof x==`string`?x:void 0),"aria-describedby":S?`${R}-error`:C?`${R}-hint`:void 0,"aria-invalid":S?`true`:void 0,id:R,ref:z,name:b,placeholder:y,size:E||void 0,"max-tags":D===void 0?void 0:String(D),"allow-duplicates":O?``:void 0,disabled:k?``:void 0,required:w?``:void 0,className:M||void 0,...I}),d(r,{error:S,hint:C,errorId:`${R}-error`,hintId:`${R}-hint`})]})});export{m as default};
1
+ import e from"../lib/FieldMessage.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppInfoTip.js";import r from"./AppRequiredMark.js";import i,{readValues as a,writeValues as o}from"./useWuiControl.js";import s from"./warnInvalidValue.js";import c from"./warnUnknownProps.js";import{forwardRef as l,useId as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import"@webority/ui-elements/elements/taginput";var p=[`sm`,`lg`],m=l(function(l,m){let{marker:h,props:g}=t(`AppTagInput`,l),{values:_,onChange:v,placeholder:y=`Add…`,name:b,label:x,error:S,hint:C,required:w=!1,optional:T=!1,size:E,maxTags:D,allowDuplicates:O=!1,disabled:k=!1,id:A,ariaLabel:j,className:M=``,fieldClassName:N=``,help:P,helpLabel:F=`More information`,...I}=g;c(`AppTagInput`,I),s(`AppTagInput`,`size`,E,p);let L=u(),R=A||L,{setRef:z}=i({ref:m,value:_,onChange:v,readValue:a,writeValue:o});return/* @__PURE__ */ f(`div`,{...h,className:`field${N?` ${N}`:``}`,children:[x&&/* @__PURE__ */ f(`label`,{className:`label`,htmlFor:R,children:[x,T&&!w&&/* @__PURE__ */ d(`span`,{className:`label-optional`,children:` (optional)`}),w&&/* @__PURE__ */ d(r,{}),P&&/* @__PURE__ */ d(n,{label:F,children:P})]}),/* @__PURE__ */ d(`wui-taginput`,{"aria-label":j||(typeof x==`string`?x:void 0),"aria-describedby":S?`${R}-error`:C?`${R}-hint`:void 0,"aria-invalid":S?`true`:void 0,id:R,ref:z,name:b,placeholder:y,size:E||void 0,"max-tags":D===void 0?void 0:String(D),"allow-duplicates":O?``:void 0,disabled:k?``:void 0,required:w?``:void 0,className:M||void 0,...I}),/* @__PURE__ */ d(e,{error:S,hint:C,errorId:`${R}-error`,hintId:`${R}-hint`})]})});export{m as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import{devWarn as t}from"../lib/devWarn.js";import n from"./warnUnknownProps.js";import r from"../lib/FieldMessage.js";import i from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import{forwardRef as o,useCallback as s,useEffect as c,useId as l,useLayoutEffect as u,useRef as d,useState as f}from"react";import{Form as p}from"react-bootstrap";import{jsx as m,jsxs as h}from"react/jsx-runtime";var g=o(function(o,g){let{marker:_,props:v}=e(`AppTextarea`,o),{label:y,required:b=!1,optional:x=!1,error:S,hint:C,help:w,helpLabel:T=`More information`,id:E,name:D,rows:O=4,autoGrow:k=!1,showCount:A=!1,maxLength:j,disabled:M=!1,readOnly:N=!1,className:P=``,fieldClassName:F=``,...I}=v;n(`AppTextarea`,I),c(()=>{x&&b&&typeof process<`u`&&process.env.NODE_ENV!==`production`&&t(`AppTextarea: optional and required together; optional ignored`)},[x,b]);let L=l(),R=E||L,z=[`textarea`,k?`autosize`:``,S?`error`:``,P].filter(Boolean).join(` `),B=S&&R?`${R}-error`:void 0,V=C&&R?`${R}-hint`:void 0,H=B||V,U=d(null),W=e=>{U.current=e,typeof g==`function`?g(e):g&&(g.current=e)},G=s(()=>{let e=U.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},[]);u(()=>{k&&G()},[k,G,I.value]);let[K,q]=f(()=>String(I.value??I.defaultValue??``).length);c(()=>{!A||I.value===void 0||q(String(I.value??``).length)},[I.value,A]);let J=e=>{k&&G(),A&&q(e.target.value.length),I.onInput?.(e)};return h(p.Group,{..._,className:`field${F?` ${F}`:``}`,children:[y&&h(p.Label,{className:`label`,htmlFor:R,children:[y,x&&!b&&m(`span`,{className:`label-optional`,children:` (optional)`}),b&&m(a,{}),w&&m(i,{label:T,children:w})]}),m(p.Control,{as:`textarea`,id:R,name:D,rows:O,className:z,"aria-invalid":S?`true`:`false`,"aria-describedby":H,required:b,maxLength:j,disabled:M,readOnly:N,...I,ref:W,onInput:J}),m(r,{error:S,hint:C,errorId:B,hintId:V}),A&&h(`div`,{className:`field-count${j&&K>=j?` at-limit`:``}`,children:[K,j?` / ${j}`:``]})]})});export{g as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import t from"../lib/FieldMessage.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./warnUnknownProps.js";import{forwardRef as o,useCallback as s,useEffect as c,useId as l,useLayoutEffect as u,useRef as d,useState as f}from"react";import{Form as p}from"react-bootstrap";import{jsx as m,jsxs as h}from"react/jsx-runtime";var g=o(function(o,g){let{marker:_,props:v}=n(`AppTextarea`,o),{label:y,required:b=!1,optional:x=!1,error:S,hint:C,help:w,helpLabel:T=`More information`,id:E,name:D,rows:O=4,autoGrow:k=!1,showCount:A=!1,maxLength:j,disabled:M=!1,readOnly:N=!1,className:P=``,fieldClassName:F=``,...I}=v;a(`AppTextarea`,I),c(()=>{x&&b&&typeof process<`u`&&process.env.NODE_ENV!==`production`&&e(`AppTextarea: optional and required together; optional ignored`)},[x,b]);let L=l(),R=E||L,z=[`textarea`,k?`autosize`:``,S?`error`:``,P].filter(Boolean).join(` `),B=S&&R?`${R}-error`:void 0,V=C&&R?`${R}-hint`:void 0,H=B||V,U=d(null),W=e=>{U.current=e,typeof g==`function`?g(e):g&&(g.current=e)},G=s(()=>{let e=U.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},[]);u(()=>{k&&G()},[k,G,I.value]);let[K,q]=f(()=>String(I.value??I.defaultValue??``).length);c(()=>{A&&I.value!==void 0&&q(String(I.value??``).length)},[I.value,A]);let J=e=>{k&&G(),A&&q(e.target.value.length),I.onInput?.(e)};return/* @__PURE__ */ h(p.Group,{..._,className:`field${F?` ${F}`:``}`,children:[y&&/* @__PURE__ */ h(p.Label,{className:`label`,htmlFor:R,children:[y,x&&!b&&/* @__PURE__ */ m(`span`,{className:`label-optional`,children:` (optional)`}),b&&/* @__PURE__ */ m(i,{}),w&&/* @__PURE__ */ m(r,{label:T,children:w})]}),/* @__PURE__ */ m(p.Control,{as:`textarea`,id:R,name:D,rows:O,className:z,"aria-invalid":S?`true`:`false`,"aria-describedby":H,required:b,maxLength:j,disabled:M,readOnly:N,...I,ref:W,onInput:J}),/* @__PURE__ */ m(t,{error:S,hint:C,errorId:B,hintId:V}),A&&/* @__PURE__ */ h(`div`,{className:`field-count${j&&K>=j?` at-limit`:``}`,children:[K,j?` / ${j}`:``]})]})});export{g as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppActionIcon.js";import i from"./AppSegmented.js";import{DEFAULT_THEME_EFFECT as a,DEFAULT_THEME_STORAGE_KEY as o,THEME_CHANGE_EVENT as s,THEME_EFFECTS as c,THEME_MODES as l,applyTheme as u,nextTheme as d,readStoredTheme as f,resolveTheme as p,storeTheme as m,transitionTheme as h,watchSystemTheme as g}from"@webority/ui-elements/helpers";import{useCallback as _,useEffect as v,useId as y,useState as b}from"react";import{jsx as x}from"react/jsx-runtime";import{flushSync as S}from"react-dom";var C={light:`sun`,dark:`moon`,auto:`monitor`},w={light:`light`,dark:`dark`,auto:`follows your device`},T=[`icon`,`segmented`],E={sm:16,md:20,lg:24,xl:28};function D(D){let{marker:O,props:k}=e(`AppThemeToggle`,D),{variant:A=`icon`,effect:j=a,includeAuto:M=!0,storageKey:N=o,duration:P,label:F=`Theme`,lightLabel:I=`Light`,darkLabel:L=`Dark`,autoLabel:R=`System`,name:z,size:B=`md`,tooltipPlacement:V=`auto`,onChange:H,className:U=``,...W}=k;n(`AppThemeToggle`,W),t(`AppThemeToggle`,`variant`,A,T),t(`AppThemeToggle`,`effect`,j,c),t(`AppThemeToggle`,`size`,B,Object.keys(E));let G=_(e=>e===`auto`&&!M?p(e):e,[M]),[K,q]=b(()=>G(typeof window>`u`?`auto`:f(N))),J=y(),Y=z||J;v(()=>{let e=document.documentElement.getAttribute(`data-theme`);l.includes(e)?q(G(e)):u(f(N))},[]),v(()=>{let e=e=>{let t=e.detail?.preference;l.includes(t)&&q(G(t))};return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[G]),v(()=>g(()=>{document.documentElement.getAttribute(`data-theme`)===`auto`&&u(`auto`)}),[]);let X=_((e,t)=>{let n=t?.getBoundingClientRect?.()??{left:0,top:0,width:0,height:0},r={x:n.left+n.width/2,y:n.top+n.height/2};h(()=>{u(e),m(e,N),S(()=>q(e)),H?.(e)},{effect:j,to:p(e),origin:r,duration:P})},[N,j,P,H]);if(A===`segmented`){let e=[{value:`light`,label:I,icon:C.light},{value:`dark`,label:L,icon:C.dark}];return M&&e.push({value:`auto`,label:R,icon:C.auto}),x(i,{...O,options:e,value:K,name:Y,label:F,size:B===`xl`?`lg`:B,className:[`wui-theme-toggle`,`wui-theme-toggle-segmented`,U].filter(Boolean).join(` `),onChange:e=>{if(e===K)return;let t=document.querySelector(`.segmented-input[name="${CSS.escape(Y)}"][value="${e}"]`);X(e,t?.closest(`.segmented-option`)??t)}})}return x(r,{...O,icon:C[K],label:`${F}: ${w[K]}`,size:E[B]??E.md,tooltipPlacement:V,onClick:e=>X(d(K,{includeAuto:M}),e.currentTarget),className:[`wui-theme-toggle`,U].filter(Boolean).join(` `)})}export{D as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppActionIcon.js";import n from"./AppSegmented.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.js";import{DEFAULT_THEME_EFFECT as a,DEFAULT_THEME_STORAGE_KEY as o,THEME_CHANGE_EVENT as s,THEME_EFFECTS as c,THEME_MODES as l,applyTheme as u,nextTheme as d,readStoredTheme as f,resolveTheme as p,storeTheme as m,transitionTheme as h,watchSystemTheme as g}from"@webority/ui-elements/helpers";import{useCallback as _,useEffect as v,useId as y,useState as b}from"react";import{jsx as x}from"react/jsx-runtime";import{flushSync as S}from"react-dom";var C={light:`sun`,dark:`moon`,auto:`monitor`},w={light:`light`,dark:`dark`,auto:`follows your device`},T=[`icon`,`segmented`],E={sm:16,md:20,lg:24,xl:28};function D(D){let{marker:O,props:k}=e(`AppThemeToggle`,D),{variant:A=`icon`,effect:j=a,includeAuto:M=!0,storageKey:N=o,duration:P,label:F=`Theme`,lightLabel:I=`Light`,darkLabel:L=`Dark`,autoLabel:R=`System`,name:z,size:B=`md`,tooltipPlacement:V=`auto`,onChange:H,className:U=``,...W}=k;i(`AppThemeToggle`,W),r(`AppThemeToggle`,`variant`,A,T),r(`AppThemeToggle`,`effect`,j,c),r(`AppThemeToggle`,`size`,B,Object.keys(E));let G=_(e=>e===`auto`&&!M?p(e):e,[M]),[K,q]=b(()=>G(typeof window>`u`?`auto`:f(N))),J=y(),Y=z||J;v(()=>{let e=document.documentElement.getAttribute(`data-theme`);l.includes(e)?q(G(e)):u(f(N))},[]),v(()=>{let e=e=>{let t=e.detail?.preference;l.includes(t)&&q(G(t))};return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[G]),v(()=>g(()=>{document.documentElement.getAttribute(`data-theme`)===`auto`&&u(`auto`)}),[]);let X=_((e,t)=>{let n=t?.getBoundingClientRect?.()??{left:0,top:0,width:0,height:0},r={x:n.left+n.width/2,y:n.top+n.height/2};h(()=>{u(e),m(e,N),S(()=>q(e)),H?.(e)},{effect:j,to:p(e),origin:r,duration:P})},[N,j,P,H]);if(A===`segmented`){let e=[{value:`light`,label:I,icon:C.light},{value:`dark`,label:L,icon:C.dark}];return M&&e.push({value:`auto`,label:R,icon:C.auto}),/* @__PURE__ */ x(n,{...O,options:e,value:K,name:Y,label:F,size:B===`xl`?`lg`:B,className:[`wui-theme-toggle`,`wui-theme-toggle-segmented`,U].filter(Boolean).join(` `),onChange:e=>{if(e===K)return;let t=document.querySelector(`.segmented-input[name="${CSS.escape(Y)}"][value="${e}"]`);X(e,t?.closest(`.segmented-option`)??t)}})}return/* @__PURE__ */ x(t,{...O,icon:C[K],label:`${F}: ${w[K]}`,size:E[B]??E.md,tooltipPlacement:V,onClick:e=>X(d(K,{includeAuto:M}),e.currentTarget),className:[`wui-theme-toggle`,U].filter(Boolean).join(` `)})}export{D as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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 o from"./useWuiControl.js";import{cloneElement as s,forwardRef as c,useId as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import"@webority/ui-elements/elements/timepicker";var f=[`sm`,`md`,`lg`],p=[`12`,`24`],m=c(function(c,m){let{marker:h,props:g}=e(`AppTimePicker`,c),{value:_,onChange:v,label:y,required:b=!1,optional:x=!1,hint:S,error:C,help:w,helpLabel:T=`More information`,name:E,min:D,max:O,step:k,format:A=24,placeholder:j=`Select time`,disabled:M,size:N,id:P,ariaLabel:F,className:I=``,fieldClassName:L=``,...R}=g;n(`AppTimePicker`,R),t(`AppTimePicker`,`size`,N,f);let z=String(A);t(`AppTimePicker`,`format`,z,p);let B=l(),V=P||E||B,{setRef:H}=o({ref:m,value:_??``,onChange:v}),U=!y&&!C&&!S,W=C?`${V}-error`:void 0,G=S?`${V}-hint`:void 0,K=u(`wui-timepicker`,{ref:H,value:_||void 0,id:V,name:E,min:D,max:O,step:k==null?void 0:String(k),format:z,placeholder:j,size:N||void 0,"aria-label":F||(typeof y==`string`?y:void 0),"aria-describedby":W||G,"aria-invalid":C?`true`:void 0,disabled:M?``:void 0,required:b?``:void 0,className:I||void 0,...R});return U?s(K,h):d(`div`,{...h,className:`field${L?` ${L}`:``}`,children:[y&&d(`label`,{className:`label`,htmlFor:V,children:[y,x&&!b&&u(`span`,{className:`label-optional`,children:` (optional)`}),b&&u(a,{}),w&&u(i,{label:T,children:w})]}),K,u(r,{error:C,hint:S,errorId:W,hintId:G})]})});export{m as default};
1
+ import e from"../lib/FieldMessage.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppInfoTip.js";import r from"./AppRequiredMark.js";import i from"./useWuiControl.js";import a from"./warnInvalidValue.js";import o from"./warnUnknownProps.js";import{cloneElement as s,forwardRef as c,useId as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import"@webority/ui-elements/elements/timepicker";var f=[`sm`,`md`,`lg`],p=[`12`,`24`],m=c(function(c,m){let{marker:h,props:g}=t(`AppTimePicker`,c),{value:_,onChange:v,label:y,required:b=!1,optional:x=!1,hint:S,error:C,help:w,helpLabel:T=`More information`,name:E,min:D,max:O,step:k,format:A=24,placeholder:j=`Select time`,disabled:M,size:N,id:P,ariaLabel:F,className:I=``,fieldClassName:L=``,...R}=g;o(`AppTimePicker`,R),a(`AppTimePicker`,`size`,N,f);let z=String(A);a(`AppTimePicker`,`format`,z,p);let B=l(),V=P||E||B,{setRef:H}=i({ref:m,value:_??``,onChange:v}),U=!y&&!C&&!S,W=C?`${V}-error`:void 0,G=S?`${V}-hint`:void 0,K=/* @__PURE__ */ u(`wui-timepicker`,{ref:H,value:_||void 0,id:V,name:E,min:D,max:O,step:k==null?void 0:String(k),format:z,placeholder:j,size:N||void 0,"aria-label":F||(typeof y==`string`?y:void 0),"aria-describedby":W||G,"aria-invalid":C?`true`:void 0,disabled:M?``:void 0,required:b?``:void 0,className:I||void 0,...R});return U?s(K,h):/* @__PURE__ */ d(`div`,{...h,className:`field${L?` ${L}`:``}`,children:[y&&/* @__PURE__ */ d(`label`,{className:`label`,htmlFor:V,children:[y,x&&!b&&/* @__PURE__ */ u(`span`,{className:`label-optional`,children:` (optional)`}),b&&/* @__PURE__ */ u(r,{}),w&&/* @__PURE__ */ u(n,{label:T,children:w})]}),K,/* @__PURE__ */ u(e,{error:C,hint:S,errorId:W,hintId:G})]})});export{m as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=[`feed`,`progress`,`steps`],s=[`vertical`,`horizontal`],c=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],l=[`neutral`,`success`,`warning`,`danger`,`info`],u=[`sm`,`md`,`lg`],d={done:`check`,current:`clock`,"on-hold":`lock`,rejected:`x`,cancelled:`minus`,skipped:`arrow-right`,upcoming:null},f=e=>typeof e==`string`&&(/^https?:[/][/]/i.test(e)||e.startsWith(`/`)&&e[1]!==`/`&&e[1]!==`\\`)&&![...e].some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)===127);function p(e){if(!(e.byHref==null||e.byHref===``)){if(!f(e.byHref))throw Error(`<AppTimeline> items[].byHref must be a path starting with one '/', or an http:// or https:// address, with no spaces.`);if(!e.by)throw Error(`<AppTimeline> items[].byHref links the by name, so the item needs by.`)}}var m=e=>e.byHref?i(`a`,{className:`timeline-by-link`,href:e.byHref,children:e.by}):e.by;function h(f){let{marker:h,props:g}=e(`AppTimeline`,f),{items:_=[],variant:v=`feed`,orientation:y,iconVariant:b,size:x,className:S=``,style:C,...w}=g;n(`AppTimeline`,w),t(`AppTimeline`,`variant`,v,o),t(`AppTimeline`,`orientation`,y,s),t(`AppTimeline`,`iconVariant`,b,c),t(`AppTimeline`,`size`,typeof x==`string`?x:null,u);for(let e of _)t(`AppTimeline`,`items[].tone`,e.tone,l),p(e),v===`progress`&&t(`AppTimeline`,`items[].status`,e.status,Object.keys(d));let T=v===`progress`,E=v===`steps`,D=y===`horizontal`,O=b??(E?`bulk`:void 0),k=typeof x==`string`&&u.includes(x)?x:`md`,A=typeof x==`number`&&x>0?x:void 0,j=!A&&k!==`md`?` wui-timeline--${k}`:``,M=`${E?`timeline wui-timeline--steps${y===`vertical`?` wui-timeline--steps-vertical`:``}`:`timeline${T?` timeline--progress`:``}${D?` timeline--horizontal`:``}`}${j}${S?` ${S}`:``}`,N=E?A?Math.round(A*.43):{sm:19,md:24,lg:31}[k]:A?Math.round(A*.54):T?{sm:10,md:13,lg:17}[k]:{sm:10,md:12,lg:17}[k];return i(`ol`,{className:M,style:A?{...C,"--wui-timeline-dot":`${A}px`}:C,...h,...w,children:_.map((e,t)=>{let n=e.tone&&e.tone!==`neutral`?` ${e.tone}`:``;if(E){let o=e.eyebrow??`Step ${t+1}`;return a(`li`,{className:`timeline-item${n}`,children:[i(`span`,{className:`timeline-dot`,children:e.icon?i(r,{name:e.icon,size:N,variant:O}):null}),a(`div`,{className:`timeline-body`,children:[o!==``&&i(`div`,{className:`wui-timeline-eyebrow`,children:o}),i(`div`,{className:`timeline-title`,children:e.title}),e.description&&i(`div`,{className:`timeline-desc`,children:e.description})]})]},e.key??`${e.at}-${t}`)}let o=T?e.status:void 0,s=o?` is-${o}`:``,c=T?e.icon??(o?d[o]:void 0):e.icon||`circle`;return a(`li`,{className:`timeline-item${s}${n}`,children:[i(`span`,{className:`timeline-dot`,children:c?i(r,{name:c,size:N,variant:O}):null}),a(`div`,{className:`timeline-body`,children:[T?a(`div`,{className:`timeline-head`,children:[i(`div`,{className:`timeline-title`,children:e.title}),(e.at||e.time)&&a(`span`,{className:`timeline-when`,children:[e.at&&i(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&i(`span`,{className:`timeline-time`,children:e.time})]})]}):i(`div`,{className:`timeline-title`,children:e.title}),e.description&&i(`div`,{className:`timeline-desc`,children:e.description}),!T&&(e.at||e.time||e.by)&&a(`div`,{className:`timeline-meta`,children:[(e.at||e.time)&&a(`span`,{className:`timeline-when`,children:[e.at&&i(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&i(`span`,{className:`timeline-time`,children:e.time})]}),e.by&&i(`span`,{className:`timeline-by`,children:m(e)})]}),T&&e.by&&i(`div`,{className:`timeline-meta`,children:i(`span`,{className:`timeline-by`,children:m(e)})}),e.note&&i(`p`,{className:`timeline-note`,children:e.note})]})]},e.key??`${e.at}-${t}`)})})}export{h as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=[`feed`,`progress`,`steps`],s=[`vertical`,`horizontal`],c=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],l=[`neutral`,`success`,`warning`,`danger`,`info`],u=[`sm`,`md`,`lg`],d={done:`check`,current:`clock`,"on-hold":`lock`,rejected:`x`,cancelled:`minus`,skipped:`arrow-right`,upcoming:null},f=e=>typeof e==`string`&&(/^https?:[/][/]/i.test(e)||e.startsWith(`/`)&&e[1]!==`/`&&e[1]!==`\\`)&&![...e].some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)===127);function p(e){if(e.byHref!=null&&e.byHref!==``){if(!f(e.byHref))throw Error(`<AppTimeline> items[].byHref must be a path starting with one '/', or an http:// or https:// address, with no spaces.`);if(!e.by)throw Error(`<AppTimeline> items[].byHref links the by name, so the item needs by.`)}}var m=e=>e.byHref?/* @__PURE__ */ i(`a`,{className:`timeline-by-link`,href:e.byHref,children:e.by}):e.by;function h(f){let{marker:h,props:g}=e(`AppTimeline`,f),{items:_=[],variant:v=`feed`,orientation:y,iconVariant:b,size:x,className:S=``,style:C,...w}=g;r(`AppTimeline`,w),n(`AppTimeline`,`variant`,v,o),n(`AppTimeline`,`orientation`,y,s),n(`AppTimeline`,`iconVariant`,b,c),n(`AppTimeline`,`size`,typeof x==`string`?x:null,u);for(let e of _)n(`AppTimeline`,`items[].tone`,e.tone,l),p(e),v===`progress`&&n(`AppTimeline`,`items[].status`,e.status,Object.keys(d));let T=v===`progress`,E=v===`steps`,D=y===`horizontal`,O=b??(E?`bulk`:void 0),k=typeof x==`string`&&u.includes(x)?x:`md`,A=typeof x==`number`&&x>0?x:void 0,j=!A&&k!==`md`?` wui-timeline--${k}`:``,M=`${E?`timeline wui-timeline--steps${y===`vertical`?` wui-timeline--steps-vertical`:``}`:`timeline${T?` timeline--progress`:``}${D?` timeline--horizontal`:``}`}${j}${S?` ${S}`:``}`,N=E?A?Math.round(A*.43):{sm:19,md:24,lg:31}[k]:A?Math.round(A*.54):T?{sm:10,md:13,lg:17}[k]:{sm:10,md:12,lg:17}[k],P=A?{...C,"--wui-timeline-dot":`${A}px`}:C;return/* @__PURE__ */ i(`ol`,{className:M,style:P,...h,...w,children:_.map((e,n)=>{let r=e.tone&&e.tone!==`neutral`?` ${e.tone}`:``;if(E){let o=e.eyebrow??`Step ${n+1}`;return/* @__PURE__ */ a(`li`,{className:`timeline-item${r}`,children:[/* @__PURE__ */ i(`span`,{className:`timeline-dot`,children:e.icon?/* @__PURE__ */ i(t,{name:e.icon,size:N,variant:O}):null}),/* @__PURE__ */ a(`div`,{className:`timeline-body`,children:[o!==``&&/* @__PURE__ */ i(`div`,{className:`wui-timeline-eyebrow`,children:o}),/* @__PURE__ */ i(`div`,{className:`timeline-title`,children:e.title}),e.description&&/* @__PURE__ */ i(`div`,{className:`timeline-desc`,children:e.description})]})]},e.key??`${e.at}-${n}`)}let o=T?e.status:void 0,s=o?` is-${o}`:``,c=T?e.icon??(o?d[o]:void 0):e.icon||`circle`;return/* @__PURE__ */ a(`li`,{className:`timeline-item${s}${r}`,children:[/* @__PURE__ */ i(`span`,{className:`timeline-dot`,children:c?/* @__PURE__ */ i(t,{name:c,size:N,variant:O}):null}),/* @__PURE__ */ a(`div`,{className:`timeline-body`,children:[T?/* @__PURE__ */ a(`div`,{className:`timeline-head`,children:[/* @__PURE__ */ i(`div`,{className:`timeline-title`,children:e.title}),(e.at||e.time)&&/* @__PURE__ */ a(`span`,{className:`timeline-when`,children:[e.at&&/* @__PURE__ */ i(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&/* @__PURE__ */ i(`span`,{className:`timeline-time`,children:e.time})]})]}):/* @__PURE__ */ i(`div`,{className:`timeline-title`,children:e.title}),e.description&&/* @__PURE__ */ i(`div`,{className:`timeline-desc`,children:e.description}),!T&&(e.at||e.time||e.by)&&/* @__PURE__ */ a(`div`,{className:`timeline-meta`,children:[(e.at||e.time)&&/* @__PURE__ */ a(`span`,{className:`timeline-when`,children:[e.at&&/* @__PURE__ */ i(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&/* @__PURE__ */ i(`span`,{className:`timeline-time`,children:e.time})]}),e.by&&/* @__PURE__ */ i(`span`,{className:`timeline-by`,children:m(e)})]}),T&&e.by&&/* @__PURE__ */ i(`div`,{className:`timeline-meta`,children:/* @__PURE__ */ i(`span`,{className:`timeline-by`,children:m(e)})}),e.note&&/* @__PURE__ */ i(`p`,{className:`timeline-note`,children:e.note})]})]},e.key??`${e.at}-${n}`)})})}export{h as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{adoptToast as i,dismissToast as a,subscribeToasts as o}from"./toastStore.js";import{useEffect as s,useRef as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f={success:{icon:`check-circle`,assertive:!1},info:{icon:`info`,assertive:!1},warning:{icon:`alert-triangle`,assertive:!0},danger:{icon:`alert-circle`,assertive:!0}},p={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-center":`top-50 start-50 translate-middle`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},m=64,h=new Set([`rise`,`organic`,`jelly`,`spring`]),g=new Set([`rounded`,`pill`,`sharp`]),_=new Set([`auto`,`inverse`]);function v(r){let{marker:i,props:a}=e(`AppToast`,r),{position:c=`bottom-end`,maxVisible:f=4,animation:m=`rise`,shape:v=`rounded`,surface:b=`auto`,className:x=``,...S}=a;n(`AppToast`,S),t(`AppToast`,`position`,c,Object.keys(p)),t(`AppToast`,`animation`,m,h),t(`AppToast`,`shape`,v,g),t(`AppToast`,`surface`,b,_);let[C,w]=l([]);s(()=>o(w),[]);let T=Math.max(0,C.length-f),E=T?C.slice(T):C,D=p[c]??p[`bottom-end`];return d(`div`,{...i,...S,className:`wui-toast-container toast-container position-fixed ${D} p-3 ${x}`.trim(),children:[T>0&&d(`div`,{className:`wui-toast-more`,"aria-hidden":`true`,children:[`+`,T,` more`]}),E.map(e=>u(y,{toast:e,defaultAnimation:m,defaultShape:v,defaultSurface:b},e.id))]})}function y({toast:e,defaultAnimation:t=`rise`,defaultShape:n=`rounded`,defaultSurface:o=`auto`}){let p=f[e.variant]??f.success,v=h.has(e.animation)?e.animation:t,y=g.has(e.shape)?e.shape:n,b=_.has(e.surface)?e.surface:o,x=(v!==`rise`&&h.has(v)?` wui-toast--anim-${v}`:``)+(y!==`rounded`&&g.has(y)?` wui-toast--shape-${y}`:``)+(b===`inverse`?` wui-toast--surface-inverse`:``),S=e.duration===0,[C,w]=l(0),[T,E]=l(!1),D=c(null),O=()=>a(e.id),k=c(null);s(()=>{if(e.duration===0)return;i(e.id);let t=k.current,n=t==null?``:getComputedStyle(t).animationName;if(t!=null&&(typeof t.getAnimations==`function`?t.getAnimations().length>0:n!==``&&n!==`none`))return;let r=setTimeout(()=>a(e.id),e.duration);return()=>clearTimeout(r)},[e.id,e.duration]);let A=e=>{e.button!==0||e.target.closest(`button`)||(D.current=e.clientX,E(!0),e.currentTarget.setPointerCapture?.(e.pointerId))},j=e=>{D.current!==null&&w(e.clientX-D.current)},M=()=>{D.current=null,E(!1),w(0)},N=e=>{if(D.current===null)return;let t=e.clientX-D.current;if(Math.abs(t)>m){O();return}M()},P=C?{transform:`translateX(${C}px)`,opacity:Math.max(0,1-Math.abs(C)/200)}:void 0;return d(`div`,{className:`toast show wui-toast wui-toast--${e.variant}${x}${T?` wui-toast--dragging`:``}`,role:p.assertive?`alert`:`status`,"aria-live":p.assertive?`assertive`:`polite`,"aria-atomic":`true`,style:P,onPointerDown:A,onPointerMove:j,onPointerUp:N,onPointerCancel:M,children:[u(`span`,{className:`wui-toast-icon`,"aria-hidden":`true`,children:u(r,{name:p.icon,size:20})}),d(`div`,{className:`wui-toast-content`,children:[e.title&&u(`div`,{className:`wui-toast-title`,children:e.title}),u(`div`,{className:`wui-toast-message`,children:e.message}),typeof e.progress==`number`&&d(`div`,{className:`wui-toast-task`,children:[u(`div`,{className:`wui-toast-track`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.min(100,Math.max(0,Math.round(e.progress))),children:u(`div`,{className:`wui-toast-track-fill`,style:{width:`${Math.min(100,Math.max(0,e.progress))}%`}})}),d(`span`,{className:`wui-toast-track-pct`,"aria-hidden":`true`,children:[Math.min(100,Math.max(0,Math.round(e.progress))),`%`]})]}),e.action&&u(`button`,{type:`button`,className:`wui-toast-action`,onClick:()=>{e.action.onClick?.(),O()},children:e.action.label})]}),u(`button`,{type:`button`,className:`btn-close wui-toast-close`,"aria-label":`Close`,onClick:O}),!S&&u(`div`,{ref:k,className:`wui-toast-progress`,style:{animationDuration:`${e.duration}ms`},onAnimationEnd:O})]})}export{v as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import{adoptToast as n,dismissToast as r,subscribeToasts as i}from"./toastStore.js";import a from"./warnInvalidValue.js";import o from"./warnUnknownProps.js";import{useEffect as s,useRef as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f={success:{icon:`check-circle`,assertive:!1},info:{icon:`info`,assertive:!1},warning:{icon:`alert-triangle`,assertive:!0},danger:{icon:`alert-circle`,assertive:!0}},p={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-center":`top-50 start-50 translate-middle`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},m=64,h=/* @__PURE__ */ new Set([`rise`,`organic`,`jelly`,`spring`]),g=/* @__PURE__ */ new Set([`rounded`,`pill`,`sharp`]),_=/* @__PURE__ */ new Set([`auto`,`inverse`]);function v(t){let{marker:n,props:r}=e(`AppToast`,t),{position:c=`bottom-end`,maxVisible:f=4,animation:m=`rise`,shape:v=`rounded`,surface:b=`auto`,className:x=``,...S}=r;o(`AppToast`,S),a(`AppToast`,`position`,c,Object.keys(p)),a(`AppToast`,`animation`,m,h),a(`AppToast`,`shape`,v,g),a(`AppToast`,`surface`,b,_);let[C,w]=l([]);s(()=>i(w),[]);let T=Math.max(0,C.length-f),E=T?C.slice(T):C,D=p[c]??p[`bottom-end`];return/* @__PURE__ */ d(`div`,{...n,...S,className:`wui-toast-container toast-container position-fixed ${D} p-3 ${x}`.trim(),children:[T>0&&/* @__PURE__ */ d(`div`,{className:`wui-toast-more`,"aria-hidden":`true`,children:[`+`,T,` more`]}),E.map(e=>/* @__PURE__ */ u(y,{toast:e,defaultAnimation:m,defaultShape:v,defaultSurface:b},e.id))]})}function y({toast:e,defaultAnimation:i=`rise`,defaultShape:a=`rounded`,defaultSurface:o=`auto`}){let p=f[e.variant]??f.success,v=h.has(e.animation)?e.animation:i,y=g.has(e.shape)?e.shape:a,b=_.has(e.surface)?e.surface:o,x=(v!==`rise`&&h.has(v)?` wui-toast--anim-${v}`:``)+(y!==`rounded`&&g.has(y)?` wui-toast--shape-${y}`:``)+(b===`inverse`?` wui-toast--surface-inverse`:``),S=e.duration===0,[C,w]=l(0),[T,E]=l(!1),D=c(null),O=()=>r(e.id),k=c(null);s(()=>{if(e.duration===0)return;n(e.id);let t=k.current,i=t==null?``:getComputedStyle(t).animationName;if(t!=null&&(typeof t.getAnimations==`function`?t.getAnimations().length>0:i!==``&&i!==`none`))return;let a=setTimeout(()=>r(e.id),e.duration);return()=>clearTimeout(a)},[e.id,e.duration]);let A=e=>{e.button!==0||e.target.closest(`button`)||(D.current=e.clientX,E(!0),e.currentTarget.setPointerCapture?.(e.pointerId))},j=e=>{D.current!==null&&w(e.clientX-D.current)},M=()=>{D.current=null,E(!1),w(0)},N=e=>{if(D.current===null)return;let t=e.clientX-D.current;Math.abs(t)>m?O():M()},P=C?{transform:`translateX(${C}px)`,opacity:Math.max(0,1-Math.abs(C)/200)}:void 0;return/* @__PURE__ */ d(`div`,{className:`toast show wui-toast wui-toast--${e.variant}${x}${T?` wui-toast--dragging`:``}`,role:p.assertive?`alert`:`status`,"aria-live":p.assertive?`assertive`:`polite`,"aria-atomic":`true`,style:P,onPointerDown:A,onPointerMove:j,onPointerUp:N,onPointerCancel:M,children:[/* @__PURE__ */ u(`span`,{className:`wui-toast-icon`,"aria-hidden":`true`,children:/* @__PURE__ */ u(t,{name:p.icon,size:20})}),/* @__PURE__ */ d(`div`,{className:`wui-toast-content`,children:[e.title&&/* @__PURE__ */ u(`div`,{className:`wui-toast-title`,children:e.title}),/* @__PURE__ */ u(`div`,{className:`wui-toast-message`,children:e.message}),typeof e.progress==`number`&&/* @__PURE__ */ d(`div`,{className:`wui-toast-task`,children:[/* @__PURE__ */ u(`div`,{className:`wui-toast-track`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.min(100,Math.max(0,Math.round(e.progress))),children:/* @__PURE__ */ u(`div`,{className:`wui-toast-track-fill`,style:{width:`${Math.min(100,Math.max(0,e.progress))}%`}})}),/* @__PURE__ */ d(`span`,{className:`wui-toast-track-pct`,"aria-hidden":`true`,children:[Math.min(100,Math.max(0,Math.round(e.progress))),`%`]})]}),e.action&&/* @__PURE__ */ u(`button`,{type:`button`,className:`wui-toast-action`,onClick:()=>{e.action.onClick?.(),O()},children:e.action.label})]}),/* @__PURE__ */ u(`button`,{type:`button`,className:`btn-close wui-toast-close`,"aria-label":`Close`,onClick:O}),!S&&/* @__PURE__ */ u(`div`,{ref:k,className:`wui-toast-progress`,style:{animationDuration:`${e.duration}ms`},onAnimationEnd:O})]})}export{v as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./renderIconProp.js";import{useId as r,useState as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(s){let{marker:c,props:l}=e(`AppToolbar`,s),{items:u=[],actions:d=[],value:f,defaultValue:p,onSelect:m,label:h,name:g,disabled:_=!1,className:v=``,...y}=l;t(`AppToolbar`,y);let b=r(),x=g||b,[S,C]=i(p),w=f===void 0?S:f;return o(`div`,{className:[`toolbar`,_?`is-disabled`:``,v].filter(Boolean).join(` `),role:`toolbar`,"aria-label":h,"aria-disabled":_||void 0,...c,...y,children:[u.map(e=>o(`label`,{className:`toolbar-item`,children:[a(`input`,{type:`radio`,className:`toolbar-input`,name:x,value:e.value,checked:e.value===w,disabled:_||e.disabled,onChange:()=>{f===void 0&&C(e.value),m?.(e.value)}}),a(`span`,{className:`toolbar-item-icon`,children:n(e.icon,{size:16})}),a(`span`,{className:`toolbar-item-label`,children:e.title})]},e.value)),d.length>0&&a(`span`,{className:`toolbar-sep`,"aria-hidden":`true`}),d.map((e,t)=>a(`button`,{type:`button`,className:`toolbar-action`,"aria-label":e.title,disabled:_||e.disabled,onClick:e.onClick,children:a(`span`,{className:`toolbar-item-icon`,children:n(e.icon,{size:16})})},e.key??`${e.title}-${t}`))]})}export{s as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./renderIconProp.js";import n from"./warnUnknownProps.js";import{useId as r,useState as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(s){let{marker:c,props:l}=e(`AppToolbar`,s),{items:u=[],actions:d=[],value:f,defaultValue:p,onSelect:m,label:h,name:g,disabled:_=!1,className:v=``,...y}=l;n(`AppToolbar`,y);let b=r(),x=g||b,[S,C]=i(p),w=f===void 0?S:f,T=[`toolbar`,_?`is-disabled`:``,v].filter(Boolean).join(` `);return/* @__PURE__ */ o(`div`,{className:T,role:`toolbar`,"aria-label":h,"aria-disabled":_||void 0,...c,...y,children:[u.map(e=>/* @__PURE__ */ o(`label`,{className:`toolbar-item`,children:[/* @__PURE__ */ a(`input`,{type:`radio`,className:`toolbar-input`,name:x,value:e.value,checked:e.value===w,disabled:_||e.disabled,onChange:()=>{f===void 0&&C(e.value),m?.(e.value)}}),/* @__PURE__ */ a(`span`,{className:`toolbar-item-icon`,children:t(e.icon,{size:16})}),/* @__PURE__ */ a(`span`,{className:`toolbar-item-label`,children:e.title})]},e.value)),d.length>0&&/* @__PURE__ */ a(`span`,{className:`toolbar-sep`,"aria-hidden":`true`}),d.map((e,n)=>/* @__PURE__ */ a(`button`,{type:`button`,className:`toolbar-action`,"aria-label":e.title,disabled:_||e.disabled,onClick:e.onClick,children:/* @__PURE__ */ a(`span`,{className:`toolbar-item-icon`,children:t(e.icon,{size:16})})},e.key??`${e.title}-${n}`))]})}export{s as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import{shortcutChip as r}from"../lib/shortcutChip.js";import{cloneElement as i,useId as a,useRef as o,useState as s}from"react";import{OverlayTrigger as c,Tooltip as l}from"react-bootstrap";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=[`default`,`dark`,`primary`,`success`,`warning`,`danger`],p=[`sm`,`md`,`lg`],m={start:`left`,end:`right`,top:`top`,bottom:`bottom`},h=[`auto`,`top`,`bottom`,`start`,`end`],g={modifiers:[{name:`offset`,options:{offset:[0,6]}}]};function _(_){let{marker:v,props:y}=e(`AppTooltip`,_),{content:b,children:x,placement:S=`top`,tone:C=`default`,size:w=`md`,open:T,shortcut:E,className:D=``,...O}=y;n(`AppTooltip`,O),t(`AppTooltip`,`tone`,C,f),t(`AppTooltip`,`size`,w,p),t(`AppTooltip`,`placement`,S,h);let k=a(),[A,j]=s(!1),M=typeof T==`boolean`,N=d(l,{id:k,className:[`wui-tooltip`,C&&C!=="default"?`tone-${C}`:``,w&&w!==`md`?`size-${w}`:``,D].filter(Boolean).join(` `),...v,children:[b,r(E,{inTooltip:!0})]}),P=e=>{x.props.onClick?.(e),O.onClick?.(e),j(!1)},F=o(!1),I=e=>{x.props.onFocusCapture?.(e),O.onFocusCapture?.(e),F.current=!e.currentTarget.matches?.(`:focus-visible`),queueMicrotask(()=>{F.current=!1})};return u(c,{trigger:[`hover`,`focus`],placement:m[S]||S,popperConfig:g,show:M?T:A,onToggle:M?void 0:e=>{let t=F.current;F.current=!1,!(e&&t)&&j(e)},overlay:N,children:M?i(x,O):i(x,{...O,onClick:P,onFocusCapture:I})})}export{_ as default};
1
+ import{shortcutChip as e}from"../lib/shortcutChip.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{cloneElement as i,useId as a,useRef as o,useState as s}from"react";import{OverlayTrigger as c,Tooltip as l}from"react-bootstrap";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=[`default`,`dark`,`primary`,`success`,`warning`,`danger`],p=[`sm`,`md`,`lg`],m={start:`left`,end:`right`,top:`top`,bottom:`bottom`},h=[`auto`,`top`,`bottom`,`start`,`end`],g={modifiers:[{name:`offset`,options:{offset:[0,6]}}]};function _(_){let{marker:v,props:y}=t(`AppTooltip`,_),{content:b,children:x,placement:S=`top`,tone:C=`default`,size:w=`md`,open:T,shortcut:E,className:D=``,...O}=y;r(`AppTooltip`,O),n(`AppTooltip`,`tone`,C,f),n(`AppTooltip`,`size`,w,p),n(`AppTooltip`,`placement`,S,h);let k=a(),[A,j]=s(!1),M=typeof T==`boolean`,N=[`wui-tooltip`,C&&C!=="default"?`tone-${C}`:``,w&&w!==`md`?`size-${w}`:``,D].filter(Boolean).join(` `),P=/* @__PURE__ */ d(l,{id:k,className:N,...v,children:[b,e(E,{inTooltip:!0})]}),F=e=>{x.props.onClick?.(e),O.onClick?.(e),j(!1)},I=o(!1),L=e=>{x.props.onFocusCapture?.(e),O.onFocusCapture?.(e),I.current=!e.currentTarget.matches?.(`:focus-visible`),queueMicrotask(()=>{I.current=!1})};return/* @__PURE__ */ u(c,{trigger:[`hover`,`focus`],placement:m[S]||S,popperConfig:g,show:M?T:A,onToggle:M?void 0:e=>{let t=I.current;I.current=!1,e&&t||j(e)},overlay:P,children:M?i(x,O):i(x,{...O,onClick:F,onFocusCapture:L})})}export{_ as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import"@webority/ui-elements/elements/tour";import{forwardRef as r,useEffect as i,useLayoutEffect as a,useRef as o}from"react";import{jsx as s}from"react/jsx-runtime";var c=[`image`,`video`],l=[`click`],u=r(function(r,u){let{marker:d,props:f}=e(`AppTour`,r),{open:p,onClose:m,tourId:h,steps:g,seenStore:_,onBeforeStep:v,labels:y,endDialog:b=!0,className:x,...S}=f;n(`AppTour`,S);for(let e of g)t(`AppTour`,`steps[].mediaType`,e.mediaType,c),t(`AppTour`,`steps[].advanceOn`,e.advanceOn,l);let C=o(null),w=e=>{C.current=e,typeof u==`function`?u(e):u&&(u.current=e)};a(()=>{let e=C.current;e.seenStore=_??null,e.onBeforeStep=v??null}),a(()=>{let e=C.current;p?e.setAttribute(`open`,``):e.removeAttribute(`open`)},[p]);let T=o(m);return T.current=m,i(()=>{let e=C.current,t=e=>{let{reason:t,index:n,position:r,total:i}=e.detail;T.current?.(t,{index:n,position:r,total:i})};return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),s(`wui-tour`,{ref:w,"tour-id":h,"back-label":y?.back,"next-label":y?.next,"skip-label":y?.skip,"done-label":y?.done,"progress-label":y?.progress,"advance-label":y?.advance,"media-pause-label":y?.mediaPause,"media-play-label":y?.mediaPlay,"end-title":y?.endTitle,"end-message":y?.endMessage,"end-button":y?.endButton,"end-dialog":b===!1?`false`:void 0,class:x||void 0,...d,...S,children:g.map(e=>s(`wui-tour-step`,{target:e.target,title:e.title,media:e.media,"media-alt":e.mediaAlt,"media-poster":e.mediaPoster,"media-type":e.mediaType,"advance-on":e.advanceOn,"action-label":e.actionLabel,children:e.description},`${e.target}|${e.description}`))})});export{u as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import"@webority/ui-elements/elements/tour";import{forwardRef as r,useEffect as i,useLayoutEffect as a,useRef as o}from"react";import{jsx as s}from"react/jsx-runtime";var c=[`image`,`video`],l=[`click`],u=r(function(r,u){let{marker:d,props:f}=e(`AppTour`,r),{open:p,onClose:m,tourId:h,steps:g,seenStore:_,onBeforeStep:v,labels:y,endDialog:b=!0,className:x,...S}=f;n(`AppTour`,S);for(let e of g)t(`AppTour`,`steps[].mediaType`,e.mediaType,c),t(`AppTour`,`steps[].advanceOn`,e.advanceOn,l);let C=o(null),w=e=>{C.current=e,typeof u==`function`?u(e):u&&(u.current=e)};a(()=>{let e=C.current;e.seenStore=_??null,e.onBeforeStep=v??null}),a(()=>{let e=C.current;p?e.setAttribute(`open`,``):e.removeAttribute(`open`)},[p]);let T=o(m);return T.current=m,i(()=>{let e=C.current,t=e=>{let{reason:t,index:n,position:r,total:i}=e.detail;T.current?.(t,{index:n,position:r,total:i})};return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),/* @__PURE__ */ s(`wui-tour`,{ref:w,"tour-id":h,"back-label":y?.back,"next-label":y?.next,"skip-label":y?.skip,"done-label":y?.done,"progress-label":y?.progress,"advance-label":y?.advance,"media-pause-label":y?.mediaPause,"media-play-label":y?.mediaPlay,"end-title":y?.endTitle,"end-message":y?.endMessage,"end-button":y?.endButton,"end-dialog":b===!1?`false`:void 0,class:x||void 0,...d,...S,children:g.map(e=>/* @__PURE__ */ s(`wui-tour-step`,{target:e.target,title:e.title,media:e.media,"media-alt":e.mediaAlt,"media-poster":e.mediaPoster,"media-type":e.mediaType,"advance-on":e.advanceOn,"action-label":e.actionLabel,children:e.description},`${e.target}|${e.description}`))})});export{u as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r,{readValues as i,writeValues as a}from"./useWuiControl.js";import{forwardRef as o,useEffect as s,useRef as c}from"react";import{jsx as l}from"react/jsx-runtime";import"@webority/ui-elements/elements/tree";var u=[`none`,`single`,`multiple`],d=o(function(o,d){let{marker:f,props:p}=e(`AppTreeView`,o),{nodes:m,selection:h,selected:g,onSelect:_,checked:v,onCheck:y,loadChildren:b,loadUrl:x,onLoadError:S,name:C,loadingText:w,errorText:T,ariaLabel:E,id:D,className:O=``,...k}=p;n(`AppTreeView`,k),t(`AppTreeView`,`selection`,h,u);let{setRef:A,innerRef:j}=r({ref:d,value:v,readValue:i,writeValue:a,on:{"wui-tree:check":e=>y?.(e.detail.values,{id:e.detail.id,checked:e.detail.checked}),"wui-tree:select":e=>{_?.(e.detail.id,e.detail.node),g!==void 0&&e.currentTarget.selected!==g&&(e.currentTarget.selected=g)},"wui-tree:error":e=>S?.(e.detail.id,e.detail.message)}});s(()=>{let e=j.current;e&&m!==void 0&&(e.nodes=m)},[m,j]),s(()=>{let e=j.current;e&&(e.loadChildren=b)},[b,j]);let M=c(!1);return s(()=>{let e=j.current;if(e){if(g===void 0){M.current&&(e.selected=null),M.current=!1;return}M.current=!0,e.selected!==g&&(e.selected=g)}},[g,j]),l(`wui-tree`,{ref:A,id:D||void 0,selection:h||void 0,name:C||void 0,"load-url":x||void 0,"loading-text":w||void 0,"error-text":T||void 0,"aria-label":E||void 0,className:O||void 0,...f,...k})});export{d as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t,{readValues as n,writeValues as r}from"./useWuiControl.js";import i from"./warnInvalidValue.js";import a from"./warnUnknownProps.js";import{forwardRef as o,useEffect as s,useRef as c}from"react";import{jsx as l}from"react/jsx-runtime";import"@webority/ui-elements/elements/tree";var u=[`none`,`single`,`multiple`],d=o(function(o,d){let{marker:f,props:p}=e(`AppTreeView`,o),{nodes:m,selection:h,selected:g,onSelect:_,checked:v,onCheck:y,loadChildren:b,loadUrl:x,onLoadError:S,name:C,loadingText:w,errorText:T,ariaLabel:E,id:D,className:O=``,...k}=p;a(`AppTreeView`,k),i(`AppTreeView`,`selection`,h,u);let{setRef:A,innerRef:j}=t({ref:d,value:v,readValue:n,writeValue:r,on:{"wui-tree:check":e=>y?.(e.detail.values,{id:e.detail.id,checked:e.detail.checked}),"wui-tree:select":e=>{_?.(e.detail.id,e.detail.node),g!==void 0&&e.currentTarget.selected!==g&&(e.currentTarget.selected=g)},"wui-tree:error":e=>S?.(e.detail.id,e.detail.message)}});s(()=>{let e=j.current;e&&m!==void 0&&(e.nodes=m)},[m,j]),s(()=>{let e=j.current;e&&(e.loadChildren=b)},[b,j]);let M=c(!1);return s(()=>{let e=j.current;e&&(g===void 0?(M.current&&(e.selected=null),M.current=!1):(M.current=!0,e.selected!==g&&(e.selected=g)))},[g,j]),/* @__PURE__ */ l(`wui-tree`,{ref:A,id:D||void 0,selection:h||void 0,name:C||void 0,"load-url":x||void 0,"loading-text":w||void 0,"error-text":T||void 0,"aria-label":E||void 0,className:O||void 0,...f,...k})});export{d as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";import"@webority/ui-elements/elements/truncate";function r(r){let{marker:i,props:a}=e(`AppTruncate`,r),{children:o,lines:s=1,width:c,style:l,className:u=``,...d}=a;t(`AppTruncate`,d);let f=Number.isInteger(s)&&s>1,p={...f?{"--wui-truncate-lines":s}:null,...c?{"--wui-truncate-width":c}:null,...l};return n(`wui-truncate`,{class:[`wui-truncate`,f&&`wui-truncate-multi`,u].filter(Boolean).join(` `),style:Object.keys(p).length?p:void 0,...i,...d,children:n(`span`,{className:`wui-truncate-text`,children:o})})}export{r as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import{jsx as n}from"react/jsx-runtime";import"@webority/ui-elements/elements/truncate";function r(r){let{marker:i,props:a}=e(`AppTruncate`,r),{children:o,lines:s=1,width:c,style:l,className:u=``,...d}=a;t(`AppTruncate`,d);let f=Number.isInteger(s)&&s>1,p={...f?{"--wui-truncate-lines":s}:null,...c?{"--wui-truncate-width":c}:null,...l};return/* @__PURE__ */ n(`wui-truncate`,{class:[`wui-truncate`,f&&`wui-truncate-multi`,u].filter(Boolean).join(` `),style:Object.keys(p).length?p:void 0,...i,...d,children:/* @__PURE__ */ n(`span`,{className:`wui-truncate-text`,children:o})})}export{r as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnUnknownProps.js";import n from"./AppButton.js";import r from"./AppBanner.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=()=>window.location.reload();function s(s){let{marker:c,props:l}=e(`AppUpdateBar`,s),{onReload:u=o,dismissible:d=!1,onDismiss:f,className:p=``,...m}=l;return t(`AppUpdateBar`,m),a(r,{tone:`info`,icon:`refresh-cw`,dismissible:d,onDismiss:f,className:p,...c,...m,children:[i(`span`,{className:`me-3`,children:`A new version of this app is ready.`}),i(n,{size:`sm`,variant:`primary`,onClick:u,children:`Reload`})]})}export{s as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppBanner.js";import n from"./AppButton.js";import r from"./warnUnknownProps.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o=()=>window.location.reload();function s(s){let{marker:c,props:l}=e(`AppUpdateBar`,s),{onReload:u=o,dismissible:d=!1,onDismiss:f,className:p=``,...m}=l;return r(`AppUpdateBar`,m),/* @__PURE__ */ a(t,{tone:`info`,icon:`refresh-cw`,dismissible:d,onDismiss:f,className:p,...c,...m,children:[/* @__PURE__ */ i(`span`,{className:`me-3`,children:`A new version of this app is ready.`}),/* @__PURE__ */ i(n,{size:`sm`,variant:`primary`,onClick:u,children:`Reload`})]})}export{s as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{formatDate as i}from"@webority/ui-elements/helpers";import{useEffect as a,useRef as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/whats-new";var l=[`dot`,`count`];function u(u){let{marker:d,props:f}=e(`AppWhatsNew`,u),{entries:p=[],storageKey:m,readThrough:h,indicator:g=`dot`,label:_=`What's new`,unreadLabel:v=`unread`,emptyText:y=`Nothing new yet`,onRead:b,className:x=``,...S}=f;n(`AppWhatsNew`,S),t(`AppWhatsNew`,`indicator`,g,l);let C=o(null),w=o(b);return w.current=b,a(()=>{let e=C.current,t=e=>w.current?.(e.detail.through);return e.addEventListener(`wui-whats-new-read`,t),()=>e.removeEventListener(`wui-whats-new-read`,t)},[]),c(`wui-whats-new`,{ref:C,class:[`wui-whats-new`,x].filter(Boolean).join(` `),"storage-key":m||void 0,"read-through":h||void 0,indicator:g,...d,...S,children:[c(`button`,{type:`button`,className:`u-action wui-whats-new-trigger`,"aria-haspopup":`dialog`,children:[s(r,{name:`gift`,size:20}),s(`span`,{className:`wui-whats-new-name`,children:_}),s(`span`,{className:`wui-whats-new-unread`,children:` ${v}`}),s(`span`,{className:`wui-whats-new-dot`,"aria-hidden":`true`})]}),c(`div`,{className:`wui-whats-new-panel`,role:`dialog`,"aria-label":_,tabIndex:-1,children:[s(`h2`,{className:`wui-whats-new-title`,children:_}),p.length>0?s(`ol`,{className:`wui-whats-new-list`,children:p.map((e,t)=>c(`li`,{className:`wui-whats-new-entry`,children:[s(`time`,{className:`wui-whats-new-date`,dateTime:e.date,children:i(e.date)}),s(`h3`,{className:`wui-whats-new-entry-title`,children:e.title}),e.body&&s(`p`,{className:`wui-whats-new-body`,children:e.body}),e.imageSrc&&s(`img`,{className:`wui-whats-new-image`,src:e.imageSrc,alt:e.imageAlt??``,loading:`lazy`}),e.href&&s(`a`,{className:`wui-whats-new-link`,href:e.href,children:e.linkLabel||`Learn more`})]},e.id??`${e.date}-${t}`))}):s(`p`,{className:`wui-whats-new-empty`,children:y})]})]})}export{u as default};
1
+ import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./warnInvalidValue.js";import r from"./warnUnknownProps.js";import{formatDate as i}from"@webority/ui-elements/helpers";import{useEffect as a,useRef as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/whats-new";var l=[`dot`,`count`];function u(u){let{marker:d,props:f}=e(`AppWhatsNew`,u),{entries:p=[],storageKey:m,readThrough:h,indicator:g=`dot`,label:_=`What's new`,unreadLabel:v=`unread`,emptyText:y=`Nothing new yet`,onRead:b,className:x=``,...S}=f;r(`AppWhatsNew`,S),n(`AppWhatsNew`,`indicator`,g,l);let C=o(null),w=o(b);return w.current=b,a(()=>{let e=C.current,t=e=>w.current?.(e.detail.through);return e.addEventListener(`wui-whats-new-read`,t),()=>e.removeEventListener(`wui-whats-new-read`,t)},[]),/* @__PURE__ */ c(`wui-whats-new`,{ref:C,class:[`wui-whats-new`,x].filter(Boolean).join(` `),"storage-key":m||void 0,"read-through":h||void 0,indicator:g,...d,...S,children:[/* @__PURE__ */ c(`button`,{type:`button`,className:`u-action wui-whats-new-trigger`,"aria-haspopup":`dialog`,children:[/* @__PURE__ */ s(t,{name:`gift`,size:20}),/* @__PURE__ */ s(`span`,{className:`wui-whats-new-name`,children:_}),/* @__PURE__ */ s(`span`,{className:`wui-whats-new-unread`,children:` ${v}`}),/* @__PURE__ */ s(`span`,{className:`wui-whats-new-dot`,"aria-hidden":`true`})]}),/* @__PURE__ */ c(`div`,{className:`wui-whats-new-panel`,role:`dialog`,"aria-label":_,tabIndex:-1,children:[/* @__PURE__ */ s(`h2`,{className:`wui-whats-new-title`,children:_}),p.length>0?/* @__PURE__ */ s(`ol`,{className:`wui-whats-new-list`,children:p.map((e,t)=>/* @__PURE__ */ c(`li`,{className:`wui-whats-new-entry`,children:[/* @__PURE__ */ s(`time`,{className:`wui-whats-new-date`,dateTime:e.date,children:i(e.date)}),/* @__PURE__ */ s(`h3`,{className:`wui-whats-new-entry-title`,children:e.title}),e.body&&/* @__PURE__ */ s(`p`,{className:`wui-whats-new-body`,children:e.body}),e.imageSrc&&/* @__PURE__ */ s(`img`,{className:`wui-whats-new-image`,src:e.imageSrc,alt:e.imageAlt??``,loading:`lazy`}),e.href&&/* @__PURE__ */ s(`a`,{className:`wui-whats-new-link`,href:e.href,children:e.linkLabel||`Learn more`})]},e.id??`${e.date}-${t}`))}):/* @__PURE__ */ s(`p`,{className:`wui-whats-new-empty`,children:y})]})]})}export{u as default};
@@ -1 +1 @@
1
- import{splitMarkerProps 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"./AppIcon.js";import{Children as a,forwardRef as o,useEffect as s,useRef as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import"@webority/ui-elements/elements/wizard";var d=[`steps`,`journey`,`icons`,`tiles`],f=[`primary`,`success`,`warning`,`danger`,`info`],p=[`horizontal`,`vertical`],ee=[`center`,`start`],te=[`done`,`active`,`pending`,`error`],m=[`key`,`label`,`description`,`optional`,`icon`,`status`],h=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],ne=[`check`,`alert-triangle`,`minus`],g=[`sm`,`md`,`lg`],_={sm:14,md:16,lg:20},v=new Set,y=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}};function re(e){if(!Array.isArray(e))throw Error(`AppWizard: steps must be an array of { label, description?, optional?, icon?, status?, key? } objects.`);e.forEach((e,n)=>{if(typeof e!=`object`||!e||typeof e.label!=`string`||e.label.trim()===``)throw Error(`AppWizard: steps[${n}] needs a text label.`);if(y())for(let r of Object.keys(e)){if(m.includes(r))continue;let e=`AppWizard: steps[${n}] has an unknown field ${r}; the fields are ${m.join(`, `)}.`;v.has(e)||(v.add(e),t(e))}})}var b=o(function(t,o){let{marker:m,props:v}=e(`AppWizard`,t),{steps:y=[],children:b,active:x,defaultActive:S=0,onStepChange:C,onFinish:w,onSkip:T,beforeNext:E,onInvalid:D,onClose:O,variant:k=`steps`,tone:A,doneTone:j,orientation:M=`horizontal`,align:N=`center`,iconVariant:P,size:F=`md`,iconSize:I,skippable:L=!1,nonLinear:R=!1,hideStepper:z=!1,hideConnectors:B=!1,disabled:V=!1,label:H=`Progress`,backLabel:U=`Back`,nextLabel:W=`Next`,skipLabel:G=`Skip`,finishLabel:K=`Finish`,topBar:q=!1,barTitle:J,closeLabel:Y=`Close`,className:ie=``,...X}=v;r(`AppWizard`,X),n(`AppWizard`,`variant`,k,d),n(`AppWizard`,`tone`,A,f),n(`AppWizard`,`doneTone`,j,f),n(`AppWizard`,`orientation`,M,p),n(`AppWizard`,`align`,N,ee),n(`AppWizard`,`iconVariant`,P,h),n(`AppWizard`,`size`,F,g),re(y);let Z=I>0?I:_[F]??_.md;for(let e of y)n(`AppWizard`,`steps[].status`,e.status,te);let Q=c(null),ae=e=>{Q.current=e,typeof o==`function`?o(e):o&&(o.current=e)},oe=a.toArray(b),$=P&&P!==`linear`?[...new Set([...ne,...y.map(e=>e.icon).filter(Boolean)])]:[],se=[A&&`wui-step-tone-${A}`,j&&`wui-step-done-tone-${j}`,F!==`md`&&g.includes(F)&&`wui-step-size-${F}`,ie].filter(Boolean).join(` `);return s(()=>{let e=Q.current;if(!e)return;let t=x===void 0?S:x;t&&(e.active=t)},[]),s(()=>{let e=Q.current;e&&x!==void 0&&Number(e.active)!==x&&(e.active=x)},[x]),s(()=>{let e=Q.current;e&&(e.beforeNext=E??null)},[E]),s(()=>{let e=Q.current;if(!e)return;let t=e=>C?.(e.detail.index,e.detail),n=e=>w?.(e.detail),r=e=>T?.(e.detail.index),i=e=>D?.(e.detail.index),a=e=>O?.(e.detail);return e.addEventListener(`wui-wizard:change`,t),e.addEventListener(`wui-wizard:finish`,n),e.addEventListener(`wui-wizard:skip`,r),e.addEventListener(`wui-wizard:invalid`,i),e.addEventListener(`wui-wizard:close`,a),()=>{e.removeEventListener(`wui-wizard:change`,t),e.removeEventListener(`wui-wizard:finish`,n),e.removeEventListener(`wui-wizard:skip`,r),e.removeEventListener(`wui-wizard:invalid`,i),e.removeEventListener(`wui-wizard:close`,a)}},[C,w,T,D,O]),u(`wui-wizard`,{ref:ae,variant:k,orientation:M,align:N===`start`?`start`:void 0,"icon-size":Z===16?void 0:Z,skippable:L?``:void 0,"non-linear":R?``:void 0,"hide-stepper":z?``:void 0,"hide-connectors":B?``:void 0,disabled:V?``:void 0,label:H,"back-label":U,"next-label":W,"skip-label":G,"finish-label":K,"top-bar":q?``:void 0,"bar-title":J||void 0,"close-label":Y,className:se||void 0,...m,...X,children:[y.map((e,t)=>l(`wui-wizard-step`,{label:e.label,description:e.description||void 0,optional:e.optional?``:void 0,icon:e.icon||void 0,status:e.status||void 0,children:oe[t]},e.key??`${e.label}-${t}`)),$.length>0&&l(`span`,{hidden:!0,"data-wui-glyphs":``,children:$.map(e=>l(i,{name:e,size:Z,variant:P},e))})]})});export{b as default};
1
+ import{devWarn as e}from"../lib/devWarn.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppIcon.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.js";import{Children as a,forwardRef as o,useEffect as s,useRef as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import"@webority/ui-elements/elements/wizard";var d=[`steps`,`journey`,`icons`,`tiles`],f=[`primary`,`success`,`warning`,`danger`,`info`],p=[`horizontal`,`vertical`],ee=[`center`,`start`],te=[`done`,`active`,`pending`,`error`],m=[`key`,`label`,`description`,`optional`,`icon`,`status`],h=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],ne=[`check`,`alert-triangle`,`minus`],g=[`sm`,`md`,`lg`],_={sm:14,md:16,lg:20},v=/* @__PURE__ */ new Set,y=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}};function re(t){if(!Array.isArray(t))throw Error(`AppWizard: steps must be an array of { label, description?, optional?, icon?, status?, key? } objects.`);t.forEach((t,n)=>{if(typeof t!=`object`||!t||typeof t.label!=`string`||t.label.trim()===``)throw Error(`AppWizard: steps[${n}] needs a text label.`);if(y())for(let r of Object.keys(t)){if(m.includes(r))continue;let t=`AppWizard: steps[${n}] has an unknown field ${r}; the fields are ${m.join(`, `)}.`;v.has(t)||(v.add(t),e(t))}})}var b=o(function(e,o){let{marker:m,props:v}=t(`AppWizard`,e),{steps:y=[],children:b,active:x,defaultActive:S=0,onStepChange:C,onFinish:w,onSkip:T,beforeNext:E,onInvalid:D,onClose:O,variant:k=`steps`,tone:A,doneTone:j,orientation:M=`horizontal`,align:N=`center`,iconVariant:P,size:F=`md`,iconSize:I,skippable:L=!1,nonLinear:R=!1,hideStepper:z=!1,hideConnectors:B=!1,disabled:V=!1,label:H=`Progress`,backLabel:U=`Back`,nextLabel:W=`Next`,skipLabel:G=`Skip`,finishLabel:K=`Finish`,topBar:q=!1,barTitle:J,closeLabel:Y=`Close`,className:ie=``,...X}=v;i(`AppWizard`,X),r(`AppWizard`,`variant`,k,d),r(`AppWizard`,`tone`,A,f),r(`AppWizard`,`doneTone`,j,f),r(`AppWizard`,`orientation`,M,p),r(`AppWizard`,`align`,N,ee),r(`AppWizard`,`iconVariant`,P,h),r(`AppWizard`,`size`,F,g),re(y);let Z=I>0?I:_[F]??_.md;for(let e of y)r(`AppWizard`,`steps[].status`,e.status,te);let Q=c(null),ae=e=>{Q.current=e,typeof o==`function`?o(e):o&&(o.current=e)},oe=a.toArray(b),$=P&&P!==`linear`?[.../* @__PURE__ */ new Set([...ne,...y.map(e=>e.icon).filter(Boolean)])]:[],se=[A&&`wui-step-tone-${A}`,j&&`wui-step-done-tone-${j}`,F!==`md`&&g.includes(F)&&`wui-step-size-${F}`,ie].filter(Boolean).join(` `);return s(()=>{let e=Q.current;if(!e)return;let t=x===void 0?S:x;t&&(e.active=t)},[]),s(()=>{let e=Q.current;e&&x!==void 0&&Number(e.active)!==x&&(e.active=x)},[x]),s(()=>{let e=Q.current;e&&(e.beforeNext=E??null)},[E]),s(()=>{let e=Q.current;if(!e)return;let t=e=>C?.(e.detail.index,e.detail),n=e=>w?.(e.detail),r=e=>T?.(e.detail.index),i=e=>D?.(e.detail.index),a=e=>O?.(e.detail);return e.addEventListener(`wui-wizard:change`,t),e.addEventListener(`wui-wizard:finish`,n),e.addEventListener(`wui-wizard:skip`,r),e.addEventListener(`wui-wizard:invalid`,i),e.addEventListener(`wui-wizard:close`,a),()=>{e.removeEventListener(`wui-wizard:change`,t),e.removeEventListener(`wui-wizard:finish`,n),e.removeEventListener(`wui-wizard:skip`,r),e.removeEventListener(`wui-wizard:invalid`,i),e.removeEventListener(`wui-wizard:close`,a)}},[C,w,T,D,O]),/* @__PURE__ */ u(`wui-wizard`,{ref:ae,variant:k,orientation:M,align:N===`start`?`start`:void 0,"icon-size":Z===16?void 0:Z,skippable:L?``:void 0,"non-linear":R?``:void 0,"hide-stepper":z?``:void 0,"hide-connectors":B?``:void 0,disabled:V?``:void 0,label:H,"back-label":U,"next-label":W,"skip-label":G,"finish-label":K,"top-bar":q?``:void 0,"bar-title":J||void 0,"close-label":Y,className:se||void 0,...m,...X,children:[y.map((e,t)=>/* @__PURE__ */ l(`wui-wizard-step`,{label:e.label,description:e.description||void 0,optional:e.optional?``:void 0,icon:e.icon||void 0,status:e.status||void 0,children:oe[t]},e.key??`${e.label}-${t}`)),$.length>0&&/* @__PURE__ */ l(`span`,{hidden:!0,"data-wui-glyphs":``,children:$.map(e=>/* @__PURE__ */ l(n,{name:e,size:Z,variant:P},e))})]})});export{b as default};
@@ -1 +1 @@
1
- import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./warnInvalidValue.js";import n from"./warnUnknownProps.js";import r from"./AppIcon.js";import{initialsOf as i}from"../lib/initials.js";import{forwardRef as a,useEffect as o,useMemo as s,useRef as c,useState as l}from"react";import{Dropdown as u}from"react-bootstrap";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`sm`,`md`,`lg`],h=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]);function g(i){let{marker:a,props:d}=e(`AppWorkspaceSwitcher`,i),{tenants:g=[],currentId:b,onSelect:x,menuLabel:S,footerAction:C,linkComponent:w,searchable:T=!1,onCreate:E,canCreate:D=!1,createLabel:O=`Create workspace`,compact:k=!1,size:A=`md`,ariaLabel:j,...M}=d,{onToggle:N,...P}=M;n(`AppWorkspaceSwitcher`,P),t(`AppWorkspaceSwitcher`,`size`,A,m);let[F,I]=l(``),[L,R]=l(!1),z=c(null),B=(e,t)=>{R(e),N?.(e,t)},V=g.find(e=>e.id===b)??g[0],H=s(()=>{let e=F.trim().toLowerCase();return!T||!e?g:g.filter(t=>String(t.name??``).toLowerCase().includes(e))},[g,F,T]);o(()=>{L&&T&&z.current?.focus()},[L,T]),o(()=>{if(!T)return;let e=z.current;if(!e)return;let t=e=>{if(h.has(e.key)){e.stopPropagation();return}e.key===`Escape`&&L&&(e.preventDefault(),e.stopPropagation(),B(!1,{source:`keydown`,originalEvent:e}))};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[T,L]);let U=V?.name??``,W=j??`Workspace ${U}`;return p(u,{className:`workspace-switcher${A===`sm`?` workspace-switcher-sm`:``}${A===`lg`?` workspace-switcher-lg`:``}`,show:L,onToggle:B,...a,...P,children:[f(u.Toggle,{as:y,compact:k,tenant:V,"aria-label":W}),p(u.Menu,{className:`workspace-switcher-menu`,renderOnMount:!0,popperConfig:{strategy:`fixed`},children:[S?f(`div`,{className:`workspace-switcher-menu-label`,children:S}):null,T?p(`div`,{className:`workspace-switcher-search`,children:[f(r,{name:`search`,size:14}),f(`input`,{ref:z,type:`search`,className:`workspace-switcher-search-input`,placeholder:`Search workspaces`,"aria-label":`Search workspaces`,value:F,onChange:e=>I(e.target.value)})]}):null,p(`div`,{className:`workspace-switcher-list`,children:[H.map(e=>p(u.Item,{as:`button`,type:`button`,className:`workspace-switcher-option${e.id===V?.id?` is-active`:``}`,onClick:()=>x?.(e),children:[f(_,{tenant:e}),f(`span`,{className:`workspace-switcher-option-name`,children:e.name}),e.badge?f(`span`,{className:`workspace-switcher-badge`,children:e.badge}):null,e.id===V?.id?f(r,{name:`check`,size:16,className:`workspace-switcher-tick`}):null]},e.id)),H.length===0?f(`div`,{className:`workspace-switcher-empty`,children:`No workspaces match.`}):null]}),D?p(u.Item,{as:`button`,type:`button`,className:`workspace-switcher-create`,onClick:()=>E?.(),children:[f(r,{name:`plus`,size:16}),O]}):null,C?f(`div`,{className:`workspace-switcher-footer`,children:v(C,w)}):null]})]})}function _({tenant:e}){return e?.logoUrl?f(`img`,{className:`workspace-switcher-mark`,src:e.logoUrl,alt:``,loading:`lazy`}):f(`span`,{className:`workspace-switcher-mark`,children:i(e?.name,1)})}function v(e,t){if(typeof e!=`object`||!e||!(`label`in e))return e;let{label:n,icon:i,href:a}=e;return p(a?t??`a`:`button`,{className:`workspace-switcher-footer-action`,...a?t?{to:a}:{href:a}:{type:`button`},children:[i?f(r,{name:i,size:16}):null,n]})}var y=a(function({compact:e,tenant:t,"aria-label":n,className:i,...a},o){return p(`button`,{ref:o,type:`button`,className:`workspace-switcher-trigger${e?` is-compact`:``}`,"aria-haspopup":`true`,"aria-label":n,...a,children:[f(_,{tenant:t}),e?null:p(d,{children:[f(`span`,{className:`workspace-switcher-trigger-name`,children:t?.name}),f(r,{name:`chevrons-up-down`,size:16,className:`workspace-switcher-chevron`})]})]})});export{g as default};
1
+ import{initialsOf as e}from"../lib/initials.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppIcon.js";import r from"./warnInvalidValue.js";import i from"./warnUnknownProps.js";import{forwardRef as a,useEffect as o,useMemo as s,useRef as c,useState as l}from"react";import{Dropdown as u}from"react-bootstrap";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`sm`,`md`,`lg`],h=/* @__PURE__ */ new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]);function g(e){let{marker:a,props:d}=t(`AppWorkspaceSwitcher`,e),{tenants:g=[],currentId:b,onSelect:x,menuLabel:S,footerAction:C,linkComponent:w,searchable:T=!1,onCreate:E,canCreate:D=!1,createLabel:O=`Create workspace`,compact:k=!1,size:A=`md`,ariaLabel:j,...M}=d,{onToggle:N,...P}=M;i(`AppWorkspaceSwitcher`,P),r(`AppWorkspaceSwitcher`,`size`,A,m);let[F,I]=l(``),[L,R]=l(!1),z=c(null),B=(e,t)=>{R(e),N?.(e,t)},V=g.find(e=>e.id===b)??g[0],H=s(()=>{let e=F.trim().toLowerCase();return!T||!e?g:g.filter(t=>String(t.name??``).toLowerCase().includes(e))},[g,F,T]);o(()=>{L&&T&&z.current?.focus()},[L,T]),o(()=>{if(!T)return;let e=z.current;if(!e)return;let t=e=>{h.has(e.key)?e.stopPropagation():e.key===`Escape`&&L&&(e.preventDefault(),e.stopPropagation(),B(!1,{source:`keydown`,originalEvent:e}))};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[T,L]);let U=V?.name??``,W=j??`Workspace ${U}`;return/* @__PURE__ */ p(u,{className:`workspace-switcher${A===`sm`?` workspace-switcher-sm`:``}${A===`lg`?` workspace-switcher-lg`:``}`,show:L,onToggle:B,...a,...P,children:[/* @__PURE__ */ f(u.Toggle,{as:y,compact:k,tenant:V,"aria-label":W}),/* @__PURE__ */ p(u.Menu,{className:`workspace-switcher-menu`,renderOnMount:!0,popperConfig:{strategy:`fixed`},children:[S?/* @__PURE__ */ f(`div`,{className:`workspace-switcher-menu-label`,children:S}):null,T?/* @__PURE__ */ p(`div`,{className:`workspace-switcher-search`,children:[/* @__PURE__ */ f(n,{name:`search`,size:14}),/* @__PURE__ */ f(`input`,{ref:z,type:`search`,className:`workspace-switcher-search-input`,placeholder:`Search workspaces`,"aria-label":`Search workspaces`,value:F,onChange:e=>I(e.target.value)})]}):null,/* @__PURE__ */ p(`div`,{className:`workspace-switcher-list`,children:[H.map(e=>/* @__PURE__ */ p(u.Item,{as:`button`,type:`button`,className:`workspace-switcher-option${e.id===V?.id?` is-active`:``}`,onClick:()=>x?.(e),children:[/* @__PURE__ */ f(_,{tenant:e}),/* @__PURE__ */ f(`span`,{className:`workspace-switcher-option-name`,children:e.name}),e.badge?/* @__PURE__ */ f(`span`,{className:`workspace-switcher-badge`,children:e.badge}):null,e.id===V?.id?/* @__PURE__ */ f(n,{name:`check`,size:16,className:`workspace-switcher-tick`}):null]},e.id)),H.length===0?/* @__PURE__ */ f(`div`,{className:`workspace-switcher-empty`,children:`No workspaces match.`}):null]}),D?/* @__PURE__ */ p(u.Item,{as:`button`,type:`button`,className:`workspace-switcher-create`,onClick:()=>E?.(),children:[/* @__PURE__ */ f(n,{name:`plus`,size:16}),O]}):null,C?/* @__PURE__ */ f(`div`,{className:`workspace-switcher-footer`,children:v(C,w)}):null]})]})}function _({tenant:t}){return t?.logoUrl?/* @__PURE__ */ f(`img`,{className:`workspace-switcher-mark`,src:t.logoUrl,alt:``,loading:`lazy`}):/* @__PURE__ */ f(`span`,{className:`workspace-switcher-mark`,children:e(t?.name,1)})}function v(e,t){if(typeof e!=`object`||!e||!(`label`in e))return e;let{label:r,icon:i,href:a}=e;return/* @__PURE__ */ p(a?t??`a`:`button`,{className:`workspace-switcher-footer-action`,...a?t?{to:a}:{href:a}:{type:`button`},children:[i?/* @__PURE__ */ f(n,{name:i,size:16}):null,r]})}var y=a(function({compact:e,tenant:t,"aria-label":r,className:i,...a},o){return/* @__PURE__ */ p(`button`,{ref:o,type:`button`,className:`workspace-switcher-trigger${e?` is-compact`:``}`,"aria-haspopup":`true`,"aria-label":r,...a,children:[/* @__PURE__ */ f(_,{tenant:t}),e?null:/* @__PURE__ */ p(d,{children:[/* @__PURE__ */ f(`span`,{className:`workspace-switcher-trigger-name`,children:t?.name}),/* @__PURE__ */ f(n,{name:`chevrons-up-down`,size:16,className:`workspace-switcher-chevron`})]})]})});export{g as default};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import"@webority/ui-elements/elements/status-icon";var t=t=>function({size:n=72}){return e(`wui-status-icon`,{tone:t,size:n})},n=t(`success`),r=t(`error`),i=t(`warning`),a=t(`info`),o=t(`delete`),s=t(`primary`),c={success:n,error:r,warning:i,info:a,delete:o,primary:s};export{o as DeleteIcon,r as ErrorIcon,a as InfoIcon,c as MODAL_ICONS,s as PrimaryIcon,n as SuccessIcon,i as WarningIcon};
1
+ import{jsx as e}from"react/jsx-runtime";import"@webority/ui-elements/elements/status-icon";var t=t=>function({size:n=72}){return/* @__PURE__ */ e(`wui-status-icon`,{tone:t,size:n})},n=t(`success`),r=t(`error`),i=t(`warning`),a=t(`info`),o=t(`delete`),s=t(`primary`),c={success:n,error:r,warning:i,info:a,delete:o,primary:s};export{o as DeleteIcon,r as ErrorIcon,a as InfoIcon,c as MODAL_ICONS,s as PrimaryIcon,n as SuccessIcon,i as WarningIcon};
@@ -1 +1 @@
1
- var e=`aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`);export{e as ICON_NAMES};
1
+ var e=/* @__PURE__ */ `aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.at.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.comment.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.reddit.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.thumbs-up.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`);export{e as ICON_NAMES};