@webority/ui-react 0.149.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 -161657
- package/dist/canvas-kit/manifest.json +182 -94
- 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 +16 -13
- 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 +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 +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,44 +1,41 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
2
|
+
declare const TONES: readonly ["info", "success", "warning", "danger", "neutral"];
|
|
3
|
+
type AppBannerTone = (typeof TONES)[number];
|
|
1
4
|
/**
|
|
2
|
-
* A page/system-level announcement bar
|
|
5
|
+
* A page/system-level announcement bar: a full-width strip for a message that applies to the
|
|
3
6
|
* whole screen or app (scheduled maintenance, a trial ending, a new version). It sits apart
|
|
4
7
|
* from the other status surfaces: `AppAlert` is an inline message about one section, and a
|
|
5
8
|
* toast is a transient pop; a banner is persistent, full-bleed, and page-scoped.
|
|
6
|
-
*
|
|
7
|
-
* @param {object} props
|
|
8
|
-
* @param {'info'|'success'|'warning'|'danger'|'neutral'} [props.tone]
|
|
9
|
-
* @param {string|import('react').ReactNode} [props.icon]
|
|
10
|
-
* @param {import('react').ReactNode} props.children The message; may include an inline action link.
|
|
11
|
-
* @param {boolean} [props.dismissible]
|
|
12
|
-
* @param {() => void} [props.onClose] Called after the banner is dismissed.
|
|
13
|
-
* @param {import('react').ReactNode} [props.action] A button or link at the banner's right edge.
|
|
14
|
-
* @param {string} [props.className]
|
|
15
|
-
* @param {string} [props.dismissLabel] Default "Dismiss".
|
|
16
9
|
*/
|
|
17
|
-
export
|
|
10
|
+
export interface AppBannerProps extends ComponentPropsWithoutRef<"div"> {
|
|
18
11
|
/**
|
|
19
12
|
* The colour and intent of the banner.
|
|
20
13
|
* @default "info"
|
|
21
14
|
*/
|
|
22
|
-
tone?:
|
|
15
|
+
tone?: AppBannerTone | undefined;
|
|
23
16
|
/** A leading icon: a library icon name or any node. */
|
|
24
|
-
icon?: string |
|
|
25
|
-
|
|
17
|
+
icon?: string | ReactNode | undefined;
|
|
18
|
+
/** The message; may include an inline action link. */
|
|
19
|
+
children?: ReactNode | undefined;
|
|
26
20
|
/**
|
|
27
21
|
* Shows a close button that removes the banner.
|
|
28
22
|
* @default false
|
|
29
23
|
*/
|
|
30
|
-
dismissible?: boolean;
|
|
31
|
-
|
|
24
|
+
dismissible?: boolean | undefined;
|
|
25
|
+
/** Called after the banner is dismissed. */
|
|
26
|
+
onClose?: (() => void) | undefined;
|
|
32
27
|
/** A button or link at the banner's right edge; it wraps below the message on a phone. */
|
|
33
|
-
action?:
|
|
28
|
+
action?: ReactNode | undefined;
|
|
34
29
|
/**
|
|
35
30
|
* Extra classes on the banner.
|
|
36
31
|
* @default ""
|
|
37
32
|
*/
|
|
38
|
-
className?: string;
|
|
33
|
+
className?: string | undefined;
|
|
39
34
|
/**
|
|
40
35
|
* Replaces the built-in English text, for other languages.
|
|
41
36
|
* @default "Dismiss"
|
|
42
37
|
*/
|
|
43
|
-
dismissLabel?: string;
|
|
44
|
-
}
|
|
38
|
+
dismissLabel?: string | undefined;
|
|
39
|
+
}
|
|
40
|
+
export default function AppBanner(props: AppBannerProps): ReactElement | null;
|
|
41
|
+
export {};
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type Context, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
export interface AppBreadcrumbsItem {
|
|
4
|
+
key?: string | undefined;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
href?: string | undefined;
|
|
7
|
+
to?: string | undefined;
|
|
8
|
+
icon?: string | ReactNode | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface AppBreadcrumbsProps extends ComponentPropsWithoutRef<"nav"> {
|
|
11
|
+
/** The trail, root first, current page last. An item links when it has `href` or `to`, unless it is the current page. */
|
|
12
|
+
items: AppBreadcrumbsItem[];
|
|
13
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Extra classes on the trail.
|
|
16
|
+
* @default ""
|
|
17
|
+
*/
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
}
|
|
1
20
|
/** True inside a bar page header: every crumb is a parent link and none is the current page. */
|
|
2
|
-
export declare const BreadcrumbTrailContext:
|
|
21
|
+
export declare const BreadcrumbTrailContext: Context<boolean>;
|
|
3
22
|
/**
|
|
4
23
|
* A breadcrumb trail — the path from a root to the current page. The last item is the
|
|
5
24
|
* current page: rendered as text with `aria-current="page"`, never a link, except inside a bar
|
|
@@ -11,24 +30,9 @@ export declare const BreadcrumbTrailContext: import("react").Context<boolean>;
|
|
|
11
30
|
* (react-router's `Link`) when one is provided, otherwise a plain `<a href>`. The library
|
|
12
31
|
* never imports a router.
|
|
13
32
|
*
|
|
14
|
-
* @param
|
|
15
|
-
* @param {
|
|
16
|
-
* @param {
|
|
33
|
+
* @param props
|
|
34
|
+
* @param {AppBreadcrumbsItem[]} props.items
|
|
35
|
+
* @param {AppLinkComponent} [props.linkComponent] The product's router link, which receives `to`, for `to` items.
|
|
17
36
|
* @param {string} [props.className]
|
|
18
37
|
*/
|
|
19
|
-
export default function AppBreadcrumbs(props:
|
|
20
|
-
/** The trail, root first, current page last. An item links when it has `href` or `to`, unless it is the current page. */
|
|
21
|
-
items: {
|
|
22
|
-
key?: string;
|
|
23
|
-
label: string;
|
|
24
|
-
href?: string;
|
|
25
|
-
to?: string;
|
|
26
|
-
icon?: string | import('react').ReactNode;
|
|
27
|
-
}[];
|
|
28
|
-
linkComponent?: import('react').ElementType;
|
|
29
|
-
/**
|
|
30
|
-
* Extra classes on the trail.
|
|
31
|
-
* @default ""
|
|
32
|
-
*/
|
|
33
|
-
className?: string;
|
|
34
|
-
}): import("react").JSX.Element;
|
|
38
|
+
export default function AppBreadcrumbs(props: AppBreadcrumbsProps): ReactElement;
|
|
@@ -1,110 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* @param {"primary"|"success"|"warning"|"danger"|"info"|"neutral"} [props.tone]
|
|
7
|
-
* @param {"solid"|"soft"|"outline"|"ghost"|"link"|"glass"} [props.variant]
|
|
8
|
-
* @param {"sm"|"md"|"lg"} [props.size]
|
|
9
|
-
* @param {"button"|"submit"|"reset"} [props.type]
|
|
10
|
-
* @param {boolean} [props.loading]
|
|
11
|
-
* @param {boolean} [props.disabled]
|
|
12
|
-
* @param {boolean} [props.block]
|
|
13
|
-
* @param {string|import('react').ReactNode} [props.leftIcon]
|
|
14
|
-
* @param {string|import('react').ReactNode} [props.rightIcon]
|
|
15
|
-
* @param {string} [props.href]
|
|
16
|
-
* @param {boolean} [props.static]
|
|
17
|
-
* @param {string} [props.tooltip]
|
|
18
|
-
* @param {"auto"|"top"|"bottom"|"start"|"end"} [props.tooltipPlacement]
|
|
19
|
-
* @param {string} [props.shortcut]
|
|
20
|
-
* @param {"sheen"|"fill"|"expand"|"glow"|"roll"|"none"} [props.animation]
|
|
21
|
-
* @param {boolean} [props.pinRightIcon]
|
|
22
|
-
* @param {"rounded"|"pill"|"sharp"} [props.shape]
|
|
23
|
-
* @param {"linear"|"outline"|"bold"|"bulk"|"broken"|"twotone"} [props.iconVariant]
|
|
24
|
-
* @param {string} [props.className]
|
|
25
|
-
* @param {boolean|number} [props.vibrate] `true` buzzes 10 ms on a tap, a whole number 1 to 100 buzzes that many ms; phones only.
|
|
26
|
-
* @param {(event: import('react').MouseEvent<HTMLElement>) => void} [props.onClick] Runs on a click; ignored on a static button.
|
|
27
|
-
*/
|
|
28
|
-
export default function AppButton(props: {
|
|
29
|
-
children: import('react').ReactNode;
|
|
1
|
+
import type { ComponentPropsWithRef, ElementType, JSX, MouseEventHandler, ReactNode } from "react";
|
|
2
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
3
|
+
type IconVariant = "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone";
|
|
4
|
+
export interface AppButtonProps extends Omit<ComponentPropsWithRef<"button">, "children" | "className" | "onClick" | "onClickCapture" | "type"> {
|
|
5
|
+
children: ReactNode;
|
|
30
6
|
/**
|
|
31
7
|
* Semantic colour.
|
|
32
8
|
* @default "primary"
|
|
33
9
|
*/
|
|
34
|
-
tone?: "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
10
|
+
tone?: "primary" | "success" | "warning" | "danger" | "info" | "neutral" | undefined;
|
|
35
11
|
/**
|
|
36
12
|
* Emphasis level: solid fill, soft tint, outline, ghost, link text, or glass.
|
|
37
13
|
* @default "solid"
|
|
38
14
|
*/
|
|
39
|
-
variant?: "solid" | "soft" | "outline" | "ghost" | "link" | "glass";
|
|
15
|
+
variant?: "solid" | "soft" | "outline" | "ghost" | "link" | "glass" | undefined;
|
|
40
16
|
/**
|
|
41
17
|
* Control size.
|
|
42
18
|
* @default "md"
|
|
43
19
|
*/
|
|
44
|
-
size?:
|
|
20
|
+
size?: ButtonSize | undefined;
|
|
45
21
|
/**
|
|
46
22
|
* The native button type; not emitted on a link-shaped button.
|
|
47
23
|
* @default "button"
|
|
48
24
|
*/
|
|
49
|
-
type?: "button" | "submit" | "reset";
|
|
25
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
50
26
|
/**
|
|
51
27
|
* Shows a spinner and disables the button while work runs; hides both icons.
|
|
52
28
|
* @default false
|
|
53
29
|
*/
|
|
54
|
-
loading?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Disables the button.
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
disabled?: boolean;
|
|
30
|
+
loading?: boolean | undefined;
|
|
60
31
|
/**
|
|
61
32
|
* Full width of its container.
|
|
62
33
|
* @default false
|
|
63
34
|
*/
|
|
64
|
-
block?: boolean;
|
|
35
|
+
block?: boolean | undefined;
|
|
65
36
|
/** An icon name, or a node drawn as given. */
|
|
66
|
-
leftIcon?: string |
|
|
37
|
+
leftIcon?: string | ReactNode | undefined;
|
|
67
38
|
/** An icon name, or a node drawn as given. */
|
|
68
|
-
rightIcon?: string |
|
|
39
|
+
rightIcon?: string | ReactNode | undefined;
|
|
69
40
|
/** Render as a button-styled link (an <a href>) instead of a <button>; matches Razor <app-button href>. */
|
|
70
|
-
href?: string;
|
|
41
|
+
href?: string | undefined;
|
|
71
42
|
/**
|
|
72
43
|
* Render as a non-interactive element (a span) that keeps the button's chrome but does not click, focus or hover: a resolved or confirmation label (for example Verified) sized to sit where its action button was. Ignores loading, disabled, type and href.
|
|
73
44
|
* @default false
|
|
74
45
|
*/
|
|
75
|
-
static?: boolean;
|
|
46
|
+
static?: boolean | undefined;
|
|
76
47
|
/** A collision-aware hover and focus tooltip (through AppTooltip and Popper) that flips to stay on screen. For a labelled button use it sparingly, since the label already says what it does; it is most useful on a terse or icon-led action. */
|
|
77
|
-
tooltip?: string;
|
|
48
|
+
tooltip?: string | undefined;
|
|
78
49
|
/**
|
|
79
50
|
* Preferred tooltip side; auto picks the side with the most room.
|
|
80
51
|
* @default "auto"
|
|
81
52
|
*/
|
|
82
|
-
tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end";
|
|
53
|
+
tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end" | undefined;
|
|
83
54
|
/** The key that runs this action ("A", "E", "/"), drawn as a key chip: in the tooltip when the button has one, otherwise after the label. Sets aria-keyshortcuts; the page binds the key itself. Ignored on a static button. */
|
|
84
|
-
shortcut?: string;
|
|
55
|
+
shortcut?: string | undefined;
|
|
85
56
|
/** Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well. */
|
|
86
|
-
animation?: "sheen" | "fill" | "expand" | "glow" | "roll" | "none";
|
|
57
|
+
animation?: "sheen" | "fill" | "expand" | "glow" | "roll" | "none" | undefined;
|
|
87
58
|
/**
|
|
88
59
|
* Pin the rightIcon (or the roll animation's icon well) to the button's end edge and centre the label; for a wide or full-width button.
|
|
89
60
|
* @default false
|
|
90
61
|
*/
|
|
91
|
-
pinRightIcon?: boolean;
|
|
62
|
+
pinRightIcon?: boolean | undefined;
|
|
92
63
|
/**
|
|
93
64
|
* Corner shape: the default rounded squircle, a fully rounded pill, or sharp square corners.
|
|
94
65
|
* @default "rounded"
|
|
95
66
|
*/
|
|
96
|
-
shape?: "rounded" | "pill" | "sharp";
|
|
67
|
+
shape?: "rounded" | "pill" | "sharp" | undefined;
|
|
97
68
|
/**
|
|
98
69
|
* The iconsax style of a named leftIcon / rightIcon; a node icon is drawn as given.
|
|
99
70
|
* @default "linear"
|
|
100
71
|
*/
|
|
101
|
-
iconVariant?:
|
|
72
|
+
iconVariant?: IconVariant | undefined;
|
|
102
73
|
/**
|
|
103
74
|
* Extra classes on the button.
|
|
104
75
|
* @default ""
|
|
105
76
|
*/
|
|
106
|
-
className?: string;
|
|
77
|
+
className?: string | undefined;
|
|
107
78
|
/** Phones only: true buzzes 10 ms on a tap, or a whole number of milliseconds from 1 to 100. Not applied while disabled or loading; ignored where the browser has no vibration. */
|
|
108
|
-
vibrate?: boolean | number;
|
|
109
|
-
|
|
110
|
-
|
|
79
|
+
vibrate?: boolean | number | undefined;
|
|
80
|
+
/** MouseEventHandler is method-bivariant, so a handler typed for the button, the anchor or HTMLElement is accepted. */
|
|
81
|
+
onClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
82
|
+
/** Runs in the capture phase, before any handler inside the button; typed for any element, like onClick. Not run while disabled or loading. */
|
|
83
|
+
onClickCapture?: MouseEventHandler<HTMLElement> | undefined;
|
|
84
|
+
/** The element or router link component rendered instead of a button; `href`, `target` and `rel` apply when it is an anchor. */
|
|
85
|
+
as?: ElementType | undefined;
|
|
86
|
+
/** The router link the button navigates to, drawn as a link through the component's router link component. */
|
|
87
|
+
to?: string | undefined;
|
|
88
|
+
target?: string | undefined;
|
|
89
|
+
rel?: string | undefined;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A button, or a button-styled link with href, in the kit's variants and sizes.
|
|
93
|
+
*
|
|
94
|
+
* @param props
|
|
95
|
+
* @param props.children The label.
|
|
96
|
+
* @param [props.tone]
|
|
97
|
+
* @param [props.variant]
|
|
98
|
+
* @param [props.size]
|
|
99
|
+
* @param [props.type]
|
|
100
|
+
* @param [props.loading]
|
|
101
|
+
* @param {boolean | undefined} [props.disabled]
|
|
102
|
+
* @param [props.block]
|
|
103
|
+
* @param [props.leftIcon]
|
|
104
|
+
* @param [props.rightIcon]
|
|
105
|
+
* @param [props.href]
|
|
106
|
+
* @param [props.static]
|
|
107
|
+
* @param [props.tooltip]
|
|
108
|
+
* @param [props.tooltipPlacement]
|
|
109
|
+
* @param [props.shortcut]
|
|
110
|
+
* @param [props.animation]
|
|
111
|
+
* @param [props.pinRightIcon]
|
|
112
|
+
* @param [props.shape]
|
|
113
|
+
* @param [props.iconVariant]
|
|
114
|
+
* @param [props.className]
|
|
115
|
+
* @param [props.vibrate] `true` buzzes 10 ms on a tap, a whole number 1 to 100 buzzes that many ms; phones only.
|
|
116
|
+
* @param [props.onClick] Runs on a click; ignored on a static button.
|
|
117
|
+
* @param [props.onClickCapture] Runs in the capture phase, before any handler inside; ignored on a static, disabled or loading button.
|
|
118
|
+
*/
|
|
119
|
+
export default function AppButton(props: AppButtonProps): JSX.Element;
|
|
120
|
+
export {};
|
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* ("Bold", "Italic"). The buttons touch, share one outline and keep their own variants and
|
|
4
|
-
* handlers; give every button in the group the same `variant` and leave `size` to the group.
|
|
5
|
-
* The group is announced by `label`; each button is still its own tab stop (this is a set of
|
|
6
|
-
* actions, not a single-choice control; for one choice of several use `AppSegmented`).
|
|
7
|
-
*
|
|
8
|
-
* @param {object} props
|
|
9
|
-
* @param {string} props.label
|
|
10
|
-
* @param {import('react').ReactNode} props.children `AppButton`s (or button-styled links).
|
|
11
|
-
* @param {'sm'|'md'|'lg'} [props.size]
|
|
12
|
-
* @param {boolean} [props.vertical]
|
|
13
|
-
* @param {boolean} [props.fullWidth]
|
|
14
|
-
* @param {string} [props.className]
|
|
15
|
-
*/
|
|
16
|
-
export default function AppButtonGroup(props: {
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
2
|
+
export interface AppButtonGroupProps extends ComponentPropsWithoutRef<"div"> {
|
|
17
3
|
/** Accessible name for the group ("Text style"). */
|
|
18
4
|
label: string;
|
|
19
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
20
6
|
/**
|
|
21
7
|
* One size for every button in the group.
|
|
22
8
|
* @default "md"
|
|
23
9
|
*/
|
|
24
|
-
size?:
|
|
10
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
25
11
|
/**
|
|
26
12
|
* Stack the buttons top to bottom.
|
|
27
13
|
* @default false
|
|
28
14
|
*/
|
|
29
|
-
vertical?: boolean;
|
|
15
|
+
vertical?: boolean | undefined;
|
|
30
16
|
/**
|
|
31
17
|
* Fill the container, the buttons sharing the row equally.
|
|
32
18
|
* @default false
|
|
33
19
|
*/
|
|
34
|
-
fullWidth?: boolean;
|
|
20
|
+
fullWidth?: boolean | undefined;
|
|
35
21
|
/**
|
|
36
22
|
* Extra classes on the group.
|
|
37
23
|
* @default ""
|
|
38
24
|
*/
|
|
39
|
-
className?: string;
|
|
40
|
-
}
|
|
25
|
+
className?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Related buttons joined into one control: a view switch, a bulk-action row, a text-style set
|
|
29
|
+
* ("Bold", "Italic"). The buttons touch, share one outline and keep their own variants and
|
|
30
|
+
* handlers; give every button in the group the same `variant` and leave `size` to the group.
|
|
31
|
+
* The group is announced by `label`; each button is still its own tab stop (this is a set of
|
|
32
|
+
* actions, not a single-choice control; for one choice of several use `AppSegmented`).
|
|
33
|
+
*
|
|
34
|
+
* @param props
|
|
35
|
+
* @param props.label
|
|
36
|
+
* @param props.children `AppButton`s (or button-styled links).
|
|
37
|
+
* @param [props.size]
|
|
38
|
+
* @param [props.vertical]
|
|
39
|
+
* @param [props.fullWidth]
|
|
40
|
+
* @param [props.className]
|
|
41
|
+
*/
|
|
42
|
+
export default function AppButtonGroup(props: AppButtonGroupProps): ReactElement;
|
|
@@ -1,57 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
export interface AppCalendarEvent {
|
|
3
|
+
id?: string | number | undefined;
|
|
4
|
+
title: string;
|
|
5
|
+
start: string;
|
|
6
|
+
end?: string | undefined;
|
|
7
|
+
allDay?: boolean | undefined;
|
|
8
|
+
tone?: "neutral" | "primary" | "success" | "warning" | "danger" | "info" | undefined;
|
|
9
|
+
url?: string | undefined;
|
|
10
|
+
stack?: {
|
|
11
|
+
count: number;
|
|
12
|
+
url: string;
|
|
13
|
+
label: string;
|
|
14
|
+
} | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface AppCalendarProps {
|
|
2
17
|
/**
|
|
3
18
|
* The name a screen reader hears for the calendar.
|
|
4
19
|
* @default "Calendar"
|
|
5
20
|
*/
|
|
6
|
-
label?: string;
|
|
21
|
+
label?: string | undefined;
|
|
7
22
|
/** The events, instead of `eventsUrl`. Extra keys are kept and come back in `onEventClick`. */
|
|
8
|
-
events?:
|
|
9
|
-
id?: string | number;
|
|
10
|
-
title: string;
|
|
11
|
-
start: string;
|
|
12
|
-
end?: string;
|
|
13
|
-
allDay?: boolean;
|
|
14
|
-
tone?: 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
15
|
-
url?: string;
|
|
16
|
-
stack?: {
|
|
17
|
-
count: number;
|
|
18
|
-
url: string;
|
|
19
|
-
label: string;
|
|
20
|
-
};
|
|
21
|
-
}[];
|
|
23
|
+
events?: AppCalendarEvent[] | undefined;
|
|
22
24
|
/** Called with `start`, `end` and `view` (month, week, day or list; IST days) whenever the visible period changes; answers a JSON list of events. */
|
|
23
|
-
eventsUrl?: string;
|
|
25
|
+
eventsUrl?: string | undefined;
|
|
24
26
|
/** The view to show. Without it a calendar opens on the month, or on the list when it is narrower than a phone. */
|
|
25
|
-
view?:
|
|
27
|
+
view?: "month" | "week" | "day" | "list" | undefined;
|
|
26
28
|
/** The day (`YYYY-MM-DD`, in the time zone of the calendar) to show; today when omitted. Changing it moves the calendar. */
|
|
27
|
-
date?: string;
|
|
29
|
+
date?: string | undefined;
|
|
28
30
|
/** What a list with no events says. */
|
|
29
|
-
emptyText?: string;
|
|
31
|
+
emptyText?: string | undefined;
|
|
30
32
|
/** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's `--wui-first-day` token, which is 1 (Monday) unless the product sets it. */
|
|
31
|
-
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
33
|
+
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
32
34
|
/** IANA time zone the calendar shows, for example Asia/Kolkata or America/New_York. Events with an offset or a Z are moved into it; events with no offset are read as already in it. Unset, it is India Standard Time (Asia/Kolkata). */
|
|
33
|
-
timeZone?: string;
|
|
35
|
+
timeZone?: string | undefined;
|
|
34
36
|
/** What is said when `eventsUrl` could not be loaded, and when the calendar's code could not. */
|
|
35
|
-
errorText?: string;
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
errorText?: string | undefined;
|
|
38
|
+
/** Return `false` to stop the event's own link; any other result is ignored. */
|
|
39
|
+
onEventClick?: ((event: AppCalendarEvent) => unknown) | undefined;
|
|
40
|
+
onDateClick?: ((detail: {
|
|
38
41
|
date: string;
|
|
39
42
|
time: string | null;
|
|
40
43
|
allDay: boolean;
|
|
41
|
-
}) => void;
|
|
42
|
-
onRangeChange?: (detail: {
|
|
44
|
+
}) => void) | undefined;
|
|
45
|
+
onRangeChange?: ((detail: {
|
|
43
46
|
view: string;
|
|
44
47
|
date: string;
|
|
45
48
|
start: string;
|
|
46
49
|
end: string;
|
|
47
50
|
title: string;
|
|
48
|
-
}) => void;
|
|
51
|
+
}) => void) | undefined;
|
|
49
52
|
/**
|
|
50
53
|
* Extra classes on the element.
|
|
51
54
|
* @default ""
|
|
52
55
|
*/
|
|
53
|
-
className?: string;
|
|
56
|
+
className?: string | undefined;
|
|
54
57
|
/** Inline style on the element. */
|
|
55
|
-
style?:
|
|
56
|
-
}
|
|
58
|
+
style?: CSSProperties | undefined;
|
|
59
|
+
}
|
|
60
|
+
declare const AppCalendar: import("react").ForwardRefExoticComponent<AppCalendarProps & import("react").RefAttributes<HTMLElement>>;
|
|
57
61
|
export default AppCalendar;
|
|
@@ -1,130 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Beyond a plain surface it carries visual variants, a tone-tinted accent stripe, a padding
|
|
5
|
-
* scale, an optional capped/centred width, a header (icon + title + subtitle + actions), a
|
|
6
|
-
* footer and a top media band, and can be made a single clickable control.
|
|
7
|
-
*
|
|
8
|
-
* @param {object} props
|
|
9
|
-
* @param {import('react').ReactNode} [props.title]
|
|
10
|
-
* @param {import('react').ReactNode} [props.subtitle]
|
|
11
|
-
* @param {string} [props.headerIcon]
|
|
12
|
-
* @param {string} [props.titleClassName]
|
|
13
|
-
* @param {"sans"|"serif"} [props.titleFont]
|
|
14
|
-
* @param {import('react').ReactNode} [props.header]
|
|
15
|
-
* @param {import('react').ReactNode} [props.headerExtra]
|
|
16
|
-
* @param {import('react').ReactNode} [props.headerActions]
|
|
17
|
-
* @param {import('react').ReactNode} [props.footer]
|
|
18
|
-
* @param {import('react').ReactNode} [props.media]
|
|
19
|
-
* @param {import('react').ReactNode} props.children
|
|
20
|
-
* @param {"flat"|"elevated"|"outline"|"filled"|"accent"} [props.variant]
|
|
21
|
-
* @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone]
|
|
22
|
-
* @param {"none"|"sm"|"md"|"lg"} [props.padding]
|
|
23
|
-
* @param {"xs"|"sm"|"md"|"lg"|number|string} [props.maxWidth]
|
|
24
|
-
* @param {string} [props.className]
|
|
25
|
-
* @param {string} [props.bodyClassName]
|
|
26
|
-
* @param {string} [props.headerClassName]
|
|
27
|
-
* @param {boolean} [props.body]
|
|
28
|
-
* @param {boolean} [props.lifted]
|
|
29
|
-
* @param {boolean} [props.flush]
|
|
30
|
-
* @param {boolean} [props.divided]
|
|
31
|
-
* @param {string} [props.href]
|
|
32
|
-
* @param {(e) => void} [props.onClick] Makes the whole card a button (when no href).
|
|
33
|
-
* @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
|
|
34
|
-
* @param {() => void} [props.onClose] Called when the close button is pressed; the card then hides itself.
|
|
35
|
-
* @param {boolean} [props.dismissible]
|
|
36
|
-
* @param {string} [props.closeLabel]
|
|
37
|
-
*/
|
|
38
|
-
export default function AppCard(props: {
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
export interface AppCardProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title" | "onClick" | "className" | "children"> {
|
|
39
4
|
/** The heading shown in the card header. */
|
|
40
|
-
title?:
|
|
5
|
+
title?: React.ReactNode | undefined;
|
|
41
6
|
/** Muted line under the title. */
|
|
42
|
-
subtitle?:
|
|
7
|
+
subtitle?: React.ReactNode | undefined;
|
|
43
8
|
/** Leading header glyph: an icon name (or a node). */
|
|
44
|
-
headerIcon?:
|
|
9
|
+
headerIcon?: React.ReactNode | undefined;
|
|
45
10
|
/**
|
|
46
11
|
* Extra classes on the title.
|
|
47
12
|
* @default ""
|
|
48
13
|
*/
|
|
49
|
-
titleClassName?: string;
|
|
14
|
+
titleClassName?: string | undefined;
|
|
50
15
|
/**
|
|
51
16
|
* Face of the title. `serif` draws it in the display typeface.
|
|
52
17
|
* @default "sans"
|
|
53
18
|
*/
|
|
54
|
-
titleFont?: "sans" | "serif";
|
|
19
|
+
titleFont?: "sans" | "serif" | undefined;
|
|
55
20
|
/** Fully custom header: overrides title, subtitle, icon, extra and actions. */
|
|
56
|
-
header?:
|
|
21
|
+
header?: React.ReactNode | undefined;
|
|
57
22
|
/** Extra content in the header, after the title. */
|
|
58
|
-
headerExtra?:
|
|
23
|
+
headerExtra?: React.ReactNode | undefined;
|
|
59
24
|
/** Right-aligned header controls. */
|
|
60
|
-
headerActions?:
|
|
25
|
+
headerActions?: React.ReactNode | undefined;
|
|
61
26
|
/** Footer row (actions or meta), below the body. */
|
|
62
|
-
footer?:
|
|
27
|
+
footer?: React.ReactNode | undefined;
|
|
63
28
|
/** Top media band (image or video), above the header. */
|
|
64
|
-
media?:
|
|
65
|
-
children
|
|
29
|
+
media?: React.ReactNode | undefined;
|
|
30
|
+
children?: React.ReactNode | undefined;
|
|
66
31
|
/**
|
|
67
32
|
* The visual treatment of the card.
|
|
68
33
|
* @default "flat"
|
|
69
34
|
*/
|
|
70
|
-
variant?: "flat" | "elevated" | "outline" | "filled" | "accent";
|
|
35
|
+
variant?: "flat" | "elevated" | "outline" | "filled" | "accent" | undefined;
|
|
71
36
|
/**
|
|
72
37
|
* Colours the `accent` stripe.
|
|
73
38
|
* @default "primary"
|
|
74
39
|
*/
|
|
75
|
-
tone?: "primary" | "success" | "warning" | "danger" | "info";
|
|
40
|
+
tone?: "primary" | "success" | "warning" | "danger" | "info" | undefined;
|
|
76
41
|
/**
|
|
77
42
|
* Header, body and footer padding preset. The default (md) is a uniform 20px; `none` clears only the body, for a table or list that runs edge to edge, and keeps the header and footer inset. For an arbitrary inset, add a class (see `className`) that sets the `--wui-card-pad` token instead of using this preset scale.
|
|
78
43
|
* @default "md"
|
|
79
44
|
*/
|
|
80
|
-
padding?: "none" | "sm" | "md" | "lg";
|
|
45
|
+
padding?: "none" | "sm" | "md" | "lg" | undefined;
|
|
81
46
|
/** Cap and centre a standalone card. A preset (xs, sm, md, lg), a number of pixels or a CSS length. */
|
|
82
|
-
maxWidth?: "xs" | "sm" | "md" | "lg" | number | string;
|
|
47
|
+
maxWidth?: "xs" | "sm" | "md" | "lg" | number | string | undefined;
|
|
83
48
|
/**
|
|
84
49
|
* Extra classes on the `.card` root. The padding hook: a class here can set `--wui-card-pad` to retune the inset (the Razor counterpart is a plain `class`).
|
|
85
50
|
* @default ""
|
|
86
51
|
*/
|
|
87
|
-
className?: string;
|
|
52
|
+
className?: string | undefined;
|
|
88
53
|
/**
|
|
89
54
|
* Extra classes on the card body.
|
|
90
55
|
* @default ""
|
|
91
56
|
*/
|
|
92
|
-
bodyClassName?: string;
|
|
57
|
+
bodyClassName?: string | undefined;
|
|
93
58
|
/**
|
|
94
59
|
* Extra classes on the card header.
|
|
95
60
|
* @default ""
|
|
96
61
|
*/
|
|
97
|
-
headerClassName?: string;
|
|
62
|
+
headerClassName?: string | undefined;
|
|
98
63
|
/**
|
|
99
64
|
* Wrap children in `.card-body`. False when the content brings its own padding.
|
|
100
65
|
* @default true
|
|
101
66
|
*/
|
|
102
|
-
body?: boolean;
|
|
67
|
+
body?: boolean | undefined;
|
|
103
68
|
/**
|
|
104
69
|
* 1px hover translate (`.card-lifted`), not a drop shadow.
|
|
105
70
|
* @default false
|
|
106
71
|
*/
|
|
107
|
-
lifted?: boolean;
|
|
72
|
+
lifted?: boolean | undefined;
|
|
108
73
|
/**
|
|
109
74
|
* Clips the content to the card's rounded corners and removes the body padding, for a table or image that runs edge to edge. The header and footer keep their padding. Anything that pokes outside the card, such as an inline menu, is clipped.
|
|
110
75
|
* @default false
|
|
111
76
|
*/
|
|
112
|
-
flush?: boolean;
|
|
77
|
+
flush?: boolean | undefined;
|
|
113
78
|
/**
|
|
114
79
|
* Draws a thin rule under the header. Needs a header (title, subtitle, headerIcon, headerActions or header). The rule colour is the --wui-card-divider-color token.
|
|
115
80
|
* @default false
|
|
116
81
|
*/
|
|
117
|
-
divided?: boolean;
|
|
82
|
+
divided?: boolean | undefined;
|
|
118
83
|
/** Makes the whole card a link. */
|
|
119
|
-
href?: string;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
84
|
+
href?: string | undefined;
|
|
85
|
+
target?: string | undefined;
|
|
86
|
+
rel?: string | undefined;
|
|
87
|
+
/** The element or component the card renders as; it gets the anchor attributes and the rest props. */
|
|
88
|
+
as?: React.ElementType | undefined;
|
|
89
|
+
/** Makes the whole card a button (when no href). */
|
|
90
|
+
onClick?: ((e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void) | undefined;
|
|
91
|
+
/** The product's router link, which receives `to` instead of `href`. */
|
|
92
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
93
|
+
/** Called when the close button is pressed; the card then hides itself. */
|
|
94
|
+
onClose?: (() => void) | undefined;
|
|
123
95
|
/** Show a close button at the end of the header (defaults to true when onClose is set). */
|
|
124
|
-
dismissible?: boolean;
|
|
96
|
+
dismissible?: boolean | undefined;
|
|
125
97
|
/**
|
|
126
98
|
* Accessible name of the close button.
|
|
127
99
|
* @default "Close"
|
|
128
100
|
*/
|
|
129
|
-
closeLabel?: string;
|
|
130
|
-
}
|
|
101
|
+
closeLabel?: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The shared surface card — wraps react-bootstrap <Card> and the theme's `.card` chrome.
|
|
105
|
+
*
|
|
106
|
+
* Beyond a plain surface it carries visual variants, a tone-tinted accent stripe, a padding
|
|
107
|
+
* scale, an optional capped/centred width, a header (icon + title + subtitle + actions), a
|
|
108
|
+
* footer and a top media band, and can be made a single clickable control.
|
|
109
|
+
*/
|
|
110
|
+
export default function AppCard(props: AppCardProps): React.JSX.Element | null;
|