@orianatech/pire 2.1.0 → 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 +9 -3
- package/dist/components/data/DataTable.d.ts +9 -4
- 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.cts +1 -1
- package/dist/components/data/Timeline.d.ts +1 -2
- 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 +40 -1
- package/dist/components/forms/FileUpload.d.ts +40 -2
- 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 +3 -14
- package/dist/components/forms/TextArea.d.ts +3 -15
- 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.cts +2 -5
- package/dist/components/navigation/ShellBar.d.ts +2 -6
- 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.cts +11 -0
- package/dist/components/utils/useLoadMoreOnScroll.d.ts +11 -0
- package/dist/components.css +145 -87
- package/dist/i18n/PireIntlProvider.d.ts +0 -1
- package/dist/i18n/messages.d.cts +18 -0
- package/dist/i18n/messages.d.ts +18 -1
- package/dist/index.cjs +1615 -1514
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1527 -1449
- package/dist/index.js.map +1 -1
- package/dist/tokens/base.css +2 -5
- package/dist/tokens/colors.css +14 -8
- package/dist/tokens/elevation.css +15 -0
- package/dist/tokens/themes.css +7 -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/i18n/PireIntlProvider.d.ts.map +0 -1
- package/dist/i18n/messages.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -9,4 +9,3 @@ export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
9
9
|
/** Identity chip for the shell bar, approval lists and history rows. Never the only way a person
|
|
10
10
|
* is named — always sits beside or is labelled with the full name. */
|
|
11
11
|
export declare function Avatar({ name, size, src, className, ...rest }: AvatarProps): React.JSX.Element;
|
|
12
|
-
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -11,10 +11,7 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
11
11
|
* Takes a ref, which is what lets it be a `Tooltip` target: React Aria's `Focusable` clones its
|
|
12
12
|
* child and hands it one, and a component that cannot accept a ref leaves the tooltip **silently**
|
|
13
13
|
* dead — no error, and a screenshot identical to a working one.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* rode along in `...rest` and landed on the span by accident; under React 18 it is stripped before
|
|
17
|
-
* the component ever sees it. The library develops on 19 and had consumers on 18, so the failure
|
|
18
|
-
* existed only where nobody was testing.
|
|
14
|
+
* `forwardRef` is required: React 18 strips `ref` from props, while React 19 would pass it
|
|
15
|
+
* through `...rest` and hide the missing forward.
|
|
19
16
|
*/
|
|
20
17
|
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -11,11 +11,7 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
11
11
|
* Takes a ref, which is what lets it be a `Tooltip` target: React Aria's `Focusable` clones its
|
|
12
12
|
* child and hands it one, and a component that cannot accept a ref leaves the tooltip **silently**
|
|
13
13
|
* dead — no error, and a screenshot identical to a working one.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* rode along in `...rest` and landed on the span by accident; under React 18 it is stripped before
|
|
17
|
-
* the component ever sees it. The library develops on 19 and had consumers on 18, so the failure
|
|
18
|
-
* existed only where nobody was testing.
|
|
14
|
+
* `forwardRef` is required: React 18 strips `ref` from props, while React 19 would pass it
|
|
15
|
+
* through `...rest` and hide the missing forward.
|
|
19
16
|
*/
|
|
20
17
|
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'titl
|
|
|
11
11
|
interactive?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare function Card({ title, subtitle, icon, actions, footer, interactive, children, className, ...rest }: CardProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type TextColor } from './Text.cjs';
|
|
3
3
|
export interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, 'color'> {
|
|
4
4
|
/** Semantic level. Picks the h1–h4 element and defines the document outline. */
|
|
5
5
|
level?: 1 | 2 | 3 | 4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type TextColor } from './Text.js';
|
|
3
3
|
export interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, 'color'> {
|
|
4
4
|
/** Semantic level. Picks the h1–h4 element and defines the document outline. */
|
|
5
5
|
level?: 1 | 2 | 3 | 4;
|
|
@@ -13,4 +13,3 @@ export interface HeadingProps extends Omit<React.HTMLAttributes<HTMLHeadingEleme
|
|
|
13
13
|
}
|
|
14
14
|
/** Section and page titles. Built on React Aria's `Heading` so a `Dialog` picks it up as its name. */
|
|
15
15
|
export declare function Heading({ level, size, color, truncate, className, style, ...rest }: HeadingProps): React.JSX.Element;
|
|
16
|
-
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -29,8 +29,7 @@ export interface IconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, '
|
|
|
29
29
|
pack?: IconPack;
|
|
30
30
|
}
|
|
31
31
|
/** Glyph rendered as inline SVG filled with `currentColor`, so it inherits text colour everywhere
|
|
32
|
-
* and paints with no network at all —
|
|
33
|
-
* every icon blank offline in the PWAs that consume this library.
|
|
32
|
+
* and paints with no network at all — offline PWAs included.
|
|
34
33
|
*
|
|
35
34
|
* An unknown name still renders nothing, so a typo cannot collapse a layout, but it warns in
|
|
36
35
|
* development: the silent blank gap was the failure mode worth killing. */
|
|
@@ -29,10 +29,8 @@ export interface IconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, '
|
|
|
29
29
|
pack?: IconPack;
|
|
30
30
|
}
|
|
31
31
|
/** Glyph rendered as inline SVG filled with `currentColor`, so it inherits text colour everywhere
|
|
32
|
-
* and paints with no network at all —
|
|
33
|
-
* every icon blank offline in the PWAs that consume this library.
|
|
32
|
+
* and paints with no network at all — offline PWAs included.
|
|
34
33
|
*
|
|
35
34
|
* An unknown name still renders nothing, so a typo cannot collapse a layout, but it warns in
|
|
36
35
|
* development: the silent blank gap was the failure mode worth killing. */
|
|
37
36
|
export declare function Icon({ name, size, label, pack, style, ...rest }: IconProps): React.JSX.Element;
|
|
38
|
-
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -25,4 +25,3 @@ export interface IconButtonProps extends Omit<AriaButtonProps, 'className' | 'ch
|
|
|
25
25
|
className?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
-
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -15,4 +15,3 @@ export interface KbdProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
15
15
|
* its own glyph instead of stretching one cap across "Ctrl+Shift+K".
|
|
16
16
|
*/
|
|
17
17
|
export declare function Kbd({ children, size, className, ...rest }: KbdProps): React.JSX.Element;
|
|
18
|
-
//# sourceMappingURL=Kbd.d.ts.map
|
|
@@ -11,4 +11,3 @@ export interface LinkProps extends Omit<AriaLinkProps, 'className' | 'children'>
|
|
|
11
11
|
}
|
|
12
12
|
/** A real anchor with the system's link styling. Honours a `RouterProvider` when the app supplies one. */
|
|
13
13
|
export declare function Link({ children, size, isExternal, className, rel, ...rest }: LinkProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -20,4 +20,4 @@ export interface SegmentedControlProps {
|
|
|
20
20
|
}
|
|
21
21
|
/** Two to four mutually exclusive view options that change how data is displayed, not what it is:
|
|
22
22
|
* row density, list vs chart, period. For filtering, use Select or Tabs. */
|
|
23
|
-
export declare function SegmentedControl({ options, value, defaultValue, onChange, iconOnly, size, className, style,
|
|
23
|
+
export declare function SegmentedControl({ options, value, defaultValue, onChange, iconOnly, size, className, style, 'aria-label': ariaLabel, }: SegmentedControlProps): React.JSX.Element;
|
|
@@ -20,5 +20,4 @@ export interface SegmentedControlProps {
|
|
|
20
20
|
}
|
|
21
21
|
/** Two to four mutually exclusive view options that change how data is displayed, not what it is:
|
|
22
22
|
* row density, list vs chart, period. For filtering, use Select or Tabs. */
|
|
23
|
-
export declare function SegmentedControl({ options, value, defaultValue, onChange, iconOnly, size, className, style,
|
|
24
|
-
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
23
|
+
export declare function SegmentedControl({ options, value, defaultValue, onChange, iconOnly, size, className, style, 'aria-label': ariaLabel, }: SegmentedControlProps): React.JSX.Element;
|
|
@@ -10,4 +10,3 @@ export interface SeparatorProps extends Omit<AriaSeparatorProps, 'className'> {
|
|
|
10
10
|
}
|
|
11
11
|
/** A page-level divider. For rules inside a menu use `MenuSeparator`, which follows the menu's rhythm. */
|
|
12
12
|
export declare function Separator({ orientation, emphasis, spacing, className, ...rest }: SeparatorProps): import("react").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -23,6 +23,6 @@ export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
23
23
|
* A removable token: applied filters, multi-select values.
|
|
24
24
|
*
|
|
25
25
|
* Takes a ref so it can be a `Tooltip` target — a truncated category label is a common reason to
|
|
26
|
-
* want one.
|
|
26
|
+
* want one.
|
|
27
27
|
*/
|
|
28
28
|
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -23,7 +23,6 @@ export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
23
23
|
* A removable token: applied filters, multi-select values.
|
|
24
24
|
*
|
|
25
25
|
* Takes a ref so it can be a `Tooltip` target — a truncated category label is a common reason to
|
|
26
|
-
* want one.
|
|
26
|
+
* want one.
|
|
27
27
|
*/
|
|
28
28
|
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
29
|
-
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -3,6 +3,14 @@ import * as React from 'react';
|
|
|
3
3
|
export type TextColor = 'primary' | 'secondary' | 'tertiary' | 'disabled' | 'inverse';
|
|
4
4
|
/** Typographic scale, named after the `--type-*` tokens. */
|
|
5
5
|
export type TextSize = 'body' | 'body-lg' | 'caption' | 'micro';
|
|
6
|
+
/**
|
|
7
|
+
* `truncate` as `Text` and `Heading` take it: `true` clamps to one line, a number to that many. The
|
|
8
|
+
* line count travels as `--pire-text-clamp`, so the stylesheet owns the clamping itself.
|
|
9
|
+
*/
|
|
10
|
+
export declare function truncateStyle(truncate: boolean | number | undefined, style: React.CSSProperties | undefined): {
|
|
11
|
+
isTruncated: boolean;
|
|
12
|
+
clampStyle: React.CSSProperties | undefined;
|
|
13
|
+
};
|
|
6
14
|
export interface TextProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
|
|
7
15
|
/** Typographic scale. `body` covers most copy. */
|
|
8
16
|
size?: TextSize;
|
|
@@ -24,7 +32,7 @@ export interface TextProps extends Omit<React.HTMLAttributes<HTMLElement>, 'colo
|
|
|
24
32
|
* Body copy, captions, metadata and eyebrows — everything that is text but not a heading.
|
|
25
33
|
*
|
|
26
34
|
* Takes a ref so it can be a `Tooltip` target, and so a clamped line can be measured to decide
|
|
27
|
-
* whether a tooltip is warranted at all.
|
|
35
|
+
* whether a tooltip is warranted at all.
|
|
28
36
|
*/
|
|
29
37
|
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
|
30
38
|
export interface StrongProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
|
|
@@ -3,6 +3,14 @@ import * as React from 'react';
|
|
|
3
3
|
export type TextColor = 'primary' | 'secondary' | 'tertiary' | 'disabled' | 'inverse';
|
|
4
4
|
/** Typographic scale, named after the `--type-*` tokens. */
|
|
5
5
|
export type TextSize = 'body' | 'body-lg' | 'caption' | 'micro';
|
|
6
|
+
/**
|
|
7
|
+
* `truncate` as `Text` and `Heading` take it: `true` clamps to one line, a number to that many. The
|
|
8
|
+
* line count travels as `--pire-text-clamp`, so the stylesheet owns the clamping itself.
|
|
9
|
+
*/
|
|
10
|
+
export declare function truncateStyle(truncate: boolean | number | undefined, style: React.CSSProperties | undefined): {
|
|
11
|
+
isTruncated: boolean;
|
|
12
|
+
clampStyle: React.CSSProperties | undefined;
|
|
13
|
+
};
|
|
6
14
|
export interface TextProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
|
|
7
15
|
/** Typographic scale. `body` covers most copy. */
|
|
8
16
|
size?: TextSize;
|
|
@@ -24,7 +32,7 @@ export interface TextProps extends Omit<React.HTMLAttributes<HTMLElement>, 'colo
|
|
|
24
32
|
* Body copy, captions, metadata and eyebrows — everything that is text but not a heading.
|
|
25
33
|
*
|
|
26
34
|
* Takes a ref so it can be a `Tooltip` target, and so a clamped line can be measured to decide
|
|
27
|
-
* whether a tooltip is warranted at all.
|
|
35
|
+
* whether a tooltip is warranted at all.
|
|
28
36
|
*/
|
|
29
37
|
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
|
30
38
|
export interface StrongProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
|
|
@@ -32,4 +40,3 @@ export interface StrongProps extends Omit<React.HTMLAttributes<HTMLElement>, 'co
|
|
|
32
40
|
}
|
|
33
41
|
/** Inline emphasis. Sugar over `<Text weight="strong" elementType="span">`. */
|
|
34
42
|
export declare const Strong: React.ForwardRefExoticComponent<StrongProps & React.RefAttributes<HTMLElement>>;
|
|
35
|
-
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -29,4 +29,4 @@ export interface BarChartProps extends ChartBaseProps {
|
|
|
29
29
|
* inherit type tokens, none of which survives a scaled `viewBox`. The bar axis always starts at
|
|
30
30
|
* zero, since a bar encodes length, and a truncated axis overstates the difference.
|
|
31
31
|
*/
|
|
32
|
-
export declare function BarChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, orientation, stacked, showValues, className, style,
|
|
32
|
+
export declare function BarChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, orientation, stacked, showValues, className, style, 'aria-label': label, }: BarChartProps): React.JSX.Element;
|
|
@@ -29,5 +29,4 @@ export interface BarChartProps extends ChartBaseProps {
|
|
|
29
29
|
* inherit type tokens, none of which survives a scaled `viewBox`. The bar axis always starts at
|
|
30
30
|
* zero, since a bar encodes length, and a truncated axis overstates the difference.
|
|
31
31
|
*/
|
|
32
|
-
export declare function BarChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, orientation, stacked, showValues, className, style,
|
|
33
|
-
//# sourceMappingURL=BarChart.d.ts.map
|
|
32
|
+
export declare function BarChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, orientation, stacked, showValues, className, style, 'aria-label': label, }: BarChartProps): React.JSX.Element;
|
|
@@ -28,4 +28,3 @@ export interface BarListProps extends Omit<React.HTMLAttributes<HTMLUListElement
|
|
|
28
28
|
* states. Not a `ProgressBar` either — that is one value against a known total.
|
|
29
29
|
*/
|
|
30
30
|
export declare function BarList({ items, max, className, ...rest }: BarListProps): React.JSX.Element;
|
|
31
|
-
//# sourceMappingURL=BarList.d.ts.map
|
|
@@ -60,4 +60,3 @@ export declare const defaultFormatValue: (value: number) => string;
|
|
|
60
60
|
* `showDataTable` only decides whether it is also visible.
|
|
61
61
|
*/
|
|
62
62
|
export declare function ChartFrame({ label, title, description, categories, series, formatValue, legend, showDataTable, className, style, children, }: ChartFrameProps): React.JSX.Element;
|
|
63
|
-
//# sourceMappingURL=ChartFrame.d.ts.map
|
|
@@ -72,7 +72,15 @@ export interface DataTableProps<T extends {
|
|
|
72
72
|
} = any> {
|
|
73
73
|
/** Accessible name for the grid — required. */
|
|
74
74
|
'aria-label': string;
|
|
75
|
+
/**
|
|
76
|
+
* Keep each column's `render` and `tone` functions stable across renders: define the columns
|
|
77
|
+
* outside the component, or memoize them. The table re-renders its rows only when they change,
|
|
78
|
+
* so stable columns are what make a keystroke in an editing row cost that row's fields rather
|
|
79
|
+
* than every cell. `renderEdit` may change freely — swap it in with a spread
|
|
80
|
+
* (`{ ...nameColumn, renderEdit }`) so the column's other functions keep their identity.
|
|
81
|
+
*/
|
|
75
82
|
columns: DataTableColumn<T>[];
|
|
83
|
+
/** Keep the array and its objects stable while nothing changed, for the same reason as `columns`. */
|
|
76
84
|
rows: T[];
|
|
77
85
|
/** Row height: 32 / 40 / 48px. Condensed is the analyst default. */
|
|
78
86
|
density?: 'condensed' | 'regular' | 'comfortable';
|
|
@@ -158,8 +166,6 @@ export interface DataTableProps<T extends {
|
|
|
158
166
|
className?: string;
|
|
159
167
|
style?: React.CSSProperties;
|
|
160
168
|
}
|
|
161
|
-
/** Records grid. React Aria supplies roving focus, type-ahead, shift-click ranges and
|
|
162
|
-
* screen-reader row/column announcements — do not hand-roll a <table> in product code. */
|
|
163
169
|
export declare function DataTable<T extends {
|
|
164
170
|
id: string | number;
|
|
165
|
-
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style,
|
|
171
|
+
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style, 'aria-label': ariaLabel, }: DataTableProps<T>): React.JSX.Element;
|
|
@@ -72,7 +72,15 @@ export interface DataTableProps<T extends {
|
|
|
72
72
|
} = any> {
|
|
73
73
|
/** Accessible name for the grid — required. */
|
|
74
74
|
'aria-label': string;
|
|
75
|
+
/**
|
|
76
|
+
* Keep each column's `render` and `tone` functions stable across renders: define the columns
|
|
77
|
+
* outside the component, or memoize them. The table re-renders its rows only when they change,
|
|
78
|
+
* so stable columns are what make a keystroke in an editing row cost that row's fields rather
|
|
79
|
+
* than every cell. `renderEdit` may change freely — swap it in with a spread
|
|
80
|
+
* (`{ ...nameColumn, renderEdit }`) so the column's other functions keep their identity.
|
|
81
|
+
*/
|
|
75
82
|
columns: DataTableColumn<T>[];
|
|
83
|
+
/** Keep the array and its objects stable while nothing changed, for the same reason as `columns`. */
|
|
76
84
|
rows: T[];
|
|
77
85
|
/** Row height: 32 / 40 / 48px. Condensed is the analyst default. */
|
|
78
86
|
density?: 'condensed' | 'regular' | 'comfortable';
|
|
@@ -158,9 +166,6 @@ export interface DataTableProps<T extends {
|
|
|
158
166
|
className?: string;
|
|
159
167
|
style?: React.CSSProperties;
|
|
160
168
|
}
|
|
161
|
-
/** Records grid. React Aria supplies roving focus, type-ahead, shift-click ranges and
|
|
162
|
-
* screen-reader row/column announcements — do not hand-roll a <table> in product code. */
|
|
163
169
|
export declare function DataTable<T extends {
|
|
164
170
|
id: string | number;
|
|
165
|
-
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style,
|
|
166
|
-
//# sourceMappingURL=DataTable.d.ts.map
|
|
171
|
+
}>({ columns, rows, density, selectable, selected, onSelectionChange, hideSelectAll, sort, onSortChange, onRowAction, stickyHeader, emptyLabel, isLoading, loadingRowCount, loadingLabel, footer, rowProps, renderExpanded, expandedIds, editingRowId, pendingRow, onCommitRow, onCancelRow, className, style, 'aria-label': ariaLabel, }: DataTableProps<T>): React.JSX.Element;
|
|
@@ -19,4 +19,3 @@ export interface DescriptionListProps extends React.HTMLAttributes<HTMLDListElem
|
|
|
19
19
|
/** Key/value readout: order totals, stock figures, master-data summaries. Replaces the hand-rolled
|
|
20
20
|
* <dl> that every ERP screen used to carry. */
|
|
21
21
|
export declare function DescriptionList({ items, layout, columns, className, style, ...rest }: DescriptionListProps): React.JSX.Element;
|
|
22
|
-
//# sourceMappingURL=DescriptionList.d.ts.map
|
|
@@ -23,4 +23,4 @@ export interface DonutChartProps extends ChartBaseProps {
|
|
|
23
23
|
* series, and its categories are what need telling apart. Pass exactly one series; anything after
|
|
24
24
|
* the first is ignored, with a dev warning.
|
|
25
25
|
*/
|
|
26
|
-
export declare function DonutChart({ categories, series, title, description, formatValue, height, emptyState, showDataTable, centerLabel, centerCaption, thickness, className, style,
|
|
26
|
+
export declare function DonutChart({ categories, series, title, description, formatValue, height, emptyState, showDataTable, centerLabel, centerCaption, thickness, className, style, 'aria-label': label, }: DonutChartProps): React.JSX.Element;
|
|
@@ -23,5 +23,4 @@ export interface DonutChartProps extends ChartBaseProps {
|
|
|
23
23
|
* series, and its categories are what need telling apart. Pass exactly one series; anything after
|
|
24
24
|
* the first is ignored, with a dev warning.
|
|
25
25
|
*/
|
|
26
|
-
export declare function DonutChart({ categories, series, title, description, formatValue, height, emptyState, showDataTable, centerLabel, centerCaption, thickness, className, style,
|
|
27
|
-
//# sourceMappingURL=DonutChart.d.ts.map
|
|
26
|
+
export declare function DonutChart({ categories, series, title, description, formatValue, height, emptyState, showDataTable, centerLabel, centerCaption, thickness, className, style, 'aria-label': label, }: DonutChartProps): React.JSX.Element;
|
|
@@ -23,4 +23,3 @@ export interface FilterBarProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
23
23
|
'aria-label'?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function FilterBar({ children, activeFilters, onRemoveFilter, onClear, onGo, resultLabel, actions, goLabel, clearAllLabel, className, ...rest }: FilterBarProps): React.JSX.Element;
|
|
26
|
-
//# sourceMappingURL=FilterBar.d.ts.map
|
|
@@ -21,4 +21,3 @@ export interface KpiTileProps {
|
|
|
21
21
|
style?: React.CSSProperties;
|
|
22
22
|
}
|
|
23
23
|
export declare function KpiTile({ label, value, unit, delta, deltaDirection, deltaTone, footnote, icon, status, onPress, className, style, }: KpiTileProps): React.JSX.Element;
|
|
24
|
-
//# sourceMappingURL=KpiTile.d.ts.map
|
|
@@ -26,4 +26,4 @@ export interface LineChartProps extends ChartBaseProps {
|
|
|
26
26
|
* to fit stretches the type and turns markers into ellipses. Gaps in a series break the line
|
|
27
27
|
* instead of interpolating across them — a missing month is not a straight line through it.
|
|
28
28
|
*/
|
|
29
|
-
export declare function LineChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, showArea, showMarkers, zoomToData, className, style,
|
|
29
|
+
export declare function LineChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, showArea, showMarkers, zoomToData, className, style, 'aria-label': label, }: LineChartProps): React.JSX.Element;
|
|
@@ -26,5 +26,4 @@ export interface LineChartProps extends ChartBaseProps {
|
|
|
26
26
|
* to fit stretches the type and turns markers into ellipses. Gaps in a series break the line
|
|
27
27
|
* instead of interpolating across them — a missing month is not a straight line through it.
|
|
28
28
|
*/
|
|
29
|
-
export declare function LineChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, showArea, showMarkers, zoomToData, className, style,
|
|
30
|
-
//# sourceMappingURL=LineChart.d.ts.map
|
|
29
|
+
export declare function LineChart({ categories, series: rawSeries, title, description, formatValue, height, emptyState, showDataTable, showArea, showMarkers, zoomToData, className, style, 'aria-label': label, }: LineChartProps): React.JSX.Element;
|
|
@@ -25,4 +25,3 @@ export interface LinkListProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
25
25
|
}
|
|
26
26
|
/** Compact list of records that navigate somewhere: recently viewed, related documents, shortcuts. */
|
|
27
27
|
export declare function LinkList({ items, onSelect, emphasis, className, ...rest }: LinkListProps): React.JSX.Element;
|
|
28
|
-
//# sourceMappingURL=LinkList.d.ts.map
|
|
@@ -19,4 +19,3 @@ export interface ObjectHeaderProps extends Omit<React.HTMLAttributes<HTMLElement
|
|
|
19
19
|
}
|
|
20
20
|
/** The identity block at the top of any object page: who this record is, its state, its key figures. */
|
|
21
21
|
export declare function ObjectHeader({ title, subtitle, id, breadcrumb, badge, facts, actions, className, ...rest }: ObjectHeaderProps): React.JSX.Element;
|
|
22
|
-
//# sourceMappingURL=ObjectHeader.d.ts.map
|
|
@@ -26,4 +26,3 @@ export interface RecordCardProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
26
26
|
* chooses one.
|
|
27
27
|
*/
|
|
28
28
|
export declare function RecordCard({ title, subtitle, icon, action, isDisabled, className, ...rest }: RecordCardProps): React.JSX.Element;
|
|
29
|
-
//# sourceMappingURL=RecordCard.d.ts.map
|
|
@@ -9,7 +9,7 @@ export interface TimelineEntry {
|
|
|
9
9
|
}
|
|
10
10
|
export interface TimelineProps extends React.HTMLAttributes<HTMLOListElement> {
|
|
11
11
|
entries: TimelineEntry[];
|
|
12
|
-
/**
|
|
12
|
+
/** Reverses `entries`, for data that arrives oldest first. Audit trails read newest first. */
|
|
13
13
|
reverse?: boolean;
|
|
14
14
|
}
|
|
15
15
|
/** Document history and audit trail: what happened, when, and who did it. */
|
|
@@ -9,9 +9,8 @@ export interface TimelineEntry {
|
|
|
9
9
|
}
|
|
10
10
|
export interface TimelineProps extends React.HTMLAttributes<HTMLOListElement> {
|
|
11
11
|
entries: TimelineEntry[];
|
|
12
|
-
/**
|
|
12
|
+
/** Reverses `entries`, for data that arrives oldest first. Audit trails read newest first. */
|
|
13
13
|
reverse?: boolean;
|
|
14
14
|
}
|
|
15
15
|
/** Document history and audit trail: what happened, when, and who did it. */
|
|
16
16
|
export declare function Timeline({ entries, reverse, className, ...rest }: TimelineProps): React.JSX.Element;
|
|
17
|
-
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -30,4 +30,3 @@ export interface ViewSwitcherProps {
|
|
|
30
30
|
* Sits in a toolbar row, or in `Ribbon`'s `leading` slot when the ribbon is collapsed.
|
|
31
31
|
*/
|
|
32
32
|
export declare function ViewSwitcher({ name, isDirty, icon, onPress, isDisabled, 'aria-label': ariaLabel, className, style, }: ViewSwitcherProps): React.JSX.Element;
|
|
33
|
-
//# sourceMappingURL=ViewSwitcher.d.ts.map
|
|
@@ -65,4 +65,3 @@ export declare function flatValues(series: ChartSeries[]): (number | null)[];
|
|
|
65
65
|
* end already yields `undefined`, which every call site treats as a gap.
|
|
66
66
|
*/
|
|
67
67
|
export declare function alignToCategories(series: ChartSeries[], categoryCount: number): ChartSeries[];
|
|
68
|
-
//# sourceMappingURL=chartGeometry.d.ts.map
|
|
@@ -12,6 +12,17 @@ export declare function DialogDescription({ children, className }: DialogSlotPro
|
|
|
12
12
|
export declare function DialogBody({ children, className }: DialogSlotProps): React.JSX.Element;
|
|
13
13
|
/** The action row. Cancel first, the commit or destructive action last. */
|
|
14
14
|
export declare function DialogActions({ children, className }: DialogSlotProps): React.JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* The title block and close button at the top of `Dialog` and `SidePanel`. Not exported from the
|
|
17
|
+
* package: `DialogTitle` / `DialogDescription` are the public way to fill it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function DialogHeader({ heading, description, closeLabel, onClose, }: {
|
|
20
|
+
heading?: React.ReactNode;
|
|
21
|
+
description?: React.ReactNode;
|
|
22
|
+
/** Omit to draw no close button. */
|
|
23
|
+
closeLabel?: string;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
}): React.JSX.Element;
|
|
15
26
|
export interface DialogProps {
|
|
16
27
|
isOpen?: boolean;
|
|
17
28
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -12,6 +12,17 @@ export declare function DialogDescription({ children, className }: DialogSlotPro
|
|
|
12
12
|
export declare function DialogBody({ children, className }: DialogSlotProps): React.JSX.Element;
|
|
13
13
|
/** The action row. Cancel first, the commit or destructive action last. */
|
|
14
14
|
export declare function DialogActions({ children, className }: DialogSlotProps): React.JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* The title block and close button at the top of `Dialog` and `SidePanel`. Not exported from the
|
|
17
|
+
* package: `DialogTitle` / `DialogDescription` are the public way to fill it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function DialogHeader({ heading, description, closeLabel, onClose, }: {
|
|
20
|
+
heading?: React.ReactNode;
|
|
21
|
+
description?: React.ReactNode;
|
|
22
|
+
/** Omit to draw no close button. */
|
|
23
|
+
closeLabel?: string;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
}): React.JSX.Element;
|
|
15
26
|
export interface DialogProps {
|
|
16
27
|
isOpen?: boolean;
|
|
17
28
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -32,4 +43,3 @@ export interface DialogProps {
|
|
|
32
43
|
/** Modal dialog. Focus is trapped, the page behind is inert, and Esc closes unless
|
|
33
44
|
* isDismissable is false — all handled by React Aria. */
|
|
34
45
|
export declare function Dialog({ isOpen, onOpenChange, title, subtitle, children, footer, onClose, size, isDismissable, showClose, className, style, }: DialogProps): React.JSX.Element;
|
|
35
|
-
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
export type MessageKind = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
/** The glyph for each kind, shared with `Toast` so a kind looks the same wherever it appears. */
|
|
4
|
+
export declare const MESSAGE_KIND_ICON: Record<MessageKind, string>;
|
|
3
5
|
export interface InlineMessageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
6
|
kind?: MessageKind;
|
|
5
7
|
/** Message heading. Rich content, not the DOM title/tooltip attribute. */
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
export type MessageKind = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
/** The glyph for each kind, shared with `Toast` so a kind looks the same wherever it appears. */
|
|
4
|
+
export declare const MESSAGE_KIND_ICON: Record<MessageKind, string>;
|
|
3
5
|
export interface InlineMessageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
6
|
kind?: MessageKind;
|
|
5
7
|
/** Message heading. Rich content, not the DOM title/tooltip attribute. */
|
|
@@ -11,4 +13,3 @@ export interface InlineMessageProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
11
13
|
}
|
|
12
14
|
/** In-page message tied to a region or form. Errors and warnings announce themselves. */
|
|
13
15
|
export declare function InlineMessage({ kind, title, action, onClose, children, className, ...rest }: InlineMessageProps): React.JSX.Element;
|
|
14
|
-
//# sourceMappingURL=InlineMessage.d.ts.map
|
|
@@ -14,4 +14,3 @@ export interface ProgressBarProps {
|
|
|
14
14
|
style?: React.CSSProperties;
|
|
15
15
|
}
|
|
16
16
|
export declare function ProgressBar({ value, minValue, maxValue, label, showValue, isIndeterminate, status, size, className, style, }: ProgressBarProps): React.JSX.Element;
|
|
17
|
-
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -41,4 +41,3 @@ export interface SkeletonTableRowProps extends Omit<React.HTMLAttributes<HTMLDiv
|
|
|
41
41
|
* collection from `rows`, and React Aria's table owns everything under it. Use it in place of
|
|
42
42
|
* the table, not inside one. */
|
|
43
43
|
export declare function SkeletonTableRow({ columns, density, className, style, ...rest }: SkeletonTableRowProps): React.JSX.Element;
|
|
44
|
-
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type MessageKind } from './InlineMessage.cjs';
|
|
3
3
|
export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
kind?: MessageKind;
|
|
5
5
|
onClose?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type MessageKind } from './InlineMessage.js';
|
|
3
3
|
export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
kind?: MessageKind;
|
|
5
5
|
onClose?: () => void;
|
|
@@ -26,4 +26,3 @@ export declare function ToastProvider({ children, timeout, }: {
|
|
|
26
26
|
/** `const toast = useToast(); toast.add({ kind: 'success', message: 'Order 4500012 released.' })` */
|
|
27
27
|
export declare function useToast(): ToastContextValue;
|
|
28
28
|
export {};
|
|
29
|
-
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -39,4 +39,3 @@ export interface TooltipProps {
|
|
|
39
39
|
* Never put an instruction here that is not available elsewhere: there is no hover on touch.
|
|
40
40
|
*/
|
|
41
41
|
export declare function Tooltip({ label, placement, delay, children }: TooltipProps): React.JSX.Element;
|
|
42
|
-
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The month header (previous / title / next) and day grid, shared by `DatePicker`'s `Calendar`
|
|
3
|
+
* and `DateRangePicker`'s `RangeCalendar`. Both read the same calendar context, so the markup is
|
|
4
|
+
* identical; only the wrapping calendar differs.
|
|
5
|
+
*/
|
|
6
|
+
export declare function CalendarMonth(): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The month header (previous / title / next) and day grid, shared by `DatePicker`'s `Calendar`
|
|
3
|
+
* and `DateRangePicker`'s `RangeCalendar`. Both read the same calendar context, so the markup is
|
|
4
|
+
* identical; only the wrapping calendar differs.
|
|
5
|
+
*/
|
|
6
|
+
export declare function CalendarMonth(): import("react").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { WithFieldHelp } from './FieldHelp.cjs';
|
|
2
3
|
export interface ChoiceCardOption {
|
|
3
4
|
id: string;
|
|
4
5
|
label: React.ReactNode;
|
|
@@ -12,7 +13,7 @@ export interface ChoiceCardOption {
|
|
|
12
13
|
* support. Still shown, so the user knows the choice exists — just not right now. */
|
|
13
14
|
isDisabled?: boolean;
|
|
14
15
|
}
|
|
15
|
-
export interface ChoiceCardGroupProps {
|
|
16
|
+
export interface ChoiceCardGroupProps extends WithFieldHelp {
|
|
16
17
|
/** Names the choice for assistive tech, e.g. "Count scope". Required when `label` is omitted. */
|
|
17
18
|
'aria-label'?: string;
|
|
18
19
|
/** Visible group label. Use when the choice needs a heading of its own on the page; fall back
|
|
@@ -22,16 +23,6 @@ export interface ChoiceCardGroupProps {
|
|
|
22
23
|
/** Guidance that applies to the group as a whole, below the cards — not a per-option detail,
|
|
23
24
|
* which belongs in that option's `description`. */
|
|
24
25
|
description?: React.ReactNode;
|
|
25
|
-
/**
|
|
26
|
-
* Contextual explanation, shown as a help icon beside the label and announced as part of the
|
|
27
|
-
* field's description. For the sentence a user needs *occasionally* — `description` is for the
|
|
28
|
-
* one they need every time, and it costs a line of vertical space in every row.
|
|
29
|
-
*
|
|
30
|
-
* Needs a visible `label`: the icon is drawn beside one, so on a field named only by
|
|
31
|
-
* `aria-label` the text still reaches a screen reader through the description but no icon
|
|
32
|
-
* appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
|
|
33
|
-
*/
|
|
34
|
-
help?: React.ReactNode;
|
|
35
26
|
/** Shown when `isRequired` and nothing has been chosen at validation time. */
|
|
36
27
|
errorMessage?: React.ReactNode;
|
|
37
28
|
options: ChoiceCardOption[];
|
|
@@ -57,4 +48,4 @@ export interface ChoiceCardGroupProps {
|
|
|
57
48
|
* posting mode. Use it when the choice deserves a sentence; use `Radio` when the label is enough
|
|
58
49
|
* and `SegmentedControl` when the options only change how data is displayed.
|
|
59
50
|
*/
|
|
60
|
-
export declare function ChoiceCardGroup({ label, description, help, errorMessage, options, value, defaultValue, onChange, columns, isDisabled, isRequired, className, style,
|
|
51
|
+
export declare function ChoiceCardGroup({ label, description, help, errorMessage, options, value, defaultValue, onChange, columns, isDisabled, isRequired, className, style, 'aria-label': ariaLabel, }: ChoiceCardGroupProps): React.JSX.Element;
|