design-system-silkhaus 1.0.0-beta.pnpm → 1.1.0-beta.slider-input.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.cjs +153 -45
- package/dist/index.d.ts +50 -1
- package/dist/index.js +14849 -10154
- package/dist/style.css +1 -1
- package/package.json +6 -4
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,10 +363,44 @@ declare interface Option_2 {
|
|
|
348
363
|
id?: number;
|
|
349
364
|
}
|
|
350
365
|
|
|
366
|
+
export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
|
|
367
|
+
|
|
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 | ''];
|
|
385
|
+
}
|
|
386
|
+
|
|
351
387
|
export declare const QuestionMarkIcon: FC<{
|
|
352
388
|
className?: string;
|
|
353
389
|
}>;
|
|
354
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
|
+
|
|
355
404
|
export declare const RoundedProgressBar: default_2.ForwardRefExoticComponent<RoundedProgressBarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
356
405
|
|
|
357
406
|
export declare interface RoundedProgressBarProps {
|