@sorocraft/ui 1.2.136 → 1.2.137

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.
@@ -1,3 +1,3 @@
1
1
  import { InputProps } from "./Input.types";
2
- declare const Input: ({ type, label, placeholder, value, required, addonIcon, preIcon, addonText, labelAddon, errorMessage, options, fullWidth, avatarSize, source, autoCompleteContent, autoCompleteReverse, noMargin, isDisabled, isLoading, isMultiUpload, autoFocus, theme, size, isDarkMode, dndShape, name, prefix, rows, className, checked, ref, onBlur, onFocus, onChange, addonAction, onEnter, onEsc, onFileSelect, onFilesSelect, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Input: ({ type, label, placeholder, value, required, addonIcon, preIcon, addonText, labelAddon, errorMessage, options, fullWidth, avatarSize, source, autoCompleteContent, autoCompleteReverse, noMargin, isDisabled, isLoading, isMultiUpload, autoFocus, theme, size, isDarkMode, dndShape, name, prefix, rows, className, checked, min, max, ref, onBlur, onFocus, onChange, addonAction, onEnter, onEsc, onFileSelect, onFilesSelect, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Input;
@@ -20,7 +20,8 @@ export declare enum InputType {
20
20
  RADIO = "radio",
21
21
  OTP = "otp",
22
22
  NUMBER_WITH_STEPS = "number-with-steps",
23
- AUTOCOMPLETE = "autocomplete"
23
+ AUTOCOMPLETE = "autocomplete",
24
+ SLIDER = "slider"
24
25
  }
25
26
  export type onChangeEventType = ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
26
27
  export type onFocusEventType = FocusEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
@@ -61,6 +62,8 @@ export interface InputProps {
61
62
  className?: string;
62
63
  checked?: boolean;
63
64
  step?: number;
65
+ min?: number;
66
+ max?: number;
64
67
  onChange?: (e: onChangeEventType) => void;
65
68
  onBlur?: (e: onFocusEventType) => void;
66
69
  onFocus?: (e: onFocusEventType) => void;
@@ -0,0 +1,4 @@
1
+ import { InputProps } from "../Input.types";
2
+ type SliderProps = Pick<InputProps, "value" | "min" | "max" | "step" | "name" | "isDisabled" | "onChange" | "onBlur" | "onFocus">;
3
+ declare const Slider: ({ value, min, max, step, name, isDisabled, onChange, onBlur, onFocus, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Slider;
@@ -0,0 +1 @@
1
+ export { default } from "./Slider";