@orianatech/pire 1.6.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/core/Button.d.cts +12 -0
- package/dist/components/core/Button.d.ts +12 -0
- package/dist/components/core/Button.d.ts.map +1 -1
- package/dist/components/core/ComingSoonMark.d.cts +39 -0
- package/dist/components/core/ComingSoonMark.d.ts +40 -0
- package/dist/components/core/ComingSoonMark.d.ts.map +1 -0
- package/dist/components/data/DataTable.d.cts +35 -1
- package/dist/components/data/DataTable.d.ts +35 -1
- package/dist/components/data/DataTable.d.ts.map +1 -1
- package/dist/components/forms/ChoiceCardGroup.d.cts +11 -1
- package/dist/components/forms/ChoiceCardGroup.d.ts +11 -1
- package/dist/components/forms/ChoiceCardGroup.d.ts.map +1 -1
- package/dist/components/forms/ComboBox.d.cts +11 -1
- package/dist/components/forms/ComboBox.d.ts +11 -1
- package/dist/components/forms/ComboBox.d.ts.map +1 -1
- package/dist/components/forms/DatePicker.d.cts +11 -1
- package/dist/components/forms/DatePicker.d.ts +11 -1
- package/dist/components/forms/DatePicker.d.ts.map +1 -1
- package/dist/components/forms/DateRangePicker.d.cts +11 -1
- package/dist/components/forms/DateRangePicker.d.ts +11 -1
- package/dist/components/forms/DateRangePicker.d.ts.map +1 -1
- package/dist/components/forms/FieldDescription.d.cts +16 -0
- package/dist/components/forms/FieldDescription.d.ts +17 -0
- package/dist/components/forms/FieldDescription.d.ts.map +1 -0
- package/dist/components/forms/FieldHelp.d.cts +19 -0
- package/dist/components/forms/FieldHelp.d.ts +20 -0
- package/dist/components/forms/FieldHelp.d.ts.map +1 -0
- package/dist/components/forms/FieldLabel.d.cts +36 -0
- package/dist/components/forms/FieldLabel.d.ts +37 -0
- package/dist/components/forms/FieldLabel.d.ts.map +1 -0
- package/dist/components/forms/FormField.d.cts +10 -1
- package/dist/components/forms/FormField.d.ts +10 -1
- package/dist/components/forms/FormField.d.ts.map +1 -1
- package/dist/components/forms/Input.d.cts +11 -1
- package/dist/components/forms/Input.d.ts +11 -1
- package/dist/components/forms/Input.d.ts.map +1 -1
- package/dist/components/forms/MultiComboBox.d.cts +11 -1
- package/dist/components/forms/MultiComboBox.d.ts +11 -1
- package/dist/components/forms/MultiComboBox.d.ts.map +1 -1
- package/dist/components/forms/NumberField.d.cts +11 -1
- package/dist/components/forms/NumberField.d.ts +11 -1
- package/dist/components/forms/NumberField.d.ts.map +1 -1
- package/dist/components/forms/Select.d.cts +38 -4
- package/dist/components/forms/Select.d.ts +38 -4
- package/dist/components/forms/Select.d.ts.map +1 -1
- package/dist/components/forms/TextArea.d.cts +11 -1
- package/dist/components/forms/TextArea.d.ts +11 -1
- package/dist/components/forms/TextArea.d.ts.map +1 -1
- package/dist/components/layout/SelectionBar.d.cts +31 -4
- package/dist/components/layout/SelectionBar.d.ts +31 -4
- package/dist/components/layout/SelectionBar.d.ts.map +1 -1
- package/dist/components/navigation/Breadcrumb.d.cts +12 -2
- package/dist/components/navigation/Breadcrumb.d.ts +12 -2
- package/dist/components/navigation/Breadcrumb.d.ts.map +1 -1
- package/dist/components/navigation/Ribbon.d.cts +27 -0
- package/dist/components/navigation/Ribbon.d.ts +27 -0
- package/dist/components/navigation/Ribbon.d.ts.map +1 -1
- package/dist/components/navigation/ShellBar.d.cts +19 -1
- package/dist/components/navigation/ShellBar.d.ts +19 -1
- package/dist/components/navigation/ShellBar.d.ts.map +1 -1
- package/dist/components/patterns/SidePanel.d.cts +17 -3
- package/dist/components/patterns/SidePanel.d.ts +17 -3
- package/dist/components/patterns/SidePanel.d.ts.map +1 -1
- package/dist/components/utils/devWarn.d.cts +9 -0
- package/dist/components/utils/devWarn.d.ts +10 -0
- package/dist/components/utils/devWarn.d.ts.map +1 -0
- package/dist/components.css +224 -2
- package/dist/i18n/messages.d.cts +37 -1
- package/dist/i18n/messages.d.ts +37 -1
- package/dist/i18n/messages.d.ts.map +1 -1
- package/dist/index.cjs +1617 -1107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1523 -1026
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,6 +12,18 @@ export interface ButtonProps extends Omit<AriaButtonProps, 'className' | 'childr
|
|
|
12
12
|
/** Icon slug rendered after the label. */
|
|
13
13
|
iconEnd?: string;
|
|
14
14
|
fullWidth?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* An action the product will have but does not have yet. Draws the button in the tertiary ink
|
|
17
|
+
* with a "Soon" mark after the label, keeps it **focusable** with `aria-disabled="true"`, and
|
|
18
|
+
* never fires `onPress` (nor submits a form).
|
|
19
|
+
*
|
|
20
|
+
* Not a kind of `isDisabled`. Disabled means "not now" — no selection, no permission, the wrong
|
|
21
|
+
* document state — and takes the control out of the tab order. This means "not yet", and the mark
|
|
22
|
+
* is the message: it has to be reachable by keyboard, announced ("Send by WhatsApp, soon"), and
|
|
23
|
+
* able to carry a `Tooltip` saying what the action will do. It also does not look disabled, so a
|
|
24
|
+
* user can tell the two apart.
|
|
25
|
+
*/
|
|
26
|
+
isComingSoon?: boolean;
|
|
15
27
|
className?: string;
|
|
16
28
|
}
|
|
17
29
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -12,6 +12,18 @@ export interface ButtonProps extends Omit<AriaButtonProps, 'className' | 'childr
|
|
|
12
12
|
/** Icon slug rendered after the label. */
|
|
13
13
|
iconEnd?: string;
|
|
14
14
|
fullWidth?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* An action the product will have but does not have yet. Draws the button in the tertiary ink
|
|
17
|
+
* with a "Soon" mark after the label, keeps it **focusable** with `aria-disabled="true"`, and
|
|
18
|
+
* never fires `onPress` (nor submits a form).
|
|
19
|
+
*
|
|
20
|
+
* Not a kind of `isDisabled`. Disabled means "not now" — no selection, no permission, the wrong
|
|
21
|
+
* document state — and takes the control out of the tab order. This means "not yet", and the mark
|
|
22
|
+
* is the message: it has to be reachable by keyboard, announced ("Send by WhatsApp, soon"), and
|
|
23
|
+
* able to carry a `Tooltip` saying what the action will do. It also does not look disabled, so a
|
|
24
|
+
* user can tell the two apart.
|
|
25
|
+
*/
|
|
26
|
+
isComingSoon?: boolean;
|
|
15
27
|
className?: string;
|
|
16
28
|
}
|
|
17
29
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMlG,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,UAAU,CAAC;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;gEAC4D;IAC5D,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;IACzE,4EAA4E;IAC5E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,uFAgCjB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "Soon" mark `Button` and `Ribbon.Command` draw after their label while `isComingSoon`.
|
|
3
|
+
*
|
|
4
|
+
* Private: the mark means nothing on its own, only beside the label of a control that is focusable
|
|
5
|
+
* and inert. It is drawn, never announced — the announcement is the control's name, which
|
|
6
|
+
* `comingSoonProps` builds whenever the label is plain text. `announce` is the fallback for a label
|
|
7
|
+
* that is not (an element, a formatted fragment): a hidden ", Soon" read as part of the content.
|
|
8
|
+
* Second best, because the hidden span is absolutely positioned and name computation pads a
|
|
9
|
+
* non-inline box with spaces — "Registrar cobro , Pronto".
|
|
10
|
+
*/
|
|
11
|
+
export declare function ComingSoonMark({ announce }: {
|
|
12
|
+
announce: boolean;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* What `isComingSoon` does to a React Aria button's props, shared so `Button` and `Ribbon.Command`
|
|
16
|
+
* cannot drift apart.
|
|
17
|
+
*
|
|
18
|
+
* Not `isDisabled`: that takes the control out of the tab order, and the mark is the message — a
|
|
19
|
+
* screen-reader user who can never reach the control never hears it, and a `Tooltip` has nothing to
|
|
20
|
+
* attach to. `aria-disabled` keeps it reachable while saying it does nothing. Every press handler
|
|
21
|
+
* is dropped rather than wrapped, and `type` is forced to `button`, because a submit button that is
|
|
22
|
+
* only *aria*-disabled still submits its form.
|
|
23
|
+
*
|
|
24
|
+
* `label` is the control's name as plain text — an explicit `aria-label`, or the children when they
|
|
25
|
+
* are a string — and comes back as `"<label>, <Soon>"`. Pass `undefined` when there is no such text,
|
|
26
|
+
* and render `ComingSoonMark` with `announce` instead.
|
|
27
|
+
*/
|
|
28
|
+
export declare function comingSoonProps(label: string | undefined, comingSoon: string): {
|
|
29
|
+
'aria-disabled': true;
|
|
30
|
+
'data-coming-soon': string;
|
|
31
|
+
type: 'button';
|
|
32
|
+
onPress: undefined;
|
|
33
|
+
onPressStart: undefined;
|
|
34
|
+
onPressEnd: undefined;
|
|
35
|
+
onPressUp: undefined;
|
|
36
|
+
onPressChange: undefined;
|
|
37
|
+
onClick: undefined;
|
|
38
|
+
'aria-label'?: string | undefined;
|
|
39
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "Soon" mark `Button` and `Ribbon.Command` draw after their label while `isComingSoon`.
|
|
3
|
+
*
|
|
4
|
+
* Private: the mark means nothing on its own, only beside the label of a control that is focusable
|
|
5
|
+
* and inert. It is drawn, never announced — the announcement is the control's name, which
|
|
6
|
+
* `comingSoonProps` builds whenever the label is plain text. `announce` is the fallback for a label
|
|
7
|
+
* that is not (an element, a formatted fragment): a hidden ", Soon" read as part of the content.
|
|
8
|
+
* Second best, because the hidden span is absolutely positioned and name computation pads a
|
|
9
|
+
* non-inline box with spaces — "Registrar cobro , Pronto".
|
|
10
|
+
*/
|
|
11
|
+
export declare function ComingSoonMark({ announce }: {
|
|
12
|
+
announce: boolean;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* What `isComingSoon` does to a React Aria button's props, shared so `Button` and `Ribbon.Command`
|
|
16
|
+
* cannot drift apart.
|
|
17
|
+
*
|
|
18
|
+
* Not `isDisabled`: that takes the control out of the tab order, and the mark is the message — a
|
|
19
|
+
* screen-reader user who can never reach the control never hears it, and a `Tooltip` has nothing to
|
|
20
|
+
* attach to. `aria-disabled` keeps it reachable while saying it does nothing. Every press handler
|
|
21
|
+
* is dropped rather than wrapped, and `type` is forced to `button`, because a submit button that is
|
|
22
|
+
* only *aria*-disabled still submits its form.
|
|
23
|
+
*
|
|
24
|
+
* `label` is the control's name as plain text — an explicit `aria-label`, or the children when they
|
|
25
|
+
* are a string — and comes back as `"<label>, <Soon>"`. Pass `undefined` when there is no such text,
|
|
26
|
+
* and render `ComingSoonMark` with `announce` instead.
|
|
27
|
+
*/
|
|
28
|
+
export declare function comingSoonProps(label: string | undefined, comingSoon: string): {
|
|
29
|
+
'aria-disabled': true;
|
|
30
|
+
'data-coming-soon': string;
|
|
31
|
+
type: 'button';
|
|
32
|
+
onPress: undefined;
|
|
33
|
+
onPressStart: undefined;
|
|
34
|
+
onPressEnd: undefined;
|
|
35
|
+
onPressUp: undefined;
|
|
36
|
+
onPressChange: undefined;
|
|
37
|
+
onClick: undefined;
|
|
38
|
+
'aria-label'?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ComingSoonMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComingSoonMark.d.ts","sourceRoot":"","sources":["../../../src/components/core/ComingSoonMark.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,+BAUjE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM;;;UAInE,QAAQ;;;;;;;;EASjB"}
|
|
@@ -23,6 +23,16 @@ export interface DataTableColumn<T = any> {
|
|
|
23
23
|
*/
|
|
24
24
|
hideLabel?: boolean;
|
|
25
25
|
render?: (row: T) => React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* The field this cell shows while its row is being edited (`editingRowId`, `pendingRow`). Pass an
|
|
28
|
+
* `Input`, `Select`, `NumberField`… with `aria-label` — there is no visible label in a cell — and
|
|
29
|
+
* own its value yourself. A column without one keeps showing its value, or nothing on the pending
|
|
30
|
+
* row, which has no value yet.
|
|
31
|
+
*
|
|
32
|
+
* For the pending row it is called with `pendingRow`, which is not a full record: read nothing
|
|
33
|
+
* off it that the pending row does not carry.
|
|
34
|
+
*/
|
|
35
|
+
renderEdit?: (row: T) => React.ReactNode;
|
|
26
36
|
/**
|
|
27
37
|
* Freezes the column at the start of the grid while the rest scroll horizontally. For a
|
|
28
38
|
* comparison matrix — one product across thirty-four branches — where the row is unreadable
|
|
@@ -116,6 +126,30 @@ export interface DataTableProps<T extends {
|
|
|
116
126
|
expandedIds?: Array<string | number>;
|
|
117
127
|
/** Swaps the body for skeleton rows derived from `columns` and `density`, keeping the header. */
|
|
118
128
|
isLoading?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The row currently being edited in place. Its `renderEdit` cells swap in for their values, focus
|
|
131
|
+
* goes to the first field, and every key typed into a field belongs to that field — Space types a
|
|
132
|
+
* space, arrows move the caret, letters do not start a row search. Enter in any field calls
|
|
133
|
+
* `onCommitRow`, Escape calls `onCancelRow`; the table does not leave edit mode on its own, so
|
|
134
|
+
* clear this (or keep it, if the save failed) in those handlers.
|
|
135
|
+
*
|
|
136
|
+
* For a 1–3 field master — brands, reasons, helpdesk categories — that has no page or dialog of
|
|
137
|
+
* its own. A row with more fields than that wants `SidePanel presentation="docked"` instead.
|
|
138
|
+
*/
|
|
139
|
+
editingRowId?: string | number;
|
|
140
|
+
/**
|
|
141
|
+
* A new record that does not exist in `rows` yet, rendered as an editing row above them. Lets
|
|
142
|
+
* "New brand" add a row without inventing a placeholder id. Its handlers receive `null` as the id.
|
|
143
|
+
*
|
|
144
|
+
* After `onCommitRow(null)` focus returns to the pending row's first field, so a consumer that
|
|
145
|
+
* saves and passes a fresh blank `pendingRow` gives the "Enter saves and opens another" loop with
|
|
146
|
+
* no focus handling of its own.
|
|
147
|
+
*/
|
|
148
|
+
pendingRow?: Partial<T>;
|
|
149
|
+
/** Enter in a field of the editing row. `null` for `pendingRow`. */
|
|
150
|
+
onCommitRow?: (id: string | number | null) => void;
|
|
151
|
+
/** Escape in a field of the editing row. `null` for `pendingRow`. */
|
|
152
|
+
onCancelRow?: (id: string | number | null) => void;
|
|
119
153
|
/** Skeleton row count. Defaults to the current `rows` length, or 5 when there are none. */
|
|
120
154
|
loadingRowCount?: number;
|
|
121
155
|
/** Overrides the dictionary's `dataTableLoading`, announced while the body is a skeleton. */
|
|
@@ -128,4 +162,4 @@ export interface DataTableProps<T extends {
|
|
|
128
162
|
* screen-reader row/column announcements — do not hand-roll a <table> in product code. */
|
|
129
163
|
export declare function DataTable<T extends {
|
|
130
164
|
id: string | number;
|
|
131
|
-
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
|
|
165
|
+
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
|
|
@@ -23,6 +23,16 @@ export interface DataTableColumn<T = any> {
|
|
|
23
23
|
*/
|
|
24
24
|
hideLabel?: boolean;
|
|
25
25
|
render?: (row: T) => React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* The field this cell shows while its row is being edited (`editingRowId`, `pendingRow`). Pass an
|
|
28
|
+
* `Input`, `Select`, `NumberField`… with `aria-label` — there is no visible label in a cell — and
|
|
29
|
+
* own its value yourself. A column without one keeps showing its value, or nothing on the pending
|
|
30
|
+
* row, which has no value yet.
|
|
31
|
+
*
|
|
32
|
+
* For the pending row it is called with `pendingRow`, which is not a full record: read nothing
|
|
33
|
+
* off it that the pending row does not carry.
|
|
34
|
+
*/
|
|
35
|
+
renderEdit?: (row: T) => React.ReactNode;
|
|
26
36
|
/**
|
|
27
37
|
* Freezes the column at the start of the grid while the rest scroll horizontally. For a
|
|
28
38
|
* comparison matrix — one product across thirty-four branches — where the row is unreadable
|
|
@@ -116,6 +126,30 @@ export interface DataTableProps<T extends {
|
|
|
116
126
|
expandedIds?: Array<string | number>;
|
|
117
127
|
/** Swaps the body for skeleton rows derived from `columns` and `density`, keeping the header. */
|
|
118
128
|
isLoading?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The row currently being edited in place. Its `renderEdit` cells swap in for their values, focus
|
|
131
|
+
* goes to the first field, and every key typed into a field belongs to that field — Space types a
|
|
132
|
+
* space, arrows move the caret, letters do not start a row search. Enter in any field calls
|
|
133
|
+
* `onCommitRow`, Escape calls `onCancelRow`; the table does not leave edit mode on its own, so
|
|
134
|
+
* clear this (or keep it, if the save failed) in those handlers.
|
|
135
|
+
*
|
|
136
|
+
* For a 1–3 field master — brands, reasons, helpdesk categories — that has no page or dialog of
|
|
137
|
+
* its own. A row with more fields than that wants `SidePanel presentation="docked"` instead.
|
|
138
|
+
*/
|
|
139
|
+
editingRowId?: string | number;
|
|
140
|
+
/**
|
|
141
|
+
* A new record that does not exist in `rows` yet, rendered as an editing row above them. Lets
|
|
142
|
+
* "New brand" add a row without inventing a placeholder id. Its handlers receive `null` as the id.
|
|
143
|
+
*
|
|
144
|
+
* After `onCommitRow(null)` focus returns to the pending row's first field, so a consumer that
|
|
145
|
+
* saves and passes a fresh blank `pendingRow` gives the "Enter saves and opens another" loop with
|
|
146
|
+
* no focus handling of its own.
|
|
147
|
+
*/
|
|
148
|
+
pendingRow?: Partial<T>;
|
|
149
|
+
/** Enter in a field of the editing row. `null` for `pendingRow`. */
|
|
150
|
+
onCommitRow?: (id: string | number | null) => void;
|
|
151
|
+
/** Escape in a field of the editing row. `null` for `pendingRow`. */
|
|
152
|
+
onCancelRow?: (id: string | number | null) => void;
|
|
119
153
|
/** Skeleton row count. Defaults to the current `rows` length, or 5 when there are none. */
|
|
120
154
|
loadingRowCount?: number;
|
|
121
155
|
/** Overrides the dictionary's `dataTableLoading`, announced while the body is a skeleton. */
|
|
@@ -128,5 +162,5 @@ export interface DataTableProps<T extends {
|
|
|
128
162
|
* screen-reader row/column announcements — do not hand-roll a <table> in product code. */
|
|
129
163
|
export declare function DataTable<T extends {
|
|
130
164
|
id: string | number;
|
|
131
|
-
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
|
|
165
|
+
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style, ...rest }: DataTableProps<T>): React.JSX.Element;
|
|
132
166
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/data/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/data/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2J/B;yCACyC;AACzC,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;AAEjG,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,G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AE,EAAE,EAC3D,OAAO,EACP,IAAI,EACJ,OAAmB,EACnB,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,YAAmB,EACnB,UAAU,EACV,SAAS,EACT,eAAe,EACf,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,cAAc,CAAC,CAAC,CAAC,qBAmXnB"}
|
|
@@ -22,6 +22,16 @@ export interface ChoiceCardGroupProps {
|
|
|
22
22
|
/** Guidance that applies to the group as a whole, below the cards — not a per-option detail,
|
|
23
23
|
* which belongs in that option's `description`. */
|
|
24
24
|
description?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
27
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
28
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
29
|
+
*
|
|
30
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
31
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
32
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
33
|
+
*/
|
|
34
|
+
help?: React.ReactNode;
|
|
25
35
|
/** Shown when `isRequired` and nothing has been chosen at validation time. */
|
|
26
36
|
errorMessage?: React.ReactNode;
|
|
27
37
|
options: ChoiceCardOption[];
|
|
@@ -47,4 +57,4 @@ export interface ChoiceCardGroupProps {
|
|
|
47
57
|
* posting mode. Use it when the choice deserves a sentence; use `Radio` when the label is enough
|
|
48
58
|
* and `SegmentedControl` when the options only change how data is displayed.
|
|
49
59
|
*/
|
|
50
|
-
export declare function ChoiceCardGroup({ label, description, errorMessage, options, value, defaultValue, onChange, columns, isDisabled, isRequired, className, style, ...rest }: ChoiceCardGroupProps): React.JSX.Element;
|
|
60
|
+
export declare function ChoiceCardGroup({ label, description, help, errorMessage, options, value, defaultValue, onChange, columns, isDisabled, isRequired, className, style, ...rest }: ChoiceCardGroupProps): React.JSX.Element;
|
|
@@ -22,6 +22,16 @@ export interface ChoiceCardGroupProps {
|
|
|
22
22
|
/** Guidance that applies to the group as a whole, below the cards — not a per-option detail,
|
|
23
23
|
* which belongs in that option's `description`. */
|
|
24
24
|
description?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
27
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
28
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
29
|
+
*
|
|
30
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
31
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
32
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
33
|
+
*/
|
|
34
|
+
help?: React.ReactNode;
|
|
25
35
|
/** Shown when `isRequired` and nothing has been chosen at validation time. */
|
|
26
36
|
errorMessage?: React.ReactNode;
|
|
27
37
|
options: ChoiceCardOption[];
|
|
@@ -47,5 +57,5 @@ export interface ChoiceCardGroupProps {
|
|
|
47
57
|
* posting mode. Use it when the choice deserves a sentence; use `Radio` when the label is enough
|
|
48
58
|
* and `SegmentedControl` when the options only change how data is displayed.
|
|
49
59
|
*/
|
|
50
|
-
export declare function ChoiceCardGroup({ label, description, errorMessage, options, value, defaultValue, onChange, columns, isDisabled, isRequired, className, style, ...rest }: ChoiceCardGroupProps): React.JSX.Element;
|
|
60
|
+
export declare function ChoiceCardGroup({ label, description, help, errorMessage, options, value, defaultValue, onChange, columns, isDisabled, isRequired, className, style, ...rest }: ChoiceCardGroupProps): React.JSX.Element;
|
|
51
61
|
//# sourceMappingURL=ChoiceCardGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceCardGroup.d.ts","sourceRoot":"","sources":["../../../src/components/forms/ChoiceCardGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChoiceCardGroup.d.ts","sourceRoot":"","sources":["../../../src/components/forms/ChoiceCardGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAOpC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,mFAAmF;IACnF,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;6FACyF;IACzF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;0FACsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,iGAAiG;IACjG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;oBAEgB;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;wDACoD;IACpD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,yGAAyG;IACzG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;iFAC6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;iHAC6G;IAC7G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;iEAC6D;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,OAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,oBAAoB,qBAuCtB"}
|
|
@@ -65,6 +65,16 @@ export interface ComboBoxProps {
|
|
|
65
65
|
onLoadMore?: () => void;
|
|
66
66
|
placeholder?: string;
|
|
67
67
|
description?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
70
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
71
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
72
|
+
*
|
|
73
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
74
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
75
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
76
|
+
*/
|
|
77
|
+
help?: React.ReactNode;
|
|
68
78
|
errorMessage?: React.ReactNode;
|
|
69
79
|
isInvalid?: boolean;
|
|
70
80
|
isDisabled?: boolean;
|
|
@@ -80,4 +90,4 @@ export interface ComboBoxProps {
|
|
|
80
90
|
}
|
|
81
91
|
/** Type-ahead picker for lists too long to scroll — material, cost centre, G/L account.
|
|
82
92
|
* Below ~10 fixed options use Select; for master-data search with several columns use ValueHelpField. */
|
|
83
|
-
export declare function ComboBox({ label, value, defaultValue, onChange, onInputChange, inputValue, options, description, errorMessage, size, fullWidth, isFilteredExternally, isLoading, loadingLabel, emptyLabel, isClearable, clearLabel, onLoadMore, className, style, ...rest }: ComboBoxProps): React.JSX.Element;
|
|
93
|
+
export declare function ComboBox({ label, value, defaultValue, onChange, onInputChange, inputValue, options, description, help, errorMessage, size, fullWidth, isFilteredExternally, isLoading, loadingLabel, emptyLabel, isClearable, clearLabel, onLoadMore, className, style, ...rest }: ComboBoxProps): React.JSX.Element;
|
|
@@ -65,6 +65,16 @@ export interface ComboBoxProps {
|
|
|
65
65
|
onLoadMore?: () => void;
|
|
66
66
|
placeholder?: string;
|
|
67
67
|
description?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
70
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
71
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
72
|
+
*
|
|
73
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
74
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
75
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
76
|
+
*/
|
|
77
|
+
help?: React.ReactNode;
|
|
68
78
|
errorMessage?: React.ReactNode;
|
|
69
79
|
isInvalid?: boolean;
|
|
70
80
|
isDisabled?: boolean;
|
|
@@ -80,5 +90,5 @@ export interface ComboBoxProps {
|
|
|
80
90
|
}
|
|
81
91
|
/** Type-ahead picker for lists too long to scroll — material, cost centre, G/L account.
|
|
82
92
|
* Below ~10 fixed options use Select; for master-data search with several columns use ValueHelpField. */
|
|
83
|
-
export declare function ComboBox({ label, value, defaultValue, onChange, onInputChange, inputValue, options, description, errorMessage, size, fullWidth, isFilteredExternally, isLoading, loadingLabel, emptyLabel, isClearable, clearLabel, onLoadMore, className, style, ...rest }: ComboBoxProps): React.JSX.Element;
|
|
93
|
+
export declare function ComboBox({ label, value, defaultValue, onChange, onInputChange, inputValue, options, description, help, errorMessage, size, fullWidth, isFilteredExternally, isLoading, loadingLabel, emptyLabel, isClearable, clearLabel, onLoadMore, className, style, ...rest }: ComboBoxProps): React.JSX.Element;
|
|
84
94
|
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/forms/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,cAAc,CAAC,CAAC;IACzC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2GAA2G;IAC3G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAKD;0GAC0G;AAC1G,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAY,EACZ,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,IAAW,EACX,SAAgB,EAChB,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,aAAa,qBAuJf"}
|
|
@@ -28,6 +28,16 @@ export interface DatePickerProps<TFormat extends 'object' | 'iso' = 'object'> {
|
|
|
28
28
|
/** Return true for dates that cannot be picked — factory calendar, blocked periods. */
|
|
29
29
|
isDateUnavailable?: (date: DateValue) => boolean;
|
|
30
30
|
description?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
33
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
34
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
35
|
+
*
|
|
36
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
37
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
38
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
39
|
+
*/
|
|
40
|
+
help?: React.ReactNode;
|
|
31
41
|
errorMessage?: React.ReactNode;
|
|
32
42
|
isInvalid?: boolean;
|
|
33
43
|
isDisabled?: boolean;
|
|
@@ -52,4 +62,4 @@ export interface DatePickerProps<TFormat extends 'object' | 'iso' = 'object'> {
|
|
|
52
62
|
/** Date entry with a segmented field and a calendar popover. Segments follow the user's locale,
|
|
53
63
|
* so a German user types dd.mm.yyyy without any prop change. Wrap the app in React Aria's
|
|
54
64
|
* I18nProvider to pin a locale. */
|
|
55
|
-
export declare function DatePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, errorMessage, size, fullWidth, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DatePickerProps<TFormat>): React.JSX.Element;
|
|
65
|
+
export declare function DatePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, help, errorMessage, size, fullWidth, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DatePickerProps<TFormat>): React.JSX.Element;
|
|
@@ -28,6 +28,16 @@ export interface DatePickerProps<TFormat extends 'object' | 'iso' = 'object'> {
|
|
|
28
28
|
/** Return true for dates that cannot be picked — factory calendar, blocked periods. */
|
|
29
29
|
isDateUnavailable?: (date: DateValue) => boolean;
|
|
30
30
|
description?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
33
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
34
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
35
|
+
*
|
|
36
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
37
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
38
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
39
|
+
*/
|
|
40
|
+
help?: React.ReactNode;
|
|
31
41
|
errorMessage?: React.ReactNode;
|
|
32
42
|
isInvalid?: boolean;
|
|
33
43
|
isDisabled?: boolean;
|
|
@@ -52,5 +62,5 @@ export interface DatePickerProps<TFormat extends 'object' | 'iso' = 'object'> {
|
|
|
52
62
|
/** Date entry with a segmented field and a calendar popover. Segments follow the user's locale,
|
|
53
63
|
* so a German user types dd.mm.yyyy without any prop change. Wrap the app in React Aria's
|
|
54
64
|
* I18nProvider to pin a locale. */
|
|
55
|
-
export declare function DatePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, errorMessage, size, fullWidth, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DatePickerProps<TFormat>): React.JSX.Element;
|
|
65
|
+
export declare function DatePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, help, errorMessage, size, fullWidth, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DatePickerProps<TFormat>): React.JSX.Element;
|
|
56
66
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/forms/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/forms/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AASvD,MAAM,WAAW,eAAe,CAAC,OAAO,SAAS,QAAQ,GAAG,KAAK,GAAG,QAAQ;IAC1E,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;;wDAIoD;IACpD,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAChF;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;6FAEyF;IACzF,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC;6EACyE;IACzE,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC,uFAAuF;IACvF,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC;IACjD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAiCD;;oCAEoC;AACpC,wBAAgB,UAAU,CAAC,OAAO,SAAS,QAAQ,GAAG,KAAK,GAAG,QAAQ,EAAE,EACtE,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,IAAW,EACX,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,UAAU,EACV,GAAG,IAAI,EACR,EAAE,eAAe,CAAC,OAAO,CAAC,qBAoF1B"}
|
|
@@ -73,6 +73,16 @@ export interface DateRangePickerProps<TFormat extends 'object' | 'iso' = 'object
|
|
|
73
73
|
/** The clear button's visible text. Defaults to the dictionary's `inputClear`. */
|
|
74
74
|
clearLabel?: string;
|
|
75
75
|
description?: React.ReactNode;
|
|
76
|
+
/**
|
|
77
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
78
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
79
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
80
|
+
*
|
|
81
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
82
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
83
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
84
|
+
*/
|
|
85
|
+
help?: React.ReactNode;
|
|
76
86
|
errorMessage?: React.ReactNode;
|
|
77
87
|
isInvalid?: boolean;
|
|
78
88
|
isDisabled?: boolean;
|
|
@@ -102,4 +112,4 @@ export declare function rangeLengthInDays(range: DateRangeInput | null | undefin
|
|
|
102
112
|
* between them, and locale-driven segment order. Wrap the app in `I18nProvider` to pin a locale:
|
|
103
113
|
* `es-PY` reads dd/mm/yyyy and `en-US` mm/dd/yyyy off the same value.
|
|
104
114
|
*/
|
|
105
|
-
export declare function DateRangePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, errorMessage, maxRangeDays, presets, size, fullWidth, startName, endName, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DateRangePickerProps<TFormat>): React.JSX.Element;
|
|
115
|
+
export declare function DateRangePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, help, errorMessage, maxRangeDays, presets, size, fullWidth, startName, endName, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DateRangePickerProps<TFormat>): React.JSX.Element;
|
|
@@ -73,6 +73,16 @@ export interface DateRangePickerProps<TFormat extends 'object' | 'iso' = 'object
|
|
|
73
73
|
/** The clear button's visible text. Defaults to the dictionary's `inputClear`. */
|
|
74
74
|
clearLabel?: string;
|
|
75
75
|
description?: React.ReactNode;
|
|
76
|
+
/**
|
|
77
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
78
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
79
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
80
|
+
*
|
|
81
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
82
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
83
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
84
|
+
*/
|
|
85
|
+
help?: React.ReactNode;
|
|
76
86
|
errorMessage?: React.ReactNode;
|
|
77
87
|
isInvalid?: boolean;
|
|
78
88
|
isDisabled?: boolean;
|
|
@@ -102,5 +112,5 @@ export declare function rangeLengthInDays(range: DateRangeInput | null | undefin
|
|
|
102
112
|
* between them, and locale-driven segment order. Wrap the app in `I18nProvider` to pin a locale:
|
|
103
113
|
* `es-PY` reads dd/mm/yyyy and `en-US` mm/dd/yyyy off the same value.
|
|
104
114
|
*/
|
|
105
|
-
export declare function DateRangePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, errorMessage, maxRangeDays, presets, size, fullWidth, startName, endName, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DateRangePickerProps<TFormat>): React.JSX.Element;
|
|
115
|
+
export declare function DateRangePicker<TFormat extends 'object' | 'iso' = 'object'>({ label, description, help, errorMessage, maxRangeDays, presets, size, fullWidth, startName, endName, className, style, value, defaultValue, onChange, valueFormat, minValue, maxValue, isClearable, clearLabel, ...rest }: DateRangePickerProps<TFormat>): React.JSX.Element;
|
|
106
116
|
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/components/forms/DateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/components/forms/DateRangePicker.tsx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ChB,SAAS,EACT,OAAO,EACP,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,UAAU,EACV,GAAG,IAAI,EACR,EAAE,oBAAoB,CAAC,OAAO,CAAC,qBA6I/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface FieldDescriptionProps {
|
|
3
|
+
description?: React.ReactNode;
|
|
4
|
+
/** Contextual explanation. Announced with the field, and shown visually by the help icon. */
|
|
5
|
+
help?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Internal. The one `Text slot="description"` a field renders.
|
|
9
|
+
*
|
|
10
|
+
* There is exactly one description slot per field — two `Text slot="description"` elements would
|
|
11
|
+
* collide on a single generated id — so `description` and `help` merge here rather than each
|
|
12
|
+
* rendering their own node. `help` is announced with the field as well as shown on the icon,
|
|
13
|
+
* because a tooltip-only explanation is reachable only by visiting a tab stop, and a dense form
|
|
14
|
+
* has one of those per helped field.
|
|
15
|
+
*/
|
|
16
|
+
export declare function FieldDescription({ description, help }: FieldDescriptionProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface FieldDescriptionProps {
|
|
3
|
+
description?: React.ReactNode;
|
|
4
|
+
/** Contextual explanation. Announced with the field, and shown visually by the help icon. */
|
|
5
|
+
help?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Internal. The one `Text slot="description"` a field renders.
|
|
9
|
+
*
|
|
10
|
+
* There is exactly one description slot per field — two `Text slot="description"` elements would
|
|
11
|
+
* collide on a single generated id — so `description` and `help` merge here rather than each
|
|
12
|
+
* rendering their own node. `help` is announced with the field as well as shown on the icon,
|
|
13
|
+
* because a tooltip-only explanation is reachable only by visiting a tab stop, and a dense form
|
|
14
|
+
* has one of those per helped field.
|
|
15
|
+
*/
|
|
16
|
+
export declare function FieldDescription({ description, help }: FieldDescriptionProps): React.JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=FieldDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldDescription.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FieldDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,6FAA6F;IAC7F,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,qBAAqB,4BAY5E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface FieldHelpProps {
|
|
3
|
+
/** The explanation. Shown on hover and immediately on keyboard focus. Never put an instruction
|
|
4
|
+
* here that is unavailable elsewhere — there is no hover on touch. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Overrides the dictionary's `fieldHelp`. This names the *icon* ("More information"), not the
|
|
7
|
+
* explanation — say what is being explained when a form has several. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Which side the explanation opens on. Change it when the default would put the bubble off
|
|
10
|
+
* screen or over the thing being explained — a field at the top of a dialog, or the last row
|
|
11
|
+
* of a table where `top` covers the row above. */
|
|
12
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The help icon beside a field label: an explanation reachable by pointer and by keyboard, with
|
|
16
|
+
* the markup a consumer would otherwise hand-write. Fields take a `help` prop that renders this
|
|
17
|
+
* for you; reach for the component directly beside a `FormField` or a bare control.
|
|
18
|
+
*/
|
|
19
|
+
export declare function FieldHelp({ children, label, placement }: FieldHelpProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface FieldHelpProps {
|
|
3
|
+
/** The explanation. Shown on hover and immediately on keyboard focus. Never put an instruction
|
|
4
|
+
* here that is unavailable elsewhere — there is no hover on touch. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Overrides the dictionary's `fieldHelp`. This names the *icon* ("More information"), not the
|
|
7
|
+
* explanation — say what is being explained when a form has several. */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Which side the explanation opens on. Change it when the default would put the bubble off
|
|
10
|
+
* screen or over the thing being explained — a field at the top of a dialog, or the last row
|
|
11
|
+
* of a table where `top` covers the row above. */
|
|
12
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The help icon beside a field label: an explanation reachable by pointer and by keyboard, with
|
|
16
|
+
* the markup a consumer would otherwise hand-write. Fields take a `help` prop that renders this
|
|
17
|
+
* for you; reach for the component directly beside a `FormField` or a bare control.
|
|
18
|
+
*/
|
|
19
|
+
export declare function FieldHelp({ children, label, placement }: FieldHelpProps): React.JSX.Element;
|
|
20
|
+
//# sourceMappingURL=FieldHelp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldHelp.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FieldHelp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,WAAW,cAAc;IAC7B;2EACuE;IACvE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;6EACyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;uDAEmD;IACnD,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CACjD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAiB,EAAE,EAAE,cAAc,qBAkB/E"}
|