@motech-development/breeze-ui 3.8.2 → 4.0.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 (253) hide show
  1. package/lib/{Cabin-LICENSE.txt → Public-Sans-LICENSE.txt} +1 -1
  2. package/lib/assets/public-sans-latin-wght-normal-DdeTHZLK.woff2 +0 -0
  3. package/lib/index.d.ts +4 -99
  4. package/lib/index.d.ts.map +1 -1
  5. package/lib/index.js +103 -6083
  6. package/lib/index.js.map +1 -1
  7. package/lib/primitives/Button/Button.d.ts +51 -25
  8. package/lib/primitives/Button/Button.d.ts.map +1 -1
  9. package/lib/provider/BreezeContext.d.ts +5 -14
  10. package/lib/provider/BreezeContext.d.ts.map +1 -1
  11. package/lib/provider/BreezeProvider.d.ts +8 -21
  12. package/lib/provider/BreezeProvider.d.ts.map +1 -1
  13. package/lib/provider/en-GB.d.ts +5 -0
  14. package/lib/provider/en-GB.d.ts.map +1 -0
  15. package/lib/reset.css +1 -2
  16. package/lib/styles.css +1 -1
  17. package/package.json +4 -13
  18. package/lib/assets/cabin-latin-wght-normal-DZW_uTKI.woff2 +0 -0
  19. package/lib/formatting/FormattedDateTime/FormattedDateTime.d.ts +0 -17
  20. package/lib/formatting/FormattedDateTime/FormattedDateTime.d.ts.map +0 -1
  21. package/lib/formatting/FormattedList/FormattedList.d.ts +0 -17
  22. package/lib/formatting/FormattedList/FormattedList.d.ts.map +0 -1
  23. package/lib/formatting/FormattedNumber/FormattedNumber.d.ts +0 -17
  24. package/lib/formatting/FormattedNumber/FormattedNumber.d.ts.map +0 -1
  25. package/lib/formatting/RelativeTime/RelativeTime.d.ts +0 -21
  26. package/lib/formatting/RelativeTime/RelativeTime.d.ts.map +0 -1
  27. package/lib/icons/index.d.ts +0 -83
  28. package/lib/icons/index.d.ts.map +0 -1
  29. package/lib/icons.js +0 -29
  30. package/lib/icons.js.map +0 -1
  31. package/lib/internal/collections/VirtualizedCollection.d.ts +0 -16
  32. package/lib/internal/collections/VirtualizedCollection.d.ts.map +0 -1
  33. package/lib/internal/collections/collectionKey.d.ts +0 -6
  34. package/lib/internal/collections/collectionKey.d.ts.map +0 -1
  35. package/lib/internal/collections/useCollectionEmptyContent.d.ts +0 -3
  36. package/lib/internal/collections/useCollectionEmptyContent.d.ts.map +0 -1
  37. package/lib/internal/collections/useLoadMoreHandler.d.ts +0 -7
  38. package/lib/internal/collections/useLoadMoreHandler.d.ts.map +0 -1
  39. package/lib/internal/date/conversion.d.ts +0 -16
  40. package/lib/internal/date/conversion.d.ts.map +0 -1
  41. package/lib/internal/files/validation.d.ts +0 -17
  42. package/lib/internal/files/validation.d.ts.map +0 -1
  43. package/lib/internal/hooks/useForwardedRef.d.ts +0 -3
  44. package/lib/internal/hooks/useForwardedRef.d.ts.map +0 -1
  45. package/lib/internal/react-aria/DisclosureParts.d.ts +0 -27
  46. package/lib/internal/react-aria/DisclosureParts.d.ts.map +0 -1
  47. package/lib/internal/react-aria/OverlayParts.d.ts +0 -55
  48. package/lib/internal/react-aria/OverlayParts.d.ts.map +0 -1
  49. package/lib/internal/react-aria/renderNativeButton.d.ts +0 -6
  50. package/lib/internal/react-aria/renderNativeButton.d.ts.map +0 -1
  51. package/lib/internal/styling/actions.d.ts +0 -72
  52. package/lib/internal/styling/actions.d.ts.map +0 -1
  53. package/lib/internal/styling/breakpoints.d.ts +0 -5
  54. package/lib/internal/styling/breakpoints.d.ts.map +0 -1
  55. package/lib/internal/styling/formControls.d.ts +0 -23
  56. package/lib/internal/styling/formControls.d.ts.map +0 -1
  57. package/lib/internal/styling/layout.d.ts +0 -108
  58. package/lib/internal/styling/layout.d.ts.map +0 -1
  59. package/lib/internal/styling/responsive.d.ts +0 -22
  60. package/lib/internal/styling/responsive.d.ts.map +0 -1
  61. package/lib/internal/styling/visual.d.ts +0 -7
  62. package/lib/internal/styling/visual.d.ts.map +0 -1
  63. package/lib/internal/types/collection.d.ts +0 -60
  64. package/lib/internal/types/collection.d.ts.map +0 -1
  65. package/lib/internal/types/date.d.ts +0 -8
  66. package/lib/internal/types/date.d.ts.map +0 -1
  67. package/lib/internal/types/file.d.ts +0 -21
  68. package/lib/internal/types/file.d.ts.map +0 -1
  69. package/lib/internal/types/native.d.ts +0 -8
  70. package/lib/internal/types/native.d.ts.map +0 -1
  71. package/lib/patterns/ApplicationShell/ApplicationShell.d.ts +0 -50
  72. package/lib/patterns/ApplicationShell/ApplicationShell.d.ts.map +0 -1
  73. package/lib/patterns/ButtonGroup/ButtonGroup.d.ts +0 -20
  74. package/lib/patterns/ButtonGroup/ButtonGroup.d.ts.map +0 -1
  75. package/lib/patterns/ConfirmationDialog/ConfirmationDialog.d.ts +0 -76
  76. package/lib/patterns/ConfirmationDialog/ConfirmationDialog.d.ts.map +0 -1
  77. package/lib/patterns/ContextSwitcher/ContextSwitcher.d.ts +0 -42
  78. package/lib/patterns/ContextSwitcher/ContextSwitcher.d.ts.map +0 -1
  79. package/lib/patterns/FileAttachment/FileAttachment.d.ts +0 -17
  80. package/lib/patterns/FileAttachment/FileAttachment.d.ts.map +0 -1
  81. package/lib/patterns/FileUpload/FileUpload.d.ts +0 -35
  82. package/lib/patterns/FileUpload/FileUpload.d.ts.map +0 -1
  83. package/lib/patterns/FormActions/FormActions.d.ts +0 -25
  84. package/lib/patterns/FormActions/FormActions.d.ts.map +0 -1
  85. package/lib/patterns/FormSection/FormSection.d.ts +0 -31
  86. package/lib/patterns/FormSection/FormSection.d.ts.map +0 -1
  87. package/lib/patterns/MetricCard/MetricCard.d.ts +0 -28
  88. package/lib/patterns/MetricCard/MetricCard.d.ts.map +0 -1
  89. package/lib/patterns/NavigationSection/NavigationSection.d.ts +0 -17
  90. package/lib/patterns/NavigationSection/NavigationSection.d.ts.map +0 -1
  91. package/lib/patterns/PageHeader/PageHeader.d.ts +0 -21
  92. package/lib/patterns/PageHeader/PageHeader.d.ts.map +0 -1
  93. package/lib/patterns/Pagination/Pagination.d.ts +0 -23
  94. package/lib/patterns/Pagination/Pagination.d.ts.map +0 -1
  95. package/lib/patterns/PasswordField/PasswordField.d.ts +0 -58
  96. package/lib/patterns/PasswordField/PasswordField.d.ts.map +0 -1
  97. package/lib/patterns/SectionHeader/SectionHeader.d.ts +0 -21
  98. package/lib/patterns/SectionHeader/SectionHeader.d.ts.map +0 -1
  99. package/lib/patterns/SegmentedControl/SegmentedControl.d.ts +0 -56
  100. package/lib/patterns/SegmentedControl/SegmentedControl.d.ts.map +0 -1
  101. package/lib/patterns/StatePanel/StatePanel.d.ts +0 -25
  102. package/lib/patterns/StatePanel/StatePanel.d.ts.map +0 -1
  103. package/lib/patterns/UserMenu/UserMenu.d.ts +0 -63
  104. package/lib/patterns/UserMenu/UserMenu.d.ts.map +0 -1
  105. package/lib/primitives/Accordion/Accordion.d.ts +0 -76
  106. package/lib/primitives/Accordion/Accordion.d.ts.map +0 -1
  107. package/lib/primitives/Alert/Alert.d.ts +0 -23
  108. package/lib/primitives/Alert/Alert.d.ts.map +0 -1
  109. package/lib/primitives/AlertDialog/AlertDialog.d.ts +0 -77
  110. package/lib/primitives/AlertDialog/AlertDialog.d.ts.map +0 -1
  111. package/lib/primitives/Avatar/Avatar.d.ts +0 -308
  112. package/lib/primitives/Avatar/Avatar.d.ts.map +0 -1
  113. package/lib/primitives/Badge/Badge.d.ts +0 -299
  114. package/lib/primitives/Badge/Badge.d.ts.map +0 -1
  115. package/lib/primitives/Breadcrumbs/Breadcrumbs.d.ts +0 -40
  116. package/lib/primitives/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  117. package/lib/primitives/Calendar/Calendar.d.ts +0 -61
  118. package/lib/primitives/Calendar/Calendar.d.ts.map +0 -1
  119. package/lib/primitives/Card/Card.d.ts +0 -63
  120. package/lib/primitives/Card/Card.d.ts.map +0 -1
  121. package/lib/primitives/Center/Center.d.ts +0 -295
  122. package/lib/primitives/Center/Center.d.ts.map +0 -1
  123. package/lib/primitives/Checkbox/Checkbox.d.ts +0 -106
  124. package/lib/primitives/Checkbox/Checkbox.d.ts.map +0 -1
  125. package/lib/primitives/CheckboxGroup/CheckboxGroup.d.ts +0 -76
  126. package/lib/primitives/CheckboxGroup/CheckboxGroup.d.ts.map +0 -1
  127. package/lib/primitives/ComboBox/ComboBox.d.ts +0 -174
  128. package/lib/primitives/ComboBox/ComboBox.d.ts.map +0 -1
  129. package/lib/primitives/Container/Container.d.ts +0 -296
  130. package/lib/primitives/Container/Container.d.ts.map +0 -1
  131. package/lib/primitives/DateField/DateField.d.ts +0 -87
  132. package/lib/primitives/DateField/DateField.d.ts.map +0 -1
  133. package/lib/primitives/DatePicker/DatePicker.d.ts +0 -74
  134. package/lib/primitives/DatePicker/DatePicker.d.ts.map +0 -1
  135. package/lib/primitives/DateRangePicker/DateRangePicker.d.ts +0 -116
  136. package/lib/primitives/DateRangePicker/DateRangePicker.d.ts.map +0 -1
  137. package/lib/primitives/DateTimePicker/DateTimePicker.d.ts +0 -93
  138. package/lib/primitives/DateTimePicker/DateTimePicker.d.ts.map +0 -1
  139. package/lib/primitives/DescriptionList/DescriptionList.d.ts +0 -45
  140. package/lib/primitives/DescriptionList/DescriptionList.d.ts.map +0 -1
  141. package/lib/primitives/Dialog/Dialog.d.ts +0 -56
  142. package/lib/primitives/Dialog/Dialog.d.ts.map +0 -1
  143. package/lib/primitives/Disclosure/Disclosure.d.ts +0 -59
  144. package/lib/primitives/Disclosure/Disclosure.d.ts.map +0 -1
  145. package/lib/primitives/Drawer/Drawer.d.ts +0 -87
  146. package/lib/primitives/Drawer/Drawer.d.ts.map +0 -1
  147. package/lib/primitives/DropZone/DropZone.d.ts +0 -85
  148. package/lib/primitives/DropZone/DropZone.d.ts.map +0 -1
  149. package/lib/primitives/Fieldset/Fieldset.d.ts +0 -57
  150. package/lib/primitives/Fieldset/Fieldset.d.ts.map +0 -1
  151. package/lib/primitives/FileTrigger/FileTrigger.d.ts +0 -72
  152. package/lib/primitives/FileTrigger/FileTrigger.d.ts.map +0 -1
  153. package/lib/primitives/Grid/Grid.d.ts +0 -307
  154. package/lib/primitives/Grid/Grid.d.ts.map +0 -1
  155. package/lib/primitives/GridList/GridList.d.ts +0 -131
  156. package/lib/primitives/GridList/GridList.d.ts.map +0 -1
  157. package/lib/primitives/IconButton/IconButton.d.ts +0 -37
  158. package/lib/primitives/IconButton/IconButton.d.ts.map +0 -1
  159. package/lib/primitives/IconTile/IconTile.d.ts +0 -312
  160. package/lib/primitives/IconTile/IconTile.d.ts.map +0 -1
  161. package/lib/primitives/Inline/Inline.d.ts +0 -302
  162. package/lib/primitives/Inline/Inline.d.ts.map +0 -1
  163. package/lib/primitives/InputGroup/InputGroup.d.ts +0 -36
  164. package/lib/primitives/InputGroup/InputGroup.d.ts.map +0 -1
  165. package/lib/primitives/Link/Link.d.ts +0 -28
  166. package/lib/primitives/Link/Link.d.ts.map +0 -1
  167. package/lib/primitives/LinkButton/LinkButton.d.ts +0 -31
  168. package/lib/primitives/LinkButton/LinkButton.d.ts.map +0 -1
  169. package/lib/primitives/List/List.d.ts +0 -29
  170. package/lib/primitives/List/List.d.ts.map +0 -1
  171. package/lib/primitives/ListBox/ListBox.d.ts +0 -102
  172. package/lib/primitives/ListBox/ListBox.d.ts.map +0 -1
  173. package/lib/primitives/Logo/Logo.d.ts +0 -292
  174. package/lib/primitives/Logo/Logo.d.ts.map +0 -1
  175. package/lib/primitives/Menu/Menu.d.ts +0 -161
  176. package/lib/primitives/Menu/Menu.d.ts.map +0 -1
  177. package/lib/primitives/Meter/Meter.d.ts +0 -28
  178. package/lib/primitives/Meter/Meter.d.ts.map +0 -1
  179. package/lib/primitives/NavigationList/NavigationList.d.ts +0 -44
  180. package/lib/primitives/NavigationList/NavigationList.d.ts.map +0 -1
  181. package/lib/primitives/NumberField/NumberField.d.ts +0 -118
  182. package/lib/primitives/NumberField/NumberField.d.ts.map +0 -1
  183. package/lib/primitives/Popover/Popover.d.ts +0 -61
  184. package/lib/primitives/Popover/Popover.d.ts.map +0 -1
  185. package/lib/primitives/ProgressBar/ProgressBar.d.ts +0 -41
  186. package/lib/primitives/ProgressBar/ProgressBar.d.ts.map +0 -1
  187. package/lib/primitives/RadioGroup/RadioGroup.d.ts +0 -131
  188. package/lib/primitives/RadioGroup/RadioGroup.d.ts.map +0 -1
  189. package/lib/primitives/RangeCalendar/RangeCalendar.d.ts +0 -57
  190. package/lib/primitives/RangeCalendar/RangeCalendar.d.ts.map +0 -1
  191. package/lib/primitives/SearchField/SearchField.d.ts +0 -70
  192. package/lib/primitives/SearchField/SearchField.d.ts.map +0 -1
  193. package/lib/primitives/Select/Select.d.ts +0 -110
  194. package/lib/primitives/Select/Select.d.ts.map +0 -1
  195. package/lib/primitives/Separator/Separator.d.ts +0 -302
  196. package/lib/primitives/Separator/Separator.d.ts.map +0 -1
  197. package/lib/primitives/Skeleton/Skeleton.d.ts +0 -27
  198. package/lib/primitives/Skeleton/Skeleton.d.ts.map +0 -1
  199. package/lib/primitives/SkipLink/SkipLink.d.ts +0 -21
  200. package/lib/primitives/SkipLink/SkipLink.d.ts.map +0 -1
  201. package/lib/primitives/Slider/Slider.d.ts +0 -148
  202. package/lib/primitives/Slider/Slider.d.ts.map +0 -1
  203. package/lib/primitives/Spinner/Spinner.d.ts +0 -23
  204. package/lib/primitives/Spinner/Spinner.d.ts.map +0 -1
  205. package/lib/primitives/Stack/Stack.d.ts +0 -300
  206. package/lib/primitives/Stack/Stack.d.ts.map +0 -1
  207. package/lib/primitives/Stepper/Stepper.d.ts +0 -42
  208. package/lib/primitives/Stepper/Stepper.d.ts.map +0 -1
  209. package/lib/primitives/Surface/Surface.d.ts +0 -306
  210. package/lib/primitives/Surface/Surface.d.ts.map +0 -1
  211. package/lib/primitives/Switch/Switch.d.ts +0 -118
  212. package/lib/primitives/Switch/Switch.d.ts.map +0 -1
  213. package/lib/primitives/Table/Table.d.ts +0 -233
  214. package/lib/primitives/Table/Table.d.ts.map +0 -1
  215. package/lib/primitives/Tabs/Tabs.d.ts +0 -105
  216. package/lib/primitives/Tabs/Tabs.d.ts.map +0 -1
  217. package/lib/primitives/Tag/Tag.d.ts +0 -18
  218. package/lib/primitives/Tag/Tag.d.ts.map +0 -1
  219. package/lib/primitives/TagGroup/TagGroup.d.ts +0 -60
  220. package/lib/primitives/TagGroup/TagGroup.d.ts.map +0 -1
  221. package/lib/primitives/TextArea/TextArea.d.ts +0 -40
  222. package/lib/primitives/TextArea/TextArea.d.ts.map +0 -1
  223. package/lib/primitives/TextField/TextField.d.ts +0 -102
  224. package/lib/primitives/TextField/TextField.d.ts.map +0 -1
  225. package/lib/primitives/TimeField/TimeField.d.ts +0 -58
  226. package/lib/primitives/TimeField/TimeField.d.ts.map +0 -1
  227. package/lib/primitives/Toast/Toast.d.ts +0 -88
  228. package/lib/primitives/Toast/Toast.d.ts.map +0 -1
  229. package/lib/primitives/ToggleButton/ToggleButton.d.ts +0 -55
  230. package/lib/primitives/ToggleButton/ToggleButton.d.ts.map +0 -1
  231. package/lib/primitives/ToggleGroup/ToggleGroup.d.ts +0 -48
  232. package/lib/primitives/ToggleGroup/ToggleGroup.d.ts.map +0 -1
  233. package/lib/primitives/Toolbar/Toolbar.d.ts +0 -17
  234. package/lib/primitives/Toolbar/Toolbar.d.ts.map +0 -1
  235. package/lib/primitives/Tooltip/Tooltip.d.ts +0 -66
  236. package/lib/primitives/Tooltip/Tooltip.d.ts.map +0 -1
  237. package/lib/primitives/Typography/Typography.d.ts +0 -317
  238. package/lib/primitives/Typography/Typography.d.ts.map +0 -1
  239. package/lib/primitives/VisuallyHidden/VisuallyHidden.d.ts +0 -294
  240. package/lib/primitives/VisuallyHidden/VisuallyHidden.d.ts.map +0 -1
  241. package/lib/primitives/date/CalendarParts.d.ts +0 -26
  242. package/lib/primitives/date/CalendarParts.d.ts.map +0 -1
  243. package/lib/primitives/date/DateInput.d.ts +0 -9
  244. package/lib/primitives/date/DateInput.d.ts.map +0 -1
  245. package/lib/primitives/date/PickerFieldParts.d.ts +0 -11
  246. package/lib/primitives/date/PickerFieldParts.d.ts.map +0 -1
  247. package/lib/primitives/date/PickerParts.d.ts +0 -29
  248. package/lib/primitives/date/PickerParts.d.ts.map +0 -1
  249. package/lib/primitives/file/FileFeedback.d.ts +0 -14
  250. package/lib/primitives/file/FileFeedback.d.ts.map +0 -1
  251. package/lib/provider/messages.d.ts +0 -43
  252. package/lib/provider/messages.d.ts.map +0 -1
  253. package/lib/theme.css +0 -5
@@ -1,58 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- import type { ControlSize } from '../../internal/styling/visual';
3
- interface PasswordFieldSharedProps {
4
- /** Native autocomplete purpose. */
5
- autoComplete?: 'current-password' | 'new-password' | 'off';
6
- /** Supporting guidance associated with the input. */
7
- description?: ReactNode;
8
- /** Prevents editing and focus. Defaults to `false`. */
9
- disabled?: boolean;
10
- /** Validation message shown when invalid. */
11
- error?: ReactNode;
12
- /** Exposes invalid state. Defaults to `false`. */
13
- invalid?: boolean;
14
- /** Persistent visible input label. */
15
- label: ReactNode;
16
- /** Native form field name. */
17
- name?: string;
18
- /** Placeholder shown while empty. */
19
- placeholder?: string;
20
- /** Marks the input as required. Defaults to `false`. */
21
- required?: boolean;
22
- /** Canonical input and action size. Defaults to `md`. */
23
- size?: ControlSize;
24
- }
25
- interface ControlledPasswordFieldProps {
26
- /** Current password value. */
27
- value: string;
28
- /** Called with the next password value. */
29
- onChange: (value: string) => void;
30
- defaultValue?: never;
31
- readOnly?: false;
32
- }
33
- interface ReadOnlyPasswordFieldProps {
34
- /** Current immutable password value. */
35
- value: string;
36
- /** Marks the controlled value as intentionally immutable. */
37
- readOnly: true;
38
- defaultValue?: never;
39
- onChange?: never;
40
- }
41
- interface UncontrolledPasswordFieldProps {
42
- /** Initial password value. Defaults to an empty string. */
43
- defaultValue?: string;
44
- /** Called with the next password value. */
45
- onChange?: (value: string) => void;
46
- value?: never;
47
- readOnly?: false;
48
- }
49
- /** Props for controlled, read-only, or uncontrolled password entry. */
50
- export type PasswordFieldProps = PasswordFieldSharedProps & (ControlledPasswordFieldProps | ReadOnlyPasswordFieldProps | UncontrolledPasswordFieldProps);
51
- /**
52
- * Provides accessible password entry with a keyboard-operable visibility toggle.
53
- *
54
- * @summary labelled password entry with a visibility action
55
- */
56
- export declare function PasswordField({ autoComplete, defaultValue, description, disabled, error, invalid, label, name, onChange, placeholder, readOnly, required, size, value, }: Readonly<PasswordFieldProps>): ReactElement;
57
- export {};
58
- //# sourceMappingURL=PasswordField.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PasswordField.d.ts","sourceRoot":"","sources":["../../../src/patterns/PasswordField/PasswordField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAkBjE,UAAU,wBAAwB;IAChC,mCAAmC;IACnC,YAAY,CAAC,EAAE,kBAAkB,GAAG,cAAc,GAAG,KAAK,CAAC;IAC3D,qDAAqD;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,KAAK,EAAE,SAAS,CAAC;IACjB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,UAAU,4BAA4B;IACpC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,0BAA0B;IAClC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,EAAE,IAAI,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,8BAA8B;IACtC,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GACvD,CACI,4BAA4B,GAC5B,0BAA0B,GAC1B,8BAA8B,CACjC,CAAC;AAEJ;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,KAAK,EACL,OAAe,EACf,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,IAAW,EACX,KAAK,GACN,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CA4E7C"}
@@ -1,21 +0,0 @@
1
- import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
2
- /** Props for a content-section heading and optional action. */
3
- export interface SectionHeaderProps extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'style' | 'title'> {
4
- /** Optional section action. */
5
- action?: ReactNode;
6
- /** Optional concise supporting context. */
7
- description?: ReactNode;
8
- /** Stable id for heading relationships. */
9
- id?: string;
10
- /** Ref to the rendered header. */
11
- ref?: Ref<HTMLElement>;
12
- /** Section heading. */
13
- title: ReactNode;
14
- }
15
- /**
16
- * Aligns a section heading, supporting context, and one related action.
17
- *
18
- * @summary content-section heading with context and one related action
19
- */
20
- export declare function SectionHeader({ action, className, description, id, ref, title, ...props }: Readonly<SectionHeaderProps>): ReactElement;
21
- //# sourceMappingURL=SectionHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../src/patterns/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK1E,+DAA+D;AAC/D,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;IACzE,+BAA+B;IAC/B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2CAA2C;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACvB,uBAAuB;IACvB,KAAK,EAAE,SAAS,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,SAAS,EACT,WAAW,EACX,EAAE,EACF,GAAG,EACH,KAAK,EACL,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CA6B7C"}
@@ -1,56 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- /** One option displayed by SegmentedControl. */
3
- export interface SegmentedControlOption {
4
- /** Prevents selection of this option. Defaults to `false`. */
5
- disabled?: boolean;
6
- /** Visible option label. */
7
- label: ReactNode;
8
- /** Stable semantic value. */
9
- value: string;
10
- }
11
- interface SegmentedControlSharedProps {
12
- /** Accessible name for the exclusive choice. */
13
- 'aria-label': string;
14
- /** Optional placement class for application composition. */
15
- className?: string;
16
- /** Prevents all choices from changing. Defaults to `false`. */
17
- disabled?: boolean;
18
- /** Choice layout and keyboard axis. Defaults to `horizontal`. */
19
- orientation?: 'horizontal' | 'vertical';
20
- /** Ordered application-owned options. */
21
- options: readonly SegmentedControlOption[];
22
- }
23
- interface ControlledSegmentedControlProps {
24
- /** Current selected option. */
25
- value: string;
26
- /** Called with the next selected option. */
27
- onChange: (value: string) => void;
28
- defaultValue?: never;
29
- readOnly?: false;
30
- }
31
- interface ReadOnlySegmentedControlProps {
32
- /** Current immutable selected option. */
33
- value: string;
34
- /** Marks the controlled value as intentionally immutable. */
35
- readOnly: true;
36
- defaultValue?: never;
37
- onChange?: never;
38
- }
39
- interface UncontrolledSegmentedControlProps {
40
- /** Initial selected option. */
41
- defaultValue?: string;
42
- /** Called with the next selected option. */
43
- onChange?: (value: string) => void;
44
- value?: never;
45
- readOnly?: false;
46
- }
47
- /** Props for a controlled, read-only, or uncontrolled segmented choice. */
48
- export type SegmentedControlProps = SegmentedControlSharedProps & (ControlledSegmentedControlProps | ReadOnlySegmentedControlProps | UncontrolledSegmentedControlProps);
49
- /**
50
- * Presents a compact exclusive choice with arrow-key navigation.
51
- *
52
- * @summary exclusive compact choice with controlled or uncontrolled state
53
- */
54
- export declare function SegmentedControl({ 'aria-label': ariaLabel, className, defaultValue, disabled, onChange, options, orientation, readOnly, value, }: Readonly<SegmentedControlProps>): ReactElement;
55
- export {};
56
- //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/patterns/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,gDAAgD;AAChD,MAAM,WAAW,sBAAsB;IACrC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,KAA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AAgB,EAChB,KAAK,GACN,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,YAAY,CA6EhD"}
@@ -1,25 +0,0 @@
1
- import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
2
- import type { VisualVariant } from '../../internal/styling/visual';
3
- /** Props for a complete contextual state message. */
4
- export interface StatePanelProps extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'style' | 'title'> {
5
- /** Optional recovery or next-step action. */
6
- action?: ReactNode;
7
- /** Concise supporting guidance. */
8
- description: ReactNode;
9
- /** Decorative state icon. */
10
- icon: ReactNode;
11
- /** Ref to the rendered section. */
12
- ref?: Ref<HTMLElement>;
13
- /** Contextual state heading. */
14
- title: ReactNode;
15
- /** Semantic state colour. Defaults to `info`. */
16
- variant?: Extract<VisualVariant, 'danger' | 'info' | 'primary' | 'success' | 'warning'>;
17
- }
18
- /**
19
- * Communicates empty, error, success, warning, or informational state and
20
- * recovery.
21
- *
22
- * @summary complete contextual state with guidance and optional recovery
23
- */
24
- export declare function StatePanel({ action, className, description, icon, ref, title, variant, ...props }: Readonly<StatePanelProps>): ReactElement;
25
- //# sourceMappingURL=StatePanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatePanel.d.ts","sourceRoot":"","sources":["../../../src/patterns/StatePanel/StatePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,qDAAqD;AACrD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;IACzE,6CAA6C;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,mCAAmC;IACnC,WAAW,EAAE,SAAS,CAAC;IACvB,6BAA6B;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,mCAAmC;IACnC,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACvB,gCAAgC;IAChC,KAAK,EAAE,SAAS,CAAC;IACjB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CACf,aAAa,EACb,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CACtD,CAAC;CACH;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,SAAS,EACT,WAAW,EACX,IAAI,EACJ,GAAG,EACH,KAAK,EACL,OAAgB,EAChB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,YAAY,CAmC1C"}
@@ -1,63 +0,0 @@
1
- import type { ReactElement, ReactNode } from 'react';
2
- /** One application-owned user-menu action or destination. */
3
- export interface UserMenuAction {
4
- /** Prevents action. Defaults to `false`. */
5
- disabled?: boolean;
6
- /** Optional router-neutral or native destination. */
7
- href?: string;
8
- /** Optional decorative action icon. */
9
- icon?: ReactNode;
10
- /** Stable action key. */
11
- id: string;
12
- /** Visible and typeahead-readable label. */
13
- label: string;
14
- /** Called with this action key after activation. */
15
- onAction?: (id: string) => void;
16
- /** Visual treatment for the action. Defaults to `default`. */
17
- variant?: 'default' | 'danger';
18
- }
19
- interface UserMenuSharedProps {
20
- /** Accessible name for the menu trigger. */
21
- 'aria-label': string;
22
- /** Ordered application-owned actions. */
23
- actions: readonly UserMenuAction[];
24
- /** Indicates unread notification content. Defaults to `false`. */
25
- hasUnread?: boolean;
26
- /** Optional notification or account content above the actions. */
27
- notifications?: ReactNode;
28
- /** Optional heading displayed above notification content. */
29
- notificationHeading?: ReactNode;
30
- /** Optional count or state displayed beside the notification heading. */
31
- notificationState?: ReactNode;
32
- /** Optional avatar image URL. */
33
- src?: string;
34
- /** Complete accessible trigger name used when unread content is present. */
35
- unreadLabel?: string;
36
- /** Visible represented user name. */
37
- userName: string;
38
- }
39
- interface ControlledUserMenuProps {
40
- defaultOpen?: never;
41
- /** Called with the next menu state. */
42
- onOpenChange: (open: boolean) => void;
43
- /** Current menu state. */
44
- open: boolean;
45
- }
46
- interface UncontrolledUserMenuProps {
47
- /** Initial menu state. Defaults to `false`. */
48
- defaultOpen?: boolean;
49
- /** Called with the next menu state. */
50
- onOpenChange?: (open: boolean) => void;
51
- open?: never;
52
- }
53
- /** Props for account identity, notifications, and application-owned user actions. */
54
- export type UserMenuProps = UserMenuSharedProps & (ControlledUserMenuProps | UncontrolledUserMenuProps);
55
- /**
56
- * Presents user identity, notification content, and keyboard-complete account
57
- * actions.
58
- *
59
- * @summary user identity menu with notifications and account actions
60
- */
61
- export declare function UserMenu({ 'aria-label': ariaLabel, actions, defaultOpen, hasUnread, notificationHeading, notificationState, notifications, onOpenChange, open, src, unreadLabel, userName, }: Readonly<UserMenuProps>): ReactElement;
62
- export {};
63
- //# sourceMappingURL=UserMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserMenu.d.ts","sourceRoot":"","sources":["../../../src/patterns/UserMenu/UserMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,6DAA6D;AAC7D,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,8DAA8D;IAC9D,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAChC;AAED,UAAU,mBAAmB;IAC3B,4CAA4C;I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Node, Ref } from 'react';
2
- import { SharedDisclosurePanel, type SharedDisclosurePanelProps, SharedDisclosureTrigger, type SharedDisclosureTriggerProps } from '../../internal/react-aria/DisclosureParts';
3
- import type { CollectionKey } from '../../internal/types/collection';
4
- type AccordionRootNativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'defaultValue' | 'onChange' | 'style'>;
5
- interface AccordionRootSharedProps extends AccordionRootNativeProps {
6
- /** Accordion items. */
7
- children: ReactNode;
8
- /** Disables every item. Defaults to `false`. */
9
- disabled?: boolean;
10
- /** Allows more than one expanded item. Defaults to `false`. */
11
- multiple?: boolean;
12
- /** Ref to the rendered accordion root. */
13
- ref?: Ref<HTMLDivElement>;
14
- }
15
- interface ControlledAccordionRootProps {
16
- /** Current expanded item keys. */
17
- value: CollectionKey[];
18
- /** Called with the next expanded item keys. */
19
- onChange: (value: CollectionKey[]) => void;
20
- defaultValue?: never;
21
- readOnly?: false;
22
- }
23
- interface ReadOnlyAccordionRootProps {
24
- /** Current immutable expanded item keys. */
25
- value: CollectionKey[];
26
- /** Marks controlled state as intentionally immutable. */
27
- readOnly: true;
28
- defaultValue?: never;
29
- onChange?: never;
30
- }
31
- interface UncontrolledAccordionRootProps {
32
- /** Initially expanded item keys. */
33
- defaultValue?: CollectionKey[];
34
- /** Called with the next expanded item keys. */
35
- onChange?: (value: CollectionKey[]) => void;
36
- readOnly?: false;
37
- value?: never;
38
- }
39
- /** Props for controlled, read-only, or uncontrolled accordion expansion. */
40
- export type AccordionRootProps = AccordionRootSharedProps & (ControlledAccordionRootProps | ReadOnlyAccordionRootProps | UncontrolledAccordionRootProps);
41
- /** Props for one keyed accordion item. */
42
- export interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id' | 'style'> {
43
- /** Item trigger and panel parts. */
44
- children: ReactNode;
45
- /** Prevents this item from changing state. Defaults to `false`. */
46
- disabled?: boolean;
47
- /** Stable string or number item key. */
48
- id: CollectionKey;
49
- /** Ref to the rendered item root. */
50
- ref?: Ref<HTMLDivElement>;
51
- }
52
- /** Props for an accordion item heading button. */
53
- export type AccordionTriggerProps = SharedDisclosureTriggerProps;
54
- /** Props for collapsible accordion item content. */
55
- export type AccordionPanelProps = SharedDisclosurePanelProps;
56
- /** Coordinates single or multiple item expansion. */
57
- export declare function Root({ className, defaultValue, disabled, multiple, onChange, readOnly: _readOnly, ref, value, ...props }: Readonly<AccordionRootProps>): ReactElement;
58
- /** Renders one keyed disclosure inside the accordion group. */
59
- export declare function Item({ className, disabled, id, ref, ...props }: Readonly<AccordionItemProps>): ReactElement;
60
- /**
61
- * Groups coordinated disclosures with single or multiple expansion state.
62
- *
63
- * @summary coordinated expandable disclosure group
64
- */
65
- export declare const Accordion: {
66
- /** One keyed expandable item. */
67
- Item: typeof Item;
68
- /** Collapsible item content. */
69
- Panel: typeof SharedDisclosurePanel;
70
- /** Expansion policy and state root. */
71
- Root: typeof Root;
72
- /** Item heading button. */
73
- Trigger: typeof SharedDisclosureTrigger;
74
- };
75
- export {};
76
- //# sourceMappingURL=Accordion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/primitives/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQ1E,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAUrE,KAAK,wBAAwB,GAAG,IAAI,CAClC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,OAAO,CACnD,CAAC;AAEF,UAAU,wBAAyB,SAAQ,wBAAwB;IACjE,uBAAuB;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,g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AAqC;IACrC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,kDAAkD;AAClD,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAEjE,oDAAoD;AACpD,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE7D,qDAAqD;AACrD,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,YAAY,EACZ,QAAgB,EAChB,QAAgB,EAChB,QAAQ,EACR,QAAQ,EAAE,SAAS,EACnB,GAAG,EACH,KAAK,EACL,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAa7C;AAED,+DAA+D;AAC/D,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,QAAgB,EAChB,EAAE,EACF,GAAG,EACH,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAQ7C;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS;IACpB,iCAAiC;;IAEjC,gCAAgC;;IAEhC,uCAAuC;;IAEvC,2BAA2B;;CAE5B,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
2
- import type { VisualVariant } from '../../internal/styling/visual';
3
- /** Announcement urgency supported by persistent alerts. */
4
- export type AlertAnnouncement = 'assertive' | 'polite' | 'off';
5
- /** Props for a persistent live-region alert. */
6
- export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'style'> {
7
- /** Announcement urgency. Defaults to `assertive`; use `off` for content already present when the page loads. */
8
- announcement?: AlertAnnouncement;
9
- /** Application-owned translated alert content. */
10
- children: ReactNode;
11
- /** Ref to the rendered alert element. */
12
- ref?: Ref<HTMLDivElement>;
13
- /** Breeze semantic colour. Defaults to `info`. */
14
- variant?: VisualVariant;
15
- }
16
- /**
17
- * Displays persistent inline application feedback with explicit announcement
18
- * urgency.
19
- *
20
- * @summary persistent inline feedback with explicit announcement urgency
21
- */
22
- export declare function Alert({ announcement, className, ref, variant, ...props }: Readonly<AlertProps>): ReactElement;
23
- //# sourceMappingURL=Alert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/primitives/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AA4BnE,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE/D,gDAAgD;AAChD,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9D,gHAAgH;IAChH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,kDAAkD;IAClD,QAAQ,EAAE,SAAS,CAAC;IACpB,yCAAyC;IACzC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,kDAAkD;IAClD,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAgBD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EACpB,YAA0B,EAC1B,SAAS,EACT,GAAG,EACH,OAAgB,EAChB,GAAG,KAAK,EACT,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,YAAY,CAgBrC"}
@@ -1,77 +0,0 @@
1
- import type { HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
2
- import { type SharedModalContentProps, SharedOverlayClose, type SharedOverlayCloseProps, SharedOverlayDescription, type SharedOverlayDescriptionProps, SharedOverlayTitle, type SharedOverlayTitleProps, SharedOverlayTrigger, type SharedOverlayTriggerProps } from '../../internal/react-aria/OverlayParts';
3
- interface AlertDialogRootSharedProps {
4
- /** Trigger and alert content. */ children: ReactNode;
5
- }
6
- interface ControlledAlertDialogRootProps {
7
- /** Current open state. */ open: boolean;
8
- /** Called with the next open state. */ onOpenChange: (open: boolean) => void;
9
- defaultOpen?: never;
10
- readOnly?: false;
11
- }
12
- interface ReadOnlyAlertDialogRootProps {
13
- /** Current immutable open state. */ open: boolean;
14
- /** Marks controlled state immutable. */ readOnly: true;
15
- defaultOpen?: never;
16
- onOpenChange?: never;
17
- }
18
- interface UncontrolledAlertDialogRootProps {
19
- /** Initial open state. */ defaultOpen?: boolean;
20
- /** Called with the next open state. */ onOpenChange?: (open: boolean) => void;
21
- open?: never;
22
- readOnly?: false;
23
- }
24
- interface TriggeredAlertDialogRootProps extends AlertDialogRootSharedProps {
25
- /** Uses a compound trigger to coordinate alert-dialog state. */
26
- triggerless?: false;
27
- }
28
- interface TriggerlessAlertDialogRootProps extends AlertDialogRootSharedProps {
29
- defaultOpen?: never;
30
- /** Called with the next externally controlled open state. */
31
- onOpenChange: (open: boolean) => void;
32
- /** Current externally controlled open state. */
33
- open: boolean;
34
- readOnly?: never;
35
- /** Omits a compound trigger for state controlled by an external action. */
36
- triggerless: true;
37
- }
38
- /** Props for controlled, read-only, or uncontrolled alert-dialog state. */ export type AlertDialogRootProps = (TriggeredAlertDialogRootProps & (ControlledAlertDialogRootProps | ReadOnlyAlertDialogRootProps | UncontrolledAlertDialogRootProps)) | TriggerlessAlertDialogRootProps;
39
- /** Props for the alert-dialog trigger. */ export type AlertDialogTriggerProps = SharedOverlayTriggerProps;
40
- /** Props for alert-dialog content requiring explicit action. */ export type AlertDialogContentProps = Omit<SharedModalContentProps, 'dismissible' | 'modalState' | 'role'>;
41
- /** Props for the required alert-dialog title. */ export type AlertDialogTitleProps = SharedOverlayTitleProps;
42
- /** Props for the required alert-dialog consequence description. */ export type AlertDialogDescriptionProps = SharedOverlayDescriptionProps;
43
- /** Props for an explicit alert-dialog close action. */ export type AlertDialogCloseProps = SharedOverlayCloseProps;
44
- /** Props for the canonical alert-dialog action region. */
45
- export interface AlertDialogActionsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style'> {
46
- /** Explicit decision actions. */
47
- children: ReactNode;
48
- /** Ref to the rendered action group. */
49
- ref?: Ref<HTMLDivElement>;
50
- }
51
- /** Coordinates an accessible modal decision that requires acknowledgement. */
52
- export declare function Root(props: Readonly<AlertDialogRootProps>): ReactElement;
53
- export declare function Content(props: Readonly<AlertDialogContentProps>): ReactElement;
54
- export declare function Actions({ className, ref, ...props }: Readonly<AlertDialogActionsProps>): ReactElement;
55
- /**
56
- * Presents an accessible modal alert that requires an explicit decision.
57
- *
58
- * @summary modal decision requiring explicit confirmation
59
- */
60
- export declare const AlertDialog: {
61
- /** Responsive, end-aligned region for explicit decision actions. */
62
- Actions: typeof Actions;
63
- /** Explicit decision action that closes the alert dialog. */
64
- Close: typeof SharedOverlayClose;
65
- /** Non-outside-dismissible alert-dialog surface and focus scope. */
66
- Content: typeof Content;
67
- /** Required accessible consequence description. */
68
- Description: typeof SharedOverlayDescription;
69
- /** Controlled, read-only, or uncontrolled open-state coordinator. */
70
- Root: typeof Root;
71
- /** Required accessible alert title. */
72
- Title: typeof SharedOverlayTitle;
73
- /** Semantic action that opens the alert dialog. */
74
- Trigger: typeof SharedOverlayTrigger;
75
- };
76
- export {};
77
- //# sourceMappingURL=AlertDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../src/primitives/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK1E,OAAO,EAEL,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,wBAAwB,EACxB,KAAK,6BAA6B,EAClC,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,oBAAoB,EACpB,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAOhD,UAAU,0BA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