@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.
Files changed (233) hide show
  1. package/dist/components/core/Avatar.d.ts +0 -1
  2. package/dist/components/core/Badge.d.cts +2 -5
  3. package/dist/components/core/Badge.d.ts +2 -6
  4. package/dist/components/core/Button.d.ts +0 -1
  5. package/dist/components/core/Card.d.ts +0 -1
  6. package/dist/components/core/ComingSoonMark.d.ts +0 -1
  7. package/dist/components/core/Heading.d.cts +1 -1
  8. package/dist/components/core/Heading.d.ts +1 -2
  9. package/dist/components/core/Icon.d.cts +1 -2
  10. package/dist/components/core/Icon.d.ts +1 -3
  11. package/dist/components/core/IconButton.d.ts +0 -1
  12. package/dist/components/core/Kbd.d.ts +0 -1
  13. package/dist/components/core/Link.d.ts +0 -1
  14. package/dist/components/core/SegmentedControl.d.cts +1 -1
  15. package/dist/components/core/SegmentedControl.d.ts +1 -2
  16. package/dist/components/core/Separator.d.ts +0 -1
  17. package/dist/components/core/Tag.d.cts +1 -1
  18. package/dist/components/core/Tag.d.ts +1 -2
  19. package/dist/components/core/Text.d.cts +9 -1
  20. package/dist/components/core/Text.d.ts +9 -2
  21. package/dist/components/core/icon-data.generated.d.ts +0 -1
  22. package/dist/components/core/icon-map.d.ts +0 -1
  23. package/dist/components/data/BarChart.d.cts +1 -1
  24. package/dist/components/data/BarChart.d.ts +1 -2
  25. package/dist/components/data/BarList.d.ts +0 -1
  26. package/dist/components/data/ChartFrame.d.ts +0 -1
  27. package/dist/components/data/DataTable.d.cts +9 -3
  28. package/dist/components/data/DataTable.d.ts +9 -4
  29. package/dist/components/data/DescriptionList.d.ts +0 -1
  30. package/dist/components/data/DonutChart.d.cts +1 -1
  31. package/dist/components/data/DonutChart.d.ts +1 -2
  32. package/dist/components/data/FilterBar.d.ts +0 -1
  33. package/dist/components/data/KpiTile.d.ts +0 -1
  34. package/dist/components/data/LineChart.d.cts +1 -1
  35. package/dist/components/data/LineChart.d.ts +1 -2
  36. package/dist/components/data/LinkList.d.ts +0 -1
  37. package/dist/components/data/ObjectHeader.d.ts +0 -1
  38. package/dist/components/data/RecordCard.d.ts +0 -1
  39. package/dist/components/data/Timeline.d.cts +1 -1
  40. package/dist/components/data/Timeline.d.ts +1 -2
  41. package/dist/components/data/ViewSwitcher.d.ts +0 -1
  42. package/dist/components/data/chartGeometry.d.ts +0 -1
  43. package/dist/components/feedback/Dialog.d.cts +11 -0
  44. package/dist/components/feedback/Dialog.d.ts +11 -1
  45. package/dist/components/feedback/InlineMessage.d.cts +2 -0
  46. package/dist/components/feedback/InlineMessage.d.ts +2 -1
  47. package/dist/components/feedback/ProgressBar.d.ts +0 -1
  48. package/dist/components/feedback/Skeleton.d.ts +0 -1
  49. package/dist/components/feedback/Toast.d.cts +1 -1
  50. package/dist/components/feedback/Toast.d.ts +1 -2
  51. package/dist/components/feedback/Tooltip.d.ts +0 -1
  52. package/dist/components/forms/CalendarMonth.d.cts +6 -0
  53. package/dist/components/forms/CalendarMonth.d.ts +6 -0
  54. package/dist/components/forms/Checkbox.d.ts +0 -1
  55. package/dist/components/forms/ChoiceCardGroup.d.cts +3 -12
  56. package/dist/components/forms/ChoiceCardGroup.d.ts +3 -13
  57. package/dist/components/forms/ComboBox.d.cts +2 -11
  58. package/dist/components/forms/ComboBox.d.ts +2 -12
  59. package/dist/components/forms/ComboBoxListBox.d.cts +35 -0
  60. package/dist/components/forms/ComboBoxListBox.d.ts +35 -0
  61. package/dist/components/forms/DatePicker.d.cts +3 -13
  62. package/dist/components/forms/DatePicker.d.ts +3 -14
  63. package/dist/components/forms/DateRangePicker.d.cts +5 -15
  64. package/dist/components/forms/DateRangePicker.d.ts +5 -16
  65. package/dist/components/forms/FieldClearButton.d.cts +12 -0
  66. package/dist/components/forms/FieldClearButton.d.ts +12 -0
  67. package/dist/components/forms/FieldDescription.d.ts +0 -1
  68. package/dist/components/forms/FieldHelp.d.cts +23 -0
  69. package/dist/components/forms/FieldHelp.d.ts +23 -1
  70. package/dist/components/forms/FieldLabel.d.cts +2 -5
  71. package/dist/components/forms/FieldLabel.d.ts +2 -6
  72. package/dist/components/forms/FileUpload.d.cts +40 -1
  73. package/dist/components/forms/FileUpload.d.ts +40 -2
  74. package/dist/components/forms/FormField.d.ts +0 -1
  75. package/dist/components/forms/Input.d.cts +2 -11
  76. package/dist/components/forms/Input.d.ts +2 -12
  77. package/dist/components/forms/MultiComboBox.d.cts +2 -11
  78. package/dist/components/forms/MultiComboBox.d.ts +2 -12
  79. package/dist/components/forms/NumberField.d.cts +3 -13
  80. package/dist/components/forms/NumberField.d.ts +3 -14
  81. package/dist/components/forms/QuantityStepper.d.ts +0 -1
  82. package/dist/components/forms/Radio.d.ts +0 -1
  83. package/dist/components/forms/Select.d.cts +2 -11
  84. package/dist/components/forms/Select.d.ts +2 -12
  85. package/dist/components/forms/Switch.d.ts +0 -1
  86. package/dist/components/forms/TextArea.d.cts +3 -14
  87. package/dist/components/forms/TextArea.d.ts +3 -15
  88. package/dist/components/forms/ValueHelpField.d.cts +7 -3
  89. package/dist/components/forms/ValueHelpField.d.ts +7 -4
  90. package/dist/components/forms/dateValues.d.cts +2 -5
  91. package/dist/components/forms/dateValues.d.ts +2 -6
  92. package/dist/components/layout/FooterBar.d.ts +0 -1
  93. package/dist/components/layout/PageBand.d.ts +0 -1
  94. package/dist/components/layout/PageHeader.d.ts +0 -1
  95. package/dist/components/layout/SectionHeader.d.ts +0 -1
  96. package/dist/components/layout/SelectionBar.d.cts +1 -2
  97. package/dist/components/layout/SelectionBar.d.ts +1 -3
  98. package/dist/components/layout/SplitPane.d.ts +0 -1
  99. package/dist/components/navigation/Breadcrumb.d.ts +0 -1
  100. package/dist/components/navigation/Menu.d.ts +0 -1
  101. package/dist/components/navigation/Pagination.d.ts +0 -1
  102. package/dist/components/navigation/Ribbon.d.cts +1 -1
  103. package/dist/components/navigation/Ribbon.d.ts +1 -2
  104. package/dist/components/navigation/ShellBar.d.cts +2 -5
  105. package/dist/components/navigation/ShellBar.d.ts +2 -6
  106. package/dist/components/navigation/ShellRail.d.ts +0 -1
  107. package/dist/components/navigation/SideNav.d.cts +3 -6
  108. package/dist/components/navigation/SideNav.d.ts +3 -7
  109. package/dist/components/navigation/Tabs.d.cts +1 -1
  110. package/dist/components/navigation/Tabs.d.ts +1 -2
  111. package/dist/components/patterns/AppLauncher.d.cts +1 -2
  112. package/dist/components/patterns/AppLauncher.d.ts +1 -3
  113. package/dist/components/patterns/CommandPalette.d.ts +0 -1
  114. package/dist/components/patterns/ConfirmDialog.d.ts +0 -1
  115. package/dist/components/patterns/EmptyState.d.ts +0 -1
  116. package/dist/components/patterns/FileDropZone.d.cts +1 -1
  117. package/dist/components/patterns/FileDropZone.d.ts +1 -2
  118. package/dist/components/patterns/NumPad.d.cts +2 -8
  119. package/dist/components/patterns/NumPad.d.ts +2 -9
  120. package/dist/components/patterns/SidePanel.d.ts +0 -1
  121. package/dist/components/patterns/ValueHelpDialog.d.cts +5 -5
  122. package/dist/components/patterns/ValueHelpDialog.d.ts +5 -6
  123. package/dist/components/utils/cx.d.ts +0 -1
  124. package/dist/components/utils/decimalSeparator.d.cts +1 -4
  125. package/dist/components/utils/decimalSeparator.d.ts +1 -5
  126. package/dist/components/utils/devWarn.d.cts +5 -3
  127. package/dist/components/utils/devWarn.d.ts +5 -4
  128. package/dist/components/utils/useDocumentKeyDown.d.cts +5 -0
  129. package/dist/components/utils/useDocumentKeyDown.d.ts +5 -0
  130. package/dist/components/utils/useLoadMoreOnScroll.d.cts +11 -0
  131. package/dist/components/utils/useLoadMoreOnScroll.d.ts +11 -0
  132. package/dist/components.css +145 -87
  133. package/dist/i18n/PireIntlProvider.d.ts +0 -1
  134. package/dist/i18n/messages.d.cts +18 -0
  135. package/dist/i18n/messages.d.ts +18 -1
  136. package/dist/index.cjs +1615 -1514
  137. package/dist/index.cjs.map +1 -1
  138. package/dist/index.d.ts +0 -1
  139. package/dist/index.js +1527 -1449
  140. package/dist/index.js.map +1 -1
  141. package/dist/tokens/base.css +2 -5
  142. package/dist/tokens/colors.css +14 -8
  143. package/dist/tokens/elevation.css +15 -0
  144. package/dist/tokens/themes.css +7 -12
  145. package/package.json +1 -1
  146. package/dist/components/core/Avatar.d.ts.map +0 -1
  147. package/dist/components/core/Badge.d.ts.map +0 -1
  148. package/dist/components/core/Button.d.ts.map +0 -1
  149. package/dist/components/core/Card.d.ts.map +0 -1
  150. package/dist/components/core/ComingSoonMark.d.ts.map +0 -1
  151. package/dist/components/core/Heading.d.ts.map +0 -1
  152. package/dist/components/core/Icon.d.ts.map +0 -1
  153. package/dist/components/core/IconButton.d.ts.map +0 -1
  154. package/dist/components/core/Kbd.d.ts.map +0 -1
  155. package/dist/components/core/Link.d.ts.map +0 -1
  156. package/dist/components/core/SegmentedControl.d.ts.map +0 -1
  157. package/dist/components/core/Separator.d.ts.map +0 -1
  158. package/dist/components/core/Tag.d.ts.map +0 -1
  159. package/dist/components/core/Text.d.ts.map +0 -1
  160. package/dist/components/core/icon-data.generated.d.ts.map +0 -1
  161. package/dist/components/core/icon-map.d.ts.map +0 -1
  162. package/dist/components/data/BarChart.d.ts.map +0 -1
  163. package/dist/components/data/BarList.d.ts.map +0 -1
  164. package/dist/components/data/ChartFrame.d.ts.map +0 -1
  165. package/dist/components/data/DataTable.d.ts.map +0 -1
  166. package/dist/components/data/DescriptionList.d.ts.map +0 -1
  167. package/dist/components/data/DonutChart.d.ts.map +0 -1
  168. package/dist/components/data/FilterBar.d.ts.map +0 -1
  169. package/dist/components/data/KpiTile.d.ts.map +0 -1
  170. package/dist/components/data/LineChart.d.ts.map +0 -1
  171. package/dist/components/data/LinkList.d.ts.map +0 -1
  172. package/dist/components/data/ObjectHeader.d.ts.map +0 -1
  173. package/dist/components/data/RecordCard.d.ts.map +0 -1
  174. package/dist/components/data/Timeline.d.ts.map +0 -1
  175. package/dist/components/data/ViewSwitcher.d.ts.map +0 -1
  176. package/dist/components/data/chartGeometry.d.ts.map +0 -1
  177. package/dist/components/feedback/Dialog.d.ts.map +0 -1
  178. package/dist/components/feedback/InlineMessage.d.ts.map +0 -1
  179. package/dist/components/feedback/ProgressBar.d.ts.map +0 -1
  180. package/dist/components/feedback/Skeleton.d.ts.map +0 -1
  181. package/dist/components/feedback/Toast.d.ts.map +0 -1
  182. package/dist/components/feedback/Tooltip.d.ts.map +0 -1
  183. package/dist/components/forms/Checkbox.d.ts.map +0 -1
  184. package/dist/components/forms/ChoiceCardGroup.d.ts.map +0 -1
  185. package/dist/components/forms/ComboBox.d.ts.map +0 -1
  186. package/dist/components/forms/DatePicker.d.ts.map +0 -1
  187. package/dist/components/forms/DateRangePicker.d.ts.map +0 -1
  188. package/dist/components/forms/FieldDescription.d.ts.map +0 -1
  189. package/dist/components/forms/FieldHelp.d.ts.map +0 -1
  190. package/dist/components/forms/FieldLabel.d.ts.map +0 -1
  191. package/dist/components/forms/FileUpload.d.ts.map +0 -1
  192. package/dist/components/forms/FormField.d.ts.map +0 -1
  193. package/dist/components/forms/Input.d.ts.map +0 -1
  194. package/dist/components/forms/MultiComboBox.d.ts.map +0 -1
  195. package/dist/components/forms/NumberField.d.ts.map +0 -1
  196. package/dist/components/forms/QuantityStepper.d.ts.map +0 -1
  197. package/dist/components/forms/Radio.d.ts.map +0 -1
  198. package/dist/components/forms/Select.d.ts.map +0 -1
  199. package/dist/components/forms/Switch.d.ts.map +0 -1
  200. package/dist/components/forms/TextArea.d.ts.map +0 -1
  201. package/dist/components/forms/ValueHelpField.d.ts.map +0 -1
  202. package/dist/components/forms/dateValues.d.ts.map +0 -1
  203. package/dist/components/layout/FooterBar.d.ts.map +0 -1
  204. package/dist/components/layout/PageBand.d.ts.map +0 -1
  205. package/dist/components/layout/PageHeader.d.ts.map +0 -1
  206. package/dist/components/layout/SectionHeader.d.ts.map +0 -1
  207. package/dist/components/layout/SelectionBar.d.ts.map +0 -1
  208. package/dist/components/layout/SplitPane.d.ts.map +0 -1
  209. package/dist/components/navigation/Breadcrumb.d.ts.map +0 -1
  210. package/dist/components/navigation/Menu.d.ts.map +0 -1
  211. package/dist/components/navigation/Pagination.d.ts.map +0 -1
  212. package/dist/components/navigation/Ribbon.d.ts.map +0 -1
  213. package/dist/components/navigation/ShellBar.d.ts.map +0 -1
  214. package/dist/components/navigation/ShellRail.d.ts.map +0 -1
  215. package/dist/components/navigation/SideNav.d.ts.map +0 -1
  216. package/dist/components/navigation/Tabs.d.ts.map +0 -1
  217. package/dist/components/patterns/AppLauncher.d.ts.map +0 -1
  218. package/dist/components/patterns/CommandPalette.d.ts.map +0 -1
  219. package/dist/components/patterns/ConfirmDialog.d.ts.map +0 -1
  220. package/dist/components/patterns/EmptyState.d.ts.map +0 -1
  221. package/dist/components/patterns/FileDropZone.d.ts.map +0 -1
  222. package/dist/components/patterns/NumPad.d.ts.map +0 -1
  223. package/dist/components/patterns/SidePanel.d.ts.map +0 -1
  224. package/dist/components/patterns/ValueHelpDialog.d.ts.map +0 -1
  225. package/dist/components/utils/cx.d.ts.map +0 -1
  226. package/dist/components/utils/decimalSeparator.d.ts.map +0 -1
  227. package/dist/components/utils/devWarn.d.ts.map +0 -1
  228. package/dist/components/utils/focusField.d.cts +0 -11
  229. package/dist/components/utils/focusField.d.ts +0 -12
  230. package/dist/components/utils/focusField.d.ts.map +0 -1
  231. package/dist/i18n/PireIntlProvider.d.ts.map +0 -1
  232. package/dist/i18n/messages.d.ts.map +0 -1
  233. package/dist/index.d.ts.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- export interface InputProps {
2
+ import type { WithFieldHelp } from './FieldHelp.cjs';
3
+ export interface InputProps extends WithFieldHelp {
3
4
  label?: React.ReactNode;
4
5
  value?: string;
5
6
  defaultValue?: string;
@@ -36,16 +37,6 @@ export interface InputProps {
36
37
  clearLabel?: string;
37
38
  /** Help text below the field. Replaced by errorMessage when invalid. */
38
39
  description?: React.ReactNode;
39
- /**
40
- * Contextual explanation, shown as a help icon beside the label and announced as part of the
41
- * field's description. For the sentence a user needs *occasionally* — `description` is for the
42
- * one they need every time, and it costs a line of vertical space in every row.
43
- *
44
- * Needs a visible `label`: the icon is drawn beside one, so on a field named only by
45
- * `aria-label` the text still reaches a screen reader through the description but no icon
46
- * appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
47
- */
48
- help?: React.ReactNode;
49
40
  errorMessage?: React.ReactNode;
50
41
  isInvalid?: boolean;
51
42
  isDisabled?: boolean;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- export interface InputProps {
2
+ import type { WithFieldHelp } from './FieldHelp.js';
3
+ export interface InputProps extends WithFieldHelp {
3
4
  label?: React.ReactNode;
4
5
  value?: string;
5
6
  defaultValue?: string;
@@ -36,16 +37,6 @@ export interface InputProps {
36
37
  clearLabel?: string;
37
38
  /** Help text below the field. Replaced by errorMessage when invalid. */
38
39
  description?: React.ReactNode;
39
- /**
40
- * Contextual explanation, shown as a help icon beside the label and announced as part of the
41
- * field's description. For the sentence a user needs *occasionally* — `description` is for the
42
- * one they need every time, and it costs a line of vertical space in every row.
43
- *
44
- * Needs a visible `label`: the icon is drawn beside one, so on a field named only by
45
- * `aria-label` the text still reaches a screen reader through the description but no icon
46
- * appears. Pire warns in development rather than drawing an icon with nothing to anchor it to.
47
- */
48
- help?: React.ReactNode;
49
40
  errorMessage?: React.ReactNode;
50
41
  isInvalid?: boolean;
51
42
  isDisabled?: boolean;
@@ -64,4 +55,3 @@ export interface InputProps {
64
55
  /** Single-line text entry. Labels, descriptions and errors are wired to the input by React Aria,
65
56
  * so no manual aria-describedby is ever needed. */
66
57
  export declare function Input({ label, icon, suffix, description, help, errorMessage, size, numeric, isClearable, clearLabel, fullWidth, className, style, inputRef, onChange, ...rest }: InputProps): React.JSX.Element;
67
- //# sourceMappingURL=Input.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { ComboBoxOption } from './ComboBox.cjs';
3
- export interface MultiComboBoxProps {
3
+ import type { WithFieldHelp } from './FieldHelp.cjs';
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;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { ComboBoxOption } from './ComboBox.js';
3
- export interface MultiComboBoxProps {
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
- export interface NumberFieldProps<TEmpty extends '' | null = never> {
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 and what this component has
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
- export interface NumberFieldProps<TEmpty extends '' | null = never> {
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 and what this component has
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
@@ -16,4 +16,3 @@ export interface RadioProps extends Omit<AriaRadioProps, 'className' | 'children
16
16
  className?: string;
17
17
  }
18
18
  export declare function Radio({ label, hint, children, className, ...rest }: RadioProps): React.JSX.Element;
19
- //# sourceMappingURL=Radio.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
- export interface TextAreaProps {
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;
@@ -46,7 +37,5 @@ export interface TextAreaProps {
46
37
  * on every keystroke, and in a dense form it makes every field below the one being typed in jump
47
38
  * — the wrong trade in a screen the user is tabbing through. Turn it on where the content length
48
39
  * is genuinely unknown (a long free-text comment) and leave it off everywhere else. When on, the
49
- * height is only written when it actually changed, so a keystroke that does not wrap costs no
50
- * layout; and the resize grip is removed, since a manual height would be overwritten on the next
51
- * keystroke anyway. */
40
+ * resize grip is removed, since a manual height would be overwritten on the next keystroke. */
52
41
  export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- export interface TextAreaProps {
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;
@@ -46,8 +37,5 @@ export interface TextAreaProps {
46
37
  * on every keystroke, and in a dense form it makes every field below the one being typed in jump
47
38
  * — the wrong trade in a screen the user is tabbing through. Turn it on where the content length
48
39
  * is genuinely unknown (a long free-text comment) and leave it off everywhere else. When on, the
49
- * height is only written when it actually changed, so a keystroke that does not wrap costs no
50
- * layout; and the resize grip is removed, since a manual height would be overwritten on the next
51
- * keystroke anyway. */
40
+ * resize grip is removed, since a manual height would be overwritten on the next keystroke. */
52
41
  export declare function TextArea({ label, description, help, errorMessage, size, rows, autoGrow, maxRows, fullWidth, className, style, textAreaRef, onChange, ...rest }: TextAreaProps): React.JSX.Element;
53
- //# 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
- } = any> {
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
- /** Provide to render a clear affordance once a record is picked. */
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
- } = any> {
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
- /** Provide to render a clear affordance once a record is picked. */
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
- * Worth knowing which way this degrades: an unreadable *value* is visible, because the field shows
17
- * empty. An unreadable *bound* is not — the constraint simply stops applying, and the user can
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
- * Worth knowing which way this degrades: an unreadable *value* is visible, because the field shows
17
- * empty. An unreadable *bound* is not — the constraint simply stops applying, and the user can
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 still accepted and pluralised the old English way, by appending "s". That is
16
- * kept so existing English screens do not change; do not use it for anything else. Defaults to
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 still accepted and pluralised the old English way, by appending "s". That is
16
- * kept so existing English screens do not change; do not use it for anything else. Defaults to
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
@@ -22,4 +22,3 @@ export interface BreadcrumbProps {
22
22
  style?: React.CSSProperties;
23
23
  }
24
24
  export declare function Breadcrumb({ items, onNavigate, isCollapsible, className, style }: BreadcrumbProps): React.JSX.Element;
25
- //# sourceMappingURL=Breadcrumb.d.ts.map
@@ -42,4 +42,3 @@ export interface MenuSeparatorProps {
42
42
  }
43
43
  /** Rule between groups of items, on the menu's rhythm rather than the page's. */
44
44
  export declare function MenuSeparator({ className }: MenuSeparatorProps): React.JSX.Element;
45
- //# sourceMappingURL=Menu.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, ...rest }: RibbonProps): React.JSX.Element;
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, ...rest }: RibbonProps): React.JSX.Element;
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
@@ -34,12 +34,9 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
34
34
  launcher?: React.ReactNode;
35
35
  onMenu?: () => void;
36
36
  onSearch?: () => void;
37
- /** Accessible name for the menu button. Defaults to English, and the bar has no access to the app's
38
- * catalogue — a Spanish product must pass its own or ship an English screen-reader label. */
37
+ /** Accessible name for the menu button. Defaults to the dictionary's `shellBarMenu`. */
39
38
  menuLabel?: string;
40
- /** Accessible name for the search button, for the same reason as {@link ShellBarProps.menuLabel}.
41
- * Until this existed the only way to localise it was to drop `onSearch` and re-render the icon by
42
- * hand, which is how a shell ends up with two search icons. */
39
+ /** Accessible name for the search button. Defaults to the dictionary's `shellBarSearch`. */
43
40
  searchLabel?: string;
44
41
  /** IconButtons with variant="inverse". */
45
42
  actions?: React.ReactNode;
@@ -34,12 +34,9 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
34
34
  launcher?: React.ReactNode;
35
35
  onMenu?: () => void;
36
36
  onSearch?: () => void;
37
- /** Accessible name for the menu button. Defaults to English, and the bar has no access to the app's
38
- * catalogue — a Spanish product must pass its own or ship an English screen-reader label. */
37
+ /** Accessible name for the menu button. Defaults to the dictionary's `shellBarMenu`. */
39
38
  menuLabel?: string;
40
- /** Accessible name for the search button, for the same reason as {@link ShellBarProps.menuLabel}.
41
- * Until this existed the only way to localise it was to drop `onSearch` and re-render the icon by
42
- * hand, which is how a shell ends up with two search icons. */
39
+ /** Accessible name for the search button. Defaults to the dictionary's `shellBarSearch`. */
43
40
  searchLabel?: string;
44
41
  /** IconButtons with variant="inverse". */
45
42
  actions?: React.ReactNode;
@@ -60,4 +57,3 @@ export interface ShellBarProps extends Omit<React.HTMLAttributes<HTMLElement>, '
60
57
  }
61
58
  /** Fixed 48px application chrome. One per page, always the first landmark. */
62
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;
63
- //# 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. Omit it and the entry behaves exactly as it always has. */
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
- * Pass `false` for the previous behaviour, where a rail group toggles expansion invisibly.
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 (`railFlyout`, on by default) rather than inline. With
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;