@brightlocal/ui-components 2.27.0 → 3.1.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 (289) hide show
  1. package/README.md +7 -1
  2. package/component-meta.json +568 -143
  3. package/deprecations.json +298 -1
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.d.ts +36 -0
  6. package/dist/accordion.d.ts.map +1 -1
  7. package/dist/accordion.js +74 -61
  8. package/dist/alert-dialog.cjs +1 -1
  9. package/dist/alert-dialog.js +18 -18
  10. package/dist/alert.cjs +1 -1
  11. package/dist/alert.d.ts +11 -1
  12. package/dist/alert.d.ts.map +1 -1
  13. package/dist/alert.js +31 -28
  14. package/dist/avatar.cjs +1 -1
  15. package/dist/avatar.js +4 -4
  16. package/dist/badge.cjs +1 -1
  17. package/dist/badge.d.ts.map +1 -1
  18. package/dist/badge.js +15 -11
  19. package/dist/blocks/empty-state.cjs +1 -0
  20. package/dist/blocks/empty-state.d.ts +172 -0
  21. package/dist/blocks/empty-state.d.ts.map +1 -0
  22. package/dist/blocks/empty-state.js +147 -0
  23. package/dist/blocks/input-list.cjs +2 -2
  24. package/dist/blocks/input-list.d.ts.map +1 -1
  25. package/dist/blocks/input-list.js +124 -108
  26. package/dist/blocks/progress-state.cjs +1 -0
  27. package/dist/blocks/{progress-screen.d.ts → progress-state.d.ts} +30 -18
  28. package/dist/blocks/progress-state.d.ts.map +1 -0
  29. package/dist/blocks/{progress-screen.js → progress-state.js} +100 -71
  30. package/dist/blocks/sidebar.cjs +1 -1
  31. package/dist/blocks/sidebar.d.ts.map +1 -1
  32. package/dist/blocks/sidebar.js +160 -161
  33. package/dist/breadcrumb.cjs +1 -1
  34. package/dist/breadcrumb.js +1 -1
  35. package/dist/button-group.cjs +1 -0
  36. package/dist/button-group.d.ts +36 -0
  37. package/dist/button-group.d.ts.map +1 -0
  38. package/dist/button-group.js +47 -0
  39. package/dist/button.cjs +1 -1
  40. package/dist/button.js +12 -12
  41. package/dist/calendar.cjs +1 -1
  42. package/dist/calendar.d.ts.map +1 -1
  43. package/dist/calendar.js +37 -38
  44. package/dist/callout.cjs +1 -1
  45. package/dist/callout.d.ts +24 -2
  46. package/dist/callout.d.ts.map +1 -1
  47. package/dist/callout.js +57 -55
  48. package/dist/card.cjs +1 -1
  49. package/dist/card.d.ts +42 -3
  50. package/dist/card.d.ts.map +1 -1
  51. package/dist/card.js +102 -91
  52. package/dist/chart-empty.cjs +1 -0
  53. package/dist/chart-empty.d.ts +59 -0
  54. package/dist/chart-empty.d.ts.map +1 -0
  55. package/dist/chart-empty.js +29 -0
  56. package/dist/chart.cjs +6 -6
  57. package/dist/chart.d.ts +46 -13
  58. package/dist/chart.d.ts.map +1 -1
  59. package/dist/chart.js +172 -157
  60. package/dist/chip.cjs +1 -1
  61. package/dist/chip.d.ts +38 -4
  62. package/dist/chip.d.ts.map +1 -1
  63. package/dist/chip.js +100 -84
  64. package/dist/combobox.cjs +2 -2
  65. package/dist/combobox.d.ts.map +1 -1
  66. package/dist/combobox.js +81 -79
  67. package/dist/command.cjs +1 -1
  68. package/dist/command.d.ts +23 -1
  69. package/dist/command.d.ts.map +1 -1
  70. package/dist/command.js +248 -225
  71. package/dist/context-menu.cjs +1 -1
  72. package/dist/context-menu.d.ts.map +1 -1
  73. package/dist/context-menu.js +26 -29
  74. package/dist/data-table.cjs +1 -1
  75. package/dist/data-table.d.ts +75 -10
  76. package/dist/data-table.d.ts.map +1 -1
  77. package/dist/data-table.js +346 -334
  78. package/dist/date-picker.cjs +1 -1
  79. package/dist/date-picker.d.ts +13 -5
  80. package/dist/date-picker.d.ts.map +1 -1
  81. package/dist/date-picker.js +54 -53
  82. package/dist/description.cjs +1 -1
  83. package/dist/description.js +5 -5
  84. package/dist/dialog.cjs +1 -1
  85. package/dist/dialog.js +20 -20
  86. package/dist/drawer.cjs +1 -1
  87. package/dist/drawer.d.ts.map +1 -1
  88. package/dist/drawer.js +8 -11
  89. package/dist/dropdown-menu.cjs +1 -1
  90. package/dist/dropdown-menu.d.ts.map +1 -1
  91. package/dist/dropdown-menu.js +17 -20
  92. package/dist/field.cjs +1 -1
  93. package/dist/field.d.ts +8 -1
  94. package/dist/field.d.ts.map +1 -1
  95. package/dist/field.js +96 -65
  96. package/dist/global-layout.cjs +1 -1
  97. package/dist/global-layout.d.ts +130 -12
  98. package/dist/global-layout.d.ts.map +1 -1
  99. package/dist/global-layout.js +146 -127
  100. package/dist/grid.cjs +1 -0
  101. package/dist/grid.d.ts +56 -0
  102. package/dist/grid.d.ts.map +1 -0
  103. package/dist/grid.js +32 -0
  104. package/dist/header.d.ts +13 -0
  105. package/dist/header.d.ts.map +1 -1
  106. package/dist/hooks/use-delayed-pending.cjs +1 -0
  107. package/dist/hooks/use-delayed-pending.d.ts +34 -0
  108. package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
  109. package/dist/hooks/use-delayed-pending.js +17 -0
  110. package/dist/hooks/use-mobile.cjs +1 -0
  111. package/dist/hooks/use-mobile.js +8 -0
  112. package/dist/hover-card.cjs +1 -1
  113. package/dist/hover-card.js +13 -13
  114. package/dist/index.cjs +1 -1
  115. package/dist/index.d.ts +9 -1
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +554 -527
  118. package/dist/input-chip.cjs +1 -1
  119. package/dist/input-chip.js +25 -25
  120. package/dist/input-group.cjs +1 -1
  121. package/dist/input-group.js +9 -9
  122. package/dist/input-otp.cjs +1 -1
  123. package/dist/input-otp.js +9 -9
  124. package/dist/input-password.cjs +1 -1
  125. package/dist/input-password.d.ts +17 -9
  126. package/dist/input-password.d.ts.map +1 -1
  127. package/dist/input-password.js +73 -72
  128. package/dist/input.cjs +1 -1
  129. package/dist/input.js +9 -9
  130. package/dist/label.cjs +1 -1
  131. package/dist/label.d.ts.map +1 -1
  132. package/dist/label.js +25 -28
  133. package/dist/lib/block-illustration.cjs +1 -0
  134. package/dist/lib/block-illustration.d.ts +28 -0
  135. package/dist/lib/block-illustration.d.ts.map +1 -0
  136. package/dist/lib/block-illustration.js +21 -0
  137. package/dist/lib/empty-canvas.cjs +1 -0
  138. package/dist/lib/empty-canvas.d.ts +27 -0
  139. package/dist/lib/empty-canvas.d.ts.map +1 -0
  140. package/dist/lib/empty-canvas.js +62 -0
  141. package/dist/lib/empty-chip.cjs +1 -0
  142. package/dist/lib/empty-chip.d.ts +4 -0
  143. package/dist/lib/empty-chip.d.ts.map +1 -0
  144. package/dist/lib/empty-chip.js +13 -0
  145. package/dist/lib/optical-center.cjs +1 -0
  146. package/dist/lib/optical-center.d.ts +12 -0
  147. package/dist/lib/optical-center.d.ts.map +1 -0
  148. package/dist/lib/optical-center.js +11 -0
  149. package/dist/lib/utils.cjs +1 -1
  150. package/dist/lib/utils.d.ts.map +1 -1
  151. package/dist/lib/utils.js +28 -5
  152. package/dist/list.cjs +1 -1
  153. package/dist/list.d.ts.map +1 -1
  154. package/dist/list.js +62 -58
  155. package/dist/map.cjs +1 -1
  156. package/dist/map.d.ts +60 -2
  157. package/dist/map.d.ts.map +1 -1
  158. package/dist/map.js +187 -164
  159. package/dist/media-empty.cjs +1 -0
  160. package/dist/media-empty.d.ts +72 -0
  161. package/dist/media-empty.d.ts.map +1 -0
  162. package/dist/media-empty.js +45 -0
  163. package/dist/menubar.cjs +1 -1
  164. package/dist/menubar.d.ts.map +1 -1
  165. package/dist/menubar.js +17 -20
  166. package/dist/navigation-menu.cjs +1 -1
  167. package/dist/navigation-menu.js +7 -7
  168. package/dist/pagination.cjs +1 -1
  169. package/dist/pagination.d.ts +130 -1
  170. package/dist/pagination.d.ts.map +1 -1
  171. package/dist/pagination.js +193 -102
  172. package/dist/progress.cjs +1 -1
  173. package/dist/progress.d.ts +2 -26
  174. package/dist/progress.d.ts.map +1 -1
  175. package/dist/progress.js +79 -118
  176. package/dist/scroll-area.cjs +1 -1
  177. package/dist/scroll-area.d.ts +15 -6
  178. package/dist/scroll-area.d.ts.map +1 -1
  179. package/dist/scroll-area.js +38 -36
  180. package/dist/select.cjs +2 -2
  181. package/dist/select.d.ts +13 -2
  182. package/dist/select.d.ts.map +1 -1
  183. package/dist/select.js +92 -87
  184. package/dist/separator.cjs +1 -1
  185. package/dist/separator.js +8 -8
  186. package/dist/sheet.cjs +1 -1
  187. package/dist/sheet.js +2 -2
  188. package/dist/skeleton.cjs +1 -1
  189. package/dist/skeleton.d.ts +38 -3
  190. package/dist/skeleton.d.ts.map +1 -1
  191. package/dist/skeleton.js +43 -20
  192. package/dist/sonner.cjs +1 -1
  193. package/dist/sonner.js +26 -26
  194. package/dist/stepper.cjs +1 -1
  195. package/dist/stepper.js +40 -40
  196. package/dist/table.cjs +1 -1
  197. package/dist/table.d.ts.map +1 -1
  198. package/dist/table.js +31 -28
  199. package/dist/tabs.cjs +1 -1
  200. package/dist/tabs.js +1 -1
  201. package/dist/text-reveal-motion.d.ts +10 -0
  202. package/dist/text-reveal-motion.d.ts.map +1 -1
  203. package/dist/textarea.cjs +1 -1
  204. package/dist/textarea.js +11 -11
  205. package/dist/toggle.cjs +1 -1
  206. package/dist/toggle.js +8 -8
  207. package/dist/tooltip.cjs +1 -1
  208. package/dist/tooltip.js +8 -8
  209. package/dist/typography-heading.cjs +1 -0
  210. package/dist/typography-heading.d.ts +129 -0
  211. package/dist/typography-heading.d.ts.map +1 -0
  212. package/dist/typography-heading.js +95 -0
  213. package/dist/typography-text.cjs +1 -0
  214. package/dist/typography-text.d.ts +127 -0
  215. package/dist/typography-text.d.ts.map +1 -0
  216. package/dist/typography-text.js +92 -0
  217. package/dist/typography.d.ts +13 -0
  218. package/dist/typography.d.ts.map +1 -1
  219. package/package.json +35 -7
  220. package/src/blocks/empty-state.tsx +412 -0
  221. package/src/blocks/input-list.tsx +66 -36
  222. package/src/blocks/{progress-screen.tsx → progress-state.tsx} +154 -93
  223. package/src/blocks/sidebar.tsx +25 -26
  224. package/src/components/accordion.tsx +82 -27
  225. package/src/components/alert-dialog.tsx +2 -2
  226. package/src/components/alert.tsx +27 -13
  227. package/src/components/avatar.tsx +1 -1
  228. package/src/components/badge.tsx +8 -4
  229. package/src/components/breadcrumb.tsx +1 -1
  230. package/src/components/button-group.tsx +112 -0
  231. package/src/components/button.tsx +4 -4
  232. package/src/components/calendar.tsx +5 -6
  233. package/src/components/callout.tsx +48 -15
  234. package/src/components/card.tsx +89 -19
  235. package/src/components/chart-empty.tsx +116 -0
  236. package/src/components/chart.tsx +103 -32
  237. package/src/components/chip.tsx +88 -13
  238. package/src/components/combobox.tsx +12 -10
  239. package/src/components/command.tsx +64 -13
  240. package/src/components/context-menu.tsx +6 -9
  241. package/src/components/data-table.tsx +135 -20
  242. package/src/components/date-picker.tsx +18 -7
  243. package/src/components/description.tsx +1 -1
  244. package/src/components/dialog.tsx +2 -2
  245. package/src/components/drawer.tsx +2 -5
  246. package/src/components/dropdown-menu.tsx +8 -11
  247. package/src/components/field.tsx +89 -16
  248. package/src/components/global-layout.tsx +210 -39
  249. package/src/components/grid.tsx +130 -0
  250. package/src/components/header.tsx +13 -0
  251. package/src/components/hover-card.tsx +1 -1
  252. package/src/components/input-chip.tsx +1 -1
  253. package/src/components/input-group.tsx +1 -1
  254. package/src/components/input-otp.tsx +1 -1
  255. package/src/components/input-password.tsx +24 -12
  256. package/src/components/input.tsx +1 -1
  257. package/src/components/label.tsx +10 -13
  258. package/src/components/list.tsx +13 -9
  259. package/src/components/map.tsx +101 -5
  260. package/src/components/media-empty.tsx +156 -0
  261. package/src/components/menubar.tsx +7 -10
  262. package/src/components/navigation-menu.tsx +1 -1
  263. package/src/components/pagination.tsx +286 -1
  264. package/src/components/progress.tsx +35 -113
  265. package/src/components/scroll-area.tsx +23 -10
  266. package/src/components/select.tsx +35 -10
  267. package/src/components/separator.tsx +1 -1
  268. package/src/components/sheet.tsx +2 -2
  269. package/src/components/skeleton.tsx +78 -7
  270. package/src/components/sonner.tsx +2 -2
  271. package/src/components/stepper.tsx +3 -3
  272. package/src/components/table.tsx +6 -3
  273. package/src/components/tabs.tsx +1 -1
  274. package/src/components/text-reveal-motion.tsx +10 -0
  275. package/src/components/textarea.tsx +1 -1
  276. package/src/components/toggle.tsx +1 -1
  277. package/src/components/tooltip.tsx +1 -1
  278. package/src/components/typography-heading.tsx +253 -0
  279. package/src/components/typography-text.tsx +250 -0
  280. package/src/components/typography.tsx +13 -0
  281. package/src/hooks/use-delayed-pending.ts +60 -0
  282. package/src/index.ts +11 -1
  283. package/src/lib/block-illustration.tsx +88 -0
  284. package/src/lib/empty-canvas.tsx +128 -0
  285. package/src/lib/empty-chip.ts +24 -0
  286. package/src/lib/optical-center.tsx +45 -0
  287. package/src/lib/utils.ts +26 -0
  288. package/dist/blocks/progress-screen.cjs +0 -1
  289. package/dist/blocks/progress-screen.d.ts.map +0 -1
@@ -45,25 +45,84 @@ interface GlobalLayoutContentProps extends React.ComponentProps<"div"> {
45
45
  maxWidth?: string | number;
46
46
  }
47
47
  declare const GlobalLayoutContent: React.ForwardRefExoticComponent<Omit<GlobalLayoutContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
- interface GlobalLayoutBackLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
48
+ interface GlobalLayoutBackLinkCommonProps {
49
49
  /**
50
50
  * Data hook for automated testing
51
51
  * @default "content-header-back-link"
52
52
  */
53
53
  dataHook?: string;
54
54
  /**
55
- * Accessible label for the icon-only back link.
55
+ * Accessible label for the icon-only back control.
56
56
  * @default "Go back"
57
57
  */
58
58
  ariaLabel?: string;
59
59
  }
60
+ type AnchorOnlyAttributes = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof React.ButtonHTMLAttributes<HTMLButtonElement>>;
61
+ type ButtonOnlyAttributes = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof React.AnchorHTMLAttributes<HTMLAnchorElement>>;
62
+ type ForbiddenAttributes<T> = {
63
+ [K in keyof T]?: never;
64
+ };
60
65
  /**
61
- * Icon-only back link for the page header. Place it as a direct child of
66
+ * Anchor mode: a real destination, rendered as `Link variant="icon"`.
67
+ */
68
+ interface GlobalLayoutBackLinkAnchorProps extends GlobalLayoutBackLinkCommonProps, React.AnchorHTMLAttributes<HTMLAnchorElement>, ForbiddenAttributes<ButtonOnlyAttributes> {
69
+ /** Destination URL — renders a real link (`<a>`). */
70
+ href: string;
71
+ }
72
+ /**
73
+ * Button mode: no destination, rendered as an icon `<button>` for SPA
74
+ * router navigation via `onClick`.
75
+ */
76
+ interface GlobalLayoutBackLinkButtonProps extends GlobalLayoutBackLinkCommonProps, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type">, ForbiddenAttributes<AnchorOnlyAttributes> {
77
+ /** Omit `href` to render a `<button>` for SPA router navigation. */
78
+ href?: undefined;
79
+ /**
80
+ * Button type attribute (button mode only).
81
+ * @default "button"
82
+ */
83
+ type?: "button" | "submit";
84
+ }
85
+ /**
86
+ * Discriminated on `href` so the impossible combinations don't compile:
87
+ * anchor-only attributes (target, rel, download, …) require an `href`, and
88
+ * button-only attributes (disabled, form*, …) apply only without one. DS-847
89
+ * removed the old `href="#"` + preventDefault fallback — an action that
90
+ * doesn't navigate now has real button semantics.
91
+ *
92
+ * The leading inline block restates the shared props (plus `href`, the
93
+ * discriminant) so the registry's props extractor, which reads the first
94
+ * braced block after this declaration, documents them; the mode interfaces
95
+ * remain the source of the per-mode constraints.
96
+ */
97
+ type GlobalLayoutBackLinkProps = {
98
+ /**
99
+ * Data hook for automated testing
100
+ * @default "content-header-back-link"
101
+ */
102
+ dataHook?: string;
103
+ /**
104
+ * Accessible label for the icon-only back control.
105
+ * @default "Go back"
106
+ */
107
+ ariaLabel?: string;
108
+ /**
109
+ * Destination URL. Set, the control renders a real link
110
+ * (`Link variant="icon"`); omitted, it renders an identically styled
111
+ * `<button>` for SPA router navigation via `onClick` — there is no
112
+ * `href="#"` fallback.
113
+ */
114
+ href?: string;
115
+ } & (GlobalLayoutBackLinkAnchorProps | GlobalLayoutBackLinkButtonProps);
116
+ /**
117
+ * Icon-only back control for the page header. Place it as a direct child of
62
118
  * `GlobalLayoutContentHeader` — the header positions it before the title.
63
- * Pass `href` for URL navigation or `onClick` for SPA router navigation.
119
+ * Pass `href` for URL navigation (renders a `Link variant="icon"` anchor);
120
+ * omit it and pass `onClick` for SPA router navigation (renders an
121
+ * identically styled icon `<button>`). Both modes are keyboard-focusable and
122
+ * carry the "Go back" accessible name by default.
64
123
  */
65
- declare const GlobalLayoutBackLink: React.ForwardRefExoticComponent<GlobalLayoutBackLinkProps & React.RefAttributes<HTMLAnchorElement>>;
66
- interface GlobalLayoutSubtitleProps extends React.ComponentProps<"p"> {
124
+ declare const GlobalLayoutBackLink: React.ForwardRefExoticComponent<GlobalLayoutBackLinkProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
125
+ interface GlobalLayoutSubtitleProps extends Omit<React.ComponentProps<"p">, "color"> {
67
126
  /**
68
127
  * Data hook for automated testing
69
128
  * @default "content-header-subtitle"
@@ -80,6 +139,10 @@ interface GlobalLayoutSubtitleProps extends React.ComponentProps<"p"> {
80
139
  * Muted description text for the page header. Place it as a direct child of
81
140
  * `GlobalLayoutContentHeader` — the header positions it below the title row.
82
141
  * For rich descriptions, pass `asChild` with your own flex row as the child.
142
+ *
143
+ * Sits on the semantic type scale's `text-body-sm` (Inter · Figma 500 · 14/20,
144
+ * rendering one CSS weight lighter per the DS-305 offset) with the muted
145
+ * colour role — de-emphasis is colour-only, never a lighter weight.
83
146
  */
84
147
  declare const GlobalLayoutSubtitle: React.ForwardRefExoticComponent<Omit<GlobalLayoutSubtitleProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
85
148
  interface GlobalLayoutImageProps extends React.ComponentProps<"div"> {
@@ -112,8 +175,30 @@ interface GlobalLayoutContentHeaderProps extends React.ComponentProps<"header">
112
175
  */
113
176
  trackingLabel?: string;
114
177
  }
178
+ /**
179
+ * Page header for the content area. Slots direct children (back link, image,
180
+ * breadcrumb, subtitle, actions) around the title row per the Figma Page
181
+ * Header design.
182
+ *
183
+ * The consumer-supplied page title must be `TypographyHeading level={1}
184
+ * variant="page"` so it sits on the semantic type scale's
185
+ * `text-heading-page` (DS-714) — never a hand-styled heading. Exactly one
186
+ * page title per screen: a second title is a section (`variant="section"`,
187
+ * `text-heading-section`).
188
+ *
189
+ * @example
190
+ * <GlobalLayoutContentHeader dataHook="page-header">
191
+ * <TypographyHeading level={1} variant="page" dataHook="page-title">
192
+ * All Locations
193
+ * </TypographyHeading>
194
+ * <GlobalLayoutActions dataHook="header-actions">
195
+ * <Button dataHook="add-location">Add Location</Button>
196
+ * </GlobalLayoutActions>
197
+ * <GlobalLayoutSubtitle>Manage your business locations.</GlobalLayoutSubtitle>
198
+ * </GlobalLayoutContentHeader>
199
+ */
115
200
  declare const GlobalLayoutContentHeader: React.ForwardRefExoticComponent<Omit<GlobalLayoutContentHeaderProps, "ref"> & React.RefAttributes<HTMLElement>>;
116
- interface GlobalLayoutContentActionsProps extends React.ComponentProps<"div"> {
201
+ interface GlobalLayoutActionsProps extends React.ComponentProps<"div"> {
117
202
  /**
118
203
  * Data hook for automated testing (required)
119
204
  */
@@ -127,8 +212,21 @@ interface GlobalLayoutContentActionsProps extends React.ComponentProps<"div"> {
127
212
  */
128
213
  trackingLabel?: string;
129
214
  }
130
- declare const GlobalLayoutContentActions: React.ForwardRefExoticComponent<Omit<GlobalLayoutContentActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
131
- interface GlobalLayoutContentBodyProps extends React.ComponentProps<"div"> {
215
+ /**
216
+ * Action row for the page header. Place it as a direct child of
217
+ * `GlobalLayoutContentHeader` — the header positions it beside the title row
218
+ * (below it on mobile). Standalone it keeps the legacy desktop-only
219
+ * full-width row.
220
+ */
221
+ declare const GlobalLayoutActions: React.ForwardRefExoticComponent<Omit<GlobalLayoutActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
222
+ /**
223
+ * @deprecated Renamed `GlobalLayoutActions` (DS-855) — the `Content`
224
+ * discriminator was unearned: no sibling actions row exists to discriminate
225
+ * against (DS-809: discriminate siblings only). This alias will be removed in
226
+ * the next major.
227
+ */
228
+ declare const GlobalLayoutContentActions: React.ForwardRefExoticComponent<Omit<GlobalLayoutActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
229
+ interface GlobalLayoutBodyProps extends React.ComponentProps<"div"> {
132
230
  /**
133
231
  * Data hook for automated testing
134
232
  */
@@ -142,7 +240,19 @@ interface GlobalLayoutContentBodyProps extends React.ComponentProps<"div"> {
142
240
  */
143
241
  trackingLabel?: string;
144
242
  }
145
- declare const GlobalLayoutContentBody: React.ForwardRefExoticComponent<Omit<GlobalLayoutContentBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
243
+ /**
244
+ * Main content region below the page header. Carries the content max-width
245
+ * set by `GlobalLayoutContent` and the shared region padding, so full-width
246
+ * treatments on sibling regions (header border, sticky header) stay possible.
247
+ */
248
+ declare const GlobalLayoutBody: React.ForwardRefExoticComponent<Omit<GlobalLayoutBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
249
+ /**
250
+ * @deprecated Renamed `GlobalLayoutBody` (DS-855) — the `Content`
251
+ * discriminator was unearned: no sibling body region exists to discriminate
252
+ * against (DS-809: discriminate siblings only). This alias will be removed in
253
+ * the next major.
254
+ */
255
+ declare const GlobalLayoutContentBody: React.ForwardRefExoticComponent<Omit<GlobalLayoutBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
146
256
  interface GlobalLayoutMobileHeaderProps extends React.ComponentProps<"div"> {
147
257
  /**
148
258
  * Data hook for automated testing (required)
@@ -163,6 +273,14 @@ interface GlobalLayoutMobileHeaderProps extends React.ComponentProps<"div"> {
163
273
  trackingLabel?: string;
164
274
  }
165
275
  declare const GlobalLayoutMobileHeader: React.ForwardRefExoticComponent<Omit<GlobalLayoutMobileHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
166
- export { GlobalLayout, GlobalLayoutSidebar, GlobalLayoutContent, GlobalLayoutContentActions, GlobalLayoutContentHeader, GlobalLayoutBackLink, GlobalLayoutSubtitle, GlobalLayoutImage, GlobalLayoutContentBody, GlobalLayoutMobileHeader, };
167
- export type { GlobalLayoutProps, GlobalLayoutSidebarProps, GlobalLayoutContentProps, GlobalLayoutContentActionsProps, GlobalLayoutContentHeaderProps, GlobalLayoutBackLinkProps, GlobalLayoutSubtitleProps, GlobalLayoutImageProps, GlobalLayoutContentBodyProps, GlobalLayoutMobileHeaderProps, };
276
+ export { GlobalLayout, GlobalLayoutSidebar, GlobalLayoutContent, GlobalLayoutActions, GlobalLayoutContentHeader, GlobalLayoutBackLink, GlobalLayoutSubtitle, GlobalLayoutImage, GlobalLayoutBody, GlobalLayoutMobileHeader, GlobalLayoutContentActions, GlobalLayoutContentBody, };
277
+ export type { GlobalLayoutProps, GlobalLayoutSidebarProps, GlobalLayoutContentProps, GlobalLayoutActionsProps, GlobalLayoutContentHeaderProps, GlobalLayoutBackLinkProps, GlobalLayoutSubtitleProps, GlobalLayoutImageProps, GlobalLayoutBodyProps, GlobalLayoutMobileHeaderProps, GlobalLayoutContentActionsProps, GlobalLayoutContentBodyProps, };
278
+ /**
279
+ * @deprecated Renamed `GlobalLayoutActionsProps` (DS-855).
280
+ */
281
+ type GlobalLayoutContentActionsProps = GlobalLayoutActionsProps;
282
+ /**
283
+ * @deprecated Renamed `GlobalLayoutBodyProps` (DS-855).
284
+ */
285
+ type GlobalLayoutContentBodyProps = GlobalLayoutBodyProps;
168
286
  //# sourceMappingURL=global-layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-layout.d.ts","sourceRoot":"","sources":["../../src/components/global-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC7D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAA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