@the-portland-company/shell 0.88.0 → 0.89.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 +11 -0
- package/README.md +8 -3
- 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-7WSGW5CC.js → chunk-J23MTK56.js} +175 -20
- package/dist/chunk-J23MTK56.js.map +1 -0
- package/dist/{chunk-2ACN7HQC.js → chunk-SJDFAK5R.js} +3 -3
- package/dist/{chunk-2ACN7HQC.js.map → chunk-SJDFAK5R.js.map} +1 -1
- package/dist/{index-tfcLFAni.d.cts → index-CZylXAP4.d.cts} +81 -6
- package/dist/{index-DEiOABW2.d.ts → index-DwkSyAip.d.ts} +81 -6
- package/dist/index.cjs +175 -18
- 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 +2 -2
- package/dist/native.cjs +175 -18
- 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-7WSGW5CC.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-
|
|
2
|
-
export { a as Button, b as ButtonProps, c as ButtonSize, d as ButtonVariant, C as Card, e as
|
|
1
|
+
import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-CZylXAP4.cjs';
|
|
2
|
+
export { a as Button, b as ButtonProps, c as ButtonSize, d as ButtonVariant, C as Card, e as CardPadding, f as CardProps, g as Checkbox, h as CheckboxProps, i as CommsNotification, j as CommsNotificationKind, F as FileInput, k as FileInputProps, l as FormColumn, H as HeaderTabBar, m as HeaderTabBarItem, I as Input, n as InputProps, o as NotificationsAdapter, p as NotificationsFeed, S as Select, q as SelectProps, T as Textarea, r as TextareaProps, s as createCommsNotificationsAdapter, t as emptyNotificationsFeed, u as normalizeNotificationsFeed } from './index-CZylXAP4.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode, CSSProperties } from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-
|
|
2
|
-
export { a as Button, b as ButtonProps, c as ButtonSize, d as ButtonVariant, C as Card, e as
|
|
1
|
+
import { P as PageHeaderProps, B as BreadcrumbBarProps, N as NavItem } from './index-DwkSyAip.js';
|
|
2
|
+
export { a as Button, b as ButtonProps, c as ButtonSize, d as ButtonVariant, C as Card, e as CardPadding, f as CardProps, g as Checkbox, h as CheckboxProps, i as CommsNotification, j as CommsNotificationKind, F as FileInput, k as FileInputProps, l as FormColumn, H as HeaderTabBar, m as HeaderTabBarItem, I as Input, n as InputProps, o as NotificationsAdapter, p as NotificationsFeed, S as Select, q as SelectProps, T as Textarea, r as TextareaProps, s as createCommsNotificationsAdapter, t as emptyNotificationsFeed, u as normalizeNotificationsFeed } from './index-DwkSyAip.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode, CSSProperties } from 'react';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PageHeaderView, warnDeprecated, BreadcrumbBarView } from './chunk-
|
|
2
|
-
export { Button_default as Button, Card, FormColumn, HeaderTabBar, Input_default as Input, Select_default as Select, SpeculationRulesScript, Textarea_default as Textarea, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed } from './chunk-
|
|
1
|
+
import { PageHeaderView, warnDeprecated, BreadcrumbBarView } from './chunk-J23MTK56.js';
|
|
2
|
+
export { Button_default as Button, Card, Checkbox_default as Checkbox, FileInput_default as FileInput, FormColumn, HeaderTabBar, Input_default as Input, Select_default as Select, SpeculationRulesScript, Textarea_default as Textarea, buildNavSpeculationRules, buildSpeculationRules, collectSiblingAppUrls, createCommsNotificationsAdapter, emptyNotificationsFeed, normalizeNotificationsFeed } from './chunk-J23MTK56.js';
|
|
3
3
|
import { readResolvedTheme } from './chunk-BHRVZPZ7.js';
|
|
4
4
|
import { extendTheme, ChakraProvider, useColorMode } from '@chakra-ui/react';
|
|
5
5
|
import { Link, useLocation } from 'react-router-dom';
|
package/dist/native.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var react = require('react');
|
|
5
|
-
var
|
|
5
|
+
var clsx5 = require('clsx');
|
|
6
6
|
var fi = require('react-icons/fi');
|
|
7
7
|
var reactDom = require('react-dom');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -10,7 +10,7 @@ var lu = require('react-icons/lu');
|
|
|
10
10
|
|
|
11
11
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var clsx5__default = /*#__PURE__*/_interopDefault(clsx5);
|
|
14
14
|
|
|
15
15
|
// src/native/index.tsx
|
|
16
16
|
function useTopBarIconSlotGlyph(slot) {
|
|
@@ -2210,7 +2210,7 @@ function useThemePreference() {
|
|
|
2210
2210
|
return { value, setValue };
|
|
2211
2211
|
}
|
|
2212
2212
|
function FormColumn({ children, className }) {
|
|
2213
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-shell-form-column": "", className:
|
|
2213
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-shell-form-column": "", className: clsx5__default.default("w-full max-w-[960px]", className), children });
|
|
2214
2214
|
}
|
|
2215
2215
|
var MODE_EYEBROW_LABEL = {
|
|
2216
2216
|
relationship: "Relationship mode",
|
|
@@ -2252,11 +2252,11 @@ function PageHeaderView({
|
|
|
2252
2252
|
"div",
|
|
2253
2253
|
{
|
|
2254
2254
|
style: { backgroundColor: "var(--app-tab-header-bg, #888888)" },
|
|
2255
|
-
className:
|
|
2255
|
+
className: clsx5__default.default("text-slate-100", tabBar ? "pt-3 pb-0" : "py-3 border-b border-gray-200", {
|
|
2256
2256
|
"md:ml-60": !hideSidebar
|
|
2257
2257
|
}),
|
|
2258
2258
|
children: [
|
|
2259
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2259
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx5__default.default("w-full px-4", maxWClass), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full flex-nowrap items-start justify-between gap-4", children: [
|
|
2260
2260
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
2261
2261
|
eyebrowText ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2262
2262
|
"div",
|
|
@@ -2283,7 +2283,7 @@ function PageHeaderView({
|
|
|
2283
2283
|
"nav",
|
|
2284
2284
|
{
|
|
2285
2285
|
"aria-label": "Breadcrumb",
|
|
2286
|
-
className:
|
|
2286
|
+
className: clsx5__default.default("min-w-0 text-slate-100", title ? "mt-1" : ""),
|
|
2287
2287
|
children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex flex-nowrap items-center gap-2 overflow-hidden text-sm text-gray-600", children: breadcrumbsWithoutCurrent.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2288
2288
|
"li",
|
|
2289
2289
|
{
|
|
@@ -2333,7 +2333,7 @@ function BreadcrumbBarView({
|
|
|
2333
2333
|
{
|
|
2334
2334
|
className: "ml-0 border-b border-gray-200 px-4 py-3 md:ml-60",
|
|
2335
2335
|
style: { backgroundColor: "var(--app-tab-header-bg, #888888)" },
|
|
2336
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2336
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx5__default.default("mx-auto w-full px-0", maxWClass), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center justify-between", children: [
|
|
2337
2337
|
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex items-center gap-2 text-sm text-slate-100", children: breadcrumbs.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center gap-2", children: [
|
|
2338
2338
|
index > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-400", children: ">" }) : null,
|
|
2339
2339
|
item.href ? renderCrumbLink(item.href, item.label, "text-slate-100 hover:underline") : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-slate-100", children: item.label })
|
|
@@ -2368,7 +2368,7 @@ function HeaderTabBar({
|
|
|
2368
2368
|
{
|
|
2369
2369
|
role: "tablist",
|
|
2370
2370
|
"aria-label": ariaLabel,
|
|
2371
|
-
className:
|
|
2371
|
+
className: clsx5__default.default(
|
|
2372
2372
|
// Header-wide tab strip: background + bottom border only (no outer box).
|
|
2373
2373
|
// Left-aligned and fluid: the container spans the full content width,
|
|
2374
2374
|
// the tabs keep their natural width packed from the left (Global-Rules
|
|
@@ -2392,7 +2392,7 @@ function HeaderTabBar({
|
|
|
2392
2392
|
"aria-label": item.label,
|
|
2393
2393
|
disabled: isDisabled,
|
|
2394
2394
|
onClick: () => onChange(item.id),
|
|
2395
|
-
className:
|
|
2395
|
+
className: clsx5__default.default(
|
|
2396
2396
|
// `group/tbtip relative` powers the shared <TopBarTooltip>.
|
|
2397
2397
|
// Natural width (no flex-1 stretch); 40px square hit area for the
|
|
2398
2398
|
// icon-only tab so the strip stays tappable.
|
|
@@ -2418,23 +2418,66 @@ function HeaderTabBar({
|
|
|
2418
2418
|
}
|
|
2419
2419
|
);
|
|
2420
2420
|
}
|
|
2421
|
+
var PADDING = {
|
|
2422
|
+
none: "p-0",
|
|
2423
|
+
sm: "p-4",
|
|
2424
|
+
md: "p-6",
|
|
2425
|
+
lg: "p-8"
|
|
2426
|
+
};
|
|
2421
2427
|
function Card({
|
|
2422
2428
|
title,
|
|
2429
|
+
subtitle,
|
|
2430
|
+
aside,
|
|
2431
|
+
actions,
|
|
2432
|
+
footer,
|
|
2423
2433
|
children,
|
|
2434
|
+
padding = "md",
|
|
2435
|
+
bodyClassName,
|
|
2424
2436
|
minH,
|
|
2425
2437
|
className,
|
|
2426
2438
|
style,
|
|
2427
2439
|
...props
|
|
2428
2440
|
}) {
|
|
2441
|
+
const structured = Boolean(subtitle || aside || actions || footer || bodyClassName);
|
|
2442
|
+
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";
|
|
2443
|
+
if (!structured) {
|
|
2444
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2445
|
+
"div",
|
|
2446
|
+
{
|
|
2447
|
+
"data-shell-card": "",
|
|
2448
|
+
className: clsx5__default.default(surface, PADDING[padding], className),
|
|
2449
|
+
style: { minHeight: minH, ...style },
|
|
2450
|
+
...props,
|
|
2451
|
+
children: [
|
|
2452
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4 text-lg font-semibold", children: title }) : null,
|
|
2453
|
+
children
|
|
2454
|
+
]
|
|
2455
|
+
}
|
|
2456
|
+
);
|
|
2457
|
+
}
|
|
2458
|
+
const hasHeader = Boolean(title || subtitle || aside || actions);
|
|
2459
|
+
const divider = "border-[color:var(--app-card-border,var(--color-border))]";
|
|
2429
2460
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2430
2461
|
"div",
|
|
2431
2462
|
{
|
|
2432
|
-
|
|
2463
|
+
"data-shell-card": "",
|
|
2464
|
+
"data-shell-card-structured": "",
|
|
2465
|
+
className: clsx5__default.default(surface, "overflow-hidden", className),
|
|
2433
2466
|
style: { minHeight: minH, ...style },
|
|
2434
2467
|
...props,
|
|
2435
2468
|
children: [
|
|
2436
|
-
|
|
2437
|
-
|
|
2469
|
+
hasHeader ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx5__default.default("flex flex-wrap items-start justify-between gap-3 border-b px-5 py-4", divider), children: [
|
|
2470
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
2471
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold", children: title }) : null,
|
|
2472
|
+
subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-sm text-[color:var(--app-card-fg-muted,var(--color-text-muted))]", children: subtitle }) : null
|
|
2473
|
+
] }),
|
|
2474
|
+
aside || actions ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
2475
|
+
aside,
|
|
2476
|
+
actions
|
|
2477
|
+
] }) : null
|
|
2478
|
+
] }) : null,
|
|
2479
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: bodyClassName ?? PADDING[padding], children }),
|
|
2480
|
+
footer ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx5__default.default("border-t px-5 py-3", divider), children: footer }) : null
|
|
2438
2481
|
]
|
|
2439
2482
|
}
|
|
2440
2483
|
);
|
|
@@ -2477,7 +2520,7 @@ var Button = react.forwardRef(function Button2({
|
|
|
2477
2520
|
"data-shell-button": "",
|
|
2478
2521
|
"data-variant": variant,
|
|
2479
2522
|
"aria-busy": loading || void 0,
|
|
2480
|
-
className:
|
|
2523
|
+
className: clsx5__default.default(
|
|
2481
2524
|
"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",
|
|
2482
2525
|
SIZE_CLASS[size],
|
|
2483
2526
|
VARIANT_CLASS[variant],
|
|
@@ -2514,7 +2557,7 @@ function FormField({
|
|
|
2514
2557
|
className,
|
|
2515
2558
|
children
|
|
2516
2559
|
}) {
|
|
2517
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2560
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx5__default.default("flex w-full flex-col gap-1", className), children: [
|
|
2518
2561
|
label ? /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: id, className: "text-sm font-semibold text-[color:var(--color-text)]", children: [
|
|
2519
2562
|
label,
|
|
2520
2563
|
required ? /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: " *" }) : null
|
|
@@ -2563,7 +2606,7 @@ var Input = react.forwardRef(function Input2({ label, helperText, error, invalid
|
|
|
2563
2606
|
"data-shell-field": "",
|
|
2564
2607
|
"aria-invalid": isInvalid || void 0,
|
|
2565
2608
|
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
2566
|
-
className:
|
|
2609
|
+
className: clsx5__default.default(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
|
|
2567
2610
|
...props
|
|
2568
2611
|
}
|
|
2569
2612
|
)
|
|
@@ -2593,7 +2636,7 @@ var Select = react.forwardRef(function Select2({ label, helperText, error, inval
|
|
|
2593
2636
|
"data-shell-field": "",
|
|
2594
2637
|
"aria-invalid": isInvalid || void 0,
|
|
2595
2638
|
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
2596
|
-
className:
|
|
2639
|
+
className: clsx5__default.default(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
|
|
2597
2640
|
...props,
|
|
2598
2641
|
children
|
|
2599
2642
|
}
|
|
@@ -2624,7 +2667,7 @@ var Textarea = react.forwardRef(function Textarea2({ label, helperText, error, i
|
|
|
2624
2667
|
"data-shell-field": "",
|
|
2625
2668
|
"aria-invalid": isInvalid || void 0,
|
|
2626
2669
|
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
2627
|
-
className:
|
|
2670
|
+
className: clsx5__default.default(FIELD_BASE, "min-h-[88px] py-3", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
|
|
2628
2671
|
...props
|
|
2629
2672
|
}
|
|
2630
2673
|
)
|
|
@@ -2632,6 +2675,118 @@ var Textarea = react.forwardRef(function Textarea2({ label, helperText, error, i
|
|
|
2632
2675
|
);
|
|
2633
2676
|
});
|
|
2634
2677
|
var Textarea_default = Textarea;
|
|
2678
|
+
var Checkbox = react.forwardRef(function Checkbox2({
|
|
2679
|
+
label,
|
|
2680
|
+
description,
|
|
2681
|
+
indeterminate,
|
|
2682
|
+
invalid,
|
|
2683
|
+
className,
|
|
2684
|
+
wrapperClassName,
|
|
2685
|
+
id,
|
|
2686
|
+
disabled,
|
|
2687
|
+
"aria-describedby": ariaDescribedBy,
|
|
2688
|
+
...props
|
|
2689
|
+
}, ref) {
|
|
2690
|
+
const autoId = react.useId();
|
|
2691
|
+
const fieldId = id ?? autoId;
|
|
2692
|
+
const descId = description ? `${fieldId}-description` : void 0;
|
|
2693
|
+
const inner = react.useRef(null);
|
|
2694
|
+
const setRef = react.useCallback(
|
|
2695
|
+
(node) => {
|
|
2696
|
+
inner.current = node;
|
|
2697
|
+
if (typeof ref === "function") ref(node);
|
|
2698
|
+
else if (ref) ref.current = node;
|
|
2699
|
+
},
|
|
2700
|
+
[ref]
|
|
2701
|
+
);
|
|
2702
|
+
react.useEffect(() => {
|
|
2703
|
+
if (inner.current) inner.current.indeterminate = Boolean(indeterminate);
|
|
2704
|
+
}, [indeterminate]);
|
|
2705
|
+
const describedBy2 = [descId, ariaDescribedBy].filter(Boolean).join(" ") || void 0;
|
|
2706
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2707
|
+
"label",
|
|
2708
|
+
{
|
|
2709
|
+
htmlFor: fieldId,
|
|
2710
|
+
"data-shell-checkbox": "",
|
|
2711
|
+
className: clsx5__default.default(
|
|
2712
|
+
"flex min-h-[44px] items-start gap-3 py-[10px] text-sm text-[color:var(--app-card-fg,var(--color-text))]",
|
|
2713
|
+
disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
2714
|
+
wrapperClassName
|
|
2715
|
+
),
|
|
2716
|
+
children: [
|
|
2717
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2718
|
+
"input",
|
|
2719
|
+
{
|
|
2720
|
+
...props,
|
|
2721
|
+
ref: setRef,
|
|
2722
|
+
id: fieldId,
|
|
2723
|
+
type: "checkbox",
|
|
2724
|
+
disabled,
|
|
2725
|
+
"data-shell-field": "",
|
|
2726
|
+
"aria-invalid": invalid || void 0,
|
|
2727
|
+
"aria-describedby": describedBy2,
|
|
2728
|
+
className: clsx5__default.default(
|
|
2729
|
+
"mt-[2px] h-5 w-5 shrink-0 rounded-[5px] border focus:outline-none focus-visible:ring-2",
|
|
2730
|
+
"accent-[color:var(--color-accent-bg-safe,var(--color-accent))]",
|
|
2731
|
+
"focus-visible:ring-[color:var(--app-field-focus,var(--color-accent))]",
|
|
2732
|
+
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))]",
|
|
2733
|
+
disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
2734
|
+
className
|
|
2735
|
+
)
|
|
2736
|
+
}
|
|
2737
|
+
),
|
|
2738
|
+
label || description ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0", children: [
|
|
2739
|
+
label ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block font-medium", children: label }) : null,
|
|
2740
|
+
description ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2741
|
+
"span",
|
|
2742
|
+
{
|
|
2743
|
+
id: descId,
|
|
2744
|
+
className: "block text-xs text-[color:var(--app-card-fg-muted,var(--color-text-muted))]",
|
|
2745
|
+
children: description
|
|
2746
|
+
}
|
|
2747
|
+
) : null
|
|
2748
|
+
] }) : null
|
|
2749
|
+
]
|
|
2750
|
+
}
|
|
2751
|
+
);
|
|
2752
|
+
});
|
|
2753
|
+
var Checkbox_default = Checkbox;
|
|
2754
|
+
var FileInput = react.forwardRef(function FileInput2({ label, helperText, error, invalid, className, wrapperClassName, id, required, "aria-describedby": ariaDescribedBy, ...props }, ref) {
|
|
2755
|
+
const autoId = react.useId();
|
|
2756
|
+
const fieldId = id ?? autoId;
|
|
2757
|
+
const isInvalid = Boolean(error) || Boolean(invalid);
|
|
2758
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2759
|
+
FormField,
|
|
2760
|
+
{
|
|
2761
|
+
id: fieldId,
|
|
2762
|
+
label,
|
|
2763
|
+
helperText,
|
|
2764
|
+
error,
|
|
2765
|
+
required,
|
|
2766
|
+
className: wrapperClassName,
|
|
2767
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2768
|
+
"input",
|
|
2769
|
+
{
|
|
2770
|
+
...props,
|
|
2771
|
+
ref,
|
|
2772
|
+
id: fieldId,
|
|
2773
|
+
type: "file",
|
|
2774
|
+
required,
|
|
2775
|
+
"data-shell-field": "",
|
|
2776
|
+
"aria-invalid": isInvalid || void 0,
|
|
2777
|
+
"aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
|
|
2778
|
+
className: clsx5__default.default(
|
|
2779
|
+
FIELD_BASE,
|
|
2780
|
+
"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))]",
|
|
2781
|
+
isInvalid ? FIELD_INVALID : FIELD_VALID,
|
|
2782
|
+
className
|
|
2783
|
+
)
|
|
2784
|
+
}
|
|
2785
|
+
)
|
|
2786
|
+
}
|
|
2787
|
+
);
|
|
2788
|
+
});
|
|
2789
|
+
var FileInput_default = FileInput;
|
|
2635
2790
|
var standardNavIcons = {
|
|
2636
2791
|
home: lu.LuHouse,
|
|
2637
2792
|
users: lu.LuUsers,
|
|
@@ -3181,7 +3336,7 @@ function NavSidebar({
|
|
|
3181
3336
|
role: open ? "dialog" : void 0,
|
|
3182
3337
|
"aria-modal": open ? "true" : void 0,
|
|
3183
3338
|
"aria-label": open ? "Navigation" : void 0,
|
|
3184
|
-
className:
|
|
3339
|
+
className: clsx5__default.default(
|
|
3185
3340
|
"fixed inset-y-0 left-0 flex flex-col border-r border-[color:var(--sidebar-line,var(--line))] bg-[color:var(--sidebar-bg,var(--nav-surface))]",
|
|
3186
3341
|
// Never hidden: the 64px icon rail below `md`, the full rail from
|
|
3187
3342
|
// `md` up, and the full rail as a drawer when expanded below `md`.
|
|
@@ -4584,7 +4739,9 @@ exports.CORE_BILLING_PATH = CORE_BILLING_PATH;
|
|
|
4584
4739
|
exports.CREDIT_TYPE_LABELS = CREDIT_TYPE_LABELS;
|
|
4585
4740
|
exports.CREDIT_TYPE_ORDER = CREDIT_TYPE_ORDER;
|
|
4586
4741
|
exports.Card = Card;
|
|
4742
|
+
exports.Checkbox = Checkbox_default;
|
|
4587
4743
|
exports.CreditsAction = CreditsAction;
|
|
4744
|
+
exports.FileInput = FileInput_default;
|
|
4588
4745
|
exports.FormColumn = FormColumn;
|
|
4589
4746
|
exports.FuelAction = FuelAction;
|
|
4590
4747
|
exports.HeaderTabBar = HeaderTabBar;
|