@imfusion/web-ui 0.8.1-dev.17.gcbf0282e → 0.8.1-dev.18.g2355b181

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
@@ -28,6 +28,11 @@ workflows already ask for stay as they are. Say "change my profile" to answer ag
28
28
  - `Typo.Eyebrow` sets a short mono, uppercase label above a heading, in the quiet `support` color by default.
29
29
  - `Card.Status` marks a card's outcome with a tinted column or band and the `info`, `positive`, `warning`, or `negative`
30
30
  glyph that `Callout` uses for the same status.
31
+ - Components — Stephan Wenninger <wenninger@imfusion.com>
32
+ - `Slider.Root` has a `variant="position"` that draws a scrollbar-like trough and bar thumb for picking one position in a
33
+ range.
34
+ - `FrameSelection`, from `@imfusion/web-ui/integrations/frame-selection`, steps through the frames of ImFusion Web SDK
35
+ image sets with a position slider and a current-of-total readout.
31
36
 
32
37
  ### Changed
33
38
 
@@ -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 }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
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 {};