@lovett/ui 0.0.9 → 0.0.10
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/dist/index.d.ts +191 -156
- package/dist/index.js +227 -28
- package/dist/index.js.map +1 -1
- package/dist/styles.css +28 -0
- package/dist/tokens.css +114 -8
- package/package.json +1 -1
- package/src/__tests__/modal.test.tsx +180 -6
- package/src/code-block.tsx +15 -26
- package/src/icons/brand.tsx +81 -2
- package/src/index.ts +5 -0
- package/src/modal.tsx +165 -8
- package/src/page-shell.tsx +91 -2
- package/src/segmented-pill.tsx +33 -10
- package/src/styles.css +28 -0
- package/src/theme-v2.css +7 -245
- package/src/tokens.css +114 -8
- package/src/react-syntax-highlighter-prism.d.ts +0 -34
- package/src/v2/README.md +0 -208
- package/src/v2/__demo__/showcase.tsx +0 -1045
- package/src/v2/action.tsx +0 -91
- package/src/v2/callout.tsx +0 -76
- package/src/v2/document-section.tsx +0 -82
- package/src/v2/document-shell.tsx +0 -0
- package/src/v2/field-row.tsx +0 -113
- package/src/v2/icons.tsx +0 -165
- package/src/v2/index.ts +0 -147
- package/src/v2/layout.tsx +0 -293
- package/src/v2/progress-track.tsx +0 -89
- package/src/v2/stat-tile.tsx +0 -129
- package/src/v2/states.tsx +0 -271
- package/src/v2/status-pill.tsx +0 -74
- package/src/v2/theme.css +0 -1861
- package/src/v2/timeline.tsx +0 -81
- package/src/v2/tokens.ts +0 -228
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import react__default, { HTMLAttributes, ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, CSSProperties, RefObject, ComponentProps, ComponentType, FormHTMLAttributes, FormEvent } from 'react';
|
|
3
4
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
@@ -33,21 +34,21 @@ interface CardProps extends DivProps {
|
|
|
33
34
|
interactive?: boolean;
|
|
34
35
|
}
|
|
35
36
|
declare const CardRoot: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
|
|
36
|
-
declare function Head({ className, ...rest }: DivProps):
|
|
37
|
-
declare function Body({ className, ...rest }: DivProps):
|
|
38
|
-
declare function Tray$1({ className, ...rest }: DivProps):
|
|
39
|
-
declare function Foot({ className, ...rest }: DivProps):
|
|
40
|
-
declare function Title({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>):
|
|
37
|
+
declare function Head({ className, ...rest }: DivProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
declare function Body({ className, ...rest }: DivProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function Tray$1({ className, ...rest }: DivProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
declare function Foot({ className, ...rest }: DivProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function Title({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
41
42
|
declare function Desc({ children, className, ...rest }: HTMLAttributes<HTMLDivElement> & {
|
|
42
43
|
clamp?: 2 | 3;
|
|
43
|
-
}):
|
|
44
|
-
declare function Meta({ className, ...rest }: DivProps):
|
|
44
|
+
}): react_jsx_runtime.JSX.Element;
|
|
45
|
+
declare function Meta({ className, ...rest }: DivProps): react_jsx_runtime.JSX.Element;
|
|
45
46
|
declare function MetaItem({ icon, children, className, }: {
|
|
46
47
|
icon?: ReactNode;
|
|
47
48
|
children: ReactNode;
|
|
48
49
|
className?: string;
|
|
49
|
-
}):
|
|
50
|
-
declare function Actions({ className, ...rest }: DivProps):
|
|
50
|
+
}): react_jsx_runtime.JSX.Element;
|
|
51
|
+
declare function Actions({ className, ...rest }: DivProps): react_jsx_runtime.JSX.Element;
|
|
51
52
|
interface ActionButtonProps$1 extends HTMLAttributes<HTMLButtonElement> {
|
|
52
53
|
danger?: boolean;
|
|
53
54
|
}
|
|
@@ -62,13 +63,13 @@ declare function IconTile({ bg, fg, size, className, children, }: {
|
|
|
62
63
|
size?: number;
|
|
63
64
|
className?: string;
|
|
64
65
|
children: ReactNode;
|
|
65
|
-
}):
|
|
66
|
+
}): react_jsx_runtime.JSX.Element;
|
|
66
67
|
/** Tag row helper — reads `--tag-bg`/`--border` automatically. */
|
|
67
68
|
declare function TagRow({ tags, max, className, }: {
|
|
68
69
|
tags: string[];
|
|
69
70
|
max?: number;
|
|
70
71
|
className?: string;
|
|
71
|
-
}):
|
|
72
|
+
}): react_jsx_runtime.JSX.Element;
|
|
72
73
|
type CardComponent = typeof CardRoot & {
|
|
73
74
|
Head: typeof Head;
|
|
74
75
|
Body: typeof Body;
|
|
@@ -99,7 +100,7 @@ interface CollapsibleCardProps {
|
|
|
99
100
|
contentClassName?: string;
|
|
100
101
|
children: ReactNode;
|
|
101
102
|
}
|
|
102
|
-
declare function CollapsibleCard({ title, icon, meta, actions, defaultOpen, contentClassName, children, }: CollapsibleCardProps):
|
|
103
|
+
declare function CollapsibleCard({ title, icon, meta, actions, defaultOpen, contentClassName, children, }: CollapsibleCardProps): react_jsx_runtime.JSX.Element;
|
|
103
104
|
|
|
104
105
|
type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'destructive-soft' | 'icon' | 'toolbar';
|
|
105
106
|
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
@@ -122,7 +123,7 @@ interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
122
123
|
/** One or more `<Button>` elements. */
|
|
123
124
|
children: ReactNode;
|
|
124
125
|
}
|
|
125
|
-
declare function ButtonGroup({ children, className, role, ...rest }: ButtonGroupProps):
|
|
126
|
+
declare function ButtonGroup({ children, className, role, ...rest }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
126
127
|
|
|
127
128
|
type InputSize = 'sm' | 'md' | 'lg';
|
|
128
129
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
|
|
@@ -159,45 +160,22 @@ interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
|
159
160
|
}
|
|
160
161
|
declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
161
162
|
|
|
162
|
-
/**
|
|
163
|
-
* Modal — a centered floating panel on top of a backdrop. Built on
|
|
164
|
-
* `.ds-card-surface` so it inherits the premium card chrome (border,
|
|
165
|
-
* radius, multi-layer shadow with inner highlight in light mode).
|
|
166
|
-
*
|
|
167
|
-
* Two layout modes:
|
|
168
|
-
*
|
|
169
|
-
* 1. Flat children (back-compat) — pass content directly:
|
|
170
|
-
*
|
|
171
|
-
* <Modal title="..." onClose={...}>
|
|
172
|
-
* <p>body</p>
|
|
173
|
-
* <Button>action</Button>
|
|
174
|
-
* </Modal>
|
|
175
|
-
*
|
|
176
|
-
* 2. Shell / Tray pattern (recommended) — body in a recessed tray,
|
|
177
|
-
* action buttons on the outer-card bottom strip below the tray:
|
|
178
|
-
*
|
|
179
|
-
* <Modal title="..." onClose={...}>
|
|
180
|
-
* <Modal.Tray>
|
|
181
|
-
* <p>body content sits in a recessed shelf</p>
|
|
182
|
-
* <textarea ... />
|
|
183
|
-
* </Modal.Tray>
|
|
184
|
-
* <Modal.Footer>
|
|
185
|
-
* <Button variant="ghost" onClick={onClose}>Cancel</Button>
|
|
186
|
-
* <Button>Confirm</Button>
|
|
187
|
-
* </Modal.Footer>
|
|
188
|
-
* </Modal>
|
|
189
|
-
*/
|
|
190
163
|
interface ModalProps {
|
|
191
164
|
isOpen: boolean;
|
|
192
165
|
onClose: () => void;
|
|
193
166
|
title: string;
|
|
194
167
|
children: ReactNode;
|
|
195
|
-
className?: string;
|
|
168
|
+
className?: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Accessible name for a modal rendered with an empty `title`. Ignored
|
|
171
|
+
* when `title` is non-empty — the `<h2>` names the dialog then.
|
|
172
|
+
*/
|
|
173
|
+
ariaLabel?: string | undefined;
|
|
196
174
|
}
|
|
197
|
-
declare function Modal({ isOpen, onClose, title, children, className }: ModalProps):
|
|
175
|
+
declare function Modal({ isOpen, onClose, title, children, className, ariaLabel }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
198
176
|
declare namespace Modal {
|
|
199
|
-
var Tray: ({ className, ...rest }: HTMLAttributes<HTMLDivElement>) =>
|
|
200
|
-
var Footer: ({ className, ...rest }: HTMLAttributes<HTMLDivElement>) =>
|
|
177
|
+
var Tray: ({ className, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
178
|
+
var Footer: ({ className, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
201
179
|
}
|
|
202
180
|
|
|
203
181
|
type Side$1 = 'right' | 'bottom';
|
|
@@ -260,7 +238,7 @@ interface FloatingDrawerProps {
|
|
|
260
238
|
* the right-drawer's body padding so the action bar feels integrated. */
|
|
261
239
|
headerClassName?: string;
|
|
262
240
|
}
|
|
263
|
-
declare function FloatingDrawer({ isOpen, onClose, side, size, resizable, onResize, title, titleSlot, footer, children, className, panelClassName, modal, anchor, showClose, headerClassName, collapsed, }: FloatingDrawerProps):
|
|
241
|
+
declare function FloatingDrawer({ isOpen, onClose, side, size, resizable, onResize, title, titleSlot, footer, children, className, panelClassName, modal, anchor, showClose, headerClassName, collapsed, }: FloatingDrawerProps): react_jsx_runtime.JSX.Element;
|
|
264
242
|
/**
|
|
265
243
|
* DetailSection — small label/value layout for drawer body content.
|
|
266
244
|
* Ports verbatim from brand-ai-extension's detail-drawer.tsx.
|
|
@@ -269,7 +247,7 @@ declare function DetailSection({ label, children, className, }: {
|
|
|
269
247
|
label: string;
|
|
270
248
|
children: ReactNode;
|
|
271
249
|
className?: string;
|
|
272
|
-
}):
|
|
250
|
+
}): react_jsx_runtime.JSX.Element;
|
|
273
251
|
|
|
274
252
|
type BrandLogoTileSize = 'xs' | 'sm' | 'md' | 'lg' | number;
|
|
275
253
|
interface BrandLogoTileProps {
|
|
@@ -315,12 +293,12 @@ interface BrandLogoTileProps {
|
|
|
315
293
|
className?: string;
|
|
316
294
|
style?: CSSProperties;
|
|
317
295
|
}
|
|
318
|
-
declare function BrandLogoTile({ size, url, name, isFavicon, accentGlow, fallbackChar, background, color, borderless, className, style, }: BrandLogoTileProps):
|
|
296
|
+
declare function BrandLogoTile({ size, url, name, isFavicon, accentGlow, fallbackChar, background, color, borderless, className, style, }: BrandLogoTileProps): react_jsx_runtime.JSX.Element;
|
|
319
297
|
|
|
320
298
|
interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
321
299
|
label: string;
|
|
322
300
|
}
|
|
323
|
-
declare function ActionButton({ label, className, children, ...rest }: ActionButtonProps):
|
|
301
|
+
declare function ActionButton({ label, className, children, ...rest }: ActionButtonProps): react_jsx_runtime.JSX.Element;
|
|
324
302
|
interface FootProps {
|
|
325
303
|
meta?: ReactNode;
|
|
326
304
|
link?: {
|
|
@@ -332,7 +310,7 @@ interface FootProps {
|
|
|
332
310
|
/** FootItem — a single icon+text item inside the foot. */
|
|
333
311
|
declare function FootItem({ children }: {
|
|
334
312
|
children: ReactNode;
|
|
335
|
-
}):
|
|
313
|
+
}): react_jsx_runtime.JSX.Element;
|
|
336
314
|
interface BaseProps {
|
|
337
315
|
/** DOM id and `data-section-id` for ChipNav scroll-spy. */
|
|
338
316
|
id: string;
|
|
@@ -384,7 +362,7 @@ interface EditableSectionProps extends BaseProps {
|
|
|
384
362
|
actions?: undefined;
|
|
385
363
|
}
|
|
386
364
|
type ProfileSectionProps = StaticSectionProps | EditableSectionProps;
|
|
387
|
-
declare function ProfileSection(props: ProfileSectionProps):
|
|
365
|
+
declare function ProfileSection(props: ProfileSectionProps): react_jsx_runtime.JSX.Element;
|
|
388
366
|
type ProfileSectionComponent = typeof ProfileSection & {
|
|
389
367
|
ActionButton: typeof ActionButton;
|
|
390
368
|
FootItem: typeof FootItem;
|
|
@@ -464,7 +442,7 @@ interface ChipNavProps {
|
|
|
464
442
|
*/
|
|
465
443
|
density?: 'comfortable' | 'compact';
|
|
466
444
|
}
|
|
467
|
-
declare function ChipNav({ items, scrollContainer, stickyTop, scrollOffset, actions, className, style, surface, activeId: activeIdProp, onItemClick, position, density, }: ChipNavProps):
|
|
445
|
+
declare function ChipNav({ items, scrollContainer, stickyTop, scrollOffset, actions, className, style, surface, activeId: activeIdProp, onItemClick, position, density, }: ChipNavProps): react_jsx_runtime.JSX.Element;
|
|
468
446
|
|
|
469
447
|
interface CompletionRingProps {
|
|
470
448
|
/** 0–100. Values outside the range are clamped. */
|
|
@@ -489,7 +467,7 @@ interface CompletionRingProps {
|
|
|
489
467
|
className?: string;
|
|
490
468
|
style?: CSSProperties;
|
|
491
469
|
}
|
|
492
|
-
declare function CompletionRing({ percent, size, strokeWidth, label, showLabel, trackColor, fillColor, className, style, }: CompletionRingProps):
|
|
470
|
+
declare function CompletionRing({ percent, size, strokeWidth, label, showLabel, trackColor, fillColor, className, style, }: CompletionRingProps): react_jsx_runtime.JSX.Element;
|
|
493
471
|
|
|
494
472
|
/**
|
|
495
473
|
* MicrosoftLogo — the Microsoft four-square brand mark, for "Sign in with
|
|
@@ -505,7 +483,7 @@ interface MicrosoftLogoProps {
|
|
|
505
483
|
size?: number;
|
|
506
484
|
className?: string;
|
|
507
485
|
}
|
|
508
|
-
declare function MicrosoftLogo({ size, className }: MicrosoftLogoProps):
|
|
486
|
+
declare function MicrosoftLogo({ size, className }: MicrosoftLogoProps): react_jsx_runtime.JSX.Element;
|
|
509
487
|
|
|
510
488
|
/**
|
|
511
489
|
* Brand platform glyphs — real mono (currentColor) marks for the ad platforms
|
|
@@ -529,27 +507,27 @@ declare function MicrosoftLogo({ size, className }: MicrosoftLogoProps): react.J
|
|
|
529
507
|
interface BrandIconProps {
|
|
530
508
|
/** Square box size in px; the glyph letterboxes inside (non-square viewBoxes
|
|
531
509
|
* centre via preserveAspectRatio). Default 16 — a tab/affix glyph. */
|
|
532
|
-
size?: number;
|
|
533
|
-
className?: string;
|
|
510
|
+
size?: number | undefined;
|
|
511
|
+
className?: string | undefined;
|
|
534
512
|
}
|
|
535
513
|
/** Meta brand glyph (mono, currentColor). */
|
|
536
|
-
declare function BrandMeta({ size, className }: BrandIconProps):
|
|
514
|
+
declare function BrandMeta({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
537
515
|
/** Facebook brand glyph (mono, currentColor). */
|
|
538
|
-
declare function BrandFacebook({ size, className }: BrandIconProps):
|
|
516
|
+
declare function BrandFacebook({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
539
517
|
/** Instagram brand glyph (mono, currentColor). */
|
|
540
|
-
declare function BrandInstagram({ size, className }: BrandIconProps):
|
|
518
|
+
declare function BrandInstagram({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
541
519
|
/** Messenger brand glyph (mono, currentColor). */
|
|
542
|
-
declare function BrandMessenger({ size, className }: BrandIconProps):
|
|
520
|
+
declare function BrandMessenger({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
543
521
|
/** LinkedIn brand glyph (mono, currentColor). */
|
|
544
|
-
declare function BrandLinkedIn({ size, className }: BrandIconProps):
|
|
522
|
+
declare function BrandLinkedIn({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
545
523
|
/** Nextdoor brand glyph (mono, currentColor). */
|
|
546
|
-
declare function BrandNextdoor({ size, className }: BrandIconProps):
|
|
524
|
+
declare function BrandNextdoor({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
547
525
|
/** Pinterest brand glyph (mono, currentColor). */
|
|
548
|
-
declare function BrandPinterest({ size, className }: BrandIconProps):
|
|
526
|
+
declare function BrandPinterest({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
549
527
|
/** Snapchat brand glyph (mono, currentColor). */
|
|
550
|
-
declare function BrandSnapchat({ size, className }: BrandIconProps):
|
|
528
|
+
declare function BrandSnapchat({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
551
529
|
/** TikTok brand glyph (mono, currentColor). */
|
|
552
|
-
declare function BrandTikTok({ size, className }: BrandIconProps):
|
|
530
|
+
declare function BrandTikTok({ size, className }: BrandIconProps): react_jsx_runtime.JSX.Element;
|
|
553
531
|
/** Keyed map for registry-style resolution (e.g. the Social Spec tactic icons). */
|
|
554
532
|
declare const BRAND_ICONS: {
|
|
555
533
|
readonly meta: typeof BrandMeta;
|
|
@@ -563,6 +541,20 @@ declare const BRAND_ICONS: {
|
|
|
563
541
|
readonly tiktok: typeof BrandTikTok;
|
|
564
542
|
};
|
|
565
543
|
type BrandIconKey = keyof typeof BRAND_ICONS;
|
|
544
|
+
/** Every platform `<BrandIcon>` can draw in colour. */
|
|
545
|
+
declare function hasBrandIcon(name: string): boolean;
|
|
546
|
+
interface BrandIconRegistryProps extends BrandIconProps {
|
|
547
|
+
/** Platform key, e.g. "facebook", "youtube". */
|
|
548
|
+
name: string;
|
|
549
|
+
/** Give a label only when the mark stands alone; decorative beside text. */
|
|
550
|
+
title?: string | undefined;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* A full-colour platform mark, looked up by key. Use when the platform is
|
|
554
|
+
* chosen at runtime; use the named mono `Brand*` components when it is known
|
|
555
|
+
* at author time and the mark sits in coloured chrome.
|
|
556
|
+
*/
|
|
557
|
+
declare function BrandIcon({ name, size, className, title }: BrandIconRegistryProps): react_jsx_runtime.JSX.Element | null;
|
|
566
558
|
|
|
567
559
|
interface ChoroplethProps {
|
|
568
560
|
/** `radius` → concentric circles; `isochrone` → concentric polygons. */
|
|
@@ -570,7 +562,7 @@ interface ChoroplethProps {
|
|
|
570
562
|
className?: string;
|
|
571
563
|
style?: CSSProperties;
|
|
572
564
|
}
|
|
573
|
-
declare function Choropleth({ mode, className, style }: ChoroplethProps):
|
|
565
|
+
declare function Choropleth({ mode, className, style }: ChoroplethProps): react_jsx_runtime.JSX.Element;
|
|
574
566
|
|
|
575
567
|
type Crumb = {
|
|
576
568
|
label: string;
|
|
@@ -604,9 +596,26 @@ interface PageShellProps {
|
|
|
604
596
|
/** Override content padding if needed. Default leaves room for the sticky-blend header. */
|
|
605
597
|
contentClassName?: string;
|
|
606
598
|
}
|
|
607
|
-
|
|
599
|
+
/**
|
|
600
|
+
* The app's home destination, rendered as the first breadcrumb.
|
|
601
|
+
*
|
|
602
|
+
* PER-APP AND OPT-IN, which is the whole reason it lives on the provider
|
|
603
|
+
* instead of being hardcoded in `Breadcrumbs`. `PageShell` is shared: the
|
|
604
|
+
* workspace and `apps/approvals` both render it, and approvals has no
|
|
605
|
+
* `/clients` route — a hardcoded home would have shipped it a dead link on
|
|
606
|
+
* every page. An app that wants a home crumb says where home is; an app that
|
|
607
|
+
* does not gets no icon and nothing breaks.
|
|
608
|
+
*/
|
|
609
|
+
interface HomeCrumb {
|
|
610
|
+
to: string;
|
|
611
|
+
/** Accessible name for the icon-only link, e.g. "Clients". */
|
|
612
|
+
label: string;
|
|
613
|
+
}
|
|
614
|
+
declare function PageHeaderSlotProvider({ children, home, }: {
|
|
608
615
|
children: ReactNode;
|
|
609
|
-
|
|
616
|
+
/** Where the leading home crumb points. Omit to render no home crumb. */
|
|
617
|
+
home?: HomeCrumb | null;
|
|
618
|
+
}): react_jsx_runtime.JSX.Element;
|
|
610
619
|
/**
|
|
611
620
|
* Page shell — promoted from brand-ai-extension Phase 2a (ADR-009 Decision 7).
|
|
612
621
|
*
|
|
@@ -619,7 +628,7 @@ declare function PageHeaderSlotProvider({ children }: {
|
|
|
619
628
|
* rendering its own bar — the workspace uses this to merge the lens crumbs
|
|
620
629
|
* onto the same row as the workspace sidebar toggle.
|
|
621
630
|
*/
|
|
622
|
-
declare function PageShell({ crumbs, breadcrumb, title, actions, headerCenter, children, contentClassName, }: PageShellProps):
|
|
631
|
+
declare function PageShell({ crumbs, breadcrumb, title, actions, headerCenter, children, contentClassName, }: PageShellProps): react_jsx_runtime.JSX.Element;
|
|
623
632
|
|
|
624
633
|
/**
|
|
625
634
|
* PageHeaderHost — single workspace-level header bar that the active
|
|
@@ -656,7 +665,33 @@ declare function PageHeaderHost({ leading, center, trailing, padX, }: {
|
|
|
656
665
|
*/
|
|
657
666
|
center?: ReactNode;
|
|
658
667
|
trailing?: ReactNode;
|
|
659
|
-
}):
|
|
668
|
+
}): react_jsx_runtime.JSX.Element;
|
|
669
|
+
/**
|
|
670
|
+
* The app's home destination, or null when the app has not declared one.
|
|
671
|
+
*
|
|
672
|
+
* Exported because not every breadcrumb in the app goes through `PageShell` —
|
|
673
|
+
* the Generate lens renders its own trail beside an editable project title —
|
|
674
|
+
* and those forks should read the same destination rather than each hardcoding
|
|
675
|
+
* a path that then drifts.
|
|
676
|
+
*/
|
|
677
|
+
declare function useBreadcrumbHome(): HomeCrumb | null;
|
|
678
|
+
/**
|
|
679
|
+
* The leading home crumb: an icon, not a word.
|
|
680
|
+
*
|
|
681
|
+
* WHY AN ICON REPLACES THE FIRST CRUMB RATHER THAN SITTING BESIDE IT. Thirty-one
|
|
682
|
+
* lens trails already began `Clients / …` pointing at `/clients`, which is
|
|
683
|
+
* exactly where home goes — so rendering both would put the same destination on
|
|
684
|
+
* screen twice in a row, once as a picture and once as a word. The icon takes
|
|
685
|
+
* that crumb's place when they agree and prepends when they do not (the tools
|
|
686
|
+
* trails start at `/tools`), so "first position" holds either way.
|
|
687
|
+
*
|
|
688
|
+
* It carries an `aria-label` and a `title`: an icon-only link has no accessible
|
|
689
|
+
* name otherwise, and the tooltip is what tells a first-time user that the house
|
|
690
|
+
* means the client list rather than some other notion of home.
|
|
691
|
+
*/
|
|
692
|
+
declare function HomeCrumbLink({ home }: {
|
|
693
|
+
home: HomeCrumb;
|
|
694
|
+
}): react_jsx_runtime.JSX.Element;
|
|
660
695
|
/**
|
|
661
696
|
* Scrollable wrapper that exposes its scrollRef via a render prop so
|
|
662
697
|
* the consuming header (PageShell's internal PageHeader) can subscribe
|
|
@@ -665,7 +700,7 @@ declare function PageHeaderHost({ leading, center, trailing, padX, }: {
|
|
|
665
700
|
declare function AppScroll({ children, className, }: {
|
|
666
701
|
children: (scrollRef: RefObject<HTMLDivElement | null>) => ReactNode;
|
|
667
702
|
className?: string;
|
|
668
|
-
}):
|
|
703
|
+
}): react_jsx_runtime.JSX.Element;
|
|
669
704
|
|
|
670
705
|
type SonnerToasterProps = ComponentProps<typeof Toaster$1>;
|
|
671
706
|
/**
|
|
@@ -678,18 +713,18 @@ type SonnerToasterProps = ComponentProps<typeof Toaster$1>;
|
|
|
678
713
|
* Apps can override any prop (position, duration, theme, etc.) by
|
|
679
714
|
* passing it through.
|
|
680
715
|
*/
|
|
681
|
-
declare function Toaster(props: SonnerToasterProps):
|
|
716
|
+
declare function Toaster(props: SonnerToasterProps): react_jsx_runtime.JSX.Element;
|
|
682
717
|
|
|
683
718
|
declare function SectionLabel({ children }: {
|
|
684
719
|
children: ReactNode;
|
|
685
|
-
}):
|
|
720
|
+
}): react_jsx_runtime.JSX.Element;
|
|
686
721
|
declare function IdentityLabel({ children }: {
|
|
687
722
|
children: ReactNode;
|
|
688
|
-
}):
|
|
723
|
+
}): react_jsx_runtime.JSX.Element;
|
|
689
724
|
declare function IdentityValue({ children, className, }: {
|
|
690
725
|
children: ReactNode;
|
|
691
726
|
className?: string;
|
|
692
|
-
}):
|
|
727
|
+
}): react_jsx_runtime.JSX.Element;
|
|
693
728
|
declare function TextInput({ value, onChange, placeholder, autoFocus, autoComplete, name, }: {
|
|
694
729
|
value: string;
|
|
695
730
|
onChange: (v: string) => void;
|
|
@@ -699,7 +734,7 @@ declare function TextInput({ value, onChange, placeholder, autoFocus, autoComple
|
|
|
699
734
|
autoComplete?: string | undefined;
|
|
700
735
|
/** Forwarded so the field participates in form submission / autofill heuristics. */
|
|
701
736
|
name?: string | undefined;
|
|
702
|
-
}):
|
|
737
|
+
}): react_jsx_runtime.JSX.Element;
|
|
703
738
|
declare function TextareaInput({ value, onChange, placeholder, autoFocus, autoComplete, name, rows, }: {
|
|
704
739
|
value: string;
|
|
705
740
|
onChange: (v: string) => void;
|
|
@@ -708,15 +743,15 @@ declare function TextareaInput({ value, onChange, placeholder, autoFocus, autoCo
|
|
|
708
743
|
autoComplete?: string | undefined;
|
|
709
744
|
name?: string | undefined;
|
|
710
745
|
rows?: number | undefined;
|
|
711
|
-
}):
|
|
746
|
+
}): react_jsx_runtime.JSX.Element;
|
|
712
747
|
declare function EmptyPlaceholder({ label, description, onAdd, }: {
|
|
713
748
|
label: string;
|
|
714
749
|
description?: string | undefined;
|
|
715
750
|
onAdd?: (() => void) | undefined;
|
|
716
|
-
}):
|
|
751
|
+
}): react_jsx_runtime.JSX.Element;
|
|
717
752
|
declare function ListItem({ children }: {
|
|
718
753
|
children: ReactNode;
|
|
719
|
-
}):
|
|
754
|
+
}): react_jsx_runtime.JSX.Element;
|
|
720
755
|
|
|
721
756
|
type Strategy = 'vertical' | 'horizontal' | 'grid';
|
|
722
757
|
declare function SortableList<T>({ items, getId, onReorder, strategy, children, }: {
|
|
@@ -725,7 +760,7 @@ declare function SortableList<T>({ items, getId, onReorder, strategy, children,
|
|
|
725
760
|
onReorder: (items: T[]) => void;
|
|
726
761
|
strategy?: Strategy;
|
|
727
762
|
children: ReactNode;
|
|
728
|
-
}):
|
|
763
|
+
}): react_jsx_runtime.JSX.Element;
|
|
729
764
|
declare function SortableItem({ id, children, }: {
|
|
730
765
|
id: string;
|
|
731
766
|
children: (props: {
|
|
@@ -734,11 +769,11 @@ declare function SortableItem({ id, children, }: {
|
|
|
734
769
|
style: CSSProperties;
|
|
735
770
|
isDragging: boolean;
|
|
736
771
|
}) => ReactNode;
|
|
737
|
-
}):
|
|
772
|
+
}): react_jsx_runtime.JSX.Element;
|
|
738
773
|
declare function DragHandle({ dragHandleProps, className, }: {
|
|
739
774
|
dragHandleProps: HTMLAttributes<HTMLElement>;
|
|
740
775
|
className?: string;
|
|
741
|
-
}):
|
|
776
|
+
}): react_jsx_runtime.JSX.Element;
|
|
742
777
|
|
|
743
778
|
interface EmptyStateProps {
|
|
744
779
|
/** Lucide icon (or any ReactNode) rendered inside the 56×56 tile.
|
|
@@ -754,7 +789,7 @@ interface EmptyStateProps {
|
|
|
754
789
|
* (e.g. when the parent already provides vertical padding). */
|
|
755
790
|
className?: string;
|
|
756
791
|
}
|
|
757
|
-
declare function EmptyState({ icon, title, description, actions, className, }: EmptyStateProps):
|
|
792
|
+
declare function EmptyState({ icon, title, description, actions, className, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
758
793
|
|
|
759
794
|
interface RadioGroupProps<T extends string = string> {
|
|
760
795
|
/** Form name — required for proper radio semantics + form submission. */
|
|
@@ -774,7 +809,7 @@ interface RadioGroupProps<T extends string = string> {
|
|
|
774
809
|
/** Disable every child radio. */
|
|
775
810
|
disabled?: boolean;
|
|
776
811
|
}
|
|
777
|
-
declare function RadioGroup<T extends string = string>({ name, value, onChange, children, ariaLabel, orientation, className, disabled, }: RadioGroupProps<T>):
|
|
812
|
+
declare function RadioGroup<T extends string = string>({ name, value, onChange, children, ariaLabel, orientation, className, disabled, }: RadioGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
778
813
|
interface RadioProps {
|
|
779
814
|
/** Value emitted to the group's onChange when picked. */
|
|
780
815
|
value: string;
|
|
@@ -800,7 +835,7 @@ interface OptionTileProps {
|
|
|
800
835
|
disabled: boolean | undefined;
|
|
801
836
|
className: string | undefined;
|
|
802
837
|
}
|
|
803
|
-
declare function OptionTile({ selected, onSelect, inputType, inputName, label, description, disabled, className, }: OptionTileProps):
|
|
838
|
+
declare function OptionTile({ selected, onSelect, inputType, inputName, label, description, disabled, className, }: OptionTileProps): react_jsx_runtime.JSX.Element;
|
|
804
839
|
interface OptionTileGroupOption<T extends string> {
|
|
805
840
|
value: T;
|
|
806
841
|
label: ReactNode;
|
|
@@ -827,7 +862,7 @@ type OptionTileGroupProps<T extends string = string> = {
|
|
|
827
862
|
/** Optional shared `name` attr on the underlying checkboxes (rarely needed). */
|
|
828
863
|
name?: string;
|
|
829
864
|
};
|
|
830
|
-
declare function OptionTileGroup<T extends string = string>(props: OptionTileGroupProps<T>):
|
|
865
|
+
declare function OptionTileGroup<T extends string = string>(props: OptionTileGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
831
866
|
|
|
832
867
|
type MetricCardTone = 'neutral' | 'accent' | 'success' | 'warning' | 'destructive' | 'info';
|
|
833
868
|
interface MetricCardProps {
|
|
@@ -851,7 +886,7 @@ interface MetricCardProps {
|
|
|
851
886
|
/** Optional className override for the outer container. */
|
|
852
887
|
className?: string;
|
|
853
888
|
}
|
|
854
|
-
declare function MetricCard({ value, label, tone, icon, labelPosition, className, }: MetricCardProps):
|
|
889
|
+
declare function MetricCard({ value, label, tone, icon, labelPosition, className, }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
855
890
|
|
|
856
891
|
/**
|
|
857
892
|
* ProgressBar — labeled fill bar.
|
|
@@ -875,7 +910,7 @@ interface ProgressBarProps {
|
|
|
875
910
|
/** Track height in px (default 8). */
|
|
876
911
|
height?: number;
|
|
877
912
|
}
|
|
878
|
-
declare function ProgressBar({ label, percent, status, height }: ProgressBarProps):
|
|
913
|
+
declare function ProgressBar({ label, percent, status, height }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
879
914
|
|
|
880
915
|
/**
|
|
881
916
|
* StepLoader — a sequential, multi-step loading indicator (3-5 steps). Each step
|
|
@@ -907,7 +942,7 @@ interface StepLoaderProps {
|
|
|
907
942
|
minLastStepMs?: number;
|
|
908
943
|
className?: string;
|
|
909
944
|
}
|
|
910
|
-
declare function StepLoader({ steps, done, onComplete, defaultStepMs, minLastStepMs, className, }: StepLoaderProps):
|
|
945
|
+
declare function StepLoader({ steps, done, onComplete, defaultStepMs, minLastStepMs, className, }: StepLoaderProps): react_jsx_runtime.JSX.Element;
|
|
911
946
|
|
|
912
947
|
type BadgeTone = 'neutral' | 'accent' | 'success' | 'warning' | 'destructive' | 'info';
|
|
913
948
|
interface BadgeProps {
|
|
@@ -924,7 +959,7 @@ interface BadgeProps {
|
|
|
924
959
|
/** Extra classes merged onto the outer span (no longer replaces base). */
|
|
925
960
|
className?: string;
|
|
926
961
|
}
|
|
927
|
-
declare function Badge({ tone, children, icon, dot, size, className, }: BadgeProps):
|
|
962
|
+
declare function Badge({ tone, children, icon, dot, size, className, }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
928
963
|
|
|
929
964
|
interface TokenBadgeProps {
|
|
930
965
|
/** Public token name to tint from, e.g. `--folder-teal`, `--accent`,
|
|
@@ -946,7 +981,7 @@ interface TokenBadgeProps {
|
|
|
946
981
|
uppercase?: boolean;
|
|
947
982
|
className?: string;
|
|
948
983
|
}
|
|
949
|
-
declare function TokenBadge({ colorVar, children, variant, dot, icon, size, shape, uppercase, className, }: TokenBadgeProps):
|
|
984
|
+
declare function TokenBadge({ colorVar, children, variant, dot, icon, size, shape, uppercase, className, }: TokenBadgeProps): react_jsx_runtime.JSX.Element;
|
|
950
985
|
|
|
951
986
|
interface ValueChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
952
987
|
children: ReactNode;
|
|
@@ -1048,7 +1083,7 @@ interface AllocationSparkbarProps {
|
|
|
1048
1083
|
height?: number;
|
|
1049
1084
|
className?: string;
|
|
1050
1085
|
}
|
|
1051
|
-
declare function AllocationSparkbar({ values, baseColorVar, colorVars, labels, titles, height, className, }: AllocationSparkbarProps):
|
|
1086
|
+
declare function AllocationSparkbar({ values, baseColorVar, colorVars, labels, titles, height, className, }: AllocationSparkbarProps): react_jsx_runtime.JSX.Element;
|
|
1052
1087
|
|
|
1053
1088
|
type FloatingStatusTone = 'neutral' | 'accent' | 'success' | 'warning' | 'destructive' | 'info';
|
|
1054
1089
|
interface FloatingStatusBarProps {
|
|
@@ -1066,7 +1101,7 @@ interface FloatingStatusBarProps {
|
|
|
1066
1101
|
* bottom-center. */
|
|
1067
1102
|
className?: string;
|
|
1068
1103
|
}
|
|
1069
|
-
declare function FloatingStatusBar({ tone, label, meta, summary, action, className, }: FloatingStatusBarProps):
|
|
1104
|
+
declare function FloatingStatusBar({ tone, label, meta, summary, action, className, }: FloatingStatusBarProps): react_jsx_runtime.JSX.Element;
|
|
1070
1105
|
|
|
1071
1106
|
interface StatsGridProps {
|
|
1072
1107
|
children: ReactNode;
|
|
@@ -1076,7 +1111,7 @@ interface StatsGridProps {
|
|
|
1076
1111
|
/** Optional className override for the outer container. */
|
|
1077
1112
|
className?: string;
|
|
1078
1113
|
}
|
|
1079
|
-
declare function StatsGrid({ children, minColumnWidth, className, }: StatsGridProps):
|
|
1114
|
+
declare function StatsGrid({ children, minColumnWidth, className, }: StatsGridProps): react_jsx_runtime.JSX.Element;
|
|
1080
1115
|
|
|
1081
1116
|
interface Column<T> {
|
|
1082
1117
|
/** Unique id; doubles as the sort key. Use a `keyof T` string or
|
|
@@ -1115,7 +1150,7 @@ interface SortableTableProps<T> {
|
|
|
1115
1150
|
/** Compact density (smaller padding). Default false. */
|
|
1116
1151
|
compact?: boolean;
|
|
1117
1152
|
}
|
|
1118
|
-
declare function SortableTable<T>({ columns, rows, rowKey, initialSort, onRowClick, emptyState, zebra, compact, }: SortableTableProps<T>):
|
|
1153
|
+
declare function SortableTable<T>({ columns, rows, rowKey, initialSort, onRowClick, emptyState, zebra, compact, }: SortableTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1119
1154
|
|
|
1120
1155
|
/**
|
|
1121
1156
|
* Pagination — "Showing X-Y of Z" + prev/next buttons.
|
|
@@ -1137,7 +1172,7 @@ interface PaginationProps {
|
|
|
1137
1172
|
totalItems: number;
|
|
1138
1173
|
onPageChange: (page: number) => void;
|
|
1139
1174
|
}
|
|
1140
|
-
declare function Pagination({ currentPage, pageSize, totalItems, onPageChange, }: PaginationProps):
|
|
1175
|
+
declare function Pagination({ currentPage, pageSize, totalItems, onPageChange, }: PaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
1141
1176
|
|
|
1142
1177
|
interface Tab {
|
|
1143
1178
|
id: string;
|
|
@@ -1163,7 +1198,7 @@ interface TabsProps {
|
|
|
1163
1198
|
stretch?: boolean;
|
|
1164
1199
|
className?: string;
|
|
1165
1200
|
}
|
|
1166
|
-
declare function Tabs({ tabs, activeTabId, onTabChange, size, variant, stretch, className, }: TabsProps):
|
|
1201
|
+
declare function Tabs({ tabs, activeTabId, onTabChange, size, variant, stretch, className, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
1167
1202
|
|
|
1168
1203
|
interface PillButtonProps {
|
|
1169
1204
|
active: boolean;
|
|
@@ -1177,7 +1212,7 @@ interface PillButtonProps {
|
|
|
1177
1212
|
icon?: ReactNode;
|
|
1178
1213
|
disabled?: boolean;
|
|
1179
1214
|
}
|
|
1180
|
-
declare function PillButton({ active, onClick, children, size, tone, icon, disabled, }: PillButtonProps):
|
|
1215
|
+
declare function PillButton({ active, onClick, children, size, tone, icon, disabled, }: PillButtonProps): react_jsx_runtime.JSX.Element;
|
|
1181
1216
|
|
|
1182
1217
|
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'checked'> {
|
|
1183
1218
|
checked?: boolean;
|
|
@@ -1196,7 +1231,7 @@ interface DropdownMenuProps {
|
|
|
1196
1231
|
defaultOpen?: boolean;
|
|
1197
1232
|
children: ReactNode;
|
|
1198
1233
|
}
|
|
1199
|
-
declare function DropdownMenu({ open: controlledOpen, onOpenChange, defaultOpen, children, }: DropdownMenuProps):
|
|
1234
|
+
declare function DropdownMenu({ open: controlledOpen, onOpenChange, defaultOpen, children, }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
|
|
1200
1235
|
interface DropdownMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1201
1236
|
/** Skip the default secondary-Button styling. Useful when wrapping
|
|
1202
1237
|
* an existing Button primitive. */
|
|
@@ -1207,7 +1242,7 @@ interface DropdownMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
1207
1242
|
* secondary Button visual (rounded-xl + `--bg-card` fill + 1px
|
|
1208
1243
|
* `--border`). Set `unstyled` to wrap your own button shape.
|
|
1209
1244
|
*/
|
|
1210
|
-
declare function DropdownMenuTrigger({ unstyled, className, onClick, children, ...rest }: DropdownMenuTriggerProps):
|
|
1245
|
+
declare function DropdownMenuTrigger({ unstyled, className, onClick, children, ...rest }: DropdownMenuTriggerProps): react_jsx_runtime.JSX.Element;
|
|
1211
1246
|
interface DropdownMenuContentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1212
1247
|
children: ReactNode;
|
|
1213
1248
|
/** Horizontal alignment relative to the trigger. Default `start`. */
|
|
@@ -1226,18 +1261,18 @@ interface DropdownMenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
1226
1261
|
* items that have one. */
|
|
1227
1262
|
inset?: boolean;
|
|
1228
1263
|
}
|
|
1229
|
-
declare function DropdownMenuItem({ variant, inset, className, onClick, children, ...rest }: DropdownMenuItemProps):
|
|
1264
|
+
declare function DropdownMenuItem({ variant, inset, className, onClick, children, ...rest }: DropdownMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
1230
1265
|
interface DropdownMenuCheckboxItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
1231
1266
|
checked?: boolean;
|
|
1232
1267
|
onCheckedChange?: (checked: boolean) => void;
|
|
1233
1268
|
}
|
|
1234
|
-
declare function DropdownMenuCheckboxItem({ checked, onCheckedChange, className, children, onClick, disabled, ...rest }: DropdownMenuCheckboxItemProps):
|
|
1235
|
-
declare function DropdownMenuSeparator({ className, ...rest }: HTMLAttributes<HTMLDivElement>):
|
|
1269
|
+
declare function DropdownMenuCheckboxItem({ checked, onCheckedChange, className, children, onClick, disabled, ...rest }: DropdownMenuCheckboxItemProps): react_jsx_runtime.JSX.Element;
|
|
1270
|
+
declare function DropdownMenuSeparator({ className, ...rest }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1236
1271
|
interface DropdownMenuLabelProps extends HTMLAttributes<HTMLDivElement> {
|
|
1237
1272
|
inset?: boolean;
|
|
1238
1273
|
}
|
|
1239
|
-
declare function DropdownMenuLabel({ inset, className, ...rest }: DropdownMenuLabelProps):
|
|
1240
|
-
declare function DropdownMenuGroup({ className, ...rest }: HTMLAttributes<HTMLDivElement>):
|
|
1274
|
+
declare function DropdownMenuLabel({ inset, className, ...rest }: DropdownMenuLabelProps): react_jsx_runtime.JSX.Element;
|
|
1275
|
+
declare function DropdownMenuGroup({ className, ...rest }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1241
1276
|
|
|
1242
1277
|
/**
|
|
1243
1278
|
* DataGrid public types.
|
|
@@ -1374,7 +1409,7 @@ type EditingCell<ColumnId extends string> = {
|
|
|
1374
1409
|
};
|
|
1375
1410
|
};
|
|
1376
1411
|
|
|
1377
|
-
declare function DataGrid<Row extends DataGridRowBase, ColumnId extends string>({ rows, columns, getRowLabel, renderCell, isEditableColumn, getCellEditValue, applyCellEdit, getDrawerCellValue, canOpenDrawer, renderSummary, renderDrawerPanel, renderToolbar, onToolbarPropsChange, onOpenDrawerCell, drawerModal, drawerSize, stickySummaryFooter, stickyHeader, fillWidth, fillAvailableHeight, tableContainerClassName, onRowsChange, sort, onSortChange, }: DataGridProps<Row, ColumnId>):
|
|
1412
|
+
declare function DataGrid<Row extends DataGridRowBase, ColumnId extends string>({ rows, columns, getRowLabel, renderCell, isEditableColumn, getCellEditValue, applyCellEdit, getDrawerCellValue, canOpenDrawer, renderSummary, renderDrawerPanel, renderToolbar, onToolbarPropsChange, onOpenDrawerCell, drawerModal, drawerSize, stickySummaryFooter, stickyHeader, fillWidth, fillAvailableHeight, tableContainerClassName, onRowsChange, sort, onSortChange, }: DataGridProps<Row, ColumnId>): react_jsx_runtime.JSX.Element;
|
|
1378
1413
|
|
|
1379
1414
|
interface DataGridToolbarProps {
|
|
1380
1415
|
/** Left slot — typically a <SearchBar>. Stretches up to a comfortable
|
|
@@ -1384,19 +1419,19 @@ interface DataGridToolbarProps {
|
|
|
1384
1419
|
children?: ReactNode;
|
|
1385
1420
|
className?: string;
|
|
1386
1421
|
}
|
|
1387
|
-
declare function DataGridToolbar({ search, children, className, }: DataGridToolbarProps):
|
|
1422
|
+
declare function DataGridToolbar({ search, children, className, }: DataGridToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1388
1423
|
|
|
1389
1424
|
type DataGridColumnOptionsMenuProps<ColumnId extends string> = Pick<DataGridToolbarRenderProps<ColumnId>, 'showSummaries' | 'onShowSummariesChange' | 'visibleColumns' | 'visibleColumnIds' | 'hiddenColumns' | 'toggleColumnVisibility' | 'optionsSensors' | 'onOptionColumnDragEnd' | 'optionsDndContextId'> & {
|
|
1390
1425
|
triggerLabel?: string;
|
|
1391
1426
|
};
|
|
1392
|
-
declare function DataGridColumnOptionsMenu<ColumnId extends string>({ showSummaries, onShowSummariesChange, visibleColumns, visibleColumnIds, hiddenColumns, toggleColumnVisibility, optionsSensors, onOptionColumnDragEnd, optionsDndContextId, triggerLabel, }: DataGridColumnOptionsMenuProps<ColumnId>):
|
|
1427
|
+
declare function DataGridColumnOptionsMenu<ColumnId extends string>({ showSummaries, onShowSummariesChange, visibleColumns, visibleColumnIds, hiddenColumns, toggleColumnVisibility, optionsSensors, onOptionColumnDragEnd, optionsDndContextId, triggerLabel, }: DataGridColumnOptionsMenuProps<ColumnId>): react_jsx_runtime.JSX.Element;
|
|
1393
1428
|
|
|
1394
1429
|
type DataGridDragOverlayProps<ColumnId extends string> = {
|
|
1395
1430
|
dragOverlayColumn: DataGridColumn<ColumnId> | null;
|
|
1396
1431
|
columnWidths: Record<ColumnId, number>;
|
|
1397
1432
|
dragOverlayHeight: number;
|
|
1398
1433
|
};
|
|
1399
|
-
declare function DataGridDragOverlay<ColumnId extends string>({ dragOverlayColumn, columnWidths, dragOverlayHeight, }: DataGridDragOverlayProps<ColumnId>):
|
|
1434
|
+
declare function DataGridDragOverlay<ColumnId extends string>({ dragOverlayColumn, columnWidths, dragOverlayHeight, }: DataGridDragOverlayProps<ColumnId>): react_jsx_runtime.JSX.Element | null;
|
|
1400
1435
|
type DataGridDropIndicatorProps = {
|
|
1401
1436
|
dropIndicatorLeft: number | null;
|
|
1402
1437
|
dragTableRect: {
|
|
@@ -1404,7 +1439,7 @@ type DataGridDropIndicatorProps = {
|
|
|
1404
1439
|
height: number;
|
|
1405
1440
|
} | null;
|
|
1406
1441
|
};
|
|
1407
|
-
declare function DataGridDropIndicator({ dropIndicatorLeft, dragTableRect, }: DataGridDropIndicatorProps):
|
|
1442
|
+
declare function DataGridDropIndicator({ dropIndicatorLeft, dragTableRect, }: DataGridDropIndicatorProps): react_jsx_runtime.JSX.Element | null;
|
|
1408
1443
|
|
|
1409
1444
|
interface DropdownButtonItem {
|
|
1410
1445
|
/** Stable id for keying. If omitted, the index is used (avoid for
|
|
@@ -1460,7 +1495,7 @@ interface DropdownButtonProps {
|
|
|
1460
1495
|
* an engaged filter. Pair with `activeId` for filter-chip use. */
|
|
1461
1496
|
active?: boolean;
|
|
1462
1497
|
}
|
|
1463
|
-
declare function DropdownButton({ label, variant, size, leadingIcon, trailingIcon, items, disabled, loading, className, align, side, sideOffset, menuWidth, triggerAriaLabel, activeId, active, }: DropdownButtonProps):
|
|
1498
|
+
declare function DropdownButton({ label, variant, size, leadingIcon, trailingIcon, items, disabled, loading, className, align, side, sideOffset, menuWidth, triggerAriaLabel, activeId, active, }: DropdownButtonProps): react_jsx_runtime.JSX.Element;
|
|
1464
1499
|
|
|
1465
1500
|
interface AccordionProps {
|
|
1466
1501
|
/** Ids of the currently-open sections. */
|
|
@@ -1470,7 +1505,7 @@ interface AccordionProps {
|
|
|
1470
1505
|
children: ReactNode;
|
|
1471
1506
|
className?: string;
|
|
1472
1507
|
}
|
|
1473
|
-
declare function Accordion({ openIds, onToggle, children, className }: AccordionProps):
|
|
1508
|
+
declare function Accordion({ openIds, onToggle, children, className }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
1474
1509
|
interface AccordionSectionProps {
|
|
1475
1510
|
/** Stable id — matched against the Accordion's `openIds`. */
|
|
1476
1511
|
id: string;
|
|
@@ -1484,7 +1519,7 @@ interface AccordionSectionProps {
|
|
|
1484
1519
|
complete?: boolean;
|
|
1485
1520
|
children: ReactNode;
|
|
1486
1521
|
}
|
|
1487
|
-
declare function AccordionSection({ id, title, summary, badge, complete, children, }: AccordionSectionProps):
|
|
1522
|
+
declare function AccordionSection({ id, title, summary, badge, complete, children, }: AccordionSectionProps): react_jsx_runtime.JSX.Element;
|
|
1488
1523
|
declare const AccordionCompound: typeof Accordion & {
|
|
1489
1524
|
Section: typeof AccordionSection;
|
|
1490
1525
|
};
|
|
@@ -1526,7 +1561,7 @@ interface MenuButtonProps {
|
|
|
1526
1561
|
/** aria-label for the trigger when the visible label is ambiguous. */
|
|
1527
1562
|
triggerAriaLabel?: string;
|
|
1528
1563
|
}
|
|
1529
|
-
declare function MenuButton({ label, items, leadingIcon, disabled, align, menuWidth, className, triggerAriaLabel, }: MenuButtonProps):
|
|
1564
|
+
declare function MenuButton({ label, items, leadingIcon, disabled, align, menuWidth, className, triggerAriaLabel, }: MenuButtonProps): react_jsx_runtime.JSX.Element;
|
|
1530
1565
|
|
|
1531
1566
|
/**
|
|
1532
1567
|
* CopyField — an input/output field with a copy button pinned to the
|
|
@@ -1568,7 +1603,7 @@ interface CopyFieldProps {
|
|
|
1568
1603
|
copyToastMessage?: string;
|
|
1569
1604
|
className?: string;
|
|
1570
1605
|
}
|
|
1571
|
-
declare function CopyField({ value, onChange, multiline, rows, placeholder, readOnly, label, hideLabel, id, copyToastMessage, className, }: CopyFieldProps):
|
|
1606
|
+
declare function CopyField({ value, onChange, multiline, rows, placeholder, readOnly, label, hideLabel, id, copyToastMessage, className, }: CopyFieldProps): react_jsx_runtime.JSX.Element;
|
|
1572
1607
|
|
|
1573
1608
|
/**
|
|
1574
1609
|
* TagChipInput — type-to-create chips with autocomplete.
|
|
@@ -1611,7 +1646,7 @@ interface TagChipInputProps {
|
|
|
1611
1646
|
error?: boolean;
|
|
1612
1647
|
className?: string;
|
|
1613
1648
|
}
|
|
1614
|
-
declare function TagChipInput({ value, onChange, suggestions, placeholder, max, maxLength, disabled, id, error, className, }: TagChipInputProps):
|
|
1649
|
+
declare function TagChipInput({ value, onChange, suggestions, placeholder, max, maxLength, disabled, id, error, className, }: TagChipInputProps): react_jsx_runtime.JSX.Element;
|
|
1615
1650
|
|
|
1616
1651
|
/**
|
|
1617
1652
|
* FolderTreePicker — dropdown picker for a nestable folder tree.
|
|
@@ -1664,7 +1699,7 @@ interface FolderTreePickerProps {
|
|
|
1664
1699
|
/** Apply error styling to the trigger. */
|
|
1665
1700
|
error?: boolean;
|
|
1666
1701
|
}
|
|
1667
|
-
declare function FolderTreePicker({ folders, value, onChange, onCreateFolder, placeholder, disabled, id, className, error, }: FolderTreePickerProps):
|
|
1702
|
+
declare function FolderTreePicker({ folders, value, onChange, onCreateFolder, placeholder, disabled, id, className, error, }: FolderTreePickerProps): react_jsx_runtime.JSX.Element;
|
|
1668
1703
|
|
|
1669
1704
|
interface HeroFormCardProps extends Omit<FormHTMLAttributes<HTMLFormElement>, 'title' | 'onSubmit'> {
|
|
1670
1705
|
/** Small accent text above the title, e.g. "Brand · Research". */
|
|
@@ -1704,7 +1739,7 @@ interface HeroFormCardSectionProps extends Omit<HTMLAttributes<HTMLElement>, 'ti
|
|
|
1704
1739
|
trailing?: ReactNode;
|
|
1705
1740
|
children: ReactNode;
|
|
1706
1741
|
}
|
|
1707
|
-
declare function Section({ title, icon, description, trailing, children, className, ...rest }: HeroFormCardSectionProps):
|
|
1742
|
+
declare function Section({ title, icon, description, trailing, children, className, ...rest }: HeroFormCardSectionProps): react_jsx_runtime.JSX.Element;
|
|
1708
1743
|
interface HeroFormCardFieldProps {
|
|
1709
1744
|
/** Visible field label. */
|
|
1710
1745
|
label: ReactNode;
|
|
@@ -1719,8 +1754,8 @@ interface HeroFormCardFieldProps {
|
|
|
1719
1754
|
children: ReactNode;
|
|
1720
1755
|
className?: string;
|
|
1721
1756
|
}
|
|
1722
|
-
declare function Field({ label, htmlFor, required, optional, error, hint, children, className, }: HeroFormCardFieldProps):
|
|
1723
|
-
declare function FieldRow({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>):
|
|
1757
|
+
declare function Field({ label, htmlFor, required, optional, error, hint, children, className, }: HeroFormCardFieldProps): react_jsx_runtime.JSX.Element;
|
|
1758
|
+
declare function FieldRow({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1724
1759
|
interface HeroFormCardBannerProps {
|
|
1725
1760
|
/** Optional leading icon. */
|
|
1726
1761
|
icon?: ReactNode;
|
|
@@ -1730,7 +1765,7 @@ interface HeroFormCardBannerProps {
|
|
|
1730
1765
|
tone?: 'info' | 'accent' | 'success' | 'warning' | 'destructive';
|
|
1731
1766
|
className?: string;
|
|
1732
1767
|
}
|
|
1733
|
-
declare function Banner({ icon, children, tone, className, }: HeroFormCardBannerProps):
|
|
1768
|
+
declare function Banner({ icon, children, tone, className, }: HeroFormCardBannerProps): react_jsx_runtime.JSX.Element;
|
|
1734
1769
|
interface HeroFormCardAdvancedProps {
|
|
1735
1770
|
summary?: ReactNode;
|
|
1736
1771
|
/** Optional icon node next to the summary. */
|
|
@@ -1739,8 +1774,8 @@ interface HeroFormCardAdvancedProps {
|
|
|
1739
1774
|
children: ReactNode;
|
|
1740
1775
|
className?: string;
|
|
1741
1776
|
}
|
|
1742
|
-
declare function Advanced({ summary, icon, defaultOpen, children, className, }: HeroFormCardAdvancedProps):
|
|
1743
|
-
declare function Footer({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>):
|
|
1777
|
+
declare function Advanced({ summary, icon, defaultOpen, children, className, }: HeroFormCardAdvancedProps): react_jsx_runtime.JSX.Element;
|
|
1778
|
+
declare function Footer({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1744
1779
|
declare const HeroFormCardCompound: react.ForwardRefExoticComponent<HeroFormCardProps & react.RefAttributes<HTMLFormElement>> & {
|
|
1745
1780
|
Section: typeof Section;
|
|
1746
1781
|
Field: typeof Field;
|
|
@@ -1770,7 +1805,7 @@ interface RangeSliderProps {
|
|
|
1770
1805
|
disabled?: boolean;
|
|
1771
1806
|
className?: string;
|
|
1772
1807
|
}
|
|
1773
|
-
declare function RangeSlider({ min, max, value, onChange, step, label, formatValue, id, disabled, className, }: RangeSliderProps):
|
|
1808
|
+
declare function RangeSlider({ min, max, value, onChange, step, label, formatValue, id, disabled, className, }: RangeSliderProps): react_jsx_runtime.JSX.Element;
|
|
1774
1809
|
|
|
1775
1810
|
interface SegmentedPillItem<Id extends string = string> {
|
|
1776
1811
|
id: Id;
|
|
@@ -1794,7 +1829,7 @@ interface SegmentedPillProps<Id extends string = string> {
|
|
|
1794
1829
|
stretch?: boolean;
|
|
1795
1830
|
className?: string;
|
|
1796
1831
|
}
|
|
1797
|
-
declare function SegmentedPill<Id extends string = string>({ items, value, onChange, ariaLabel, size, stretch, className, }: SegmentedPillProps<Id>):
|
|
1832
|
+
declare function SegmentedPill<Id extends string = string>({ items, value, onChange, ariaLabel, size, stretch, className, }: SegmentedPillProps<Id>): react_jsx_runtime.JSX.Element;
|
|
1798
1833
|
|
|
1799
1834
|
interface ShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
1800
1835
|
/** Max-width for the auto-centered page-level wrapper, in pixels.
|
|
@@ -1826,7 +1861,7 @@ interface ShellTrayHeaderProps extends Omit<HTMLAttributes<HTMLElement>, 'title'
|
|
|
1826
1861
|
/** Tighter padding for dense layouts. */
|
|
1827
1862
|
compact?: boolean;
|
|
1828
1863
|
}
|
|
1829
|
-
declare function TrayHeader({ title, meta, index, description, compact, className, style, ...rest }: ShellTrayHeaderProps):
|
|
1864
|
+
declare function TrayHeader({ title, meta, index, description, compact, className, style, ...rest }: ShellTrayHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1830
1865
|
interface ShellTrayBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
1831
1866
|
/** Vertical gap between children. Default `form` (16px). `grid`
|
|
1832
1867
|
* (14px) is for tighter sub-card grids. `flush` (0) lets the
|
|
@@ -1835,7 +1870,7 @@ interface ShellTrayBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1835
1870
|
/** Tighter padding for dense layouts. */
|
|
1836
1871
|
compact?: boolean;
|
|
1837
1872
|
}
|
|
1838
|
-
declare function TrayBody({ spacing, compact, className, style, children, ...rest }: ShellTrayBodyProps):
|
|
1873
|
+
declare function TrayBody({ spacing, compact, className, style, children, ...rest }: ShellTrayBodyProps): react_jsx_runtime.JSX.Element;
|
|
1839
1874
|
interface ShellTrayFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
1840
1875
|
/** Tighter padding for dense layouts. */
|
|
1841
1876
|
compact?: boolean;
|
|
@@ -1846,12 +1881,12 @@ interface ShellTrayFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1846
1881
|
* the right edge via `margin-left: auto`. */
|
|
1847
1882
|
right?: ReactNode;
|
|
1848
1883
|
}
|
|
1849
|
-
declare function TrayFooter({ compact, left, right, className, style, children, ...rest }: ShellTrayFooterProps):
|
|
1884
|
+
declare function TrayFooter({ compact, left, right, className, style, children, ...rest }: ShellTrayFooterProps): react_jsx_runtime.JSX.Element;
|
|
1850
1885
|
interface ShellSubCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
1851
1886
|
/** Optional header content rendered above the body. */
|
|
1852
1887
|
header?: ReactNode;
|
|
1853
1888
|
}
|
|
1854
|
-
declare function SubCard({ header, className, style, children, ...rest }: ShellSubCardProps):
|
|
1889
|
+
declare function SubCard({ header, className, style, children, ...rest }: ShellSubCardProps): react_jsx_runtime.JSX.Element;
|
|
1855
1890
|
/** Value-text tone for <ShellStat>. Semantic tones map to the public
|
|
1856
1891
|
* status tokens — handy for traffic-light KPIs (e.g. competition). */
|
|
1857
1892
|
type ShellStatTone = 'default' | 'accent' | 'success' | 'warning' | 'destructive';
|
|
@@ -1868,7 +1903,7 @@ interface ShellStatProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
|
1868
1903
|
* color (`success` / `warning` / `destructive`). */
|
|
1869
1904
|
valueTone?: ShellStatTone;
|
|
1870
1905
|
}
|
|
1871
|
-
declare function ShellStat({ label, value, icon, hint, valueTone, className, ...rest }: ShellStatProps):
|
|
1906
|
+
declare function ShellStat({ label, value, icon, hint, valueTone, className, ...rest }: ShellStatProps): react_jsx_runtime.JSX.Element;
|
|
1872
1907
|
type ShellComponent = typeof ShellRoot & {
|
|
1873
1908
|
Tray: typeof Tray;
|
|
1874
1909
|
TrayHeader: typeof TrayHeader;
|
|
@@ -1901,7 +1936,7 @@ interface FolderCardProps {
|
|
|
1901
1936
|
menuSlot?: ReactNode;
|
|
1902
1937
|
className?: string;
|
|
1903
1938
|
}
|
|
1904
|
-
declare function FolderCard({ name, colorKey, assetCount, folderCount, selected, selectable, onOpen, onSelect, menuSlot, className, }: FolderCardProps):
|
|
1939
|
+
declare function FolderCard({ name, colorKey, assetCount, folderCount, selected, selectable, onOpen, onSelect, menuSlot, className, }: FolderCardProps): react_jsx_runtime.JSX.Element;
|
|
1905
1940
|
|
|
1906
1941
|
interface BulkActionBarProps {
|
|
1907
1942
|
/** Selection count shown in the accent badge. */
|
|
@@ -1913,7 +1948,7 @@ interface BulkActionBarProps {
|
|
|
1913
1948
|
children: ReactNode;
|
|
1914
1949
|
onClear: () => void;
|
|
1915
1950
|
}
|
|
1916
|
-
declare function BulkActionBar({ count, summary, children, onClear, }: BulkActionBarProps):
|
|
1951
|
+
declare function BulkActionBar({ count, summary, children, onClear, }: BulkActionBarProps): react_jsx_runtime.JSX.Element;
|
|
1917
1952
|
|
|
1918
1953
|
/**
|
|
1919
1954
|
* FileUploadButton — paperclip trigger that opens a native file picker.
|
|
@@ -1927,7 +1962,7 @@ interface FileUploadButtonProps {
|
|
|
1927
1962
|
fileCount?: number;
|
|
1928
1963
|
maxFiles?: number;
|
|
1929
1964
|
}
|
|
1930
|
-
declare function FileUploadButton({ onFilesSelected, disabled, fileCount, maxFiles, }: FileUploadButtonProps):
|
|
1965
|
+
declare function FileUploadButton({ onFilesSelected, disabled, fileCount, maxFiles, }: FileUploadButtonProps): react_jsx_runtime.JSX.Element;
|
|
1931
1966
|
|
|
1932
1967
|
interface FileDropZoneProps {
|
|
1933
1968
|
children: ReactNode;
|
|
@@ -1935,7 +1970,7 @@ interface FileDropZoneProps {
|
|
|
1935
1970
|
disabled?: boolean;
|
|
1936
1971
|
className?: string;
|
|
1937
1972
|
}
|
|
1938
|
-
declare function FileDropZone({ children, onFilesDropped, disabled, className, }: FileDropZoneProps):
|
|
1973
|
+
declare function FileDropZone({ children, onFilesDropped, disabled, className, }: FileDropZoneProps): react_jsx_runtime.JSX.Element;
|
|
1939
1974
|
|
|
1940
1975
|
/**
|
|
1941
1976
|
* useFileUpload — stateful file-selection, validation, text-extraction, and
|
|
@@ -2008,13 +2043,13 @@ interface FilePreviewGridProps {
|
|
|
2008
2043
|
onRemove: (id: string) => void;
|
|
2009
2044
|
className?: string;
|
|
2010
2045
|
}
|
|
2011
|
-
declare function FilePreviewGrid({ files, onRemove, className }: FilePreviewGridProps):
|
|
2046
|
+
declare function FilePreviewGrid({ files, onRemove, className }: FilePreviewGridProps): react_jsx_runtime.JSX.Element | null;
|
|
2012
2047
|
|
|
2013
2048
|
interface FilePreviewItemProps {
|
|
2014
2049
|
pendingFile: PendingFile;
|
|
2015
2050
|
onRemove: (id: string) => void;
|
|
2016
2051
|
}
|
|
2017
|
-
declare function FilePreviewItem({ pendingFile, onRemove }: FilePreviewItemProps):
|
|
2052
|
+
declare function FilePreviewItem({ pendingFile, onRemove }: FilePreviewItemProps): react_jsx_runtime.JSX.Element;
|
|
2018
2053
|
|
|
2019
2054
|
/**
|
|
2020
2055
|
* FileThumbnail — icon-based preview tile for non-image files; renders the
|
|
@@ -2034,7 +2069,7 @@ interface FileThumbnailProps {
|
|
|
2034
2069
|
previewUrl?: string;
|
|
2035
2070
|
className?: string;
|
|
2036
2071
|
}
|
|
2037
|
-
declare function FileThumbnail({ file, previewUrl, className }: FileThumbnailProps):
|
|
2072
|
+
declare function FileThumbnail({ file, previewUrl, className }: FileThumbnailProps): react_jsx_runtime.JSX.Element;
|
|
2038
2073
|
|
|
2039
2074
|
interface CodeBlockProps {
|
|
2040
2075
|
/** Lowercased language identifier, e.g. "typescript" or "json". */
|
|
@@ -2042,7 +2077,7 @@ interface CodeBlockProps {
|
|
|
2042
2077
|
/** Raw source text. */
|
|
2043
2078
|
children: string;
|
|
2044
2079
|
}
|
|
2045
|
-
declare function CodeBlock({ language, children }: CodeBlockProps):
|
|
2080
|
+
declare function CodeBlock({ language, children }: CodeBlockProps): react_jsx_runtime.JSX.Element;
|
|
2046
2081
|
/**
|
|
2047
2082
|
* MarkdownCode — react-markdown code element adapter.
|
|
2048
2083
|
*
|
|
@@ -2050,7 +2085,7 @@ declare function CodeBlock({ language, children }: CodeBlockProps): react.JSX.El
|
|
|
2050
2085
|
* Fenced code (triple backtick, className="language-xxx") delegates to
|
|
2051
2086
|
* CodeBlock for syntax highlighting + copy button.
|
|
2052
2087
|
*/
|
|
2053
|
-
declare function MarkdownCode({ className, children }: HTMLAttributes<HTMLElement>):
|
|
2088
|
+
declare function MarkdownCode({ className, children }: HTMLAttributes<HTMLElement>): react_jsx_runtime.JSX.Element;
|
|
2054
2089
|
|
|
2055
2090
|
interface MarkdownRendererProps {
|
|
2056
2091
|
/** Raw markdown string to render. */
|
|
@@ -2063,7 +2098,7 @@ interface MarkdownRendererProps {
|
|
|
2063
2098
|
* Renders headings, lists, code (via CodeBlock), tables, task lists,
|
|
2064
2099
|
* strikethrough, blockquotes, and links with workspace token styling.
|
|
2065
2100
|
*/
|
|
2066
|
-
declare function MarkdownRenderer({ children, className }: MarkdownRendererProps):
|
|
2101
|
+
declare function MarkdownRenderer({ children, className }: MarkdownRendererProps): react_jsx_runtime.JSX.Element;
|
|
2067
2102
|
|
|
2068
2103
|
interface ResizableHandleProps {
|
|
2069
2104
|
/** Which edge of the parent the handle decorates. */
|
|
@@ -2088,12 +2123,12 @@ interface ResizableHandleProps {
|
|
|
2088
2123
|
disabled?: boolean;
|
|
2089
2124
|
className?: string;
|
|
2090
2125
|
}
|
|
2091
|
-
declare function ResizableHandle({ side, value, onChange, onCommit, min, max, defaultValue, step, 'aria-label': ariaLabel, disabled, className, }: ResizableHandleProps):
|
|
2126
|
+
declare function ResizableHandle({ side, value, onChange, onCommit, min, max, defaultValue, step, 'aria-label': ariaLabel, disabled, className, }: ResizableHandleProps): react_jsx_runtime.JSX.Element;
|
|
2092
2127
|
interface ResizablePaneProps extends ResizableHandleProps {
|
|
2093
2128
|
children: ReactNode;
|
|
2094
2129
|
paneClassName?: string;
|
|
2095
2130
|
}
|
|
2096
|
-
declare function ResizablePane({ children, paneClassName, ...handleProps }: ResizablePaneProps):
|
|
2131
|
+
declare function ResizablePane({ children, paneClassName, ...handleProps }: ResizablePaneProps): react_jsx_runtime.JSX.Element;
|
|
2097
2132
|
|
|
2098
2133
|
interface KbdProps {
|
|
2099
2134
|
/** Child text — typically a single key glyph or short string. */
|
|
@@ -2101,7 +2136,7 @@ interface KbdProps {
|
|
|
2101
2136
|
/** Optional size — defaults to 'md'. */
|
|
2102
2137
|
size?: 'sm' | 'md';
|
|
2103
2138
|
}
|
|
2104
|
-
declare function Kbd({ children, size }: KbdProps):
|
|
2139
|
+
declare function Kbd({ children, size }: KbdProps): react_jsx_runtime.JSX.Element;
|
|
2105
2140
|
|
|
2106
2141
|
interface FrameStackProps extends HTMLAttributes<HTMLDivElement> {
|
|
2107
2142
|
/** Visual gap between child cards. Defaults to 10 px to match the
|
|
@@ -2154,7 +2189,7 @@ interface CalculatorShellProps {
|
|
|
2154
2189
|
* CalculatorShell — the layout primitive. See file-level JSDoc for the
|
|
2155
2190
|
* locked layout / interaction / token rules.
|
|
2156
2191
|
*/
|
|
2157
|
-
declare function CalculatorShell({ title, subtitle, inputs, result, formula, secondaryStats, onReset, copyValue, shareUrl, }: CalculatorShellProps):
|
|
2192
|
+
declare function CalculatorShell({ title, subtitle, inputs, result, formula, secondaryStats, onReset, copyValue, shareUrl, }: CalculatorShellProps): react_jsx_runtime.JSX.Element;
|
|
2158
2193
|
|
|
2159
2194
|
type CalcLayout = 'shell' | 'open';
|
|
2160
2195
|
/**
|
|
@@ -2205,7 +2240,7 @@ interface CalculatorShellV2Props {
|
|
|
2205
2240
|
* "Benchmark unavailable in manual mode" placeholder (Amendment 1 E). */
|
|
2206
2241
|
benchmarkSlot?: ReactNode;
|
|
2207
2242
|
}
|
|
2208
|
-
declare function CalculatorShellV2({ eyebrow, title, icon, layout, inputs, result, footerNote, actions, assumptions, copyReport, benchmarkSlot, }: CalculatorShellV2Props):
|
|
2243
|
+
declare function CalculatorShellV2({ eyebrow, title, icon, layout, inputs, result, footerNote, actions, assumptions, copyReport, benchmarkSlot, }: CalculatorShellV2Props): react_jsx_runtime.JSX.Element;
|
|
2209
2244
|
|
|
2210
2245
|
interface StatRowStep {
|
|
2211
2246
|
/** Lucide glyph (~16px). Inherits the dark-frame label colour. */
|
|
@@ -2222,7 +2257,7 @@ interface StatRowProps {
|
|
|
2222
2257
|
steps: StatRowStep[];
|
|
2223
2258
|
className?: string;
|
|
2224
2259
|
}
|
|
2225
|
-
declare function StatRow({ steps, className }: StatRowProps):
|
|
2260
|
+
declare function StatRow({ steps, className }: StatRowProps): react_jsx_runtime.JSX.Element;
|
|
2226
2261
|
|
|
2227
2262
|
/**
|
|
2228
2263
|
* Slider — single-value numeric slider (ADR-076 D8).
|
|
@@ -2251,7 +2286,7 @@ interface SliderProps {
|
|
|
2251
2286
|
disabled?: boolean;
|
|
2252
2287
|
className?: string;
|
|
2253
2288
|
}
|
|
2254
|
-
declare function Slider({ value, min, max, step, onChange, 'aria-label': ariaLabel, disabled, className, }: SliderProps):
|
|
2289
|
+
declare function Slider({ value, min, max, step, onChange, 'aria-label': ariaLabel, disabled, className, }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
2255
2290
|
|
|
2256
2291
|
/**
|
|
2257
2292
|
* Number-formatting helpers — small set of pure, zero-dep utilities
|
|
@@ -2361,7 +2396,7 @@ interface PageHeroProps {
|
|
|
2361
2396
|
leading?: ReactNode;
|
|
2362
2397
|
className?: string;
|
|
2363
2398
|
}
|
|
2364
|
-
declare function PageHero({ eyebrow, title, subtitle, actions, leading, className, }: PageHeroProps):
|
|
2399
|
+
declare function PageHero({ eyebrow, title, subtitle, actions, leading, className, }: PageHeroProps): react_jsx_runtime.JSX.Element;
|
|
2365
2400
|
|
|
2366
2401
|
interface SearchBarProps {
|
|
2367
2402
|
value: string;
|
|
@@ -2370,7 +2405,7 @@ interface SearchBarProps {
|
|
|
2370
2405
|
width?: number | string;
|
|
2371
2406
|
className?: string;
|
|
2372
2407
|
}
|
|
2373
|
-
declare function SearchBar({ value, onChange, placeholder, width, className, }: SearchBarProps):
|
|
2408
|
+
declare function SearchBar({ value, onChange, placeholder, width, className, }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
2374
2409
|
|
|
2375
2410
|
interface FilterBarProps {
|
|
2376
2411
|
/**
|
|
@@ -2384,7 +2419,7 @@ interface FilterBarProps {
|
|
|
2384
2419
|
className?: string;
|
|
2385
2420
|
children: ReactNode;
|
|
2386
2421
|
}
|
|
2387
|
-
declare function FilterBarRoot({ variant, 'aria-label': ariaLabel, className, children, }: FilterBarProps):
|
|
2422
|
+
declare function FilterBarRoot({ variant, 'aria-label': ariaLabel, className, children, }: FilterBarProps): react_jsx_runtime.JSX.Element;
|
|
2388
2423
|
interface FilterBarSearchProps {
|
|
2389
2424
|
value: string;
|
|
2390
2425
|
onChange: (next: string) => void;
|
|
@@ -2395,15 +2430,15 @@ interface FilterBarSearchProps {
|
|
|
2395
2430
|
className?: string;
|
|
2396
2431
|
}
|
|
2397
2432
|
/** Standardized search field: small `Input` with a leading magnifier. */
|
|
2398
|
-
declare function FilterBarSearch({ value, onChange, placeholder, 'aria-label': ariaLabel, className, }: FilterBarSearchProps):
|
|
2433
|
+
declare function FilterBarSearch({ value, onChange, placeholder, 'aria-label': ariaLabel, className, }: FilterBarSearchProps): react_jsx_runtime.JSX.Element;
|
|
2399
2434
|
/** Flexible spacer — everything after it is pushed to the right edge. */
|
|
2400
|
-
declare function FilterBarSpacer():
|
|
2435
|
+
declare function FilterBarSpacer(): react_jsx_runtime.JSX.Element;
|
|
2401
2436
|
interface FilterBarCountProps {
|
|
2402
2437
|
shown: number;
|
|
2403
2438
|
total: number;
|
|
2404
2439
|
}
|
|
2405
2440
|
/** Right-aligned "{shown} of {total}" result count, tabular-nums. */
|
|
2406
|
-
declare function FilterBarCount({ shown, total }: FilterBarCountProps):
|
|
2441
|
+
declare function FilterBarCount({ shown, total }: FilterBarCountProps): react_jsx_runtime.JSX.Element;
|
|
2407
2442
|
declare const FilterBar: typeof FilterBarRoot & {
|
|
2408
2443
|
Search: typeof FilterBarSearch;
|
|
2409
2444
|
Spacer: typeof FilterBarSpacer;
|
|
@@ -2431,7 +2466,7 @@ interface FilterDropdownProps<T extends string = string> {
|
|
|
2431
2466
|
className?: string;
|
|
2432
2467
|
align?: 'left' | 'right';
|
|
2433
2468
|
}
|
|
2434
|
-
declare function FilterDropdown<T extends string = string>({ label, value, onChange, options, neutralValue, triggerValueLabel, className, align, }: FilterDropdownProps<T>):
|
|
2469
|
+
declare function FilterDropdown<T extends string = string>({ label, value, onChange, options, neutralValue, triggerValueLabel, className, align, }: FilterDropdownProps<T>): react_jsx_runtime.JSX.Element;
|
|
2435
2470
|
|
|
2436
2471
|
interface DeviceFrameProps {
|
|
2437
2472
|
/** Which device bezel to render. */
|
|
@@ -2447,7 +2482,7 @@ interface DeviceFrameProps {
|
|
|
2447
2482
|
/** Optional className on the outer frame element. */
|
|
2448
2483
|
className?: string;
|
|
2449
2484
|
}
|
|
2450
|
-
declare function DeviceFrame({ device, url, children, className }: DeviceFrameProps):
|
|
2485
|
+
declare function DeviceFrame({ device, url, children, className }: DeviceFrameProps): react_jsx_runtime.JSX.Element;
|
|
2451
2486
|
|
|
2452
2487
|
interface CreativeMediaProps {
|
|
2453
2488
|
src: string;
|
|
@@ -2656,4 +2691,4 @@ declare namespace index {
|
|
|
2656
2691
|
export { type index_CarouselCardView as CarouselCardView, type index_CarouselViewProps as CarouselViewProps, index_CreativeMedia as CreativeMedia, index_InstagramExplorePreview as InstagramExplorePreview, index_InstagramFeedCarousel as InstagramFeedCarousel, index_InstagramFeedPreview as InstagramFeedPreview, index_MetaFeedCarousel as MetaFeedCarousel, index_MetaFeedPreview as MetaFeedPreview, index_MetaInstreamPreview as MetaInstreamPreview, index_MetaMessengerPreview as MetaMessengerPreview, index_MetaReelPreview as MetaReelPreview, index_MetaRightColumnPreview as MetaRightColumnPreview, index_MetaSearchPreview as MetaSearchPreview, index_MetaStoryPreview as MetaStoryPreview, index_PLACEMENT_CONFIGS as PLACEMENT_CONFIGS, type index_PlacementPreview as PlacementPreview, type index_PreviewAdData as PreviewAdData, type index_PreviewConfiguration as PreviewConfiguration, type index_PreviewDevice as PreviewDevice, type index_PreviewPlacement as PreviewPlacement, type index_PreviewPlatform as PreviewPlatform };
|
|
2657
2692
|
}
|
|
2658
2693
|
|
|
2659
|
-
export { AccordionCompound as Accordion, type AccordionProps, type AccordionSectionProps, AllocationSparkbar, type AllocationSparkbarProps, AppScroll, BRAND_ICONS, Badge, type BadgeProps, type BadgeTone, BrandFacebook, type BrandIconKey, type BrandIconProps, BrandInstagram, BrandLinkedIn, BrandLogoTile, type BrandLogoTileProps, type BrandLogoTileSize, BrandMessenger, BrandMeta, BrandNextdoor, BrandPinterest, BrandSnapchat, BrandTikTok, BulkActionBar, type BulkActionBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, type CalcLayout, type CalcPrefill, CalculatorShell, type CalculatorShellProps, CalculatorShellV2, type CalculatorShellV2Props, Card, Checkbox, type CheckboxProps, ChipNav, type ChipNavItem, Choropleth, type ChoroplethProps, CodeBlock, type CodeBlockProps, CollapsibleCard, type CollapsibleCardProps, CompletionRing, type CompletionRingProps, CopyField, type CopyFieldProps, type Crumb, DataGrid, type DataGridColumn, DataGridColumnOptionsMenu, DataGridDragOverlay, type DataGridDrawerPanelProps, DataGridDropIndicator, type DataGridIcon, type DataGridProps, type DataGridRowBase, type DataGridSortState, DataGridToolbar, type DataGridToolbarProps, type DataGridToolbarRenderProps, DetailSection, DeviceFrame, type DeviceFrameProps, DragHandle, DropdownButton, type DropdownButtonItem, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, type DropdownMenuTriggerProps, type EditingCell, EmptyPlaceholder, EmptyState, type EmptyStateProps, FOLDER_COLOR_KEYS, FileDropZone, FilePreviewGrid, FilePreviewItem, FileThumbnail, FileUploadButton, FilterBar, type FilterBarCountProps, type FilterBarProps, type FilterBarSearchProps, FilterDropdown, type FilterDropdownProps, type FilterOption, FloatingDrawer, type FloatingDrawerProps, FloatingStatusBar, type FloatingStatusBarProps, type FloatingStatusTone, FolderCard, type FolderCardProps, type FolderColorKey, type FolderTreeNode, FolderTreePicker, type FolderTreePickerProps, FrameStack, type FrameStackProps, HEADER_HEIGHT, HeroFormCardCompound as HeroFormCard, type HeroFormCardAdvancedProps, type HeroFormCardBannerProps, type HeroFormCardFieldProps, type HeroFormCardProps, type HeroFormCardSectionProps, IconTile, IdentityLabel, IdentityValue, Input, type InputProps, type InputSize, Kbd, type KbdProps, ListItem, MarkdownCode, MarkdownRenderer, type MarkdownRendererProps, MenuButton, type MenuButtonEntry, type MenuButtonItem, type MenuButtonProps, type MenuButtonSeparator, MetaCell, type MetaCellProps, index as MetaPreviews, MetricCard, type MetricCardProps, type MetricCardTone, MicrosoftLogo, type MicrosoftLogoProps, Modal, OptionTile, OptionTileGroup, type OptionTileGroupProps, type OptionTileProps, PLACEMENT_CONFIGS, PageHeaderHost, PageHeaderSlotProvider, PageHero, type PageHeroProps, PageShell, Pagination, type PaginationProps, type PendingFile, PillButton, type PillButtonProps, type PlacementPreview, type PreviewAdData, type PreviewConfiguration, type PreviewDevice, type PreviewPlacement, type PreviewPlatform, PS as ProfileSection, type ProfileSectionProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeSlider, type RangeSliderProps, ResizableHandle, type ResizableHandleProps, ResizablePane, type ResizablePaneProps, type RgbTuple, SECTION_SCROLL_OFFSET, SearchBar, type SearchBarProps, SectionLabel, SegmentedPill, type SegmentedPillItem, type SegmentedPillProps, Shell, type ShellProps, ShellStat, type ShellStatProps, type ShellStatTone, type ShellSubCardProps, type ShellTrayBodyProps, type ShellTrayFooterProps, type ShellTrayHeaderProps, type ShellTrayProps, Slider, type SliderProps, SortableItem, SortableList, SortableTable, type Column as SortableTableColumn, type SortableTableProps, StatRow, type StatRowProps, type StatRowStep, StatsGrid, type StatsGridProps, StepLoader, type StepLoaderProps, type StepLoaderStep, type Tab, Tabs, type TabsProps, TagChipInput, type TagChipInputProps, TagRow, TextInput, Textarea, TextareaInput, type TextareaProps, Toaster, TokenBadge, type TokenBadgeProps, type UploadResult, type UseFileUploadOptions, ValueChip, type ValueChipProps, type WcagBadge, bestTextOn, cn, contrastRatio, copyText, folderColorVar, formatCurrency, formatNumber, formatPercent, formatRatio, hexToRgbTuple, hslString, relativeLuminance, rgbCss, rgbString, useFileUpload, wcagBadges };
|
|
2694
|
+
export { AccordionCompound as Accordion, type AccordionProps, type AccordionSectionProps, AllocationSparkbar, type AllocationSparkbarProps, AppScroll, BRAND_ICONS, Badge, type BadgeProps, type BadgeTone, BrandFacebook, BrandIcon, type BrandIconKey, type BrandIconProps, BrandInstagram, BrandLinkedIn, BrandLogoTile, type BrandLogoTileProps, type BrandLogoTileSize, BrandMessenger, BrandMeta, BrandNextdoor, BrandPinterest, BrandSnapchat, BrandTikTok, BulkActionBar, type BulkActionBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant, type CalcLayout, type CalcPrefill, CalculatorShell, type CalculatorShellProps, CalculatorShellV2, type CalculatorShellV2Props, Card, Checkbox, type CheckboxProps, ChipNav, type ChipNavItem, Choropleth, type ChoroplethProps, CodeBlock, type CodeBlockProps, CollapsibleCard, type CollapsibleCardProps, CompletionRing, type CompletionRingProps, CopyField, type CopyFieldProps, type Crumb, DataGrid, type DataGridColumn, DataGridColumnOptionsMenu, DataGridDragOverlay, type DataGridDrawerPanelProps, DataGridDropIndicator, type DataGridIcon, type DataGridProps, type DataGridRowBase, type DataGridSortState, DataGridToolbar, type DataGridToolbarProps, type DataGridToolbarRenderProps, DetailSection, DeviceFrame, type DeviceFrameProps, DragHandle, DropdownButton, type DropdownButtonItem, type DropdownButtonProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, type DropdownMenuTriggerProps, type EditingCell, EmptyPlaceholder, EmptyState, type EmptyStateProps, FOLDER_COLOR_KEYS, FileDropZone, FilePreviewGrid, FilePreviewItem, FileThumbnail, FileUploadButton, FilterBar, type FilterBarCountProps, type FilterBarProps, type FilterBarSearchProps, FilterDropdown, type FilterDropdownProps, type FilterOption, FloatingDrawer, type FloatingDrawerProps, FloatingStatusBar, type FloatingStatusBarProps, type FloatingStatusTone, FolderCard, type FolderCardProps, type FolderColorKey, type FolderTreeNode, FolderTreePicker, type FolderTreePickerProps, FrameStack, type FrameStackProps, HEADER_HEIGHT, HeroFormCardCompound as HeroFormCard, type HeroFormCardAdvancedProps, type HeroFormCardBannerProps, type HeroFormCardFieldProps, type HeroFormCardProps, type HeroFormCardSectionProps, type HomeCrumb, HomeCrumbLink, IconTile, IdentityLabel, IdentityValue, Input, type InputProps, type InputSize, Kbd, type KbdProps, ListItem, MarkdownCode, MarkdownRenderer, type MarkdownRendererProps, MenuButton, type MenuButtonEntry, type MenuButtonItem, type MenuButtonProps, type MenuButtonSeparator, MetaCell, type MetaCellProps, index as MetaPreviews, MetricCard, type MetricCardProps, type MetricCardTone, MicrosoftLogo, type MicrosoftLogoProps, Modal, OptionTile, OptionTileGroup, type OptionTileGroupProps, type OptionTileProps, PLACEMENT_CONFIGS, PageHeaderHost, PageHeaderSlotProvider, PageHero, type PageHeroProps, PageShell, Pagination, type PaginationProps, type PendingFile, PillButton, type PillButtonProps, type PlacementPreview, type PreviewAdData, type PreviewConfiguration, type PreviewDevice, type PreviewPlacement, type PreviewPlatform, PS as ProfileSection, type ProfileSectionProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeSlider, type RangeSliderProps, ResizableHandle, type ResizableHandleProps, ResizablePane, type ResizablePaneProps, type RgbTuple, SECTION_SCROLL_OFFSET, SearchBar, type SearchBarProps, SectionLabel, SegmentedPill, type SegmentedPillItem, type SegmentedPillProps, Shell, type ShellProps, ShellStat, type ShellStatProps, type ShellStatTone, type ShellSubCardProps, type ShellTrayBodyProps, type ShellTrayFooterProps, type ShellTrayHeaderProps, type ShellTrayProps, Slider, type SliderProps, SortableItem, SortableList, SortableTable, type Column as SortableTableColumn, type SortableTableProps, StatRow, type StatRowProps, type StatRowStep, StatsGrid, type StatsGridProps, StepLoader, type StepLoaderProps, type StepLoaderStep, type Tab, Tabs, type TabsProps, TagChipInput, type TagChipInputProps, TagRow, TextInput, Textarea, TextareaInput, type TextareaProps, Toaster, TokenBadge, type TokenBadgeProps, type UploadResult, type UseFileUploadOptions, ValueChip, type ValueChipProps, type WcagBadge, bestTextOn, cn, contrastRatio, copyText, folderColorVar, formatCurrency, formatNumber, formatPercent, formatRatio, hasBrandIcon, hexToRgbTuple, hslString, relativeLuminance, rgbCss, rgbString, useBreadcrumbHome, useFileUpload, wcagBadges };
|