@imfusion/web-ui 0.11.1-dev.35.g0028b4dd → 0.11.1-dev.37.gdba3f9f4

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 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>
@@ -0,0 +1,2 @@
1
+ export * as Progress from './progress';
2
+ export { progressMeta } from './progress.meta';
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../types/meta';
2
+ export declare const progressMeta: ComponentMeta;
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';