design-system-silkhaus 0.0.88-beta.slider-input.5 → 0.0.88-beta.slider-input.7

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.d.ts CHANGED
@@ -275,7 +275,7 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
275
275
  * When `isNumbersOnly` is `true`, entered value might be modified depending on min and max.
276
276
  * While `onChange` will you give what the user enters, `onNumberUpdate` will give the final modified value
277
277
  */
278
- onNumberUpdate?: (val: string | number | undefined) => void;
278
+ onNumberUpdate?: (val: number | '') => void;
279
279
  }
280
280
 
281
281
  export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -370,9 +370,18 @@ export declare interface PriceRangeSliderProps {
370
370
  min?: number;
371
371
  max: number;
372
372
  step?: number;
373
- onChange?: (value: [number, number]) => void;
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;
374
383
  currency?: string;
375
- value?: [number, number];
384
+ value?: [number | '', number | ''];
376
385
  }
377
386
 
378
387
  export declare const QuestionMarkIcon: FC<{