widenarrow-ui 1.1.60 → 1.1.62

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.
Files changed (40) hide show
  1. package/lib/components/Button/Button.types.d.ts +1 -1
  2. package/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
  3. package/lib/components/DropDown/DropDown.stories.d.ts +1 -0
  4. package/lib/components/IconButton/IconButton.types.d.ts +1 -1
  5. package/lib/components/InlineButton/InlineButton.types.d.ts +1 -1
  6. package/lib/components/Input/Input.types.d.ts +1 -1
  7. package/lib/components/RadioButton/RadioButton.types.d.ts +1 -1
  8. package/lib/components/SelectInput/SelectInput.types.d.ts +1 -1
  9. package/lib/components/SwitchButton/SwitchButton.types.d.ts +1 -1
  10. package/lib/components/TextAreaInput/TextAreaInput.types.d.ts +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/index.d.ts +9 -9
  13. package/lib/index.esm.css +1 -1
  14. package/lib/index.esm.js +25 -20
  15. package/lib/index.esm.js.map +1 -1
  16. package/lib/index.js +25 -20
  17. package/lib/index.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/components/Button/Button.tsx +2 -2
  20. package/src/components/Button/Button.types.ts +1 -1
  21. package/src/components/Checkbox/Checkbox.tsx +4 -2
  22. package/src/components/Checkbox/Checkbox.types.ts +1 -1
  23. package/src/components/DropDown/DropDown.stories.tsx +13 -0
  24. package/src/components/DropDownItem/DropDownItem.module.scss +3 -2
  25. package/src/components/IconButton/IconButton.tsx +2 -2
  26. package/src/components/IconButton/IconButton.types.ts +1 -1
  27. package/src/components/InlineButton/InlineButton.tsx +2 -2
  28. package/src/components/InlineButton/InlineButton.types.ts +1 -1
  29. package/src/components/Input/Input.tsx +2 -2
  30. package/src/components/Input/Input.types.ts +1 -1
  31. package/src/components/RadioButton/RadioButton.tsx +2 -2
  32. package/src/components/RadioButton/RadioButton.types.ts +1 -1
  33. package/src/components/SelectInput/SelectInput.tsx +2 -2
  34. package/src/components/SelectInput/SelectInput.types.ts +1 -1
  35. package/src/components/SwitchButton/SwitchButton.tsx +2 -2
  36. package/src/components/SwitchButton/SwitchButton.types.ts +1 -1
  37. package/src/components/TextAreaInput/TextAreaInput.tsx +2 -2
  38. package/src/components/TextAreaInput/TextAreaInput.types.ts +1 -1
  39. package/src/styles/mixins.scss +4 -0
  40. package/src/utils.ts +2 -1
@@ -16,7 +16,7 @@ export interface ButtonProps {
16
16
  toolTip?: string;
17
17
  style?: CSSProperties;
18
18
  withEllipsis?: boolean;
19
- ref?: RefObject<HTMLButtonElement>;
19
+ buttonRef?: RefObject<HTMLButtonElement>;
20
20
  rotateIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
21
21
  id?: string | number;
22
22
  loading?: boolean;
@@ -10,7 +10,7 @@ export interface CheckboxProps {
10
10
  onChangeFake?: (val: string, event: MouseEvent<HTMLSpanElement>) => void;
11
11
  className?: string;
12
12
  ariaLabel?: string;
13
- ref?: RefObject<HTMLInputElement>;
13
+ inputRef?: RefObject<HTMLInputElement>;
14
14
  helperText?: string;
15
15
  checked?: boolean;
16
16
  blocked?: boolean;
@@ -5,6 +5,7 @@ export default meta;
5
5
  type Story = StoryObj<typeof DropDown>;
6
6
  export declare const Default: Story;
7
7
  export declare const WithActiveSelect: Story;
8
+ export declare const WithCustomButtonComponent: Story;
8
9
  export declare const WithTriggerComponent: Story;
9
10
  export declare const AsInlineButton: Story;
10
11
  export declare const Complex: Story;
@@ -16,7 +16,7 @@ export interface IconButtonProps extends IconStyleInterface {
16
16
  iconColor?: Partial<ColorTypes>;
17
17
  href?: string;
18
18
  disabled?: boolean;
19
- ref?: RefObject<HTMLButtonElement>;
19
+ buttonRef?: RefObject<HTMLButtonElement>;
20
20
  autoFocus?: boolean;
21
21
  tabIndex?: number;
22
22
  toolTip?: string;
@@ -23,7 +23,7 @@ export interface InlineButtonProps {
23
23
  withEllipsis?: boolean;
24
24
  disabled?: boolean | undefined;
25
25
  style?: CSSProperties;
26
- ref?: RefObject<HTMLButtonElement>;
26
+ buttonRef?: RefObject<HTMLButtonElement>;
27
27
  tabIndex?: number;
28
28
  autoFocus?: boolean;
29
29
  toolTip?: string;
@@ -26,7 +26,7 @@ export interface InputProps {
26
26
  withLabel?: boolean;
27
27
  marginBottom?: boolean;
28
28
  placeholder?: string;
29
- ref?: RefObject<HTMLInputElement>;
29
+ inputRef?: RefObject<HTMLInputElement>;
30
30
  size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
31
31
  helperText?: string;
32
32
  characterLimit?: number;
@@ -13,7 +13,7 @@ export interface RadioButtonProps {
13
13
  autoFocus?: boolean;
14
14
  checked: boolean;
15
15
  toolTip?: string;
16
- ref?: RefObject<HTMLInputElement>;
16
+ inputRef?: RefObject<HTMLInputElement>;
17
17
  onChange: (val: string | number, event: ChangeEvent<HTMLInputElement> | KeyboardEvent<HTMLInputElement>) => void;
18
18
  onFocusCallback?: (event: FocusEvent<HTMLInputElement>) => void;
19
19
  onBlurCallback?: (event: FocusEvent<HTMLInputElement>) => void;
@@ -6,7 +6,7 @@ export interface OptionItem {
6
6
  disabled?: boolean;
7
7
  }
8
8
  export interface SelectInputProps {
9
- ref?: RefObject<HTMLSelectElement>;
9
+ inputRef?: RefObject<HTMLSelectElement>;
10
10
  id?: string | number;
11
11
  className?: string;
12
12
  inputClassName?: string;
@@ -12,6 +12,6 @@ export interface SwitchButtonProps {
12
12
  alignCenter?: boolean;
13
13
  className?: string;
14
14
  marginBottom?: boolean;
15
- ref?: RefObject<HTMLInputElement>;
15
+ buttonRef?: RefObject<HTMLInputElement>;
16
16
  onClickCallback: () => void;
17
17
  }
@@ -19,7 +19,7 @@ export interface TextAreaInputProps {
19
19
  disabled?: boolean;
20
20
  marginBottom?: boolean;
21
21
  autoFocus?: boolean;
22
- ref?: RefObject<HTMLTextAreaElement>;
22
+ inputRef?: RefObject<HTMLTextAreaElement>;
23
23
  style?: CSSProperties;
24
24
  readonly?: boolean;
25
25
  }