@webority/ui-react 0.128.0 → 0.130.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/README.md +1 -1
- package/dist/canvas-kit/kit.js +29757 -25503
- package/dist/canvas-kit/manifest.json +3343 -275
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAccountSwitcher.js +1 -0
- 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 -0
- 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/AppButton.js +1 -1
- package/dist/components/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppCell.js +1 -0
- 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/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppColorField.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/AppConfirmProvider.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/AppCountrySelect.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/AppErrorBoundary.js +1 -0
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFileTiles.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingButton.js +1 -0
- package/dist/components/AppImagePicker.js +1 -1
- package/dist/components/AppInfoTip.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/AppKpiTile.js +1 -1
- package/dist/components/AppLeadPopup.js +1 -0
- 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/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/AppPopover.js +1 -1
- package/dist/components/AppProgress.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/AppRepeater.js +1 -1
- package/dist/components/AppResourceCard.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRouteError.js +1 -1
- package/dist/components/AppScoreScale.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionHero.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/AppShell.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/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/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/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/components/useWuiControl.js +1 -1
- package/dist/guidance.json +273 -47
- package/dist/lib/CheckField.js +1 -1
- package/dist/lib/DiscardPrompt.js +1 -1
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/buttonClass.js +1 -0
- package/dist/lib/fieldState.js +1 -0
- package/dist/lib/fillLabel.js +1 -0
- package/dist/lib/labelWithHelp.js +1 -0
- package/dist/lib/linkTarget.js +1 -0
- package/dist/lib/sectionShell.js +1 -1
- package/dist/lib/vocabulary.js +1 -0
- package/dist/markdown-core/dist/links.js +1 -1
- package/dist/types/components/AppAccountSwitcher.d.ts +41 -0
- package/dist/types/components/AppActionIcon.d.ts +3 -12
- package/dist/types/components/AppAsyncBlock.d.ts +24 -0
- package/dist/types/components/AppAuthLayout.d.ts +45 -0
- package/dist/types/components/AppAutocomplete.d.ts +23 -3
- package/dist/types/components/AppAvatar.d.ts +6 -0
- package/dist/types/components/AppAvatarGroup.d.ts +6 -0
- package/dist/types/components/AppBanner.d.ts +8 -2
- package/dist/types/components/AppButton.d.ts +9 -4
- package/dist/types/components/AppCalendar.d.ts +3 -1
- package/dist/types/components/AppCard.d.ts +16 -4
- package/dist/types/components/AppCell.d.ts +36 -0
- package/dist/types/components/AppChart.d.ts +14 -0
- package/dist/types/components/AppChartCard.d.ts +60 -0
- package/dist/types/components/AppCheckbox.d.ts +23 -1
- package/dist/types/components/AppChoiceCard.d.ts +21 -0
- package/dist/types/components/AppChoiceChip.d.ts +21 -0
- package/dist/types/components/AppColorField.d.ts +45 -6
- package/dist/types/components/AppCommandPalette.d.ts +6 -0
- package/dist/types/components/AppCommentThread.d.ts +102 -3
- package/dist/types/components/AppCompareTable.d.ts +24 -0
- package/dist/types/components/AppConfirmDialog.d.ts +10 -10
- package/dist/types/components/AppConfirmProvider.d.ts +5 -6
- package/dist/types/components/AppConsentBanner.d.ts +3 -3
- package/dist/types/components/AppContextMenu.d.ts +2 -2
- package/dist/types/components/AppCopyButton.d.ts +8 -2
- package/dist/types/components/AppCountrySelect.d.ts +6 -1
- package/dist/types/components/AppDataTable.d.ts +1 -1
- package/dist/types/components/AppDatePicker.d.ts +26 -2
- package/dist/types/components/AppDateRangePicker.d.ts +32 -2
- package/dist/types/components/AppDescriptions.d.ts +4 -1
- package/dist/types/components/AppDrawer.d.ts +6 -0
- package/dist/types/components/AppDropZone.d.ts +26 -2
- package/dist/types/components/AppDropdown.d.ts +7 -7
- package/dist/types/components/AppDueDate.d.ts +42 -0
- package/dist/types/components/AppEmptyState.d.ts +3 -3
- package/dist/types/components/AppErrorBoundary.d.ts +39 -0
- package/dist/types/components/AppFileAttachment.d.ts +54 -1
- package/dist/types/components/AppFilePicker.d.ts +80 -5
- package/dist/types/components/AppFileTiles.d.ts +6 -3
- package/dist/types/components/AppFilterBar.d.ts +73 -0
- package/dist/types/components/AppFloatingButton.d.ts +70 -0
- package/dist/types/components/AppImagePicker.d.ts +64 -4
- package/dist/types/components/AppInlineEdit.d.ts +6 -0
- package/dist/types/components/AppInput.d.ts +38 -3
- package/dist/types/components/AppKanban.d.ts +32 -0
- package/dist/types/components/AppLeadPopup.d.ts +122 -0
- package/dist/types/components/AppLink.d.ts +3 -0
- package/dist/types/components/AppMentionInput.d.ts +18 -1
- package/dist/types/components/AppMetricStrip.d.ts +2 -0
- package/dist/types/components/AppModal.d.ts +9 -3
- package/dist/types/components/AppMultiSelect.d.ts +20 -3
- package/dist/types/components/AppNotificationCenter.d.ts +2 -0
- package/dist/types/components/AppNumberInput.d.ts +25 -3
- package/dist/types/components/AppOnboardingChecklist.d.ts +3 -3
- package/dist/types/components/AppOtpInput.d.ts +31 -2
- package/dist/types/components/AppPhoneNumberInput.d.ts +25 -1
- package/dist/types/components/AppPopover.d.ts +5 -5
- package/dist/types/components/AppRadio.d.ts +23 -1
- package/dist/types/components/AppRadioGroup.d.ts +26 -2
- package/dist/types/components/AppRating.d.ts +42 -3
- package/dist/types/components/AppRepeater.d.ts +3 -3
- package/dist/types/components/AppResourceCard.d.ts +2 -2
- package/dist/types/components/AppRichText.d.ts +10 -3
- package/dist/types/components/AppRouteError.d.ts +54 -0
- package/dist/types/components/AppScoreScale.d.ts +9 -3
- package/dist/types/components/AppSearch.d.ts +17 -2
- package/dist/types/components/AppSectionLeadCapture.d.ts +50 -2
- package/dist/types/components/AppSectionLogos.d.ts +2 -0
- package/dist/types/components/AppSegmented.d.ts +27 -3
- package/dist/types/components/AppSelect.d.ts +23 -3
- package/dist/types/components/AppShell.d.ts +151 -4
- package/dist/types/components/AppSlider.d.ts +29 -1
- package/dist/types/components/AppSortableList.d.ts +5 -0
- package/dist/types/components/AppSparkline.d.ts +24 -0
- package/dist/types/components/AppSplash.d.ts +2 -2
- package/dist/types/components/AppSplitButton.d.ts +10 -4
- package/dist/types/components/AppSplitView.d.ts +68 -0
- package/dist/types/components/AppStepper.d.ts +6 -0
- package/dist/types/components/AppSwitch.d.ts +24 -2
- package/dist/types/components/AppTablePagination.d.ts +44 -2
- package/dist/types/components/AppTableToolbar.d.ts +30 -0
- package/dist/types/components/AppTagInput.d.ts +20 -3
- package/dist/types/components/AppTextarea.d.ts +21 -1
- package/dist/types/components/AppTimePicker.d.ts +19 -2
- package/dist/types/components/AppTimeline.d.ts +8 -0
- package/dist/types/components/AppToast.d.ts +6 -0
- package/dist/types/components/AppToolbar.d.ts +3 -3
- package/dist/types/components/AppTooltip.d.ts +7 -4
- package/dist/types/components/AppUpdateBar.d.ts +20 -2
- package/dist/types/components/AppWhatsNew.d.ts +2 -0
- package/dist/types/components/AppWorkspaceSwitcher.d.ts +18 -0
- package/dist/types/components/iconGlyphs.g.d.ts +1 -0
- package/dist/types/components/iconVariants.g.d.ts +5 -0
- package/dist/types/components/useWuiControl.d.ts +3 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/lib/FileItemRow.d.ts +9 -2
- package/dist/types/lib/buttonClass.d.ts +9 -0
- package/dist/types/lib/fieldState.d.ts +3 -0
- package/dist/types/lib/fillLabel.d.ts +1 -0
- package/dist/types/lib/labelWithHelp.d.ts +10 -0
- package/dist/types/lib/linkTarget.d.ts +30 -0
- package/dist/types/lib/sectionShell.d.ts +0 -1
- package/dist/types/lib/vocabulary.d.ts +3 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/query/listQuery.js +1 -0
- package/package.json +8 -7
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
* The lead form section of a marketing page. The product saves the lead; the section only renders and validates.
|
|
3
3
|
* @param {object} props
|
|
4
4
|
* @param {import('react').ReactNode} props.title
|
|
5
|
-
* @param {import('react').ReactNode} [props.
|
|
5
|
+
* @param {import('react').ReactNode} [props.description]
|
|
6
6
|
* @param {{ name: "name"|"email"|"phone"|"company"|"message", label?: string, required?: boolean }[]} props.fields
|
|
7
7
|
* @param {(values: Record<string, string>) => Promise<void>} props.onSubmit A rejection shows its message in an AppAlert above the button.
|
|
8
8
|
* @param {string} [props.submitLabel] Default "Send".
|
|
9
|
+
* @param {string} [props.nameLabel] Default "Name".
|
|
10
|
+
* @param {string} [props.emailLabel] Default "Email".
|
|
11
|
+
* @param {string} [props.phoneLabel] Default "Phone number".
|
|
12
|
+
* @param {string} [props.companyLabel] Default "Company".
|
|
13
|
+
* @param {string} [props.messageLabel] Default "Message".
|
|
14
|
+
* @param {string} [props.requiredText] Default "This field is required.".
|
|
15
|
+
* @param {string} [props.invalidEmailText] Default "Enter an email address such as name@example.com.".
|
|
16
|
+
* @param {string} [props.submitErrorText] Default "We could not send your message. Please try again.".
|
|
9
17
|
* @param {import('react').ReactNode} props.successTitle
|
|
10
18
|
* @param {import('react').ReactNode} [props.successText]
|
|
11
19
|
* @param {import('react').ReactNode} [props.consent] Text under the button.
|
|
@@ -21,7 +29,7 @@ export default function AppSectionLeadCapture(props: {
|
|
|
21
29
|
/** The section's heading. */
|
|
22
30
|
title: import('react').ReactNode;
|
|
23
31
|
/** A paragraph above the form. */
|
|
24
|
-
|
|
32
|
+
description?: import('react').ReactNode;
|
|
25
33
|
/** The fields in order: name, email, phone, company or message, each optionally labelled and required. */
|
|
26
34
|
fields: {
|
|
27
35
|
name: "name" | "email" | "phone" | "company" | "message";
|
|
@@ -34,6 +42,46 @@ export default function AppSectionLeadCapture(props: {
|
|
|
34
42
|
* @default "Send"
|
|
35
43
|
*/
|
|
36
44
|
submitLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Replaces the built-in English text, for other languages.
|
|
47
|
+
* @default "Name"
|
|
48
|
+
*/
|
|
49
|
+
nameLabel?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Replaces the built-in English text, for other languages.
|
|
52
|
+
* @default "Email"
|
|
53
|
+
*/
|
|
54
|
+
emailLabel?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Replaces the built-in English text, for other languages.
|
|
57
|
+
* @default "Phone number"
|
|
58
|
+
*/
|
|
59
|
+
phoneLabel?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Replaces the built-in English text, for other languages.
|
|
62
|
+
* @default "Company"
|
|
63
|
+
*/
|
|
64
|
+
companyLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Replaces the built-in English text, for other languages.
|
|
67
|
+
* @default "Message"
|
|
68
|
+
*/
|
|
69
|
+
messageLabel?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Replaces the built-in English text, for other languages.
|
|
72
|
+
* @default "This field is required."
|
|
73
|
+
*/
|
|
74
|
+
requiredText?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Replaces the built-in English text, for other languages.
|
|
77
|
+
* @default "Enter an email address such as name@example.com."
|
|
78
|
+
*/
|
|
79
|
+
invalidEmailText?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Replaces the built-in English text, for other languages.
|
|
82
|
+
* @default "We could not send your message. Please try again."
|
|
83
|
+
*/
|
|
84
|
+
submitErrorText?: string;
|
|
37
85
|
/** The heading of the block shown after a successful send. */
|
|
38
86
|
successTitle: import('react').ReactNode;
|
|
39
87
|
/** The sentence under the success heading. */
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* @param {import('react').ReactNode} [props.subtitle]
|
|
17
17
|
* @param {"start"|"center"} [props.align]
|
|
18
18
|
* @param {"default"|"muted"} [props.variant]
|
|
19
|
+
* @param {import('react').ElementType} [props.linkComponent] Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic.
|
|
19
20
|
* @param {string} [props.className]
|
|
20
21
|
*/
|
|
21
22
|
export default function AppSectionLogos(props: {
|
|
@@ -54,6 +55,7 @@ export default function AppSectionLogos(props: {
|
|
|
54
55
|
* @default "default"
|
|
55
56
|
*/
|
|
56
57
|
variant?: "default" | "muted";
|
|
58
|
+
linkComponent?: import('react').ElementType;
|
|
57
59
|
/**
|
|
58
60
|
* Extra class names added to the section.
|
|
59
61
|
* @default ""
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @param {object} props
|
|
15
15
|
* @param {{ value: string, label: string, note?: string, icon?: string, disabled?: boolean, count?: number }[]} [props.options]
|
|
16
|
-
* @param {string} props.value
|
|
16
|
+
* @param {string} [props.value]
|
|
17
|
+
* @param {string} [props.defaultValue]
|
|
17
18
|
* @param {(value: string) => void} props.onChange
|
|
18
19
|
* @param {string} props.label
|
|
19
20
|
* @param {string} [props.name]
|
|
@@ -21,7 +22,11 @@
|
|
|
21
22
|
* @param {boolean} [props.fullWidth]
|
|
22
23
|
* @param {boolean} [props.bordered]
|
|
23
24
|
* @param {boolean} [props.disabled]
|
|
25
|
+
* @param {boolean} [props.readOnly]
|
|
26
|
+
* @param {boolean} [props.loading]
|
|
24
27
|
* @param {boolean} [props.labelVisible]
|
|
28
|
+
* @param {import('react').ReactNode} [props.help] Content for an info-tip after the visible label. Needs `labelVisible`.
|
|
29
|
+
* @param {string} [props.helpLabel] aria-label of the info-tip button. Default "More information".
|
|
25
30
|
* @param {string} [props.className]
|
|
26
31
|
*/
|
|
27
32
|
export default function AppSegmented(props: {
|
|
@@ -37,8 +42,10 @@ export default function AppSegmented(props: {
|
|
|
37
42
|
disabled?: boolean;
|
|
38
43
|
count?: number;
|
|
39
44
|
}[];
|
|
40
|
-
/** The selected option's value. */
|
|
41
|
-
value
|
|
45
|
+
/** The selected option's value. Leave it out, with defaultValue, for an uncontrolled field. */
|
|
46
|
+
value?: string;
|
|
47
|
+
/** The starting value of an uncontrolled field. */
|
|
48
|
+
defaultValue?: string;
|
|
42
49
|
onChange: (value: string) => void;
|
|
43
50
|
/** The accessible name of the group. */
|
|
44
51
|
label: string;
|
|
@@ -64,11 +71,28 @@ export default function AppSegmented(props: {
|
|
|
64
71
|
* @default false
|
|
65
72
|
*/
|
|
66
73
|
disabled?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Shows the value but blocks editing. The value still posts.
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
readOnly?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Shows a busy state and blocks input while data loads.
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
loading?: boolean;
|
|
67
84
|
/**
|
|
68
85
|
* Shows the label above the control. The accessible name stays either way.
|
|
69
86
|
* @default false
|
|
70
87
|
*/
|
|
71
88
|
labelVisible?: boolean;
|
|
89
|
+
/** Content for an info-tip after the visible label. Shown only when the label is visible. */
|
|
90
|
+
help?: import('react').ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* aria-label for the info-tip button.
|
|
93
|
+
* @default "More information"
|
|
94
|
+
*/
|
|
95
|
+
helpLabel?: string;
|
|
72
96
|
/**
|
|
73
97
|
* Extra class names added to the group.
|
|
74
98
|
* @default ""
|
|
@@ -26,6 +26,8 @@ declare const AppSelect: import("react").ForwardRefExoticComponent<{
|
|
|
26
26
|
suffix?: import('react').ReactNode;
|
|
27
27
|
/** The selected option's value. Leaving it out clears the control. */
|
|
28
28
|
value?: string;
|
|
29
|
+
/** The starting value of an uncontrolled field. */
|
|
30
|
+
defaultValue?: string;
|
|
29
31
|
onChange?: (value: string) => void;
|
|
30
32
|
/**
|
|
31
33
|
* Text shown in the empty field.
|
|
@@ -52,8 +54,11 @@ declare const AppSelect: import("react").ForwardRefExoticComponent<{
|
|
|
52
54
|
* @default false
|
|
53
55
|
*/
|
|
54
56
|
clearable?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Control size: sm, md or lg (32, 36 or 44px). md is the default.
|
|
59
|
+
* @default "md"
|
|
60
|
+
*/
|
|
61
|
+
size?: "sm" | "md" | "lg";
|
|
57
62
|
/** Icon name shown in the control. */
|
|
58
63
|
icon?: string;
|
|
59
64
|
/**
|
|
@@ -63,6 +68,16 @@ declare const AppSelect: import("react").ForwardRefExoticComponent<{
|
|
|
63
68
|
floatingLabel?: "off" | "border" | "above";
|
|
64
69
|
/** Disables the control. */
|
|
65
70
|
disabled?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Shows the value but blocks editing. The value still posts.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
readOnly?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Shows a busy state and blocks input while data loads.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
loading?: boolean;
|
|
66
81
|
/** Shows the list open, for a design preview or a controlled caller. */
|
|
67
82
|
open?: boolean;
|
|
68
83
|
/** The visible field label. */
|
|
@@ -77,10 +92,15 @@ declare const AppSelect: import("react").ForwardRefExoticComponent<{
|
|
|
77
92
|
* @default false
|
|
78
93
|
*/
|
|
79
94
|
optional?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Replaces the built-in English text, for other languages.
|
|
97
|
+
* @default "(optional)"
|
|
98
|
+
*/
|
|
99
|
+
optionalLabel?: string;
|
|
80
100
|
/** Error message shown under the field. Marks the control invalid. */
|
|
81
101
|
error?: string;
|
|
82
102
|
/** Help text shown under the field when there is no error. */
|
|
83
|
-
|
|
103
|
+
helperText?: string;
|
|
84
104
|
/** Help content shown in an info tip beside the label. */
|
|
85
105
|
help?: import('react').ReactNode;
|
|
86
106
|
/**
|
|
@@ -114,7 +114,7 @@ export type UserMenuShape = {
|
|
|
114
114
|
*/
|
|
115
115
|
section?: import('react').ReactNode;
|
|
116
116
|
/**
|
|
117
|
-
* 'item' (default) is a danger row; 'button' is a full-width
|
|
117
|
+
* 'item' (default) is a danger row; 'button' is a full-width soft danger button in its own foot.
|
|
118
118
|
*/
|
|
119
119
|
logoutVariant?: 'item' | 'button';
|
|
120
120
|
items?: {
|
|
@@ -212,6 +212,11 @@ export type SearchShape = {
|
|
|
212
212
|
* @param {{ key?: string, label?: string, collapsible?: boolean, items: NavItemShape[], after?: import('react').ReactNode }[]} [props.groups]
|
|
213
213
|
* A `collapsible` group with a `key` folds from its heading; its folded state is remembered in `foldedCookie`.
|
|
214
214
|
* @param {import('react').ReactNode} [props.brand]
|
|
215
|
+
* @param {string} [props.logoLight] Image URL of the full logo shown on the open sidebar. Ship it pre-trimmed; the library fixes only its height.
|
|
216
|
+
* @param {string} [props.logoDark] Dark-mode twin of `logoLight`, swapped in under data-theme dark. Needs `logoLight`.
|
|
217
|
+
* @param {string} [props.markLight] Image URL of the square mark shown on the collapsed rail.
|
|
218
|
+
* @param {string} [props.markDark] Dark-mode twin of `markLight`.
|
|
219
|
+
* @param {string} [props.brandName] The brand name, read by screen readers from the logo, or from the mark when there is no logo.
|
|
215
220
|
* @param {import('react').ReactNode} [props.sidebarStart]
|
|
216
221
|
* @param {import('react').ReactNode} [props.sidebarStartCompact]
|
|
217
222
|
* @param {import('react').ReactNode} [props.sidebarFooter]
|
|
@@ -227,7 +232,7 @@ export type SearchShape = {
|
|
|
227
232
|
* @param {'comfortable'|'compact'} [props.density]
|
|
228
233
|
* @param {number} [props.itemHeight]
|
|
229
234
|
* @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant]
|
|
230
|
-
* @param {'
|
|
235
|
+
* @param {'neutral'|'primary'} [props.topbarTone]
|
|
231
236
|
* @param {string} [props.navLabel]
|
|
232
237
|
* @param {string} [props.currentPath]
|
|
233
238
|
* @param {boolean} [props.rememberCollapsed]
|
|
@@ -235,6 +240,28 @@ export type SearchShape = {
|
|
|
235
240
|
* @param {string} [props.foldedCookie]
|
|
236
241
|
* @param {string} [props.tabBarLabel]
|
|
237
242
|
* @param {string} [props.moreLabel]
|
|
243
|
+
* @param {string} [props.skipLabel] Default "Skip to content".
|
|
244
|
+
* @param {string} [props.openNavLabel] Default "Open navigation".
|
|
245
|
+
* @param {string} [props.closeNavLabel] Default "Close navigation".
|
|
246
|
+
* @param {string} [props.expandNavLabel] Default "Expand navigation".
|
|
247
|
+
* @param {string} [props.collapseNavLabel] Default "Collapse navigation".
|
|
248
|
+
* @param {string} [props.newLabel] Default "New".
|
|
249
|
+
* @param {string} [props.togglePagesLabel] Default "Show or hide {name} pages".
|
|
250
|
+
* @param {string} [props.accountMenuLabel] Default "Account menu for {name}".
|
|
251
|
+
* @param {string} [props.roleLabel] Default "Role:".
|
|
252
|
+
* @param {string} [props.rolesLabel] Default "Roles:".
|
|
253
|
+
* @param {string} [props.unreadLabel] Default "Unread".
|
|
254
|
+
* @param {string} [props.markAllReadLabel] Default "Mark all read".
|
|
255
|
+
* @param {string} [props.viewAllLabel] Default "View all".
|
|
256
|
+
* @param {string} [props.loadingNotificationsText] Default "Loading…".
|
|
257
|
+
* @param {string} [props.noUnreadText] Default "No unread notifications".
|
|
258
|
+
* @param {string} [props.unreadNotificationsText] Default "{count} unread notifications".
|
|
259
|
+
* @param {string} [props.unreadBellLabel] Default "{label}, {count} unread".
|
|
260
|
+
* @param {string} [props.searchResultsLabel] Default "Search results".
|
|
261
|
+
* @param {string} [props.noResultsText] Default "No results".
|
|
262
|
+
* @param {string} [props.noResultsForText] Default "No results for “{value}”".
|
|
263
|
+
* @param {string} [props.resultsCountText] Default "{count} results".
|
|
264
|
+
* @param {string} [props.resultCountText] Default "{count} result".
|
|
238
265
|
* @param {UserMenuShape} [props.userMenu]
|
|
239
266
|
* @param {NotificationsShape} [props.notifications]
|
|
240
267
|
* @param {SearchShape} [props.search]
|
|
@@ -254,6 +281,16 @@ export default function AppShell(props: {
|
|
|
254
281
|
}[];
|
|
255
282
|
/** The logo row at the top of the sidebar. */
|
|
256
283
|
brand?: import('react').ReactNode;
|
|
284
|
+
/** Image URL of the full logo shown on the open sidebar. Ship it pre-trimmed; the library fixes only its height. */
|
|
285
|
+
logoLight?: string;
|
|
286
|
+
/** Dark-mode twin of logoLight, swapped in under data-theme dark. Needs logoLight. */
|
|
287
|
+
logoDark?: string;
|
|
288
|
+
/** Image URL of the square mark shown on the collapsed rail. Without one, the logo is clipped to a square. */
|
|
289
|
+
markLight?: string;
|
|
290
|
+
/** Dark-mode twin of markLight. */
|
|
291
|
+
markDark?: string;
|
|
292
|
+
/** The brand name, read by screen readers from the logo, or from the mark when there is no logo. */
|
|
293
|
+
brandName?: string;
|
|
257
294
|
/** Between the brand row and the nav, such as a workspace switcher or an environment badge. Hidden on the collapsed rail. */
|
|
258
295
|
sidebarStart?: import('react').ReactNode;
|
|
259
296
|
/** The same slot for the collapsed rail, typically a compact monogram control. Shown only on the desktop collapsed rail. */
|
|
@@ -293,9 +330,9 @@ export default function AppShell(props: {
|
|
|
293
330
|
iconVariant?: 'linear' | 'outline' | 'bold' | 'bulk' | 'broken' | 'twotone';
|
|
294
331
|
/**
|
|
295
332
|
* The top bar's colour. Primary paints the bar in the primary colour, with the ink that reads on it. The search field keeps its own surface.
|
|
296
|
-
* @default "
|
|
333
|
+
* @default "neutral"
|
|
297
334
|
*/
|
|
298
|
-
topbarTone?: '
|
|
335
|
+
topbarTone?: 'neutral' | 'primary';
|
|
299
336
|
/**
|
|
300
337
|
* Accessible name of the sidebar navigation.
|
|
301
338
|
* @default "Main navigation"
|
|
@@ -328,6 +365,116 @@ export default function AppShell(props: {
|
|
|
328
365
|
* @default "More"
|
|
329
366
|
*/
|
|
330
367
|
moreLabel?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Replaces the built-in English text, for other languages.
|
|
370
|
+
* @default "Skip to content"
|
|
371
|
+
*/
|
|
372
|
+
skipLabel?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Replaces the built-in English text, for other languages.
|
|
375
|
+
* @default "Open navigation"
|
|
376
|
+
*/
|
|
377
|
+
openNavLabel?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Replaces the built-in English text, for other languages.
|
|
380
|
+
* @default "Close navigation"
|
|
381
|
+
*/
|
|
382
|
+
closeNavLabel?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Replaces the built-in English text, for other languages.
|
|
385
|
+
* @default "Expand navigation"
|
|
386
|
+
*/
|
|
387
|
+
expandNavLabel?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Replaces the built-in English text, for other languages.
|
|
390
|
+
* @default "Collapse navigation"
|
|
391
|
+
*/
|
|
392
|
+
collapseNavLabel?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Replaces the built-in English text, for other languages.
|
|
395
|
+
* @default "New"
|
|
396
|
+
*/
|
|
397
|
+
newLabel?: string;
|
|
398
|
+
/**
|
|
399
|
+
* Replaces the built-in English text, for other languages. {name} is the nav item's label.
|
|
400
|
+
* @default "Show or hide {name} pages"
|
|
401
|
+
*/
|
|
402
|
+
togglePagesLabel?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Replaces the built-in English text, for other languages. {name} is the signed-in person's name.
|
|
405
|
+
* @default "Account menu for {name}"
|
|
406
|
+
*/
|
|
407
|
+
accountMenuLabel?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Replaces the built-in English text, for other languages.
|
|
410
|
+
* @default "Role:"
|
|
411
|
+
*/
|
|
412
|
+
roleLabel?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Replaces the built-in English text, for other languages.
|
|
415
|
+
* @default "Roles:"
|
|
416
|
+
*/
|
|
417
|
+
rolesLabel?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Replaces the built-in English text, for other languages.
|
|
420
|
+
* @default "Unread"
|
|
421
|
+
*/
|
|
422
|
+
unreadLabel?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Replaces the built-in English text, for other languages.
|
|
425
|
+
* @default "Mark all read"
|
|
426
|
+
*/
|
|
427
|
+
markAllReadLabel?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Replaces the built-in English text, for other languages.
|
|
430
|
+
* @default "View all"
|
|
431
|
+
*/
|
|
432
|
+
viewAllLabel?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Replaces the built-in English text, for other languages.
|
|
435
|
+
* @default "Loading…"
|
|
436
|
+
*/
|
|
437
|
+
loadingNotificationsText?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Replaces the built-in English text, for other languages. Read aloud when the unread count drops to zero.
|
|
440
|
+
* @default "No unread notifications"
|
|
441
|
+
*/
|
|
442
|
+
noUnreadText?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Replaces the built-in English text, for other languages. {count} is the unread count.
|
|
445
|
+
* @default "{count} unread notifications"
|
|
446
|
+
*/
|
|
447
|
+
unreadNotificationsText?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Replaces the built-in English text, for other languages. {label} is the bell's label and {count} the unread count.
|
|
450
|
+
* @default "{label}, {count} unread"
|
|
451
|
+
*/
|
|
452
|
+
unreadBellLabel?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Replaces the built-in English text, for other languages.
|
|
455
|
+
* @default "Search results"
|
|
456
|
+
*/
|
|
457
|
+
searchResultsLabel?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Replaces the built-in English text, for other languages.
|
|
460
|
+
* @default "No results"
|
|
461
|
+
*/
|
|
462
|
+
noResultsText?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Replaces the built-in English text, for other languages. {value} is the search text.
|
|
465
|
+
* @default "No results for “{value}”"
|
|
466
|
+
*/
|
|
467
|
+
noResultsForText?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Replaces the built-in English text, for other languages. {count} is the number of results.
|
|
470
|
+
* @default "{count} results"
|
|
471
|
+
*/
|
|
472
|
+
resultsCountText?: string;
|
|
473
|
+
/**
|
|
474
|
+
* Replaces the built-in English text, for other languages. {count} is the number of results (one).
|
|
475
|
+
* @default "{count} result"
|
|
476
|
+
*/
|
|
477
|
+
resultCountText?: string;
|
|
331
478
|
/** The account menu at the end of the topbar. */
|
|
332
479
|
userMenu?: UserMenuShape;
|
|
333
480
|
/** The notification bell. */
|
|
@@ -43,7 +43,7 @@ declare const AppSlider: import("react").ForwardRefExoticComponent<{
|
|
|
43
43
|
*/
|
|
44
44
|
optional?: boolean;
|
|
45
45
|
/** Helper text under the control. */
|
|
46
|
-
|
|
46
|
+
helperText?: string;
|
|
47
47
|
/** Error text under the control; sets aria-invalid. */
|
|
48
48
|
error?: string;
|
|
49
49
|
/** Form field name (single mode). */
|
|
@@ -54,6 +54,22 @@ declare const AppSlider: import("react").ForwardRefExoticComponent<{
|
|
|
54
54
|
endName?: string;
|
|
55
55
|
/** Disables the control. */
|
|
56
56
|
disabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Shows the value but blocks editing. The value still posts.
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
readOnly?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Shows a busy state and blocks input while data loads.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
/** The starting value of an uncontrolled field. */
|
|
68
|
+
defaultValue?: number;
|
|
69
|
+
/** The starting start of an uncontrolled range. */
|
|
70
|
+
defaultStart?: number;
|
|
71
|
+
/** The starting end of an uncontrolled range. */
|
|
72
|
+
defaultEnd?: number;
|
|
57
73
|
/** Control size tier. */
|
|
58
74
|
size?: 'sm' | 'md' | 'lg';
|
|
59
75
|
/** Shows a label with the current value or values. */
|
|
@@ -74,5 +90,17 @@ declare const AppSlider: import("react").ForwardRefExoticComponent<{
|
|
|
74
90
|
* @default ""
|
|
75
91
|
*/
|
|
76
92
|
fieldClassName?: string;
|
|
93
|
+
/** The content of the info-tip beside the label, opened by a button. */
|
|
94
|
+
help?: import('react').ReactNode;
|
|
95
|
+
/**
|
|
96
|
+
* The accessible name of the info-tip button.
|
|
97
|
+
* @default "More information"
|
|
98
|
+
*/
|
|
99
|
+
helpLabel?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Replaces the built-in English text, for other languages.
|
|
102
|
+
* @default "(optional)"
|
|
103
|
+
*/
|
|
104
|
+
optionalLabel?: string;
|
|
77
105
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
78
106
|
export default AppSlider;
|
|
@@ -44,5 +44,10 @@ declare const AppSortableList: import("react").ForwardRefExoticComponent<{
|
|
|
44
44
|
* @default ""
|
|
45
45
|
*/
|
|
46
46
|
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Replaces the built-in English text, for other languages. {name} is the item's label.
|
|
49
|
+
* @default "Reorder {name}"
|
|
50
|
+
*/
|
|
51
|
+
reorderLabel?: string;
|
|
47
52
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
48
53
|
export default AppSortableList;
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
* @param {number} [props.width]
|
|
15
15
|
* @param {number} [props.height]
|
|
16
16
|
* @param {string} [props.className]
|
|
17
|
+
* @param {string} [props.trendLabel] Default "Trend".
|
|
18
|
+
* @param {string} [props.namedTrendLabel] Default "{label} trend".
|
|
19
|
+
* @param {string} [props.oneValueText] Default "{name} has one value, {value}.".
|
|
20
|
+
* @param {string} [props.rangeText] Default "{name} from {from} to {to} across {count} points.".
|
|
17
21
|
*/
|
|
18
22
|
export default function AppSparkline(props: {
|
|
19
23
|
/** The values, in order. A value that is not a finite number (null, NaN, a string) is left out, and a series with none left draws nothing. */
|
|
@@ -35,4 +39,24 @@ export default function AppSparkline(props: {
|
|
|
35
39
|
* @default ""
|
|
36
40
|
*/
|
|
37
41
|
className?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Replaces the built-in English text, for other languages.
|
|
44
|
+
* @default "Trend"
|
|
45
|
+
*/
|
|
46
|
+
trendLabel?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Replaces the built-in English text, for other languages. The token {label} is the label prop.
|
|
49
|
+
* @default "{label} trend"
|
|
50
|
+
*/
|
|
51
|
+
namedTrendLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Replaces the built-in English text, for other languages. The tokens are {name} (the trend name) and {value} (the one value).
|
|
54
|
+
* @default "{name} has one value, {value}."
|
|
55
|
+
*/
|
|
56
|
+
oneValueText?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Replaces the built-in English text, for other languages. The tokens are {name} (the trend name), {from} and {to} (the first and last values) and {count} (the number of points).
|
|
59
|
+
* @default "{name} from {from} to {to} across {count} points."
|
|
60
|
+
*/
|
|
61
|
+
rangeText?: string;
|
|
38
62
|
}): import("react").JSX.Element | null;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @param {object} props
|
|
14
14
|
* @param {import('react').ReactNode} [props.logo]
|
|
15
15
|
* @param {string} [props.initials]
|
|
16
|
-
* @param {string} [props.
|
|
16
|
+
* @param {string} [props.description]
|
|
17
17
|
* @param {string} [props.subtext]
|
|
18
18
|
* @param {'bar'|'ring'|'dots'} [props.variant]
|
|
19
19
|
* @param {'sm'|'md'|'lg'|number} [props.size]
|
|
@@ -26,7 +26,7 @@ export default function AppSplash(props: {
|
|
|
26
26
|
/** The fallback mark shown when there is no logo. */
|
|
27
27
|
initials?: string;
|
|
28
28
|
/** One line of text under the mark, for example Signing you in. */
|
|
29
|
-
|
|
29
|
+
description?: string;
|
|
30
30
|
/** A quieter second line under the text. */
|
|
31
31
|
subtext?: string;
|
|
32
32
|
/**
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @param {object} props
|
|
10
10
|
* @param {string} props.label
|
|
11
|
-
* @param {{ key: string, label?: string, icon?: string|import('react').ReactNode, image?: string, to?: string, onClick?: () => void,
|
|
11
|
+
* @param {{ key: string, label?: string, icon?: string|import('react').ReactNode, image?: string, to?: string, onClick?: () => void, tone?: 'danger', shortcut?: string, divider?: boolean }[]} [props.items]
|
|
12
12
|
* @param {() => void} [props.onClick] Called when the main button is pressed.
|
|
13
13
|
* @param {string} [props.href]
|
|
14
14
|
* @param {'button'|'submit'|'reset'} [props.type]
|
|
15
|
-
* @param {'primary'|'
|
|
15
|
+
* @param {'primary'|'success'|'warning'|'danger'|'info'|'neutral'} [props.tone]
|
|
16
|
+
* @param {'solid'|'soft'|'outline'|'ghost'|'link'|'glass'} [props.variant]
|
|
16
17
|
* @param {'sm'|'md'|'lg'} [props.size]
|
|
17
18
|
* @param {boolean} [props.disabled]
|
|
18
19
|
* @param {boolean} [props.loading]
|
|
@@ -37,7 +38,7 @@ export default function AppSplitButton(props: {
|
|
|
37
38
|
image?: string;
|
|
38
39
|
to?: string;
|
|
39
40
|
onClick?: () => void;
|
|
40
|
-
|
|
41
|
+
tone?: 'danger';
|
|
41
42
|
shortcut?: string;
|
|
42
43
|
divider?: boolean;
|
|
43
44
|
}[];
|
|
@@ -53,7 +54,12 @@ export default function AppSplitButton(props: {
|
|
|
53
54
|
* Both halves share it.
|
|
54
55
|
* @default "primary"
|
|
55
56
|
*/
|
|
56
|
-
|
|
57
|
+
tone?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
58
|
+
/**
|
|
59
|
+
* Both halves share it.
|
|
60
|
+
* @default "solid"
|
|
61
|
+
*/
|
|
62
|
+
variant?: 'solid' | 'soft' | 'outline' | 'ghost' | 'link' | 'glass';
|
|
57
63
|
/**
|
|
58
64
|
* The size of both halves.
|
|
59
65
|
* @default "md"
|
|
@@ -36,6 +36,18 @@
|
|
|
36
36
|
* @param {boolean} [props.loading]
|
|
37
37
|
* @param {3|4|5|6|7|8} [props.listWidth]
|
|
38
38
|
* @param {'sm'|'md'|'lg'|'xl'|'xxl'} [props.stackBelow]
|
|
39
|
+
* @param {import('react').ElementType} [props.linkComponent] Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic.
|
|
40
|
+
* @param {string} [props.loadingLabel] Default "Loading".
|
|
41
|
+
* @param {string} [props.itemsLabel] Default "Items".
|
|
42
|
+
* @param {string} [props.selectItemLabel] Default "Select {title}".
|
|
43
|
+
* @param {string} [props.selectAllLabel] Default "Select all items".
|
|
44
|
+
* @param {string} [props.readingPaneLabel] Default "Reading pane".
|
|
45
|
+
* @param {string} [props.previousItemLabel] Default "Previous item".
|
|
46
|
+
* @param {string} [props.nextItemLabel] Default "Next item".
|
|
47
|
+
* @param {string} [props.openLabel] Default "Open".
|
|
48
|
+
* @param {string} [props.moveLabel] Default "Move".
|
|
49
|
+
* @param {string} [props.selectedLabel] Default "{count} selected".
|
|
50
|
+
* @param {string} [props.untitledItemLabel] Default "item".
|
|
39
51
|
* @param {string} [props.className]
|
|
40
52
|
*/
|
|
41
53
|
export default function AppSplitView(props: {
|
|
@@ -109,6 +121,62 @@ export default function AppSplitView(props: {
|
|
|
109
121
|
* @default "xl"
|
|
110
122
|
*/
|
|
111
123
|
stackBelow?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
124
|
+
linkComponent?: import('react').ElementType;
|
|
125
|
+
/**
|
|
126
|
+
* Replaces the built-in English text, for other languages.
|
|
127
|
+
* @default "Loading"
|
|
128
|
+
*/
|
|
129
|
+
loadingLabel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Replaces the built-in English text, for other languages.
|
|
132
|
+
* @default "Items"
|
|
133
|
+
*/
|
|
134
|
+
itemsLabel?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Replaces the built-in English text, for other languages. The token {title} is the item's title.
|
|
137
|
+
* @default "Select {title}"
|
|
138
|
+
*/
|
|
139
|
+
selectItemLabel?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Replaces the built-in English text, for other languages.
|
|
142
|
+
* @default "Select all items"
|
|
143
|
+
*/
|
|
144
|
+
selectAllLabel?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Replaces the built-in English text, for other languages.
|
|
147
|
+
* @default "Reading pane"
|
|
148
|
+
*/
|
|
149
|
+
readingPaneLabel?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Replaces the built-in English text, for other languages.
|
|
152
|
+
* @default "Previous item"
|
|
153
|
+
*/
|
|
154
|
+
previousItemLabel?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Replaces the built-in English text, for other languages.
|
|
157
|
+
* @default "Next item"
|
|
158
|
+
*/
|
|
159
|
+
nextItemLabel?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Replaces the built-in English text, for other languages.
|
|
162
|
+
* @default "Open"
|
|
163
|
+
*/
|
|
164
|
+
openLabel?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Replaces the built-in English text, for other languages.
|
|
167
|
+
* @default "Move"
|
|
168
|
+
*/
|
|
169
|
+
moveLabel?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Replaces the built-in English text, for other languages. The token {count} is the number of ticked items.
|
|
172
|
+
* @default "{count} selected"
|
|
173
|
+
*/
|
|
174
|
+
selectedLabel?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Replaces the built-in English text, for other languages. Read in place of a title that is not text.
|
|
177
|
+
* @default "item"
|
|
178
|
+
*/
|
|
179
|
+
untitledItemLabel?: string;
|
|
112
180
|
/**
|
|
113
181
|
* Extra classes on the root element.
|
|
114
182
|
* @default ""
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
* @param {(step: object, index: number) => void} [props.onStepClick] Makes each step a
|
|
31
31
|
* button that reports the step it stands for. React-only (no Razor counterpart).
|
|
32
32
|
* @param {string} [props.label]
|
|
33
|
+
* @param {string} [props.stepLabel] Default "Step {number}".
|
|
33
34
|
* @param {'primary'|'info'} [props.tone]
|
|
34
35
|
* @param {import('react').ElementType} [props.linkComponent] Router link for a revisitable
|
|
35
36
|
* step; it receives `to` instead of `href`.
|
|
@@ -75,6 +76,11 @@ export default function AppStepper(props: {
|
|
|
75
76
|
* @default "Progress"
|
|
76
77
|
*/
|
|
77
78
|
label?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Replaces the built-in English text, for other languages. The token {number} is the step's number.
|
|
81
|
+
* @default "Step {number}"
|
|
82
|
+
*/
|
|
83
|
+
stepLabel?: string;
|
|
78
84
|
/**
|
|
79
85
|
* The accent of the active and done steps.
|
|
80
86
|
* @default "primary"
|