@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,118 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant='twotone']
|
|
12
|
-
* @param {import('react').ReactNode} [props.delta]
|
|
13
|
-
* @param {'up'|'down'|'flat'} [props.deltaDirection]
|
|
14
|
-
* @param {'success'|'danger'|'neutral'} [props.deltaTone]
|
|
15
|
-
* @param {number[]} [props.sparkline]
|
|
16
|
-
* @param {'plain'|'filled'|'accent'|'spotlight'} [props.variant]
|
|
17
|
-
* @param {'sm'|'md'|'lg'} [props.size]
|
|
18
|
-
* @param {number} [props.valueSize]
|
|
19
|
-
* @param {boolean} [props.inline]
|
|
20
|
-
* @param {boolean} [props.attention]
|
|
21
|
-
* @param {string} [props.href]
|
|
22
|
-
* @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
|
|
23
|
-
* @param {string} [props.className]
|
|
24
|
-
* @param {import('react').CSSProperties} [props.style] Inline style on the tile root; the
|
|
25
|
-
* `valueSize` var is merged into it.
|
|
26
|
-
* @param {string} [props.iconClassName]
|
|
27
|
-
* @param {string} [props.labelClassName]
|
|
28
|
-
* @param {string} [props.valueClassName]
|
|
29
|
-
* @param {string} [props.captionClassName]
|
|
30
|
-
* @param {string} [props.deltaClassName]
|
|
31
|
-
* @param {string} [props.sparklineClassName]
|
|
32
|
-
*/
|
|
33
|
-
export default function AppKpiTile(props: {
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from "react";
|
|
3
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
4
|
+
type KpiVariant = "plain" | "filled" | "accent" | "spotlight";
|
|
5
|
+
type KpiSize = "sm" | "md" | "lg";
|
|
6
|
+
type KpiIconTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
7
|
+
type KpiIconVariant = "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone";
|
|
8
|
+
type KpiDirection = "up" | "down" | "flat";
|
|
9
|
+
type KpiDeltaTone = "success" | "danger" | "neutral";
|
|
10
|
+
export interface AppKpiTileProps extends Omit<HTMLAttributes<HTMLElement>, "className" | "style"> {
|
|
34
11
|
/** What the number measures. */
|
|
35
|
-
label:
|
|
12
|
+
label: ReactNode;
|
|
36
13
|
/** The number itself, already formatted. */
|
|
37
|
-
value:
|
|
14
|
+
value: ReactNode;
|
|
38
15
|
/** A sub-line under the value, such as Total sent. */
|
|
39
|
-
caption?:
|
|
16
|
+
caption?: ReactNode | undefined;
|
|
40
17
|
/** An icon name for the leading tile, or a custom node. */
|
|
41
|
-
icon?: string |
|
|
18
|
+
icon?: string | ReactNode | undefined;
|
|
42
19
|
/** Tints the icon chip. */
|
|
43
|
-
iconTone?:
|
|
20
|
+
iconTone?: KpiIconTone | undefined;
|
|
44
21
|
/**
|
|
45
22
|
* The icon style of a named icon; a node icon is drawn as given.
|
|
46
23
|
* @default "twotone"
|
|
47
24
|
*/
|
|
48
|
-
iconVariant?:
|
|
25
|
+
iconVariant?: KpiIconVariant | undefined;
|
|
49
26
|
/** The change text, such as 12% vs last month. */
|
|
50
|
-
delta?:
|
|
27
|
+
delta?: ReactNode | undefined;
|
|
51
28
|
/** Colours the delta and picks its arrow. Left out, it is read from a leading plus or minus sign on the delta and falls back to flat. */
|
|
52
|
-
deltaDirection?:
|
|
29
|
+
deltaDirection?: KpiDirection | undefined;
|
|
53
30
|
/** The delta's colour, overriding the one its direction implies, for a figure where a rise is bad news such as refunds or cost. The arrow still follows the direction. */
|
|
54
|
-
deltaTone?:
|
|
31
|
+
deltaTone?: KpiDeltaTone | undefined;
|
|
55
32
|
/** A trend series drawn as a small inline chart. */
|
|
56
|
-
sparkline?: number[];
|
|
33
|
+
sparkline?: number[] | undefined;
|
|
57
34
|
/**
|
|
58
35
|
* The tile surface and layout: plain is a borderless tile, filled a subtle fill, accent a brand-tinted fill, spotlight a feature tile with the icon top right, a large value and the caption below.
|
|
59
36
|
* @default "plain"
|
|
60
37
|
*/
|
|
61
|
-
variant?:
|
|
38
|
+
variant?: KpiVariant | undefined;
|
|
62
39
|
/**
|
|
63
40
|
* The tile scale: sm is compact, md the default, lg a hero tile with an enlarged value.
|
|
64
41
|
* @default "md"
|
|
65
42
|
*/
|
|
66
|
-
size?:
|
|
43
|
+
size?: KpiSize | undefined;
|
|
67
44
|
/** A custom value font size in px. It overrides the size and variant default, to tame a too-large headline. */
|
|
68
|
-
valueSize?: number;
|
|
45
|
+
valueSize?: number | undefined;
|
|
69
46
|
/**
|
|
70
47
|
* Puts the icon beside the text instead of above it.
|
|
71
48
|
* @default false
|
|
72
49
|
*/
|
|
73
|
-
inline?: boolean;
|
|
50
|
+
inline?: boolean | undefined;
|
|
74
51
|
/**
|
|
75
52
|
* Marks the tile as needing action, with a warning tint.
|
|
76
53
|
* @default false
|
|
77
54
|
*/
|
|
78
|
-
attention?: boolean;
|
|
55
|
+
attention?: boolean | undefined;
|
|
79
56
|
/** Renders the whole tile as a link to this address. */
|
|
80
|
-
href?: string;
|
|
81
|
-
linkComponent?:
|
|
57
|
+
href?: string | undefined;
|
|
58
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
82
59
|
/**
|
|
83
60
|
* Extra classes on the tile root.
|
|
84
61
|
* @default ""
|
|
85
62
|
*/
|
|
86
|
-
className?: string;
|
|
87
|
-
style?:
|
|
63
|
+
className?: string | undefined;
|
|
64
|
+
style?: CSSProperties | undefined;
|
|
88
65
|
/**
|
|
89
66
|
* Extra classes on the icon chip.
|
|
90
67
|
* @default ""
|
|
91
68
|
*/
|
|
92
|
-
iconClassName?: string;
|
|
69
|
+
iconClassName?: string | undefined;
|
|
93
70
|
/**
|
|
94
71
|
* Extra classes on the label.
|
|
95
72
|
* @default ""
|
|
96
73
|
*/
|
|
97
|
-
labelClassName?: string;
|
|
74
|
+
labelClassName?: string | undefined;
|
|
98
75
|
/**
|
|
99
76
|
* Extra classes on the value.
|
|
100
77
|
* @default ""
|
|
101
78
|
*/
|
|
102
|
-
valueClassName?: string;
|
|
79
|
+
valueClassName?: string | undefined;
|
|
103
80
|
/**
|
|
104
81
|
* Extra classes on the caption.
|
|
105
82
|
* @default ""
|
|
106
83
|
*/
|
|
107
|
-
captionClassName?: string;
|
|
84
|
+
captionClassName?: string | undefined;
|
|
108
85
|
/**
|
|
109
86
|
* Extra classes on the delta.
|
|
110
87
|
* @default ""
|
|
111
88
|
*/
|
|
112
|
-
deltaClassName?: string;
|
|
89
|
+
deltaClassName?: string | undefined;
|
|
113
90
|
/**
|
|
114
91
|
* Extra classes on the sparkline.
|
|
115
92
|
* @default ""
|
|
116
93
|
*/
|
|
117
|
-
sparklineClassName?: string;
|
|
118
|
-
}
|
|
94
|
+
sparklineClassName?: string | undefined;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A single headline number — a dashboard stat, a summary figure above a table.
|
|
98
|
+
* Label, value, and an optional period-over-period delta.
|
|
99
|
+
*
|
|
100
|
+
* @param linkComponent Router link; receives `to` instead of `href`.
|
|
101
|
+
* @param style Inline style on the tile root; the `valueSize` var is merged into it.
|
|
102
|
+
*/
|
|
103
|
+
export default function AppKpiTile(props: AppKpiTileProps): React.JSX.Element;
|
|
104
|
+
export {};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type CSSProperties } from "react";
|
|
3
|
+
type LeadField = "name" | "email" | "phone" | "company" | "message" | "consent";
|
|
4
|
+
type LeadTrigger = "exit" | "delay" | "scroll" | "pages";
|
|
5
|
+
export interface AppLeadPopupElement extends HTMLElement {
|
|
6
|
+
open(): void;
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
|
9
|
+
export interface AppLeadPopupProps {
|
|
3
10
|
/** The URL the form posts to. */
|
|
4
11
|
action: string;
|
|
5
12
|
/** The server's PublicForm name, used as the captcha action. */
|
|
@@ -7,118 +14,154 @@ declare const AppLeadPopup: import("react").ForwardRefExoticComponent<{
|
|
|
7
14
|
/** The dialog's heading, and its accessible name. */
|
|
8
15
|
title: string;
|
|
9
16
|
/** A sentence under the heading. */
|
|
10
|
-
description?: string;
|
|
17
|
+
description?: string | undefined;
|
|
11
18
|
/**
|
|
12
19
|
* The fields in order: name, email, phone, company, message, consent.
|
|
13
20
|
* @default ["name","email"]
|
|
14
21
|
*/
|
|
15
|
-
fields?:
|
|
22
|
+
fields?: LeadField[] | undefined;
|
|
16
23
|
/**
|
|
17
24
|
* The fields that must have a value.
|
|
18
25
|
* @default []
|
|
19
26
|
*/
|
|
20
|
-
required?:
|
|
27
|
+
required?: LeadField[] | undefined;
|
|
21
28
|
/** Text put before every posted field name, such as Input. */
|
|
22
|
-
fieldPrefix?: string;
|
|
29
|
+
fieldPrefix?: string | undefined;
|
|
23
30
|
/** Posted name per field, for a server that names it differently. */
|
|
24
|
-
fieldNames?: Record<string, string
|
|
31
|
+
fieldNames?: Record<string, string> | undefined;
|
|
25
32
|
/** Label per field. */
|
|
26
|
-
labels?: Record<string, string
|
|
33
|
+
labels?: Record<string, string> | undefined;
|
|
27
34
|
/** Maximum length per field. */
|
|
28
|
-
maxLengths?: Record<string, number
|
|
35
|
+
maxLengths?: Record<string, number> | undefined;
|
|
29
36
|
/** Adds a Privacy policy link beside the consent checkbox, opened in the same tab. Only with fields including consent. */
|
|
30
|
-
consentHref?: string;
|
|
37
|
+
consentHref?: string | undefined;
|
|
31
38
|
/**
|
|
32
39
|
* The submit button's text.
|
|
33
40
|
* @default "Send"
|
|
34
41
|
*/
|
|
35
|
-
submitLabel?: string;
|
|
42
|
+
submitLabel?: string | undefined;
|
|
36
43
|
/**
|
|
37
44
|
* The heading after a successful send.
|
|
38
45
|
* @default "Thank you"
|
|
39
46
|
*/
|
|
40
|
-
successTitle?: string;
|
|
47
|
+
successTitle?: string | undefined;
|
|
41
48
|
/** The sentence under the success heading. */
|
|
42
|
-
successText?: string;
|
|
49
|
+
successText?: string | undefined;
|
|
43
50
|
/**
|
|
44
51
|
* Shown when the send fails without a message of its own.
|
|
45
52
|
* @default "Something went wrong. Please try again or contact us directly."
|
|
46
53
|
*/
|
|
47
|
-
errorText?: string;
|
|
54
|
+
errorText?: string | undefined;
|
|
48
55
|
/**
|
|
49
56
|
* The close button's accessible name.
|
|
50
57
|
* @default "Close"
|
|
51
58
|
*/
|
|
52
|
-
closeLabel?: string;
|
|
59
|
+
closeLabel?: string | undefined;
|
|
53
60
|
/** A secondary link under the form. */
|
|
54
|
-
secondaryLabel?: string;
|
|
61
|
+
secondaryLabel?: string | undefined;
|
|
55
62
|
/** Where the secondary link goes. */
|
|
56
|
-
secondaryHref?: string;
|
|
63
|
+
secondaryHref?: string | undefined;
|
|
57
64
|
/**
|
|
58
65
|
* The text drawn above the secondary link.
|
|
59
66
|
* @default "or"
|
|
60
67
|
*/
|
|
61
|
-
secondaryDivider?: string;
|
|
68
|
+
secondaryDivider?: string | undefined;
|
|
62
69
|
/**
|
|
63
70
|
* exit, delay, scroll or pages. Empty by default: the host calls open().
|
|
64
71
|
* @default []
|
|
65
72
|
*/
|
|
66
|
-
triggers?:
|
|
73
|
+
triggers?: LeadTrigger[] | undefined;
|
|
67
74
|
/**
|
|
68
75
|
* Seconds on the site before the delay trigger counts as engaged.
|
|
69
76
|
* @default 30
|
|
70
77
|
*/
|
|
71
|
-
delaySeconds?: number;
|
|
78
|
+
delaySeconds?: number | undefined;
|
|
72
79
|
/**
|
|
73
80
|
* Percent of the page scrolled before the scroll trigger counts.
|
|
74
81
|
* @default 50
|
|
75
82
|
*/
|
|
76
|
-
scrollPercent?: number;
|
|
83
|
+
scrollPercent?: number | undefined;
|
|
77
84
|
/**
|
|
78
85
|
* Distinct pages this session before the pages trigger counts.
|
|
79
86
|
* @default 2
|
|
80
87
|
*/
|
|
81
|
-
pagesViewed?: number;
|
|
88
|
+
pagesViewed?: number | undefined;
|
|
82
89
|
/** Names the browser memory of the popup. Required with triggers; build it with the user's id. */
|
|
83
|
-
storageKey?: string;
|
|
90
|
+
storageKey?: string | undefined;
|
|
84
91
|
/**
|
|
85
92
|
* Days a dismissed popup stays quiet.
|
|
86
93
|
* @default 30
|
|
87
94
|
*/
|
|
88
|
-
dismissDays?: number;
|
|
95
|
+
dismissDays?: number | undefined;
|
|
89
96
|
/**
|
|
90
97
|
* Days a submitted popup stays quiet.
|
|
91
98
|
* @default 365
|
|
92
99
|
*/
|
|
93
|
-
submittedDays?: number;
|
|
100
|
+
submittedDays?: number | undefined;
|
|
94
101
|
/**
|
|
95
102
|
* Seconds before the success view closes. 0 keeps it open.
|
|
96
103
|
* @default 5
|
|
97
104
|
*/
|
|
98
|
-
successCloseSeconds?: number;
|
|
105
|
+
successCloseSeconds?: number | undefined;
|
|
99
106
|
/**
|
|
100
107
|
* Draw open with no triggers, memory or posting, for a design surface.
|
|
101
108
|
* @default false
|
|
102
109
|
*/
|
|
103
|
-
preview?: boolean;
|
|
104
|
-
onShown?: (detail: {
|
|
110
|
+
preview?: boolean | undefined;
|
|
111
|
+
onShown?: ((detail: {
|
|
105
112
|
trigger: string;
|
|
106
|
-
}) => void;
|
|
107
|
-
onBeforeSubmit?: (formData: FormData) => void;
|
|
108
|
-
onSubmitted?: (detail: {
|
|
113
|
+
}) => void) | undefined;
|
|
114
|
+
onBeforeSubmit?: ((formData: FormData) => void) | undefined;
|
|
115
|
+
onSubmitted?: ((detail: {
|
|
109
116
|
values: object;
|
|
110
117
|
response: object | null;
|
|
111
|
-
}) => void;
|
|
112
|
-
onError?: (detail: {
|
|
118
|
+
}) => void) | undefined;
|
|
119
|
+
onError?: ((detail: {
|
|
113
120
|
message: string;
|
|
114
121
|
reason: "server" | "network" | "gate";
|
|
115
|
-
}) => void;
|
|
116
|
-
onClosed?: (reason: string) => void;
|
|
122
|
+
}) => void) | undefined;
|
|
123
|
+
onClosed?: ((reason: string) => void) | undefined;
|
|
117
124
|
/**
|
|
118
125
|
* Extra classes on the element.
|
|
119
126
|
* @default ""
|
|
120
127
|
*/
|
|
121
|
-
className?: string;
|
|
122
|
-
style?:
|
|
123
|
-
}
|
|
128
|
+
className?: string | undefined;
|
|
129
|
+
style?: CSSProperties | undefined;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The centre lead box: a modal form that asks a visitor for their details, posted through the
|
|
133
|
+
* public form gate (`@webority/security`'s `public-form.js`), opened by a trigger or by `ref.open()`.
|
|
134
|
+
*
|
|
135
|
+
* Wraps the shared `<wui-lead-popup>` element, which owns the dialog, validation, posting and the
|
|
136
|
+
* triggers. The callbacks attach as DOM listeners. Pass `preview` to draw it open for a design
|
|
137
|
+
* surface: it then reads no memory, runs no trigger, and posts nothing.
|
|
138
|
+
*
|
|
139
|
+
* ```jsx
|
|
140
|
+
* <AppLeadPopup
|
|
141
|
+
* action="/contact"
|
|
142
|
+
* publicForm="Contact"
|
|
143
|
+
* title="Talk to our team"
|
|
144
|
+
* fields={["name", "email", "company"]}
|
|
145
|
+
* required={["name", "email"]}
|
|
146
|
+
* triggers={["exit", "delay"]}
|
|
147
|
+
* storageKey="lead-popup"
|
|
148
|
+
* onSubmitted={({ values }) => track(values)}
|
|
149
|
+
* />
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* @param action URL the form posts to.
|
|
153
|
+
* @param publicForm The server's [PublicForm("NAME")], used as the captcha action.
|
|
154
|
+
* @param fields Default ["name", "email"]. `consent` is a checkbox that posts `true` when ticked.
|
|
155
|
+
* @param fieldPrefix Text put before every posted field name, such as "Input.".
|
|
156
|
+
* @param fieldNames Posted name per field, when the server names it differently.
|
|
157
|
+
* @param labels Label per field; `consent` sets the checkbox text and `consentLink` the link text.
|
|
158
|
+
* @param consentHref Adds a "Privacy policy" link beside the `consent` checkbox, opened in the same tab.
|
|
159
|
+
* @param triggers None by default: the host calls open().
|
|
160
|
+
* @param successCloseSeconds 0 keeps the success view until closed.
|
|
161
|
+
* @param onBeforeSubmit Add fields to the post here.
|
|
162
|
+
* @param onError
|
|
163
|
+
* @param onClosed
|
|
164
|
+
* @param style Inline style; lands on the element with `className`.
|
|
165
|
+
*/
|
|
166
|
+
declare const AppLeadPopup: React.ForwardRefExoticComponent<AppLeadPopupProps & React.RefAttributes<AppLeadPopupElement>>;
|
|
124
167
|
export default AppLeadPopup;
|
|
@@ -1,58 +1,61 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @param {string} [props.label]
|
|
17
|
-
* @param {"gallery"|"single"} [props.layout] gallery shows thumbnails; single shows each image at the container's full width, at its own shape.
|
|
18
|
-
* @param {number} [props.openIndex] Opens the viewer on this image, counted from 0.
|
|
19
|
-
* @param {(index: number) => void} [props.onChange] Called with the position (from 0) of the
|
|
20
|
-
* image shown, when the view opens and each time it changes.
|
|
21
|
-
* @param {() => void} [props.onClose] Called when the full-screen view closes.
|
|
22
|
-
* @param {string} [props.className]
|
|
23
|
-
*/
|
|
24
|
-
export default function AppLightbox(props: {
|
|
25
|
-
/** The images, each opening full screen from its thumbnail. */
|
|
26
|
-
items: {
|
|
27
|
-
src: string;
|
|
28
|
-
thumb?: string;
|
|
29
|
-
alt?: string;
|
|
30
|
-
caption?: string;
|
|
31
|
-
name?: string;
|
|
32
|
-
key?: string;
|
|
33
|
-
}[];
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface AppLightboxItem {
|
|
3
|
+
src: string;
|
|
4
|
+
thumb?: string | undefined;
|
|
5
|
+
alt?: string | undefined;
|
|
6
|
+
caption?: string | undefined;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
key?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface AppLightboxProps {
|
|
11
|
+
/**
|
|
12
|
+
* The images, each opening full screen from its thumbnail.
|
|
13
|
+
* @default []
|
|
14
|
+
*/
|
|
15
|
+
items?: AppLightboxItem[] | undefined;
|
|
34
16
|
/**
|
|
35
17
|
* Shows a download action. A browser ignores `name` for an image on another origin.
|
|
36
18
|
* @default false
|
|
37
19
|
*/
|
|
38
|
-
download?: boolean;
|
|
20
|
+
download?: boolean | undefined;
|
|
39
21
|
/**
|
|
40
22
|
* The full-screen dialog's name for screen readers.
|
|
41
23
|
* @default "Image viewer"
|
|
42
24
|
*/
|
|
43
|
-
label?: string;
|
|
25
|
+
label?: string | undefined;
|
|
44
26
|
/**
|
|
45
27
|
* gallery shows thumbnails; single shows each image at the container's full width, at its own shape.
|
|
46
28
|
* @default "gallery"
|
|
47
29
|
*/
|
|
48
|
-
layout?: "gallery" | "single";
|
|
30
|
+
layout?: "gallery" | "single" | undefined;
|
|
49
31
|
/** Opens the viewer on this image, counted from 0. */
|
|
50
|
-
openIndex?: number;
|
|
51
|
-
onChange?: (index: number) => void;
|
|
52
|
-
onClose?: () => void;
|
|
32
|
+
openIndex?: number | undefined;
|
|
33
|
+
onChange?: ((index: number) => void) | undefined;
|
|
34
|
+
onClose?: (() => void) | undefined;
|
|
53
35
|
/**
|
|
54
36
|
* Extra classes on the gallery.
|
|
55
37
|
* @default ""
|
|
56
38
|
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
}
|
|
39
|
+
className?: string | undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A gallery of thumbnails that open full screen: click one and the image fills the screen with
|
|
43
|
+
* zoom, previous and next, a caption and an optional download. Use it for photo galleries and
|
|
44
|
+
* image attachments that would otherwise open in a new tab.
|
|
45
|
+
*
|
|
46
|
+
* Keys: Left and Right change image (wrapping), + and - zoom, 0 resets the zoom, Escape closes and
|
|
47
|
+
* puts focus back on the thumbnail of the image last shown. On a touch screen, swipe sideways to
|
|
48
|
+
* change image, pinch or double tap to zoom, drag to pan, and tap beside the image to close.
|
|
49
|
+
* A click with Ctrl, Cmd or Shift still opens the image's own link. The behaviour is the shared
|
|
50
|
+
* `<wui-lightbox>` element, which Razor `<app-lightbox>` renders too.
|
|
51
|
+
*
|
|
52
|
+
* @param items
|
|
53
|
+
* @param download
|
|
54
|
+
* @param label
|
|
55
|
+
* @param layout gallery shows thumbnails; single shows each image at the container's full width, at its own shape.
|
|
56
|
+
* @param openIndex Opens the viewer on this image, counted from 0.
|
|
57
|
+
* @param onChange Called with the position (from 0) of the image shown, when the view opens and each time it changes.
|
|
58
|
+
* @param onClose Called when the full-screen view closes.
|
|
59
|
+
* @param className
|
|
60
|
+
*/
|
|
61
|
+
export default function AppLightbox(props: AppLightboxProps): React.JSX.Element;
|
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param {string|import('react').ReactNode} [props.leftIcon]
|
|
19
|
-
* @param {string|import('react').ReactNode} [props.rightIcon]
|
|
20
|
-
* @param {"sm"|"md"|"lg"} [props.size]
|
|
21
|
-
* @param {"default"|"dark"} [props.surface]
|
|
22
|
-
* @param {boolean} [props.external]
|
|
23
|
-
* @param {boolean} [props.disabled]
|
|
24
|
-
* @param {import('react').ElementType} [props.linkComponent] Router link component; it receives `to` instead of `href`. Keeps the library router-agnostic.
|
|
25
|
-
* @param {number} [props.maxLines] Clamps the label to this many lines, ending the last one with an ellipsis. Whole numbers of 1 or more only; any other value is ignored with a warning.
|
|
26
|
-
* @param {string} [props.className]
|
|
27
|
-
*/
|
|
28
|
-
export default function AppLink(props: {
|
|
29
|
-
children?: import('react').ReactNode;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
declare const ICON_SIZE: {
|
|
4
|
+
sm: number;
|
|
5
|
+
md: number;
|
|
6
|
+
lg: number;
|
|
7
|
+
};
|
|
8
|
+
type IconSize = keyof typeof ICON_SIZE;
|
|
9
|
+
declare const ANIMATIONS: readonly ["underline", "underline-center", "static", "slide", "icon", "highlight", "bracket", "fade", "grow", "glow", "shine", "none"];
|
|
10
|
+
type Animation = (typeof ANIMATIONS)[number];
|
|
11
|
+
export interface AppLinkProps extends Omit<React.ComponentPropsWithoutRef<"a">, "children" | "href" | "onClick" | "onClickCapture"> {
|
|
12
|
+
/** Typed for any element, because `linkComponent` decides what renders (an anchor, a button, a router link). */
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
14
|
+
/** Runs in the capture phase, before any handler inside the link; typed for any element, like onClick. A disabled link runs neither. */
|
|
15
|
+
onClickCapture?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
16
|
+
/** Link text. Wins over `label` when both are given. */
|
|
17
|
+
children?: React.ReactNode | undefined;
|
|
30
18
|
/** The link text as a prop, an alternative to children. When both are given, children wins. */
|
|
31
|
-
label?:
|
|
19
|
+
label?: React.ReactNode | undefined;
|
|
32
20
|
/** The destination, or the `to` path when a link component is given. Left out, the anchor has no href. */
|
|
33
|
-
href?: string;
|
|
21
|
+
href?: string | undefined;
|
|
34
22
|
/**
|
|
35
23
|
* The hover treatment: underline slides a line in from the left, underline-center grows it from the middle, static is an always-visible underline with no motion, slide nudges the label and icons right, icon slides a trailing icon in (an arrow when none is given), highlight wipes a tinted background across, bracket slides brackets in around the label, fade shifts colour only, grow opens up the letter spacing, glow adds a soft glow, shine sweeps a light shimmer across the label, and none is a plain coloured link.
|
|
36
24
|
* @default "underline"
|
|
37
25
|
*/
|
|
38
|
-
animation?:
|
|
26
|
+
animation?: Animation | undefined;
|
|
39
27
|
/** The leading glyph: an icon name or a node. */
|
|
40
|
-
leftIcon?:
|
|
28
|
+
leftIcon?: React.ReactNode | undefined;
|
|
41
29
|
/** The trailing glyph: an icon name or a node. */
|
|
42
|
-
rightIcon?:
|
|
30
|
+
rightIcon?: React.ReactNode | undefined;
|
|
43
31
|
/**
|
|
44
32
|
* The text and icon size.
|
|
45
33
|
* @default "md"
|
|
46
34
|
*/
|
|
47
|
-
size?:
|
|
35
|
+
size?: IconSize | undefined;
|
|
48
36
|
/**
|
|
49
37
|
* Set dark when the link sits on a dark panel such as a dark hero or footer; the text turns light.
|
|
50
38
|
* @default "default"
|
|
51
39
|
*/
|
|
52
|
-
surface?: "default" | "dark";
|
|
40
|
+
surface?: "default" | "dark" | undefined;
|
|
53
41
|
/**
|
|
54
42
|
* Opens the link in a new tab, with the matching target and rel.
|
|
55
43
|
* @default false
|
|
56
44
|
*/
|
|
57
|
-
external?: boolean;
|
|
45
|
+
external?: boolean | undefined;
|
|
58
46
|
/**
|
|
59
47
|
* Renders the link as unavailable: no navigation, and aria-disabled is set.
|
|
60
48
|
* @default false
|
|
61
49
|
*/
|
|
62
|
-
disabled?: boolean;
|
|
63
|
-
|
|
50
|
+
disabled?: boolean | undefined;
|
|
51
|
+
/** The product's router link, which receives `to` instead of `href`; `"button"` renders a `<button>` for a link-styled action. Keeps the library router-agnostic. */
|
|
52
|
+
linkComponent?: AppLinkComponent | "button" | undefined;
|
|
64
53
|
/** Clamps the label to this many lines, ending the last one with an ellipsis. Omit it for a label that runs on. Whole numbers of 1 or more only. */
|
|
65
|
-
maxLines?: number;
|
|
54
|
+
maxLines?: number | null | undefined;
|
|
66
55
|
/**
|
|
67
56
|
* Extra classes on the anchor.
|
|
68
57
|
* @default ""
|
|
69
58
|
*/
|
|
70
|
-
className?: string;
|
|
71
|
-
}
|
|
59
|
+
className?: string | undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A text link with a choice of hover animation and optional leading or trailing icons.
|
|
63
|
+
*
|
|
64
|
+
* Use it for inline prose links, footer links, "read more" affordances, and marketing
|
|
65
|
+
* call-to-action links: anywhere a plain `<a>` would go but the hover should read as
|
|
66
|
+
* intentional. It is NOT a button (`AppButton`) and not a nav item inside `AppShell`;
|
|
67
|
+
* it is the styled anchor. Router-agnostic: pass `linkComponent` (e.g. react-router's
|
|
68
|
+
* `Link`) for an in-app destination and it receives `to` instead of `href`.
|
|
69
|
+
*
|
|
70
|
+
* Every `animation` is disabled under `prefers-reduced-motion: reduce`, where the link
|
|
71
|
+
* degrades to a static underline.
|
|
72
|
+
*/
|
|
73
|
+
export default function AppLink(props: AppLinkProps): React.JSX.Element;
|
|
74
|
+
export {};
|