@danxbot/ui 20.21.0 → 20.21.2
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 +3251 -3173
- package/dist/index.js.map +1 -1
- package/dist/types/components/Slider.d.ts +14 -1
- package/dist/types/icons/data.d.ts +15 -0
- package/package.json +1 -1
|
@@ -169,6 +169,12 @@ declare const slider: import("tailwind-variants").TVReturnType<{
|
|
|
169
169
|
marks: string;
|
|
170
170
|
markLabel: string;
|
|
171
171
|
}>>;
|
|
172
|
+
export type SliderThumbMarker = {
|
|
173
|
+
/** `checkered` is a finish-line flag (aim here); `solid` is filled with the tone. */
|
|
174
|
+
flag: "checkered" | "solid";
|
|
175
|
+
/** Colours the bar, and the flag when solid. Default `neutral`. */
|
|
176
|
+
tone?: "neutral" | "accent" | "brand" | "success" | "warning" | "danger";
|
|
177
|
+
};
|
|
172
178
|
export type SliderMark = {
|
|
173
179
|
value: number;
|
|
174
180
|
/** Shown under the tick. Omit for a bare tick. */
|
|
@@ -199,6 +205,13 @@ export interface SliderProps extends Omit<VariantProps<typeof slider>, "disabled
|
|
|
199
205
|
* so both stay grabbable by mouse and finger.
|
|
200
206
|
*/
|
|
201
207
|
meetingThumbs?: "overlap" | "offset";
|
|
208
|
+
/**
|
|
209
|
+
* Draw each thumb as a vertical bar with a flag at its top instead of a round
|
|
210
|
+
* handle, one entry per thumb in value order. The first thumb's flag points left
|
|
211
|
+
* and the second's right, so two flags at equal values never cover each other and
|
|
212
|
+
* `meetingThumbs` is not needed (setting both throws). One or two thumbs only.
|
|
213
|
+
*/
|
|
214
|
+
thumbMarkers?: SliderThumbMarker[];
|
|
202
215
|
/** An accessible name per thumb, in value order — e.g. `["Target", "Critical"]`. */
|
|
203
216
|
thumbLabels?: string[];
|
|
204
217
|
label?: ReactNode;
|
|
@@ -214,5 +227,5 @@ export interface SliderProps extends Omit<VariantProps<typeof slider>, "disabled
|
|
|
214
227
|
className?: string;
|
|
215
228
|
ref?: Ref<HTMLDivElement>;
|
|
216
229
|
}
|
|
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;
|
|
230
|
+
export declare function Slider({ value, defaultValue, onValueChange, onValueCommitted, min, max, step, minStepsBetweenValues, thumbCollision, meetingThumbs, thumbLabels, thumbMarkers, label, format, showValue, marks, tooltip, size, tone, disabled, className, ref, }: SliderProps): import("react").JSX.Element;
|
|
218
231
|
export {};
|
|
@@ -1148,6 +1148,21 @@ export declare const coreIcons: {
|
|
|
1148
1148
|
readonly y1: "9";
|
|
1149
1149
|
readonly y2: "21";
|
|
1150
1150
|
}]];
|
|
1151
|
+
readonly "git-pull-request-arrow": readonly [readonly ["circle", {
|
|
1152
|
+
readonly cx: "5";
|
|
1153
|
+
readonly cy: "6";
|
|
1154
|
+
readonly r: "3";
|
|
1155
|
+
}], readonly ["path", {
|
|
1156
|
+
readonly d: "M5 9v12";
|
|
1157
|
+
}], readonly ["circle", {
|
|
1158
|
+
readonly cx: "19";
|
|
1159
|
+
readonly cy: "18";
|
|
1160
|
+
readonly r: "3";
|
|
1161
|
+
}], readonly ["path", {
|
|
1162
|
+
readonly d: "m15 9-3-3 3-3";
|
|
1163
|
+
}], readonly ["path", {
|
|
1164
|
+
readonly d: "M12 6h5a2 2 0 0 1 2 2v7";
|
|
1165
|
+
}]];
|
|
1151
1166
|
readonly pause: readonly [readonly ["rect", {
|
|
1152
1167
|
readonly x: "14";
|
|
1153
1168
|
readonly y: "3";
|