@webority/ui-react 0.128.0 → 0.130.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/README.md +1 -1
- package/dist/canvas-kit/kit.js +29757 -25503
- package/dist/canvas-kit/manifest.json +3343 -275
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccountSwitcher.js +1 -0
- package/dist/components/AppActionIcon.js +1 -1
- package/dist/components/AppAlert.js +1 -1
- package/dist/components/AppAsyncBlock.js +1 -1
- package/dist/components/AppAuthLayout.js +1 -0
- package/dist/components/AppAutocomplete.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/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppCell.js +1 -0
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppCheckbox.js +1 -1
- package/dist/components/AppChip.js +1 -1
- package/dist/components/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppColorField.js +1 -1
- package/dist/components/AppCommandPalette.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/AppConfirmProvider.js +1 -1
- package/dist/components/AppConsentBanner.js +1 -1
- package/dist/components/AppContextMenu.js +1 -1
- package/dist/components/AppCopyButton.js +1 -1
- package/dist/components/AppCountrySelect.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/AppDropZone.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/AppErrorBoundary.js +1 -0
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileTiles.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingButton.js +1 -0
- 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/AppKanban.js +1 -1
- package/dist/components/AppKpiTile.js +1 -1
- package/dist/components/AppLeadPopup.js +1 -0
- 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/AppMultiSelect.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/AppRepeater.js +1 -1
- package/dist/components/AppResourceCard.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRouteError.js +1 -1
- package/dist/components/AppScoreScale.js +1 -1
- package/dist/components/AppSearch.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/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppSparkline.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/AppTableToolbar.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTagInput.js +1 -1
- package/dist/components/AppTextarea.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/AppToolbar.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/AppUpdateBar.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/iconCatalogNames.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/components/useWuiControl.js +1 -1
- package/dist/guidance.json +273 -47
- package/dist/lib/CheckField.js +1 -1
- package/dist/lib/DiscardPrompt.js +1 -1
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/buttonClass.js +1 -0
- package/dist/lib/fieldState.js +1 -0
- package/dist/lib/fillLabel.js +1 -0
- package/dist/lib/labelWithHelp.js +1 -0
- package/dist/lib/linkTarget.js +1 -0
- package/dist/lib/sectionShell.js +1 -1
- package/dist/lib/vocabulary.js +1 -0
- package/dist/markdown-core/dist/links.js +1 -1
- package/dist/types/components/AppAccountSwitcher.d.ts +41 -0
- package/dist/types/components/AppActionIcon.d.ts +3 -12
- package/dist/types/components/AppAsyncBlock.d.ts +24 -0
- package/dist/types/components/AppAuthLayout.d.ts +45 -0
- package/dist/types/components/AppAutocomplete.d.ts +23 -3
- package/dist/types/components/AppAvatar.d.ts +6 -0
- package/dist/types/components/AppAvatarGroup.d.ts +6 -0
- package/dist/types/components/AppBanner.d.ts +8 -2
- package/dist/types/components/AppButton.d.ts +9 -4
- package/dist/types/components/AppCalendar.d.ts +3 -1
- package/dist/types/components/AppCard.d.ts +16 -4
- package/dist/types/components/AppCell.d.ts +36 -0
- package/dist/types/components/AppChart.d.ts +14 -0
- package/dist/types/components/AppChartCard.d.ts +60 -0
- package/dist/types/components/AppCheckbox.d.ts +23 -1
- package/dist/types/components/AppChoiceCard.d.ts +21 -0
- package/dist/types/components/AppChoiceChip.d.ts +21 -0
- package/dist/types/components/AppColorField.d.ts +45 -6
- package/dist/types/components/AppCommandPalette.d.ts +6 -0
- package/dist/types/components/AppCommentThread.d.ts +102 -3
- package/dist/types/components/AppCompareTable.d.ts +24 -0
- package/dist/types/components/AppConfirmDialog.d.ts +10 -10
- package/dist/types/components/AppConfirmProvider.d.ts +5 -6
- package/dist/types/components/AppConsentBanner.d.ts +3 -3
- package/dist/types/components/AppContextMenu.d.ts +2 -2
- package/dist/types/components/AppCopyButton.d.ts +8 -2
- package/dist/types/components/AppCountrySelect.d.ts +6 -1
- package/dist/types/components/AppDataTable.d.ts +1 -1
- package/dist/types/components/AppDatePicker.d.ts +26 -2
- package/dist/types/components/AppDateRangePicker.d.ts +32 -2
- package/dist/types/components/AppDescriptions.d.ts +4 -1
- package/dist/types/components/AppDrawer.d.ts +6 -0
- package/dist/types/components/AppDropZone.d.ts +26 -2
- package/dist/types/components/AppDropdown.d.ts +7 -7
- package/dist/types/components/AppDueDate.d.ts +42 -0
- package/dist/types/components/AppEmptyState.d.ts +3 -3
- package/dist/types/components/AppErrorBoundary.d.ts +39 -0
- package/dist/types/components/AppFileAttachment.d.ts +54 -1
- package/dist/types/components/AppFilePicker.d.ts +80 -5
- package/dist/types/components/AppFileTiles.d.ts +6 -3
- package/dist/types/components/AppFilterBar.d.ts +73 -0
- package/dist/types/components/AppFloatingButton.d.ts +70 -0
- package/dist/types/components/AppImagePicker.d.ts +64 -4
- package/dist/types/components/AppInlineEdit.d.ts +6 -0
- package/dist/types/components/AppInput.d.ts +38 -3
- package/dist/types/components/AppKanban.d.ts +32 -0
- package/dist/types/components/AppLeadPopup.d.ts +122 -0
- package/dist/types/components/AppLink.d.ts +3 -0
- package/dist/types/components/AppMentionInput.d.ts +18 -1
- package/dist/types/components/AppMetricStrip.d.ts +2 -0
- package/dist/types/components/AppModal.d.ts +9 -3
- package/dist/types/components/AppMultiSelect.d.ts +20 -3
- package/dist/types/components/AppNotificationCenter.d.ts +2 -0
- package/dist/types/components/AppNumberInput.d.ts +25 -3
- package/dist/types/components/AppOnboardingChecklist.d.ts +3 -3
- package/dist/types/components/AppOtpInput.d.ts +31 -2
- package/dist/types/components/AppPhoneNumberInput.d.ts +25 -1
- package/dist/types/components/AppPopover.d.ts +5 -5
- package/dist/types/components/AppRadio.d.ts +23 -1
- package/dist/types/components/AppRadioGroup.d.ts +26 -2
- package/dist/types/components/AppRating.d.ts +42 -3
- package/dist/types/components/AppRepeater.d.ts +3 -3
- package/dist/types/components/AppResourceCard.d.ts +2 -2
- package/dist/types/components/AppRichText.d.ts +10 -3
- package/dist/types/components/AppRouteError.d.ts +54 -0
- package/dist/types/components/AppScoreScale.d.ts +9 -3
- package/dist/types/components/AppSearch.d.ts +17 -2
- package/dist/types/components/AppSectionLeadCapture.d.ts +50 -2
- package/dist/types/components/AppSectionLogos.d.ts +2 -0
- package/dist/types/components/AppSegmented.d.ts +27 -3
- package/dist/types/components/AppSelect.d.ts +23 -3
- package/dist/types/components/AppShell.d.ts +151 -4
- package/dist/types/components/AppSlider.d.ts +29 -1
- package/dist/types/components/AppSortableList.d.ts +5 -0
- package/dist/types/components/AppSparkline.d.ts +24 -0
- package/dist/types/components/AppSplash.d.ts +2 -2
- package/dist/types/components/AppSplitButton.d.ts +10 -4
- package/dist/types/components/AppSplitView.d.ts +68 -0
- package/dist/types/components/AppStepper.d.ts +6 -0
- package/dist/types/components/AppSwitch.d.ts +24 -2
- package/dist/types/components/AppTablePagination.d.ts +44 -2
- package/dist/types/components/AppTableToolbar.d.ts +30 -0
- package/dist/types/components/AppTagInput.d.ts +20 -3
- package/dist/types/components/AppTextarea.d.ts +21 -1
- package/dist/types/components/AppTimePicker.d.ts +19 -2
- package/dist/types/components/AppTimeline.d.ts +8 -0
- package/dist/types/components/AppToast.d.ts +6 -0
- package/dist/types/components/AppToolbar.d.ts +3 -3
- package/dist/types/components/AppTooltip.d.ts +7 -4
- package/dist/types/components/AppUpdateBar.d.ts +20 -2
- package/dist/types/components/AppWhatsNew.d.ts +2 -0
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +18 -0
- package/dist/types/components/iconGlyphs.g.d.ts +1 -0
- package/dist/types/components/iconVariants.g.d.ts +5 -0
- package/dist/types/components/useWuiControl.d.ts +3 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/lib/FileItemRow.d.ts +9 -2
- package/dist/types/lib/buttonClass.d.ts +9 -0
- package/dist/types/lib/fieldState.d.ts +3 -0
- package/dist/types/lib/fillLabel.d.ts +1 -0
- package/dist/types/lib/labelWithHelp.d.ts +10 -0
- package/dist/types/lib/linkTarget.d.ts +30 -0
- package/dist/types/lib/sectionShell.d.ts +0 -1
- package/dist/types/lib/vocabulary.d.ts +3 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/query/listQuery.js +1 -0
- package/package.json +8 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../components/AppButton.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";function r({text:r,confirmRef:i,onDiscard:a,onKeep:o}){return/* @__PURE__ */ n(`div`,{className:`wui-drawer-discard`,role:`alert`,children:[/* @__PURE__ */ t(`span`,{className:`wui-drawer-discard-text`,children:r}),/* @__PURE__ */ t(e,{
|
|
1
|
+
import e from"../components/AppButton.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";function r({text:r,confirmRef:i,onDiscard:a,onKeep:o}){return/* @__PURE__ */ n(`div`,{className:`wui-drawer-discard`,role:`alert`,children:[/* @__PURE__ */ t(`span`,{className:`wui-drawer-discard-text`,children:r}),/* @__PURE__ */ t(e,{tone:`danger`,size:`sm`,"data-wui-discard-confirm":``,ref:i,onClick:a,children:`Discard`}),/* @__PURE__ */ t(e,{variant:`soft`,size:`sm`,"data-wui-discard-keep":``,onClick:o,children:`Keep editing`})]})}export{r as default};
|
package/dist/lib/FileItemRow.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../components/AppIcon.js";import t from"../components/AppProgress.js";import{linkOf as n,nameOf as r,sizeLabelOf as i,uploadErrorOf as a,uploadProgressOf as o,useItemUrl as s}from"./fileItem.js";import{jsx as
|
|
1
|
+
import e from"../components/AppIcon.js";import t from"../components/AppProgress.js";import{linkOf as n,nameOf as r,sizeLabelOf as i,uploadErrorOf as a,uploadProgressOf as o,useItemUrl as s}from"./fileItem.js";import c from"./fillLabel.js";import{linkTarget as l}from"./linkTarget.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";function f({item:f,isImage:p,onRemove:m,linkComponent:h,noun:g=`attachment`,removeFileLabel:_=`Remove {name}`,readOnly:v=!1}){let y=s(f,p),b=r(f),x=i(f),S=o(f),C=a(f),w=n(f),{Tag:T,linkProps:E}=l(h,{to:f?.to,href:w,routeHref:!1});return/* @__PURE__ */ d(`div`,{className:C?`attach-item wui-attach-failed`:`attach-item`,children:[/* @__PURE__ */ u(`span`,{className:`attach-item-media`,children:y?/* @__PURE__ */ u(`img`,{src:y,alt:b}):/* @__PURE__ */ u(e,{name:`file-text`,size:18})}),/* @__PURE__ */ d(`span`,{className:`attach-item-info`,children:[/* @__PURE__ */ u(`span`,{className:`attach-name`,children:w||f?.to?/* @__PURE__ */ u(T,{...E,children:b}):b}),x&&/* @__PURE__ */ u(`span`,{className:`attach-size`,children:x}),S!==null&&/* @__PURE__ */ u(t,{value:S,size:`sm`,label:`Uploading ${b}`,className:`wui-attach-progress`}),C&&/* @__PURE__ */ u(`div`,{className:`wui-attach-error`,children:C})]}),!v&&/* @__PURE__ */ u(`button`,{type:`button`,className:`attach-item-remove`,"aria-label":c(_,{name:b||g}),onClick:m,children:/* @__PURE__ */ u(e,{name:`x`,size:16})})]})}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{FILL_VARIANTS as e,TONES as t}from"./vocabulary.js";var n={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function r(r,i){let a=t.includes(r)?r:`primary`;return n[e.includes(i)?i:`solid`](a)}export{r as buttonClass};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`sm`,`md`,`lg`],t=`wui-field-busy`;function n(e){return e?e=>e.preventDefault():void 0}export{t as FIELD_BUSY_CLASS,e as FIELD_SIZES,n as blockWhenReadOnly};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){return String(e).replace(/[{]([A-Za-z0-9_]+)[}]/g,(e,n)=>n in t?String(t[n]):e)}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../components/AppInfoTip.js";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";function i(i,a,o){return i==null||!a?i:/* @__PURE__ */ r(t,{children:[i,/* @__PURE__ */ n(e,{label:o,children:a})]})}export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/^[a-z][a-z0-9+.-]*:/i;function t(t){return typeof t==`string`&&t!==``&&!t.startsWith(`#`)&&!t.startsWith(`//`)&&!e.test(t)}function n(e,{href:n,to:r,external:i=!1,routeHref:a=!0}={}){return r?e&&!i?{Tag:e,linkProps:{to:r}}:{Tag:`a`,linkProps:{href:r}}:a&&e&&!i&&t(n)?{Tag:e,linkProps:{to:n}}:{Tag:`a`,linkProps:{href:n}}}export{t as isInAppHref,n as linkTarget};
|
package/dist/lib/sectionShell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{TONES as e}from"./vocabulary.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],i=[`start`,`center`],a=[`default`,`muted`],o=[`display`,`body`];function s(e,t){return r.includes(e)?e:t}function c(e){return r[Math.min(r.indexOf(e)+1,5)]}function l({className:e,src:n,alt:r,width:i,height:a}){return/* @__PURE__ */ t(`img`,{className:e,src:n,alt:r,width:i,height:a,loading:`lazy`,decoding:`async`})}function u({component:r,kind:i,title:a,as:o,eyebrow:s,subtitle:c,align:l,variant:u,eyebrowTone:d,titleFont:f,inset:p,actions:m,extraClass:h,className:g,rest:_,children:v}){if(a==null||a===``)throw Error(`${r} needs a title: every section opens with its heading.`);let y=o,b=_.id?`${_.id}-title`:void 0,x=e.includes(d),{style:S,...C}=_,w=p==null&&S===void 0?void 0:{"--wui-section-inset":p==null?void 0:`${p}px`,...S},T=[`wui-section`,`wui-section-${i}`,l===`center`?`wui-section-center`:``,u===`muted`?`wui-section-muted`:``,h,g].filter(Boolean).join(` `);return/* @__PURE__ */ t(`section`,{className:T,style:w,"aria-labelledby":b,...C,children:/* @__PURE__ */ n(`div`,{className:`wui-section-inner`,children:[/* @__PURE__ */ n(`div`,{className:`wui-section-head`,children:[s!=null&&s!==``&&/* @__PURE__ */ t(`div`,{className:x?`wui-section-eyebrow wui-section-eyebrow-pill wui-section-eyebrow-${d}`:`wui-section-eyebrow`,children:s}),/* @__PURE__ */ t(y,{className:f===`body`?`wui-section-title wui-section-title-body`:`wui-section-title`,id:b,children:a}),c!=null&&c!==``&&/* @__PURE__ */ t(`p`,{className:`wui-section-subtitle`,children:c}),m!=null&&m!==!1&&/* @__PURE__ */ t(`div`,{className:`wui-section-actions`,children:m})]}),v]})})}export{i as SECTION_ALIGNS,r as SECTION_HEADINGS,o as SECTION_TITLE_FONTS,a as SECTION_VARIANTS,l as SectionImage,u as default,c as itemHeading,s as sectionHeading};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=[`primary`,`success`,`warning`,`danger`,`info`,`neutral`],t=[`solid`,`soft`,`outline`,`ghost`,`link`,`glass`];export{t as FILL_VARIANTS,e as TONES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=/^[a-z][a-z0-9+.-]*:[a-z0-9_-]+\/[a-z0-9_.~-]+$/i,t=/^https?:/i,n=/^(mailto|tel):/i
|
|
1
|
+
var e=/^[a-z][a-z0-9+.-]*:[a-z0-9_-]+\/[a-z0-9_.~-]+$/i,t=/^https?:/i,n=/^(mailto|tel):/i,r=/^(?:\/(?![/\\])|#|\?|\.{1,2}\/)/;function i(i,o,s,c){if(s&&e.test(i)){let e=s(i);if(e!=null)return{kind:`app`,target:e}}return o===`app`?null:r.test(i)?{kind:`page`,href:i}:t.test(i)?{kind:c&&a(i,c)?`page`:`web`,href:i}:n.test(i)?{kind:`contact`,href:i}:null}function a(e,t){if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return!1;let n=e[t.length];return n===void 0||n===`/`||n===`?`||n===`#`}function o(e){return typeof e!=`string`||!e.startsWith(`/`)||e[1]===`/`||e[1]===`\\`?null:e}export{i as linkTarget,o as webRoute};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The accounts a person can switch to, drawn as a labelled list for the user menu slot
|
|
3
|
+
* (`userMenu.section` of `AppShell`). The current account is marked, not chosen again.
|
|
4
|
+
*
|
|
5
|
+
* Selection is a CALLBACK, never navigation, the same as `AppWorkspaceSwitcher`: a row with no
|
|
6
|
+
* `href` calls `onSelect(account)`. A row with `href` navigates through `linkComponent` when one
|
|
7
|
+
* is supplied, otherwise a plain anchor, and the library never imports a router.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: the exported component must stay the FIRST destructured function in this file,
|
|
10
|
+
* because the parity check reads the first signature it finds as the component's public props.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} props
|
|
13
|
+
* @param {{ id: string, name: string, description?: string, photo?: string, badge?: string, href?: string }[]} [props.accounts]
|
|
14
|
+
* @param {string} [props.currentId] Falls back to the first account when it matches none.
|
|
15
|
+
* @param {(account: object) => void} [props.onSelect] Fired for a row with no href. No navigation.
|
|
16
|
+
* @param {string} [props.label] Heading above the list, default "Switch account".
|
|
17
|
+
* @param {import('react').ElementType} [props.linkComponent] Renders href rows with `to`, like AppWorkspaceSwitcher.
|
|
18
|
+
*/
|
|
19
|
+
export default function AppAccountSwitcher(props: {
|
|
20
|
+
/**
|
|
21
|
+
* The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.
|
|
22
|
+
* @default []
|
|
23
|
+
*/
|
|
24
|
+
accounts?: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
photo?: string;
|
|
29
|
+
badge?: string;
|
|
30
|
+
href?: string;
|
|
31
|
+
}[];
|
|
32
|
+
/** The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none. */
|
|
33
|
+
currentId?: string;
|
|
34
|
+
onSelect?: (account: object) => void;
|
|
35
|
+
/**
|
|
36
|
+
* The heading above the list. It is also the group's accessible name.
|
|
37
|
+
* @default "Switch account"
|
|
38
|
+
*/
|
|
39
|
+
label?: string;
|
|
40
|
+
linkComponent?: import('react').ElementType;
|
|
41
|
+
}): import("react").JSX.Element | null;
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
* @param {string} props.label
|
|
16
16
|
* @param {'auto'|'top'|'bottom'|'start'|'end'} [props.tooltipPlacement]
|
|
17
17
|
* @param {string} [props.shortcut]
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {"danger"|"neutral"} [props.tone]
|
|
19
19
|
* @param {"comfortable"|"compact"} [props.density]
|
|
20
|
-
* @param {boolean} [props.neutral]
|
|
21
20
|
* @param {boolean} [props.disabled]
|
|
22
21
|
* @param {number} [props.size]
|
|
23
22
|
* @param {() => void} [props.onClick]
|
|
@@ -45,21 +44,13 @@ export default function AppActionIcon(props: {
|
|
|
45
44
|
tooltipPlacement?: 'auto' | 'top' | 'bottom' | 'start' | 'end';
|
|
46
45
|
/** The key that runs this action, such as J or E. It is drawn as a key chip in the tooltip. */
|
|
47
46
|
shortcut?: string;
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
danger?: boolean;
|
|
47
|
+
/** danger draws a destructive tint. neutral mutes the ink and the hover surface, for an action on a card or a quiet surface. */
|
|
48
|
+
tone?: "danger" | "neutral";
|
|
53
49
|
/**
|
|
54
50
|
* How much room surrounds the glyph: comfortable keeps an 8px ring, compact 4px (a 16px glyph in a 24px disc).
|
|
55
51
|
* @default "comfortable"
|
|
56
52
|
*/
|
|
57
53
|
density?: "comfortable" | "compact";
|
|
58
|
-
/**
|
|
59
|
-
* Muted ink with a muted surface on hover, for an action on a card or a quiet surface. Not with danger.
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
neutral?: boolean;
|
|
63
54
|
/**
|
|
64
55
|
* Turns the action off.
|
|
65
56
|
* @default false
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
* @param {() => void} [props.onRetry] Shown as a Retry button on the error state when set.
|
|
18
18
|
* @param {import('react').ReactNode} [props.skeleton]
|
|
19
19
|
* @param {string} [props.className]
|
|
20
|
+
* @param {string} [props.loadingLabel] Default "Loading".
|
|
21
|
+
* @param {string} [props.errorTitle] Default "Something went wrong".
|
|
22
|
+
* @param {string} [props.retryLabel] Default "Retry".
|
|
23
|
+
* @param {string} [props.emptyTitle] Default "Nothing to show yet".
|
|
20
24
|
*/
|
|
21
25
|
export default function AppAsyncBlock(props: {
|
|
22
26
|
/**
|
|
@@ -40,4 +44,24 @@ export default function AppAsyncBlock(props: {
|
|
|
40
44
|
* @default ""
|
|
41
45
|
*/
|
|
42
46
|
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Replaces the built-in English text, for other languages.
|
|
49
|
+
* @default "Loading"
|
|
50
|
+
*/
|
|
51
|
+
loadingLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Replaces the built-in English text, for other languages.
|
|
54
|
+
* @default "Something went wrong"
|
|
55
|
+
*/
|
|
56
|
+
errorTitle?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Replaces the built-in English text, for other languages.
|
|
59
|
+
* @default "Retry"
|
|
60
|
+
*/
|
|
61
|
+
retryLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Replaces the built-in English text, for other languages.
|
|
64
|
+
* @default "Nothing to show yet"
|
|
65
|
+
*/
|
|
66
|
+
emptyTitle?: string;
|
|
43
67
|
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The page layout for sign-in, sign-up and reset pages: a centred panel holding the
|
|
3
|
+
* form, or a split page with the form beside an aside. The children are the form.
|
|
4
|
+
*
|
|
5
|
+
* Razor counterpart: `<app-auth-layout>` with `<app-auth-logo>`, `<app-auth-aside>` and
|
|
6
|
+
* `<app-auth-footer>` as child tags.
|
|
7
|
+
*
|
|
8
|
+
* The layout draws no heading, so put the single h1 of the page in the children.
|
|
9
|
+
*
|
|
10
|
+
* `aside` is drawn only for `variant="split"`, and only from the lg breakpoint up; below
|
|
11
|
+
* it the form is alone.
|
|
12
|
+
*
|
|
13
|
+
* @param {object} props
|
|
14
|
+
* @param {import('react').ReactNode} [props.logo] Shown above the form.
|
|
15
|
+
* @param {'centred'|'split'} [props.variant] Centred panel, or the form beside an aside. Default "centred".
|
|
16
|
+
* @param {'sm'|'md'|'lg'|number} [props.maxWidth] Panel width: sm 360px, md 420px, lg 520px, or an exact px number. Default "md".
|
|
17
|
+
* @param {import('react').ReactNode} [props.aside] Drawn beside the form when variant is "split".
|
|
18
|
+
* @param {import('react').ReactNode} [props.footer] Shown under the form.
|
|
19
|
+
* @param {import('react').ReactNode} [props.children] The form or page content.
|
|
20
|
+
* @param {string} [props.className] Extra classes on the root.
|
|
21
|
+
*/
|
|
22
|
+
export default function AppAuthLayout(props: {
|
|
23
|
+
/** The brand mark above the form, usually an img with width and height. */
|
|
24
|
+
logo?: import('react').ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The form alone in the middle, or the form beside an aside panel.
|
|
27
|
+
* @default "centred"
|
|
28
|
+
*/
|
|
29
|
+
variant?: 'centred' | 'split';
|
|
30
|
+
/**
|
|
31
|
+
* The widest size of the form column: a preset or an exact width in px. The presets are 360, 420 and 520 px.
|
|
32
|
+
* @default "md"
|
|
33
|
+
*/
|
|
34
|
+
maxWidth?: 'sm' | 'md' | 'lg' | number;
|
|
35
|
+
/** The panel beside the form. It is drawn only for variant split, and only from the lg breakpoint up. */
|
|
36
|
+
aside?: import('react').ReactNode;
|
|
37
|
+
/** Small print or a link under the form. */
|
|
38
|
+
footer?: import('react').ReactNode;
|
|
39
|
+
children?: import('react').ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Extra classes on the root.
|
|
42
|
+
* @default ""
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
45
|
+
}): import("react").JSX.Element;
|
|
@@ -2,6 +2,8 @@ import "@webority/ui-elements/elements/autocomplete";
|
|
|
2
2
|
declare const AppAutocomplete: import("react").ForwardRefExoticComponent<{
|
|
3
3
|
/** The value of the selected option. */
|
|
4
4
|
value?: string;
|
|
5
|
+
/** The starting value of an uncontrolled field. */
|
|
6
|
+
defaultValue?: string;
|
|
5
7
|
onChange?: (value: string, meta?: {
|
|
6
8
|
isCustom: boolean;
|
|
7
9
|
}) => void;
|
|
@@ -38,10 +40,23 @@ declare const AppAutocomplete: import("react").ForwardRefExoticComponent<{
|
|
|
38
40
|
* @default false
|
|
39
41
|
*/
|
|
40
42
|
disabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Shows the value but blocks editing. The value still posts.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Shows a busy state and blocks input while data loads.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
loading?: boolean;
|
|
41
53
|
/** Shows the list open, for a design preview or a controlled caller. */
|
|
42
54
|
open?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Control size: sm, md or lg (32, 36 or 44px). md is the default.
|
|
57
|
+
* @default "md"
|
|
58
|
+
*/
|
|
59
|
+
size?: 'sm' | 'md' | 'lg';
|
|
45
60
|
/**
|
|
46
61
|
* Offers the typed text as its own row when it matches no option, so a new value can be added.
|
|
47
62
|
* @default false
|
|
@@ -56,7 +71,7 @@ declare const AppAutocomplete: import("react").ForwardRefExoticComponent<{
|
|
|
56
71
|
/** An error message shown under the field. */
|
|
57
72
|
error?: string;
|
|
58
73
|
/** A hint shown under the field when there is no error. */
|
|
59
|
-
|
|
74
|
+
helperText?: string;
|
|
60
75
|
/**
|
|
61
76
|
* Marks the field as required, with the mark on the label.
|
|
62
77
|
* @default false
|
|
@@ -67,6 +82,11 @@ declare const AppAutocomplete: import("react").ForwardRefExoticComponent<{
|
|
|
67
82
|
* @default false
|
|
68
83
|
*/
|
|
69
84
|
optional?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Replaces the built-in English text, for other languages.
|
|
87
|
+
* @default "(optional)"
|
|
88
|
+
*/
|
|
89
|
+
optionalLabel?: string;
|
|
70
90
|
/** Help content shown in an info tip beside the label. */
|
|
71
91
|
help?: import('react').ReactNode;
|
|
72
92
|
/**
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* @param {string} [props.tooltip]
|
|
20
20
|
* @param {"auto"|"top"|"bottom"|"start"|"end"} [props.tooltipPlacement]
|
|
21
21
|
* @param {string} [props.className]
|
|
22
|
+
* @param {string} [props.photoLabel] Default "Profile photo". Replaces the built-in English text, for other languages.
|
|
22
23
|
*/
|
|
23
24
|
export default function AppAvatar(props: {
|
|
24
25
|
/** The person's name. Used for the initials fallback and the image alt text. */
|
|
@@ -77,4 +78,9 @@ export default function AppAvatar(props: {
|
|
|
77
78
|
* @default ""
|
|
78
79
|
*/
|
|
79
80
|
className?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Replaces the built-in English text, for other languages.
|
|
83
|
+
* @default "Profile photo"
|
|
84
|
+
*/
|
|
85
|
+
photoLabel?: string;
|
|
80
86
|
}): any;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @param {"xs"|"sm"|"md"|"lg"|"xl"|"2xl"|number|string} [props.size]
|
|
12
12
|
* @param {"tight"|"normal"|"loose"} [props.spacing]
|
|
13
13
|
* @param {number|string} [props.overflow]
|
|
14
|
+
* @param {string} [props.moreLabel] Default "{count} more".
|
|
14
15
|
* @param {string} [props.className]
|
|
15
16
|
*/
|
|
16
17
|
export default function AppAvatarGroup(props: {
|
|
@@ -24,6 +25,11 @@ export default function AppAvatarGroup(props: {
|
|
|
24
25
|
spacing?: "tight" | "normal" | "loose";
|
|
25
26
|
/** The hidden count, shown as a +N chip after the avatars. Zero or unset shows no chip. */
|
|
26
27
|
overflow?: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* Replaces the built-in English text, for other languages. The {count} token is the hidden count.
|
|
30
|
+
* @default "{count} more"
|
|
31
|
+
*/
|
|
32
|
+
moreLabel?: string;
|
|
27
33
|
/**
|
|
28
34
|
* Extra classes on the group.
|
|
29
35
|
* @default ""
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
* @param {string|import('react').ReactNode} [props.icon]
|
|
10
10
|
* @param {import('react').ReactNode} props.children The message; may include an inline action link.
|
|
11
11
|
* @param {boolean} [props.dismissible]
|
|
12
|
-
* @param {() => void} [props.
|
|
12
|
+
* @param {() => void} [props.onClose] Called after the banner is dismissed.
|
|
13
13
|
* @param {import('react').ReactNode} [props.action] A button or link at the banner's right edge.
|
|
14
14
|
* @param {string} [props.className]
|
|
15
|
+
* @param {string} [props.dismissLabel] Default "Dismiss".
|
|
15
16
|
*/
|
|
16
17
|
export default function AppBanner(props: {
|
|
17
18
|
/**
|
|
@@ -27,7 +28,7 @@ export default function AppBanner(props: {
|
|
|
27
28
|
* @default false
|
|
28
29
|
*/
|
|
29
30
|
dismissible?: boolean;
|
|
30
|
-
|
|
31
|
+
onClose?: () => void;
|
|
31
32
|
/** A button or link at the banner's right edge; it wraps below the message on a phone. */
|
|
32
33
|
action?: import('react').ReactNode;
|
|
33
34
|
/**
|
|
@@ -35,4 +36,9 @@ export default function AppBanner(props: {
|
|
|
35
36
|
* @default ""
|
|
36
37
|
*/
|
|
37
38
|
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Replaces the built-in English text, for other languages.
|
|
41
|
+
* @default "Dismiss"
|
|
42
|
+
*/
|
|
43
|
+
dismissLabel?: string;
|
|
38
44
|
}): import("react").JSX.Element | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare function buttonVariantClass(variant: any): string;
|
|
2
1
|
/**
|
|
3
2
|
* A button, or a button-styled link with href, in the kit's variants and sizes.
|
|
4
3
|
*
|
|
5
4
|
* @param {object} props
|
|
6
5
|
* @param {import('react').ReactNode} props.children The label.
|
|
7
|
-
* @param {"primary"|"
|
|
6
|
+
* @param {"primary"|"success"|"warning"|"danger"|"info"|"neutral"} [props.tone]
|
|
7
|
+
* @param {"solid"|"soft"|"outline"|"ghost"|"link"|"glass"} [props.variant]
|
|
8
8
|
* @param {"sm"|"md"|"lg"} [props.size]
|
|
9
9
|
* @param {"button"|"submit"|"reset"} [props.type]
|
|
10
10
|
* @param {boolean} [props.loading]
|
|
@@ -28,10 +28,15 @@ export declare function buttonVariantClass(variant: any): string;
|
|
|
28
28
|
export default function AppButton(props: {
|
|
29
29
|
children: import('react').ReactNode;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Semantic colour.
|
|
32
32
|
* @default "primary"
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
tone?: "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
35
|
+
/**
|
|
36
|
+
* Emphasis level: solid fill, soft tint, outline, ghost, link text, or glass.
|
|
37
|
+
* @default "solid"
|
|
38
|
+
*/
|
|
39
|
+
variant?: "solid" | "soft" | "outline" | "ghost" | "link" | "glass";
|
|
35
40
|
/**
|
|
36
41
|
* Control size.
|
|
37
42
|
* @default "md"
|
|
@@ -23,12 +23,14 @@ declare const AppCalendar: import("react").ForwardRefExoticComponent<{
|
|
|
23
23
|
eventsUrl?: string;
|
|
24
24
|
/** The view to show. Without it a calendar opens on the month, or on the list when it is narrower than a phone. */
|
|
25
25
|
view?: 'month' | 'week' | 'day' | 'list';
|
|
26
|
-
/** The
|
|
26
|
+
/** The day (`YYYY-MM-DD`, in the time zone of the calendar) to show; today when omitted. Changing it moves the calendar. */
|
|
27
27
|
date?: string;
|
|
28
28
|
/** What a list with no events says. */
|
|
29
29
|
emptyText?: string;
|
|
30
30
|
/** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's `--wui-first-day` token, which is 1 (Monday) unless the product sets it. */
|
|
31
31
|
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
32
|
+
/** IANA time zone the calendar shows, for example Asia/Kolkata or America/New_York. Events with an offset or a Z are moved into it; events with no offset are read as already in it. Unset, it is India Standard Time (Asia/Kolkata). */
|
|
33
|
+
timeZone?: string;
|
|
32
34
|
/** What is said when `eventsUrl` could not be loaded, and when the calendar's code could not. */
|
|
33
35
|
errorText?: string;
|
|
34
36
|
onEventClick?: (event: object) => (void | false);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* @param {import('react').ReactNode} [props.footer]
|
|
18
18
|
* @param {import('react').ReactNode} [props.media]
|
|
19
19
|
* @param {import('react').ReactNode} props.children
|
|
20
|
-
* @param {"
|
|
20
|
+
* @param {"flat"|"elevated"|"outline"|"filled"|"accent"} [props.variant]
|
|
21
21
|
* @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone]
|
|
22
22
|
* @param {"none"|"sm"|"md"|"lg"} [props.padding]
|
|
23
23
|
* @param {"xs"|"sm"|"md"|"lg"|number|string} [props.maxWidth]
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
* @param {string} [props.headerClassName]
|
|
27
27
|
* @param {boolean} [props.body]
|
|
28
28
|
* @param {boolean} [props.lifted]
|
|
29
|
+
* @param {boolean} [props.flush]
|
|
30
|
+
* @param {boolean} [props.divided]
|
|
29
31
|
* @param {string} [props.href]
|
|
30
32
|
* @param {(e) => void} [props.onClick] Makes the whole card a button (when no href).
|
|
31
33
|
* @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
|
|
@@ -63,9 +65,9 @@ export default function AppCard(props: {
|
|
|
63
65
|
children: import('react').ReactNode;
|
|
64
66
|
/**
|
|
65
67
|
* The visual treatment of the card.
|
|
66
|
-
* @default "
|
|
68
|
+
* @default "flat"
|
|
67
69
|
*/
|
|
68
|
-
variant?: "
|
|
70
|
+
variant?: "flat" | "elevated" | "outline" | "filled" | "accent";
|
|
69
71
|
/**
|
|
70
72
|
* Colours the `accent` stripe.
|
|
71
73
|
* @default "primary"
|
|
@@ -94,7 +96,7 @@ export default function AppCard(props: {
|
|
|
94
96
|
*/
|
|
95
97
|
headerClassName?: string;
|
|
96
98
|
/**
|
|
97
|
-
* Wrap children in `.card-body`. False
|
|
99
|
+
* Wrap children in `.card-body`. False when the content brings its own padding.
|
|
98
100
|
* @default true
|
|
99
101
|
*/
|
|
100
102
|
body?: boolean;
|
|
@@ -103,6 +105,16 @@ export default function AppCard(props: {
|
|
|
103
105
|
* @default false
|
|
104
106
|
*/
|
|
105
107
|
lifted?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Clips the content to the card's rounded corners and removes the body padding, for a table or image that runs edge to edge. The header and footer keep their padding. Anything that pokes outside the card, such as an inline menu, is clipped.
|
|
110
|
+
* @default false
|
|
111
|
+
*/
|
|
112
|
+
flush?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Draws a thin rule under the header. Needs a header (title, subtitle, headerIcon, headerActions or header). The rule colour is the --wui-card-divider-color token.
|
|
115
|
+
* @default false
|
|
116
|
+
*/
|
|
117
|
+
divided?: boolean;
|
|
106
118
|
/** Makes the whole card a link. */
|
|
107
119
|
href?: string;
|
|
108
120
|
onClick?: (e: any) => void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A table cell with a primary line over a quieter secondary line. A link `href` makes the primary an anchor;
|
|
3
|
+
* `mono` sets the primary in monospace; `numeric` right-aligns both lines with tabular digits. An empty primary
|
|
4
|
+
* reads "-", and a blank secondary draws no second line. The Razor `<app-cell>` renders the same markup and classes.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {string|number|React.ReactNode} [props.primary] The main value. Empty draws the placeholder "-"; 0 draws "0".
|
|
8
|
+
* @param {string|React.ReactNode} [props.secondary] The quieter detail line under the primary. Omitted when empty.
|
|
9
|
+
* @param {string} [props.href] Makes the primary a link to this address.
|
|
10
|
+
* @param {boolean} [props.mono] Sets the primary line in monospace.
|
|
11
|
+
* @param {boolean} [props.numeric] Right-aligns both lines with tabular digits.
|
|
12
|
+
* @param {string} [props.className] Extra class on the cell root.
|
|
13
|
+
*/
|
|
14
|
+
export default function AppCell(props: {
|
|
15
|
+
/** The main value on the first line. Empty draws the placeholder -; 0 draws 0. */
|
|
16
|
+
primary?: string | number | React.ReactNode;
|
|
17
|
+
/** The quieter detail line under the primary. Omitted when empty. */
|
|
18
|
+
secondary?: string | React.ReactNode;
|
|
19
|
+
/** Makes the primary a link to this address. */
|
|
20
|
+
href?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the primary line in monospace.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
mono?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Right-aligns both lines with tabular digits.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
numeric?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Extra class on the cell root.
|
|
33
|
+
* @default ""
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
}): import("react").JSX.Element;
|
|
@@ -74,15 +74,29 @@ declare const AppChart: import("react").ForwardRefExoticComponent<{
|
|
|
74
74
|
* @default "ready"
|
|
75
75
|
*/
|
|
76
76
|
state?: 'ready' | 'loading' | 'empty' | 'error';
|
|
77
|
+
/**
|
|
78
|
+
* The chart is loading: the same as state `loading`. Wins over `state`.
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
loading?: boolean;
|
|
82
|
+
/** The curated message to show when the chart failed: the same as state `error` with this text. Wins over `loading` and `state`, and replaces `errorText`. */
|
|
83
|
+
error?: string;
|
|
77
84
|
/** Replaces the default empty message. */
|
|
78
85
|
emptyText?: string;
|
|
79
86
|
/** Replaces the default error message. Say what the person can do. */
|
|
80
87
|
errorText?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Replaces the default loading message, the text read aloud while the chart loads.
|
|
90
|
+
* @default "Loading chart"
|
|
91
|
+
*/
|
|
92
|
+
loadingText?: string;
|
|
81
93
|
/**
|
|
82
94
|
* `auto` draws SVG, and canvas above 5,000 points.
|
|
83
95
|
* @default "auto"
|
|
84
96
|
*/
|
|
85
97
|
renderer?: 'auto' | 'svg' | 'canvas';
|
|
98
|
+
/** IANA time zone dates are read and shown in, for example America/New_York. Unset, it is India Standard Time (Asia/Kolkata). */
|
|
99
|
+
timeZone?: string;
|
|
86
100
|
/**
|
|
87
101
|
* `table` shows the data table in the chart's place.
|
|
88
102
|
* @default "chart"
|
|
@@ -27,6 +27,16 @@
|
|
|
27
27
|
* @param {import('react').ReactNode} [props.footer]
|
|
28
28
|
* @param {import('react').ReactNode} props.children The chart.
|
|
29
29
|
* @param {string} [props.className]
|
|
30
|
+
* @param {string} [props.legendLabel] Default "Show legend".
|
|
31
|
+
* @param {string} [props.legendTitle] Default "Show or hide the legend".
|
|
32
|
+
* @param {string} [props.viewLabel] Default "View".
|
|
33
|
+
* @param {string} [props.chartViewLabel] Default "Chart".
|
|
34
|
+
* @param {string} [props.tableViewLabel] Default "Table".
|
|
35
|
+
* @param {string} [props.moreActionsLabel] Default "More actions".
|
|
36
|
+
* @param {string} [props.moreActionsForLabel] Default "More actions for {title}".
|
|
37
|
+
* @param {string} [props.downloadPngLabel] Default "Download PNG".
|
|
38
|
+
* @param {string} [props.downloadCsvLabel] Default "Download CSV".
|
|
39
|
+
* @param {string} [props.retryLabel] Default "Try again".
|
|
30
40
|
*/
|
|
31
41
|
export default function AppChartCard(props: {
|
|
32
42
|
/** The card's heading. Also names the menu button for assistive tech. */
|
|
@@ -47,4 +57,54 @@ export default function AppChartCard(props: {
|
|
|
47
57
|
* @default ""
|
|
48
58
|
*/
|
|
49
59
|
className?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Replaces the built-in English text, for other languages.
|
|
62
|
+
* @default "Show legend"
|
|
63
|
+
*/
|
|
64
|
+
legendLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Replaces the built-in English text, for other languages.
|
|
67
|
+
* @default "Show or hide the legend"
|
|
68
|
+
*/
|
|
69
|
+
legendTitle?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Replaces the built-in English text, for other languages.
|
|
72
|
+
* @default "View"
|
|
73
|
+
*/
|
|
74
|
+
viewLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Replaces the built-in English text, for other languages.
|
|
77
|
+
* @default "Chart"
|
|
78
|
+
*/
|
|
79
|
+
chartViewLabel?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Replaces the built-in English text, for other languages.
|
|
82
|
+
* @default "Table"
|
|
83
|
+
*/
|
|
84
|
+
tableViewLabel?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Replaces the built-in English text, for other languages.
|
|
87
|
+
* @default "More actions"
|
|
88
|
+
*/
|
|
89
|
+
moreActionsLabel?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Replaces the built-in English text, for other languages. The token {title} is filled with the card's title.
|
|
92
|
+
* @default "More actions for {title}"
|
|
93
|
+
*/
|
|
94
|
+
moreActionsForLabel?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Replaces the built-in English text, for other languages.
|
|
97
|
+
* @default "Download PNG"
|
|
98
|
+
*/
|
|
99
|
+
downloadPngLabel?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Replaces the built-in English text, for other languages.
|
|
102
|
+
* @default "Download CSV"
|
|
103
|
+
*/
|
|
104
|
+
downloadCsvLabel?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Replaces the built-in English text, for other languages.
|
|
107
|
+
* @default "Try again"
|
|
108
|
+
*/
|
|
109
|
+
retryLabel?: string;
|
|
50
110
|
}): import("react").JSX.Element;
|
|
@@ -11,11 +11,33 @@ declare const AppCheckbox: import("react").ForwardRefExoticComponent<{
|
|
|
11
11
|
defaultChecked?: boolean;
|
|
12
12
|
/** Locks the checkbox and dims it. */
|
|
13
13
|
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Shows the value but blocks editing. The value still posts.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Shows a busy state and blocks input while data loads.
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The control size: sm, md or lg.
|
|
26
|
+
* @default "md"
|
|
27
|
+
*/
|
|
28
|
+
size?: "sm" | "md" | "lg";
|
|
14
29
|
onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
15
30
|
/** Error message, rendered below the control. Replaces the hint. */
|
|
16
31
|
error?: string;
|
|
17
32
|
/** Helper text below the control. Hidden while an error is shown. */
|
|
18
|
-
|
|
33
|
+
helperText?: string;
|
|
34
|
+
/** Content for the info-tip after the label. Shown only when a label is set. */
|
|
35
|
+
help?: import('react').ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* aria-label for the info-tip button.
|
|
38
|
+
* @default "More information"
|
|
39
|
+
*/
|
|
40
|
+
helpLabel?: string;
|
|
19
41
|
/** circle draws a round box with the tick inside, for a task that is completed. Omit it for the square box. */
|
|
20
42
|
shape?: 'circle';
|
|
21
43
|
/**
|