@imfusion/web-ui 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/bin/install-skill.js +180 -0
- package/dist/assets/vendors/base-ui.d.ts +8 -0
- package/dist/breakpoints/index.d.ts +3 -0
- package/dist/breakpoints/min-width.d.ts +9 -0
- package/dist/breakpoints/registry.d.ts +19 -0
- package/dist/code-qBbqAHK-.js +190 -0
- package/dist/codegen/gen-breakpoints-css.d.ts +6 -0
- package/dist/codegen/gen-css-types.d.ts +1 -0
- package/dist/codegen/gen-token-css.d.ts +6 -0
- package/dist/codegen/run.d.ts +1 -0
- package/dist/components/app-shell/app-shell.d.ts +66 -0
- package/dist/components/app-shell/app-shell.meta.d.ts +2 -0
- package/dist/components/app-shell/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +30 -0
- package/dist/components/button/button.meta.d.ts +2 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/callout/callout.d.ts +42 -0
- package/dist/components/callout/callout.meta.d.ts +2 -0
- package/dist/components/callout/index.d.ts +2 -0
- package/dist/components/card/card.d.ts +64 -0
- package/dist/components/card/card.meta.d.ts +2 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox/checkbox.d.ts +56 -0
- package/dist/components/checkbox/checkbox.meta.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/chip/chip.cva.d.ts +12 -0
- package/dist/components/chip/chip.d.ts +11 -0
- package/dist/components/chip/chip.meta.d.ts +2 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip-link/chip-link.d.ts +17 -0
- package/dist/components/chip-link/chip-link.meta.d.ts +2 -0
- package/dist/components/chip-link/index.d.ts +2 -0
- package/dist/components/code/code.d.ts +60 -0
- package/dist/components/code/code.meta.d.ts +2 -0
- package/dist/components/code/index.d.ts +2 -0
- package/dist/components/collapsible/collapsible.d.ts +57 -0
- package/dist/components/collapsible/collapsible.meta.d.ts +2 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/copy-button/copy-button.d.ts +21 -0
- package/dist/components/copy-button/copy-button.meta.d.ts +2 -0
- package/dist/components/copy-button/index.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +191 -0
- package/dist/components/drawer/drawer.meta.d.ts +2 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/input.d.ts +25 -0
- package/dist/components/input/input.meta.d.ts +2 -0
- package/dist/components/logo/imfusion/imfusion.d.ts +16 -0
- package/dist/components/logo/imfusion/index.d.ts +1 -0
- package/dist/components/logo/index.d.ts +3 -0
- package/dist/components/logo/logo.d.ts +15 -0
- package/dist/components/logo/logo.meta.d.ts +2 -0
- package/dist/components/navigation-menu/index.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +20 -0
- package/dist/components/navigation-menu/navigation-menu.meta.d.ts +2 -0
- package/dist/components/navigation-menu/subs/flyout-link.d.ts +24 -0
- package/dist/components/navigation-menu/subs/inline-submenu.d.ts +41 -0
- package/dist/components/navigation-menu/subs/link.d.ts +64 -0
- package/dist/components/navigation-menu/subs/overlay.d.ts +75 -0
- package/dist/components/navigation-menu/subs/shared.d.ts +20 -0
- package/dist/components/navigation-menu/subs/structure.d.ts +64 -0
- package/dist/components/navigation-menu/subs/trigger.d.ts +47 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +181 -0
- package/dist/components/popover/popover.meta.d.ts +2 -0
- package/dist/components/row/index.d.ts +2 -0
- package/dist/components/row/row.d.ts +28 -0
- package/dist/components/row/row.meta.d.ts +2 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +278 -0
- package/dist/components/select/select.meta.d.ts +2 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/separator.d.ts +15 -0
- package/dist/components/separator/separator.meta.d.ts +2 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slider.d.ts +111 -0
- package/dist/components/slider/slider.meta.d.ts +2 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/spinner.d.ts +19 -0
- package/dist/components/spinner/spinner.geometry.d.ts +37 -0
- package/dist/components/spinner/spinner.meta.d.ts +2 -0
- package/dist/components/stack/index.d.ts +2 -0
- package/dist/components/stack/stack.d.ts +18 -0
- package/dist/components/stack/stack.meta.d.ts +2 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/switch.d.ts +45 -0
- package/dist/components/switch/switch.meta.d.ts +2 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +66 -0
- package/dist/components/table/table.meta.d.ts +2 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs.d.ts +91 -0
- package/dist/components/tabs/tabs.meta.d.ts +2 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggle.d.ts +31 -0
- package/dist/components/toggle/toggle.meta.d.ts +2 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/toggle-group.d.ts +30 -0
- package/dist/components/toggle-group/toggle-group.meta.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +164 -0
- package/dist/components/tooltip/tooltip.meta.d.ts +2 -0
- package/dist/components/typo/index.d.ts +2 -0
- package/dist/components/typo/typo.d.ts +100 -0
- package/dist/components/typo/typo.meta.d.ts +2 -0
- package/dist/config.d.ts +8 -0
- package/dist/docgen/gen-docgen.d.ts +1 -0
- package/dist/docgen/gen-docgen.utils.d.ts +13 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/use-clipboard.d.ts +12 -0
- package/dist/hooks/use-color-scheme.d.ts +31 -0
- package/dist/hooks/use-media-query.d.ts +13 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +13103 -0
- package/dist/integrations/code-highlight/code-highlight.d.ts +21 -0
- package/dist/integrations/code-highlight/code-highlight.meta.d.ts +2 -0
- package/dist/integrations/code-highlight/highlighter.d.ts +6 -0
- package/dist/integrations/code-highlight/index.d.ts +3 -0
- package/dist/integrations/code-highlight.js +97 -0
- package/dist/integrations/image-display-options/image-display-options-view.d.ts +22 -0
- package/dist/integrations/image-display-options/image-display-options-view.utils.d.ts +40 -0
- package/dist/integrations/image-display-options/image-display-options.d.ts +29 -0
- package/dist/integrations/image-display-options/image-display-options.meta.d.ts +2 -0
- package/dist/integrations/image-display-options/index.d.ts +2 -0
- package/dist/integrations/image-display-options.js +319 -0
- package/dist/llms/gen-llms.d.ts +1 -0
- package/dist/meta-B8C51eyL.js +74 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/web-ui-provider.d.ts +6 -0
- package/dist/style.css +2 -0
- package/dist/tabs-DqBFSqq6.js +3789 -0
- package/dist/tokens/apply.d.ts +55 -0
- package/dist/tokens/control-registry.d.ts +10 -0
- package/dist/tokens/token-registry.d.ts +13 -0
- package/dist/tokens/types.d.ts +71 -0
- package/dist/tokens/use-token-controls.d.ts +36 -0
- package/dist/types/docgen.d.ts +17 -0
- package/dist/types/meta.d.ts +108 -0
- package/dist/types/theme.d.ts +3 -0
- package/package.json +139 -0
- package/src/docgen/doc.gen.json +4695 -0
- package/src/llms/llms.gen.txt +176 -0
- package/src/llms/skills/imf-web-ui/SKILL.md +46 -0
- package/src/llms/skills/imf-web-ui-components/SKILL.md +100 -0
- package/src/llms/skills/imf-web-ui-frontend-patterns/SKILL.md +67 -0
- package/src/llms/skills/imf-web-ui-frontend-patterns/references/react-patterns.md +94 -0
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +30 -0
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +103 -0
- package/src/llms/skills/imf-web-ui-ux/references/forms.md +48 -0
- package/src/llms/skills/imf-web-ui-ux/references/usability-heuristics.md +29 -0
- package/src/llms/skills/imf-web-ui-ux/references/visual-design.md +38 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NavigationMenu — a strip of triggers that open a shared, flat flyout Popup for
|
|
3
|
+
* site/app wayfinding. Adapted from Base UI's navigation-menu.
|
|
4
|
+
*
|
|
5
|
+
* This is a large compound component, so its parts are split into `subs/` — one
|
|
6
|
+
* `.tsx` + `.module.css` per part-group — and re-exported here as the single
|
|
7
|
+
* `NavigationMenu` namespace. Cross-part styling goes through CSS custom
|
|
8
|
+
* properties declared on the Root (see `subs/navigation-menu-root.module.css`),
|
|
9
|
+
* never cross-file descendant selectors (which can't resolve under per-file class
|
|
10
|
+
* scoping). See `docs/component-definition.md` for the pattern.
|
|
11
|
+
*
|
|
12
|
+
* @see https://base-ui.com/react/components/navigation-menu
|
|
13
|
+
* @llm https://base-ui.com/react/components/navigation-menu.md
|
|
14
|
+
*/
|
|
15
|
+
export { Root, List, Item, Content, Viewport } from './subs/structure';
|
|
16
|
+
export { Trigger, Icon } from './subs/trigger';
|
|
17
|
+
export { Portal, Positioner, Popup, Arrow, Backdrop } from './subs/overlay';
|
|
18
|
+
export { Link, LinkList, LinkCard } from './subs/link';
|
|
19
|
+
export { FlyoutLink } from './subs/flyout-link';
|
|
20
|
+
export { InlineSubmenu, type InlineSubmenuItem } from './subs/inline-submenu';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UpstreamLink } from './shared';
|
|
2
|
+
type FlyoutLinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Marks the link as the current page — renders it in full primary colour.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
active?: UpstreamLink["active"];
|
|
8
|
+
/** @default false */
|
|
9
|
+
closeOnClick?: UpstreamLink["closeOnClick"];
|
|
10
|
+
className?: UpstreamLink["className"];
|
|
11
|
+
render?: UpstreamLink["render"];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* NavigationMenu.FlyoutLink — a quiet text link inside a flyout `Content`, the
|
|
15
|
+
* lightweight alternative to a `LinkCard` when a card is too heavy. Renders an
|
|
16
|
+
* `<a>`. A trailing `ArrowRight` slides in on hover/focus and the label nudges to
|
|
17
|
+
* meet it; the current page is marked in primary. When a custom `render` is
|
|
18
|
+
* supplied the icon is omitted — the consumer's element owns its content.
|
|
19
|
+
*/
|
|
20
|
+
export declare function FlyoutLink({ className, children, render, ...props }: FlyoutLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace FlyoutLink {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** One category in an `InlineSubmenu` — a rail entry plus its detail pane. */
|
|
2
|
+
export type InlineSubmenuItem = {
|
|
3
|
+
/** Stable identifier for this category (the nested menu value). */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Rail label. */
|
|
6
|
+
label: React.ReactNode;
|
|
7
|
+
/** Short line under the rail label. */
|
|
8
|
+
hint?: React.ReactNode;
|
|
9
|
+
/** Detail-pane heading. */
|
|
10
|
+
title: React.ReactNode;
|
|
11
|
+
/** Detail-pane supporting paragraph. */
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
/** Detail-pane links. */
|
|
14
|
+
links: readonly {
|
|
15
|
+
href: string;
|
|
16
|
+
title: React.ReactNode;
|
|
17
|
+
description?: React.ReactNode;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
type InlineSubmenuProps = {
|
|
21
|
+
/** The categories: each is a rail entry with its detail pane. */
|
|
22
|
+
items: readonly InlineSubmenuItem[];
|
|
23
|
+
/** Which category is open initially (uncontrolled). */
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* NavigationMenu.InlineSubmenu — a master/detail submenu that stays inside one
|
|
28
|
+
* flyout: a category rail beside (or, on narrow viewports, above) its detail.
|
|
29
|
+
*
|
|
30
|
+
* A curated partial over the namespace's own primitives (a nested vertical
|
|
31
|
+
* `Root` without a `Portal`, plus the rail/detail layout). Drop it directly
|
|
32
|
+
* inside a `NavigationMenu.Content`. It bakes in Base UI's viewport
|
|
33
|
+
* responsiveness: the nested Root flips `orientation` at `md` via `useMediaQuery`
|
|
34
|
+
* and the CSS flips the rail from a horizontal tab strip to a side rail at the
|
|
35
|
+
* same breakpoint — no work for the consumer, no container queries.
|
|
36
|
+
*/
|
|
37
|
+
export declare function InlineSubmenu({ items, defaultValue }: InlineSubmenuProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare namespace InlineSubmenu {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { UpstreamLink } from './shared';
|
|
2
|
+
type LinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Marks the link as the current page — renders it in full primary colour.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
active?: UpstreamLink["active"];
|
|
8
|
+
/** @default false */
|
|
9
|
+
closeOnClick?: UpstreamLink["closeOnClick"];
|
|
10
|
+
className?: UpstreamLink["className"];
|
|
11
|
+
render?: UpstreamLink["render"];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* NavigationMenu.Link — a top-strip (rail) link: a peer of `Trigger` for a
|
|
15
|
+
* section that navigates directly instead of opening a flyout. Renders an `<a>`.
|
|
16
|
+
* For a link inside a flyout, use `NavigationMenu.FlyoutLink`.
|
|
17
|
+
*
|
|
18
|
+
* A trailing `ArrowRight` slides in on hover/focus. When a custom `render` is
|
|
19
|
+
* supplied the icon is omitted — the consumer's element owns its content.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Link({ className, children, render, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace Link {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
type LinkListProps = React.HTMLAttributes<HTMLUListElement>;
|
|
26
|
+
/**
|
|
27
|
+
* NavigationMenu.LinkList — a reset `<ul>` that lays out a flyout's `LinkCard`s
|
|
28
|
+
* (a responsive two-column grid that collapses to one column on narrow flyouts).
|
|
29
|
+
* Owns the flyout list layout so consumers wrap each card in an `<li>` and add no
|
|
30
|
+
* layout styling of their own. Renders a `<ul>`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function LinkList({ className, ...props }: LinkListProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare namespace LinkList {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
type LinkCardProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "title"> & {
|
|
37
|
+
/** Card heading — the link label. */
|
|
38
|
+
title: React.ReactNode;
|
|
39
|
+
/** Supporting line beneath the title. */
|
|
40
|
+
description?: React.ReactNode;
|
|
41
|
+
/** Optional media — renders an edge-to-edge image above the text. */
|
|
42
|
+
image?: string;
|
|
43
|
+
/** Alt text for `image`. */
|
|
44
|
+
imageAlt?: string;
|
|
45
|
+
/** Marks the card as the current page. @default false */
|
|
46
|
+
active?: UpstreamLink["active"];
|
|
47
|
+
/** @default false */
|
|
48
|
+
closeOnClick?: UpstreamLink["closeOnClick"];
|
|
49
|
+
className?: UpstreamLink["className"];
|
|
50
|
+
render?: UpstreamLink["render"];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* NavigationMenu.LinkCard — a rich flyout entry (optional image + title +
|
|
54
|
+
* description) for the bigger menus. Built on the `Card` primitive (like
|
|
55
|
+
* `ChipLink` is built on `Chip`): it composes `Card.Root`/`Image`/`Header`/
|
|
56
|
+
* `Content` for the surface and layout, and adds the nav-specific state — a
|
|
57
|
+
* thick primary bar along the card's bottom edge on hover and when active. Use
|
|
58
|
+
* where a plain `NavigationMenu.FlyoutLink` is too sparse.
|
|
59
|
+
*/
|
|
60
|
+
export declare function LinkCard({ title, description, image, imageAlt, className, ...props }: LinkCardProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare namespace LinkCard {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { UpstreamArrow, UpstreamBackdrop, UpstreamPopup, UpstreamPortal, UpstreamPositioner } from './shared';
|
|
2
|
+
type PortalProps = {
|
|
3
|
+
container?: UpstreamPortal["container"];
|
|
4
|
+
/** @default false */
|
|
5
|
+
keepMounted?: UpstreamPortal["keepMounted"];
|
|
6
|
+
children?: UpstreamPortal["children"];
|
|
7
|
+
};
|
|
8
|
+
/** NavigationMenu.Portal — renders the positioner outside the main document flow. */
|
|
9
|
+
export declare function Portal(props: PortalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace Portal {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
type PositionerProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
14
|
+
/** @default 'bottom' */
|
|
15
|
+
side?: UpstreamPositioner["side"];
|
|
16
|
+
/** @default 'start' */
|
|
17
|
+
align?: UpstreamPositioner["align"];
|
|
18
|
+
/** @default 0 */
|
|
19
|
+
sideOffset?: UpstreamPositioner["sideOffset"];
|
|
20
|
+
/** @default 0 */
|
|
21
|
+
alignOffset?: UpstreamPositioner["alignOffset"];
|
|
22
|
+
/** @default 5 */
|
|
23
|
+
arrowPadding?: UpstreamPositioner["arrowPadding"];
|
|
24
|
+
anchor?: UpstreamPositioner["anchor"];
|
|
25
|
+
/** @default 'absolute' */
|
|
26
|
+
positionMethod?: UpstreamPositioner["positionMethod"];
|
|
27
|
+
/** @default false */
|
|
28
|
+
disableAnchorTracking?: UpstreamPositioner["disableAnchorTracking"];
|
|
29
|
+
collisionAvoidance?: UpstreamPositioner["collisionAvoidance"];
|
|
30
|
+
/** @default 'clipping-ancestors' */
|
|
31
|
+
collisionBoundary?: UpstreamPositioner["collisionBoundary"];
|
|
32
|
+
/** @default 5 */
|
|
33
|
+
collisionPadding?: UpstreamPositioner["collisionPadding"];
|
|
34
|
+
/** @default false */
|
|
35
|
+
sticky?: UpstreamPositioner["sticky"];
|
|
36
|
+
className?: UpstreamPositioner["className"];
|
|
37
|
+
render?: UpstreamPositioner["render"];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* NavigationMenu.Positioner — anchors the popup to the active trigger.
|
|
41
|
+
* Defaults to `align="start"` (DESIGN.md §5) so the flyout reads as anchored to
|
|
42
|
+
* the trigger edge rather than centered. Renders a `<div>`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function Positioner({ align, className, ...props }: PositionerProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare namespace Positioner {
|
|
46
|
+
var displayName: string;
|
|
47
|
+
}
|
|
48
|
+
type PopupProps = Omit<React.HTMLAttributes<HTMLElement>, "className"> & {
|
|
49
|
+
className?: UpstreamPopup["className"];
|
|
50
|
+
render?: UpstreamPopup["render"];
|
|
51
|
+
};
|
|
52
|
+
/** NavigationMenu.Popup — the shared flyout surface holding the active Content. Renders a `<nav>`. */
|
|
53
|
+
export declare function Popup({ className, ...props }: PopupProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare namespace Popup {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
type ArrowProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
58
|
+
className?: UpstreamArrow["className"];
|
|
59
|
+
render?: UpstreamArrow["render"];
|
|
60
|
+
};
|
|
61
|
+
/** NavigationMenu.Arrow — a pointer anchored to the popup edge. Receives data-side for orientation. Renders a `<div>`. */
|
|
62
|
+
export declare function Arrow({ className, ...props }: ArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export declare namespace Arrow {
|
|
64
|
+
var displayName: string;
|
|
65
|
+
}
|
|
66
|
+
type BackdropProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
67
|
+
className?: UpstreamBackdrop["className"];
|
|
68
|
+
render?: UpstreamBackdrop["render"];
|
|
69
|
+
};
|
|
70
|
+
/** NavigationMenu.Backdrop — overlay beneath the popup. Receives data-open/data-closed for transitions. Renders a `<div>`. */
|
|
71
|
+
export declare function Backdrop({ className, ...props }: BackdropProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export declare namespace Backdrop {
|
|
73
|
+
var displayName: string;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NavigationMenu as NavigationMenuPrimitive } from '@base-ui/react/navigation-menu';
|
|
2
|
+
/**
|
|
3
|
+
* Shared upstream type aliases for the NavigationMenu sub-parts. Each sub-part
|
|
4
|
+
* file lives beside its own `.module.css`; these Base UI prop types are the one
|
|
5
|
+
* thing they all reference, so they live here rather than being restated.
|
|
6
|
+
*/
|
|
7
|
+
export type UpstreamRoot = React.ComponentProps<typeof NavigationMenuPrimitive.Root>;
|
|
8
|
+
export type UpstreamList = React.ComponentProps<typeof NavigationMenuPrimitive.List>;
|
|
9
|
+
export type UpstreamItem = React.ComponentProps<typeof NavigationMenuPrimitive.Item>;
|
|
10
|
+
export type UpstreamTrigger = React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>;
|
|
11
|
+
export type UpstreamIcon = React.ComponentProps<typeof NavigationMenuPrimitive.Icon>;
|
|
12
|
+
export type UpstreamContent = React.ComponentProps<typeof NavigationMenuPrimitive.Content>;
|
|
13
|
+
export type UpstreamLink = React.ComponentProps<typeof NavigationMenuPrimitive.Link>;
|
|
14
|
+
export type UpstreamPortal = React.ComponentProps<typeof NavigationMenuPrimitive.Portal>;
|
|
15
|
+
export type UpstreamPositioner = React.ComponentProps<typeof NavigationMenuPrimitive.Positioner>;
|
|
16
|
+
export type UpstreamPopup = React.ComponentProps<typeof NavigationMenuPrimitive.Popup>;
|
|
17
|
+
export type UpstreamViewport = React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>;
|
|
18
|
+
export type UpstreamArrow = React.ComponentProps<typeof NavigationMenuPrimitive.Arrow>;
|
|
19
|
+
export type UpstreamBackdrop = React.ComponentProps<typeof NavigationMenuPrimitive.Backdrop>;
|
|
20
|
+
export type Orientation = "horizontal" | "vertical";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { NavigationMenu as NavigationMenuPrimitive } from '@base-ui/react/navigation-menu';
|
|
2
|
+
import { Orientation, UpstreamContent, UpstreamItem, UpstreamList, UpstreamRoot, UpstreamViewport } from './shared';
|
|
3
|
+
type RootProps<Value = unknown> = Omit<React.ComponentProps<typeof NavigationMenuPrimitive.Root<Value>>, "className" | "orientation"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Layout of the menu. `horizontal` is a top nav bar; `vertical` stacks the
|
|
6
|
+
* whole menu into a side rail with flyouts opening to the side.
|
|
7
|
+
* @default 'horizontal'
|
|
8
|
+
*/
|
|
9
|
+
orientation?: Orientation;
|
|
10
|
+
className?: UpstreamRoot["className"];
|
|
11
|
+
render?: UpstreamRoot["render"];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* NavigationMenu.Root — groups all parts and manages which item is open.
|
|
15
|
+
* Renders a `<nav>`.
|
|
16
|
+
*
|
|
17
|
+
* @see https://base-ui.com/react/components/navigation-menu
|
|
18
|
+
* @llm https://base-ui.com/react/components/navigation-menu.md
|
|
19
|
+
*/
|
|
20
|
+
export declare function Root<Value = unknown>({ orientation, className, ...props }: RootProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace Root {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
type ListProps = Omit<React.HTMLAttributes<HTMLUListElement>, "className"> & {
|
|
25
|
+
className?: UpstreamList["className"];
|
|
26
|
+
render?: UpstreamList["render"];
|
|
27
|
+
};
|
|
28
|
+
/** NavigationMenu.List — the strip of items. Renders a `<ul>`. */
|
|
29
|
+
export declare function List({ className, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare namespace List {
|
|
31
|
+
var displayName: string;
|
|
32
|
+
}
|
|
33
|
+
type ItemProps = Omit<React.LiHTMLAttributes<HTMLLIElement>, "className"> & {
|
|
34
|
+
/** Unique identifier for controlled use; auto-generated when omitted. */
|
|
35
|
+
value?: UpstreamItem["value"];
|
|
36
|
+
className?: UpstreamItem["className"];
|
|
37
|
+
render?: UpstreamItem["render"];
|
|
38
|
+
};
|
|
39
|
+
/** NavigationMenu.Item — a single item in the list. Renders a `<li>`. */
|
|
40
|
+
export declare function Item({ className, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare namespace Item {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
44
|
+
type ContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
45
|
+
/** @default false */
|
|
46
|
+
keepMounted?: UpstreamContent["keepMounted"];
|
|
47
|
+
className?: UpstreamContent["className"];
|
|
48
|
+
render?: UpstreamContent["render"];
|
|
49
|
+
};
|
|
50
|
+
/** NavigationMenu.Content — an item's flyout body; moved into the shared Popup when active. Renders a `<div>`. */
|
|
51
|
+
export declare function Content({ className, ...props }: ContentProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare namespace Content {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
type ViewportProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
56
|
+
className?: UpstreamViewport["className"];
|
|
57
|
+
render?: UpstreamViewport["render"];
|
|
58
|
+
};
|
|
59
|
+
/** NavigationMenu.Viewport — clips the current content for direction-aware transitions. Renders a `<div>`. */
|
|
60
|
+
export declare function Viewport({ className, ...props }: ViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare namespace Viewport {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { UpstreamIcon, UpstreamTrigger } from './shared';
|
|
2
|
+
type TriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Marks this section as the current page so it shows the active treatment even
|
|
5
|
+
* when its flyout is closed — the "active trail" anchor for a nav where the
|
|
6
|
+
* open section isn't the current one. Base UI's Trigger has no active state of
|
|
7
|
+
* its own, so this stamps `data-active`.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Suppresses the built-in chevron. Use when supplying a custom `Icon` (e.g. a
|
|
13
|
+
* `ChevronRight` for a side-opening nested trigger).
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
hideChevron?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Marks a trigger that lives inside a flyout (a nested submenu opener) so it
|
|
19
|
+
* sizes to its label instead of filling the row like a top-strip trigger.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
nested?: boolean;
|
|
23
|
+
/** @default true */
|
|
24
|
+
nativeButton?: UpstreamTrigger["nativeButton"];
|
|
25
|
+
className?: UpstreamTrigger["className"];
|
|
26
|
+
render?: UpstreamTrigger["render"];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* NavigationMenu.Trigger — opens an item's flyout on hover or click. Renders a
|
|
30
|
+
* `<button>`. Ships a built-in `ChevronDown` (rotates when open) so consumers
|
|
31
|
+
* don't hand-author an indicator; pass `hideChevron` to supply a custom `Icon`,
|
|
32
|
+
* and `nested` when the trigger opens a submenu from inside another flyout.
|
|
33
|
+
*/
|
|
34
|
+
export declare function Trigger({ active, hideChevron, nested, children, className, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare namespace Trigger {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
38
|
+
type IconProps = Omit<React.HTMLAttributes<HTMLSpanElement>, "className"> & {
|
|
39
|
+
className?: UpstreamIcon["className"];
|
|
40
|
+
render?: UpstreamIcon["render"];
|
|
41
|
+
};
|
|
42
|
+
/** NavigationMenu.Icon — a chevron/marker that rotates when its trigger is open. Renders a `<span>`. */
|
|
43
|
+
export declare function Icon({ className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare namespace Icon {
|
|
45
|
+
var displayName: string;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
+
type UpstreamTrigger = React.ComponentProps<typeof PopoverPrimitive.Trigger>;
|
|
3
|
+
type UpstreamPortal = React.ComponentProps<typeof PopoverPrimitive.Portal>;
|
|
4
|
+
type UpstreamBackdrop = React.ComponentProps<typeof PopoverPrimitive.Backdrop>;
|
|
5
|
+
type UpstreamPositioner = React.ComponentProps<typeof PopoverPrimitive.Positioner>;
|
|
6
|
+
type UpstreamPopup = React.ComponentProps<typeof PopoverPrimitive.Popup>;
|
|
7
|
+
type UpstreamArrow = React.ComponentProps<typeof PopoverPrimitive.Arrow>;
|
|
8
|
+
type UpstreamViewport = React.ComponentProps<typeof PopoverPrimitive.Viewport>;
|
|
9
|
+
type UpstreamTitle = React.ComponentProps<typeof PopoverPrimitive.Title>;
|
|
10
|
+
type UpstreamDescription = React.ComponentProps<typeof PopoverPrimitive.Description>;
|
|
11
|
+
type UpstreamClose = React.ComponentProps<typeof PopoverPrimitive.Close>;
|
|
12
|
+
export declare const createHandle: typeof PopoverPrimitive.createHandle;
|
|
13
|
+
type RootProps<Payload = unknown> = React.ComponentProps<typeof PopoverPrimitive.Root<Payload>>;
|
|
14
|
+
/**
|
|
15
|
+
* Popover.Root — container that manages open/closed state and positioning context.
|
|
16
|
+
*
|
|
17
|
+
* @see https://base-ui.com/react/components/popover
|
|
18
|
+
* @llm https://base-ui.com/react/components/popover.md
|
|
19
|
+
*/
|
|
20
|
+
export declare function Root<Payload = unknown>(props: RootProps<Payload>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace Root {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
type TriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
25
|
+
variant?: "ghost" | "outline" | "primary" | "secondary" | "positive" | "negative";
|
|
26
|
+
inline?: boolean;
|
|
27
|
+
/** @default true */
|
|
28
|
+
nativeButton?: UpstreamTrigger["nativeButton"];
|
|
29
|
+
/** @default false */
|
|
30
|
+
openOnHover?: UpstreamTrigger["openOnHover"];
|
|
31
|
+
/** @default 300 */
|
|
32
|
+
delay?: UpstreamTrigger["delay"];
|
|
33
|
+
/** @default 0 */
|
|
34
|
+
closeDelay?: UpstreamTrigger["closeDelay"];
|
|
35
|
+
handle?: UpstreamTrigger["handle"];
|
|
36
|
+
payload?: UpstreamTrigger["payload"];
|
|
37
|
+
className?: UpstreamTrigger["className"];
|
|
38
|
+
render?: UpstreamTrigger["render"];
|
|
39
|
+
};
|
|
40
|
+
/** Popover.Trigger — button that opens the popover. */
|
|
41
|
+
export declare function Trigger({ variant, inline, className, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare namespace Trigger {
|
|
43
|
+
var displayName: string;
|
|
44
|
+
}
|
|
45
|
+
type PortalProps = {
|
|
46
|
+
container?: UpstreamPortal["container"];
|
|
47
|
+
/** @default false */
|
|
48
|
+
keepMounted?: UpstreamPortal["keepMounted"];
|
|
49
|
+
children?: UpstreamPortal["children"];
|
|
50
|
+
};
|
|
51
|
+
/** Popover.Portal — renders the positioner in a portal outside the main document flow. */
|
|
52
|
+
export declare function Portal(props: PortalProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare namespace Portal {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
type BackdropProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
57
|
+
className?: UpstreamBackdrop["className"];
|
|
58
|
+
render?: UpstreamBackdrop["render"];
|
|
59
|
+
};
|
|
60
|
+
/** Popover.Backdrop — overlay beneath the popover. Receives data-open/data-closed for transitions. */
|
|
61
|
+
export declare function Backdrop({ className, ...props }: BackdropProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare namespace Backdrop {
|
|
63
|
+
var displayName: string;
|
|
64
|
+
}
|
|
65
|
+
type PositionerProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
66
|
+
/** @default 'bottom' */
|
|
67
|
+
side?: UpstreamPositioner["side"];
|
|
68
|
+
/** @default 'center' */
|
|
69
|
+
align?: UpstreamPositioner["align"];
|
|
70
|
+
/** @default 0 */
|
|
71
|
+
sideOffset?: UpstreamPositioner["sideOffset"];
|
|
72
|
+
/** @default 0 */
|
|
73
|
+
alignOffset?: UpstreamPositioner["alignOffset"];
|
|
74
|
+
/** @default 5 */
|
|
75
|
+
arrowPadding?: UpstreamPositioner["arrowPadding"];
|
|
76
|
+
anchor?: UpstreamPositioner["anchor"];
|
|
77
|
+
/** @default false */
|
|
78
|
+
disableAnchorTracking?: UpstreamPositioner["disableAnchorTracking"];
|
|
79
|
+
collisionAvoidance?: UpstreamPositioner["collisionAvoidance"];
|
|
80
|
+
/** @default 'clipping-ancestors' */
|
|
81
|
+
collisionBoundary?: UpstreamPositioner["collisionBoundary"];
|
|
82
|
+
/** @default 5 */
|
|
83
|
+
collisionPadding?: UpstreamPositioner["collisionPadding"];
|
|
84
|
+
/** @default false */
|
|
85
|
+
sticky?: UpstreamPositioner["sticky"];
|
|
86
|
+
className?: UpstreamPositioner["className"];
|
|
87
|
+
render?: UpstreamPositioner["render"];
|
|
88
|
+
};
|
|
89
|
+
/** Popover.Positioner — positions the popup relative to the trigger via floating-point layout. */
|
|
90
|
+
export declare function Positioner({ className, ...props }: PositionerProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
export declare namespace Positioner {
|
|
92
|
+
var displayName: string;
|
|
93
|
+
}
|
|
94
|
+
type PopupProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
95
|
+
/** Match to the Trigger variant to tint the popup border accordingly. */
|
|
96
|
+
variant?: "ghost" | "outline" | "primary" | "secondary" | "positive" | "negative";
|
|
97
|
+
className?: UpstreamPopup["className"];
|
|
98
|
+
render?: UpstreamPopup["render"];
|
|
99
|
+
};
|
|
100
|
+
/** Popover.Popup — the visible surface of the popover. Token-mapped background, border, and shadow. */
|
|
101
|
+
export declare function Popup({ className, variant, ...props }: PopupProps): import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
export declare namespace Popup {
|
|
103
|
+
var displayName: string;
|
|
104
|
+
}
|
|
105
|
+
type ArrowProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
106
|
+
className?: UpstreamArrow["className"];
|
|
107
|
+
render?: UpstreamArrow["render"];
|
|
108
|
+
};
|
|
109
|
+
/** Popover.Arrow — visual pointer arrow anchored to the popup edge. Receives data-side for orientation. */
|
|
110
|
+
export declare function Arrow({ className, ...props }: ArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
export declare namespace Arrow {
|
|
112
|
+
var displayName: string;
|
|
113
|
+
}
|
|
114
|
+
type ViewportProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
115
|
+
className?: UpstreamViewport["className"];
|
|
116
|
+
render?: UpstreamViewport["render"];
|
|
117
|
+
};
|
|
118
|
+
/** Popover.Viewport — content wrapper that supports direction-aware animations. */
|
|
119
|
+
export declare function Viewport({ className, ...props }: ViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
export declare namespace Viewport {
|
|
121
|
+
var displayName: string;
|
|
122
|
+
}
|
|
123
|
+
type EyebrowProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
124
|
+
/** Popover.Eyebrow — small uppercase label above Title, for a category or kicker (e.g. "Glossary definition"). */
|
|
125
|
+
export declare function Eyebrow({ className, ...props }: EyebrowProps): import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
export declare namespace Eyebrow {
|
|
127
|
+
var displayName: string;
|
|
128
|
+
}
|
|
129
|
+
type TitleProps = React.HTMLAttributes<HTMLHeadingElement> & {
|
|
130
|
+
render?: UpstreamTitle["render"];
|
|
131
|
+
};
|
|
132
|
+
/** Popover.Title — semantic heading for the popover's accessible name. */
|
|
133
|
+
export declare function Title({ className, ...props }: TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
export declare namespace Title {
|
|
135
|
+
var displayName: string;
|
|
136
|
+
}
|
|
137
|
+
type DescriptionProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
138
|
+
render?: UpstreamDescription["render"];
|
|
139
|
+
};
|
|
140
|
+
/** Popover.Description — supplementary paragraph for the popover's accessible description. */
|
|
141
|
+
export declare function Description({ className, ...props }: DescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
142
|
+
export declare namespace Description {
|
|
143
|
+
var displayName: string;
|
|
144
|
+
}
|
|
145
|
+
type CloseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
146
|
+
/** @default true */
|
|
147
|
+
nativeButton?: UpstreamClose["nativeButton"];
|
|
148
|
+
className?: UpstreamClose["className"];
|
|
149
|
+
render?: UpstreamClose["render"];
|
|
150
|
+
};
|
|
151
|
+
/** Popover.Close — button that dismisses the popover. */
|
|
152
|
+
export declare function Close({ className, ...props }: CloseProps): import("react/jsx-runtime").JSX.Element;
|
|
153
|
+
export declare namespace Close {
|
|
154
|
+
var displayName: string;
|
|
155
|
+
}
|
|
156
|
+
type InlineProps = {
|
|
157
|
+
/** The annotated text rendered as the trigger. */
|
|
158
|
+
trigger: React.ReactNode;
|
|
159
|
+
/** Optional heading shown at the top of the popup. */
|
|
160
|
+
title?: React.ReactNode;
|
|
161
|
+
/** Description or body content inside the popup. */
|
|
162
|
+
children?: React.ReactNode;
|
|
163
|
+
/** Hover delay in ms before the popover opens. @default 150 */
|
|
164
|
+
delay?: number;
|
|
165
|
+
/** Which side of the trigger the popup appears on. @default 'top' */
|
|
166
|
+
side?: UpstreamPositioner["side"];
|
|
167
|
+
/** Gap between trigger and popup in px. @default 6 */
|
|
168
|
+
sideOffset?: number;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Popover.Inline — pre-composed inline annotation. Wraps the full
|
|
172
|
+
* Root → Trigger(inline, openOnHover) → Portal → Positioner → Popup
|
|
173
|
+
* pattern into a single component for annotating terms in running prose.
|
|
174
|
+
*
|
|
175
|
+
* @see https://base-ui.com/react/components/popover
|
|
176
|
+
*/
|
|
177
|
+
export declare function Inline({ trigger, title, children, delay, side, sideOffset }: InlineProps): import("react/jsx-runtime").JSX.Element;
|
|
178
|
+
export declare namespace Inline {
|
|
179
|
+
var displayName: string;
|
|
180
|
+
}
|
|
181
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const row: (props?: ({
|
|
3
|
+
gap?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | null | undefined;
|
|
4
|
+
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
5
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
6
|
+
wrap?: boolean | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
type Props = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof row> & {
|
|
9
|
+
/**
|
|
10
|
+
* Cross-axis alignment. Sets both `align-items` (item alignment within a
|
|
11
|
+
* row) and `align-content` (row distribution when `wrap` is on). `"stretch"`
|
|
12
|
+
* keeps rows packed together via `align-content: flex-start` while items
|
|
13
|
+
* fill their row height.
|
|
14
|
+
* @default "stretch"
|
|
15
|
+
*/
|
|
16
|
+
align?: "start" | "center" | "end" | "stretch";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Row — horizontal layout primitive.
|
|
20
|
+
*
|
|
21
|
+
* Copied and adapted from Mantine's Group; no upstream runtime
|
|
22
|
+
* dependency. Pure row flex container with token-driven gap and constrained
|
|
23
|
+
* align/justify unions.
|
|
24
|
+
*
|
|
25
|
+
* @see https://mantine.dev/core/group/
|
|
26
|
+
*/
|
|
27
|
+
export declare function Row({ gap, align, justify, wrap, className, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|