@orianatech/pire 2.1.1 → 2.2.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/Avatar.d.ts +0 -1
- package/dist/components/core/Badge.d.cts +2 -5
- package/dist/components/core/Badge.d.ts +2 -6
- package/dist/components/core/Button.d.ts +0 -1
- package/dist/components/core/Card.d.ts +0 -1
- package/dist/components/core/ComingSoonMark.d.ts +0 -1
- package/dist/components/core/Heading.d.cts +1 -1
- package/dist/components/core/Heading.d.ts +1 -2
- package/dist/components/core/Icon.d.cts +1 -2
- package/dist/components/core/Icon.d.ts +1 -3
- package/dist/components/core/IconButton.d.ts +0 -1
- package/dist/components/core/Kbd.d.ts +0 -1
- package/dist/components/core/Link.d.ts +0 -1
- package/dist/components/core/SegmentedControl.d.cts +1 -1
- package/dist/components/core/SegmentedControl.d.ts +1 -2
- package/dist/components/core/Separator.d.ts +0 -1
- package/dist/components/core/Tag.d.cts +1 -1
- package/dist/components/core/Tag.d.ts +1 -2
- package/dist/components/core/Text.d.cts +9 -1
- package/dist/components/core/Text.d.ts +9 -2
- package/dist/components/core/icon-data.generated.d.ts +0 -1
- package/dist/components/core/icon-map.d.ts +0 -1
- package/dist/components/data/BarChart.d.cts +1 -1
- package/dist/components/data/BarChart.d.ts +1 -2
- package/dist/components/data/BarList.d.ts +0 -1
- package/dist/components/data/ChartFrame.d.ts +0 -1
- package/dist/components/data/DataTable.d.cts +1 -1
- package/dist/components/data/DataTable.d.ts +1 -2
- package/dist/components/data/DescriptionList.d.ts +0 -1
- package/dist/components/data/DonutChart.d.cts +1 -1
- package/dist/components/data/DonutChart.d.ts +1 -2
- package/dist/components/data/FilterBar.d.ts +0 -1
- package/dist/components/data/KpiTile.d.ts +0 -1
- package/dist/components/data/LineChart.d.cts +1 -1
- package/dist/components/data/LineChart.d.ts +1 -2
- package/dist/components/data/LinkList.d.ts +0 -1
- package/dist/components/data/ObjectHeader.d.ts +0 -1
- package/dist/components/data/RecordCard.d.ts +0 -1
- package/dist/components/data/Timeline.d.ts +0 -1
- package/dist/components/data/ViewSwitcher.d.ts +0 -1
- package/dist/components/data/chartGeometry.d.ts +0 -1
- package/dist/components/feedback/Dialog.d.cts +11 -0
- package/dist/components/feedback/Dialog.d.ts +11 -1
- package/dist/components/feedback/InlineMessage.d.cts +2 -0
- package/dist/components/feedback/InlineMessage.d.ts +2 -1
- package/dist/components/feedback/ProgressBar.d.ts +0 -1
- package/dist/components/feedback/Skeleton.d.ts +0 -1
- package/dist/components/feedback/Toast.d.cts +1 -1
- package/dist/components/feedback/Toast.d.ts +1 -2
- package/dist/components/feedback/Tooltip.d.ts +0 -1
- package/dist/components/forms/CalendarMonth.d.cts +6 -0
- package/dist/components/forms/CalendarMonth.d.ts +6 -0
- package/dist/components/forms/Checkbox.d.ts +0 -1
- package/dist/components/forms/ChoiceCardGroup.d.cts +3 -12
- package/dist/components/forms/ChoiceCardGroup.d.ts +3 -13
- package/dist/components/forms/ComboBox.d.cts +2 -11
- package/dist/components/forms/ComboBox.d.ts +2 -12
- package/dist/components/forms/ComboBoxListBox.d.cts +35 -0
- package/dist/components/forms/ComboBoxListBox.d.ts +35 -0
- package/dist/components/forms/DatePicker.d.cts +3 -13
- package/dist/components/forms/DatePicker.d.ts +3 -14
- package/dist/components/forms/DateRangePicker.d.cts +5 -15
- package/dist/components/forms/DateRangePicker.d.ts +5 -16
- package/dist/components/forms/FieldClearButton.d.cts +12 -0
- package/dist/components/forms/FieldClearButton.d.ts +12 -0
- package/dist/components/forms/FieldDescription.d.ts +0 -1
- package/dist/components/forms/FieldHelp.d.cts +23 -0
- package/dist/components/forms/FieldHelp.d.ts +23 -1
- package/dist/components/forms/FieldLabel.d.cts +2 -5
- package/dist/components/forms/FieldLabel.d.ts +2 -6
- package/dist/components/forms/FileUpload.d.cts +37 -4
- package/dist/components/forms/FileUpload.d.ts +37 -5
- package/dist/components/forms/FormField.d.ts +0 -1
- package/dist/components/forms/Input.d.cts +2 -11
- package/dist/components/forms/Input.d.ts +2 -12
- package/dist/components/forms/MultiComboBox.d.cts +2 -11
- package/dist/components/forms/MultiComboBox.d.ts +2 -12
- package/dist/components/forms/NumberField.d.cts +3 -13
- package/dist/components/forms/NumberField.d.ts +3 -14
- package/dist/components/forms/QuantityStepper.d.ts +0 -1
- package/dist/components/forms/Radio.d.ts +0 -1
- package/dist/components/forms/Select.d.cts +2 -11
- package/dist/components/forms/Select.d.ts +2 -12
- package/dist/components/forms/Switch.d.ts +0 -1
- package/dist/components/forms/TextArea.d.cts +2 -11
- package/dist/components/forms/TextArea.d.ts +2 -12
- package/dist/components/forms/ValueHelpField.d.cts +7 -3
- package/dist/components/forms/ValueHelpField.d.ts +7 -4
- package/dist/components/forms/dateValues.d.cts +2 -5
- package/dist/components/forms/dateValues.d.ts +2 -6
- package/dist/components/layout/FooterBar.d.ts +0 -1
- package/dist/components/layout/PageBand.d.ts +0 -1
- package/dist/components/layout/PageHeader.d.ts +0 -1
- package/dist/components/layout/SectionHeader.d.ts +0 -1
- package/dist/components/layout/SelectionBar.d.cts +1 -2
- package/dist/components/layout/SelectionBar.d.ts +1 -3
- package/dist/components/layout/SplitPane.d.ts +0 -1
- package/dist/components/navigation/Breadcrumb.d.ts +0 -1
- package/dist/components/navigation/Menu.d.ts +0 -1
- package/dist/components/navigation/Pagination.d.ts +0 -1
- package/dist/components/navigation/Ribbon.d.cts +1 -1
- package/dist/components/navigation/Ribbon.d.ts +1 -2
- package/dist/components/navigation/ShellBar.d.ts +0 -1
- package/dist/components/navigation/ShellRail.d.ts +0 -1
- package/dist/components/navigation/SideNav.d.cts +3 -6
- package/dist/components/navigation/SideNav.d.ts +3 -7
- package/dist/components/navigation/Tabs.d.cts +1 -1
- package/dist/components/navigation/Tabs.d.ts +1 -2
- package/dist/components/patterns/AppLauncher.d.cts +1 -2
- package/dist/components/patterns/AppLauncher.d.ts +1 -3
- package/dist/components/patterns/CommandPalette.d.ts +0 -1
- package/dist/components/patterns/ConfirmDialog.d.ts +0 -1
- package/dist/components/patterns/EmptyState.d.ts +0 -1
- package/dist/components/patterns/FileDropZone.d.cts +1 -1
- package/dist/components/patterns/FileDropZone.d.ts +1 -2
- package/dist/components/patterns/NumPad.d.cts +2 -8
- package/dist/components/patterns/NumPad.d.ts +2 -9
- package/dist/components/patterns/SidePanel.d.ts +0 -1
- package/dist/components/patterns/ValueHelpDialog.d.cts +5 -5
- package/dist/components/patterns/ValueHelpDialog.d.ts +5 -6
- package/dist/components/utils/cx.d.ts +0 -1
- package/dist/components/utils/decimalSeparator.d.cts +1 -4
- package/dist/components/utils/decimalSeparator.d.ts +1 -5
- package/dist/components/utils/devWarn.d.cts +5 -3
- package/dist/components/utils/devWarn.d.ts +5 -4
- package/dist/components/utils/useDocumentKeyDown.d.cts +5 -0
- package/dist/components/utils/useDocumentKeyDown.d.ts +5 -0
- package/dist/components/utils/useLoadMoreOnScroll.d.ts +0 -1
- package/dist/components.css +139 -85
- package/dist/i18n/PireIntlProvider.d.ts +0 -1
- package/dist/i18n/messages.d.ts +0 -1
- package/dist/index.cjs +1272 -1342
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1171 -1264
- package/dist/index.js.map +1 -1
- package/dist/tokens/base.css +2 -5
- package/dist/tokens/colors.css +13 -8
- package/dist/tokens/elevation.css +15 -0
- package/dist/tokens/themes.css +6 -12
- package/package.json +1 -1
- package/dist/components/core/Avatar.d.ts.map +0 -1
- package/dist/components/core/Badge.d.ts.map +0 -1
- package/dist/components/core/Button.d.ts.map +0 -1
- package/dist/components/core/Card.d.ts.map +0 -1
- package/dist/components/core/ComingSoonMark.d.ts.map +0 -1
- package/dist/components/core/Heading.d.ts.map +0 -1
- package/dist/components/core/Icon.d.ts.map +0 -1
- package/dist/components/core/IconButton.d.ts.map +0 -1
- package/dist/components/core/Kbd.d.ts.map +0 -1
- package/dist/components/core/Link.d.ts.map +0 -1
- package/dist/components/core/SegmentedControl.d.ts.map +0 -1
- package/dist/components/core/Separator.d.ts.map +0 -1
- package/dist/components/core/Tag.d.ts.map +0 -1
- package/dist/components/core/Text.d.ts.map +0 -1
- package/dist/components/core/icon-data.generated.d.ts.map +0 -1
- package/dist/components/core/icon-map.d.ts.map +0 -1
- package/dist/components/data/BarChart.d.ts.map +0 -1
- package/dist/components/data/BarList.d.ts.map +0 -1
- package/dist/components/data/ChartFrame.d.ts.map +0 -1
- package/dist/components/data/DataTable.d.ts.map +0 -1
- package/dist/components/data/DescriptionList.d.ts.map +0 -1
- package/dist/components/data/DonutChart.d.ts.map +0 -1
- package/dist/components/data/FilterBar.d.ts.map +0 -1
- package/dist/components/data/KpiTile.d.ts.map +0 -1
- package/dist/components/data/LineChart.d.ts.map +0 -1
- package/dist/components/data/LinkList.d.ts.map +0 -1
- package/dist/components/data/ObjectHeader.d.ts.map +0 -1
- package/dist/components/data/RecordCard.d.ts.map +0 -1
- package/dist/components/data/Timeline.d.ts.map +0 -1
- package/dist/components/data/ViewSwitcher.d.ts.map +0 -1
- package/dist/components/data/chartGeometry.d.ts.map +0 -1
- package/dist/components/feedback/Dialog.d.ts.map +0 -1
- package/dist/components/feedback/InlineMessage.d.ts.map +0 -1
- package/dist/components/feedback/ProgressBar.d.ts.map +0 -1
- package/dist/components/feedback/Skeleton.d.ts.map +0 -1
- package/dist/components/feedback/Toast.d.ts.map +0 -1
- package/dist/components/feedback/Tooltip.d.ts.map +0 -1
- package/dist/components/forms/Checkbox.d.ts.map +0 -1
- package/dist/components/forms/ChoiceCardGroup.d.ts.map +0 -1
- package/dist/components/forms/ComboBox.d.ts.map +0 -1
- package/dist/components/forms/DatePicker.d.ts.map +0 -1
- package/dist/components/forms/DateRangePicker.d.ts.map +0 -1
- package/dist/components/forms/FieldDescription.d.ts.map +0 -1
- package/dist/components/forms/FieldHelp.d.ts.map +0 -1
- package/dist/components/forms/FieldLabel.d.ts.map +0 -1
- package/dist/components/forms/FileUpload.d.ts.map +0 -1
- package/dist/components/forms/FormField.d.ts.map +0 -1
- package/dist/components/forms/Input.d.ts.map +0 -1
- package/dist/components/forms/MultiComboBox.d.ts.map +0 -1
- package/dist/components/forms/NumberField.d.ts.map +0 -1
- package/dist/components/forms/QuantityStepper.d.ts.map +0 -1
- package/dist/components/forms/Radio.d.ts.map +0 -1
- package/dist/components/forms/Select.d.ts.map +0 -1
- package/dist/components/forms/Switch.d.ts.map +0 -1
- package/dist/components/forms/TextArea.d.ts.map +0 -1
- package/dist/components/forms/ValueHelpField.d.ts.map +0 -1
- package/dist/components/forms/dateValues.d.ts.map +0 -1
- package/dist/components/layout/FooterBar.d.ts.map +0 -1
- package/dist/components/layout/PageBand.d.ts.map +0 -1
- package/dist/components/layout/PageHeader.d.ts.map +0 -1
- package/dist/components/layout/SectionHeader.d.ts.map +0 -1
- package/dist/components/layout/SelectionBar.d.ts.map +0 -1
- package/dist/components/layout/SplitPane.d.ts.map +0 -1
- package/dist/components/navigation/Breadcrumb.d.ts.map +0 -1
- package/dist/components/navigation/Menu.d.ts.map +0 -1
- package/dist/components/navigation/Pagination.d.ts.map +0 -1
- package/dist/components/navigation/Ribbon.d.ts.map +0 -1
- package/dist/components/navigation/ShellBar.d.ts.map +0 -1
- package/dist/components/navigation/ShellRail.d.ts.map +0 -1
- package/dist/components/navigation/SideNav.d.ts.map +0 -1
- package/dist/components/navigation/Tabs.d.ts.map +0 -1
- package/dist/components/patterns/AppLauncher.d.ts.map +0 -1
- package/dist/components/patterns/CommandPalette.d.ts.map +0 -1
- package/dist/components/patterns/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/patterns/EmptyState.d.ts.map +0 -1
- package/dist/components/patterns/FileDropZone.d.ts.map +0 -1
- package/dist/components/patterns/NumPad.d.ts.map +0 -1
- package/dist/components/patterns/SidePanel.d.ts.map +0 -1
- package/dist/components/patterns/ValueHelpDialog.d.ts.map +0 -1
- package/dist/components/utils/cx.d.ts.map +0 -1
- package/dist/components/utils/decimalSeparator.d.ts.map +0 -1
- package/dist/components/utils/devWarn.d.ts.map +0 -1
- package/dist/components/utils/focusField.d.cts +0 -11
- package/dist/components/utils/focusField.d.ts +0 -12
- package/dist/components/utils/focusField.d.ts.map +0 -1
- package/dist/components/utils/useLoadMoreOnScroll.d.ts.map +0 -1
- package/dist/i18n/PireIntlProvider.d.ts.map +0 -1
- package/dist/i18n/messages.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ComboBoxOption } from './ComboBox.js';
|
|
3
|
-
|
|
3
|
+
import type { WithFieldHelp } from './FieldHelp.js';
|
|
4
|
+
export interface MultiComboBoxProps extends WithFieldHelp {
|
|
4
5
|
label?: React.ReactNode;
|
|
5
6
|
/** Selected values, in the order they were picked. */
|
|
6
7
|
value?: string[];
|
|
@@ -30,16 +31,6 @@ export interface MultiComboBoxProps {
|
|
|
30
31
|
onLoadMore?: () => void;
|
|
31
32
|
placeholder?: string;
|
|
32
33
|
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;
|
|
43
34
|
errorMessage?: React.ReactNode;
|
|
44
35
|
isInvalid?: boolean;
|
|
45
36
|
isDisabled?: boolean;
|
|
@@ -75,4 +66,3 @@ export interface MultiComboBoxProps {
|
|
|
75
66
|
* crashes looking for grid state. Each chip's remove button is an ordinary Tab stop instead,
|
|
76
67
|
* and removals are announced through the live region below. */
|
|
77
68
|
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;
|
|
78
|
-
//# sourceMappingURL=MultiComboBox.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.cjs';
|
|
3
|
+
export interface NumberFieldProps<TEmpty extends '' | null = never> extends WithFieldHelp {
|
|
3
4
|
label?: React.ReactNode;
|
|
4
5
|
/** Accessible name when `label` is omitted — e.g. in a table cell where the column header
|
|
5
6
|
* already carries the visible text. A field with neither is unnamed and fails axe. */
|
|
@@ -15,8 +16,7 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
15
16
|
* What this field uses to mean "empty", in both directions: accepted in `value` and emitted by
|
|
16
17
|
* `onChange`.
|
|
17
18
|
*
|
|
18
|
-
* Defaults to `NaN`, which is what React Aria uses internally
|
|
19
|
-
* always emitted. Declare `''` or `null` when the form is serialised to JSON: `NaN` does not
|
|
19
|
+
* Defaults to `NaN`, which is what React Aria uses internally. Declare `''` or `null` when the form is serialised to JSON: `NaN` does not
|
|
20
20
|
* survive `JSON.stringify` (it becomes `null`) and compares `false` against everything
|
|
21
21
|
* including itself, so a guard like `Math.abs(total) > 0` reads an empty field as a balanced
|
|
22
22
|
* one.
|
|
@@ -30,16 +30,6 @@ 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;
|
|
43
33
|
errorMessage?: React.ReactNode;
|
|
44
34
|
isInvalid?: boolean;
|
|
45
35
|
isDisabled?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.js';
|
|
3
|
+
export interface NumberFieldProps<TEmpty extends '' | null = never> extends WithFieldHelp {
|
|
3
4
|
label?: React.ReactNode;
|
|
4
5
|
/** Accessible name when `label` is omitted — e.g. in a table cell where the column header
|
|
5
6
|
* already carries the visible text. A field with neither is unnamed and fails axe. */
|
|
@@ -15,8 +16,7 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
15
16
|
* What this field uses to mean "empty", in both directions: accepted in `value` and emitted by
|
|
16
17
|
* `onChange`.
|
|
17
18
|
*
|
|
18
|
-
* Defaults to `NaN`, which is what React Aria uses internally
|
|
19
|
-
* always emitted. Declare `''` or `null` when the form is serialised to JSON: `NaN` does not
|
|
19
|
+
* Defaults to `NaN`, which is what React Aria uses internally. Declare `''` or `null` when the form is serialised to JSON: `NaN` does not
|
|
20
20
|
* survive `JSON.stringify` (it becomes `null`) and compares `false` against everything
|
|
21
21
|
* including itself, so a guard like `Math.abs(total) > 0` reads an empty field as a balanced
|
|
22
22
|
* one.
|
|
@@ -30,16 +30,6 @@ 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;
|
|
43
33
|
errorMessage?: React.ReactNode;
|
|
44
34
|
isInvalid?: boolean;
|
|
45
35
|
isDisabled?: boolean;
|
|
@@ -97,4 +87,3 @@ export interface NumberFieldProps<TEmpty extends '' | null = never> {
|
|
|
97
87
|
* does not say why is a worse affordance regardless, so the fix costs nothing.
|
|
98
88
|
*/
|
|
99
89
|
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;
|
|
100
|
-
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -26,4 +26,3 @@ export interface QuantityStepperProps extends Omit<NumberFieldProps<null>, 'step
|
|
|
26
26
|
* a blind count reports a shortage that never happened.
|
|
27
27
|
*/
|
|
28
28
|
export declare function QuantityStepper({ size, ...rest }: QuantityStepperProps): import("react").JSX.Element;
|
|
29
|
-
//# sourceMappingURL=QuantityStepper.d.ts.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.cjs';
|
|
2
3
|
export type SelectOption = string | {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
5
6
|
isDisabled?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export interface SelectProps {
|
|
8
|
+
export interface SelectProps extends WithFieldHelp {
|
|
8
9
|
label?: React.ReactNode;
|
|
9
10
|
value?: string | null;
|
|
10
11
|
defaultValue?: string;
|
|
@@ -43,16 +44,6 @@ export interface SelectProps {
|
|
|
43
44
|
*/
|
|
44
45
|
emptyLabel?: React.ReactNode;
|
|
45
46
|
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;
|
|
56
47
|
errorMessage?: React.ReactNode;
|
|
57
48
|
isInvalid?: boolean;
|
|
58
49
|
isDisabled?: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.js';
|
|
2
3
|
export type SelectOption = string | {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
5
6
|
isDisabled?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export interface SelectProps {
|
|
8
|
+
export interface SelectProps extends WithFieldHelp {
|
|
8
9
|
label?: React.ReactNode;
|
|
9
10
|
value?: string | null;
|
|
10
11
|
defaultValue?: string;
|
|
@@ -43,16 +44,6 @@ export interface SelectProps {
|
|
|
43
44
|
*/
|
|
44
45
|
emptyLabel?: React.ReactNode;
|
|
45
46
|
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;
|
|
56
47
|
errorMessage?: React.ReactNode;
|
|
57
48
|
isInvalid?: boolean;
|
|
58
49
|
isDisabled?: boolean;
|
|
@@ -66,4 +57,3 @@ export interface SelectProps {
|
|
|
66
57
|
/** Single-choice picker. Uses a listbox popover rather than a native <select> so the option
|
|
67
58
|
* rows can carry Pire typography and keyboard behaviour is identical across browsers. */
|
|
68
59
|
export declare function Select({ label, value, defaultValue, onChange, options, placeholder, isClearable, description, help, errorMessage, emptyLabel, size, fullWidth, className, style, ...rest }: SelectProps): React.JSX.Element;
|
|
69
|
-
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -7,4 +7,3 @@ export interface SwitchProps extends Omit<AriaSwitchProps, 'className' | 'childr
|
|
|
7
7
|
}
|
|
8
8
|
/** Immediate-effect toggle. For settings that need a save step, use a Checkbox. */
|
|
9
9
|
export declare function Switch({ label, children, className, ...rest }: SwitchProps): React.JSX.Element;
|
|
10
|
-
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.cjs';
|
|
3
|
+
export interface TextAreaProps extends WithFieldHelp {
|
|
3
4
|
label?: React.ReactNode;
|
|
4
5
|
value?: string;
|
|
5
6
|
defaultValue?: string;
|
|
@@ -8,16 +9,6 @@ export interface TextAreaProps {
|
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
/** Help text below the field. Replaced by errorMessage when invalid. */
|
|
10
11
|
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;
|
|
21
12
|
errorMessage?: React.ReactNode;
|
|
22
13
|
isInvalid?: boolean;
|
|
23
14
|
isDisabled?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.js';
|
|
3
|
+
export interface TextAreaProps extends WithFieldHelp {
|
|
3
4
|
label?: React.ReactNode;
|
|
4
5
|
value?: string;
|
|
5
6
|
defaultValue?: string;
|
|
@@ -8,16 +9,6 @@ export interface TextAreaProps {
|
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
/** Help text below the field. Replaced by errorMessage when invalid. */
|
|
10
11
|
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;
|
|
21
12
|
errorMessage?: React.ReactNode;
|
|
22
13
|
isInvalid?: boolean;
|
|
23
14
|
isDisabled?: boolean;
|
|
@@ -48,4 +39,3 @@ export interface TextAreaProps {
|
|
|
48
39
|
* is genuinely unknown (a long free-text comment) and leave it off everywhere else. When on, the
|
|
49
40
|
* resize grip is removed, since a manual height would be overwritten on the next keystroke. */
|
|
50
41
|
export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
|
|
51
|
-
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -2,7 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import type { DataTableColumn } from '../data/DataTable.cjs';
|
|
3
3
|
export interface ValueHelpFieldProps<T extends {
|
|
4
4
|
id: string | number;
|
|
5
|
-
} =
|
|
5
|
+
} = {
|
|
6
|
+
id: string | number;
|
|
7
|
+
}> {
|
|
6
8
|
label?: React.ReactNode;
|
|
7
9
|
/** The picked record, or null. */
|
|
8
10
|
value?: T | null;
|
|
@@ -30,7 +32,9 @@ export interface ValueHelpFieldProps<T extends {
|
|
|
30
32
|
isInvalid?: boolean;
|
|
31
33
|
isDisabled?: boolean;
|
|
32
34
|
isRequired?: boolean;
|
|
33
|
-
/**
|
|
35
|
+
/** Renders a clear button once a record is picked. The same name as every other clearable field. */
|
|
36
|
+
isClearable?: boolean;
|
|
37
|
+
/** @deprecated Use `isClearable`. */
|
|
34
38
|
allowsClear?: boolean;
|
|
35
39
|
className?: string;
|
|
36
40
|
style?: React.CSSProperties;
|
|
@@ -39,4 +43,4 @@ export interface ValueHelpFieldProps<T extends {
|
|
|
39
43
|
* the value-help trigger. Pairs Input with ValueHelpDialog so screens stop rewiring both. */
|
|
40
44
|
export declare function ValueHelpField<T extends {
|
|
41
45
|
id: string | number;
|
|
42
|
-
}>({ label, value, onChange, format, rows, columns, dialogTitle, onSearch, isFilteredExternally, isLoading, onLoadMore, emptyLabel, placeholder, description, errorMessage, isInvalid, isDisabled, isRequired, allowsClear, className, style, }: ValueHelpFieldProps<T>): React.JSX.Element;
|
|
46
|
+
}>({ label, value, onChange, format, rows, columns, dialogTitle, onSearch, isFilteredExternally, isLoading, onLoadMore, emptyLabel, placeholder, description, errorMessage, isInvalid, isDisabled, isRequired, isClearable, allowsClear, className, style, }: ValueHelpFieldProps<T>): React.JSX.Element;
|
|
@@ -2,7 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import type { DataTableColumn } from '../data/DataTable.js';
|
|
3
3
|
export interface ValueHelpFieldProps<T extends {
|
|
4
4
|
id: string | number;
|
|
5
|
-
} =
|
|
5
|
+
} = {
|
|
6
|
+
id: string | number;
|
|
7
|
+
}> {
|
|
6
8
|
label?: React.ReactNode;
|
|
7
9
|
/** The picked record, or null. */
|
|
8
10
|
value?: T | null;
|
|
@@ -30,7 +32,9 @@ export interface ValueHelpFieldProps<T extends {
|
|
|
30
32
|
isInvalid?: boolean;
|
|
31
33
|
isDisabled?: boolean;
|
|
32
34
|
isRequired?: boolean;
|
|
33
|
-
/**
|
|
35
|
+
/** Renders a clear button once a record is picked. The same name as every other clearable field. */
|
|
36
|
+
isClearable?: boolean;
|
|
37
|
+
/** @deprecated Use `isClearable`. */
|
|
34
38
|
allowsClear?: boolean;
|
|
35
39
|
className?: string;
|
|
36
40
|
style?: React.CSSProperties;
|
|
@@ -39,5 +43,4 @@ export interface ValueHelpFieldProps<T extends {
|
|
|
39
43
|
* the value-help trigger. Pairs Input with ValueHelpDialog so screens stop rewiring both. */
|
|
40
44
|
export declare function ValueHelpField<T extends {
|
|
41
45
|
id: string | number;
|
|
42
|
-
}>({ label, value, onChange, format, rows, columns, dialogTitle, onSearch, isFilteredExternally, isLoading, onLoadMore, emptyLabel, placeholder, description, errorMessage, isInvalid, isDisabled, isRequired, allowsClear, className, style, }: ValueHelpFieldProps<T>): React.JSX.Element;
|
|
43
|
-
//# sourceMappingURL=ValueHelpField.d.ts.map
|
|
46
|
+
}>({ label, value, onChange, format, rows, columns, dialogTitle, onSearch, isFilteredExternally, isLoading, onLoadMore, emptyLabel, placeholder, description, errorMessage, isInvalid, isDisabled, isRequired, isClearable, allowsClear, className, style, }: ValueHelpFieldProps<T>): React.JSX.Element;
|
|
@@ -13,10 +13,7 @@ export declare function coerceDateValue(value: DateValue | string | null | undef
|
|
|
13
13
|
* The same coercion for `minValue` / `maxValue`, where the two ways of saying "no bound" — `null`
|
|
14
14
|
* and `undefined` — collapse into the one React Aria's own types accept.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* pick a date the screen meant to forbid. Degrading still beats throwing, since a bound arriving
|
|
19
|
-
* malformed from a server should not take the screen down, but it is the quieter failure of the
|
|
20
|
-
* two.
|
|
16
|
+
* An unreadable bound silently stops applying (an unreadable value at least shows as empty).
|
|
17
|
+
* Still better than throwing: a malformed bound from a server should not take the screen down.
|
|
21
18
|
*/
|
|
22
19
|
export declare function coerceBound(value: DateValue | string | null | undefined): DateValue | undefined;
|
|
@@ -13,11 +13,7 @@ export declare function coerceDateValue(value: DateValue | string | null | undef
|
|
|
13
13
|
* The same coercion for `minValue` / `maxValue`, where the two ways of saying "no bound" — `null`
|
|
14
14
|
* and `undefined` — collapse into the one React Aria's own types accept.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* pick a date the screen meant to forbid. Degrading still beats throwing, since a bound arriving
|
|
19
|
-
* malformed from a server should not take the screen down, but it is the quieter failure of the
|
|
20
|
-
* two.
|
|
16
|
+
* An unreadable bound silently stops applying (an unreadable value at least shows as empty).
|
|
17
|
+
* Still better than throwing: a malformed bound from a server should not take the screen down.
|
|
21
18
|
*/
|
|
22
19
|
export declare function coerceBound(value: DateValue | string | null | undefined): DateValue | undefined;
|
|
23
|
-
//# sourceMappingURL=dateValues.d.ts.map
|
|
@@ -8,4 +8,3 @@ export interface FooterBarProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
8
8
|
/** Sticky commit bar for create and edit screens: the page scrolls, the decision stays visible.
|
|
9
9
|
* Give the scrolling container bottom padding equal to the bar height. */
|
|
10
10
|
export declare function FooterBar({ note, actions, children, className, ...rest }: FooterBarProps): React.JSX.Element;
|
|
11
|
-
//# sourceMappingURL=FooterBar.d.ts.map
|
|
@@ -13,4 +13,3 @@ export interface PageBandProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
* gutter and the surface those components deliberately leave to their container.
|
|
14
14
|
*/
|
|
15
15
|
export declare function PageBand({ surface, hasBorder, children, className, ...rest }: PageBandProps): React.JSX.Element;
|
|
16
|
-
//# sourceMappingURL=PageBand.d.ts.map
|
|
@@ -8,4 +8,3 @@ export interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLElement>,
|
|
|
8
8
|
/** Heading block for pages that are not a single object — launchpads, settings, reports.
|
|
9
9
|
* Object pages use ObjectHeader instead. */
|
|
10
10
|
export declare function PageHeader({ title, subtitle, actions, className, ...rest }: PageHeaderProps): React.JSX.Element;
|
|
11
|
-
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -9,4 +9,3 @@ export interface SectionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
9
9
|
}
|
|
10
10
|
/** Divides a long page into named bands. Pairs with a KPI row or a card grid below it. */
|
|
11
11
|
export declare function SectionHeader({ title, meta, actions, className, ...rest }: SectionHeaderProps): React.JSX.Element;
|
|
12
|
-
//# sourceMappingURL=SectionHeader.d.ts.map
|
|
@@ -12,8 +12,7 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
12
12
|
* The records' noun. Pass both forms — `{ one: 'orden', other: 'órdenes' }` — since a plural is
|
|
13
13
|
* not the singular plus an "s" in any language this library ships for.
|
|
14
14
|
*
|
|
15
|
-
* A bare string is
|
|
16
|
-
* kept so existing English screens do not change; do not use it for anything else. Defaults to
|
|
15
|
+
* A bare string is pluralised by appending "s" (legacy English); do not use it for new screens. Defaults to
|
|
17
16
|
* the dictionary's `selectionBarNounOne` / `selectionBarNounOther`.
|
|
18
17
|
*/
|
|
19
18
|
noun?: string | SelectionBarNoun;
|
|
@@ -12,8 +12,7 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
12
12
|
* The records' noun. Pass both forms — `{ one: 'orden', other: 'órdenes' }` — since a plural is
|
|
13
13
|
* not the singular plus an "s" in any language this library ships for.
|
|
14
14
|
*
|
|
15
|
-
* A bare string is
|
|
16
|
-
* kept so existing English screens do not change; do not use it for anything else. Defaults to
|
|
15
|
+
* A bare string is pluralised by appending "s" (legacy English); do not use it for new screens. Defaults to
|
|
17
16
|
* the dictionary's `selectionBarNounOne` / `selectionBarNounOther`.
|
|
18
17
|
*/
|
|
19
18
|
noun?: string | SelectionBarNoun;
|
|
@@ -39,4 +38,3 @@ export interface SelectionBarProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
39
38
|
/** Appears above a table once rows are selected and states exactly how many.
|
|
40
39
|
* The count is announced, so keyboard users know a selection changed. */
|
|
41
40
|
export declare function SelectionBar({ count, noun, gender, label, onClear, clearLabel, children, actions, className, ...rest }: SelectionBarProps): React.JSX.Element | null;
|
|
42
|
-
//# sourceMappingURL=SelectionBar.d.ts.map
|
|
@@ -32,4 +32,3 @@ export interface SplitPaneProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
32
32
|
* scrollbars, which is the usual way this pattern goes wrong.
|
|
33
33
|
*/
|
|
34
34
|
export declare function SplitPane({ list, detail, listWidth, listLabel, detailLabel, emptyDetail, onBack, backLabel, className, style, ...rest }: SplitPaneProps): React.JSX.Element;
|
|
35
|
-
//# sourceMappingURL=SplitPane.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface PaginationProps {
|
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
}
|
|
13
13
|
export declare function Pagination({ page, pageSize, total, onPageChange, onPageSizeChange, pageSizes, className, style, }: PaginationProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -94,7 +94,7 @@ export declare const RibbonCommand: (props: RibbonCommandProps) => React.ReactEl
|
|
|
94
94
|
* `Ribbon` reads rather than renders. That is what lets the collapsed bar be *derived* from the
|
|
95
95
|
* same tree instead of authored a second time.
|
|
96
96
|
*/
|
|
97
|
-
export declare function Ribbon({ children, value, defaultValue, onChange, isCollapsed, onCollapsedChange, leading, actions, selectionCount, className, style,
|
|
97
|
+
export declare function Ribbon({ children, value, defaultValue, onChange, isCollapsed, onCollapsedChange, leading, actions, selectionCount, className, style, 'aria-label': ariaLabel, }: RibbonProps): React.JSX.Element;
|
|
98
98
|
export declare namespace Ribbon {
|
|
99
99
|
export { RibbonTab as Tab };
|
|
100
100
|
export { RibbonGroup as Group };
|
|
@@ -94,10 +94,9 @@ export declare const RibbonCommand: (props: RibbonCommandProps) => React.ReactEl
|
|
|
94
94
|
* `Ribbon` reads rather than renders. That is what lets the collapsed bar be *derived* from the
|
|
95
95
|
* same tree instead of authored a second time.
|
|
96
96
|
*/
|
|
97
|
-
export declare function Ribbon({ children, value, defaultValue, onChange, isCollapsed, onCollapsedChange, leading, actions, selectionCount, className, style,
|
|
97
|
+
export declare function Ribbon({ children, value, defaultValue, onChange, isCollapsed, onCollapsedChange, leading, actions, selectionCount, className, style, 'aria-label': ariaLabel, }: RibbonProps): React.JSX.Element;
|
|
98
98
|
export declare namespace Ribbon {
|
|
99
99
|
export { RibbonTab as Tab };
|
|
100
100
|
export { RibbonGroup as Group };
|
|
101
101
|
export { RibbonCommand as Command };
|
|
102
102
|
}
|
|
103
|
-
//# sourceMappingURL=Ribbon.d.ts.map
|
|
@@ -57,4 +57,3 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
|
|
|
57
57
|
}
|
|
58
58
|
/** Fixed 48px application chrome. One per page, always the first landmark. */
|
|
59
59
|
export declare function ShellBar({ launcher, product, monogram, title, breadcrumb, onBreadcrumbNavigate, onMenu, onSearch, menuLabel, searchLabel, actions, user, userMenu, userMenuLabel, className, ...rest }: ShellBarProps): React.JSX.Element;
|
|
60
|
-
//# sourceMappingURL=ShellBar.d.ts.map
|
|
@@ -51,4 +51,3 @@ export interface ShellRailProps extends Omit<React.HTMLAttributes<HTMLElement>,
|
|
|
51
51
|
* separate two close blues.
|
|
52
52
|
*/
|
|
53
53
|
export declare function ShellRail({ groups, value, onChange, className, ...rest }: ShellRailProps): React.JSX.Element;
|
|
54
|
-
//# sourceMappingURL=ShellRail.d.ts.map
|
|
@@ -17,7 +17,7 @@ export interface SideNavItem {
|
|
|
17
17
|
/** Second-level destinations. Supplying this turns the entry into a collapsible group: it stops
|
|
18
18
|
* being a destination itself (pressing it expands, never navigates) and `id` becomes the
|
|
19
19
|
* expansion key used by `expandedIds` / `defaultExpandedIds`, not something `onChange` can ever
|
|
20
|
-
* emit.
|
|
20
|
+
* emit. */
|
|
21
21
|
items?: SideNavChildItem[];
|
|
22
22
|
}
|
|
23
23
|
export interface SideNavGroup {
|
|
@@ -55,7 +55,7 @@ export interface SideNavProps extends Omit<React.HTMLAttributes<HTMLElement>, 'o
|
|
|
55
55
|
* rail records an expansion nothing can draw, leaving second-level destinations reachable only
|
|
56
56
|
* by expanding the nav again.
|
|
57
57
|
*
|
|
58
|
-
*
|
|
58
|
+
* `false` makes a rail group record its expansion invisibly; kept for compatibility.
|
|
59
59
|
*/
|
|
60
60
|
railFlyout?: boolean;
|
|
61
61
|
footer?: React.ReactNode;
|
|
@@ -79,10 +79,7 @@ export interface SideNavProps extends Omit<React.HTMLAttributes<HTMLElement>, 'o
|
|
|
79
79
|
* `aria-hidden="true"`. `.pire-sidenav-subnav[hidden]` in `components.css` is that guard.
|
|
80
80
|
* - **`collapsed` and expansion are different axes, and the rail wins.** With `collapsed` set there
|
|
81
81
|
* are no labels, and a second level is nothing *but* labels. A group therefore opens its children
|
|
82
|
-
* in a flyout beside the rail
|
|
83
|
-
* `railFlyout={false}` the row falls back to recording the expansion silently — which leaves
|
|
84
|
-
* second-level destinations reachable only by expanding the nav again, so it is off the
|
|
85
|
-
* accessible path and exists for compatibility.
|
|
82
|
+
* in a flyout beside the rail rather than inline — see `railFlyout`.
|
|
86
83
|
* - **Several groups can be open at once**, and there is no accordion mode. Closing the group you
|
|
87
84
|
* are in to open another is the wrong trade in a nav whose whole job is showing where you are. */
|
|
88
85
|
export declare function SideNav({ groups, value, onChange, expandedIds, defaultExpandedIds, onExpandedChange, collapsed, railFlyout, bordered, footer, className, ...rest }: SideNavProps): React.JSX.Element;
|
|
@@ -17,7 +17,7 @@ export interface SideNavItem {
|
|
|
17
17
|
/** Second-level destinations. Supplying this turns the entry into a collapsible group: it stops
|
|
18
18
|
* being a destination itself (pressing it expands, never navigates) and `id` becomes the
|
|
19
19
|
* expansion key used by `expandedIds` / `defaultExpandedIds`, not something `onChange` can ever
|
|
20
|
-
* emit.
|
|
20
|
+
* emit. */
|
|
21
21
|
items?: SideNavChildItem[];
|
|
22
22
|
}
|
|
23
23
|
export interface SideNavGroup {
|
|
@@ -55,7 +55,7 @@ export interface SideNavProps extends Omit<React.HTMLAttributes<HTMLElement>, 'o
|
|
|
55
55
|
* rail records an expansion nothing can draw, leaving second-level destinations reachable only
|
|
56
56
|
* by expanding the nav again.
|
|
57
57
|
*
|
|
58
|
-
*
|
|
58
|
+
* `false` makes a rail group record its expansion invisibly; kept for compatibility.
|
|
59
59
|
*/
|
|
60
60
|
railFlyout?: boolean;
|
|
61
61
|
footer?: React.ReactNode;
|
|
@@ -79,11 +79,7 @@ export interface SideNavProps extends Omit<React.HTMLAttributes<HTMLElement>, 'o
|
|
|
79
79
|
* `aria-hidden="true"`. `.pire-sidenav-subnav[hidden]` in `components.css` is that guard.
|
|
80
80
|
* - **`collapsed` and expansion are different axes, and the rail wins.** With `collapsed` set there
|
|
81
81
|
* are no labels, and a second level is nothing *but* labels. A group therefore opens its children
|
|
82
|
-
* in a flyout beside the rail
|
|
83
|
-
* `railFlyout={false}` the row falls back to recording the expansion silently — which leaves
|
|
84
|
-
* second-level destinations reachable only by expanding the nav again, so it is off the
|
|
85
|
-
* accessible path and exists for compatibility.
|
|
82
|
+
* in a flyout beside the rail rather than inline — see `railFlyout`.
|
|
86
83
|
* - **Several groups can be open at once**, and there is no accordion mode. Closing the group you
|
|
87
84
|
* are in to open another is the wrong trade in a nav whose whole job is showing where you are. */
|
|
88
85
|
export declare function SideNav({ groups, value, onChange, expandedIds, defaultExpandedIds, onExpandedChange, collapsed, railFlyout, bordered, footer, className, ...rest }: SideNavProps): React.JSX.Element;
|
|
89
|
-
//# sourceMappingURL=SideNav.d.ts.map
|
|
@@ -20,4 +20,4 @@ export interface TabsProps {
|
|
|
20
20
|
style?: React.CSSProperties;
|
|
21
21
|
}
|
|
22
22
|
/** Peer views of one object. Arrow keys move between tabs; the panel is one tab stop away. */
|
|
23
|
-
export declare function Tabs({ items, value, defaultValue, onChange, panels, className, style,
|
|
23
|
+
export declare function Tabs({ items, value, defaultValue, onChange, panels, className, style, 'aria-label': ariaLabel, }: TabsProps): React.JSX.Element;
|
|
@@ -20,5 +20,4 @@ export interface TabsProps {
|
|
|
20
20
|
style?: React.CSSProperties;
|
|
21
21
|
}
|
|
22
22
|
/** Peer views of one object. Arrow keys move between tabs; the panel is one tab stop away. */
|
|
23
|
-
export declare function Tabs({ items, value, defaultValue, onChange, panels, className, style,
|
|
24
|
-
//# sourceMappingURL=Tabs.d.ts.map
|
|
23
|
+
export declare function Tabs({ items, value, defaultValue, onChange, panels, className, style, 'aria-label': ariaLabel, }: TabsProps): React.JSX.Element;
|
|
@@ -56,8 +56,7 @@ export interface AppLauncherProps {
|
|
|
56
56
|
* server-backed catalogues: fuzzy matches, synonyms and code-to-description hits do not survive
|
|
57
57
|
* a second local "contains" pass.
|
|
58
58
|
*
|
|
59
|
-
* Named to match `ComboBox
|
|
60
|
-
* worse than either name.
|
|
59
|
+
* Named to match `ComboBox`, deliberately (see CLAUDE.md, server-backed lists).
|
|
61
60
|
*/
|
|
62
61
|
isFilteredExternally?: boolean;
|
|
63
62
|
/** Shows a status row rather than "nothing found" while a request is in flight. */
|
|
@@ -56,8 +56,7 @@ export interface AppLauncherProps {
|
|
|
56
56
|
* server-backed catalogues: fuzzy matches, synonyms and code-to-description hits do not survive
|
|
57
57
|
* a second local "contains" pass.
|
|
58
58
|
*
|
|
59
|
-
* Named to match `ComboBox
|
|
60
|
-
* worse than either name.
|
|
59
|
+
* Named to match `ComboBox`, deliberately (see CLAUDE.md, server-backed lists).
|
|
61
60
|
*/
|
|
62
61
|
isFilteredExternally?: boolean;
|
|
63
62
|
/** Shows a status row rather than "nothing found" while a request is in flight. */
|
|
@@ -88,4 +87,3 @@ export interface AppLauncherProps {
|
|
|
88
87
|
* box feels broken in Spanish. Hand it to a server with `isFilteredExternally`.
|
|
89
88
|
*/
|
|
90
89
|
export declare function AppLauncher({ sections, onAction, value, title, meta, isSearchable, onSearchChange, isFilteredExternally, isLoading, emptyLabel, searchPlaceholder, 'aria-label': ariaLabel, icon, className, }: AppLauncherProps): React.JSX.Element;
|
|
91
|
-
//# sourceMappingURL=AppLauncher.d.ts.map
|
|
@@ -95,4 +95,3 @@ export interface CommandPaletteShortcutOptions {
|
|
|
95
95
|
* component that claims it on mount takes it silently.
|
|
96
96
|
*/
|
|
97
97
|
export declare function useCommandPaletteShortcut(onTrigger: () => void, { key, isDisabled }?: CommandPaletteShortcutOptions): void;
|
|
98
|
-
//# sourceMappingURL=CommandPalette.d.ts.map
|
|
@@ -26,4 +26,3 @@ export interface ConfirmDialogProps {
|
|
|
26
26
|
}
|
|
27
27
|
/** Interrupts one irreversible action. Never use for information — that is an InlineMessage. */
|
|
28
28
|
export declare function ConfirmDialog({ isOpen, title, subtitle, facts, consequence, children, confirmLabel, cancelLabel, tone, isBusy, onConfirm, onCancel, }: ConfirmDialogProps): React.JSX.Element;
|
|
29
|
-
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface EmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
11
11
|
}
|
|
12
12
|
/** Says what is missing, why, and the one thing to do about it. */
|
|
13
13
|
export declare function EmptyState({ icon, title, action, compact, children, className, ...rest }: EmptyStateProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import { type FileUploadProps } from '../forms/FileUpload.cjs';
|
|
3
3
|
export interface FileDropZoneProps extends Omit<FileUploadProps, 'chooseLabel'> {
|
|
4
4
|
/** Instruction inside the zone. Overrides the dictionary's `fileDropZonePrompt`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import { type FileUploadProps } from '../forms/FileUpload.js';
|
|
3
3
|
export interface FileDropZoneProps extends Omit<FileUploadProps, 'chooseLabel'> {
|
|
4
4
|
/** Instruction inside the zone. Overrides the dictionary's `fileDropZonePrompt`. */
|
|
@@ -21,4 +21,3 @@ export interface FileDropZoneProps extends Omit<FileUploadProps, 'chooseLabel'>
|
|
|
21
21
|
* not an accessible way to supply a file.
|
|
22
22
|
*/
|
|
23
23
|
export declare function FileDropZone({ label, value, defaultValue, onChange, acceptedFileTypes, allowsMultiple, maxSize, onError, showPreview, uploadProgress, promptLabel, height, description, errorMessage, isInvalid, isDisabled, isReadOnly, isRequired, fullWidth, className, style, 'aria-label': ariaLabel, ...rest }: FileDropZoneProps): React.JSX.Element;
|
|
24
|
-
//# sourceMappingURL=FileDropZone.d.ts.map
|
|
@@ -65,13 +65,7 @@ export interface NumPadProps {
|
|
|
65
65
|
* An on-screen numeric keypad for a counter operated hands-on-keyboard: a POS quantity or an
|
|
66
66
|
* amount tendered, typed without looking down at the screen.
|
|
67
67
|
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* {@link useNumPadKeyboard}), and `isDisabled` is real — a native disabled `<button>`, not a
|
|
71
|
-
* class name a press still gets through.
|
|
72
|
-
*
|
|
73
|
-
* A screen with two of these mounted at once — a quantity keypad in a cart panel, an amount
|
|
74
|
-
* keypad in the payment overlay covering it — never has both answer the same keystroke either:
|
|
75
|
-
* see {@link useNumPadKeyboard} for how the backgrounded one recognises that on its own.
|
|
68
|
+
* Every press works from the physical keyboard as well as a click (see {@link useNumPadKeyboard},
|
|
69
|
+
* which also keeps a backgrounded pad quiet), and `isDisabled` is a native disabled `<button>`.
|
|
76
70
|
*/
|
|
77
71
|
export declare function NumPad({ 'aria-label': ariaLabel, target, value, onChange, extraKeys, onAction, maxFractionDigits, isDisabled, size, className, style, }: NumPadProps): React.JSX.Element;
|