@danxbot/ui 20.17.0 → 20.18.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/dist/index.js +2105 -2079
- package/dist/index.js.map +1 -1
- package/dist/types/components/Slider.d.ts +16 -1
- package/dist/types/lib/dnd/session.d.ts +9 -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 {};
|
|
@@ -58,7 +58,15 @@ export declare class DragSession {
|
|
|
58
58
|
private emit;
|
|
59
59
|
registerItem(reg: ItemRegistration): () => void;
|
|
60
60
|
registerContainer(reg: ContainerRegistration): () => void;
|
|
61
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Document order, used by keyboard container stepping.
|
|
63
|
+
*
|
|
64
|
+
* DX-4590: NOT registration order. A container re-registers whenever its
|
|
65
|
+
* `total`, `offset` or `axis` changes (a delete + re-add, which moves it to the
|
|
66
|
+
* end of the Map), and a lane or toggle that mounts later registers later, so
|
|
67
|
+
* registration order drifts away from the screen and ArrowLeft/Right skip lanes
|
|
68
|
+
* or reach them out of order. Document order is what the user sees.
|
|
69
|
+
*/
|
|
62
70
|
containerIds(): string[];
|
|
63
71
|
/**
|
|
64
72
|
* Re-measure. Called at pickup, and by the sensors on scroll, resize and
|