@webority/ui-react 0.164.0 → 0.167.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/LICENSE +1 -1
- package/dist/canvas-kit/kit.js +225 -223
- package/dist/canvas-kit/manifest.json +1334 -435
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppAsyncBlock.js +1 -1
- package/dist/components/AppAvatar.js +1 -1
- package/dist/components/AppAvatarGroup.js +1 -1
- package/dist/components/AppBanner.js +1 -1
- package/dist/components/AppBreadcrumbs.js +1 -1
- package/dist/components/AppButton.js +1 -1
- package/dist/components/AppCalendar.js +1 -1
- package/dist/components/AppCard.js +1 -1
- package/dist/components/AppCarousel.js +1 -1
- package/dist/components/AppCell.js +1 -1
- package/dist/components/AppChart.js +1 -1
- package/dist/components/AppChartCard.js +1 -1
- package/dist/components/AppCheckbox.js +1 -1
- package/dist/components/AppChip.js +1 -1
- package/dist/components/AppChipGroup.js +1 -1
- package/dist/components/AppChoiceCard.js +1 -1
- package/dist/components/AppChoiceChip.js +1 -1
- package/dist/components/AppColorField.js +1 -1
- package/dist/components/AppColumnMenu.js +1 -1
- package/dist/components/AppCommandPalette.js +1 -1
- package/dist/components/AppCommentThread.js +1 -1
- package/dist/components/AppCompareTable.js +1 -1
- package/dist/components/AppConfirmDialog.js +1 -1
- package/dist/components/AppConfirmProvider.js +1 -1
- package/dist/components/AppContextMenu.js +1 -1
- package/dist/components/AppCopyButton.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/AppEntryGrid.js +1 -0
- package/dist/components/AppErrorBoundary.js +1 -1
- package/dist/components/AppErrorSummary.js +1 -1
- package/dist/components/AppFileAttachment.js +1 -1
- package/dist/components/AppFilePicker.js +1 -1
- package/dist/components/AppFilterBar.js +1 -1
- package/dist/components/AppFloatingDock.js +1 -1
- package/dist/components/AppForm.js +1 -1
- package/dist/components/AppFormulaSteps.js +1 -0
- package/dist/components/AppHoverCard.js +1 -1
- 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/AppInputGroup.js +1 -1
- package/dist/components/AppKanban.js +1 -1
- package/dist/components/AppMentionInput.js +1 -1
- package/dist/components/AppMetricStrip.js +1 -1
- package/dist/components/AppModal.js +1 -1
- package/dist/components/AppNavigationMenu.js +1 -1
- package/dist/components/AppNotificationCenter.js +1 -1
- package/dist/components/AppNumberInput.js +1 -1
- package/dist/components/AppOnboardingChecklist.js +1 -1
- package/dist/components/AppOrgTree.js +1 -1
- package/dist/components/AppOtpInput.js +1 -1
- package/dist/components/AppPageHeader.js +1 -1
- package/dist/components/AppPhoneNumberInput.js +1 -1
- package/dist/components/AppPopover.js +1 -1
- package/dist/components/AppPricingCard.js +1 -1
- package/dist/components/AppQrCode.js +1 -1
- package/dist/components/AppRadio.js +1 -1
- package/dist/components/AppRadioGroup.js +1 -1
- package/dist/components/AppRating.js +1 -1
- package/dist/components/AppRecordPager.js +1 -1
- package/dist/components/AppRelativeTime.js +1 -1
- package/dist/components/AppRepeater.js +1 -1
- package/dist/components/AppRichText.js +1 -1
- package/dist/components/AppRouteError.js +1 -1
- package/dist/components/AppRowActions.js +1 -0
- package/dist/components/AppScoreScale.js +1 -1
- package/dist/components/AppSearch.js +1 -1
- package/dist/components/AppSectionFeatures.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/AppShortcutLegend.js +1 -1
- package/dist/components/AppShowMore.js +1 -1
- package/dist/components/AppSlider.js +1 -1
- package/dist/components/AppSortableList.js +1 -1
- package/dist/components/AppSparkline.js +1 -1
- package/dist/components/AppSpinner.js +1 -1
- package/dist/components/AppSplash.js +1 -1
- package/dist/components/AppSplitButton.js +1 -1
- package/dist/components/AppSplitView.js +1 -1
- package/dist/components/AppStatusBadge.js +1 -1
- package/dist/components/AppStepper.js +1 -1
- package/dist/components/AppSwitch.js +1 -1
- package/dist/components/AppTablePagination.js +1 -1
- package/dist/components/AppTableToolbar.js +1 -1
- package/dist/components/AppTabs.js +1 -1
- package/dist/components/AppTextarea.js +1 -1
- package/dist/components/AppThemeToggle.js +1 -1
- package/dist/components/AppTimePicker.js +1 -1
- package/dist/components/AppTimeline.js +1 -1
- package/dist/components/AppToast.js +1 -1
- package/dist/components/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/toast.js +1 -1
- package/dist/guidance.json +220 -140
- package/dist/hookForm/index.js +1 -0
- package/dist/lib/CheckField.js +1 -1
- package/dist/lib/FileItemRow.js +1 -1
- package/dist/lib/emptyValue.js +1 -1
- package/dist/lib/fieldState.js +1 -1
- package/dist/lib/formFields.js +1 -0
- package/dist/lib/useWuiText.js +1 -0
- package/dist/types/components/AppAsyncBlock.d.ts +3 -3
- package/dist/types/components/AppChart.d.ts +12 -4
- package/dist/types/components/AppColorField.d.ts +3 -3
- package/dist/types/components/AppDataTable.d.ts +29 -2
- package/dist/types/components/AppDatePicker.d.ts +2 -1
- package/dist/types/components/AppDateRangePicker.d.ts +5 -1
- package/dist/types/components/AppDescriptions.d.ts +6 -0
- package/dist/types/components/AppDropdown.d.ts +6 -0
- package/dist/types/components/AppEntryGrid.d.ts +164 -0
- package/dist/types/components/AppFilterBar.d.ts +12 -1
- package/dist/types/components/AppForm.d.ts +18 -0
- package/dist/types/components/AppFormulaSteps.d.ts +64 -0
- package/dist/types/components/AppInput.d.ts +4 -4
- package/dist/types/components/AppInputGroup.d.ts +1 -1
- package/dist/types/components/AppMentionInput.d.ts +2 -2
- package/dist/types/components/AppMetricStrip.d.ts +5 -0
- package/dist/types/components/AppModal.d.ts +5 -0
- package/dist/types/components/AppNumberInput.d.ts +9 -3
- package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
- package/dist/types/components/AppRowActions.d.ts +46 -0
- package/dist/types/components/AppSearch.d.ts +1 -1
- package/dist/types/components/AppSectionFeatures.d.ts +5 -1
- package/dist/types/components/AppSectionLogos.d.ts +1 -0
- package/dist/types/components/AppSelect.d.ts +3 -2
- package/dist/types/components/AppShell.d.ts +2 -0
- package/dist/types/components/AppSlider.d.ts +5 -0
- package/dist/types/components/AppTextarea.d.ts +2 -2
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/dist/types/components/AppToast.d.ts +5 -0
- package/dist/types/hookForm/index.d.ts +14 -0
- package/dist/types/index.d.ts +8 -5
- package/dist/types/lib/emptyValue.d.ts +2 -2
- package/dist/types/lib/fieldState.d.ts +1 -0
- package/dist/types/lib/formFields.d.ts +12 -0
- package/dist/types/lib/useWuiText.d.ts +3 -0
- package/dist/ui-react.js +1 -1
- package/dist/web-core/dist/errors/extractApiError.js +2 -0
- package/dist/web-core/dist/errors/requestPlatform.js +1 -0
- package/package.json +21 -10
- package/dist/components/AppResizable.js +0 -1
- package/dist/components/AppResizableHandle.js +0 -1
- package/dist/components/AppResizablePanel.js +0 -1
- package/dist/components/AppRollingNumber.js +0 -1
- package/dist/components/AppRowSwitch.js +0 -1
- package/dist/types/components/AppResizable.d.ts +0 -37
- package/dist/types/components/AppResizableHandle.d.ts +0 -14
- package/dist/types/components/AppResizablePanel.d.ts +0 -14
- package/dist/types/components/AppRollingNumber.d.ts +0 -30
- package/dist/types/components/AppRowSwitch.d.ts +0 -18
|
@@ -57,7 +57,7 @@ export interface AppDatePickerProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
57
57
|
*/
|
|
58
58
|
helpLabel?: string | undefined;
|
|
59
59
|
/** Control height tier, matching AppInput. */
|
|
60
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
60
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
61
61
|
/** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it. */
|
|
62
62
|
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
63
63
|
/**
|
|
@@ -69,6 +69,7 @@ export interface AppDatePickerProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
69
69
|
id?: string | undefined;
|
|
70
70
|
/** Accessible name when there is no visible label. */
|
|
71
71
|
ariaLabel?: string | undefined;
|
|
72
|
+
"aria-invalid"?: boolean | "true" | "false" | undefined;
|
|
72
73
|
/**
|
|
73
74
|
* Classes for the wui-datepicker control itself.
|
|
74
75
|
* @default ""
|
|
@@ -19,6 +19,10 @@ export interface AppDateRangePickerProps extends Omit<React.HTMLAttributes<HTMLE
|
|
|
19
19
|
/** The starting end date of an uncontrolled field. */
|
|
20
20
|
defaultEnd?: string | undefined;
|
|
21
21
|
onChange?: ((range: DateRangeValue) => void) | undefined;
|
|
22
|
+
/** Opens (true) or closes (false) the calendar from outside. Pair it with onOpenChange; leave it unset for a field that opens itself. */
|
|
23
|
+
open?: boolean | undefined;
|
|
24
|
+
/** Called with the new state when the calendar opens or closes, from a click, Escape or an outside press. */
|
|
25
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
22
26
|
/** The field label, shown above the control and used as its accessible name. */
|
|
23
27
|
label?: React.ReactNode | undefined;
|
|
24
28
|
/** The content of the info-tip beside the label, opened by a button. */
|
|
@@ -73,7 +77,7 @@ export interface AppDateRangePickerProps extends Omit<React.HTMLAttributes<HTMLE
|
|
|
73
77
|
*/
|
|
74
78
|
loading?: boolean | undefined;
|
|
75
79
|
/** Control height tier, matching AppInput. */
|
|
76
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
80
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
77
81
|
/** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it. */
|
|
78
82
|
firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
79
83
|
/** IANA time zone the quick ranges are resolved in, for example Asia/Kolkata or America/New_York. Unset, it is India Standard Time (Asia/Kolkata). */
|
|
@@ -7,6 +7,12 @@ interface AppDescriptionItemBase {
|
|
|
7
7
|
multiline?: boolean | undefined;
|
|
8
8
|
icon?: string | React.ReactNode | undefined;
|
|
9
9
|
href?: string | undefined;
|
|
10
|
+
/** Set on the item's root, so a link can jump to the row. */
|
|
11
|
+
id?: string | undefined;
|
|
12
|
+
/** Set on the item's root: 0 or -1 makes the row focusable. */
|
|
13
|
+
tabIndex?: number | undefined;
|
|
14
|
+
/** Any `data-*` attribute lands on the item's root. */
|
|
15
|
+
[attribute: `data-${string}`]: unknown;
|
|
10
16
|
}
|
|
11
17
|
/** A text label may leave `key` out (the row is keyed by its label); any other label needs a `key`, so the row's React key is never "[object Object]". */
|
|
12
18
|
export type AppDescriptionItem = AppDescriptionItemBase & ({
|
|
@@ -8,6 +8,12 @@ export interface AppDropdownItem {
|
|
|
8
8
|
image?: string | undefined;
|
|
9
9
|
to?: string | undefined;
|
|
10
10
|
href?: string | undefined;
|
|
11
|
+
/** Where an href or to opens. Needs href or to. */
|
|
12
|
+
target?: "_blank" | "_self" | undefined;
|
|
13
|
+
/** The link's rel. Needs href or to. */
|
|
14
|
+
rel?: string | undefined;
|
|
15
|
+
/** data-* attributes written on the menu row. */
|
|
16
|
+
data?: Readonly<Record<`data-${string}`, string>> | undefined;
|
|
11
17
|
onClick?: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
12
18
|
tone?: "danger" | undefined;
|
|
13
19
|
disabled?: boolean | undefined;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from "react";
|
|
2
|
+
import type { AppDataTablePagination, AppDataTableSort } from "./AppDataTable.tsx";
|
|
3
|
+
export type AppEntryGridRowStatus = "clean" | "dirty" | "saving" | "saved" | "failed";
|
|
4
|
+
export type AppEntryGridColumnKind = "text" | "number";
|
|
5
|
+
export type AppEntryGridPaste = {
|
|
6
|
+
rowKey: string;
|
|
7
|
+
columnKey: string;
|
|
8
|
+
rows: string[][];
|
|
9
|
+
};
|
|
10
|
+
export interface AppEntryGridColumn<Row> {
|
|
11
|
+
key: string;
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
/** "number" right-aligns the column and selects a focused input's text. Default "text". */
|
|
14
|
+
kind?: AppEntryGridColumnKind | undefined;
|
|
15
|
+
width?: string | number | undefined;
|
|
16
|
+
/** Help shown in an AppInfoTip beside the header label. */
|
|
17
|
+
help?: ReactNode | undefined;
|
|
18
|
+
/** Renders this column's cell of the sticky totals row. */
|
|
19
|
+
footer?: ((rows: readonly Row[]) => ReactNode) | undefined;
|
|
20
|
+
/** Makes the heading a sort control; needs the grid's onSort. The page owns the order of the rows. */
|
|
21
|
+
sortable?: boolean | undefined;
|
|
22
|
+
/** Adjacent columns with the same group share one heading over them. */
|
|
23
|
+
group?: string | undefined;
|
|
24
|
+
/** "start" keeps the column in view while the grid scrolls sideways. Only the first column can be pinned. */
|
|
25
|
+
pin?: "start" | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface AppEntryGridProps<Row> {
|
|
28
|
+
/** The columns, left to right, each with a key and a label, plus optional kind, width and help. */
|
|
29
|
+
columns: readonly AppEntryGridColumn<Row>[];
|
|
30
|
+
/** The row objects shown in the grid, one per line, in the order they appear. */
|
|
31
|
+
rows: readonly Row[];
|
|
32
|
+
rowKey: (row: Row) => string;
|
|
33
|
+
/** The key, as rowKey returns it, of the row the person is working on; that row is drawn as active. */
|
|
34
|
+
activeRowKey?: string | null | undefined;
|
|
35
|
+
onActiveRowChange?: ((rowKey: string) => void) | undefined;
|
|
36
|
+
renderCell: (row: Row, column: AppEntryGridColumn<Row>, isActive: boolean) => ReactNode;
|
|
37
|
+
rowState?: ((row: Row) => AppEntryGridRowStatus) | undefined;
|
|
38
|
+
/** The failure shown under a failed row (role alert). */
|
|
39
|
+
rowError?: ((row: Row) => ReactNode) | undefined;
|
|
40
|
+
onCommitRow?: ((row: Row, move: "next" | "stay") => void) | undefined;
|
|
41
|
+
onDiscardRow?: ((row: Row) => void) | undefined;
|
|
42
|
+
onAddRow?: (() => void) | undefined;
|
|
43
|
+
/** The sorted column's key and direction; that column's heading announces it. */
|
|
44
|
+
sort?: AppDataTableSort | null | undefined;
|
|
45
|
+
/** Called with the column key when a sortable heading is clicked or activated by Enter or Space; the page sorts. */
|
|
46
|
+
onSort?: ((columnKey: string) => void) | undefined;
|
|
47
|
+
/** Called when a block of several cells is pasted, with the cell it was pasted into and the cells as rows of text. */
|
|
48
|
+
onPasteRows?: ((paste: AppEntryGridPaste) => void) | undefined;
|
|
49
|
+
/** Shows the remove key in the legend and calls this with the row key on Ctrl+Delete or Meta+Backspace. */
|
|
50
|
+
onRemoveRow?: ((rowKey: string) => void) | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Draws placeholder rows instead of the lines while they load.
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
loading?: boolean | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* How many placeholder rows loading draws; a whole number of 1 or more.
|
|
58
|
+
* @default 3
|
|
59
|
+
*/
|
|
60
|
+
skeletonRows?: number | undefined;
|
|
61
|
+
/** Replaces the emptyLabel sentence when there are no rows, for a title, text and an action. Giving both is refused. */
|
|
62
|
+
emptyContent?: ReactNode | undefined;
|
|
63
|
+
/** The data-* attributes of a row's element; any other name, and data-row-key, is refused. */
|
|
64
|
+
rowProps?: ((row: Row) => Record<`data-${string}`, string>) | undefined;
|
|
65
|
+
/** The pager state, as AppDataTable takes it; draws the pager inside the grid frame under the table. */
|
|
66
|
+
pagination?: AppDataTablePagination | undefined;
|
|
67
|
+
renderRowDetail?: ((row: Row) => ReactNode) | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Shows the keyboard legend under the grid. The Enter and Ctrl+S entries show only with onCommitRow.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
hint?: boolean | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The accessible name of the table.
|
|
75
|
+
* @default "Entry lines"
|
|
76
|
+
*/
|
|
77
|
+
label?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The text of the button that adds an empty line at the end.
|
|
80
|
+
* @default "Add line"
|
|
81
|
+
*/
|
|
82
|
+
addLabel?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* The message shown when there are no rows.
|
|
85
|
+
* @default "No lines yet"
|
|
86
|
+
*/
|
|
87
|
+
emptyLabel?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* The name of the status column, read by screen readers but not shown.
|
|
90
|
+
* @default "Status"
|
|
91
|
+
*/
|
|
92
|
+
statusLabel?: string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* The status word for a line with changes not yet saved.
|
|
95
|
+
* @default "Changed"
|
|
96
|
+
*/
|
|
97
|
+
dirtyLabel?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* The status word for a line being saved.
|
|
100
|
+
* @default "Saving"
|
|
101
|
+
*/
|
|
102
|
+
savingLabel?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* The status word for a line that was saved.
|
|
105
|
+
* @default "Saved"
|
|
106
|
+
*/
|
|
107
|
+
savedLabel?: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* The status word for a line whose save failed.
|
|
110
|
+
* @default "Not saved"
|
|
111
|
+
*/
|
|
112
|
+
failedLabel?: string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* The keyboard legend for Enter.
|
|
115
|
+
* @default "Save and go to the next line"
|
|
116
|
+
*/
|
|
117
|
+
commitNextLabel?: string | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* The keyboard legend for Ctrl and S.
|
|
120
|
+
* @default "Save"
|
|
121
|
+
*/
|
|
122
|
+
commitStayLabel?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The keyboard legend for Escape.
|
|
125
|
+
* @default "Discard changes"
|
|
126
|
+
*/
|
|
127
|
+
discardLabel?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* The keyboard legend for Ctrl and the arrow keys.
|
|
130
|
+
* @default "Move between lines"
|
|
131
|
+
*/
|
|
132
|
+
moveLabel?: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The keyboard legend for Ctrl and Delete; shown only with onRemoveRow.
|
|
135
|
+
* @default "Remove line"
|
|
136
|
+
*/
|
|
137
|
+
removeLineLabel?: string | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Extra class names added to the grid's root element.
|
|
140
|
+
* @default ""
|
|
141
|
+
*/
|
|
142
|
+
className?: string | undefined;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* A keyboard-first grid for entering lines (an invoice, a stock count, a journal): one row is
|
|
146
|
+
* active, its cells are editable inputs the caller renders, and the keys work without the mouse.
|
|
147
|
+
*
|
|
148
|
+
* Enter save the active row and go to the next line (not in a textarea, a button or
|
|
149
|
+
* an open list, and never while an input method is composing)
|
|
150
|
+
* Ctrl+S / Meta+S save and stay on the row
|
|
151
|
+
* Esc discard the row's changes (not while a list is open: that closes the list)
|
|
152
|
+
* Ctrl+Up / Down move to the previous or next row
|
|
153
|
+
* Ctrl+Delete remove the row (Meta+Backspace on a Mac); only with `onRemoveRow`
|
|
154
|
+
* Tab native order, field by field; never intercepted
|
|
155
|
+
*
|
|
156
|
+
* The grid reports intent and never moves on its own: after `onCommitRow(row, "next")` the caller
|
|
157
|
+
* saves, and only when the save succeeds sets `activeRowKey` to the next row. A failed row stays
|
|
158
|
+
* active and shows `rowError`. Focus follows `activeRowKey`, so the caller drives the cursor.
|
|
159
|
+
*
|
|
160
|
+
* Each row shows a status mark (changed, saving, saved, not saved); a column with `footer` adds a
|
|
161
|
+
* totals row. The keys and focus live in `<wui-entry-grid>`, the element the Razor `<app-entry-grid>`
|
|
162
|
+
* prints too; this component answers its events with the callbacks.
|
|
163
|
+
*/
|
|
164
|
+
export default function AppEntryGrid<Row>(props: AppEntryGridProps<Row>): JSX.Element;
|
|
@@ -4,6 +4,8 @@ import { type AppDateRangePickerProps } from "./AppDateRangePicker.tsx";
|
|
|
4
4
|
export interface AppFilterOption {
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
7
|
+
count?: number | undefined;
|
|
8
|
+
icon?: string | undefined;
|
|
7
9
|
}
|
|
8
10
|
export interface AppFilterDateRange {
|
|
9
11
|
from: string;
|
|
@@ -25,11 +27,18 @@ export interface AppFilterBarProps extends Omit<ComponentPropsWithoutRef<"div">,
|
|
|
25
27
|
/** The current filters, keyed by facet key: a string, a list of strings, or a { from, to } date range. */
|
|
26
28
|
value: Readonly<Record<string, ListFilterValue>>;
|
|
27
29
|
onChange: (key: string, value: AppFilterValue) => void;
|
|
30
|
+
/** Called once per user action with every changed key and its new value: Clear all and Apply. Without it each key calls onChange. Use it when filters live in the page address, where one write per key overwrites the last. */
|
|
31
|
+
onChangeMany?: ((values: Record<string, AppFilterValue>) => void) | undefined;
|
|
28
32
|
/**
|
|
29
33
|
* How many facets stay in the row; the rest fold into the Filters button.
|
|
30
34
|
* @default 3
|
|
31
35
|
*/
|
|
32
36
|
inline?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Draws each inline facet's label above its control. The folded Filters panel always shows labels.
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
facetLabels?: boolean | undefined;
|
|
33
42
|
/**
|
|
34
43
|
* A floating panel: hover, click or F opens the facets in a non-modal panel under the Filters button, with a chip summary in the row.
|
|
35
44
|
* @default false
|
|
@@ -132,8 +141,10 @@ export interface AppFilterBarProps extends Omit<ComponentPropsWithoutRef<"div">,
|
|
|
132
141
|
* @param props.facets
|
|
133
142
|
* @param props.value
|
|
134
143
|
* @param props.onChange
|
|
135
|
-
* Called with the facet key and its new value.
|
|
144
|
+
* Called with the facet key and its new value.
|
|
145
|
+
* @param [props.onChangeMany] Called once per user action with every changed key and its new value: Clear all and Apply. Without it each key calls onChange. Use it when filters live in the page address, where one write per key overwrites the last.
|
|
136
146
|
* @param [props.inline]
|
|
147
|
+
* @param [props.facetLabels] Default false. Draws each inline facet's label above its control; the folded panel always shows labels.
|
|
137
148
|
* @param [props.floating]
|
|
138
149
|
* @param [props.apply]
|
|
139
150
|
* @param [props.size]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UnsavedChangesGuard } from "@webority/web-core/router";
|
|
1
2
|
import { type ComponentPropsWithRef, type JSX, type ReactNode, type SubmitEvent } from "react";
|
|
2
3
|
export interface AppFormSubmitContext {
|
|
3
4
|
/** One key per send; a new one is made only after onSubmit returns true. */
|
|
@@ -12,6 +13,23 @@ export interface AppFormProps extends Omit<ComponentPropsWithRef<"form">, "onSub
|
|
|
12
13
|
*/
|
|
13
14
|
className?: string | undefined;
|
|
14
15
|
children?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Field name to message. A field inside the form with that name and no error of its own shows it; one no field claims is drawn at the top of the form.
|
|
18
|
+
* @default {}
|
|
19
|
+
*/
|
|
20
|
+
fieldErrors?: Readonly<Record<string, string>> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Errors that name no field, drawn at the top of the form.
|
|
23
|
+
* @default []
|
|
24
|
+
*/
|
|
25
|
+
formErrors?: readonly string[] | undefined;
|
|
26
|
+
/** The guard from useUnsavedChanges (@webority/web-core/router); the form asks before a held navigation goes ahead. */
|
|
27
|
+
unsavedChanges?: UnsavedChangesGuard | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Replaces the question's message.
|
|
30
|
+
* @default "Your changes on this page are not saved. If you leave now, they are lost."
|
|
31
|
+
*/
|
|
32
|
+
unsavedChangesMessage?: string | undefined;
|
|
15
33
|
}
|
|
16
34
|
export interface FormSubmitState {
|
|
17
35
|
submitting: boolean;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, JSX, ReactNode } from "react";
|
|
2
|
+
export type AppFormulaSign = "plus" | "minus" | "times" | "divide" | "equal";
|
|
3
|
+
export interface AppFormulaStep {
|
|
4
|
+
key?: string | undefined;
|
|
5
|
+
/** The operator before this line; unset on the first line. "equal" marks a result line. */
|
|
6
|
+
sign?: AppFormulaSign | undefined;
|
|
7
|
+
label: string;
|
|
8
|
+
/** The working in words and numbers, such as "0.1% of ₹10,00,000.00, rounded to the rupee". */
|
|
9
|
+
working?: ReactNode | undefined;
|
|
10
|
+
/** The line's figure, already formatted. */
|
|
11
|
+
result: string;
|
|
12
|
+
note?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface AppFormulaStepsProps extends ComponentPropsWithoutRef<"ol"> {
|
|
15
|
+
/**
|
|
16
|
+
* The lines of the calculation, top to bottom. The first line has no sign; each later line names its operator.
|
|
17
|
+
* @default []
|
|
18
|
+
*/
|
|
19
|
+
steps?: readonly AppFormulaStep[] | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The accessible name of the list.
|
|
22
|
+
* @default "Calculation"
|
|
23
|
+
*/
|
|
24
|
+
label?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The word a plus line is read as. Replaces the built-in English text, for other languages.
|
|
27
|
+
* @default "plus"
|
|
28
|
+
*/
|
|
29
|
+
plusLabel?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The word a minus line is read as. Replaces the built-in English text, for other languages.
|
|
32
|
+
* @default "minus"
|
|
33
|
+
*/
|
|
34
|
+
minusLabel?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The word a times line is read as. Replaces the built-in English text, for other languages.
|
|
37
|
+
* @default "times"
|
|
38
|
+
*/
|
|
39
|
+
timesLabel?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The word a divide line is read as. Replaces the built-in English text, for other languages.
|
|
42
|
+
* @default "divided by"
|
|
43
|
+
*/
|
|
44
|
+
divideLabel?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The word an equal line is read as. Replaces the built-in English text, for other languages.
|
|
47
|
+
* @default "equals"
|
|
48
|
+
*/
|
|
49
|
+
equalLabel?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Extra class names added to the list's root element.
|
|
52
|
+
* @default ""
|
|
53
|
+
*/
|
|
54
|
+
className?: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A figure worked out one line at a time: each line applies an operator to the running
|
|
58
|
+
* total, shows its working and its figure, and the line marked `equal` is the result.
|
|
59
|
+
*
|
|
60
|
+
* The operator is drawn as a glyph hidden from assistive tech, with its word read
|
|
61
|
+
* in its place, so a screen reader hears "minus TDS" rather than a bare symbol. A
|
|
62
|
+
* line with no `sign` (the first) keeps an empty sign column so the figures align.
|
|
63
|
+
*/
|
|
64
|
+
export default function AppFormulaSteps(props: AppFormulaStepsProps): JSX.Element;
|
|
@@ -52,10 +52,10 @@ export interface AppInputProps extends Omit<React.ComponentPropsWithoutRef<"inpu
|
|
|
52
52
|
*/
|
|
53
53
|
type?: string | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* The control size: sm, md and
|
|
55
|
+
* The control size: sm, md, lg and xl are 35, 40, 45 and 50px. Md is the default.
|
|
56
56
|
* @default "md"
|
|
57
57
|
*/
|
|
58
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
58
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
59
59
|
/** A leading icon, given as a semantic icon name. */
|
|
60
60
|
leftIcon?: string | undefined;
|
|
61
61
|
/** A trailing icon button, given as a semantic icon name. It calls onRightIconClick when pressed. */
|
|
@@ -151,8 +151,8 @@ export interface AppInputProps extends Omit<React.ComponentPropsWithoutRef<"inpu
|
|
|
151
151
|
* @default "off"
|
|
152
152
|
*/
|
|
153
153
|
floatingLabel?: "off" | "border" | "above" | undefined;
|
|
154
|
-
/**
|
|
155
|
-
variant?: "bare" | undefined;
|
|
154
|
+
/** Bare drops the border and the fill, for inline editing. Underline keeps only a line under the field, which takes the same hover and focus colours as the boxed field. */
|
|
155
|
+
variant?: "bare" | "underline" | undefined;
|
|
156
156
|
/**
|
|
157
157
|
* Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.
|
|
158
158
|
* @default false
|
|
@@ -19,7 +19,7 @@ export interface AppInputGroupProps {
|
|
|
19
19
|
* Height of text add-ons; set the same size on the field and on button add-ons.
|
|
20
20
|
* @default "md"
|
|
21
21
|
*/
|
|
22
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
22
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Extra class on the root.
|
|
25
25
|
* @default ""
|
|
@@ -56,10 +56,10 @@ export interface AppMentionInputProps extends Omit<React.HTMLAttributes<HTMLElem
|
|
|
56
56
|
*/
|
|
57
57
|
loading?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
|
-
* The control size: sm, md or
|
|
59
|
+
* The control size: sm, md, lg or xl.
|
|
60
60
|
* @default "md"
|
|
61
61
|
*/
|
|
62
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
62
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
63
63
|
/** The starting value of an uncontrolled field. */
|
|
64
64
|
defaultValue?: string | undefined;
|
|
65
65
|
/** Posts the stored value under this name in a form. */
|
|
@@ -25,6 +25,11 @@ export interface AppMetricStripProps extends Omit<React.ComponentPropsWithoutRef
|
|
|
25
25
|
* @default "md"
|
|
26
26
|
*/
|
|
27
27
|
size?: (typeof SIZES)[number] | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Draws the strip as one flush row with a rule between figures from the medium breakpoint up, for a strip inside a flush card.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
divided?: boolean | undefined;
|
|
28
33
|
/** 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
34
|
linkComponent?: AppLinkComponent | undefined;
|
|
30
35
|
className?: string | undefined;
|
|
@@ -50,6 +50,11 @@ export interface AppModalProps extends Omit<ComponentPropsWithoutRef<"dialog">,
|
|
|
50
50
|
* @default "center"
|
|
51
51
|
*/
|
|
52
52
|
placement?: AppModalPlacement | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Face of the title. serif draws it in the display typeface at the 3xl size, weight 500.
|
|
55
|
+
* @default "sans"
|
|
56
|
+
*/
|
|
57
|
+
titleFont?: "sans" | "serif" | undefined;
|
|
53
58
|
/**
|
|
54
59
|
* Hides the header, leaving the body and footer.
|
|
55
60
|
* @default false
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
declare const SIZES: readonly ["sm", "md", "lg"];
|
|
2
|
+
declare const SIZES: readonly ["sm", "md", "lg", "xl"];
|
|
3
3
|
declare const GROUPINGS: readonly ["none", "indian"];
|
|
4
4
|
export type AppNumberInputSize = (typeof SIZES)[number];
|
|
5
5
|
export type AppNumberInputGrouping = (typeof GROUPINGS)[number];
|
|
@@ -68,7 +68,7 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
68
68
|
/** A unit suffix shown inside the field after the input, such as kg or %. */
|
|
69
69
|
unit?: string | undefined;
|
|
70
70
|
/**
|
|
71
|
-
* Control size: sm, md or
|
|
71
|
+
* Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.
|
|
72
72
|
* @default "md"
|
|
73
73
|
*/
|
|
74
74
|
size?: AppNumberInputSize | undefined;
|
|
@@ -101,6 +101,11 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
101
101
|
* @default false
|
|
102
102
|
*/
|
|
103
103
|
loading?: boolean | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
controlOnly?: boolean | undefined;
|
|
104
109
|
/** The starting value of an uncontrolled field. */
|
|
105
110
|
defaultValue?: number | null | undefined;
|
|
106
111
|
[attribute: `data-${string}`]: unknown;
|
|
@@ -119,7 +124,8 @@ export interface AppNumberInputProps extends Omit<ComponentPropsWithoutRef<"inpu
|
|
|
119
124
|
* - Displays as a text input (inputmode decimal when precision > 0, numeric otherwise)
|
|
120
125
|
* - Stepper buttons (−/+) increment/decrement by step, clamped to min/max
|
|
121
126
|
* - Typing free text: emits parsed number on change; null on blur if unparsable or empty
|
|
122
|
-
* - Keyboard ArrowUp/ArrowDown increment/decrement (respects step and bounds)
|
|
127
|
+
* - Keyboard ArrowUp/ArrowDown increment/decrement (respects step and bounds); with Ctrl, Meta or Alt held the keys go to the page
|
|
128
|
+
* - Emptying the text reports null at once; other unparsable text reports null on blur
|
|
123
129
|
* - Rounding to the specified precision
|
|
124
130
|
* - Buttons disabled at min/max or when the control is disabled
|
|
125
131
|
*/
|
|
@@ -76,7 +76,7 @@ export interface AppPhoneNumberInputProps extends Omit<React.HTMLAttributes<HTML
|
|
|
76
76
|
* The control height.
|
|
77
77
|
* @default "md"
|
|
78
78
|
*/
|
|
79
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
79
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
80
80
|
/**
|
|
81
81
|
* Extra classes on the field wrapper.
|
|
82
82
|
* @default ""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type AppLinkComponent } from "../lib/linkTarget.ts";
|
|
3
|
+
export interface AppRowAction {
|
|
4
|
+
/** Unique within the row's list. */
|
|
5
|
+
key: string;
|
|
6
|
+
/** The icon button's accessible name and tooltip, and the menu row's text. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** A library icon name. Without it (and without showLabel) the action is a menu row at every width. */
|
|
9
|
+
icon?: string | undefined;
|
|
10
|
+
/** The inline icon's style; the menu row draws the linear glyph. */
|
|
11
|
+
iconVariant?: "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone" | undefined;
|
|
12
|
+
/** A plain link, never routed through linkComponent. An action takes to or href, not both. */
|
|
13
|
+
href?: string | undefined;
|
|
14
|
+
/** An in-app route, drawn through linkComponent when one is given. */
|
|
15
|
+
to?: string | undefined;
|
|
16
|
+
/** Where an href or to opens. Needs href or to. */
|
|
17
|
+
target?: "_blank" | "_self" | undefined;
|
|
18
|
+
/** The link's rel. Needs href or to. */
|
|
19
|
+
rel?: string | undefined;
|
|
20
|
+
/** data-* attributes written on the control (the icon button or button and the menu row). */
|
|
21
|
+
data?: Readonly<Record<`data-${string}`, string>> | undefined;
|
|
22
|
+
/** Runs on a click; may accompany href or to. An action needs onClick, href or to unless it is disabled. */
|
|
23
|
+
onClick?: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
24
|
+
/** danger marks a destructive action. */
|
|
25
|
+
tone?: "danger" | undefined;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
/** Why the action is disabled: joined to the icon button's label as "Edit: locked", and shown on the menu row. Needs disabled. */
|
|
28
|
+
disabledReason?: string | undefined;
|
|
29
|
+
/** Keeps the action in the menu at every width. Not with showLabel. */
|
|
30
|
+
menuOnly?: boolean | undefined;
|
|
31
|
+
/** From sm up, draws the action as a small labelled button instead of an icon button. */
|
|
32
|
+
showLabel?: boolean | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** A list entry; false, null and undefined are skipped, so `canEdit && { ... }` leaves an action out. */
|
|
35
|
+
export type AppRowActionEntry = AppRowAction | false | null | undefined;
|
|
36
|
+
export interface AppRowActionsProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
|
|
37
|
+
/** The row's actions, in order. A list entry; false, null and undefined are skipped, so `canEdit && { ... }` leaves an action out. Each item needs a unique `key`, and onClick, href or to unless it is disabled; onClick may accompany href or to. */
|
|
38
|
+
items: readonly AppRowActionEntry[];
|
|
39
|
+
/**
|
|
40
|
+
* The menu trigger's accessible name and tooltip.
|
|
41
|
+
* @default "More actions"
|
|
42
|
+
*/
|
|
43
|
+
menuLabel?: string | undefined;
|
|
44
|
+
linkComponent?: AppLinkComponent | undefined;
|
|
45
|
+
}
|
|
46
|
+
export default function AppRowActions(props: AppRowActionsProps): React.JSX.Element;
|
|
@@ -25,7 +25,7 @@ export interface AppSearchProps extends Omit<ComponentPropsWithoutRef<"input">,
|
|
|
25
25
|
/** The size in pixels of the leading magnifier. It is 18 when left out. */
|
|
26
26
|
iconSize?: number | undefined;
|
|
27
27
|
/** Control size around the default. */
|
|
28
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
28
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Swap the leading glyph for a spinner while a search is in flight.
|
|
31
31
|
* @default false
|
|
@@ -11,7 +11,7 @@ export interface AppSectionFeaturesProps {
|
|
|
11
11
|
/** The section's heading. */
|
|
12
12
|
title: ReactNode;
|
|
13
13
|
/**
|
|
14
|
-
* The points: a title, a description, a library icon name
|
|
14
|
+
* The points: a title, a description, a library icon name or an image, and a second image for the rows layout.
|
|
15
15
|
* @default []
|
|
16
16
|
*/
|
|
17
17
|
items?: {
|
|
@@ -19,6 +19,10 @@ export interface AppSectionFeaturesProps {
|
|
|
19
19
|
title: string;
|
|
20
20
|
description?: ReactNode | undefined;
|
|
21
21
|
icon?: string | undefined;
|
|
22
|
+
imageSrc?: string | undefined;
|
|
23
|
+
imageAlt?: string | undefined;
|
|
24
|
+
imageWidth?: number | undefined;
|
|
25
|
+
imageHeight?: number | undefined;
|
|
22
26
|
media?: ReactNode | undefined;
|
|
23
27
|
}[] | undefined;
|
|
24
28
|
/**
|
|
@@ -28,10 +28,10 @@ interface AppSelectBaseProps {
|
|
|
28
28
|
*/
|
|
29
29
|
density?: "comfortable" | "compact" | undefined;
|
|
30
30
|
/**
|
|
31
|
-
* Control size: sm, md or
|
|
31
|
+
* Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.
|
|
32
32
|
* @default "md"
|
|
33
33
|
*/
|
|
34
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The choices. A label may be a node, such as CO2 with a subscript: it renders as static markup, and search and the option's accessible name use its text. In tag mode these are the suggestions.
|
|
37
37
|
* @default []
|
|
@@ -243,6 +243,7 @@ interface AppSelectBaseProps {
|
|
|
243
243
|
"aria-label"?: string | undefined;
|
|
244
244
|
"aria-labelledby"?: string | undefined;
|
|
245
245
|
"aria-describedby"?: string | undefined;
|
|
246
|
+
"aria-invalid"?: boolean | "true" | "false" | undefined;
|
|
246
247
|
/** Passed to the element. */
|
|
247
248
|
autoComplete?: string | undefined;
|
|
248
249
|
/** Focuses the control on mount. */
|
|
@@ -61,6 +61,8 @@ export interface UserMenuShape {
|
|
|
61
61
|
roles?: string[] | undefined;
|
|
62
62
|
/** Leave the job title off the topbar trigger; the opened menu still shows it. */
|
|
63
63
|
noTriggerRole?: boolean | undefined;
|
|
64
|
+
/** Draws an always-on outline around the topbar trigger. Defaults to false. */
|
|
65
|
+
outlined?: boolean | undefined;
|
|
64
66
|
/** Profile photo URL. */
|
|
65
67
|
photo?: string | undefined;
|
|
66
68
|
profileHref?: string | undefined;
|
|
@@ -55,6 +55,11 @@ interface AppSliderBaseProps {
|
|
|
55
55
|
showValue?: boolean | undefined;
|
|
56
56
|
/** Suffix for the value label, for example %. */
|
|
57
57
|
unit?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Digit grouping of the value label: indian writes 1,50,000; none writes 150000.
|
|
60
|
+
* @default "none"
|
|
61
|
+
*/
|
|
62
|
+
grouping?: "none" | "indian" | undefined;
|
|
58
63
|
/** Element id; a generated id is used when omitted. */
|
|
59
64
|
id?: string | undefined;
|
|
60
65
|
/** Accessible name when no visible label is used. */
|
|
@@ -39,10 +39,10 @@ export interface AppTextareaProps extends ComponentPropsWithoutRef<"textarea"> {
|
|
|
39
39
|
*/
|
|
40
40
|
loading?: boolean | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* The control size: sm, md or
|
|
42
|
+
* The control size: sm, md, lg or xl.
|
|
43
43
|
* @default "md"
|
|
44
44
|
*/
|
|
45
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
45
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* A class added to the control.
|
|
48
48
|
* @default ""
|
|
@@ -64,7 +64,7 @@ export interface AppTimePickerProps extends Omit<ComponentPropsWithoutRef<"div">
|
|
|
64
64
|
*/
|
|
65
65
|
loading?: boolean | undefined;
|
|
66
66
|
/** The control height tier, matching AppInput; leave unset for the default height. */
|
|
67
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
67
|
+
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
68
68
|
/** The control's id. A generated id is used when this is unset. */
|
|
69
69
|
id?: string | undefined;
|
|
70
70
|
/** The accessible name of the control. When unset, a text label names it. */
|