@brightlocal/ui-components 2.25.0 → 2.27.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 +4 -2
- package/component-meta.json +3809 -182
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +23 -9
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +95 -87
- package/dist/blocks/progress-screen.cjs +1 -0
- package/dist/blocks/progress-screen.d.ts +109 -0
- package/dist/blocks/progress-screen.d.ts.map +1 -0
- package/dist/blocks/progress-screen.js +339 -0
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +155 -153
- package/dist/brand-illustration-motif.d.ts +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +44 -40
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +28 -28
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +42 -41
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +4 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +161 -161
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +155 -4
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +462 -309
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +31 -5
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +276 -194
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +462 -451
- package/dist/lib/motion.cjs +1 -1
- package/dist/lib/motion.js +10 -8
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +5 -2
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +97 -91
- package/dist/list.cjs +1 -1
- package/dist/list.js +65 -63
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +61 -3
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +142 -65
- package/dist/route-progress.cjs +1 -0
- package/dist/route-progress.d.ts +103 -0
- package/dist/route-progress.d.ts.map +1 -0
- package/dist/route-progress.js +106 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +35 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +102 -65
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +11 -15
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +57 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.js +35 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.d.ts.map +1 -1
- package/dist/stepper.js +26 -25
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +6 -2
- package/package.json +15 -6
- package/src/blocks/progress-screen.tsx +481 -0
- package/src/blocks/sidebar.tsx +22 -15
- package/src/components/alert.tsx +68 -33
- package/src/components/breadcrumb.tsx +9 -4
- package/src/components/button.tsx +2 -5
- package/src/components/chip.tsx +4 -3
- package/src/components/combobox.tsx +15 -8
- package/src/components/data-table.tsx +358 -16
- package/src/components/global-layout.tsx +228 -62
- package/src/components/link.tsx +88 -63
- package/src/components/list.tsx +5 -5
- package/src/components/progress.tsx +217 -30
- package/src/components/route-progress.tsx +354 -0
- package/src/components/sheet.tsx +87 -5
- package/src/components/sonner.tsx +3 -12
- package/src/components/spinner.tsx +94 -0
- package/src/components/stepper.tsx +3 -4
- package/src/components/table.tsx +6 -2
- package/src/index.ts +3 -0
- package/dist/browser-entry.d.ts +0 -19
- package/dist/browser-entry.d.ts.map +0 -1
- package/src/browser-entry.ts +0 -99
- package/src/browser-tokens.css +0 -1
package/dist/global-layout.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { ArrowLeft as
|
|
4
|
-
import { cn as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { jsx as n, jsxs as u, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { ArrowLeft as C } from "@brightlocal/icons";
|
|
4
|
+
import { cn as m } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
import { Breadcrumb as R } from "./breadcrumb.js";
|
|
6
|
+
import { Header as g } from "./header.js";
|
|
7
|
+
import { Link as H } from "./link.js";
|
|
8
|
+
import { ScrollArea as j } from "./scroll-area.js";
|
|
9
|
+
import { TypographyMuted as E } from "./typography.js";
|
|
10
|
+
const S = r.forwardRef(
|
|
10
11
|
({
|
|
11
|
-
className:
|
|
12
|
-
maxWidth:
|
|
13
|
-
dataHook:
|
|
14
|
-
trackingEl:
|
|
15
|
-
trackingLabel:
|
|
16
|
-
children:
|
|
17
|
-
...
|
|
18
|
-
},
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
12
|
+
className: t,
|
|
13
|
+
maxWidth: e = "none",
|
|
14
|
+
dataHook: a,
|
|
15
|
+
trackingEl: l,
|
|
16
|
+
trackingLabel: o,
|
|
17
|
+
children: s,
|
|
18
|
+
...d
|
|
19
|
+
}, c) => {
|
|
20
|
+
const f = typeof e == "number" ? `${e}px` : e;
|
|
21
|
+
return /* @__PURE__ */ n(
|
|
22
|
+
j,
|
|
22
23
|
{
|
|
23
|
-
className:
|
|
24
|
-
"h-dvh w-full [&>[data-radix-scroll-area-viewport]>div]:block! [&>[data-radix-scroll-area-viewport]>div]:min-w-0!",
|
|
25
|
-
|
|
24
|
+
className: m(
|
|
25
|
+
"h-dvh w-full [&>[data-radix-scroll-area-viewport]]:p-0! [&>[data-radix-scroll-area-viewport]>div]:block! [&>[data-radix-scroll-area-viewport]>div]:min-w-0!",
|
|
26
|
+
t
|
|
26
27
|
),
|
|
27
|
-
dataHook: `${
|
|
28
|
+
dataHook: `${a}-scroll`,
|
|
28
29
|
scrollOrientation: "both",
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ n(
|
|
30
31
|
"div",
|
|
31
32
|
{
|
|
32
|
-
ref:
|
|
33
|
-
className: "
|
|
34
|
-
"data-hook":
|
|
33
|
+
ref: c,
|
|
34
|
+
className: "flex min-h-dvh w-full flex-col",
|
|
35
|
+
"data-hook": a,
|
|
35
36
|
"data-slot": "global-layout",
|
|
36
|
-
"data-tracking-el":
|
|
37
|
-
"data-tracking-label":
|
|
38
|
-
...
|
|
39
|
-
children: /* @__PURE__ */
|
|
37
|
+
"data-tracking-el": l,
|
|
38
|
+
"data-tracking-label": o,
|
|
39
|
+
...d,
|
|
40
|
+
children: /* @__PURE__ */ n(
|
|
40
41
|
"div",
|
|
41
42
|
{
|
|
42
43
|
className: "mx-auto flex w-full flex-1",
|
|
43
44
|
"data-slot": "global-container",
|
|
44
|
-
style: { maxWidth:
|
|
45
|
-
children:
|
|
45
|
+
style: { maxWidth: f },
|
|
46
|
+
children: s
|
|
46
47
|
}
|
|
47
48
|
)
|
|
48
49
|
}
|
|
@@ -51,217 +52,298 @@ const v = i.forwardRef(
|
|
|
51
52
|
);
|
|
52
53
|
}
|
|
53
54
|
);
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
return /* @__PURE__ */
|
|
55
|
+
S.displayName = "GlobalLayout";
|
|
56
|
+
const B = "288px", M = r.forwardRef(({ className: t, width: e = B, dataHook: a, children: l, ...o }, s) => {
|
|
57
|
+
const d = typeof e == "number" ? `${e}px` : e;
|
|
58
|
+
return /* @__PURE__ */ n(
|
|
58
59
|
"aside",
|
|
59
60
|
{
|
|
60
|
-
ref:
|
|
61
|
-
className:
|
|
61
|
+
ref: s,
|
|
62
|
+
className: m(
|
|
62
63
|
"sticky hidden shrink-0 self-start outline-none lg:block",
|
|
63
|
-
|
|
64
|
+
t
|
|
64
65
|
),
|
|
65
|
-
"data-hook":
|
|
66
|
+
"data-hook": a,
|
|
66
67
|
"data-slot": "sidebar-container",
|
|
67
|
-
...
|
|
68
|
+
...o,
|
|
68
69
|
style: {
|
|
69
|
-
width:
|
|
70
|
-
top:
|
|
71
|
-
height: "
|
|
72
|
-
...
|
|
70
|
+
width: d,
|
|
71
|
+
top: 0,
|
|
72
|
+
height: "100dvh",
|
|
73
|
+
...o.style
|
|
73
74
|
},
|
|
74
|
-
children:
|
|
75
|
+
children: l
|
|
75
76
|
}
|
|
76
77
|
);
|
|
77
78
|
});
|
|
78
|
-
|
|
79
|
-
const
|
|
79
|
+
M.displayName = "GlobalLayoutSidebar";
|
|
80
|
+
const _ = r.forwardRef(
|
|
80
81
|
({
|
|
81
|
-
className:
|
|
82
|
-
maxWidth:
|
|
83
|
-
dataHook:
|
|
84
|
-
children:
|
|
85
|
-
...
|
|
86
|
-
},
|
|
87
|
-
const
|
|
88
|
-
return /* @__PURE__ */
|
|
82
|
+
className: t,
|
|
83
|
+
maxWidth: e = "var(--ds-breakpoint-lg)",
|
|
84
|
+
dataHook: a,
|
|
85
|
+
children: l,
|
|
86
|
+
...o
|
|
87
|
+
}, s) => {
|
|
88
|
+
const d = typeof e == "number" ? `${e}px` : e;
|
|
89
|
+
return /* @__PURE__ */ n(
|
|
89
90
|
"div",
|
|
90
91
|
{
|
|
91
|
-
ref:
|
|
92
|
-
className:
|
|
93
|
-
"
|
|
94
|
-
|
|
92
|
+
ref: s,
|
|
93
|
+
className: m(
|
|
94
|
+
"pb-section-sm lg:pt-section-sm flex min-w-0 flex-1 flex-col gap-6",
|
|
95
|
+
t
|
|
95
96
|
),
|
|
96
|
-
"data-hook":
|
|
97
|
+
"data-hook": a,
|
|
97
98
|
"data-slot": "content-wrapper",
|
|
98
|
-
style: { "--content-max-width":
|
|
99
|
-
...
|
|
100
|
-
children:
|
|
99
|
+
style: { "--content-max-width": d },
|
|
100
|
+
...o,
|
|
101
|
+
children: l
|
|
101
102
|
}
|
|
102
103
|
);
|
|
103
104
|
}
|
|
104
105
|
);
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
_.displayName = "GlobalLayoutContent";
|
|
107
|
+
const x = "px-4 md:px-6 lg:px-section-xs", w = r.forwardRef(({ dataHook: t, ariaLabel: e, href: a, onClick: l, ...o }, s) => /* @__PURE__ */ n(
|
|
108
|
+
H,
|
|
108
109
|
{
|
|
109
|
-
ref:
|
|
110
|
-
"aria-label":
|
|
110
|
+
ref: s,
|
|
111
|
+
"aria-label": e || "Go back",
|
|
111
112
|
"data-slot": "content-header-back-link",
|
|
112
|
-
dataHook:
|
|
113
|
-
href:
|
|
113
|
+
dataHook: t ?? "content-header-back-link",
|
|
114
|
+
href: a ?? "#",
|
|
114
115
|
variant: "icon",
|
|
115
|
-
onClick: (
|
|
116
|
-
|
|
116
|
+
onClick: (c) => {
|
|
117
|
+
a === void 0 && c.preventDefault(), l?.(c);
|
|
117
118
|
},
|
|
118
|
-
...
|
|
119
|
-
children: /* @__PURE__ */
|
|
119
|
+
...o,
|
|
120
|
+
children: /* @__PURE__ */ n(C, { "aria-hidden": "true" })
|
|
120
121
|
}
|
|
121
122
|
));
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
|
|
123
|
+
w.displayName = "GlobalLayoutBackLink";
|
|
124
|
+
const k = r.forwardRef(({ dataHook: t, asChild: e, ...a }, l) => /* @__PURE__ */ n(
|
|
125
|
+
E,
|
|
125
126
|
{
|
|
126
|
-
ref:
|
|
127
|
+
ref: l,
|
|
128
|
+
asChild: e,
|
|
127
129
|
"data-slot": "content-header-subtitle",
|
|
128
|
-
dataHook:
|
|
130
|
+
dataHook: t ?? "content-header-subtitle",
|
|
129
131
|
...a
|
|
130
132
|
}
|
|
131
133
|
));
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
k.displayName = "GlobalLayoutSubtitle";
|
|
135
|
+
const v = r.forwardRef(({ className: t, dataHook: e, children: a, ...l }, o) => /* @__PURE__ */ n(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
ref: o,
|
|
139
|
+
className: m(
|
|
140
|
+
"aspect-[3/2] h-12 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover",
|
|
141
|
+
t
|
|
142
|
+
),
|
|
143
|
+
"data-hook": e ?? "content-header-image",
|
|
144
|
+
"data-slot": "content-header-image",
|
|
145
|
+
...l,
|
|
146
|
+
children: a
|
|
147
|
+
}
|
|
148
|
+
));
|
|
149
|
+
v.displayName = "GlobalLayoutImage";
|
|
150
|
+
const A = r.forwardRef(
|
|
151
|
+
({ className: t, dataHook: e, trackingEl: a, trackingLabel: l, children: o, ...s }, d) => {
|
|
152
|
+
const c = [], f = [], y = [], p = [], b = [], h = [];
|
|
153
|
+
return r.Children.forEach(o, (i) => {
|
|
154
|
+
r.isValidElement(i) && i.type === w ? c.push(i) : r.isValidElement(i) && i.type === v ? f.push(i) : r.isValidElement(i) && i.type === R ? y.push(i) : r.isValidElement(i) && i.type === k ? p.push(i) : r.isValidElement(i) && i.type === L ? b.push(i) : h.push(i);
|
|
155
|
+
}), c.length === 0 && f.length === 0 && y.length === 0 && p.length === 0 && b.length === 0 ? /* @__PURE__ */ n(
|
|
156
|
+
"div",
|
|
140
157
|
{
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
158
|
+
className: m("w-full", x),
|
|
159
|
+
"data-slot": "content-header-region",
|
|
160
|
+
children: /* @__PURE__ */ n(
|
|
161
|
+
g,
|
|
162
|
+
{
|
|
163
|
+
ref: d,
|
|
164
|
+
className: m(
|
|
165
|
+
"mx-auto w-full flex-wrap justify-between gap-4 max-md:flex-col max-md:items-start",
|
|
166
|
+
t
|
|
167
|
+
),
|
|
168
|
+
"data-slot": "content-header",
|
|
169
|
+
dataHook: e,
|
|
170
|
+
style: { maxWidth: "var(--ds-breakpoint-lg)" },
|
|
171
|
+
trackingEl: a,
|
|
172
|
+
trackingLabel: l,
|
|
173
|
+
...s,
|
|
174
|
+
children: o
|
|
175
|
+
}
|
|
176
|
+
)
|
|
153
177
|
}
|
|
154
|
-
) : /* @__PURE__ */
|
|
155
|
-
|
|
178
|
+
) : /* @__PURE__ */ n(
|
|
179
|
+
"div",
|
|
156
180
|
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
181
|
+
className: m("w-full", x),
|
|
182
|
+
"data-slot": "content-header-region",
|
|
183
|
+
children: /* @__PURE__ */ u(
|
|
184
|
+
g,
|
|
185
|
+
{
|
|
186
|
+
ref: d,
|
|
187
|
+
className: m("mx-auto w-full items-start gap-4", t),
|
|
188
|
+
"data-slot": "content-header",
|
|
189
|
+
dataHook: e,
|
|
190
|
+
style: { maxWidth: "var(--ds-breakpoint-lg)" },
|
|
191
|
+
trackingEl: a,
|
|
192
|
+
trackingLabel: l,
|
|
193
|
+
...s,
|
|
194
|
+
children: [
|
|
195
|
+
c,
|
|
196
|
+
f,
|
|
197
|
+
/* @__PURE__ */ u(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
className: "flex min-w-0 flex-1 flex-col gap-2",
|
|
201
|
+
"data-slot": "content-header-body",
|
|
202
|
+
children: [
|
|
203
|
+
y,
|
|
204
|
+
b.length > 0 ? (
|
|
205
|
+
// With a slotted GlobalLayoutContentActions the header follows
|
|
206
|
+
// the Figma Page Header structure: a text block (title +
|
|
207
|
+
// description) with the actions beside it — and below it on
|
|
208
|
+
// mobile, so the action lands under the description.
|
|
209
|
+
/* @__PURE__ */ u(
|
|
210
|
+
"div",
|
|
211
|
+
{
|
|
212
|
+
className: "flex w-full flex-wrap items-start justify-between gap-4 max-md:flex-col",
|
|
213
|
+
"data-slot": "content-header-title",
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ u(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
className: "flex min-w-0 flex-1 flex-col gap-2",
|
|
219
|
+
"data-slot": "content-header-text",
|
|
220
|
+
children: [
|
|
221
|
+
h,
|
|
222
|
+
p
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
/* @__PURE__ */ n(N.Provider, { value: !0, children: b })
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
) : /* @__PURE__ */ u(G, { children: [
|
|
231
|
+
/* @__PURE__ */ n(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
className: "flex w-full flex-wrap items-center justify-between gap-4 max-md:flex-col max-md:items-start",
|
|
235
|
+
"data-slot": "content-header-title",
|
|
236
|
+
children: h
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
p
|
|
240
|
+
] })
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
)
|
|
186
247
|
}
|
|
187
248
|
);
|
|
188
249
|
}
|
|
189
250
|
);
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
({ className:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
251
|
+
A.displayName = "GlobalLayoutContentHeader";
|
|
252
|
+
const N = r.createContext(!1), L = r.forwardRef(
|
|
253
|
+
({ className: t, dataHook: e, trackingEl: a, trackingLabel: l, children: o, ...s }, d) => {
|
|
254
|
+
const c = r.useContext(N), f = /* @__PURE__ */ n(
|
|
255
|
+
"div",
|
|
256
|
+
{
|
|
257
|
+
ref: d,
|
|
258
|
+
className: m(
|
|
259
|
+
c ? "flex shrink-0 items-center gap-2" : "mx-auto hidden w-full items-center justify-end gap-2 lg:flex",
|
|
260
|
+
t
|
|
261
|
+
),
|
|
262
|
+
"data-hook": e,
|
|
263
|
+
"data-slot": "content-actions",
|
|
264
|
+
"data-tracking-el": a,
|
|
265
|
+
"data-tracking-label": l,
|
|
266
|
+
style: c ? void 0 : { maxWidth: "var(--ds-breakpoint-lg)" },
|
|
267
|
+
...s,
|
|
268
|
+
children: o
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
return c ? f : /* @__PURE__ */ n(
|
|
272
|
+
"div",
|
|
273
|
+
{
|
|
274
|
+
className: m("w-full", x),
|
|
275
|
+
"data-slot": "content-actions-region",
|
|
276
|
+
children: f
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
209
280
|
);
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
({ className:
|
|
281
|
+
L.displayName = "GlobalLayoutContentActions";
|
|
282
|
+
const I = r.forwardRef(
|
|
283
|
+
({ className: t, dataHook: e, trackingEl: a, trackingLabel: l, children: o, ...s }, d) => /* @__PURE__ */ n(
|
|
213
284
|
"div",
|
|
214
285
|
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
286
|
+
className: m("flex w-full flex-1 flex-col", x),
|
|
287
|
+
"data-slot": "content-body-region",
|
|
288
|
+
children: /* @__PURE__ */ n(
|
|
289
|
+
"div",
|
|
290
|
+
{
|
|
291
|
+
ref: d,
|
|
292
|
+
className: m("mx-auto flex w-full flex-1 flex-col gap-6", t),
|
|
293
|
+
"data-hook": e,
|
|
294
|
+
"data-slot": "content-body",
|
|
295
|
+
"data-tracking-el": a,
|
|
296
|
+
"data-tracking-label": l,
|
|
297
|
+
style: { maxWidth: "var(--content-max-width)" },
|
|
298
|
+
...s,
|
|
299
|
+
children: o
|
|
300
|
+
}
|
|
301
|
+
)
|
|
224
302
|
}
|
|
225
303
|
)
|
|
226
304
|
);
|
|
227
|
-
|
|
228
|
-
const
|
|
305
|
+
I.displayName = "GlobalLayoutContentBody";
|
|
306
|
+
const V = r.forwardRef(
|
|
229
307
|
({
|
|
230
|
-
className:
|
|
231
|
-
dataHook:
|
|
232
|
-
ariaLabel:
|
|
233
|
-
trackingEl:
|
|
234
|
-
trackingLabel:
|
|
235
|
-
children:
|
|
236
|
-
...
|
|
237
|
-
},
|
|
308
|
+
className: t,
|
|
309
|
+
dataHook: e,
|
|
310
|
+
ariaLabel: a,
|
|
311
|
+
trackingEl: l,
|
|
312
|
+
trackingLabel: o,
|
|
313
|
+
children: s,
|
|
314
|
+
...d
|
|
315
|
+
}, c) => /* @__PURE__ */ n(
|
|
238
316
|
"div",
|
|
239
317
|
{
|
|
240
|
-
ref:
|
|
241
|
-
"aria-label":
|
|
242
|
-
className:
|
|
243
|
-
|
|
244
|
-
|
|
318
|
+
ref: c,
|
|
319
|
+
"aria-label": a ?? "Mobile navigation",
|
|
320
|
+
className: m(
|
|
321
|
+
// The 2px negative margin pulls a slotted SidebarTrigger's box
|
|
322
|
+
// left by its icon inset so the burger glyph — not the invisible
|
|
323
|
+
// button box — sits on the content edge.
|
|
324
|
+
"flex w-full items-center justify-start gap-2 px-4 pt-6 pb-2 md:px-6 lg:hidden [&_[data-slot=sidebar-trigger]]:-ml-0.5",
|
|
325
|
+
t
|
|
245
326
|
),
|
|
246
|
-
"data-hook":
|
|
327
|
+
"data-hook": e,
|
|
247
328
|
"data-slot": "mobile-header",
|
|
248
|
-
"data-tracking-el":
|
|
249
|
-
"data-tracking-label":
|
|
329
|
+
"data-tracking-el": l,
|
|
330
|
+
"data-tracking-label": o,
|
|
250
331
|
role: "toolbar",
|
|
251
|
-
...
|
|
252
|
-
children:
|
|
332
|
+
...d,
|
|
333
|
+
children: s
|
|
253
334
|
}
|
|
254
335
|
)
|
|
255
336
|
);
|
|
256
|
-
|
|
337
|
+
V.displayName = "GlobalLayoutMobileHeader";
|
|
257
338
|
export {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
339
|
+
S as GlobalLayout,
|
|
340
|
+
w as GlobalLayoutBackLink,
|
|
341
|
+
_ as GlobalLayoutContent,
|
|
342
|
+
L as GlobalLayoutContentActions,
|
|
343
|
+
I as GlobalLayoutContentBody,
|
|
344
|
+
A as GlobalLayoutContentHeader,
|
|
345
|
+
v as GlobalLayoutImage,
|
|
346
|
+
V as GlobalLayoutMobileHeader,
|
|
347
|
+
M as GlobalLayoutSidebar,
|
|
348
|
+
k as GlobalLayoutSubtitle
|
|
267
349
|
};
|