@imfusion/web-ui 0.8.1-dev.5.gee230289 → 0.8.1-dev.52.g0818e1db
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 +163 -0
- package/README.md +28 -18
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/dist/{code-D2lwxHgd.js → code-GwkswukD.js} +5 -5
- package/dist/codegen/gen-icons.d.ts +29 -4
- package/dist/codegen/sharpen-icon.d.ts +11 -0
- package/dist/components/app-shell/app-shell.d.ts +55 -30
- package/dist/components/button/button.d.ts +5 -4
- package/dist/components/card/card.d.ts +15 -1
- package/dist/components/field/field.d.ts +5 -2
- 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/logo/logo.d.ts +1 -1
- 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/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/table/table.d.ts +9 -0
- package/dist/components/typo/typo.d.ts +20 -11
- package/dist/icons/catalog.gen.d.ts +3797 -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 +1736 -1672
- package/dist/icons-DUxZcuf9.js +36339 -0
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2067 -1609
- 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.js +71 -70
- 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-Dsfp8Ogj.js +295 -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 +37 -38
- package/src/docgen/doc.gen.json +754 -12
- package/src/llms/icon-catalog.gen.json +5533 -1671
- package/src/llms/llms.gen.txt +24 -2
- package/src/llms/skills/imf-web-ui/SKILL.md +2 -0
- 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 +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +2 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +5 -3
- 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 +66 -28
- package/src/llms/skills/imf-web-ui-conventions/topics/typescript.md +14 -0
- 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
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
type RootProps = useRender.ComponentProps<"div"> & {
|
|
3
|
+
/** Announced once through a visually hidden status. Pass `""` when something else already speaks for the region. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** `none` holds every bone inside still. */
|
|
6
|
+
animation?: "shimmer" | "none";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Skeleton.Root — marks a region as loading. The view inside renders for real; bones stand in for the data. Sets
|
|
10
|
+
* `aria-busy` and announces `label` once, however many bones it holds.
|
|
11
|
+
*/
|
|
12
|
+
declare function Root({ label, animation, render, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare namespace Root {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
type TextProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
17
|
+
/** Width of the bar, capped at the container width. */
|
|
18
|
+
width?: React.CSSProperties["width"];
|
|
19
|
+
/** Number of stacked lines. The last of several is 60% wide. */
|
|
20
|
+
lines?: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Skeleton.Text — a text bar exactly one line of the parent's font tall. Place it inside the real Typo element so the
|
|
24
|
+
* row keeps the loaded row's height.
|
|
25
|
+
*/
|
|
26
|
+
declare function Text({ width, lines, style, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare namespace Text {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
30
|
+
type BlockProps = React.HTMLAttributes<HTMLSpanElement> & ({
|
|
31
|
+
/** `circle` takes its size from `width`, for avatars. */
|
|
32
|
+
shape?: "rect";
|
|
33
|
+
/** Width of the block, capped at the container width. A circle uses it for both sides. */
|
|
34
|
+
width?: React.CSSProperties["width"];
|
|
35
|
+
/** Height of the block. */
|
|
36
|
+
height: React.CSSProperties["height"];
|
|
37
|
+
} | {
|
|
38
|
+
shape: "circle";
|
|
39
|
+
width: React.CSSProperties["width"];
|
|
40
|
+
height?: never;
|
|
41
|
+
});
|
|
42
|
+
/** Skeleton.Block — a sized placeholder for a shaped element such as a meter, chip, or avatar. */
|
|
43
|
+
declare function Block({ width, shape, height, style, ...props }: BlockProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare namespace Block {
|
|
45
|
+
var displayName: string;
|
|
46
|
+
}
|
|
47
|
+
export { Root, Text, Block };
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive } from '@base-ui/react/slider';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const sliderRoot: (props?: ({
|
|
4
|
+
variant?: "default" | "position" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
interface RootProps extends React.ComponentProps<typeof SliderPrimitive.Root>, VariantProps<typeof sliderRoot> {
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Slider.Root — value selector along a continuous or stepped track.
|
|
4
10
|
*
|
|
11
|
+
* `variant="position"` draws a scrollbar-like trough and bar thumb for picking one position
|
|
12
|
+
* between `min` and `max`, such as a slice or frame; `onValueChange` reports the position.
|
|
13
|
+
*
|
|
5
14
|
* @doc https://base-ui.com/react/components/slider
|
|
6
15
|
* @llm https://base-ui.com/react/components/slider.md
|
|
7
16
|
*/
|
|
8
|
-
export declare function Root({ value, defaultValue, onValueChange, onValueCommitted, min, max, step, largeStep, minStepsBetweenValues, disabled, orientation, name, form, locale, thumbAlignment, thumbCollisionBehavior, format, ...props }:
|
|
17
|
+
export declare function Root({ variant, value, defaultValue, onValueChange, onValueCommitted, min, max, step, largeStep, minStepsBetweenValues, disabled, orientation, name, form, locale, thumbAlignment, thumbCollisionBehavior, format, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
9
18
|
export declare namespace Root {
|
|
10
19
|
var displayName: string;
|
|
11
20
|
}
|
|
@@ -39,3 +48,4 @@ export declare function Thumb({ index, ...props }: React.ComponentProps<typeof S
|
|
|
39
48
|
export declare namespace Thumb {
|
|
40
49
|
var displayName: string;
|
|
41
50
|
}
|
|
51
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
1
2
|
type HeaderCellProps = React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
2
3
|
/** Table.Root — the `<table>` element. */
|
|
3
4
|
export declare function Root(props: React.TableHTMLAttributes<HTMLTableElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,6 +30,14 @@ export declare function Cell(props: React.TdHTMLAttributes<HTMLTableCellElement>
|
|
|
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
|
|
@@ -5,14 +5,18 @@ declare const typo: (props?: ({
|
|
|
5
5
|
variant?: "primary" | "positive" | "negative" | "oncolor" | "main" | "support" | "minor" | "brand" | "warning" | "info" | "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
|
}
|