@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,91 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param {boolean} props.open
|
|
6
|
-
* @param {string} props.title
|
|
7
|
-
* @param {'default'|'plain'} [props.variant] default keeps the illustration and equal-width actions; plain drops the illustration, starts the text at the edge and sizes the actions small, right-aligned.
|
|
8
|
-
* @param {import('react').ReactNode} [props.description]
|
|
9
|
-
* @param {import('react').ReactNode} [props.children] Extra content drawn between the description and the confirm-phrase field, such as a reason select or a note box.
|
|
10
|
-
* @param {string} [props.confirmLabel]
|
|
11
|
-
* @param {string} [props.cancelLabel]
|
|
12
|
-
* @param {string} [props.typePhraseLabel] Default "Type {phrase} to confirm". Replaces the built-in English text, for other languages; {phrase} is filled with the confirm phrase.
|
|
13
|
-
* @param {"danger"|"success"|"warning"|"info"|"primary"} [props.tone] "danger" styles the confirm button as destructive and draws the delete glyph.
|
|
14
|
-
* @param {string} [props.image]
|
|
15
|
-
* @param {string | import('react').ReactNode} [props.icon] Overrides the tone's glyph; a string is an icon name.
|
|
16
|
-
* @param {number} [props.iconSize]
|
|
17
|
-
* @param {string} [props.confirmPhrase]
|
|
18
|
-
* @param {() => void} props.onConfirm Runs when Confirm is pressed.
|
|
19
|
-
* @param {() => void} [props.onClose] Runs when the dialog is dismissed through Cancel, the backdrop or Escape, unless `loading` blocks it.
|
|
20
|
-
* @param {boolean} [props.loading]
|
|
21
|
-
* @param {boolean} [props.staticBackdrop] Defaults to true: Escape and an outside click leave the dialog open. Pass false to let them close it.
|
|
22
|
-
* @param {'center'|'top'} [props.placement]
|
|
23
|
-
* @param {'sm'|'md'|'lg'|'xl'|number} [props.size]
|
|
24
|
-
* @param {string} [props.className]
|
|
25
|
-
*/
|
|
26
|
-
export default function AppConfirmDialog(props: {
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export type ConfirmTone = "danger" | "success" | "warning" | "info" | "primary";
|
|
4
|
+
export interface AppConfirmDialogProps {
|
|
27
5
|
/** Shows the dialog while true. */
|
|
28
6
|
open: boolean;
|
|
29
7
|
/** The dialog heading. */
|
|
30
|
-
title:
|
|
8
|
+
title: ReactNode;
|
|
31
9
|
/**
|
|
32
10
|
* default keeps the status illustration and equal-width actions. plain drops the illustration, starts the text at the edge and sizes the actions small, right-aligned.
|
|
33
11
|
* @default "default"
|
|
34
12
|
*/
|
|
35
|
-
variant?:
|
|
13
|
+
variant?: "default" | "plain" | undefined;
|
|
36
14
|
/** The text that explains what the user is confirming. */
|
|
37
|
-
description?:
|
|
38
|
-
|
|
15
|
+
description?: ReactNode | undefined;
|
|
16
|
+
/** Extra content drawn between the description and the confirm-phrase field, such as a reason select or a note box. */
|
|
17
|
+
children?: ReactNode | undefined;
|
|
39
18
|
/**
|
|
40
19
|
* The confirm button's text.
|
|
41
20
|
* @default "Confirm"
|
|
42
21
|
*/
|
|
43
|
-
confirmLabel?: string;
|
|
22
|
+
confirmLabel?: string | undefined;
|
|
44
23
|
/**
|
|
45
24
|
* The cancel button's text.
|
|
46
25
|
* @default "Cancel"
|
|
47
26
|
*/
|
|
48
|
-
cancelLabel?: string;
|
|
27
|
+
cancelLabel?: string | undefined;
|
|
49
28
|
/**
|
|
50
29
|
* Replaces the built-in English text, for other languages. {phrase} is filled with the confirm phrase.
|
|
51
30
|
* @default "Type {phrase} to confirm"
|
|
52
31
|
*/
|
|
53
|
-
typePhraseLabel?: string;
|
|
32
|
+
typePhraseLabel?: string | undefined;
|
|
54
33
|
/** The status icon, and the confirm button's colour when danger: the danger tone styles Confirm as destructive and draws the delete icon. Unset, the icon is info. */
|
|
55
|
-
tone?:
|
|
34
|
+
tone?: ConfirmTone | undefined;
|
|
56
35
|
/** URL of a custom illustration that replaces the tone artwork. Any source size is fine: the theme boxes it to the same footprint. It is decorative, so the title and message carry the meaning. */
|
|
57
|
-
image?: string;
|
|
36
|
+
image?: string | undefined;
|
|
58
37
|
/** Replaces the tone's glyph. A string is an icon name; a node is drawn as given. An image still wins over it. */
|
|
59
|
-
icon?: string |
|
|
38
|
+
icon?: string | ReactNode | undefined;
|
|
60
39
|
/** Width and height of the illustration in px, for the tone artwork and a custom image alike. Unset, it is 120px with a message and 84px without. */
|
|
61
|
-
iconSize?: number;
|
|
40
|
+
iconSize?: number | undefined;
|
|
62
41
|
/** Exact text the user must type before Confirm unlocks, such as a workspace name. */
|
|
63
|
-
confirmPhrase?: string;
|
|
64
|
-
|
|
65
|
-
|
|
42
|
+
confirmPhrase?: string | undefined;
|
|
43
|
+
/** Runs when Confirm is pressed. */
|
|
44
|
+
onConfirm: () => void | Promise<void>;
|
|
45
|
+
/** Runs when the dialog is dismissed through Cancel, the backdrop or Escape, unless `loading` blocks it. */
|
|
46
|
+
onClose?: (() => void) | undefined;
|
|
66
47
|
/**
|
|
67
48
|
* Busy state: shows a spinner and disables Confirm, Cancel and the confirm-phrase field, and blocks dismissal while the async action is in flight.
|
|
68
49
|
* @default false
|
|
69
50
|
*/
|
|
70
|
-
loading?: boolean;
|
|
51
|
+
loading?: boolean | undefined;
|
|
71
52
|
/**
|
|
72
53
|
* The dialog closes only through its own Cancel or Confirm by default. false lets Escape and an outside click close it.
|
|
73
54
|
* @default true
|
|
74
55
|
*/
|
|
75
|
-
staticBackdrop?: boolean;
|
|
56
|
+
staticBackdrop?: boolean | undefined;
|
|
76
57
|
/**
|
|
77
58
|
* Vertical placement of the card: centred, or pinned near the top.
|
|
78
59
|
* @default "center"
|
|
79
60
|
*/
|
|
80
|
-
placement?:
|
|
61
|
+
placement?: "center" | "top" | undefined;
|
|
81
62
|
/**
|
|
82
63
|
* Card width: a preset, or an exact max-width in px for a custom size.
|
|
83
64
|
* @default "md"
|
|
84
65
|
*/
|
|
85
|
-
size?:
|
|
66
|
+
size?: "sm" | "md" | "lg" | "xl" | number | undefined;
|
|
86
67
|
/**
|
|
87
68
|
* Merged with the dialog's own wui-confirm class.
|
|
88
69
|
* @default ""
|
|
89
70
|
*/
|
|
90
|
-
className?: string;
|
|
91
|
-
}
|
|
71
|
+
className?: string | undefined;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Destructive or confirm step built on AppModal.
|
|
75
|
+
*/
|
|
76
|
+
export default function AppConfirmDialog(props: AppConfirmDialogProps): React.JSX.Element | null;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from "react";
|
|
2
|
+
import { type ConfirmTone } from "./AppConfirmDialog.tsx";
|
|
3
|
+
export interface ConfirmOptions {
|
|
4
|
+
title?: ReactNode | undefined;
|
|
5
|
+
description?: ReactNode | undefined;
|
|
6
|
+
confirmLabel?: string | undefined;
|
|
7
|
+
cancelLabel?: string | undefined;
|
|
8
|
+
tone?: ConfirmTone | undefined;
|
|
9
|
+
icon?: string | ReactNode | undefined;
|
|
10
|
+
confirmPhrase?: string | undefined;
|
|
11
|
+
onRun?: (() => Promise<void>) | undefined;
|
|
12
|
+
}
|
|
13
|
+
export type ConfirmFn = (options?: ConfirmOptions) => Promise<boolean>;
|
|
14
|
+
export interface AppConfirmProviderProps {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}
|
|
1
17
|
/**
|
|
2
18
|
* Mount once near the root. A descendant calls `useConfirm()` and awaits the result:
|
|
3
19
|
* `const confirm = useConfirm(); if (!(await confirm({ title: "Delete?", tone: "danger" }))) return;`
|
|
4
20
|
* The promise resolves true on confirm, and false on Cancel or unmount; the dialog is static, so Escape and the backdrop leave it open.
|
|
5
|
-
*
|
|
6
|
-
* @param {{ children: import('react').ReactNode }} props
|
|
7
21
|
*/
|
|
8
|
-
export default function AppConfirmProvider(props:
|
|
9
|
-
|
|
10
|
-
}): import("react").JSX.Element;
|
|
11
|
-
/**
|
|
12
|
-
* @returns {(options: { title: import('react').ReactNode, description?: import('react').ReactNode,
|
|
13
|
-
* confirmLabel?: string, cancelLabel?: string, tone?: "danger" | "success" | "warning" | "info" | "primary",
|
|
14
|
-
* icon?: string | import('react').ReactNode, confirmPhrase?: string,
|
|
15
|
-
* onRun?: () => Promise<void> }) => Promise<boolean>}
|
|
16
|
-
*/
|
|
17
|
-
export declare function useConfirm(): (options: {
|
|
18
|
-
title: import('react').ReactNode;
|
|
19
|
-
description?: import('react').ReactNode;
|
|
20
|
-
confirmLabel?: string;
|
|
21
|
-
cancelLabel?: string;
|
|
22
|
-
tone?: "danger" | "success" | "warning" | "info" | "primary";
|
|
23
|
-
icon?: string | import('react').ReactNode;
|
|
24
|
-
confirmPhrase?: string;
|
|
25
|
-
onRun?: () => Promise<void>;
|
|
26
|
-
}) => Promise<boolean>;
|
|
22
|
+
export default function AppConfirmProvider(props: AppConfirmProviderProps): JSX.Element;
|
|
23
|
+
export declare function useConfirm(): ConfirmFn;
|
|
@@ -1,87 +1,76 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* Wraps the shared `<wui-consent-banner>` element, which owns the buttons, the switches and the
|
|
7
|
-
* settings mode. This wrapper owns the wiring to `@webority/analytics`: it shows the banner when
|
|
8
|
-
* the visitor has not decided yet, and stores their choice with `saveConsent`, which also tells
|
|
9
|
-
* Google Consent Mode, PostHog and the marketing tags. Call `initConsent` from
|
|
10
|
-
* `@webority/analytics` before this renders; it throws otherwise, because a banner with no
|
|
11
|
-
* consent record behind it would ask a question nothing remembers.
|
|
12
|
-
*
|
|
13
|
-
* Any element carrying `data-consent-settings` reopens the banner with the switches showing, so
|
|
14
|
-
* a footer "Cookie settings" link needs no code: withdrawing consent must be as easy as giving it.
|
|
15
|
-
*
|
|
16
|
-
* On phones (under 576px) it is a slim bar along the bottom edge; Cookie settings stays behind its button.
|
|
17
|
-
*
|
|
18
|
-
* ```jsx
|
|
19
|
-
* initConsent({ requiresOptIn, cookieDomain: ".example.com" }); // app bootstrap, once
|
|
20
|
-
*
|
|
21
|
-
* <AppConsentBanner policyHref="/cookie-policy" />
|
|
22
|
-
* <a href="#" data-consent-settings>Cookie settings</a>
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param {object} props
|
|
26
|
-
* @param {string} [props.title]
|
|
27
|
-
* @param {string} [props.description]
|
|
28
|
-
* @param {string} [props.policyHref]
|
|
29
|
-
* @param {string} [props.policyLabel]
|
|
30
|
-
* @param {string} [props.analyticsDescription]
|
|
31
|
-
* @param {string} [props.functionalDescription]
|
|
32
|
-
* @param {string} [props.marketingDescription]
|
|
33
|
-
* @param {Array<"analytics"|"functional"|"marketing">} [props.categories]
|
|
34
|
-
* @param {"bottom-left"|"bottom-right"|"bar"} [props.position]
|
|
35
|
-
* @param {boolean} [props.standalone]
|
|
36
|
-
* @param {boolean} [props.preview]
|
|
37
|
-
* @param {string} [props.className]
|
|
38
|
-
* @param {import('react').CSSProperties} [props.style] Inline style; lands on the element with `className`.
|
|
39
|
-
*/
|
|
40
|
-
export default function AppConsentBanner(props: {
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type CSSProperties } from "react";
|
|
3
|
+
export type ConsentCategory = "analytics" | "functional" | "marketing";
|
|
4
|
+
export interface AppConsentBannerProps {
|
|
41
5
|
/**
|
|
42
6
|
* Title, and the dialog's accessible name.
|
|
43
7
|
* @default "Cookies on this site"
|
|
44
8
|
*/
|
|
45
|
-
title?: string;
|
|
9
|
+
title?: string | undefined;
|
|
46
10
|
/** The explanation above the buttons. */
|
|
47
|
-
description?: string;
|
|
11
|
+
description?: string | undefined;
|
|
48
12
|
/** Link to the cookie policy; no link when omitted. */
|
|
49
|
-
policyHref?: string;
|
|
13
|
+
policyHref?: string | undefined;
|
|
50
14
|
/**
|
|
51
15
|
* The policy link's text.
|
|
52
16
|
* @default "Cookie policy"
|
|
53
17
|
*/
|
|
54
|
-
policyLabel?: string;
|
|
18
|
+
policyLabel?: string | undefined;
|
|
55
19
|
/** What the analytics category covers. */
|
|
56
|
-
analyticsDescription?: string;
|
|
20
|
+
analyticsDescription?: string | undefined;
|
|
57
21
|
/** What the functional category covers. */
|
|
58
|
-
functionalDescription?: string;
|
|
22
|
+
functionalDescription?: string | undefined;
|
|
59
23
|
/** What the marketing category covers. */
|
|
60
|
-
marketingDescription?: string;
|
|
24
|
+
marketingDescription?: string | undefined;
|
|
61
25
|
/**
|
|
62
26
|
* The optional categories to show; essential always shows. A category left out has no row, saves as off and is never granted by Accept all.
|
|
63
27
|
* @default ["analytics","functional","marketing"]
|
|
64
28
|
*/
|
|
65
|
-
categories?:
|
|
29
|
+
categories?: ConsentCategory[] | undefined;
|
|
66
30
|
/**
|
|
67
31
|
* The corner it pins to, or the full-width bar. bar is a slim full-width bar along the bottom at every width.
|
|
68
32
|
* @default "bottom-left"
|
|
69
33
|
*/
|
|
70
|
-
position?: "bottom-left" | "bottom-right" | "bar";
|
|
34
|
+
position?: "bottom-left" | "bottom-right" | "bar" | undefined;
|
|
71
35
|
/**
|
|
72
36
|
* Render sealed in a shadow root with bundled styles, for a page that does not load `@webority/theme`.
|
|
73
37
|
* @default false
|
|
74
38
|
*/
|
|
75
|
-
standalone?: boolean;
|
|
39
|
+
standalone?: boolean | undefined;
|
|
76
40
|
/**
|
|
77
41
|
* Draw the banner open without reading or saving consent, for a design surface that never ran initConsent. Nothing is stored.
|
|
78
42
|
* @default false
|
|
79
43
|
*/
|
|
80
|
-
preview?: boolean;
|
|
44
|
+
preview?: boolean | undefined;
|
|
81
45
|
/**
|
|
82
46
|
* Extra classes on the element.
|
|
83
47
|
* @default ""
|
|
84
48
|
*/
|
|
85
|
-
className?: string;
|
|
86
|
-
style
|
|
87
|
-
|
|
49
|
+
className?: string | undefined;
|
|
50
|
+
/** Inline style; lands on the element with `className`. */
|
|
51
|
+
style?: CSSProperties | undefined;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The cookie consent banner: accept all, reject all, or choose per category (analytics,
|
|
55
|
+
* functional, marketing; essential is always on).
|
|
56
|
+
*
|
|
57
|
+
* Wraps the shared `<wui-consent-banner>` element, which owns the buttons, the switches and the
|
|
58
|
+
* settings mode. This wrapper owns the wiring to `@webority/analytics`: it shows the banner when
|
|
59
|
+
* the visitor has not decided yet, and stores their choice with `saveConsent`, which also tells
|
|
60
|
+
* Google Consent Mode, PostHog and the marketing tags. Call `initConsent` from
|
|
61
|
+
* `@webority/analytics` before this renders; it throws otherwise, because a banner with no
|
|
62
|
+
* consent record behind it would ask a question nothing remembers.
|
|
63
|
+
*
|
|
64
|
+
* Any element carrying `data-consent-settings` reopens the banner with the switches showing, so
|
|
65
|
+
* a footer "Cookie settings" link needs no code: withdrawing consent must be as easy as giving it.
|
|
66
|
+
*
|
|
67
|
+
* On phones (under 576px) it is a slim bar along the bottom edge; Cookie settings stays behind its button.
|
|
68
|
+
*
|
|
69
|
+
* ```jsx
|
|
70
|
+
* initConsent({ requiresOptIn, cookieDomain: ".example.com" }); // app bootstrap, once
|
|
71
|
+
*
|
|
72
|
+
* <AppConsentBanner policyHref="/cookie-policy" />
|
|
73
|
+
* <a href="#" data-consent-settings>Cookie settings</a>
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export default function AppConsentBanner(props: AppConsentBannerProps): React.JSX.Element;
|
|
@@ -1,4 +1,38 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
4
|
+
/**
|
|
5
|
+
* A row of the menu: a link, an action, a divider or a side menu of more rows, in the AppDropdown item model.
|
|
6
|
+
*/
|
|
7
|
+
export interface AppContextMenuItem {
|
|
8
|
+
key: string;
|
|
9
|
+
label?: string | undefined;
|
|
10
|
+
icon?: string | ReactNode | undefined;
|
|
11
|
+
image?: string | undefined;
|
|
12
|
+
hint?: string | undefined;
|
|
13
|
+
shortcut?: string | undefined;
|
|
14
|
+
checked?: boolean | undefined;
|
|
15
|
+
to?: string | undefined;
|
|
16
|
+
onClick?: (() => void) | undefined;
|
|
17
|
+
tone?: "danger" | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
divider?: boolean | undefined;
|
|
20
|
+
searchable?: boolean | undefined;
|
|
21
|
+
searchPlaceholder?: string | undefined;
|
|
22
|
+
items?: AppContextMenuItem[] | undefined;
|
|
23
|
+
}
|
|
24
|
+
type ContextMenuBeforeOpenDetail = {
|
|
25
|
+
region: Element;
|
|
26
|
+
origin: Element | null;
|
|
27
|
+
trigger: HTMLElement | null;
|
|
28
|
+
};
|
|
29
|
+
/** The detail of a wui-context-menu:open event: the matched region, the element acted on and the pointer position. */
|
|
30
|
+
export interface AppContextMenuOpenDetail {
|
|
31
|
+
region: Element;
|
|
32
|
+
origin: Element;
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
}
|
|
2
36
|
/**
|
|
3
37
|
* A right-click menu over a region of the page. The menu opens on right-click, on a long press
|
|
4
38
|
* of a finger, and on Shift+F10 or the ContextMenu key; it sits at the pointer (under the focused
|
|
@@ -15,76 +49,54 @@ import "@webority/ui-elements/elements/context-menu";
|
|
|
15
49
|
* A row with `items` opens a side menu. It opens on click, Enter, Space or ArrowRight; with
|
|
16
50
|
* `searchable` it holds a filter field that narrows its rows as the user types.
|
|
17
51
|
*
|
|
18
|
-
* NOTE: the exported component must stay the FIRST destructured function in this file
|
|
52
|
+
* NOTE: the exported component must stay the FIRST destructured function in this file:
|
|
19
53
|
* the parity check reads the first signature it finds as the component's public props.
|
|
20
54
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
31
|
-
* Called as the menu opens. `region` is the matched target, `origin` the element the user acted on inside it.
|
|
32
|
-
* @param {(event: CustomEvent) => void} [props.onBeforeOpen]
|
|
33
|
-
* Called before the menu shows, with the cancelable event; `event.detail` holds `region`, `origin` and `trigger`.
|
|
55
|
+
* @param props
|
|
56
|
+
* @param [props.items] A row's `shortcut` is the key that runs it, such as "E": a key chip at the row's end and `aria-keyshortcuts`. The page binds the key itself.
|
|
57
|
+
* @param [props.target]
|
|
58
|
+
* @param [props.trigger] A CSS selector inside the region; a click or Enter on a match opens the menu under it.
|
|
59
|
+
* @param [props.children] The region to attach to, when `target` is not used.
|
|
60
|
+
* @param [props.ariaLabel]
|
|
61
|
+
* @param [props.disabled]
|
|
62
|
+
* @param [props.open] Shows the menu open at the top-left corner of its region, for a design preview or a controlled caller.
|
|
63
|
+
* @param [props.onOpen] Called as the menu opens. `region` is the matched target, `origin` the element the user acted on inside it.
|
|
64
|
+
* @param [props.onBeforeOpen] Called before the menu shows, with the cancelable event; `event.detail` holds `region`, `origin` and `trigger`.
|
|
34
65
|
* Calling `event.preventDefault()` keeps the menu closed.
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
66
|
+
* @param [props.menuClassName]
|
|
67
|
+
* @param [props.linkComponent] Component for `to` items: the product's router link, which receives `to` (e.g. Link).
|
|
37
68
|
*/
|
|
38
|
-
export
|
|
69
|
+
export interface AppContextMenuProps {
|
|
39
70
|
/**
|
|
40
71
|
* The AppDropdown item model: one entry per row, or a separator when divider is true.
|
|
41
72
|
* @default []
|
|
42
73
|
*/
|
|
43
|
-
items?:
|
|
44
|
-
key: string;
|
|
45
|
-
label?: string;
|
|
46
|
-
icon?: string | import('react').ReactNode;
|
|
47
|
-
image?: string;
|
|
48
|
-
hint?: string;
|
|
49
|
-
shortcut?: string;
|
|
50
|
-
checked?: boolean;
|
|
51
|
-
to?: string;
|
|
52
|
-
onClick?: () => void;
|
|
53
|
-
tone?: 'danger';
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
divider?: boolean;
|
|
56
|
-
searchable?: boolean;
|
|
57
|
-
searchPlaceholder?: string;
|
|
58
|
-
items?: object[];
|
|
59
|
-
}[];
|
|
74
|
+
items?: AppContextMenuItem[] | undefined;
|
|
60
75
|
/** CSS selector of the elements the menu serves. Without it, the menu serves `children`. */
|
|
61
|
-
target?: string;
|
|
76
|
+
target?: string | undefined;
|
|
62
77
|
/** A CSS selector inside the region: a click or Enter on a match opens the menu under it. */
|
|
63
|
-
trigger?: string;
|
|
64
|
-
children?:
|
|
78
|
+
trigger?: string | undefined;
|
|
79
|
+
children?: ReactNode | undefined;
|
|
65
80
|
/**
|
|
66
81
|
* Accessible name of the menu.
|
|
67
82
|
* @default "Context menu"
|
|
68
83
|
*/
|
|
69
|
-
ariaLabel?: string;
|
|
84
|
+
ariaLabel?: string | undefined;
|
|
70
85
|
/**
|
|
71
86
|
* Turns the menu off; the browser's own menu shows instead.
|
|
72
87
|
* @default false
|
|
73
88
|
*/
|
|
74
|
-
disabled?: boolean;
|
|
89
|
+
disabled?: boolean | undefined;
|
|
75
90
|
/** Shows the panel open, for a design preview or a controlled caller. */
|
|
76
|
-
open?: boolean;
|
|
77
|
-
onOpen?: (detail:
|
|
78
|
-
|
|
79
|
-
origin: Element;
|
|
80
|
-
x: number;
|
|
81
|
-
y: number;
|
|
82
|
-
}) => void;
|
|
83
|
-
onBeforeOpen?: (event: CustomEvent) => void;
|
|
91
|
+
open?: boolean | undefined;
|
|
92
|
+
onOpen?: ((detail: AppContextMenuOpenDetail) => void) | undefined;
|
|
93
|
+
onBeforeOpen?: ((event: CustomEvent<ContextMenuBeforeOpenDetail>) => void) | undefined;
|
|
84
94
|
/**
|
|
85
95
|
* Extra classes on the menu panel.
|
|
86
96
|
* @default ""
|
|
87
97
|
*/
|
|
88
|
-
menuClassName?: string;
|
|
89
|
-
linkComponent?:
|
|
90
|
-
}
|
|
98
|
+
menuClassName?: string | undefined;
|
|
99
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
100
|
+
}
|
|
101
|
+
export default function AppContextMenu(props: AppContextMenuProps): React.JSX.Element;
|
|
102
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type React from "react";
|
|
1
2
|
/**
|
|
2
3
|
* A copy-to-clipboard button with feedback. Shows "Copied" confirmation for
|
|
3
4
|
* COPY_FEEDBACK_MS after a successful copy. Uses the shared copyTextToClipboard helper
|
|
@@ -5,63 +6,64 @@
|
|
|
5
6
|
*
|
|
6
7
|
* Supports both button form (label + icon) and icon-only form (actionable icon).
|
|
7
8
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
19
|
-
* @param
|
|
9
|
+
* @param props
|
|
10
|
+
* @param props.text
|
|
11
|
+
* @param [props.label]
|
|
12
|
+
* @param [props.copiedLabel]
|
|
13
|
+
* @param [props.iconOnly]
|
|
14
|
+
* @param [props.size]
|
|
15
|
+
* @param [props.tone]
|
|
16
|
+
* @param [props.variant]
|
|
17
|
+
* @param [props.onCopied] Callback fired on successful copy
|
|
18
|
+
* @param [props.className]
|
|
19
|
+
* @param [props.tooltip]
|
|
20
|
+
* @param [props.tooltipPlacement]
|
|
20
21
|
*/
|
|
21
|
-
export
|
|
22
|
+
export interface AppCopyButtonProps {
|
|
22
23
|
/** The text to copy. */
|
|
23
24
|
text: string;
|
|
24
25
|
/**
|
|
25
26
|
* Button label.
|
|
26
27
|
* @default "Copy"
|
|
27
28
|
*/
|
|
28
|
-
label?: string;
|
|
29
|
+
label?: string | undefined;
|
|
29
30
|
/**
|
|
30
31
|
* Label shown after a successful copy.
|
|
31
32
|
* @default "Copied"
|
|
32
33
|
*/
|
|
33
|
-
copiedLabel?: string;
|
|
34
|
+
copiedLabel?: string | undefined;
|
|
34
35
|
/**
|
|
35
36
|
* Render as an icon-only button (like AppActionIcon); label becomes aria-label.
|
|
36
37
|
* @default false
|
|
37
38
|
*/
|
|
38
|
-
iconOnly?: boolean;
|
|
39
|
+
iconOnly?: boolean | undefined;
|
|
39
40
|
/**
|
|
40
41
|
* Button size.
|
|
41
42
|
* @default "md"
|
|
42
43
|
*/
|
|
43
|
-
size?: "sm" | "md" | "lg";
|
|
44
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
44
45
|
/**
|
|
45
46
|
* Semantic colour.
|
|
46
47
|
* @default "primary"
|
|
47
48
|
*/
|
|
48
|
-
tone?: "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
49
|
+
tone?: "primary" | "success" | "warning" | "danger" | "info" | "neutral" | undefined;
|
|
49
50
|
/**
|
|
50
51
|
* Button variant.
|
|
51
52
|
* @default "ghost"
|
|
52
53
|
*/
|
|
53
|
-
variant?: "solid" | "soft" | "outline" | "ghost" | "link" | "glass";
|
|
54
|
-
onCopied?: () => void;
|
|
54
|
+
variant?: "solid" | "soft" | "outline" | "ghost" | "link" | "glass" | undefined;
|
|
55
|
+
onCopied?: (() => void) | undefined;
|
|
55
56
|
/**
|
|
56
57
|
* Custom className.
|
|
57
58
|
* @default ""
|
|
58
59
|
*/
|
|
59
|
-
className?: string;
|
|
60
|
+
className?: string | undefined;
|
|
60
61
|
/** A collision-aware hover and focus tooltip (via AppTooltip) that flips to stay on screen. */
|
|
61
|
-
tooltip?: string;
|
|
62
|
+
tooltip?: string | undefined;
|
|
62
63
|
/**
|
|
63
64
|
* Preferred tooltip side; `auto` picks the side with the most room.
|
|
64
65
|
* @default "auto"
|
|
65
66
|
*/
|
|
66
|
-
tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end";
|
|
67
|
-
}
|
|
67
|
+
tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end" | undefined;
|
|
68
|
+
}
|
|
69
|
+
export default function AppCopyButton(props: AppCopyButtonProps): React.JSX.Element;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
1
2
|
/**
|
|
2
3
|
* A country flag on its own: the flag the country select's options show, drawn from the theme's
|
|
3
4
|
* .wui-flag-<iso> artwork and sized to the text around it. Decorative by default, so the country
|
|
4
5
|
* name beside it carries the meaning; pass `label` when the flag stands alone and assistive tech
|
|
5
6
|
* should read the country.
|
|
6
7
|
*
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
8
|
+
* @param props
|
|
9
|
+
* @param props.country ISO 3166-1 alpha-2 code of the country, such as "IN".
|
|
10
|
+
* @param [props.label] The country name, read by assistive tech when the flag stands alone.
|
|
11
|
+
* @param [props.className]
|
|
11
12
|
*/
|
|
12
|
-
export
|
|
13
|
+
export interface AppCountryFlagProps {
|
|
13
14
|
/** ISO 3166-1 alpha-2 code of the country, such as IN. The flag follows the size of the text around it. */
|
|
14
15
|
country: string;
|
|
15
16
|
/** Names the flag for assistive tech. Without it the flag is decorative and hidden, so put the country name in the text beside it. */
|
|
16
|
-
label?: string;
|
|
17
|
+
label?: string | undefined;
|
|
17
18
|
/**
|
|
18
19
|
* Extra classes on the flag.
|
|
19
20
|
* @default ""
|
|
20
21
|
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
}
|
|
22
|
+
className?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export default function AppCountryFlag(props: AppCountryFlagProps): ReactElement | null;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
1
2
|
/**
|
|
2
|
-
* One cell of an `AppDashboardGrid`: it spans 3, 4, 6, 8 or 12 of the twelve columns,
|
|
3
|
-
* width under 576px. A card or tile inside fills the cell's height.
|
|
3
|
+
* One cell of an `AppDashboardGrid`: it spans 3, 4, 6, 8 or 12 of the twelve columns, or "fifth": three to a row
|
|
4
|
+
* from 576px and five from 992px; full width under 576px. A card or tile inside fills the cell's height.
|
|
4
5
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
6
|
+
* @param props
|
|
7
|
+
* @param [props.span]
|
|
8
|
+
* @param props.children The card or tile.
|
|
9
|
+
* @param [props.className]
|
|
9
10
|
*/
|
|
10
|
-
export
|
|
11
|
+
export interface AppDashboardCellProps {
|
|
11
12
|
/**
|
|
12
|
-
* How many of the twelve columns the cell spans.
|
|
13
|
+
* How many of the twelve columns the cell spans, or fifth for five to a row on wide screens.
|
|
13
14
|
* @default 12
|
|
14
15
|
*/
|
|
15
|
-
span?: 3 | 4 | 6 | 8 | 12;
|
|
16
|
-
children:
|
|
16
|
+
span?: 3 | 4 | 6 | 8 | 12 | "fifth" | undefined;
|
|
17
|
+
children: ReactNode;
|
|
17
18
|
/**
|
|
18
19
|
* Extra classes on the cell.
|
|
19
20
|
* @default ""
|
|
20
21
|
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
}
|
|
22
|
+
className?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export default function AppDashboardCell(props: AppDashboardCellProps): ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
1
2
|
/**
|
|
2
3
|
* The layout of a dashboard: twelve columns of `AppDashboardCell`s that each span 3, 4, 6, 8 or 12 of
|
|
3
4
|
* them, and one column under 576px. There is no drag and drop and no saved layout: the page says
|
|
@@ -12,15 +13,16 @@
|
|
|
12
13
|
* </AppDashboardGrid>
|
|
13
14
|
* ```
|
|
14
15
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
16
|
+
* @param props
|
|
17
|
+
* @param [props.children] `AppDashboardCell`s.
|
|
18
|
+
* @param [props.className]
|
|
18
19
|
*/
|
|
19
|
-
export
|
|
20
|
-
children
|
|
20
|
+
export interface AppDashboardGridProps {
|
|
21
|
+
children?: ReactNode | undefined;
|
|
21
22
|
/**
|
|
22
23
|
* Extra classes on the grid.
|
|
23
24
|
* @default ""
|
|
24
25
|
*/
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
26
|
+
className?: string | undefined;
|
|
27
|
+
}
|
|
28
|
+
export default function AppDashboardGrid(props: AppDashboardGridProps): ReactElement;
|