@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
|
@@ -19,6 +19,7 @@ import "@webority/ui-elements/elements/filter-popover";
|
|
|
19
19
|
* never wrap.
|
|
20
20
|
*
|
|
21
21
|
* With `apply`, a search box or date range waits for Apply, or Enter in a search box, before it calls `onChange`; other choices still apply as they change.
|
|
22
|
+
* With `size` "md", every control and button in the bar draws at the 36px field height; the default "sm" is the compact toolbar height.
|
|
22
23
|
*
|
|
23
24
|
* @param {object} props
|
|
24
25
|
* @param {{ key: string, label: string, type: 'enum'|'multiEnum'|'dateRange'|'text',
|
|
@@ -29,7 +30,19 @@ import "@webority/ui-elements/elements/filter-popover";
|
|
|
29
30
|
* @param {number} [props.inline]
|
|
30
31
|
* @param {boolean} [props.floating]
|
|
31
32
|
* @param {boolean} [props.apply]
|
|
33
|
+
* @param {"sm"|"md"} [props.size]
|
|
32
34
|
* @param {string} [props.className]
|
|
35
|
+
* @param {string} [props.clearAllLabel] Default "Clear all".
|
|
36
|
+
* @param {string} [props.filtersLabel] Default "Filters".
|
|
37
|
+
* @param {string} [props.filtersActiveLabel] Default "Filters, {count} active". Names the Filters button while filters are active; {count} is the active count.
|
|
38
|
+
* @param {string} [props.keepOpenLabel] Default "Keep open".
|
|
39
|
+
* @param {string} [props.appliesAtOnceText] Default "Changes apply at once.".
|
|
40
|
+
* @param {string} [props.applyLabel] Default "Apply".
|
|
41
|
+
* @param {string} [props.anyLabel] Default "Any".
|
|
42
|
+
* @param {string} [props.removeChipLabel] Default "Remove {facet} filter {value}". Names a chip's remove button; {facet} is the facet label, {value} the chip text.
|
|
43
|
+
* @param {string} [props.dateFromText] Default "From {date}". A date range chip with only a start date.
|
|
44
|
+
* @param {string} [props.dateUntilText] Default "Until {date}". A date range chip with only an end date.
|
|
45
|
+
* @param {string} [props.dateRangeText] Default "{from} to {to}". A date range chip with both dates.
|
|
33
46
|
*/
|
|
34
47
|
export default function AppFilterBar(props: {
|
|
35
48
|
/** The facets to draw, one filter control each. A facet with no options draws nothing. */
|
|
@@ -69,9 +82,69 @@ export default function AppFilterBar(props: {
|
|
|
69
82
|
* @default false
|
|
70
83
|
*/
|
|
71
84
|
apply?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Control height. md draws every control and button at the 36px field height; sm is the compact toolbar height.
|
|
87
|
+
* @default "sm"
|
|
88
|
+
*/
|
|
89
|
+
size?: "sm" | "md";
|
|
72
90
|
/**
|
|
73
91
|
* Extra classes on the filter bar.
|
|
74
92
|
* @default ""
|
|
75
93
|
*/
|
|
76
94
|
className?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Replaces the built-in English text, for other languages.
|
|
97
|
+
* @default "Clear all"
|
|
98
|
+
*/
|
|
99
|
+
clearAllLabel?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Replaces the built-in English text, for other languages.
|
|
102
|
+
* @default "Filters"
|
|
103
|
+
*/
|
|
104
|
+
filtersLabel?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Replaces the built-in English text, for other languages. {count} is the number of active filters.
|
|
107
|
+
* @default "Filters, {count} active"
|
|
108
|
+
*/
|
|
109
|
+
filtersActiveLabel?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Replaces the built-in English text, for other languages.
|
|
112
|
+
* @default "Keep open"
|
|
113
|
+
*/
|
|
114
|
+
keepOpenLabel?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Replaces the built-in English text, for other languages.
|
|
117
|
+
* @default "Changes apply at once."
|
|
118
|
+
*/
|
|
119
|
+
appliesAtOnceText?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Replaces the built-in English text, for other languages.
|
|
122
|
+
* @default "Apply"
|
|
123
|
+
*/
|
|
124
|
+
applyLabel?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Replaces the built-in English text, for other languages.
|
|
127
|
+
* @default "Any"
|
|
128
|
+
*/
|
|
129
|
+
anyLabel?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Replaces the built-in English text, for other languages. {facet} is the facet label and {value} the chip text.
|
|
132
|
+
* @default "Remove {facet} filter {value}"
|
|
133
|
+
*/
|
|
134
|
+
removeChipLabel?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Replaces the built-in English text, for other languages. {date} is the start date of a date range chip.
|
|
137
|
+
* @default "From {date}"
|
|
138
|
+
*/
|
|
139
|
+
dateFromText?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Replaces the built-in English text, for other languages. {date} is the end date of a date range chip.
|
|
142
|
+
* @default "Until {date}"
|
|
143
|
+
*/
|
|
144
|
+
dateUntilText?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Replaces the built-in English text, for other languages. {from} and {to} are the start and end dates of a date range chip.
|
|
147
|
+
* @default "{from} to {to}"
|
|
148
|
+
*/
|
|
149
|
+
dateRangeText?: string;
|
|
77
150
|
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An icon-only circle that sits in the shared floating stack in a bottom corner. The label is
|
|
3
|
+
* the tooltip and the accessible name, and the button shows no text, so the label is required.
|
|
4
|
+
*
|
|
5
|
+
* When stacked, `className` and `style` land on the stack item; when not stacked, they land on
|
|
6
|
+
* the button, because the caller places it.
|
|
7
|
+
*
|
|
8
|
+
* @param {object} props
|
|
9
|
+
* @param {string|import('react').ReactNode} props.icon AppIcon name or a node. Required.
|
|
10
|
+
* @param {string} props.label Accessible name and tooltip. Required.
|
|
11
|
+
* @param {() => void} [props.onClick]
|
|
12
|
+
* @param {"end"|"start"} [props.position="end"] Bottom corner of the stack.
|
|
13
|
+
* @param {"primary"|"secondary"} [props.order="primary"] Slot in the stack: primary sits in the corner, secondary stacks above it.
|
|
14
|
+
* @param {"sm"|"md"|"lg"} [props.size="md"] 40px, 48px, 56px circle.
|
|
15
|
+
* @param {"primary"|"success"|"warning"|"danger"|"info"|"neutral"} [props.tone="primary"]
|
|
16
|
+
* @param {"solid"|"soft"|"outline"|"ghost"|"link"|"glass"} [props.variant="solid"]
|
|
17
|
+
* Any AppButton tone and variant.
|
|
18
|
+
* @param {boolean} [props.stacked=true] false renders the bare button with no portal and no stack item (caller places it).
|
|
19
|
+
* @param {boolean} [props.disabled=false]
|
|
20
|
+
* @param {string} [props.className]
|
|
21
|
+
* @param {import('react').CSSProperties} [props.style]
|
|
22
|
+
*/
|
|
23
|
+
export default function AppFloatingButton(props: {
|
|
24
|
+
/** AppIcon name, or a node. */
|
|
25
|
+
icon: string | import('react').ReactNode;
|
|
26
|
+
/** Accessible name and tooltip; the button shows no text. */
|
|
27
|
+
label: string;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Bottom corner of the stack.
|
|
31
|
+
* @default "end"
|
|
32
|
+
*/
|
|
33
|
+
position?: "end" | "start";
|
|
34
|
+
/**
|
|
35
|
+
* Slot in the stack: primary sits in the corner, secondary stacks above it.
|
|
36
|
+
* @default "primary"
|
|
37
|
+
*/
|
|
38
|
+
order?: "primary" | "secondary";
|
|
39
|
+
/**
|
|
40
|
+
* Circle size: 40px, 48px or 56px.
|
|
41
|
+
* @default "md"
|
|
42
|
+
*/
|
|
43
|
+
size?: "sm" | "md" | "lg";
|
|
44
|
+
/**
|
|
45
|
+
* Button tone.
|
|
46
|
+
* @default "primary"
|
|
47
|
+
*/
|
|
48
|
+
tone?: "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
49
|
+
/**
|
|
50
|
+
* Button variant.
|
|
51
|
+
* @default "solid"
|
|
52
|
+
*/
|
|
53
|
+
variant?: "solid" | "soft" | "outline" | "ghost" | "link" | "glass";
|
|
54
|
+
/**
|
|
55
|
+
* False renders the bare button with no stack item; the caller places it.
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
stacked?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Disables the button.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Custom className; on the stack item when stacked, on the button when not.
|
|
66
|
+
* @default ""
|
|
67
|
+
*/
|
|
68
|
+
className?: string;
|
|
69
|
+
style?: import('react').CSSProperties;
|
|
70
|
+
}): any;
|
|
@@ -8,7 +8,7 @@ import "@webority/ui-elements/elements/image-crop";
|
|
|
8
8
|
* @param {import('react').ReactNode} [props.fallback] Shown with no image.
|
|
9
9
|
* @param {"initials"|"avatar"} [props.variant] With no fallback, "avatar" draws a person glyph. Default "initials".
|
|
10
10
|
* @param {string} [props.name] Field name; the chosen file (the crop when cropping) is written into the named file input.
|
|
11
|
-
* @param {(file: File) => void} [props.
|
|
11
|
+
* @param {(file: File) => void} [props.onChange]
|
|
12
12
|
* @param {() => void} [props.onRemove] Shows Remove when given.
|
|
13
13
|
* @param {string} [props.removeName] Hidden field set to "true" after Remove, for a posted form.
|
|
14
14
|
* @param {boolean} [props.loading]
|
|
@@ -31,10 +31,20 @@ import "@webority/ui-elements/elements/image-crop";
|
|
|
31
31
|
* @param {string} [props.removeLabel] Default "Remove photo".
|
|
32
32
|
* @param {string} [props.ariaLabel] Default "Upload photo".
|
|
33
33
|
* @param {import('react').ReactNode} [props.label]
|
|
34
|
-
* @param {string} [props.
|
|
34
|
+
* @param {string} [props.helperText]
|
|
35
35
|
* @param {string} [props.error]
|
|
36
36
|
* @param {boolean} [props.required]
|
|
37
37
|
* @param {boolean} [props.optional] Ends the label with "(optional)". Required wins when both are set.
|
|
38
|
+
* @param {string} [props.optionalLabel] Default "(optional)".
|
|
39
|
+
* @param {string} [props.dialogTitle] Default "Crop photo" for logo, "Edit photo" for avatar.
|
|
40
|
+
* @param {string} [props.dialogSubtitle] Default "Drag the frame and zoom to choose what to keep." for logo, "Drag to position the photo, then zoom or rotate it." for avatar.
|
|
41
|
+
* @param {string} [props.save] Default "Apply" for logo, "Save photo" for avatar.
|
|
42
|
+
* @param {string} [props.cancel] Default "Cancel".
|
|
43
|
+
* @param {string} [props.cropFailed] Default "That image could not be cropped. Choose another one." for logo, "That photo could not be saved. Try again, or choose another one." for avatar.
|
|
44
|
+
* @param {string} [props.unreadable] Default "That image could not be opened. Choose another one." for logo; for avatar, the photo message, or the HEIC message for a HEIC file. {name} is the file name.
|
|
45
|
+
* @param {string} [props.uploadLabel] Default "Upload photo".
|
|
46
|
+
* @param {string} [props.changeLabel] Default "Change photo".
|
|
47
|
+
* @param {string} [props.cameraLabel] Default "Take photo".
|
|
38
48
|
* @param {string} [props.className] On the picker.
|
|
39
49
|
* @param {string} [props.fieldClassName] On the .field wrapper.
|
|
40
50
|
* @param {import('react').CSSProperties} [props.style]
|
|
@@ -58,7 +68,7 @@ export default function AppImagePicker(props: {
|
|
|
58
68
|
variant?: "initials" | "avatar";
|
|
59
69
|
/** The form field name. The chosen file, or the crop when cropping, is written into the file input, so an uncontrolled form posts it. */
|
|
60
70
|
name?: string;
|
|
61
|
-
|
|
71
|
+
onChange?: (file: File) => void;
|
|
62
72
|
onRemove?: () => void;
|
|
63
73
|
/** A form field that posts true once Remove is pressed. */
|
|
64
74
|
removeName?: string;
|
|
@@ -127,7 +137,7 @@ export default function AppImagePicker(props: {
|
|
|
127
137
|
/** An optional field label above the picker. */
|
|
128
138
|
label?: import('react').ReactNode;
|
|
129
139
|
/** Help text under the picker. An error replaces it. */
|
|
130
|
-
|
|
140
|
+
helperText?: string;
|
|
131
141
|
/** An error from the caller. It wins over a rejection reason. */
|
|
132
142
|
error?: string;
|
|
133
143
|
/**
|
|
@@ -140,6 +150,56 @@ export default function AppImagePicker(props: {
|
|
|
140
150
|
* @default false
|
|
141
151
|
*/
|
|
142
152
|
optional?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Replaces the built-in English text, for other languages.
|
|
155
|
+
* @default "(optional)"
|
|
156
|
+
*/
|
|
157
|
+
optionalLabel?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Replaces the built-in English text, for other languages. Default Edit photo for avatar.
|
|
160
|
+
* @default "Crop photo"
|
|
161
|
+
*/
|
|
162
|
+
dialogTitle?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Replaces the built-in English text, for other languages. Default Drag to position the photo, then zoom or rotate it. for avatar.
|
|
165
|
+
* @default "Drag the frame and zoom to choose what to keep."
|
|
166
|
+
*/
|
|
167
|
+
dialogSubtitle?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Replaces the built-in English text, for other languages. Default Save photo for avatar.
|
|
170
|
+
* @default "Apply"
|
|
171
|
+
*/
|
|
172
|
+
save?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Replaces the built-in English text, for other languages.
|
|
175
|
+
* @default "Cancel"
|
|
176
|
+
*/
|
|
177
|
+
cancel?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Replaces the built-in English text, for other languages. Default That photo could not be saved. Try again, or choose another one. for avatar.
|
|
180
|
+
* @default "That image could not be cropped. Choose another one."
|
|
181
|
+
*/
|
|
182
|
+
cropFailed?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Replaces the built-in English text, for other languages. {name} is the file name. Avatar keeps its HEIC message when the file is HEIC.
|
|
185
|
+
* @default "That image could not be opened. Choose another one."
|
|
186
|
+
*/
|
|
187
|
+
unreadable?: string;
|
|
188
|
+
/**
|
|
189
|
+
* The Upload button's text on the buttons controls, when no photo is set. Replaces the built-in English text.
|
|
190
|
+
* @default "Upload photo"
|
|
191
|
+
*/
|
|
192
|
+
uploadLabel?: string;
|
|
193
|
+
/**
|
|
194
|
+
* The Change button's text on the buttons controls, when a photo is set. Replaces the built-in English text.
|
|
195
|
+
* @default "Change photo"
|
|
196
|
+
*/
|
|
197
|
+
changeLabel?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The Take photo button's text on the buttons controls. Replaces the built-in English text.
|
|
200
|
+
* @default "Take photo"
|
|
201
|
+
*/
|
|
202
|
+
cameraLabel?: string;
|
|
143
203
|
/**
|
|
144
204
|
* Extra class on the picker.
|
|
145
205
|
* @default ""
|
|
@@ -31,6 +31,7 @@ import "@webority/ui-elements/elements/datepicker";
|
|
|
31
31
|
* @param {(value: string | number | null) => import('react').ReactNode} [props.renderValue] How a
|
|
32
32
|
* saved, non-empty value reads (a formatted amount, a status badge). Text and markup only: the
|
|
33
33
|
* value is a button, so it must not hold its own controls or links.
|
|
34
|
+
* @param {boolean} [props.wrap] Wraps a long value across lines (the default). `false` keeps it on one line, as a table cell or a tight header expects; a newline in a textarea value then reads as a space.
|
|
34
35
|
* @param {boolean} [props.disabled]
|
|
35
36
|
* @param {string} [props.className]
|
|
36
37
|
* @param {string} [props.id]
|
|
@@ -58,6 +59,11 @@ export default function AppInlineEdit(props: {
|
|
|
58
59
|
placeholder?: string;
|
|
59
60
|
validate?: (next: string | number | null) => string | null | undefined;
|
|
60
61
|
renderValue?: (value: string | number | null) => import('react').ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Wraps a long value across lines. false keeps it on one line, and a newline in a textarea value reads as a space.
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
wrap?: boolean;
|
|
61
67
|
/**
|
|
62
68
|
* Shows the value without the edit affordance.
|
|
63
69
|
* @default false
|
|
@@ -14,7 +14,7 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
|
14
14
|
/** A validation message under the field. It marks the control invalid for assistive technology. */
|
|
15
15
|
error?: string;
|
|
16
16
|
/** Help text under the field. An error replaces it while both are set. */
|
|
17
|
-
|
|
17
|
+
helperText?: string;
|
|
18
18
|
/** Text shown in an empty field. */
|
|
19
19
|
placeholder?: string;
|
|
20
20
|
/** The content of the info-tip beside the label, opened by a button. */
|
|
@@ -30,10 +30,10 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
|
30
30
|
*/
|
|
31
31
|
type?: string;
|
|
32
32
|
/**
|
|
33
|
-
* The control size
|
|
33
|
+
* The control size: sm, md and lg are 32, 36 and 44px. Md is the default.
|
|
34
34
|
* @default "md"
|
|
35
35
|
*/
|
|
36
|
-
size?: "sm" | "md" | "lg"
|
|
36
|
+
size?: "sm" | "md" | "lg";
|
|
37
37
|
/** A leading icon, given as a semantic icon name. */
|
|
38
38
|
leftIcon?: string;
|
|
39
39
|
/** A trailing icon button, given as a semantic icon name. It calls onRightIconClick when pressed. */
|
|
@@ -71,11 +71,41 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
readOnly?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Shows a busy state and blocks input while data loads.
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
loading?: boolean;
|
|
74
79
|
/**
|
|
75
80
|
* Shows a clear button while the field has a value.
|
|
76
81
|
* @default false
|
|
77
82
|
*/
|
|
78
83
|
clearable?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Replaces the built-in English text, for other languages.
|
|
86
|
+
* @default "Clear"
|
|
87
|
+
*/
|
|
88
|
+
clearLabel?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Replaces the built-in English text, for other languages.
|
|
91
|
+
* @default "(optional)"
|
|
92
|
+
*/
|
|
93
|
+
optionalLabel?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Replaces the built-in English text, for other languages.
|
|
96
|
+
* @default "Password requirements"
|
|
97
|
+
*/
|
|
98
|
+
requirementsTitle?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Replaces the built-in English text, for other languages.
|
|
101
|
+
* @default "Show password"
|
|
102
|
+
*/
|
|
103
|
+
showPasswordLabel?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Replaces the built-in English text, for other languages.
|
|
106
|
+
* @default "Hide password"
|
|
107
|
+
*/
|
|
108
|
+
hidePasswordLabel?: string;
|
|
79
109
|
/**
|
|
80
110
|
* Shows a live character count under the field.
|
|
81
111
|
* @default false
|
|
@@ -83,6 +113,11 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
|
83
113
|
showCount?: boolean;
|
|
84
114
|
/** The character cap. The count turns red as the cap is approached. */
|
|
85
115
|
maxLength?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Sets the monospace font, for codes and references.
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
monospace?: boolean;
|
|
86
121
|
/** A bordered box before the input, such as a currency sign or a scheme. */
|
|
87
122
|
prefix?: import('react').ReactNode;
|
|
88
123
|
/** A bordered box after the input, such as a decimal part or a domain. */
|
|
@@ -42,9 +42,14 @@
|
|
|
42
42
|
* @param {(card: object) => boolean} [props.filter] Show only the cards it returns true for; counts follow.
|
|
43
43
|
* @param {string} [props.boardId]
|
|
44
44
|
* @param {string} [props.ariaLabel]
|
|
45
|
+
* @param {string} [props.columnsLabel] Default "Board columns".
|
|
46
|
+
* @param {string} [props.expandLabel] Default "Expand {title}": the accessible name of a folded column's toggle.
|
|
47
|
+
* @param {string} [props.collapseLabel] Default "Collapse {title}": the accessible name of an open column's toggle.
|
|
45
48
|
* @param {string} [props.emptyText]
|
|
49
|
+
* @param {string} [props.helpText] The keyboard instructions for moving a card, read by screen readers.
|
|
46
50
|
* @param {boolean} [props.readOnly]
|
|
47
51
|
* @param {boolean} [props.swipeHint]
|
|
52
|
+
* @param {string} [props.swipeHintText] The phone hint's text, shown when `swipeHint` is on.
|
|
48
53
|
* @param {number} [props.columnWidth]
|
|
49
54
|
* @param {number} [props.fillOffset]
|
|
50
55
|
* @param {string} [props.activeCardKey]
|
|
@@ -52,6 +57,7 @@
|
|
|
52
57
|
* @param {boolean} [props.fill]
|
|
53
58
|
* @param {'number'|'currency'|'compact'} [props.summaryFormat]
|
|
54
59
|
* @param {'rupees'|'paise'} [props.summaryUnit]
|
|
60
|
+
* @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.
|
|
55
61
|
* @param {string} [props.className]
|
|
56
62
|
* @param {string} [props.id]
|
|
57
63
|
*/
|
|
@@ -99,11 +105,31 @@ export default function AppKanban(props: {
|
|
|
99
105
|
* @default "Board"
|
|
100
106
|
*/
|
|
101
107
|
ariaLabel?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The accessible name of the column switcher, for other languages.
|
|
110
|
+
* @default "Board columns"
|
|
111
|
+
*/
|
|
112
|
+
columnsLabel?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The accessible name of a folded column's toggle. {title} is the column's title, for other languages.
|
|
115
|
+
* @default "Expand {title}"
|
|
116
|
+
*/
|
|
117
|
+
expandLabel?: string;
|
|
118
|
+
/**
|
|
119
|
+
* The accessible name of an open column's toggle. {title} is the column's title, for other languages.
|
|
120
|
+
* @default "Collapse {title}"
|
|
121
|
+
*/
|
|
122
|
+
collapseLabel?: string;
|
|
102
123
|
/**
|
|
103
124
|
* Text of an empty column.
|
|
104
125
|
* @default "Nothing here"
|
|
105
126
|
*/
|
|
106
127
|
emptyText?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The keyboard instructions for moving a card, read by screen readers, for other languages.
|
|
130
|
+
* @default "Press Space to pick up the card. Use the Left and Right arrow keys to choose a column, then Space to drop it, or Escape to cancel."
|
|
131
|
+
*/
|
|
132
|
+
helpText?: string;
|
|
107
133
|
/**
|
|
108
134
|
* No card can be moved.
|
|
109
135
|
* @default false
|
|
@@ -114,6 +140,11 @@ export default function AppKanban(props: {
|
|
|
114
140
|
* @default false
|
|
115
141
|
*/
|
|
116
142
|
swipeHint?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* The text of the phone hint that swipeHint shows, for other languages.
|
|
145
|
+
* @default "Swipe sideways or tap a column"
|
|
146
|
+
*/
|
|
147
|
+
swipeHintText?: string;
|
|
117
148
|
/** The width of each column in px. */
|
|
118
149
|
columnWidth?: number;
|
|
119
150
|
/** The px taken off the viewport height when the board fills the screen, in place of the 240px default. */
|
|
@@ -137,6 +168,7 @@ export default function AppKanban(props: {
|
|
|
137
168
|
* @default "rupees"
|
|
138
169
|
*/
|
|
139
170
|
summaryUnit?: 'rupees' | 'paise';
|
|
171
|
+
linkComponent?: import('react').ElementType;
|
|
140
172
|
/**
|
|
141
173
|
* Extra classes on the board.
|
|
142
174
|
* @default ""
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import "@webority/ui-elements/elements/lead-popup";
|
|
2
|
+
declare const AppLeadPopup: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
/** The URL the form posts to. */
|
|
4
|
+
action: string;
|
|
5
|
+
/** The server's PublicForm name, used as the captcha action. */
|
|
6
|
+
publicForm: string;
|
|
7
|
+
/** The dialog's heading, and its accessible name. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** A sentence under the heading. */
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The fields in order: name, email, phone, company, message.
|
|
13
|
+
* @default ["name","email"]
|
|
14
|
+
*/
|
|
15
|
+
fields?: Array<"name" | "email" | "phone" | "company" | "message">;
|
|
16
|
+
/**
|
|
17
|
+
* The fields that must have a value.
|
|
18
|
+
* @default []
|
|
19
|
+
*/
|
|
20
|
+
required?: Array<"name" | "email" | "phone" | "company" | "message">;
|
|
21
|
+
/** Text put before every posted field name, such as Input. */
|
|
22
|
+
fieldPrefix?: string;
|
|
23
|
+
/** Posted name per field, for a server that names it differently. */
|
|
24
|
+
fieldNames?: Record<string, string>;
|
|
25
|
+
/** Label per field. */
|
|
26
|
+
labels?: Record<string, string>;
|
|
27
|
+
/** Maximum length per field. */
|
|
28
|
+
maxLengths?: Record<string, number>;
|
|
29
|
+
/**
|
|
30
|
+
* The submit button's text.
|
|
31
|
+
* @default "Send"
|
|
32
|
+
*/
|
|
33
|
+
submitLabel?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The heading after a successful send.
|
|
36
|
+
* @default "Thank you"
|
|
37
|
+
*/
|
|
38
|
+
successTitle?: string;
|
|
39
|
+
/** The sentence under the success heading. */
|
|
40
|
+
successText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Shown when the send fails without a message of its own.
|
|
43
|
+
* @default "Something went wrong. Please try again or contact us directly."
|
|
44
|
+
*/
|
|
45
|
+
errorText?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The close button's accessible name.
|
|
48
|
+
* @default "Close"
|
|
49
|
+
*/
|
|
50
|
+
closeLabel?: string;
|
|
51
|
+
/** A secondary link under the form. */
|
|
52
|
+
secondaryLabel?: string;
|
|
53
|
+
/** Where the secondary link goes. */
|
|
54
|
+
secondaryHref?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The text drawn above the secondary link.
|
|
57
|
+
* @default "or"
|
|
58
|
+
*/
|
|
59
|
+
secondaryDivider?: string;
|
|
60
|
+
/**
|
|
61
|
+
* exit, delay, scroll or pages. Empty by default: the host calls open().
|
|
62
|
+
* @default []
|
|
63
|
+
*/
|
|
64
|
+
triggers?: Array<"exit" | "delay" | "scroll" | "pages">;
|
|
65
|
+
/**
|
|
66
|
+
* Seconds on the site before the delay trigger counts as engaged.
|
|
67
|
+
* @default 30
|
|
68
|
+
*/
|
|
69
|
+
delaySeconds?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Percent of the page scrolled before the scroll trigger counts.
|
|
72
|
+
* @default 50
|
|
73
|
+
*/
|
|
74
|
+
scrollPercent?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Distinct pages this session before the pages trigger counts.
|
|
77
|
+
* @default 2
|
|
78
|
+
*/
|
|
79
|
+
pagesViewed?: number;
|
|
80
|
+
/** Names the browser memory of the popup. Required with triggers; build it with the user's id. */
|
|
81
|
+
storageKey?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Days a dismissed popup stays quiet.
|
|
84
|
+
* @default 30
|
|
85
|
+
*/
|
|
86
|
+
dismissDays?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Days a submitted popup stays quiet.
|
|
89
|
+
* @default 365
|
|
90
|
+
*/
|
|
91
|
+
submittedDays?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Seconds before the success view closes. 0 keeps it open.
|
|
94
|
+
* @default 5
|
|
95
|
+
*/
|
|
96
|
+
successCloseSeconds?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Draw open with no triggers, memory or posting, for a design surface.
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
preview?: boolean;
|
|
102
|
+
onShown?: (detail: {
|
|
103
|
+
trigger: string;
|
|
104
|
+
}) => void;
|
|
105
|
+
onBeforeSubmit?: (formData: FormData) => void;
|
|
106
|
+
onSubmitted?: (detail: {
|
|
107
|
+
values: object;
|
|
108
|
+
response: object | null;
|
|
109
|
+
}) => void;
|
|
110
|
+
onError?: (detail: {
|
|
111
|
+
message: string;
|
|
112
|
+
reason: "server" | "network" | "gate";
|
|
113
|
+
}) => void;
|
|
114
|
+
onClosed?: (reason: string) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Extra classes on the element.
|
|
117
|
+
* @default ""
|
|
118
|
+
*/
|
|
119
|
+
className?: string;
|
|
120
|
+
style?: import('react').CSSProperties;
|
|
121
|
+
} & import("react").RefAttributes<any>>;
|
|
122
|
+
export default AppLeadPopup;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
* @param {boolean} [props.external]
|
|
23
23
|
* @param {boolean} [props.disabled]
|
|
24
24
|
* @param {import('react').ElementType} [props.linkComponent] Router link component; it receives `to` instead of `href`. Keeps the library router-agnostic.
|
|
25
|
+
* @param {number} [props.maxLines] Clamps the label to this many lines, ending the last one with an ellipsis. Whole numbers of 1 or more only; any other value is ignored with a warning.
|
|
25
26
|
* @param {string} [props.className]
|
|
26
27
|
*/
|
|
27
28
|
export default function AppLink(props: {
|
|
@@ -60,6 +61,8 @@ export default function AppLink(props: {
|
|
|
60
61
|
*/
|
|
61
62
|
disabled?: boolean;
|
|
62
63
|
linkComponent?: import('react').ElementType;
|
|
64
|
+
/** Clamps the label to this many lines, ending the last one with an ellipsis. Omit it for a label that runs on. Whole numbers of 1 or more only. */
|
|
65
|
+
maxLines?: number;
|
|
63
66
|
/**
|
|
64
67
|
* Extra classes on the anchor.
|
|
65
68
|
* @default ""
|
|
@@ -46,6 +46,23 @@ declare const AppMentionInput: import("react").ForwardRefExoticComponent<{
|
|
|
46
46
|
* @default false
|
|
47
47
|
*/
|
|
48
48
|
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Shows the value but blocks editing. The value still posts.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
readOnly?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Shows a busy state and blocks input while data loads.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
loading?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The control size: sm, md or lg.
|
|
61
|
+
* @default "md"
|
|
62
|
+
*/
|
|
63
|
+
size?: "sm" | "md" | "lg";
|
|
64
|
+
/** The starting value of an uncontrolled field. */
|
|
65
|
+
defaultValue?: string;
|
|
49
66
|
/** Posts the stored value under this name in a form. */
|
|
50
67
|
name?: string;
|
|
51
68
|
/** The element id. The text box is the id plus -text, which is the label's target. */
|
|
@@ -55,7 +72,7 @@ declare const AppMentionInput: import("react").ForwardRefExoticComponent<{
|
|
|
55
72
|
/** An error message shown under the box. */
|
|
56
73
|
error?: string;
|
|
57
74
|
/** Helper text shown under the box when there is no error. */
|
|
58
|
-
|
|
75
|
+
helperText?: string;
|
|
59
76
|
/**
|
|
60
77
|
* Marks the field as required.
|
|
61
78
|
* @default false
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* @param {{ label: string, value: import('react').ReactNode, note?: string, href?: string, tone?: 'neutral'|'success'|'warning'|'danger'|'info' }[]} props.items
|
|
7
7
|
* @param {3|4|5} [props.columns]
|
|
8
8
|
* @param {'sm'|'md'} [props.size]
|
|
9
|
+
* @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.
|
|
9
10
|
* @param {string} [props.className]
|
|
10
11
|
*/
|
|
11
12
|
export default function AppMetricStrip(props: {
|
|
@@ -27,5 +28,6 @@ export default function AppMetricStrip(props: {
|
|
|
27
28
|
* @default "md"
|
|
28
29
|
*/
|
|
29
30
|
size?: 'sm' | 'md';
|
|
31
|
+
linkComponent?: import('react').ElementType;
|
|
30
32
|
className?: string;
|
|
31
33
|
}): import("react").JSX.Element;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @param {import('react').ReactNode} [props.title]
|
|
8
8
|
* @param {import('react').ReactNode} [props.subtitle]
|
|
9
9
|
* @param {string} [props.headerIcon]
|
|
10
|
-
* @param {'
|
|
10
|
+
* @param {'neutral'|'danger'|'success'|'warning'} [props.tone]
|
|
11
11
|
* @param {boolean} [props.dismissible]
|
|
12
12
|
* @param {() => void} props.onClose
|
|
13
13
|
* @param {() => void} [props.onBack] Shows a back arrow before the title and runs this when it is pressed.
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* @param {'center'|'top'} [props.placement]
|
|
19
19
|
* @param {boolean} [props.hideHeader]
|
|
20
20
|
* @param {string} [props.ariaLabel]
|
|
21
|
+
* @param {string} [props.closeLabel] Default "Close".
|
|
21
22
|
* @param {boolean} [props.staticBackdrop]
|
|
22
23
|
* @param {string} [props.confirmDiscard]
|
|
23
24
|
* @param {boolean} [props.dirty]
|
|
@@ -37,9 +38,9 @@ export default function AppModal(props: {
|
|
|
37
38
|
headerIcon?: string;
|
|
38
39
|
/**
|
|
39
40
|
* Tints the header icon and eyebrow to signal intent, such as a destructive or a success dialog.
|
|
40
|
-
* @default "
|
|
41
|
+
* @default "neutral"
|
|
41
42
|
*/
|
|
42
|
-
tone?: '
|
|
43
|
+
tone?: 'neutral' | 'danger' | 'success' | 'warning';
|
|
43
44
|
/**
|
|
44
45
|
* Shows the close button in the header. Pair it with staticBackdrop for a forced-choice dialog.
|
|
45
46
|
* @default true
|
|
@@ -73,6 +74,11 @@ export default function AppModal(props: {
|
|
|
73
74
|
hideHeader?: boolean;
|
|
74
75
|
/** The accessible name when the title is not plain text, or when the header is hidden. */
|
|
75
76
|
ariaLabel?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The close button's accessible name, for other languages.
|
|
79
|
+
* @default "Close"
|
|
80
|
+
*/
|
|
81
|
+
closeLabel?: string;
|
|
76
82
|
/**
|
|
77
83
|
* When true, a backdrop click and the Escape key no longer close the dialog.
|
|
78
84
|
* @default false
|