@7shifts/sous-chef 2.0.0 → 2.1.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.
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { SelectOption, SelectOptions } from '../../forms/SelectField/types';
3
+ declare type Props<T> = {
4
+ name: string;
5
+ value?: SelectOption<T>;
6
+ placeholder?: string;
7
+ options: SelectOptions<T>;
8
+ onChange?: (e: SelectOption<T>) => void;
9
+ onBlur?: (e: SelectOption<T>) => void;
10
+ disabled?: boolean;
11
+ /** Use a prefix for things like icons or symbols (“$”, “¥”, “£”). */
12
+ prefix: React.ReactNode;
13
+ };
14
+ /** Toolbar component to make a possible selection from predefined options. */
15
+ declare const ToolbarSelect: <T extends unknown>({ name, value, options, onChange, onBlur, placeholder, disabled, prefix, }: Props<T>) => JSX.Element;
16
+ export default ToolbarSelect;
@@ -0,0 +1,5 @@
1
+ declare type GetSelectStylesControls = {
2
+ wrapToNextLine?: boolean;
3
+ };
4
+ export declare const getSelectStyles: ({ wrapToNextLine }: GetSelectStylesControls) => Object;
5
+ export {};
@@ -15,7 +15,9 @@ declare type Props<T> = {
15
15
  placeholder?: string;
16
16
  disabled?: boolean;
17
17
  closeOnSelect?: boolean;
18
+ /** 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 `MultiSelectField` inside a modal. */
19
+ menuShouldScrollIntoView?: boolean;
18
20
  };
19
21
  /** Component to make possible choose from a predefined options. */
20
- declare const MultiSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, label, caption, error, placeholder, disabled, closeOnSelect }: Props<T>) => JSX.Element;
22
+ declare const MultiSelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, label, caption, error, placeholder, disabled, closeOnSelect, menuShouldScrollIntoView }: Props<T>) => JSX.Element;
21
23
  export default MultiSelectField;
@@ -18,7 +18,9 @@ declare type Props<T> = {
18
18
  /** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
19
19
  prefix?: React.ReactNode;
20
20
  asToolbarFilter?: boolean;
21
+ /** 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. */
22
+ menuShouldScrollIntoView?: boolean;
21
23
  };
22
24
  /** Component to make possible choose from a predefined options. */
23
- declare const SelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, SelectedOptionPrefix, label, caption, error, placeholder, disabled, prefix, asToolbarFilter }: Props<T>) => JSX.Element;
25
+ declare const SelectField: <T extends unknown>({ name, id: inputId, value, options, onChange, onBlur, CustomOption: UserCustomOption, SelectedOptionPrefix, label, caption, error, placeholder, disabled, prefix, asToolbarFilter, menuShouldScrollIntoView }: Props<T>) => JSX.Element;
24
26
  export default SelectField;
@@ -1,8 +1,7 @@
1
1
  declare type GetSelectStylesControls = {
2
2
  isInvalid: boolean;
3
- hasPrefix?: boolean;
4
3
  asToolbarFilter?: boolean;
5
4
  wrapToNextLine?: boolean;
6
5
  };
7
- export declare const getSelectStyles: ({ isInvalid, hasPrefix, asToolbarFilter, wrapToNextLine }: GetSelectStylesControls) => Object;
6
+ export declare const getSelectStyles: ({ isInvalid, asToolbarFilter, wrapToNextLine }: GetSelectStylesControls) => Object;
8
7
  export {};
@@ -23,5 +23,5 @@ declare type Props = {
23
23
  suffix?: React.ReactNode;
24
24
  value?: string;
25
25
  };
26
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
27
- export default _default;
26
+ declare const TextField: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
27
+ export default TextField;
package/dist/index.css CHANGED
@@ -784,6 +784,7 @@ Please ask a designer if you have questions about which colours to use.
784
784
  ._azbIG {
785
785
  width: 40px;
786
786
  padding: 16px;
787
+ box-sizing: content-box;
787
788
  }
788
789
  /*********************************
789
790
  For new colours, see _colors.scss.
@@ -830,6 +831,7 @@ Please ask a designer if you have questions about which colours to use.
830
831
 
831
832
  ._LoIvx {
832
833
  width: 40px;
834
+ box-sizing: content-box;
833
835
  }
834
836
 
835
837
  ._3VjFP {
@@ -1151,6 +1153,7 @@ Please ask a designer if you have questions about which colours to use.
1151
1153
  }
1152
1154
  ._20YOA:disabled {
1153
1155
  background-color: #f8f8f8;
1156
+ color: #929292;
1154
1157
  }
1155
1158
 
1156
1159
  ._3kUSh {
@@ -1161,6 +1164,7 @@ Please ask a designer if you have questions about which colours to use.
1161
1164
  border-left: 0 !important;
1162
1165
  border-top-left-radius: 0 !important;
1163
1166
  border-bottom-left-radius: 0 !important;
1167
+ color: #929292;
1164
1168
  }
1165
1169
 
1166
1170
  ._QXJOD {
@@ -1306,7 +1310,7 @@ input:checked ~ ._1i2AX {
1306
1310
  input:disabled + ._1i2AX {
1307
1311
  background-color: #f8f8f8;
1308
1312
  border-color: #f8f8f8;
1309
- color: #c1c1c1;
1313
+ color: #929292;
1310
1314
  }
1311
1315
  input:disabled:checked + ._1i2AX {
1312
1316
  background-color: #e16840;
@@ -1457,6 +1461,7 @@ Please ask a designer if you have questions about which colours to use.
1457
1461
  }
1458
1462
  ._18Rzv:disabled {
1459
1463
  background-color: #f8f8f8;
1464
+ color: #929292;
1460
1465
  }
1461
1466
 
1462
1467
  ._3eD7t {
@@ -1467,6 +1472,7 @@ Please ask a designer if you have questions about which colours to use.
1467
1472
  border-left: 0 !important;
1468
1473
  border-top-left-radius: 0 !important;
1469
1474
  border-bottom-left-radius: 0 !important;
1475
+ color: #929292;
1470
1476
  }
1471
1477
 
1472
1478
  ._-MgeO {
@@ -1542,6 +1548,7 @@ Please ask a designer if you have questions about which colours to use.
1542
1548
  }
1543
1549
  ._1btTx:disabled, ._1Sc9D:disabled {
1544
1550
  background-color: #f8f8f8;
1551
+ color: #929292;
1545
1552
  }
1546
1553
 
1547
1554
  ._2feYp, ._2SNat {
@@ -1552,6 +1559,7 @@ Please ask a designer if you have questions about which colours to use.
1552
1559
  border-left: 0 !important;
1553
1560
  border-top-left-radius: 0 !important;
1554
1561
  border-bottom-left-radius: 0 !important;
1562
+ color: #929292;
1555
1563
  }
1556
1564
 
1557
1565
  ._27J43, ._3eTNi {
@@ -2032,6 +2040,7 @@ Please ask a designer if you have questions about which colours to use.
2032
2040
  }
2033
2041
  ._25rf7:disabled, ._3qVhi input:disabled, ._3qVhi:disabled {
2034
2042
  background-color: #f8f8f8;
2043
+ color: #929292;
2035
2044
  }
2036
2045
 
2037
2046
  ._2M9Ud {
@@ -2042,6 +2051,7 @@ Please ask a designer if you have questions about which colours to use.
2042
2051
  border-left: 0 !important;
2043
2052
  border-top-left-radius: 0 !important;
2044
2053
  border-bottom-left-radius: 0 !important;
2054
+ color: #929292;
2045
2055
  }
2046
2056
 
2047
2057
  ._foqL0 {
@@ -2059,6 +2069,9 @@ Please ask a designer if you have questions about which colours to use.
2059
2069
  ._3df9R {
2060
2070
  border-color: #e76767 !important;
2061
2071
  }
2072
+ ._2Nkht {
2073
+ background-color: #f8f8f8;
2074
+ }
2062
2075
  ._3qVhi input {
2063
2076
  border: none;
2064
2077
  min-width: 20px;
package/dist/index.js CHANGED
@@ -1807,9 +1807,6 @@ var IconGrinBeam = function IconGrinBeam(props) {
1807
1807
  "data-testid": "icon-grin-beam",
1808
1808
  style: getIconStyles(props)
1809
1809
  }, props), React__default.createElement("path", {
1810
- fill: "#fff",
1811
- d: "M0 0h20v20H0z"
1812
- }), React__default.createElement("path", {
1813
1810
  d: "M4.746 9.676a.335.335 0 0 0 .375-.145l.383-.664c.31-.535.774-.844 1.27-.844s.96.309 1.27.844l.383.664c.085.145.25.184.375.145a.314.314 0 0 0 .23-.324c-.133-1.645-1.298-2.79-2.258-2.79S4.65 7.707 4.516 9.352a.317.317 0 0 0 .23.324Zm6.452 0a.335.335 0 0 0 .375-.145l.383-.664c.31-.535.774-.844 1.27-.844s.96.309 1.27.844l.383.664c.085.145.25.184.375.145a.314.314 0 0 0 .23-.324c-.133-1.645-1.299-2.79-2.258-2.79-.96 0-2.125 1.145-2.258 2.79a.317.317 0 0 0 .23.324Zm3.766 2.855c-1.218.38-3.029.594-4.964.594-1.935 0-3.746-.215-4.964-.594a.662.662 0 0 0-.617.121.62.62 0 0 0-.213.579c.37 2.148 3.354 3.644 5.798 3.644s5.423-1.496 5.798-3.645a.624.624 0 0 0-.213-.578.66.66 0 0 0-.625-.12ZM10 15.625c-1.411 0-3.105-.637-3.972-1.574 2.319.422 5.63.422 7.948 0-.871.937-2.565 1.574-3.976 1.574ZM10 .312C4.476.313 0 4.649 0 10s4.476 9.688 10 9.688S20 15.351 20 10 15.524.312 10 .312Zm0 18.125c-4.802 0-8.71-3.785-8.71-8.437 0-4.652 3.908-8.438 8.71-8.438 4.802 0 8.71 3.786 8.71 8.438 0 4.652-3.908 8.438-8.71 8.438Z",
1814
1811
  fill: "currentColor"
1815
1812
  }));
@@ -2908,7 +2905,6 @@ var GREY200 = '#e0e0e0';
2908
2905
  var GREY300 = '#c1c1c1';
2909
2906
  var GREY400 = '#929292';
2910
2907
  var GREY500 = '#555555';
2911
- var GREY600 = '#464646';
2912
2908
 
2913
2909
  var SORT_ORDER = {
2914
2910
  ASC: 'asc',
@@ -3593,10 +3589,11 @@ var Field = function Field(_ref) {
3593
3589
  caption = _ref.caption,
3594
3590
  error = _ref.error,
3595
3591
  children = _ref.children;
3592
+ var shouldRenderLabel = label || typeof label === 'string';
3596
3593
  return React__default.createElement(Stack, {
3597
3594
  space: 8,
3598
3595
  flexItems: true
3599
- }, label !== undefined && React__default.createElement(Label, {
3596
+ }, shouldRenderLabel && React__default.createElement(Label, {
3600
3597
  htmlFor: id
3601
3598
  }, label), children, caption && React__default.createElement(Caption, {
3602
3599
  fieldId: id
@@ -3910,7 +3907,7 @@ var TextAreaField = function TextAreaField(_ref) {
3910
3907
 
3911
3908
  var styles$j = {"text-field":"_20YOA","text-field--invalid":"_3kUSh","text-field--prefixed":"_3IU3Q","text-field--suffixed":"_QXJOD"};
3912
3909
 
3913
- var TextField = function TextField(_ref, ref) {
3910
+ var TextFieldElement = function TextFieldElement(_ref, ref) {
3914
3911
  var _classnames;
3915
3912
 
3916
3913
  var autoComplete = _ref.autoComplete,
@@ -3976,7 +3973,7 @@ var TextField = function TextField(_ref, ref) {
3976
3973
  })));
3977
3974
  };
3978
3975
 
3979
- var TextField$1 = React.forwardRef(TextField);
3976
+ var TextField = React.forwardRef(TextFieldElement);
3980
3977
 
3981
3978
  var useCheckBoxFieldControllers = function useCheckBoxFieldControllers(_ref) {
3982
3979
  var name = _ref.name,
@@ -4467,8 +4464,6 @@ var PasswordField = function PasswordField(_ref) {
4467
4464
 
4468
4465
  var getSelectStyles = function getSelectStyles(_ref) {
4469
4466
  var isInvalid = _ref.isInvalid,
4470
- _ref$hasPrefix = _ref.hasPrefix,
4471
- hasPrefix = _ref$hasPrefix === void 0 ? false : _ref$hasPrefix,
4472
4467
  _ref$asToolbarFilter = _ref.asToolbarFilter,
4473
4468
  asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
4474
4469
  _ref$wrapToNextLine = _ref.wrapToNextLine,
@@ -4480,23 +4475,24 @@ var getSelectStyles = function getSelectStyles(_ref) {
4480
4475
  flexWrap: wrapToNextLine ? 'wrap' : 'nowrap'
4481
4476
  });
4482
4477
  },
4483
- container: function container(base) {
4478
+ container: function container(base, state) {
4484
4479
  return Object.assign({}, base, {
4485
4480
  flex: '1',
4486
4481
  fontFamily: FONT_FAMILY,
4487
- minWidth: '64px'
4482
+ minWidth: '64px',
4483
+ backgroundColor: state.isDisabled && !asToolbarFilter ? GREY100 : WHITE,
4484
+ position: 'initial'
4488
4485
  });
4489
4486
  },
4490
4487
  control: function control(base, state) {
4491
4488
  return Object.assign({}, base, {
4492
4489
  borderColor: state.isFocused ? EGGPLANT400 : borderColor,
4493
- color: state.isDisabled ? GREY200 : GREY500,
4490
+ color: state.isDisabled ? GREY400 : GREY500,
4494
4491
  boxShadow: state.isFocused ? "0 0 8px " + EGGPLANT300 : 'none',
4495
4492
  '&:hover': 'none',
4496
- backgroundColor: state.isDisabled ? GREY100 : state.isFocused ? WHITE : WHITE,
4493
+ background: 'none',
4497
4494
  fontSize: '14px',
4498
4495
  cursor: 'pointer',
4499
- background: hasPrefix && 'transparent',
4500
4496
  border: asToolbarFilter && 'none'
4501
4497
  });
4502
4498
  },
@@ -4505,9 +4501,9 @@ var getSelectStyles = function getSelectStyles(_ref) {
4505
4501
  display: 'none'
4506
4502
  };
4507
4503
  },
4508
- placeholder: function placeholder(base) {
4504
+ placeholder: function placeholder(base, state) {
4509
4505
  return _extends({}, base, {
4510
- color: GREY300,
4506
+ color: state.isDisabled && asToolbarFilter ? GREY300 : GREY400,
4511
4507
  marginRight: 0,
4512
4508
  position: 'static',
4513
4509
  transform: 'initial',
@@ -4526,7 +4522,7 @@ var getSelectStyles = function getSelectStyles(_ref) {
4526
4522
  },
4527
4523
  singleValue: function singleValue(base, state) {
4528
4524
  return Object.assign({}, base, {
4529
- color: state.isDisabled ? GREY300 : null,
4525
+ color: state.isDisabled ? GREY400 : null,
4530
4526
  marginRight: 0,
4531
4527
  position: 'static',
4532
4528
  transform: 'initial',
@@ -4537,14 +4533,14 @@ var getSelectStyles = function getSelectStyles(_ref) {
4537
4533
  },
4538
4534
  dropdownIndicator: function dropdownIndicator(base, state) {
4539
4535
  return Object.assign({}, base, {
4540
- color: state.isDisabled ? GREY200 : GREY400,
4536
+ color: state.isDisabled ? GREY300 : GREY400,
4541
4537
  padding: '8px'
4542
4538
  });
4543
4539
  },
4544
4540
  option: function option(base, state) {
4545
4541
  return Object.assign({}, base, {
4546
4542
  backgroundColor: state.isDisabled ? null : state.isSelected ? EGGPLANT200 : state.isFocused ? GREY100 : WHITE,
4547
- color: state.isDisabled ? GREY300 : state.isSelected ? EGGPLANT700 : GREY500,
4543
+ color: state.isDisabled ? GREY400 : state.isSelected ? EGGPLANT700 : GREY500,
4548
4544
  cursor: 'pointer',
4549
4545
  fontFamily: FONT_FAMILY,
4550
4546
  fontSize: '14px'
@@ -4559,14 +4555,15 @@ var getSelectStyles = function getSelectStyles(_ref) {
4559
4555
  return Object.assign({}, base, {
4560
4556
  ':hover': {
4561
4557
  backgroundColor: 'none',
4562
- color: GREY600
4558
+ color: GREY500
4563
4559
  }
4564
4560
  });
4565
4561
  },
4566
4562
  clearIndicator: function clearIndicator(base) {
4567
4563
  return Object.assign({}, base, {
4564
+ color: GREY400,
4568
4565
  ':hover': {
4569
- color: GREY600
4566
+ color: GREY500
4570
4567
  }
4571
4568
  });
4572
4569
  },
@@ -4607,7 +4604,9 @@ var MultiSelectField = function MultiSelectField(_ref) {
4607
4604
  placeholder = _ref.placeholder,
4608
4605
  disabled = _ref.disabled,
4609
4606
  _ref$closeOnSelect = _ref.closeOnSelect,
4610
- closeOnSelect = _ref$closeOnSelect === void 0 ? false : _ref$closeOnSelect;
4607
+ closeOnSelect = _ref$closeOnSelect === void 0 ? false : _ref$closeOnSelect,
4608
+ _ref$menuShouldScroll = _ref.menuShouldScrollIntoView,
4609
+ menuShouldScrollIntoView = _ref$menuShouldScroll === void 0 ? true : _ref$menuShouldScroll;
4611
4610
  var controllers = useMultiSelectFieldControllers({
4612
4611
  name: name,
4613
4612
  id: inputId,
@@ -4645,6 +4644,18 @@ var MultiSelectField = function MultiSelectField(_ref) {
4645
4644
  CustomComponent: UserCustomOption
4646
4645
  }, props));
4647
4646
  } : Select.components.Option
4647
+ },
4648
+ menuShouldScrollIntoView: menuShouldScrollIntoView,
4649
+ menuPlacement: menuShouldScrollIntoView ? 'bottom' : 'auto',
4650
+ menuPosition: menuShouldScrollIntoView ? 'absolute' : 'fixed',
4651
+ closeMenuOnScroll: function closeMenuOnScroll(e) {
4652
+ if (menuShouldScrollIntoView || !e.target) {
4653
+ return false;
4654
+ }
4655
+
4656
+ var target = e.target;
4657
+ var isScrollingTheMenu = typeof target.className === 'string' && target.className.includes('MenuList');
4658
+ return !isScrollingTheMenu;
4648
4659
  }
4649
4660
  }));
4650
4661
  };
@@ -4753,7 +4764,9 @@ var SelectField = function SelectField(_ref) {
4753
4764
  disabled = _ref.disabled,
4754
4765
  prefix = _ref.prefix,
4755
4766
  _ref$asToolbarFilter = _ref.asToolbarFilter,
4756
- asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter;
4767
+ asToolbarFilter = _ref$asToolbarFilter === void 0 ? false : _ref$asToolbarFilter,
4768
+ _ref$menuShouldScroll = _ref.menuShouldScrollIntoView,
4769
+ menuShouldScrollIntoView = _ref$menuShouldScroll === void 0 ? true : _ref$menuShouldScroll;
4757
4770
  var controllers = useSelectFieldControllers({
4758
4771
  name: name,
4759
4772
  id: inputId,
@@ -4780,7 +4793,6 @@ var SelectField = function SelectField(_ref) {
4780
4793
  placeholder: placeholder,
4781
4794
  styles: getSelectStyles({
4782
4795
  isInvalid: hasError,
4783
- hasPrefix: !!prefix,
4784
4796
  asToolbarFilter: asToolbarFilter
4785
4797
  }),
4786
4798
  menuPortalTarget: document.body,
@@ -4797,6 +4809,18 @@ var SelectField = function SelectField(_ref) {
4797
4809
  CustomPrefixComponent: SelectedOptionPrefix
4798
4810
  }, props));
4799
4811
  } : Select.components.Control
4812
+ },
4813
+ menuShouldScrollIntoView: menuShouldScrollIntoView,
4814
+ menuPlacement: menuShouldScrollIntoView ? 'bottom' : 'auto',
4815
+ menuPosition: menuShouldScrollIntoView ? 'absolute' : 'fixed',
4816
+ closeMenuOnScroll: function closeMenuOnScroll(e) {
4817
+ if (menuShouldScrollIntoView || !e.target) {
4818
+ return false;
4819
+ }
4820
+
4821
+ var target = e.target;
4822
+ var isScrollingTheMenu = typeof target.className === 'string' && target.className.includes('MenuList');
4823
+ return !isScrollingTheMenu;
4800
4824
  }
4801
4825
  })));
4802
4826
  };
@@ -5042,7 +5066,7 @@ var useRangeFieldControllers = function useRangeFieldControllers(_ref) {
5042
5066
  return initialControllers;
5043
5067
  };
5044
5068
 
5045
- var styles$s = {"container":"_1Ini2","wrapper":"_21VnL","interactionDisabled":"_wJ6Cb","DayPicker-Day":"_1c48y","navBar":"_3KwsN","todayButton":"_10CBO","navButtonInteractionDisabled":"_dHL-D","navButtonPrev":"_6kNi3","navButtonNext":"_13W_e","months":"_1FeSY","month":"_wU6A4","caption":"_AMbAo","weekdays":"_1LEst","weekdaysRow":"_2XECo","weekday":"_1C5ry","body":"_11F-Y","week":"_3MAFk","day":"_mG73F","disabled":"_2pgnH","selected":"_MtLaz","outside":"_CRqyX","footer":"_2KG9-","today":"_2JA2y","overlayWrapper":"_1JWbc","overlay":"_2tL6g","weekNumber":"_3u72O","text-field":"_25rf7","date-range-field":"_3qVhi","text-field--invalid":"_2M9Ud","text-field--prefixed":"_3TUb2","text-field--suffixed":"_foqL0","date-range-field--invalid":"_3df9R"};
5069
+ var styles$s = {"container":"_1Ini2","wrapper":"_21VnL","interactionDisabled":"_wJ6Cb","DayPicker-Day":"_1c48y","navBar":"_3KwsN","todayButton":"_10CBO","navButtonInteractionDisabled":"_dHL-D","navButtonPrev":"_6kNi3","navButtonNext":"_13W_e","months":"_1FeSY","month":"_wU6A4","caption":"_AMbAo","weekdays":"_1LEst","weekdaysRow":"_2XECo","weekday":"_1C5ry","body":"_11F-Y","week":"_3MAFk","day":"_mG73F","disabled":"_2pgnH","selected":"_MtLaz","outside":"_CRqyX","footer":"_2KG9-","today":"_2JA2y","overlayWrapper":"_1JWbc","overlay":"_2tL6g","weekNumber":"_3u72O","text-field":"_25rf7","date-range-field":"_3qVhi","text-field--invalid":"_2M9Ud","text-field--prefixed":"_3TUb2","text-field--suffixed":"_foqL0","date-range-field--invalid":"_3df9R","date-range-field--disabled":"_2Nkht"};
5046
5070
 
5047
5071
  var FromDate = function FromDate(_ref) {
5048
5072
  var name = _ref.name,
@@ -5173,7 +5197,7 @@ var ToDate = function ToDate(_ref, ref) {
5173
5197
  var ToDate$1 = React.forwardRef(ToDate);
5174
5198
 
5175
5199
  var DateRangeField = function DateRangeField(_ref) {
5176
- var _classnames;
5200
+ var _classnames, _classnames2;
5177
5201
 
5178
5202
  var name = _ref.name,
5179
5203
  inputId = _ref.id,
@@ -5212,7 +5236,7 @@ var DateRangeField = function DateRangeField(_ref) {
5212
5236
  start = _controllers$value.start,
5213
5237
  end = _controllers$value.end;
5214
5238
  return React__default.createElement(Field, Object.assign({}, fieldProps), React__default.createElement("div", {
5215
- className: classnames(styles$s['date-range-field'], (_classnames = {}, _classnames[styles$s['date-range-field--invalid']] = hasError, _classnames))
5239
+ className: classnames(styles$s['date-range-field'], (_classnames = {}, _classnames[styles$s['date-range-field--invalid']] = hasError, _classnames), (_classnames2 = {}, _classnames2[styles$s['date-range-field--disabled']] = disabled, _classnames2))
5216
5240
  }, React__default.createElement(IconCalendarAlt, {
5217
5241
  size: "medium",
5218
5242
  color: GREY400
@@ -5852,7 +5876,7 @@ exports.SelectField = SelectField;
5852
5876
  exports.Spinner = Spinner;
5853
5877
  exports.Stack = Stack;
5854
5878
  exports.TextAreaField = TextAreaField;
5855
- exports.TextField = TextField$1;
5879
+ exports.TextField = TextField;
5856
5880
  exports.Toggle = Toggle;
5857
5881
  exports.Tooltip = Tooltip$1;
5858
5882
  exports.WeekField = WeekField;