@imfusion/web-ui 0.6.4-dev.8.g41d03f2f → 0.7.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 +391 -0
- package/README.md +22 -55
- package/dist/assets/vendors/base-ui.d.ts +2 -3
- package/dist/breakpoints/min-width.d.ts +3 -7
- package/dist/breakpoints/registry.d.ts +3 -9
- package/dist/{code-Ce8uiPsv.js → code-D2lwxHgd.js} +15 -15
- package/dist/codegen/gen-breakpoints-css.d.ts +0 -4
- package/dist/codegen/gen-token-css.d.ts +0 -2
- package/dist/components/app-shell/app-shell.d.ts +7 -11
- package/dist/components/button/button.d.ts +7 -12
- package/dist/components/callout/callout.d.ts +11 -18
- package/dist/components/card/card.d.ts +11 -10
- package/dist/components/checkbox/checkbox.d.ts +2 -38
- package/dist/components/chip/chip.cva.d.ts +2 -4
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/code/code.d.ts +2 -2
- package/dist/components/collapsible/collapsible.d.ts +4 -35
- package/dist/components/copy-button/copy-button.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +17 -100
- package/dist/components/field/field.d.ts +7 -67
- package/dist/components/fieldset/fieldset.d.ts +2 -15
- package/dist/components/icon/icon.d.ts +2 -2
- package/dist/components/input/input.d.ts +2 -8
- package/dist/components/logo/imfusion/imfusion.d.ts +2 -5
- package/dist/components/logo/imfusion/marks.d.ts +10 -0
- package/dist/components/logo/logo.d.ts +3 -3
- package/dist/components/navigation-menu/subs/flyout-link.d.ts +5 -19
- package/dist/components/navigation-menu/subs/inline-submenu.d.ts +2 -4
- package/dist/components/navigation-menu/subs/link.d.ts +6 -23
- package/dist/components/navigation-menu/subs/overlay.d.ts +6 -51
- package/dist/components/navigation-menu/subs/shared.d.ts +4 -14
- package/dist/components/navigation-menu/subs/structure.d.ts +7 -29
- package/dist/components/navigation-menu/subs/trigger.d.ts +11 -20
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.d.ts +72 -0
- package/dist/components/number-field/number-field.meta.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +23 -98
- package/dist/components/row/row.d.ts +1 -1
- package/dist/components/select/select.d.ts +26 -189
- package/dist/components/separator/separator.d.ts +5 -4
- package/dist/components/slider/slider.d.ts +7 -77
- package/dist/components/spinner/spinner.d.ts +13 -8
- package/dist/components/stack/stack.d.ts +3 -4
- package/dist/components/switch/switch.d.ts +2 -31
- package/dist/components/table/table.d.ts +10 -18
- package/dist/components/tabs/tabs.d.ts +18 -52
- package/dist/components/toast/toast.d.ts +16 -103
- package/dist/components/toggle/toggle.d.ts +3 -21
- package/dist/components/toggle-group/toggle-group.d.ts +3 -20
- package/dist/components/tooltip/tooltip.d.ts +26 -85
- package/dist/components/typo/typo.d.ts +25 -25
- package/dist/docgen/gen-docgen.utils.d.ts +3 -4
- package/dist/hooks/use-color-scheme.d.ts +5 -11
- package/dist/hooks/use-media-query.d.ts +2 -7
- package/dist/{icons-Cy1HAosO.js → icons-CaGCCwG-.js} +7 -7
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1486 -1368
- package/dist/integrations/code-highlight/highlighter.d.ts +1 -56
- package/dist/integrations/code-highlight.js +41 -189
- package/dist/integrations/image-display-options/image-display-options-view.utils.d.ts +0 -1
- package/dist/integrations/image-display-options.js +54 -54
- package/dist/llms/evals/runner/affected.d.ts +2 -0
- package/dist/llms/evals/runner/benchmark.d.ts +12 -0
- package/dist/llms/evals/runner/compare.d.ts +2 -0
- package/dist/llms/evals/runner/config.d.ts +29 -0
- package/dist/llms/evals/runner/evidence.d.ts +7 -0
- package/dist/llms/evals/runner/execute.d.ts +32 -0
- package/dist/llms/evals/runner/grade.d.ts +10 -0
- package/dist/llms/evals/runner/report-md.d.ts +2 -0
- package/dist/llms/evals/runner/report.d.ts +4 -0
- package/dist/llms/evals/runner/run.d.ts +2 -0
- package/dist/llms/evals/runner/scenario.d.ts +3 -0
- package/dist/llms/evals/runner/types.d.ts +140 -0
- package/dist/llms/evals/runner/workspace.d.ts +2 -0
- package/dist/llms/evals/runner/write-generated.d.ts +1 -0
- package/dist/provider/web-ui-provider.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/tabs-BS6rqrrA.js +398 -0
- package/dist/tokens/apply.d.ts +4 -9
- package/dist/tokens/control-registry.d.ts +3 -6
- package/dist/tokens/types.d.ts +7 -24
- package/dist/tokens/use-token-controls.d.ts +3 -12
- package/dist/types/meta.d.ts +15 -32
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/resolve-state-props.d.ts +4 -0
- package/dist/vite/brand-assets.d.ts +3 -0
- package/dist/vite/index.d.ts +2 -0
- package/dist/vite/readable-css-module-names.d.ts +11 -0
- package/dist/vite.js +55 -0
- package/dist/web-ui-cli.js +322 -0
- package/docs/user-guide/AgentTooling.mdx +133 -0
- package/docs/user-guide/BrandAssets.mdx +103 -0
- package/docs/user-guide/Changelog.mdx +26 -0
- package/docs/user-guide/GettingStarted.mdx +71 -0
- package/docs/user-guide/HowItsBuilt.mdx +114 -0
- package/docs/user-guide/Tokens.mdx +88 -0
- package/docs/user-guide/UsagePatterns.mdx +123 -0
- package/package.json +28 -22
- package/src/assets/public/favicon/apple-touch-icon.png +0 -0
- package/src/assets/public/favicon/favicon-16.png +0 -0
- package/src/assets/public/favicon/favicon-32.png +0 -0
- package/src/assets/public/favicon/favicon.ico +0 -0
- package/src/assets/public/favicon/favicon.svg +7 -0
- package/src/assets/public/favicon/icon-192.png +0 -0
- package/src/assets/public/favicon/icon-512.png +0 -0
- package/src/assets/public/favicon/og-image.png +0 -0
- package/src/assets/public/spinner/imfusion-spinner-black.webp +0 -0
- package/src/assets/public/spinner/imfusion-spinner-blue.webp +0 -0
- package/src/assets/public/spinner/imfusion-spinner-white.webp +0 -0
- package/src/docgen/doc.gen.json +3255 -603
- package/src/llms/install-templates/AGENTS.md +4 -4
- package/src/llms/install-templates/hooks/baseline-staleness.sh +9 -2
- package/src/llms/llms.gen.txt +7 -1
- package/src/llms/skills/imf-web-ui/SKILL.md +44 -21
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +25 -11
- package/src/llms/skills/imf-web-ui-components/SKILL.md +7 -3
- package/src/llms/skills/imf-web-ui-conventions/SKILL.md +3 -2
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +0 -1
- package/src/llms/skills/imf-web-ui-conventions/templates/REPORT.md +21 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/agent-tooling.md +15 -10
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +7 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/docs-structure.md +2 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +10 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +2 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/tokens.md +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +13 -11
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +17 -9
- package/src/llms/skills/imf-web-ui-update/SKILL.md +47 -19
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +6 -3
- package/src/llms/tokens.gen.json +79 -15
- package/bin/install.js +0 -446
- package/dist/build/vite-css-module-names/index.d.ts +0 -20
- package/dist/build/vite-css-module-names.js +0 -17
- package/dist/components/spinner/spinner.geometry.d.ts +0 -37
- package/dist/integrations/code-highlight/languages/cmake.d.ts +0 -1
- package/dist/integrations/code-highlight/languages/cpp.d.ts +0 -1
- package/dist/tabs-DIe1Utiy.js +0 -371
- /package/dist/{meta-CySnRuVp.js → meta-j-7HGrWv.js} +0 -0
|
@@ -1,111 +1,41 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive } from '@base-ui/react/slider';
|
|
2
|
-
type UpstreamRoot = React.ComponentProps<typeof SliderPrimitive.Root>;
|
|
3
|
-
type UpstreamLabel = React.ComponentProps<typeof SliderPrimitive.Label>;
|
|
4
|
-
type UpstreamValue = React.ComponentProps<typeof SliderPrimitive.Value>;
|
|
5
|
-
type UpstreamControl = React.ComponentProps<typeof SliderPrimitive.Control>;
|
|
6
|
-
type UpstreamTrack = React.ComponentProps<typeof SliderPrimitive.Track>;
|
|
7
|
-
type UpstreamIndicator = React.ComponentProps<typeof SliderPrimitive.Indicator>;
|
|
8
|
-
type UpstreamThumb = React.ComponentProps<typeof SliderPrimitive.Thumb>;
|
|
9
|
-
type RootProps = Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "className" | "style"> & {
|
|
10
|
-
value?: number | number[];
|
|
11
|
-
defaultValue?: number | number[];
|
|
12
|
-
onValueChange?: UpstreamRoot["onValueChange"];
|
|
13
|
-
onValueCommitted?: UpstreamRoot["onValueCommitted"];
|
|
14
|
-
min?: number;
|
|
15
|
-
max?: number;
|
|
16
|
-
step?: number;
|
|
17
|
-
largeStep?: number;
|
|
18
|
-
minStepsBetweenValues?: number;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
orientation?: "horizontal" | "vertical";
|
|
21
|
-
name?: string;
|
|
22
|
-
form?: string;
|
|
23
|
-
locale?: UpstreamRoot["locale"];
|
|
24
|
-
thumbAlignment?: UpstreamRoot["thumbAlignment"];
|
|
25
|
-
thumbCollisionBehavior?: UpstreamRoot["thumbCollisionBehavior"];
|
|
26
|
-
format?: Intl.NumberFormatOptions;
|
|
27
|
-
className?: UpstreamRoot["className"];
|
|
28
|
-
style?: UpstreamRoot["style"];
|
|
29
|
-
render?: UpstreamRoot["render"];
|
|
30
|
-
};
|
|
31
2
|
/**
|
|
32
3
|
* Slider.Root — value selector along a continuous or stepped track.
|
|
33
4
|
*
|
|
34
5
|
* @doc https://base-ui.com/react/components/slider
|
|
35
6
|
* @llm https://base-ui.com/react/components/slider.md
|
|
36
7
|
*/
|
|
37
|
-
export declare function Root({ value, defaultValue, onValueChange, onValueCommitted, min, max, step, largeStep, minStepsBetweenValues, disabled, orientation, name, form, locale, thumbAlignment, thumbCollisionBehavior, format,
|
|
8
|
+
export declare function Root({ value, defaultValue, onValueChange, onValueCommitted, min, max, step, largeStep, minStepsBetweenValues, disabled, orientation, name, form, locale, thumbAlignment, thumbCollisionBehavior, format, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
38
9
|
export declare namespace Root {
|
|
39
10
|
var displayName: string;
|
|
40
11
|
}
|
|
41
|
-
type LabelProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style"> & {
|
|
42
|
-
className?: UpstreamLabel["className"];
|
|
43
|
-
style?: UpstreamLabel["style"];
|
|
44
|
-
render?: UpstreamLabel["render"];
|
|
45
|
-
};
|
|
46
12
|
/** Slider.Label — accessible label for the slider. */
|
|
47
|
-
export declare function Label(
|
|
13
|
+
export declare function Label(props: React.ComponentProps<typeof SliderPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
48
14
|
export declare namespace Label {
|
|
49
15
|
var displayName: string;
|
|
50
16
|
}
|
|
51
|
-
type ValueProps = Omit<React.HTMLAttributes<HTMLOutputElement>, "children" | "className" | "style"> & {
|
|
52
|
-
children?: UpstreamValue["children"];
|
|
53
|
-
className?: UpstreamValue["className"];
|
|
54
|
-
style?: UpstreamValue["style"];
|
|
55
|
-
render?: UpstreamValue["render"];
|
|
56
|
-
};
|
|
57
17
|
/** Slider.Value — live numeric readout. */
|
|
58
|
-
export declare function Value({
|
|
18
|
+
export declare function Value({ children, ...props }: React.ComponentProps<typeof SliderPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
59
19
|
export declare namespace Value {
|
|
60
20
|
var displayName: string;
|
|
61
21
|
}
|
|
62
|
-
type ControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style"> & {
|
|
63
|
-
className?: UpstreamControl["className"];
|
|
64
|
-
style?: UpstreamControl["style"];
|
|
65
|
-
render?: UpstreamControl["render"];
|
|
66
|
-
};
|
|
67
22
|
/** Slider.Control — interactive container for track + thumb. */
|
|
68
|
-
export declare function Control(
|
|
23
|
+
export declare function Control(props: React.ComponentProps<typeof SliderPrimitive.Control>): import("react/jsx-runtime").JSX.Element;
|
|
69
24
|
export declare namespace Control {
|
|
70
25
|
var displayName: string;
|
|
71
26
|
}
|
|
72
|
-
type TrackProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style"> & {
|
|
73
|
-
className?: UpstreamTrack["className"];
|
|
74
|
-
style?: UpstreamTrack["style"];
|
|
75
|
-
render?: UpstreamTrack["render"];
|
|
76
|
-
};
|
|
77
27
|
/** Slider.Track — the static rail. */
|
|
78
|
-
export declare function Track(
|
|
28
|
+
export declare function Track(props: React.ComponentProps<typeof SliderPrimitive.Track>): import("react/jsx-runtime").JSX.Element;
|
|
79
29
|
export declare namespace Track {
|
|
80
30
|
var displayName: string;
|
|
81
31
|
}
|
|
82
|
-
type IndicatorProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "style"> & {
|
|
83
|
-
className?: UpstreamIndicator["className"];
|
|
84
|
-
style?: UpstreamIndicator["style"];
|
|
85
|
-
render?: UpstreamIndicator["render"];
|
|
86
|
-
};
|
|
87
32
|
/** Slider.Indicator — filled portion of the track. */
|
|
88
|
-
export declare function Indicator(
|
|
33
|
+
export declare function Indicator(props: React.ComponentProps<typeof SliderPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
|
|
89
34
|
export declare namespace Indicator {
|
|
90
35
|
var displayName: string;
|
|
91
36
|
}
|
|
92
|
-
type ThumbProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onBlur" | "onFocus" | "className" | "style"> & {
|
|
93
|
-
index?: number;
|
|
94
|
-
tabIndex?: number;
|
|
95
|
-
/** @default false */
|
|
96
|
-
disabled?: boolean;
|
|
97
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
98
|
-
getAriaLabel?: UpstreamThumb["getAriaLabel"];
|
|
99
|
-
getAriaValueText?: UpstreamThumb["getAriaValueText"];
|
|
100
|
-
onBlur?: UpstreamThumb["onBlur"];
|
|
101
|
-
onFocus?: UpstreamThumb["onFocus"];
|
|
102
|
-
className?: UpstreamThumb["className"];
|
|
103
|
-
style?: UpstreamThumb["style"];
|
|
104
|
-
render?: UpstreamThumb["render"];
|
|
105
|
-
};
|
|
106
37
|
/** Slider.Thumb — draggable handle. */
|
|
107
|
-
export declare function Thumb({ index,
|
|
38
|
+
export declare function Thumb({ index, ...props }: React.ComponentProps<typeof SliderPrimitive.Thumb>): import("react/jsx-runtime").JSX.Element;
|
|
108
39
|
export declare namespace Thumb {
|
|
109
40
|
var displayName: string;
|
|
110
41
|
}
|
|
111
|
-
export {};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const sources: {
|
|
3
|
+
blue: string;
|
|
4
|
+
white: string;
|
|
5
|
+
black: string;
|
|
6
|
+
};
|
|
2
7
|
declare const spinner: (props?: ({
|
|
3
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
10
|
type Props = Omit<React.HTMLAttributes<HTMLSpanElement>, "role"> & VariantProps<typeof spinner> & {
|
|
6
11
|
/** Accessible label announced by assistive tech. */
|
|
7
12
|
label?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Which colour of the mark to show. The animation is a pre-rendered image, so
|
|
15
|
+
* the colour is baked in and does not follow `currentColor` or the scheme —
|
|
16
|
+
* pick `white` on saturated or dark grounds.
|
|
17
|
+
*/
|
|
18
|
+
variant?: keyof typeof sources;
|
|
8
19
|
};
|
|
9
20
|
/**
|
|
10
|
-
* Loading indicator
|
|
11
|
-
* and an empty diagonal channel that continuously rotates, breathes, and sways.
|
|
12
|
-
*
|
|
13
|
-
* The motion is a live per-frame morph of the two paths (the channel geometry is
|
|
14
|
-
* recomputed each frame in {@link frameGeometry}), driven by a single
|
|
15
|
-
* `requestAnimationFrame` loop that rewrites the two `d` attributes directly —
|
|
16
|
-
* no React re-render per frame. The loop pauses while the tab is hidden.
|
|
21
|
+
* Loading indicator — the ImFusion glyph animation, played as a looping image.
|
|
17
22
|
*/
|
|
18
|
-
export declare function Spinner({ size,
|
|
23
|
+
export declare function Spinner({ size, variant, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
24
|
export {};
|
|
@@ -8,11 +8,10 @@ type Props = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof stack>;
|
|
|
8
8
|
/**
|
|
9
9
|
* Stack — vertical layout primitive.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* align/justify unions.
|
|
11
|
+
* Adapted from Mantine's Stack, no upstream runtime dependency: a pure column
|
|
12
|
+
* flex container with token-driven gap and constrained align/justify unions.
|
|
14
13
|
*
|
|
15
14
|
* @see https://mantine.dev/core/stack/
|
|
16
15
|
*/
|
|
17
|
-
export declare function Stack({ gap, align, justify,
|
|
16
|
+
export declare function Stack({ gap, align, justify, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -1,45 +1,16 @@
|
|
|
1
1
|
import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
|
|
2
|
-
type UpstreamRoot = React.ComponentProps<typeof SwitchPrimitive.Root>;
|
|
3
|
-
type UpstreamThumb = React.ComponentProps<typeof SwitchPrimitive.Thumb>;
|
|
4
|
-
type RootProps = Omit<React.HTMLAttributes<HTMLSpanElement>, "className" | "style"> & {
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
defaultChecked?: boolean;
|
|
7
|
-
onCheckedChange?: UpstreamRoot["onCheckedChange"];
|
|
8
|
-
/** @default false */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** @default false */
|
|
11
|
-
readOnly?: boolean;
|
|
12
|
-
/** @default false */
|
|
13
|
-
required?: boolean;
|
|
14
|
-
name?: string;
|
|
15
|
-
value?: string;
|
|
16
|
-
uncheckedValue?: string;
|
|
17
|
-
form?: string;
|
|
18
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
19
|
-
/** @default false */
|
|
20
|
-
nativeButton?: boolean;
|
|
21
|
-
className?: UpstreamRoot["className"];
|
|
22
|
-
style?: UpstreamRoot["style"];
|
|
23
|
-
render?: UpstreamRoot["render"];
|
|
24
|
-
};
|
|
25
2
|
/**
|
|
26
3
|
* Switch.Root — toggleable on/off control.
|
|
27
4
|
*
|
|
28
5
|
* @doc https://base-ui.com/react/components/switch
|
|
29
6
|
* @llm https://base-ui.com/react/components/switch.md
|
|
30
7
|
*/
|
|
31
|
-
export declare function Root(
|
|
8
|
+
export declare function Root(props: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
32
9
|
export declare namespace Root {
|
|
33
10
|
var displayName: string;
|
|
34
11
|
}
|
|
35
|
-
type ThumbProps = Omit<React.HTMLAttributes<HTMLSpanElement>, "className" | "style"> & {
|
|
36
|
-
className?: UpstreamThumb["className"];
|
|
37
|
-
style?: UpstreamThumb["style"];
|
|
38
|
-
render?: UpstreamThumb["render"];
|
|
39
|
-
};
|
|
40
12
|
/** Switch.Thumb — the movable indicator inside the track. */
|
|
41
|
-
export declare function Thumb(
|
|
13
|
+
export declare function Thumb(props: React.ComponentProps<typeof SwitchPrimitive.Thumb>): import("react/jsx-runtime").JSX.Element;
|
|
42
14
|
export declare namespace Thumb {
|
|
43
15
|
var displayName: string;
|
|
44
16
|
}
|
|
45
|
-
export {};
|
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
type RootProps = React.TableHTMLAttributes<HTMLTableElement>;
|
|
2
|
-
type HeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
3
|
-
type BodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
|
|
4
|
-
type RowProps = React.HTMLAttributes<HTMLTableRowElement>;
|
|
5
1
|
type HeaderCellProps = React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
6
|
-
type CellProps = React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
7
|
-
type HeaderButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
2
|
/** Table.Root — the `<table>` element. */
|
|
9
|
-
export declare function Root(
|
|
3
|
+
export declare function Root(props: React.TableHTMLAttributes<HTMLTableElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
4
|
export declare namespace Root {
|
|
11
5
|
var displayName: string;
|
|
12
6
|
}
|
|
13
7
|
/** Table.Header — the `<thead>` section. */
|
|
14
|
-
export declare function Header(
|
|
8
|
+
export declare function Header(props: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
9
|
export declare namespace Header {
|
|
16
10
|
var displayName: string;
|
|
17
11
|
}
|
|
18
12
|
/** Table.Body — the `<tbody>` section. */
|
|
19
|
-
export declare function Body(
|
|
13
|
+
export declare function Body(props: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
|
|
20
14
|
export declare namespace Body {
|
|
21
15
|
var displayName: string;
|
|
22
16
|
}
|
|
23
17
|
/** Table.Row — a `<tr>` in header or body. */
|
|
24
|
-
export declare function Row(
|
|
18
|
+
export declare function Row(props: React.HTMLAttributes<HTMLTableRowElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
19
|
export declare namespace Row {
|
|
26
20
|
var displayName: string;
|
|
27
21
|
}
|
|
28
22
|
/** Table.HeaderCell — a `<th>` header cell. */
|
|
29
|
-
export declare function HeaderCell(
|
|
23
|
+
export declare function HeaderCell(props: HeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
30
24
|
export declare namespace HeaderCell {
|
|
31
25
|
var displayName: string;
|
|
32
26
|
}
|
|
33
27
|
/** Table.Cell — a `<td>` data cell. */
|
|
34
|
-
export declare function Cell(
|
|
28
|
+
export declare function Cell(props: React.TdHTMLAttributes<HTMLTableCellElement>): import("react/jsx-runtime").JSX.Element;
|
|
35
29
|
export declare namespace Cell {
|
|
36
30
|
var displayName: string;
|
|
37
31
|
}
|
|
@@ -40,7 +34,7 @@ export declare namespace Cell {
|
|
|
40
34
|
* design: sorting toggles, filter toggles, column menus all render through it
|
|
41
35
|
* rather than each inventing a button. Icon/indicator goes in `children`.
|
|
42
36
|
*/
|
|
43
|
-
export declare function HeaderButton({
|
|
37
|
+
export declare function HeaderButton({ type, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
|
|
44
38
|
export declare namespace HeaderButton {
|
|
45
39
|
var displayName: string;
|
|
46
40
|
}
|
|
@@ -53,11 +47,9 @@ type SortableHeaderCellProps = Omit<HeaderCellProps, "aria-sort"> & {
|
|
|
53
47
|
onToggle?: React.MouseEventHandler<HTMLButtonElement>;
|
|
54
48
|
};
|
|
55
49
|
/**
|
|
56
|
-
* Table.SortableHeaderCell — a
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* agnostic: feed it `sortDirection` and `onToggle` (e.g. from a TanStack
|
|
60
|
-
* column). Omit `onToggle` and it renders a plain non-sortable header cell.
|
|
50
|
+
* Table.SortableHeaderCell — a header cell whose label is a sort toggle,
|
|
51
|
+
* pre-composing HeaderCell + HeaderButton so `aria-sort` and the direction
|
|
52
|
+
* indicator aren't re-derived per consumer. Omit `onToggle` for a plain cell.
|
|
61
53
|
*/
|
|
62
54
|
export declare function SortableHeaderCell({ sortDirection, onToggle, children, ...props }: SortableHeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
63
55
|
export declare namespace SortableHeaderCell {
|
|
@@ -1,90 +1,56 @@
|
|
|
1
1
|
import { Tabs as TabsPrimitive } from '@base-ui/react/tabs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type UpstreamPanel = React.ComponentProps<typeof TabsPrimitive.Panel>;
|
|
7
|
-
type RootProps = UpstreamRoot;
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const tabsList: (props?: ({
|
|
4
|
+
fill?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
6
|
/**
|
|
9
7
|
* Tabs.Root — container that manages the active tab value and orientation context.
|
|
10
8
|
*
|
|
11
9
|
* @see https://base-ui.com/react/components/tabs
|
|
12
10
|
* @llm https://base-ui.com/react/components/tabs.md
|
|
13
11
|
*/
|
|
14
|
-
export declare function Root(
|
|
12
|
+
export declare function Root(props: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export declare namespace Root {
|
|
16
14
|
var displayName: string;
|
|
17
15
|
}
|
|
18
|
-
|
|
19
|
-
/** @default false */
|
|
20
|
-
activateOnFocus?: UpstreamList["activateOnFocus"];
|
|
21
|
-
/** @default true */
|
|
22
|
-
loopFocus?: UpstreamList["loopFocus"];
|
|
16
|
+
interface ListProps extends React.ComponentProps<typeof TabsPrimitive.List>, VariantProps<typeof tabsList> {
|
|
23
17
|
/**
|
|
24
18
|
* Give every tab an equal share of the list's length (equal width when
|
|
25
19
|
* horizontal). When vertical, this only takes effect if the list is stretched
|
|
26
20
|
* to a definite height.
|
|
27
|
-
* @default false
|
|
28
21
|
*/
|
|
29
|
-
fill?:
|
|
30
|
-
|
|
31
|
-
render?: UpstreamList["render"];
|
|
32
|
-
};
|
|
22
|
+
fill?: VariantProps<typeof tabsList>["fill"];
|
|
23
|
+
}
|
|
33
24
|
/** Tabs.List — the strip of Tabs.Tab triggers, plus the sliding Tabs.Indicator. */
|
|
34
|
-
export declare function List({ fill,
|
|
25
|
+
export declare function List({ fill, ref, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
35
26
|
export declare namespace List {
|
|
36
27
|
var displayName: string;
|
|
37
28
|
}
|
|
38
|
-
type TabProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "value" | "disabled"> & {
|
|
39
|
-
value: UpstreamTab["value"];
|
|
40
|
-
/** @default true */
|
|
41
|
-
nativeButton?: UpstreamTab["nativeButton"];
|
|
42
|
-
disabled?: UpstreamTab["disabled"];
|
|
43
|
-
className?: UpstreamTab["className"];
|
|
44
|
-
render?: UpstreamTab["render"];
|
|
45
|
-
};
|
|
46
29
|
/** Tabs.Tab — a single trigger. Reads `data-active`/`data-disabled` from Base UI for all visual state. */
|
|
47
|
-
export declare function Tab(
|
|
30
|
+
export declare function Tab(props: React.ComponentProps<typeof TabsPrimitive.Tab>): import("react/jsx-runtime").JSX.Element;
|
|
48
31
|
export declare namespace Tab {
|
|
49
32
|
var displayName: string;
|
|
50
33
|
}
|
|
51
|
-
type IndicatorProps = Omit<React.HTMLAttributes<HTMLSpanElement>, "className"> & {
|
|
52
|
-
/** @default false */
|
|
53
|
-
renderBeforeHydration?: UpstreamIndicator["renderBeforeHydration"];
|
|
54
|
-
className?: UpstreamIndicator["className"];
|
|
55
|
-
render?: UpstreamIndicator["render"];
|
|
56
|
-
};
|
|
57
34
|
/**
|
|
58
|
-
* Tabs.Indicator — the bordered box marking the active tab,
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* properties Base UI writes onto it; render once per Tabs.List, after the
|
|
62
|
-
* Tabs.Tab list.
|
|
35
|
+
* Tabs.Indicator — the bordered box marking the active tab, positioned via
|
|
36
|
+
* the `--active-tab-*` CSS custom properties Base UI writes onto it. Render
|
|
37
|
+
* once per Tabs.List, after the Tabs.Tab list.
|
|
63
38
|
*/
|
|
64
|
-
export declare function Indicator(
|
|
39
|
+
export declare function Indicator(props: React.ComponentProps<typeof TabsPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
|
|
65
40
|
export declare namespace Indicator {
|
|
66
41
|
var displayName: string;
|
|
67
42
|
}
|
|
68
|
-
type PanelViewportProps = React.HTMLAttributes<HTMLDivElement>;
|
|
69
43
|
/**
|
|
70
44
|
* Tabs.PanelViewport — the shared frame Tabs.Panel elements render inside.
|
|
71
|
-
* No Base UI equivalent exists
|
|
72
|
-
*
|
|
73
|
-
* border is what Tabs.Indicator visually fuses into.
|
|
45
|
+
* No Base UI equivalent exists; it's surfaced as a named part since its
|
|
46
|
+
* hairline border is what Tabs.Indicator visually fuses into.
|
|
74
47
|
*/
|
|
75
|
-
export declare function PanelViewport(
|
|
48
|
+
export declare function PanelViewport(props: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
76
49
|
export declare namespace PanelViewport {
|
|
77
50
|
var displayName: string;
|
|
78
51
|
}
|
|
79
|
-
type PanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
80
|
-
value: UpstreamPanel["value"];
|
|
81
|
-
/** @default false */
|
|
82
|
-
keepMounted?: UpstreamPanel["keepMounted"];
|
|
83
|
-
className?: UpstreamPanel["className"];
|
|
84
|
-
render?: UpstreamPanel["render"];
|
|
85
|
-
};
|
|
86
52
|
/** Tabs.Panel — the content shown for a matching Tabs.Tab value. */
|
|
87
|
-
export declare function Panel(
|
|
53
|
+
export declare function Panel(props: React.ComponentProps<typeof TabsPrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
|
|
88
54
|
export declare namespace Panel {
|
|
89
55
|
var displayName: string;
|
|
90
56
|
}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
type UpstreamProvider = React.ComponentProps<typeof ToastPrimitive.Provider>;
|
|
4
|
-
type UpstreamPortal = React.ComponentProps<typeof ToastPrimitive.Portal>;
|
|
5
|
-
type UpstreamViewport = React.ComponentProps<typeof ToastPrimitive.Viewport>;
|
|
6
|
-
type UpstreamRoot = React.ComponentProps<typeof ToastPrimitive.Root>;
|
|
7
|
-
type UpstreamContent = React.ComponentProps<typeof ToastPrimitive.Content>;
|
|
8
|
-
type UpstreamTitle = React.ComponentProps<typeof ToastPrimitive.Title>;
|
|
9
|
-
type UpstreamDescription = React.ComponentProps<typeof ToastPrimitive.Description>;
|
|
10
|
-
type UpstreamClose = React.ComponentProps<typeof ToastPrimitive.Close>;
|
|
11
|
-
type UpstreamAction = React.ComponentProps<typeof ToastPrimitive.Action>;
|
|
12
|
-
type UpstreamPositioner = React.ComponentProps<typeof ToastPrimitive.Positioner>;
|
|
13
|
-
type UpstreamArrow = React.ComponentProps<typeof ToastPrimitive.Arrow>;
|
|
14
3
|
declare const toastViewport: (props?: ({
|
|
15
4
|
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
16
|
-
width?: "
|
|
5
|
+
width?: "default" | "content" | "compact" | "wide" | null | undefined;
|
|
17
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
7
|
declare const toastRoot: (props?: ({
|
|
19
8
|
variant?: "warning" | "info" | "neutral" | "success" | "error" | null | undefined;
|
|
@@ -30,12 +19,6 @@ export declare const useToastManager: typeof ToastPrimitive.useToastManager;
|
|
|
30
19
|
* `toastManager`.
|
|
31
20
|
*/
|
|
32
21
|
export declare const createToastManager: typeof ToastPrimitive.createToastManager;
|
|
33
|
-
type ProviderProps = {
|
|
34
|
-
timeout?: UpstreamProvider["timeout"];
|
|
35
|
-
limit?: UpstreamProvider["limit"];
|
|
36
|
-
toastManager?: UpstreamProvider["toastManager"];
|
|
37
|
-
children?: UpstreamProvider["children"];
|
|
38
|
-
};
|
|
39
22
|
/**
|
|
40
23
|
* Toast.Provider — owns the toast queue for its subtree. Renders no DOM element.
|
|
41
24
|
*
|
|
@@ -45,155 +28,85 @@ type ProviderProps = {
|
|
|
45
28
|
* @see https://base-ui.com/react/components/toast
|
|
46
29
|
* @llm https://base-ui.com/react/components/toast.md
|
|
47
30
|
*/
|
|
48
|
-
export declare function Provider({ timeout, limit, ...props }:
|
|
31
|
+
export declare function Provider({ timeout, limit, ...props }: React.ComponentProps<typeof ToastPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
49
32
|
export declare namespace Provider {
|
|
50
33
|
var displayName: string;
|
|
51
34
|
}
|
|
52
|
-
type PortalProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
53
|
-
container?: UpstreamPortal["container"];
|
|
54
|
-
className?: UpstreamPortal["className"];
|
|
55
|
-
render?: UpstreamPortal["render"];
|
|
56
|
-
children?: UpstreamPortal["children"];
|
|
57
|
-
};
|
|
58
35
|
/** Toast.Portal — moves the viewport out of the page flow so toasts float above the app. */
|
|
59
|
-
export declare function Portal(
|
|
36
|
+
export declare function Portal(props: React.ComponentProps<typeof ToastPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
60
37
|
export declare namespace Portal {
|
|
61
38
|
var displayName: string;
|
|
62
39
|
}
|
|
63
|
-
|
|
40
|
+
interface ViewportProps extends React.ComponentProps<typeof ToastPrimitive.Viewport>, VariantProps<typeof toastViewport> {
|
|
64
41
|
/** Which edge or corner of the screen the stack anchors to. */
|
|
65
42
|
position?: VariantProps<typeof toastViewport>["position"];
|
|
66
43
|
/** Width treatment for the toast stack. */
|
|
67
44
|
width?: VariantProps<typeof toastViewport>["width"];
|
|
68
|
-
|
|
69
|
-
render?: UpstreamViewport["render"];
|
|
70
|
-
};
|
|
45
|
+
}
|
|
71
46
|
/**
|
|
72
47
|
* Toast.Viewport — the fixed layer that holds the stack. Hovering or focusing it
|
|
73
48
|
* expands the collapsed toasts; it ignores pointer events except on the toasts
|
|
74
49
|
* themselves so the app underneath stays clickable.
|
|
75
50
|
*/
|
|
76
|
-
export declare function Viewport({
|
|
51
|
+
export declare function Viewport({ position, width, ...props }: ViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
77
52
|
export declare namespace Viewport {
|
|
78
53
|
var displayName: string;
|
|
79
54
|
}
|
|
80
|
-
|
|
55
|
+
interface RootProps extends React.ComponentProps<typeof ToastPrimitive.Root>, VariantProps<typeof toastRoot> {
|
|
81
56
|
/** Semantic treatment for the toast surface. */
|
|
82
57
|
variant?: VariantProps<typeof toastRoot>["variant"];
|
|
83
|
-
|
|
84
|
-
toast: UpstreamRoot["toast"];
|
|
85
|
-
/** @default ['down', 'right'] */
|
|
86
|
-
swipeDirection?: UpstreamRoot["swipeDirection"];
|
|
87
|
-
className?: UpstreamRoot["className"];
|
|
88
|
-
render?: UpstreamRoot["render"];
|
|
89
|
-
};
|
|
58
|
+
}
|
|
90
59
|
/**
|
|
91
60
|
* Toast.Root — one toast surface. Carries the upstream state as data attributes
|
|
92
61
|
* (`data-starting-style`, `data-ending-style`, `data-expanded`, `data-limited`,
|
|
93
62
|
* `data-swiping`) which the stylesheet uses for stack and exit motion.
|
|
94
63
|
*/
|
|
95
|
-
export declare function Root({
|
|
64
|
+
export declare function Root({ variant, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
96
65
|
export declare namespace Root {
|
|
97
66
|
var displayName: string;
|
|
98
67
|
}
|
|
99
|
-
type ContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
100
|
-
className?: UpstreamContent["className"];
|
|
101
|
-
render?: UpstreamContent["render"];
|
|
102
|
-
};
|
|
103
68
|
/**
|
|
104
69
|
* Toast.Content — lays out title, description, action, and close. Fades out on
|
|
105
70
|
* the toasts stacked behind the frontmost one via `data-behind`.
|
|
106
71
|
*/
|
|
107
|
-
export declare function Content(
|
|
72
|
+
export declare function Content(props: React.ComponentProps<typeof ToastPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
108
73
|
export declare namespace Content {
|
|
109
74
|
var displayName: string;
|
|
110
75
|
}
|
|
111
|
-
type TitleProps = Omit<React.HTMLAttributes<HTMLHeadingElement>, "className"> & {
|
|
112
|
-
className?: UpstreamTitle["className"];
|
|
113
|
-
render?: UpstreamTitle["render"];
|
|
114
|
-
};
|
|
115
76
|
/** Toast.Title — the message heading. Falls back to the toast object's `title` when given no children. */
|
|
116
|
-
export declare function Title(
|
|
77
|
+
export declare function Title(props: React.ComponentProps<typeof ToastPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
117
78
|
export declare namespace Title {
|
|
118
79
|
var displayName: string;
|
|
119
80
|
}
|
|
120
|
-
type DescriptionProps = Omit<React.HTMLAttributes<HTMLParagraphElement>, "className"> & {
|
|
121
|
-
className?: UpstreamDescription["className"];
|
|
122
|
-
render?: UpstreamDescription["render"];
|
|
123
|
-
};
|
|
124
81
|
/** Toast.Description — supporting copy. Falls back to the toast object's `description` when given no children. */
|
|
125
|
-
export declare function Description(
|
|
82
|
+
export declare function Description(props: React.ComponentProps<typeof ToastPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
126
83
|
export declare namespace Description {
|
|
127
84
|
var displayName: string;
|
|
128
85
|
}
|
|
129
|
-
type CloseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
130
|
-
/** @default true */
|
|
131
|
-
nativeButton?: UpstreamClose["nativeButton"];
|
|
132
|
-
className?: UpstreamClose["className"];
|
|
133
|
-
render?: UpstreamClose["render"];
|
|
134
|
-
};
|
|
135
86
|
/** Toast.Close — dismisses the toast it sits in. */
|
|
136
|
-
export declare function Close(
|
|
87
|
+
export declare function Close(props: React.ComponentProps<typeof ToastPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
137
88
|
export declare namespace Close {
|
|
138
89
|
var displayName: string;
|
|
139
90
|
}
|
|
140
|
-
type ActionProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
141
|
-
/** @default true */
|
|
142
|
-
nativeButton?: UpstreamAction["nativeButton"];
|
|
143
|
-
className?: UpstreamAction["className"];
|
|
144
|
-
render?: UpstreamAction["render"];
|
|
145
|
-
};
|
|
146
91
|
/**
|
|
147
92
|
* Toast.Action — the toast's single affordance, typically an undo. Its behavior
|
|
148
93
|
* comes from `actionProps` on the toast object passed to the manager.
|
|
149
94
|
*/
|
|
150
|
-
export declare function Action(
|
|
95
|
+
export declare function Action(props: React.ComponentProps<typeof ToastPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
151
96
|
export declare namespace Action {
|
|
152
97
|
var displayName: string;
|
|
153
98
|
}
|
|
154
|
-
type PositionerProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
155
|
-
/** The toast object from the manager's `toasts` array. */
|
|
156
|
-
toast: UpstreamPositioner["toast"];
|
|
157
|
-
/** @default 'top' */
|
|
158
|
-
side?: UpstreamPositioner["side"];
|
|
159
|
-
/** @default 'center' */
|
|
160
|
-
align?: UpstreamPositioner["align"];
|
|
161
|
-
/** @default 0 */
|
|
162
|
-
sideOffset?: UpstreamPositioner["sideOffset"];
|
|
163
|
-
/** @default 0 */
|
|
164
|
-
alignOffset?: UpstreamPositioner["alignOffset"];
|
|
165
|
-
/** @default 5 */
|
|
166
|
-
arrowPadding?: UpstreamPositioner["arrowPadding"];
|
|
167
|
-
anchor?: UpstreamPositioner["anchor"];
|
|
168
|
-
collisionAvoidance?: UpstreamPositioner["collisionAvoidance"];
|
|
169
|
-
/** @default 'clipping-ancestors' */
|
|
170
|
-
collisionBoundary?: UpstreamPositioner["collisionBoundary"];
|
|
171
|
-
/** @default 5 */
|
|
172
|
-
collisionPadding?: UpstreamPositioner["collisionPadding"];
|
|
173
|
-
/** @default 'absolute' */
|
|
174
|
-
positionMethod?: UpstreamPositioner["positionMethod"];
|
|
175
|
-
/** @default false */
|
|
176
|
-
sticky?: UpstreamPositioner["sticky"];
|
|
177
|
-
/** @default false */
|
|
178
|
-
disableAnchorTracking?: UpstreamPositioner["disableAnchorTracking"];
|
|
179
|
-
className?: UpstreamPositioner["className"];
|
|
180
|
-
render?: UpstreamPositioner["render"];
|
|
181
|
-
};
|
|
182
99
|
/**
|
|
183
100
|
* Toast.Positioner — anchors a toast to an element instead of the stack, for
|
|
184
101
|
* feedback that belongs next to the control that caused it. Wrap a `Root` in it
|
|
185
102
|
* and the root switches to the compact content-sized surface.
|
|
186
103
|
*/
|
|
187
|
-
export declare function Positioner(
|
|
104
|
+
export declare function Positioner(props: React.ComponentProps<typeof ToastPrimitive.Positioner>): import("react/jsx-runtime").JSX.Element;
|
|
188
105
|
export declare namespace Positioner {
|
|
189
106
|
var displayName: string;
|
|
190
107
|
}
|
|
191
|
-
type ArrowProps = Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
|
|
192
|
-
className?: UpstreamArrow["className"];
|
|
193
|
-
render?: UpstreamArrow["render"];
|
|
194
|
-
};
|
|
195
108
|
/** Toast.Arrow — pointer joining an anchored toast to its anchor. Receives `data-side` for orientation. */
|
|
196
|
-
export declare function Arrow(
|
|
109
|
+
export declare function Arrow(props: React.ComponentProps<typeof ToastPrimitive.Arrow>): import("react/jsx-runtime").JSX.Element;
|
|
197
110
|
export declare namespace Arrow {
|
|
198
111
|
var displayName: string;
|
|
199
112
|
}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Identifies the toggle within a `ToggleGroup`: the value contributed to the
|
|
6
|
-
* group's value array. Optional for a standalone toggle.
|
|
7
|
-
*/
|
|
8
|
-
value?: UpstreamToggle["value"];
|
|
9
|
-
/** Whether the toggle is pressed. */
|
|
10
|
-
pressed?: UpstreamToggle["pressed"];
|
|
11
|
-
/** @default false */
|
|
12
|
-
defaultPressed?: UpstreamToggle["defaultPressed"];
|
|
13
|
-
onPressedChange?: UpstreamToggle["onPressedChange"];
|
|
14
|
-
/** @default false */
|
|
15
|
-
disabled?: UpstreamToggle["disabled"];
|
|
16
|
-
/** @default true */
|
|
17
|
-
nativeButton?: UpstreamToggle["nativeButton"];
|
|
18
|
-
className?: UpstreamToggle["className"];
|
|
19
|
-
style?: UpstreamToggle["style"];
|
|
20
|
-
render?: UpstreamToggle["render"];
|
|
21
|
-
};
|
|
2
|
+
interface Props extends React.ComponentProps<typeof TogglePrimitive> {
|
|
3
|
+
}
|
|
22
4
|
/**
|
|
23
5
|
* Toggle - a two-state button. Use standalone for a
|
|
24
6
|
* single on/off action (bold, mute), or compose several inside a `ToggleGroup`
|
|
@@ -27,5 +9,5 @@ type Props = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "
|
|
|
27
9
|
* @doc https://base-ui.com/react/components/toggle
|
|
28
10
|
* @llm https://base-ui.com/react/components/toggle.md
|
|
29
11
|
*/
|
|
30
|
-
export declare function Toggle({
|
|
12
|
+
export declare function Toggle({ style, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
31
13
|
export {};
|