@webority/ui-react 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +699 -161649
- package/dist/canvas-kit/manifest.json +192 -97
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccordion.js +1 -1
- package/dist/components/AppAccountSwitcher.js +1 -1
- 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 -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/AppBreadcrumbs.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/AppCarousel.js +1 -1
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppCheckbox.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/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/AppConsentBanner.js +1 -1
- package/dist/components/AppContextMenu.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/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/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileTiles.js +1 -1
- package/dist/components/AppFileViewer.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingDock.js +1 -1
- package/dist/components/AppHoverCard.js +1 -1
- package/dist/components/AppIcon.js +1 -1
- package/dist/components/AppImagePicker.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/AppKbd.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/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavList.js +1 -1
- package/dist/components/AppNavigationMenu.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/AppOrgTree.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/AppQrCode.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppRecordPager.js +1 -1
- package/dist/components/AppRelativeTime.js +1 -1
- package/dist/components/AppRepeater.js +1 -1
- package/dist/components/AppResizable.js +1 -1
- package/dist/components/AppResourceCard.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/AppSearch.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/AppSeoHead.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppShortcutLegend.js +1 -1
- package/dist/components/AppShowMore.js +1 -1
- package/dist/components/AppSkeleton.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/AppSparkline.js +1 -1
- package/dist/components/AppSplash.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/AppTruncate.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/ModalIcons.js +1 -1
- package/dist/components/assertValidValue.js +1 -1
- package/dist/components/iconCatalogFull/bold/a.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/b.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/c.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/d.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/e.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/f.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/g.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/h.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/i.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/j.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/k.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/l.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/m.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/n.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/o.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/p.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/q.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/r.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/s.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/t.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/u.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/v.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/w.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/x.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/y.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/z.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/a.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/b.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/c.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/d.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/e.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/f.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/g.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/h.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/i.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/j.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/k.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/l.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/m.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/n.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/o.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/p.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/q.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/r.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/s.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/t.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/u.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/v.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/w.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/x.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/y.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/z.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/a.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/b.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/c.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/d.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/e.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/f.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/g.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/h.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/i.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/j.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/k.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/l.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/m.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/n.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/o.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/p.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/q.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/r.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/s.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/t.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/u.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/v.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/w.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/x.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/y.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/z.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/a.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/b.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/c.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/d.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/e.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/f.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/g.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/h.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/i.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/j.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/k.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/l.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/m.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/n.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/o.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/p.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/q.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/r.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/s.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/t.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/u.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/v.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/w.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/x.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/y.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/z.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/a.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/b.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/c.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/d.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/e.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/f.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/g.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/h.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/i.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/j.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/k.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/l.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/m.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/n.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/o.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/p.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/q.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/r.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/s.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/t.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/u.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/v.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/w.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/x.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/y.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/z.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/a.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/b.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/c.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/d.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/e.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/f.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/g.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/h.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/i.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/j.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/k.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/l.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/m.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/n.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/o.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/p.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/q.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/r.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/s.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/t.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/u.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/v.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/w.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/x.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/y.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/z.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/components/textOf.js +1 -0
- package/dist/components/toastStore.js +1 -1
- package/dist/components/useNodeLabels.js +1 -1
- package/dist/components/useWuiControl.js +1 -1
- package/dist/guidance.json +17 -14
- package/dist/lib/CheckField.js +1 -1
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/FocusPanel.js +1 -1
- package/dist/lib/TargetLink.js +1 -0
- package/dist/lib/buttonClass.js +1 -1
- package/dist/lib/emptyIllustration.js +1 -1
- package/dist/lib/fileItem.js +1 -1
- package/dist/lib/flagStyles.js +1 -1
- package/dist/lib/initials.js +1 -1
- package/dist/lib/linkTarget.js +1 -1
- package/dist/lib/pageScrollLock.js +1 -1
- package/dist/lib/qrCode.js +1 -1
- package/dist/lib/sectionShell.js +1 -1
- package/dist/lib/svgNodes.js +1 -0
- package/dist/lib/useElementEntry.js +1 -0
- package/dist/lib/useFileDrop.js +1 -1
- package/dist/lib/useTableView.js +1 -1
- package/dist/lib/wuiMarker.js +1 -1
- package/dist/markdown-core/dist/parse.js +3 -3
- package/dist/types/components/AppAccordion.d.ts +31 -34
- package/dist/types/components/AppAccountSwitcher.d.ts +29 -30
- package/dist/types/components/AppActionIcon.d.ts +39 -57
- package/dist/types/components/AppAlert.d.ts +35 -50
- package/dist/types/components/AppAsyncBlock.d.ts +23 -46
- package/dist/types/components/AppAuthLayout.d.ts +9 -22
- package/dist/types/components/AppAvatar.d.ts +26 -43
- package/dist/types/components/AppAvatarGroup.d.ts +11 -16
- package/dist/types/components/AppBadge.d.ts +13 -19
- package/dist/types/components/AppBanner.d.ts +18 -21
- package/dist/types/components/AppBreadcrumbs.d.ts +24 -20
- package/dist/types/components/AppButton.d.ts +65 -55
- package/dist/types/components/AppButtonGroup.d.ts +24 -22
- package/dist/types/components/AppCalendar.d.ts +35 -31
- package/dist/types/components/AppCard.d.ts +47 -67
- package/dist/types/components/AppCarousel.d.ts +35 -51
- package/dist/types/components/AppCell.d.ts +22 -21
- package/dist/types/components/AppChart.d.ts +93 -54
- package/dist/types/components/AppChartCard.d.ts +46 -58
- package/dist/types/components/AppCheckbox.d.ts +33 -18
- package/dist/types/components/AppChip.d.ts +32 -43
- package/dist/types/components/AppChipGroup.d.ts +17 -22
- package/dist/types/components/AppChoiceCard.d.ts +30 -54
- package/dist/types/components/AppChoiceChip.d.ts +42 -38
- package/dist/types/components/AppCodeBlock.d.ts +29 -28
- package/dist/types/components/AppColorField.d.ts +59 -57
- package/dist/types/components/AppColumnMenu.d.ts +21 -19
- package/dist/types/components/AppCommandPalette.d.ts +97 -102
- package/dist/types/components/AppCommentThread.d.ts +106 -181
- package/dist/types/components/AppCompareTable.d.ts +52 -57
- package/dist/types/components/AppConfirmDialog.d.ts +31 -46
- package/dist/types/components/AppConfirmProvider.d.ts +18 -21
- package/dist/types/components/AppConsentBanner.d.ts +43 -54
- package/dist/types/components/AppContextMenu.d.ts +63 -51
- package/dist/types/components/AppCopyButton.d.ts +26 -24
- package/dist/types/components/AppCountryFlag.d.ts +10 -8
- package/dist/types/components/AppDashboardCell.d.ts +14 -12
- package/dist/types/components/AppDashboardGrid.d.ts +9 -7
- package/dist/types/components/AppDataTable.d.ts +147 -144
- package/dist/types/components/AppDatePicker.d.ts +39 -28
- package/dist/types/components/AppDateRangePicker.d.ts +53 -40
- package/dist/types/components/AppDescriptions.d.ts +43 -38
- package/dist/types/components/AppDetailPane.d.ts +14 -19
- package/dist/types/components/AppDrawer.d.ts +46 -74
- package/dist/types/components/AppDropZone.d.ts +43 -47
- package/dist/types/components/AppDropdown.d.ts +59 -72
- package/dist/types/components/AppDueDate.d.ts +25 -39
- package/dist/types/components/AppEmptyState.d.ts +26 -36
- package/dist/types/components/AppErrorBoundary.d.ts +29 -29
- package/dist/types/components/AppErrorSummary.d.ts +27 -24
- package/dist/types/components/AppFileAttachment.d.ts +87 -70
- package/dist/types/components/AppFilePicker.d.ts +109 -95
- package/dist/types/components/AppFileTiles.d.ts +26 -23
- package/dist/types/components/AppFileViewer.d.ts +27 -21
- package/dist/types/components/AppFilterBar.d.ts +87 -84
- package/dist/types/components/AppFloatingButton.d.ts +37 -35
- package/dist/types/components/AppFloatingDock.d.ts +47 -41
- package/dist/types/components/AppFormActions.d.ts +21 -19
- package/dist/types/components/AppFormRow.d.ts +16 -19
- package/dist/types/components/AppFormSection.d.ts +24 -34
- package/dist/types/components/AppHoverCard.d.ts +28 -35
- package/dist/types/components/AppIcon.d.ts +29 -38
- package/dist/types/components/AppImagePicker.d.ts +54 -99
- package/dist/types/components/AppInfoTip.d.ts +17 -21
- package/dist/types/components/AppInlineEdit.d.ts +46 -51
- package/dist/types/components/AppInput.d.ts +82 -61
- package/dist/types/components/AppInputGroup.d.ts +22 -29
- package/dist/types/components/AppKanban.d.ts +110 -118
- package/dist/types/components/AppKbd.d.ts +12 -11
- package/dist/types/components/AppKpiTile.d.ts +45 -59
- package/dist/types/components/AppLeadPopup.d.ts +81 -38
- package/dist/types/components/AppLightbox.d.ts +44 -41
- package/dist/types/components/AppLink.d.ts +45 -42
- package/dist/types/components/AppMarkdown.d.ts +30 -37
- package/dist/types/components/AppMentionInput.d.ts +52 -40
- package/dist/types/components/AppMeter.d.ts +30 -33
- package/dist/types/components/AppMetricStrip.d.ts +29 -25
- package/dist/types/components/AppModal.d.ts +48 -51
- package/dist/types/components/AppNavList.d.ts +28 -27
- package/dist/types/components/AppNavigationMenu.d.ts +36 -33
- package/dist/types/components/AppNotificationCenter.d.ts +59 -92
- package/dist/types/components/AppNumberInput.d.ts +52 -30
- package/dist/types/components/AppOnboardingChecklist.d.ts +58 -48
- package/dist/types/components/AppOrgTree.d.ts +59 -29
- package/dist/types/components/AppOtpInput.d.ts +42 -25
- package/dist/types/components/AppPageHeader.d.ts +44 -66
- package/dist/types/components/AppPhoneNumberInput.d.ts +29 -27
- package/dist/types/components/AppPopover.d.ts +48 -37
- package/dist/types/components/AppPricingCard.d.ts +28 -37
- package/dist/types/components/AppProgress.d.ts +21 -29
- package/dist/types/components/AppQrCode.d.ts +19 -24
- package/dist/types/components/AppRadio.d.ts +24 -18
- package/dist/types/components/AppRadioGroup.d.ts +38 -61
- package/dist/types/components/AppRating.d.ts +38 -62
- package/dist/types/components/AppRecordPager.d.ts +28 -37
- package/dist/types/components/AppRelativeTime.d.ts +13 -16
- package/dist/types/components/AppRepeater.d.ts +41 -49
- package/dist/types/components/AppRequiredMark.d.ts +4 -4
- package/dist/types/components/AppResizable.d.ts +16 -17
- package/dist/types/components/AppResizableHandle.d.ts +5 -12
- package/dist/types/components/AppResizablePanel.d.ts +7 -20
- package/dist/types/components/AppResourceCard.d.ts +9 -21
- package/dist/types/components/AppResult.d.ts +23 -31
- package/dist/types/components/AppRichText.d.ts +46 -21
- package/dist/types/components/AppRollingNumber.d.ts +18 -25
- package/dist/types/components/AppRouteError.d.ts +32 -50
- package/dist/types/components/AppRowSwitch.d.ts +4 -9
- package/dist/types/components/AppScoreScale.d.ts +44 -42
- package/dist/types/components/AppScrollbar.d.ts +11 -16
- package/dist/types/components/AppSearch.d.ts +39 -37
- package/dist/types/components/AppSectionCallToAction.d.ts +28 -24
- package/dist/types/components/AppSectionFaq.d.ts +34 -32
- package/dist/types/components/AppSectionFeatures.d.ts +21 -30
- package/dist/types/components/AppSectionHero.d.ts +16 -24
- package/dist/types/components/AppSectionLeadCapture.d.ts +33 -51
- package/dist/types/components/AppSectionLogos.d.ts +25 -30
- package/dist/types/components/AppSectionPricing.d.ts +15 -20
- package/dist/types/components/AppSectionTestimonials.d.ts +26 -32
- package/dist/types/components/AppSegmented.d.ts +40 -55
- package/dist/types/components/AppSelect.d.ts +179 -116
- package/dist/types/components/AppSeoHead.d.ts +15 -21
- package/dist/types/components/AppShell.d.ts +206 -334
- package/dist/types/components/AppShortcutLegend.d.ts +32 -39
- package/dist/types/components/AppShowMore.d.ts +22 -29
- package/dist/types/components/AppSkeleton.d.ts +17 -26
- package/dist/types/components/AppSkeletonLines.d.ts +12 -16
- package/dist/types/components/AppSlider.d.ts +74 -48
- package/dist/types/components/AppSortableList.d.ts +47 -21
- package/dist/types/components/AppSparkline.d.ts +34 -33
- package/dist/types/components/AppSpinner.d.ts +18 -17
- package/dist/types/components/AppSplash.d.ts +24 -32
- package/dist/types/components/AppSplitButton.d.ts +41 -53
- package/dist/types/components/AppSplitView.d.ts +75 -97
- package/dist/types/components/AppStatusBadge.d.ts +19 -19
- package/dist/types/components/AppStepper.d.ts +57 -61
- package/dist/types/components/AppSwitch.d.ts +24 -27
- package/dist/types/components/AppTablePagination.d.ts +34 -55
- package/dist/types/components/AppTableToolbar.d.ts +31 -44
- package/dist/types/components/AppTabs.d.ts +62 -75
- package/dist/types/components/AppTextarea.d.ts +35 -51
- package/dist/types/components/AppThemeToggle.d.ts +60 -53
- package/dist/types/components/AppTimePicker.d.ts +29 -28
- package/dist/types/components/AppTimeline.d.ts +59 -60
- package/dist/types/components/AppToast.d.ts +26 -27
- package/dist/types/components/AppToolbar.d.ts +46 -52
- package/dist/types/components/AppTooltip.d.ts +26 -30
- package/dist/types/components/AppTour.d.ts +57 -41
- package/dist/types/components/AppTreeView.d.ts +53 -30
- package/dist/types/components/AppTruncate.d.ts +16 -21
- package/dist/types/components/AppUpdateBar.d.ts +21 -26
- package/dist/types/components/AppWhatsNew.d.ts +40 -48
- package/dist/types/components/AppWizard.d.ts +64 -48
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +56 -60
- package/dist/types/components/ModalIcons.d.ts +17 -38
- package/dist/types/components/assertValidValue.d.ts +1 -5
- package/dist/types/components/iconCatalogFull/bold/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/bold/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/bold/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/bold/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/bold/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/bold/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/bold/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bold/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bold/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/bold/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bold/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bold/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/bold/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/bold/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/bold/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bold/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/bold/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/bold/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/bold/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/bold/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/bold/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/bold/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/bold/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/bold/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bold/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/bold/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/broken/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/broken/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/broken/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/broken/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/broken/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/broken/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/broken/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/broken/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/broken/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/broken/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/broken/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/broken/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/broken/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/broken/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/broken/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/broken/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/broken/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/broken/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/broken/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/broken/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/broken/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/broken/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/broken/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/broken/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/broken/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/broken/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/bulk/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/bulk/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/bulk/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/bulk/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/bulk/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/bulk/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/bulk/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bulk/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bulk/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/bulk/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bulk/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bulk/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/bulk/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/bulk/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/bulk/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bulk/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/bulk/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/bulk/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/bulk/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/bulk/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/bulk/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/bulk/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/bulk/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/bulk/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bulk/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/bulk/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/linear/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/linear/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/linear/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/linear/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/linear/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/linear/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/linear/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/linear/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/linear/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/linear/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/linear/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/linear/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/linear/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/linear/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/linear/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/linear/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/linear/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/linear/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/linear/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/linear/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/linear/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/linear/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/linear/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/linear/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/linear/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/linear/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/outline/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/outline/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/outline/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/outline/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/outline/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/outline/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/outline/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/outline/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/outline/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/outline/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/outline/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/outline/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/outline/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/outline/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/outline/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/outline/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/outline/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/outline/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/outline/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/outline/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/outline/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/outline/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/outline/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/outline/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/outline/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/outline/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/twotone/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/twotone/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/twotone/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/twotone/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/twotone/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/twotone/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/twotone/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/twotone/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/twotone/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/twotone/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/twotone/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/twotone/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/twotone/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/twotone/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/twotone/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/twotone/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/twotone/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/twotone/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/twotone/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/twotone/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/twotone/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/twotone/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/twotone/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/twotone/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/twotone/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/twotone/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogLoaders.g.d.ts +10 -171
- package/dist/types/components/iconGlyphs.g.d.ts +2 -238
- package/dist/types/components/iconVariants.g.d.ts +2 -1167
- package/dist/types/components/renderIconProp.d.ts +10 -9
- package/dist/types/components/textOf.d.ts +3 -0
- package/dist/types/components/toast.d.ts +13 -5
- package/dist/types/components/toastStore.d.ts +33 -4
- package/dist/types/components/useNodeLabels.d.ts +12 -12
- package/dist/types/components/useWuiControl.d.ts +73 -49
- package/dist/types/components/warnUnknownProps.d.ts +3 -3
- package/dist/types/components/withTooltip.d.ts +3 -1
- package/dist/types/index.d.ts +177 -164
- package/dist/types/lib/CheckField.d.ts +19 -1
- package/dist/types/lib/DiscardPrompt.d.ts +10 -12
- package/dist/types/lib/FieldMessage.d.ts +8 -12
- package/dist/types/lib/FileItemRow.d.ts +19 -23
- package/dist/types/lib/FocusPanel.d.ts +5 -3
- package/dist/types/lib/TargetLink.d.ts +9 -0
- package/dist/types/lib/buttonClass.d.ts +0 -4
- package/dist/types/lib/devWarn.d.ts +2 -2
- package/dist/types/lib/emptyIllustration.d.ts +9 -18
- package/dist/types/lib/emptyValue.d.ts +2 -6
- package/dist/types/lib/fieldState.d.ts +3 -1
- package/dist/types/lib/fileItem.d.ts +16 -7
- package/dist/types/lib/fillLabel.d.ts +1 -1
- package/dist/types/lib/flagStyles.d.ts +1 -1
- package/dist/types/lib/focusField.d.ts +2 -2
- package/dist/types/lib/initials.d.ts +3 -4
- package/dist/types/lib/labelWithHelp.d.ts +2 -6
- package/dist/types/lib/linkTarget.d.ts +33 -19
- package/dist/types/lib/navMatch.d.ts +7 -10
- package/dist/types/lib/pageWindow.d.ts +7 -8
- package/dist/types/lib/qrCode.d.ts +17 -37
- package/dist/types/lib/sectionShell.d.ts +39 -31
- package/dist/types/lib/shellCookie.d.ts +3 -3
- package/dist/types/lib/shortcutChip.d.ts +4 -3
- package/dist/types/lib/svgNodes.d.ts +4 -0
- package/dist/types/lib/useCommandPaletteShortcut.d.ts +3 -3
- package/dist/types/lib/useElementEntry.d.ts +16 -0
- package/dist/types/lib/useFileDrop.d.ts +23 -16
- package/dist/types/lib/useFloatingStack.d.ts +5 -4
- package/dist/types/lib/useListShortcuts.d.ts +9 -7
- package/dist/types/lib/usePagination.d.ts +8 -6
- package/dist/types/lib/useTableView.d.ts +17 -19
- package/dist/types/lib/wuiMarker.d.ts +12 -10
- package/dist/types/reactAugmentations.d.ts +22 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/query/listQuery.js +1 -1
- package/package.json +15 -12
|
@@ -1,97 +1,110 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
1
|
+
import type React from "react";
|
|
2
|
+
type DateRangePresetName = "today" | "yesterday" | "last7Days" | "last30Days" | "thisMonth" | "lastMonth" | "thisFinancialYear";
|
|
3
|
+
export interface DateRangeValue {
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DateRangePreset {
|
|
8
|
+
label: string;
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
}
|
|
12
|
+
export interface AppDateRangePickerProps extends Omit<React.HTMLAttributes<HTMLElement>, "defaultValue" | "onChange" | "placeholder"> {
|
|
3
13
|
/** Range start as an ISO date string (YYYY-MM-DD). */
|
|
4
|
-
start?: string;
|
|
14
|
+
start?: string | undefined;
|
|
5
15
|
/** Range end as an ISO date string (YYYY-MM-DD). */
|
|
6
|
-
end?: string;
|
|
16
|
+
end?: string | undefined;
|
|
7
17
|
/** The starting start date of an uncontrolled field. */
|
|
8
|
-
defaultStart?: string;
|
|
18
|
+
defaultStart?: string | undefined;
|
|
9
19
|
/** The starting end date of an uncontrolled field. */
|
|
10
|
-
defaultEnd?: string;
|
|
11
|
-
onChange?: (range:
|
|
12
|
-
start: string;
|
|
13
|
-
end: string;
|
|
14
|
-
}) => void;
|
|
20
|
+
defaultEnd?: string | undefined;
|
|
21
|
+
onChange?: ((range: DateRangeValue) => void) | undefined;
|
|
15
22
|
/** The field label, shown above the control and used as its accessible name. */
|
|
16
|
-
label?:
|
|
23
|
+
label?: React.ReactNode | undefined;
|
|
17
24
|
/** The content of the info-tip beside the label, opened by a button. */
|
|
18
|
-
help?:
|
|
25
|
+
help?: React.ReactNode | undefined;
|
|
19
26
|
/**
|
|
20
27
|
* The accessible name of the info-tip button.
|
|
21
28
|
* @default "More information"
|
|
22
29
|
*/
|
|
23
|
-
helpLabel?: string;
|
|
30
|
+
helpLabel?: string | undefined;
|
|
24
31
|
/**
|
|
25
32
|
* Marks the field required, with the required mark on the label.
|
|
26
33
|
* @default false
|
|
27
34
|
*/
|
|
28
|
-
required?: boolean;
|
|
35
|
+
required?: boolean | undefined;
|
|
29
36
|
/**
|
|
30
37
|
* Ends the label with (optional) when the field is not required. Required wins when both are set.
|
|
31
38
|
* @default false
|
|
32
39
|
*/
|
|
33
|
-
optional?: boolean;
|
|
40
|
+
optional?: boolean | undefined;
|
|
34
41
|
/**
|
|
35
42
|
* Replaces the built-in English text, for other languages.
|
|
36
43
|
* @default "(optional)"
|
|
37
44
|
*/
|
|
38
|
-
optionalLabel?: string;
|
|
45
|
+
optionalLabel?: string | undefined;
|
|
39
46
|
/** Helper text shown under the control. */
|
|
40
|
-
helperText?: string;
|
|
47
|
+
helperText?: string | undefined;
|
|
41
48
|
/** An error message shown under the control. */
|
|
42
|
-
error?: string;
|
|
49
|
+
error?: string | undefined;
|
|
43
50
|
/** Form field name the start date posts under. */
|
|
44
|
-
startName?: string;
|
|
51
|
+
startName?: string | undefined;
|
|
45
52
|
/** Form field name the end date posts under. */
|
|
46
|
-
endName?: string;
|
|
53
|
+
endName?: string | undefined;
|
|
47
54
|
/** The earliest selectable date, as an ISO date string. */
|
|
48
|
-
min?: string;
|
|
55
|
+
min?: string | undefined;
|
|
49
56
|
/** The latest selectable date, as an ISO date string. */
|
|
50
|
-
max?: string;
|
|
57
|
+
max?: string | undefined;
|
|
51
58
|
/**
|
|
52
59
|
* Text shown in the field while no range is chosen.
|
|
53
60
|
* @default "Start to End"
|
|
54
61
|
*/
|
|
55
|
-
placeholder?: string;
|
|
62
|
+
placeholder?: string | undefined;
|
|
56
63
|
/** Disables the control. */
|
|
57
|
-
disabled?: boolean;
|
|
64
|
+
disabled?: boolean | undefined;
|
|
58
65
|
/**
|
|
59
66
|
* Shows the value but blocks editing. The value still posts.
|
|
60
67
|
* @default false
|
|
61
68
|
*/
|
|
62
|
-
readOnly?: boolean;
|
|
69
|
+
readOnly?: boolean | undefined;
|
|
63
70
|
/**
|
|
64
71
|
* Shows a busy state and blocks input while data loads.
|
|
65
72
|
* @default false
|
|
66
73
|
*/
|
|
67
|
-
loading?: boolean;
|
|
74
|
+
loading?: boolean | undefined;
|
|
68
75
|
/** Control height tier, matching AppInput. */
|
|
69
|
-
size?:
|
|
76
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
70
77
|
/** 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. */
|
|
71
|
-
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
78
|
+
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
72
79
|
/** IANA time zone the quick ranges are resolved in, for example Asia/Kolkata or America/New_York. Unset, it is India Standard Time (Asia/Kolkata). */
|
|
73
|
-
timeZone?: string;
|
|
80
|
+
timeZone?: string | undefined;
|
|
74
81
|
/** The month number, 1 to 12, the financial year starts in; it sets the thisFinancialYear quick range. Unset, it is 4 (April). */
|
|
75
|
-
financialYearStart?: number;
|
|
82
|
+
financialYearStart?: number | undefined;
|
|
76
83
|
/** Quick ranges, listed beside the calendar (above it on a phone); picking one fills the range and closes the calendar. An item is a name (today, yesterday, last7Days, last30Days, thisMonth, lastMonth or thisFinancialYear, resolved against today in the time zone (IST unless timeZone is set)) or { label, start, end } with ISO dates. */
|
|
77
|
-
presets?: (
|
|
78
|
-
label: string;
|
|
79
|
-
start: string;
|
|
80
|
-
end: string;
|
|
81
|
-
})[];
|
|
84
|
+
presets?: (DateRangePresetName | DateRangePreset)[] | undefined;
|
|
82
85
|
/** The id of the control; a unique one is made when left out. */
|
|
83
|
-
id?: string;
|
|
86
|
+
id?: string | undefined;
|
|
84
87
|
/** Accessible name when there is no visible label. */
|
|
85
|
-
ariaLabel?: string;
|
|
88
|
+
ariaLabel?: string | undefined;
|
|
86
89
|
/**
|
|
87
90
|
* Class to apply to the control element.
|
|
88
91
|
* @default ""
|
|
89
92
|
*/
|
|
90
|
-
className?: string;
|
|
93
|
+
className?: string | undefined;
|
|
91
94
|
/**
|
|
92
95
|
* Class to apply to the wrapper field div.
|
|
93
96
|
* @default ""
|
|
94
97
|
*/
|
|
95
|
-
fieldClassName?: string;
|
|
96
|
-
}
|
|
98
|
+
fieldClassName?: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Thin React wrapper over the shared `<wui-date-range>` element: a start/end date range
|
|
102
|
+
* field with a two-month popover calendar (single implementation, so React and Razor render
|
|
103
|
+
* the same control). Wrapped in the standard `.field` shell: label / required mark / helper text /
|
|
104
|
+
* error, the same as `<app-date-range-picker>` and every other field primitive.
|
|
105
|
+
*
|
|
106
|
+
* Controlled through two ISO strings; `onChange` fires with `{ start, end }` when the range
|
|
107
|
+
* completes or is cleared.
|
|
108
|
+
*/
|
|
109
|
+
declare const AppDateRangePicker: React.ForwardRefExoticComponent<AppDateRangePickerProps & React.RefAttributes<HTMLElement>>;
|
|
97
110
|
export default AppDateRangePicker;
|
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
key?: string;
|
|
26
|
-
emphasis?: boolean;
|
|
27
|
-
multiline?: boolean;
|
|
28
|
-
icon?: string | import('react').ReactNode;
|
|
29
|
-
href?: string;
|
|
30
|
-
}[];
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
interface AppDescriptionItemBase {
|
|
4
|
+
value: React.ReactNode;
|
|
5
|
+
span?: number | undefined;
|
|
6
|
+
emphasis?: boolean | undefined;
|
|
7
|
+
multiline?: boolean | undefined;
|
|
8
|
+
icon?: string | React.ReactNode | undefined;
|
|
9
|
+
href?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/** A text label may leave `key` out (the row is keyed by its label); any other label needs a `key`, so the row's React key is never "[object Object]". */
|
|
12
|
+
export type AppDescriptionItem = AppDescriptionItemBase & ({
|
|
13
|
+
label: string;
|
|
14
|
+
key?: string | undefined;
|
|
15
|
+
} | {
|
|
16
|
+
label: React.ReactNode;
|
|
17
|
+
key: string;
|
|
18
|
+
});
|
|
19
|
+
export interface AppDescriptionsProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title"> {
|
|
20
|
+
/**
|
|
21
|
+
* The rows, each with a label and a value. A span of 2 or 3 makes the item span multiple columns, and emphasis marks the total row.
|
|
22
|
+
* @default []
|
|
23
|
+
*/
|
|
24
|
+
items?: readonly AppDescriptionItem[] | undefined;
|
|
31
25
|
/**
|
|
32
26
|
* How many columns the grid should have, before the media-breakpoint collapse.
|
|
33
27
|
* @default 2
|
|
34
28
|
*/
|
|
35
|
-
columns?: 1 | 2 | 3 | 4;
|
|
29
|
+
columns?: 1 | 2 | 3 | 4 | undefined;
|
|
36
30
|
/**
|
|
37
31
|
* Item padding and font size.
|
|
38
32
|
* @default "md"
|
|
39
33
|
*/
|
|
40
|
-
size?: "sm" | "md";
|
|
34
|
+
size?: "sm" | "md" | undefined;
|
|
41
35
|
/**
|
|
42
36
|
* Draws a rule between rows, across every column.
|
|
43
37
|
* @default false
|
|
44
38
|
*/
|
|
45
|
-
bordered?: boolean;
|
|
39
|
+
bordered?: boolean | undefined;
|
|
46
40
|
/**
|
|
47
41
|
* summary puts each label left of its value, with tabular figures. list is one column of rows with a rule between them, a flush first and last row and a single-line value.
|
|
48
42
|
* @default "grid"
|
|
49
43
|
*/
|
|
50
|
-
layout?: "grid" | "summary" | "list";
|
|
44
|
+
layout?: "grid" | "summary" | "list" | undefined;
|
|
51
45
|
/** Optional heading above the grid. */
|
|
52
|
-
title?:
|
|
53
|
-
|
|
46
|
+
title?: React.ReactNode | undefined;
|
|
47
|
+
/** Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic. */
|
|
48
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
54
49
|
/**
|
|
55
50
|
* Extra classes on the grid container.
|
|
56
51
|
* @default ""
|
|
57
52
|
*/
|
|
58
|
-
className?: string;
|
|
59
|
-
}
|
|
53
|
+
className?: string | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A labeled key-value grid for displaying record details — like an Ant "Descriptions" or
|
|
57
|
+
* a definition list. Renders a two-column (or single-column on small screens) grid of
|
|
58
|
+
* label/value pairs.
|
|
59
|
+
*
|
|
60
|
+
* Each item can span multiple columns and specify a size variant. Empty/null values
|
|
61
|
+
* render as a muted hyphen so a missing fact reads as "no value", not a broken row.
|
|
62
|
+
*/
|
|
63
|
+
export default function AppDescriptions(props: AppDescriptionsProps): React.JSX.Element;
|
|
64
|
+
export {};
|
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* `onClose`. Razor counterpart: `<app-detail-pane>`, filled by `WUI.pane.load`.
|
|
4
|
-
*
|
|
5
|
-
* @param {object} props
|
|
6
|
-
* @param {boolean} [props.open] Shows the pane. Defaults to false.
|
|
7
|
-
* @param {() => void} [props.onClose] Called on Escape inside the pane.
|
|
8
|
-
* @param {string} props.label The accessible name of the pane region.
|
|
9
|
-
* @param {boolean} [props.sticky] Keeps the pane in view under the top bar while the list scrolls. Defaults to true.
|
|
10
|
-
* @param {import('react').ReactNode} [props.children]
|
|
11
|
-
* @param {string} [props.className]
|
|
12
|
-
*/
|
|
13
|
-
export default function AppDetailPane(props: {
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface AppDetailPaneProps extends React.ComponentPropsWithoutRef<"aside"> {
|
|
14
3
|
/**
|
|
15
4
|
* Shows the pane. Closed, the pane is hidden and takes no room. The caller owns it and closes it in onClose.
|
|
16
5
|
* @default false
|
|
17
6
|
*/
|
|
18
|
-
open?: boolean;
|
|
19
|
-
|
|
7
|
+
open?: boolean | undefined;
|
|
8
|
+
/** Called on Escape inside the pane. */
|
|
9
|
+
onClose?: (() => void) | undefined;
|
|
20
10
|
/** The accessible name of the pane region. */
|
|
21
11
|
label: string;
|
|
22
12
|
/**
|
|
23
13
|
* Keeps the pane in view under the top bar while the list beside it scrolls.
|
|
24
14
|
* @default true
|
|
25
15
|
*/
|
|
26
|
-
sticky?: boolean;
|
|
27
|
-
children?:
|
|
16
|
+
sticky?: boolean | undefined;
|
|
17
|
+
children?: React.ReactNode | undefined;
|
|
28
18
|
/**
|
|
29
19
|
* Extra classes on the pane.
|
|
30
20
|
* @default ""
|
|
31
21
|
*/
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
22
|
+
className?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* An in-page detail column beside a list. It is hidden until `open`, and Escape inside it calls
|
|
26
|
+
* `onClose`. Razor counterpart: `<app-detail-pane>`, filled by `WUI.pane.load`.
|
|
27
|
+
*/
|
|
28
|
+
export default function AppDetailPane(props: AppDetailPaneProps): React.JSX.Element;
|
|
@@ -1,140 +1,112 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
* A panel over the page that is a side drawer from md up and a bottom sheet below it. The sheet
|
|
4
|
-
* rests on `snapPoints` (percent of the screen height), follows a finger on its handle or header,
|
|
5
|
-
* flicks to the next point and is dragged down to close; its handle is a vertical slider the arrow
|
|
6
|
-
* keys, Home and End also move. Focus moves in on open, Tab stays inside, Escape closes, and
|
|
7
|
-
* focus returns to what opened it. Controlled: set `open` and close it in `onClose`. Distinct from
|
|
8
|
-
* `AppModal`, which is a centred dialog on every screen. Wraps `<wui-drawer>`, which Razor
|
|
9
|
-
* `<app-drawer>` renders too. Place it where no ancestor has a transform, since it is fixed to the
|
|
10
|
-
* viewport.
|
|
11
|
-
*
|
|
12
|
-
* @param {object} props
|
|
13
|
-
* @param {boolean} [props.open]
|
|
14
|
-
* @param {() => void} [props.onClose] Called when the backdrop, Escape, the close button or a drag
|
|
15
|
-
* down asks to close it. It stays open until `open` becomes false.
|
|
16
|
-
* @param {string} [props.title]
|
|
17
|
-
* @param {string} [props.titleIcon]
|
|
18
|
-
* @param {import('react').ReactNode} [props.header] Replaces the default header (title, subtitle, close).
|
|
19
|
-
* @param {string} [props.subtitle]
|
|
20
|
-
* @param {string} [props.ariaLabel]
|
|
21
|
-
* @param {'end'|'start'} [props.side]
|
|
22
|
-
* @param {'sm'|'md'|'lg'|'xl'} [props.size]
|
|
23
|
-
* @param {string} [props.width] CSS width; overrides size. Max width 92vw unless maxWidth is given.
|
|
24
|
-
* @param {string} [props.maxWidth]
|
|
25
|
-
* @param {number[]} [props.snapPoints]
|
|
26
|
-
* @param {number} [props.defaultSnap]
|
|
27
|
-
* @param {boolean} [props.sheet] Below md the drawer is a bottom sheet with snap points. false keeps the side panel at every width (menus). Default true.
|
|
28
|
-
* @param {(index: number, percent: number) => void} [props.onSnapChange] Called when the sheet moves to another point.
|
|
29
|
-
* @param {() => void} [props.onOpened] After the open transition.
|
|
30
|
-
* @param {() => void} [props.onClosed] After the close transition.
|
|
31
|
-
* @param {boolean} [props.dismissible] Default true. false hides the close button and also blocks Escape, backdrop and drag dismissal, so only the screen's own actions close it.
|
|
32
|
-
* @param {string} [props.closeLabel] Default "Close".
|
|
33
|
-
* @param {string} [props.sheetHeightLabel] Default "Sheet height".
|
|
34
|
-
* @param {boolean} [props.staticBackdrop] Defaults to true: Escape and an outside click leave the drawer open. Pass false to let them close it.
|
|
35
|
-
* @param {string} [props.confirmDiscard]
|
|
36
|
-
* @param {boolean} [props.dirty]
|
|
37
|
-
* @param {import('react').ReactNode} [props.footer]
|
|
38
|
-
* @param {string} [props.className]
|
|
39
|
-
* @param {string} [props.headerClassName] Classes on the default header; ignored when `header` replaces it.
|
|
40
|
-
* @param {string} [props.bodyClassName]
|
|
41
|
-
* @param {import('react').CSSProperties} [props.style]
|
|
42
|
-
* @param {import('react').ReactNode} props.children
|
|
43
|
-
*/
|
|
44
|
-
export default function AppDrawer(props: {
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface AppDrawerProps {
|
|
45
3
|
/**
|
|
46
4
|
* Whether the drawer is open. The caller owns it and closes it in onClose.
|
|
47
5
|
* @default false
|
|
48
6
|
*/
|
|
49
|
-
open?: boolean;
|
|
50
|
-
onClose?: () => void;
|
|
7
|
+
open?: boolean | undefined;
|
|
8
|
+
onClose?: (() => void) | undefined;
|
|
51
9
|
/** The heading, and the dialog's accessible name. */
|
|
52
|
-
title?: string;
|
|
10
|
+
title?: string | undefined;
|
|
53
11
|
/** Library icon beside the title. */
|
|
54
|
-
titleIcon?: string;
|
|
12
|
+
titleIcon?: string | undefined;
|
|
55
13
|
/** A custom header that replaces the default one (title, subtitle and close button). */
|
|
56
|
-
header?:
|
|
14
|
+
header?: React.ReactNode | undefined;
|
|
57
15
|
/** A line under the title. */
|
|
58
|
-
subtitle?: string;
|
|
16
|
+
subtitle?: string | undefined;
|
|
59
17
|
/** The dialog's accessible name when there is no title. */
|
|
60
|
-
ariaLabel?: string;
|
|
18
|
+
ariaLabel?: string | undefined;
|
|
61
19
|
/**
|
|
62
20
|
* Which edge the side drawer slides from.
|
|
63
21
|
* @default "end"
|
|
64
22
|
*/
|
|
65
|
-
side?:
|
|
23
|
+
side?: "end" | "start" | undefined;
|
|
66
24
|
/**
|
|
67
25
|
* The side drawer's width: 360, 480, 640 or 720 px.
|
|
68
26
|
* @default "md"
|
|
69
27
|
*/
|
|
70
|
-
size?:
|
|
28
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
71
29
|
/** The panel's CSS width, such as 420px. Overrides size. */
|
|
72
|
-
width?: string;
|
|
30
|
+
width?: string | undefined;
|
|
73
31
|
/** Caps the panel's width, such as 600px. Unset, the theme caps it at 92vw. */
|
|
74
|
-
maxWidth?: string;
|
|
32
|
+
maxWidth?: string | undefined;
|
|
75
33
|
/**
|
|
76
34
|
* The sheet's resting heights, each 10 to 100 percent of the screen.
|
|
77
35
|
* @default [50,90]
|
|
78
36
|
*/
|
|
79
|
-
snapPoints?: number[];
|
|
37
|
+
snapPoints?: number[] | undefined;
|
|
80
38
|
/**
|
|
81
39
|
* Which of the sorted snap points it opens on.
|
|
82
40
|
* @default 0
|
|
83
41
|
*/
|
|
84
|
-
defaultSnap?: number;
|
|
42
|
+
defaultSnap?: number | undefined;
|
|
85
43
|
/**
|
|
86
44
|
* Below md the drawer is a bottom sheet that rests on snapPoints. false keeps the side panel at every width, for a menu or a filter panel.
|
|
87
45
|
* @default true
|
|
88
46
|
*/
|
|
89
|
-
sheet?: boolean;
|
|
90
|
-
onSnapChange?: (index: number, percent: number) => void;
|
|
91
|
-
onOpened?: () => void;
|
|
92
|
-
onClosed?: () => void;
|
|
47
|
+
sheet?: boolean | undefined;
|
|
48
|
+
onSnapChange?: ((index: number, percent: number) => void) | undefined;
|
|
49
|
+
onOpened?: (() => void) | undefined;
|
|
50
|
+
onClosed?: (() => void) | undefined;
|
|
93
51
|
/**
|
|
94
52
|
* Show the close button.
|
|
95
53
|
* @default true
|
|
96
54
|
*/
|
|
97
|
-
dismissible?: boolean;
|
|
55
|
+
dismissible?: boolean | undefined;
|
|
98
56
|
/**
|
|
99
57
|
* The close button's accessible name, for other languages.
|
|
100
58
|
* @default "Close"
|
|
101
59
|
*/
|
|
102
|
-
closeLabel?: string;
|
|
60
|
+
closeLabel?: string | undefined;
|
|
103
61
|
/**
|
|
104
62
|
* The sheet handle's accessible name, for other languages.
|
|
105
63
|
* @default "Sheet height"
|
|
106
64
|
*/
|
|
107
|
-
sheetHeightLabel?: string;
|
|
65
|
+
sheetHeightLabel?: string | undefined;
|
|
108
66
|
/**
|
|
109
67
|
* The drawer closes only through its own Close or Cancel by default. false lets Escape and an outside click close it.
|
|
110
68
|
* @default true
|
|
111
69
|
*/
|
|
112
|
-
staticBackdrop?: boolean;
|
|
70
|
+
staticBackdrop?: boolean | undefined;
|
|
113
71
|
/** Ask before closing while dirty: this text, with Discard and Keep editing in the footer. */
|
|
114
|
-
confirmDiscard?: string;
|
|
72
|
+
confirmDiscard?: string | undefined;
|
|
115
73
|
/**
|
|
116
74
|
* True while a field differs from its loaded value; the caller owns it.
|
|
117
75
|
* @default false
|
|
118
76
|
*/
|
|
119
|
-
dirty?: boolean;
|
|
77
|
+
dirty?: boolean | undefined;
|
|
120
78
|
/** Pinned below the scrolling body. */
|
|
121
|
-
footer?:
|
|
79
|
+
footer?: React.ReactNode | undefined;
|
|
122
80
|
/**
|
|
123
81
|
* Extra classes on the drawer element.
|
|
124
82
|
* @default ""
|
|
125
83
|
*/
|
|
126
|
-
className?: string;
|
|
84
|
+
className?: string | undefined;
|
|
127
85
|
/**
|
|
128
86
|
* Classes on the default header, so a product can style it without restyling the library class. Ignored when header replaces it.
|
|
129
87
|
* @default ""
|
|
130
88
|
*/
|
|
131
|
-
headerClassName?: string;
|
|
89
|
+
headerClassName?: string | undefined;
|
|
132
90
|
/**
|
|
133
91
|
* Classes on the scrolling body, such as p-0 to drop its padding.
|
|
134
92
|
* @default ""
|
|
135
93
|
*/
|
|
136
|
-
bodyClassName?: string;
|
|
94
|
+
bodyClassName?: string | undefined;
|
|
137
95
|
/** Inline style on the drawer element. */
|
|
138
|
-
style?:
|
|
139
|
-
children:
|
|
140
|
-
}
|
|
96
|
+
style?: React.CSSProperties | undefined;
|
|
97
|
+
children: React.ReactNode;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A panel over the page that is a side drawer from md up and a bottom sheet below it. The sheet
|
|
101
|
+
* rests on `snapPoints` (percent of the screen height), follows a finger on its handle or header,
|
|
102
|
+
* flicks to the next point and is dragged down to close; its handle is a vertical slider the arrow
|
|
103
|
+
* keys, Home and End also move. Focus moves in on open, Tab stays inside, Escape closes, and
|
|
104
|
+
* focus returns to what opened it. Controlled: set `open` and close it in `onClose`. Distinct from
|
|
105
|
+
* `AppModal`, which is a centred dialog on every screen. Wraps `<wui-drawer>`, which Razor
|
|
106
|
+
* `<app-drawer>` renders too. Place it where no ancestor has a transform, since it is fixed to the
|
|
107
|
+
* viewport.
|
|
108
|
+
*
|
|
109
|
+
* `onClose` is called when the backdrop, Escape, the close button or a drag down asks to close it.
|
|
110
|
+
* It stays open until `open` becomes false.
|
|
111
|
+
*/
|
|
112
|
+
export default function AppDrawer(props: AppDrawerProps): React.JSX.Element;
|
|
@@ -1,84 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* nothing. Unlike `AppFilePicker` it has no value and shows no preview; the page decides what
|
|
4
|
-
* the file becomes (an upload, a viewer, a parse). A file that fails the type or size check is
|
|
5
|
-
* rejected inline and never reaches `onChange`.
|
|
6
|
-
*
|
|
7
|
-
* @param {object} props
|
|
8
|
-
* @param {(file: File | File[]) => void} props.onChange Single mode: the validated File. Multiple
|
|
9
|
-
* mode: the validated Files of that pick or drop. Not called when nothing passes validation.
|
|
10
|
-
* @param {string} [props.label]
|
|
11
|
-
* @param {string} [props.id]
|
|
12
|
-
* @param {boolean} [props.multiple]
|
|
13
|
-
* @param {string} [props.accept]
|
|
14
|
-
* @param {number} [props.maxSizeMb]
|
|
15
|
-
* @param {string} [props.error]
|
|
16
|
-
* @param {string} [props.helperText]
|
|
17
|
-
* @param {boolean} [props.disabled]
|
|
18
|
-
* @param {string} [props.className]
|
|
19
|
-
* @param {string} [props.fieldClassName]
|
|
20
|
-
* @param {object} [props.style] Inline style; lands on the control with `className`.
|
|
21
|
-
* @param {string} [props.browseLabel] Default "Click to upload".
|
|
22
|
-
* @param {string} [props.dropLabel] Default "or drag & drop".
|
|
23
|
-
* @param {string} [props.anyTypeText] Default "Any file type".
|
|
24
|
-
* @param {string} [props.maxSizeText] The size cap in the hint; `{size}` is the limit in MB. Default "up to {size} MB".
|
|
25
|
-
*/
|
|
26
|
-
export default function AppDropZone(props: {
|
|
27
|
-
onChange: (file: File | File[]) => void;
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
interface AppDropZoneBaseProps {
|
|
28
3
|
/** Text of the label above the zone. */
|
|
29
|
-
label?: string;
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
name?: string | undefined;
|
|
30
6
|
/** DOM id for the file input and the target of its label's for attribute. */
|
|
31
|
-
id?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Take several files per pick or drop; the change handler then gets an array of files.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
multiple?: boolean;
|
|
7
|
+
id?: string | undefined;
|
|
37
8
|
/**
|
|
38
9
|
* Accepted file types, written as the accept attribute is. Empty takes any file.
|
|
39
10
|
* @default ""
|
|
40
11
|
*/
|
|
41
|
-
accept?: string;
|
|
12
|
+
accept?: string | undefined;
|
|
42
13
|
/** Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the format line names no size. */
|
|
43
|
-
maxSizeMb?: number;
|
|
14
|
+
maxSizeMb?: number | undefined;
|
|
44
15
|
/** Message below the zone; also styles the zone as errored. */
|
|
45
|
-
error?: string;
|
|
16
|
+
error?: string | undefined;
|
|
46
17
|
/** Helper text below the zone; an error, the caller's or a rejected pick's, replaces it while it shows. */
|
|
47
|
-
helperText?: string;
|
|
18
|
+
helperText?: string | undefined;
|
|
48
19
|
/**
|
|
49
20
|
* Blocks click and drop.
|
|
50
21
|
* @default false
|
|
51
22
|
*/
|
|
52
|
-
disabled?: boolean;
|
|
23
|
+
disabled?: boolean | undefined;
|
|
53
24
|
/**
|
|
54
25
|
* Class to apply to the control element, the visible zone.
|
|
55
26
|
* @default ""
|
|
56
27
|
*/
|
|
57
|
-
className?: string;
|
|
28
|
+
className?: string | undefined;
|
|
58
29
|
/**
|
|
59
30
|
* Class to apply to the wrapper field div.
|
|
60
31
|
* @default ""
|
|
61
32
|
*/
|
|
62
|
-
fieldClassName?: string;
|
|
63
|
-
style?:
|
|
33
|
+
fieldClassName?: string | undefined;
|
|
34
|
+
style?: React.CSSProperties | undefined;
|
|
64
35
|
/**
|
|
65
36
|
* Replaces the built-in English text, for other languages.
|
|
66
37
|
* @default "Click to upload"
|
|
67
38
|
*/
|
|
68
|
-
browseLabel?: string;
|
|
39
|
+
browseLabel?: string | undefined;
|
|
69
40
|
/**
|
|
70
41
|
* Replaces the built-in English text, for other languages.
|
|
71
42
|
* @default "or drag & drop"
|
|
72
43
|
*/
|
|
73
|
-
dropLabel?: string;
|
|
44
|
+
dropLabel?: string | undefined;
|
|
74
45
|
/**
|
|
75
46
|
* Replaces the built-in English text, for other languages.
|
|
76
47
|
* @default "Any file type"
|
|
77
48
|
*/
|
|
78
|
-
anyTypeText?: string;
|
|
49
|
+
anyTypeText?: string | undefined;
|
|
79
50
|
/**
|
|
80
51
|
* The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.
|
|
81
52
|
* @default "up to {size} MB"
|
|
82
53
|
*/
|
|
83
|
-
maxSizeText?: string;
|
|
84
|
-
}
|
|
54
|
+
maxSizeText?: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface AppDropZoneSingleProps extends AppDropZoneBaseProps {
|
|
57
|
+
/**
|
|
58
|
+
* Take several files per pick or drop; the change handler then gets an array of files.
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
multiple?: false | undefined;
|
|
62
|
+
onChange: (file: File) => void;
|
|
63
|
+
}
|
|
64
|
+
export interface AppDropZoneMultipleProps extends AppDropZoneBaseProps {
|
|
65
|
+
/**
|
|
66
|
+
* Take several files per pick or drop; the change handler then gets an array of files.
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
multiple: true;
|
|
70
|
+
onChange: (files: File[]) => void;
|
|
71
|
+
}
|
|
72
|
+
export type AppDropZoneProps = AppDropZoneSingleProps | AppDropZoneMultipleProps;
|
|
73
|
+
/**
|
|
74
|
+
* Document drop zone: a drag-and-drop target that hands the chosen file to the page and keeps
|
|
75
|
+
* nothing. Unlike `AppFilePicker` it has no value and shows no preview; the page decides what
|
|
76
|
+
* the file becomes (an upload, a viewer, a parse). A file that fails the type or size check is
|
|
77
|
+
* rejected inline and never reaches `onChange`.
|
|
78
|
+
*/
|
|
79
|
+
export default function AppDropZone(props: AppDropZoneProps): React.JSX.Element;
|
|
80
|
+
export {};
|