@danxbot/ui 20.17.1 → 20.18.1
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/dist/index.js +1301 -1278
- package/dist/index.js.map +1 -1
- package/dist/types/components/Slider.d.ts +16 -1
- package/package.json +1 -1
|
@@ -186,6 +186,21 @@ export interface SliderProps extends Omit<VariantProps<typeof slider>, "disabled
|
|
|
186
186
|
step?: number;
|
|
187
187
|
/** Smallest allowed gap between range thumbs. */
|
|
188
188
|
minStepsBetweenValues?: number;
|
|
189
|
+
/**
|
|
190
|
+
* What a dragged range thumb does on reaching its neighbour. `push` (the
|
|
191
|
+
* default) shoves the neighbour along; `stop` halts the dragged thumb at it,
|
|
192
|
+
* so two values that may be equal need no clamping in the consumer.
|
|
193
|
+
*/
|
|
194
|
+
thumbCollision?: "push" | "stop";
|
|
195
|
+
/**
|
|
196
|
+
* Where range thumbs sit when their values are equal. `overlap` (the
|
|
197
|
+
* default) stacks them exactly, so only the top one can be grabbed.
|
|
198
|
+
* `offset` lifts the first above the track and drops the second below it,
|
|
199
|
+
* so both stay grabbable by mouse and finger.
|
|
200
|
+
*/
|
|
201
|
+
meetingThumbs?: "overlap" | "offset";
|
|
202
|
+
/** An accessible name per thumb, in value order — e.g. `["Target", "Critical"]`. */
|
|
203
|
+
thumbLabels?: string[];
|
|
189
204
|
label?: ReactNode;
|
|
190
205
|
/** Turn the raw number into what a person should read. */
|
|
191
206
|
format?: (value: number) => string;
|
|
@@ -199,5 +214,5 @@ export interface SliderProps extends Omit<VariantProps<typeof slider>, "disabled
|
|
|
199
214
|
className?: string;
|
|
200
215
|
ref?: Ref<HTMLDivElement>;
|
|
201
216
|
}
|
|
202
|
-
export declare function Slider({ value, defaultValue, onValueChange, onValueCommitted, min, max, step, minStepsBetweenValues, label, format, showValue, marks, tooltip, size, tone, disabled, className, ref, }: SliderProps): import("react").JSX.Element;
|
|
217
|
+
export declare function Slider({ value, defaultValue, onValueChange, onValueCommitted, min, max, step, minStepsBetweenValues, thumbCollision, meetingThumbs, thumbLabels, label, format, showValue, marks, tooltip, size, tone, disabled, className, ref, }: SliderProps): import("react").JSX.Element;
|
|
203
218
|
export {};
|