@webority/ui-react 0.144.2 → 0.145.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.
- package/dist/canvas-kit/kit.js +19397 -19371
- package/dist/canvas-kit/manifest.json +1 -1
- package/dist/canvas-kit/release.json +5 -5
- package/dist/components/AppAccordion.js +1 -1
- package/dist/components/AppActionIcon.js +1 -1
- package/dist/components/AppAlert.js +1 -1
- package/dist/components/AppAuthLayout.js +1 -1
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppAvatarGroup.js +1 -1
- package/dist/components/AppBadge.js +1 -1
- package/dist/components/AppBanner.js +1 -1
- package/dist/components/AppButton.js +1 -1
- package/dist/components/AppButtonGroup.js +1 -1
- package/dist/components/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppCheckbox.js +1 -1
- package/dist/components/AppChip.js +1 -1
- package/dist/components/AppChipGroup.js +1 -1
- package/dist/components/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppCodeBlock.js +1 -1
- package/dist/components/AppColorField.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppCompareTable.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppConsentBanner.js +1 -1
- package/dist/components/AppCopyButton.js +1 -1
- package/dist/components/AppDashboardCell.js +1 -1
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppDatePicker.js +1 -1
- package/dist/components/AppDateRangePicker.js +1 -1
- package/dist/components/AppDescriptions.js +1 -1
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppDropdown.js +1 -1
- package/dist/components/AppDueDate.js +1 -1
- package/dist/components/AppEmptyState.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingButton.js +1 -1
- package/dist/components/AppFormActions.js +1 -1
- package/dist/components/AppFormRow.js +1 -1
- package/dist/components/AppFormSection.js +1 -1
- package/dist/components/AppIcon.js +1 -1
- package/dist/components/AppImagePicker.js +1 -1
- package/dist/components/AppInfoTip.js +1 -1
- package/dist/components/AppInlineEdit.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppInputGroup.js +1 -1
- package/dist/components/AppKanban.js +1 -1
- package/dist/components/AppKpiTile.js +1 -1
- package/dist/components/AppLeadPopup.js +1 -1
- package/dist/components/AppLightbox.js +1 -1
- package/dist/components/AppLink.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/AppMentionInput.js +1 -1
- package/dist/components/AppMeter.js +1 -1
- package/dist/components/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavList.js +1 -1
- package/dist/components/AppNotificationCenter.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppOnboardingChecklist.js +1 -1
- package/dist/components/AppOtpInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppPopover.js +1 -1
- package/dist/components/AppProgress.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRadioGroup.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppResizable.js +1 -1
- package/dist/components/AppResult.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRollingNumber.js +1 -1
- package/dist/components/AppRouteError.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionCallToAction.js +1 -1
- package/dist/components/AppSectionFaq.js +1 -1
- package/dist/components/AppSectionFeatures.js +1 -1
- package/dist/components/AppSectionHero.js +1 -1
- package/dist/components/AppSectionLeadCapture.js +1 -1
- package/dist/components/AppSectionLogos.js +1 -1
- package/dist/components/AppSectionPricing.js +1 -1
- package/dist/components/AppSectionTestimonials.js +1 -1
- package/dist/components/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppSeoHead.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppSkeletonLines.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppSpinner.js +1 -1
- package/dist/components/AppSplash.js +1 -1
- package/dist/components/AppSplitButton.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppStatusBadge.js +1 -1
- package/dist/components/AppStepper.js +1 -1
- package/dist/components/AppSwitch.js +1 -1
- package/dist/components/AppTablePagination.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppTimePicker.js +1 -1
- package/dist/components/AppTimeline.js +1 -1
- package/dist/components/AppToast.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/AppTour.js +1 -1
- package/dist/components/AppTreeView.js +1 -1
- package/dist/components/AppWhatsNew.js +1 -1
- package/dist/components/AppWizard.js +1 -1
- package/dist/components/AppWorkspaceSwitcher.js +1 -1
- package/dist/components/assertValidValue.js +1 -0
- package/dist/components/toast.js +1 -1
- package/dist/components/toastStore.js +1 -1
- package/dist/guidance.json +1 -1
- package/dist/lib/buttonClass.js +1 -1
- package/dist/lib/devWarn.js +1 -1
- package/dist/lib/useFloatingStack.js +1 -1
- package/dist/types/components/assertValidValue.d.ts +15 -0
- package/dist/types/components/toastStore.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lib/buttonClass.d.ts +1 -2
- package/dist/ui-react.js +1 -1
- package/package.json +7 -7
- package/dist/components/warnInvalidValue.js +0 -1
- package/dist/types/components/warnInvalidValue.d.ts +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TONES as e}from"../lib/vocabulary.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./
|
|
1
|
+
import{TONES as e}from"../lib/vocabulary.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./assertValidValue.js";import r from"./renderIconProp.js";import i from"./warnUnknownProps.js";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";function c(r){let{marker:a,props:s}=t(`AppNavList`,r),{label:c,items:u=[],linkComponent:d,className:f=``,...p}=s;i(`AppNavList`,p);let m=d??`a`,h=e=>d?{to:e}:{href:e};return/* @__PURE__ */ o(`nav`,{className:[`wui-nav-list`,f].filter(Boolean).join(` `),"aria-label":c,...a,...p,children:u.map(t=>{if(t.divider)return/* @__PURE__ */ o(`hr`,{className:`wui-nav-list-divider`},t.key);if(n(`AppNavList`,`dotTone`,t.dotTone,e),t.icon&&t.dotTone)throw Error(`<AppNavList> item takes icon or dotTone, not both.`);let r=!!t.active,i=r?`wui-nav-list-item is-active`:`wui-nav-list-item`,a=r?`page`:void 0,s=l(t);return t.to?/* @__PURE__ */ o(m,{...h(t.to),className:i,"aria-current":a,children:s},t.key):/* @__PURE__ */ o(`button`,{type:`button`,className:i,"aria-current":a,children:s},t.key)})})}function l(e){return/* @__PURE__ */ s(a,{children:[u(e),/* @__PURE__ */ o(`span`,{className:`wui-nav-list-label`,children:e.label}),e.count>0?/* @__PURE__ */ o(`span`,{className:`wui-nav-list-count`,children:e.count}):null]})}function u(t){if(!t.dotTone)return r(t.icon,{size:18,className:`wui-nav-list-icon`});let n=e.includes(t.dotTone)?t.dotTone:`neutral`;return/* @__PURE__ */ o(`span`,{className:`wui-nav-list-dot tone-${n}`,"aria-hidden":`true`})}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{linkTarget as e}from"../lib/linkTarget.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppIcon.js";import r from"./AppTabs.js";import i from"./
|
|
1
|
+
import{linkTarget as e}from"../lib/linkTarget.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./AppIcon.js";import r from"./AppTabs.js";import i from"./assertValidValue.js";import a from"./warnUnknownProps.js";import{NOTIFICATION_TEXT as o,groupNotificationsByDay as s,notificationCountText as c,notificationTime as l,notificationTriggerLabel as u,notificationUnreadAnnouncement as d}from"@webority/ui-elements/helpers";import{useEffect as f,useId as p,useLayoutEffect as m,useRef as h,useState as g}from"react";import{Fragment as _,jsx as v,jsxs as y}from"react/jsx-runtime";import"@webority/ui-elements/elements/notification-center";var b=[`all`,`unread`,`archived`],x={all:`All`,unread:`Unread`,archived:`Archived`},S=`a, button, input, select, textarea`;function C(e){let{marker:i,props:l}=t(`AppNotificationCenter`,e),{items:_,unread:b,label:x=o.label,emptyText:S=o.empty,viewAllHref:C,defaultOpen:O=!1,now:k,onMarkAllRead:A,onItemClick:j,renderItem:M,tabs:N,onTabChange:P,onOpenChange:F,linkComponent:I,className:L=``,...R}=l;if(a(`AppNotificationCenter`,R),!Array.isArray(_))throw Error(`<AppNotificationCenter> items is required: pass the notifications, newest first.`);let z=w(N),[B,V]=g(z[0]?.key),H=z.some(e=>e.key===B)?B:z[0]?.key,U=e=>{e!==H&&(V(e),P?.(e))},W=p(),G=p(),K=h(null),q=h(F);q.current=F,f(()=>{let e=K.current,t=e=>q.current?.(e.detail.open);return e.addEventListener(`wui:notification-center:toggle`,t),()=>e.removeEventListener(`wui:notification-center:toggle`,t)},[]);let J=h(O);m(()=>{if(!J.current)return;let e=K.current;e.setAttribute(`open`,``),e.querySelector(`.wui-notification-center-trigger`)?.setAttribute(`aria-expanded`,`true`)},[]);let Y=b??_.filter(e=>!e.read&&!e.archived).length,[X,Z]=g(``),Q=h(Y);f(()=>{Q.current!==Y&&(Q.current=Y,Z(d(Y)))},[Y]);let $=s(z.length>0?T(_,H):_,k),ee=[`wui-notification-center`,L].filter(Boolean).join(` `);return/* @__PURE__ */ y(`wui-notification-center`,{ref:K,class:ee,label:x,controlled:``,...i,...R,children:[/* @__PURE__ */ y(`button`,{type:`button`,className:`topbar-icon-btn wui-notification-center-trigger`,"aria-expanded":J.current?`true`:`false`,"aria-controls":W,"aria-haspopup":`dialog`,"aria-label":u(x,Y),children:[/* @__PURE__ */ v(n,{name:`notification`,size:20}),/* @__PURE__ */ v(`span`,{className:`wui-notification-center-count`,"aria-hidden":`true`,hidden:Y===0,children:c(Y)})]}),/* @__PURE__ */ v(`span`,{className:`visually-hidden wui-notification-center-live`,"aria-live":`polite`,children:X}),/* @__PURE__ */ y(`div`,{className:`wui-notification-center-panel`,id:W,role:`dialog`,"aria-labelledby":G,tabIndex:-1,children:[/* @__PURE__ */ y(`div`,{className:`wui-notification-center-head`,children:[/* @__PURE__ */ v(`h2`,{className:`wui-notification-center-title`,id:G,children:x}),A&&/* @__PURE__ */ v(`button`,{type:`button`,className:`wui-notification-center-markall`,disabled:Y===0,onClick:A,children:o.markAll})]}),z.length>0&&/* @__PURE__ */ v(`div`,{className:`wui-notification-center-tabs`,children:/* @__PURE__ */ v(r,{tabs:z,value:H,onChange:U,size:`sm`,fitted:!0,ariaLabel:x})}),$.length===0?/* @__PURE__ */ v(`p`,{className:`wui-notification-center-empty`,children:S}):/* @__PURE__ */ v(`div`,{className:`wui-notification-center-list`,children:$.map(e=>/* @__PURE__ */ y(`section`,{"aria-labelledby":`${W}-${e.key}`,children:[/* @__PURE__ */ v(`h3`,{className:`wui-notification-center-day`,id:`${W}-${e.key}`,children:e.heading}),/* @__PURE__ */ v(`ul`,{className:`wui-notification-center-items`,children:e.items.map(e=>/* @__PURE__ */ v(`li`,{children:/* @__PURE__ */ v(D,{item:e,onItemClick:j,renderItem:M,linkComponent:I})},e.id))})]},e.key))}),C&&/* @__PURE__ */ v(E,{href:C,linkComponent:I})]})]})}function w(e){return e===!0?b.map(e=>({key:e,label:x[e]})):Array.isArray(e)?e.map(e=>(i(`AppNotificationCenter`,`tabs[].key`,e.key,b),{key:e.key,label:e.label??x[e.key]})):[]}function T(e,t){if(t===`archived`)return e.filter(e=>e.archived);let n=e.filter(e=>!e.archived);return t===`unread`?n.filter(e=>!e.read):n}function E({href:t,linkComponent:n}){let{Tag:r,linkProps:i}=e(n,{href:t}),a=r===`a`?void 0:e=>e.currentTarget.closest(`wui-notification-center`)?.close?.();return/* @__PURE__ */ v(r,{className:`wui-notification-center-foot`,...i,onClick:a,children:o.viewAll})}function D({item:t,onItemClick:r,renderItem:i,linkComponent:a}){let s=`wui-notification-center-item${t.read?` wui-notification-center-item-read`:``}`,c=!t.read&&/* @__PURE__ */ v(`span`,{className:`visually-hidden wui-notification-center-unread-label`,children:o.unreadPrefix}),u=/* @__PURE__ */ v(`span`,{className:`wui-notification-center-dot`,"aria-hidden":`true`});if(i){let e=r?e=>{e.target.closest(S)||r(t,e)}:void 0;return/* @__PURE__ */ y(`div`,{className:s,"data-id":t.id,tabIndex:-1,onClick:e,children:[u,/* @__PURE__ */ y(`span`,{className:`wui-notification-center-body`,children:[c,i(t)]})]})}let d=l(t.at),f=/* @__PURE__ */ y(_,{children:[u,t.icon&&/* @__PURE__ */ v(`span`,{className:`wui-notification-center-icon`,children:/* @__PURE__ */ v(n,{name:t.icon,size:18})}),/* @__PURE__ */ y(`span`,{className:`wui-notification-center-body`,children:[c,/* @__PURE__ */ v(`span`,{className:`wui-notification-center-item-title`,children:t.title}),t.text&&/* @__PURE__ */ v(`span`,{className:`wui-notification-center-item-text`,children:t.text}),d&&/* @__PURE__ */ v(`time`,{className:`wui-notification-center-when`,dateTime:String(t.at),children:d})]})]}),p=r?e=>r(t,e):void 0;if(t.href){let{Tag:n,linkProps:i}=e(a,{href:t.href}),o=e=>{r?.(t,e),n!==`a`&&e.currentTarget.closest(`wui-notification-center`)?.close?.()};return/* @__PURE__ */ v(n,{className:s,...i,"data-id":t.id,onClick:o,children:f})}return/* @__PURE__ */ v(`button`,{type:`button`,className:s,"data-id":t.id,onClick:p,children:f})}export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/FieldMessage.js";import{FIELD_BUSY_CLASS as t}from"../lib/fieldState.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppIcon.js";import i from"./AppInfoTip.js";import ee from"./AppRequiredMark.js";import a from"./
|
|
1
|
+
import e from"../lib/FieldMessage.js";import{FIELD_BUSY_CLASS as t}from"../lib/fieldState.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppIcon.js";import i from"./AppInfoTip.js";import ee from"./AppRequiredMark.js";import a from"./assertValidValue.js";import o from"./warnUnknownProps.js";import{forwardRef as s,useEffect as c,useId as l,useState as u}from"react";import{Form as d}from"react-bootstrap";import{jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`sm`,`md`,`lg`],h=e=>{if(e===``||e===null)return null;let t=parseFloat(e);return Number.isNaN(t)?null:t},g=(e,t)=>t>0&&Number.isFinite(e)?e.toFixed(t):String(e??``),_=s(function(s,_){let{marker:v,props:y}=n(`AppNumberInput`,s),{label:b,required:x=!1,optional:S=!1,error:C,helperText:w,help:T,helpLabel:te=`More information`,decreaseLabel:ne=`Decrease`,increaseLabel:E=`Increase`,optionalLabel:D=`(optional)`,value:O,onChange:k,min:A,max:j,step:M=1,precision:N=0,unit:P,size:F=`md`,id:re,name:ie,className:ae=``,fieldClassName:I=``,disabled:L=!1,readOnly:R=!1,loading:z=!1,defaultValue:B,...V}=y,H=R||z;o(`AppNumberInput`,V),a(`AppNumberInput`,`size`,F,m);let U=l(),W=re||U,G=e=>{if(N===0)return Math.round(e);let t=10**N;return Math.round(e*t)/t},K=e=>{let t=e;return typeof A==`number`&&(t=Math.max(t,A)),typeof j==`number`&&(t=Math.min(t,j)),t},q=e=>g(e,N),[J,Y]=u(()=>q(O??B));c(()=>{let e=O??B;Y(t=>h(t)===(e??null)?t:g(e,N))},[O,B,N]);let X=e=>{let t=(h(J)??K(0))+e*M,n=K(G(t));Y(q(n)),k?.(n)},Z=h(J),oe=L||R||z||Z!==null&&typeof A==`number`&&Z<=A,se=L||R||z||Z!==null&&typeof j==`number`&&Z>=j,Q=C&&W?`${W}-error`:void 0,$=w&&W?`${W}-hint`:void 0,ce=Q||$,le=[`input`,F===`sm`?`input-sm`:``,F===`lg`?`input-lg`:``,C?`error`:``,`num-input`,ae,z?t:``].filter(Boolean).join(` `),ue=RegExp(`^${typeof A==`number`&&A>=0?``:`-?`}\\d*${N>0?`(\\.\\d*)?`:``}$`),de=e=>{let t=e.target.value;if(!ue.test(t))return;Y(t);let n=h(t);n!==null&&k?.(n)},fe=e=>{if(H){V.onBlur?.(e);return}let t=h(e.target.value);if(t===null)Y(``),k?.(null);else{let e=K(G(t));Y(q(e)),k?.(e)}V.onBlur?.(e)},pe=e=>{H||(e.key===`ArrowUp`?(e.preventDefault(),X(1)):e.key===`ArrowDown`&&(e.preventDefault(),X(-1))),V.onKeyDown?.(e)},me=/* @__PURE__ */ f(d.Control,{...V,id:W,name:ie,type:`text`,inputMode:N>0?`decimal`:`numeric`,className:le,disabled:L,readOnly:H,"aria-busy":z||void 0,required:x,"aria-invalid":C?`true`:`false`,"aria-describedby":ce,value:J,ref:_,onChange:de,onBlur:fe,onKeyDown:pe}),he=[`num-wrap`,F===`sm`?`num-wrap-sm`:``,F===`lg`?`num-wrap-lg`:``].filter(Boolean).join(` `),ge=/* @__PURE__ */ p(`div`,{className:he,children:[/* @__PURE__ */ f(`button`,{type:`button`,className:`num-btn`,"aria-label":ne,tabIndex:-1,disabled:oe,onClick:()=>X(-1),children:/* @__PURE__ */ f(r,{name:`minus`,size:16})}),me,P&&/* @__PURE__ */ f(`span`,{className:`affix`,children:P}),/* @__PURE__ */ f(`button`,{type:`button`,className:`num-btn`,"aria-label":E,tabIndex:-1,disabled:se,onClick:()=>X(1),children:/* @__PURE__ */ f(r,{name:`plus`,size:16})})]});return/* @__PURE__ */ p(d.Group,{...v,className:`field${I?` ${I}`:``}`,children:[b&&/* @__PURE__ */ p(d.Label,{className:`label`,htmlFor:W,children:[b,S&&!x&&/* @__PURE__ */ f(`span`,{className:`label-optional`,children:` ${D}`}),x&&/* @__PURE__ */ f(ee,{}),T&&/* @__PURE__ */ f(i,{label:te,children:T})]}),ge,/* @__PURE__ */ f(e,{error:C,hint:w,errorId:Q,hintId:$})]})});export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppActionIcon.js";import n from"./AppIcon.js";import r from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppActionIcon.js";import n from"./AppIcon.js";import r from"./assertValidValue.js";import i from"./warnUnknownProps.js";import{useCallback as a,useId as o,useRef as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import"@webority/ui-elements/elements/onboarding-checklist";var u=[`done`,`current`,`skipped`,`todo`],d={done:`Done: `,skipped:`Skipped: `};function f(e){let t=e.map(e=>u.includes(e.status)?e.status:`todo`);if(!t.includes(`current`)){let e=t.indexOf(`todo`);e>=0&&(t[e]=`current`)}return t}function p(e,t){return e===`done`?/* @__PURE__ */ c(n,{name:`check`,size:14}):e===`skipped`?/* @__PURE__ */ c(n,{name:`minus`,size:14}):t+1}function m(e,t){return e.href?t?/* @__PURE__ */ c(t,{className:`wui-onboarding-label`,to:e.href,children:e.label}):/* @__PURE__ */ c(`a`,{className:`wui-onboarding-label`,href:e.href,children:e.label}):/* @__PURE__ */ c(`span`,{className:`wui-onboarding-label`,children:e.label})}function h(h){let{marker:g,props:_}=e(`AppOnboardingChecklist`,h),{steps:v=[],title:y=`Get started`,defaultCollapsed:b,defaultDismissed:x=!1,storageKey:S,dismissLabel:C=`Dismiss checklist`,restoreLabel:w=`Show setup checklist`,onClose:T,onRestore:E,onCollapsedChange:D,linkComponent:O,className:k=``,...A}=_;i(`AppOnboardingChecklist`,A);for(let e of v)r(`AppOnboardingChecklist`,`steps[].status`,e.status,u);let j=o().replace(/[^a-zA-Z0-9_-]/g,``),M=`wui-onboarding-${j}-title`,N=`wui-onboarding-${j}-steps`,P=v.length===0,F=s(null);F.current={onClose:T,onRestore:E,onCollapsedChange:D};let I=a(e=>{if(!e)return;let t=()=>F.current.onClose?.(),n=()=>F.current.onRestore?.(),r=e=>F.current.onCollapsedChange?.(e.detail.collapsed);return e.addEventListener(`wui:onboarding:dismiss`,t),e.addEventListener(`wui:onboarding:restore`,n),e.addEventListener(`wui:onboarding:collapse`,r),()=>{e.removeEventListener(`wui:onboarding:dismiss`,t),e.removeEventListener(`wui:onboarding:restore`,n),e.removeEventListener(`wui:onboarding:collapse`,r)}},[]);if(P)return null;let L=f(v),R=L.filter(e=>e===`done`).length,z=L.filter(e=>e===`skipped`).length,B=R+z===v.length,V=b??B,H=`${R} of ${v.length} done${z?`, ${z} skipped`:``}`;return/* @__PURE__ */ l(`wui-onboarding-checklist`,{ref:I,class:[`wui-onboarding`,B?`is-complete`:``,k].filter(Boolean).join(` `),"storage-key":S||void 0,...g,...A,children:[/* @__PURE__ */ l(`section`,{className:`wui-onboarding-card`,"aria-labelledby":M,hidden:x||void 0,children:[/* @__PURE__ */ l(`header`,{className:`wui-onboarding-head`,children:[/* @__PURE__ */ l(`button`,{type:`button`,className:`wui-onboarding-toggle`,"aria-expanded":!V,"aria-controls":N,children:[/* @__PURE__ */ c(`span`,{className:`wui-onboarding-title`,id:M,children:y}),/* @__PURE__ */ c(`span`,{className:`wui-onboarding-count`,children:H}),/* @__PURE__ */ c(`span`,{className:`wui-onboarding-chevron`,"aria-hidden":`true`,children:/* @__PURE__ */ c(n,{name:`chevron-down`,size:16})})]}),/* @__PURE__ */ c(t,{icon:`x`,label:C,size:16,className:`wui-onboarding-dismiss`})]}),/* @__PURE__ */ c(`div`,{className:`wui-onboarding-bar`,role:`progressbar`,"aria-labelledby":M,"aria-valuemin":0,"aria-valuemax":v.length,"aria-valuenow":R,"aria-valuetext":H,children:L.map((e,t)=>/* @__PURE__ */ c(`span`,{className:`wui-onboarding-seg is-${e}`},v[t].key??`${v[t].label}-${t}`))}),/* @__PURE__ */ c(`ol`,{className:`wui-onboarding-steps`,id:N,hidden:V||void 0,children:v.map((e,t)=>{let n=L[t];return/* @__PURE__ */ l(`li`,{className:`wui-onboarding-step is-${n}`,"aria-current":n===`current`?`step`:void 0,children:[/* @__PURE__ */ c(`span`,{className:`wui-onboarding-mark`,"aria-hidden":`true`,children:p(n,t)}),/* @__PURE__ */ l(`span`,{className:`wui-onboarding-body`,children:[d[n]?/* @__PURE__ */ c(`span`,{className:`visually-hidden`,children:d[n]}):null,m(e,O),e.description?/* @__PURE__ */ c(`span`,{className:`wui-onboarding-desc`,children:e.description}):null]})]},e.key??`${e.label}-${t}`)})})]}),/* @__PURE__ */ l(`button`,{type:`button`,className:`wui-onboarding-restore`,hidden:!x||void 0,children:[/* @__PURE__ */ c(n,{name:`task-square`,size:16}),/* @__PURE__ */ c(`span`,{children:w}),/* @__PURE__ */ c(`span`,{className:`wui-onboarding-count`,children:H})]})]})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/FieldMessage.js";import{FIELD_SIZES as t}from"../lib/fieldState.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./
|
|
1
|
+
import e from"../lib/FieldMessage.js";import{FIELD_SIZES as t}from"../lib/fieldState.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./assertValidValue.js";import o from"./useWuiControl.js";import s from"./warnUnknownProps.js";import{cloneElement as c,forwardRef as l,useId as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import"@webority/ui-elements/elements/otp";var p=[`numeric`,`alphanumeric`],m=l(function(l,m){let{marker:h,props:g}=n(`AppOtpInput`,l),{value:_,defaultValue:v,onChange:y,onComplete:b,length:x=6,mode:S=`numeric`,size:C=`md`,label:w,required:T=!1,optional:E=!1,optionalLabel:D=`(optional)`,helperText:O,help:k,helpLabel:A=`More information`,error:j,disabled:M=!1,readOnly:N=!1,loading:P=!1,name:F,id:I,className:L=``,fieldClassName:R=``,...z}=g;s(`AppOtpInput`,z),a(`AppOtpInput`,`mode`,S,p),a(`AppOtpInput`,`size`,C,t);let B=u(),V=I||B,H=j?`${V}-error`:void 0,U=O?`${V}-hint`:void 0,W=H||U,{setRef:G}=o({ref:m,value:_??(v===void 0?``:void 0),onChange:y,on:{complete:e=>b?.(e.detail)}}),K=/* @__PURE__ */ d(`wui-otp`,{"aria-label":typeof w==`string`?w:void 0,ref:G,id:V,name:F,length:String(x),mode:S,size:C===`md`?void 0:C,value:(_??v)||void 0,"aria-describedby":W,"aria-invalid":j?`true`:void 0,disabled:M?``:void 0,readonly:N?``:void 0,loading:P?``:void 0,required:T?``:void 0,className:L||void 0,...z});return!w&&!j&&!O?c(K,h):/* @__PURE__ */ f(`div`,{...h,className:`field${R?` ${R}`:``}`,children:[w&&/* @__PURE__ */ f(`label`,{className:`label`,htmlFor:V,children:[w,E&&!T&&/* @__PURE__ */ d(`span`,{className:`label-optional`,children:` ${D}`}),T&&/* @__PURE__ */ d(i,{}),k&&/* @__PURE__ */ d(r,{label:A,children:k})]}),K,/* @__PURE__ */ d(e,{error:j,hint:O,errorId:H,hintId:U})]})});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{devError as e}from"../lib/devWarn.js";import{TONES as t}from"../lib/vocabulary.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import{BreadcrumbTrailContext as ee}from"./AppBreadcrumbs.js";import te from"./AppIcon.js";import r from"./assertValidValue.js";import i from"./warnUnknownProps.js";import{formatNumber as a}from"@webority/ui-elements/helpers";import{useEffect as o,useState as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";var u=[`sm`,`md`,`lg`,`bar`],d=[`start`,`center`],f=[`inline`,`below`],p=[`below`,`inline`],m=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],h={views:`tabs (app-tabs) under the header`,tools:`filters in the table toolbar (app-table-toolbar)`,meta:`facts in the header's description or a fact list below it`,bulk:`bulk actions in the table toolbar's bulk slot`},g=()=>{try{return process.env.NODE_ENV!==`production`}catch{return!0}},_=e=>e!=null&&e!==!1&&e!==``;function v(v){let{marker:y,props:b}=n(`AppPageHeader`,v),{title:x,titleSlot:S,as:C=`h1`,subtitle:w,eyebrow:T,icon:E,tone:D=`primary`,status:O,breadcrumbs:k,actions:A,views:j,tools:M,meta:N,metaPlacement:P=`inline`,subtitlePlacement:F=`below`,bulkFor:I,bulk:L,size:R=`md`,align:z=`start`,divider:B=!1,sticky:V=!1,className:H=``,...U}=b;if(i(`AppPageHeader`,U),r(`AppPageHeader`,`tone`,D,t.filter(e=>e!==`neutral`)),r(`AppPageHeader`,`size`,R,u),r(`AppPageHeader`,`align`,z,d),r(`AppPageHeader`,`as`,C,m),r(`AppPageHeader`,`metaPlacement`,P,f),r(`AppPageHeader`,`subtitlePlacement`,F,p),R!==`bar`&&g()){let t={views:j,tools:M,meta:N,bulk:L};for(let n of Object.keys(h))_(t[n])&&e(`app-page-header-${n} is drawn only when size="bar". On a ${R} header, put ${h[n]} instead.`)}let W=m.includes(C)?C:`h1`,G=R===`bar`,K=G&&P===`below`,q=!G&&F===`inline`,J=[`page-header`,R&&R!==`md`?`page-header-${R}`:``,z===`center`?`page-header-center`:``,B?`page-header-divider`:``,V?`page-header-sticky`:``,D&&D!==`primary`?`tone-${D}`:``,K?`wui-page-header-meta-below`:``,q?`wui-page-header-subtitle-inline`:``,H].filter(Boolean).join(` `),[Y,ne]=s(0),X=G?I:void 0;o(()=>{if(!X)return;document.getElementById(X)?.setAttribute(`data-wui-bulk-in-bar`,``);let e=e=>{typeof e.detail?.selected==`number`&&document.getElementById(X)?.contains(e.target)&&ne(e.detail.selected)};return document.addEventListener(`selectionchange`,e),()=>{document.removeEventListener(`selectionchange`,e),document.getElementById(X)?.removeAttribute(`data-wui-bulk-in-bar`)}},[X]);let Z=x!=null||S!=null?/* @__PURE__ */ c(W,{className:S==null?`page-title`:`page-title wui-page-title-slot`,"aria-label":S!=null&&typeof x==`string`&&x!==``?x:void 0,children:S??x}):null;if(G)return/* @__PURE__ */ l(`header`,{className:J,"data-wui-page-header-bar":``,"data-wui-bulk-for":I||void 0,...y,...U,children:[k!=null&&/* @__PURE__ */ c(ee.Provider,{value:!0,children:/* @__PURE__ */ c(`div`,{className:`page-header-bar-crumbs`,children:k})}),Z,O!=null&&/* @__PURE__ */ c(`span`,{className:`page-status`,children:O}),j!=null&&/* @__PURE__ */ c(`div`,{className:`page-header-bar-views`,"data-wui-bar-swap":``,hidden:I&&Y>0?!0:void 0,children:j}),/* @__PURE__ */ c(`span`,{className:`page-header-bar-spacer`,"aria-hidden":`true`}),N!=null&&!K&&/* @__PURE__ */ c(`div`,{className:`page-header-bar-meta`,children:N}),M!=null&&/* @__PURE__ */ c(`div`,{className:`page-header-bar-tools`,"data-wui-bar-swap":``,hidden:I&&Y>0?!0:void 0,children:M}),I?/* @__PURE__ */ l(`div`,{className:`page-header-bar-bulk`,"data-wui-bar-bulk":``,hidden:Y===0||void 0,children:[/* @__PURE__ */ c(`span`,{className:`page-header-bar-bulk-count`,"aria-live":`polite`,children:Y>0?`${a(Y,{decimals:0})} selected`:``}),L]}):null,A!=null&&/* @__PURE__ */ c(`div`,{className:`page-actions`,children:A}),N!=null&&K&&/* @__PURE__ */ c(`div`,{className:`page-header-bar-meta`,children:N})]});let Q=E==null?null:typeof E==`string`?/* @__PURE__ */ c(te,{name:E,size:20}):E,$=w==null?null:/* @__PURE__ */ c(`div`,{className:`page-subtitle`,children:w});return/* @__PURE__ */ l(`div`,{className:J,...y,...U,children:[k!=null&&/* @__PURE__ */ c(`div`,{className:`page-breadcrumbs`,children:k}),/* @__PURE__ */ l(`div`,{className:`page-header-bar`,children:[/* @__PURE__ */ l(`div`,{className:`page-header-lead`,children:[Q!=null&&/* @__PURE__ */ c(`span`,{className:`page-header-icon`,children:Q}),/* @__PURE__ */ l(`div`,{className:`page-header-titles`,children:[T!=null&&/* @__PURE__ */ c(`div`,{className:`page-eyebrow`,children:T}),/* @__PURE__ */ l(`div`,{className:`page-titlebar`,children:[Z,O!=null&&/* @__PURE__ */ c(`span`,{className:`page-status`,children:O}),q&&$]}),!q&&$]})]}),A!=null&&/* @__PURE__ */ c(`div`,{className:`page-actions`,children:A})]})]})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/FieldMessage.js";import{loadFlagStyles as t}from"../lib/flagStyles.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./
|
|
1
|
+
import e from"../lib/FieldMessage.js";import{loadFlagStyles as t}from"../lib/flagStyles.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./assertValidValue.js";import o from"./useWuiControl.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/phone";var p=[`sm`,`md`,`lg`],m=c(function(c,m){let{marker:h,props:g}=n(`AppPhoneNumberInput`,c),{value:_,onChange:v,country:y,lockedCountry:b,disabled:x=!1,readOnly:S=!1,loading:C=!1,defaultValue:w,help:T,helpLabel:E=`More information`,name:D,id:O,label:k=`Phone number`,placeholder:A,required:j=!1,optional:M=!1,optionalLabel:N=`(optional)`,helperText:P,error:F,showFlag:I=!0,showDialCode:L=!0,size:R=`md`,fieldClassName:z=``,...B}=g;s(`AppPhoneNumberInput`,B),a(`AppPhoneNumberInput`,`size`,R,p),l(()=>{I&&t()},[I]);let V=u(),H=O||V,U=F&&H?`${H}-error`:void 0,W=!F&&P&&H?`${H}-hint`:void 0,{setRef:G}=o({ref:m,value:_??(w===void 0?``:void 0),defaultValue:w,onChange:v,events:[`input`,`change`]});return/* @__PURE__ */ f(`div`,{...h,className:`field app-phone-number-input${R===`sm`?` phone-sm`:``}${R===`lg`?` phone-lg`:``}${z?` ${z}`:``}`,children:[k&&/* @__PURE__ */ f(`label`,{className:`label`,htmlFor:H,children:[k,M&&!j&&/* @__PURE__ */ d(`span`,{className:`label-optional`,children:` ${N}`}),j&&/* @__PURE__ */ d(i,{}),T&&/* @__PURE__ */ d(r,{label:E,children:T})]}),/* @__PURE__ */ d(`wui-phone`,{ref:G,id:H,name:D,"aria-label":typeof k==`string`?k:void 0,"aria-describedby":U||W,"aria-invalid":F?`true`:void 0,country:b||y,"locked-country":b||void 0,placeholder:A,required:j?``:void 0,disabled:x?``:void 0,readonly:S?``:void 0,loading:C?``:void 0,"hide-flag":I?void 0:``,"hide-dial":L?void 0:``,"external-error":``,...B}),/* @__PURE__ */ d(e,{error:F,hint:P,errorId:U,hintId:W})]})});export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/FocusPanel.js";import t from"./
|
|
1
|
+
import e from"../lib/FocusPanel.js";import t from"./assertValidValue.js";import ee from"./warnUnknownProps.js";import{cloneElement as n,useCallback as r,useEffect as i,useId as a,useRef as o,useState as s}from"react";import{OverlayTrigger as te,Popover as c}from"react-bootstrap";import{jsx as l,jsxs as u}from"react/jsx-runtime";var d={start:`left`,end:`right`,top:`top`,bottom:`bottom`,auto:`auto`},f={modifiers:[{name:`computeStyles`,options:{gpuAcceleration:!1}}]},p=[`dialog`];function m({trigger:m,children:h,title:g,placement:_=`bottom`,triggerType:v=`click`,onOpenChange:y,className:b=``,open:x,role:S,labelledBy:C,autoFocus:w=!1,openDelay:T=80,closeDelay:E=220,...D}){ee(`AppPopover`,D),t(`AppPopover`,`role`,S,p);let O=a(),k=`${O}-title`,A=o(null),[j,M]=s(null),N=m.props.ref,ne=r(e=>{M(e),typeof N==`function`?N(e):N&&(N.current=e)},[N]),[P,F]=s(!1),I=x!==void 0,L=I?x:P,R=S===`dialog`,z=v===`hover`||Array.isArray(v)&&v.includes(`hover`),B=z&&!I,V=L&&j!==null,H=o(null),U=o(P);U.current=P;let W=()=>{clearTimeout(H.current),H.current=null},G=(e,t)=>{W(),H.current=setTimeout(()=>{H.current=null,e!==U.current&&(F(e),y?.(e))},t)};i(()=>()=>clearTimeout(H.current),[]),i(()=>{if(!B||!P)return;let e=e=>{e.key===`Escape`&&(clearTimeout(H.current),H.current=null,F(!1),y?.(!1))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[B,P,y]);let K=e=>{B?G(e,e?T:E):(I||F(e),y?.(e))},q=R?{role:`dialog`,"aria-modal":`false`,"aria-labelledby":C??(g?k:void 0)}:{},J=B?{onMouseEnter:W,onMouseLeave:()=>G(!1,E),onFocus:W,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||G(!1,E)}}:{},Y=/* @__PURE__ */ u(c,{id:O,className:b||void 0,...q,...J,children:[w&&/* @__PURE__ */ l(e,{triggerRef:A}),g&&/* @__PURE__ */ l(c.Header,{as:`div`,id:k,children:g}),h==null?null:/* @__PURE__ */ l(c.Body,{children:h})]}),{onClick:X,"aria-expanded":Z,...re}=D,Q=m.props[`aria-expanded`],$,ie=v===`click`||Array.isArray(v)&&v.includes(`click`);Z===void 0?Q===void 0?ie&&($=L):$=Q:$=Z;let ae=n(m,{...re,...$===void 0?{}:{"aria-expanded":$},ref:ne,onClick:e=>{A.current=e.currentTarget,X?.(e),typeof m.props.onClick==`function`&&m.props.onClick(e)}}),oe=v===`click`;return/* @__PURE__ */ l(te,{trigger:v,placement:d[_]||_,popperConfig:f,overlay:Y,rootClose:oe||R,delay:I&&z?{show:T,hide:E}:void 0,onToggle:K,...I||z?{show:V}:{},children:ae})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TONES as e}from"../lib/vocabulary.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./
|
|
1
|
+
import{TONES as e}from"../lib/vocabulary.js";import{splitMarkerProps as t}from"../lib/wuiMarker.js";import n from"./assertValidValue.js";import r from"./warnUnknownProps.js";import{cloneElement as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";var s=[`sm`,`md`];function c(e,t){if(!(t>0))return 0;let n=Math.min(100,Math.max(0,e/t*100));return Number(n.toFixed(2))}function l(l){let{marker:u,props:d}=t(`AppProgress`,l),{value:f=0,max:p=100,tone:m=`info`,size:h=`md`,label:g,showLabel:_=!1,striped:v=!1,animated:y=!1,indeterminate:b=!1,className:x=``,...S}=d;r(`AppProgress`,S),n(`AppProgress`,`tone`,m,e),n(`AppProgress`,`size`,h,s);let C=e.includes(m)?m:`info`,w=c(f,p),T=!b&&_&&!!g,E=`progress${h===`sm`?` progress-sm`:``}${!T&&x?` ${x}`:``}`,D=[`progress-bar`,`wui-progress-${C}`,v||y?`progress-bar-striped`:``,y?`progress-bar-animated`:``,b?`wui-progress-indeterminate`:``].filter(Boolean).join(` `),O=/* @__PURE__ */ a(`div`,{className:E,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":p,...b?{}:{"aria-valuenow":f},"aria-label":g||void 0,...S,children:/* @__PURE__ */ a(`div`,{className:D,style:b?void 0:{width:`${w}%`}})});return T?/* @__PURE__ */ o(`div`,{...u,className:`wui-progress-labelled${x?` ${x}`:``}`,children:[/* @__PURE__ */ a(`div`,{className:`wui-progress-label`,"aria-hidden":`true`,children:g}),O]}):i(O,u)}export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/CheckField.js";import{FIELD_SIZES as t}from"../lib/fieldState.js";import n from"../lib/labelWithHelp.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./
|
|
1
|
+
import e from"../lib/CheckField.js";import{FIELD_SIZES as t}from"../lib/fieldState.js";import n from"../lib/labelWithHelp.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./assertValidValue.js";import a from"./warnUnknownProps.js";import{forwardRef as o}from"react";import{jsx as s}from"react/jsx-runtime";var c=o(function(o,c){let{marker:l,props:u}=r(`AppRadio`,o),{label:d,id:f,name:p,error:m,helperText:h,help:g,helpLabel:_=`More information`,className:v=``,readOnly:y=!1,loading:b=!1,size:x=`md`,...S}=u;return a(`AppRadio`,S),i(`AppRadio`,`size`,x,t),/* @__PURE__ */ s(e,{rootProps:l,ref:c,label:n(d,g,_),id:f,name:p,error:m,hint:h,className:v,rest:S,inputType:`radio`,wrapperClass:`form-check`,readOnly:y,loading:b,size:x})});export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/FieldMessage.js";import{FIELD_BUSY_CLASS as t,FIELD_SIZES as n,blockWhenReadOnly as r}from"../lib/fieldState.js";import{splitMarkerProps as i}from"../lib/wuiMarker.js";import a from"./AppInfoTip.js";import o from"./AppRequiredMark.js";import s from"./
|
|
1
|
+
import e from"../lib/FieldMessage.js";import{FIELD_BUSY_CLASS as t,FIELD_SIZES as n,blockWhenReadOnly as r}from"../lib/fieldState.js";import{splitMarkerProps as i}from"../lib/wuiMarker.js";import a from"./AppInfoTip.js";import o from"./AppRequiredMark.js";import s from"./assertValidValue.js";import c from"./warnUnknownProps.js";import{useId as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";var f=[`default`,`card`];function p(p){let{marker:m,props:h}=i(`AppRadioGroup`,p),{label:g,options:_=[],name:v,value:y,defaultValue:b,onChange:x,variant:S=`default`,inline:C=!1,required:w=!1,optional:T=!1,optionalLabel:E=`(optional)`,disabled:D=!1,readOnly:O=!1,loading:k=!1,size:A=`md`,error:j,helperText:M,help:N,helpLabel:P=`More information`,id:F,className:I=``,fieldClassName:L=``,style:R,...z}=h;c(`AppRadioGroup`,z),s(`AppRadioGroup`,`variant`,S,f),s(`AppRadioGroup`,`size`,A,n);let B=A===`sm`?` form-check-sm`:A===`lg`?` form-check-lg`:``,V=l(),H=F||V,U=v||H,W=`${H}-error`,G=`${H}-hint`,K=y!==void 0;return/* @__PURE__ */ d(`div`,{...m,className:`field${L?` ${L}`:``}`,children:[g!=null&&/* @__PURE__ */ d(`span`,{className:`label`,id:`${H}-label`,children:[g,T&&!w&&/* @__PURE__ */ u(`span`,{className:`label-optional`,children:` ${E}`}),w&&/* @__PURE__ */ u(o,{}),N&&/* @__PURE__ */ u(a,{label:P,children:N})]}),/* @__PURE__ */ u(`div`,{className:[`wui-radio-group`,S===`card`?`wui-radio-group-card`:``,C?`wui-radio-group-inline`:``,I].filter(Boolean).join(` `),style:R,id:H,role:`radiogroup`,"aria-labelledby":g==null?void 0:`${H}-label`,"aria-required":w?`true`:void 0,"aria-readonly":O||void 0,"aria-busy":k||void 0,"aria-invalid":j?`true`:void 0,"aria-describedby":j?W:M?G:void 0,...z,children:_.map((e,n)=>{let i=`${H}-${n}`,a=e.description==null?void 0:`${i}-desc`;return/* @__PURE__ */ d(`div`,{className:`form-check${B}`,children:[/* @__PURE__ */ u(`input`,{type:`radio`,className:k?`form-check-input ${t}`:`form-check-input`,id:i,name:U,value:e.value,disabled:D||e.disabled||void 0,required:w||void 0,"aria-describedby":a,"aria-readonly":O||void 0,"aria-busy":k||void 0,onClick:r(O||k),...K?{checked:y===e.value,onChange:()=>x?.(e.value)}:{defaultChecked:b===e.value,onChange:()=>x?.(e.value)}}),/* @__PURE__ */ u(`label`,{className:`form-check-label`,htmlFor:i,children:e.label}),a&&/* @__PURE__ */ u(`div`,{className:`wui-radio-option-desc`,id:a,children:e.description})]},e.value)})}),/* @__PURE__ */ u(e,{error:j,hint:M,errorId:W,hintId:G})]})}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../lib/FieldMessage.js";import{blockWhenReadOnly as t}from"../lib/fieldState.js";import n from"../lib/fillLabel.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./AppIcon.js";import ee from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import o from"./
|
|
1
|
+
import e from"../lib/FieldMessage.js";import{blockWhenReadOnly as t}from"../lib/fieldState.js";import n from"../lib/fillLabel.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import i from"./AppIcon.js";import ee from"./AppInfoTip.js";import a from"./AppRequiredMark.js";import o from"./assertValidValue.js";import s from"./warnUnknownProps.js";import{useId as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import"@webority/ui-elements/elements/rating";var f={sm:16,md:20,lg:28},p=e=>String(Math.round(e*100)/100),m=(e,t,n)=>e>=t?`full`:n&&e>=t-.5?`half`:`empty`;function h(i){let{marker:h,props:_}=r(`AppRating`,i),{value:v,defaultValue:y,onChange:b,max:x=5,readOnly:S=!1,half:C=!1,showValue:w=!1,size:T=`md`,label:E,help:D,helpLabel:O=`More information`,ratingLabel:k=`Rating`,starLabel:A=`{count} star`,starsLabel:j=`{count} stars`,valueText:M=`{value} out of {max}`,name:N,required:P=!1,disabled:F=!1,loading:I=!1,error:L,helperText:R,id:z,className:B=``,fieldClassName:V=``,...H}=_;s(`AppRating`,H),o(`AppRating`,`size`,T,Object.keys(f));let U=c(),[W,G]=l(y),K=f[T]??f.md,q=Array.from({length:x},(e,t)=>t+1),J=(...e)=>[`wui-rating`,`wui-rating-${T}`,...e,B].filter(Boolean).join(` `);if(S){let e=v===void 0?W:v,t=Number.isFinite(Number(e))?Math.min(Math.max(Number(e),0),x):0,r=C?Math.round(t*2)/2:Math.round(t),i=`${typeof E==`string`&&E?`${E}: `:``}${n(M,{value:p(t),max:x})}`;return/* @__PURE__ */ d(`span`,{className:J(`wui-rating-display`,I&&`wui-field-busy`),id:z,role:`img`,"aria-label":i,"aria-busy":I||void 0,...h,...H,children:[/* @__PURE__ */ u(`span`,{className:`wui-rating-stars`,"aria-hidden":`true`,children:q.map(e=>/* @__PURE__ */ u(`span`,{className:`wui-rating-star wui-rating-star-${m(r,e,C)}`,children:/* @__PURE__ */ u(g,{px:K})},e))}),w&&/* @__PURE__ */ u(`span`,{className:`wui-rating-value`,"aria-hidden":`true`,children:p(t)})]})}let Y=z||U,X=N||Y,Z=`${Y}-error`,Q=`${Y}-hint`,$=Math.round(Number(v===void 0?W:v))||0,te=e=>{I||(G(e),b?.(e))};return/* @__PURE__ */ d(`div`,{...h,className:`field${V?` ${V}`:``}`,children:[E!=null&&/* @__PURE__ */ d(`span`,{className:`label`,id:`${Y}-label`,children:[E,P&&/* @__PURE__ */ u(a,{}),D&&/* @__PURE__ */ u(ee,{label:O,children:D})]}),/* @__PURE__ */ u(`wui-rating`,{class:J(`wui-rating-input`,I&&`wui-field-busy`),id:Y,role:`radiogroup`,"aria-busy":I?`true`:void 0,"aria-labelledby":E==null?void 0:`${Y}-label`,"aria-label":E==null?k:void 0,"aria-required":P?`true`:void 0,"aria-invalid":L?`true`:void 0,"aria-describedby":L?Z:R?Q:void 0,disabled:F?``:void 0,...H,children:q.map(e=>/* @__PURE__ */ d(`label`,{className:`wui-rating-star wui-rating-star-${$>=e?`full`:`empty`}`,"data-value":e,children:[/* @__PURE__ */ u(`input`,{type:`radio`,className:`visually-hidden`,name:X,value:e,"aria-label":n(e===1?A:j,{count:e}),checked:$===e,onChange:()=>te(e),onClick:t(S||I),disabled:F||void 0,required:P||void 0}),/* @__PURE__ */ u(g,{px:K})]},e))}),/* @__PURE__ */ u(e,{error:L,hint:R,errorId:Z,hintId:Q})]})}function g({px:e}){return/* @__PURE__ */ d(`span`,{className:`wui-rating-glyphs`,"aria-hidden":`true`,children:[/* @__PURE__ */ u(i,{name:`star`,size:e}),/* @__PURE__ */ u(`span`,{className:`wui-rating-fill`,children:/* @__PURE__ */ u(i,{name:`star`,variant:`bold`,size:e})})]})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./assertValidValue.js";import n from"./warnUnknownProps.js";import{createContext as r,useEffect as i,useRef as a}from"react";import{jsx as o}from"react/jsx-runtime";import"@webority/ui-elements/elements/resizable";var s=[`horizontal`,`vertical`],c=r(`horizontal`);function l(r){let{marker:l,props:u}=e(`AppResizable`,r),{direction:d=`horizontal`,storageKey:f,onChange:p,children:m,className:h=``,...g}=u;n(`AppResizable`,g),t(`AppResizable`,`direction`,d,s);let _=a(null),v=d===`vertical`;return i(()=>{let e=_.current;if(!e||!p)return;let t=t=>{t.target===e&&p(t.detail.sizes)};return e.addEventListener(`wui-resizable:change`,t),()=>e.removeEventListener(`wui-resizable:change`,t)},[p]),/* @__PURE__ */ o(c.Provider,{value:v?`vertical`:`horizontal`,children:/* @__PURE__ */ o(`wui-resizable`,{ref:_,class:[`wui-resizable`,h].filter(Boolean).join(` `),direction:v?`vertical`:`horizontal`,"storage-key":f||void 0,...l,...g,children:m})})}export{c as ResizableDirection,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./assertValidValue.js";import n from"./renderIconProp.js";import r from"./warnUnknownProps.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";var o={success:{icon:`check-circle`,tone:`success`},error:{icon:`x-circle`,tone:`danger`},warning:{icon:`alert-triangle`,tone:`warning`},info:{icon:`info`,tone:`info`},403:{tone:`muted`},404:{tone:`muted`},500:{tone:`muted`}};function s(s){let{marker:c,props:l}=e(`AppResult`,s),{status:u=`info`,title:d,subtitle:f,icon:p,actions:m,children:h,headingLevel:g=2,className:_=``,...v}=l;r(`AppResult`,v),t(`AppResult`,`status`,u,Object.keys(o)),t(`AppResult`,`headingLevel`,g,[1,2,3]);let y=[1,2,3].includes(g)?`h${g}`:`h2`,b=o[u]||o.info,x=b.tone,S=/^\d+$/.test(u),C=p??(S?null:b.icon),w=[`result`,`result-${x}`,_].filter(Boolean).join(` `);return/* @__PURE__ */ a(`div`,{className:w,...c,...v,children:[S?/* @__PURE__ */ i(`div`,{className:`result-code`,"aria-hidden":`true`,children:u}):C?/* @__PURE__ */ i(`div`,{className:`result-icon`,children:n(C,{size:48})}):null,d!=null&&/* @__PURE__ */ i(y,{className:`result-title`,children:d}),f!=null&&/* @__PURE__ */ i(`div`,{className:`result-subtitle`,children:f}),m&&/* @__PURE__ */ i(`div`,{className:`result-actions`,children:m}),h&&/* @__PURE__ */ i(`div`,{className:`result-extra`,children:h})]})}export{s as default};
|
|
@@ -1 +1 @@
|
|
|
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"./
|
|
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"./assertValidValue.js";import o from"./useWuiControl.js";import s from"./warnUnknownProps.js";import{forwardRef as c,useEffect as l,useId as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";var m=[`html`,`markdown`],h=[`input`,`change`],g=`The editor couldn't load. Reload the page and try again.`,_=c(function(c,_){let{marker:v,props:y}=n(`AppRichText`,c),{value:b,onChange:x,format:S,placeholder:C,name:w,label:T,error:E,helperText:D,required:O=!1,disabled:k=!1,readOnly:A=!1,loading:j=!1,defaultValue:M,id:N,ariaLabel:P,className:F=``,fieldClassName:I=``,help:L,helpLabel:R=`More information`,...z}=y;s(`AppRichText`,z),a(`AppRichText`,`format`,S,m);let B=u(),V=N||B,[H,U]=d(!1),{setRef:W}=o({ref:_,value:b,defaultValue:M,onChange:x,events:h});return l(()=>{let t=!0;return import(`@webority/ui-elements/rich-text`).catch(n=>{e(`[AppRichText] the editor failed to load:`,n?.message),t&&U(!0)}),()=>{t=!1}},[]),/* @__PURE__ */ p(`div`,{...v,className:`field${I?` ${I}`:``}`,children:[T&&/* @__PURE__ */ p(`label`,{className:`label`,htmlFor:V,children:[T,O&&/* @__PURE__ */ f(i,{}),L&&/* @__PURE__ */ f(r,{label:R,children:L})]}),H?/* @__PURE__ */ f(`div`,{className:`field-error`,role:`status`,children:g}):/* @__PURE__ */ f(`wui-rich-text`,{ref:W,id:V,role:`group`,name:w,format:S||void 0,placeholder:C,"aria-label":P||(typeof T==`string`?T:void 0),"aria-describedby":E?`${V}-error`:D?`${V}-hint`:void 0,"aria-invalid":E?`true`:void 0,required:O?``:void 0,disabled:k?``:void 0,readonly:A?``:void 0,loading:j?``:void 0,className:F||void 0,...z},S||`html`),/* @__PURE__ */ f(t,{error:E,hint:D,errorId:`${V}-error`,hintId:`${V}-hint`})]})});export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./assertValidValue.js";import n from"./warnUnknownProps.js";import{MONEY_UNITS as r,formatValue as i}from"@webority/ui-elements/helpers";import{jsx as a,jsxs as o}from"react/jsx-runtime";import"@webority/ui-elements/elements/rolling-number";var s=[`number`,`currency`,`percent`];function c(c){let{marker:l,props:u}=e(`AppRollingNumber`,c),{value:d,format:f=`number`,unit:p,decimals:m,duration:h,className:g=``,..._}=u;n(`AppRollingNumber`,_),t(`AppRollingNumber`,`format`,f,s),t(`AppRollingNumber`,`unit`,p,r);let v=typeof d==`string`&&d.trim()!==``?Number(d):d,y=typeof v==`number`&&Number.isFinite(v),b=i(y?v:null,{style:f,unit:p,decimals:m});return/* @__PURE__ */ o(`wui-rolling-number`,{class:[`wui-rolling-number`,g].filter(Boolean).join(` `),value:y?String(v):void 0,format:f,unit:p,decimals:m===void 0?void 0:String(m),duration:h===void 0?void 0:String(h),...l,..._,children:[/* @__PURE__ */ a(`span`,{className:`wui-rolling-number-text`,children:b}),/* @__PURE__ */ a(`span`,{className:`wui-rolling-number-roll`,"aria-hidden":`true`})]})}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppButton.js";import n from"./AppResult.js";import r from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppButton.js";import n from"./AppResult.js";import r from"./assertValidValue.js";import i from"./warnUnknownProps.js";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";var c=[`error`,`stale-build`,`not-found`],l=()=>window.location.reload();function u(u){let{marker:d,props:f}=e(`AppRouteError`,u),{kind:p=`error`,homeHref:m=`/`,onRetry:h=l,brand:g,fullPage:_=!0,homeLabel:v=`Go to the home page`,reloadLabel:y=`Reload`,retryLabel:b=`Try again`,staleTitle:x=`A new version is ready`,staleText:S=`This app was updated while you had it open. Reload to get the new version.`,notFoundTitle:C=`We could not find that page`,notFoundText:w=`Check the address, or go to the home page.`,errorTitle:T=`This page did not load`,errorText:E=`Something went wrong on our side. Try again in a moment.`,children:D,className:O=``,...k}=f;i(`AppRouteError`,k),r(`AppRouteError`,`kind`,p,c);let A=e=>/* @__PURE__ */ o(t,{variant:e,leftIcon:`home`,href:m,children:v}),j;return j=p===`stale-build`?/* @__PURE__ */ o(n,{status:`info`,icon:`refresh-cw`,title:x,subtitle:S,actions:/* @__PURE__ */ o(t,{leftIcon:`refresh-cw`,onClick:h,children:y}),children:D}):p===`not-found`?/* @__PURE__ */ o(n,{status:`404`,title:C,subtitle:w,actions:A(`solid`),children:D}):/* @__PURE__ */ o(n,{status:`500`,title:T,subtitle:E,actions:/* @__PURE__ */ s(a,{children:[/* @__PURE__ */ o(t,{leftIcon:`refresh-cw`,onClick:h,children:b}),A(`outline`)]}),children:D}),/* @__PURE__ */ s(`div`,{className:[_?`d-flex flex-column align-items-center justify-content-center min-vh-100 px-3`:`d-flex flex-column align-items-center py-5 px-3`,O].filter(Boolean).join(` `),...d,...k,children:[g&&/* @__PURE__ */ o(`div`,{className:`mb-4`,children:g}),/* @__PURE__ */ o(`div`,{className:`col-12 col-md-8 col-lg-6`,children:j})]})}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./
|
|
1
|
+
import{splitMarkerProps as e}from"../lib/wuiMarker.js";import t from"./AppIcon.js";import n from"./assertValidValue.js";import r from"./warnUnknownProps.js";import{isTypingTarget as i}from"@webority/ui-elements/helpers";import{useCallback as a,useEffect as o,useRef as s,useState as c}from"react";import{Form as l}from"react-bootstrap";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{flushSync as f}from"react-dom";var p=[`sm`,`md`,`lg`];function m(m){let{marker:h,props:g}=e(`AppSearch`,m),{value:_,defaultValue:v,onChange:y,placeholder:b=`Search…`,ariaLabel:x,clearLabel:S=`Clear search`,searchLabel:C=`Search`,iconSize:w,size:T,loading:E=!1,collapsible:D=!1,disabled:O=!1,className:k=``,form:A,onKeyDown:j,...M}=g;r(`AppSearch`,M),n(`AppSearch`,`size`,T,p);let N=w??18,[P,F]=c(v??``),I=_===void 0?P:_,[L,R]=c(!!I),z=s(null),B=s(null),V=!D||L||!!I,H=a(()=>{R(!0),requestAnimationFrame(()=>z.current?.focus())},[]),U=()=>{F(``),f(()=>y?.(``)),z.current?.form?.requestSubmit()};o(()=>{if(!D)return;let e=e=>{e.key!==`/`||e.ctrlKey||e.altKey||e.metaKey||i(e.target)||[...document.querySelectorAll(`.search-wrap.wui-search-collapsible`)].find(e=>e.offsetParent!==null)===B.current&&(e.preventDefault(),H())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[D,H]);let W=[`search-wrap`,I?`has-value`:``,T===`sm`?`search-sm`:T===`lg`?`search-lg`:``,E?`is-loading`:``,D?`wui-search-collapsible`:``,D&&!V?`is-collapsed`:``,k].filter(Boolean).join(` `);return/* @__PURE__ */ d(`div`,{...h,className:W,style:w==null?void 0:{"--wui-search-icon-size":`${w}px`},ref:B,onBlur:e=>{D&&!e.currentTarget.contains(e.relatedTarget)&&!I&&R(!1)},children:[D&&/* @__PURE__ */ u(`button`,{type:`button`,className:`wui-search-toggle`,"aria-label":x||b||C,"aria-expanded":V?`true`:`false`,onClick:H,children:/* @__PURE__ */ u(t,{name:`search`,size:N})}),E&&/* @__PURE__ */ u(`span`,{className:`search-spinner`,"aria-hidden":`true`}),/* @__PURE__ */ u(t,{name:`search`,size:N,className:`search-icon`}),/* @__PURE__ */ u(l.Control,{ref:z,type:`search`,className:`input search-input`,placeholder:b,value:I,onChange:e=>{F(e.target.value),y?.(e.target.value)},onKeyDown:e=>{j?.(e),D&&e.key===`Escape`&&!I&&R(!1)},"aria-label":x,form:A,disabled:O,...M}),!O&&/* @__PURE__ */ u(`button`,{type:`button`,className:`search-clear`,"aria-label":S,onClick:U,hidden:!I,children:/* @__PURE__ */ u(t,{name:`x`,size:16})})]})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./assertValidValue.js";import s from"./warnUnknownProps.js";import{jsx as c}from"react/jsx-runtime";var l=[...r,`band`];function u(r){let{marker:u,props:d}=a(`AppSectionCallToAction`,r),{title:f,actions:p,as:m=`h2`,eyebrow:h,subtitle:g,align:_=`center`,variant:v=`default`,className:y=``,...b}=d;s(`AppSectionCallToAction`,b),o(`AppSectionCallToAction`,`as`,m,n),o(`AppSectionCallToAction`,`align`,_,t),o(`AppSectionCallToAction`,`variant`,v,l);let x=[v===`band`?`wui-section-call-to-action--band`:``,y].filter(Boolean).join(` `);return/* @__PURE__ */ c(e,{component:`AppSectionCallToAction`,kind:`call-to-action`,title:f,as:i(m,`h2`),eyebrow:h,subtitle:g,align:_,variant:v,actions:p,className:x,rest:{...u,...b}})}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./AppAccordion.js";import s from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./AppAccordion.js";import s from"./assertValidValue.js";import c from"./warnUnknownProps.js";import{Children as l,cloneElement as u,isValidElement as d}from"react";import{jsx as f}from"react/jsx-runtime";var p=[...r,`split`];function m(e,t,n){return!Array.isArray(t)&&n==null?e:l.map(e,e=>{if(!d(e)||e.type!==o)return e;let r={};return Array.isArray(t)&&(r.openItems=t.map(t=>e.props.items?.[t]?.key??String(t))),n!=null&&(r.closeLabel=n),u(e,r)})}function h(r){let{marker:o,props:l}=a(`AppSectionFaq`,r),{title:u,as:d=`h2`,eyebrow:h,subtitle:g,align:_,variant:v=`default`,children:y,openItems:b,closeLabel:x,className:S=``,...C}=l;c(`AppSectionFaq`,C),s(`AppSectionFaq`,`as`,d,n),s(`AppSectionFaq`,`align`,_,t),s(`AppSectionFaq`,`variant`,v,p);let w=_??(v===`split`?`start`:`center`),T=[v===`split`?`wui-section-faq--split`:``,S].filter(Boolean).join(` `);return/* @__PURE__ */ f(e,{component:`AppSectionFaq`,kind:`faq`,title:u,as:i(d,`h2`),eyebrow:h,subtitle:g,align:w,variant:v,className:T,rest:{...o,...C},children:y!=null&&y!==!1&&/* @__PURE__ */ f(`div`,{className:`wui-section-faq-body`,children:m(y,b,x)})})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_TITLE_FONTS as r,SECTION_VARIANTS as i,itemHeading as a,sectionHeading as o}from"../lib/sectionShell.js";import{splitMarkerProps as s}from"../lib/wuiMarker.js";import c from"./AppIcon.js";import l from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_TITLE_FONTS as r,SECTION_VARIANTS as i,itemHeading as a,sectionHeading as o}from"../lib/sectionShell.js";import{splitMarkerProps as s}from"../lib/wuiMarker.js";import c from"./AppIcon.js";import l from"./assertValidValue.js";import u from"./warnUnknownProps.js";import{jsx as d,jsxs as f}from"react/jsx-runtime";var p=[`grid`,`rows`];function m(m){let{marker:h,props:g}=s(`AppSectionFeatures`,m),{title:_,items:v=[],layout:y=`grid`,as:b=`h2`,eyebrow:x,subtitle:S,align:C=`center`,variant:w=`default`,titleFont:T=`display`,inset:E,className:D=``,...O}=g;u(`AppSectionFeatures`,O),l(`AppSectionFeatures`,`layout`,y,p),l(`AppSectionFeatures`,`as`,b,n),l(`AppSectionFeatures`,`align`,C,t),l(`AppSectionFeatures`,`variant`,w,i),l(`AppSectionFeatures`,`titleFont`,T,r);let k=o(b,`h2`),A=a(k);return/* @__PURE__ */ d(e,{component:`AppSectionFeatures`,kind:`features`,title:_,as:k,eyebrow:x,subtitle:S,align:C,variant:w,titleFont:T,inset:E,extraClass:y===`rows`?`wui-section-features-rows`:``,className:D,rest:{...h,...O},children:v.length>0&&/* @__PURE__ */ d(`ul`,{className:`wui-section-features-list`,children:v.map(e=>/* @__PURE__ */ f(`li`,{className:`wui-section-feature`,children:[e.media!=null&&/* @__PURE__ */ d(`div`,{className:`wui-section-media`,children:e.media}),/* @__PURE__ */ f(`div`,{className:`wui-section-feature-body`,children:[e.icon&&/* @__PURE__ */ d(`span`,{className:`wui-section-feature-icon`,children:/* @__PURE__ */ d(c,{name:e.icon,size:24})}),/* @__PURE__ */ d(A,{className:`wui-section-feature-title`,children:e.title}),e.description!=null&&e.description!==``&&/* @__PURE__ */ d(`div`,{className:`wui-section-feature-text`,children:e.description})]})]},e.key??e.title))})})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{TONES as a}from"../lib/vocabulary.js";import{splitMarkerProps as o}from"../lib/wuiMarker.js";import s from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{TONES as a}from"../lib/vocabulary.js";import{splitMarkerProps as o}from"../lib/wuiMarker.js";import s from"./assertValidValue.js";import c from"./warnUnknownProps.js";import{jsx as l}from"react/jsx-runtime";function u(u){let{marker:d,props:f}=o(`AppSectionHero`,u),{title:p,as:m=`h1`,eyebrow:h,subtitle:g,align:_=`start`,variant:v=`default`,eyebrowTone:y,actions:b,media:x,className:S=``,...C}=f;return c(`AppSectionHero`,C),s(`AppSectionHero`,`as`,m,n),s(`AppSectionHero`,`align`,_,t),s(`AppSectionHero`,`variant`,v,r),y!==void 0&&s(`AppSectionHero`,`eyebrowTone`,y,a),/* @__PURE__ */ l(e,{component:`AppSectionHero`,kind:`hero`,title:p,as:i(m,`h1`),eyebrow:h,subtitle:g,align:_,variant:v,eyebrowTone:y,actions:b,className:S,rest:{...d,...C},children:x!=null&&x!==!1&&/* @__PURE__ */ l(`div`,{className:`wui-section-media`,children:x})})}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./AppAlert.js";import s from"./AppButton.js";import c from"./AppInput.js";import l from"./AppPhoneNumberInput.js";import u from"./AppTextarea.js";import d from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./AppAlert.js";import s from"./AppButton.js";import c from"./AppInput.js";import l from"./AppPhoneNumberInput.js";import u from"./AppTextarea.js";import d from"./assertValidValue.js";import f from"./warnUnknownProps.js";import{useId as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var _=[`name`,`email`,`phone`,`company`,`message`],ee={name:`name`,email:`email`,company:`organization`},v=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function y(e,t,n){let r={};for(let{name:i,required:a=!1}of e){let e=t[i].trim();a&&e===``?r[i]=n.required:i===`email`&&e!==``&&!v.test(e)&&(r[i]=n.invalidEmail)}return r}function b(v){let{marker:b,props:x}=a(`AppSectionLeadCapture`,v),{title:S,description:C,fields:w,onSubmit:te,submitLabel:T=`Send`,nameLabel:E=`Name`,emailLabel:D=`Email`,phoneLabel:O=`Phone number`,companyLabel:k=`Company`,messageLabel:A=`Message`,requiredText:j=`This field is required.`,invalidEmailText:M=`Enter an email address such as name@example.com.`,submitErrorText:N=`We could not send your message. Please try again.`,successTitle:P,successText:F,consent:I,as:L=`h2`,eyebrow:R,subtitle:z,align:B=`center`,variant:V=`default`,className:H=``,...U}=x;f(`AppSectionLeadCapture`,U),d(`AppSectionLeadCapture`,`as`,L,n),d(`AppSectionLeadCapture`,`align`,B,t),d(`AppSectionLeadCapture`,`variant`,V,r);for(let e of w)d(`AppSectionLeadCapture`,`fields.name`,e.name,_);let W=p(),[G,K]=m(()=>Object.fromEntries(w.map(e=>[e.name,``]))),[q,J]=m({}),[Y,X]=m(null),[Z,Q]=m(!1),[ne,re]=m(!1),$=(e,t)=>K(n=>({...n,[e]:t})),ie={name:E,email:D,phone:O,company:k,message:A},ae={required:j,invalidEmail:M};async function oe(e){if(e.preventDefault(),Z)return;let t=y(w,G,ae);if(J(t),X(null),Object.keys(t).length>0)return;let n=Object.fromEntries(Object.entries(G).map(([e,t])=>[e,t.trim()]));Q(!0);try{await te(n),re(!0)}catch(e){X(typeof e?.message==`string`&&e.message!==``?e.message:N)}finally{Q(!1)}}function se({name:e,label:t=ie[e],required:n=!1}){let r=`${W}-${e}`,i=q[e];return e===`phone`?/* @__PURE__ */ h(l,{id:r,name:e,label:t,required:n,value:G[e],onChange:t=>$(e,t),error:i},e):e===`message`?/* @__PURE__ */ h(u,{id:r,name:e,label:t,required:n,value:G[e],onChange:t=>$(e,t.target.value),error:i},e):/* @__PURE__ */ h(c,{id:r,name:e,type:e===`email`?`email`:`text`,autoComplete:ee[e],label:t,required:n,value:G[e],onChange:t=>$(e,t.target.value),error:i},e)}return/* @__PURE__ */ g(e,{component:`AppSectionLeadCapture`,kind:`lead-capture`,title:S,as:i(L,`h2`),eyebrow:R,subtitle:z,align:B,variant:V,className:H,rest:{...b,...U},children:[C!=null&&C!==``&&/* @__PURE__ */ h(`p`,{className:`wui-section-lead-text`,children:C}),ne?/* @__PURE__ */ h(`div`,{className:`wui-section-lead-success`,children:/* @__PURE__ */ h(o,{tone:`success`,title:P,children:F})}):/* @__PURE__ */ g(`form`,{className:`wui-section-lead-form`,noValidate:!0,onSubmit:oe,children:[/* @__PURE__ */ h(`div`,{className:`wui-section-lead-fields`,children:w.map(se)}),Y!=null&&/* @__PURE__ */ h(o,{tone:`danger`,children:Y}),/* @__PURE__ */ h(s,{type:`submit`,loading:Z,children:T}),I!=null&&I!==``&&/* @__PURE__ */ h(`p`,{className:`wui-section-lead-consent`,children:I})]})]})}export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{linkTarget as e}from"../lib/linkTarget.js";import t,{SECTION_ALIGNS as n,SECTION_HEADINGS as r,SECTION_VARIANTS as i,SectionImage as a,sectionHeading as o}from"../lib/sectionShell.js";import{splitMarkerProps as s}from"../lib/wuiMarker.js";import c from"./
|
|
1
|
+
import{linkTarget as e}from"../lib/linkTarget.js";import t,{SECTION_ALIGNS as n,SECTION_HEADINGS as r,SECTION_VARIANTS as i,SectionImage as a,sectionHeading as o}from"../lib/sectionShell.js";import{splitMarkerProps as s}from"../lib/wuiMarker.js";import c from"./assertValidValue.js";import l from"./warnUnknownProps.js";import{jsx as u}from"react/jsx-runtime";var d=e=>typeof e==`string`&&e.trim()!==``?e:void 0;function f(f){let{marker:p,props:m}=s(`AppSectionLogos`,f),{title:h,items:g=[],as:_=`h2`,eyebrow:v,subtitle:y,align:b=`center`,variant:x=`default`,className:S=``,linkComponent:C,...w}=m;l(`AppSectionLogos`,w),c(`AppSectionLogos`,`as`,_,r),c(`AppSectionLogos`,`align`,b,n),c(`AppSectionLogos`,`variant`,x,i);for(let e of g){let t=d(e.src),n=d(e.name)??d(e.label),r=e.width>0&&e.height>0;if(!(t?(d(e.alt)??n)!==void 0&&r:n!==void 0))throw Error(`AppSectionLogos item "${e.src??``}" needs src, alt (the company's name), width and height: a logo without a size moves the page when it loads.`)}return/* @__PURE__ */ u(t,{component:`AppSectionLogos`,kind:`logos`,title:h,as:o(_,`h2`),eyebrow:v,subtitle:y,align:b,variant:x,className:S,rest:{...p,...w},children:g.length>0&&/* @__PURE__ */ u(`ul`,{className:`wui-section-logos-list`,children:g.map(t=>{let n=d(t.src),r=d(t.name)??d(t.label),i=n?/* @__PURE__ */ u(a,{className:`wui-section-logo-img`,src:t.src,alt:d(t.alt)??r,width:t.width,height:t.height}):/* @__PURE__ */ u(`span`,{className:`wui-section-logo-text`,children:r}),{Tag:o,linkProps:s}=e(C,{href:t.href});return/* @__PURE__ */ u(`li`,{className:`wui-section-logo`,children:t.href?/* @__PURE__ */ u(o,{...s,children:i}):i},t.key??n??r)})})})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,sectionHeading as i}from"../lib/sectionShell.js";import{splitMarkerProps as a}from"../lib/wuiMarker.js";import o from"./assertValidValue.js";import s from"./warnUnknownProps.js";import{jsx as c}from"react/jsx-runtime";function l(l){let{marker:u,props:d}=a(`AppSectionPricing`,l),{title:f,as:p=`h2`,eyebrow:m,subtitle:h,align:g=`center`,variant:_=`default`,children:v,className:y=``,...b}=d;return s(`AppSectionPricing`,b),o(`AppSectionPricing`,`as`,p,n),o(`AppSectionPricing`,`align`,g,t),o(`AppSectionPricing`,`variant`,_,r),/* @__PURE__ */ c(e,{component:`AppSectionPricing`,kind:`pricing`,title:f,as:i(p,`h2`),eyebrow:m,subtitle:h,align:g,variant:_,className:y,rest:{...u,...b},children:v!=null&&v!==!1&&/* @__PURE__ */ c(`div`,{className:`plan-grid`,children:v})})}export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,SectionImage as i,sectionHeading as a}from"../lib/sectionShell.js";import{splitMarkerProps as o}from"../lib/wuiMarker.js";import s from"./
|
|
1
|
+
import e,{SECTION_ALIGNS as t,SECTION_HEADINGS as n,SECTION_VARIANTS as r,SectionImage as i,sectionHeading as a}from"../lib/sectionShell.js";import{splitMarkerProps as o}from"../lib/wuiMarker.js";import s from"./assertValidValue.js";import c from"./warnUnknownProps.js";import{jsx as l,jsxs as u}from"react/jsx-runtime";function d(d){let{marker:f,props:p}=o(`AppSectionTestimonials`,d),{title:m,items:h=[],as:g=`h2`,eyebrow:_,subtitle:v,align:y=`center`,variant:b=`default`,className:x=``,...S}=p;return c(`AppSectionTestimonials`,S),s(`AppSectionTestimonials`,`as`,g,n),s(`AppSectionTestimonials`,`align`,y,t),s(`AppSectionTestimonials`,`variant`,b,r),/* @__PURE__ */ l(e,{component:`AppSectionTestimonials`,kind:`testimonials`,title:m,as:a(g,`h2`),eyebrow:_,subtitle:v,align:y,variant:b,className:x,rest:{...f,...S},children:h.length>0&&/* @__PURE__ */ l(`ul`,{className:`wui-section-testimonials-list`,children:h.map(e=>/* @__PURE__ */ l(`li`,{children:/* @__PURE__ */ u(`figure`,{className:`wui-section-testimonial`,children:[/* @__PURE__ */ l(`blockquote`,{className:`wui-section-testimonial-quote`,children:e.quote}),/* @__PURE__ */ u(`figcaption`,{className:`wui-section-testimonial-author`,children:[e.avatar&&/* @__PURE__ */ l(i,{className:`wui-section-testimonial-avatar`,src:e.avatar,alt:``,width:48,height:48}),/* @__PURE__ */ u(`span`,{className:`wui-section-testimonial-who`,children:[e.name&&/* @__PURE__ */ l(`span`,{className:`wui-section-testimonial-name`,children:e.name}),e.role&&/* @__PURE__ */ l(`span`,{className:`wui-section-testimonial-role`,children:e.role})]})]})]})},e.key??e.name))})})}export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FIELD_BUSY_CLASS as e,blockWhenReadOnly as t}from"../lib/fieldState.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppIcon.js";import i from"./AppInfoTip.js";import a from"./
|
|
1
|
+
import{FIELD_BUSY_CLASS as e,blockWhenReadOnly as t}from"../lib/fieldState.js";import{splitMarkerProps as n}from"../lib/wuiMarker.js";import r from"./AppIcon.js";import i from"./AppInfoTip.js";import a from"./assertValidValue.js";import o from"./warnUnknownProps.js";import{useEffect as s,useId as c,useLayoutEffect as l,useRef as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";var m={sm:`segmented-sm`,md:``,lg:`segmented-lg`};function h(h){let{marker:g,props:_}=n(`AppSegmented`,h),{options:v=[],value:y,defaultValue:b,onChange:x,label:S,name:C,size:w=`md`,fullWidth:T=!1,bordered:E=!0,disabled:D=!1,readOnly:O=!1,loading:k=!1,labelVisible:A=!1,help:j,helpLabel:M=`More information`,className:N=``,...P}=_;o(`AppSegmented`,P),a(`AppSegmented`,`size`,w,Object.keys(m));let F=c(),I=C||F,L=u(null),R=u(null),[z,B]=d(b),V=y===void 0?z:y,H=[`segmented`,m[w]??``,T?`segmented-full`:``,E?``:`wui-segmented-borderless`,D?`is-disabled`:``,k?e:``,N].filter(Boolean).join(` `);l(()=>{let e=L.current,t=R.current;if(!e||!t)return;let n=n=>{let r=e.querySelector(`.segmented-option:has(.segmented-input:checked)`);!r||!e.offsetWidth?t.style.opacity=`0`:(n||e.classList.remove(`is-animated`),t.style.width=`${r.offsetWidth}px`,t.style.transform=`translateX(${r.offsetLeft}px)`,t.style.opacity=`1`,n||requestAnimationFrame(()=>L.current?.classList.add(`is-animated`)))};n(!0);let r=typeof ResizeObserver<`u`?new ResizeObserver(()=>n(!1)):null;return r?.observe(e),()=>r?.disconnect()},[V,v,w,T,A]),s(()=>{let e=requestAnimationFrame(()=>L.current?.classList.add(`is-animated`));return()=>cancelAnimationFrame(e)},[]);let U=A&&S,W=/* @__PURE__ */ p(`div`,{ref:L,className:H,role:`radiogroup`,"aria-label":S,"aria-disabled":D||void 0,"aria-busy":k||void 0,...U?void 0:g,...P,children:[/* @__PURE__ */ f(`span`,{className:`segmented-thumb`,ref:R,"aria-hidden":`true`}),v.map(e=>/* @__PURE__ */ p(`label`,{className:`segmented-option`,children:[/* @__PURE__ */ f(`input`,{type:`radio`,className:`segmented-input`,name:I,value:e.value,checked:e.value===V,disabled:D||k||e.disabled,"aria-readonly":O||void 0,onClick:t(O||k),onChange:()=>{B(e.value),x?.(e.value)}}),e.icon&&/* @__PURE__ */ f(r,{name:e.icon,size:13}),e.note?/* @__PURE__ */ p(`span`,{className:`segmented-option-text`,children:[/* @__PURE__ */ f(`span`,{className:`segmented-option-label`,children:e.label}),/* @__PURE__ */ f(`span`,{className:`segmented-option-note`,children:e.note})]}):e.label,e.count!=null&&/* @__PURE__ */ f(`span`,{className:`wui-segmented-option-count`,children:e.count})]},e.value))]},`group`);return U?/* @__PURE__ */ p(`div`,{className:`field`,...g,children:[/* @__PURE__ */ f(`span`,{className:`label`,"aria-hidden":`true`,children:S}),j&&/* @__PURE__ */ f(i,{label:M,children:j}),W]},`field`):W}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{devWarn as e}from"../lib/devWarn.js";import t from"../lib/FieldMessage.js";import{loadFlagStyles as n}from"../lib/flagStyles.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import ee from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import te from"./useNodeLabels.js";import ne,{optionsEqual as re}from"./useWuiControl.js";import
|
|
1
|
+
import{devWarn as e}from"../lib/devWarn.js";import t from"../lib/FieldMessage.js";import{loadFlagStyles as n}from"../lib/flagStyles.js";import{splitMarkerProps as r}from"../lib/wuiMarker.js";import ee from"./AppInfoTip.js";import i from"./AppRequiredMark.js";import a from"./assertValidValue.js";import te from"./useNodeLabels.js";import ne,{optionsEqual as re}from"./useWuiControl.js";import ie from"./warnUnknownProps.js";import{forwardRef as o,useEffect as s,useId as ae,useLayoutEffect as c,useMemo as oe,useRef as l}from"react";import{Fragment as se,jsx as u,jsxs as d}from"react/jsx-runtime";import"@webority/ui-elements/elements/select";var ce=[`single`,`multiple`,`search`,`tag`,`country`],le=[`comfortable`,`compact`],f=[`sm`,`md`,`lg`],ue=[`off`,`border`,`above`],de=[],p=[],fe=e=>e===`multiple`||e===`tag`,pe=(e,t)=>{let n=t??``;String(e.value??``)!==String(n)&&(e.value=n)},me=(e,t)=>{let n=Array.isArray(t)?t:p,r=Array.isArray(e.value)?e.value:p;n.length===r.length&&n.every((e,t)=>e===r[t])||(e.value=n)},he=(e,t)=>({...e,label:t}),m=e=>Array.isArray(e)?e.join(`,`):e,h=o(function(o,h){let{marker:g,props:ge}=r(`AppSelect`,o),{mode:_=`single`,density:v=`comfortable`,size:y,value:_e,defaultValue:b,onChange:x,options:S=de,loadOptions:C,remote:ve=!1,onSearch:ye,validate:be,placeholder:xe,searchPlaceholder:Se,emptyText:Ce,searchable:w,clearable:we=!1,icon:Te,valuePrefix:T,prefix:E,suffix:D,floatingLabel:O=`off`,disabled:Ee,readOnly:De=!1,loading:Oe=!1,open:ke,label:k,required:A=!1,optional:j=!1,optionalLabel:M=`(optional)`,error:N,helperText:P,help:F,helpLabel:Ae=`More information`,id:je,name:Me,minChars:I,debounce:L,allowCustom:Ne=!1,addLabel:Pe,searchingText:Fe,hintText:Ie,valueLabel:Le,valueAvatar:Re,valueInitials:ze,maxTags:R,allowDuplicates:Be=!1,separators:Ve,pattern:He,invalidMessage:Ue,createLabel:We,collapseChips:Ge=!1,selectedText:Ke,clearAllLabel:qe,countries:Je,suggested:Ye,suggestedLabel:Xe,allCountriesLabel:Ze,className:Qe=``,fieldClassName:z=``,"aria-label":$e,"aria-labelledby":et,"aria-describedby":tt,...B}=ge;ie(`AppSelect`,B),a(`AppSelect`,`mode`,_,ce),a(`AppSelect`,`density`,v,le),a(`AppSelect`,`size`,y,f);let V=fe(_);a(`AppSelect`,`floatingLabel`,O,V?[`off`]:ue);let H=l(!1);V&&(E!=null||D!=null)&&!H.current&&(H.current=!0,e(`AppSelect: prefix and suffix are not drawn in mode="${_}"; they are ignored.`));let nt=ae(),U=l(!1);s(()=>{_===`country`&&n()},[_]);let{setRef:rt,innerRef:W}=ne({ref:h,value:_e??(b===void 0?V?p:``:void 0),defaultValue:b,writeValue:V?me:pe,on:{change:e=>{let t=e.currentTarget.value;_===`search`||_===`tag`?x?.(t,{isCustom:!!e.detail?.isCustom}):x?.(t)},search:e=>{ve&&typeof C!=`function`&&ye?.(e.detail.query,{seq:e.detail.seq})}}}),G=oe(()=>typeof C==`function`?(e,t)=>new Promise(n=>n(C(e,t))).then(e=>(U.current=!0,e),e=>{throw U.current=!0,e}):null,[C]),{portal:it,toElementOptions:K}=te(S),q=l({el:null,options:null,map:null});c(()=>{let e=W.current;if(!e||q.current.el===e&&q.current.options===S&&q.current.map===K||(q.current={el:e,options:S,map:K},C&&U.current))return;let t=K(S,he);re(t,e.options)||(e.options=t)}),c(()=>{let e=W.current;if(!e)return;e.loadOptions!==G&&(e.loadOptions=G);let t=typeof be==`function`?be:null;e.validate!==t&&(e.validate=t)}),c(()=>{W.current?.toggleAttribute(`loading`,!!Oe)});let J=je||nt,Y=!V&&O!==`off`&&k,X=N&&J?`${J}-error`:void 0,at=P&&J?`${J}-hint`:void 0,ot=X||at||tt;s(()=>{let e=W.current;e&&(T==null||T===``?e.removeAttribute(`prefix`):e.setAttribute(`prefix`,T))},[T,W]);let st=!V&&!Y&&(E!=null||D!=null),Z=_!==`multiple`&&_!==`tag`&&_!==`country`&&!k&&!N&&!P&&!z,ct=/* @__PURE__ */ u(`wui-select`,{"aria-label":$e||(typeof k==`string`?k:void 0),"aria-labelledby":et||void 0,"aria-describedby":ot||void 0,"aria-invalid":N?`true`:void 0,ref:rt,id:J,name:Me,mode:_,density:v===`compact`?`compact`:void 0,placeholder:Y?` `:xe||void 0,"search-placeholder":Se||void 0,"empty-text":Ce||void 0,searchable:w===void 0?void 0:w?`true`:`false`,clearable:we?``:void 0,size:y!==`md`&&f.includes(y)?y:void 0,icon:Te||void 0,disabled:Ee?``:void 0,readonly:De?``:void 0,open:ke?``:void 0,required:A?``:void 0,"min-chars":I==null?void 0:String(I),debounce:L==null?void 0:String(L),remote:ve?``:void 0,"allow-custom":Ne?``:void 0,"add-label":Pe||void 0,"searching-text":Fe||void 0,"hint-text":Ie||void 0,"value-label":Le||void 0,"value-avatar":Re||void 0,"value-initials":ze||void 0,"max-tags":R==null?void 0:String(R),"allow-duplicates":Be?``:void 0,separators:Ve||void 0,pattern:He||void 0,"invalid-message":Ue||void 0,"create-label":We||void 0,"collapse-chips":Ge?``:void 0,"selected-text":Ke||void 0,"clear-all-label":qe||void 0,countries:m(Je)||void 0,suggested:m(Ye)||void 0,"suggested-label":Xe||void 0,"all-countries-label":Ze||void 0,className:Qe||void 0,...Z&&!st?g:null,...B}),Q=/* @__PURE__ */ d(se,{children:[ct,it]}),$=st?/* @__PURE__ */ d(`div`,{...Z?g:null,className:`input-affixed`,children:[E!=null&&/* @__PURE__ */ u(`span`,{className:`affix affix-pre`,children:E}),Q,D!=null&&/* @__PURE__ */ u(`span`,{className:`affix affix-suf`,children:D})]}):Q;if(Z)return $;let lt=[`field`,z].filter(Boolean).join(` `);return/* @__PURE__ */ d(`div`,{...g,className:lt,children:[k&&!Y&&/* @__PURE__ */ d(`label`,{className:`label`,htmlFor:J,children:[k,j&&!A&&/* @__PURE__ */ u(`span`,{className:`label-optional`,children:` ${M}`}),A&&/* @__PURE__ */ u(i,{}),F&&/* @__PURE__ */ u(ee,{label:Ae,children:F})]}),Y?/* @__PURE__ */ d(`div`,{className:O===`above`?`field-float wui-float-above`:`field-float`,children:[Q,/* @__PURE__ */ d(`label`,{className:`float-label`,htmlFor:J,children:[k,j&&!A&&/* @__PURE__ */ u(`span`,{className:`label-optional`,children:` ${M}`}),A&&/* @__PURE__ */ u(i,{})]})]}):$,/* @__PURE__ */ u(t,{error:N,hint:P,errorId:X,hintId:at})]})});export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./
|
|
1
|
+
import e from"./assertValidValue.js";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";var i=[`website`,`article`],a=[`summary`,`summary_large_image`];function o(o){let{title:s,description:c,canonicalUrl:l,siteName:u,robots:d,image:f,imageAlt:p,jsonLd:m}=o;e(`AppSeoHead`,`type`,o.type,i),e(`AppSeoHead`,`twitterCard`,o.twitterCard,a);let h=i.includes(o.type)?o.type:`website`,g=a.includes(o.twitterCard)?o.twitterCard:`summary`,_=m?JSON.stringify(m).replace(/</g,`\\u003c`):null;return/* @__PURE__ */ r(t,{children:[/* @__PURE__ */ n(`title`,{children:s}),/* @__PURE__ */ n(`meta`,{name:`description`,content:c}),/* @__PURE__ */ n(`link`,{rel:`canonical`,href:l}),/* @__PURE__ */ n(`meta`,{name:`robots`,content:d}),/* @__PURE__ */ n(`meta`,{property:`og:type`,content:h}),/* @__PURE__ */ n(`meta`,{property:`og:site_name`,content:u}),/* @__PURE__ */ n(`meta`,{property:`og:title`,content:s}),/* @__PURE__ */ n(`meta`,{property:`og:description`,content:c}),/* @__PURE__ */ n(`meta`,{property:`og:url`,content:l}),f?/* @__PURE__ */ n(`meta`,{property:`og:image`,content:f}):null,f&&p?/* @__PURE__ */ n(`meta`,{property:`og:image:alt`,content:p}):null,/* @__PURE__ */ n(`meta`,{name:`twitter:card`,content:g}),/* @__PURE__ */ n(`meta`,{name:`twitter:title`,content:s}),/* @__PURE__ */ n(`meta`,{name:`twitter:description`,content:c}),f?/* @__PURE__ */ n(`meta`,{name:`twitter:image`,content:f}):null,f&&p?/* @__PURE__ */ n(`meta`,{name:`twitter:image:alt`,content:p}):null,_?/* @__PURE__ */ n(`script`,{type:`application/ld+json`,children:_}):null]})}export{o as default};
|