@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
|
@@ -65,14 +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;
|
|
78
|
-
//# sourceMappingURL=NumPad.d.ts.map
|
|
@@ -26,4 +26,3 @@ export interface SidePanelProps {
|
|
|
26
26
|
}
|
|
27
27
|
/** Right-hand panel for details and edits that must keep the list in view. */
|
|
28
28
|
export declare function SidePanel({ isOpen, title, subtitle, width, presentation, children, footer, onClose, className, }: SidePanelProps): React.JSX.Element | null;
|
|
29
|
-
//# sourceMappingURL=SidePanel.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 ValueHelpDialogProps<T extends {
|
|
4
4
|
id: string | number;
|
|
5
|
-
} =
|
|
5
|
+
} = {
|
|
6
|
+
id: string | number;
|
|
7
|
+
}> {
|
|
6
8
|
isOpen?: boolean;
|
|
7
9
|
title?: React.ReactNode;
|
|
8
10
|
/** Show 2–4 identifying columns, not just the key. */
|
|
@@ -22,9 +24,7 @@ export interface ValueHelpDialogProps<T extends {
|
|
|
22
24
|
* fuzzy matches, synonyms, code-to-description and server ranking do not survive a local
|
|
23
25
|
* "contains" pass over the fields that happen to be in the row.
|
|
24
26
|
*
|
|
25
|
-
* Named to match `ComboBox`, deliberately
|
|
26
|
-
* name — the ERP's supplier, customer, product and purchase-order pickers all need this, and
|
|
27
|
-
* they already know the ComboBox spelling.
|
|
27
|
+
* Named to match `ComboBox`, deliberately (see CLAUDE.md, server-backed lists).
|
|
28
28
|
*/
|
|
29
29
|
isFilteredExternally?: boolean;
|
|
30
30
|
/** Keeps the table's skeleton up instead of showing "no records" while a request is in flight. */
|
|
@@ -35,7 +35,7 @@ export interface ValueHelpDialogProps<T extends {
|
|
|
35
35
|
onSelect?: (row: T) => void;
|
|
36
36
|
onClose?: () => void;
|
|
37
37
|
/**
|
|
38
|
-
* `'single'` (the default) commits on row press
|
|
38
|
+
* `'single'` (the default) commits on row press. `'multiple'` adds a
|
|
39
39
|
* checkbox column, a running count and select-all / clear shortcuts, and moves the commit to
|
|
40
40
|
* an explicit confirm — a row press only toggles that row.
|
|
41
41
|
*/
|
|
@@ -2,7 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { type DataTableColumn } from '../data/DataTable.js';
|
|
3
3
|
export interface ValueHelpDialogProps<T extends {
|
|
4
4
|
id: string | number;
|
|
5
|
-
} =
|
|
5
|
+
} = {
|
|
6
|
+
id: string | number;
|
|
7
|
+
}> {
|
|
6
8
|
isOpen?: boolean;
|
|
7
9
|
title?: React.ReactNode;
|
|
8
10
|
/** Show 2–4 identifying columns, not just the key. */
|
|
@@ -22,9 +24,7 @@ export interface ValueHelpDialogProps<T extends {
|
|
|
22
24
|
* fuzzy matches, synonyms, code-to-description and server ranking do not survive a local
|
|
23
25
|
* "contains" pass over the fields that happen to be in the row.
|
|
24
26
|
*
|
|
25
|
-
* Named to match `ComboBox`, deliberately
|
|
26
|
-
* name — the ERP's supplier, customer, product and purchase-order pickers all need this, and
|
|
27
|
-
* they already know the ComboBox spelling.
|
|
27
|
+
* Named to match `ComboBox`, deliberately (see CLAUDE.md, server-backed lists).
|
|
28
28
|
*/
|
|
29
29
|
isFilteredExternally?: boolean;
|
|
30
30
|
/** Keeps the table's skeleton up instead of showing "no records" while a request is in flight. */
|
|
@@ -35,7 +35,7 @@ export interface ValueHelpDialogProps<T extends {
|
|
|
35
35
|
onSelect?: (row: T) => void;
|
|
36
36
|
onClose?: () => void;
|
|
37
37
|
/**
|
|
38
|
-
* `'single'` (the default) commits on row press
|
|
38
|
+
* `'single'` (the default) commits on row press. `'multiple'` adds a
|
|
39
39
|
* checkbox column, a running count and select-all / clear shortcuts, and moves the commit to
|
|
40
40
|
* an explicit confirm — a row press only toggles that row.
|
|
41
41
|
*/
|
|
@@ -61,4 +61,3 @@ export interface ValueHelpDialogProps<T extends {
|
|
|
61
61
|
export declare function ValueHelpDialog<T extends {
|
|
62
62
|
id: string | number;
|
|
63
63
|
}>({ isOpen, title, columns, rows, searchPlaceholder, emptyLabel, onSearch, isFilteredExternally, isLoading, onLoadMore, onSelect, onClose, selectionMode, selectedKeys, onSelectionChange, onConfirm, }: ValueHelpDialogProps<T>): React.JSX.Element;
|
|
64
|
-
//# sourceMappingURL=ValueHelpDialog.d.ts.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The character this locale puts before the fractional part — a locale property, not a formatting
|
|
3
3
|
* choice, so it is read without any field's `formatOptions`.
|
|
4
|
-
*
|
|
5
|
-
* Shared rather than declared twice: `NumberField` remaps a typed `.` to it, and `NumPad` draws it
|
|
6
|
-
* on a key. Two copies of this would be two chances for the two components to disagree about what
|
|
7
|
-
* `es-PY` means, on the same screen, in the same transaction.
|
|
4
|
+
* Shared by `NumberField` and `NumPad` so the two can never disagree on one screen.
|
|
8
5
|
*/
|
|
9
6
|
export declare function decimalSeparatorFor(locale: string): string;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The character this locale puts before the fractional part — a locale property, not a formatting
|
|
3
3
|
* choice, so it is read without any field's `formatOptions`.
|
|
4
|
-
*
|
|
5
|
-
* Shared rather than declared twice: `NumberField` remaps a typed `.` to it, and `NumPad` draws it
|
|
6
|
-
* on a key. Two copies of this would be two chances for the two components to disagree about what
|
|
7
|
-
* `es-PY` means, on the same screen, in the same transaction.
|
|
4
|
+
* Shared by `NumberField` and `NumPad` so the two can never disagree on one screen.
|
|
8
5
|
*/
|
|
9
6
|
export declare function decimalSeparatorFor(locale: string): string;
|
|
10
|
-
//# sourceMappingURL=decimalSeparator.d.ts.map
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* warnings and their registry are dead code a minifier drops from production builds. Do *not*
|
|
3
3
|
* wrap this in `typeof process !== 'undefined'`: `process` is genuinely undefined in the
|
|
4
4
|
* browser, the `typeof` test is not something a bundler substitutes, and the guard would
|
|
5
|
-
* evaluate false in development — silencing the warnings this exists to emit.
|
|
5
|
+
* evaluate false in development — silencing the warnings this exists to emit. This is the same
|
|
6
|
+
* bare check react-aria-components ships, so it is already in every consumer's bundle. */
|
|
6
7
|
export declare const IS_DEV: boolean;
|
|
7
|
-
/** One warning per distinct cause. Fields re-render on every keystroke
|
|
8
|
-
* would bury the message in its own repetitions.
|
|
8
|
+
/** One warning per distinct cause. Fields, icons and charts re-render on every keystroke or filter
|
|
9
|
+
* change, so warning per render would bury the message in its own repetitions. The registry is
|
|
10
|
+
* shared by every component, so prefix keys with the component (`icon:`, `datatable:`, `chart:`). */
|
|
9
11
|
export declare function warnOnce(key: string, message: string): void;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* warnings and their registry are dead code a minifier drops from production builds. Do *not*
|
|
3
3
|
* wrap this in `typeof process !== 'undefined'`: `process` is genuinely undefined in the
|
|
4
4
|
* browser, the `typeof` test is not something a bundler substitutes, and the guard would
|
|
5
|
-
* evaluate false in development — silencing the warnings this exists to emit.
|
|
5
|
+
* evaluate false in development — silencing the warnings this exists to emit. This is the same
|
|
6
|
+
* bare check react-aria-components ships, so it is already in every consumer's bundle. */
|
|
6
7
|
export declare const IS_DEV: boolean;
|
|
7
|
-
/** One warning per distinct cause. Fields re-render on every keystroke
|
|
8
|
-
* would bury the message in its own repetitions.
|
|
8
|
+
/** One warning per distinct cause. Fields, icons and charts re-render on every keystroke or filter
|
|
9
|
+
* change, so warning per render would bury the message in its own repetitions. The registry is
|
|
10
|
+
* shared by every component, so prefix keys with the component (`icon:`, `datatable:`, `chart:`). */
|
|
9
11
|
export declare function warnOnce(key: string, message: string): void;
|
|
10
|
-
//# sourceMappingURL=devWarn.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Listens for `keydown` on the document while enabled, always calling the latest `onKeyDown` — so
|
|
3
|
+
* a caller can pass an inline handler without re-subscribing on every render.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useDocumentKeyDown(onKeyDown: (event: KeyboardEvent) => void, isDisabled?: boolean): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Listens for `keydown` on the document while enabled, always calling the latest `onKeyDown` — so
|
|
3
|
+
* a caller can pass an inline handler without re-subscribing on every render.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useDocumentKeyDown(onKeyDown: (event: KeyboardEvent) => void, isDisabled?: boolean): void;
|
|
@@ -9,4 +9,3 @@ import * as React from 'react';
|
|
|
9
9
|
* failed request can be retried by scrolling again. Returns `undefined` without `onLoadMore`.
|
|
10
10
|
*/
|
|
11
11
|
export declare function useLoadMoreOnScroll(onLoadMore: (() => void) | undefined, isLoading: boolean | undefined): React.UIEventHandler<HTMLElement> | undefined;
|
|
12
|
-
//# sourceMappingURL=useLoadMoreOnScroll.d.ts.map
|