@7shifts/sous-chef 3.35.0-beta.3 → 3.35.0-beta.5

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.
@@ -5,7 +5,27 @@ import type { Props as TextFieldProps } from '../TextField/TextField';
5
5
  *
6
6
  * At the end, it is just a string formatted nicely. **You are in charge of validating the value and parsing it back to a value that you can use on your application**.
7
7
  */
8
- declare const CurrencyField: React.ForwardRefExoticComponent<TextFieldProps & {
8
+ declare const CurrencyField: React.ForwardRefExoticComponent<{
9
+ autoComplete?: ("on" | "off") | undefined;
10
+ autoFocus?: boolean | undefined;
11
+ caption?: React.ReactNode;
12
+ defaultValue?: string | undefined;
13
+ disabled?: boolean | undefined;
14
+ error?: React.ReactNode;
15
+ id?: string | undefined;
16
+ label?: React.ReactNode;
17
+ maxLength?: number | undefined;
18
+ name: string;
19
+ onBlur?: ((value: string) => void) | undefined;
20
+ onChange?: ((value: string) => void) | undefined;
21
+ onFocus?: ((value: string) => void) | undefined;
22
+ onKeyDown?: ((key: string) => void) | undefined;
23
+ placeholder?: string | undefined;
24
+ prefix?: React.ReactNode;
25
+ suffix?: React.ReactNode;
26
+ value?: string | undefined;
27
+ testId?: string | undefined;
28
+ } & import("../../foundation/types").DataProps & {
9
29
  currencySymbol: string;
10
30
  step?: number | undefined;
11
31
  } & Omit<TextFieldProps, "prefix" | "suffix"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { DataProps } from '../../foundation/types';
2
3
  type Props = {
3
4
  id: string;
4
5
  label?: React.ReactNode;
@@ -6,6 +7,6 @@ type Props = {
6
7
  error?: React.ReactNode;
7
8
  children: React.ReactNode;
8
9
  testId?: string;
9
- };
10
+ } & DataProps;
10
11
  declare const Field: React.FC<Props>;
11
12
  export default Field;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { DataProps } from '../../foundation/types';
2
3
  type AutoCompleteType = 'off' | 'on';
3
4
  export type Props = {
4
5
  autoComplete?: AutoCompleteType;
@@ -23,6 +24,29 @@ export type Props = {
23
24
  suffix?: React.ReactNode;
24
25
  value?: string;
25
26
  testId?: string;
26
- };
27
- declare const TextField: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
27
+ } & DataProps;
28
+ declare const TextField: React.ForwardRefExoticComponent<{
29
+ autoComplete?: AutoCompleteType | undefined;
30
+ autoFocus?: boolean | undefined;
31
+ caption?: React.ReactNode;
32
+ defaultValue?: string | undefined;
33
+ disabled?: boolean | undefined;
34
+ error?: React.ReactNode;
35
+ /** If not provided it will generate a random id so the label links properly with the text input */
36
+ id?: string | undefined;
37
+ label?: React.ReactNode;
38
+ maxLength?: number | undefined;
39
+ name: string;
40
+ onBlur?: ((value: string) => void) | undefined;
41
+ onChange?: ((value: string) => void) | undefined;
42
+ onFocus?: ((value: string) => void) | undefined;
43
+ onKeyDown?: ((key: string) => void) | undefined;
44
+ placeholder?: string | undefined;
45
+ /** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
46
+ prefix?: React.ReactNode;
47
+ /** Use suffix for things like units of measure (“in”, “cm”, ”hours”) or icons. */
48
+ suffix?: React.ReactNode;
49
+ value?: string | undefined;
50
+ testId?: string | undefined;
51
+ } & DataProps & React.RefAttributes<HTMLInputElement>>;
28
52
  export default TextField;
@@ -1,10 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { RefType } from '../../utils/types';
3
3
  import type { Props } from './TextField';
4
+ import type { DataProps } from '../../foundation/types';
4
5
  type UseTextFieldProps = Props & {
5
6
  ref: RefType<HTMLInputElement>;
6
- };
7
- export declare const useTextField: ({ autoComplete, autoFocus, defaultValue, disabled, error, id, maxLength, name, caption, label, onBlur, onChange, onFocus, onKeyDown, placeholder, value, ref, testId }: UseTextFieldProps) => {
7
+ } & DataProps;
8
+ export declare const useTextField: ({ autoComplete, autoFocus, defaultValue, disabled, error, id, maxLength, name, caption, label, onBlur, onChange, onFocus, onKeyDown, placeholder, value, ref, testId, ...dataProps }: UseTextFieldProps) => {
8
9
  inputProps: {
9
10
  'aria-describedby': string;
10
11
  'aria-invalid': boolean;
@@ -28,6 +29,8 @@ export declare const useTextField: ({ autoComplete, autoFocus, defaultValue, dis
28
29
  value: string | undefined;
29
30
  };
30
31
  fieldProps: {
32
+ prefix?: import("react").ReactNode;
33
+ suffix?: import("react").ReactNode;
31
34
  caption: import("react").ReactNode;
32
35
  error: import("react").ReactNode;
33
36
  label: import("react").ReactNode;
@@ -9,7 +9,27 @@ type Props = TextFieldProps & {
9
9
  endField?: boolean;
10
10
  duration?: string;
11
11
  };
12
- export declare const TimeRangeSelector: React.ForwardRefExoticComponent<TextFieldProps & {
12
+ export declare const TimeRangeSelector: React.ForwardRefExoticComponent<{
13
+ autoComplete?: ("on" | "off") | undefined;
14
+ autoFocus?: boolean | undefined;
15
+ caption?: React.ReactNode;
16
+ defaultValue?: string | undefined;
17
+ disabled?: boolean | undefined;
18
+ error?: React.ReactNode;
19
+ id?: string | undefined;
20
+ label?: React.ReactNode;
21
+ maxLength?: number | undefined;
22
+ name: string;
23
+ onBlur?: ((value: string) => void) | undefined;
24
+ onChange?: ((value: string) => void) | undefined;
25
+ onFocus?: ((value: string) => void) | undefined;
26
+ onKeyDown?: ((key: string) => void) | undefined;
27
+ placeholder?: string | undefined;
28
+ prefix?: React.ReactNode;
29
+ suffix?: React.ReactNode;
30
+ value?: string | undefined;
31
+ testId?: string | undefined;
32
+ } & import("../../foundation/types").DataProps & {
13
33
  onClick?: (() => void) | undefined;
14
34
  interval?: TimeInterval | undefined;
15
35
  startTime?: string | undefined;
package/dist/index.js CHANGED
@@ -5013,17 +5013,19 @@ var ErrorMessage = function ErrorMessage(_ref) {
5013
5013
  }), children));
5014
5014
  };
5015
5015
 
5016
+ var _excluded$2q = ["id", "label", "caption", "error", "children"];
5016
5017
  var Field = function Field(_ref) {
5017
5018
  var id = _ref.id,
5018
5019
  label = _ref.label,
5019
5020
  caption = _ref.caption,
5020
5021
  error = _ref.error,
5021
- children = _ref.children;
5022
+ children = _ref.children,
5023
+ dataProps = _objectWithoutPropertiesLoose(_ref, _excluded$2q);
5022
5024
  var shouldRenderLabel = label || typeof label === 'string';
5023
- return React__default.createElement(Stack, {
5025
+ return React__default.createElement(Stack, _extends({
5024
5026
  space: 8,
5025
5027
  flexItems: true
5026
- }, shouldRenderLabel && React__default.createElement(Label, {
5028
+ }, dataProps), shouldRenderLabel && React__default.createElement(Label, {
5027
5029
  htmlFor: id
5028
5030
  }, label), children, caption && React__default.createElement(Caption, {
5029
5031
  fieldId: id
@@ -5138,6 +5140,7 @@ var useFieldControllers = function useFieldControllers(_ref) {
5138
5140
 
5139
5141
  var styles$k = {"text-field":"_3BVGA","text-field--invalid":"_FLffs","text-field--prefixed":"_3qeO1","text-field--suffixed":"_3QPln"};
5140
5142
 
5143
+ var _excluded$2r = ["autoComplete", "autoFocus", "defaultValue", "disabled", "error", "id", "maxLength", "name", "caption", "label", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "value", "ref", "testId"];
5141
5144
  var useTextField = function useTextField(_ref) {
5142
5145
  var _classnames;
5143
5146
  var autoComplete = _ref.autoComplete,
@@ -5157,7 +5160,8 @@ var useTextField = function useTextField(_ref) {
5157
5160
  placeholder = _ref.placeholder,
5158
5161
  value = _ref.value,
5159
5162
  ref = _ref.ref,
5160
- testId = _ref.testId;
5163
+ testId = _ref.testId,
5164
+ dataProps = _objectWithoutPropertiesLoose(_ref, _excluded$2r);
5161
5165
  var controllers = useFieldControllers({
5162
5166
  error: error,
5163
5167
  id: id,
@@ -5191,13 +5195,13 @@ var useTextField = function useTextField(_ref) {
5191
5195
  type: 'text',
5192
5196
  value: controllers.value
5193
5197
  };
5194
- var fieldProps = {
5198
+ var fieldProps = _extends({
5195
5199
  caption: caption,
5196
5200
  error: controllers.error,
5197
5201
  label: label,
5198
5202
  id: inputProps.id,
5199
5203
  name: name
5200
- };
5204
+ }, dataProps);
5201
5205
  return {
5202
5206
  inputProps: inputProps,
5203
5207
  fieldProps: fieldProps
@@ -5278,7 +5282,7 @@ var TimeFieldInput = function TimeFieldInput(_ref) {
5278
5282
  })));
5279
5283
  };
5280
5284
 
5281
- var _excluded$2q = ["placeholder", "autoComplete", "selectedTimeOption", "prefix", "startTime", "duration"];
5285
+ var _excluded$2s = ["placeholder", "autoComplete", "selectedTimeOption", "prefix", "startTime", "duration"];
5282
5286
  var TimeFieldDropdownElement = function TimeFieldDropdownElement(_ref, ref) {
5283
5287
  var _ref$placeholder = _ref.placeholder,
5284
5288
  placeholder = _ref$placeholder === void 0 ? '9:00 AM' : _ref$placeholder,
@@ -5287,7 +5291,7 @@ var TimeFieldDropdownElement = function TimeFieldDropdownElement(_ref, ref) {
5287
5291
  selectedTimeOption = _ref.selectedTimeOption,
5288
5292
  prefix = _ref.prefix,
5289
5293
  duration = _ref.duration,
5290
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2q);
5294
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2s);
5291
5295
  var _useTextField = useTextField(_extends({}, allOtherProps, {
5292
5296
  placeholder: placeholder,
5293
5297
  autoComplete: autoComplete,
@@ -5579,7 +5583,7 @@ var ALIGNMENTS = {
5579
5583
 
5580
5584
  var styles$p = {"text":"_32amZ","text__body":"_ayJRy","text__caption":"_3g1gi","text__insight":"_20Phg","text--bold":"_A0AyZ","text--italic":"_3jayQ","text--underline":"_GOcFw","text--monospace":"_3TfGK","text--align-left":"_b8gto","text--align-right":"_ecyH1","text--align-center":"_xBgXc","text--align-justify":"_280D5"};
5581
5585
 
5582
- var _excluded$2r = ["children", "as", "emphasis", "alignment", "color", "testId"];
5586
+ var _excluded$2t = ["children", "as", "emphasis", "alignment", "color", "testId"];
5583
5587
  var Text = function Text(_ref) {
5584
5588
  var _classnames;
5585
5589
  var children = _ref.children,
@@ -5589,7 +5593,7 @@ var Text = function Text(_ref) {
5589
5593
  alignment = _ref.alignment,
5590
5594
  color = _ref.color,
5591
5595
  testId = _ref.testId,
5592
- positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$2r);
5596
+ positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$2t);
5593
5597
  var positionStyles = usePositionStyles(positionProps);
5594
5598
  var elementProps = {
5595
5599
  style: _extends({
@@ -5795,7 +5799,7 @@ var KebabMenu = function KebabMenu(_ref) {
5795
5799
 
5796
5800
  var styles$q = {"card":"_2o1ez","card__body":"_1PFiJ","card__body--interactive":"_3dQzA","card--focus":"_5dJZO","card__body--focus":"_DWgI_","card__body--disabled":"_24dNX","card__body--with-kebab":"_2LVaD","card__kebab":"_L9ZA7","card__kebab--disabled":"_5YidV"};
5797
5801
 
5798
- var _excluded$2s = ["children", "onClick", "isSelected", "disabled", "actions", "testId"];
5802
+ var _excluded$2u = ["children", "onClick", "isSelected", "disabled", "actions", "testId"];
5799
5803
  var Card = function Card(_ref) {
5800
5804
  var _classnames, _classnames2, _classnames3;
5801
5805
  var children = _ref.children,
@@ -5806,7 +5810,7 @@ var Card = function Card(_ref) {
5806
5810
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
5807
5811
  actions = _ref.actions,
5808
5812
  testId = _ref.testId,
5809
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$2s);
5813
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2u);
5810
5814
  var _getPositionProps = getPositionProps(rest),
5811
5815
  positionProps = _getPositionProps.positionProps,
5812
5816
  otherProps = _getPositionProps.otherProps;
@@ -6146,14 +6150,14 @@ var SKELETON_COMPONENT = {
6146
6150
  PILL: 'pill'
6147
6151
  };
6148
6152
 
6149
- var _excluded$2t = ["as", "testId", "width", "height"];
6153
+ var _excluded$2v = ["as", "testId", "width", "height"];
6150
6154
  var Skeleton = function Skeleton(_ref) {
6151
6155
  var _classnames;
6152
6156
  var as = _ref.as,
6153
6157
  testId = _ref.testId,
6154
6158
  width = _ref.width,
6155
6159
  height = _ref.height,
6156
- positionStyles = _objectWithoutPropertiesLoose(_ref, _excluded$2t);
6160
+ positionStyles = _objectWithoutPropertiesLoose(_ref, _excluded$2v);
6157
6161
  var positioning = usePositionStyles(positionStyles);
6158
6162
  return React__default.createElement("div", {
6159
6163
  "data-testid": testId,
@@ -6625,7 +6629,7 @@ var useCheckBoxFieldControllers = function useCheckBoxFieldControllers(_ref) {
6625
6629
 
6626
6630
  var styles$H = {"check-box-field":"_2Rbk6","check-box-field__caption":"_1GW-E","check-box-field__custom-input":"_2W10t"};
6627
6631
 
6628
- var _excluded$2u = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
6632
+ var _excluded$2w = ["name", "id", "checked", "onChange", "onBlur", "label", "caption", "error", "disabled", "testId"];
6629
6633
  var CheckboxField = function CheckboxField(_ref) {
6630
6634
  var name = _ref.name,
6631
6635
  inputId = _ref.id,
@@ -6637,7 +6641,7 @@ var CheckboxField = function CheckboxField(_ref) {
6637
6641
  error = _ref.error,
6638
6642
  disabled = _ref.disabled,
6639
6643
  testId = _ref.testId,
6640
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2u);
6644
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2w);
6641
6645
  var controllers = useCheckBoxFieldControllers({
6642
6646
  name: name,
6643
6647
  id: inputId,
@@ -6706,7 +6710,7 @@ var useLocalStorage = function useLocalStorage(key, initialValue) {
6706
6710
 
6707
6711
  var styles$I = {"hint-modal":"_1b47y","hint-modal--after-open":"_2MB4p","hint-modal--before-close":"_3VYQo","hint-modal__overlay":"_3Enme","hint-modal__image":"_2Nn7v","hint-modal__body":"_bzN9e","hint-modal__close-button":"_3xbis"};
6708
6712
 
6709
- var _excluded$2v = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "testId"];
6713
+ var _excluded$2x = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "testId"];
6710
6714
  var HintModal = function HintModal(_ref) {
6711
6715
  var header = _ref.header,
6712
6716
  children = _ref.children,
@@ -6715,7 +6719,7 @@ var HintModal = function HintModal(_ref) {
6715
6719
  modalId = _ref.modalId,
6716
6720
  primaryButton = _ref.primaryButton,
6717
6721
  testId = _ref.testId,
6718
- positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$2v);
6722
+ positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$2x);
6719
6723
  var _useState = React.useState(false),
6720
6724
  doNotShowAgain = _useState[0],
6721
6725
  setDoNotShowAgain = _useState[1];
@@ -6939,7 +6943,7 @@ var DataTableEditableCellElement = function DataTableEditableCellElement(_ref, r
6939
6943
  };
6940
6944
  var DataTableEditableCell = React.forwardRef(DataTableEditableCellElement);
6941
6945
 
6942
- var _excluded$2w = ["children", "onClick", "isSelected", "actions", "hasDefaultPadding", "hasDefaultCell", "testId"];
6946
+ var _excluded$2y = ["children", "onClick", "isSelected", "actions", "hasDefaultPadding", "hasDefaultCell", "testId"];
6943
6947
  var DataTableRowComponent = function DataTableRowComponent(_ref, ref) {
6944
6948
  var _classnames;
6945
6949
  var children = _ref.children,
@@ -6951,7 +6955,7 @@ var DataTableRowComponent = function DataTableRowComponent(_ref, ref) {
6951
6955
  _ref$hasDefaultCell = _ref.hasDefaultCell,
6952
6956
  hasDefaultCell = _ref$hasDefaultCell === void 0 ? true : _ref$hasDefaultCell,
6953
6957
  testId = _ref.testId,
6954
- nativeDivProps = _objectWithoutPropertiesLoose(_ref, _excluded$2w);
6958
+ nativeDivProps = _objectWithoutPropertiesLoose(_ref, _excluded$2y);
6955
6959
  var _useDataTableContext = useDataTableContext(),
6956
6960
  showActionMenu = _useDataTableContext.showActionMenu;
6957
6961
  var styleNames = classnames(styles$z['item'], (_classnames = {}, _classnames[styles$z['clickable']] = onClick, _classnames[styles$z['selected']] = isSelected, _classnames));
@@ -7363,11 +7367,11 @@ var isReactSelectElement = function isReactSelectElement(element) {
7363
7367
 
7364
7368
  var styles$M = {"custom-control":"_1JTKu"};
7365
7369
 
7366
- var _excluded$2x = ["children"];
7370
+ var _excluded$2z = ["children"];
7367
7371
  function CustomControl(_ref) {
7368
7372
  var _props$getValue;
7369
7373
  var children = _ref.children,
7370
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2x);
7374
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2z);
7371
7375
  var SelectedOptionPrefix = props.selectProps.componentsProps.SelectedOptionPrefix;
7372
7376
  var selectedOption = (_props$getValue = props.getValue()) === null || _props$getValue === void 0 ? void 0 : _props$getValue[0];
7373
7377
  return React__default.createElement(Select.components.Control, _extends({}, props), SelectedOptionPrefix && selectedOption ? React__default.createElement("div", {
@@ -7384,10 +7388,10 @@ function CustomControl(_ref) {
7384
7388
  }, props)), children)) : children);
7385
7389
  }
7386
7390
 
7387
- var _excluded$2y = ["children"];
7391
+ var _excluded$2A = ["children"];
7388
7392
  function CustomOption(_ref) {
7389
7393
  var children = _ref.children,
7390
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2y);
7394
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2A);
7391
7395
  var UserCustomOption = props.selectProps.componentsProps.UserCustomOption;
7392
7396
  return React__default.createElement(Select.components.Option, _extends({}, props), React__default.createElement(UserCustomOption, _extends({}, props), children));
7393
7397
  }
@@ -7541,10 +7545,10 @@ var CustomContainer = function CustomContainer(props) {
7541
7545
 
7542
7546
  var styles$N = {"custom-menu-text-field":"_2bu6-","custom-menu-hr":"_1cgU7","custom-menu-div":"_1khlU"};
7543
7547
 
7544
- var _excluded$2z = ["children"];
7548
+ var _excluded$2B = ["children"];
7545
7549
  function CustomMenu(_ref) {
7546
7550
  var children = _ref.children,
7547
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2z);
7551
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2B);
7548
7552
  var _props$selectProps$co = props.selectProps.componentsProps,
7549
7553
  creatableButton = _props$selectProps$co.creatableButton,
7550
7554
  onMenuInputFocus = _props$selectProps$co.onMenuInputFocus,
@@ -8263,11 +8267,11 @@ var TextAreaField = function TextAreaField(_ref) {
8263
8267
  }, toolbar)));
8264
8268
  };
8265
8269
 
8266
- var _excluded$2A = ["prefix", "suffix"];
8270
+ var _excluded$2C = ["prefix", "suffix"];
8267
8271
  var TextFieldElement = function TextFieldElement(_ref, ref) {
8268
8272
  var prefix = _ref.prefix,
8269
8273
  suffix = _ref.suffix,
8270
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2A);
8274
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2C);
8271
8275
  var _useTextField = useTextField(_extends({}, props, {
8272
8276
  ref: ref
8273
8277
  })),
@@ -8855,12 +8859,12 @@ var MultiSelectField = function MultiSelectField(_ref) {
8855
8859
 
8856
8860
  var styles$11 = {"custom-list":"_12jq3"};
8857
8861
 
8858
- var _excluded$2B = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
8862
+ var _excluded$2D = ["children", "hasMoreOptions", "hasMoreOptionsFirstLoad"];
8859
8863
  var CustomList = function CustomList(_ref) {
8860
8864
  var children = _ref.children,
8861
8865
  hasMoreOptions = _ref.hasMoreOptions,
8862
8866
  hasMoreOptionsFirstLoad = _ref.hasMoreOptionsFirstLoad,
8863
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2B);
8867
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2D);
8864
8868
  var showFooter = hasMoreOptions;
8865
8869
  if (props.selectProps.inputValue === '' && typeof hasMoreOptionsFirstLoad === 'boolean') {
8866
8870
  showFooter = hasMoreOptionsFirstLoad;
@@ -8872,10 +8876,10 @@ var CustomList = function CustomList(_ref) {
8872
8876
  }, getLocalizedString('main.START_TYPING_TO_SEE_MORE_OPTIONS')))));
8873
8877
  };
8874
8878
 
8875
- var _excluded$2C = ["loadOptions"];
8879
+ var _excluded$2E = ["loadOptions"];
8876
8880
  var AsyncSelectField = function AsyncSelectField(_ref) {
8877
8881
  var loadOptions = _ref.loadOptions,
8878
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2C);
8882
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2E);
8879
8883
  var _useState = React.useState(false),
8880
8884
  hasMoreOptions = _useState[0],
8881
8885
  setHasMoreOptions = _useState[1];
@@ -9685,7 +9689,7 @@ var TimeFieldDropdown = function TimeFieldDropdown(_ref) {
9685
9689
  })));
9686
9690
  };
9687
9691
 
9688
- var _excluded$2D = ["interval", "startTime", "prefix", "endField", "duration"];
9692
+ var _excluded$2F = ["interval", "startTime", "prefix", "endField", "duration"];
9689
9693
  var TimeFieldElement = function TimeFieldElement(_ref, forwardedRef) {
9690
9694
  var _ref$interval = _ref.interval,
9691
9695
  interval = _ref$interval === void 0 ? 15 : _ref$interval,
@@ -9694,7 +9698,7 @@ var TimeFieldElement = function TimeFieldElement(_ref, forwardedRef) {
9694
9698
  _ref$endField = _ref.endField,
9695
9699
  endField = _ref$endField === void 0 ? false : _ref$endField,
9696
9700
  duration = _ref.duration,
9697
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2D);
9701
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2F);
9698
9702
  var internalRef = React.useRef(null);
9699
9703
  var ref = forwardedRef || internalRef;
9700
9704
  var _useState = React.useState(allOtherProps.defaultValue),
@@ -9878,13 +9882,13 @@ var styles$14 = {"currency-field__mask-display":"_2K8Ob"};
9878
9882
  var CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
9879
9883
  var CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
9880
9884
 
9881
- var _excluded$2E = ["currencySymbol", "step"];
9885
+ var _excluded$2G = ["currencySymbol", "step"];
9882
9886
  var CurrencyFieldElement = function CurrencyFieldElement(_ref, forwardedRef) {
9883
9887
  var _ref$currencySymbol = _ref.currencySymbol,
9884
9888
  currencySymbol = _ref$currencySymbol === void 0 ? '$' : _ref$currencySymbol,
9885
9889
  _ref$step = _ref.step,
9886
9890
  step = _ref$step === void 0 ? 0.01 : _ref$step,
9887
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2E);
9891
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2G);
9888
9892
  var _useState = React.useState(CURRENCY_DISPLAY_DEFAULT_MARGIN),
9889
9893
  displayPadding = _useState[0],
9890
9894
  setDisplayPadding = _useState[1];
@@ -9948,7 +9952,7 @@ var CurrencyFieldElement = function CurrencyFieldElement(_ref, forwardedRef) {
9948
9952
  };
9949
9953
  var CurrencyField = React.forwardRef(CurrencyFieldElement);
9950
9954
 
9951
- var _excluded$2F = ["max", "min", "precision", "stepSize", "prefix"];
9955
+ var _excluded$2H = ["max", "min", "precision", "stepSize", "prefix"];
9952
9956
  var PercentageElement = function PercentageElement(_ref, ref) {
9953
9957
  var _ref$max = _ref.max,
9954
9958
  max = _ref$max === void 0 ? 100 : _ref$max,
@@ -9959,7 +9963,7 @@ var PercentageElement = function PercentageElement(_ref, ref) {
9959
9963
  _ref$stepSize = _ref.stepSize,
9960
9964
  stepSize = _ref$stepSize === void 0 ? 1 : _ref$stepSize,
9961
9965
  prefix = _ref.prefix,
9962
- allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2F);
9966
+ allOtherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2H);
9963
9967
  var _useTextField = useTextField(_extends({}, allOtherProps, {
9964
9968
  ref: ref
9965
9969
  })),
@@ -10938,12 +10942,12 @@ var CountrySelector = function CountrySelector(_ref) {
10938
10942
  }))));
10939
10943
  };
10940
10944
 
10941
- var _excluded$2G = ["disabledCountry"];
10945
+ var _excluded$2I = ["disabledCountry"];
10942
10946
  var PhoneField = function PhoneField(_ref) {
10943
10947
  var _classNames;
10944
10948
  var _ref$disabledCountry = _ref.disabledCountry,
10945
10949
  disabledCountry = _ref$disabledCountry === void 0 ? false : _ref$disabledCountry,
10946
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2G);
10950
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2I);
10947
10951
  var inputRef = React.useRef(null);
10948
10952
  var _usePhoneField = usePhoneField(_extends({}, props, {
10949
10953
  ref: inputRef
@@ -11028,14 +11032,14 @@ var PhoneField = function PhoneField(_ref) {
11028
11032
 
11029
11033
  var styles$17 = {"badge":"_1QLaK","badge--warning":"_qsFWw","badge--danger":"_359Cc","badge--success":"_2AOEK","badge--info":"_1mLjf"};
11030
11034
 
11031
- var _excluded$2H = ["children", "theme", "title", "testId"];
11035
+ var _excluded$2J = ["children", "theme", "title", "testId"];
11032
11036
  var Badge = function Badge(_ref, forwardedRef) {
11033
11037
  var _classnames;
11034
11038
  var children = _ref.children,
11035
11039
  theme = _ref.theme,
11036
11040
  title = _ref.title,
11037
11041
  testId = _ref.testId,
11038
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2H);
11042
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$2J);
11039
11043
  var internalRef = React.useRef(null);
11040
11044
  var ref = forwardedRef || internalRef;
11041
11045
  React.useLayoutEffect(function () {