design-system-silkhaus 1.1.0-beta.promo-dialog → 1.1.0-beta.slider-input.3
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.cjs +153 -45
- package/dist/index.d.ts +47 -13
- package/dist/index.js +15045 -10421
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -256,11 +256,26 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
256
256
|
textarea?: true | false | undefined;
|
|
257
257
|
label?: string | undefined;
|
|
258
258
|
caption?: string | undefined;
|
|
259
|
-
color
|
|
259
|
+
color?: 'primary' | 'success' | 'error' | 'primaryRounded' | 'errorRounded' | 'disabled';
|
|
260
260
|
required?: boolean;
|
|
261
261
|
labelClass?: string | undefined;
|
|
262
262
|
InputDivClass?: string | undefined;
|
|
263
263
|
captionClass?: string | undefined;
|
|
264
|
+
startAdornment?: default_2.ReactNode;
|
|
265
|
+
endAdornment?: default_2.ReactNode;
|
|
266
|
+
min?: number;
|
|
267
|
+
max?: number;
|
|
268
|
+
value?: string | number;
|
|
269
|
+
/**
|
|
270
|
+
* When `true`, only numbers can be entered. Any other input will be ignored
|
|
271
|
+
* When min and max are set, the entered value is set to min when less than min and max when greater than max
|
|
272
|
+
*/
|
|
273
|
+
isNumbersOnly?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* When `isNumbersOnly` is `true`, entered value might be modified depending on min and max.
|
|
276
|
+
* While `onChange` will you give what the user enters, `onNumberUpdate` will give the final modified value
|
|
277
|
+
*/
|
|
278
|
+
onNumberUpdate?: (val: number | '') => void;
|
|
264
279
|
}
|
|
265
280
|
|
|
266
281
|
export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -348,25 +363,44 @@ declare interface Option_2 {
|
|
|
348
363
|
id?: number;
|
|
349
364
|
}
|
|
350
365
|
|
|
351
|
-
export declare const
|
|
366
|
+
export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
|
|
352
367
|
|
|
353
|
-
export declare interface
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
368
|
+
export declare interface PriceRangeSliderProps {
|
|
369
|
+
className?: string;
|
|
370
|
+
min?: number;
|
|
371
|
+
max: number;
|
|
372
|
+
step?: number;
|
|
373
|
+
/**
|
|
374
|
+
* This is called everytime the input field value changes
|
|
375
|
+
*/
|
|
376
|
+
onInputChange?: (value: [number | string, number | string]) => void;
|
|
377
|
+
/**
|
|
378
|
+
* This is called when the slider value changes either through the slider
|
|
379
|
+
* or the input fields. This is only called after handling internally for any non numeric characters.
|
|
380
|
+
* Which means the value will either contain a number or empty string.
|
|
381
|
+
*/
|
|
382
|
+
onPriceRangeChange?: (value: [number | '', number | '']) => void;
|
|
383
|
+
currency?: string;
|
|
384
|
+
value?: [number | '', number | ''];
|
|
364
385
|
}
|
|
365
386
|
|
|
366
387
|
export declare const QuestionMarkIcon: FC<{
|
|
367
388
|
className?: string;
|
|
368
389
|
}>;
|
|
369
390
|
|
|
391
|
+
export declare const RangeSlider: default_2.FC<RangeSliderProps>;
|
|
392
|
+
|
|
393
|
+
export declare interface RangeSliderProps {
|
|
394
|
+
value?: [number, number];
|
|
395
|
+
onChange?: (value: [number, number]) => void;
|
|
396
|
+
step?: number;
|
|
397
|
+
className?: string;
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
min?: number;
|
|
400
|
+
max?: number;
|
|
401
|
+
tooltip?: boolean;
|
|
402
|
+
}
|
|
403
|
+
|
|
370
404
|
export declare const RoundedProgressBar: default_2.ForwardRefExoticComponent<RoundedProgressBarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
371
405
|
|
|
372
406
|
export declare interface RoundedProgressBarProps {
|