widenarrow-ui 1.1.57 → 1.1.59

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 (33) hide show
  1. package/lib/components/Button/Button.types.d.ts +2 -1
  2. package/lib/components/Checkbox/Checkbox.types.d.ts +3 -1
  3. package/lib/components/IconButton/IconButton.types.d.ts +3 -1
  4. package/lib/components/InlineButton/InlineButton.types.d.ts +3 -1
  5. package/lib/components/Input/Input.types.d.ts +1 -1
  6. package/lib/components/RadioButton/RadioButton.types.d.ts +3 -1
  7. package/lib/components/SelectInput/SelectInput.types.d.ts +2 -1
  8. package/lib/components/SwitchButton/SwitchButton.types.d.ts +3 -0
  9. package/lib/components/TextAreaInput/TextAreaInput.types.d.ts +1 -1
  10. package/lib/index.d.ts +16 -4
  11. package/lib/index.esm.js +29 -16
  12. package/lib/index.esm.js.map +1 -1
  13. package/lib/index.js +29 -16
  14. package/lib/index.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/components/Button/Button.tsx +2 -0
  17. package/src/components/Button/Button.types.ts +2 -1
  18. package/src/components/Checkbox/Checkbox.tsx +4 -0
  19. package/src/components/Checkbox/Checkbox.types.ts +3 -1
  20. package/src/components/IconButton/IconButton.tsx +4 -0
  21. package/src/components/IconButton/IconButton.types.ts +3 -1
  22. package/src/components/InlineButton/InlineButton.tsx +4 -0
  23. package/src/components/InlineButton/InlineButton.types.ts +3 -1
  24. package/src/components/Input/Input.tsx +3 -3
  25. package/src/components/Input/Input.types.ts +1 -1
  26. package/src/components/RadioButton/RadioButton.tsx +6 -2
  27. package/src/components/RadioButton/RadioButton.types.ts +3 -1
  28. package/src/components/SelectInput/SelectInput.tsx +4 -2
  29. package/src/components/SelectInput/SelectInput.types.ts +2 -1
  30. package/src/components/SwitchButton/SwitchButton.tsx +4 -0
  31. package/src/components/SwitchButton/SwitchButton.types.ts +4 -0
  32. package/src/components/TextAreaInput/TextAreaInput.tsx +2 -2
  33. package/src/components/TextAreaInput/TextAreaInput.types.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { CSSProperties, MouseEvent, ReactNode } from 'react';
1
+ import { CSSProperties, MouseEvent, ReactNode, RefObject } from 'react';
2
2
  import { HierarchyTypes, IconTypes, SizeTypes } from '../../constants';
3
3
  export interface ButtonProps {
4
4
  text?: string;
@@ -16,6 +16,7 @@ export interface ButtonProps {
16
16
  toolTip?: string;
17
17
  style?: CSSProperties;
18
18
  withEllipsis?: boolean;
19
+ ref?: RefObject<HTMLButtonElement>;
19
20
  rotateIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
20
21
  id?: string | number;
21
22
  loading?: boolean;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, KeyboardEvent, MouseEvent, FocusEvent } from 'react';
1
+ import { ChangeEvent, KeyboardEvent, MouseEvent, FocusEvent, RefObject } from 'react';
2
2
  export interface CheckboxProps {
3
3
  label: string;
4
4
  id?: string | number;
@@ -10,9 +10,11 @@ export interface CheckboxProps {
10
10
  onChangeFake?: (val: string, event: MouseEvent<HTMLDivElement>) => void;
11
11
  className?: string;
12
12
  ariaLabel?: string;
13
+ ref?: RefObject<HTMLInputElement>;
13
14
  helperText?: string;
14
15
  checked?: boolean;
15
16
  blocked?: boolean;
17
+ autoFocus?: boolean;
16
18
  withEllipsis?: boolean;
17
19
  withLabel?: boolean;
18
20
  indeterminate?: boolean;
@@ -1,4 +1,4 @@
1
- import { MouseEvent, CSSProperties } from 'react';
1
+ import { MouseEvent, CSSProperties, RefObject } from 'react';
2
2
  import { IconStyleInterface } from '../../types/styling.types';
3
3
  import { ColorTypes, HierarchyTypes, SizeTypes } from '../../constants';
4
4
  export interface IconButtonProps extends IconStyleInterface {
@@ -16,6 +16,8 @@ export interface IconButtonProps extends IconStyleInterface {
16
16
  iconColor?: Partial<ColorTypes>;
17
17
  href?: string;
18
18
  disabled?: boolean;
19
+ ref?: RefObject<HTMLButtonElement>;
20
+ autoFocus?: boolean;
19
21
  tabIndex?: number;
20
22
  toolTip?: string;
21
23
  ariaLabel?: string;
@@ -1,4 +1,4 @@
1
- import { MouseEvent, ReactNode, CSSProperties } from 'react';
1
+ import { MouseEvent, ReactNode, CSSProperties, RefObject } from 'react';
2
2
  import { HierarchyTypes, IconTypes, SizeTypes } from '../../constants';
3
3
  export interface InlineButtonProps {
4
4
  text: string;
@@ -23,6 +23,8 @@ export interface InlineButtonProps {
23
23
  withEllipsis?: boolean;
24
24
  disabled?: boolean | undefined;
25
25
  style?: CSSProperties;
26
+ ref?: RefObject<HTMLButtonElement>;
26
27
  tabIndex?: number;
28
+ autoFocus?: boolean;
27
29
  toolTip?: string;
28
30
  }
@@ -26,7 +26,7 @@ export interface InputProps {
26
26
  withLabel?: boolean;
27
27
  marginBottom?: boolean;
28
28
  placeholder?: string;
29
- inputRef?: RefObject<HTMLInputElement>;
29
+ ref?: RefObject<HTMLInputElement>;
30
30
  size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
31
31
  helperText?: string;
32
32
  characterLimit?: number;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, FocusEvent, KeyboardEvent } from 'react';
1
+ import { ChangeEvent, FocusEvent, KeyboardEvent, RefObject } from 'react';
2
2
  export interface RadioButtonProps {
3
3
  className?: string;
4
4
  name?: string;
@@ -10,8 +10,10 @@ export interface RadioButtonProps {
10
10
  disabled?: boolean;
11
11
  helperText?: string;
12
12
  withEllipsis?: boolean;
13
+ autoFocus?: boolean;
13
14
  checked: boolean;
14
15
  toolTip?: string;
16
+ ref?: RefObject<HTMLInputElement>;
15
17
  onChange: (val: string | number, event: ChangeEvent<HTMLInputElement> | KeyboardEvent<HTMLInputElement>) => void;
16
18
  onFocusCallback?: (event: FocusEvent<HTMLInputElement>) => void;
17
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
- inputRef?: RefObject<HTMLSelectElement>;
9
+ ref?: RefObject<HTMLSelectElement>;
10
10
  id?: string | number;
11
11
  className?: string;
12
12
  inputClassName?: string;
@@ -21,6 +21,7 @@ export interface SelectInputProps {
21
21
  helperText?: string;
22
22
  text?: string;
23
23
  marginBottom?: boolean;
24
+ autoFocus?: boolean;
24
25
  loading?: boolean;
25
26
  ariaLabel?: string;
26
27
  label?: string;
@@ -1,3 +1,4 @@
1
+ import { RefObject } from 'react';
1
2
  export interface SwitchButtonProps {
2
3
  checked: boolean;
3
4
  id?: string | number;
@@ -7,8 +8,10 @@ export interface SwitchButtonProps {
7
8
  withInlineLabel?: boolean;
8
9
  ariaLabel?: string;
9
10
  disabled?: boolean;
11
+ autoFocus?: boolean;
10
12
  alignCenter?: boolean;
11
13
  className?: string;
12
14
  marginBottom?: boolean;
15
+ ref?: RefObject<HTMLInputElement>;
13
16
  onClickCallback: () => void;
14
17
  }
@@ -19,7 +19,7 @@ export interface TextAreaInputProps {
19
19
  disabled?: boolean;
20
20
  marginBottom?: boolean;
21
21
  autoFocus?: boolean;
22
- inputRef?: RefObject<HTMLTextAreaElement>;
22
+ ref?: RefObject<HTMLTextAreaElement>;
23
23
  style?: CSSProperties;
24
24
  readonly?: boolean;
25
25
  }
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { CSSProperties, MouseEvent, ReactNode, FC, ChangeEvent, KeyboardEvent, FocusEvent, RefObject } from 'react';
2
+ import react__default, { CSSProperties, MouseEvent, RefObject, ReactNode, FC, ChangeEvent, KeyboardEvent, FocusEvent } from 'react';
3
3
  import { Placement, PositioningStrategy } from '@popperjs/core';
4
4
 
5
5
  declare enum IconTypes {
@@ -421,6 +421,7 @@ interface ButtonProps {
421
421
  toolTip?: string;
422
422
  style?: CSSProperties;
423
423
  withEllipsis?: boolean;
424
+ ref?: RefObject<HTMLButtonElement>;
424
425
  rotateIconByDegree?: 0 | 45 | 90 | 135 | 180 | 225 | 270 | 315;
425
426
  id?: string | number;
426
427
  loading?: boolean;
@@ -443,9 +444,11 @@ interface CheckboxProps {
443
444
  onChangeFake?: (val: string, event: MouseEvent<HTMLDivElement>) => void;
444
445
  className?: string;
445
446
  ariaLabel?: string;
447
+ ref?: RefObject<HTMLInputElement>;
446
448
  helperText?: string;
447
449
  checked?: boolean;
448
450
  blocked?: boolean;
451
+ autoFocus?: boolean;
449
452
  withEllipsis?: boolean;
450
453
  withLabel?: boolean;
451
454
  indeterminate?: boolean;
@@ -489,8 +492,10 @@ interface RadioButtonProps {
489
492
  disabled?: boolean;
490
493
  helperText?: string;
491
494
  withEllipsis?: boolean;
495
+ autoFocus?: boolean;
492
496
  checked: boolean;
493
497
  toolTip?: string;
498
+ ref?: RefObject<HTMLInputElement>;
494
499
  onChange: (val: string | number, event: ChangeEvent<HTMLInputElement> | KeyboardEvent<HTMLInputElement>) => void;
495
500
  onFocusCallback?: (event: FocusEvent<HTMLInputElement>) => void;
496
501
  onBlurCallback?: (event: FocusEvent<HTMLInputElement>) => void;
@@ -696,6 +701,8 @@ interface IconButtonProps extends IconStyleInterface {
696
701
  iconColor?: Partial<ColorTypes>;
697
702
  href?: string;
698
703
  disabled?: boolean;
704
+ ref?: RefObject<HTMLButtonElement>;
705
+ autoFocus?: boolean;
699
706
  tabIndex?: number;
700
707
  toolTip?: string;
701
708
  ariaLabel?: string;
@@ -729,7 +736,7 @@ interface InputProps {
729
736
  withLabel?: boolean;
730
737
  marginBottom?: boolean;
731
738
  placeholder?: string;
732
- inputRef?: RefObject<HTMLInputElement>;
739
+ ref?: RefObject<HTMLInputElement>;
733
740
  size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
734
741
  helperText?: string;
735
742
  characterLimit?: number;
@@ -788,7 +795,9 @@ interface InlineButtonProps {
788
795
  withEllipsis?: boolean;
789
796
  disabled?: boolean | undefined;
790
797
  style?: CSSProperties;
798
+ ref?: RefObject<HTMLButtonElement>;
791
799
  tabIndex?: number;
800
+ autoFocus?: boolean;
792
801
  toolTip?: string;
793
802
  }
794
803
 
@@ -814,7 +823,7 @@ interface TextAreaInputProps {
814
823
  disabled?: boolean;
815
824
  marginBottom?: boolean;
816
825
  autoFocus?: boolean;
817
- inputRef?: RefObject<HTMLTextAreaElement>;
826
+ ref?: RefObject<HTMLTextAreaElement>;
818
827
  style?: CSSProperties;
819
828
  readonly?: boolean;
820
829
  }
@@ -974,9 +983,11 @@ interface SwitchButtonProps {
974
983
  withInlineLabel?: boolean;
975
984
  ariaLabel?: string;
976
985
  disabled?: boolean;
986
+ autoFocus?: boolean;
977
987
  alignCenter?: boolean;
978
988
  className?: string;
979
989
  marginBottom?: boolean;
990
+ ref?: RefObject<HTMLInputElement>;
980
991
  onClickCallback: () => void;
981
992
  }
982
993
 
@@ -988,7 +999,7 @@ interface OptionItem {
988
999
  disabled?: boolean;
989
1000
  }
990
1001
  interface SelectInputProps {
991
- inputRef?: RefObject<HTMLSelectElement>;
1002
+ ref?: RefObject<HTMLSelectElement>;
992
1003
  id?: string | number;
993
1004
  className?: string;
994
1005
  inputClassName?: string;
@@ -1003,6 +1014,7 @@ interface SelectInputProps {
1003
1014
  helperText?: string;
1004
1015
  text?: string;
1005
1016
  marginBottom?: boolean;
1017
+ autoFocus?: boolean;
1006
1018
  loading?: boolean;
1007
1019
  ariaLabel?: string;
1008
1020
  label?: string;
package/lib/index.esm.js CHANGED
@@ -2307,7 +2307,7 @@ var styles$n = {"body":"Button-module_AK7AMO","container":"Button-module_0j8mdA"
2307
2307
  var s$n = classNames.bind(styles$n);
2308
2308
  var Button = memo(function (_a) {
2309
2309
  var _b, _c;
2310
- var className = _a.className, id = _a.id, style = _a.style, _d = _a.type, type = _d === void 0 ? HierarchyTypes.PRIMARY : _d, _e = _a.size, size = _e === void 0 ? SizeTypes.MEDIUM : _e, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, text = _a.text, toolTip = _a.toolTip, icon = _a.icon, iconSize = _a.iconSize, withIconRight = _a.withIconRight, rotateIconByDegree = _a.rotateIconByDegree, withEllipsis = _a.withEllipsis, onClickCallback = _a.onClickCallback, loading = _a.loading, disabled = _a.disabled, children = _a.children, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, tabIndex = _a.tabIndex;
2310
+ var className = _a.className, id = _a.id, style = _a.style, _d = _a.type, type = _d === void 0 ? HierarchyTypes.PRIMARY : _d, _e = _a.size, size = _e === void 0 ? SizeTypes.MEDIUM : _e, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, text = _a.text, toolTip = _a.toolTip, icon = _a.icon, ref = _a.ref, iconSize = _a.iconSize, withIconRight = _a.withIconRight, rotateIconByDegree = _a.rotateIconByDegree, withEllipsis = _a.withEllipsis, onClickCallback = _a.onClickCallback, loading = _a.loading, disabled = _a.disabled, children = _a.children, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, tabIndex = _a.tabIndex;
2311
2311
  var mergedClassNames = s$n('container', (_b = {},
2312
2312
  _b["container_".concat(type)] = !!type,
2313
2313
  _b["container_sizeSm_".concat(size)] = !!size,
@@ -2338,6 +2338,7 @@ var Button = memo(function (_a) {
2338
2338
  var baseAttributes = (_c = {
2339
2339
  className: mergedClassNames,
2340
2340
  id: id,
2341
+ ref: ref,
2341
2342
  disabled: loading || disabled,
2342
2343
  onClick: !!onClickCallback && !loading ? onClickCallback : undefined
2343
2344
  },
@@ -2358,7 +2359,7 @@ var styles$m = {"body":"Checkbox-module_et5-hi","container":"Checkbox-module_pUY
2358
2359
  var s$m = classNames.bind(styles$m);
2359
2360
  var Checkbox = function (_a) {
2360
2361
  var _b, _c;
2361
- var value = _a.value, className = _a.className, label = _a.label, id = _a.id, name = _a.name, _d = _a.withLabel, withLabel = _d === void 0 ? true : _d, helperText = _a.helperText, onChange = _a.onChange, onFocusCallback = _a.onFocusCallback, onBlurCallback = _a.onBlurCallback, onChangeFake = _a.onChangeFake, withEllipsis = _a.withEllipsis, checked = _a.checked, blocked = _a.blocked, indeterminate = _a.indeterminate, disabled = _a.disabled, isFake = _a.isFake, ariaLabel = _a.ariaLabel;
2362
+ var value = _a.value, className = _a.className, label = _a.label, id = _a.id, name = _a.name, ref = _a.ref, _d = _a.withLabel, withLabel = _d === void 0 ? true : _d, helperText = _a.helperText, onChange = _a.onChange, onFocusCallback = _a.onFocusCallback, onBlurCallback = _a.onBlurCallback, onChangeFake = _a.onChangeFake, withEllipsis = _a.withEllipsis, checked = _a.checked, blocked = _a.blocked, indeterminate = _a.indeterminate, disabled = _a.disabled, autoFocus = _a.autoFocus, isFake = _a.isFake, ariaLabel = _a.ariaLabel;
2362
2363
  var htmlId = useMemo(function () { return id || shortUid(); }, []);
2363
2364
  var onClickRealInput = function (event) {
2364
2365
  if (!disabled && onChange) {
@@ -2379,6 +2380,8 @@ var Checkbox = function (_a) {
2379
2380
  disabled: disabled,
2380
2381
  checked: checked,
2381
2382
  name: name,
2383
+ ref: ref,
2384
+ autoFocus: autoFocus,
2382
2385
  onChange: onClickRealInput,
2383
2386
  onFocus: onFocusCallback ? onFocusCallback : undefined,
2384
2387
  onBlur: onBlurCallback ? onBlurCallback : undefined
@@ -2499,7 +2502,7 @@ var styles$j = {"body":"RadioButton-module_sinlEa","container":"RadioButton-modu
2499
2502
  var s$j = classNames.bind(styles$j);
2500
2503
  var RadioButton = function (_a) {
2501
2504
  var _b;
2502
- var className = _a.className, label = _a.label, id = _a.id, name = _a.name, _c = _a.withLabel, withLabel = _c === void 0 ? true : _c, ariaLabel = _a.ariaLabel, onChange = _a.onChange, onFocusCallback = _a.onFocusCallback, onBlurCallback = _a.onBlurCallback, checked = _a.checked, value = _a.value, withEllipsis = _a.withEllipsis, disabled = _a.disabled, helperText = _a.helperText, toolTip = _a.toolTip;
2505
+ var className = _a.className, label = _a.label, id = _a.id, name = _a.name, _c = _a.withLabel, withLabel = _c === void 0 ? true : _c, ariaLabel = _a.ariaLabel, onChange = _a.onChange, onFocusCallback = _a.onFocusCallback, onBlurCallback = _a.onBlurCallback, checked = _a.checked, value = _a.value, autoFocus = _a.autoFocus, ref = _a.ref, withEllipsis = _a.withEllipsis, disabled = _a.disabled, helperText = _a.helperText, toolTip = _a.toolTip;
2503
2506
  var onClick = function (event) {
2504
2507
  if (disabled) {
2505
2508
  return;
@@ -2516,11 +2519,13 @@ var RadioButton = function (_a) {
2516
2519
  disabled: disabled,
2517
2520
  checked: checked,
2518
2521
  onChange: onClick,
2519
- onkeydown: function (event) {
2520
- if (event.key === 'Enter' && onChange) {
2522
+ onKeyDown: function (event) {
2523
+ if (event.key === 'Enter' && onChange && !disabled) {
2521
2524
  onChange(value || '', event);
2522
2525
  }
2523
2526
  },
2527
+ ref: ref,
2528
+ autoFocus: autoFocus,
2524
2529
  onFocus: onFocusCallback ? onFocusCallback : undefined,
2525
2530
  onBlur: onBlurCallback ? onBlurCallback : undefined,
2526
2531
  name: name
@@ -2831,7 +2836,7 @@ var styles$f = {"body":"InlineButton-module_aw3KLt","container":"InlineButton-mo
2831
2836
  var s$f = classNames.bind(styles$f);
2832
2837
  var InlineButton = memo(function (_a) {
2833
2838
  var _b, _c;
2834
- var className = _a.className, id = _a.id, loading = _a.loading, ariaLabel = _a.ariaLabel, text = _a.text, style = _a.style, _d = _a.size, size = _d === void 0 ? SizeTypes.MEDIUM : _d, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, _e = _a.type, type = _e === void 0 ? HierarchyTypes.PRIMARY : _e, textClassName = _a.textClassName, children = _a.children, icon = _a.icon, withIconRight = _a.withIconRight, iconSize = _a.iconSize, iconClassName = _a.iconClassName, tabIndex = _a.tabIndex, rotateIcon = _a.rotateIcon, rotateIconByDegree = _a.rotateIconByDegree, onClickCallback = _a.onClickCallback, withEllipsis = _a.withEllipsis, disabled = _a.disabled, toolTip = _a.toolTip;
2839
+ var className = _a.className, id = _a.id, loading = _a.loading, ariaLabel = _a.ariaLabel, text = _a.text, ref = _a.ref, style = _a.style, _d = _a.size, size = _d === void 0 ? SizeTypes.MEDIUM : _d, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, _e = _a.type, type = _e === void 0 ? HierarchyTypes.PRIMARY : _e, textClassName = _a.textClassName, children = _a.children, icon = _a.icon, withIconRight = _a.withIconRight, iconSize = _a.iconSize, autoFocus = _a.autoFocus, iconClassName = _a.iconClassName, tabIndex = _a.tabIndex, rotateIcon = _a.rotateIcon, rotateIconByDegree = _a.rotateIconByDegree, onClickCallback = _a.onClickCallback, withEllipsis = _a.withEllipsis, disabled = _a.disabled, toolTip = _a.toolTip;
2835
2840
  var mergedClassNames = s$f('container', (_b = {},
2836
2841
  _b["container_".concat(type)] = !!type,
2837
2842
  _b["container_sizeSm_".concat(size)] = !!size,
@@ -2859,6 +2864,8 @@ var InlineButton = memo(function (_a) {
2859
2864
  className: mergedClassNames,
2860
2865
  id: id,
2861
2866
  tabIndex: tabIndex,
2867
+ autoFocus: autoFocus,
2868
+ ref: ref,
2862
2869
  disabled: loading || disabled,
2863
2870
  onClick: !!onClickCallback && !loading ? onClickCallback : undefined
2864
2871
  },
@@ -3028,7 +3035,7 @@ var styles$a = {"body":"IconButton-module_DV09bK","container":"IconButton-module
3028
3035
  var s$a = classNames.bind(styles$a);
3029
3036
  var IconButton = memo(function (_a) {
3030
3037
  var _b, _c;
3031
- var className = _a.className, disabled = _a.disabled, style = _a.style, icon = _a.icon, id = _a.id, text = _a.text, _d = _a.size, size = _d === void 0 ? SizeTypes.MEDIUM : _d, _e = _a.type, type = _e === void 0 ? HierarchyTypes.SECONDARY : _e, href = _a.href, iconColor = _a.iconColor, iconSize = _a.iconSize, iconClassName = _a.iconClassName, onClickCallback = _a.onClickCallback, rotateIcon = _a.rotateIcon, tabIndex = _a.tabIndex, rotateIconByDegree = _a.rotateIconByDegree, toolTip = _a.toolTip, ariaLabel = _a.ariaLabel;
3038
+ var className = _a.className, disabled = _a.disabled, style = _a.style, icon = _a.icon, id = _a.id, text = _a.text, _d = _a.size, size = _d === void 0 ? SizeTypes.MEDIUM : _d, _e = _a.type, type = _e === void 0 ? HierarchyTypes.SECONDARY : _e, href = _a.href, iconColor = _a.iconColor, iconSize = _a.iconSize, iconClassName = _a.iconClassName, onClickCallback = _a.onClickCallback, rotateIcon = _a.rotateIcon, tabIndex = _a.tabIndex, autoFocus = _a.autoFocus, ref = _a.ref, rotateIconByDegree = _a.rotateIconByDegree, toolTip = _a.toolTip, ariaLabel = _a.ariaLabel;
3032
3039
  var mergedClassNames = s$a('container', (_b = {},
3033
3040
  _b["container_".concat(size)] = size,
3034
3041
  _b["container_".concat(type)] = type,
@@ -3058,6 +3065,8 @@ var IconButton = memo(function (_a) {
3058
3065
  _c.style = style,
3059
3066
  _c.href = href,
3060
3067
  _c.tabIndex = tabIndex,
3068
+ _c.autoFocus = autoFocus,
3069
+ _c.ref = ref,
3061
3070
  _c.target = href ? '_blank' : undefined,
3062
3071
  _c.rel = href ? 'noopener noreferrer' : undefined,
3063
3072
  _c);
@@ -3078,8 +3087,8 @@ var styles$9 = {"body":"Input-module_cNvink","container":"Input-module_itXJpS","
3078
3087
  var s$9 = classNames.bind(styles$9);
3079
3088
  var Input = function (_a) {
3080
3089
  var _b, _c, _d;
3081
- var _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.autoComplete, autoComplete = _f === void 0 ? 'off' : _f, _g = _a.size, size = _g === void 0 ? SizeTypes.MEDIUM : _g, _h = _a.type, type = _h === void 0 ? 'text' : _h, _j = _a.autoFocus, autoFocus = _j === void 0 ? false : _j, _k = _a.withLabel, withLabel = _k === void 0 ? true : _k, characterLimit = _a.characterLimit, id = _a.id, ariaLabel = _a.ariaLabel, name = _a.name, inputRef = _a.inputRef, className = _a.className, disabled = _a.disabled, readOnly = _a.readOnly, error = _a.error, iconClassName = _a.iconClassName, inputClassName = _a.inputClassName, iconLeft = _a.iconLeft, iconRight = _a.iconRight, label = _a.label, marginBottom = _a.marginBottom, onBlur = _a.onBlur, onChange = _a.onChange, onEnter = _a.onEnter, onKeyDown = _a.onKeyDown, onFocus = _a.onFocus, helperText = _a.helperText, required = _a.required, value = _a.value;
3082
- var _l = useState(false), isFocused = _l[0], setFocus = _l[1];
3090
+ var _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.autoComplete, autoComplete = _f === void 0 ? 'off' : _f, _g = _a.size, size = _g === void 0 ? SizeTypes.MEDIUM : _g, _h = _a.type, type = _h === void 0 ? 'text' : _h, autoFocus = _a.autoFocus, _j = _a.withLabel, withLabel = _j === void 0 ? true : _j, characterLimit = _a.characterLimit, id = _a.id, ariaLabel = _a.ariaLabel, name = _a.name, ref = _a.ref, className = _a.className, disabled = _a.disabled, readOnly = _a.readOnly, error = _a.error, iconClassName = _a.iconClassName, inputClassName = _a.inputClassName, iconLeft = _a.iconLeft, iconRight = _a.iconRight, label = _a.label, marginBottom = _a.marginBottom, onBlur = _a.onBlur, onChange = _a.onChange, onEnter = _a.onEnter, onKeyDown = _a.onKeyDown, onFocus = _a.onFocus, helperText = _a.helperText, required = _a.required, value = _a.value;
3091
+ var _k = useState(false), isFocused = _k[0], setFocus = _k[1];
3083
3092
  var htmlId = useMemo(function () { return id || shortUid(); }, []);
3084
3093
  var callbackRef = useCallback(function (inputElement) {
3085
3094
  if (inputElement && autoFocus) {
@@ -3125,7 +3134,7 @@ var Input = function (_a) {
3125
3134
  htmlFor: htmlId
3126
3135
  };
3127
3136
  var inputAttributes = (_b = {
3128
- ref: inputRef || callbackRef,
3137
+ ref: ref || callbackRef,
3129
3138
  type: type,
3130
3139
  id: htmlId,
3131
3140
  autoComplete: autoComplete,
@@ -3166,7 +3175,7 @@ var styles$8 = {"body":"TextAreaInput-module_hdGRr2","container":"TextAreaInput-
3166
3175
  var s$8 = classNames.bind(styles$8);
3167
3176
  var TextAreaInput = function (_a) {
3168
3177
  var _b, _c, _d;
3169
- var onChange = _a.onChange, rows = _a.rows, placeholder = _a.placeholder, value = _a.value, name = _a.name, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, inputClassName = _a.inputClassName, className = _a.className, disabled = _a.disabled, style = _a.style, label = _a.label, _e = _a.withLabel, withLabel = _e === void 0 ? true : _e, id = _a.id, marginBottom = _a.marginBottom, helperText = _a.helperText, inputRef = _a.inputRef, onEnter = _a.onEnter, onKeyDown = _a.onKeyDown, error = _a.error, readonly = _a.readonly;
3178
+ var onChange = _a.onChange, rows = _a.rows, placeholder = _a.placeholder, value = _a.value, name = _a.name, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, inputClassName = _a.inputClassName, className = _a.className, disabled = _a.disabled, style = _a.style, label = _a.label, _e = _a.withLabel, withLabel = _e === void 0 ? true : _e, id = _a.id, marginBottom = _a.marginBottom, helperText = _a.helperText, ref = _a.ref, onEnter = _a.onEnter, onKeyDown = _a.onKeyDown, error = _a.error, readonly = _a.readonly;
3170
3179
  var htmlId = useMemo(function () { return id || shortUid(); }, []);
3171
3180
  var callbackRef = useCallback(function (inputElement) {
3172
3181
  if (inputElement && autoFocus) {
@@ -3196,12 +3205,13 @@ var TextAreaInput = function (_a) {
3196
3205
  disabled: disabled,
3197
3206
  readonly: readonly,
3198
3207
  id: htmlId,
3199
- name: name
3208
+ name: name,
3209
+ ref: ref || callbackRef
3200
3210
  },
3201
3211
  _b['aria-label'] = ariaLabel || placeholder,
3202
3212
  _b.style = style,
3203
3213
  _b);
3204
- return (jsxs("label", __assign({ className: s$8('container', (_c = { container_marginBottom: marginBottom }, _c[className] = className, _c)) }, pickAttributes(containerAttributes), { children: [label ? jsx("span", { className: s$8('label', { label_disabled: disabled, label_hidden: !withLabel }), children: label }) : null, jsx("textarea", __assign({ ref: inputRef || callbackRef, className: s$8('textarea', (_d = {}, _d[inputClassName] = inputClassName, _d.textarea_disabled = disabled, _d.textarea_hasError = error, _d)), rows: rows || 9, onChange: onChange, onKeyDown: onInputKeyDown, value: value }, pickAttributes(inputAttributes))), helperText && jsx("p", { className: s$8('helperText'), children: helperText }), error && (jsx(Paragraph, { fontWeight: '600', color: ColorTypes.RED, fontSize: 's', children: error }))] })));
3214
+ return (jsxs("label", __assign({ className: s$8('container', (_c = { container_marginBottom: marginBottom }, _c[className] = className, _c)) }, pickAttributes(containerAttributes), { children: [label ? jsx("span", { className: s$8('label', { label_disabled: disabled, label_hidden: !withLabel }), children: label }) : null, jsx("textarea", __assign({ className: s$8('textarea', (_d = {}, _d[inputClassName] = inputClassName, _d.textarea_disabled = disabled, _d.textarea_hasError = error, _d)), rows: rows || 9, onChange: onChange, onKeyDown: onInputKeyDown, value: value }, pickAttributes(inputAttributes))), helperText && jsx("p", { className: s$8('helperText'), children: helperText }), error && (jsx(Paragraph, { fontWeight: '600', color: ColorTypes.RED, fontSize: 's', children: error }))] })));
3205
3215
  };
3206
3216
 
3207
3217
  var styles$7 = {"body":"ListItem-module_n7Ak1-","container":"ListItem-module_lPz7mU","container_extraSmall":"ListItem-module_6f5xCU","ar4_1":"ListItem-module_1HylOl","ar3_1":"ListItem-module_7aamph","ar21_9":"ListItem-module_OSMSIU","ar16_9":"ListItem-module_3Ixb-h","ar21_13":"ListItem-module_Klz0-9","ar4_3":"ListItem-module_Gx7Ru9","ar1_1":"ListItem-module_mVr45a","container_small":"ListItem-module_m9JeVI","container_medium":"ListItem-module_z3JW0m","container_large":"ListItem-module_i8OgwF","container_withHoverEffect":"ListItem-module_SUXG6M","heading":"ListItem-module_rMkhge","container_withBorderRadius":"ListItem-module_6ksaN9","imageContainer":"ListItem-module_yzwFhY","imageContainer_withCallback":"ListItem-module_dCCoLc","imageIcon":"ListItem-module_8-Y3Xe","innerContainer":"ListItem-module_ik5eLO","contentContainer":"ListItem-module_1qcnga","contentContainer_withEllipsis":"ListItem-module_Ni-375","contentContainer_withCallback":"ListItem-module_fwSh-g","buttonsContainer":"ListItem-module_eZnT-8","marginBottom_025":"ListItem-module_-xeyZ0","marginBottom_05":"ListItem-module_9MPy7z","marginBottom_15":"ListItem-module_dcSDCx","marginBottom_25":"ListItem-module_BNPjps","marginBottom_auto":"ListItem-module_hf5I4R","marginTop_025":"ListItem-module_A-XeQ7","marginTop_05":"ListItem-module_Cos-Os","marginTop_15":"ListItem-module_3Iti0l","marginTop_25":"ListItem-module_1DjAnl","marginTop_auto":"ListItem-module_J--EdS","marginLeft_025":"ListItem-module_X3Zz4H","marginLeft_05":"ListItem-module_OB6o2z","marginLeft_15":"ListItem-module_n-15Am","marginLeft_25":"ListItem-module_pFBba9","marginLeft_auto":"ListItem-module_c79kRY","marginRight_025":"ListItem-module_O58DIq","marginRight_05":"ListItem-module_CtMZ9M","marginRight_15":"ListItem-module_IfMzji","marginRight_25":"ListItem-module_xZzFRV","marginRight_auto":"ListItem-module_ZGafEz","marginX_025":"ListItem-module_mKjxiH","marginX_05":"ListItem-module_KvLIGX","marginX_15":"ListItem-module_AfZ6Ft","marginX_25":"ListItem-module_roBHo2","marginX_auto":"ListItem-module_4AQtuP","marginY_025":"ListItem-module_zX6thg","marginY_05":"ListItem-module_o9Gp15","marginY_15":"ListItem-module_YWTJrL","marginY_25":"ListItem-module_uncJzy","marginY_auto":"ListItem-module_jr5ciA","margin_0":"ListItem-module_OuGYlS","marginX_0":"ListItem-module_Wg4DDG","marginY_0":"ListItem-module_E70pFP","marginBottom_0":"ListItem-module_ur7ddv","marginTop_0":"ListItem-module_G19aif","marginLeft_0":"ListItem-module_GoiVRj","marginRight_0":"ListItem-module_8OvtnZ","margin_1":"ListItem-module_waLeWF","marginX_1":"ListItem-module_t3vCMK","marginY_1":"ListItem-module_NN3O0m","marginBottom_1":"ListItem-module_cDHyMo","marginTop_1":"ListItem-module_4Y-bTn","marginLeft_1":"ListItem-module_pGoNLi","marginRight_1":"ListItem-module_vQrpXb","margin_2":"ListItem-module_daYPnm","marginX_2":"ListItem-module_Zu8m91","marginY_2":"ListItem-module_t-K9RY","marginBottom_2":"ListItem-module_M5mubI","marginTop_2":"ListItem-module_y3QsdF","marginLeft_2":"ListItem-module_kYkioh","marginRight_2":"ListItem-module_i5y8yP","margin_3":"ListItem-module_zXy5Wn","marginX_3":"ListItem-module_2WWlF6","marginY_3":"ListItem-module_cnQHR4","marginBottom_3":"ListItem-module_UAAm5y","marginTop_3":"ListItem-module_Qu1kMr","marginLeft_3":"ListItem-module_XtKjTZ","marginRight_3":"ListItem-module_Rfeleg","margin_4":"ListItem-module_fyCmns","marginX_4":"ListItem-module_T6UnRg","marginY_4":"ListItem-module_F-vhVy","marginBottom_4":"ListItem-module_pzxGtW","marginTop_4":"ListItem-module_6rvmUY","marginLeft_4":"ListItem-module_ULlQxT","marginRight_4":"ListItem-module_Sxm5Jy","margin_5":"ListItem-module_LRS1ql","marginX_5":"ListItem-module_PDGoRk","marginY_5":"ListItem-module_lI9QSF","marginBottom_5":"ListItem-module_F2Ruhl","marginTop_5":"ListItem-module_s4ONUU","marginLeft_5":"ListItem-module_agFI8y","marginRight_5":"ListItem-module_qPHWd3","margin_6":"ListItem-module_fbqjUw","marginX_6":"ListItem-module_ogpZA-","marginY_6":"ListItem-module_28skQP","marginBottom_6":"ListItem-module_ctzkHz","marginTop_6":"ListItem-module_BQTCco","marginLeft_6":"ListItem-module_RRTMAM","marginRight_6":"ListItem-module_Zz8pR9","margin_7":"ListItem-module_R0y9zx","marginX_7":"ListItem-module_gQETSi","marginY_7":"ListItem-module_KiGTP-","marginBottom_7":"ListItem-module_vRQE9U","marginTop_7":"ListItem-module_A3Ng8h","marginLeft_7":"ListItem-module_4ulnSS","marginRight_7":"ListItem-module_e2qZaE","margin_8":"ListItem-module_3ifJ3x","marginX_8":"ListItem-module_Lc-eiF","marginY_8":"ListItem-module_zJhR5E","marginBottom_8":"ListItem-module_kcZiJf","marginTop_8":"ListItem-module_iTit2N","marginLeft_8":"ListItem-module_tExXUs","marginRight_8":"ListItem-module_VpGMAY","padding_025":"ListItem-module_YJFg8w","padding_05":"ListItem-module_PhA0cx","padding_15":"ListItem-module_KMItuV","padding_25":"ListItem-module_ITUwFY","paddingBottom_025":"ListItem-module_MLnAUj","paddingBottom_05":"ListItem-module_3y7whC","paddingBottom_15":"ListItem-module_WCfpBG","paddingBottom_25":"ListItem-module_mN7UdB","paddingTop_025":"ListItem-module_pVc2iX","paddingTop_05":"ListItem-module_hpowGP","paddingTop_15":"ListItem-module_ubIsOD","paddingTop_25":"ListItem-module_rB52c2","paddingLeft_025":"ListItem-module_fCIkxf","paddingLeft_05":"ListItem-module_bQa-3D","paddingLeft_15":"ListItem-module_CP-1yG","paddingLeft_25":"ListItem-module_BqfycI","paddingRight_025":"ListItem-module_da1Aqh","paddingRight_05":"ListItem-module_95A9LU","paddingRight_15":"ListItem-module_BxtTyt","paddingRight_25":"ListItem-module_iguxXn","paddingX_025":"ListItem-module_-xvw2N","paddingX_05":"ListItem-module_QFNqP9","paddingX_15":"ListItem-module_tPrZvC","paddingX_25":"ListItem-module_EnXVao","paddingY_025":"ListItem-module_6botae","paddingY_05":"ListItem-module_8wrBa1","paddingY_15":"ListItem-module_zSvBev","paddingY_25":"ListItem-module_i6k7-1","padding_0":"ListItem-module_2JAay-","paddingX_0":"ListItem-module_-119Mv","paddingY_0":"ListItem-module_NJjmFH","paddingBottom_0":"ListItem-module_qDRAFb","paddingTop_0":"ListItem-module_B-yUXU","paddingLeft_0":"ListItem-module_QfxARe","paddingRight_0":"ListItem-module_aW6ytI","padding_1":"ListItem-module_7UMvGz","paddingX_1":"ListItem-module_Xs29qG","paddingY_1":"ListItem-module_Cj35LQ","paddingBottom_1":"ListItem-module_whe9Mk","paddingTop_1":"ListItem-module_nMhRaN","paddingLeft_1":"ListItem-module_bCrRYy","paddingRight_1":"ListItem-module_RA5OlH","padding_2":"ListItem-module_8fVZ5w","paddingX_2":"ListItem-module_mxvwzM","paddingY_2":"ListItem-module_1aHKRb","paddingBottom_2":"ListItem-module_0VHAtr","paddingTop_2":"ListItem-module_wdc2HD","paddingLeft_2":"ListItem-module_D3Kqt-","paddingRight_2":"ListItem-module_GgmgM6","padding_3":"ListItem-module_IV4zzD","paddingX_3":"ListItem-module_r7Tbvb","paddingY_3":"ListItem-module_bcZf6C","paddingBottom_3":"ListItem-module_p-3eci","paddingTop_3":"ListItem-module_Lsczys","paddingLeft_3":"ListItem-module_DTv4wS","paddingRight_3":"ListItem-module_CVcnl8","padding_4":"ListItem-module_J84C30","paddingX_4":"ListItem-module_5cxj8H","paddingY_4":"ListItem-module_a9WB19","paddingBottom_4":"ListItem-module_lj64pz","paddingTop_4":"ListItem-module_lJxEA0","paddingLeft_4":"ListItem-module_24t3pg","paddingRight_4":"ListItem-module_PuFeCS","padding_5":"ListItem-module_IP7Wx8","paddingX_5":"ListItem-module_Uw-S2x","paddingY_5":"ListItem-module_G7bspa","paddingBottom_5":"ListItem-module_2hFg3W","paddingTop_5":"ListItem-module_JBOWGT","paddingLeft_5":"ListItem-module_A2OzZV","paddingRight_5":"ListItem-module_mdKKBw","padding_6":"ListItem-module_jEUNSi","paddingX_6":"ListItem-module_Q4iPGX","paddingY_6":"ListItem-module_XTUH-p","paddingBottom_6":"ListItem-module_dwB3iF","paddingTop_6":"ListItem-module_DYQlxV","paddingLeft_6":"ListItem-module_5yMv0h","paddingRight_6":"ListItem-module_H9-tzJ","padding_7":"ListItem-module_4zmXhD","paddingX_7":"ListItem-module_o-LskD","paddingY_7":"ListItem-module_-drK0P","paddingBottom_7":"ListItem-module_n1-fFT","paddingTop_7":"ListItem-module_dYBPeO","paddingLeft_7":"ListItem-module_wMUJ2Q","paddingRight_7":"ListItem-module_bNyS12","padding_8":"ListItem-module_vF8-gg","paddingX_8":"ListItem-module_-q8Wua","paddingY_8":"ListItem-module_6ZrNjy","paddingBottom_8":"ListItem-module_BbqnNp","paddingTop_8":"ListItem-module_XiE-Vl","paddingLeft_8":"ListItem-module_VEgivI","paddingRight_8":"ListItem-module_1NSUIh","backgroundColor_purple1":"ListItem-module_GDJSJG","backgroundColor_purple2":"ListItem-module_uyGK9f","backgroundColor_purple3":"ListItem-module_vT-clt","backgroundColor_purple4":"ListItem-module_LMDR6R","backgroundColor_purple5":"ListItem-module_UAQExO","backgroundColor_purple6":"ListItem-module_Tn6N-j","backgroundColor_purple7":"ListItem-module_IA5BgJ","backgroundColor_white":"ListItem-module_abXTw9","backgroundColor_grey1":"ListItem-module_GJIEyx","backgroundColor_grey2":"ListItem-module_qeCW6h","backgroundColor_grey3":"ListItem-module_E0YQ58","backgroundColor_grey4":"ListItem-module_u3nFvg","backgroundColor_grey5":"ListItem-module_NVb1fW","backgroundColor_grey6":"ListItem-module_eACK7D","backgroundColor_black":"ListItem-module_Me9MT3","backgroundColor_mint1":"ListItem-module_kCq0m2","backgroundColor_mint2":"ListItem-module_Y0zPHc","backgroundColor_mint3":"ListItem-module_aHOeit","backgroundColor_blue1":"ListItem-module_W2A8tg","backgroundColor_blue2":"ListItem-module_h8b23V","backgroundColor_blue3":"ListItem-module_GGWhr2","backgroundColor_blue4":"ListItem-module_Z-Ppq6","backgroundColor_pink":"ListItem-module_gJwDrf","backgroundColor_green":"ListItem-module_b1KgOd","backgroundColor_red":"ListItem-module_vFt6K0","backgroundColor_yellow":"ListItem-module_-fmyci","backgroundColor_orange":"ListItem-module_2jzp7A","backgroundColor_mainPurple":"ListItem-module_rfRo-5","backgroundColor_mainGrey":"ListItem-module_OLIO8r","backgroundColor_mainDark":"ListItem-module_h-yJfU","backgroundColor_current":"ListItem-module_npyJ02","backgroundColor_inherit":"ListItem-module_eAID1D","border_1":"ListItem-module_RArgTk","borderBottom_1":"ListItem-module_P7VTIX","borderTop_1":"ListItem-module_SLd5Jk","borderLeft_1":"ListItem-module_LK8R8X","borderRight_1":"ListItem-module_TncESJ","border_2":"ListItem-module_SEOiOp","borderBottom_2":"ListItem-module_6SMrhc","borderTop_2":"ListItem-module_yXIJQC","borderLeft_2":"ListItem-module_OO9-ma","borderRight_2":"ListItem-module_2O1rCe","border_3":"ListItem-module_6isYOP","borderBottom_3":"ListItem-module_p7BPwh","borderTop_3":"ListItem-module_PeHHMG","borderLeft_3":"ListItem-module_NEQr4B","borderRight_3":"ListItem-module_OKjZvB","borderColor_purple1":"ListItem-module_DR8r9u","borderColor_purple2":"ListItem-module_mBKoFR","borderColor_purple3":"ListItem-module_Jq8Kys","borderColor_purple4":"ListItem-module_ZUk42z","borderColor_purple5":"ListItem-module_ZiUEwy","borderColor_purple6":"ListItem-module_BAUl8t","borderColor_purple7":"ListItem-module_BVwnY-","borderColor_white":"ListItem-module_Bi1r3w","borderColor_grey1":"ListItem-module_dNDfjh","borderColor_grey2":"ListItem-module_Rfufrt","borderColor_grey3":"ListItem-module_m06ets","borderColor_grey4":"ListItem-module_Qp8a3i","borderColor_grey5":"ListItem-module_THnXZp","borderColor_grey6":"ListItem-module_oj0OVt","borderColor_black":"ListItem-module_5A2pvc","borderColor_mint1":"ListItem-module_vfpaYA","borderColor_mint2":"ListItem-module_O1Cn3l","borderColor_mint3":"ListItem-module_0PSXtr","borderColor_blue1":"ListItem-module_B9ZBUl","borderColor_blue2":"ListItem-module_NHEoMd","borderColor_blue3":"ListItem-module_b-p0jy","borderColor_blue4":"ListItem-module_YID0Wa","borderColor_pink":"ListItem-module_91lgQu","borderColor_green":"ListItem-module_PAqjBk","borderColor_red":"ListItem-module_LHqT1w","borderColor_yellow":"ListItem-module_0C-bSJ","borderColor_orange":"ListItem-module_R-0Faf","borderColor_mainPurple":"ListItem-module_wDFrXx","borderColor_mainGrey":"ListItem-module_AlO3cS","borderColor_mainDark":"ListItem-module_dD3oXR","borderColor_current":"ListItem-module_Lv1uQw","borderColor_inherit":"ListItem-module_D7TJgu"};
@@ -3449,7 +3459,7 @@ var styles$2 = {"body":"SwitchButton-module_BSiKOl","container":"SwitchButton-mo
3449
3459
  var s$2 = classNames.bind(styles$2);
3450
3460
  var SwitchButton = function (_a) {
3451
3461
  var _b, _c;
3452
- var className = _a.className, onClickCallback = _a.onClickCallback, checked = _a.checked, disabled = _a.disabled, label = _a.label, id = _a.id, name = _a.name, ariaLabel = _a.ariaLabel, withInlineLabel = _a.withInlineLabel, withLabel = _a.withLabel, alignCenter = _a.alignCenter, marginBottom = _a.marginBottom;
3462
+ var className = _a.className, onClickCallback = _a.onClickCallback, checked = _a.checked, disabled = _a.disabled, label = _a.label, id = _a.id, name = _a.name, ref = _a.ref, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, withInlineLabel = _a.withInlineLabel, withLabel = _a.withLabel, alignCenter = _a.alignCenter, marginBottom = _a.marginBottom;
3453
3463
  var htmlId = useMemo(function () { return id || shortUid(); }, []);
3454
3464
  var containerAttributes = (_b = {
3455
3465
  htmlFor: htmlId
@@ -3459,6 +3469,8 @@ var SwitchButton = function (_a) {
3459
3469
  var inputAttributes = {
3460
3470
  id: htmlId,
3461
3471
  name: name,
3472
+ ref: ref,
3473
+ autoFocus: autoFocus,
3462
3474
  disabled: disabled,
3463
3475
  checked: checked
3464
3476
  };
@@ -3494,12 +3506,13 @@ var styles$1 = {"body":"SelectInput-module_w2mdUW","container":"SelectInput-modu
3494
3506
  var s$1 = classNames.bind(styles$1);
3495
3507
  var SelectInput = function (_a) {
3496
3508
  var _b, _c, _d;
3497
- var label = _a.label, _e = _a.withLabel, withLabel = _e === void 0 ? true : _e, inputRef = _a.inputRef, _f = _a.nativeHtmlComponent, nativeHtmlComponent = _f === void 0 ? true : _f, _g = _a.size, size = _g === void 0 ? SizeTypes.MEDIUM : _g, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, ariaLabel = _a.ariaLabel, id = _a.id, onChange = _a.onChange, defaultOption = _a.defaultOption, value = _a.value, error = _a.error, helperText = _a.helperText, options = _a.options, disabled = _a.disabled, loading = _a.loading, className = _a.className, inputClassName = _a.inputClassName, marginBottom = _a.marginBottom;
3509
+ var label = _a.label, _e = _a.withLabel, withLabel = _e === void 0 ? true : _e, ref = _a.ref, _f = _a.nativeHtmlComponent, nativeHtmlComponent = _f === void 0 ? true : _f, _g = _a.size, size = _g === void 0 ? SizeTypes.MEDIUM : _g, sizeMd = _a.sizeMd, sizeLg = _a.sizeLg, sizeXl = _a.sizeXl, ariaLabel = _a.ariaLabel, id = _a.id, onChange = _a.onChange, defaultOption = _a.defaultOption, value = _a.value, error = _a.error, autoFocus = _a.autoFocus, helperText = _a.helperText, options = _a.options, disabled = _a.disabled, loading = _a.loading, className = _a.className, inputClassName = _a.inputClassName, marginBottom = _a.marginBottom;
3498
3510
  var htmlId = useMemo(function () { return (id ? "".concat(id) : shortUid()); }, []);
3499
3511
  var inputAttributes = (_b = {
3500
- ref: inputRef,
3512
+ ref: ref,
3501
3513
  id: htmlId,
3502
3514
  value: value,
3515
+ autoFocus: autoFocus,
3503
3516
  disabled: disabled || loading
3504
3517
  },
3505
3518
  _b['aria-label'] = ariaLabel || label,