@webority/ui-react 0.148.0 → 0.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +699 -161649
- package/dist/canvas-kit/manifest.json +192 -97
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccordion.js +1 -1
- package/dist/components/AppAccountSwitcher.js +1 -1
- package/dist/components/AppActionIcon.js +1 -1
- package/dist/components/AppAlert.js +1 -1
- package/dist/components/AppAsyncBlock.js +1 -1
- package/dist/components/AppAuthLayout.js +1 -1
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppAvatarGroup.js +1 -1
- package/dist/components/AppBadge.js +1 -1
- package/dist/components/AppBanner.js +1 -1
- package/dist/components/AppBreadcrumbs.js +1 -1
- package/dist/components/AppButton.js +1 -1
- package/dist/components/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppCarousel.js +1 -1
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppCheckbox.js +1 -1
- package/dist/components/AppChipGroup.js +1 -1
- package/dist/components/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppCodeBlock.js +1 -1
- package/dist/components/AppCommandPalette.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppCompareTable.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppConsentBanner.js +1 -1
- package/dist/components/AppContextMenu.js +1 -1
- package/dist/components/AppCopyButton.js +1 -1
- package/dist/components/AppDashboardCell.js +1 -1
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppDatePicker.js +1 -1
- package/dist/components/AppDateRangePicker.js +1 -1
- package/dist/components/AppDescriptions.js +1 -1
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppDropZone.js +1 -1
- package/dist/components/AppDropdown.js +1 -1
- package/dist/components/AppDueDate.js +1 -1
- package/dist/components/AppEmptyState.js +1 -1
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileTiles.js +1 -1
- package/dist/components/AppFileViewer.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingDock.js +1 -1
- package/dist/components/AppHoverCard.js +1 -1
- package/dist/components/AppIcon.js +1 -1
- package/dist/components/AppImagePicker.js +1 -1
- package/dist/components/AppInlineEdit.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppKanban.js +1 -1
- package/dist/components/AppKbd.js +1 -1
- package/dist/components/AppKpiTile.js +1 -1
- package/dist/components/AppLeadPopup.js +1 -1
- package/dist/components/AppLightbox.js +1 -1
- package/dist/components/AppLink.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/AppMentionInput.js +1 -1
- package/dist/components/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavList.js +1 -1
- package/dist/components/AppNavigationMenu.js +1 -1
- package/dist/components/AppNotificationCenter.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppOnboardingChecklist.js +1 -1
- package/dist/components/AppOrgTree.js +1 -1
- package/dist/components/AppOtpInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppPopover.js +1 -1
- package/dist/components/AppQrCode.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppRecordPager.js +1 -1
- package/dist/components/AppRelativeTime.js +1 -1
- package/dist/components/AppRepeater.js +1 -1
- package/dist/components/AppResizable.js +1 -1
- package/dist/components/AppResourceCard.js +1 -1
- package/dist/components/AppResult.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRollingNumber.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionLeadCapture.js +1 -1
- package/dist/components/AppSectionLogos.js +1 -1
- package/dist/components/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppSeoHead.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppShortcutLegend.js +1 -1
- package/dist/components/AppShowMore.js +1 -1
- package/dist/components/AppSkeleton.js +1 -1
- package/dist/components/AppSkeletonLines.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppSparkline.js +1 -1
- package/dist/components/AppSplash.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppStatusBadge.js +1 -1
- package/dist/components/AppStepper.js +1 -1
- package/dist/components/AppSwitch.js +1 -1
- package/dist/components/AppTablePagination.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppTimePicker.js +1 -1
- package/dist/components/AppTimeline.js +1 -1
- package/dist/components/AppToast.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/AppTour.js +1 -1
- package/dist/components/AppTreeView.js +1 -1
- package/dist/components/AppTruncate.js +1 -1
- package/dist/components/AppWhatsNew.js +1 -1
- package/dist/components/AppWizard.js +1 -1
- package/dist/components/AppWorkspaceSwitcher.js +1 -1
- package/dist/components/ModalIcons.js +1 -1
- package/dist/components/assertValidValue.js +1 -1
- package/dist/components/iconCatalogFull/bold/a.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/b.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/c.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/d.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/e.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/f.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/g.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/h.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/i.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/j.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/k.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/l.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/m.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/n.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/o.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/p.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/q.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/r.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/s.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/t.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/u.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/v.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/w.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/x.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/y.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/z.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/a.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/b.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/c.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/d.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/e.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/f.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/g.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/h.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/i.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/j.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/k.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/l.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/m.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/n.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/o.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/p.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/q.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/r.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/s.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/t.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/u.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/v.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/w.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/x.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/y.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/z.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/a.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/b.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/c.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/d.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/e.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/f.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/g.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/h.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/i.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/j.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/k.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/l.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/m.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/n.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/o.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/p.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/q.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/r.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/s.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/t.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/u.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/v.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/w.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/x.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/y.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/z.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/a.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/b.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/c.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/d.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/e.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/f.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/g.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/h.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/i.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/j.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/k.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/l.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/m.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/n.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/o.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/p.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/q.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/r.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/s.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/t.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/u.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/v.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/w.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/x.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/y.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/z.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/a.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/b.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/c.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/d.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/e.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/f.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/g.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/h.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/i.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/j.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/k.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/l.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/m.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/n.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/o.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/p.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/q.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/r.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/s.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/t.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/u.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/v.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/w.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/x.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/y.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/z.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/a.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/b.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/c.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/d.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/e.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/f.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/g.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/h.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/i.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/j.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/k.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/l.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/m.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/n.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/o.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/p.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/q.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/r.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/s.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/t.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/u.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/v.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/w.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/x.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/y.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/z.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/components/textOf.js +1 -0
- package/dist/components/toastStore.js +1 -1
- package/dist/components/useNodeLabels.js +1 -1
- package/dist/components/useWuiControl.js +1 -1
- package/dist/guidance.json +17 -14
- package/dist/lib/CheckField.js +1 -1
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/FocusPanel.js +1 -1
- package/dist/lib/TargetLink.js +1 -0
- package/dist/lib/buttonClass.js +1 -1
- package/dist/lib/emptyIllustration.js +1 -1
- package/dist/lib/fileItem.js +1 -1
- package/dist/lib/flagStyles.js +1 -1
- package/dist/lib/initials.js +1 -1
- package/dist/lib/linkTarget.js +1 -1
- package/dist/lib/pageScrollLock.js +1 -1
- package/dist/lib/qrCode.js +1 -1
- package/dist/lib/sectionShell.js +1 -1
- package/dist/lib/svgNodes.js +1 -0
- package/dist/lib/useElementEntry.js +1 -0
- package/dist/lib/useFileDrop.js +1 -1
- package/dist/lib/useTableView.js +1 -1
- package/dist/lib/wuiMarker.js +1 -1
- package/dist/markdown-core/dist/parse.js +3 -3
- package/dist/types/components/AppAccordion.d.ts +31 -34
- package/dist/types/components/AppAccountSwitcher.d.ts +29 -30
- package/dist/types/components/AppActionIcon.d.ts +39 -57
- package/dist/types/components/AppAlert.d.ts +35 -50
- package/dist/types/components/AppAsyncBlock.d.ts +23 -46
- package/dist/types/components/AppAuthLayout.d.ts +9 -22
- package/dist/types/components/AppAvatar.d.ts +26 -43
- package/dist/types/components/AppAvatarGroup.d.ts +11 -16
- package/dist/types/components/AppBadge.d.ts +13 -19
- package/dist/types/components/AppBanner.d.ts +18 -21
- package/dist/types/components/AppBreadcrumbs.d.ts +24 -20
- package/dist/types/components/AppButton.d.ts +65 -55
- package/dist/types/components/AppButtonGroup.d.ts +24 -22
- package/dist/types/components/AppCalendar.d.ts +35 -31
- package/dist/types/components/AppCard.d.ts +47 -67
- package/dist/types/components/AppCarousel.d.ts +35 -51
- package/dist/types/components/AppCell.d.ts +22 -21
- package/dist/types/components/AppChart.d.ts +93 -54
- package/dist/types/components/AppChartCard.d.ts +46 -58
- package/dist/types/components/AppCheckbox.d.ts +33 -18
- package/dist/types/components/AppChip.d.ts +32 -43
- package/dist/types/components/AppChipGroup.d.ts +17 -22
- package/dist/types/components/AppChoiceCard.d.ts +30 -54
- package/dist/types/components/AppChoiceChip.d.ts +42 -38
- package/dist/types/components/AppCodeBlock.d.ts +29 -28
- package/dist/types/components/AppColorField.d.ts +59 -57
- package/dist/types/components/AppColumnMenu.d.ts +21 -19
- package/dist/types/components/AppCommandPalette.d.ts +97 -102
- package/dist/types/components/AppCommentThread.d.ts +106 -181
- package/dist/types/components/AppCompareTable.d.ts +52 -57
- package/dist/types/components/AppConfirmDialog.d.ts +31 -46
- package/dist/types/components/AppConfirmProvider.d.ts +18 -21
- package/dist/types/components/AppConsentBanner.d.ts +43 -54
- package/dist/types/components/AppContextMenu.d.ts +63 -51
- package/dist/types/components/AppCopyButton.d.ts +26 -24
- package/dist/types/components/AppCountryFlag.d.ts +10 -8
- package/dist/types/components/AppDashboardCell.d.ts +14 -12
- package/dist/types/components/AppDashboardGrid.d.ts +9 -7
- package/dist/types/components/AppDataTable.d.ts +147 -144
- package/dist/types/components/AppDatePicker.d.ts +39 -28
- package/dist/types/components/AppDateRangePicker.d.ts +53 -40
- package/dist/types/components/AppDescriptions.d.ts +43 -38
- package/dist/types/components/AppDetailPane.d.ts +14 -19
- package/dist/types/components/AppDrawer.d.ts +46 -74
- package/dist/types/components/AppDropZone.d.ts +43 -47
- package/dist/types/components/AppDropdown.d.ts +59 -72
- package/dist/types/components/AppDueDate.d.ts +25 -39
- package/dist/types/components/AppEmptyState.d.ts +26 -36
- package/dist/types/components/AppErrorBoundary.d.ts +29 -29
- package/dist/types/components/AppErrorSummary.d.ts +27 -24
- package/dist/types/components/AppFileAttachment.d.ts +87 -70
- package/dist/types/components/AppFilePicker.d.ts +109 -95
- package/dist/types/components/AppFileTiles.d.ts +26 -23
- package/dist/types/components/AppFileViewer.d.ts +27 -21
- package/dist/types/components/AppFilterBar.d.ts +87 -84
- package/dist/types/components/AppFloatingButton.d.ts +37 -35
- package/dist/types/components/AppFloatingDock.d.ts +47 -41
- package/dist/types/components/AppFormActions.d.ts +21 -19
- package/dist/types/components/AppFormRow.d.ts +16 -19
- package/dist/types/components/AppFormSection.d.ts +24 -34
- package/dist/types/components/AppHoverCard.d.ts +28 -35
- package/dist/types/components/AppIcon.d.ts +29 -38
- package/dist/types/components/AppImagePicker.d.ts +54 -99
- package/dist/types/components/AppInfoTip.d.ts +17 -21
- package/dist/types/components/AppInlineEdit.d.ts +46 -51
- package/dist/types/components/AppInput.d.ts +82 -61
- package/dist/types/components/AppInputGroup.d.ts +22 -29
- package/dist/types/components/AppKanban.d.ts +110 -118
- package/dist/types/components/AppKbd.d.ts +12 -11
- package/dist/types/components/AppKpiTile.d.ts +45 -59
- package/dist/types/components/AppLeadPopup.d.ts +81 -38
- package/dist/types/components/AppLightbox.d.ts +44 -41
- package/dist/types/components/AppLink.d.ts +45 -42
- package/dist/types/components/AppMarkdown.d.ts +30 -37
- package/dist/types/components/AppMentionInput.d.ts +52 -40
- package/dist/types/components/AppMeter.d.ts +30 -33
- package/dist/types/components/AppMetricStrip.d.ts +29 -25
- package/dist/types/components/AppModal.d.ts +48 -51
- package/dist/types/components/AppNavList.d.ts +28 -27
- package/dist/types/components/AppNavigationMenu.d.ts +36 -33
- package/dist/types/components/AppNotificationCenter.d.ts +59 -92
- package/dist/types/components/AppNumberInput.d.ts +52 -30
- package/dist/types/components/AppOnboardingChecklist.d.ts +58 -48
- package/dist/types/components/AppOrgTree.d.ts +59 -29
- package/dist/types/components/AppOtpInput.d.ts +42 -25
- package/dist/types/components/AppPageHeader.d.ts +44 -66
- package/dist/types/components/AppPhoneNumberInput.d.ts +29 -27
- package/dist/types/components/AppPopover.d.ts +48 -37
- package/dist/types/components/AppPricingCard.d.ts +28 -37
- package/dist/types/components/AppProgress.d.ts +21 -29
- package/dist/types/components/AppQrCode.d.ts +19 -24
- package/dist/types/components/AppRadio.d.ts +24 -18
- package/dist/types/components/AppRadioGroup.d.ts +38 -61
- package/dist/types/components/AppRating.d.ts +38 -62
- package/dist/types/components/AppRecordPager.d.ts +28 -37
- package/dist/types/components/AppRelativeTime.d.ts +13 -16
- package/dist/types/components/AppRepeater.d.ts +41 -49
- package/dist/types/components/AppRequiredMark.d.ts +4 -4
- package/dist/types/components/AppResizable.d.ts +16 -17
- package/dist/types/components/AppResizableHandle.d.ts +5 -12
- package/dist/types/components/AppResizablePanel.d.ts +7 -20
- package/dist/types/components/AppResourceCard.d.ts +9 -21
- package/dist/types/components/AppResult.d.ts +23 -31
- package/dist/types/components/AppRichText.d.ts +46 -21
- package/dist/types/components/AppRollingNumber.d.ts +18 -25
- package/dist/types/components/AppRouteError.d.ts +32 -50
- package/dist/types/components/AppRowSwitch.d.ts +4 -9
- package/dist/types/components/AppScoreScale.d.ts +44 -42
- package/dist/types/components/AppScrollbar.d.ts +11 -16
- package/dist/types/components/AppSearch.d.ts +39 -37
- package/dist/types/components/AppSectionCallToAction.d.ts +28 -24
- package/dist/types/components/AppSectionFaq.d.ts +34 -32
- package/dist/types/components/AppSectionFeatures.d.ts +21 -30
- package/dist/types/components/AppSectionHero.d.ts +16 -24
- package/dist/types/components/AppSectionLeadCapture.d.ts +33 -51
- package/dist/types/components/AppSectionLogos.d.ts +25 -30
- package/dist/types/components/AppSectionPricing.d.ts +15 -20
- package/dist/types/components/AppSectionTestimonials.d.ts +26 -32
- package/dist/types/components/AppSegmented.d.ts +40 -55
- package/dist/types/components/AppSelect.d.ts +179 -116
- package/dist/types/components/AppSeoHead.d.ts +15 -21
- package/dist/types/components/AppShell.d.ts +206 -334
- package/dist/types/components/AppShortcutLegend.d.ts +32 -39
- package/dist/types/components/AppShowMore.d.ts +22 -29
- package/dist/types/components/AppSkeleton.d.ts +17 -26
- package/dist/types/components/AppSkeletonLines.d.ts +12 -16
- package/dist/types/components/AppSlider.d.ts +74 -48
- package/dist/types/components/AppSortableList.d.ts +47 -21
- package/dist/types/components/AppSparkline.d.ts +34 -33
- package/dist/types/components/AppSpinner.d.ts +18 -17
- package/dist/types/components/AppSplash.d.ts +24 -32
- package/dist/types/components/AppSplitButton.d.ts +41 -53
- package/dist/types/components/AppSplitView.d.ts +75 -97
- package/dist/types/components/AppStatusBadge.d.ts +19 -19
- package/dist/types/components/AppStepper.d.ts +57 -61
- package/dist/types/components/AppSwitch.d.ts +24 -27
- package/dist/types/components/AppTablePagination.d.ts +34 -55
- package/dist/types/components/AppTableToolbar.d.ts +31 -44
- package/dist/types/components/AppTabs.d.ts +62 -75
- package/dist/types/components/AppTextarea.d.ts +35 -51
- package/dist/types/components/AppThemeToggle.d.ts +60 -53
- package/dist/types/components/AppTimePicker.d.ts +29 -28
- package/dist/types/components/AppTimeline.d.ts +59 -60
- package/dist/types/components/AppToast.d.ts +26 -27
- package/dist/types/components/AppToolbar.d.ts +46 -52
- package/dist/types/components/AppTooltip.d.ts +26 -30
- package/dist/types/components/AppTour.d.ts +57 -41
- package/dist/types/components/AppTreeView.d.ts +53 -30
- package/dist/types/components/AppTruncate.d.ts +16 -21
- package/dist/types/components/AppUpdateBar.d.ts +21 -26
- package/dist/types/components/AppWhatsNew.d.ts +40 -48
- package/dist/types/components/AppWizard.d.ts +64 -48
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +56 -60
- package/dist/types/components/ModalIcons.d.ts +17 -38
- package/dist/types/components/assertValidValue.d.ts +1 -5
- package/dist/types/components/iconCatalogFull/bold/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/bold/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/bold/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/bold/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/bold/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/bold/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/bold/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bold/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bold/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/bold/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bold/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bold/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/bold/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/bold/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/bold/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bold/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/bold/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/bold/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/bold/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/bold/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/bold/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/bold/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/bold/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/bold/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bold/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/bold/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/broken/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/broken/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/broken/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/broken/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/broken/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/broken/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/broken/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/broken/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/broken/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/broken/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/broken/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/broken/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/broken/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/broken/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/broken/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/broken/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/broken/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/broken/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/broken/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/broken/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/broken/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/broken/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/broken/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/broken/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/broken/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/broken/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/bulk/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/bulk/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/bulk/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/bulk/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/bulk/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/bulk/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/bulk/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bulk/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bulk/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/bulk/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bulk/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bulk/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/bulk/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/bulk/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/bulk/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bulk/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/bulk/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/bulk/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/bulk/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/bulk/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/bulk/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/bulk/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/bulk/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/bulk/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bulk/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/bulk/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/linear/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/linear/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/linear/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/linear/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/linear/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/linear/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/linear/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/linear/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/linear/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/linear/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/linear/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/linear/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/linear/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/linear/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/linear/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/linear/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/linear/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/linear/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/linear/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/linear/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/linear/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/linear/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/linear/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/linear/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/linear/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/linear/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/outline/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/outline/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/outline/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/outline/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/outline/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/outline/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/outline/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/outline/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/outline/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/outline/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/outline/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/outline/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/outline/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/outline/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/outline/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/outline/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/outline/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/outline/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/outline/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/outline/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/outline/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/outline/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/outline/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/outline/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/outline/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/outline/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/twotone/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/twotone/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/twotone/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/twotone/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/twotone/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/twotone/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/twotone/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/twotone/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/twotone/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/twotone/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/twotone/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/twotone/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/twotone/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/twotone/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/twotone/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/twotone/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/twotone/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/twotone/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/twotone/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/twotone/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/twotone/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/twotone/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/twotone/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/twotone/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/twotone/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/twotone/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogLoaders.g.d.ts +10 -171
- package/dist/types/components/iconGlyphs.g.d.ts +2 -238
- package/dist/types/components/iconVariants.g.d.ts +2 -1167
- package/dist/types/components/renderIconProp.d.ts +10 -9
- package/dist/types/components/textOf.d.ts +3 -0
- package/dist/types/components/toast.d.ts +13 -5
- package/dist/types/components/toastStore.d.ts +33 -4
- package/dist/types/components/useNodeLabels.d.ts +12 -12
- package/dist/types/components/useWuiControl.d.ts +73 -49
- package/dist/types/components/warnUnknownProps.d.ts +3 -3
- package/dist/types/components/withTooltip.d.ts +3 -1
- package/dist/types/index.d.ts +177 -164
- package/dist/types/lib/CheckField.d.ts +19 -1
- package/dist/types/lib/DiscardPrompt.d.ts +10 -12
- package/dist/types/lib/FieldMessage.d.ts +8 -12
- package/dist/types/lib/FileItemRow.d.ts +19 -23
- package/dist/types/lib/FocusPanel.d.ts +5 -3
- package/dist/types/lib/TargetLink.d.ts +9 -0
- package/dist/types/lib/buttonClass.d.ts +0 -4
- package/dist/types/lib/devWarn.d.ts +2 -2
- package/dist/types/lib/emptyIllustration.d.ts +9 -18
- package/dist/types/lib/emptyValue.d.ts +2 -6
- package/dist/types/lib/fieldState.d.ts +3 -1
- package/dist/types/lib/fileItem.d.ts +16 -7
- package/dist/types/lib/fillLabel.d.ts +1 -1
- package/dist/types/lib/flagStyles.d.ts +1 -1
- package/dist/types/lib/focusField.d.ts +2 -2
- package/dist/types/lib/initials.d.ts +3 -4
- package/dist/types/lib/labelWithHelp.d.ts +2 -6
- package/dist/types/lib/linkTarget.d.ts +33 -19
- package/dist/types/lib/navMatch.d.ts +7 -10
- package/dist/types/lib/pageWindow.d.ts +7 -8
- package/dist/types/lib/qrCode.d.ts +17 -37
- package/dist/types/lib/sectionShell.d.ts +39 -31
- package/dist/types/lib/shellCookie.d.ts +3 -3
- package/dist/types/lib/shortcutChip.d.ts +4 -3
- package/dist/types/lib/svgNodes.d.ts +4 -0
- package/dist/types/lib/useCommandPaletteShortcut.d.ts +3 -3
- package/dist/types/lib/useElementEntry.d.ts +16 -0
- package/dist/types/lib/useFileDrop.d.ts +23 -16
- package/dist/types/lib/useFloatingStack.d.ts +5 -4
- package/dist/types/lib/useListShortcuts.d.ts +9 -7
- package/dist/types/lib/usePagination.d.ts +8 -6
- package/dist/types/lib/useTableView.d.ts +17 -19
- package/dist/types/lib/wuiMarker.d.ts +12 -10
- package/dist/types/reactAugmentations.d.ts +22 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/query/listQuery.js +1 -1
- package/package.json +15 -12
|
@@ -1,63 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* like a shorter card.
|
|
8
|
-
*
|
|
9
|
-
* For a full feature matrix below the cards use `AppCompareTable`; for the
|
|
10
|
-
* monthly/annual switch use `AppSegmented`.
|
|
11
|
-
*
|
|
12
|
-
* @param {object} props
|
|
13
|
-
* @param {string} props.name
|
|
14
|
-
* @param {import('react').ReactNode} props.price
|
|
15
|
-
* @param {string} [props.unit]
|
|
16
|
-
* @param {string} [props.tagline]
|
|
17
|
-
* @param {{ text: string, included?: boolean }[]} [props.features]
|
|
18
|
-
* @param {import('react').ReactNode} [props.cta]
|
|
19
|
-
* @param {boolean} [props.featured]
|
|
20
|
-
* @param {boolean} [props.current]
|
|
21
|
-
* @param {string} [props.badge]
|
|
22
|
-
* @param {string} [props.className]
|
|
23
|
-
*/
|
|
24
|
-
export default function AppPricingCard(props: {
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
export interface AppPricingFeature {
|
|
3
|
+
text: string;
|
|
4
|
+
included?: boolean | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface AppPricingCardProps extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
|
|
25
7
|
/** The tier name. */
|
|
26
8
|
name: string;
|
|
27
9
|
/** The formatted amount, such as ₹1,499. */
|
|
28
|
-
price:
|
|
10
|
+
price: ReactNode;
|
|
29
11
|
/** The period suffix after the price, such as /month. */
|
|
30
|
-
unit?: string;
|
|
12
|
+
unit?: string | undefined;
|
|
31
13
|
/** One line on who the tier is for. */
|
|
32
|
-
tagline?: string;
|
|
14
|
+
tagline?: string | undefined;
|
|
33
15
|
/**
|
|
34
16
|
* The feature list. Every card in a row should list the same features in the same order.
|
|
35
17
|
* @default []
|
|
36
18
|
*/
|
|
37
|
-
features?:
|
|
38
|
-
text: string;
|
|
39
|
-
included?: boolean;
|
|
40
|
-
}[];
|
|
19
|
+
features?: AppPricingFeature[] | undefined;
|
|
41
20
|
/** The call to action, usually an AppButton. */
|
|
42
|
-
cta?:
|
|
21
|
+
cta?: ReactNode | undefined;
|
|
43
22
|
/**
|
|
44
23
|
* Marks the recommended tier: brand border, lifted and badged.
|
|
45
24
|
* @default false
|
|
46
25
|
*/
|
|
47
|
-
featured?: boolean;
|
|
26
|
+
featured?: boolean | undefined;
|
|
48
27
|
/**
|
|
49
28
|
* Marks the tier the customer is already on.
|
|
50
29
|
* @default false
|
|
51
30
|
*/
|
|
52
|
-
current?: boolean;
|
|
31
|
+
current?: boolean | undefined;
|
|
53
32
|
/**
|
|
54
33
|
* The text of the featured flag.
|
|
55
34
|
* @default "Most popular"
|
|
56
35
|
*/
|
|
57
|
-
badge?: string;
|
|
36
|
+
badge?: string | undefined;
|
|
58
37
|
/**
|
|
59
38
|
* Extra classes on the card.
|
|
60
39
|
* @default ""
|
|
61
40
|
*/
|
|
62
|
-
className?: string;
|
|
63
|
-
}
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A pricing tier: name, price, one-line pitch, feature list, and a call to action.
|
|
45
|
+
*
|
|
46
|
+
* Every card in a row should list the SAME features in the same order, marking the
|
|
47
|
+
* ones a tier lacks as `included: false` rather than omitting them. Rows that line
|
|
48
|
+
* up are what makes the tiers comparable at a glance; a shorter list just looks
|
|
49
|
+
* like a shorter card.
|
|
50
|
+
*
|
|
51
|
+
* For a full feature matrix below the cards use `AppCompareTable`; for the
|
|
52
|
+
* monthly/annual switch use `AppSegmented`.
|
|
53
|
+
*/
|
|
54
|
+
export default function AppPricingCard(props: AppPricingCardProps): ReactNode;
|
|
@@ -1,66 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @param {object} props
|
|
7
|
-
* @param {number} [props.value]
|
|
8
|
-
* @param {number} [props.max]
|
|
9
|
-
* @param {'primary'|'info'|'success'|'warning'|'danger'|'neutral'} [props.tone]
|
|
10
|
-
* @param {'sm'|'md'} [props.size]
|
|
11
|
-
* @param {string} [props.label]
|
|
12
|
-
* @param {boolean} [props.showLabel]
|
|
13
|
-
* @param {boolean} [props.striped]
|
|
14
|
-
* @param {boolean} [props.animated]
|
|
15
|
-
* @param {boolean} [props.indeterminate]
|
|
16
|
-
* @param {string} [props.className]
|
|
17
|
-
*/
|
|
18
|
-
export default function AppProgress(props: {
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactElement } from "react";
|
|
2
|
+
export type AppProgressTone = "primary" | "info" | "success" | "warning" | "danger" | "neutral";
|
|
3
|
+
export type AppProgressSize = "sm" | "md";
|
|
4
|
+
export interface AppProgressProps extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
|
|
19
5
|
/**
|
|
20
6
|
* The current amount from 0 to max, clamped into range. Ignored when indeterminate.
|
|
21
7
|
* @default 0
|
|
22
8
|
*/
|
|
23
|
-
value?: number;
|
|
9
|
+
value?: number | undefined;
|
|
24
10
|
/**
|
|
25
11
|
* The amount that counts as complete.
|
|
26
12
|
* @default 100
|
|
27
13
|
*/
|
|
28
|
-
max?: number;
|
|
14
|
+
max?: number | undefined;
|
|
29
15
|
/**
|
|
30
16
|
* The fill colour.
|
|
31
17
|
* @default "info"
|
|
32
18
|
*/
|
|
33
|
-
tone?:
|
|
19
|
+
tone?: AppProgressTone | undefined;
|
|
34
20
|
/**
|
|
35
21
|
* The bar thickness. sm is a thin 4px bar for inline or table use.
|
|
36
22
|
* @default "md"
|
|
37
23
|
*/
|
|
38
|
-
size?:
|
|
24
|
+
size?: AppProgressSize | undefined;
|
|
39
25
|
/** The accessible name of the bar. It is also shown above the bar when showLabel is set. */
|
|
40
|
-
label?: string;
|
|
26
|
+
label?: string | undefined;
|
|
41
27
|
/**
|
|
42
28
|
* Shows the label text above the bar. Ignored when indeterminate.
|
|
43
29
|
* @default false
|
|
44
30
|
*/
|
|
45
|
-
showLabel?: boolean;
|
|
31
|
+
showLabel?: boolean | undefined;
|
|
46
32
|
/**
|
|
47
33
|
* A diagonal stripe overlay.
|
|
48
34
|
* @default false
|
|
49
35
|
*/
|
|
50
|
-
striped?: boolean;
|
|
36
|
+
striped?: boolean | undefined;
|
|
51
37
|
/**
|
|
52
38
|
* Animates the stripes, which implies striped.
|
|
53
39
|
* @default false
|
|
54
40
|
*/
|
|
55
|
-
animated?: boolean;
|
|
41
|
+
animated?: boolean | undefined;
|
|
56
42
|
/**
|
|
57
43
|
* An unknown-duration sweep that drops the value and the label.
|
|
58
44
|
* @default false
|
|
59
45
|
*/
|
|
60
|
-
indeterminate?: boolean;
|
|
46
|
+
indeterminate?: boolean | undefined;
|
|
61
47
|
/**
|
|
62
48
|
* Extra classes on the bar, or on the labelled wrapper when the label shows.
|
|
63
49
|
* @default ""
|
|
64
50
|
*/
|
|
65
|
-
className?: string;
|
|
66
|
-
}
|
|
51
|
+
className?: string | undefined;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A determinate progress bar: a task's completion from 0 to `max`. For an indeterminate
|
|
55
|
+
* "working…" state pass `indeterminate` (an animated sweep, no value). Renders Bootstrap
|
|
56
|
+
* `.progress` markup with a brand-toned fill, identical to the Razor `<app-progress>`.
|
|
57
|
+
*/
|
|
58
|
+
export default function AppProgress(props: AppProgressProps): ReactElement;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type CSSProperties, type ReactElement } from "react";
|
|
2
|
+
export interface AppQrCodeProps extends Omit<ComponentPropsWithoutRef<"svg">, "children" | "style" | "className"> {
|
|
3
|
+
/** The text to encode, such as a link, an otpauth setup address or a signed token. Nothing renders while it is empty. */
|
|
4
|
+
value: string;
|
|
5
|
+
/**
|
|
6
|
+
* The largest width and height in px. The code draws at the biggest whole number of pixels per module that fits.
|
|
7
|
+
* @default 240
|
|
8
|
+
*/
|
|
9
|
+
size?: number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The accessible name. Say what scanning it does.
|
|
12
|
+
* @default "QR code"
|
|
13
|
+
*/
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
/** Extra classes on the code. */
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
style?: CSSProperties | undefined;
|
|
18
|
+
}
|
|
1
19
|
/**
|
|
2
20
|
* A scannable QR code, drawn as inline SVG. The React counterpart of `<app-qr-code>`.
|
|
3
21
|
*
|
|
@@ -9,28 +27,5 @@
|
|
|
9
27
|
* Black on white is a scan-reliability requirement, not a styling choice, so it ignores the theme
|
|
10
28
|
* and dark mode. Byte mode (UTF-8), medium error correction or higher, versions 1 to 40; text too
|
|
11
29
|
* long for a version 40 symbol throws.
|
|
12
|
-
*
|
|
13
|
-
* @param {object} props
|
|
14
|
-
* @param {string} props.value
|
|
15
|
-
* @param {number} [props.size]
|
|
16
|
-
* @param {string} [props.title]
|
|
17
|
-
* @param {string} [props.className]
|
|
18
|
-
* @param {import('react').CSSProperties} [props.style]
|
|
19
30
|
*/
|
|
20
|
-
export default function AppQrCode(props:
|
|
21
|
-
/** The text to encode, such as a link, an otpauth setup address or a signed token. Nothing renders while it is empty. */
|
|
22
|
-
value: string;
|
|
23
|
-
/**
|
|
24
|
-
* The largest width and height in px. The code draws at the biggest whole number of pixels per module that fits.
|
|
25
|
-
* @default 240
|
|
26
|
-
*/
|
|
27
|
-
size?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The accessible name. Say what scanning it does.
|
|
30
|
-
* @default "QR code"
|
|
31
|
-
*/
|
|
32
|
-
title?: string;
|
|
33
|
-
/** Extra classes on the code. */
|
|
34
|
-
className?: string;
|
|
35
|
-
style?: import('react').CSSProperties;
|
|
36
|
-
}): import("react").JSX.Element | null;
|
|
31
|
+
export default function AppQrCode(props: AppQrCodeProps): ReactElement | null;
|
|
@@ -1,49 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
export interface AppRadioProps extends Omit<ComponentPropsWithoutRef<"input">, "size"> {
|
|
2
3
|
/** The visible label beside the radio. */
|
|
3
|
-
label?:
|
|
4
|
+
label?: ReactNode | undefined;
|
|
4
5
|
/** The input's id. The label is bound to the input through it, and it is generated when left out. */
|
|
5
|
-
id?: string;
|
|
6
|
+
id?: string | undefined;
|
|
6
7
|
/** The form field name. Radios that share a name form one group. */
|
|
7
|
-
name?: string;
|
|
8
|
+
name?: string | undefined;
|
|
8
9
|
/** The value this radio posts when it is the chosen one. */
|
|
9
|
-
value?: string;
|
|
10
|
+
value?: string | undefined;
|
|
10
11
|
/** Controlled chosen state; pair with onChange. */
|
|
11
|
-
checked?: boolean;
|
|
12
|
+
checked?: boolean | undefined;
|
|
12
13
|
/** Starting state when the radio is uncontrolled. */
|
|
13
|
-
defaultChecked?: boolean;
|
|
14
|
+
defaultChecked?: boolean | undefined;
|
|
14
15
|
/** Locks the radio and dims it. */
|
|
15
|
-
disabled?: boolean;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
16
17
|
/**
|
|
17
18
|
* Shows the value but blocks editing. The value still posts.
|
|
18
19
|
* @default false
|
|
19
20
|
*/
|
|
20
|
-
readOnly?: boolean;
|
|
21
|
+
readOnly?: boolean | undefined;
|
|
21
22
|
/**
|
|
22
23
|
* Shows a busy state and blocks input while data loads.
|
|
23
24
|
* @default false
|
|
24
25
|
*/
|
|
25
|
-
loading?: boolean;
|
|
26
|
+
loading?: boolean | undefined;
|
|
26
27
|
/**
|
|
27
28
|
* The control size: sm, md or lg.
|
|
28
29
|
* @default "md"
|
|
29
30
|
*/
|
|
30
|
-
size?: "sm" | "md" | "lg";
|
|
31
|
-
onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
31
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
32
32
|
/** Error message, rendered below the control. Replaces the helper text. */
|
|
33
|
-
error?: string;
|
|
33
|
+
error?: string | undefined;
|
|
34
34
|
/** Helper text below the control. Hidden while an error is shown. */
|
|
35
|
-
helperText?: string;
|
|
35
|
+
helperText?: string | undefined;
|
|
36
36
|
/** Content for the info-tip after the label. Shown only when a label is set. */
|
|
37
|
-
help?:
|
|
37
|
+
help?: ReactNode | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* aria-label for the info-tip button.
|
|
40
40
|
* @default "More information"
|
|
41
41
|
*/
|
|
42
|
-
helpLabel?: string;
|
|
42
|
+
helpLabel?: string | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Extra class on the form-check wrapper that holds the input, label and message.
|
|
45
45
|
* @default ""
|
|
46
46
|
*/
|
|
47
|
-
className?: string;
|
|
48
|
-
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
controlOnly?: boolean | undefined;
|
|
53
|
+
}
|
|
54
|
+
declare const AppRadio: import("react").ForwardRefExoticComponent<AppRadioProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
49
55
|
export default AppRadio;
|
|
@@ -1,122 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* where a text field's label does (above, or beside it under `AppFormSection labels="start"`),
|
|
4
|
-
* with the hint or error below.
|
|
5
|
-
*
|
|
6
|
-
* The group is a `role="radiogroup"` named by its label rather than a fieldset/legend: a
|
|
7
|
-
* legend renders at heading size and cannot take part in the field grid, so the label would
|
|
8
|
-
* sit apart from every other field on the form.
|
|
9
|
-
*
|
|
10
|
-
* @param {object} props
|
|
11
|
-
* @param {import('react').ReactNode} props.label
|
|
12
|
-
* @param {{ value: string, label: import('react').ReactNode, description?: import('react').ReactNode, disabled?: boolean }[]} props.options
|
|
13
|
-
* @param {string} [props.name]
|
|
14
|
-
* @param {string} [props.value]
|
|
15
|
-
* @param {string} [props.defaultValue]
|
|
16
|
-
* @param {(value: string) => void} [props.onChange]
|
|
17
|
-
* @param {'default'|'card'} [props.variant]
|
|
18
|
-
* @param {boolean} [props.inline]
|
|
19
|
-
* @param {boolean} [props.required]
|
|
20
|
-
* @param {boolean} [props.optional] Ends the label with "(optional)". Required wins when both are set.
|
|
21
|
-
* @param {string} [props.optionalLabel] Default "(optional)".
|
|
22
|
-
* @param {boolean} [props.disabled]
|
|
23
|
-
* @param {boolean} [props.readOnly] Shows the value but blocks editing. The value still posts.
|
|
24
|
-
* @param {boolean} [props.loading] Shows a busy state and blocks input while data loads.
|
|
25
|
-
* @param {'sm'|'md'|'lg'} [props.size] Steps the radios and their labels.
|
|
26
|
-
* @param {string} [props.error]
|
|
27
|
-
* @param {string} [props.helperText]
|
|
28
|
-
* @param {import('react').ReactNode} [props.help]
|
|
29
|
-
* @param {string} [props.helpLabel]
|
|
30
|
-
* @param {string} [props.id]
|
|
31
|
-
* @param {string} [props.className]
|
|
32
|
-
* @param {import('react').CSSProperties} [props.style]
|
|
33
|
-
* @param {string} [props.fieldClassName]
|
|
34
|
-
*/
|
|
35
|
-
export default function AppRadioGroup(props: {
|
|
1
|
+
import { type ComponentPropsWithoutRef, type CSSProperties, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export interface AppRadioGroupProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
36
3
|
/** Visible group label; also the group's accessible name. */
|
|
37
|
-
label:
|
|
4
|
+
label: ReactNode;
|
|
38
5
|
/** The choices, in order. Each option has a value, a label, an optional description and an optional disabled flag. */
|
|
39
6
|
options: {
|
|
40
7
|
value: string;
|
|
41
|
-
label:
|
|
42
|
-
description?:
|
|
43
|
-
disabled?: boolean;
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
description?: ReactNode | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
44
11
|
}[];
|
|
45
12
|
/** Shared name of the radios. Defaults to a generated one. */
|
|
46
|
-
name?: string;
|
|
13
|
+
name?: string | undefined;
|
|
47
14
|
/** Selected value (controlled). */
|
|
48
|
-
value?: string;
|
|
15
|
+
value?: string | undefined;
|
|
49
16
|
/** Initially selected value (uncontrolled). */
|
|
50
|
-
defaultValue?: string;
|
|
51
|
-
onChange?: (value: string) => void;
|
|
17
|
+
defaultValue?: string | undefined;
|
|
18
|
+
onChange?: ((value: string) => void) | undefined;
|
|
52
19
|
/**
|
|
53
20
|
* Draws each option as a bordered card the whole of which selects it; the chosen card takes the primary border and a tinted fill.
|
|
54
21
|
* @default "default"
|
|
55
22
|
*/
|
|
56
|
-
variant?:
|
|
23
|
+
variant?: "default" | "card" | undefined;
|
|
57
24
|
/**
|
|
58
25
|
* Options in a row (wrapping) instead of a column.
|
|
59
26
|
* @default false
|
|
60
27
|
*/
|
|
61
|
-
inline?: boolean;
|
|
28
|
+
inline?: boolean | undefined;
|
|
62
29
|
/**
|
|
63
30
|
* Marks the group and each option as required: the label shows the required mark, the group takes aria-required and each input the required attribute.
|
|
64
31
|
* @default false
|
|
65
32
|
*/
|
|
66
|
-
required?: boolean;
|
|
33
|
+
required?: boolean | undefined;
|
|
67
34
|
/**
|
|
68
35
|
* Ends the label with (optional) when the field is not required. Required wins when both are set.
|
|
69
36
|
* @default false
|
|
70
37
|
*/
|
|
71
|
-
optional?: boolean;
|
|
38
|
+
optional?: boolean | undefined;
|
|
72
39
|
/**
|
|
73
40
|
* Replaces the built-in English text, for other languages.
|
|
74
41
|
* @default "(optional)"
|
|
75
42
|
*/
|
|
76
|
-
optionalLabel?: string;
|
|
43
|
+
optionalLabel?: string | undefined;
|
|
77
44
|
/**
|
|
78
45
|
* Disables every option.
|
|
79
46
|
* @default false
|
|
80
47
|
*/
|
|
81
|
-
disabled?: boolean;
|
|
48
|
+
disabled?: boolean | undefined;
|
|
82
49
|
/**
|
|
83
50
|
* Shows the value but blocks editing. The value still posts.
|
|
84
51
|
* @default false
|
|
85
52
|
*/
|
|
86
|
-
readOnly?: boolean;
|
|
53
|
+
readOnly?: boolean | undefined;
|
|
87
54
|
/**
|
|
88
55
|
* Shows a busy state and blocks input while data loads.
|
|
89
56
|
* @default false
|
|
90
57
|
*/
|
|
91
|
-
loading?: boolean;
|
|
58
|
+
loading?: boolean | undefined;
|
|
92
59
|
/**
|
|
93
60
|
* Steps the radios and their labels.
|
|
94
61
|
* @default "md"
|
|
95
62
|
*/
|
|
96
|
-
size?:
|
|
63
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
97
64
|
/** Error message below the group. Replaces the helper text. */
|
|
98
|
-
error?: string;
|
|
65
|
+
error?: string | undefined;
|
|
99
66
|
/** Helper text below the group. */
|
|
100
|
-
helperText?: string;
|
|
67
|
+
helperText?: string | undefined;
|
|
101
68
|
/** Content for the label info-tip. */
|
|
102
|
-
help?:
|
|
69
|
+
help?: ReactNode | undefined;
|
|
103
70
|
/**
|
|
104
71
|
* aria-label for the info-tip button.
|
|
105
72
|
* @default "More information"
|
|
106
73
|
*/
|
|
107
|
-
helpLabel?: string;
|
|
74
|
+
helpLabel?: string | undefined;
|
|
108
75
|
/** The group's id; generated when left out. Option ids and the label and message ids derive from it. */
|
|
109
|
-
id?: string;
|
|
76
|
+
id?: string | undefined;
|
|
110
77
|
/**
|
|
111
78
|
* Class on the group (the control).
|
|
112
79
|
* @default ""
|
|
113
80
|
*/
|
|
114
|
-
className?: string;
|
|
81
|
+
className?: string | undefined;
|
|
115
82
|
/** Inline style; lands on the group with className. */
|
|
116
|
-
style?:
|
|
83
|
+
style?: CSSProperties | undefined;
|
|
117
84
|
/**
|
|
118
85
|
* Class on the .field wrapper.
|
|
119
86
|
* @default ""
|
|
120
87
|
*/
|
|
121
|
-
fieldClassName?: string;
|
|
122
|
-
}
|
|
88
|
+
fieldClassName?: string | undefined;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A labelled set of radio buttons, laid out like every other field: the group's label sits
|
|
92
|
+
* where a text field's label does (above, or beside it under `AppFormSection labels="start"`),
|
|
93
|
+
* with the hint or error below.
|
|
94
|
+
*
|
|
95
|
+
* The group is a `role="radiogroup"` named by its label rather than a fieldset/legend: a
|
|
96
|
+
* legend renders at heading size and cannot take part in the field grid, so the label would
|
|
97
|
+
* sit apart from every other field on the form.
|
|
98
|
+
*/
|
|
99
|
+
export default function AppRadioGroup(props: AppRadioGroupProps): ReactElement;
|
|
@@ -1,130 +1,106 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
* A star rating: an input that takes a whole number from 1 to `max` (arrow keys move and choose,
|
|
4
|
-
* it posts with its form), or with `readOnly` a display for a list or a card. The display names
|
|
5
|
-
* its value to a screen reader ("4.5 out of 5") and, with `half`, draws half stars. Wraps
|
|
6
|
-
* `<wui-rating>`, which Razor `<app-rating>` renders too.
|
|
7
|
-
*
|
|
8
|
-
* As an input it is a labelled radiogroup laid out like any other field. Leave `value` out to
|
|
9
|
-
* let it hold its own value (`defaultValue` seeds it).
|
|
10
|
-
*
|
|
11
|
-
* @param {object} props
|
|
12
|
-
* @param {number} [props.value]
|
|
13
|
-
* @param {number} [props.defaultValue]
|
|
14
|
-
* @param {(value: number) => void} [props.onChange] Called with the chosen rating (input only).
|
|
15
|
-
* @param {number} [props.max]
|
|
16
|
-
* @param {boolean} [props.readOnly]
|
|
17
|
-
* @param {boolean} [props.half]
|
|
18
|
-
* @param {boolean} [props.showValue]
|
|
19
|
-
* @param {"sm"|"md"|"lg"} [props.size]
|
|
20
|
-
* @param {import('react').ReactNode} [props.label]
|
|
21
|
-
* @param {import('react').ReactNode} [props.help]
|
|
22
|
-
* @param {string} [props.helpLabel]
|
|
23
|
-
* @param {string} [props.ratingLabel] Default "Rating".
|
|
24
|
-
* @param {string} [props.starLabel] Default "{count} star". Token: {count}.
|
|
25
|
-
* @param {string} [props.starsLabel] Default "{count} stars". Token: {count}.
|
|
26
|
-
* @param {string} [props.valueText] Default "{value} out of {max}". Tokens: {value}, {max}.
|
|
27
|
-
* @param {string} [props.name]
|
|
28
|
-
* @param {boolean} [props.required]
|
|
29
|
-
* @param {boolean} [props.disabled]
|
|
30
|
-
* @param {boolean} [props.loading]
|
|
31
|
-
* @param {string} [props.error]
|
|
32
|
-
* @param {string} [props.helperText]
|
|
33
|
-
* @param {string} [props.id]
|
|
34
|
-
* @param {string} [props.className]
|
|
35
|
-
* @param {string} [props.fieldClassName]
|
|
36
|
-
*/
|
|
37
|
-
export default function AppRating(props: {
|
|
1
|
+
import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from "react";
|
|
2
|
+
export interface AppRatingProps extends Omit<ComponentPropsWithoutRef<"span">, "onChange"> {
|
|
38
3
|
/** The rating (controlled as an input). A display may hold a fraction such as 4.3; an input rounds to a whole star. */
|
|
39
|
-
value?: number;
|
|
4
|
+
value?: number | undefined;
|
|
40
5
|
/** Initial rating of an uncontrolled input. */
|
|
41
|
-
defaultValue?: number;
|
|
42
|
-
|
|
6
|
+
defaultValue?: number | undefined;
|
|
7
|
+
/** Called with the chosen rating (input only). */
|
|
8
|
+
onChange?: ((value: number) => void) | undefined;
|
|
43
9
|
/**
|
|
44
10
|
* How many stars.
|
|
45
11
|
* @default 5
|
|
46
12
|
*/
|
|
47
|
-
max?: number;
|
|
13
|
+
max?: number | undefined;
|
|
48
14
|
/**
|
|
49
15
|
* A display, not an input.
|
|
50
16
|
* @default false
|
|
51
17
|
*/
|
|
52
|
-
readOnly?: boolean;
|
|
18
|
+
readOnly?: boolean | undefined;
|
|
53
19
|
/**
|
|
54
20
|
* Display only: draw the value to the nearest half star.
|
|
55
21
|
* @default false
|
|
56
22
|
*/
|
|
57
|
-
half?: boolean;
|
|
23
|
+
half?: boolean | undefined;
|
|
58
24
|
/**
|
|
59
25
|
* Display only: print the number beside the stars.
|
|
60
26
|
* @default false
|
|
61
27
|
*/
|
|
62
|
-
showValue?: boolean;
|
|
28
|
+
showValue?: boolean | undefined;
|
|
63
29
|
/**
|
|
64
30
|
* The star size: 16, 20 or 28 pixels.
|
|
65
31
|
* @default "md"
|
|
66
32
|
*/
|
|
67
|
-
size?: "sm" | "md" | "lg";
|
|
33
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
68
34
|
/** Input: the visible group label and its name. Display: prefix of the spoken text, such as Quality: 4.5 out of 5; a string. */
|
|
69
|
-
label?:
|
|
35
|
+
label?: ReactNode | undefined;
|
|
70
36
|
/** The content of the info-tip beside the label, opened by a button. */
|
|
71
|
-
help?:
|
|
37
|
+
help?: ReactNode | undefined;
|
|
72
38
|
/**
|
|
73
39
|
* The accessible name of the info-tip button.
|
|
74
40
|
* @default "More information"
|
|
75
41
|
*/
|
|
76
|
-
helpLabel?: string;
|
|
42
|
+
helpLabel?: string | undefined;
|
|
77
43
|
/**
|
|
78
44
|
* Replaces the built-in English text, for other languages.
|
|
79
45
|
* @default "Rating"
|
|
80
46
|
*/
|
|
81
|
-
ratingLabel?: string;
|
|
47
|
+
ratingLabel?: string | undefined;
|
|
82
48
|
/**
|
|
83
49
|
* Replaces the built-in English text, for other languages. Token: {count}.
|
|
84
50
|
* @default "{count} star"
|
|
85
51
|
*/
|
|
86
|
-
starLabel?: string;
|
|
52
|
+
starLabel?: string | undefined;
|
|
87
53
|
/**
|
|
88
54
|
* Replaces the built-in English text, for other languages. Token: {count}.
|
|
89
55
|
* @default "{count} stars"
|
|
90
56
|
*/
|
|
91
|
-
starsLabel?: string;
|
|
57
|
+
starsLabel?: string | undefined;
|
|
92
58
|
/**
|
|
93
59
|
* Replaces the built-in English text, for other languages. Tokens: {value}, {max}.
|
|
94
60
|
* @default "{value} out of {max}"
|
|
95
61
|
*/
|
|
96
|
-
valueText?: string;
|
|
62
|
+
valueText?: string | undefined;
|
|
97
63
|
/** Input only: the form field name. Defaults to a generated one. */
|
|
98
|
-
name?: string;
|
|
64
|
+
name?: string | undefined;
|
|
99
65
|
/**
|
|
100
66
|
* Input only: shows the required mark beside the label, and sets aria-required on the group and required on each star's input.
|
|
101
67
|
* @default false
|
|
102
68
|
*/
|
|
103
|
-
required?: boolean;
|
|
69
|
+
required?: boolean | undefined;
|
|
104
70
|
/**
|
|
105
71
|
* Input only: disables every star's input and sets the disabled attribute on the control.
|
|
106
72
|
* @default false
|
|
107
73
|
*/
|
|
108
|
-
disabled?: boolean;
|
|
74
|
+
disabled?: boolean | undefined;
|
|
109
75
|
/**
|
|
110
76
|
* Shows a busy state and blocks input while data loads.
|
|
111
77
|
* @default false
|
|
112
78
|
*/
|
|
113
|
-
loading?: boolean;
|
|
79
|
+
loading?: boolean | undefined;
|
|
114
80
|
/** Input only: message below the stars. Replaces the helper text. */
|
|
115
|
-
error?: string;
|
|
81
|
+
error?: string | undefined;
|
|
116
82
|
/** Input only: helper text below the stars. */
|
|
117
|
-
helperText?: string;
|
|
83
|
+
helperText?: string | undefined;
|
|
118
84
|
/** The rating control's id; generated when left out. */
|
|
119
|
-
id?: string;
|
|
85
|
+
id?: string | undefined;
|
|
120
86
|
/**
|
|
121
87
|
* Class on the stars (the control).
|
|
122
88
|
* @default ""
|
|
123
89
|
*/
|
|
124
|
-
className?: string;
|
|
90
|
+
className?: string | undefined;
|
|
125
91
|
/**
|
|
126
92
|
* Input only: class on the .field wrapper.
|
|
127
93
|
* @default ""
|
|
128
94
|
*/
|
|
129
|
-
fieldClassName?: string;
|
|
130
|
-
}
|
|
95
|
+
fieldClassName?: string | undefined;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A star rating: an input that takes a whole number from 1 to `max` (arrow keys move and choose,
|
|
99
|
+
* it posts with its form), or with `readOnly` a display for a list or a card. The display names
|
|
100
|
+
* its value to a screen reader ("4.5 out of 5") and, with `half`, draws half stars. Wraps
|
|
101
|
+
* `<wui-rating>`, which Razor `<app-rating>` renders too.
|
|
102
|
+
*
|
|
103
|
+
* As an input it is a labelled radiogroup laid out like any other field. Leave `value` out to
|
|
104
|
+
* let it hold its own value (`defaultValue` seeds it).
|
|
105
|
+
*/
|
|
106
|
+
export default function AppRating(props: AppRatingProps): JSX.Element;
|