@ambuj.bhaskar/react-component-library 0.7.0 → 0.7.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.d.ts CHANGED
@@ -8,24 +8,24 @@ import { ReactNode } from 'react';
8
8
  * The Button component.
9
9
  *
10
10
  * @param {ButtonProps} props - The props object.
11
- * @prop {string} [variant=primary] - The variant of the button.
11
+ * @prop {string} [variant=primary] - The variant of the button. The default is "primary".
12
12
  * @prop {string} [background=rgb(255, 204, 0)] - The background color of the button.
13
- * @prop {string} [border=#292929] - The border color of the button.
14
- * @prop {string} [container=hugging] - The container type of the button.
13
+ * @prop {string} [border] - The border color of the button. If not provided, the border color is the same as the background color.
14
+ * @prop {string} [container=hugging] - The container type of the button. The default is "hugging".
15
15
  * @prop {string} [width=13.5rem] - The width of the button.
16
- * @prop {string} [size=m] - The size of the button.
16
+ * @prop {string} [size=m] - The size of the button. The default is "m".
17
17
  * @prop {string} [gap=0.25rem] - The gap between elements inside the button.
18
- * @prop {string} [placement=center] - The placement of the content inside the button.
18
+ * @prop {string} [placement=center] - The placement of the content inside the button. The default is "center".
19
19
  * @prop {boolean} [disabled=false] - If true, the button is disabled.
20
20
  * @prop {boolean} [loading=false] - If true, the button shows a loading state.
21
21
  * @prop {string} [text=null] - The text to display inside the button.
22
22
  * @prop {string} [textSize] - The size of the text inside the button.
23
- * @prop {string} [textColor=#292929] - The color of the text inside the button.
23
+ * @prop {string} [textColor] - The color of the text inside the button. If not provided, the color is the same as the variant.
24
24
  * @prop {object} [textColorStates=null] - Overrides the behaviour of color on default, hover, active states, which is intially set by the variant.
25
25
  * @prop {IconName} [icon=null] - The icon to display inside the button.
26
26
  * @prop {string} [iconSize] - The size of the icon inside the button.
27
- * @prop {string} [iconColor=#292929] - The color of the icon inside the button.
28
- * @prop {string} [iconPosition=before] - The position of the icon relative to the text.
27
+ * @prop {string} [iconColor] - The color of the icon inside the button. If not provided, the color is the same as the variant.
28
+ * @prop {string} [iconPosition=before] - The position of the icon relative to the text. The default is "before".
29
29
  * @prop {object} [iconColorStates=null] - Overrides the behaviour of color on default, hover, active states, which is intially set by the variant.
30
30
  * @prop {string} [className=null] - Additional class names for styling.
31
31
  */
@@ -187,6 +187,12 @@ declare type MultiselectProps = {
187
187
  width?: CSSstring;
188
188
  height?: string;
189
189
  className?: string;
190
+ triggerBackgroundColor?: Color;
191
+ triggerHighlightColor?: Color;
192
+ menuBackgroundColor?: Color;
193
+ menuActiveColor?: Color;
194
+ menuHoverColor?: Color;
195
+ borderColor?: Color;
190
196
  disabled?: boolean;
191
197
  id?: string;
192
198
  suffixIcon?: ReactNode | boolean;
@@ -221,6 +227,11 @@ declare type SelectProps = {
221
227
  placement?: "start" | "center" | "end";
222
228
  value?: string;
223
229
  className?: string;
230
+ triggerBackgroundColor?: Color;
231
+ menuBackgroundColor?: Color;
232
+ menuActiveColor?: Color;
233
+ menuHoverColor?: Color;
234
+ borderColor?: Color;
224
235
  disabled?: boolean;
225
236
  width?: CSSstring;
226
237
  height?: string;