design-system-silkhaus 0.0.88-beta.slider-input.9 → 1.0.0-beta.pnpm
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/README.md +14 -9
- package/dist/index.cjs +45 -153
- package/dist/index.d.ts +1 -50
- package/dist/index.js +10156 -14828
- package/dist/style.css +1 -1
- package/package.json +5 -7
package/dist/index.d.ts
CHANGED
|
@@ -256,26 +256,11 @@ 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;
|
|
279
264
|
}
|
|
280
265
|
|
|
281
266
|
export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -363,44 +348,10 @@ declare interface Option_2 {
|
|
|
363
348
|
id?: number;
|
|
364
349
|
}
|
|
365
350
|
|
|
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
|
-
|
|
387
351
|
export declare const QuestionMarkIcon: FC<{
|
|
388
352
|
className?: string;
|
|
389
353
|
}>;
|
|
390
354
|
|
|
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
|
-
|
|
404
355
|
export declare const RoundedProgressBar: default_2.ForwardRefExoticComponent<RoundedProgressBarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
405
356
|
|
|
406
357
|
export declare interface RoundedProgressBarProps {
|