@7shifts/sous-chef 2.3.3 → 2.4.0

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.
@@ -0,0 +1 @@
1
+ export { default } from './ToolbarSelect';
@@ -0,0 +1,2 @@
1
+ import ToolbarSelect from './ToolbarSelect';
2
+ export { ToolbarSelect };
@@ -4,27 +4,28 @@ declare type NoOptionsMessageFunction = (input: {
4
4
  inputValue: string;
5
5
  }) => string | null;
6
6
  declare type Props<T> = {
7
- name: string;
8
- /** If not provided it will generate a random id so the label links properly with the text input */
7
+ asToolbarFilter?: boolean;
8
+ caption?: React.ReactNode;
9
+ disabled?: boolean;
10
+ error?: string;
11
+ /** If not provided it will generate a random id so the l¡abel links properly with the text input */
9
12
  id?: string;
10
- value?: SelectOption<T>;
11
- options: SelectOptions<T>;
13
+ isClearable?: boolean;
14
+ label?: React.ReactNode;
15
+ /** When the user opens the menu, if this prop is `true`, it will scroll the page into to the menu view (if its content falls under a scroll). It is recommended to disable this behaviour when using the `SelectField` inside a modal. */
16
+ menuShouldScrollIntoView?: boolean;
17
+ name: string;
18
+ noOptionsMessage?: string | NoOptionsMessageFunction;
12
19
  onChange?: (e: SelectOption<T>) => void;
13
20
  onBlur?: (e: SelectOption<T>) => void;
14
- CustomOption?: React.ElementType;
15
- SelectedOptionPrefix?: React.ElementType;
16
- label?: React.ReactNode;
17
- caption?: React.ReactNode;
18
- error?: string;
21
+ options: SelectOptions<T>;
19
22
  placeholder?: string;
20
- noOptionsMessage?: string | NoOptionsMessageFunction;
21
- disabled?: boolean;
22
23
  /** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
23
24
  prefix?: React.ReactNode;
24
- asToolbarFilter?: boolean;
25
- /** When the user opens the menu, if this prop is `true`, it will scroll the page into to the menu view (if its content falls under a scroll). It is recomended to disable this behaviour when using the `SelectField` inside a modal. */
26
- menuShouldScrollIntoView?: boolean;
25
+ value?: SelectOption<T>;
26
+ CustomOption?: React.ElementType;
27
+ SelectedOptionPrefix?: React.ElementType;
27
28
  };
28
29
  /** Component to make possible choose from a predefined options. */
29
- declare const SelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, SelectedOptionPrefix, label, caption, error, placeholder, noOptionsMessage, disabled, prefix, asToolbarFilter, menuShouldScrollIntoView }: Props<T>) => JSX.Element;
30
+ declare const SelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id: inputId, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, prefix, value, CustomOption: UserCustomOption, SelectedOptionPrefix }: Props<T>) => JSX.Element;
30
31
  export default SelectField;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ declare type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ } & React.SVGProps<SVGSVGElement>;
7
+ declare const IconGif: {
8
+ (props: Props): JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default IconGif;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IconSize } from '../types';
3
+ declare type Props = {
4
+ size?: IconSize;
5
+ color?: string;
6
+ } & React.SVGProps<SVGSVGElement>;
7
+ declare const IconStarSolid: {
8
+ (props: Props): JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default IconStarSolid;
@@ -57,6 +57,7 @@ export { default as IconFlag } from './IconFlag';
57
57
  export { default as IconFourDotsCircle } from './IconFourDotsCircle';
58
58
  export { default as IconFourSquares } from './IconFourSquares';
59
59
  export { default as IconGavel } from './IconGavel';
60
+ export { default as IconGif } from './IconGif';
60
61
  export { default as IconGift } from './IconGift';
61
62
  export { default as IconGrinBeam } from './IconGrinBeam';
62
63
  export { default as IconGripVertical } from './IconGripVertical';
@@ -93,6 +94,7 @@ export { default as IconSignOut } from './IconSignOut';
93
94
  export { default as IconSitemap } from './IconSitemap';
94
95
  export { default as IconSlidersH } from './IconSlidersH';
95
96
  export { default as IconSort } from './IconSort';
97
+ export { default as IconStarSolid } from './IconStarSolid';
96
98
  export { default as IconStar } from './IconStar';
97
99
  export { default as IconStickyNoteLines } from './IconStickyNoteLines';
98
100
  export { default as IconStopwatch } from './IconStopwatch';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './core';
2
+ export * from './controls';
2
3
  export * from './forms';
3
4
  export * from './feedback';
4
5
  export * from './actions';
package/dist/index.js CHANGED
@@ -443,6 +443,11 @@ var Tooltip = function Tooltip(_ref, forwardedRef) {
443
443
 
444
444
  var isFocusingOnTooltip = React.useRef(false);
445
445
  var isFocusingOnAnchor = React.useRef(false);
446
+ React.useEffect(function () {
447
+ if (isVisible && !header && !overlay) {
448
+ setIsVisible(false);
449
+ }
450
+ }, [isVisible, header, overlay]);
446
451
 
447
452
  var updateOverlayVisibility = function updateOverlayVisibility(shouldShow) {
448
453
  setIsVisible(shouldShow);
@@ -1808,6 +1813,25 @@ var IconGavel = function IconGavel(props) {
1808
1813
 
1809
1814
  IconGavel.displayName = 'IconGavel';
1810
1815
 
1816
+ var IconGif = function IconGif(props) {
1817
+ return React__default.createElement("svg", Object.assign({
1818
+ viewBox: "0 0 20 20",
1819
+ xmlns: "http://www.w3.org/2000/svg",
1820
+ "data-testid": "icon-gif",
1821
+ style: getIconStyles(props)
1822
+ }, props), React__default.createElement("path", {
1823
+ d: "M18.096 2.85H1.906c-.79 0-1.43.64-1.43 1.429v11.428c0 .79.64 1.429 1.43 1.429h16.19c.789 0 1.428-.64 1.428-1.429V4.28c0-.79-.64-1.429-1.428-1.429Z",
1824
+ stroke: "currentColor",
1825
+ strokeWidth: 0.952,
1826
+ fill: "none"
1827
+ }), React__default.createElement("path", {
1828
+ d: "M7.124 12.541c.876 0 1.592-.373 2.087-.93V9.715H6.804v.785h1.524v.785c-.23.22-.686.457-1.204.457-1.006 0-1.753-.777-1.753-1.836 0-1.074.747-1.836 1.753-1.836a1.64 1.64 0 0 1 1.318.678l.724-.42c-.404-.578-1.052-1.05-2.042-1.05-1.478 0-2.667 1.028-2.667 2.628 0 1.592 1.189 2.636 2.667 2.636Zm3.907-.099V7.36h-.892v5.082h.892Zm1.971 0V10.24h2.538v-.785h-2.538v-1.31h2.59V7.36h-3.481v5.082h.891Z",
1829
+ fill: "currentColor"
1830
+ }));
1831
+ };
1832
+
1833
+ IconGif.displayName = 'IconGif';
1834
+
1811
1835
  var IconGift = function IconGift(props) {
1812
1836
  return React__default.createElement("svg", Object.assign({
1813
1837
  viewBox: "0 0 20 20",
@@ -2469,6 +2493,21 @@ var IconSort = function IconSort(props) {
2469
2493
 
2470
2494
  IconSort.displayName = 'IconSort';
2471
2495
 
2496
+ var IconStarSolid = function IconStarSolid(props) {
2497
+ return React__default.createElement("svg", Object.assign({
2498
+ viewBox: "0 0 20 20",
2499
+ fill: "none",
2500
+ xmlns: "http://www.w3.org/2000/svg",
2501
+ "data-testid": "icon-star-solid",
2502
+ style: getIconStyles(props)
2503
+ }, props), React__default.createElement("path", {
2504
+ d: "M8.944 1.591 6.602 6.34l-5.239.763C.423 7.24.047 8.398.73 9.06l3.79 3.694-.897 5.217c-.16.943.832 1.65 1.664 1.209l4.687-2.464 4.686 2.463c.832.438 1.826-.265 1.664-1.208l-.896-5.217 3.79-3.694c.681-.663.305-1.821-.635-1.958l-5.239-.763-2.341-4.748c-.42-.846-1.635-.857-2.058 0Z",
2505
+ fill: "currentColor"
2506
+ }));
2507
+ };
2508
+
2509
+ IconStarSolid.displayName = 'IconStarSolid';
2510
+
2472
2511
  var IconStar = function IconStar(props) {
2473
2512
  return React__default.createElement("svg", Object.assign({
2474
2513
  viewBox: "0 0 20 20",
@@ -3730,6 +3769,187 @@ var DataTableEditableCell = function DataTableEditableCell(_ref) {
3730
3769
  }))));
3731
3770
  };
3732
3771
 
3772
+ var useSelectFieldControllers = function useSelectFieldControllers(_ref) {
3773
+ var name = _ref.name,
3774
+ inputId = _ref.id,
3775
+ value = _ref.value,
3776
+ _onChange = _ref.onChange,
3777
+ _onBlur = _ref.onBlur,
3778
+ error = _ref.error;
3779
+
3780
+ var _useFormContext = useFormContext(),
3781
+ formik = _useFormContext.formik;
3782
+
3783
+ var id = useFieldId({
3784
+ name: name,
3785
+ id: inputId
3786
+ });
3787
+ var controllers = {
3788
+ id: id,
3789
+ error: error,
3790
+ value: value,
3791
+ onChange: function onChange(option) {
3792
+ return _onChange && _onChange(option);
3793
+ },
3794
+ onBlur: function onBlur(option) {
3795
+ return _onBlur && _onBlur(option);
3796
+ }
3797
+ };
3798
+ var formikState = getFormikState(name, formik);
3799
+
3800
+ if (formik && formikState) {
3801
+ controllers = _extends({}, controllers, {
3802
+ error: error ? controllers.error : formikState.error,
3803
+ value: value ? controllers.value : formikState.value,
3804
+ onChange: function onChange(option) {
3805
+ if (_onChange) {
3806
+ _onChange(option);
3807
+ }
3808
+
3809
+ formik.setFieldValue(name, option);
3810
+ },
3811
+ onBlur: function onBlur(option) {
3812
+ if (_onBlur) {
3813
+ _onBlur(option);
3814
+ }
3815
+
3816
+ formik.setFieldTouched(name);
3817
+ }
3818
+ });
3819
+ }
3820
+
3821
+ return controllers;
3822
+ };
3823
+
3824
+ var getSelectStyles = function getSelectStyles(_ref) {
3825
+ var _ref$wrapToNextLine = _ref.wrapToNextLine,
3826
+ wrapToNextLine = _ref$wrapToNextLine === void 0 ? false : _ref$wrapToNextLine;
3827
+ return {
3828
+ valueContainer: function valueContainer(base) {
3829
+ return Object.assign({}, base, {
3830
+ flexWrap: wrapToNextLine ? 'wrap' : 'nowrap'
3831
+ });
3832
+ },
3833
+ container: function container(base, state) {
3834
+ return Object.assign({}, base, {
3835
+ flex: '1',
3836
+ fontFamily: FONT_FAMILY,
3837
+ minWidth: '64px',
3838
+ background: state.isDisabled ? GREY100 : WHITE,
3839
+ ':hover': {
3840
+ backgroundColor: GREY100
3841
+ },
3842
+ position: 'initial'
3843
+ });
3844
+ },
3845
+ control: function control(base, state) {
3846
+ return Object.assign({}, base, {
3847
+ color: state.isDisabled ? GREY400 : GREY500,
3848
+ boxShadow: 'none',
3849
+ fontSize: '14px',
3850
+ cursor: 'pointer',
3851
+ background: 'none',
3852
+ outline: '1px solid',
3853
+ outlineColor: GREY300,
3854
+ borderRadius: '4px',
3855
+ border: 'none'
3856
+ });
3857
+ },
3858
+ indicatorSeparator: function indicatorSeparator() {
3859
+ return {
3860
+ display: 'none'
3861
+ };
3862
+ },
3863
+ placeholder: function placeholder(base, state) {
3864
+ return _extends({}, base, {
3865
+ color: state.isDisabled ? GREY300 : GREY400,
3866
+ marginRight: 0,
3867
+ position: 'static',
3868
+ transform: 'initial',
3869
+ overflow: 'hidden',
3870
+ textOverflow: 'ellipsis',
3871
+ whiteSpace: 'nowrap'
3872
+ });
3873
+ },
3874
+ singleValue: function singleValue(base, state) {
3875
+ return Object.assign({}, base, {
3876
+ color: state.isDisabled ? GREY400 : null,
3877
+ marginRight: 0,
3878
+ position: 'static',
3879
+ transform: 'initial',
3880
+ overflow: 'hidden',
3881
+ textOverflow: 'ellipsis',
3882
+ whiteSpace: 'nowrap'
3883
+ });
3884
+ },
3885
+ dropdownIndicator: function dropdownIndicator(base) {
3886
+ return Object.assign({}, base, {
3887
+ color: GREY400,
3888
+ padding: '8px'
3889
+ });
3890
+ },
3891
+ option: function option(base, state) {
3892
+ return Object.assign({}, base, {
3893
+ backgroundColor: state.isDisabled ? null : state.isSelected ? EGGPLANT200 : state.isFocused ? GREY100 : WHITE,
3894
+ color: state.isDisabled ? GREY400 : GREY500,
3895
+ cursor: state.isDisabled ? 'default' : 'pointer',
3896
+ fontFamily: FONT_FAMILY,
3897
+ fontSize: '14px'
3898
+ });
3899
+ },
3900
+ group: function group(base) {
3901
+ return Object.assign({}, base, {
3902
+ fontFamily: FONT_FAMILY
3903
+ });
3904
+ },
3905
+ menu: function menu(base) {
3906
+ return _extends({}, base, {
3907
+ zIndex: Z_INDEX_LAYERS.MENU,
3908
+ minWidth: '164px'
3909
+ });
3910
+ },
3911
+ menuPortal: function menuPortal(base) {
3912
+ return _extends({}, base, {
3913
+ zIndex: Z_INDEX_LAYERS.MENU
3914
+ });
3915
+ }
3916
+ };
3917
+ };
3918
+
3919
+ var ToolbarSelect = function ToolbarSelect(_ref) {
3920
+ var name = _ref.name,
3921
+ value = _ref.value,
3922
+ options = _ref.options,
3923
+ onChange = _ref.onChange,
3924
+ onBlur = _ref.onBlur,
3925
+ placeholder = _ref.placeholder,
3926
+ disabled = _ref.disabled,
3927
+ prefix = _ref.prefix;
3928
+ var controllers = useSelectFieldControllers({
3929
+ name: name,
3930
+ value: value,
3931
+ onChange: onChange,
3932
+ onBlur: onBlur
3933
+ });
3934
+ return React__default.createElement(AffixContainer, {
3935
+ prefix: prefix
3936
+ }, React__default.createElement(Select__default, {
3937
+ inputId: controllers.id,
3938
+ options: options,
3939
+ isDisabled: disabled,
3940
+ value: controllers.value,
3941
+ placeholder: placeholder,
3942
+ styles: getSelectStyles({}),
3943
+ menuPortalTarget: document.body,
3944
+ onChange: controllers.onChange,
3945
+ onBlur: controllers.onBlur,
3946
+ components: {
3947
+ Option: Select.components.Option,
3948
+ Control: Select.components.Control
3949
+ }
3950
+ }));
3951
+ };
3952
+
3733
3953
  var styles$h = {"form--standard-size":"_3CaV0"};
3734
3954
 
3735
3955
  var Form = function Form(_ref) {
@@ -4489,7 +4709,7 @@ var PasswordField = function PasswordField(_ref) {
4489
4709
  }))));
4490
4710
  };
4491
4711
 
4492
- var getSelectStyles = function getSelectStyles(_ref) {
4712
+ var getSelectStyles$1 = function getSelectStyles(_ref) {
4493
4713
  var isInvalid = _ref.isInvalid,
4494
4714
  _ref$asToolbarFilter = _ref.asToolbarFilter,
4495
4715
  asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
@@ -4663,7 +4883,7 @@ var MultiSelectField = function MultiSelectField(_ref) {
4663
4883
  value: controllers.value,
4664
4884
  placeholder: placeholder,
4665
4885
  noOptionsMessage: typeof noOptionsMessage === 'function' ? noOptionsMessage : defaultNoOptionsMessage,
4666
- styles: getSelectStyles({
4886
+ styles: getSelectStyles$1({
4667
4887
  isInvalid: hasError,
4668
4888
  wrapToNextLine: true
4669
4889
  }),
@@ -4695,58 +4915,6 @@ var MultiSelectField = function MultiSelectField(_ref) {
4695
4915
  }));
4696
4916
  };
4697
4917
 
4698
- var useSelectFieldControllers = function useSelectFieldControllers(_ref) {
4699
- var name = _ref.name,
4700
- inputId = _ref.id,
4701
- value = _ref.value,
4702
- _onChange = _ref.onChange,
4703
- _onBlur = _ref.onBlur,
4704
- error = _ref.error;
4705
-
4706
- var _useFormContext = useFormContext(),
4707
- formik = _useFormContext.formik;
4708
-
4709
- var id = useFieldId({
4710
- name: name,
4711
- id: inputId
4712
- });
4713
- var controllers = {
4714
- id: id,
4715
- error: error,
4716
- value: value,
4717
- onChange: function onChange(option) {
4718
- return _onChange && _onChange(option);
4719
- },
4720
- onBlur: function onBlur(option) {
4721
- return _onBlur && _onBlur(option);
4722
- }
4723
- };
4724
- var formikState = getFormikState(name, formik);
4725
-
4726
- if (formik && formikState) {
4727
- controllers = _extends({}, controllers, {
4728
- error: error ? controllers.error : formikState.error,
4729
- value: value ? controllers.value : formikState.value,
4730
- onChange: function onChange(option) {
4731
- if (_onChange) {
4732
- _onChange(option);
4733
- }
4734
-
4735
- formik.setFieldValue(name, option);
4736
- },
4737
- onBlur: function onBlur(option) {
4738
- if (_onBlur) {
4739
- _onBlur(option);
4740
- }
4741
-
4742
- formik.setFieldTouched(name);
4743
- }
4744
- });
4745
- }
4746
-
4747
- return controllers;
4748
- };
4749
-
4750
4918
  var styles$q = {"custom-control":"_1cDCR"};
4751
4919
 
4752
4920
  var _excluded$4 = ["children", "CustomPrefixComponent"];
@@ -4784,40 +4952,42 @@ function CustomOption$1(_ref) {
4784
4952
  }
4785
4953
 
4786
4954
  var SelectField = function SelectField(_ref) {
4787
- var name = _ref.name,
4955
+ var _ref$asToolbarFilter = _ref.asToolbarFilter,
4956
+ asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
4957
+ caption = _ref.caption,
4958
+ disabled = _ref.disabled,
4959
+ error = _ref.error,
4788
4960
  inputId = _ref.id,
4789
- value = _ref.value,
4961
+ _ref$isClearable = _ref.isClearable,
4962
+ isClearable = _ref$isClearable === void 0 ? false : _ref$isClearable,
4963
+ label = _ref.label,
4964
+ _ref$menuShouldScroll = _ref.menuShouldScrollIntoView,
4965
+ menuShouldScrollIntoView = _ref$menuShouldScroll === void 0 ? true : _ref$menuShouldScroll,
4966
+ name = _ref.name,
4967
+ noOptionsMessage = _ref.noOptionsMessage,
4790
4968
  options = _ref.options,
4791
- onChange = _ref.onChange,
4792
4969
  onBlur = _ref.onBlur,
4793
- UserCustomOption = _ref.CustomOption,
4794
- SelectedOptionPrefix = _ref.SelectedOptionPrefix,
4795
- label = _ref.label,
4796
- caption = _ref.caption,
4797
- error = _ref.error,
4970
+ onChange = _ref.onChange,
4798
4971
  placeholder = _ref.placeholder,
4799
- noOptionsMessage = _ref.noOptionsMessage,
4800
- disabled = _ref.disabled,
4801
4972
  prefix = _ref.prefix,
4802
- _ref$asToolbarFilter = _ref.asToolbarFilter,
4803
- asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
4804
- _ref$menuShouldScroll = _ref.menuShouldScrollIntoView,
4805
- menuShouldScrollIntoView = _ref$menuShouldScroll === void 0 ? true : _ref$menuShouldScroll;
4973
+ value = _ref.value,
4974
+ UserCustomOption = _ref.CustomOption,
4975
+ SelectedOptionPrefix = _ref.SelectedOptionPrefix;
4806
4976
  var controllers = useSelectFieldControllers({
4807
- name: name,
4977
+ error: error,
4808
4978
  id: inputId,
4809
- value: value,
4979
+ name: name,
4810
4980
  onChange: onChange,
4811
4981
  onBlur: onBlur,
4812
- error: error
4982
+ value: value
4813
4983
  });
4814
4984
  var hasError = !!controllers.error;
4815
4985
  var fieldProps = {
4816
- name: name,
4986
+ caption: caption,
4987
+ error: controllers.error,
4817
4988
  id: controllers.id,
4818
4989
  label: label,
4819
- caption: caption,
4820
- error: controllers.error
4990
+ name: name
4821
4991
  };
4822
4992
  var defaultNoOptionsMessage = noOptionsMessage && typeof noOptionsMessage === 'string' ? function () {
4823
4993
  return noOptionsMessage;
@@ -4825,19 +4995,16 @@ var SelectField = function SelectField(_ref) {
4825
4995
  return React__default.createElement(Field, Object.assign({}, fieldProps), React__default.createElement(AffixContainer, {
4826
4996
  prefix: prefix
4827
4997
  }, React__default.createElement(Select__default, {
4828
- inputId: controllers.id,
4829
- options: options,
4830
- isDisabled: disabled,
4831
- value: controllers.value,
4832
- placeholder: placeholder,
4833
- noOptionsMessage: typeof noOptionsMessage === 'function' ? noOptionsMessage : defaultNoOptionsMessage,
4834
- styles: getSelectStyles({
4835
- isInvalid: hasError,
4836
- asToolbarFilter: asToolbarFilter
4837
- }),
4838
- menuPortalTarget: document.body,
4839
- onChange: controllers.onChange,
4840
- onBlur: controllers.onBlur,
4998
+ closeMenuOnScroll: function closeMenuOnScroll(e) {
4999
+ if (menuShouldScrollIntoView || !e.target) {
5000
+ return false;
5001
+ }
5002
+
5003
+ var target = e.target;
5004
+ var firstOption = target.children[0];
5005
+ var isScrollingTheMenu = firstOption && typeof firstOption.id === 'string' && firstOption.id.includes('react-select');
5006
+ return !isScrollingTheMenu;
5007
+ },
4841
5008
  components: {
4842
5009
  Option: UserCustomOption ? function (props) {
4843
5010
  return React__default.createElement(CustomOption$1, Object.assign({
@@ -4850,19 +5017,23 @@ var SelectField = function SelectField(_ref) {
4850
5017
  }, props));
4851
5018
  } : Select.components.Control
4852
5019
  },
4853
- menuShouldScrollIntoView: menuShouldScrollIntoView,
5020
+ inputId: controllers.id,
5021
+ isClearable: isClearable,
5022
+ isDisabled: disabled,
5023
+ menuPortalTarget: document.body,
4854
5024
  menuPlacement: menuShouldScrollIntoView ? 'bottom' : 'auto',
4855
5025
  menuPosition: menuShouldScrollIntoView ? 'absolute' : 'fixed',
4856
- closeMenuOnScroll: function closeMenuOnScroll(e) {
4857
- if (menuShouldScrollIntoView || !e.target) {
4858
- return false;
4859
- }
4860
-
4861
- var target = e.target;
4862
- var firstOption = target.children[0];
4863
- var isScrollingTheMenu = firstOption && typeof firstOption.id === 'string' && firstOption.id.includes('react-select');
4864
- return !isScrollingTheMenu;
4865
- }
5026
+ noOptionsMessage: typeof noOptionsMessage === 'function' ? noOptionsMessage : defaultNoOptionsMessage,
5027
+ menuShouldScrollIntoView: menuShouldScrollIntoView,
5028
+ onBlur: controllers.onBlur,
5029
+ onChange: controllers.onChange,
5030
+ options: options,
5031
+ placeholder: placeholder,
5032
+ styles: getSelectStyles$1({
5033
+ isInvalid: hasError,
5034
+ asToolbarFilter: asToolbarFilter
5035
+ }),
5036
+ value: controllers.value
4866
5037
  })));
4867
5038
  };
4868
5039
 
@@ -5864,6 +6035,7 @@ exports.IconFlag = IconFlag;
5864
6035
  exports.IconFourDotsCircle = IconFourDotsCircle;
5865
6036
  exports.IconFourSquares = IconFourSquares;
5866
6037
  exports.IconGavel = IconGavel;
6038
+ exports.IconGif = IconGif;
5867
6039
  exports.IconGift = IconGift;
5868
6040
  exports.IconGrinBeam = IconGrinBeam;
5869
6041
  exports.IconGripVertical = IconGripVertical;
@@ -5902,6 +6074,7 @@ exports.IconSitemap = IconSitemap;
5902
6074
  exports.IconSlidersH = IconSlidersH;
5903
6075
  exports.IconSort = IconSort;
5904
6076
  exports.IconStar = IconStar;
6077
+ exports.IconStarSolid = IconStarSolid;
5905
6078
  exports.IconStickyNoteLines = IconStickyNoteLines;
5906
6079
  exports.IconStopwatch = IconStopwatch;
5907
6080
  exports.IconStrikethrough = IconStrikethrough;
@@ -5949,6 +6122,7 @@ exports.TextAreaField = TextAreaField;
5949
6122
  exports.TextField = TextField;
5950
6123
  exports.TimeField = TimeField;
5951
6124
  exports.Toggle = Toggle;
6125
+ exports.ToolbarSelect = ToolbarSelect;
5952
6126
  exports.Tooltip = Tooltip$1;
5953
6127
  exports.WeekField = WeekField;
5954
6128
  //# sourceMappingURL=index.js.map