@ambuj.bhaskar/react-component-library 0.9.0 → 0.9.1

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
@@ -153,18 +153,22 @@ declare type IconProps = SVGprops & {
153
153
  declare const IconRegistry: Record<string, any>;
154
154
 
155
155
  /**
156
- * Input component props.
156
+ * Input component.
157
157
  *
158
- * @prop {string} [className] - Additional class names for styling.
159
- * @prop {string | number} [value] - The value of the input.
160
- * @prop {"s" | "m" | "l"} [height] - The height of the input.
161
- * @prop {CSSstring} [width] - The width of the input.
162
- * @prop {"flex-start" | "center" | "flex-end"} [placement] - The placement of the content inside the input.
158
+ * @prop {string} [className=""] - Additional class names for styling.
159
+ * @prop {string | number | undefined} [value] - The current value of the input.
160
+ * @prop {"s" | "m" | "l"} [height="m"] - Height of the input field.
161
+ * @prop {CSSstring} [width="24rem"] - Width of the component.
162
+ * @prop {JustifyContent} [placement="flex-start"] - Placement of the content inside the input.
163
163
  * @prop {IconName} [icon] - The icon to display inside the input.
164
- * @prop {"before" | "after"} [iconPosition] - The position of the icon relative to the input.
165
- * @prop {Color} [iconColor] - The color of the icon.
164
+ * @prop {string} [backgroundColor="#2929291a"] - Background color of the input.
165
+ * @prop {string} [textColor="#292929"] - Color of the text inside the input.
166
+ * @prop {string} [borderColor="#292929"] - Border color of the input.
167
+ * @prop {"before" | "after"} [iconPosition="after"] - Position of the icon relative to the text.
168
+ * @prop {string} [iconColor="#292929"] - Color of the icon inside the input.
166
169
  * @prop {boolean} [disabled=false] - If true, the input is disabled.
167
- * @prop {(value: string) => void} [onChange] - The callback function when the input changes.
170
+ * @prop {(val: string) => void} [onChange=() => {}] - Callback when the input value changes.
171
+ * @prop {React.ComponentProps<HTMLInputElement>} ...props - Additional props to pass to the input element.
168
172
  */
169
173
  export declare const Input: React.FC<InputProps>;
170
174
 
@@ -178,6 +182,9 @@ declare type InputProps = HTMLInputProps & {
178
182
  iconPosition?: "before" | "after";
179
183
  iconColor?: Color;
180
184
  disabled?: boolean;
185
+ backgroundColor?: Color;
186
+ textColor?: Color;
187
+ borderColor?: Color;
181
188
  };
182
189
 
183
190
  declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-end" | "left" | "right" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";