@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
|
@@ -12,15 +12,37 @@ declare const AppSwitch: import("react").ForwardRefExoticComponent<{
|
|
|
12
12
|
/** Locks the switch and dims it. */
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
/** Error message shown below the control. It replaces the
|
|
15
|
+
/** Error message shown below the control. It replaces the helper text and marks the switch invalid. */
|
|
16
16
|
error?: string;
|
|
17
17
|
/** Helper text shown below the control. It is hidden while an error shows. */
|
|
18
|
-
|
|
18
|
+
helperText?: string;
|
|
19
|
+
/** Content for the info-tip after the label. Shown only when a label is set. */
|
|
20
|
+
help?: import('react').ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* aria-label for the info-tip button.
|
|
23
|
+
* @default "More information"
|
|
24
|
+
*/
|
|
25
|
+
helpLabel?: string;
|
|
19
26
|
/**
|
|
20
27
|
* The track shape. round is the sliding pill with circular ends, pill is the same pill with squircle ends, and circle is a compact round on/off button.
|
|
21
28
|
* @default "round"
|
|
22
29
|
*/
|
|
23
30
|
shape?: 'round' | 'pill' | 'circle';
|
|
31
|
+
/**
|
|
32
|
+
* Shows the value but blocks editing. The value still posts.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Shows a busy state and blocks input while data loads.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
loading?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The control size: sm, md or lg.
|
|
43
|
+
* @default "md"
|
|
44
|
+
*/
|
|
45
|
+
size?: "sm" | "md" | "lg";
|
|
24
46
|
/**
|
|
25
47
|
* Extra class names added to the form-check wrapper.
|
|
26
48
|
* @default ""
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Pagination for a list or table. Under an AppDataTable it sits as a footer; standalone it pages
|
|
3
3
|
* cards, lists and search results. Pair with usePagination.
|
|
4
4
|
*
|
|
5
|
-
* A page-size menu ("10 per page") beside the page buttons. It shows no row range
|
|
6
|
-
* the page buttons already say where you are.
|
|
5
|
+
* A page-size menu ("10 per page") beside the page buttons. It shows no row range
|
|
6
|
+
* unless `summary` is set: the page buttons already say where you are.
|
|
7
7
|
*
|
|
8
8
|
* `page` is ONE-BASED, matching `<app-table-pagination page="…">` and the shared pagination contract.
|
|
9
9
|
* `totalPages` is the page count, the name Razor and the shared response shape use.
|
|
@@ -19,9 +19,16 @@
|
|
|
19
19
|
* @param {"numbered"|"prev-next"} [props.mode]
|
|
20
20
|
* @param {boolean} [props.showPageSize] Default true.
|
|
21
21
|
* @param {number} [props.siblings] Window radius. Default 2.
|
|
22
|
+
* @param {boolean} [props.summary] Draws "Showing x to y of z" at the start of the pager. Needs total and pageSize; without both it draws nothing. Default false.
|
|
22
23
|
* @param {"sm"|"md"} [props.size] sm is 28px controls. Default "md".
|
|
23
24
|
* @param {"footer"|"standalone"} [props.variant] footer: border-top, right aligned, under a table. standalone: centred, no border, for cards and lists. Default "footer".
|
|
24
25
|
* @param {string} [props.ariaLabel] Default "Pagination".
|
|
26
|
+
* @param {string} [props.rowsPerPageLabel] Default "Rows per page".
|
|
27
|
+
* @param {string} [props.pageSizeLabel] Default "{count} per page". Token: count.
|
|
28
|
+
* @param {string} [props.previousLabel] Default "Previous page".
|
|
29
|
+
* @param {string} [props.nextLabel] Default "Next page".
|
|
30
|
+
* @param {string} [props.pageLabel] Default "Page {page}". Token: page.
|
|
31
|
+
* @param {string} [props.rangeText] Default "Page {page} of {pages}". Tokens: page, pages.
|
|
25
32
|
* @param {string} [props.className]
|
|
26
33
|
*/
|
|
27
34
|
export default function AppTablePagination(props: {
|
|
@@ -52,6 +59,11 @@ export default function AppTablePagination(props: {
|
|
|
52
59
|
* @default 2
|
|
53
60
|
*/
|
|
54
61
|
siblings?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Shows Showing x to y of z at the start of the pager. It needs total and pageSize; without both nothing is shown.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
summary?: boolean;
|
|
55
67
|
/**
|
|
56
68
|
* sm draws 28px page and arrow buttons with 12px text.
|
|
57
69
|
* @default "md"
|
|
@@ -67,6 +79,36 @@ export default function AppTablePagination(props: {
|
|
|
67
79
|
* @default "Pagination"
|
|
68
80
|
*/
|
|
69
81
|
ariaLabel?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Replaces the built-in English text, for other languages.
|
|
84
|
+
* @default "Rows per page"
|
|
85
|
+
*/
|
|
86
|
+
rowsPerPageLabel?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Replaces the built-in English text, for other languages. The token {count} is the page size.
|
|
89
|
+
* @default "{count} per page"
|
|
90
|
+
*/
|
|
91
|
+
pageSizeLabel?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Replaces the built-in English text, for other languages.
|
|
94
|
+
* @default "Previous page"
|
|
95
|
+
*/
|
|
96
|
+
previousLabel?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Replaces the built-in English text, for other languages.
|
|
99
|
+
* @default "Next page"
|
|
100
|
+
*/
|
|
101
|
+
nextLabel?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Replaces the built-in English text, for other languages. The token {page} is the page number.
|
|
104
|
+
* @default "Page {page}"
|
|
105
|
+
*/
|
|
106
|
+
pageLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Replaces the built-in English text, for other languages. The tokens {page} and {pages} are the current page and the page count.
|
|
109
|
+
* @default "Page {page} of {pages}"
|
|
110
|
+
*/
|
|
111
|
+
rangeText?: string;
|
|
70
112
|
/**
|
|
71
113
|
* Extra class names added to the pager.
|
|
72
114
|
* @default ""
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
* @param {() => void} [props.onSelectAllMatching] Called when the offer is taken; the screen then runs
|
|
19
19
|
* its action on the query rather than on ids, and sets `allMatchingSelected`.
|
|
20
20
|
* @param {boolean} [props.allMatchingSelected]
|
|
21
|
+
* @param {string} [props.selectAllMatchingLabel] Default "Select all {count} matching".
|
|
22
|
+
* @param {string} [props.selectedLabel] Default "{count} selected".
|
|
23
|
+
* @param {string} [props.allSelectedLabel] Default "All {count} selected".
|
|
24
|
+
* @param {string} [props.clearLabel] Default "Clear".
|
|
25
|
+
* @param {string} [props.clearSelectionLabel] Default "Clear selection".
|
|
21
26
|
* @param {string} [props.className]
|
|
22
27
|
*/
|
|
23
28
|
export default function AppTableToolbar(props: {
|
|
@@ -43,6 +48,31 @@ export default function AppTableToolbar(props: {
|
|
|
43
48
|
* @default false
|
|
44
49
|
*/
|
|
45
50
|
allMatchingSelected?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The Select all button's text, for other languages. {count} is the matching row total.
|
|
53
|
+
* @default "Select all {count} matching"
|
|
54
|
+
*/
|
|
55
|
+
selectAllMatchingLabel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The bulk bar's count text, for other languages. {count} is the selected row count.
|
|
58
|
+
* @default "{count} selected"
|
|
59
|
+
*/
|
|
60
|
+
selectedLabel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The bulk bar's count text when every matching row is selected, for other languages. {count} is the matching row total.
|
|
63
|
+
* @default "All {count} selected"
|
|
64
|
+
*/
|
|
65
|
+
allSelectedLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The Clear button's text, for other languages.
|
|
68
|
+
* @default "Clear"
|
|
69
|
+
*/
|
|
70
|
+
clearLabel?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The Clear button's text when every matching row is selected, for other languages.
|
|
73
|
+
* @default "Clear selection"
|
|
74
|
+
*/
|
|
75
|
+
clearSelectionLabel?: string;
|
|
46
76
|
/**
|
|
47
77
|
* Extra class names added to the toolbar.
|
|
48
78
|
* @default ""
|
|
@@ -12,10 +12,10 @@ declare const AppTagInput: import("react").ForwardRefExoticComponent<{
|
|
|
12
12
|
name?: string;
|
|
13
13
|
/** The label above the field. */
|
|
14
14
|
label?: import('react').ReactNode;
|
|
15
|
-
/** An error message. It replaces the
|
|
15
|
+
/** An error message. It replaces the helper text and marks the field invalid. */
|
|
16
16
|
error?: string;
|
|
17
17
|
/** Help text under the field. */
|
|
18
|
-
|
|
18
|
+
helperText?: string;
|
|
19
19
|
/**
|
|
20
20
|
* Marks the field required and shows the required mark beside the label.
|
|
21
21
|
* @default false
|
|
@@ -26,8 +26,13 @@ declare const AppTagInput: import("react").ForwardRefExoticComponent<{
|
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
28
|
optional?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Replaces the built-in English text, for other languages.
|
|
31
|
+
* @default "(optional)"
|
|
32
|
+
*/
|
|
33
|
+
optionalLabel?: string;
|
|
29
34
|
/** Control size around the default; leave unset for the default size. */
|
|
30
|
-
size?: 'sm' | 'lg';
|
|
35
|
+
size?: 'sm' | 'md' | 'lg';
|
|
31
36
|
/** The most tags the field accepts. */
|
|
32
37
|
maxTags?: number;
|
|
33
38
|
/**
|
|
@@ -40,6 +45,18 @@ declare const AppTagInput: import("react").ForwardRefExoticComponent<{
|
|
|
40
45
|
* @default false
|
|
41
46
|
*/
|
|
42
47
|
disabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Shows the value but blocks editing. The value still posts.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
readOnly?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Shows a busy state and blocks input while data loads.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
loading?: boolean;
|
|
58
|
+
/** The starting value of an uncontrolled field. */
|
|
59
|
+
defaultValues?: string[];
|
|
43
60
|
/** The control's id. A generated id is used when this is unset. */
|
|
44
61
|
id?: string;
|
|
45
62
|
/** The accessible name of the input. When unset, a text label names it. */
|
|
@@ -11,10 +11,15 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
|
|
|
11
11
|
* @default false
|
|
12
12
|
*/
|
|
13
13
|
optional?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Replaces the built-in English text, for other languages.
|
|
16
|
+
* @default "(optional)"
|
|
17
|
+
*/
|
|
18
|
+
optionalLabel?: string;
|
|
14
19
|
/** An error message. It replaces the hint and marks the field invalid. */
|
|
15
20
|
error?: string;
|
|
16
21
|
/** Help text under the field. */
|
|
17
|
-
|
|
22
|
+
helperText?: string;
|
|
18
23
|
/** Text shown in the empty field. */
|
|
19
24
|
placeholder?: string;
|
|
20
25
|
/** Info-tip content shown beside the label. */
|
|
@@ -38,6 +43,11 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
|
|
|
38
43
|
* @default false
|
|
39
44
|
*/
|
|
40
45
|
autoGrow?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the monospace font on the control, for codes, logs and pasted data.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
monospace?: boolean;
|
|
41
51
|
/**
|
|
42
52
|
* Shows a live character count under the field, as count / maxLength when maxLength is set.
|
|
43
53
|
* @default false
|
|
@@ -55,6 +65,16 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
|
|
|
55
65
|
* @default false
|
|
56
66
|
*/
|
|
57
67
|
readOnly?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Shows a busy state and blocks input while data loads.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
loading?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The control size: sm, md or lg.
|
|
75
|
+
* @default "md"
|
|
76
|
+
*/
|
|
77
|
+
size?: "sm" | "md" | "lg";
|
|
58
78
|
/**
|
|
59
79
|
* A class added to the control.
|
|
60
80
|
* @default ""
|
|
@@ -2,6 +2,8 @@ import "@webority/ui-elements/elements/timepicker";
|
|
|
2
2
|
declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
|
|
3
3
|
/** The time as 24-hour "HH:mm" text, which is also the wire format. */
|
|
4
4
|
value?: string;
|
|
5
|
+
/** The starting value of an uncontrolled field. */
|
|
6
|
+
defaultValue?: string;
|
|
5
7
|
onChange?: (value: string) => void;
|
|
6
8
|
/** The label above the field. */
|
|
7
9
|
label?: string;
|
|
@@ -15,9 +17,14 @@ declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
|
|
|
15
17
|
* @default false
|
|
16
18
|
*/
|
|
17
19
|
optional?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Replaces the built-in English text, for other languages.
|
|
22
|
+
* @default "(optional)"
|
|
23
|
+
*/
|
|
24
|
+
optionalLabel?: string;
|
|
18
25
|
/** Help text under the field. */
|
|
19
|
-
|
|
20
|
-
/** An error message. It replaces the
|
|
26
|
+
helperText?: string;
|
|
27
|
+
/** An error message. It replaces the helper text and marks the field invalid. */
|
|
21
28
|
error?: string;
|
|
22
29
|
/** Content for the info tip beside the label. */
|
|
23
30
|
help?: import('react').ReactNode;
|
|
@@ -46,6 +53,16 @@ declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
|
|
|
46
53
|
placeholder?: string;
|
|
47
54
|
/** Locks the field. */
|
|
48
55
|
disabled?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Shows the value but blocks editing. The value still posts.
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
readOnly?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Shows a busy state and blocks input while data loads.
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
loading?: boolean;
|
|
49
66
|
/** The control height tier, matching AppInput; leave unset for the default height. */
|
|
50
67
|
size?: 'sm' | 'md' | 'lg';
|
|
51
68
|
/** The control's id. A generated id is used when this is unset. */
|
|
@@ -26,8 +26,10 @@
|
|
|
26
26
|
* @param {'vertical'|'horizontal'} [props.orientation]
|
|
27
27
|
* @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant]
|
|
28
28
|
* @param {'sm'|'md'|'lg'|number} [props.size]
|
|
29
|
+
* @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.
|
|
29
30
|
* @param {string} [props.className]
|
|
30
31
|
* @param {import('react').CSSProperties} [props.style]
|
|
32
|
+
* @param {string} [props.stepLabel] Default "Step {number}". The {number} token is the step's position, counted from 1.
|
|
31
33
|
*/
|
|
32
34
|
export default function AppTimeline(props: {
|
|
33
35
|
/**
|
|
@@ -60,10 +62,16 @@ export default function AppTimeline(props: {
|
|
|
60
62
|
iconVariant?: 'linear' | 'outline' | 'bold' | 'bulk' | 'broken' | 'twotone';
|
|
61
63
|
/** A preset, or the dot diameter in px. The presets scale the dot, text and spacing together; a number sets only the dot. */
|
|
62
64
|
size?: 'sm' | 'md' | 'lg' | number;
|
|
65
|
+
linkComponent?: import('react').ElementType;
|
|
63
66
|
/**
|
|
64
67
|
* A class added to the list.
|
|
65
68
|
* @default ""
|
|
66
69
|
*/
|
|
67
70
|
className?: string;
|
|
68
71
|
style?: import('react').CSSProperties;
|
|
72
|
+
/**
|
|
73
|
+
* Replaces the built-in English text, for other languages. The {number} token is the step's position, counted from 1.
|
|
74
|
+
* @default "Step {number}"
|
|
75
|
+
*/
|
|
76
|
+
stepLabel?: string;
|
|
69
77
|
}): import("react").JSX.Element;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* @param {'rise'|'organic'|'jelly'|'spring'} [props.animation]
|
|
14
14
|
* @param {'rounded'|'pill'|'sharp'} [props.shape]
|
|
15
15
|
* @param {'auto'|'inverse'} [props.surface]
|
|
16
|
+
* @param {number} [props.offset] Distance in pixels from the screen edge the stack pins to, top or bottom. Default: the `--wui-toast-edge-offset` token (16px).
|
|
16
17
|
* @param {string} [props.className]
|
|
17
18
|
*/
|
|
18
19
|
export default function AppToast(props: {
|
|
@@ -41,6 +42,11 @@ export default function AppToast(props: {
|
|
|
41
42
|
* @default "auto"
|
|
42
43
|
*/
|
|
43
44
|
surface?: 'auto' | 'inverse';
|
|
45
|
+
/**
|
|
46
|
+
* Distance in pixels from the screen edge the stack pins to, top or bottom. Ignored for middle-center and the side edges. The default is the `--wui-toast-edge-offset` token.
|
|
47
|
+
* @default 16
|
|
48
|
+
*/
|
|
49
|
+
offset?: number;
|
|
44
50
|
/**
|
|
45
51
|
* Extra class on the container element.
|
|
46
52
|
* @default ""
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Razor `<app-toolbar>` posts the selected tool inside a plain form with no JavaScript.
|
|
14
14
|
* The expand/collapse is pure CSS and honours `prefers-reduced-motion`.
|
|
15
15
|
*
|
|
16
|
-
* Controlled via `value` + `
|
|
16
|
+
* Controlled via `value` + `onChange`, or uncontrolled via `defaultValue`.
|
|
17
17
|
*
|
|
18
18
|
* @param {object} props
|
|
19
19
|
* @param {{ value: string, title: string, icon: string|import('react').ReactNode,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* onClick?: () => void, disabled?: boolean }[]} [props.actions]
|
|
23
23
|
* @param {string} [props.value]
|
|
24
24
|
* @param {string} [props.defaultValue]
|
|
25
|
-
* @param {(value: string) => void} [props.
|
|
25
|
+
* @param {(value: string) => void} [props.onChange]
|
|
26
26
|
* @param {string} props.label
|
|
27
27
|
* @param {string} [props.name]
|
|
28
28
|
* @param {boolean} [props.disabled]
|
|
@@ -51,7 +51,7 @@ export default function AppToolbar(props: {
|
|
|
51
51
|
value?: string;
|
|
52
52
|
/** Initially active tool (uncontrolled). */
|
|
53
53
|
defaultValue?: string;
|
|
54
|
-
|
|
54
|
+
onChange?: (value: string) => void;
|
|
55
55
|
/** Accessible name for the toolbar. */
|
|
56
56
|
label: string;
|
|
57
57
|
/** Field name grouping the radios, and what posts in a form. Defaults to a generated one. */
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* a ref (a DOM element, or a react-bootstrap-based App* like AppButton/AppActionIcon). It
|
|
11
11
|
* renders as written; hovering or focusing it reveals the tooltip.
|
|
12
12
|
* @param {'auto'|'top'|'bottom'|'start'|'end'} [props.placement]
|
|
13
|
-
* @param {'
|
|
13
|
+
* @param {'neutral'|'primary'|'success'|'warning'|'danger'} [props.tone]
|
|
14
|
+
* @param {'inverse'} [props.variant] `inverse` draws the tip on a dark surface.
|
|
14
15
|
* @param {'sm'|'md'|'lg'} [props.size]
|
|
15
16
|
* @param {boolean} [props.open] Shows the panel open, for a design preview or a controlled caller.
|
|
16
17
|
* @param {string} [props.shortcut]
|
|
@@ -26,10 +27,12 @@ export default function AppTooltip(props: {
|
|
|
26
27
|
*/
|
|
27
28
|
placement?: 'auto' | 'top' | 'bottom' | 'start' | 'end';
|
|
28
29
|
/**
|
|
29
|
-
* Preset colour of the tooltip. `
|
|
30
|
-
* @default "
|
|
30
|
+
* Preset colour of the tooltip. `neutral` is the light surface look; the others are solid tints. For a fully custom colour, pass a `className` whose rule sets the `--wui-tooltip-bg`, `--wui-tooltip-color`, `--wui-tooltip-border` and `--wui-tooltip-radius` CSS vars.
|
|
31
|
+
* @default "neutral"
|
|
31
32
|
*/
|
|
32
|
-
tone?: '
|
|
33
|
+
tone?: 'neutral' | 'primary' | 'success' | 'warning' | 'danger';
|
|
34
|
+
/** `inverse` draws the tooltip on a dark surface, for a tip inside a light page. */
|
|
35
|
+
variant?: 'inverse';
|
|
33
36
|
/**
|
|
34
37
|
* Preset size (font size, padding and max width). For a fully custom size, pass a `className` that sets the `--wui-tooltip-font-size`, `--wui-tooltip-padding-y`, `--wui-tooltip-padding-x` and `--wui-tooltip-max-width` CSS vars.
|
|
35
38
|
* @default "md"
|
|
@@ -9,8 +9,11 @@
|
|
|
9
9
|
* @param {object} props
|
|
10
10
|
* @param {() => void} [props.onReload] What "Reload" does. Default: reload the page.
|
|
11
11
|
* @param {boolean} [props.dismissible]
|
|
12
|
-
* @param {() => void} [props.
|
|
12
|
+
* @param {() => void} [props.onClose] Called after the bar is closed.
|
|
13
13
|
* @param {string} [props.className]
|
|
14
|
+
* @param {string} [props.description] Default "A new version of this app is ready."
|
|
15
|
+
* @param {string} [props.reloadLabel] Default "Reload".
|
|
16
|
+
* @param {string} [props.dismissLabel] Default "Dismiss".
|
|
14
17
|
*/
|
|
15
18
|
export default function AppUpdateBar(props: {
|
|
16
19
|
onReload?: () => void;
|
|
@@ -19,10 +22,25 @@ export default function AppUpdateBar(props: {
|
|
|
19
22
|
* @default false
|
|
20
23
|
*/
|
|
21
24
|
dismissible?: boolean;
|
|
22
|
-
|
|
25
|
+
onClose?: () => void;
|
|
23
26
|
/**
|
|
24
27
|
* Extra classes on the bar, such as sticky-top to keep it in view.
|
|
25
28
|
* @default ""
|
|
26
29
|
*/
|
|
27
30
|
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Replaces the built-in English text, for other languages.
|
|
33
|
+
* @default "A new version of this app is ready."
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Replaces the built-in English text, for other languages.
|
|
38
|
+
* @default "Reload"
|
|
39
|
+
*/
|
|
40
|
+
reloadLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Replaces the built-in English text, for other languages.
|
|
43
|
+
* @default "Dismiss"
|
|
44
|
+
*/
|
|
45
|
+
dismissLabel?: string;
|
|
28
46
|
}): import("react").JSX.Element;
|
|
@@ -22,6 +22,7 @@ import "@webority/ui-elements/elements/whats-new";
|
|
|
22
22
|
* @param {string} [props.unreadLabel]
|
|
23
23
|
* @param {string} [props.emptyText]
|
|
24
24
|
* @param {(through: string) => void} [props.onRead] Called with the newest entry's date when opening marks entries read.
|
|
25
|
+
* @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.
|
|
25
26
|
* @param {string} [props.className]
|
|
26
27
|
*/
|
|
27
28
|
export default function AppWhatsNew(props: {
|
|
@@ -64,6 +65,7 @@ export default function AppWhatsNew(props: {
|
|
|
64
65
|
*/
|
|
65
66
|
emptyText?: string;
|
|
66
67
|
onRead?: (through: string) => void;
|
|
68
|
+
linkComponent?: import('react').ElementType;
|
|
67
69
|
/**
|
|
68
70
|
* Extra classes on the element.
|
|
69
71
|
* @default ""
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
* @param {boolean} [props.compact]
|
|
28
28
|
* @param {"sm"|"md"|"lg"} [props.size]
|
|
29
29
|
* @param {string} [props.ariaLabel]
|
|
30
|
+
* @param {string} [props.searchPlaceholder] Default "Search workspaces".
|
|
31
|
+
* @param {string} [props.searchLabel] Default "Search workspaces".
|
|
32
|
+
* @param {string} [props.noMatchText] Default "No workspaces match.".
|
|
30
33
|
*/
|
|
31
34
|
export default function AppWorkspaceSwitcher(props: {
|
|
32
35
|
/**
|
|
@@ -79,4 +82,19 @@ export default function AppWorkspaceSwitcher(props: {
|
|
|
79
82
|
size?: "sm" | "md" | "lg";
|
|
80
83
|
/** The accessible name of the trigger. Without it the name is Workspace followed by the current workspace's name. */
|
|
81
84
|
ariaLabel?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Replaces the built-in English text, for other languages.
|
|
87
|
+
* @default "Search workspaces"
|
|
88
|
+
*/
|
|
89
|
+
searchPlaceholder?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Replaces the built-in English text, for other languages.
|
|
92
|
+
* @default "Search workspaces"
|
|
93
|
+
*/
|
|
94
|
+
searchLabel?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Replaces the built-in English text, for other languages.
|
|
97
|
+
* @default "No workspaces match."
|
|
98
|
+
*/
|
|
99
|
+
noMatchText?: string;
|
|
82
100
|
}): import("react").JSX.Element;
|
|
@@ -99,6 +99,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
99
99
|
"folder-plus": string;
|
|
100
100
|
gauge: string;
|
|
101
101
|
gift: string;
|
|
102
|
+
github: string;
|
|
102
103
|
globe: string;
|
|
103
104
|
globe2: string;
|
|
104
105
|
google: string;
|
|
@@ -327,6 +328,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
327
328
|
"folder-plus": string;
|
|
328
329
|
gauge: string;
|
|
329
330
|
gift: string;
|
|
331
|
+
github: string;
|
|
330
332
|
globe: string;
|
|
331
333
|
globe2: string;
|
|
332
334
|
google: string;
|
|
@@ -555,6 +557,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
555
557
|
"folder-plus": string;
|
|
556
558
|
gauge: string;
|
|
557
559
|
gift: string;
|
|
560
|
+
github: string;
|
|
558
561
|
globe: string;
|
|
559
562
|
globe2: string;
|
|
560
563
|
google: string;
|
|
@@ -783,6 +786,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
783
786
|
"folder-plus": string;
|
|
784
787
|
gauge: string;
|
|
785
788
|
gift: string;
|
|
789
|
+
github: string;
|
|
786
790
|
globe: string;
|
|
787
791
|
globe2: string;
|
|
788
792
|
google: string;
|
|
@@ -1011,6 +1015,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
1011
1015
|
"folder-plus": string;
|
|
1012
1016
|
gauge: string;
|
|
1013
1017
|
gift: string;
|
|
1018
|
+
github: string;
|
|
1014
1019
|
globe: string;
|
|
1015
1020
|
globe2: string;
|
|
1016
1021
|
google: string;
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* @param {object} opts
|
|
21
21
|
* @param {import('react').Ref<HTMLElement>} [opts.ref] Forwarded ref from `forwardRef`.
|
|
22
22
|
* @param {unknown} [opts.value] Controlled value; when defined, written to `el.value`.
|
|
23
|
+
* @param {unknown} [opts.defaultValue] Starting value of an uncontrolled field, written to each element the hook wires (a recreated element starts from it again).
|
|
23
24
|
* @param {(value: unknown) => void} [opts.onChange] Called with the control value only
|
|
24
25
|
* (one argument — matches every existing App* wrapper and its unit tests).
|
|
25
26
|
* @param {(el: HTMLElement) => unknown} [opts.readValue] How to read the element on change
|
|
@@ -37,9 +38,10 @@
|
|
|
37
38
|
* be fresh closures).
|
|
38
39
|
* @returns {{ setRef: (el: HTMLElement | null) => void, innerRef: import('react').MutableRefObject<HTMLElement | null> }}
|
|
39
40
|
*/
|
|
40
|
-
export default function useWuiControl({ ref, value, onChange, readValue, writeValue, events, on }?: {
|
|
41
|
+
export default function useWuiControl({ ref, value, defaultValue, onChange, readValue, writeValue, events, on }?: {
|
|
41
42
|
ref?: import('react').Ref<HTMLElement>;
|
|
42
43
|
value?: unknown;
|
|
44
|
+
defaultValue?: unknown;
|
|
43
45
|
onChange?: (value: unknown) => void;
|
|
44
46
|
readValue?: (el: HTMLElement) => unknown;
|
|
45
47
|
writeValue?: (el: HTMLElement, value: unknown) => void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ export { mentionedIds, parseMentionValue } from "@webority/ui-elements/elements/
|
|
|
2
2
|
export { createLocalSeenStore } from "@webority/ui-elements/elements/tour";
|
|
3
3
|
export { postedMasked, themeBootScript } from "@webority/ui-elements/helpers";
|
|
4
4
|
export { default as AppAccordion } from "./components/AppAccordion.jsx";
|
|
5
|
+
export { default as AppAccountSwitcher } from "./components/AppAccountSwitcher.jsx";
|
|
5
6
|
export { default as AppActionIcon } from "./components/AppActionIcon.jsx";
|
|
6
7
|
export { default as AppAlert } from "./components/AppAlert.jsx";
|
|
7
8
|
export { default as AppAsyncBlock } from "./components/AppAsyncBlock.jsx";
|
|
9
|
+
export { default as AppAuthLayout } from "./components/AppAuthLayout.jsx";
|
|
8
10
|
export { default as AppAutocomplete } from "./components/AppAutocomplete.jsx";
|
|
9
11
|
export { default as AppAvatar } from "./components/AppAvatar.jsx";
|
|
10
12
|
export { default as AppAvatarGroup } from "./components/AppAvatarGroup.jsx";
|
|
@@ -16,6 +18,7 @@ export { default as AppButtonGroup } from "./components/AppButtonGroup.jsx";
|
|
|
16
18
|
export { default as AppCalendar } from "./components/AppCalendar.jsx";
|
|
17
19
|
export { default as AppCard } from "./components/AppCard.jsx";
|
|
18
20
|
export { default as AppCarousel } from "./components/AppCarousel.jsx";
|
|
21
|
+
export { default as AppCell } from "./components/AppCell.jsx";
|
|
19
22
|
export { default as AppChart } from "./components/AppChart.jsx";
|
|
20
23
|
export { default as AppChartCard } from "./components/AppChartCard.jsx";
|
|
21
24
|
export { default as AppCheckbox } from "./components/AppCheckbox.jsx";
|
|
@@ -48,12 +51,14 @@ export { default as AppDropdown } from "./components/AppDropdown.jsx";
|
|
|
48
51
|
export { default as AppDropZone } from "./components/AppDropZone.jsx";
|
|
49
52
|
export { default as AppDueDate } from "./components/AppDueDate.jsx";
|
|
50
53
|
export { default as AppEmptyState } from "./components/AppEmptyState.jsx";
|
|
54
|
+
export { default as AppErrorBoundary } from "./components/AppErrorBoundary.jsx";
|
|
51
55
|
export { default as AppErrorSummary } from "./components/AppErrorSummary.jsx";
|
|
52
56
|
export { default as AppFileAttachment } from "./components/AppFileAttachment.jsx";
|
|
53
57
|
export { default as AppFilePicker } from "./components/AppFilePicker.jsx";
|
|
54
58
|
export { default as AppFileTiles } from "./components/AppFileTiles.jsx";
|
|
55
59
|
export { default as AppFileViewer } from "./components/AppFileViewer.jsx";
|
|
56
60
|
export { default as AppFilterBar } from "./components/AppFilterBar.jsx";
|
|
61
|
+
export { default as AppFloatingButton } from "./components/AppFloatingButton.jsx";
|
|
57
62
|
export { default as AppFloatingDock } from "./components/AppFloatingDock.jsx";
|
|
58
63
|
export { default as AppFormActions } from "./components/AppFormActions.jsx";
|
|
59
64
|
export { default as AppFormRow } from "./components/AppFormRow.jsx";
|
|
@@ -68,6 +73,7 @@ export { default as AppInputGroup } from "./components/AppInputGroup.jsx";
|
|
|
68
73
|
export { default as AppKanban } from "./components/AppKanban.jsx";
|
|
69
74
|
export { default as AppKbd } from "./components/AppKbd.jsx";
|
|
70
75
|
export { default as AppKpiTile } from "./components/AppKpiTile.jsx";
|
|
76
|
+
export { default as AppLeadPopup } from "./components/AppLeadPopup.jsx";
|
|
71
77
|
export { default as AppLightbox } from "./components/AppLightbox.jsx";
|
|
72
78
|
export { default as AppLink } from "./components/AppLink.jsx";
|
|
73
79
|
export { default as AppMarkdown } from "./components/AppMarkdown.jsx";
|
|
@@ -3,18 +3,25 @@
|
|
|
3
3
|
* Internal: shared by AppFileAttachment and AppFilePicker so the two fields cannot drift.
|
|
4
4
|
*
|
|
5
5
|
* @param {object} props
|
|
6
|
-
* @param {File|{ url?: string, name?: string }} props.item
|
|
6
|
+
* @param {File|{ url?: string, to?: string, name?: string }} props.item
|
|
7
7
|
* @param {boolean} props.isImage Whether to show a thumbnail (the caller owns the accept rules).
|
|
8
8
|
* @param {() => void} props.onRemove
|
|
9
|
+
* @param {import('react').ElementType} [props.linkComponent] Router link for an item's `to`.
|
|
9
10
|
* @param {string} [props.noun="attachment"] Fallback word in the remove button's label when the
|
|
10
11
|
* item has no name.
|
|
12
|
+
* @param {string} [props.removeFileLabel="Remove {name}"] The remove button's accessible name; {name} is the file name, or the noun.
|
|
13
|
+
* @param {boolean} [props.readOnly=false] Hides the remove button, for a field shown read-only.
|
|
11
14
|
*/
|
|
12
|
-
export default function FileItemRow({ item, isImage, onRemove, noun }: {
|
|
15
|
+
export default function FileItemRow({ item, isImage, onRemove, linkComponent, noun, removeFileLabel, readOnly, }: {
|
|
13
16
|
item: File | {
|
|
14
17
|
url?: string;
|
|
18
|
+
to?: string;
|
|
15
19
|
name?: string;
|
|
16
20
|
};
|
|
17
21
|
isImage: boolean;
|
|
18
22
|
onRemove: () => void;
|
|
23
|
+
linkComponent?: import('react').ElementType;
|
|
19
24
|
noun?: string;
|
|
25
|
+
removeFileLabel?: string;
|
|
26
|
+
readOnly?: boolean;
|
|
20
27
|
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme class for a button's tone and variant. An unknown value falls back to the
|
|
3
|
+
* default (primary, solid); the calling component warns about it.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} tone
|
|
6
|
+
* @param {string} variant
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
export declare function buttonClass(tone: string, variant: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function fillLabel(template: any, values: any): string;
|