@webority/ui-react 0.149.0 → 0.152.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 -161657
- package/dist/canvas-kit/manifest.json +800 -119
- 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/AppForm.js +1 -0
- 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 +174 -27
- 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 +35 -20
- package/dist/types/components/AppButton.d.ts +66 -56
- 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 +59 -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 +19 -13
- package/dist/types/components/AppDashboardGrid.d.ts +15 -12
- 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 +78 -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/AppForm.d.ts +23 -0
- 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 +115 -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 +46 -43
- 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 +42 -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 +186 -118
- package/dist/types/components/AppSeoHead.d.ts +15 -21
- package/dist/types/components/AppShell.d.ts +212 -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 +180 -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/api/idempotencyKey.js +1 -0
- package/dist/web-core/dist/query/listQuery.js +1 -1
- package/package.json +16 -12
|
@@ -1,113 +1,80 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type JSX, type MouseEvent as ReactMouseEvent, type ReactNode } from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
type TabKey = "all" | "unread" | "archived";
|
|
4
|
+
/** A notification in the list. */
|
|
5
|
+
export interface NotificationItem {
|
|
6
|
+
/** Stable id; names the item to `onItemClick` and to the server. */
|
|
6
7
|
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* The one line that says what happened.
|
|
9
|
-
*/
|
|
8
|
+
/** The one line that says what happened. */
|
|
10
9
|
title: string;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The record the item opens. Without it the item is a button.
|
|
17
|
-
*/
|
|
18
|
-
href?: string;
|
|
19
|
-
/**
|
|
20
|
-
* When it happened: an ISO date-time with its zone ("2026-10-11T14:05:00+05:30")
|
|
21
|
-
* or a "YYYY-MM-DD" day. It sets the day group and the time shown, in India Standard Time.
|
|
22
|
-
*/
|
|
10
|
+
/** A second, quieter line. */
|
|
11
|
+
text?: string | undefined;
|
|
12
|
+
/** The record the item opens. Without it the item is a button. */
|
|
13
|
+
href?: string | undefined;
|
|
14
|
+
/** When it happened: an ISO date-time with its zone ("2026-10-11T14:05:00+05:30") or a "YYYY-MM-DD" day. It sets the day group and the time shown, in India Standard Time. */
|
|
23
15
|
at: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @typedef {object} NotificationItem
|
|
39
|
-
* @property {string} id Stable id; names the item to `onItemClick` and to the server.
|
|
40
|
-
* @property {string} title The one line that says what happened.
|
|
41
|
-
* @property {string} [text] A second, quieter line.
|
|
42
|
-
* @property {string} [href] The record the item opens. Without it the item is a button.
|
|
43
|
-
* @property {string} at When it happened: an ISO date-time with its zone ("2026-10-11T14:05:00+05:30")
|
|
44
|
-
* or a "YYYY-MM-DD" day. It sets the day group and the time shown, in India Standard Time.
|
|
45
|
-
* @property {boolean} [read] Already read: no dot, regular weight.
|
|
46
|
-
* @property {string} [icon] A library icon name, drawn before the text.
|
|
47
|
-
* @property {boolean} [archived] Filed away: shown only under the Archived tab.
|
|
48
|
-
*/
|
|
49
|
-
/**
|
|
50
|
-
* A bell with an unread count that opens a panel of notifications grouped by day (Today, Yesterday,
|
|
51
|
-
* then 04-Oct-2026), each with an unread dot, a link to its record and a "Mark all read" action.
|
|
52
|
-
* For a portal's own notifications; the topbar bell of `AppShell` (`notifications`) is the same idea
|
|
53
|
-
* fed from a server fragment. Pass `items` newest first.
|
|
54
|
-
*
|
|
55
|
-
* Read state is yours: mark items read in `onItemClick` and `onMarkAllRead`, then pass the new
|
|
56
|
-
* `items`. The panel opens and closes on its own: the bell, Escape (focus returns to the bell), a
|
|
57
|
-
* press or focus outside, and the arrow keys, Home and End between items, through
|
|
58
|
-
* `<wui-notification-center>`, which Razor `<app-notification-center>` renders too.
|
|
59
|
-
*
|
|
60
|
-
* @param {object} props
|
|
61
|
-
* @param {NotificationItem[]} props.items
|
|
62
|
-
* @param {number} [props.unread]
|
|
63
|
-
* @param {string} [props.label]
|
|
64
|
-
* @param {string} [props.emptyText]
|
|
65
|
-
* @param {string} [props.viewAllHref]
|
|
66
|
-
* @param {boolean} [props.defaultOpen]
|
|
67
|
-
* @param {string|number|Date} [props.now]
|
|
68
|
-
* @param {() => void} [props.onMarkAllRead] Called by "Mark all read". Absent: no button.
|
|
69
|
-
* @param {(item: NotificationItem, event: import('react').MouseEvent) => void} [props.onItemClick] Called when an item is chosen, before its link is followed. On a row from `renderItem`, only a click outside its own controls counts.
|
|
70
|
-
* @param {(item: NotificationItem) => import('react').ReactNode} [props.renderItem] The row's content in place of the icon, title, text and time. The dot, the Unread prefix and the read handling stay.
|
|
71
|
-
* @param {true | { key: "all" | "unread" | "archived", label?: string }[]} [props.tabs] `true` for All, Unread and Archived; or the tabs to show, in order. Absent: no tab strip.
|
|
72
|
-
* @param {(key: string) => void} [props.onTabChange] Called with the key of the tab the person picks.
|
|
73
|
-
* @param {(open: boolean) => void} [props.onOpenChange] Called when the panel opens or closes.
|
|
74
|
-
* @param {import('react').ElementType} [props.linkComponent] 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.
|
|
75
|
-
* @param {string} [props.className]
|
|
76
|
-
*/
|
|
77
|
-
export default function AppNotificationCenter(props: {
|
|
16
|
+
/** Already read: no dot, regular weight. */
|
|
17
|
+
read?: boolean | undefined;
|
|
18
|
+
/** A library icon name, drawn before the text. */
|
|
19
|
+
icon?: string | undefined;
|
|
20
|
+
/** Filed away: shown only under the Archived tab. */
|
|
21
|
+
archived?: boolean | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface NotificationTab {
|
|
24
|
+
key: TabKey;
|
|
25
|
+
label?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface AppNotificationCenterProps {
|
|
78
28
|
/** The notifications, newest first. Read state is the caller's: pass the new items after marking some read. */
|
|
79
29
|
items: NotificationItem[];
|
|
80
30
|
/** The badge count when it is larger than the items listed, for example the latest twenty of 120. Without it the count is the number of unread items. */
|
|
81
|
-
unread?: number;
|
|
31
|
+
unread?: number | undefined;
|
|
82
32
|
/**
|
|
83
33
|
* The bell's name and the panel heading.
|
|
84
34
|
* @default "Notifications"
|
|
85
35
|
*/
|
|
86
|
-
label?: string;
|
|
36
|
+
label?: string | undefined;
|
|
87
37
|
/**
|
|
88
38
|
* Shown when there are no items.
|
|
89
39
|
* @default "You are all caught up."
|
|
90
40
|
*/
|
|
91
|
-
emptyText?: string;
|
|
41
|
+
emptyText?: string | undefined;
|
|
92
42
|
/** A View all link under the list. Without it there is no link. */
|
|
93
|
-
viewAllHref?: string;
|
|
43
|
+
viewAllHref?: string | undefined;
|
|
94
44
|
/**
|
|
95
45
|
* Starts with the panel open. The element owns the state after that.
|
|
96
46
|
* @default false
|
|
97
47
|
*/
|
|
98
|
-
defaultOpen?: boolean;
|
|
48
|
+
defaultOpen?: boolean | undefined;
|
|
99
49
|
/** The clock for Today and Yesterday, as ISO text or epoch milliseconds. The current time when omitted. */
|
|
100
|
-
now?: string | number | Date;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
50
|
+
now?: string | number | Date | undefined;
|
|
51
|
+
/** Called by "Mark all read". Absent: no button. */
|
|
52
|
+
onMarkAllRead?: (() => void) | undefined;
|
|
53
|
+
/** Called when an item is chosen, before its link is followed. On a row from `renderItem`, only a click outside its own controls counts. */
|
|
54
|
+
onItemClick?: ((item: NotificationItem, event: ReactMouseEvent) => void) | undefined;
|
|
55
|
+
/** The row's content in place of the icon, title, text and time. The dot, the Unread prefix and the read handling stay. */
|
|
56
|
+
renderItem?: ((item: NotificationItem) => ReactNode) | undefined;
|
|
104
57
|
/** true for the tabs All, Unread and Archived, or the tabs to show in order as `{ key, label? }`, where key is all, unread or archived and label defaults to the key's name. All and Unread leave out archived items; Archived shows only them. Absent: no tab strip. */
|
|
105
|
-
tabs?: true |
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
linkComponent?:
|
|
112
|
-
className?: string;
|
|
113
|
-
}
|
|
58
|
+
tabs?: true | NotificationTab[] | undefined;
|
|
59
|
+
/** Called with the key of the tab the person picks. */
|
|
60
|
+
onTabChange?: ((key: string) => void) | undefined;
|
|
61
|
+
/** Called when the panel opens or closes. */
|
|
62
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
63
|
+
/** Router link for in-app destinations; it receives `to` instead of `href`. */
|
|
64
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
65
|
+
className?: string | undefined;
|
|
66
|
+
[attribute: `data-${string}`]: unknown;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A bell with an unread count that opens a panel of notifications grouped by day (Today, Yesterday,
|
|
70
|
+
* then 04-Oct-2026), each with an unread dot, a link to its record and a "Mark all read" action.
|
|
71
|
+
* For a portal's own notifications; the topbar bell of `AppShell` (`notifications`) is the same idea
|
|
72
|
+
* fed from a server fragment. Pass `items` newest first.
|
|
73
|
+
*
|
|
74
|
+
* Read state is yours: mark items read in `onItemClick` and `onMarkAllRead`, then pass the new
|
|
75
|
+
* `items`. The panel opens and closes on its own: the bell, Escape (focus returns to the bell), a
|
|
76
|
+
* press or focus outside, and the arrow keys, Home and End between items, through
|
|
77
|
+
* `<wui-notification-center>`, which Razor `<app-notification-center>` renders too.
|
|
78
|
+
*/
|
|
79
|
+
export default function AppNotificationCenter(props: AppNotificationCenterProps): JSX.Element;
|
|
80
|
+
export {};
|
|
@@ -1,98 +1,120 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
declare const SIZES: readonly ["sm", "md", "lg"];
|
|
3
|
+
export type AppNumberInputSize = (typeof SIZES)[number];
|
|
4
|
+
export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"input">, "value" | "defaultValue" | "onChange" | "size"> {
|
|
2
5
|
/** The current number; null or unset for an empty field. */
|
|
3
|
-
value?: number | null;
|
|
4
|
-
|
|
6
|
+
value?: number | null | undefined;
|
|
7
|
+
/** Called with the new number, or null when the field is emptied. */
|
|
8
|
+
onChange?: ((next: number | null) => void) | undefined;
|
|
5
9
|
/** The label above the field. A required field shows a required mark after it. */
|
|
6
|
-
label?:
|
|
10
|
+
label?: ReactNode | undefined;
|
|
7
11
|
/**
|
|
8
12
|
* Marks the field as required, on the input and on the label.
|
|
9
13
|
* @default false
|
|
10
14
|
*/
|
|
11
|
-
required?: boolean;
|
|
15
|
+
required?: boolean | undefined;
|
|
12
16
|
/**
|
|
13
17
|
* Ends the label with (optional) when the field is not required. Required wins when both are set.
|
|
14
18
|
* @default false
|
|
15
19
|
*/
|
|
16
|
-
optional?: boolean;
|
|
20
|
+
optional?: boolean | undefined;
|
|
17
21
|
/** An error message under the field. It sets the error state and aria-invalid on the input. */
|
|
18
|
-
error?:
|
|
22
|
+
error?: ReactNode | undefined;
|
|
19
23
|
/** Helper text under the field, linked to the input for screen readers. */
|
|
20
|
-
helperText?:
|
|
21
|
-
/** Text shown in the empty field. */
|
|
22
|
-
placeholder?: string;
|
|
24
|
+
helperText?: ReactNode | undefined;
|
|
23
25
|
/** Content for the info-tip beside the label. The caller supplies the node. */
|
|
24
|
-
help?:
|
|
26
|
+
help?: ReactNode | undefined;
|
|
25
27
|
/**
|
|
26
28
|
* The accessible name of the info-tip button.
|
|
27
29
|
* @default "More information"
|
|
28
30
|
*/
|
|
29
|
-
helpLabel?: string;
|
|
31
|
+
helpLabel?: string | undefined;
|
|
30
32
|
/**
|
|
31
33
|
* Replaces the built-in English text, for other languages.
|
|
32
34
|
* @default "Decrease"
|
|
33
35
|
*/
|
|
34
|
-
decreaseLabel?: string;
|
|
36
|
+
decreaseLabel?: string | undefined;
|
|
35
37
|
/**
|
|
36
38
|
* Replaces the built-in English text, for other languages.
|
|
37
39
|
* @default "Increase"
|
|
38
40
|
*/
|
|
39
|
-
increaseLabel?: string;
|
|
41
|
+
increaseLabel?: string | undefined;
|
|
40
42
|
/**
|
|
41
43
|
* Replaces the built-in English text, for other languages.
|
|
42
44
|
* @default "(optional)"
|
|
43
45
|
*/
|
|
44
|
-
optionalLabel?: string;
|
|
46
|
+
optionalLabel?: string | undefined;
|
|
45
47
|
/** The lowest value, inclusive. The decrease stepper disables at it. */
|
|
46
|
-
min?: number;
|
|
48
|
+
min?: number | undefined;
|
|
47
49
|
/** The highest value, inclusive. The increase stepper disables at it. */
|
|
48
|
-
max?: number;
|
|
50
|
+
max?: number | undefined;
|
|
49
51
|
/**
|
|
50
52
|
* The amount one stepper click, or one ArrowUp or ArrowDown press, adds or removes.
|
|
51
53
|
* @default 1
|
|
52
54
|
*/
|
|
53
|
-
step?: number;
|
|
55
|
+
step?: number | undefined;
|
|
54
56
|
/**
|
|
55
57
|
* The number of decimal places the value rounds to.
|
|
56
58
|
* @default 0
|
|
57
59
|
*/
|
|
58
|
-
precision?: number;
|
|
60
|
+
precision?: number | undefined;
|
|
59
61
|
/** A unit suffix shown inside the field after the input, such as kg or %. */
|
|
60
|
-
unit?: string;
|
|
62
|
+
unit?: string | undefined;
|
|
61
63
|
/**
|
|
62
64
|
* Control size: sm, md or lg (32, 36 or 44px). md is the default.
|
|
63
65
|
* @default "md"
|
|
64
66
|
*/
|
|
65
|
-
size?:
|
|
67
|
+
size?: AppNumberInputSize | undefined;
|
|
66
68
|
/** The input's id. Unset, a generated id is used. */
|
|
67
|
-
id?: string;
|
|
69
|
+
id?: string | undefined;
|
|
68
70
|
/** The input's name, for forms. */
|
|
69
|
-
name?: string;
|
|
71
|
+
name?: string | undefined;
|
|
70
72
|
/**
|
|
71
73
|
* Extra classes on the input.
|
|
72
74
|
* @default ""
|
|
73
75
|
*/
|
|
74
|
-
className?: string;
|
|
76
|
+
className?: string | undefined;
|
|
75
77
|
/**
|
|
76
78
|
* Extra classes on the field wrapper.
|
|
77
79
|
* @default ""
|
|
78
80
|
*/
|
|
79
|
-
fieldClassName?: string;
|
|
81
|
+
fieldClassName?: string | undefined;
|
|
80
82
|
/**
|
|
81
83
|
* Disables the field and both steppers.
|
|
82
84
|
* @default false
|
|
83
85
|
*/
|
|
84
|
-
disabled?: boolean;
|
|
86
|
+
disabled?: boolean | undefined;
|
|
85
87
|
/**
|
|
86
88
|
* Locks the field and both steppers; the value still posts.
|
|
87
89
|
* @default false
|
|
88
90
|
*/
|
|
89
|
-
readOnly?: boolean;
|
|
91
|
+
readOnly?: boolean | undefined;
|
|
90
92
|
/**
|
|
91
93
|
* Shows a busy state and blocks input while data loads.
|
|
92
94
|
* @default false
|
|
93
95
|
*/
|
|
94
|
-
loading?: boolean;
|
|
96
|
+
loading?: boolean | undefined;
|
|
95
97
|
/** The starting value of an uncontrolled field. */
|
|
96
|
-
defaultValue?: number | null;
|
|
97
|
-
}
|
|
98
|
+
defaultValue?: number | null | undefined;
|
|
99
|
+
[attribute: `data-${string}`]: unknown;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Numeric field with ±/step stepper buttons, min/max clamping, and precision rounding.
|
|
103
|
+
* Mirrors the AppInput field-shell pattern (label/error/hint/required/aria wiring) exactly.
|
|
104
|
+
*
|
|
105
|
+
* Forwards `ref` to the underlying input. `onChange` is called with a **number** (or `null` for an empty field),
|
|
106
|
+
* not a DOM event. react-hook-form's plain `{...register('x')}` spread expects an event and
|
|
107
|
+
* will not work here. Wire it with `<Controller name="x" render={({ field }) => (
|
|
108
|
+
* <AppNumberInput value={field.value} onChange={field.onChange} />
|
|
109
|
+
* )} />` instead.
|
|
110
|
+
*
|
|
111
|
+
* Behavior:
|
|
112
|
+
* - Displays as a text input (inputmode decimal when precision > 0, numeric otherwise)
|
|
113
|
+
* - Stepper buttons (−/+) increment/decrement by step, clamped to min/max
|
|
114
|
+
* - Typing free text: emits parsed number on change; null on blur if unparsable or empty
|
|
115
|
+
* - Keyboard ArrowUp/ArrowDown increment/decrement (respects step and bounds)
|
|
116
|
+
* - Rounding to the specified precision
|
|
117
|
+
* - Buttons disabled at min/max or when the control is disabled
|
|
118
|
+
*/
|
|
119
|
+
declare const AppNumberInput: import("react").ForwardRefExoticComponent<AppNumberInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
98
120
|
export default AppNumberInput;
|
|
@@ -1,70 +1,80 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* @param {boolean} [props.defaultCollapsed]
|
|
18
|
-
* @param {boolean} [props.defaultDismissed]
|
|
19
|
-
* @param {string} [props.storageKey]
|
|
20
|
-
* @param {string} [props.dismissLabel]
|
|
21
|
-
* @param {string} [props.restoreLabel]
|
|
22
|
-
* @param {() => void} [props.onClose] Called when the checklist is dismissed.
|
|
23
|
-
* @param {() => void} [props.onRestore] Called when a dismissed checklist is brought back.
|
|
24
|
-
* @param {(collapsed: boolean) => void} [props.onCollapsedChange] Called when the heading collapses or expands the steps.
|
|
25
|
-
* @param {import('react').ElementType} [props.linkComponent]
|
|
26
|
-
* @param {string} [props.className]
|
|
27
|
-
*/
|
|
28
|
-
export default function AppOnboardingChecklist(props: {
|
|
29
|
-
/** The steps in order. Each step has a label, an optional description and href, and a status. */
|
|
30
|
-
steps: {
|
|
31
|
-
key?: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
href?: string;
|
|
35
|
-
status?: 'done' | 'current' | 'skipped' | 'todo';
|
|
36
|
-
}[];
|
|
1
|
+
import { type ComponentPropsWithoutRef, type JSX } from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
export type OnboardingStatus = "done" | "current" | "skipped" | "todo";
|
|
4
|
+
export interface OnboardingStep {
|
|
5
|
+
key?: string | undefined;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
href?: string | undefined;
|
|
9
|
+
status?: OnboardingStatus | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface AppOnboardingChecklistProps extends ComponentPropsWithoutRef<"div"> {
|
|
12
|
+
/**
|
|
13
|
+
* The steps in order. Each step has a label, an optional description and href, and a status.
|
|
14
|
+
* @default []
|
|
15
|
+
*/
|
|
16
|
+
steps?: OnboardingStep[] | undefined;
|
|
37
17
|
/**
|
|
38
18
|
* The heading, and the name of the progress bar.
|
|
39
19
|
* @default "Get started"
|
|
40
20
|
*/
|
|
41
|
-
title?: string;
|
|
21
|
+
title?: string | undefined;
|
|
42
22
|
/** Whether the steps start collapsed. Unset, they start collapsed when every step is done or skipped. */
|
|
43
|
-
defaultCollapsed?: boolean;
|
|
23
|
+
defaultCollapsed?: boolean | undefined;
|
|
44
24
|
/**
|
|
45
25
|
* Whether the checklist starts dismissed, showing only the restore button.
|
|
46
26
|
* @default false
|
|
47
27
|
*/
|
|
48
|
-
defaultDismissed?: boolean;
|
|
28
|
+
defaultDismissed?: boolean | undefined;
|
|
49
29
|
/** Remembers a dismissal across visits under this key, one per checklist. Unset, the dismissal lasts the page. */
|
|
50
|
-
storageKey?: string;
|
|
30
|
+
storageKey?: string | undefined;
|
|
51
31
|
/**
|
|
52
32
|
* The name and tooltip of the close icon.
|
|
53
33
|
* @default "Dismiss checklist"
|
|
54
34
|
*/
|
|
55
|
-
dismissLabel?: string;
|
|
35
|
+
dismissLabel?: string | undefined;
|
|
56
36
|
/**
|
|
57
37
|
* The text of the button that brings a dismissed checklist back.
|
|
58
38
|
* @default "Show setup checklist"
|
|
59
39
|
*/
|
|
60
|
-
restoreLabel?: string;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
40
|
+
restoreLabel?: string | undefined;
|
|
41
|
+
/** Called when the checklist is dismissed. */
|
|
42
|
+
onClose?: (() => void) | undefined;
|
|
43
|
+
/** Called when a dismissed checklist is brought back. */
|
|
44
|
+
onRestore?: (() => void) | undefined;
|
|
45
|
+
/** Called when the heading collapses or expands the steps. */
|
|
46
|
+
onCollapsedChange?: ((collapsed: boolean) => void) | undefined;
|
|
47
|
+
/** The product's router link; it receives `to` in place of `href`. */
|
|
48
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
65
49
|
/**
|
|
66
50
|
* Extra classes on the root element.
|
|
67
51
|
* @default ""
|
|
68
52
|
*/
|
|
69
|
-
className?: string;
|
|
70
|
-
}
|
|
53
|
+
className?: string | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A first-run setup checklist: a short list of steps with the progress so far, each step linking to
|
|
57
|
+
* where it is done. A step is `done`, `current` (the one to do next), `skipped` or `todo`; with none
|
|
58
|
+
* marked current, the first step to do is. The head shows "2 of 4 done" and a bar of one segment per
|
|
59
|
+
* step. The heading collapses the steps, the close icon dismisses the whole checklist to a single
|
|
60
|
+
* "Show setup checklist" button, and a checklist whose every step is done or skipped starts collapsed.
|
|
61
|
+
*
|
|
62
|
+
* It keeps its own collapsed and dismissed state after the first render (`defaultCollapsed`,
|
|
63
|
+
* `defaultDismissed`); `onClose`, `onRestore` and `onCollapsedChange` report changes. With
|
|
64
|
+
* `storageKey` a dismissal is remembered in the browser. Wraps `<wui-onboarding-checklist>`, which
|
|
65
|
+
* Razor `<app-onboarding-checklist>` renders too.
|
|
66
|
+
*
|
|
67
|
+
* @param props.steps
|
|
68
|
+
* @param props.title
|
|
69
|
+
* @param props.defaultCollapsed
|
|
70
|
+
* @param props.defaultDismissed
|
|
71
|
+
* @param props.storageKey
|
|
72
|
+
* @param props.dismissLabel
|
|
73
|
+
* @param props.restoreLabel
|
|
74
|
+
* @param props.onClose Called when the checklist is dismissed.
|
|
75
|
+
* @param props.onRestore Called when a dismissed checklist is brought back.
|
|
76
|
+
* @param props.onCollapsedChange Called when the heading collapses or expands the steps.
|
|
77
|
+
* @param props.linkComponent The product's router link, which receives `to`.
|
|
78
|
+
* @param props.className
|
|
79
|
+
*/
|
|
80
|
+
export default function AppOnboardingChecklist(props: AppOnboardingChecklistProps): JSX.Element | null;
|
|
@@ -1,71 +1,101 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
1
|
+
import { type ComponentPropsWithoutRef, type JSX, type ReactNode, type Ref } from "react";
|
|
2
|
+
/** One person in the flat list `nodes`. `overlay` is product data the component never reads. */
|
|
3
|
+
export interface OrgTreeNode<TOverlay = unknown> {
|
|
4
|
+
id: string;
|
|
5
|
+
parentId: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
role?: string | undefined;
|
|
8
|
+
team?: string | undefined;
|
|
9
|
+
avatarUrl?: string | undefined;
|
|
10
|
+
overlay?: TOverlay | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface AppOrgTreeProps<TOverlay = unknown> extends Omit<ComponentPropsWithoutRef<"div">, "onSelect"> {
|
|
3
13
|
/** The people, flat: one entry per person. A node whose parentId is null or empty is a root; several roots sit side by side in list order. A repeated id, a parentId that names no node, or a loop throws. */
|
|
4
|
-
nodes:
|
|
5
|
-
|
|
6
|
-
parentId: string | null;
|
|
7
|
-
name: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
team?: string;
|
|
10
|
-
avatarUrl?: string;
|
|
11
|
-
overlay?: any;
|
|
12
|
-
}[];
|
|
13
|
-
renderOverlay?: (node: object) => import('react').ReactNode;
|
|
14
|
+
nodes: OrgTreeNode<TOverlay>[];
|
|
15
|
+
renderOverlay?: ((node: OrgTreeNode<TOverlay>) => ReactNode) | undefined;
|
|
14
16
|
/** Ids of the people under the product's selection. They and every ancestor are highlighted, every other person dims. Empty or absent turns the highlight mode off. */
|
|
15
|
-
highlightIds?: string[];
|
|
17
|
+
highlightIds?: string[] | undefined;
|
|
16
18
|
/**
|
|
17
19
|
* A person can be chosen by click, Enter or Space. onSelect fires with the id and node.
|
|
18
20
|
* @default false
|
|
19
21
|
*/
|
|
20
|
-
selectable?: boolean;
|
|
22
|
+
selectable?: boolean | undefined;
|
|
21
23
|
/** Selected id (controlled). The tree shows this id whatever the user clicks until you change it; null selects nothing, and dropping the prop clears it. */
|
|
22
|
-
selected?: string | null;
|
|
23
|
-
|
|
24
|
+
selected?: string | null | undefined;
|
|
25
|
+
/** `node` is the object you passed in. */
|
|
26
|
+
onSelect?: ((id: string, node: OrgTreeNode<TOverlay> | undefined) => void) | undefined;
|
|
24
27
|
/** How many levels open at first render; level 1 is a root. A node at level expandDepth or deeper starts collapsed. Absent: every level starts open. */
|
|
25
|
-
expandDepth?: number;
|
|
28
|
+
expandDepth?: number | undefined;
|
|
26
29
|
/**
|
|
27
30
|
* Shows the search field above the tree.
|
|
28
31
|
* @default true
|
|
29
32
|
*/
|
|
30
|
-
searchable?: boolean;
|
|
33
|
+
searchable?: boolean | undefined;
|
|
31
34
|
/**
|
|
32
35
|
* Accessible name and placeholder of the search field.
|
|
33
36
|
* @default "Search by name"
|
|
34
37
|
*/
|
|
35
|
-
searchLabel?: string;
|
|
38
|
+
searchLabel?: string | undefined;
|
|
36
39
|
/**
|
|
37
40
|
* Announced after a search. {count} is replaced with the number of matches.
|
|
38
41
|
* @default "{count} found"
|
|
39
42
|
*/
|
|
40
|
-
resultsText?: string;
|
|
43
|
+
resultsText?: string | undefined;
|
|
41
44
|
/**
|
|
42
45
|
* Announced when a search matches nobody.
|
|
43
46
|
* @default "No one found"
|
|
44
47
|
*/
|
|
45
|
-
noResultsText?: string;
|
|
48
|
+
noResultsText?: string | undefined;
|
|
46
49
|
/**
|
|
47
50
|
* A toggle's accessible name while its team is closed. {name} is replaced with the person's name.
|
|
48
51
|
* @default "Show {name}'s team"
|
|
49
52
|
*/
|
|
50
|
-
expandLabel?: string;
|
|
53
|
+
expandLabel?: string | undefined;
|
|
51
54
|
/**
|
|
52
55
|
* A toggle's accessible name while its team is open. {name} is replaced with the person's name.
|
|
53
56
|
* @default "Hide {name}'s team"
|
|
54
57
|
*/
|
|
55
|
-
collapseLabel?: string;
|
|
58
|
+
collapseLabel?: string | undefined;
|
|
56
59
|
/** The keyboard help read by screen readers. Defaults to the built-in instructions. */
|
|
57
|
-
helpText?: string;
|
|
60
|
+
helpText?: string | undefined;
|
|
58
61
|
/**
|
|
59
62
|
* Accessible name of the tree.
|
|
60
63
|
* @default "Organisation"
|
|
61
64
|
*/
|
|
62
|
-
ariaLabel?: string;
|
|
65
|
+
ariaLabel?: string | undefined;
|
|
63
66
|
/** The id of the tree element. */
|
|
64
|
-
id?: string;
|
|
67
|
+
id?: string | undefined;
|
|
65
68
|
/**
|
|
66
69
|
* Extra class names on the tree.
|
|
67
70
|
* @default ""
|
|
68
71
|
*/
|
|
69
|
-
className?: string;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
className?: string | undefined;
|
|
73
|
+
/** Receives the `<wui-org-tree>` element. */
|
|
74
|
+
ref?: Ref<HTMLElement> | undefined;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* An org tree of people by reporting line: each person is a card with an avatar, name, role and
|
|
78
|
+
* team, and a toggle that opens their direct reports. The same tree renders from the same flat list
|
|
79
|
+
* on the Razor `<app-org-tree>`, and the shared `<wui-org-tree>` element adds the behaviour (keys,
|
|
80
|
+
* search, selection, print scale) over the markup this component draws.
|
|
81
|
+
*
|
|
82
|
+
* `nodes` is `{ id, parentId, name, role?, team?, avatarUrl?, overlay? }[]`, flat. A node whose
|
|
83
|
+
* `parentId` is null or empty is a root; several roots sit side by side in list order. A repeated id,
|
|
84
|
+
* a `parentId` that names no node, or a loop throws. `overlay` is product data the component never
|
|
85
|
+
* reads: `renderOverlay(node)` draws it under the person's text, and a null or undefined return draws
|
|
86
|
+
* no overlay.
|
|
87
|
+
*
|
|
88
|
+
* Highlight: `highlightIds` marks the nodes that hold something under the product's selection, with
|
|
89
|
+
* every ancestor highlighted and every other node dimmed. Empty or absent turns the mode off.
|
|
90
|
+
* Select: `selectable` lets a person choose a node (click, Enter or Space) and `onSelect(id, node)`
|
|
91
|
+
* fires; with `selected` set, the tree shows that selection whatever the person clicks until the
|
|
92
|
+
* owner moves it.
|
|
93
|
+
*
|
|
94
|
+
* `expandDepth` opens the first levels only: a node at level `expandDepth` or deeper starts collapsed
|
|
95
|
+
* (level 1 is a root). Absent, every level starts open.
|
|
96
|
+
*
|
|
97
|
+
* @param props.onSelect `node` is the object you passed in.
|
|
98
|
+
* @param props.selected Controlled selection.
|
|
99
|
+
* @param props.searchable Renders the search field. Default true.
|
|
100
|
+
*/
|
|
101
|
+
export default function AppOrgTree<TOverlay = unknown>(props: AppOrgTreeProps<TOverlay>): JSX.Element;
|