@imfusion/web-ui 0.8.1-dev.9.gda40b9aa → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +252 -7
- package/README.md +29 -18
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/dist/{code-D2lwxHgd.js → code-BYkr5k55.js} +13 -13
- package/dist/codegen/gen-icons.d.ts +29 -4
- package/dist/codegen/sharpen-icon.d.ts +11 -0
- package/dist/components/account-card/account-card.d.ts +9 -9
- package/dist/components/app-shell/app-shell.d.ts +59 -34
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/button/button.d.ts +14 -7
- package/dist/components/callout/callout.d.ts +4 -4
- package/dist/components/card/card.d.ts +21 -7
- package/dist/components/chip/chip.cva.d.ts +1 -1
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/chip-link/chip-link.d.ts +1 -1
- package/dist/components/code/code.d.ts +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon-button/icon-button.d.ts +19 -0
- package/dist/components/icon-button/icon-button.meta.d.ts +2 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/kbd/aria-key-shortcuts.d.ts +5 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/kbd.d.ts +14 -0
- package/dist/components/kbd/kbd.meta.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +3 -3
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/meter.d.ts +33 -0
- package/dist/components/meter/meter.meta.d.ts +2 -0
- package/dist/components/navigation-menu/subs/link.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +3 -3
- package/dist/components/prose/prose.d.ts +1 -1
- package/dist/components/row/row.d.ts +3 -3
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.d.ts +47 -0
- package/dist/components/skeleton/skeleton.meta.d.ts +2 -0
- package/dist/components/slider/slider.d.ts +11 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/stack/stack.d.ts +3 -3
- package/dist/components/table/table.d.ts +16 -7
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +7 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/typo/typo.d.ts +21 -12
- package/dist/icons/catalog.gen.d.ts +3804 -0
- package/dist/icons/create-icon.d.ts +3 -0
- package/dist/icons/icon-config-context.d.ts +3 -0
- package/dist/icons/icon-config.d.ts +2 -2
- package/dist/icons/icons.gen.d.ts +1737 -1672
- package/dist/icons-BsK_o-Cb.js +36358 -0
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2079 -1607
- package/dist/integrations/code-highlight.js +6 -4
- package/dist/integrations/frame-selection/frame-selection-view.d.ts +24 -0
- package/dist/integrations/frame-selection/frame-selection.d.ts +21 -0
- package/dist/integrations/frame-selection/frame-selection.meta.d.ts +2 -0
- package/dist/integrations/frame-selection/index.d.ts +2 -0
- package/dist/integrations/frame-selection.js +121 -0
- package/dist/integrations/image-display-options/image-display-options-view.d.ts +1 -1
- package/dist/integrations/image-display-options/image-display-options.d.ts +1 -1
- package/dist/integrations/image-display-options.js +56 -55
- package/dist/llms/evals/runner/config.d.ts +1 -0
- package/dist/llms/gen-tokens.d.ts +1 -1
- package/dist/{paths-Oi0v8x-w.js → paths-B5Ht3ETc.js} +2 -2
- package/dist/separator-lzz4A3x_.js +26 -0
- package/dist/slider-Cqpreglu.js +116 -0
- package/dist/style.css +1 -1
- package/dist/tabs-DRyqtS04.js +358 -0
- package/dist/utils/email.d.ts +7 -0
- package/dist/utils/status-glyphs.d.ts +4 -0
- package/dist/vite.js +2 -2
- package/dist/web-ui-cli.js +1 -1
- package/docs/user-guide/AgentTooling.mdx +8 -3
- package/package.json +38 -38
- package/src/docgen/doc.gen.json +1376 -214
- package/src/llms/icon-catalog.gen.json +5541 -1671
- package/src/llms/llms.gen.txt +29 -2
- package/src/llms/skills/imf-web-ui/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +18 -4
- package/src/llms/skills/imf-web-ui-components/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +3 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +2 -3
- package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +3 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +83 -42
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +2 -0
- package/src/llms/skills/imf-web-ui-update/SKILL.md +42 -7
- package/src/llms/skills/imf-web-ui-user-profile/SKILL.md +95 -0
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +2 -0
- package/src/llms/tokens.gen.json +3 -3
- package/dist/icons-CaGCCwG-.js +0 -78
- package/dist/tabs-BS6rqrrA.js +0 -398
- /package/dist/{meta-j-7HGrWv.js → meta-V_KyLeGn.js} +0 -0
- /package/dist/{chunk-DmhlhrBa.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
type HeaderCellProps = React.ComponentProps<"th">;
|
|
2
3
|
/** Table.Root — the `<table>` element. */
|
|
3
|
-
export declare function Root(props: React.
|
|
4
|
+
export declare function Root(props: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export declare namespace Root {
|
|
5
6
|
var displayName: string;
|
|
6
7
|
}
|
|
7
8
|
/** Table.Header — the `<thead>` section. */
|
|
8
|
-
export declare function Header(props: React.
|
|
9
|
+
export declare function Header(props: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare namespace Header {
|
|
10
11
|
var displayName: string;
|
|
11
12
|
}
|
|
12
13
|
/** Table.Body — the `<tbody>` section. */
|
|
13
|
-
export declare function Body(props: React.
|
|
14
|
+
export declare function Body(props: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export declare namespace Body {
|
|
15
16
|
var displayName: string;
|
|
16
17
|
}
|
|
17
18
|
/** Table.Row — a `<tr>` in header or body. */
|
|
18
|
-
export declare function Row(props: React.
|
|
19
|
+
export declare function Row(props: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export declare namespace Row {
|
|
20
21
|
var displayName: string;
|
|
21
22
|
}
|
|
@@ -25,16 +26,24 @@ export declare namespace HeaderCell {
|
|
|
25
26
|
var displayName: string;
|
|
26
27
|
}
|
|
27
28
|
/** Table.Cell — a `<td>` data cell. */
|
|
28
|
-
export declare function Cell(props: React.
|
|
29
|
+
export declare function Cell(props: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
export declare namespace Cell {
|
|
30
31
|
var displayName: string;
|
|
31
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Table.RowLink — an `<a>` that stands in for its whole row, such as a link to the row's detail page. Reads as row text,
|
|
35
|
+
* not as a separate link, and wraps anywhere so long values like emails stay inside a narrow table.
|
|
36
|
+
*/
|
|
37
|
+
export declare function RowLink({ render, ...props }: useRender.ComponentProps<"a">): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
38
|
+
export declare namespace RowLink {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
32
41
|
/**
|
|
33
42
|
* Table.HeaderButton — inline action button for header cells. Generic by
|
|
34
43
|
* design: sorting toggles, filter toggles, column menus all render through it
|
|
35
44
|
* rather than each inventing a button. Icon/indicator goes in `children`.
|
|
36
45
|
*/
|
|
37
|
-
export declare function HeaderButton({ type, ...props }: React.
|
|
46
|
+
export declare function HeaderButton({ type, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
38
47
|
export declare namespace HeaderButton {
|
|
39
48
|
var displayName: string;
|
|
40
49
|
}
|
|
@@ -45,7 +45,7 @@ export declare namespace Indicator {
|
|
|
45
45
|
* No Base UI equivalent exists; it's surfaced as a named part since its
|
|
46
46
|
* hairline border is what Tabs.Indicator visually fuses into.
|
|
47
47
|
*/
|
|
48
|
-
export declare function PanelViewport(props: React.
|
|
48
|
+
export declare function PanelViewport(props: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
export declare namespace PanelViewport {
|
|
50
50
|
var displayName: string;
|
|
51
51
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
2
|
interface Props extends React.ComponentProps<typeof TogglePrimitive> {
|
|
3
|
+
/**
|
|
4
|
+
* Key hint shown in the top corner at the end of the line, such as `"P"` or `"Ctrl Z"`. It also sets
|
|
5
|
+
* `aria-keyshortcuts` in its notation (`Control+Z`), which an explicit
|
|
6
|
+
* `aria-keyshortcuts` prop overrides. Display only: bind the key in the app, for example with `useHotkey` from TanStack Hotkeys.
|
|
7
|
+
*/
|
|
8
|
+
shortcut?: string;
|
|
3
9
|
}
|
|
4
10
|
/**
|
|
5
11
|
* Toggle - a two-state button. Use standalone for a
|
|
@@ -9,5 +15,5 @@ interface Props extends React.ComponentProps<typeof TogglePrimitive> {
|
|
|
9
15
|
* @doc https://base-ui.com/react/components/toggle
|
|
10
16
|
* @llm https://base-ui.com/react/components/toggle.md
|
|
11
17
|
*/
|
|
12
|
-
export declare function Toggle({ style, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function Toggle({ style, shortcut, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
19
|
export {};
|
|
@@ -2,11 +2,11 @@ import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
type UpstreamTrigger = React.ComponentProps<typeof TooltipPrimitive.Trigger>;
|
|
4
4
|
declare const tooltipTrigger: (props?: ({
|
|
5
|
-
variant?: "primary" | "
|
|
5
|
+
variant?: "primary" | "positive" | "negative" | "secondary" | null | undefined;
|
|
6
6
|
inline?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
declare const tooltipPopup: (props?: ({
|
|
9
|
-
variant?: "primary" | "
|
|
9
|
+
variant?: "primary" | "positive" | "negative" | "secondary" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
export declare const createHandle: typeof TooltipPrimitive.createHandle;
|
|
12
12
|
/**
|
|
@@ -2,17 +2,21 @@ import { useRender } from '@base-ui/react/use-render';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { Code } from '../code';
|
|
4
4
|
declare const typo: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "main" | "support" | "minor" | "brand" | "primary" | "positive" | "negative" | "warning" | "info" | "oncolor" | "accent-1" | "accent-2" | "accent-3" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
type TypoProps = VariantProps<typeof typo>;
|
|
8
|
+
type WeightProps = {
|
|
9
|
+
/** Font weight. Omit to keep the member's default; `medium` firms up short body text on cards. */
|
|
10
|
+
weight?: "regular" | "medium" | "strong";
|
|
11
|
+
};
|
|
8
12
|
type HeadingProps = useRender.ComponentProps<"h1"> & TypoProps;
|
|
9
13
|
type LongHeadingProps = HeadingProps & {
|
|
10
14
|
/** Whether lines after the first use a translucent text color. */
|
|
11
15
|
fadeAfterFirstLine?: boolean;
|
|
12
16
|
};
|
|
13
|
-
type ParagraphProps = useRender.ComponentProps<"p"> & TypoProps;
|
|
17
|
+
type ParagraphProps = useRender.ComponentProps<"p"> & TypoProps & WeightProps;
|
|
14
18
|
export type TypoLinkKind = "external" | "internal";
|
|
15
|
-
type LinkProps = useRender.ComponentProps<"a"> & TypoProps & {
|
|
19
|
+
type LinkProps = useRender.ComponentProps<"a"> & TypoProps & WeightProps & {
|
|
16
20
|
/** Link target scope. `"external"` (default) opens in a new tab; `"internal"` stays in the current tab. */
|
|
17
21
|
kind?: TypoLinkKind;
|
|
18
22
|
};
|
|
@@ -42,27 +46,32 @@ export declare namespace H4 {
|
|
|
42
46
|
var displayName: string;
|
|
43
47
|
}
|
|
44
48
|
/** Typo.P — body paragraph. */
|
|
45
|
-
export declare function P({ variant, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
49
|
+
export declare function P({ variant, weight, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
46
50
|
export declare namespace P {
|
|
47
51
|
var displayName: string;
|
|
48
52
|
}
|
|
49
53
|
/** Typo.Lead — emphasised intro paragraph. */
|
|
50
|
-
export declare function Lead({ variant, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
54
|
+
export declare function Lead({ variant, weight, render, ...props }: ParagraphProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
51
55
|
export declare namespace Lead {
|
|
52
56
|
var displayName: string;
|
|
53
57
|
}
|
|
54
58
|
/** Typo.Detail — compact UI text, between Small (12px) and P (16px). */
|
|
55
|
-
export declare function Detail({ variant, render, ...props }: useRender.ComponentProps<"p"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
59
|
+
export declare function Detail({ variant, weight, render, ...props }: useRender.ComponentProps<"p"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
56
60
|
export declare namespace Detail {
|
|
57
61
|
var displayName: string;
|
|
58
62
|
}
|
|
59
63
|
/** Typo.Small — fine print. */
|
|
60
|
-
export declare function Small({ variant, render, ...props }: useRender.ComponentProps<"small"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
64
|
+
export declare function Small({ variant, weight, render, ...props }: useRender.ComponentProps<"small"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
61
65
|
export declare namespace Small {
|
|
62
66
|
var displayName: string;
|
|
63
67
|
}
|
|
68
|
+
/** Typo.Eyebrow — short uppercase label above a heading. Also called a kicker or overline. */
|
|
69
|
+
export declare function Eyebrow({ variant, render, ...props }: useRender.ComponentProps<"p"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
70
|
+
export declare namespace Eyebrow {
|
|
71
|
+
var displayName: string;
|
|
72
|
+
}
|
|
64
73
|
/** Typo.Blockquote — pulled quotation. */
|
|
65
|
-
export declare function Blockquote({ variant, render, ...props }: useRender.ComponentProps<"blockquote"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
74
|
+
export declare function Blockquote({ variant, weight, render, ...props }: useRender.ComponentProps<"blockquote"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
66
75
|
export declare namespace Blockquote {
|
|
67
76
|
var displayName: string;
|
|
68
77
|
}
|
|
@@ -75,22 +84,22 @@ export declare namespace InlineCode {
|
|
|
75
84
|
var displayName: string;
|
|
76
85
|
}
|
|
77
86
|
/** Typo.Highlight — inline mark/highlight. */
|
|
78
|
-
export declare function Highlight({ variant, render, ...props }: useRender.ComponentProps<"mark"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
87
|
+
export declare function Highlight({ variant, weight, render, ...props }: useRender.ComponentProps<"mark"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
79
88
|
export declare namespace Highlight {
|
|
80
89
|
var displayName: string;
|
|
81
90
|
}
|
|
82
91
|
/** Typo.Link — inline anchor with an optional local Web UI directional icon. */
|
|
83
|
-
export declare function Link({ variant, kind, render, ...props }: LinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
92
|
+
export declare function Link({ variant, weight, kind, render, ...props }: LinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
84
93
|
export declare namespace Link {
|
|
85
94
|
var displayName: string;
|
|
86
95
|
}
|
|
87
96
|
/** Typo.OrderedList — numbered list. */
|
|
88
|
-
export declare function OrderedList({ variant, render, ...props }: useRender.ComponentProps<"ol"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
97
|
+
export declare function OrderedList({ variant, weight, render, ...props }: useRender.ComponentProps<"ol"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
89
98
|
export declare namespace OrderedList {
|
|
90
99
|
var displayName: string;
|
|
91
100
|
}
|
|
92
101
|
/** Typo.UnorderedList — bulleted list. */
|
|
93
|
-
export declare function UnorderedList({ variant, render, ...props }: useRender.ComponentProps<"ul"> & TypoProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
102
|
+
export declare function UnorderedList({ variant, weight, render, ...props }: useRender.ComponentProps<"ul"> & TypoProps & WeightProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
94
103
|
export declare namespace UnorderedList {
|
|
95
104
|
var displayName: string;
|
|
96
105
|
}
|