@webority/ui-react 0.107.0 → 0.108.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 +26159 -26822
- package/dist/canvas-kit/manifest.json +1130 -1695
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccordion.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/AppAutocomplete.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/AppButtonGroup.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/AppChip.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/AppColorField.js +1 -1
- package/dist/components/AppColumnMenu.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/AppCountryFlag.js +1 -1
- package/dist/components/AppCountrySelect.js +1 -1
- package/dist/components/AppDashboardCell.js +1 -1
- package/dist/components/AppDashboardGrid.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/AppDetailPane.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/AppErrorSummary.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/AppFormActions.js +1 -1
- package/dist/components/AppFormRow.js +1 -1
- package/dist/components/AppFormSection.js +1 -1
- package/dist/components/AppHoverCard.js +1 -1
- package/dist/components/AppIcon.js +1 -1
- package/dist/components/AppImagePicker.js +1 -0
- package/dist/components/AppInfoTip.js +1 -1
- package/dist/components/AppInlineEdit.js +1 -1
- package/dist/components/AppInput.js +1 -1
- package/dist/components/AppInputGroup.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/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/AppMeter.js +1 -1
- package/dist/components/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppMultiSelect.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/AppOtpInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppPricingCard.js +1 -1
- package/dist/components/AppProgress.js +1 -1
- package/dist/components/AppQrCode.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRadioGroup.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/AppResizableHandle.js +1 -1
- package/dist/components/AppResizablePanel.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/AppRouteError.js +1 -1
- package/dist/components/AppScrollbar.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionCallToAction.js +1 -1
- package/dist/components/AppSectionFaq.js +1 -1
- package/dist/components/AppSectionFeatures.js +1 -1
- package/dist/components/AppSectionHero.js +1 -1
- package/dist/components/AppSectionLeadCapture.js +1 -0
- package/dist/components/AppSectionLogos.js +1 -1
- package/dist/components/AppSectionPricing.js +1 -1
- package/dist/components/AppSectionTestimonials.js +1 -1
- package/dist/components/AppSegmented.js +1 -1
- package/dist/components/AppSelect.js +1 -1
- package/dist/components/AppSeoHead.js +1 -0
- 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/AppSpinner.js +1 -1
- package/dist/components/AppSplash.js +1 -1
- package/dist/components/AppSplitButton.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/AppTableToolbar.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTagInput.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/AppToolbar.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/AppUpdateBar.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/iconCatalogNames.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/guidance.json +119 -600
- package/dist/lib/useCommandPaletteShortcut.js +1 -1
- package/dist/lib/useFileDrop.js +1 -0
- package/dist/lib/wuiMarker.js +1 -1
- package/dist/types/components/AppAccordion.d.ts +1 -1
- package/dist/types/components/AppCompareTable.d.ts +45 -10
- package/dist/types/components/AppDescriptions.d.ts +10 -8
- package/dist/types/components/AppDrawer.d.ts +37 -0
- package/dist/types/components/AppEmptyState.d.ts +12 -5
- package/dist/types/components/AppImagePicker.d.ts +149 -0
- package/dist/types/components/AppInlineEdit.d.ts +0 -1
- package/dist/types/components/AppNavigationMenu.d.ts +1 -1
- package/dist/types/components/AppNotificationCenter.d.ts +16 -1
- package/dist/types/components/AppRecordPager.d.ts +2 -2
- package/dist/types/components/AppSectionLeadCapture.d.ts +67 -0
- package/dist/types/components/AppSelect.d.ts +7 -0
- package/dist/types/components/AppSeoHead.d.ts +42 -0
- package/dist/types/components/AppShortcutLegend.d.ts +13 -1
- package/dist/types/components/AppStepper.d.ts +2 -2
- package/dist/types/components/AppTablePagination.d.ts +36 -11
- package/dist/types/components/AppWhatsNew.d.ts +11 -2
- package/dist/types/components/iconGlyphs.g.d.ts +1 -0
- package/dist/types/components/iconVariants.g.d.ts +5 -0
- package/dist/types/index.d.ts +3 -8
- package/dist/types/lib/useFileDrop.d.ts +24 -0
- package/dist/types/lib/wuiMarker.d.ts +10 -0
- package/dist/ui-react.js +1 -1
- package/package.json +5 -5
- package/dist/components/AppAvatarPicker.js +0 -1
- package/dist/components/AppInfoList.js +0 -1
- package/dist/components/AppLogoPicker.js +0 -1
- package/dist/components/AppMenubar.js +0 -1
- package/dist/components/AppPagination.js +0 -1
- package/dist/components/AppSelectMini.js +0 -1
- package/dist/components/AppSidebarMenu.js +0 -1
- package/dist/components/AppTableEmptyState.js +0 -1
- package/dist/types/components/AppAvatarPicker.d.ts +0 -92
- package/dist/types/components/AppInfoList.d.ts +0 -29
- package/dist/types/components/AppLogoPicker.d.ts +0 -125
- package/dist/types/components/AppMenubar.d.ts +0 -50
- package/dist/types/components/AppPagination.d.ts +0 -39
- package/dist/types/components/AppSelectMini.d.ts +0 -53
- package/dist/types/components/AppSidebarMenu.d.ts +0 -90
- package/dist/types/components/AppTableEmptyState.d.ts +0 -22
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import "@webority/ui-elements/elements/image-crop";
|
|
2
|
-
/**
|
|
3
|
-
* Circular (or rounded or square) logo or avatar picker with an update overlay.
|
|
4
|
-
* Click or drag-and-drop a file onto the ring; a freshly picked file previews immediately
|
|
5
|
-
* (optimistic) while the caller uploads and reflects it back via `value`.
|
|
6
|
-
*
|
|
7
|
-
* @param {object} props
|
|
8
|
-
* @param {string|null} [props.value]
|
|
9
|
-
* @param {import('react').ReactNode} [props.fallback]
|
|
10
|
-
* @param {string} [props.name]
|
|
11
|
-
* @param {(file: File) => void} props.onPick Receives a validated File, the cropped one when `crop` is set.
|
|
12
|
-
* @param {() => void} [props.onRemove] Called when the × clears the logo. A just-picked image always shows the ×; an existing `value` needs onRemove for its × to appear, because the parent owns it.
|
|
13
|
-
* @param {boolean} [props.loading]
|
|
14
|
-
* @param {boolean} [props.disabled]
|
|
15
|
-
* @param {string} [props.accept]
|
|
16
|
-
* @param {number} [props.maxSizeMb]
|
|
17
|
-
* @param {number|'free'} [props.crop]
|
|
18
|
-
* @param {string} [props.overlayIcon]
|
|
19
|
-
* @param {string} [props.overlayLabel]
|
|
20
|
-
* @param {string} [props.ariaLabel]
|
|
21
|
-
* @param {string} [props.removeLabel]
|
|
22
|
-
* @param {string} [props.label]
|
|
23
|
-
* @param {string} [props.hint]
|
|
24
|
-
* @param {string} [props.error]
|
|
25
|
-
* @param {'stacked'|'inline'|'profile'} [props.layout]
|
|
26
|
-
* @param {import('react').ReactNode} [props.title]
|
|
27
|
-
* @param {import('react').ReactNode} [props.subtitle]
|
|
28
|
-
* @param {boolean} [props.required]
|
|
29
|
-
* @param {'initials'|'avatar'} [props.variant]
|
|
30
|
-
* @param {'sm'|'md'|'lg'|number} [props.size]
|
|
31
|
-
* @param {'circle'|'rounded'|'square'} [props.shape]
|
|
32
|
-
* @param {string} [props.className]
|
|
33
|
-
*/
|
|
34
|
-
export default function AppLogoPicker(props: {
|
|
35
|
-
/** The current image URL. Null and absent both mean no image. */
|
|
36
|
-
value?: string | null;
|
|
37
|
-
/** Shown when there is no image, for example initials. */
|
|
38
|
-
fallback?: import('react').ReactNode;
|
|
39
|
-
/** The form field name, so an uncontrolled form can post the file. */
|
|
40
|
-
name?: string;
|
|
41
|
-
onPick: (file: File) => void;
|
|
42
|
-
onRemove?: () => void;
|
|
43
|
-
/**
|
|
44
|
-
* Shows a spinner and blocks interaction while the picked file uploads.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
loading?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* A non-busy, non-interactive state.
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* The file types the picker accepts.
|
|
55
|
-
* @default "image/png,image/jpeg,image/webp"
|
|
56
|
-
*/
|
|
57
|
-
accept?: string;
|
|
58
|
-
/**
|
|
59
|
-
* The largest accepted file in megabytes. 0 means no size limit.
|
|
60
|
-
* @default 5
|
|
61
|
-
*/
|
|
62
|
-
maxSizeMb?: number;
|
|
63
|
-
/** Adds a crop step before upload: a dialog lets the person drag and zoom a frame, and the picked file is the cropped one. A number is the frame's width divided by its height, such as 1 for an avatar; free lets them resize the frame. */
|
|
64
|
-
crop?: number | 'free';
|
|
65
|
-
/**
|
|
66
|
-
* The icon name for the hover overlay.
|
|
67
|
-
* @default "image"
|
|
68
|
-
*/
|
|
69
|
-
overlayIcon?: string;
|
|
70
|
-
/**
|
|
71
|
-
* The text of the hover overlay.
|
|
72
|
-
* @default "Update photo"
|
|
73
|
-
*/
|
|
74
|
-
overlayLabel?: string;
|
|
75
|
-
/**
|
|
76
|
-
* The accessible name of the upload button.
|
|
77
|
-
* @default "Upload photo"
|
|
78
|
-
*/
|
|
79
|
-
ariaLabel?: string;
|
|
80
|
-
/**
|
|
81
|
-
* The accessible name and tooltip of the remove control. Use Remove logo on a logo picker.
|
|
82
|
-
* @default "Remove photo"
|
|
83
|
-
*/
|
|
84
|
-
removeLabel?: string;
|
|
85
|
-
/** An optional field label above the ring. */
|
|
86
|
-
label?: string;
|
|
87
|
-
/** Optional helper text: below the ring when stacked, in the side column when inline or profile. */
|
|
88
|
-
hint?: string;
|
|
89
|
-
/** An inline error from the caller. It wins over an automatic rejection reason. */
|
|
90
|
-
error?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Stacked is the ring with the hint below. Inline is a profile row with the ring on the left and a title, subtitle and hint column beside it. Profile stacks the same identity block, centred, beneath the ring.
|
|
93
|
-
* @default "stacked"
|
|
94
|
-
*/
|
|
95
|
-
layout?: 'stacked' | 'inline' | 'profile';
|
|
96
|
-
/** Bold primary text beside the ring. Inline and profile layouts only. */
|
|
97
|
-
title?: import('react').ReactNode;
|
|
98
|
-
/** Muted secondary text beside the ring. Inline and profile layouts only. */
|
|
99
|
-
subtitle?: import('react').ReactNode;
|
|
100
|
-
/**
|
|
101
|
-
* Marks the field as required.
|
|
102
|
-
* @default false
|
|
103
|
-
*/
|
|
104
|
-
required?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* The placeholder style: initials text, or a standard avatar with a muted disc and a person icon when there are no initials.
|
|
107
|
-
* @default "initials"
|
|
108
|
-
*/
|
|
109
|
-
variant?: 'initials' | 'avatar';
|
|
110
|
-
/**
|
|
111
|
-
* A preset (sm 72, md 120, lg 160 pixels) or an exact ring diameter in pixels. The whole control scales from it.
|
|
112
|
-
* @default "md"
|
|
113
|
-
*/
|
|
114
|
-
size?: 'sm' | 'md' | 'lg' | number;
|
|
115
|
-
/**
|
|
116
|
-
* The ring shape.
|
|
117
|
-
* @default "circle"
|
|
118
|
-
*/
|
|
119
|
-
shape?: 'circle' | 'rounded' | 'square';
|
|
120
|
-
/**
|
|
121
|
-
* Extra classes on the field wrapper.
|
|
122
|
-
* @default ""
|
|
123
|
-
*/
|
|
124
|
-
className?: string;
|
|
125
|
-
}): import("react").JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import "@webority/ui-elements/elements/menubar";
|
|
2
|
-
/**
|
|
3
|
-
* An application menubar (File, Edit, View) whose menus open on click and on the arrow keys. The
|
|
4
|
-
* bar is one tab stop: Left and Right move across the menus, Down and Up open one, Right opens a
|
|
5
|
-
* submenu, Escape closes a level and Tab leaves; a letter jumps to the next row starting with it.
|
|
6
|
-
* Once a menu is open, pointing at another menu opens it instead. A row can carry a `shortcut`
|
|
7
|
-
* hint, drawn as a key chip at its end; like `AppDropdown` it only shows and announces the key, the
|
|
8
|
-
* page binds it. The behaviour is the shared `<wui-menubar>` element, the same one the Razor
|
|
9
|
-
* `<app-menubar>` uses. For a site's top navigation with dropdown panels use `AppNavigationMenu`.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: the exported component must stay the FIRST destructured function in this file —
|
|
12
|
-
* the parity check reads the first signature it finds as the component's public props.
|
|
13
|
-
*
|
|
14
|
-
* @param {object} props
|
|
15
|
-
* @param {{ key: string, label: string, disabled?: boolean, items: { key: string, label?: string, icon?: string|import('react').ReactNode, to?: string, onClick?: () => void, shortcut?: string, danger?: boolean, disabled?: boolean, divider?: boolean, items?: object[] }[] }[]} props.menus
|
|
16
|
-
* @param {string} [props.ariaLabel]
|
|
17
|
-
* @param {import('react').ElementType} [props.linkComponent] Component for `to` rows (e.g. Link).
|
|
18
|
-
* @param {string} [props.className]
|
|
19
|
-
*/
|
|
20
|
-
export default function AppMenubar(props: {
|
|
21
|
-
/** The menus, left to right. A row is an action or a link; a row with items opens a submenu; a divider row is a separator. */
|
|
22
|
-
menus: {
|
|
23
|
-
key: string;
|
|
24
|
-
label: string;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
items: {
|
|
27
|
-
key: string;
|
|
28
|
-
label?: string;
|
|
29
|
-
icon?: string | import('react').ReactNode;
|
|
30
|
-
to?: string;
|
|
31
|
-
onClick?: () => void;
|
|
32
|
-
shortcut?: string;
|
|
33
|
-
danger?: boolean;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
divider?: boolean;
|
|
36
|
-
items?: object[];
|
|
37
|
-
}[];
|
|
38
|
-
}[];
|
|
39
|
-
/**
|
|
40
|
-
* The accessible name of the bar.
|
|
41
|
-
* @default "Application menu"
|
|
42
|
-
*/
|
|
43
|
-
ariaLabel?: string;
|
|
44
|
-
linkComponent?: import('react').ElementType;
|
|
45
|
-
/**
|
|
46
|
-
* Extra classes on the bar.
|
|
47
|
-
* @default ""
|
|
48
|
-
*/
|
|
49
|
-
className?: string;
|
|
50
|
-
}): import("react").JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Standalone numbered pagination for lists, cards, or search results.
|
|
3
|
-
*
|
|
4
|
-
* `page` is ONE-BASED, matching the shared 1-based pagination contract.
|
|
5
|
-
* Renders nothing (null) when totalPages <= 1.
|
|
6
|
-
*
|
|
7
|
-
* @param {object} props
|
|
8
|
-
* @param {number} props.page
|
|
9
|
-
* @param {number} props.totalPages
|
|
10
|
-
* @param {(page: number) => void} props.onChange Callback fired when a page is clicked.
|
|
11
|
-
* @param {number} [props.siblings]
|
|
12
|
-
* @param {'sm'|'md'} [props.size]
|
|
13
|
-
* @param {string} [props.ariaLabel]
|
|
14
|
-
* @param {string} [props.className]
|
|
15
|
-
*/
|
|
16
|
-
export default function AppPagination(props: {
|
|
17
|
-
/** Current page, 1-based. The page button for this page carries aria-current set to page. */
|
|
18
|
-
page: number;
|
|
19
|
-
/** Total page count. The component renders nothing when it is 1 or less. */
|
|
20
|
-
totalPages: number;
|
|
21
|
-
onChange: (page: number) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Window radius: how many page buttons sit either side of the current page before an ellipsis appears. The default of 1 shows the current page plus or minus one.
|
|
24
|
-
* @default 1
|
|
25
|
-
*/
|
|
26
|
-
siblings?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Control size: compact ('sm') or standard ('md').
|
|
29
|
-
* @default "md"
|
|
30
|
-
*/
|
|
31
|
-
size?: 'sm' | 'md';
|
|
32
|
-
/**
|
|
33
|
-
* Accessible label for the nav element.
|
|
34
|
-
* @default "Pagination"
|
|
35
|
-
*/
|
|
36
|
-
ariaLabel?: string;
|
|
37
|
-
/** Extra CSS class to add to the nav wrapper. */
|
|
38
|
-
className?: string;
|
|
39
|
-
}): import("react").JSX.Element | null;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import "@webority/ui-elements/elements/select";
|
|
2
|
-
/**
|
|
3
|
-
* A compact select for toolbars and filters, drawn by the shared `<wui-select>` element in compact mode.
|
|
4
|
-
*
|
|
5
|
-
* @param {object} props
|
|
6
|
-
* @param {string} [props.value]
|
|
7
|
-
* @param {(value: string) => void} [props.onChange] Called with the new value when the user picks an option.
|
|
8
|
-
* @param {Array<{ value: string, label?: import('react').ReactNode, icon?: string }>} [props.options]
|
|
9
|
-
* @param {string} [props.placeholder]
|
|
10
|
-
* @param {string} [props.name]
|
|
11
|
-
* @param {string} [props.ariaLabel]
|
|
12
|
-
* @param {string} [props.id]
|
|
13
|
-
* @param {boolean} [props.disabled]
|
|
14
|
-
* @param {"sm"|"lg"} [props.size]
|
|
15
|
-
* @param {string} [props.icon]
|
|
16
|
-
* @param {string} [props.prefix]
|
|
17
|
-
* @param {string} [props.className]
|
|
18
|
-
*/
|
|
19
|
-
export default function AppSelectMini(props: {
|
|
20
|
-
/** The selected option's value. Unset, the control is cleared. */
|
|
21
|
-
value?: string;
|
|
22
|
-
onChange?: (value: string) => void;
|
|
23
|
-
/**
|
|
24
|
-
* The options. Omitted, the select has no options.
|
|
25
|
-
* @default []
|
|
26
|
-
*/
|
|
27
|
-
options?: Array<{
|
|
28
|
-
value: string;
|
|
29
|
-
label?: import('react').ReactNode;
|
|
30
|
-
icon?: string;
|
|
31
|
-
}>;
|
|
32
|
-
/**
|
|
33
|
-
* Text shown while no value is selected.
|
|
34
|
-
* @default "Select..."
|
|
35
|
-
*/
|
|
36
|
-
placeholder?: string;
|
|
37
|
-
/** Form field name of the select. */
|
|
38
|
-
name?: string;
|
|
39
|
-
/** Accessible name of the select. */
|
|
40
|
-
ariaLabel?: string;
|
|
41
|
-
/** Element id of the select. */
|
|
42
|
-
id?: string;
|
|
43
|
-
/** Disables the select so its value cannot change. */
|
|
44
|
-
disabled?: boolean;
|
|
45
|
-
/** Compact size around the default 32px picker. */
|
|
46
|
-
size?: "sm" | "lg";
|
|
47
|
-
/** A leading library icon, such as funnel or sort-down. */
|
|
48
|
-
icon?: string;
|
|
49
|
-
/** Static text before the value, such as Sort:. */
|
|
50
|
-
prefix?: string;
|
|
51
|
-
/** Extra classes on the select, so a caller can position or space it. */
|
|
52
|
-
className?: string;
|
|
53
|
-
}): import("react").JSX.Element;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A slide-in sidebar or drawer panel on react-bootstrap `<Offcanvas>`.
|
|
3
|
-
*
|
|
4
|
-
* Offcanvas supplies the backdrop, slide animation, background scroll lock, Escape to close,
|
|
5
|
-
* focus trap and ARIA dialog wiring. Opens from either side, or from the top or bottom. Themed
|
|
6
|
-
* via the app tokens so it renders correctly in dark mode.
|
|
7
|
-
*
|
|
8
|
-
* @param {object} props
|
|
9
|
-
* @param {boolean} props.show
|
|
10
|
-
* @param {() => void} props.onHide Closes the panel: the header close button, the backdrop and Escape.
|
|
11
|
-
* @param {"left"|"right"|"start"|"end"|"top"|"bottom"} [props.side]
|
|
12
|
-
* @param {import('react').ReactNode} props.children The panel body.
|
|
13
|
-
* @param {import('react').ReactNode} [props.title]
|
|
14
|
-
* @param {string} [props.titleIcon]
|
|
15
|
-
* @param {import('react').ReactNode} [props.header]
|
|
16
|
-
* @param {import('react').ReactNode} [props.footer]
|
|
17
|
-
* @param {string} [props.width]
|
|
18
|
-
* @param {string} [props.maxWidth]
|
|
19
|
-
* @param {"on"|"static"|"off"} [props.backdrop]
|
|
20
|
-
* @param {boolean} [props.scroll]
|
|
21
|
-
* @param {boolean} [props.keyboard]
|
|
22
|
-
* @param {boolean} [props.closeButton]
|
|
23
|
-
* @param {string} [props.closeLabel]
|
|
24
|
-
* @param {string} [props.responsive]
|
|
25
|
-
* @param {string} [props.className]
|
|
26
|
-
* @param {string} [props.bodyClassName]
|
|
27
|
-
* @param {string} [props.ariaLabel]
|
|
28
|
-
*/
|
|
29
|
-
export default function AppSidebarMenu(props: {
|
|
30
|
-
/** Whether the panel is open. The caller owns this state. */
|
|
31
|
-
show: boolean;
|
|
32
|
-
onHide: () => void;
|
|
33
|
-
/**
|
|
34
|
-
* The edge it opens from. left and start open from the start edge, right and end from the end edge.
|
|
35
|
-
* @default "right"
|
|
36
|
-
*/
|
|
37
|
-
side?: "left" | "right" | "start" | "end" | "top" | "bottom";
|
|
38
|
-
children: import('react').ReactNode;
|
|
39
|
-
/** Title of the default header bar. A text title also names the dialog, unless ariaLabel is set. */
|
|
40
|
-
title?: import('react').ReactNode;
|
|
41
|
-
/** Library icon beside the title in the default header bar. */
|
|
42
|
-
titleIcon?: string;
|
|
43
|
-
/** A custom header that replaces the default header bar entirely. */
|
|
44
|
-
header?: import('react').ReactNode;
|
|
45
|
-
/** A sticky footer for action buttons. */
|
|
46
|
-
footer?: import('react').ReactNode;
|
|
47
|
-
/** Panel width for a left or right panel, such as 480px. Unset, it is 420px. On a phone a left or right panel opens at the full screen width, and maxWidth still caps it there. */
|
|
48
|
-
width?: string;
|
|
49
|
-
/** Caps the panel width, such as 600px. Unset, the theme caps it at 92vw. */
|
|
50
|
-
maxWidth?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The dimming backdrop: on shows it and a click outside closes the panel; static shows it and a click outside does not; off shows none.
|
|
53
|
-
* @default "on"
|
|
54
|
-
*/
|
|
55
|
-
backdrop?: "on" | "static" | "off";
|
|
56
|
-
/**
|
|
57
|
-
* Allows the page behind the panel to scroll.
|
|
58
|
-
* @default false
|
|
59
|
-
*/
|
|
60
|
-
scroll?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Escape closes the panel.
|
|
63
|
-
* @default true
|
|
64
|
-
*/
|
|
65
|
-
keyboard?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Shows the header close button.
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
closeButton?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* The close button's accessible name, for other languages.
|
|
73
|
-
* @default "Close"
|
|
74
|
-
*/
|
|
75
|
-
closeLabel?: string;
|
|
76
|
-
/** Breakpoint, such as lg, below which the panel acts as an offcanvas and at or above which it renders inline. */
|
|
77
|
-
responsive?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Extra classes on the panel.
|
|
80
|
-
* @default ""
|
|
81
|
-
*/
|
|
82
|
-
className?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Classes on the scrollable body region.
|
|
85
|
-
* @default ""
|
|
86
|
-
*/
|
|
87
|
-
bodyClassName?: string;
|
|
88
|
-
/** Accessible name of the dialog. Unset, a text title names it. */
|
|
89
|
-
ariaLabel?: string;
|
|
90
|
-
}): import("react").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Empty ledger body for AppDataTable.
|
|
3
|
-
*
|
|
4
|
-
* @param {object} props
|
|
5
|
-
* @param {string|import('react').ReactNode} [props.icon]
|
|
6
|
-
* @param {string|import('react').ReactNode} [props.illustration]
|
|
7
|
-
* @param {import('react').ReactNode} props.title
|
|
8
|
-
* @param {import('react').ReactNode} [props.text]
|
|
9
|
-
* @param {import('react').ReactNode} [props.action]
|
|
10
|
-
*/
|
|
11
|
-
export default function AppTableEmptyState(props: {
|
|
12
|
-
/** An icon name or a custom node shown in a round bubble. Needed unless illustration is set, which replaces it. */
|
|
13
|
-
icon?: string | import('react').ReactNode;
|
|
14
|
-
/** A named drawing (no-results, no-data, empty-inbox, no-notifications, no-files, no-access, offline or error) or your own decorative SVG node, drawn unboxed at up to 120 px. It replaces the icon bubble when set. */
|
|
15
|
-
illustration?: string | import('react').ReactNode;
|
|
16
|
-
/** The heading: what would appear here. */
|
|
17
|
-
title: import('react').ReactNode;
|
|
18
|
-
/** A supporting line of guidance below the title. */
|
|
19
|
-
text?: import('react').ReactNode;
|
|
20
|
-
/** The next step, usually a small AppButton. */
|
|
21
|
-
action?: import('react').ReactNode;
|
|
22
|
-
}): import("react").JSX.Element;
|