@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,58 +1,51 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
* A small preview card that opens beside a name or record link: who someone is, a record's status,
|
|
4
|
-
* without opening the record. It opens after `openDelay` ms of mouse hover or when the trigger takes
|
|
5
|
-
* keyboard focus, and closes `closeDelay` ms after the pointer or focus leaves the trigger and the
|
|
6
|
-
* card (the pointer can cross into the card to read or click inside it). Escape closes it. Touch
|
|
7
|
-
* never opens it, so the trigger must itself lead to the same information (a link to the record).
|
|
8
|
-
* Distinct from `AppPopover` (opened by a click, for a panel of actions) and `AppTooltip` (one line of
|
|
9
|
-
* text, no interactive content). Wraps `<wui-hover-card>`, which Razor `<app-hover-card>` renders too.
|
|
10
|
-
*
|
|
11
|
-
* @param {object} props
|
|
12
|
-
* @param {import('react').ReactNode} props.trigger
|
|
13
|
-
* @param {import('react').ReactNode} [props.children] The card's content. The card is phrasing content, so it can
|
|
14
|
-
* sit on a name inside a sentence; there, build the content from spans (a `<div>` cannot be inside a `<p>`).
|
|
15
|
-
* @param {boolean} [props.open] Shows the panel open, for a design preview or a controlled caller.
|
|
16
|
-
* @param {boolean} [props.loading]
|
|
17
|
-
* @param {string} [props.loadingLabel]
|
|
18
|
-
* @param {string} [props.label]
|
|
19
|
-
* @param {number} [props.openDelay]
|
|
20
|
-
* @param {number} [props.closeDelay]
|
|
21
|
-
* @param {(open: boolean) => void} [props.onOpenChange] Called when the card opens or closes.
|
|
22
|
-
* @param {string} [props.className]
|
|
23
|
-
*/
|
|
24
|
-
export default function AppHoverCard(props: {
|
|
1
|
+
import { type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export interface AppHoverCardProps extends HTMLAttributes<HTMLElement> {
|
|
25
3
|
/** The name or link the card belongs to. Make it a link or button so keyboard users can focus it. */
|
|
26
|
-
trigger:
|
|
27
|
-
|
|
4
|
+
trigger: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* The card's content. The card is phrasing content, so it can sit on a name inside a sentence; there,
|
|
7
|
+
* build the content from spans (a `<div>` cannot be inside a `<p>`).
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode | undefined;
|
|
28
10
|
/** Shows the panel open, for a design preview or a controlled caller. */
|
|
29
|
-
open?: boolean;
|
|
11
|
+
open?: boolean | undefined;
|
|
30
12
|
/**
|
|
31
13
|
* Shows a spinner and the loading label in place of the children while the preview is fetched; start the fetch when the card opens.
|
|
32
14
|
* @default false
|
|
33
15
|
*/
|
|
34
|
-
loading?: boolean;
|
|
16
|
+
loading?: boolean | undefined;
|
|
35
17
|
/**
|
|
36
18
|
* The text beside the spinner.
|
|
37
19
|
* @default "Loading"
|
|
38
20
|
*/
|
|
39
|
-
loadingLabel?: string;
|
|
21
|
+
loadingLabel?: string | undefined;
|
|
40
22
|
/** The card's accessible name, for example Asha Verma, profile. */
|
|
41
|
-
label?: string;
|
|
23
|
+
label?: string | undefined;
|
|
42
24
|
/**
|
|
43
25
|
* Milliseconds of hover or focus before it opens.
|
|
44
26
|
* @default 300
|
|
45
27
|
*/
|
|
46
|
-
openDelay?: number;
|
|
28
|
+
openDelay?: number | undefined;
|
|
47
29
|
/**
|
|
48
30
|
* Milliseconds after leaving before it closes.
|
|
49
31
|
* @default 150
|
|
50
32
|
*/
|
|
51
|
-
closeDelay?: number;
|
|
52
|
-
|
|
33
|
+
closeDelay?: number | undefined;
|
|
34
|
+
/** Called when the card opens or closes. */
|
|
35
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
53
36
|
/**
|
|
54
37
|
* Extra class names added to the root element.
|
|
55
38
|
* @default ""
|
|
56
39
|
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
}
|
|
40
|
+
className?: string | undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A small preview card that opens beside a name or record link: who someone is, a record's status,
|
|
44
|
+
* without opening the record. It opens after `openDelay` ms of mouse hover or when the trigger takes
|
|
45
|
+
* keyboard focus, and closes `closeDelay` ms after the pointer or focus leaves the trigger and the
|
|
46
|
+
* card (the pointer can cross into the card to read or click inside it). Escape closes it. Touch
|
|
47
|
+
* never opens it, so the trigger must itself lead to the same information (a link to the record).
|
|
48
|
+
* Distinct from `AppPopover` (opened by a click, for a panel of actions) and `AppTooltip` (one line of
|
|
49
|
+
* text, no interactive content). Wraps `<wui-hover-card>`, which Razor `<app-hover-card>` renders too.
|
|
50
|
+
*/
|
|
51
|
+
export default function AppHoverCard(props: AppHoverCardProps): ReactElement;
|
|
@@ -1,59 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* kebab-case names in scripts/icon-map.json: <AppIcon name="file-text" />. Renders inline
|
|
4
|
-
* SVG (24x24 viewBox, currentColor) with data-icon={name} so CSS can target a specific
|
|
5
|
-
* glyph. `size` maps to width/height; `color` to the icon colour.
|
|
6
|
-
*
|
|
7
|
-
* The glyph bodies are GENERATED (iconGlyphs.g.js) from one source shared with the Razor
|
|
8
|
-
* RCL and the wui elements, so every surface draws the identical icon. Add or change an
|
|
9
|
-
* icon in scripts/icon-map.json and run `node scripts/gen-icons.mjs`.
|
|
10
|
-
*/
|
|
1
|
+
import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from "react";
|
|
2
|
+
export type IconVariant = "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone";
|
|
11
3
|
export declare const iconNames: string[];
|
|
4
|
+
export type IconRenderer = (props: {
|
|
5
|
+
size: number;
|
|
6
|
+
color?: string | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
style?: CSSProperties | undefined;
|
|
9
|
+
}) => ReactNode;
|
|
12
10
|
/**
|
|
13
11
|
* Register product-specific glyphs — call once at app init, before first render. Each value is a
|
|
14
12
|
* render function `({ size, color, className, style }) => ReactNode` that returns your own glyph
|
|
15
13
|
* applied to those props. A registered name wins over the built-in iconsax resolution; every
|
|
16
14
|
* unregistered name still resolves to the generated iconsax glyph.
|
|
17
|
-
*
|
|
18
|
-
* @param {Record<string, (props: { size: number, color?: string, className?: string, style?: object }) => import('react').ReactNode>} map
|
|
19
15
|
*/
|
|
20
|
-
export declare function registerIcons(map: Record<string,
|
|
21
|
-
|
|
22
|
-
color?: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
style?: object;
|
|
25
|
-
}) => import('react').ReactNode>): void;
|
|
26
|
-
/**
|
|
27
|
-
* @param {object} props
|
|
28
|
-
* @param {string} props.name
|
|
29
|
-
* @param {number} [props.size]
|
|
30
|
-
* @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.variant]
|
|
31
|
-
* @param {string} [props.tooltip]
|
|
32
|
-
* @param {'auto'|'top'|'bottom'|'start'|'end'} [props.tooltipPlacement]
|
|
33
|
-
* @param {string} [props.className]
|
|
34
|
-
* @param {string} [props.color]
|
|
35
|
-
* @param {object} [props.style]
|
|
36
|
-
*/
|
|
37
|
-
export default function AppIcon(props: {
|
|
16
|
+
export declare function registerIcons(map: Record<string, IconRenderer>): void;
|
|
17
|
+
export interface AppIconProps extends Omit<ComponentPropsWithoutRef<"svg">, "className" | "color" | "style"> {
|
|
38
18
|
/** Icon name (kebab-case; curated or full-catalogue). */
|
|
39
19
|
name: string;
|
|
40
20
|
/**
|
|
41
21
|
* Icon size in pixels.
|
|
42
22
|
* @default 16
|
|
43
23
|
*/
|
|
44
|
-
size?: number;
|
|
24
|
+
size?: number | undefined;
|
|
45
25
|
/** Icon style: linear, outline, bold, bulk, broken or twotone. */
|
|
46
|
-
variant?:
|
|
26
|
+
variant?: IconVariant | undefined;
|
|
47
27
|
/** A hover and focus tooltip that flips to stay on screen. The glyph is wrapped in a span with role img and an aria-label, so the icon is also named for assistive tech. */
|
|
48
|
-
tooltip?: string;
|
|
28
|
+
tooltip?: string | undefined;
|
|
49
29
|
/**
|
|
50
30
|
* Preferred tooltip side; auto picks the side with the most room.
|
|
51
31
|
* @default "auto"
|
|
52
32
|
*/
|
|
53
|
-
tooltipPlacement?:
|
|
33
|
+
tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end" | undefined;
|
|
54
34
|
/** Extra class names added to the root element. */
|
|
55
|
-
className?: string;
|
|
35
|
+
className?: string | undefined;
|
|
56
36
|
/** The icon colour. Without it the icon takes --wui-icon-color when an ancestor sets that variable, else the inherited text colour. */
|
|
57
|
-
color?: string;
|
|
58
|
-
style?:
|
|
59
|
-
}
|
|
37
|
+
color?: string | undefined;
|
|
38
|
+
style?: CSSProperties | undefined;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The library's icon component — iconsax (Linear) glyphs, keyed by the semantic
|
|
42
|
+
* kebab-case names in scripts/icon-map.json: <AppIcon name="file-text" />. Renders inline
|
|
43
|
+
* SVG (24x24 viewBox, currentColor) with data-icon={name} so CSS can target a specific
|
|
44
|
+
* glyph. `size` maps to width/height; `color` to the icon colour.
|
|
45
|
+
*
|
|
46
|
+
* The glyph bodies are GENERATED (iconGlyphs.g.ts) from one source shared with the Razor
|
|
47
|
+
* RCL and the wui elements, so every surface draws the identical icon. Add or change an
|
|
48
|
+
* icon in scripts/icon-map.json and run `node scripts/gen-icons.mjs`.
|
|
49
|
+
*/
|
|
50
|
+
export default function AppIcon(props: AppIconProps): ReactNode;
|
|
@@ -1,215 +1,170 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
* One image picker with two looks. controls="overlay": a ring with a hover label and an x to remove (the logo look). controls="buttons": the photo beside Upload or Change, Take photo and Remove (the profile photo look). `kind` picks the preset; each prop below overrides it.
|
|
4
|
-
* @param {object} props
|
|
5
|
-
* @param {"logo"|"avatar"} [props.kind] Default "logo".
|
|
6
|
-
* @param {"overlay"|"buttons"} [props.controls] Default "overlay" for logo, "buttons" for avatar.
|
|
7
|
-
* @param {string} [props.value] Current image URL.
|
|
8
|
-
* @param {import('react').ReactNode} [props.fallback] Shown with no image.
|
|
9
|
-
* @param {"initials"|"avatar"} [props.variant] With no fallback, "avatar" draws a person glyph. Default "initials".
|
|
10
|
-
* @param {string} [props.name] Field name; the chosen file (the crop when cropping) is written into the named file input.
|
|
11
|
-
* @param {(file: File) => void} [props.onChange]
|
|
12
|
-
* @param {() => void} [props.onRemove] Shows Remove when given.
|
|
13
|
-
* @param {string} [props.removeName] Hidden field set to "true" after Remove, for a posted form.
|
|
14
|
-
* @param {boolean} [props.loading]
|
|
15
|
-
* @param {boolean} [props.disabled]
|
|
16
|
-
* @param {string} [props.accept] Default DEFAULT_IMAGE_ACCEPT for logo, AVATAR_ACCEPT for avatar.
|
|
17
|
-
* @param {number} [props.maxSizeMb] 0 is no limit. Default 5 for logo, AVATAR_MAX_SIZE_MB (10) for avatar.
|
|
18
|
-
* @param {"circle"|"rounded"|"square"} [props.shape] Default "circle".
|
|
19
|
-
* @param {"sm"|"md"|"lg"|number} [props.size] logo 72, 120, 160 px; avatar 64, 96, 128 px; a number is px. Default "md".
|
|
20
|
-
* @param {number|"free"} [props.crop] Default none for logo, 1 for avatar.
|
|
21
|
-
* @param {boolean} [props.rotatable] Default false for logo, true for avatar.
|
|
22
|
-
* @param {boolean} [props.previews] The 96 and 48 px live previews. Default false for logo, true for avatar.
|
|
23
|
-
* @param {boolean} [props.camera] The Take photo button (front camera). Default false for logo, true for avatar.
|
|
24
|
-
* @param {number} [props.outputSize] Square output in px; only with crop 1. Default none for logo, AVATAR_OUTPUT_SIZE (512) for avatar.
|
|
25
|
-
* @param {"keep"|"image/webp"} [props.outputType] Default "keep" for logo, "image/webp" for avatar.
|
|
26
|
-
* @param {"stacked"|"inline"|"profile"} [props.layout] Default "stacked".
|
|
27
|
-
* @param {import('react').ReactNode} [props.title]
|
|
28
|
-
* @param {import('react').ReactNode} [props.subtitle]
|
|
29
|
-
* @param {string} [props.overlayIcon] Default "image".
|
|
30
|
-
* @param {string} [props.overlayLabel] Default "Update photo".
|
|
31
|
-
* @param {string} [props.removeLabel] Default "Remove photo".
|
|
32
|
-
* @param {string} [props.ariaLabel] Default "Upload photo".
|
|
33
|
-
* @param {import('react').ReactNode} [props.label]
|
|
34
|
-
* @param {string} [props.helperText]
|
|
35
|
-
* @param {string} [props.error]
|
|
36
|
-
* @param {boolean} [props.required]
|
|
37
|
-
* @param {boolean} [props.optional] Ends the label with "(optional)". Required wins when both are set.
|
|
38
|
-
* @param {string} [props.optionalLabel] Default "(optional)".
|
|
39
|
-
* @param {string} [props.dialogTitle] Default "Crop photo" for logo, "Edit photo" for avatar.
|
|
40
|
-
* @param {string} [props.dialogSubtitle] Default "Drag the frame and zoom to choose what to keep." for logo, "Drag to position the photo, then zoom or rotate it." for avatar.
|
|
41
|
-
* @param {string} [props.save] Default "Apply" for logo, "Save photo" for avatar.
|
|
42
|
-
* @param {string} [props.cancel] Default "Cancel".
|
|
43
|
-
* @param {string} [props.cropFailed] Default "That image could not be cropped. Choose another one." for logo, "That photo could not be saved. Try again, or choose another one." for avatar.
|
|
44
|
-
* @param {string} [props.unreadable] Default "That image could not be opened. Choose another one." for logo; for avatar, the photo message, or the HEIC message for a HEIC file. {name} is the file name.
|
|
45
|
-
* @param {string} [props.uploadLabel] Default "Upload photo".
|
|
46
|
-
* @param {string} [props.changeLabel] Default "Change photo".
|
|
47
|
-
* @param {string} [props.cameraLabel] Default "Take photo".
|
|
48
|
-
* @param {string} [props.className] On the picker.
|
|
49
|
-
* @param {string} [props.fieldClassName] On the .field wrapper.
|
|
50
|
-
* @param {import('react').CSSProperties} [props.style]
|
|
51
|
-
*/
|
|
52
|
-
export default function AppImagePicker(props: {
|
|
1
|
+
import type { ComponentPropsWithoutRef, CSSProperties, JSX, ReactNode } from "react";
|
|
2
|
+
export interface AppImagePickerProps extends Omit<ComponentPropsWithoutRef<"button">, "title" | "onChange" | "value" | "name" | "className" | "style" | "disabled" | "children"> {
|
|
53
3
|
/**
|
|
54
4
|
* The preset: logo is an identity ring, avatar is a person's profile photo. Each prop below overrides the preset.
|
|
55
5
|
* @default "logo"
|
|
56
6
|
*/
|
|
57
|
-
kind?: "logo" | "avatar";
|
|
7
|
+
kind?: "logo" | "avatar" | undefined;
|
|
58
8
|
/** overlay is a ring with a hover label and an x to remove. buttons is the photo beside Upload or Change, Take photo and Remove. Default overlay for logo, buttons for avatar. */
|
|
59
|
-
controls?: "overlay" | "buttons";
|
|
9
|
+
controls?: "overlay" | "buttons" | undefined;
|
|
60
10
|
/** The current image URL. Absent or empty means no image. */
|
|
61
|
-
value?: string;
|
|
11
|
+
value?: string | undefined;
|
|
62
12
|
/** Shown when there is no image, for example initials. */
|
|
63
|
-
fallback?:
|
|
13
|
+
fallback?: ReactNode | undefined;
|
|
64
14
|
/**
|
|
65
15
|
* With no fallback, avatar draws a person icon. The avatar kind uses avatar.
|
|
66
16
|
* @default "initials"
|
|
67
17
|
*/
|
|
68
|
-
variant?: "initials" | "avatar";
|
|
18
|
+
variant?: "initials" | "avatar" | undefined;
|
|
69
19
|
/** The form field name. The chosen file, or the crop when cropping, is written into the file input, so an uncontrolled form posts it. */
|
|
70
|
-
name?: string;
|
|
71
|
-
onChange?: (file: File) => void;
|
|
72
|
-
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
onChange?: ((file: File) => void) | undefined;
|
|
22
|
+
/** Shows Remove when given. */
|
|
23
|
+
onRemove?: (() => void) | undefined;
|
|
73
24
|
/** A form field that posts true once Remove is pressed. */
|
|
74
|
-
removeName?: string;
|
|
25
|
+
removeName?: string | undefined;
|
|
75
26
|
/**
|
|
76
27
|
* Shows a spinner and blocks every action while the picked file uploads.
|
|
77
28
|
* @default false
|
|
78
29
|
*/
|
|
79
|
-
loading?: boolean;
|
|
30
|
+
loading?: boolean | undefined;
|
|
80
31
|
/**
|
|
81
32
|
* Blocks every action.
|
|
82
33
|
* @default false
|
|
83
34
|
*/
|
|
84
|
-
disabled?: boolean;
|
|
35
|
+
disabled?: boolean | undefined;
|
|
85
36
|
/** The file types a person may choose. Defaults to PNG, JPG and WebP for logo; JPG, PNG, WebP and HEIC for avatar. HEIC opens only where the browser can decode it. */
|
|
86
|
-
accept?: string;
|
|
37
|
+
accept?: string | undefined;
|
|
87
38
|
/** The size limit in megabytes; 0 means no limit. Defaults to 5 for logo and 10 for avatar. */
|
|
88
|
-
maxSizeMb?: number;
|
|
39
|
+
maxSizeMb?: number | undefined;
|
|
89
40
|
/**
|
|
90
41
|
* The ring or frame shape.
|
|
91
42
|
* @default "circle"
|
|
92
43
|
*/
|
|
93
|
-
shape?: "circle" | "rounded" | "square";
|
|
44
|
+
shape?: "circle" | "rounded" | "square" | undefined;
|
|
94
45
|
/**
|
|
95
46
|
* A preset diameter (logo 72, 120, 160 px; avatar 64, 96, 128 px) or an exact number of pixels.
|
|
96
47
|
* @default "md"
|
|
97
48
|
*/
|
|
98
|
-
size?: "sm" | "md" | "lg" | number;
|
|
49
|
+
size?: "sm" | "md" | "lg" | number | undefined;
|
|
99
50
|
/** Adds a crop step before upload. A number is the frame's width divided by its height, such as 1 for a round avatar; free lets the person resize the frame. Default none for logo, 1 for avatar. */
|
|
100
|
-
crop?: number | "free";
|
|
51
|
+
crop?: number | "free" | undefined;
|
|
101
52
|
/** Offers rotation in the crop dialog. Default false for logo, true for avatar. */
|
|
102
|
-
rotatable?: boolean;
|
|
53
|
+
rotatable?: boolean | undefined;
|
|
103
54
|
/** Shows the 96 and 48 px live previews in the crop dialog. Default false for logo, true for avatar. */
|
|
104
|
-
previews?: boolean;
|
|
55
|
+
previews?: boolean | undefined;
|
|
105
56
|
/** Shows the Take photo button, which opens the front camera. Default false for logo, true for avatar. */
|
|
106
|
-
camera?: boolean;
|
|
57
|
+
camera?: boolean | undefined;
|
|
107
58
|
/** The width and height of the saved square, in pixels, with a crop of 1. Default none for logo, 512 for avatar. */
|
|
108
|
-
outputSize?: number;
|
|
59
|
+
outputSize?: number | undefined;
|
|
109
60
|
/** The type of the saved crop: keep the chosen type, or WebP. Default keep for logo, WebP for avatar. */
|
|
110
|
-
outputType?: "keep" | "image/webp";
|
|
61
|
+
outputType?: "keep" | "image/webp" | undefined;
|
|
111
62
|
/**
|
|
112
63
|
* Stacked is the ring with the helper text below. Inline puts the ring on the left with a title, subtitle and helper text column beside it. Profile stacks the same identity block, centred, beneath the ring. Applies to the overlay controls.
|
|
113
64
|
* @default "stacked"
|
|
114
65
|
*/
|
|
115
|
-
layout?: "stacked" | "inline" | "profile";
|
|
66
|
+
layout?: "stacked" | "inline" | "profile" | undefined;
|
|
116
67
|
/** Bold primary text beside the ring. Inline and profile layouts only. */
|
|
117
|
-
title?:
|
|
68
|
+
title?: ReactNode | undefined;
|
|
118
69
|
/** Muted secondary text beside the ring. Inline and profile layouts only. */
|
|
119
|
-
subtitle?:
|
|
70
|
+
subtitle?: ReactNode | undefined;
|
|
120
71
|
/**
|
|
121
72
|
* The icon name for the hover overlay. Overlay controls only.
|
|
122
73
|
* @default "image"
|
|
123
74
|
*/
|
|
124
|
-
overlayIcon?: string;
|
|
75
|
+
overlayIcon?: string | undefined;
|
|
125
76
|
/**
|
|
126
77
|
* The text of the hover overlay. Overlay controls only.
|
|
127
78
|
* @default "Update photo"
|
|
128
79
|
*/
|
|
129
|
-
overlayLabel?: string;
|
|
80
|
+
overlayLabel?: string | undefined;
|
|
130
81
|
/**
|
|
131
82
|
* The accessible name and tooltip of the remove control. Use Remove logo on a logo picker.
|
|
132
83
|
* @default "Remove photo"
|
|
133
84
|
*/
|
|
134
|
-
removeLabel?: string;
|
|
85
|
+
removeLabel?: string | undefined;
|
|
135
86
|
/** The accessible name of the upload control. Defaults to Upload photo for the overlay and to the action's words for buttons. */
|
|
136
|
-
ariaLabel?: string;
|
|
87
|
+
ariaLabel?: string | undefined;
|
|
137
88
|
/** An optional field label above the picker. */
|
|
138
|
-
label?:
|
|
89
|
+
label?: ReactNode | undefined;
|
|
139
90
|
/** Helper text under the picker. An error replaces it. */
|
|
140
|
-
helperText?: string;
|
|
91
|
+
helperText?: string | undefined;
|
|
141
92
|
/** An error from the caller. It wins over a rejection reason. */
|
|
142
|
-
error?: string;
|
|
93
|
+
error?: string | undefined;
|
|
143
94
|
/**
|
|
144
95
|
* Marks the field as required.
|
|
145
96
|
* @default false
|
|
146
97
|
*/
|
|
147
|
-
required?: boolean;
|
|
98
|
+
required?: boolean | undefined;
|
|
148
99
|
/**
|
|
149
100
|
* Ends the label with (optional) when the field is not required. Required wins when both are set.
|
|
150
101
|
* @default false
|
|
151
102
|
*/
|
|
152
|
-
optional?: boolean;
|
|
103
|
+
optional?: boolean | undefined;
|
|
153
104
|
/**
|
|
154
105
|
* Replaces the built-in English text, for other languages.
|
|
155
106
|
* @default "(optional)"
|
|
156
107
|
*/
|
|
157
|
-
optionalLabel?: string;
|
|
108
|
+
optionalLabel?: string | undefined;
|
|
158
109
|
/**
|
|
159
110
|
* Replaces the built-in English text, for other languages. Default Edit photo for avatar.
|
|
160
111
|
* @default "Crop photo"
|
|
161
112
|
*/
|
|
162
|
-
dialogTitle?: string;
|
|
113
|
+
dialogTitle?: string | undefined;
|
|
163
114
|
/**
|
|
164
115
|
* Replaces the built-in English text, for other languages. Default Drag to position the photo, then zoom or rotate it. for avatar.
|
|
165
116
|
* @default "Drag the frame and zoom to choose what to keep."
|
|
166
117
|
*/
|
|
167
|
-
dialogSubtitle?: string;
|
|
118
|
+
dialogSubtitle?: string | undefined;
|
|
168
119
|
/**
|
|
169
120
|
* Replaces the built-in English text, for other languages. Default Save photo for avatar.
|
|
170
121
|
* @default "Apply"
|
|
171
122
|
*/
|
|
172
|
-
save?: string;
|
|
123
|
+
save?: string | undefined;
|
|
173
124
|
/**
|
|
174
125
|
* Replaces the built-in English text, for other languages.
|
|
175
126
|
* @default "Cancel"
|
|
176
127
|
*/
|
|
177
|
-
cancel?: string;
|
|
128
|
+
cancel?: string | undefined;
|
|
178
129
|
/**
|
|
179
130
|
* Replaces the built-in English text, for other languages. Default That photo could not be saved. Try again, or choose another one. for avatar.
|
|
180
131
|
* @default "That image could not be cropped. Choose another one."
|
|
181
132
|
*/
|
|
182
|
-
cropFailed?: string;
|
|
133
|
+
cropFailed?: string | undefined;
|
|
183
134
|
/**
|
|
184
135
|
* Replaces the built-in English text, for other languages. {name} is the file name. Avatar keeps its HEIC message when the file is HEIC.
|
|
185
136
|
* @default "That image could not be opened. Choose another one."
|
|
186
137
|
*/
|
|
187
|
-
unreadable?: string;
|
|
138
|
+
unreadable?: string | undefined;
|
|
188
139
|
/**
|
|
189
140
|
* The Upload button's text on the buttons controls, when no photo is set. Replaces the built-in English text.
|
|
190
141
|
* @default "Upload photo"
|
|
191
142
|
*/
|
|
192
|
-
uploadLabel?: string;
|
|
143
|
+
uploadLabel?: string | undefined;
|
|
193
144
|
/**
|
|
194
145
|
* The Change button's text on the buttons controls, when a photo is set. Replaces the built-in English text.
|
|
195
146
|
* @default "Change photo"
|
|
196
147
|
*/
|
|
197
|
-
changeLabel?: string;
|
|
148
|
+
changeLabel?: string | undefined;
|
|
198
149
|
/**
|
|
199
150
|
* The Take photo button's text on the buttons controls. Replaces the built-in English text.
|
|
200
151
|
* @default "Take photo"
|
|
201
152
|
*/
|
|
202
|
-
cameraLabel?: string;
|
|
153
|
+
cameraLabel?: string | undefined;
|
|
203
154
|
/**
|
|
204
155
|
* Extra class on the picker.
|
|
205
156
|
* @default ""
|
|
206
157
|
*/
|
|
207
|
-
className?: string;
|
|
158
|
+
className?: string | undefined;
|
|
208
159
|
/**
|
|
209
160
|
* Extra class on the field wrapper.
|
|
210
161
|
* @default ""
|
|
211
162
|
*/
|
|
212
|
-
fieldClassName?: string;
|
|
163
|
+
fieldClassName?: string | undefined;
|
|
213
164
|
/** Inline style on the picker. */
|
|
214
|
-
style?:
|
|
215
|
-
}
|
|
165
|
+
style?: CSSProperties | undefined;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* One image picker with two looks. controls="overlay": a ring with a hover label and an x to remove (the logo look). controls="buttons": the photo beside Upload or Change, Take photo and Remove (the profile photo look). `kind` picks the preset; each prop below overrides it.
|
|
169
|
+
*/
|
|
170
|
+
export default function AppImagePicker(props: AppImagePickerProps): JSX.Element;
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* A small "?" trigger opens the popover on hover or focus. A glossary-backed tip wraps this and
|
|
5
|
-
* passes the looked-up entry as children, so the glossary never enters the shared library.
|
|
6
|
-
* Implemented as a thin wrapper over AppPopover with hover and focus triggers.
|
|
7
|
-
*
|
|
8
|
-
* @param {object} props
|
|
9
|
-
* @param {string} [props.label]
|
|
10
|
-
* @param {import('react').ReactNode} [props.children] The popover body. Supply a label, a body, or both: a body-less tip is a heading, a title-less tip is just the body. With neither, the tip renders nothing.
|
|
11
|
-
* @param {"auto"|"top"|"bottom"|"start"|"end"} [props.placement]
|
|
12
|
-
* @param {"sm"|"md"|"lg"|"xl"} [props.width]
|
|
13
|
-
* @param {string} [props.className]
|
|
14
|
-
*/
|
|
15
|
-
export default function AppInfoTip(props: {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface AppInfoTipProps {
|
|
16
3
|
/** The popover title and the trigger’s accessible name. Unset, the trigger is named “More information”. */
|
|
17
|
-
label?: string;
|
|
18
|
-
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
/** The popover body. Supply a label, a body, or both: a body-less tip is a heading, a title-less tip is just the body. With neither, the tip renders nothing. */
|
|
6
|
+
children?: ReactNode | undefined;
|
|
19
7
|
/**
|
|
20
8
|
* Where the popover opens. Auto flips it to stay in view.
|
|
21
9
|
* @default "auto"
|
|
22
10
|
*/
|
|
23
|
-
placement?: "auto" | "top" | "bottom" | "start" | "end";
|
|
11
|
+
placement?: "auto" | "top" | "bottom" | "start" | "end" | undefined;
|
|
24
12
|
/**
|
|
25
13
|
* The widest the card grows before its text wraps, at 220, 276, 360 or 480px. It is a maximum, so a short tip stays as narrow as its text.
|
|
26
14
|
* @default "md"
|
|
27
15
|
*/
|
|
28
|
-
width?: "sm" | "md" | "lg" | "xl";
|
|
16
|
+
width?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
29
17
|
/**
|
|
30
18
|
* Extra classes on the wrapper.
|
|
31
19
|
* @default ""
|
|
32
20
|
*/
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Generic info popover beside a field label, the same Bootstrap popover as the Razor `<app-info-tip>`.
|
|
25
|
+
*
|
|
26
|
+
* A small "?" trigger opens the popover on hover or focus. A glossary-backed tip wraps this and
|
|
27
|
+
* passes the looked-up entry as children, so the glossary never enters the shared library.
|
|
28
|
+
* Implemented as a thin wrapper over AppPopover with hover and focus triggers.
|
|
29
|
+
*/
|
|
30
|
+
export default function AppInfoTip(props: AppInfoTipProps): React.JSX.Element | null;
|
|
@@ -1,50 +1,18 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* text with a pencil on hover and focus; a click or Enter turns it into the matching library control
|
|
5
|
-
* (a text or number input, a textarea, a select or a date picker, whose list opens at once).
|
|
6
|
-
*
|
|
7
|
-
* Enter saves a text or number, Ctrl or Cmd+Enter a textarea, picking saves a select or date, and
|
|
8
|
-
* leaving the control saves whatever it holds; Escape cancels. An unchanged value closes without
|
|
9
|
-
* saving. While `onSave` runs the new value shows with a spinner, then a tick for two seconds; a
|
|
10
|
-
* rejection puts the old value back and shows the rejection's message under it (so write it for the
|
|
11
|
-
* person editing), and the next edit starts from the value that failed. Saved and failed are
|
|
12
|
-
* announced to screen readers.
|
|
13
|
-
*
|
|
14
|
-
* Inside an `AppDataTable` row that opens on click or Enter, clicks and keys on the value never
|
|
15
|
-
* reach the row.
|
|
16
|
-
*
|
|
17
|
-
* Wraps the shared `<wui-inline-edit>` element, which owns the editing, the keys and the states;
|
|
18
|
-
* the Razor `<app-inline-edit>` renders the same markup.
|
|
19
|
-
*
|
|
20
|
-
* @param {object} props
|
|
21
|
-
* @param {string | number | null} [props.value]
|
|
22
|
-
* @param {(next: string | number | null) => void | Promise<unknown>} [props.onSave] Persist the new
|
|
23
|
-
* value. A number field passes a number (null when cleared); the others pass a string. Reject to
|
|
24
|
-
* refuse it: the rejection's message is shown.
|
|
25
|
-
* @param {'text'|'number'|'select'|'date'|'textarea'} [props.type]
|
|
26
|
-
* @param {{ value: string | number, label: string }[]} [props.options]
|
|
27
|
-
* @param {string} props.label
|
|
28
|
-
* @param {string} [props.placeholder]
|
|
29
|
-
* @param {(next: string | number | null) => string | null | undefined} [props.validate] Checked
|
|
30
|
-
* before saving: return a message to keep the control open with that message, or nothing to save.
|
|
31
|
-
* @param {(value: string | number | null) => import('react').ReactNode} [props.renderValue] How a
|
|
32
|
-
* saved, non-empty value reads (a formatted amount, a status badge). Text and markup only: the
|
|
33
|
-
* value is a button, so it must not hold its own controls or links.
|
|
34
|
-
* @param {boolean} [props.wrap] Wraps a long value across lines (the default). `false` keeps it on one line, as a table cell or a tight header expects; a newline in a textarea value then reads as a space.
|
|
35
|
-
* @param {boolean} [props.disabled]
|
|
36
|
-
* @param {string} [props.className]
|
|
37
|
-
* @param {string} [props.id]
|
|
38
|
-
*/
|
|
39
|
-
export default function AppInlineEdit(props: {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type InlineEditValue = string | number | null;
|
|
3
|
+
export interface AppInlineEditProps {
|
|
40
4
|
/** The saved value. A date is yyyy-MM-dd; a select value is one of the options' values. */
|
|
41
|
-
value?:
|
|
42
|
-
|
|
5
|
+
value?: InlineEditValue | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Persist the new value. A number field passes a number (null when cleared); the others pass a string. Reject to
|
|
8
|
+
* refuse it: the rejection's message is shown.
|
|
9
|
+
*/
|
|
10
|
+
onSave?: ((next: InlineEditValue) => unknown) | undefined;
|
|
43
11
|
/**
|
|
44
12
|
* The control the value turns into.
|
|
45
13
|
* @default "text"
|
|
46
14
|
*/
|
|
47
|
-
type?:
|
|
15
|
+
type?: "text" | "number" | "select" | "date" | "textarea" | undefined;
|
|
48
16
|
/**
|
|
49
17
|
* The choices of a select.
|
|
50
18
|
* @default []
|
|
@@ -52,28 +20,55 @@ export default function AppInlineEdit(props: {
|
|
|
52
20
|
options?: {
|
|
53
21
|
value: string | number;
|
|
54
22
|
label: string;
|
|
55
|
-
}[];
|
|
23
|
+
}[] | undefined;
|
|
56
24
|
/** What the value is, such as Owner: its accessible name and what screen readers announce, as in Owner saved. */
|
|
57
25
|
label: string;
|
|
58
26
|
/** Shown, muted, when there is no value, and in the empty control. Without it an empty value shows a hyphen. */
|
|
59
|
-
placeholder?: string;
|
|
60
|
-
|
|
61
|
-
|
|
27
|
+
placeholder?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Checked before saving: return a message to keep the control open with that message, or nothing to save.
|
|
30
|
+
*/
|
|
31
|
+
validate?: ((next: InlineEditValue) => string | null | undefined) | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* How a saved, non-empty value reads (a formatted amount, a status badge). Text and markup only: the
|
|
34
|
+
* value is a button, so it must not hold its own controls or links.
|
|
35
|
+
*/
|
|
36
|
+
renderValue?: ((value: InlineEditValue) => ReactNode) | undefined;
|
|
62
37
|
/**
|
|
63
38
|
* Wraps a long value across lines. false keeps it on one line, and a newline in a textarea value reads as a space.
|
|
64
39
|
* @default true
|
|
65
40
|
*/
|
|
66
|
-
wrap?: boolean;
|
|
41
|
+
wrap?: boolean | undefined;
|
|
67
42
|
/**
|
|
68
43
|
* Shows the value without the edit affordance.
|
|
69
44
|
* @default false
|
|
70
45
|
*/
|
|
71
|
-
disabled?: boolean;
|
|
46
|
+
disabled?: boolean | undefined;
|
|
72
47
|
/**
|
|
73
48
|
* Extra classes on the root element.
|
|
74
49
|
* @default ""
|
|
75
50
|
*/
|
|
76
|
-
className?: string;
|
|
51
|
+
className?: string | undefined;
|
|
77
52
|
/** The root's id; the control and error ids derive from it. Generated when omitted. */
|
|
78
|
-
id?: string;
|
|
79
|
-
}
|
|
53
|
+
id?: string | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* One value edited where it is shown: a table cell or a fact on a detail page. It reads as plain
|
|
57
|
+
* text with a pencil on hover and focus; a click or Enter turns it into the matching library control
|
|
58
|
+
* (a text or number input, a textarea, a select or a date picker, whose list opens at once).
|
|
59
|
+
*
|
|
60
|
+
* Enter saves a text or number, Ctrl or Cmd+Enter a textarea, picking saves a select or date, and
|
|
61
|
+
* leaving the control saves whatever it holds; Escape cancels. An unchanged value closes without
|
|
62
|
+
* saving. While `onSave` runs the new value shows with a spinner, then a tick for two seconds; a
|
|
63
|
+
* rejection puts the old value back and shows the rejection's message under it (so write it for the
|
|
64
|
+
* person editing), and the next edit starts from the value that failed. Saved and failed are
|
|
65
|
+
* announced to screen readers.
|
|
66
|
+
*
|
|
67
|
+
* Inside an `AppDataTable` row that opens on click or Enter, clicks and keys on the value never
|
|
68
|
+
* reach the row.
|
|
69
|
+
*
|
|
70
|
+
* Wraps the shared `<wui-inline-edit>` element, which owns the editing, the keys and the states;
|
|
71
|
+
* the Razor `<app-inline-edit>` renders the same markup.
|
|
72
|
+
*/
|
|
73
|
+
export default function AppInlineEdit(props: AppInlineEditProps): React.JSX.Element;
|
|
74
|
+
export {};
|