@webority/ui-react 0.149.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas-kit/kit.js +699 -161657
- package/dist/canvas-kit/manifest.json +800 -119
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccordion.js +1 -1
- package/dist/components/AppAccountSwitcher.js +1 -1
- package/dist/components/AppActionIcon.js +1 -1
- package/dist/components/AppAlert.js +1 -1
- package/dist/components/AppAsyncBlock.js +1 -1
- package/dist/components/AppAuthLayout.js +1 -1
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppAvatarGroup.js +1 -1
- package/dist/components/AppBadge.js +1 -1
- package/dist/components/AppBanner.js +1 -1
- package/dist/components/AppBreadcrumbs.js +1 -1
- package/dist/components/AppButton.js +1 -1
- package/dist/components/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppCarousel.js +1 -1
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppCheckbox.js +1 -1
- package/dist/components/AppChipGroup.js +1 -1
- package/dist/components/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppCodeBlock.js +1 -1
- package/dist/components/AppCommandPalette.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppCompareTable.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppConsentBanner.js +1 -1
- package/dist/components/AppContextMenu.js +1 -1
- package/dist/components/AppCopyButton.js +1 -1
- package/dist/components/AppDashboardCell.js +1 -1
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppDatePicker.js +1 -1
- package/dist/components/AppDateRangePicker.js +1 -1
- package/dist/components/AppDescriptions.js +1 -1
- package/dist/components/AppDrawer.js +1 -1
- package/dist/components/AppDropZone.js +1 -1
- package/dist/components/AppDropdown.js +1 -1
- package/dist/components/AppDueDate.js +1 -1
- package/dist/components/AppEmptyState.js +1 -1
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileTiles.js +1 -1
- package/dist/components/AppFileViewer.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingDock.js +1 -1
- package/dist/components/AppForm.js +1 -0
- package/dist/components/AppHoverCard.js +1 -1
- package/dist/components/AppIcon.js +1 -1
- package/dist/components/AppImagePicker.js +1 -1
- package/dist/components/AppInlineEdit.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppKanban.js +1 -1
- package/dist/components/AppKbd.js +1 -1
- package/dist/components/AppKpiTile.js +1 -1
- package/dist/components/AppLeadPopup.js +1 -1
- package/dist/components/AppLightbox.js +1 -1
- package/dist/components/AppLink.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/AppMentionInput.js +1 -1
- package/dist/components/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavList.js +1 -1
- package/dist/components/AppNavigationMenu.js +1 -1
- package/dist/components/AppNotificationCenter.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppOnboardingChecklist.js +1 -1
- package/dist/components/AppOrgTree.js +1 -1
- package/dist/components/AppOtpInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppPopover.js +1 -1
- package/dist/components/AppQrCode.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppRecordPager.js +1 -1
- package/dist/components/AppRelativeTime.js +1 -1
- package/dist/components/AppRepeater.js +1 -1
- package/dist/components/AppResizable.js +1 -1
- package/dist/components/AppResourceCard.js +1 -1
- package/dist/components/AppResult.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRollingNumber.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionLeadCapture.js +1 -1
- package/dist/components/AppSectionLogos.js +1 -1
- package/dist/components/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppSeoHead.js +1 -1
- package/dist/components/AppShell.js +1 -1
- package/dist/components/AppShortcutLegend.js +1 -1
- package/dist/components/AppShowMore.js +1 -1
- package/dist/components/AppSkeleton.js +1 -1
- package/dist/components/AppSkeletonLines.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppSparkline.js +1 -1
- package/dist/components/AppSplash.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppStatusBadge.js +1 -1
- package/dist/components/AppStepper.js +1 -1
- package/dist/components/AppSwitch.js +1 -1
- package/dist/components/AppTablePagination.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppTimePicker.js +1 -1
- package/dist/components/AppTimeline.js +1 -1
- package/dist/components/AppToast.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/AppTour.js +1 -1
- package/dist/components/AppTreeView.js +1 -1
- package/dist/components/AppTruncate.js +1 -1
- package/dist/components/AppWhatsNew.js +1 -1
- package/dist/components/AppWizard.js +1 -1
- package/dist/components/AppWorkspaceSwitcher.js +1 -1
- package/dist/components/ModalIcons.js +1 -1
- package/dist/components/assertValidValue.js +1 -1
- package/dist/components/iconCatalogFull/bold/a.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/b.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/c.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/d.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/e.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/f.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/g.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/h.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/i.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/j.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/k.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/l.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/m.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/n.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/o.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/p.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/q.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/r.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/s.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/t.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/u.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/v.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/w.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/x.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/y.g.js +1 -1
- package/dist/components/iconCatalogFull/bold/z.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/a.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/b.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/c.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/d.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/e.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/f.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/g.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/h.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/i.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/j.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/k.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/l.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/m.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/n.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/o.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/p.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/q.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/r.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/s.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/t.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/u.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/v.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/w.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/x.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/y.g.js +1 -1
- package/dist/components/iconCatalogFull/broken/z.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/a.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/b.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/c.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/d.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/e.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/f.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/g.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/h.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/i.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/j.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/k.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/l.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/m.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/n.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/o.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/p.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/q.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/r.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/s.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/t.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/u.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/v.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/w.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/x.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/y.g.js +1 -1
- package/dist/components/iconCatalogFull/bulk/z.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/a.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/b.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/c.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/d.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/e.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/f.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/g.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/h.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/i.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/j.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/k.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/l.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/m.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/n.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/o.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/p.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/q.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/r.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/s.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/t.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/u.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/v.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/w.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/x.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/y.g.js +1 -1
- package/dist/components/iconCatalogFull/linear/z.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/a.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/b.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/c.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/d.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/e.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/f.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/g.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/h.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/i.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/j.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/k.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/l.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/m.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/n.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/o.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/p.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/q.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/r.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/s.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/t.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/u.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/v.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/w.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/x.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/y.g.js +1 -1
- package/dist/components/iconCatalogFull/outline/z.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/a.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/b.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/c.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/d.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/e.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/f.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/g.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/h.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/i.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/j.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/k.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/l.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/m.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/n.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/o.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/p.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/q.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/r.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/s.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/t.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/u.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/v.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/w.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/x.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/y.g.js +1 -1
- package/dist/components/iconCatalogFull/twotone/z.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/components/textOf.js +1 -0
- package/dist/components/toastStore.js +1 -1
- package/dist/components/useNodeLabels.js +1 -1
- package/dist/components/useWuiControl.js +1 -1
- package/dist/guidance.json +174 -27
- package/dist/lib/CheckField.js +1 -1
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/FocusPanel.js +1 -1
- package/dist/lib/TargetLink.js +1 -0
- package/dist/lib/buttonClass.js +1 -1
- package/dist/lib/emptyIllustration.js +1 -1
- package/dist/lib/fileItem.js +1 -1
- package/dist/lib/flagStyles.js +1 -1
- package/dist/lib/initials.js +1 -1
- package/dist/lib/linkTarget.js +1 -1
- package/dist/lib/pageScrollLock.js +1 -1
- package/dist/lib/qrCode.js +1 -1
- package/dist/lib/sectionShell.js +1 -1
- package/dist/lib/svgNodes.js +1 -0
- package/dist/lib/useElementEntry.js +1 -0
- package/dist/lib/useFileDrop.js +1 -1
- package/dist/lib/useTableView.js +1 -1
- package/dist/lib/wuiMarker.js +1 -1
- package/dist/markdown-core/dist/parse.js +3 -3
- package/dist/types/components/AppAccordion.d.ts +31 -34
- package/dist/types/components/AppAccountSwitcher.d.ts +29 -30
- package/dist/types/components/AppActionIcon.d.ts +39 -57
- package/dist/types/components/AppAlert.d.ts +35 -50
- package/dist/types/components/AppAsyncBlock.d.ts +23 -46
- package/dist/types/components/AppAuthLayout.d.ts +9 -22
- package/dist/types/components/AppAvatar.d.ts +26 -43
- package/dist/types/components/AppAvatarGroup.d.ts +11 -16
- package/dist/types/components/AppBadge.d.ts +13 -19
- package/dist/types/components/AppBanner.d.ts +18 -21
- package/dist/types/components/AppBreadcrumbs.d.ts +35 -20
- package/dist/types/components/AppButton.d.ts +66 -56
- package/dist/types/components/AppButtonGroup.d.ts +24 -22
- package/dist/types/components/AppCalendar.d.ts +35 -31
- package/dist/types/components/AppCard.d.ts +47 -67
- package/dist/types/components/AppCarousel.d.ts +35 -51
- package/dist/types/components/AppCell.d.ts +22 -21
- package/dist/types/components/AppChart.d.ts +93 -54
- package/dist/types/components/AppChartCard.d.ts +46 -58
- package/dist/types/components/AppCheckbox.d.ts +33 -18
- package/dist/types/components/AppChip.d.ts +32 -43
- package/dist/types/components/AppChipGroup.d.ts +17 -22
- package/dist/types/components/AppChoiceCard.d.ts +30 -54
- package/dist/types/components/AppChoiceChip.d.ts +42 -38
- package/dist/types/components/AppCodeBlock.d.ts +29 -28
- package/dist/types/components/AppColorField.d.ts +59 -57
- package/dist/types/components/AppColumnMenu.d.ts +21 -19
- package/dist/types/components/AppCommandPalette.d.ts +97 -102
- package/dist/types/components/AppCommentThread.d.ts +106 -181
- package/dist/types/components/AppCompareTable.d.ts +59 -57
- package/dist/types/components/AppConfirmDialog.d.ts +31 -46
- package/dist/types/components/AppConfirmProvider.d.ts +18 -21
- package/dist/types/components/AppConsentBanner.d.ts +43 -54
- package/dist/types/components/AppContextMenu.d.ts +63 -51
- package/dist/types/components/AppCopyButton.d.ts +26 -24
- package/dist/types/components/AppCountryFlag.d.ts +10 -8
- package/dist/types/components/AppDashboardCell.d.ts +19 -13
- package/dist/types/components/AppDashboardGrid.d.ts +15 -12
- package/dist/types/components/AppDataTable.d.ts +147 -144
- package/dist/types/components/AppDatePicker.d.ts +39 -28
- package/dist/types/components/AppDateRangePicker.d.ts +53 -40
- package/dist/types/components/AppDescriptions.d.ts +43 -38
- package/dist/types/components/AppDetailPane.d.ts +14 -19
- package/dist/types/components/AppDrawer.d.ts +46 -74
- package/dist/types/components/AppDropZone.d.ts +43 -47
- package/dist/types/components/AppDropdown.d.ts +78 -72
- package/dist/types/components/AppDueDate.d.ts +25 -39
- package/dist/types/components/AppEmptyState.d.ts +26 -36
- package/dist/types/components/AppErrorBoundary.d.ts +29 -29
- package/dist/types/components/AppErrorSummary.d.ts +27 -24
- package/dist/types/components/AppFileAttachment.d.ts +87 -70
- package/dist/types/components/AppFilePicker.d.ts +109 -95
- package/dist/types/components/AppFileTiles.d.ts +26 -23
- package/dist/types/components/AppFileViewer.d.ts +27 -21
- package/dist/types/components/AppFilterBar.d.ts +87 -84
- package/dist/types/components/AppFloatingButton.d.ts +37 -35
- package/dist/types/components/AppFloatingDock.d.ts +47 -41
- package/dist/types/components/AppForm.d.ts +23 -0
- package/dist/types/components/AppFormActions.d.ts +21 -19
- package/dist/types/components/AppFormRow.d.ts +16 -19
- package/dist/types/components/AppFormSection.d.ts +24 -34
- package/dist/types/components/AppHoverCard.d.ts +28 -35
- package/dist/types/components/AppIcon.d.ts +29 -38
- package/dist/types/components/AppImagePicker.d.ts +54 -99
- package/dist/types/components/AppInfoTip.d.ts +17 -21
- package/dist/types/components/AppInlineEdit.d.ts +46 -51
- package/dist/types/components/AppInput.d.ts +82 -61
- package/dist/types/components/AppInputGroup.d.ts +22 -29
- package/dist/types/components/AppKanban.d.ts +115 -118
- package/dist/types/components/AppKbd.d.ts +12 -11
- package/dist/types/components/AppKpiTile.d.ts +45 -59
- package/dist/types/components/AppLeadPopup.d.ts +81 -38
- package/dist/types/components/AppLightbox.d.ts +44 -41
- package/dist/types/components/AppLink.d.ts +46 -43
- package/dist/types/components/AppMarkdown.d.ts +30 -37
- package/dist/types/components/AppMentionInput.d.ts +52 -40
- package/dist/types/components/AppMeter.d.ts +30 -33
- package/dist/types/components/AppMetricStrip.d.ts +29 -25
- package/dist/types/components/AppModal.d.ts +42 -51
- package/dist/types/components/AppNavList.d.ts +28 -27
- package/dist/types/components/AppNavigationMenu.d.ts +36 -33
- package/dist/types/components/AppNotificationCenter.d.ts +59 -92
- package/dist/types/components/AppNumberInput.d.ts +52 -30
- package/dist/types/components/AppOnboardingChecklist.d.ts +58 -48
- package/dist/types/components/AppOrgTree.d.ts +59 -29
- package/dist/types/components/AppOtpInput.d.ts +42 -25
- package/dist/types/components/AppPageHeader.d.ts +44 -66
- package/dist/types/components/AppPhoneNumberInput.d.ts +29 -27
- package/dist/types/components/AppPopover.d.ts +48 -37
- package/dist/types/components/AppPricingCard.d.ts +28 -37
- package/dist/types/components/AppProgress.d.ts +21 -29
- package/dist/types/components/AppQrCode.d.ts +19 -24
- package/dist/types/components/AppRadio.d.ts +24 -18
- package/dist/types/components/AppRadioGroup.d.ts +38 -61
- package/dist/types/components/AppRating.d.ts +38 -62
- package/dist/types/components/AppRecordPager.d.ts +28 -37
- package/dist/types/components/AppRelativeTime.d.ts +13 -16
- package/dist/types/components/AppRepeater.d.ts +41 -49
- package/dist/types/components/AppRequiredMark.d.ts +4 -4
- package/dist/types/components/AppResizable.d.ts +16 -17
- package/dist/types/components/AppResizableHandle.d.ts +5 -12
- package/dist/types/components/AppResizablePanel.d.ts +7 -20
- package/dist/types/components/AppResourceCard.d.ts +9 -21
- package/dist/types/components/AppResult.d.ts +23 -31
- package/dist/types/components/AppRichText.d.ts +46 -21
- package/dist/types/components/AppRollingNumber.d.ts +18 -25
- package/dist/types/components/AppRouteError.d.ts +32 -50
- package/dist/types/components/AppRowSwitch.d.ts +4 -9
- package/dist/types/components/AppScoreScale.d.ts +44 -42
- package/dist/types/components/AppScrollbar.d.ts +11 -16
- package/dist/types/components/AppSearch.d.ts +39 -37
- package/dist/types/components/AppSectionCallToAction.d.ts +28 -24
- package/dist/types/components/AppSectionFaq.d.ts +34 -32
- package/dist/types/components/AppSectionFeatures.d.ts +21 -30
- package/dist/types/components/AppSectionHero.d.ts +16 -24
- package/dist/types/components/AppSectionLeadCapture.d.ts +33 -51
- package/dist/types/components/AppSectionLogos.d.ts +25 -30
- package/dist/types/components/AppSectionPricing.d.ts +15 -20
- package/dist/types/components/AppSectionTestimonials.d.ts +26 -32
- package/dist/types/components/AppSegmented.d.ts +40 -55
- package/dist/types/components/AppSelect.d.ts +186 -118
- package/dist/types/components/AppSeoHead.d.ts +15 -21
- package/dist/types/components/AppShell.d.ts +212 -334
- package/dist/types/components/AppShortcutLegend.d.ts +32 -39
- package/dist/types/components/AppShowMore.d.ts +22 -29
- package/dist/types/components/AppSkeleton.d.ts +17 -26
- package/dist/types/components/AppSkeletonLines.d.ts +12 -16
- package/dist/types/components/AppSlider.d.ts +74 -48
- package/dist/types/components/AppSortableList.d.ts +47 -21
- package/dist/types/components/AppSparkline.d.ts +34 -33
- package/dist/types/components/AppSpinner.d.ts +18 -17
- package/dist/types/components/AppSplash.d.ts +24 -32
- package/dist/types/components/AppSplitButton.d.ts +41 -53
- package/dist/types/components/AppSplitView.d.ts +75 -97
- package/dist/types/components/AppStatusBadge.d.ts +19 -19
- package/dist/types/components/AppStepper.d.ts +57 -61
- package/dist/types/components/AppSwitch.d.ts +24 -27
- package/dist/types/components/AppTablePagination.d.ts +34 -55
- package/dist/types/components/AppTableToolbar.d.ts +31 -44
- package/dist/types/components/AppTabs.d.ts +62 -75
- package/dist/types/components/AppTextarea.d.ts +35 -51
- package/dist/types/components/AppThemeToggle.d.ts +60 -53
- package/dist/types/components/AppTimePicker.d.ts +29 -28
- package/dist/types/components/AppTimeline.d.ts +59 -60
- package/dist/types/components/AppToast.d.ts +26 -27
- package/dist/types/components/AppToolbar.d.ts +46 -52
- package/dist/types/components/AppTooltip.d.ts +26 -30
- package/dist/types/components/AppTour.d.ts +57 -41
- package/dist/types/components/AppTreeView.d.ts +53 -30
- package/dist/types/components/AppTruncate.d.ts +16 -21
- package/dist/types/components/AppUpdateBar.d.ts +21 -26
- package/dist/types/components/AppWhatsNew.d.ts +40 -48
- package/dist/types/components/AppWizard.d.ts +64 -48
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +56 -60
- package/dist/types/components/ModalIcons.d.ts +17 -38
- package/dist/types/components/assertValidValue.d.ts +1 -5
- package/dist/types/components/iconCatalogFull/bold/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/bold/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/bold/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/bold/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/bold/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/bold/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/bold/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bold/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bold/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/bold/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bold/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bold/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/bold/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/bold/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/bold/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bold/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/bold/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/bold/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/bold/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/bold/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/bold/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/bold/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/bold/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/bold/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bold/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/bold/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/broken/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/broken/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/broken/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/broken/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/broken/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/broken/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/broken/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/broken/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/broken/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/broken/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/broken/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/broken/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/broken/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/broken/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/broken/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/broken/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/broken/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/broken/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/broken/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/broken/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/broken/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/broken/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/broken/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/broken/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/broken/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/broken/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/bulk/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/bulk/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/bulk/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/bulk/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/bulk/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/bulk/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/bulk/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bulk/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/bulk/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/bulk/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bulk/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bulk/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/bulk/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/bulk/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/bulk/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/bulk/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/bulk/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/bulk/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/bulk/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/bulk/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/bulk/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/bulk/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/bulk/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/bulk/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/bulk/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/bulk/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/linear/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/linear/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/linear/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/linear/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/linear/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/linear/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/linear/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/linear/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/linear/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/linear/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/linear/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/linear/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/linear/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/linear/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/linear/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/linear/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/linear/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/linear/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/linear/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/linear/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/linear/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/linear/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/linear/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/linear/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/linear/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/linear/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/outline/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/outline/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/outline/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/outline/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/outline/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/outline/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/outline/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/outline/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/outline/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/outline/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/outline/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/outline/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/outline/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/outline/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/outline/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/outline/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/outline/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/outline/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/outline/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/outline/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/outline/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/outline/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/outline/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/outline/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/outline/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/outline/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogFull/twotone/a.g.d.ts +2 -77
- package/dist/types/components/iconCatalogFull/twotone/b.g.d.ts +2 -83
- package/dist/types/components/iconCatalogFull/twotone/c.g.d.ts +2 -113
- package/dist/types/components/iconCatalogFull/twotone/d.g.d.ts +2 -55
- package/dist/types/components/iconCatalogFull/twotone/e.g.d.ts +2 -35
- package/dist/types/components/iconCatalogFull/twotone/f.g.d.ts +2 -43
- package/dist/types/components/iconCatalogFull/twotone/g.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/twotone/h.g.d.ts +2 -42
- package/dist/types/components/iconCatalogFull/twotone/i.g.d.ts +2 -19
- package/dist/types/components/iconCatalogFull/twotone/j.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/twotone/k.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/twotone/l.g.d.ts +2 -40
- package/dist/types/components/iconCatalogFull/twotone/m.g.d.ts +2 -99
- package/dist/types/components/iconCatalogFull/twotone/n.g.d.ts +2 -21
- package/dist/types/components/iconCatalogFull/twotone/o.g.d.ts +2 -8
- package/dist/types/components/iconCatalogFull/twotone/p.g.d.ts +2 -49
- package/dist/types/components/iconCatalogFull/twotone/q.g.d.ts +2 -9
- package/dist/types/components/iconCatalogFull/twotone/r.g.d.ts +2 -48
- package/dist/types/components/iconCatalogFull/twotone/s.g.d.ts +2 -107
- package/dist/types/components/iconCatalogFull/twotone/t.g.d.ts +2 -64
- package/dist/types/components/iconCatalogFull/twotone/u.g.d.ts +2 -17
- package/dist/types/components/iconCatalogFull/twotone/v.g.d.ts +2 -28
- package/dist/types/components/iconCatalogFull/twotone/w.g.d.ts +2 -29
- package/dist/types/components/iconCatalogFull/twotone/x.g.d.ts +2 -5
- package/dist/types/components/iconCatalogFull/twotone/y.g.d.ts +2 -3
- package/dist/types/components/iconCatalogFull/twotone/z.g.d.ts +2 -4
- package/dist/types/components/iconCatalogLoaders.g.d.ts +10 -171
- package/dist/types/components/iconGlyphs.g.d.ts +2 -238
- package/dist/types/components/iconVariants.g.d.ts +2 -1167
- package/dist/types/components/renderIconProp.d.ts +10 -9
- package/dist/types/components/textOf.d.ts +3 -0
- package/dist/types/components/toast.d.ts +13 -5
- package/dist/types/components/toastStore.d.ts +33 -4
- package/dist/types/components/useNodeLabels.d.ts +12 -12
- package/dist/types/components/useWuiControl.d.ts +73 -49
- package/dist/types/components/warnUnknownProps.d.ts +3 -3
- package/dist/types/components/withTooltip.d.ts +3 -1
- package/dist/types/index.d.ts +180 -164
- package/dist/types/lib/CheckField.d.ts +19 -1
- package/dist/types/lib/DiscardPrompt.d.ts +10 -12
- package/dist/types/lib/FieldMessage.d.ts +8 -12
- package/dist/types/lib/FileItemRow.d.ts +19 -23
- package/dist/types/lib/FocusPanel.d.ts +5 -3
- package/dist/types/lib/TargetLink.d.ts +9 -0
- package/dist/types/lib/buttonClass.d.ts +0 -4
- package/dist/types/lib/devWarn.d.ts +2 -2
- package/dist/types/lib/emptyIllustration.d.ts +9 -18
- package/dist/types/lib/emptyValue.d.ts +2 -6
- package/dist/types/lib/fieldState.d.ts +3 -1
- package/dist/types/lib/fileItem.d.ts +16 -7
- package/dist/types/lib/fillLabel.d.ts +1 -1
- package/dist/types/lib/flagStyles.d.ts +1 -1
- package/dist/types/lib/focusField.d.ts +2 -2
- package/dist/types/lib/initials.d.ts +3 -4
- package/dist/types/lib/labelWithHelp.d.ts +2 -6
- package/dist/types/lib/linkTarget.d.ts +33 -19
- package/dist/types/lib/navMatch.d.ts +7 -10
- package/dist/types/lib/pageWindow.d.ts +7 -8
- package/dist/types/lib/qrCode.d.ts +17 -37
- package/dist/types/lib/sectionShell.d.ts +39 -31
- package/dist/types/lib/shellCookie.d.ts +3 -3
- package/dist/types/lib/shortcutChip.d.ts +4 -3
- package/dist/types/lib/svgNodes.d.ts +4 -0
- package/dist/types/lib/useCommandPaletteShortcut.d.ts +3 -3
- package/dist/types/lib/useElementEntry.d.ts +16 -0
- package/dist/types/lib/useFileDrop.d.ts +23 -16
- package/dist/types/lib/useFloatingStack.d.ts +5 -4
- package/dist/types/lib/useListShortcuts.d.ts +9 -7
- package/dist/types/lib/usePagination.d.ts +8 -6
- package/dist/types/lib/useTableView.d.ts +17 -19
- package/dist/types/lib/wuiMarker.d.ts +12 -10
- package/dist/types/reactAugmentations.d.ts +22 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/api/idempotencyKey.js +1 -0
- package/dist/web-core/dist/query/listQuery.js +1 -1
- package/package.json +16 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e=/^\s*```/,t=/^\s*```\s*(\S*)/,n=/^\s{0,3}(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/,r=/^\s*([-*_])(\s*\1){2,}\s*$/,i=/^(\s*)[-*+]\s+(.*)$/,a=/^(\s*)(\d{1,9})[.)]\s+(.*)$/,o=/^\s*>\s?(.*)$/,s=/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)*\|?\s*$/,c=e=>e.includes(`|`);function
|
|
1
|
+
var e=/^\s*```/,t=/^\s*```\s*(\S*)/,n=/^\s{0,3}(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/,r=/^\s*([-*_])(\s*\1){2,}\s*$/,i=/^(\s*)[-*+]\s+(.*)$/,a=/^(\s*)(\d{1,9})[.)]\s+(.*)$/,o=/^\s*>\s?(.*)$/,s=/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)*\|?\s*$/,c=[1,2,3,4,5,6],l=e=>e.includes(`|`);function u(e){let t=e.trim();return t.startsWith(`|`)&&(t=t.slice(1)),t.endsWith(`|`)&&(t=t.slice(0,-1)),t.split(`|`).map(e=>e.trim())}function d(e,t){let n=e[t];if(n===void 0)throw Error(`startsTable was called past the last source line`);let r=e[t+1];return r!==void 0&&l(n)&&r.includes(`|`)&&s.test(r)}function f(t,s){let c=t[s];if(c===void 0)throw Error(`startsBlock was called past the last source line`);return e.test(c)||o.test(c)||i.test(c)||a.test(c)||n.test(c)||r.test(c)||d(t,s)}function p(e){let t=e.replace(/\t/g,` `).length;return Math.min(Math.floor(t/2),4)}function m(e){let t=a.exec(e);if(t){let e=t[1],n=t[2],r=t[3];if(e===void 0||n===void 0||r===void 0)throw Error(`The ordered list pattern always captures its indent, number and text`);return{text:r,depth:p(e),ordered:!0,number:Number(n)}}let n=i.exec(e);if(n){let e=n[1],t=n[2];if(e===void 0||t===void 0)throw Error(`The bullet list pattern always captures its indent and text`);return{text:t,depth:p(e),ordered:!1,number:0}}return null}function h(i){let a=(i??``).replace(/\r\n?/g,`
|
|
2
2
|
`).split(`
|
|
3
|
-
`),s=[],
|
|
4
|
-
`),language:n});continue}if(
|
|
3
|
+
`),s=[],p=0;for(;p<a.length;){let i=a[p];if(i===void 0)throw Error(`parseMarkdown read past the last source line`);if(!i.trim()){p+=1;continue}if(e.test(i)){let n=t.exec(i)?.[1]||null,r=[];for(p+=1;p<a.length;){let t=a[p];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);if(e.test(t))break;r.push(t),p+=1}p+=1,s.push({type:`code`,text:r.join(`
|
|
4
|
+
`),language:n});continue}if(d(a,p)){let e=u(i),t=[];for(p+=2;p<a.length;){let e=a[p];if(e===void 0)throw Error(`parseMarkdown read past the last source line`);if(!e.trim()||!l(e))break;t.push(u(e)),p+=1}s.push({type:`table`,header:e,rows:t});continue}if(r.test(i)){s.push({type:`rule`}),p+=1;continue}let h=n.exec(i);if(h){let e=h[1],t=h[2];if(e===void 0||t===void 0)throw Error(`The heading pattern always captures its hashes and text`);let n=c[e.length-1];if(n===void 0)throw Error(`The heading pattern always captures one to six hashes`);s.push({type:`heading`,level:n,text:t}),p+=1;continue}if(o.test(i)){let e=[];for(;p<a.length;){let t=a[p];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);let n=o.exec(t);if(!n)break;let r=n[1];if(r===void 0)throw Error(`The quote pattern always captures its text`);e.push(r),p+=1}s.push({type:`quote`,lines:e});continue}let g=m(i);if(g){let e=[];for(;p<a.length;){let t=a[p];if(t===void 0)throw Error(`parseMarkdown read past the last source line`);if(!t.trim())break;let n=m(t);if(n){if(n.depth===0&&n.ordered!==g.ordered)break;e.push(n)}else if(f(a,p))break;else{let n=e[e.length-1];if(n===void 0)throw Error(`A list continuation line follows a list with no item`);n.text+=` ${t.trim()}`}p+=1}s.push({type:`list`,ordered:g.ordered,start:g.ordered?g.number:1,items:e});continue}let _=[i];for(p+=1;p<a.length;){let e=a[p];if(e===void 0)throw Error(`parseMarkdown read past the last source line`);if(!e.trim()||f(a,p))break;_.push(e),p+=1}s.push({type:`paragraph`,lines:_})}return s.map((e,t)=>({...e,key:t}))}export{h as parseMarkdown};
|
|
@@ -1,49 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* @param {string} [props.id]
|
|
16
|
-
* @param {string} [props.closeLabel] Set on every trigger as `data-close-label`, for a stylesheet to show while the pane is open. Omitted when unset.
|
|
17
|
-
* @param {string} [props.className]
|
|
18
|
-
*/
|
|
19
|
-
export default function AppAccordion(props: {
|
|
20
|
-
/** The panes, each with a title row and a content body. */
|
|
21
|
-
items: {
|
|
22
|
-
key?: string;
|
|
23
|
-
title: import('react').ReactNode;
|
|
24
|
-
content: import('react').ReactNode;
|
|
25
|
-
open?: boolean;
|
|
26
|
-
count?: number;
|
|
27
|
-
}[];
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export interface AccordionItem {
|
|
3
|
+
key?: string | undefined;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
open?: boolean | undefined;
|
|
7
|
+
count?: number | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface AppAccordionProps extends ComponentPropsWithoutRef<"div"> {
|
|
10
|
+
/**
|
|
11
|
+
* The panes, each with a title row and a content body.
|
|
12
|
+
* @default []
|
|
13
|
+
*/
|
|
14
|
+
items?: readonly AccordionItem[] | undefined;
|
|
28
15
|
/**
|
|
29
16
|
* Allows more than one pane open at a time. Leave it off for a list the reader scans.
|
|
30
17
|
* @default false
|
|
31
18
|
*/
|
|
32
|
-
multiple?: boolean;
|
|
19
|
+
multiple?: boolean | undefined;
|
|
33
20
|
/** The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens. */
|
|
34
|
-
openItems?: string[];
|
|
21
|
+
openItems?: readonly string[] | undefined;
|
|
35
22
|
/**
|
|
36
23
|
* bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.
|
|
37
24
|
* @default "bordered"
|
|
38
25
|
*/
|
|
39
|
-
variant?: "bordered" | "flat";
|
|
26
|
+
variant?: "bordered" | "flat" | undefined;
|
|
40
27
|
/** Prefix for the generated pane ids. Set it when a pane needs a stable anchor to link to. */
|
|
41
|
-
id?: string;
|
|
28
|
+
id?: string | undefined;
|
|
42
29
|
/** The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open. Omitted when unset. */
|
|
43
|
-
closeLabel?: string;
|
|
30
|
+
closeLabel?: string | undefined;
|
|
44
31
|
/**
|
|
45
32
|
* Extra classes on the list.
|
|
46
33
|
* @default ""
|
|
47
34
|
*/
|
|
48
|
-
className?: string;
|
|
49
|
-
}
|
|
35
|
+
className?: string | undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Collapsible panes — an FAQ list, a set of grouped settings, a "more detail"
|
|
39
|
+
* disclosure. Renders the theme's `.wui-accordion` markup, the same as the Razor
|
|
40
|
+
* `<app-accordion>`.
|
|
41
|
+
*
|
|
42
|
+
* Height animates through `grid-template-rows: 0fr -> 1fr` in CSS, so a pane
|
|
43
|
+
* opens to its natural height with no measuring and no max-height guess. This
|
|
44
|
+
* component only tracks which panes are open.
|
|
45
|
+
*/
|
|
46
|
+
export default function AppAccordion(props: AppAccordionProps): ReactElement;
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, JSX } from "react";
|
|
2
|
+
import type { AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
export interface AccountSwitcherAccount {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
photo?: string | undefined;
|
|
8
|
+
badge?: string | undefined;
|
|
9
|
+
href?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface AppAccountSwitcherProps extends Omit<ComponentPropsWithoutRef<"div">, "onSelect"> {
|
|
12
|
+
/**
|
|
13
|
+
* The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.
|
|
14
|
+
* @default []
|
|
15
|
+
*/
|
|
16
|
+
accounts?: AccountSwitcherAccount[] | undefined;
|
|
17
|
+
/** The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none. */
|
|
18
|
+
currentId?: string | undefined;
|
|
19
|
+
/** Fired for a row with no href. No navigation. */
|
|
20
|
+
onSelect?: ((account: AccountSwitcherAccount) => void) | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The heading above the list. It is also the group's accessible name.
|
|
23
|
+
* @default "Switch account"
|
|
24
|
+
*/
|
|
25
|
+
label?: string | undefined;
|
|
26
|
+
/** The product's router link, which receives `to`. Renders href rows with `to`, like AppWorkspaceSwitcher. */
|
|
27
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
28
|
+
}
|
|
1
29
|
/**
|
|
2
30
|
* The accounts a person can switch to, drawn as a labelled list for the user menu slot
|
|
3
31
|
* (`userMenu.section` of `AppShell`). The current account is marked, not chosen again.
|
|
@@ -8,34 +36,5 @@
|
|
|
8
36
|
*
|
|
9
37
|
* NOTE: the exported component must stay the FIRST destructured function in this file,
|
|
10
38
|
* because the parity check reads the first signature it finds as the component's public props.
|
|
11
|
-
*
|
|
12
|
-
* @param {object} props
|
|
13
|
-
* @param {{ id: string, name: string, description?: string, photo?: string, badge?: string, href?: string }[]} [props.accounts]
|
|
14
|
-
* @param {string} [props.currentId] Falls back to the first account when it matches none.
|
|
15
|
-
* @param {(account: object) => void} [props.onSelect] Fired for a row with no href. No navigation.
|
|
16
|
-
* @param {string} [props.label] Heading above the list, default "Switch account".
|
|
17
|
-
* @param {import('react').ElementType} [props.linkComponent] Renders href rows with `to`, like AppWorkspaceSwitcher.
|
|
18
39
|
*/
|
|
19
|
-
export default function AppAccountSwitcher(props:
|
|
20
|
-
/**
|
|
21
|
-
* The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.
|
|
22
|
-
* @default []
|
|
23
|
-
*/
|
|
24
|
-
accounts?: {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
photo?: string;
|
|
29
|
-
badge?: string;
|
|
30
|
-
href?: string;
|
|
31
|
-
}[];
|
|
32
|
-
/** The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none. */
|
|
33
|
-
currentId?: string;
|
|
34
|
-
onSelect?: (account: object) => void;
|
|
35
|
-
/**
|
|
36
|
-
* The heading above the list. It is also the group's accessible name.
|
|
37
|
-
* @default "Switch account"
|
|
38
|
-
*/
|
|
39
|
-
label?: string;
|
|
40
|
-
linkComponent?: import('react').ElementType;
|
|
41
|
-
}): import("react").JSX.Element | null;
|
|
40
|
+
export default function AppAccountSwitcher(props: AppAccountSwitcherProps): JSX.Element | null;
|
|
@@ -1,81 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* download. A real <button> on the theme's `.u-action` disc, so the hit area,
|
|
4
|
-
* hover tint and disabled state come from the design system rather than each
|
|
5
|
-
* screen re-inventing a bare icon button.
|
|
6
|
-
*
|
|
7
|
-
* `label` is required: an icon-only control with no accessible name is unusable with a screen
|
|
8
|
-
* reader, and it doubles as the hover/focus tooltip — shown through `AppTooltip` (Popper), so it
|
|
9
|
-
* is collision-aware: it prefers `tooltipPlacement` and flips to stay on-screen.
|
|
10
|
-
* A camera on a defect or a paperclip on a ticket uses its file mode (`onFiles`).
|
|
11
|
-
*
|
|
12
|
-
* @param {object} props
|
|
13
|
-
* @param {string|import('react').ReactNode} props.icon
|
|
14
|
-
* @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant]
|
|
15
|
-
* @param {string} props.label
|
|
16
|
-
* @param {'auto'|'top'|'bottom'|'start'|'end'} [props.tooltipPlacement]
|
|
17
|
-
* @param {string} [props.shortcut]
|
|
18
|
-
* @param {"danger"|"neutral"} [props.tone]
|
|
19
|
-
* @param {"comfortable"|"compact"} [props.density]
|
|
20
|
-
* @param {boolean} [props.disabled]
|
|
21
|
-
* @param {number} [props.size]
|
|
22
|
-
* @param {() => void} [props.onClick]
|
|
23
|
-
* @param {string} [props.className]
|
|
24
|
-
* @param {React.ElementType} [props.as] render as something else — a router `Link`, `"a"`. When a
|
|
25
|
-
* `label` is set the control is the tooltip trigger, so `as` must FORWARD A REF to its DOM node
|
|
26
|
-
* for the tooltip (Popper) to anchor correctly — router `Link`s already do; a hand-rolled `as`
|
|
27
|
-
* wrapper must use `forwardRef` (the tooltip still opens without it, but may be mispositioned).
|
|
28
|
-
* @param {string} [props.href]
|
|
29
|
-
* @param {(files: File[]) => void} [props.onFiles] turns the button into a file chooser: a hidden file input opens on click, Enter and Space, and the chosen files arrive here. The control is always a button in this mode.
|
|
30
|
-
* @param {string} [props.accept]
|
|
31
|
-
* @param {boolean} [props.multiple]
|
|
32
|
-
*/
|
|
33
|
-
export default function AppActionIcon(props: {
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ElementType, type JSX, type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
export interface AppActionIconProps extends Omit<ComponentPropsWithoutRef<"button">, "onClick" | "onClickCapture"> {
|
|
34
3
|
/** The glyph, given as a semantic icon name. */
|
|
35
|
-
icon:
|
|
4
|
+
icon: ReactNode;
|
|
36
5
|
/** The iconsax style of a named icon. */
|
|
37
|
-
iconVariant?:
|
|
6
|
+
iconVariant?: "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone" | undefined;
|
|
38
7
|
/** The accessible name of the control. It also shows as a tooltip on hover and focus. */
|
|
39
8
|
label: string;
|
|
40
9
|
/**
|
|
41
10
|
* The side the tooltip prefers. Auto picks the side with the most room.
|
|
42
11
|
* @default "auto"
|
|
43
12
|
*/
|
|
44
|
-
tooltipPlacement?:
|
|
13
|
+
tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end" | undefined;
|
|
45
14
|
/** The key that runs this action, such as J or E. It is drawn as a key chip in the tooltip. */
|
|
46
|
-
shortcut?: string;
|
|
15
|
+
shortcut?: string | undefined;
|
|
47
16
|
/** danger draws a destructive tint. neutral mutes the ink and the hover surface, for an action on a card or a quiet surface. */
|
|
48
|
-
tone?: "danger" | "neutral";
|
|
17
|
+
tone?: "danger" | "neutral" | undefined;
|
|
49
18
|
/**
|
|
50
19
|
* How much room surrounds the glyph: comfortable keeps an 8px ring, compact 4px (a 16px glyph in a 24px disc).
|
|
51
20
|
* @default "comfortable"
|
|
52
21
|
*/
|
|
53
|
-
density?: "comfortable" | "compact";
|
|
54
|
-
/**
|
|
55
|
-
* Turns the action off.
|
|
56
|
-
* @default false
|
|
57
|
-
*/
|
|
58
|
-
disabled?: boolean;
|
|
22
|
+
density?: "comfortable" | "compact" | undefined;
|
|
59
23
|
/**
|
|
60
24
|
* The glyph size in px. The disc around it scales with it.
|
|
61
25
|
* @default 20
|
|
62
26
|
*/
|
|
63
|
-
size?: number;
|
|
64
|
-
onClick?: () => void;
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
27
|
+
size?: number | undefined;
|
|
28
|
+
onClick?: ((e: MouseEvent<HTMLElement>) => void) | undefined;
|
|
29
|
+
/** Runs in the capture phase, before any handler inside the control; typed for any element, like onClick. Not run while disabled. */
|
|
30
|
+
onClickCapture?: ((e: MouseEvent<HTMLElement>) => void) | undefined;
|
|
31
|
+
/** Render as something else, a router `Link` or `"a"`. A hand-rolled `as` wrapper must use `forwardRef` for the tooltip to anchor. */
|
|
32
|
+
as?: ElementType | undefined;
|
|
33
|
+
/** The router destination when `as` is a router `Link`. */
|
|
34
|
+
to?: string | undefined;
|
|
71
35
|
/** Makes the action a link to this address. */
|
|
72
|
-
href?: string;
|
|
73
|
-
|
|
36
|
+
href?: string | undefined;
|
|
37
|
+
/** Turns the button into a file chooser: a hidden file input opens on click, Enter and Space, and the chosen files arrive here. The control is always a button in this mode. */
|
|
38
|
+
onFiles?: ((files: File[]) => void) | undefined;
|
|
74
39
|
/** The file types the chooser offers. File mode only. */
|
|
75
|
-
accept?: string;
|
|
40
|
+
accept?: string | undefined;
|
|
76
41
|
/**
|
|
77
42
|
* Allows several files. File mode only.
|
|
78
43
|
* @default false
|
|
79
44
|
*/
|
|
80
|
-
multiple?: boolean;
|
|
81
|
-
}
|
|
45
|
+
multiple?: boolean | undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The icon-only action button used in table rows and toolbars: edit, delete,
|
|
49
|
+
* download. A real <button> on the theme's `.u-action` disc, so the hit area,
|
|
50
|
+
* hover tint and disabled state come from the design system rather than each
|
|
51
|
+
* screen re-inventing a bare icon button.
|
|
52
|
+
*
|
|
53
|
+
* `label` is required: an icon-only control with no accessible name is unusable with a screen
|
|
54
|
+
* reader, and it doubles as the hover/focus tooltip, shown through `AppTooltip` (Popper), so it
|
|
55
|
+
* is collision-aware: it prefers `tooltipPlacement` and flips to stay on-screen.
|
|
56
|
+
* A camera on a defect or a paperclip on a ticket uses its file mode (`onFiles`).
|
|
57
|
+
*
|
|
58
|
+
* `as` renders as something else. When a `label` is set the control is the tooltip trigger, so
|
|
59
|
+
* `as` must FORWARD A REF to its DOM node for the tooltip (Popper) to anchor correctly; router
|
|
60
|
+
* `Link`s already do; a hand-rolled `as` wrapper must use `forwardRef` (the tooltip still opens
|
|
61
|
+
* without it, but may be mispositioned).
|
|
62
|
+
*/
|
|
63
|
+
export default function AppActionIcon(props: AppActionIconProps): JSX.Element;
|
|
@@ -1,86 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* It does two jobs, and `role` is what tells them apart for assistive technology:
|
|
7
|
-
* - REPORT a state ("we couldn't save", "your trial ends in 3 days"): keep the default
|
|
8
|
-
* `role="alert"`, or `"status"` for a notice that must not interrupt.
|
|
9
|
-
* - EXPLAIN part of the page (how a figure is worked out, what happens next): pass
|
|
10
|
-
* `role="none"` so a screen reader reads it as ordinary content instead of breaking in.
|
|
11
|
-
* `accent` adds the thick left edge that marks such an aside.
|
|
12
|
-
*
|
|
13
|
-
* @param {object} props
|
|
14
|
-
* @param {"info"|"success"|"warning"|"danger"|"neutral"} [props.tone]
|
|
15
|
-
* @param {import('react').ReactNode} props.children The alert body.
|
|
16
|
-
* @param {import('react').ReactNode} [props.title]
|
|
17
|
-
* @param {string|import('react').ReactNode} [props.icon]
|
|
18
|
-
* @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant]
|
|
19
|
-
* @param {number} [props.iconSize]
|
|
20
|
-
* @param {string} [props.image]
|
|
21
|
-
* @param {string} [props.imageAlt]
|
|
22
|
-
* @param {number} [props.imageSize]
|
|
23
|
-
* @param {string} [props.className]
|
|
24
|
-
* @param {() => void} [props.onClose] Called when dismissed
|
|
25
|
-
* @param {boolean} [props.dismissible]
|
|
26
|
-
* @param {boolean} [props.bordered]
|
|
27
|
-
* @param {boolean} [props.accent]
|
|
28
|
-
* @param {"sm"|"md"|"lg"} [props.size]
|
|
29
|
-
* @param {import('react').ReactNode} [props.action]
|
|
30
|
-
* @param {"alert"|"status"|"none"} [props.role]
|
|
31
|
-
*/
|
|
32
|
-
export default function AppAlert(props: {
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
2
|
+
export type AppAlertTone = "info" | "success" | "warning" | "danger" | "neutral";
|
|
3
|
+
export type AppAlertIconVariant = "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone";
|
|
4
|
+
export interface AppAlertProps extends Omit<ComponentPropsWithoutRef<"div">, "title" | "children" | "role"> {
|
|
33
5
|
/**
|
|
34
6
|
* The status tone. Neutral is a plain notice in ink on a grey surface, with no semantic colour.
|
|
35
7
|
* @default "info"
|
|
36
8
|
*/
|
|
37
|
-
tone?:
|
|
38
|
-
children
|
|
9
|
+
tone?: AppAlertTone | undefined;
|
|
10
|
+
children?: ReactNode | undefined;
|
|
39
11
|
/** A bold heading line above the body. */
|
|
40
|
-
title?:
|
|
12
|
+
title?: ReactNode | undefined;
|
|
41
13
|
/** A leading glyph, given as a semantic icon name. It defaults to the glyph of the tone; pass null for no badge. */
|
|
42
|
-
icon?:
|
|
14
|
+
icon?: ReactNode | undefined;
|
|
43
15
|
/** The iconsax style of a named icon. It does not change an image. */
|
|
44
|
-
iconVariant?:
|
|
16
|
+
iconVariant?: AppAlertIconVariant | undefined;
|
|
45
17
|
/** The badge glyph's width and height in px. Unset, it follows size. */
|
|
46
|
-
iconSize?: number;
|
|
18
|
+
iconSize?: number | undefined;
|
|
47
19
|
/** A custom image URL shown in the badge instead of the icon glyph. */
|
|
48
|
-
image?: string;
|
|
20
|
+
image?: string | undefined;
|
|
49
21
|
/**
|
|
50
22
|
* Alt text for the custom image.
|
|
51
23
|
* @default ""
|
|
52
24
|
*/
|
|
53
|
-
imageAlt?: string;
|
|
25
|
+
imageAlt?: string | undefined;
|
|
54
26
|
/** Width and height of the image badge in px. Unset, it follows size. */
|
|
55
|
-
imageSize?: number;
|
|
27
|
+
imageSize?: number | undefined;
|
|
56
28
|
/**
|
|
57
29
|
* Extra classes on the alert.
|
|
58
30
|
* @default ""
|
|
59
31
|
*/
|
|
60
|
-
className?: string;
|
|
61
|
-
onClose?: () => void;
|
|
32
|
+
className?: string | undefined;
|
|
33
|
+
onClose?: (() => void) | undefined;
|
|
62
34
|
/** Shows the close button. It is on by default when a close handler is set. */
|
|
63
|
-
dismissible?: boolean;
|
|
35
|
+
dismissible?: boolean | undefined;
|
|
64
36
|
/**
|
|
65
37
|
* Draws the soft border of the tone. False keeps only the tint fill.
|
|
66
38
|
* @default true
|
|
67
39
|
*/
|
|
68
|
-
bordered?: boolean;
|
|
40
|
+
bordered?: boolean | undefined;
|
|
69
41
|
/**
|
|
70
42
|
* A thick left edge in the tone colour, marking the alert as an aside.
|
|
71
43
|
* @default false
|
|
72
44
|
*/
|
|
73
|
-
accent?: boolean;
|
|
45
|
+
accent?: boolean | undefined;
|
|
74
46
|
/**
|
|
75
47
|
* Sm is a compact single line. Lg is roomier, with a larger heading, body and badge.
|
|
76
48
|
* @default "md"
|
|
77
49
|
*/
|
|
78
|
-
size?: "sm" | "md" | "lg";
|
|
50
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
79
51
|
/** A trailing action pinned to the right, usually a button. */
|
|
80
|
-
action?:
|
|
52
|
+
action?: ReactNode | undefined;
|
|
81
53
|
/**
|
|
82
54
|
* Status is for notices that must not interrupt a screen reader. None is for explanatory page content.
|
|
83
55
|
* @default "alert"
|
|
84
56
|
*/
|
|
85
|
-
role?: "alert" | "status" | "none";
|
|
86
|
-
}
|
|
57
|
+
role?: "alert" | "status" | "none" | undefined;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The shared tinted banner — wraps react-bootstrap <Alert> (same `.alert` /
|
|
61
|
+
* `.alert-{variant}` classes Bootstrap + the theme already style). Screens must
|
|
62
|
+
* use this instead of raw `className="alert alert-…"`.
|
|
63
|
+
*
|
|
64
|
+
* It does two jobs, and `role` is what tells them apart for assistive technology:
|
|
65
|
+
* - REPORT a state ("we couldn't save", "your trial ends in 3 days"): keep the default
|
|
66
|
+
* `role="alert"`, or `"status"` for a notice that must not interrupt.
|
|
67
|
+
* - EXPLAIN part of the page (how a figure is worked out, what happens next): pass
|
|
68
|
+
* `role="none"` so a screen reader reads it as ordinary content instead of breaking in.
|
|
69
|
+
* `accent` adds the thick left edge that marks such an aside.
|
|
70
|
+
*/
|
|
71
|
+
export default function AppAlert(props: AppAlertProps): ReactElement;
|
|
@@ -1,67 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* @param {object} props
|
|
12
|
-
* @param {boolean} [props.loading]
|
|
13
|
-
* @param {string|import('react').ReactNode} [props.error]
|
|
14
|
-
* @param {boolean} [props.empty]
|
|
15
|
-
* @param {import('react').ReactNode} props.children Real content, shown once loaded,
|
|
16
|
-
* error-free and non-empty.
|
|
17
|
-
* @param {() => void} [props.onRetry] Shown as a Retry button on the error state when set.
|
|
18
|
-
* @param {import('react').ReactNode} [props.skeleton]
|
|
19
|
-
* @param {string} [props.className]
|
|
20
|
-
* @param {string} [props.loadingLabel] Default "Loading".
|
|
21
|
-
* @param {string} [props.errorTitle] Default "Something went wrong".
|
|
22
|
-
* @param {string} [props.retryLabel] Default "Retry".
|
|
23
|
-
* @param {string} [props.emptyTitle] Default "Nothing to show yet".
|
|
24
|
-
*/
|
|
25
|
-
export default function AppAsyncBlock(props: {
|
|
26
|
-
/**
|
|
27
|
-
* Shows the skeleton, or a thin progress line when there is none, instead of the content.
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
loading?: boolean;
|
|
31
|
-
/** An error to show in place of the content. A falsy value means no error. */
|
|
32
|
-
error?: string | import('react').ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Shows the empty state instead of the content, for a fetch that succeeded with nothing to display.
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
empty?: boolean;
|
|
38
|
-
children: import('react').ReactNode;
|
|
39
|
-
onRetry?: () => void;
|
|
1
|
+
import type { DataState } from "@webority/web-core/query";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
3
|
+
export interface AppAsyncBlockProps<T> extends Omit<ComponentPropsWithoutRef<"div">, "children"> {
|
|
4
|
+
/** What the screen is showing: one DataState from useDataState, with status idle, loading, error, empty or data. Idle is a skipped query and draws nothing. */
|
|
5
|
+
state: DataState<T>;
|
|
6
|
+
/** Called only in the "data" state. */
|
|
7
|
+
children: (data: T) => ReactNode;
|
|
8
|
+
/** Content of the empty state. Without it, an empty state with the emptyTitle text shows. */
|
|
9
|
+
empty?: ReactNode | undefined;
|
|
40
10
|
/** A loading placeholder shaped like the content. Without it a thin indeterminate progress line shows. */
|
|
41
|
-
skeleton?:
|
|
11
|
+
skeleton?: ReactNode | undefined;
|
|
42
12
|
/**
|
|
43
13
|
* Extra classes on the wrapper.
|
|
44
14
|
* @default ""
|
|
45
15
|
*/
|
|
46
|
-
className?: string;
|
|
16
|
+
className?: string | undefined;
|
|
47
17
|
/**
|
|
48
18
|
* Replaces the built-in English text, for other languages.
|
|
49
19
|
* @default "Loading"
|
|
50
20
|
*/
|
|
51
|
-
loadingLabel?: string;
|
|
21
|
+
loadingLabel?: string | undefined;
|
|
52
22
|
/**
|
|
53
23
|
* Replaces the built-in English text, for other languages.
|
|
54
24
|
* @default "Something went wrong"
|
|
55
25
|
*/
|
|
56
|
-
errorTitle?: string;
|
|
26
|
+
errorTitle?: string | undefined;
|
|
57
27
|
/**
|
|
58
28
|
* Replaces the built-in English text, for other languages.
|
|
59
29
|
* @default "Retry"
|
|
60
30
|
*/
|
|
61
|
-
retryLabel?: string;
|
|
31
|
+
retryLabel?: string | undefined;
|
|
62
32
|
/**
|
|
63
33
|
* Replaces the built-in English text, for other languages.
|
|
64
34
|
* @default "Nothing to show yet"
|
|
65
35
|
*/
|
|
66
|
-
emptyTitle?: string;
|
|
67
|
-
}
|
|
36
|
+
emptyTitle?: string | undefined;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The loading / error / empty / data switcher every screen that fetches data needs
|
|
40
|
+
* (react.md's "Shared AsyncBlock"). React-only by design: Razor is server-rendered, so a
|
|
41
|
+
* page model already knows whether it has data by the time it renders, and there is no
|
|
42
|
+
* client-side loading or error state to switch on.
|
|
43
|
+
*/
|
|
44
|
+
export default function AppAsyncBlock<T>(props: AppAsyncBlockProps<T>): ReactElement | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
1
2
|
/**
|
|
2
3
|
* The page layout for sign-in, sign-up and reset pages: a centred panel holding the
|
|
3
4
|
* form, or a split page with the form beside an aside. The children are the form.
|
|
@@ -9,37 +10,23 @@
|
|
|
9
10
|
*
|
|
10
11
|
* `aside` is drawn only for `variant="split"`, and only from the lg breakpoint up; below
|
|
11
12
|
* it the form is alone.
|
|
12
|
-
*
|
|
13
|
-
* @param {object} props
|
|
14
|
-
* @param {import('react').ReactNode} [props.logo] Shown above the form.
|
|
15
|
-
* @param {'centred'|'split'} [props.variant] Centred panel, or the form beside an aside. Default "centred".
|
|
16
|
-
* @param {'sm'|'md'|'lg'|number} [props.maxWidth] Panel width: sm 360px, md 420px, lg 520px, or an exact px number. Default "md".
|
|
17
|
-
* @param {import('react').ReactNode} [props.aside] Drawn beside the form when variant is "split".
|
|
18
|
-
* @param {import('react').ReactNode} [props.footer] Shown under the form.
|
|
19
|
-
* @param {import('react').ReactNode} [props.children] The form or page content.
|
|
20
|
-
* @param {string} [props.className] Extra classes on the root.
|
|
21
13
|
*/
|
|
22
|
-
export
|
|
14
|
+
export interface AppAuthLayoutProps extends ComponentPropsWithoutRef<"div"> {
|
|
23
15
|
/** The brand mark above the form, usually an img with width and height. */
|
|
24
|
-
logo?:
|
|
16
|
+
logo?: ReactNode | undefined;
|
|
25
17
|
/**
|
|
26
18
|
* The form alone in the middle, or the form beside an aside panel.
|
|
27
19
|
* @default "centred"
|
|
28
20
|
*/
|
|
29
|
-
variant?:
|
|
21
|
+
variant?: "centred" | "split" | undefined;
|
|
30
22
|
/**
|
|
31
23
|
* The widest size of the form column: a preset or an exact width in px. The presets are 360, 420 and 520 px.
|
|
32
24
|
* @default "md"
|
|
33
25
|
*/
|
|
34
|
-
maxWidth?:
|
|
26
|
+
maxWidth?: "sm" | "md" | "lg" | number | undefined;
|
|
35
27
|
/** The panel beside the form. It is drawn only for variant split, and only from the lg breakpoint up. */
|
|
36
|
-
aside?:
|
|
28
|
+
aside?: ReactNode | undefined;
|
|
37
29
|
/** Small print or a link under the form. */
|
|
38
|
-
footer?:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* Extra classes on the root.
|
|
42
|
-
* @default ""
|
|
43
|
-
*/
|
|
44
|
-
className?: string;
|
|
45
|
-
}): import("react").JSX.Element;
|
|
30
|
+
footer?: ReactNode | undefined;
|
|
31
|
+
}
|
|
32
|
+
export default function AppAuthLayout(props: AppAuthLayoutProps): ReactElement;
|