@the-portland-company/shell 0.88.0 → 0.90.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/CHANGELOG.md +24 -0
- package/README.md +10 -4
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.d.cts +1 -1
- package/dist/app-chrome.d.ts +1 -1
- package/dist/app-chrome.js +3 -3
- package/dist/chrome.css +20 -0
- package/dist/{chunk-2ACN7HQC.js → chunk-LZ5TLJDG.js} +4 -10
- package/dist/chunk-LZ5TLJDG.js.map +1 -0
- package/dist/{chunk-7WSGW5CC.js → chunk-VBDI7UZS.js} +216 -74
- package/dist/chunk-VBDI7UZS.js.map +1 -0
- package/dist/{index-DEiOABW2.d.ts → index-C3jzqN9K.d.ts} +84 -7
- package/dist/{index-tfcLFAni.d.cts → index-CaMJSRDb.d.cts} +84 -7
- package/dist/index.cjs +218 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +202 -64
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +1 -1
- package/dist/native.d.ts +1 -1
- package/dist/native.js +2 -2
- package/eslint/index.cjs +15 -2
- package/package.json +1 -1
- package/dist/chunk-2ACN7HQC.js.map +0 -1
- package/dist/chunk-7WSGW5CC.js.map +0 -1
|
@@ -1,33 +1,91 @@
|
|
|
1
1
|
import { readThemeCookie, THEME_STORAGE_KEY, isThemePreference, applyThemePreference, readPendingThemeChoice, writeThemeCookie, clearPendingThemeChoice, markThemeChoicePending } from './chunk-BHRVZPZ7.js';
|
|
2
|
+
import clsx from 'clsx';
|
|
2
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
4
|
-
import { forwardRef, useId, createContext, useState, useEffect, useRef, useContext, useMemo, useCallback, useSyncExternalStore } from 'react';
|
|
4
|
+
import { forwardRef, useId, useRef, useCallback, useEffect, createContext, useState, useContext, useMemo, useSyncExternalStore } from 'react';
|
|
5
5
|
import { FiUser, FiSettings, FiMessageSquare, FiMail, FiInfo, FiSun, FiMoon, FiHelpCircle, FiLifeBuoy, FiAlertCircle, FiAlertTriangle, FiBell, FiGrid, FiZap, FiBatteryCharging, FiBattery } from 'react-icons/fi';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
|
|
8
|
+
var PADDING = {
|
|
9
|
+
none: "p-0",
|
|
10
|
+
sm: "p-4",
|
|
11
|
+
md: "p-6",
|
|
12
|
+
lg: "p-8"
|
|
13
|
+
};
|
|
8
14
|
function Card({
|
|
9
15
|
title,
|
|
16
|
+
subtitle,
|
|
17
|
+
aside,
|
|
18
|
+
actions,
|
|
19
|
+
footer,
|
|
10
20
|
children,
|
|
21
|
+
padding = "md",
|
|
22
|
+
bodyClassName,
|
|
11
23
|
minH,
|
|
12
24
|
className,
|
|
13
25
|
style,
|
|
14
26
|
...props
|
|
15
27
|
}) {
|
|
28
|
+
const structured = Boolean(subtitle || aside || actions || footer || bodyClassName);
|
|
29
|
+
const surface = "rounded-lg border border-[color:var(--app-card-border,var(--color-border))] bg-[color:var(--app-card-bg,var(--color-panel))] text-[color:var(--app-card-fg,var(--color-text))] shadow-sm";
|
|
30
|
+
if (!structured) {
|
|
31
|
+
return /* @__PURE__ */ jsxs(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
"data-shell-card": "",
|
|
35
|
+
className: clsx(surface, PADDING[padding], className),
|
|
36
|
+
style: { minHeight: minH, ...style },
|
|
37
|
+
...props,
|
|
38
|
+
children: [
|
|
39
|
+
title ? /* @__PURE__ */ jsx("h3", { className: "mb-4 text-lg font-semibold", children: title }) : null,
|
|
40
|
+
children
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
const hasHeader = Boolean(title || subtitle || aside || actions);
|
|
46
|
+
const divider = "border-[color:var(--app-card-border,var(--color-border))]";
|
|
16
47
|
return /* @__PURE__ */ jsxs(
|
|
17
48
|
"div",
|
|
18
49
|
{
|
|
19
|
-
|
|
50
|
+
"data-shell-card": "",
|
|
51
|
+
"data-shell-card-structured": "",
|
|
52
|
+
className: clsx(surface, "overflow-hidden", className),
|
|
20
53
|
style: { minHeight: minH, ...style },
|
|
21
54
|
...props,
|
|
22
55
|
children: [
|
|
23
|
-
|
|
24
|
-
|
|
56
|
+
hasHeader ? /* @__PURE__ */ jsxs("div", { className: clsx("flex flex-wrap items-start justify-between gap-3 border-b px-5 py-4", divider), children: [
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
58
|
+
title ? /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold", children: title }) : null,
|
|
59
|
+
subtitle ? /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-sm text-[color:var(--app-card-fg-muted,var(--color-text-muted))]", children: subtitle }) : null
|
|
60
|
+
] }),
|
|
61
|
+
aside || actions ? /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
62
|
+
aside,
|
|
63
|
+
actions
|
|
64
|
+
] }) : null
|
|
65
|
+
] }) : null,
|
|
66
|
+
/* @__PURE__ */ jsx("div", { className: bodyClassName ?? PADDING[padding], children }),
|
|
67
|
+
footer ? /* @__PURE__ */ jsx("div", { className: clsx("border-t px-5 py-3", divider), children: footer }) : null
|
|
25
68
|
]
|
|
26
69
|
}
|
|
27
70
|
);
|
|
28
71
|
}
|
|
29
72
|
function FormColumn({ children, className }) {
|
|
30
|
-
return /* @__PURE__ */ jsx("div", { "data-shell-form-column": "", className:
|
|
73
|
+
return /* @__PURE__ */ jsx("div", { "data-shell-form-column": "", className: clsx("w-full max-w-[960px]", className), children });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// src/lib/deprecation.ts
|
|
77
|
+
var warned = /* @__PURE__ */ new Set();
|
|
78
|
+
function isDev() {
|
|
79
|
+
try {
|
|
80
|
+
return typeof process !== "undefined" && process.env?.NODE_ENV !== "production";
|
|
81
|
+
} catch {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function warnDeprecated(key, message) {
|
|
86
|
+
if (!isDev() || warned.has(key)) return;
|
|
87
|
+
warned.add(key);
|
|
88
|
+
console.warn(`[@the-portland-company/shell] ${message}`);
|
|
31
89
|
}
|
|
32
90
|
var VARIANT_CLASS = {
|
|
33
91
|
primary: "border border-transparent bg-[color:var(--app-btn-primary-bg,var(--color-accent))] text-[color:var(--app-btn-primary-fg,var(--color-white))] hover:bg-[color:var(--app-btn-primary-bg-hover,var(--color-accent-hover))]",
|
|
@@ -67,7 +125,7 @@ var Button = forwardRef(function Button2({
|
|
|
67
125
|
"data-shell-button": "",
|
|
68
126
|
"data-variant": variant,
|
|
69
127
|
"aria-busy": loading || void 0,
|
|
70
|
-
className:
|
|
128
|
+
className: clsx(
|
|
71
129
|
"inline-flex items-center justify-center gap-2 rounded-[5px] px-3 text-sm font-semibold no-underline transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--app-field-focus,var(--color-accent))] focus-visible:ring-offset-2",
|
|
72
130
|
SIZE_CLASS[size],
|
|
73
131
|
VARIANT_CLASS[variant],
|
|
@@ -104,7 +162,7 @@ function FormField({
|
|
|
104
162
|
className,
|
|
105
163
|
children
|
|
106
164
|
}) {
|
|
107
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
165
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx("flex w-full flex-col gap-1", className), children: [
|
|
108
166
|
label ? /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "text-sm font-semibold text-[color:var(--color-text)]", children: [
|
|
109
167
|
label,
|
|
110
168
|
required ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: " *" }) : null
|
|
@@ -153,7 +211,7 @@ var Input = forwardRef(function Input2({ label, helperText, error, invalid, clas
|
|
|
153
211
|
"data-shell-field": "",
|
|
154
212
|
"aria-invalid": isInvalid || void 0,
|
|
155
213
|
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
156
|
-
className:
|
|
214
|
+
className: clsx(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
|
|
157
215
|
...props
|
|
158
216
|
}
|
|
159
217
|
)
|
|
@@ -183,7 +241,7 @@ var Select = forwardRef(function Select2({ label, helperText, error, invalid, cl
|
|
|
183
241
|
"data-shell-field": "",
|
|
184
242
|
"aria-invalid": isInvalid || void 0,
|
|
185
243
|
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
186
|
-
className:
|
|
244
|
+
className: clsx(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
|
|
187
245
|
...props,
|
|
188
246
|
children
|
|
189
247
|
}
|
|
@@ -214,7 +272,7 @@ var Textarea = forwardRef(function Textarea2({ label, helperText, error, invalid
|
|
|
214
272
|
"data-shell-field": "",
|
|
215
273
|
"aria-invalid": isInvalid || void 0,
|
|
216
274
|
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
217
|
-
className:
|
|
275
|
+
className: clsx(FIELD_BASE, "min-h-[88px] py-3", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
|
|
218
276
|
...props
|
|
219
277
|
}
|
|
220
278
|
)
|
|
@@ -222,21 +280,118 @@ var Textarea = forwardRef(function Textarea2({ label, helperText, error, invalid
|
|
|
222
280
|
);
|
|
223
281
|
});
|
|
224
282
|
var Textarea_default = Textarea;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
283
|
+
var Checkbox = forwardRef(function Checkbox2({
|
|
284
|
+
label,
|
|
285
|
+
description,
|
|
286
|
+
indeterminate,
|
|
287
|
+
invalid,
|
|
288
|
+
className,
|
|
289
|
+
wrapperClassName,
|
|
290
|
+
id,
|
|
291
|
+
disabled,
|
|
292
|
+
"aria-describedby": ariaDescribedBy,
|
|
293
|
+
...props
|
|
294
|
+
}, ref) {
|
|
295
|
+
const autoId = useId();
|
|
296
|
+
const fieldId = id ?? autoId;
|
|
297
|
+
const descId = description ? `${fieldId}-description` : void 0;
|
|
298
|
+
const inner = useRef(null);
|
|
299
|
+
const setRef = useCallback(
|
|
300
|
+
(node) => {
|
|
301
|
+
inner.current = node;
|
|
302
|
+
if (typeof ref === "function") ref(node);
|
|
303
|
+
else if (ref) ref.current = node;
|
|
304
|
+
},
|
|
305
|
+
[ref]
|
|
306
|
+
);
|
|
307
|
+
useEffect(() => {
|
|
308
|
+
if (inner.current) inner.current.indeterminate = Boolean(indeterminate);
|
|
309
|
+
}, [indeterminate]);
|
|
310
|
+
const describedBy2 = [descId, ariaDescribedBy].filter(Boolean).join(" ") || void 0;
|
|
311
|
+
return /* @__PURE__ */ jsxs(
|
|
312
|
+
"label",
|
|
313
|
+
{
|
|
314
|
+
htmlFor: fieldId,
|
|
315
|
+
"data-shell-checkbox": "",
|
|
316
|
+
className: clsx(
|
|
317
|
+
"flex min-h-[44px] items-start gap-3 py-[10px] text-sm text-[color:var(--app-card-fg,var(--color-text))]",
|
|
318
|
+
disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
319
|
+
wrapperClassName
|
|
320
|
+
),
|
|
321
|
+
children: [
|
|
322
|
+
/* @__PURE__ */ jsx(
|
|
323
|
+
"input",
|
|
324
|
+
{
|
|
325
|
+
...props,
|
|
326
|
+
ref: setRef,
|
|
327
|
+
id: fieldId,
|
|
328
|
+
type: "checkbox",
|
|
329
|
+
disabled,
|
|
330
|
+
"data-shell-field": "",
|
|
331
|
+
"aria-invalid": invalid || void 0,
|
|
332
|
+
"aria-describedby": describedBy2,
|
|
333
|
+
className: clsx(
|
|
334
|
+
"mt-[2px] h-5 w-5 shrink-0 rounded-[5px] border focus:outline-none focus-visible:ring-2",
|
|
335
|
+
"accent-[color:var(--color-accent-bg-safe,var(--color-accent))]",
|
|
336
|
+
"focus-visible:ring-[color:var(--app-field-focus,var(--color-accent))]",
|
|
337
|
+
invalid ? "border-[color:var(--chrome-danger,var(--color-race-red))] outline outline-2 outline-[color:var(--chrome-danger,var(--color-race-red))]" : "border-[color:var(--app-field-border,var(--color-border))]",
|
|
338
|
+
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
339
|
+
className
|
|
340
|
+
)
|
|
341
|
+
}
|
|
342
|
+
),
|
|
343
|
+
label || description ? /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
344
|
+
label ? /* @__PURE__ */ jsx("span", { className: "block font-medium", children: label }) : null,
|
|
345
|
+
description ? /* @__PURE__ */ jsx(
|
|
346
|
+
"span",
|
|
347
|
+
{
|
|
348
|
+
id: descId,
|
|
349
|
+
className: "block text-xs text-[color:var(--app-card-fg-muted,var(--color-text-muted))]",
|
|
350
|
+
children: description
|
|
351
|
+
}
|
|
352
|
+
) : null
|
|
353
|
+
] }) : null
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
});
|
|
358
|
+
var Checkbox_default = Checkbox;
|
|
359
|
+
var FileInput = forwardRef(function FileInput2({ label, helperText, error, invalid, className, wrapperClassName, id, required, "aria-describedby": ariaDescribedBy, ...props }, ref) {
|
|
360
|
+
const autoId = useId();
|
|
361
|
+
const fieldId = id ?? autoId;
|
|
362
|
+
const isInvalid = Boolean(error) || Boolean(invalid);
|
|
363
|
+
return /* @__PURE__ */ jsx(
|
|
364
|
+
FormField,
|
|
365
|
+
{
|
|
366
|
+
id: fieldId,
|
|
367
|
+
label,
|
|
368
|
+
helperText,
|
|
369
|
+
error,
|
|
370
|
+
required,
|
|
371
|
+
className: wrapperClassName,
|
|
372
|
+
children: /* @__PURE__ */ jsx(
|
|
373
|
+
"input",
|
|
374
|
+
{
|
|
375
|
+
...props,
|
|
376
|
+
ref,
|
|
377
|
+
id: fieldId,
|
|
378
|
+
type: "file",
|
|
379
|
+
required,
|
|
380
|
+
"data-shell-field": "",
|
|
381
|
+
"aria-invalid": isInvalid || void 0,
|
|
382
|
+
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
383
|
+
className: clsx(
|
|
384
|
+
FIELD_BASE,
|
|
385
|
+
"h-[44px] cursor-pointer py-[5px] file:mr-3 file:h-[32px] file:cursor-pointer file:rounded-[5px] file:border file:border-[color:var(--app-btn-secondary-border,var(--color-border))] file:bg-[color:var(--app-btn-secondary-bg,var(--color-white))] file:px-3 file:text-sm file:font-medium file:text-[color:var(--app-btn-secondary-fg,var(--color-text))]",
|
|
386
|
+
isInvalid ? FIELD_INVALID : FIELD_VALID,
|
|
387
|
+
className
|
|
388
|
+
)
|
|
389
|
+
}
|
|
390
|
+
)
|
|
391
|
+
}
|
|
392
|
+
);
|
|
393
|
+
});
|
|
394
|
+
var FileInput_default = FileInput;
|
|
240
395
|
function useTopBarIconSlotGlyph(slot) {
|
|
241
396
|
const [name, setName] = useState(null);
|
|
242
397
|
useEffect(() => {
|
|
@@ -2182,7 +2337,7 @@ function HeaderTabBar({
|
|
|
2182
2337
|
{
|
|
2183
2338
|
role: "tablist",
|
|
2184
2339
|
"aria-label": ariaLabel,
|
|
2185
|
-
className:
|
|
2340
|
+
className: clsx(
|
|
2186
2341
|
// Header-wide tab strip: background + bottom border only (no outer box).
|
|
2187
2342
|
// Left-aligned and fluid: the container spans the full content width,
|
|
2188
2343
|
// the tabs keep their natural width packed from the left (Global-Rules
|
|
@@ -2206,7 +2361,7 @@ function HeaderTabBar({
|
|
|
2206
2361
|
"aria-label": item.label,
|
|
2207
2362
|
disabled: isDisabled,
|
|
2208
2363
|
onClick: () => onChange(item.id),
|
|
2209
|
-
className:
|
|
2364
|
+
className: clsx(
|
|
2210
2365
|
// `group/tbtip relative` powers the shared <TopBarTooltip>.
|
|
2211
2366
|
// Natural width (no flex-1 stretch); 40px square hit area for the
|
|
2212
2367
|
// icon-only tab so the strip stays tappable.
|
|
@@ -2335,60 +2490,65 @@ var MODE_EYEBROW_LABEL = {
|
|
|
2335
2490
|
campaign: "Campaign mode",
|
|
2336
2491
|
petition: "Petition mode"
|
|
2337
2492
|
};
|
|
2338
|
-
var
|
|
2339
|
-
if (maxW === "full") return "max-w-none";
|
|
2340
|
-
if (maxW === "container.lg") return "max-w-6xl";
|
|
2341
|
-
if (maxW === "container.md") return "max-w-5xl";
|
|
2342
|
-
return "max-w-7xl";
|
|
2343
|
-
};
|
|
2493
|
+
var EMAIL_PATTERN = /[^\s@]+@[^\s@]+\.[^\s@]+/;
|
|
2344
2494
|
function PageHeaderView({
|
|
2345
|
-
renderCrumbLink,
|
|
2346
2495
|
title,
|
|
2347
2496
|
mode,
|
|
2348
2497
|
eyebrow,
|
|
2349
2498
|
showEyebrow = true,
|
|
2350
2499
|
subtitle,
|
|
2351
|
-
breadcrumbs
|
|
2500
|
+
breadcrumbs,
|
|
2352
2501
|
actions = null,
|
|
2353
2502
|
tabBar = null,
|
|
2354
|
-
maxW
|
|
2503
|
+
maxW,
|
|
2355
2504
|
hideSidebar = false
|
|
2356
2505
|
}) {
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2506
|
+
if (breadcrumbs !== void 0) {
|
|
2507
|
+
warnDeprecated(
|
|
2508
|
+
"PageHeader.breadcrumbs",
|
|
2509
|
+
'<PageHeader breadcrumbs> is deprecated and renders nothing: the breadcrumb trail is retired (Reference/UI-Platform \u2192 "Page header"). Remove the prop.'
|
|
2510
|
+
);
|
|
2511
|
+
}
|
|
2512
|
+
if (maxW !== void 0) {
|
|
2513
|
+
warnDeprecated(
|
|
2514
|
+
"PageHeader.maxW",
|
|
2515
|
+
"<PageHeader maxW> is deprecated and ignored: the header spans its container. Use <FormColumn> (960px) or the fluid frame for page width."
|
|
2516
|
+
);
|
|
2517
|
+
}
|
|
2518
|
+
if (typeof title === "string" && EMAIL_PATTERN.test(title) || typeof subtitle === "string" && EMAIL_PATTERN.test(subtitle)) {
|
|
2519
|
+
warnDeprecated(
|
|
2520
|
+
"PageHeader.email",
|
|
2521
|
+
`<PageHeader> title/subtitle contains an email address. The user's email never appears in the page header (Reference/UI-Platform \u2192 "Page header"); identity lives in the left bar footer.`
|
|
2522
|
+
);
|
|
2364
2523
|
}
|
|
2365
2524
|
const eyebrowText = showEyebrow ? eyebrow ?? (mode ? MODE_EYEBROW_LABEL[mode] : void 0) : void 0;
|
|
2366
|
-
if (!title && !eyebrowText &&
|
|
2525
|
+
if (!title && !eyebrowText && !actions && !tabBar) {
|
|
2367
2526
|
return null;
|
|
2368
2527
|
}
|
|
2369
2528
|
return /* @__PURE__ */ jsxs(
|
|
2370
2529
|
"div",
|
|
2371
2530
|
{
|
|
2372
|
-
|
|
2373
|
-
className:
|
|
2531
|
+
"data-shell-page-header": "",
|
|
2532
|
+
className: clsx("pt-[22px] text-[color:var(--color-text,#2F3136)]", tabBar ? "pb-0" : "pb-4", {
|
|
2374
2533
|
"md:ml-60": !hideSidebar
|
|
2375
2534
|
}),
|
|
2376
2535
|
children: [
|
|
2377
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
2536
|
+
/* @__PURE__ */ jsx("div", { className: "w-full px-4 md:px-6", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-nowrap items-start justify-between gap-4", children: [
|
|
2378
2537
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
2379
2538
|
eyebrowText ? /* @__PURE__ */ jsx(
|
|
2380
2539
|
"div",
|
|
2381
2540
|
{
|
|
2382
2541
|
className: "truncate text-[11px] font-bold uppercase leading-[1.2] tracking-[0.09em]",
|
|
2383
|
-
style: { color: "var(--mode-accent, var(--color-accent, #E63946))" },
|
|
2542
|
+
style: { color: "var(--color-accent-fg, var(--mode-accent, var(--color-accent, #E63946)))" },
|
|
2384
2543
|
children: eyebrowText
|
|
2385
2544
|
}
|
|
2386
2545
|
) : null,
|
|
2387
2546
|
title ? /* @__PURE__ */ jsx("div", { className: "min-w-0", children: /* @__PURE__ */ jsx(
|
|
2388
|
-
"
|
|
2547
|
+
"h1",
|
|
2389
2548
|
{
|
|
2390
|
-
className: "truncate font-bold
|
|
2549
|
+
className: "m-0 truncate font-bold",
|
|
2391
2550
|
style: {
|
|
2551
|
+
color: "var(--color-text, #2F3136)",
|
|
2392
2552
|
fontFamily: "var(--font-family, ui-sans-serif, system-ui, sans-serif)",
|
|
2393
2553
|
fontSize: "var(--type-h2-size, 1.875rem)",
|
|
2394
2554
|
lineHeight: "var(--type-h2-line-height, 1.25)"
|
|
@@ -2396,25 +2556,7 @@ function PageHeaderView({
|
|
|
2396
2556
|
children: title
|
|
2397
2557
|
}
|
|
2398
2558
|
) }) : null,
|
|
2399
|
-
subtitle ? /* @__PURE__ */ jsx("div", { className: "mt-1 truncate text-[15px] text-[color:var(--color-g4,#
|
|
2400
|
-
breadcrumbsWithoutCurrent.length > 0 ? /* @__PURE__ */ jsx(
|
|
2401
|
-
"nav",
|
|
2402
|
-
{
|
|
2403
|
-
"aria-label": "Breadcrumb",
|
|
2404
|
-
className: clsx8("min-w-0 text-slate-100", title ? "mt-1" : ""),
|
|
2405
|
-
children: /* @__PURE__ */ jsx("ol", { className: "flex flex-nowrap items-center gap-2 overflow-hidden text-sm text-gray-600", children: breadcrumbsWithoutCurrent.map((item, index) => /* @__PURE__ */ jsxs(
|
|
2406
|
-
"li",
|
|
2407
|
-
{
|
|
2408
|
-
className: "flex min-w-0 flex-shrink-0 items-center gap-2",
|
|
2409
|
-
children: [
|
|
2410
|
-
index > 0 ? /* @__PURE__ */ jsx("span", { className: "text-gray-400", children: ">" }) : null,
|
|
2411
|
-
item.href ? renderCrumbLink(item.href, item.label, "truncate text-slate-100 hover:underline") : /* @__PURE__ */ jsx("span", { className: "truncate text-slate-100", children: item.label })
|
|
2412
|
-
]
|
|
2413
|
-
},
|
|
2414
|
-
`${item.label}-${index}`
|
|
2415
|
-
)) })
|
|
2416
|
-
}
|
|
2417
|
-
) : null
|
|
2559
|
+
subtitle ? /* @__PURE__ */ jsx("div", { className: "mt-1 truncate text-[15px] text-[color:var(--color-g4,#58657A)]", children: subtitle }) : null
|
|
2418
2560
|
] }),
|
|
2419
2561
|
actions ? /* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: actions }) : null
|
|
2420
2562
|
] }) }),
|
|
@@ -2442,7 +2584,7 @@ function BreadcrumbBarView({
|
|
|
2442
2584
|
{
|
|
2443
2585
|
className: "ml-0 border-b border-gray-200 px-4 py-3 md:ml-60",
|
|
2444
2586
|
style: { backgroundColor: "var(--app-tab-header-bg, #888888)" },
|
|
2445
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
2587
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("mx-auto w-full px-0", maxWClass), children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between", children: [
|
|
2446
2588
|
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsx("ol", { className: "flex items-center gap-2 text-sm text-slate-100", children: breadcrumbs.map((item, index) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2", children: [
|
|
2447
2589
|
index > 0 ? /* @__PURE__ */ jsx("span", { className: "text-gray-400", children: ">" }) : null,
|
|
2448
2590
|
item.href ? renderCrumbLink(item.href, item.label, "text-slate-100 hover:underline") : /* @__PURE__ */ jsx("span", { className: "text-slate-100", children: item.label })
|
|
@@ -2453,6 +2595,6 @@ function BreadcrumbBarView({
|
|
|
2453
2595
|
);
|
|
2454
2596
|
}
|
|
2455
2597
|
|
|
2456
|
-
export { BreadcrumbBarView, Button_default, CORE_APP_ORIGIN, CORE_BILLING_PATH, CREDIT_TYPE_LABELS, CREDIT_TYPE_ORDER, Card, CreditsAction, FormColumn, FuelAction, HeaderTabBar, Input_default, NAV_DISPLAY_OPTIONS, NavChromeProvider, NavDisplayAction, NavThemeControl, NotificationsAction, PageHeaderView, SPECS_ORIGIN, Select_default, SpecOverlayAction, SpeculationRulesScript, SupportAction, TOPBAR_GLYPH_SIZE, Textarea_default, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, creditGaugeRatio, creditStateWord, creditTooltipLine, creditsAriaLabel, creditsIconState, emptyNotificationsFeed, normalizeNotificationsFeed, resolveBrandGlyph, resolveOrgLogoUrl, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeDedupedFetch, useNavChromeFetcher, useThemePreference, useTopBarIconSlotGlyph, warnDeprecated };
|
|
2457
|
-
//# sourceMappingURL=chunk-
|
|
2458
|
-
//# sourceMappingURL=chunk-
|
|
2598
|
+
export { BreadcrumbBarView, Button_default, CORE_APP_ORIGIN, CORE_BILLING_PATH, CREDIT_TYPE_LABELS, CREDIT_TYPE_ORDER, Card, Checkbox_default, CreditsAction, FileInput_default, FormColumn, FuelAction, HeaderTabBar, Input_default, NAV_DISPLAY_OPTIONS, NavChromeProvider, NavDisplayAction, NavThemeControl, NotificationsAction, PageHeaderView, SPECS_ORIGIN, Select_default, SpecOverlayAction, SpeculationRulesScript, SupportAction, TOPBAR_GLYPH_SIZE, Textarea_default, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, creditGaugeRatio, creditStateWord, creditTooltipLine, creditsAriaLabel, creditsIconState, emptyNotificationsFeed, normalizeNotificationsFeed, resolveBrandGlyph, resolveOrgLogoUrl, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeDedupedFetch, useNavChromeFetcher, useThemePreference, useTopBarIconSlotGlyph, warnDeprecated };
|
|
2599
|
+
//# sourceMappingURL=chunk-VBDI7UZS.js.map
|
|
2600
|
+
//# sourceMappingURL=chunk-VBDI7UZS.js.map
|