@imfusion/web-ui 0.11.1-dev.35.g0028b4dd → 0.11.1-dev.39.g98a8338c
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 +7 -0
- package/dist/components/card/card.d.ts +3 -2
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progress.d.ts +40 -0
- package/dist/components/progress/progress.meta.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1947 -1857
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +238 -1
- package/src/llms/llms.gen.txt +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
+
- `Progress` is a new bar for the completion of a running task, adapted from Base UI. `size` runs from `xs` (a 2px hairline) to
|
|
8
|
+
`lg`, `layout` is `stacked` or `inline`, `value={null}` sweeps while the amount is unknown, and the fill turns positive at the
|
|
9
|
+
maximum. [Progress](src/components/progress/progress.mdx) — Nikolaus Brunner <brunner@imfusion.com>
|
|
7
10
|
- `TabNav` is a new row of links to routes with a bar under the current one, in the underline look of `Tabs`. `TabNav.Item`
|
|
8
11
|
renders an `<a>`, takes a router link as `render`, and sets `aria-current="page"` from `current`.
|
|
9
12
|
[TabNav](src/components/tab-nav/tab-nav.stories.tsx#InAProjectHeader) — Nikolaus Brunner <brunner@imfusion.com>
|
|
@@ -96,6 +99,8 @@
|
|
|
96
99
|
|
|
97
100
|
- `Drawer.Title` wraps a long title instead of running past the panel edge.
|
|
98
101
|
[Drawer](src/components/drawer/drawer.stories.tsx#LongTitle) — Nikolaus Brunner <brunner@imfusion.com>
|
|
102
|
+
- `Card` describes its coloured fills correctly: they set the background, and their content takes `oncolor` variants. —
|
|
103
|
+
Nikolaus Brunner <brunner@imfusion.com>
|
|
99
104
|
- Typo inside `Callout.Description`, such as `Typo.UnorderedList` or `Typo.P`, matches the description's size and takes
|
|
100
105
|
the variant's colour. [Callout](src/components/callout/callout.stories.tsx#WithList) — Nikolaus Brunner <brunner@imfusion.com>
|
|
101
106
|
- A `Select` option with `Select.ItemDescription` is named by its text alone and reads the description as its accessible
|
|
@@ -110,6 +115,8 @@
|
|
|
110
115
|
- Components — Nikolaus Brunner <brunner@imfusion.com>
|
|
111
116
|
- A `Drawer.Close` or `Popover.Close` rendered as another component, such as a `Button`, keeps that component's styles.
|
|
112
117
|
- A `Popover.Trigger` rendered as another component keeps that component's styles, so `render={<Button />}` looks like a Button.
|
|
118
|
+
- `Button variant="primary"` hovers to a blue outline on any surface. Its hover fill was the `main` background, which showed as a
|
|
119
|
+
white box on a `support` card. [Button](src/components/button/button.stories.tsx#OnSupportCard) — Nikolaus Brunner <brunner@imfusion.com>
|
|
113
120
|
|
|
114
121
|
---
|
|
115
122
|
|
|
@@ -17,8 +17,9 @@ type RootProps = React.ComponentProps<"div"> & VariantProps<typeof root> & {
|
|
|
17
17
|
* `Card.Footer`. `density` sets one scale that drives both each slot's padding
|
|
18
18
|
* and the gap between slots. `variant` picks the look — neutral tonal surfaces
|
|
19
19
|
* (`main`/`support`/`minor`) carry a hairline border; coloured intent fills
|
|
20
|
-
* (`primary`/`brand`)
|
|
21
|
-
*
|
|
20
|
+
* (`primary`/`brand`) set the background only and are borderless. Put `oncolor`
|
|
21
|
+
* content inside them, e.g. `Typo variant="oncolor"` and `Button context="oncolor"`.
|
|
22
|
+
* `shadow` and `radius` layer on top. Also called a panel, tile, or paper.
|
|
22
23
|
*
|
|
23
24
|
* The image is always the first entry in the stack, so `orientation` just
|
|
24
25
|
* switches the stack between a column and a row without reordering slots.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Progress as ProgressPrimitive } from '@base-ui/react/progress';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const progressRoot: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
5
|
+
layout?: "inline" | "stacked" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Progress.Root — completion of a running task, such as an upload or export.
|
|
9
|
+
*
|
|
10
|
+
* `value={null}` is indeterminate. Without a visible `Progress.Label`, name the bar with `aria-label`. Base UI hides
|
|
11
|
+
* `Progress.Value` from assistive tech, so custom Value text needs a matching `aria-valuetext`.
|
|
12
|
+
*
|
|
13
|
+
* @doc https://base-ui.com/react/components/progress
|
|
14
|
+
* @llm https://base-ui.com/react/components/progress.md
|
|
15
|
+
*/
|
|
16
|
+
export declare function Root({ size, layout, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root> & VariantProps<typeof progressRoot>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare namespace Root {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
|
20
|
+
/** Progress.Label — accessible label for the progress bar. */
|
|
21
|
+
export declare function Label(props: React.ComponentProps<typeof ProgressPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare namespace Label {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
/** Progress.Value — formatted readout of the current value. Renders nothing while indeterminate. */
|
|
26
|
+
export declare function Value(props: React.ComponentProps<typeof ProgressPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare namespace Value {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
30
|
+
/** Progress.Track — the full range. */
|
|
31
|
+
export declare function Track(props: React.ComponentProps<typeof ProgressPrimitive.Track>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare namespace Track {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
35
|
+
/** Progress.Indicator — filled portion of the track up to the value. */
|
|
36
|
+
export declare function Indicator(props: React.ComponentProps<typeof ProgressPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare namespace Indicator {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export { Kbd, kbdMeta } from './components/kbd';
|
|
|
38
38
|
export { Logo, logoMeta } from './components/logo';
|
|
39
39
|
export { Meter, meterMeta } from './components/meter';
|
|
40
40
|
export { NavigationMenu, navigationMenuMeta } from './components/navigation-menu';
|
|
41
|
+
export { Progress, progressMeta } from './components/progress';
|
|
41
42
|
export { Skeleton, skeletonMeta } from './components/skeleton';
|
|
42
43
|
export { Spinner, spinnerMeta } from './components/spinner';
|
|
43
44
|
export { Table, tableMeta } from './components/table';
|