@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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface FieldLabelProps {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
isRequired?: boolean;
|
|
5
|
+
/** Contextual explanation, rendered as a help icon beside the label. */
|
|
6
|
+
help?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Internal, dev-only. `help` draws its icon beside the label, so a field named only by
|
|
10
|
+
* `aria-label` has nowhere to put it: the explanation still reaches a screen reader through the
|
|
11
|
+
* field's `description`, but the visual affordance is silently missing — the same shape of defect
|
|
12
|
+
* as an icon name that resolves to a blank square. Every field calls this before deciding whether
|
|
13
|
+
* to render a label row.
|
|
14
|
+
*
|
|
15
|
+
* A warning rather than a bare icon: an icon with no label to sit beside is an unanchored control,
|
|
16
|
+
* and supplying the label is a real fix only the consumer can make.
|
|
17
|
+
*/
|
|
18
|
+
export declare function warnHelpWithoutLabel(component: string, label: React.ReactNode, help: React.ReactNode): void;
|
|
19
|
+
/**
|
|
20
|
+
* Internal. The label row every Pire field draws, in one place.
|
|
21
|
+
*
|
|
22
|
+
* It exists because this markup was copied nine times, and the ButtonContext reset below had to
|
|
23
|
+
* land in all nine: React Aria hands every descendant Button the field's own slotted context, so
|
|
24
|
+
* a button a consumer puts in a label either throws (NumberField) or is silently adopted as the
|
|
25
|
+
* field's trigger (DatePicker, DateRangePicker, ComboBox). Resetting the context here makes any
|
|
26
|
+
* button in any field's label behave like a button — not just the help icon.
|
|
27
|
+
*
|
|
28
|
+
* That does not make every shape a good one. `help` renders `FieldHelp` as a **sibling** of
|
|
29
|
+
* `<Label>`, which is the supported shape and the only one this component produces on its own.
|
|
30
|
+
* A consumer-supplied button placed *inside* `label` — now possible instead of throwing or being
|
|
31
|
+
* silently adopted — still sits inside the `<Label>` React Aria points the stepper and
|
|
32
|
+
* calendar-trigger `aria-labelledby` at, so its text is absorbed into every sibling control's
|
|
33
|
+
* accessible name (a `NumberField` stepper reads "Increase Cantidad Ayuda"). Lossy, not broken —
|
|
34
|
+
* prefer `help` unless the label truly needs its own button.
|
|
35
|
+
*/
|
|
36
|
+
export declare function FieldLabel({ label, isRequired, help }: FieldLabelProps): React.JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface FieldLabelProps {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
isRequired?: boolean;
|
|
5
|
+
/** Contextual explanation, rendered as a help icon beside the label. */
|
|
6
|
+
help?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Internal, dev-only. `help` draws its icon beside the label, so a field named only by
|
|
10
|
+
* `aria-label` has nowhere to put it: the explanation still reaches a screen reader through the
|
|
11
|
+
* field's `description`, but the visual affordance is silently missing — the same shape of defect
|
|
12
|
+
* as an icon name that resolves to a blank square. Every field calls this before deciding whether
|
|
13
|
+
* to render a label row.
|
|
14
|
+
*
|
|
15
|
+
* A warning rather than a bare icon: an icon with no label to sit beside is an unanchored control,
|
|
16
|
+
* and supplying the label is a real fix only the consumer can make.
|
|
17
|
+
*/
|
|
18
|
+
export declare function warnHelpWithoutLabel(component: string, label: React.ReactNode, help: React.ReactNode): void;
|
|
19
|
+
/**
|
|
20
|
+
* Internal. The label row every Pire field draws, in one place.
|
|
21
|
+
*
|
|
22
|
+
* It exists because this markup was copied nine times, and the ButtonContext reset below had to
|
|
23
|
+
* land in all nine: React Aria hands every descendant Button the field's own slotted context, so
|
|
24
|
+
* a button a consumer puts in a label either throws (NumberField) or is silently adopted as the
|
|
25
|
+
* field's trigger (DatePicker, DateRangePicker, ComboBox). Resetting the context here makes any
|
|
26
|
+
* button in any field's label behave like a button — not just the help icon.
|
|
27
|
+
*
|
|
28
|
+
* That does not make every shape a good one. `help` renders `FieldHelp` as a **sibling** of
|
|
29
|
+
* `<Label>`, which is the supported shape and the only one this component produces on its own.
|
|
30
|
+
* A consumer-supplied button placed *inside* `label` — now possible instead of throwing or being
|
|
31
|
+
* silently adopted — still sits inside the `<Label>` React Aria points the stepper and
|
|
32
|
+
* calendar-trigger `aria-labelledby` at, so its text is absorbed into every sibling control's
|
|
33
|
+
* accessible name (a `NumberField` stepper reads "Increase Cantidad Ayuda"). Lossy, not broken —
|
|
34
|
+
* prefer `help` unless the label truly needs its own button.
|
|
35
|
+
*/
|
|
36
|
+
export declare function FieldLabel({ label, isRequired, help }: FieldLabelProps): React.JSX.Element;
|
|
37
|
+
//# sourceMappingURL=FieldLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FieldLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wEAAwE;IACxE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,QAMpG;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,eAAe,qBA2CtE"}
|
|
@@ -10,8 +10,17 @@ export interface FormFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
10
10
|
error?: React.ReactNode;
|
|
11
11
|
/** horizontal = right-aligned 160px label column, the ERP detail-form default. */
|
|
12
12
|
layout?: 'stacked' | 'horizontal';
|
|
13
|
+
/**
|
|
14
|
+
* Contextual explanation, shown as a help icon beside the label.
|
|
15
|
+
*
|
|
16
|
+
* Unlike the fields that render their own control, `FormField` cannot add this to the control's
|
|
17
|
+
* `aria-describedby` — it does not own that control. The explanation reaches a screen reader
|
|
18
|
+
* through the trigger's own tooltip instead. When the text must be announced with the field,
|
|
19
|
+
* pass it as `hint`, or use the control's own `help` prop.
|
|
20
|
+
*/
|
|
21
|
+
help?: React.ReactNode;
|
|
13
22
|
children?: React.ReactNode;
|
|
14
23
|
}
|
|
15
24
|
/** Label + control + hint/error wrapper for controls that do not manage their own label
|
|
16
25
|
* (most Pire controls do — use their `label` prop first). */
|
|
17
|
-
export declare function FormField({ label, htmlFor, isRequired, hint, error, layout, children, className, ...rest }: FormFieldProps): React.JSX.Element;
|
|
26
|
+
export declare function FormField({ label, htmlFor, isRequired, hint, error, layout, help, children, className, ...rest }: FormFieldProps): React.JSX.Element;
|
|
@@ -10,9 +10,18 @@ export interface FormFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
10
10
|
error?: React.ReactNode;
|
|
11
11
|
/** horizontal = right-aligned 160px label column, the ERP detail-form default. */
|
|
12
12
|
layout?: 'stacked' | 'horizontal';
|
|
13
|
+
/**
|
|
14
|
+
* Contextual explanation, shown as a help icon beside the label.
|
|
15
|
+
*
|
|
16
|
+
* Unlike the fields that render their own control, `FormField` cannot add this to the control's
|
|
17
|
+
* `aria-describedby` — it does not own that control. The explanation reaches a screen reader
|
|
18
|
+
* through the trigger's own tooltip instead. When the text must be announced with the field,
|
|
19
|
+
* pass it as `hint`, or use the control's own `help` prop.
|
|
20
|
+
*/
|
|
21
|
+
help?: React.ReactNode;
|
|
13
22
|
children?: React.ReactNode;
|
|
14
23
|
}
|
|
15
24
|
/** Label + control + hint/error wrapper for controls that do not manage their own label
|
|
16
25
|
* (most Pire controls do — use their `label` prop first). */
|
|
17
|
-
export declare function FormField({ label, htmlFor, isRequired, hint, error, layout, children, className, ...rest }: FormFieldProps): React.JSX.Element;
|
|
26
|
+
export declare function FormField({ label, htmlFor, isRequired, hint, error, layout, help, children, className, ...rest }: FormFieldProps): React.JSX.Element;
|
|
18
27
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5F,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kFAAkF;IAClF,MAAM,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAClC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;8DAC8D;AAC9D,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,OAAO,EACP,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,qBA4ChB"}
|
|
@@ -36,6 +36,16 @@ export interface InputProps {
|
|
|
36
36
|
clearLabel?: string;
|
|
37
37
|
/** Help text below the field. Replaced by errorMessage when invalid. */
|
|
38
38
|
description?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
41
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
42
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
43
|
+
*
|
|
44
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
45
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
46
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
47
|
+
*/
|
|
48
|
+
help?: React.ReactNode;
|
|
39
49
|
errorMessage?: React.ReactNode;
|
|
40
50
|
isInvalid?: boolean;
|
|
41
51
|
isDisabled?: boolean;
|
|
@@ -53,4 +63,4 @@ export interface InputProps {
|
|
|
53
63
|
}
|
|
54
64
|
/** Single-line text entry. Labels, descriptions and errors are wired to the input by React Aria,
|
|
55
65
|
* so no manual aria-describedby is ever needed. */
|
|
56
|
-
export declare function Input({ label, icon, suffix, description, errorMessage, size, numeric, isClearable, clearLabel, fullWidth, className, style, inputRef, onChange, ...rest }: InputProps): React.JSX.Element;
|
|
66
|
+
export declare function Input({ label, icon, suffix, description, help, errorMessage, size, numeric, isClearable, clearLabel, fullWidth, className, style, inputRef, onChange, ...rest }: InputProps): React.JSX.Element;
|
|
@@ -36,6 +36,16 @@ export interface InputProps {
|
|
|
36
36
|
clearLabel?: string;
|
|
37
37
|
/** Help text below the field. Replaced by errorMessage when invalid. */
|
|
38
38
|
description?: React.ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
41
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
42
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
43
|
+
*
|
|
44
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
45
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
46
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
47
|
+
*/
|
|
48
|
+
help?: React.ReactNode;
|
|
39
49
|
errorMessage?: React.ReactNode;
|
|
40
50
|
isInvalid?: boolean;
|
|
41
51
|
isDisabled?: boolean;
|
|
@@ -53,5 +63,5 @@ export interface InputProps {
|
|
|
53
63
|
}
|
|
54
64
|
/** Single-line text entry. Labels, descriptions and errors are wired to the input by React Aria,
|
|
55
65
|
* so no manual aria-describedby is ever needed. */
|
|
56
|
-
export declare function Input({ label, icon, suffix, description, errorMessage, size, numeric, isClearable, clearLabel, fullWidth, className, style, inputRef, onChange, ...rest }: InputProps): React.JSX.Element;
|
|
66
|
+
export declare function Input({ label, icon, suffix, description, help, errorMessage, size, numeric, isClearable, clearLabel, fullWidth, className, style, inputRef, onChange, ...rest }: InputProps): React.JSX.Element;
|
|
57
67
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,CAAC;IACpF,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,MAAM,CAAC,EAA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ACoD;AACpD,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,IAAW,EACX,OAAO,EACP,WAAW,EACX,UAAU,EACV,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,UAAU,qBA2DZ"}
|
|
@@ -30,6 +30,16 @@ export interface MultiComboBoxProps {
|
|
|
30
30
|
onLoadMore?: () => void;
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
description?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
35
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
36
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
37
|
+
*
|
|
38
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
39
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
40
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
41
|
+
*/
|
|
42
|
+
help?: React.ReactNode;
|
|
33
43
|
errorMessage?: React.ReactNode;
|
|
34
44
|
isInvalid?: boolean;
|
|
35
45
|
isDisabled?: boolean;
|
|
@@ -64,4 +74,4 @@ export interface MultiComboBoxProps {
|
|
|
64
74
|
* component nested inside it — a TagGroup there registers its tags as listbox items and then
|
|
65
75
|
* crashes looking for grid state. Each chip's remove button is an ordinary Tab stop instead,
|
|
66
76
|
* and removals are announced through the live region below. */
|
|
67
|
-
export declare function MultiComboBox({ label, value, defaultValue, onChange, onInputChange, options, description, errorMessage, allowsCustomValue, size, isFilteredExternally, isLoading, loadingLabel, emptyLabel, onLoadMore, fullWidth, className, style, ...rest }: MultiComboBoxProps): React.JSX.Element;
|
|
77
|
+
export declare function MultiComboBox({ label, value, defaultValue, onChange, onInputChange, options, description, help, errorMessage, allowsCustomValue, size, isFilteredExternally, isLoading, loadingLabel, emptyLabel, onLoadMore, fullWidth, className, style, ...rest }: MultiComboBoxProps): React.JSX.Element;
|
|
@@ -30,6 +30,16 @@ export interface MultiComboBoxProps {
|
|
|
30
30
|
onLoadMore?: () => void;
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
description?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
35
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
36
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
37
|
+
*
|
|
38
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
39
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
40
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
41
|
+
*/
|
|
42
|
+
help?: React.ReactNode;
|
|
33
43
|
errorMessage?: React.ReactNode;
|
|
34
44
|
isInvalid?: boolean;
|
|
35
45
|
isDisabled?: boolean;
|
|
@@ -64,5 +74,5 @@ export interface MultiComboBoxProps {
|
|
|
64
74
|
* component nested inside it — a TagGroup there registers its tags as listbox items and then
|
|
65
75
|
* crashes looking for grid state. Each chip's remove button is an ordinary Tab stop instead,
|
|
66
76
|
* and removals are announced through the live region below. */
|
|
67
|
-
export declare function MultiComboBox({ label, value, defaultValue, onChange, onInputChange, options, description, errorMessage, allowsCustomValue, size, isFilteredExternally, isLoading, loadingLabel, emptyLabel, onLoadMore, fullWidth, className, style, ...rest }: MultiComboBoxProps): React.JSX.Element;
|
|
77
|
+
export declare function MultiComboBox({ label, value, defaultValue, onChange, onInputChange, options, description, help, errorMessage, allowsCustomValue, size, isFilteredExternally, isLoading, loadingLabel, emptyLabel, onLoadMore, fullWidth, className, style, ...rest }: MultiComboBoxProps): React.JSX.Element;
|
|
68
78
|
//# sourceMappingURL=MultiComboBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/forms/MultiComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MultiComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/forms/MultiComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACtC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,cAAc,CAAC,CAAC;IACzC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,0FAA0F;IAC1F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qGAAqG;IACrG,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,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;AAKD;;;;;;;;;;;;;;;;;;;;kEAoBkE;AAClE,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,OAAY,EACZ,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,IAAW,EACX,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,kBAAkB,qBA4KpB"}
|
|
@@ -30,6 +30,16 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
30
30
|
/** Trailing unit shown after the figure: EA, KG, %. */
|
|
31
31
|
suffix?: React.ReactNode;
|
|
32
32
|
description?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
35
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
36
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
37
|
+
*
|
|
38
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
39
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
40
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
41
|
+
*/
|
|
42
|
+
help?: React.ReactNode;
|
|
33
43
|
errorMessage?: React.ReactNode;
|
|
34
44
|
isInvalid?: boolean;
|
|
35
45
|
isDisabled?: boolean;
|
|
@@ -86,4 +96,4 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
86
96
|
* Enable the action and validate when it is pressed, surfacing the reason. A disabled control that
|
|
87
97
|
* does not say why is a worse affordance regardless, so the fix costs nothing.
|
|
88
98
|
*/
|
|
89
|
-
export declare function NumberField<TEmpty extends '' | null = never>({ label, suffix, description, errorMessage, hideStepper, stepperLayout, incrementLabel, decrementLabel, size, fullWidth, className, style, value, defaultValue, onChange, emptyValue, isClearable, clearLabel, ...rest }: NumberFieldProps<TEmpty>): React.JSX.Element;
|
|
99
|
+
export declare function NumberField<TEmpty extends '' | null = never>({ label, suffix, description, help, errorMessage, hideStepper, stepperLayout, incrementLabel, decrementLabel, size, fullWidth, className, style, value, defaultValue, onChange, emptyValue, isClearable, clearLabel, ...rest }: NumberFieldProps<TEmpty>): React.JSX.Element;
|
|
@@ -30,6 +30,16 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
30
30
|
/** Trailing unit shown after the figure: EA, KG, %. */
|
|
31
31
|
suffix?: React.ReactNode;
|
|
32
32
|
description?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
35
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
36
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
37
|
+
*
|
|
38
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
39
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
40
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
41
|
+
*/
|
|
42
|
+
help?: React.ReactNode;
|
|
33
43
|
errorMessage?: React.ReactNode;
|
|
34
44
|
isInvalid?: boolean;
|
|
35
45
|
isDisabled?: boolean;
|
|
@@ -86,5 +96,5 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
86
96
|
* Enable the action and validate when it is pressed, surfacing the reason. A disabled control that
|
|
87
97
|
* does not say why is a worse affordance regardless, so the fix costs nothing.
|
|
88
98
|
*/
|
|
89
|
-
export declare function NumberField<TEmpty extends '' | null = never>({ label, suffix, description, errorMessage, hideStepper, stepperLayout, incrementLabel, decrementLabel, size, fullWidth, className, style, value, defaultValue, onChange, emptyValue, isClearable, clearLabel, ...rest }: NumberFieldProps<TEmpty>): React.JSX.Element;
|
|
99
|
+
export declare function NumberField<TEmpty extends '' | null = never>({ label, suffix, description, help, errorMessage, hideStepper, stepperLayout, incrementLabel, decrementLabel, size, fullWidth, className, style, value, defaultValue, onChange, emptyValue, isClearable, clearLabel, ...rest }: NumberFieldProps<TEmpty>): React.JSX.Element;
|
|
90
100
|
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/components/forms/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgE/B,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG,KAAK;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;2FACuF;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;iFAG6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAMtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM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AAO,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;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;AAgDD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG,KAAK,EAAE,EAC5D,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,aAAyB,EACzB,cAAc,EACd,cAAc,EACd,IAAW,EACX,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,UAAU,EACV,GAAG,IAAI,EACR,EAAE,gBAAgB,CAAC,MAAM,CAAC,qBAuL1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export type SelectOption = string | {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
@@ -8,10 +8,34 @@ export interface SelectProps {
|
|
|
8
8
|
label?: React.ReactNode;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Emits `null` when the field returns to «nothing chosen» — reachable only with `isClearable`,
|
|
13
|
+
* but typed unconditionally, the way React Aria types the `onSelectionChange` below it.
|
|
14
|
+
*/
|
|
15
|
+
onChange?: (value: string | null) => void;
|
|
12
16
|
options?: SelectOption[];
|
|
13
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Shown when nothing is selected. Defaults to the dictionary's `selectPlaceholder`; with
|
|
19
|
+
* `isClearable` this is also the visible label of the row that clears the field, so a custom
|
|
20
|
+
* value should read naturally as both.
|
|
21
|
+
*/
|
|
14
22
|
placeholder?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Adds a row at the top of the list that returns the field to «nothing chosen», labelled with
|
|
25
|
+
* `placeholder`.
|
|
26
|
+
*
|
|
27
|
+
* For an optional field this is the difference between a changeable choice and a permanent one:
|
|
28
|
+
* without it the only way back from a wrong pick is to select something else, and there is no
|
|
29
|
+
* "something else" that means *none*. A row rather than a clear button on the control — in a
|
|
30
|
+
* `Select`, unlike a `ComboBox`, the user already expects everything choosable to be in the list.
|
|
31
|
+
*
|
|
32
|
+
* One asymmetry to know about: React Aria suppresses re-picking the key that is already
|
|
33
|
+
* selected, but the clear row is a real row, so choosing it on an already-empty field does emit
|
|
34
|
+
* `onChange(null)` a second time. Deliberate — the row is *visible* on an empty field, and a
|
|
35
|
+
* control that looks pressable and reports nothing is the harder thing to debug. A handler that
|
|
36
|
+
* writes on every call rather than on every change should compare against its own state.
|
|
37
|
+
*/
|
|
38
|
+
isClearable?: boolean;
|
|
15
39
|
/**
|
|
16
40
|
* Replaces the dictionary's `selectEmpty` inside the popover when `options` is empty. Worth
|
|
17
41
|
* setting whenever you can say *why* the list is empty — "Pick a company first" beats the
|
|
@@ -19,6 +43,16 @@ export interface SelectProps {
|
|
|
19
43
|
*/
|
|
20
44
|
emptyLabel?: React.ReactNode;
|
|
21
45
|
description?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
48
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
49
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
50
|
+
*
|
|
51
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
52
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
53
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
54
|
+
*/
|
|
55
|
+
help?: React.ReactNode;
|
|
22
56
|
errorMessage?: React.ReactNode;
|
|
23
57
|
isInvalid?: boolean;
|
|
24
58
|
isDisabled?: boolean;
|
|
@@ -31,4 +65,4 @@ export interface SelectProps {
|
|
|
31
65
|
}
|
|
32
66
|
/** Single-choice picker. Uses a listbox popover rather than a native <select> so the option
|
|
33
67
|
* rows can carry Pire typography and keyboard behaviour is identical across browsers. */
|
|
34
|
-
export declare function Select({ label, value, defaultValue, onChange, options, placeholder, description, errorMessage, emptyLabel, size, fullWidth, className, style, ...rest }: SelectProps): React.JSX.Element;
|
|
68
|
+
export declare function Select({ label, value, defaultValue, onChange, options, placeholder, isClearable, description, help, errorMessage, emptyLabel, size, fullWidth, className, style, ...rest }: SelectProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export type SelectOption = string | {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
@@ -8,10 +8,34 @@ export interface SelectProps {
|
|
|
8
8
|
label?: React.ReactNode;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Emits `null` when the field returns to «nothing chosen» — reachable only with `isClearable`,
|
|
13
|
+
* but typed unconditionally, the way React Aria types the `onSelectionChange` below it.
|
|
14
|
+
*/
|
|
15
|
+
onChange?: (value: string | null) => void;
|
|
12
16
|
options?: SelectOption[];
|
|
13
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Shown when nothing is selected. Defaults to the dictionary's `selectPlaceholder`; with
|
|
19
|
+
* `isClearable` this is also the visible label of the row that clears the field, so a custom
|
|
20
|
+
* value should read naturally as both.
|
|
21
|
+
*/
|
|
14
22
|
placeholder?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Adds a row at the top of the list that returns the field to «nothing chosen», labelled with
|
|
25
|
+
* `placeholder`.
|
|
26
|
+
*
|
|
27
|
+
* For an optional field this is the difference between a changeable choice and a permanent one:
|
|
28
|
+
* without it the only way back from a wrong pick is to select something else, and there is no
|
|
29
|
+
* "something else" that means *none*. A row rather than a clear button on the control — in a
|
|
30
|
+
* `Select`, unlike a `ComboBox`, the user already expects everything choosable to be in the list.
|
|
31
|
+
*
|
|
32
|
+
* One asymmetry to know about: React Aria suppresses re-picking the key that is already
|
|
33
|
+
* selected, but the clear row is a real row, so choosing it on an already-empty field does emit
|
|
34
|
+
* `onChange(null)` a second time. Deliberate — the row is *visible* on an empty field, and a
|
|
35
|
+
* control that looks pressable and reports nothing is the harder thing to debug. A handler that
|
|
36
|
+
* writes on every call rather than on every change should compare against its own state.
|
|
37
|
+
*/
|
|
38
|
+
isClearable?: boolean;
|
|
15
39
|
/**
|
|
16
40
|
* Replaces the dictionary's `selectEmpty` inside the popover when `options` is empty. Worth
|
|
17
41
|
* setting whenever you can say *why* the list is empty — "Pick a company first" beats the
|
|
@@ -19,6 +43,16 @@ export interface SelectProps {
|
|
|
19
43
|
*/
|
|
20
44
|
emptyLabel?: React.ReactNode;
|
|
21
45
|
description?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
48
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
49
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
50
|
+
*
|
|
51
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
52
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
53
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
54
|
+
*/
|
|
55
|
+
help?: React.ReactNode;
|
|
22
56
|
errorMessage?: React.ReactNode;
|
|
23
57
|
isInvalid?: boolean;
|
|
24
58
|
isDisabled?: boolean;
|
|
@@ -31,5 +65,5 @@ export interface SelectProps {
|
|
|
31
65
|
}
|
|
32
66
|
/** Single-choice picker. Uses a listbox popover rather than a native <select> so the option
|
|
33
67
|
* rows can carry Pire typography and keyboard behaviour is identical across browsers. */
|
|
34
|
-
export declare function Select({ label, value, defaultValue, onChange, options, placeholder, description, errorMessage, emptyLabel, size, fullWidth, className, style, ...rest }: SelectProps): React.JSX.Element;
|
|
68
|
+
export declare function Select({ label, value, defaultValue, onChange, options, placeholder, isClearable, description, help, errorMessage, emptyLabel, size, fullWidth, className, style, ...rest }: SelectProps): React.JSX.Element;
|
|
35
69
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/forms/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAQ3F,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,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,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;AAID;0FAC0F;AAC1F,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,OAAY,EACZ,WAAW,EACX,WAAW,EACX,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,IAAW,EACX,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,WAAW,qBAqHb"}
|
|
@@ -8,6 +8,16 @@ export interface TextAreaProps {
|
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
/** Help text below the field. Replaced by errorMessage when invalid. */
|
|
10
10
|
description?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
13
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
14
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
15
|
+
*
|
|
16
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
17
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
18
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
19
|
+
*/
|
|
20
|
+
help?: React.ReactNode;
|
|
11
21
|
errorMessage?: React.ReactNode;
|
|
12
22
|
isInvalid?: boolean;
|
|
13
23
|
isDisabled?: boolean;
|
|
@@ -39,4 +49,4 @@ export interface TextAreaProps {
|
|
|
39
49
|
* height is only written when it actually changed, so a keystroke that does not wrap costs no
|
|
40
50
|
* layout; and the resize grip is removed, since a manual height would be overwritten on the next
|
|
41
51
|
* keystroke anyway. */
|
|
42
|
-
export declare function TextArea({ label, description, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
|
|
52
|
+
export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
|
|
@@ -8,6 +8,16 @@ export interface TextAreaProps {
|
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
/** Help text below the field. Replaced by errorMessage when invalid. */
|
|
10
10
|
description?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
13
|
+
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
14
|
+
* one they need every time, and it costs a line of vertical space in every row.
|
|
15
|
+
*
|
|
16
|
+
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
17
|
+
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
18
|
+
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
19
|
+
*/
|
|
20
|
+
help?: React.ReactNode;
|
|
11
21
|
errorMessage?: React.ReactNode;
|
|
12
22
|
isInvalid?: boolean;
|
|
13
23
|
isDisabled?: boolean;
|
|
@@ -39,5 +49,5 @@ export interface TextAreaProps {
|
|
|
39
49
|
* height is only written when it actually changed, so a keystroke that does not wrap costs no
|
|
40
50
|
* layout; and the resize grip is removed, since a manual height would be overwritten on the next
|
|
41
51
|
* keystroke anyway. */
|
|
42
|
-
export declare function TextArea({ label, description, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
|
|
52
|
+
export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
|
|
43
53
|
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/forms/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/forms/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,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,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,4FAA4F;IAC5F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;qDACiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;wBAUwB;AACxB,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,IAAW,EACX,IAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAgB,EAChB,SAAS,EACT,KAAK,EACL,WAAW,EACX,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,aAAa,qBAsEf"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** A noun in the two forms a count needs. `one` for a grammatically singular count, `other` for the
|
|
3
|
+
* rest — the same split `Intl.PluralRules` makes, which is what picks between them. */
|
|
4
|
+
export interface SelectionBarNoun {
|
|
5
|
+
one: string;
|
|
6
|
+
other: string;
|
|
7
|
+
}
|
|
2
8
|
export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
9
|
/** Number of selected records. The bar renders nothing at 0. */
|
|
4
10
|
count: number;
|
|
5
|
-
/**
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The records' noun. Pass both forms — `{ one: 'orden', other: 'órdenes' }` — since a plural is
|
|
13
|
+
* not the singular plus an "s" in any language this library ships for.
|
|
14
|
+
*
|
|
15
|
+
* A bare string is still accepted and pluralised the old English way, by appending "s". That is
|
|
16
|
+
* kept so existing English screens do not change; do not use it for anything else. Defaults to
|
|
17
|
+
* the dictionary's `selectionBarNounOne` / `selectionBarNounOther`.
|
|
18
|
+
*/
|
|
19
|
+
noun?: string | SelectionBarNoun;
|
|
20
|
+
/**
|
|
21
|
+
* Grammatical gender of `noun`, for the participle that agrees with it: "2 órdenes
|
|
22
|
+
* seleccionadas", "2 presupuestos seleccionados". Picks the dictionary's `…Feminine` entries.
|
|
23
|
+
* Default `masculine`, which is also the gender of the default noun.
|
|
24
|
+
*/
|
|
25
|
+
gender?: 'masculine' | 'feminine';
|
|
26
|
+
/** Replaces the whole sentence, for a screen that needs a phrasing the dictionary cannot build.
|
|
27
|
+
* Called with the raw count; format it yourself. */
|
|
28
|
+
label?: (count: number) => React.ReactNode;
|
|
29
|
+
/** Renders the bar's own "Clear selection" button after the count. Every selection bar needs
|
|
30
|
+
* one, and the bar is the only place on screen that knows it is the selection being cleared. */
|
|
31
|
+
onClear?: () => void;
|
|
32
|
+
/** Overrides the dictionary's `selectionBarClear`. */
|
|
33
|
+
clearLabel?: string;
|
|
7
34
|
/** What happens on commit — mass posting caveats belong here, not in a toast. */
|
|
8
35
|
children?: React.ReactNode;
|
|
9
36
|
/** Buttons, size="sm". Destructive last. */
|
|
@@ -11,4 +38,4 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
11
38
|
}
|
|
12
39
|
/** Appears above a table once rows are selected and states exactly how many.
|
|
13
40
|
* The count is announced, so keyboard users know a selection changed. */
|
|
14
|
-
export declare function SelectionBar({ count, noun, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
|
|
41
|
+
export declare function SelectionBar({ count, noun, gender, label, onClear, clearLabel, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
|
|
@@ -1,9 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** A noun in the two forms a count needs. `one` for a grammatically singular count, `other` for the
|
|
3
|
+
* rest — the same split `Intl.PluralRules` makes, which is what picks between them. */
|
|
4
|
+
export interface SelectionBarNoun {
|
|
5
|
+
one: string;
|
|
6
|
+
other: string;
|
|
7
|
+
}
|
|
2
8
|
export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
9
|
/** Number of selected records. The bar renders nothing at 0. */
|
|
4
10
|
count: number;
|
|
5
|
-
/**
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The records' noun. Pass both forms — `{ one: 'orden', other: 'órdenes' }` — since a plural is
|
|
13
|
+
* not the singular plus an "s" in any language this library ships for.
|
|
14
|
+
*
|
|
15
|
+
* A bare string is still accepted and pluralised the old English way, by appending "s". That is
|
|
16
|
+
* kept so existing English screens do not change; do not use it for anything else. Defaults to
|
|
17
|
+
* the dictionary's `selectionBarNounOne` / `selectionBarNounOther`.
|
|
18
|
+
*/
|
|
19
|
+
noun?: string | SelectionBarNoun;
|
|
20
|
+
/**
|
|
21
|
+
* Grammatical gender of `noun`, for the participle that agrees with it: "2 órdenes
|
|
22
|
+
* seleccionadas", "2 presupuestos seleccionados". Picks the dictionary's `…Feminine` entries.
|
|
23
|
+
* Default `masculine`, which is also the gender of the default noun.
|
|
24
|
+
*/
|
|
25
|
+
gender?: 'masculine' | 'feminine';
|
|
26
|
+
/** Replaces the whole sentence, for a screen that needs a phrasing the dictionary cannot build.
|
|
27
|
+
* Called with the raw count; format it yourself. */
|
|
28
|
+
label?: (count: number) => React.ReactNode;
|
|
29
|
+
/** Renders the bar's own "Clear selection" button after the count. Every selection bar needs
|
|
30
|
+
* one, and the bar is the only place on screen that knows it is the selection being cleared. */
|
|
31
|
+
onClear?: () => void;
|
|
32
|
+
/** Overrides the dictionary's `selectionBarClear`. */
|
|
33
|
+
clearLabel?: string;
|
|
7
34
|
/** What happens on commit — mass posting caveats belong here, not in a toast. */
|
|
8
35
|
children?: React.ReactNode;
|
|
9
36
|
/** Buttons, size="sm". Destructive last. */
|
|
@@ -11,5 +38,5 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
11
38
|
}
|
|
12
39
|
/** Appears above a table once rows are selected and states exactly how many.
|
|
13
40
|
* The count is announced, so keyboard users know a selection changed. */
|
|
14
|
-
export declare function SelectionBar({ count, noun, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
|
|
41
|
+
export declare function SelectionBar({ count, noun, gender, label, onClear, clearLabel, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
|
|
15
42
|
//# sourceMappingURL=SelectionBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionBar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/SelectionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"SelectionBar.d.ts","sourceRoot":"","sources":["../../../src/components/layout/SelectionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;wFACwF;AACxF,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IAClC;yDACqD;IACrD,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3C;qGACiG;IACjG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;0EAC0E;AAC1E,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,MAAoB,EACpB,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACR,EAAE,iBAAiB,4BA6CnB"}
|