@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.
- package/README.md +7 -1
- package/component-meta.json +568 -143
- package/deprecations.json +298 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +36 -0
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +74 -61
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.js +18 -18
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +11 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +31 -28
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +4 -4
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +15 -11
- package/dist/blocks/empty-state.cjs +1 -0
- package/dist/blocks/empty-state.d.ts +172 -0
- package/dist/blocks/empty-state.d.ts.map +1 -0
- package/dist/blocks/empty-state.js +147 -0
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +124 -108
- package/dist/blocks/progress-state.cjs +1 -0
- package/dist/blocks/{progress-screen.d.ts → progress-state.d.ts} +30 -18
- package/dist/blocks/progress-state.d.ts.map +1 -0
- package/dist/blocks/{progress-screen.js → progress-state.js} +100 -71
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +160 -161
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.d.ts +36 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.js +47 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +12 -12
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +37 -38
- package/dist/callout.cjs +1 -1
- package/dist/callout.d.ts +24 -2
- package/dist/callout.d.ts.map +1 -1
- package/dist/callout.js +57 -55
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +42 -3
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +102 -91
- package/dist/chart-empty.cjs +1 -0
- package/dist/chart-empty.d.ts +59 -0
- package/dist/chart-empty.d.ts.map +1 -0
- package/dist/chart-empty.js +29 -0
- package/dist/chart.cjs +6 -6
- package/dist/chart.d.ts +46 -13
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +172 -157
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +38 -4
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +100 -84
- package/dist/combobox.cjs +2 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +81 -79
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +23 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +248 -225
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +26 -29
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +75 -10
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +346 -334
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +13 -5
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +54 -53
- package/dist/description.cjs +1 -1
- package/dist/description.js +5 -5
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +20 -20
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +8 -11
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +17 -20
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +8 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +96 -65
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +130 -12
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +146 -127
- package/dist/grid.cjs +1 -0
- package/dist/grid.d.ts +56 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +32 -0
- package/dist/header.d.ts +13 -0
- package/dist/header.d.ts.map +1 -1
- package/dist/hooks/use-delayed-pending.cjs +1 -0
- package/dist/hooks/use-delayed-pending.d.ts +34 -0
- package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
- package/dist/hooks/use-delayed-pending.js +17 -0
- package/dist/hooks/use-mobile.cjs +1 -0
- package/dist/hooks/use-mobile.js +8 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +554 -527
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +25 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +9 -9
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +9 -9
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +17 -9
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +73 -72
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +25 -28
- package/dist/lib/block-illustration.cjs +1 -0
- package/dist/lib/block-illustration.d.ts +28 -0
- package/dist/lib/block-illustration.d.ts.map +1 -0
- package/dist/lib/block-illustration.js +21 -0
- package/dist/lib/empty-canvas.cjs +1 -0
- package/dist/lib/empty-canvas.d.ts +27 -0
- package/dist/lib/empty-canvas.d.ts.map +1 -0
- package/dist/lib/empty-canvas.js +62 -0
- package/dist/lib/empty-chip.cjs +1 -0
- package/dist/lib/empty-chip.d.ts +4 -0
- package/dist/lib/empty-chip.d.ts.map +1 -0
- package/dist/lib/empty-chip.js +13 -0
- package/dist/lib/optical-center.cjs +1 -0
- package/dist/lib/optical-center.d.ts +12 -0
- package/dist/lib/optical-center.d.ts.map +1 -0
- package/dist/lib/optical-center.js +11 -0
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +28 -5
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +62 -58
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts +60 -2
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +187 -164
- package/dist/media-empty.cjs +1 -0
- package/dist/media-empty.d.ts +72 -0
- package/dist/media-empty.d.ts.map +1 -0
- package/dist/media-empty.js +45 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +17 -20
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +7 -7
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +130 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +193 -102
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -26
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +79 -118
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +15 -6
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +38 -36
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +13 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +92 -87
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +8 -8
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +38 -3
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +43 -20
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.js +26 -26
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +40 -40
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +31 -28
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-reveal-motion.d.ts +10 -0
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +11 -11
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +8 -8
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +8 -8
- package/dist/typography-heading.cjs +1 -0
- package/dist/typography-heading.d.ts +129 -0
- package/dist/typography-heading.d.ts.map +1 -0
- package/dist/typography-heading.js +95 -0
- package/dist/typography-text.cjs +1 -0
- package/dist/typography-text.d.ts +127 -0
- package/dist/typography-text.d.ts.map +1 -0
- package/dist/typography-text.js +92 -0
- package/dist/typography.d.ts +13 -0
- package/dist/typography.d.ts.map +1 -1
- package/package.json +35 -7
- package/src/blocks/empty-state.tsx +412 -0
- package/src/blocks/input-list.tsx +66 -36
- package/src/blocks/{progress-screen.tsx → progress-state.tsx} +154 -93
- package/src/blocks/sidebar.tsx +25 -26
- package/src/components/accordion.tsx +82 -27
- package/src/components/alert-dialog.tsx +2 -2
- package/src/components/alert.tsx +27 -13
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +8 -4
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button-group.tsx +112 -0
- package/src/components/button.tsx +4 -4
- package/src/components/calendar.tsx +5 -6
- package/src/components/callout.tsx +48 -15
- package/src/components/card.tsx +89 -19
- package/src/components/chart-empty.tsx +116 -0
- package/src/components/chart.tsx +103 -32
- package/src/components/chip.tsx +88 -13
- package/src/components/combobox.tsx +12 -10
- package/src/components/command.tsx +64 -13
- package/src/components/context-menu.tsx +6 -9
- package/src/components/data-table.tsx +135 -20
- package/src/components/date-picker.tsx +18 -7
- package/src/components/description.tsx +1 -1
- package/src/components/dialog.tsx +2 -2
- package/src/components/drawer.tsx +2 -5
- package/src/components/dropdown-menu.tsx +8 -11
- package/src/components/field.tsx +89 -16
- package/src/components/global-layout.tsx +210 -39
- package/src/components/grid.tsx +130 -0
- package/src/components/header.tsx +13 -0
- package/src/components/hover-card.tsx +1 -1
- package/src/components/input-chip.tsx +1 -1
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input-password.tsx +24 -12
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +10 -13
- package/src/components/list.tsx +13 -9
- package/src/components/map.tsx +101 -5
- package/src/components/media-empty.tsx +156 -0
- package/src/components/menubar.tsx +7 -10
- package/src/components/navigation-menu.tsx +1 -1
- package/src/components/pagination.tsx +286 -1
- package/src/components/progress.tsx +35 -113
- package/src/components/scroll-area.tsx +23 -10
- package/src/components/select.tsx +35 -10
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +2 -2
- package/src/components/skeleton.tsx +78 -7
- package/src/components/sonner.tsx +2 -2
- package/src/components/stepper.tsx +3 -3
- package/src/components/table.tsx +6 -3
- package/src/components/tabs.tsx +1 -1
- package/src/components/text-reveal-motion.tsx +10 -0
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle.tsx +1 -1
- package/src/components/tooltip.tsx +1 -1
- package/src/components/typography-heading.tsx +253 -0
- package/src/components/typography-text.tsx +250 -0
- package/src/components/typography.tsx +13 -0
- package/src/hooks/use-delayed-pending.ts +60 -0
- package/src/index.ts +11 -1
- package/src/lib/block-illustration.tsx +88 -0
- package/src/lib/empty-canvas.tsx +128 -0
- package/src/lib/empty-chip.ts +24 -0
- package/src/lib/optical-center.tsx +45 -0
- package/src/lib/utils.ts +26 -0
- package/dist/blocks/progress-screen.cjs +0 -1
- package/dist/blocks/progress-screen.d.ts.map +0 -1
package/dist/global-layout.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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,
|
|
167
|
-
export type { GlobalLayoutProps, GlobalLayoutSidebarProps, GlobalLayoutContentProps,
|
|
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;
|
|
1
|
+
{"version":3,"file":"global-layout.d.ts","sourceRoot":"","sources":["../../src/components/global-layout.tsx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